From 1260af0a31a5e07466d025202681cea1ce06e98f Mon Sep 17 00:00:00 2001 From: Ali Date: Tue, 14 Apr 2026 23:48:30 +0200 Subject: [PATCH 1/3] Migrate the oauth endpoint --- .../src/sdk/modules/abac/AbacActionsDto.ts | 31 -- .../src/sdk/modules/abac/OauthAuthenticate.ts | 516 ++++++++++++++++++ .../modules/abac/usePostPassportViaOauth.ts | 92 ---- modules/abac/AbacCustomActions.dyno.go | 156 ++---- modules/abac/AbacModule3.yml | 59 +- modules/abac/OauthAuthenticateAction.dyno.go | 326 +++++++++++ modules/abac/OauthAuthenticateAction.go | 44 +- modules/abac/PassportCli.go | 2 +- .../modules/selfservice/Welcome.screen.tsx | 17 +- .../sdk/modules/abac/AbacActionsDto.ts | 31 -- .../sdk/modules/abac/OauthAuthenticate.ts | 516 ++++++++++++++++++ .../modules/abac/usePostPassportViaOauth.ts | 92 ---- 12 files changed, 1462 insertions(+), 420 deletions(-) create mode 100644 e2e/react-bed/src/sdk/modules/abac/OauthAuthenticate.ts delete mode 100644 e2e/react-bed/src/sdk/modules/abac/usePostPassportViaOauth.ts create mode 100644 modules/abac/OauthAuthenticateAction.dyno.go create mode 100644 modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/OauthAuthenticate.ts delete mode 100644 modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/usePostPassportViaOauth.ts diff --git a/e2e/react-bed/src/sdk/modules/abac/AbacActionsDto.ts b/e2e/react-bed/src/sdk/modules/abac/AbacActionsDto.ts index 2d7a572a4..ee69fe664 100644 --- a/e2e/react-bed/src/sdk/modules/abac/AbacActionsDto.ts +++ b/e2e/react-bed/src/sdk/modules/abac/AbacActionsDto.ts @@ -13,9 +13,6 @@ import { import { GsmProviderEntity, } from "./GsmProviderEntity" -import { - UserSessionDto, -} from "./UserSessionDto" export class QueryUserRoleWorkspacesResDtoRoles { public name?: string | null; public uniqueId?: string | null; @@ -24,34 +21,6 @@ import { */ public capabilities?: string[] | null; } -export class OauthAuthenticateActionReqDto { - /** - The token that Auth2 provider returned to the front-end, which will be used to validate the backend - */ - public token?: string | null; - /** - The service name, such as 'google' which later backend will use to authorize the token and create the user. - */ - public service?: string | null; -public static Fields = { - token: 'token', - service: 'service', -} -} -export class OauthAuthenticateActionResDto { - public session?: UserSessionDto | null; - sessionId?: string | null; - /** - The next possible action which is suggested. - */ - public next?: string[] | null; -public static Fields = { - sessionId: 'sessionId', - session$: 'session', - session: UserSessionDto.Fields, - next: 'next', -} -} export class QueryUserRoleWorkspacesActionResDto { public name?: string | null; /** diff --git a/e2e/react-bed/src/sdk/modules/abac/OauthAuthenticate.ts b/e2e/react-bed/src/sdk/modules/abac/OauthAuthenticate.ts new file mode 100644 index 000000000..97d35402e --- /dev/null +++ b/e2e/react-bed/src/sdk/modules/abac/OauthAuthenticate.ts @@ -0,0 +1,516 @@ +import { GResponse } from "../../sdk/envelopes/index"; +import { UserSessionDto } from "./UserSessionDto"; +import { buildUrl } from "../../sdk/common/buildUrl"; +import { + fetchx, + handleFetchResponse, + type FetchxContext, + type PartialDeep, + type TypedRequestInit, + type TypedResponse, +} from "../../sdk/common/fetchx"; +import { type UseMutationOptions, useMutation } from "react-query"; +import { useFetchxContext } from "../../sdk/react/useFetchx"; +import { useState } from "react"; +import { withPrefix } from "../../sdk/common/withPrefix"; +/** + * Action to communicate with the action OauthAuthenticate + */ +export type OauthAuthenticateActionOptions = { + queryKey?: unknown[]; + qs?: URLSearchParams; +}; +export type OauthAuthenticateActionMutationOptions = Omit< + UseMutationOptions, + "mutationFn" +> & + OauthAuthenticateActionOptions & { + ctx?: FetchxContext; + onMessage?: (ev: MessageEvent) => void; + overrideUrl?: string; + headers?: Headers; + } & Partial<{ + creatorFn: (item: unknown) => OauthAuthenticateActionRes; + }>; +export const useOauthAuthenticateAction = ( + options?: OauthAuthenticateActionMutationOptions, +) => { + const globalCtx = useFetchxContext(); + const ctx = options?.ctx ?? globalCtx ?? undefined; + const [isCompleted, setCompleteState] = useState(false); + const [response, setResponse] = useState>(); + const fn = (body: OauthAuthenticateActionReq) => { + setCompleteState(false); + return OauthAuthenticateAction.Fetch( + { + body, + headers: options?.headers, + }, + { + creatorFn: options?.creatorFn, + qs: options?.qs, + ctx, + onMessage: options?.onMessage, + overrideUrl: options?.overrideUrl, + }, + ).then((x) => { + x.done.then(() => { + setCompleteState(true); + }); + setResponse(x.response); + return x.response.result; + }); + }; + const result = useMutation({ + mutationFn: fn, + ...(options || {}), + }); + return { + ...result, + isCompleted, + response, + }; +}; +/** + * OauthAuthenticateAction + */ +export class OauthAuthenticateAction { + // + static URL = "/passport/via-oauth"; + static NewUrl = (qs?: URLSearchParams) => + buildUrl(OauthAuthenticateAction.URL, undefined, qs); + static Method = "post"; + static Fetch$ = async ( + qs?: URLSearchParams, + ctx?: FetchxContext, + init?: TypedRequestInit, + overrideUrl?: string, + ) => { + return fetchx< + GResponse, + OauthAuthenticateActionReq, + unknown + >( + overrideUrl ?? OauthAuthenticateAction.NewUrl(qs), + { + method: OauthAuthenticateAction.Method, + ...(init || {}), + }, + ctx, + ); + }; + static Fetch = async ( + init?: TypedRequestInit, + { + creatorFn, + qs, + ctx, + onMessage, + overrideUrl, + }: { + creatorFn?: ((item: unknown) => OauthAuthenticateActionRes) | undefined; + qs?: URLSearchParams; + ctx?: FetchxContext; + onMessage?: (ev: MessageEvent) => void; + overrideUrl?: string; + } = { + creatorFn: (item) => new OauthAuthenticateActionRes(item), + }, + ) => { + creatorFn = creatorFn || ((item) => new OauthAuthenticateActionRes(item)); + const res = await OauthAuthenticateAction.Fetch$( + qs, + ctx, + init, + overrideUrl, + ); + return handleFetchResponse( + res, + (data) => { + const resp = new GResponse(); + if (creatorFn) { + resp.setCreator(creatorFn); + } + resp.inject(data); + return resp; + }, + onMessage, + init?.signal, + ); + }; + static Definition = { + name: "OauthAuthenticate", + url: "/passport/via-oauth", + method: "post", + description: + "When a token is got from a oauth service such as google, we send the token here to authenticate the user. To me seems this doesn't need to have 2FA or anything, so we return the session directly, or maybe there needs to be next step.", + in: { + fields: [ + { + name: "token", + description: + "The token that Auth2 provider returned to the front-end, which will be used to validate the backend", + type: "string", + }, + { + name: "service", + description: + "The service name, such as 'google' which later backend will use to authorize the token and create the user.", + type: "string", + }, + ], + }, + out: { + envelope: "GResponse", + fields: [ + { + name: "session", + type: "one", + target: "UserSessionDto", + }, + { + name: "next", + description: "The next possible action which is suggested.", + type: "slice", + primitive: "string", + }, + ], + }, + }; +} +/** + * The base class definition for oauthAuthenticateActionReq + **/ +export class OauthAuthenticateActionReq { + /** + * The token that Auth2 provider returned to the front-end, which will be used to validate the backend + * @type {string} + **/ + #token: string = ""; + /** + * The token that Auth2 provider returned to the front-end, which will be used to validate the backend + * @returns {string} + **/ + get token() { + return this.#token; + } + /** + * The token that Auth2 provider returned to the front-end, which will be used to validate the backend + * @type {string} + **/ + set token(value: string) { + this.#token = String(value); + } + setToken(value: string) { + this.token = value; + return this; + } + /** + * The service name, such as 'google' which later backend will use to authorize the token and create the user. + * @type {string} + **/ + #service: string = ""; + /** + * The service name, such as 'google' which later backend will use to authorize the token and create the user. + * @returns {string} + **/ + get service() { + return this.#service; + } + /** + * The service name, such as 'google' which later backend will use to authorize the token and create the user. + * @type {string} + **/ + set service(value: string) { + this.#service = String(value); + } + setService(value: string) { + this.service = value; + return this; + } + constructor(data: unknown = undefined) { + if (data === null || data === undefined) { + return; + } + if (typeof data === "string") { + this.applyFromObject(JSON.parse(data)); + } else if (this.#isJsonAppliable(data)) { + this.applyFromObject(data); + } else { + throw new Error( + "Instance cannot be created on an unknown value, check the content being passed. got: " + + typeof data, + ); + } + } + #isJsonAppliable(obj: unknown) { + const g = globalThis as unknown as { Buffer: any; Blob: any }; + const isBuffer = + typeof g.Buffer !== "undefined" && + typeof g.Buffer.isBuffer === "function" && + g.Buffer.isBuffer(obj); + const isBlob = typeof g.Blob !== "undefined" && obj instanceof g.Blob; + return ( + obj && + typeof obj === "object" && + !Array.isArray(obj) && + !isBuffer && + !(obj instanceof ArrayBuffer) && + !isBlob + ); + } + /** + * casts the fields of a javascript object into the class properties one by one + **/ + applyFromObject(data = {}) { + const d = data as Partial; + if (d.token !== undefined) { + this.token = d.token; + } + if (d.service !== undefined) { + this.service = d.service; + } + } + /** + * Special toJSON override, since the field are private, + * Json stringify won't see them unless we mention it explicitly. + **/ + toJSON() { + return { + token: this.#token, + service: this.#service, + }; + } + toString() { + return JSON.stringify(this); + } + static get Fields() { + return { + token: "token", + service: "service", + }; + } + /** + * Creates an instance of OauthAuthenticateActionReq, and possibleDtoObject + * needs to satisfy the type requirement fully, otherwise typescript compile would + * be complaining. + **/ + static from(possibleDtoObject: OauthAuthenticateActionReqType) { + return new OauthAuthenticateActionReq(possibleDtoObject); + } + /** + * Creates an instance of OauthAuthenticateActionReq, and partialDtoObject + * needs to satisfy the type, but partially, and rest of the content would + * be constructed according to data types and nullability. + **/ + static with(partialDtoObject: PartialDeep) { + return new OauthAuthenticateActionReq(partialDtoObject); + } + copyWith( + partial: PartialDeep, + ): InstanceType { + return new OauthAuthenticateActionReq({ ...this.toJSON(), ...partial }); + } + clone(): InstanceType { + return new OauthAuthenticateActionReq(this.toJSON()); + } +} +export abstract class OauthAuthenticateActionReqFactory { + abstract create(data: unknown): OauthAuthenticateActionReq; +} +/** + * The base type definition for oauthAuthenticateActionReq + **/ +export type OauthAuthenticateActionReqType = { + /** + * The token that Auth2 provider returned to the front-end, which will be used to validate the backend + * @type {string} + **/ + token: string; + /** + * The service name, such as 'google' which later backend will use to authorize the token and create the user. + * @type {string} + **/ + service: string; +}; +// eslint-disable-next-line @typescript-eslint/no-namespace +export namespace OauthAuthenticateActionReqType {} +/** + * The base class definition for oauthAuthenticateActionRes + **/ +export class OauthAuthenticateActionRes { + /** + * + * @type {UserSessionDto} + **/ + #session!: UserSessionDto; + /** + * + * @returns {UserSessionDto} + **/ + get session() { + return this.#session; + } + /** + * + * @type {UserSessionDto} + **/ + set session(value: UserSessionDto) { + // For objects, the sub type needs to always be instance of the sub class. + if (value instanceof UserSessionDto) { + this.#session = value; + } else { + this.#session = new UserSessionDto(value); + } + } + setSession(value: UserSessionDto) { + this.session = value; + return this; + } + /** + * The next possible action which is suggested. + * @type {string[]} + **/ + #next: string[] = []; + /** + * The next possible action which is suggested. + * @returns {string[]} + **/ + get next() { + return this.#next; + } + /** + * The next possible action which is suggested. + * @type {string[]} + **/ + set next(value: string[]) { + this.#next = value; + } + setNext(value: string[]) { + this.next = value; + return this; + } + constructor(data: unknown = undefined) { + if (data === null || data === undefined) { + this.#lateInitFields(); + return; + } + if (typeof data === "string") { + this.applyFromObject(JSON.parse(data)); + } else if (this.#isJsonAppliable(data)) { + this.applyFromObject(data); + } else { + throw new Error( + "Instance cannot be created on an unknown value, check the content being passed. got: " + + typeof data, + ); + } + } + #isJsonAppliable(obj: unknown) { + const g = globalThis as unknown as { Buffer: any; Blob: any }; + const isBuffer = + typeof g.Buffer !== "undefined" && + typeof g.Buffer.isBuffer === "function" && + g.Buffer.isBuffer(obj); + const isBlob = typeof g.Blob !== "undefined" && obj instanceof g.Blob; + return ( + obj && + typeof obj === "object" && + !Array.isArray(obj) && + !isBuffer && + !(obj instanceof ArrayBuffer) && + !isBlob + ); + } + /** + * casts the fields of a javascript object into the class properties one by one + **/ + applyFromObject(data = {}) { + const d = data as Partial; + if (d.session !== undefined) { + this.session = d.session; + } + if (d.next !== undefined) { + this.next = d.next; + } + this.#lateInitFields(data); + } + /** + * These are the class instances, which need to be initialised, regardless of the constructor incoming data + **/ + #lateInitFields(data = {}) { + const d = data as Partial; + if (!(d.session instanceof UserSessionDto)) { + this.session = new UserSessionDto(d.session || {}); + } + } + /** + * Special toJSON override, since the field are private, + * Json stringify won't see them unless we mention it explicitly. + **/ + toJSON() { + return { + session: this.#session, + next: this.#next, + }; + } + toString() { + return JSON.stringify(this); + } + static get Fields() { + return { + session$: "session", + get session() { + return withPrefix("session", UserSessionDto.Fields); + }, + next$: "next", + get next() { + return "next[:i]"; + }, + }; + } + /** + * Creates an instance of OauthAuthenticateActionRes, and possibleDtoObject + * needs to satisfy the type requirement fully, otherwise typescript compile would + * be complaining. + **/ + static from(possibleDtoObject: OauthAuthenticateActionResType) { + return new OauthAuthenticateActionRes(possibleDtoObject); + } + /** + * Creates an instance of OauthAuthenticateActionRes, and partialDtoObject + * needs to satisfy the type, but partially, and rest of the content would + * be constructed according to data types and nullability. + **/ + static with(partialDtoObject: PartialDeep) { + return new OauthAuthenticateActionRes(partialDtoObject); + } + copyWith( + partial: PartialDeep, + ): InstanceType { + return new OauthAuthenticateActionRes({ ...this.toJSON(), ...partial }); + } + clone(): InstanceType { + return new OauthAuthenticateActionRes(this.toJSON()); + } +} +export abstract class OauthAuthenticateActionResFactory { + abstract create(data: unknown): OauthAuthenticateActionRes; +} +/** + * The base type definition for oauthAuthenticateActionRes + **/ +export type OauthAuthenticateActionResType = { + /** + * + * @type {UserSessionDto} + **/ + session: UserSessionDto; + /** + * The next possible action which is suggested. + * @type {string[]} + **/ + next: string[]; +}; +// eslint-disable-next-line @typescript-eslint/no-namespace +export namespace OauthAuthenticateActionResType {} diff --git a/e2e/react-bed/src/sdk/modules/abac/usePostPassportViaOauth.ts b/e2e/react-bed/src/sdk/modules/abac/usePostPassportViaOauth.ts deleted file mode 100644 index dcbb0e176..000000000 --- a/e2e/react-bed/src/sdk/modules/abac/usePostPassportViaOauth.ts +++ /dev/null @@ -1,92 +0,0 @@ -/* -* Generated by fireback 1.2.5 -* Written by Ali Torabi. -* The code is generated for react-query@v3.39.3 -* Checkout the repository for licenses and contribution: https://github.com/torabian/fireback -*/ -import { type FormikHelpers } from "formik"; -import { useContext, useState, useRef } from "react"; -import { useMutation } from "react-query"; -import { - execApiFn, - type IResponse, - mutationErrorsToFormik, - type IResponseList -} from "../../core/http-tools"; -import { - RemoteQueryContext, - type UseRemoteQuery, - queryBeforeSend, -} from "../../core/react-tools"; - import { - OauthAuthenticateActionReqDto, - OauthAuthenticateActionResDto, - } from "../abac/AbacActionsDto" -export function usePostPassportViaOauth( - props?: UseRemoteQuery & { - } -) { - let {queryClient, query, execFnOverride} = props || {}; - query = query || {} - const { options, execFn } = useContext(RemoteQueryContext); - // Calculare the function which will do the remote calls. - // We consider to use global override, this specific override, or default which - // comes with the sdk. - const rpcFn = execFnOverride - ? execFnOverride(options) - : execFn - ? execFn(options) - : execApiFn(options); - // Url of the remote affix. - const url = "/passport/via-oauth".substr(1); - let computedUrl = `${url}?${new URLSearchParams( - queryBeforeSend(query) - ).toString()}`; - let completeRouteUrls = true; - // Attach the details of the request to the fn - const fn = (body: any) => rpcFn("POST", computedUrl, body); - const mutation = useMutation< - IResponse, - IResponse, - Partial - >(fn); - // Only entities are having a store in front-end - const fnUpdater = ( - data: IResponseList | undefined, - item: IResponse - ) => { - if (!data) { - return { - data: { items: [] }, - }; - } - // To me it seems this is not a good or any correct strategy to update the store. - // When we are posting, we want to add it there, that's it. Not updating it. - // We have patch, but also posting with ID is possible. - if (data.data && item?.data) { - data.data.items = [item.data, ...(data?.data?.items || [])]; - } - return data; - }; - const submit = ( - values: Partial, - formikProps?: FormikHelpers> - ): Promise> => { - return new Promise((resolve, reject) => { - mutation.mutate(values, { - onSuccess(response: IResponse) { - queryClient?.setQueryData>( - "*abac.OauthAuthenticateActionResDto", - (data) => fnUpdater(data, response) as any - ); - resolve(response); - }, - onError(error: any) { - formikProps?.setErrors(mutationErrorsToFormik(error)); - reject(error); - }, - }); - }); - }; - return { mutation, submit, fnUpdater }; -} diff --git a/modules/abac/AbacCustomActions.dyno.go b/modules/abac/AbacCustomActions.dyno.go index 112d17aa1..6cec8373d 100644 --- a/modules/abac/AbacCustomActions.dyno.go +++ b/modules/abac/AbacCustomActions.dyno.go @@ -22,100 +22,6 @@ type QueryUserRoleWorkspacesResDtoRoles struct { Capabilities []string `json:"capabilities" xml:"capabilities" yaml:"capabilities" ` } -var OauthAuthenticateSecurityModel *fireback.SecurityModel = nil - -type OauthAuthenticateActionReqDto struct { - // The token that Auth2 provider returned to the front-end, which will be used to validate the backend - Token string `json:"token" xml:"token" yaml:"token" ` - // The service name, such as 'google' which later backend will use to authorize the token and create the user. - Service string `json:"service" xml:"service" yaml:"service" ` -} - -func (x *OauthAuthenticateActionReqDto) RootObjectName() string { - return "Abac" -} - -var OauthAuthenticateCommonCliFlagsOptional = []cli.Flag{ - &cli.StringFlag{ - Name: "x-src", - Required: false, - Usage: `Import the body of the request from a file (e.g. json/yaml) on the disk`, - }, - &cli.StringFlag{ - Name: "x-accept", - Usage: "Return type of the the content, such as json or yaml", - }, - &cli.StringFlag{ - Name: "token", - Required: false, - Usage: `The token that Auth2 provider returned to the front-end, which will be used to validate the backend (string)`, - }, - &cli.StringFlag{ - Name: "service", - Required: false, - Usage: `The service name, such as 'google' which later backend will use to authorize the token and create the user. (string)`, - }, -} - -func OauthAuthenticateActionReqValidator(dto *OauthAuthenticateActionReqDto) *fireback.IError { - err := fireback.CommonStructValidatorPointer(dto, false) - return err -} -func CastOauthAuthenticateFromCli(c *cli.Context) *OauthAuthenticateActionReqDto { - template := &OauthAuthenticateActionReqDto{} - fireback.HandleXsrc(c, template) - if c.IsSet("token") { - template.Token = c.String("token") - } - if c.IsSet("service") { - template.Service = c.String("service") - } - return template -} - -type OauthAuthenticateActionResDto struct { - Session *UserSessionDto `json:"session" xml:"session" yaml:"session" gorm:"foreignKey:SessionId;references:UniqueId" ` - SessionId fireback.String `json:"sessionId" yaml:"sessionId" xml:"sessionId" ` - // The next possible action which is suggested. - Next []string `json:"next" xml:"next" yaml:"next" ` -} - -func (x *OauthAuthenticateActionResDto) RootObjectName() string { - return "Abac" -} - -type oauthAuthenticateActionImpSig func( - req *OauthAuthenticateActionReqDto, - q fireback.QueryDSL) (*OauthAuthenticateActionResDto, - *fireback.IError, -) - -var OauthAuthenticateActionImp oauthAuthenticateActionImpSig - -func OauthAuthenticateActionFn( - req *OauthAuthenticateActionReqDto, - q fireback.QueryDSL, -) ( - *OauthAuthenticateActionResDto, - *fireback.IError, -) { - if OauthAuthenticateActionImp == nil { - return nil, nil - } - return OauthAuthenticateActionImp(req, q) -} - -var OauthAuthenticateActionCmd cli.Command = cli.Command{ - Name: "oauth-authenticate", - Usage: `When a token is got from a oauth service such as google, we send the token here to authenticate the user. To me seems this doesn't need to have 2FA or anything, so we return the session directly, or maybe there needs to be next step.`, - Flags: OauthAuthenticateCommonCliFlagsOptional, - Action: func(c *cli.Context) { - query := fireback.CommonCliQueryDSLBuilderAuthorize(c, OauthAuthenticateSecurityModel) - dto := CastOauthAuthenticateFromCli(c) - result, err := OauthAuthenticateActionFn(dto, query) - fireback.HandleActionInCli(c, result, err, map[string]map[string]string{}) - }, -} var UserInvitationsSecurityModel = &fireback.SecurityModel{ ActionRequires: []fireback.PermissionInfo{}, ResolveStrategy: "user", @@ -721,6 +627,41 @@ var GsmSendSmsWithProviderActionCmd cli.Command = cli.Command{ /// For emi, we also need to print the handlers, and also print security model, which is a part of Fireback /// and not available in Emi (won't be) +var OauthAuthenticateImpl func(c OauthAuthenticateActionRequest, query fireback.QueryDSL) (*OauthAuthenticateActionResponse, error) = nil +var OauthAuthenticateSecurityModel *fireback.SecurityModel = nil + +// This can be both used as cli and http +var OauthAuthenticateActionDef fireback.Module3Action = fireback.Module3Action{ + // Temporary until fireback code gen is deleted. + Skip: true, + CliName: OauthAuthenticateActionMeta().CliName, + Description: OauthAuthenticateActionMeta().Description, + Name: OauthAuthenticateActionMeta().Name, + Method: OauthAuthenticateActionMeta().Method, + Url: OauthAuthenticateActionMeta().URL, + SecurityModel: OauthAuthenticateSecurityModel, + // post + Handlers: []gin.HandlerFunc{ + func(m *gin.Context) { + req := OauthAuthenticateActionRequest{ + QueryParams: m.Request.URL.Query(), + Headers: m.Request.Header, + GinCtx: m, + } + query := fireback.ExtractQueryDslFromGinContext(m) + fireback.ReadGinRequestBodyAndCastToGoStruct(m, &req.Body, query) + resp, err := OauthAuthenticateImpl(req, query) + fireback.WriteActionResponseToGin(m, resp, err) + }, + }, + CliAction: func(c *cli.Context, security *fireback.SecurityModel) error { + query := fireback.CommonCliQueryDSLBuilderAuthorize(c, OauthAuthenticateSecurityModel) + req := OauthAuthenticateActionRequest{} + resp, err := OauthAuthenticateImpl(req, query) + fireback.HandleActionInCli2(c, resp, err, map[string]map[string]string{}) + return nil + }, +} var AcceptInviteImpl func(c AcceptInviteActionRequest, query fireback.QueryDSL) (*AcceptInviteActionResponse, error) = nil var AcceptInviteSecurityModel = &fireback.SecurityModel{ ActionRequires: []fireback.PermissionInfo{}, @@ -1189,6 +1130,7 @@ var OsLoginAuthenticateActionDef fireback.Module3Action = fireback.Module3Action func AbacCustomActions() []fireback.Module3Action { routes := []fireback.Module3Action{ //// Let's add actions for emi acts + OauthAuthenticateActionDef, AcceptInviteActionDef, ConfirmClassicPassportTotpActionDef, ChangePasswordActionDef, @@ -1203,29 +1145,6 @@ func AbacCustomActions() []fireback.Module3Action { CheckPassportMethodsActionDef, OsLoginAuthenticateActionDef, /// End for emi actions - { - Method: "POST", - Url: "/passport/via-oauth", - SecurityModel: OauthAuthenticateSecurityModel, - Name: "oauthAuthenticate", - Description: "When a token is got from a oauth service such as google, we send the token here to authenticate the user. To me seems this doesn't need to have 2FA or anything, so we return the session directly, or maybe there needs to be next step.", - Handlers: []gin.HandlerFunc{ - func(c *gin.Context) { - // POST_ONE - post - fireback.HttpPostEntity(c, OauthAuthenticateActionFn) - }, - }, - Format: "POST_ONE", - Action: OauthAuthenticateActionFn, - ResponseEntity: &OauthAuthenticateActionResDto{}, - Out: &fireback.Module3ActionBody{ - Entity: "OauthAuthenticateActionResDto", - }, - RequestEntity: &OauthAuthenticateActionReqDto{}, - In: &fireback.Module3ActionBody{ - Entity: "OauthAuthenticateActionReqDto", - }, - }, { Method: "GET", Url: "/users/invitations", @@ -1434,7 +1353,6 @@ func AbacCustomActions() []fireback.Module3Action { } var AbacCustomActionsCli = []cli.Command{ - OauthAuthenticateActionCmd, UserInvitationsActionCmd, QueryUserRoleWorkspacesActionCmd, SignoutActionCmd, @@ -1459,6 +1377,7 @@ var AbacCliActionsBundle = &fireback.CliActionsBundle{ Usage: `Fireback ABAC module provides user authentication, basic support for most projects, including advanced role, permission module on top of fireback core module. Using this module is not essential to create fireback projects, but provides a great possibility to avoid building most user management flow. Some other helpers, such as timezone are added here.`, // Here we will include entities actions, as well as module level actions Subcommands: cli.Commands{ + OauthAuthenticateActionDef.ToCli(), AcceptInviteActionDef.ToCli(), ConfirmClassicPassportTotpActionDef.ToCli(), ChangePasswordActionDef.ToCli(), @@ -1472,7 +1391,6 @@ var AbacCliActionsBundle = &fireback.CliActionsBundle{ QueryWorkspaceTypesPubliclyActionDef.ToCli(), CheckPassportMethodsActionDef.ToCli(), OsLoginAuthenticateActionDef.ToCli(), - OauthAuthenticateActionCmd, UserInvitationsActionCmd, QueryUserRoleWorkspacesActionCmd, SignoutActionCmd, diff --git a/modules/abac/AbacModule3.yml b/modules/abac/AbacModule3.yml index 864e8c08e..224c2d789 100644 --- a/modules/abac/AbacModule3.yml +++ b/modules/abac/AbacModule3.yml @@ -156,6 +156,36 @@ dtom: type: string? acts: + - name: OauthAuthenticate + description: When a token is got from a oauth service such as google, + we send the token here to authenticate the user. + To me seems this doesn't need to have 2FA or anything, so we return + the session directly, or maybe there needs to be next step. + url: /passport/via-oauth + method: post + in: + fields: + - name: token + type: string + description: + The token that Auth2 provider returned to the front-end, which will + be used to validate the backend + - name: service + type: string + description: + The service name, such as 'google' which later backend will use to authorize the token + and create the user. + out: + envelope: GResponse + fields: + - name: session + type: one + target: UserSessionDto + - name: next + type: slice + primitive: string + description: The next possible action which is suggested. + - name: AcceptInvite method: post url: /user/invitation/accept @@ -557,35 +587,6 @@ acts: out: dto: UserSessionDto actions: - - name: oauthAuthenticate - description: When a token is got from a oauth service such as google, - we send the token here to authenticate the user. - To me seems this doesn't need to have 2FA or anything, so we return - the session directly, or maybe there needs to be next step. - url: /passport/via-oauth - method: post - in: - fields: - - name: token - type: string - description: - The token that Auth2 provider returned to the front-end, which will - be used to validate the backend - - name: service - type: string - description: - The service name, such as 'google' which later backend will use to authorize the token - and create the user. - out: - fields: - - name: session - type: one - target: UserSessionDto - - name: next - type: slice - primitive: string - description: The next possible action which is suggested. - - name: userInvitations description: Shows the invitations for an specific user, if the invited member already has a account. diff --git a/modules/abac/OauthAuthenticateAction.dyno.go b/modules/abac/OauthAuthenticateAction.dyno.go new file mode 100644 index 000000000..691b7e1e5 --- /dev/null +++ b/modules/abac/OauthAuthenticateAction.dyno.go @@ -0,0 +1,326 @@ +package abac + +import ( + "bytes" + "encoding/json" + "fmt" + "github.com/gin-gonic/gin" + "github.com/torabian/emi/emigo" + "github.com/urfave/cli" + "io" + "net/http" + "net/url" +) + +/** +* Action to communicate with the action OauthAuthenticateAction + */ +func OauthAuthenticateActionMeta() struct { + Name string + CliName string + URL string + Method string + Description string +} { + return struct { + Name string + CliName string + URL string + Method string + Description string + }{ + Name: "OauthAuthenticateAction", + CliName: "oauth-authenticate-action", + URL: "/passport/via-oauth", + Method: "POST", + Description: `When a token is got from a oauth service such as google, we send the token here to authenticate the user. To me seems this doesn't need to have 2FA or anything, so we return the session directly, or maybe there needs to be next step.`, + } +} +func GetOauthAuthenticateActionReqCliFlags(prefix string) []emigo.CliFlag { + return []emigo.CliFlag{ + { + Name: prefix + "token", + Type: "string", + }, + { + Name: prefix + "service", + Type: "string", + }, + } +} +func CastOauthAuthenticateActionReqFromCli(c emigo.CliCastable) OauthAuthenticateActionReq { + data := OauthAuthenticateActionReq{} + if c.IsSet("token") { + data.Token = c.String("token") + } + if c.IsSet("service") { + data.Service = c.String("service") + } + return data +} + +// The base class definition for oauthAuthenticateActionReq +type OauthAuthenticateActionReq struct { + // The token that Auth2 provider returned to the front-end, which will be used to validate the backend + Token string `json:"token" yaml:"token"` + // The service name, such as 'google' which later backend will use to authorize the token and create the user. + Service string `json:"service" yaml:"service"` +} + +func (x *OauthAuthenticateActionReq) Json() string { + if x != nil { + str, _ := json.MarshalIndent(x, "", " ") + return string(str) + } + return "" +} +func GetOauthAuthenticateActionResCliFlags(prefix string) []emigo.CliFlag { + return []emigo.CliFlag{ + { + Name: prefix + "session", + Type: "one", + }, + { + Name: prefix + "next", + Type: "slice", + }, + } +} +func CastOauthAuthenticateActionResFromCli(c emigo.CliCastable) OauthAuthenticateActionRes { + data := OauthAuthenticateActionRes{} + if c.IsSet("next") { + emigo.InflatePossibleSlice(c.String("next"), &data.Next) + } + return data +} + +// The base class definition for oauthAuthenticateActionRes +type OauthAuthenticateActionRes struct { + Session UserSessionDto `json:"session" yaml:"session"` + // The next possible action which is suggested. + Next []string `json:"next" yaml:"next"` +} + +func (x *OauthAuthenticateActionRes) Json() string { + if x != nil { + str, _ := json.MarshalIndent(x, "", " ") + return string(str) + } + return "" +} + +type OauthAuthenticateActionResponse struct { + StatusCode int + Headers map[string]string + Payload interface{} +} + +func (x *OauthAuthenticateActionResponse) SetContentType(contentType string) *OauthAuthenticateActionResponse { + if x.Headers == nil { + x.Headers = make(map[string]string) + } + x.Headers["Content-Type"] = contentType + return x +} +func (x *OauthAuthenticateActionResponse) AsStream(r io.Reader, contentType string) *OauthAuthenticateActionResponse { + x.Payload = r + x.SetContentType(contentType) + return x +} +func (x *OauthAuthenticateActionResponse) AsJSON(payload any) *OauthAuthenticateActionResponse { + x.Payload = payload + x.SetContentType("application/json") + return x +} +func (x *OauthAuthenticateActionResponse) AsHTML(payload string) *OauthAuthenticateActionResponse { + x.Payload = payload + x.SetContentType("text/html; charset=utf-8") + return x +} +func (x *OauthAuthenticateActionResponse) AsBytes(payload []byte) *OauthAuthenticateActionResponse { + x.Payload = payload + x.SetContentType("application/octet-stream") + return x +} +func (x OauthAuthenticateActionResponse) GetStatusCode() int { + return x.StatusCode +} +func (x OauthAuthenticateActionResponse) GetRespHeaders() map[string]string { + return x.Headers +} +func (x OauthAuthenticateActionResponse) GetPayload() interface{} { + return x.Payload +} + +// OauthAuthenticateActionRaw registers a raw Gin route for the OauthAuthenticateAction action. +// This gives the developer full control over middleware, handlers, and response handling. +func OauthAuthenticateActionRaw(r *gin.Engine, handlers ...gin.HandlerFunc) { + meta := OauthAuthenticateActionMeta() + r.Handle(meta.Method, meta.URL, handlers...) +} + +type OauthAuthenticateActionRequestSig = func(c OauthAuthenticateActionRequest) (*OauthAuthenticateActionResponse, error) + +// OauthAuthenticateActionHandler returns the HTTP method, route URL, and a typed Gin handler for the OauthAuthenticateAction action. +// Developers implement their business logic as a function that receives a typed request object +// and returns either an *ActionResponse or nil. JSON marshalling, headers, and errors are handled automatically. +func OauthAuthenticateActionHandler( + handler OauthAuthenticateActionRequestSig, +) (method, url string, h gin.HandlerFunc) { + meta := OauthAuthenticateActionMeta() + return meta.Method, meta.URL, func(m *gin.Context) { + var body OauthAuthenticateActionReq + if err := m.ShouldBindJSON(&body); err != nil { + m.JSON(http.StatusBadRequest, gin.H{"error": "invalid JSON: " + err.Error()}) + return + } + // Build typed request wrapper + req := OauthAuthenticateActionRequest{ + Body: body, + QueryParams: m.Request.URL.Query(), + Headers: m.Request.Header, + GinCtx: m, + } + resp, err := handler(req) + if err != nil { + m.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) + return + } + // If the handler returned nil (and no error), it means the response was handled manually. + if resp == nil { + return + } + // Apply headers + for k, v := range resp.Headers { + m.Header(k, v) + } + // Apply status and payload + status := resp.StatusCode + if status == 0 { + status = http.StatusOK + } + if resp.Payload != nil { + m.JSON(status, resp.Payload) + } else { + m.Status(status) + } + } +} + +// OauthAuthenticateAction is a high-level convenience wrapper around OauthAuthenticateActionHandler. +// It automatically constructs and registers the typed route on the Gin engine. +// Use this when you don't need custom middleware or route grouping. +func OauthAuthenticateActionGin(r gin.IRoutes, handler OauthAuthenticateActionRequestSig) { + method, url, h := OauthAuthenticateActionHandler(handler) + r.Handle(method, url, h) +} + +/** + * Query parameters for OauthAuthenticateAction + */ +// Query wrapper with private fields +type OauthAuthenticateActionQuery struct { + values url.Values + mapped map[string]interface{} + // Typesafe fields +} + +func OauthAuthenticateActionQueryFromString(rawQuery string) OauthAuthenticateActionQuery { + v := OauthAuthenticateActionQuery{} + values, _ := url.ParseQuery(rawQuery) + mapped := map[string]interface{}{} + if result, err := emigo.UnmarshalQs(rawQuery); err == nil { + mapped = result + } + decoder, err := emigo.NewDecoder(&emigo.DecoderConfig{ + TagName: "json", // reuse json tags + WeaklyTypedInput: true, // "1" -> int, "true" -> bool + Result: &v, + }) + if err == nil { + _ = decoder.Decode(mapped) + } + v.values = values + v.mapped = mapped + return v +} +func OauthAuthenticateActionQueryFromGin(c *gin.Context) OauthAuthenticateActionQuery { + return OauthAuthenticateActionQueryFromString(c.Request.URL.RawQuery) +} +func OauthAuthenticateActionQueryFromHttp(r *http.Request) OauthAuthenticateActionQuery { + return OauthAuthenticateActionQueryFromString(r.URL.RawQuery) +} +func (q OauthAuthenticateActionQuery) Values() url.Values { + return q.values +} +func (q OauthAuthenticateActionQuery) Mapped() map[string]interface{} { + return q.mapped +} +func (q *OauthAuthenticateActionQuery) SetValues(v url.Values) { + q.values = v +} +func (q *OauthAuthenticateActionQuery) SetMapped(m map[string]interface{}) { + q.mapped = m +} + +type OauthAuthenticateActionRequest struct { + Body OauthAuthenticateActionReq + QueryParams url.Values + Headers http.Header + GinCtx *gin.Context + CliCtx *cli.Context +} +type OauthAuthenticateActionResult struct { + resp *http.Response // embed original response + Payload interface{} +} + +func OauthAuthenticateActionCall( + req OauthAuthenticateActionRequest, + config *emigo.APIClient, // optional pre-built request +) (*OauthAuthenticateActionResult, error) { + var httpReq *http.Request + if config == nil || config.Httpr == nil { + meta := OauthAuthenticateActionMeta() + baseURL := meta.URL + // Build final URL with query string + u, err := url.Parse(baseURL) + if err != nil { + return nil, err + } + // if UrlValues present, encode and append + if len(req.QueryParams) > 0 { + u.RawQuery = req.QueryParams.Encode() + } + bodyBytes, err := json.Marshal(req.Body) + if err != nil { + return nil, err + } + req0, err := http.NewRequest(meta.Method, u.String(), bytes.NewReader(bodyBytes)) + if err != nil { + return nil, err + } + httpReq = req0 + } else { + httpReq = config.Httpr + } + httpReq.Header = req.Headers + resp, err := http.DefaultClient.Do(httpReq) + if err != nil { + return nil, err + } + var result OauthAuthenticateActionResult + result.resp = resp + defer resp.Body.Close() + respBody, err := io.ReadAll(resp.Body) + if err != nil { + return &result, err + } + if resp.StatusCode >= 400 { + return &result, fmt.Errorf("request failed: %s", respBody) + } + if err := json.Unmarshal(respBody, &result.Payload); err != nil { + return &result, err + } + return &result, nil +} diff --git a/modules/abac/OauthAuthenticateAction.go b/modules/abac/OauthAuthenticateAction.go index 93bf0c202..b8dc56638 100644 --- a/modules/abac/OauthAuthenticateAction.go +++ b/modules/abac/OauthAuthenticateAction.go @@ -9,6 +9,10 @@ import ( "github.com/torabian/fireback/modules/fireback" ) +func init() { + OauthAuthenticateImpl = OauthAuthenticateAction +} + // Supported OAuth providers const ( ProviderGoogle = "google" @@ -24,21 +28,31 @@ type TokenInfo struct { } // OauthAuthenticateAction authenticates a user via OAuth -func OauthAuthenticateAction( - req *OauthAuthenticateActionReqDto, - q fireback.QueryDSL) (*OauthAuthenticateActionResDto, *fireback.IError) { - +func OauthAuthenticateAction(c OauthAuthenticateActionRequest, q fireback.QueryDSL) (*OauthAuthenticateActionResponse, error) { + req := c.Body switch req.Service { case ProviderGoogle: - return authenticateWithGoogle(req.Token, q) + if res, err := authenticateWithGoogle(req.Token, q); err == nil { + return &OauthAuthenticateActionResponse{ + Payload: fireback.GResponseSingleItem(res), + }, nil + } else { + return nil, err + } case ProviderFacebook: - return authenticateWithFacebook(req.Token, q) + if res, err := authenticateWithFacebook(req.Token, q); err == nil { + return &OauthAuthenticateActionResponse{ + Payload: fireback.GResponseSingleItem(res), + }, nil + } else { + return nil, err + } default: return nil, fireback.Create401Error(&AbacMessages.UnsupportedOAuth, []string{}) } } -func continueAuthenticationViaOAuthEmail(info TokenInfo, provider string, q fireback.QueryDSL) (*OauthAuthenticateActionResDto, *fireback.IError) { +func continueAuthenticationViaOAuthEmail(info TokenInfo, provider string, q fireback.QueryDSL) (*OauthAuthenticateActionRes, *fireback.IError) { if err := validateValueFormat(info.Email); err != nil { return nil, err } @@ -64,8 +78,8 @@ func continueAuthenticationViaOAuthEmail(info TokenInfo, provider string, q fire return nil, err } - return &OauthAuthenticateActionResDto{ - Session: &res.Session, + return &OauthAuthenticateActionRes{ + Session: res.Session, }, nil } else { session := &UserSessionDto{} @@ -75,14 +89,14 @@ func continueAuthenticationViaOAuthEmail(info TokenInfo, provider string, q fire if err := applyUserTokenAndWorkspacesToToken(session, q); err != nil { return nil, err } - return &OauthAuthenticateActionResDto{ - Session: session, + return &OauthAuthenticateActionRes{ + Session: *session, }, nil } } // authenticateWithGoogle verifies the Google access token and returns user info -func authenticateWithGoogle(accessToken string, q fireback.QueryDSL) (*OauthAuthenticateActionResDto, *fireback.IError) { +func authenticateWithGoogle(accessToken string, q fireback.QueryDSL) (*OauthAuthenticateActionRes, *fireback.IError) { url := fmt.Sprintf("https://www.googleapis.com/oauth2/v3/tokeninfo?access_token=%s", accessToken) resp, err := http.Get(url) if err != nil || resp.StatusCode != http.StatusOK { @@ -99,7 +113,7 @@ func authenticateWithGoogle(accessToken string, q fireback.QueryDSL) (*OauthAuth } // authenticateWithFacebook verifies the Facebook access token and returns user info -func authenticateWithFacebook(accessToken string, q fireback.QueryDSL) (*OauthAuthenticateActionResDto, *fireback.IError) { +func authenticateWithFacebook(accessToken string, q fireback.QueryDSL) (*OauthAuthenticateActionRes, *fireback.IError) { url := fmt.Sprintf("https://graph.facebook.com/me?fields=email,name,picture&access_token=%s", accessToken) resp, err := http.Get(url) if err != nil || resp.StatusCode != http.StatusOK { @@ -130,10 +144,6 @@ func authenticateWithFacebook(accessToken string, q fireback.QueryDSL) (*OauthAu return continueAuthenticationViaOAuthEmail(tokenInfo, ProviderFacebook, q) } -func init() { - OauthAuthenticateActionImp = OauthAuthenticateAction -} - func SplitName(fullName, email string) (firstName, lastName string) { // 1. Try to split full name parts := strings.Fields(fullName) diff --git a/modules/abac/PassportCli.go b/modules/abac/PassportCli.go index 87776c78a..dc15fae99 100644 --- a/modules/abac/PassportCli.go +++ b/modules/abac/PassportCli.go @@ -72,7 +72,7 @@ var PassportCli cli.Command = cli.Command{ PassportMethodCliFn(), CheckPassportMethodsActionDef.ToCli(), UserPassportsActionDef.ToCli(), - OauthAuthenticateActionCmd, + OauthAuthenticateActionDef.ToCli(), PassportWipeCmd, PassportUpdateCmd, fireback.GetCommonRemoveQuery( diff --git a/modules/fireback/codegen/react-new/src/modules/fireback/modules/selfservice/Welcome.screen.tsx b/modules/fireback/codegen/react-new/src/modules/fireback/modules/selfservice/Welcome.screen.tsx index fd3377f13..bca5284bc 100644 --- a/modules/fireback/codegen/react-new/src/modules/fireback/modules/selfservice/Welcome.screen.tsx +++ b/modules/fireback/codegen/react-new/src/modules/fireback/modules/selfservice/Welcome.screen.tsx @@ -3,18 +3,19 @@ import { type FormikProps, useFormik } from "formik"; import { useContext } from "react"; import { AuthLoader } from "../../components/auth-loader/AuthLoader"; import { QueryErrorView } from "../../components/error-view/QueryError"; +import { BUILD_VARIABLES } from "../../hooks/build-variables"; import { source } from "../../hooks/source"; import { useLocale } from "../../hooks/useLocale"; import { useRouter } from "../../hooks/useRouter"; import { useS } from "../../hooks/useS"; import { RemoteQueryContext } from "../../sdk/core/react-tools"; -import { usePostPassportViaOauth } from "../../sdk/modules/abac/usePostPassportViaOauth"; +import type { ClassicSigninActionReq } from "../../sdk/modules/abac/ClassicSignin"; +import { OauthAuthenticateActionReq, OauthAuthenticateActionRes, useOauthAuthenticateAction } from "../../sdk/modules/abac/OauthAuthenticate"; +import type { GResponse } from "../../sdk/sdk/envelopes"; import { type AuthAvailableMethods, AuthMethod } from "./auth.common"; import { FacebookLogin } from "./FacebookLogin"; import { strings } from "./strings/translations"; import { usePresenter } from "./Welcome.presenter"; -import { BUILD_VARIABLES } from "../../hooks/build-variables"; -import type { ClassicSigninActionReq } from "../../sdk/modules/abac/ClassicSignin"; export const WelcomeScreen = () => { const { @@ -80,7 +81,7 @@ const Form = ({ onSelect: (method: AuthMethod) => void; availableOptions: AuthAvailableMethods; }) => { - const { submit } = usePostPassportViaOauth({}); + const { mutateAsync } = useOauthAuthenticateAction({}); const { setSession } = useContext(RemoteQueryContext); const { locale } = useLocale(); const { replace } = useRouter(); @@ -89,12 +90,12 @@ const Form = ({ token: string, service: "google" | "facebook", ) => { - submit({ service, token }) - .then((res) => { - setSession(res.data.session); + mutateAsync(new OauthAuthenticateActionReq({ service, token })) + .then((res: GResponse) => { + setSession(res.data?.item?.session); if ((window as any).ReactNativeWebView) { (window as any).ReactNativeWebView.postMessage( - JSON.stringify(res.data), + JSON.stringify(res.data?.item), ); } if (BUILD_VARIABLES.DEFAULT_ROUTE) { diff --git a/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/AbacActionsDto.ts b/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/AbacActionsDto.ts index 2d7a572a4..ee69fe664 100644 --- a/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/AbacActionsDto.ts +++ b/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/AbacActionsDto.ts @@ -13,9 +13,6 @@ import { import { GsmProviderEntity, } from "./GsmProviderEntity" -import { - UserSessionDto, -} from "./UserSessionDto" export class QueryUserRoleWorkspacesResDtoRoles { public name?: string | null; public uniqueId?: string | null; @@ -24,34 +21,6 @@ import { */ public capabilities?: string[] | null; } -export class OauthAuthenticateActionReqDto { - /** - The token that Auth2 provider returned to the front-end, which will be used to validate the backend - */ - public token?: string | null; - /** - The service name, such as 'google' which later backend will use to authorize the token and create the user. - */ - public service?: string | null; -public static Fields = { - token: 'token', - service: 'service', -} -} -export class OauthAuthenticateActionResDto { - public session?: UserSessionDto | null; - sessionId?: string | null; - /** - The next possible action which is suggested. - */ - public next?: string[] | null; -public static Fields = { - sessionId: 'sessionId', - session$: 'session', - session: UserSessionDto.Fields, - next: 'next', -} -} export class QueryUserRoleWorkspacesActionResDto { public name?: string | null; /** diff --git a/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/OauthAuthenticate.ts b/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/OauthAuthenticate.ts new file mode 100644 index 000000000..97d35402e --- /dev/null +++ b/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/OauthAuthenticate.ts @@ -0,0 +1,516 @@ +import { GResponse } from "../../sdk/envelopes/index"; +import { UserSessionDto } from "./UserSessionDto"; +import { buildUrl } from "../../sdk/common/buildUrl"; +import { + fetchx, + handleFetchResponse, + type FetchxContext, + type PartialDeep, + type TypedRequestInit, + type TypedResponse, +} from "../../sdk/common/fetchx"; +import { type UseMutationOptions, useMutation } from "react-query"; +import { useFetchxContext } from "../../sdk/react/useFetchx"; +import { useState } from "react"; +import { withPrefix } from "../../sdk/common/withPrefix"; +/** + * Action to communicate with the action OauthAuthenticate + */ +export type OauthAuthenticateActionOptions = { + queryKey?: unknown[]; + qs?: URLSearchParams; +}; +export type OauthAuthenticateActionMutationOptions = Omit< + UseMutationOptions, + "mutationFn" +> & + OauthAuthenticateActionOptions & { + ctx?: FetchxContext; + onMessage?: (ev: MessageEvent) => void; + overrideUrl?: string; + headers?: Headers; + } & Partial<{ + creatorFn: (item: unknown) => OauthAuthenticateActionRes; + }>; +export const useOauthAuthenticateAction = ( + options?: OauthAuthenticateActionMutationOptions, +) => { + const globalCtx = useFetchxContext(); + const ctx = options?.ctx ?? globalCtx ?? undefined; + const [isCompleted, setCompleteState] = useState(false); + const [response, setResponse] = useState>(); + const fn = (body: OauthAuthenticateActionReq) => { + setCompleteState(false); + return OauthAuthenticateAction.Fetch( + { + body, + headers: options?.headers, + }, + { + creatorFn: options?.creatorFn, + qs: options?.qs, + ctx, + onMessage: options?.onMessage, + overrideUrl: options?.overrideUrl, + }, + ).then((x) => { + x.done.then(() => { + setCompleteState(true); + }); + setResponse(x.response); + return x.response.result; + }); + }; + const result = useMutation({ + mutationFn: fn, + ...(options || {}), + }); + return { + ...result, + isCompleted, + response, + }; +}; +/** + * OauthAuthenticateAction + */ +export class OauthAuthenticateAction { + // + static URL = "/passport/via-oauth"; + static NewUrl = (qs?: URLSearchParams) => + buildUrl(OauthAuthenticateAction.URL, undefined, qs); + static Method = "post"; + static Fetch$ = async ( + qs?: URLSearchParams, + ctx?: FetchxContext, + init?: TypedRequestInit, + overrideUrl?: string, + ) => { + return fetchx< + GResponse, + OauthAuthenticateActionReq, + unknown + >( + overrideUrl ?? OauthAuthenticateAction.NewUrl(qs), + { + method: OauthAuthenticateAction.Method, + ...(init || {}), + }, + ctx, + ); + }; + static Fetch = async ( + init?: TypedRequestInit, + { + creatorFn, + qs, + ctx, + onMessage, + overrideUrl, + }: { + creatorFn?: ((item: unknown) => OauthAuthenticateActionRes) | undefined; + qs?: URLSearchParams; + ctx?: FetchxContext; + onMessage?: (ev: MessageEvent) => void; + overrideUrl?: string; + } = { + creatorFn: (item) => new OauthAuthenticateActionRes(item), + }, + ) => { + creatorFn = creatorFn || ((item) => new OauthAuthenticateActionRes(item)); + const res = await OauthAuthenticateAction.Fetch$( + qs, + ctx, + init, + overrideUrl, + ); + return handleFetchResponse( + res, + (data) => { + const resp = new GResponse(); + if (creatorFn) { + resp.setCreator(creatorFn); + } + resp.inject(data); + return resp; + }, + onMessage, + init?.signal, + ); + }; + static Definition = { + name: "OauthAuthenticate", + url: "/passport/via-oauth", + method: "post", + description: + "When a token is got from a oauth service such as google, we send the token here to authenticate the user. To me seems this doesn't need to have 2FA or anything, so we return the session directly, or maybe there needs to be next step.", + in: { + fields: [ + { + name: "token", + description: + "The token that Auth2 provider returned to the front-end, which will be used to validate the backend", + type: "string", + }, + { + name: "service", + description: + "The service name, such as 'google' which later backend will use to authorize the token and create the user.", + type: "string", + }, + ], + }, + out: { + envelope: "GResponse", + fields: [ + { + name: "session", + type: "one", + target: "UserSessionDto", + }, + { + name: "next", + description: "The next possible action which is suggested.", + type: "slice", + primitive: "string", + }, + ], + }, + }; +} +/** + * The base class definition for oauthAuthenticateActionReq + **/ +export class OauthAuthenticateActionReq { + /** + * The token that Auth2 provider returned to the front-end, which will be used to validate the backend + * @type {string} + **/ + #token: string = ""; + /** + * The token that Auth2 provider returned to the front-end, which will be used to validate the backend + * @returns {string} + **/ + get token() { + return this.#token; + } + /** + * The token that Auth2 provider returned to the front-end, which will be used to validate the backend + * @type {string} + **/ + set token(value: string) { + this.#token = String(value); + } + setToken(value: string) { + this.token = value; + return this; + } + /** + * The service name, such as 'google' which later backend will use to authorize the token and create the user. + * @type {string} + **/ + #service: string = ""; + /** + * The service name, such as 'google' which later backend will use to authorize the token and create the user. + * @returns {string} + **/ + get service() { + return this.#service; + } + /** + * The service name, such as 'google' which later backend will use to authorize the token and create the user. + * @type {string} + **/ + set service(value: string) { + this.#service = String(value); + } + setService(value: string) { + this.service = value; + return this; + } + constructor(data: unknown = undefined) { + if (data === null || data === undefined) { + return; + } + if (typeof data === "string") { + this.applyFromObject(JSON.parse(data)); + } else if (this.#isJsonAppliable(data)) { + this.applyFromObject(data); + } else { + throw new Error( + "Instance cannot be created on an unknown value, check the content being passed. got: " + + typeof data, + ); + } + } + #isJsonAppliable(obj: unknown) { + const g = globalThis as unknown as { Buffer: any; Blob: any }; + const isBuffer = + typeof g.Buffer !== "undefined" && + typeof g.Buffer.isBuffer === "function" && + g.Buffer.isBuffer(obj); + const isBlob = typeof g.Blob !== "undefined" && obj instanceof g.Blob; + return ( + obj && + typeof obj === "object" && + !Array.isArray(obj) && + !isBuffer && + !(obj instanceof ArrayBuffer) && + !isBlob + ); + } + /** + * casts the fields of a javascript object into the class properties one by one + **/ + applyFromObject(data = {}) { + const d = data as Partial; + if (d.token !== undefined) { + this.token = d.token; + } + if (d.service !== undefined) { + this.service = d.service; + } + } + /** + * Special toJSON override, since the field are private, + * Json stringify won't see them unless we mention it explicitly. + **/ + toJSON() { + return { + token: this.#token, + service: this.#service, + }; + } + toString() { + return JSON.stringify(this); + } + static get Fields() { + return { + token: "token", + service: "service", + }; + } + /** + * Creates an instance of OauthAuthenticateActionReq, and possibleDtoObject + * needs to satisfy the type requirement fully, otherwise typescript compile would + * be complaining. + **/ + static from(possibleDtoObject: OauthAuthenticateActionReqType) { + return new OauthAuthenticateActionReq(possibleDtoObject); + } + /** + * Creates an instance of OauthAuthenticateActionReq, and partialDtoObject + * needs to satisfy the type, but partially, and rest of the content would + * be constructed according to data types and nullability. + **/ + static with(partialDtoObject: PartialDeep) { + return new OauthAuthenticateActionReq(partialDtoObject); + } + copyWith( + partial: PartialDeep, + ): InstanceType { + return new OauthAuthenticateActionReq({ ...this.toJSON(), ...partial }); + } + clone(): InstanceType { + return new OauthAuthenticateActionReq(this.toJSON()); + } +} +export abstract class OauthAuthenticateActionReqFactory { + abstract create(data: unknown): OauthAuthenticateActionReq; +} +/** + * The base type definition for oauthAuthenticateActionReq + **/ +export type OauthAuthenticateActionReqType = { + /** + * The token that Auth2 provider returned to the front-end, which will be used to validate the backend + * @type {string} + **/ + token: string; + /** + * The service name, such as 'google' which later backend will use to authorize the token and create the user. + * @type {string} + **/ + service: string; +}; +// eslint-disable-next-line @typescript-eslint/no-namespace +export namespace OauthAuthenticateActionReqType {} +/** + * The base class definition for oauthAuthenticateActionRes + **/ +export class OauthAuthenticateActionRes { + /** + * + * @type {UserSessionDto} + **/ + #session!: UserSessionDto; + /** + * + * @returns {UserSessionDto} + **/ + get session() { + return this.#session; + } + /** + * + * @type {UserSessionDto} + **/ + set session(value: UserSessionDto) { + // For objects, the sub type needs to always be instance of the sub class. + if (value instanceof UserSessionDto) { + this.#session = value; + } else { + this.#session = new UserSessionDto(value); + } + } + setSession(value: UserSessionDto) { + this.session = value; + return this; + } + /** + * The next possible action which is suggested. + * @type {string[]} + **/ + #next: string[] = []; + /** + * The next possible action which is suggested. + * @returns {string[]} + **/ + get next() { + return this.#next; + } + /** + * The next possible action which is suggested. + * @type {string[]} + **/ + set next(value: string[]) { + this.#next = value; + } + setNext(value: string[]) { + this.next = value; + return this; + } + constructor(data: unknown = undefined) { + if (data === null || data === undefined) { + this.#lateInitFields(); + return; + } + if (typeof data === "string") { + this.applyFromObject(JSON.parse(data)); + } else if (this.#isJsonAppliable(data)) { + this.applyFromObject(data); + } else { + throw new Error( + "Instance cannot be created on an unknown value, check the content being passed. got: " + + typeof data, + ); + } + } + #isJsonAppliable(obj: unknown) { + const g = globalThis as unknown as { Buffer: any; Blob: any }; + const isBuffer = + typeof g.Buffer !== "undefined" && + typeof g.Buffer.isBuffer === "function" && + g.Buffer.isBuffer(obj); + const isBlob = typeof g.Blob !== "undefined" && obj instanceof g.Blob; + return ( + obj && + typeof obj === "object" && + !Array.isArray(obj) && + !isBuffer && + !(obj instanceof ArrayBuffer) && + !isBlob + ); + } + /** + * casts the fields of a javascript object into the class properties one by one + **/ + applyFromObject(data = {}) { + const d = data as Partial; + if (d.session !== undefined) { + this.session = d.session; + } + if (d.next !== undefined) { + this.next = d.next; + } + this.#lateInitFields(data); + } + /** + * These are the class instances, which need to be initialised, regardless of the constructor incoming data + **/ + #lateInitFields(data = {}) { + const d = data as Partial; + if (!(d.session instanceof UserSessionDto)) { + this.session = new UserSessionDto(d.session || {}); + } + } + /** + * Special toJSON override, since the field are private, + * Json stringify won't see them unless we mention it explicitly. + **/ + toJSON() { + return { + session: this.#session, + next: this.#next, + }; + } + toString() { + return JSON.stringify(this); + } + static get Fields() { + return { + session$: "session", + get session() { + return withPrefix("session", UserSessionDto.Fields); + }, + next$: "next", + get next() { + return "next[:i]"; + }, + }; + } + /** + * Creates an instance of OauthAuthenticateActionRes, and possibleDtoObject + * needs to satisfy the type requirement fully, otherwise typescript compile would + * be complaining. + **/ + static from(possibleDtoObject: OauthAuthenticateActionResType) { + return new OauthAuthenticateActionRes(possibleDtoObject); + } + /** + * Creates an instance of OauthAuthenticateActionRes, and partialDtoObject + * needs to satisfy the type, but partially, and rest of the content would + * be constructed according to data types and nullability. + **/ + static with(partialDtoObject: PartialDeep) { + return new OauthAuthenticateActionRes(partialDtoObject); + } + copyWith( + partial: PartialDeep, + ): InstanceType { + return new OauthAuthenticateActionRes({ ...this.toJSON(), ...partial }); + } + clone(): InstanceType { + return new OauthAuthenticateActionRes(this.toJSON()); + } +} +export abstract class OauthAuthenticateActionResFactory { + abstract create(data: unknown): OauthAuthenticateActionRes; +} +/** + * The base type definition for oauthAuthenticateActionRes + **/ +export type OauthAuthenticateActionResType = { + /** + * + * @type {UserSessionDto} + **/ + session: UserSessionDto; + /** + * The next possible action which is suggested. + * @type {string[]} + **/ + next: string[]; +}; +// eslint-disable-next-line @typescript-eslint/no-namespace +export namespace OauthAuthenticateActionResType {} diff --git a/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/usePostPassportViaOauth.ts b/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/usePostPassportViaOauth.ts deleted file mode 100644 index dcbb0e176..000000000 --- a/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/usePostPassportViaOauth.ts +++ /dev/null @@ -1,92 +0,0 @@ -/* -* Generated by fireback 1.2.5 -* Written by Ali Torabi. -* The code is generated for react-query@v3.39.3 -* Checkout the repository for licenses and contribution: https://github.com/torabian/fireback -*/ -import { type FormikHelpers } from "formik"; -import { useContext, useState, useRef } from "react"; -import { useMutation } from "react-query"; -import { - execApiFn, - type IResponse, - mutationErrorsToFormik, - type IResponseList -} from "../../core/http-tools"; -import { - RemoteQueryContext, - type UseRemoteQuery, - queryBeforeSend, -} from "../../core/react-tools"; - import { - OauthAuthenticateActionReqDto, - OauthAuthenticateActionResDto, - } from "../abac/AbacActionsDto" -export function usePostPassportViaOauth( - props?: UseRemoteQuery & { - } -) { - let {queryClient, query, execFnOverride} = props || {}; - query = query || {} - const { options, execFn } = useContext(RemoteQueryContext); - // Calculare the function which will do the remote calls. - // We consider to use global override, this specific override, or default which - // comes with the sdk. - const rpcFn = execFnOverride - ? execFnOverride(options) - : execFn - ? execFn(options) - : execApiFn(options); - // Url of the remote affix. - const url = "/passport/via-oauth".substr(1); - let computedUrl = `${url}?${new URLSearchParams( - queryBeforeSend(query) - ).toString()}`; - let completeRouteUrls = true; - // Attach the details of the request to the fn - const fn = (body: any) => rpcFn("POST", computedUrl, body); - const mutation = useMutation< - IResponse, - IResponse, - Partial - >(fn); - // Only entities are having a store in front-end - const fnUpdater = ( - data: IResponseList | undefined, - item: IResponse - ) => { - if (!data) { - return { - data: { items: [] }, - }; - } - // To me it seems this is not a good or any correct strategy to update the store. - // When we are posting, we want to add it there, that's it. Not updating it. - // We have patch, but also posting with ID is possible. - if (data.data && item?.data) { - data.data.items = [item.data, ...(data?.data?.items || [])]; - } - return data; - }; - const submit = ( - values: Partial, - formikProps?: FormikHelpers> - ): Promise> => { - return new Promise((resolve, reject) => { - mutation.mutate(values, { - onSuccess(response: IResponse) { - queryClient?.setQueryData>( - "*abac.OauthAuthenticateActionResDto", - (data) => fnUpdater(data, response) as any - ); - resolve(response); - }, - onError(error: any) { - formikProps?.setErrors(mutationErrorsToFormik(error)); - reject(error); - }, - }); - }); - }; - return { mutation, submit, fnUpdater }; -} From 423dd5a0bef782c6b16386a755f092192fb50adb Mon Sep 17 00:00:00 2001 From: Ali Date: Tue, 14 Apr 2026 23:55:50 +0200 Subject: [PATCH 2/3] Migrate the signout --- e2e/react-bed/src/sdk/modules/abac/Signout.ts | 405 ++++++++++++++++++ .../modules/abac/usePostPassportSignout.ts | 88 ---- modules/abac/AbacCustomActions.dyno.go | 88 ++-- modules/abac/AbacModule3.yml | 19 +- modules/abac/SignoutAction.dyno.go | 310 ++++++++++++++ modules/abac/SignoutAction.go | 16 +- .../fireback/sdk/modules/abac/Signout.ts | 405 ++++++++++++++++++ .../modules/abac/usePostPassportSignout.ts | 88 ---- 8 files changed, 1180 insertions(+), 239 deletions(-) create mode 100644 e2e/react-bed/src/sdk/modules/abac/Signout.ts delete mode 100644 e2e/react-bed/src/sdk/modules/abac/usePostPassportSignout.ts create mode 100644 modules/abac/SignoutAction.dyno.go create mode 100644 modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/Signout.ts delete mode 100644 modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/usePostPassportSignout.ts diff --git a/e2e/react-bed/src/sdk/modules/abac/Signout.ts b/e2e/react-bed/src/sdk/modules/abac/Signout.ts new file mode 100644 index 000000000..ddf446336 --- /dev/null +++ b/e2e/react-bed/src/sdk/modules/abac/Signout.ts @@ -0,0 +1,405 @@ +import { GResponse } from "../../sdk/envelopes/index"; +import { buildUrl } from "../../sdk/common/buildUrl"; +import { + fetchx, + handleFetchResponse, + type FetchxContext, + type PartialDeep, + type TypedRequestInit, + type TypedResponse, +} from "../../sdk/common/fetchx"; +import { type UseMutationOptions, useMutation } from "react-query"; +import { useFetchxContext } from "../../sdk/react/useFetchx"; +import { useState } from "react"; +/** + * Action to communicate with the action Signout + */ +export type SignoutActionOptions = { + queryKey?: unknown[]; + qs?: URLSearchParams; +}; +export type SignoutActionMutationOptions = Omit< + UseMutationOptions, + "mutationFn" +> & + SignoutActionOptions & { + ctx?: FetchxContext; + onMessage?: (ev: MessageEvent) => void; + overrideUrl?: string; + headers?: Headers; + } & Partial<{ + creatorFn: (item: unknown) => SignoutActionRes; + }>; +export const useSignoutAction = (options?: SignoutActionMutationOptions) => { + const globalCtx = useFetchxContext(); + const ctx = options?.ctx ?? globalCtx ?? undefined; + const [isCompleted, setCompleteState] = useState(false); + const [response, setResponse] = useState>(); + const fn = (body: SignoutActionReq) => { + setCompleteState(false); + return SignoutAction.Fetch( + { + body, + headers: options?.headers, + }, + { + creatorFn: options?.creatorFn, + qs: options?.qs, + ctx, + onMessage: options?.onMessage, + overrideUrl: options?.overrideUrl, + }, + ).then((x) => { + x.done.then(() => { + setCompleteState(true); + }); + setResponse(x.response); + return x.response.result; + }); + }; + const result = useMutation({ + mutationFn: fn, + ...(options || {}), + }); + return { + ...result, + isCompleted, + response, + }; +}; +/** + * SignoutAction + */ +export class SignoutAction { + // + static URL = "/passport/signout"; + static NewUrl = (qs?: URLSearchParams) => + buildUrl(SignoutAction.URL, undefined, qs); + static Method = "post"; + static Fetch$ = async ( + qs?: URLSearchParams, + ctx?: FetchxContext, + init?: TypedRequestInit, + overrideUrl?: string, + ) => { + return fetchx, SignoutActionReq, unknown>( + overrideUrl ?? SignoutAction.NewUrl(qs), + { + method: SignoutAction.Method, + ...(init || {}), + }, + ctx, + ); + }; + static Fetch = async ( + init?: TypedRequestInit, + { + creatorFn, + qs, + ctx, + onMessage, + overrideUrl, + }: { + creatorFn?: ((item: unknown) => SignoutActionRes) | undefined; + qs?: URLSearchParams; + ctx?: FetchxContext; + onMessage?: (ev: MessageEvent) => void; + overrideUrl?: string; + } = { + creatorFn: (item) => new SignoutActionRes(item), + }, + ) => { + creatorFn = creatorFn || ((item) => new SignoutActionRes(item)); + const res = await SignoutAction.Fetch$(qs, ctx, init, overrideUrl); + return handleFetchResponse( + res, + (data) => { + const resp = new GResponse(); + if (creatorFn) { + resp.setCreator(creatorFn); + } + resp.inject(data); + return resp; + }, + onMessage, + init?.signal, + ); + }; + static Definition = { + name: "Signout", + url: "/passport/signout", + method: "post", + description: + "Signout the user, clears cookies or does anything else if needed.", + in: { + fields: [ + { + name: "clear", + type: "bool?", + }, + ], + }, + out: { + envelope: "GResponse", + fields: [ + { + name: "okay", + type: "bool", + }, + ], + }, + }; +} +/** + * The base class definition for signoutActionReq + **/ +export class SignoutActionReq { + /** + * + * @type {boolean} + **/ + #clear?: boolean | null = undefined; + /** + * + * @returns {boolean} + **/ + get clear() { + return this.#clear; + } + /** + * + * @type {boolean} + **/ + set clear(value: boolean | null | undefined) { + const correctType = + value === true || + value === false || + value === undefined || + value === null; + this.#clear = correctType ? value : Boolean(value); + } + setClear(value: boolean | null | undefined) { + this.clear = value; + return this; + } + constructor(data: unknown = undefined) { + if (data === null || data === undefined) { + return; + } + if (typeof data === "string") { + this.applyFromObject(JSON.parse(data)); + } else if (this.#isJsonAppliable(data)) { + this.applyFromObject(data); + } else { + throw new Error( + "Instance cannot be created on an unknown value, check the content being passed. got: " + + typeof data, + ); + } + } + #isJsonAppliable(obj: unknown) { + const g = globalThis as unknown as { Buffer: any; Blob: any }; + const isBuffer = + typeof g.Buffer !== "undefined" && + typeof g.Buffer.isBuffer === "function" && + g.Buffer.isBuffer(obj); + const isBlob = typeof g.Blob !== "undefined" && obj instanceof g.Blob; + return ( + obj && + typeof obj === "object" && + !Array.isArray(obj) && + !isBuffer && + !(obj instanceof ArrayBuffer) && + !isBlob + ); + } + /** + * casts the fields of a javascript object into the class properties one by one + **/ + applyFromObject(data = {}) { + const d = data as Partial; + if (d.clear !== undefined) { + this.clear = d.clear; + } + } + /** + * Special toJSON override, since the field are private, + * Json stringify won't see them unless we mention it explicitly. + **/ + toJSON() { + return { + clear: this.#clear, + }; + } + toString() { + return JSON.stringify(this); + } + static get Fields() { + return { + clear: "clear", + }; + } + /** + * Creates an instance of SignoutActionReq, and possibleDtoObject + * needs to satisfy the type requirement fully, otherwise typescript compile would + * be complaining. + **/ + static from(possibleDtoObject: SignoutActionReqType) { + return new SignoutActionReq(possibleDtoObject); + } + /** + * Creates an instance of SignoutActionReq, and partialDtoObject + * needs to satisfy the type, but partially, and rest of the content would + * be constructed according to data types and nullability. + **/ + static with(partialDtoObject: PartialDeep) { + return new SignoutActionReq(partialDtoObject); + } + copyWith( + partial: PartialDeep, + ): InstanceType { + return new SignoutActionReq({ ...this.toJSON(), ...partial }); + } + clone(): InstanceType { + return new SignoutActionReq(this.toJSON()); + } +} +export abstract class SignoutActionReqFactory { + abstract create(data: unknown): SignoutActionReq; +} +/** + * The base type definition for signoutActionReq + **/ +export type SignoutActionReqType = { + /** + * + * @type {boolean} + **/ + clear?: boolean; +}; +// eslint-disable-next-line @typescript-eslint/no-namespace +export namespace SignoutActionReqType {} +/** + * The base class definition for signoutActionRes + **/ +export class SignoutActionRes { + /** + * + * @type {boolean} + **/ + #okay!: boolean; + /** + * + * @returns {boolean} + **/ + get okay() { + return this.#okay; + } + /** + * + * @type {boolean} + **/ + set okay(value: boolean) { + this.#okay = Boolean(value); + } + setOkay(value: boolean) { + this.okay = value; + return this; + } + constructor(data: unknown = undefined) { + if (data === null || data === undefined) { + return; + } + if (typeof data === "string") { + this.applyFromObject(JSON.parse(data)); + } else if (this.#isJsonAppliable(data)) { + this.applyFromObject(data); + } else { + throw new Error( + "Instance cannot be created on an unknown value, check the content being passed. got: " + + typeof data, + ); + } + } + #isJsonAppliable(obj: unknown) { + const g = globalThis as unknown as { Buffer: any; Blob: any }; + const isBuffer = + typeof g.Buffer !== "undefined" && + typeof g.Buffer.isBuffer === "function" && + g.Buffer.isBuffer(obj); + const isBlob = typeof g.Blob !== "undefined" && obj instanceof g.Blob; + return ( + obj && + typeof obj === "object" && + !Array.isArray(obj) && + !isBuffer && + !(obj instanceof ArrayBuffer) && + !isBlob + ); + } + /** + * casts the fields of a javascript object into the class properties one by one + **/ + applyFromObject(data = {}) { + const d = data as Partial; + if (d.okay !== undefined) { + this.okay = d.okay; + } + } + /** + * Special toJSON override, since the field are private, + * Json stringify won't see them unless we mention it explicitly. + **/ + toJSON() { + return { + okay: this.#okay, + }; + } + toString() { + return JSON.stringify(this); + } + static get Fields() { + return { + okay: "okay", + }; + } + /** + * Creates an instance of SignoutActionRes, and possibleDtoObject + * needs to satisfy the type requirement fully, otherwise typescript compile would + * be complaining. + **/ + static from(possibleDtoObject: SignoutActionResType) { + return new SignoutActionRes(possibleDtoObject); + } + /** + * Creates an instance of SignoutActionRes, and partialDtoObject + * needs to satisfy the type, but partially, and rest of the content would + * be constructed according to data types and nullability. + **/ + static with(partialDtoObject: PartialDeep) { + return new SignoutActionRes(partialDtoObject); + } + copyWith( + partial: PartialDeep, + ): InstanceType { + return new SignoutActionRes({ ...this.toJSON(), ...partial }); + } + clone(): InstanceType { + return new SignoutActionRes(this.toJSON()); + } +} +export abstract class SignoutActionResFactory { + abstract create(data: unknown): SignoutActionRes; +} +/** + * The base type definition for signoutActionRes + **/ +export type SignoutActionResType = { + /** + * + * @type {boolean} + **/ + okay: boolean; +}; +// eslint-disable-next-line @typescript-eslint/no-namespace +export namespace SignoutActionResType {} diff --git a/e2e/react-bed/src/sdk/modules/abac/usePostPassportSignout.ts b/e2e/react-bed/src/sdk/modules/abac/usePostPassportSignout.ts deleted file mode 100644 index 38b54c813..000000000 --- a/e2e/react-bed/src/sdk/modules/abac/usePostPassportSignout.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* -* Generated by fireback 1.2.5 -* Written by Ali Torabi. -* The code is generated for react-query@v3.39.3 -* Checkout the repository for licenses and contribution: https://github.com/torabian/fireback -*/ -import { type FormikHelpers } from "formik"; -import { useContext, useState, useRef } from "react"; -import { useMutation } from "react-query"; -import { - execApiFn, - type IResponse, - mutationErrorsToFormik, - type IResponseList -} from "../../core/http-tools"; -import { - RemoteQueryContext, - type UseRemoteQuery, - queryBeforeSend, -} from "../../core/react-tools"; -export function usePostPassportSignout( - props?: UseRemoteQuery & { - } -) { - let {queryClient, query, execFnOverride} = props || {}; - query = query || {} - const { options, execFn } = useContext(RemoteQueryContext); - // Calculare the function which will do the remote calls. - // We consider to use global override, this specific override, or default which - // comes with the sdk. - const rpcFn = execFnOverride - ? execFnOverride(options) - : execFn - ? execFn(options) - : execApiFn(options); - // Url of the remote affix. - const url = "/passport/signout".substr(1); - let computedUrl = `${url}?${new URLSearchParams( - queryBeforeSend(query) - ).toString()}`; - let completeRouteUrls = true; - // Attach the details of the request to the fn - const fn = (body: any) => rpcFn("POST", computedUrl, body); - const mutation = useMutation< - IResponse, - IResponse, - any - >(fn); - // Only entities are having a store in front-end - const fnUpdater = ( - data: IResponseList | undefined, - item: IResponse - ) => { - if (!data) { - return { - data: { items: [] }, - }; - } - // To me it seems this is not a good or any correct strategy to update the store. - // When we are posting, we want to add it there, that's it. Not updating it. - // We have patch, but also posting with ID is possible. - if (data.data && item?.data) { - data.data.items = [item.data, ...(data?.data?.items || [])]; - } - return data; - }; - const submit = ( - values: any, - formikProps?: FormikHelpers> - ): Promise> => { - return new Promise((resolve, reject) => { - mutation.mutate(values, { - onSuccess(response: IResponse) { - queryClient?.setQueryData>( - "string", - (data) => fnUpdater(data, response) as any - ); - resolve(response); - }, - onError(error: any) { - formikProps?.setErrors(mutationErrorsToFormik(error)); - reject(error); - }, - }); - }); - }; - return { mutation, submit, fnUpdater }; -} diff --git a/modules/abac/AbacCustomActions.dyno.go b/modules/abac/AbacCustomActions.dyno.go index 6cec8373d..acd01a75a 100644 --- a/modules/abac/AbacCustomActions.dyno.go +++ b/modules/abac/AbacCustomActions.dyno.go @@ -112,36 +112,6 @@ var QueryUserRoleWorkspacesActionCmd cli.Command = cli.Command{ ) }, } -var SignoutSecurityModel *fireback.SecurityModel = nil - -type signoutActionImpSig func( - q fireback.QueryDSL) (string, - *fireback.IError, -) - -var SignoutActionImp signoutActionImpSig - -func SignoutActionFn( - q fireback.QueryDSL, -) ( - string, - *fireback.IError, -) { - if SignoutActionImp == nil { - return "", nil - } - return SignoutActionImp(q) -} - -var SignoutActionCmd cli.Command = cli.Command{ - Name: "signout", - Usage: `Signout the user, clears cookies or does anything else if needed.`, - Action: func(c *cli.Context) { - query := fireback.CommonCliQueryDSLBuilderAuthorize(c, SignoutSecurityModel) - result, err := SignoutActionFn(query) - fireback.HandleActionInCli(c, result, err, map[string]map[string]string{}) - }, -} var ImportUserSecurityModel *fireback.SecurityModel = nil type ImportUserActionReqDto struct { @@ -627,6 +597,41 @@ var GsmSendSmsWithProviderActionCmd cli.Command = cli.Command{ /// For emi, we also need to print the handlers, and also print security model, which is a part of Fireback /// and not available in Emi (won't be) +var SignoutImpl func(c SignoutActionRequest, query fireback.QueryDSL) (*SignoutActionResponse, error) = nil +var SignoutSecurityModel *fireback.SecurityModel = nil + +// This can be both used as cli and http +var SignoutActionDef fireback.Module3Action = fireback.Module3Action{ + // Temporary until fireback code gen is deleted. + Skip: true, + CliName: SignoutActionMeta().CliName, + Description: SignoutActionMeta().Description, + Name: SignoutActionMeta().Name, + Method: SignoutActionMeta().Method, + Url: SignoutActionMeta().URL, + SecurityModel: SignoutSecurityModel, + // post + Handlers: []gin.HandlerFunc{ + func(m *gin.Context) { + req := SignoutActionRequest{ + QueryParams: m.Request.URL.Query(), + Headers: m.Request.Header, + GinCtx: m, + } + query := fireback.ExtractQueryDslFromGinContext(m) + fireback.ReadGinRequestBodyAndCastToGoStruct(m, &req.Body, query) + resp, err := SignoutImpl(req, query) + fireback.WriteActionResponseToGin(m, resp, err) + }, + }, + CliAction: func(c *cli.Context, security *fireback.SecurityModel) error { + query := fireback.CommonCliQueryDSLBuilderAuthorize(c, SignoutSecurityModel) + req := SignoutActionRequest{} + resp, err := SignoutImpl(req, query) + fireback.HandleActionInCli2(c, resp, err, map[string]map[string]string{}) + return nil + }, +} var OauthAuthenticateImpl func(c OauthAuthenticateActionRequest, query fireback.QueryDSL) (*OauthAuthenticateActionResponse, error) = nil var OauthAuthenticateSecurityModel *fireback.SecurityModel = nil @@ -1130,6 +1135,7 @@ var OsLoginAuthenticateActionDef fireback.Module3Action = fireback.Module3Action func AbacCustomActions() []fireback.Module3Action { routes := []fireback.Module3Action{ //// Let's add actions for emi acts + SignoutActionDef, OauthAuthenticateActionDef, AcceptInviteActionDef, ConfirmClassicPassportTotpActionDef, @@ -1191,25 +1197,6 @@ func AbacCustomActions() []fireback.Module3Action { Entity: "QueryUserRoleWorkspacesActionResDto", }, }, - { - Method: "POST", - Url: "/passport/signout", - SecurityModel: SignoutSecurityModel, - Name: "signout", - Description: "Signout the user, clears cookies or does anything else if needed.", - Handlers: []gin.HandlerFunc{ - func(c *gin.Context) { - // POST_ONE - post - fireback.HttpPost(c, SignoutActionFn) - }, - }, - Format: "POST_ONE", - Action: SignoutActionFn, - ResponseEntity: string(""), - Out: &fireback.Module3ActionBody{ - Entity: "", - }, - }, { Method: "POST", Url: "/user/import", @@ -1355,7 +1342,6 @@ func AbacCustomActions() []fireback.Module3Action { var AbacCustomActionsCli = []cli.Command{ UserInvitationsActionCmd, QueryUserRoleWorkspacesActionCmd, - SignoutActionCmd, ImportUserActionCmd, SendEmailActionCmd, SendEmailWithProviderActionCmd, @@ -1377,6 +1363,7 @@ var AbacCliActionsBundle = &fireback.CliActionsBundle{ Usage: `Fireback ABAC module provides user authentication, basic support for most projects, including advanced role, permission module on top of fireback core module. Using this module is not essential to create fireback projects, but provides a great possibility to avoid building most user management flow. Some other helpers, such as timezone are added here.`, // Here we will include entities actions, as well as module level actions Subcommands: cli.Commands{ + SignoutActionDef.ToCli(), OauthAuthenticateActionDef.ToCli(), AcceptInviteActionDef.ToCli(), ConfirmClassicPassportTotpActionDef.ToCli(), @@ -1393,7 +1380,6 @@ var AbacCliActionsBundle = &fireback.CliActionsBundle{ OsLoginAuthenticateActionDef.ToCli(), UserInvitationsActionCmd, QueryUserRoleWorkspacesActionCmd, - SignoutActionCmd, ImportUserActionCmd, SendEmailActionCmd, SendEmailWithProviderActionCmd, diff --git a/modules/abac/AbacModule3.yml b/modules/abac/AbacModule3.yml index 224c2d789..8032dd050 100644 --- a/modules/abac/AbacModule3.yml +++ b/modules/abac/AbacModule3.yml @@ -156,6 +156,20 @@ dtom: type: string? acts: + - name: Signout + url: /passport/signout + description: Signout the user, clears cookies or does anything else if needed. + method: post + in: + fields: + - name: clear + type: bool? + out: + envelope: GResponse + fields: + - name: okay + type: bool + - name: OauthAuthenticate description: When a token is got from a oauth service such as google, we send the token here to authenticate the user. @@ -631,11 +645,6 @@ actions: description: Capabilities related to this role which are available primitive: string - - name: signout - url: /passport/signout - description: Signout the user, clears cookies or does anything else if needed. - method: post - - name: importUser url: /user/import method: post diff --git a/modules/abac/SignoutAction.dyno.go b/modules/abac/SignoutAction.dyno.go new file mode 100644 index 000000000..be7234fa2 --- /dev/null +++ b/modules/abac/SignoutAction.dyno.go @@ -0,0 +1,310 @@ +package abac + +import ( + "bytes" + "encoding/json" + "fmt" + "github.com/gin-gonic/gin" + "github.com/torabian/emi/emigo" + "github.com/urfave/cli" + "io" + "net/http" + "net/url" +) + +/** +* Action to communicate with the action SignoutAction + */ +func SignoutActionMeta() struct { + Name string + CliName string + URL string + Method string + Description string +} { + return struct { + Name string + CliName string + URL string + Method string + Description string + }{ + Name: "SignoutAction", + CliName: "signout-action", + URL: "/passport/signout", + Method: "POST", + Description: `Signout the user, clears cookies or does anything else if needed.`, + } +} +func GetSignoutActionReqCliFlags(prefix string) []emigo.CliFlag { + return []emigo.CliFlag{ + { + Name: prefix + "clear", + Type: "bool?", + }, + } +} +func CastSignoutActionReqFromCli(c emigo.CliCastable) SignoutActionReq { + data := SignoutActionReq{} + if c.IsSet("clear") { + emigo.ParseNullable(c.String("clear"), &data.Clear) + } + return data +} + +// The base class definition for signoutActionReq +type SignoutActionReq struct { + Clear emigo.Nullable[bool] `json:"clear" yaml:"clear"` +} + +func (x *SignoutActionReq) Json() string { + if x != nil { + str, _ := json.MarshalIndent(x, "", " ") + return string(str) + } + return "" +} +func GetSignoutActionResCliFlags(prefix string) []emigo.CliFlag { + return []emigo.CliFlag{ + { + Name: prefix + "okay", + Type: "bool", + }, + } +} +func CastSignoutActionResFromCli(c emigo.CliCastable) SignoutActionRes { + data := SignoutActionRes{} + if c.IsSet("okay") { + data.Okay = bool(c.Bool("okay")) + } + return data +} + +// The base class definition for signoutActionRes +type SignoutActionRes struct { + Okay bool `json:"okay" yaml:"okay"` +} + +func (x *SignoutActionRes) Json() string { + if x != nil { + str, _ := json.MarshalIndent(x, "", " ") + return string(str) + } + return "" +} + +type SignoutActionResponse struct { + StatusCode int + Headers map[string]string + Payload interface{} +} + +func (x *SignoutActionResponse) SetContentType(contentType string) *SignoutActionResponse { + if x.Headers == nil { + x.Headers = make(map[string]string) + } + x.Headers["Content-Type"] = contentType + return x +} +func (x *SignoutActionResponse) AsStream(r io.Reader, contentType string) *SignoutActionResponse { + x.Payload = r + x.SetContentType(contentType) + return x +} +func (x *SignoutActionResponse) AsJSON(payload any) *SignoutActionResponse { + x.Payload = payload + x.SetContentType("application/json") + return x +} +func (x *SignoutActionResponse) AsHTML(payload string) *SignoutActionResponse { + x.Payload = payload + x.SetContentType("text/html; charset=utf-8") + return x +} +func (x *SignoutActionResponse) AsBytes(payload []byte) *SignoutActionResponse { + x.Payload = payload + x.SetContentType("application/octet-stream") + return x +} +func (x SignoutActionResponse) GetStatusCode() int { + return x.StatusCode +} +func (x SignoutActionResponse) GetRespHeaders() map[string]string { + return x.Headers +} +func (x SignoutActionResponse) GetPayload() interface{} { + return x.Payload +} + +// SignoutActionRaw registers a raw Gin route for the SignoutAction action. +// This gives the developer full control over middleware, handlers, and response handling. +func SignoutActionRaw(r *gin.Engine, handlers ...gin.HandlerFunc) { + meta := SignoutActionMeta() + r.Handle(meta.Method, meta.URL, handlers...) +} + +type SignoutActionRequestSig = func(c SignoutActionRequest) (*SignoutActionResponse, error) + +// SignoutActionHandler returns the HTTP method, route URL, and a typed Gin handler for the SignoutAction action. +// Developers implement their business logic as a function that receives a typed request object +// and returns either an *ActionResponse or nil. JSON marshalling, headers, and errors are handled automatically. +func SignoutActionHandler( + handler SignoutActionRequestSig, +) (method, url string, h gin.HandlerFunc) { + meta := SignoutActionMeta() + return meta.Method, meta.URL, func(m *gin.Context) { + var body SignoutActionReq + if err := m.ShouldBindJSON(&body); err != nil { + m.JSON(http.StatusBadRequest, gin.H{"error": "invalid JSON: " + err.Error()}) + return + } + // Build typed request wrapper + req := SignoutActionRequest{ + Body: body, + QueryParams: m.Request.URL.Query(), + Headers: m.Request.Header, + GinCtx: m, + } + resp, err := handler(req) + if err != nil { + m.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) + return + } + // If the handler returned nil (and no error), it means the response was handled manually. + if resp == nil { + return + } + // Apply headers + for k, v := range resp.Headers { + m.Header(k, v) + } + // Apply status and payload + status := resp.StatusCode + if status == 0 { + status = http.StatusOK + } + if resp.Payload != nil { + m.JSON(status, resp.Payload) + } else { + m.Status(status) + } + } +} + +// SignoutAction is a high-level convenience wrapper around SignoutActionHandler. +// It automatically constructs and registers the typed route on the Gin engine. +// Use this when you don't need custom middleware or route grouping. +func SignoutActionGin(r gin.IRoutes, handler SignoutActionRequestSig) { + method, url, h := SignoutActionHandler(handler) + r.Handle(method, url, h) +} + +/** + * Query parameters for SignoutAction + */ +// Query wrapper with private fields +type SignoutActionQuery struct { + values url.Values + mapped map[string]interface{} + // Typesafe fields +} + +func SignoutActionQueryFromString(rawQuery string) SignoutActionQuery { + v := SignoutActionQuery{} + values, _ := url.ParseQuery(rawQuery) + mapped := map[string]interface{}{} + if result, err := emigo.UnmarshalQs(rawQuery); err == nil { + mapped = result + } + decoder, err := emigo.NewDecoder(&emigo.DecoderConfig{ + TagName: "json", // reuse json tags + WeaklyTypedInput: true, // "1" -> int, "true" -> bool + Result: &v, + }) + if err == nil { + _ = decoder.Decode(mapped) + } + v.values = values + v.mapped = mapped + return v +} +func SignoutActionQueryFromGin(c *gin.Context) SignoutActionQuery { + return SignoutActionQueryFromString(c.Request.URL.RawQuery) +} +func SignoutActionQueryFromHttp(r *http.Request) SignoutActionQuery { + return SignoutActionQueryFromString(r.URL.RawQuery) +} +func (q SignoutActionQuery) Values() url.Values { + return q.values +} +func (q SignoutActionQuery) Mapped() map[string]interface{} { + return q.mapped +} +func (q *SignoutActionQuery) SetValues(v url.Values) { + q.values = v +} +func (q *SignoutActionQuery) SetMapped(m map[string]interface{}) { + q.mapped = m +} + +type SignoutActionRequest struct { + Body SignoutActionReq + QueryParams url.Values + Headers http.Header + GinCtx *gin.Context + CliCtx *cli.Context +} +type SignoutActionResult struct { + resp *http.Response // embed original response + Payload interface{} +} + +func SignoutActionCall( + req SignoutActionRequest, + config *emigo.APIClient, // optional pre-built request +) (*SignoutActionResult, error) { + var httpReq *http.Request + if config == nil || config.Httpr == nil { + meta := SignoutActionMeta() + baseURL := meta.URL + // Build final URL with query string + u, err := url.Parse(baseURL) + if err != nil { + return nil, err + } + // if UrlValues present, encode and append + if len(req.QueryParams) > 0 { + u.RawQuery = req.QueryParams.Encode() + } + bodyBytes, err := json.Marshal(req.Body) + if err != nil { + return nil, err + } + req0, err := http.NewRequest(meta.Method, u.String(), bytes.NewReader(bodyBytes)) + if err != nil { + return nil, err + } + httpReq = req0 + } else { + httpReq = config.Httpr + } + httpReq.Header = req.Headers + resp, err := http.DefaultClient.Do(httpReq) + if err != nil { + return nil, err + } + var result SignoutActionResult + result.resp = resp + defer resp.Body.Close() + respBody, err := io.ReadAll(resp.Body) + if err != nil { + return &result, err + } + if resp.StatusCode >= 400 { + return &result, fmt.Errorf("request failed: %s", respBody) + } + if err := json.Unmarshal(respBody, &result.Payload); err != nil { + return &result, err + } + return &result, nil +} diff --git a/modules/abac/SignoutAction.go b/modules/abac/SignoutAction.go index 6af59ccf6..cb9bd6274 100644 --- a/modules/abac/SignoutAction.go +++ b/modules/abac/SignoutAction.go @@ -4,15 +4,17 @@ import "github.com/torabian/fireback/modules/fireback" func init() { // Override the implementation with our actual code. - SignoutActionImp = SignoutAction + SignoutImpl = SignoutAction } -func SignoutAction( - q fireback.QueryDSL) (string, - *fireback.IError, -) { + +func SignoutAction(c SignoutActionRequest, query fireback.QueryDSL) (*SignoutActionResponse, error) { // Clear secure cookie - q.G.SetCookie("authorization", "", 3600*24, "/", "", true, true) + c.GinCtx.SetCookie("authorization", "", 3600*24, "/", "", true, true) - return "OKAY", nil + return &SignoutActionResponse{ + Payload: SignoutActionRes{ + Okay: true, + }, + }, nil } diff --git a/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/Signout.ts b/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/Signout.ts new file mode 100644 index 000000000..ddf446336 --- /dev/null +++ b/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/Signout.ts @@ -0,0 +1,405 @@ +import { GResponse } from "../../sdk/envelopes/index"; +import { buildUrl } from "../../sdk/common/buildUrl"; +import { + fetchx, + handleFetchResponse, + type FetchxContext, + type PartialDeep, + type TypedRequestInit, + type TypedResponse, +} from "../../sdk/common/fetchx"; +import { type UseMutationOptions, useMutation } from "react-query"; +import { useFetchxContext } from "../../sdk/react/useFetchx"; +import { useState } from "react"; +/** + * Action to communicate with the action Signout + */ +export type SignoutActionOptions = { + queryKey?: unknown[]; + qs?: URLSearchParams; +}; +export type SignoutActionMutationOptions = Omit< + UseMutationOptions, + "mutationFn" +> & + SignoutActionOptions & { + ctx?: FetchxContext; + onMessage?: (ev: MessageEvent) => void; + overrideUrl?: string; + headers?: Headers; + } & Partial<{ + creatorFn: (item: unknown) => SignoutActionRes; + }>; +export const useSignoutAction = (options?: SignoutActionMutationOptions) => { + const globalCtx = useFetchxContext(); + const ctx = options?.ctx ?? globalCtx ?? undefined; + const [isCompleted, setCompleteState] = useState(false); + const [response, setResponse] = useState>(); + const fn = (body: SignoutActionReq) => { + setCompleteState(false); + return SignoutAction.Fetch( + { + body, + headers: options?.headers, + }, + { + creatorFn: options?.creatorFn, + qs: options?.qs, + ctx, + onMessage: options?.onMessage, + overrideUrl: options?.overrideUrl, + }, + ).then((x) => { + x.done.then(() => { + setCompleteState(true); + }); + setResponse(x.response); + return x.response.result; + }); + }; + const result = useMutation({ + mutationFn: fn, + ...(options || {}), + }); + return { + ...result, + isCompleted, + response, + }; +}; +/** + * SignoutAction + */ +export class SignoutAction { + // + static URL = "/passport/signout"; + static NewUrl = (qs?: URLSearchParams) => + buildUrl(SignoutAction.URL, undefined, qs); + static Method = "post"; + static Fetch$ = async ( + qs?: URLSearchParams, + ctx?: FetchxContext, + init?: TypedRequestInit, + overrideUrl?: string, + ) => { + return fetchx, SignoutActionReq, unknown>( + overrideUrl ?? SignoutAction.NewUrl(qs), + { + method: SignoutAction.Method, + ...(init || {}), + }, + ctx, + ); + }; + static Fetch = async ( + init?: TypedRequestInit, + { + creatorFn, + qs, + ctx, + onMessage, + overrideUrl, + }: { + creatorFn?: ((item: unknown) => SignoutActionRes) | undefined; + qs?: URLSearchParams; + ctx?: FetchxContext; + onMessage?: (ev: MessageEvent) => void; + overrideUrl?: string; + } = { + creatorFn: (item) => new SignoutActionRes(item), + }, + ) => { + creatorFn = creatorFn || ((item) => new SignoutActionRes(item)); + const res = await SignoutAction.Fetch$(qs, ctx, init, overrideUrl); + return handleFetchResponse( + res, + (data) => { + const resp = new GResponse(); + if (creatorFn) { + resp.setCreator(creatorFn); + } + resp.inject(data); + return resp; + }, + onMessage, + init?.signal, + ); + }; + static Definition = { + name: "Signout", + url: "/passport/signout", + method: "post", + description: + "Signout the user, clears cookies or does anything else if needed.", + in: { + fields: [ + { + name: "clear", + type: "bool?", + }, + ], + }, + out: { + envelope: "GResponse", + fields: [ + { + name: "okay", + type: "bool", + }, + ], + }, + }; +} +/** + * The base class definition for signoutActionReq + **/ +export class SignoutActionReq { + /** + * + * @type {boolean} + **/ + #clear?: boolean | null = undefined; + /** + * + * @returns {boolean} + **/ + get clear() { + return this.#clear; + } + /** + * + * @type {boolean} + **/ + set clear(value: boolean | null | undefined) { + const correctType = + value === true || + value === false || + value === undefined || + value === null; + this.#clear = correctType ? value : Boolean(value); + } + setClear(value: boolean | null | undefined) { + this.clear = value; + return this; + } + constructor(data: unknown = undefined) { + if (data === null || data === undefined) { + return; + } + if (typeof data === "string") { + this.applyFromObject(JSON.parse(data)); + } else if (this.#isJsonAppliable(data)) { + this.applyFromObject(data); + } else { + throw new Error( + "Instance cannot be created on an unknown value, check the content being passed. got: " + + typeof data, + ); + } + } + #isJsonAppliable(obj: unknown) { + const g = globalThis as unknown as { Buffer: any; Blob: any }; + const isBuffer = + typeof g.Buffer !== "undefined" && + typeof g.Buffer.isBuffer === "function" && + g.Buffer.isBuffer(obj); + const isBlob = typeof g.Blob !== "undefined" && obj instanceof g.Blob; + return ( + obj && + typeof obj === "object" && + !Array.isArray(obj) && + !isBuffer && + !(obj instanceof ArrayBuffer) && + !isBlob + ); + } + /** + * casts the fields of a javascript object into the class properties one by one + **/ + applyFromObject(data = {}) { + const d = data as Partial; + if (d.clear !== undefined) { + this.clear = d.clear; + } + } + /** + * Special toJSON override, since the field are private, + * Json stringify won't see them unless we mention it explicitly. + **/ + toJSON() { + return { + clear: this.#clear, + }; + } + toString() { + return JSON.stringify(this); + } + static get Fields() { + return { + clear: "clear", + }; + } + /** + * Creates an instance of SignoutActionReq, and possibleDtoObject + * needs to satisfy the type requirement fully, otherwise typescript compile would + * be complaining. + **/ + static from(possibleDtoObject: SignoutActionReqType) { + return new SignoutActionReq(possibleDtoObject); + } + /** + * Creates an instance of SignoutActionReq, and partialDtoObject + * needs to satisfy the type, but partially, and rest of the content would + * be constructed according to data types and nullability. + **/ + static with(partialDtoObject: PartialDeep) { + return new SignoutActionReq(partialDtoObject); + } + copyWith( + partial: PartialDeep, + ): InstanceType { + return new SignoutActionReq({ ...this.toJSON(), ...partial }); + } + clone(): InstanceType { + return new SignoutActionReq(this.toJSON()); + } +} +export abstract class SignoutActionReqFactory { + abstract create(data: unknown): SignoutActionReq; +} +/** + * The base type definition for signoutActionReq + **/ +export type SignoutActionReqType = { + /** + * + * @type {boolean} + **/ + clear?: boolean; +}; +// eslint-disable-next-line @typescript-eslint/no-namespace +export namespace SignoutActionReqType {} +/** + * The base class definition for signoutActionRes + **/ +export class SignoutActionRes { + /** + * + * @type {boolean} + **/ + #okay!: boolean; + /** + * + * @returns {boolean} + **/ + get okay() { + return this.#okay; + } + /** + * + * @type {boolean} + **/ + set okay(value: boolean) { + this.#okay = Boolean(value); + } + setOkay(value: boolean) { + this.okay = value; + return this; + } + constructor(data: unknown = undefined) { + if (data === null || data === undefined) { + return; + } + if (typeof data === "string") { + this.applyFromObject(JSON.parse(data)); + } else if (this.#isJsonAppliable(data)) { + this.applyFromObject(data); + } else { + throw new Error( + "Instance cannot be created on an unknown value, check the content being passed. got: " + + typeof data, + ); + } + } + #isJsonAppliable(obj: unknown) { + const g = globalThis as unknown as { Buffer: any; Blob: any }; + const isBuffer = + typeof g.Buffer !== "undefined" && + typeof g.Buffer.isBuffer === "function" && + g.Buffer.isBuffer(obj); + const isBlob = typeof g.Blob !== "undefined" && obj instanceof g.Blob; + return ( + obj && + typeof obj === "object" && + !Array.isArray(obj) && + !isBuffer && + !(obj instanceof ArrayBuffer) && + !isBlob + ); + } + /** + * casts the fields of a javascript object into the class properties one by one + **/ + applyFromObject(data = {}) { + const d = data as Partial; + if (d.okay !== undefined) { + this.okay = d.okay; + } + } + /** + * Special toJSON override, since the field are private, + * Json stringify won't see them unless we mention it explicitly. + **/ + toJSON() { + return { + okay: this.#okay, + }; + } + toString() { + return JSON.stringify(this); + } + static get Fields() { + return { + okay: "okay", + }; + } + /** + * Creates an instance of SignoutActionRes, and possibleDtoObject + * needs to satisfy the type requirement fully, otherwise typescript compile would + * be complaining. + **/ + static from(possibleDtoObject: SignoutActionResType) { + return new SignoutActionRes(possibleDtoObject); + } + /** + * Creates an instance of SignoutActionRes, and partialDtoObject + * needs to satisfy the type, but partially, and rest of the content would + * be constructed according to data types and nullability. + **/ + static with(partialDtoObject: PartialDeep) { + return new SignoutActionRes(partialDtoObject); + } + copyWith( + partial: PartialDeep, + ): InstanceType { + return new SignoutActionRes({ ...this.toJSON(), ...partial }); + } + clone(): InstanceType { + return new SignoutActionRes(this.toJSON()); + } +} +export abstract class SignoutActionResFactory { + abstract create(data: unknown): SignoutActionRes; +} +/** + * The base type definition for signoutActionRes + **/ +export type SignoutActionResType = { + /** + * + * @type {boolean} + **/ + okay: boolean; +}; +// eslint-disable-next-line @typescript-eslint/no-namespace +export namespace SignoutActionResType {} diff --git a/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/usePostPassportSignout.ts b/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/usePostPassportSignout.ts deleted file mode 100644 index 38b54c813..000000000 --- a/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/usePostPassportSignout.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* -* Generated by fireback 1.2.5 -* Written by Ali Torabi. -* The code is generated for react-query@v3.39.3 -* Checkout the repository for licenses and contribution: https://github.com/torabian/fireback -*/ -import { type FormikHelpers } from "formik"; -import { useContext, useState, useRef } from "react"; -import { useMutation } from "react-query"; -import { - execApiFn, - type IResponse, - mutationErrorsToFormik, - type IResponseList -} from "../../core/http-tools"; -import { - RemoteQueryContext, - type UseRemoteQuery, - queryBeforeSend, -} from "../../core/react-tools"; -export function usePostPassportSignout( - props?: UseRemoteQuery & { - } -) { - let {queryClient, query, execFnOverride} = props || {}; - query = query || {} - const { options, execFn } = useContext(RemoteQueryContext); - // Calculare the function which will do the remote calls. - // We consider to use global override, this specific override, or default which - // comes with the sdk. - const rpcFn = execFnOverride - ? execFnOverride(options) - : execFn - ? execFn(options) - : execApiFn(options); - // Url of the remote affix. - const url = "/passport/signout".substr(1); - let computedUrl = `${url}?${new URLSearchParams( - queryBeforeSend(query) - ).toString()}`; - let completeRouteUrls = true; - // Attach the details of the request to the fn - const fn = (body: any) => rpcFn("POST", computedUrl, body); - const mutation = useMutation< - IResponse, - IResponse, - any - >(fn); - // Only entities are having a store in front-end - const fnUpdater = ( - data: IResponseList | undefined, - item: IResponse - ) => { - if (!data) { - return { - data: { items: [] }, - }; - } - // To me it seems this is not a good or any correct strategy to update the store. - // When we are posting, we want to add it there, that's it. Not updating it. - // We have patch, but also posting with ID is possible. - if (data.data && item?.data) { - data.data.items = [item.data, ...(data?.data?.items || [])]; - } - return data; - }; - const submit = ( - values: any, - formikProps?: FormikHelpers> - ): Promise> => { - return new Promise((resolve, reject) => { - mutation.mutate(values, { - onSuccess(response: IResponse) { - queryClient?.setQueryData>( - "string", - (data) => fnUpdater(data, response) as any - ); - resolve(response); - }, - onError(error: any) { - formikProps?.setErrors(mutationErrorsToFormik(error)); - reject(error); - }, - }); - }); - }; - return { mutation, submit, fnUpdater }; -} From ec34c8e05f66f6011342861814f0d811324bfa59 Mon Sep 17 00:00:00 2001 From: Ali Date: Wed, 15 Apr 2026 00:07:17 +0200 Subject: [PATCH 3/3] Disable remove user --- .../src/sdk/modules/abac/AbacActionsDto.ts | 6 - .../src/sdk/modules/abac/usePostUserImport.ts | 94 ---------- modules/abac/AbacCustomActions.dyno.go | 97 ---------- modules/abac/AbacModule3.yml | 11 -- modules/abac/ImportUserAction.go | 16 -- modules/abac/UserImportTools.go | 168 +++++++++--------- .../{index-DPN0Vq7F.js => index-BN1bV6BP.js} | 166 ++++++++--------- .../codegen/fireback-manage/index.html | 2 +- .../sdk/modules/abac/AbacActionsDto.ts | 6 - .../sdk/modules/abac/usePostUserImport.ts | 94 ---------- .../{index-BBXZj-nV.js => index-hGksTATn.js} | 130 +++++++------- .../fireback/codegen/selfservice/index.html | 2 +- 12 files changed, 235 insertions(+), 557 deletions(-) delete mode 100644 e2e/react-bed/src/sdk/modules/abac/usePostUserImport.ts delete mode 100644 modules/abac/ImportUserAction.go rename modules/fireback/codegen/fireback-manage/assets/{index-DPN0Vq7F.js => index-BN1bV6BP.js} (67%) delete mode 100644 modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/usePostUserImport.ts rename modules/fireback/codegen/selfservice/assets/{index-BBXZj-nV.js => index-hGksTATn.js} (61%) diff --git a/e2e/react-bed/src/sdk/modules/abac/AbacActionsDto.ts b/e2e/react-bed/src/sdk/modules/abac/AbacActionsDto.ts index ee69fe664..6ec15832e 100644 --- a/e2e/react-bed/src/sdk/modules/abac/AbacActionsDto.ts +++ b/e2e/react-bed/src/sdk/modules/abac/AbacActionsDto.ts @@ -41,12 +41,6 @@ public static Fields = { }, } } -export class ImportUserActionReqDto { - public path?: string | null; -public static Fields = { - path: 'path', -} -} export class SendEmailActionReqDto { public toAddress?: string | null; public body?: string | null; diff --git a/e2e/react-bed/src/sdk/modules/abac/usePostUserImport.ts b/e2e/react-bed/src/sdk/modules/abac/usePostUserImport.ts deleted file mode 100644 index 97cd81dec..000000000 --- a/e2e/react-bed/src/sdk/modules/abac/usePostUserImport.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* -* Generated by fireback 1.2.5 -* Written by Ali Torabi. -* The code is generated for react-query@v3.39.3 -* Checkout the repository for licenses and contribution: https://github.com/torabian/fireback -*/ -import { type FormikHelpers } from "formik"; -import { useContext, useState, useRef } from "react"; -import { useMutation } from "react-query"; -import { - execApiFn, - type IResponse, - mutationErrorsToFormik, - type IResponseList -} from "../../core/http-tools"; -import { - RemoteQueryContext, - type UseRemoteQuery, - queryBeforeSend, -} from "../../core/react-tools"; - import { - ImportUserActionReqDto, - } from "../abac/AbacActionsDto" - import { - OkayResponseDto, - } from "../abac/OkayResponseDto" -export function usePostUserImport( - props?: UseRemoteQuery & { - } -) { - let {queryClient, query, execFnOverride} = props || {}; - query = query || {} - const { options, execFn } = useContext(RemoteQueryContext); - // Calculare the function which will do the remote calls. - // We consider to use global override, this specific override, or default which - // comes with the sdk. - const rpcFn = execFnOverride - ? execFnOverride(options) - : execFn - ? execFn(options) - : execApiFn(options); - // Url of the remote affix. - const url = "/user/import".substr(1); - let computedUrl = `${url}?${new URLSearchParams( - queryBeforeSend(query) - ).toString()}`; - let completeRouteUrls = true; - // Attach the details of the request to the fn - const fn = (body: any) => rpcFn("POST", computedUrl, body); - const mutation = useMutation< - IResponse, - IResponse, - Partial - >(fn); - // Only entities are having a store in front-end - const fnUpdater = ( - data: IResponseList | undefined, - item: IResponse - ) => { - if (!data) { - return { - data: { items: [] }, - }; - } - // To me it seems this is not a good or any correct strategy to update the store. - // When we are posting, we want to add it there, that's it. Not updating it. - // We have patch, but also posting with ID is possible. - if (data.data && item?.data) { - data.data.items = [item.data, ...(data?.data?.items || [])]; - } - return data; - }; - const submit = ( - values: Partial, - formikProps?: FormikHelpers> - ): Promise> => { - return new Promise((resolve, reject) => { - mutation.mutate(values, { - onSuccess(response: IResponse) { - queryClient?.setQueryData>( - "*abac.OkayResponseDto", - (data) => fnUpdater(data, response) as any - ); - resolve(response); - }, - onError(error: any) { - formikProps?.setErrors(mutationErrorsToFormik(error)); - reject(error); - }, - }); - }); - }; - return { mutation, submit, fnUpdater }; -} diff --git a/modules/abac/AbacCustomActions.dyno.go b/modules/abac/AbacCustomActions.dyno.go index acd01a75a..19b9e451c 100644 --- a/modules/abac/AbacCustomActions.dyno.go +++ b/modules/abac/AbacCustomActions.dyno.go @@ -112,78 +112,6 @@ var QueryUserRoleWorkspacesActionCmd cli.Command = cli.Command{ ) }, } -var ImportUserSecurityModel *fireback.SecurityModel = nil - -type ImportUserActionReqDto struct { - Path string `json:"path" xml:"path" yaml:"path" ` -} - -func (x *ImportUserActionReqDto) RootObjectName() string { - return "Abac" -} - -var ImportUserCommonCliFlagsOptional = []cli.Flag{ - &cli.StringFlag{ - Name: "x-src", - Required: false, - Usage: `Import the body of the request from a file (e.g. json/yaml) on the disk`, - }, - &cli.StringFlag{ - Name: "x-accept", - Usage: "Return type of the the content, such as json or yaml", - }, - &cli.StringFlag{ - Name: "path", - Required: false, - Usage: `path (string)`, - }, -} - -func ImportUserActionReqValidator(dto *ImportUserActionReqDto) *fireback.IError { - err := fireback.CommonStructValidatorPointer(dto, false) - return err -} -func CastImportUserFromCli(c *cli.Context) *ImportUserActionReqDto { - template := &ImportUserActionReqDto{} - fireback.HandleXsrc(c, template) - if c.IsSet("path") { - template.Path = c.String("path") - } - return template -} - -type importUserActionImpSig func( - req *ImportUserActionReqDto, - q fireback.QueryDSL) (*OkayResponseDto, - *fireback.IError, -) - -var ImportUserActionImp importUserActionImpSig - -func ImportUserActionFn( - req *ImportUserActionReqDto, - q fireback.QueryDSL, -) ( - *OkayResponseDto, - *fireback.IError, -) { - if ImportUserActionImp == nil { - return nil, nil - } - return ImportUserActionImp(req, q) -} - -var ImportUserActionCmd cli.Command = cli.Command{ - Name: "import-user", - Usage: `Imports users, and creates their passports, and all details`, - Flags: ImportUserCommonCliFlagsOptional, - Action: func(c *cli.Context) { - query := fireback.CommonCliQueryDSLBuilderAuthorize(c, ImportUserSecurityModel) - dto := CastImportUserFromCli(c) - result, err := ImportUserActionFn(dto, query) - fireback.HandleActionInCli(c, result, err, map[string]map[string]string{}) - }, -} var SendEmailSecurityModel *fireback.SecurityModel = nil type SendEmailActionReqDto struct { @@ -1197,29 +1125,6 @@ func AbacCustomActions() []fireback.Module3Action { Entity: "QueryUserRoleWorkspacesActionResDto", }, }, - { - Method: "POST", - Url: "/user/import", - SecurityModel: ImportUserSecurityModel, - Name: "importUser", - Description: "Imports users, and creates their passports, and all details", - Handlers: []gin.HandlerFunc{ - func(c *gin.Context) { - // POST_ONE - post - fireback.HttpPostEntity(c, ImportUserActionFn) - }, - }, - Format: "POST_ONE", - Action: ImportUserActionFn, - ResponseEntity: &OkayResponseDto{}, - Out: &fireback.Module3ActionBody{ - Entity: "OkayResponseDto", - }, - RequestEntity: &ImportUserActionReqDto{}, - In: &fireback.Module3ActionBody{ - Entity: "ImportUserActionReqDto", - }, - }, { Method: "POST", Url: "/email/send", @@ -1342,7 +1247,6 @@ func AbacCustomActions() []fireback.Module3Action { var AbacCustomActionsCli = []cli.Command{ UserInvitationsActionCmd, QueryUserRoleWorkspacesActionCmd, - ImportUserActionCmd, SendEmailActionCmd, SendEmailWithProviderActionCmd, InviteToWorkspaceActionCmd, @@ -1380,7 +1284,6 @@ var AbacCliActionsBundle = &fireback.CliActionsBundle{ OsLoginAuthenticateActionDef.ToCli(), UserInvitationsActionCmd, QueryUserRoleWorkspacesActionCmd, - ImportUserActionCmd, SendEmailActionCmd, SendEmailWithProviderActionCmd, InviteToWorkspaceActionCmd, diff --git a/modules/abac/AbacModule3.yml b/modules/abac/AbacModule3.yml index 8032dd050..0b4321f60 100644 --- a/modules/abac/AbacModule3.yml +++ b/modules/abac/AbacModule3.yml @@ -645,17 +645,6 @@ actions: description: Capabilities related to this role which are available primitive: string - - name: importUser - url: /user/import - method: post - - description: "Imports users, and creates their passports, and all details" - in: - fields: - - name: path - type: string - out: - dto: OkayResponseDto - name: sendEmail url: /email/send cliName: email diff --git a/modules/abac/ImportUserAction.go b/modules/abac/ImportUserAction.go deleted file mode 100644 index e96a6cf26..000000000 --- a/modules/abac/ImportUserAction.go +++ /dev/null @@ -1,16 +0,0 @@ -package abac - -import "github.com/torabian/fireback/modules/fireback" - -func init() { - // Override the implementation with our actual code. - ImportUserActionImp = ImportUserAction -} -func ImportUserAction( - req *ImportUserActionReqDto, - q fireback.QueryDSL) (*OkayResponseDto, - *fireback.IError, -) { - // Implement the logic here. - return nil, nil -} diff --git a/modules/abac/UserImportTools.go b/modules/abac/UserImportTools.go index 13ad96e07..14660c03a 100644 --- a/modules/abac/UserImportTools.go +++ b/modules/abac/UserImportTools.go @@ -10,86 +10,88 @@ package abac and firebak tries to simplify that process for you. */ -import ( - "fmt" - - "github.com/schollz/progressbar/v3" - "github.com/torabian/fireback/modules/fireback" - seeders "github.com/torabian/fireback/modules/fireback/mocks/User" -) - -func ImportFromFs(req *ImportUserActionReqDto, q fireback.QueryDSL) (*OkayResponseDto, *fireback.IError) { - - var content fireback.ContentImport[UserImportDto] - if err := fireback.ReadYamlFileEmbed[fireback.ContentImport[UserImportDto]](&seeders.ViewsFs, "fake-random-users.yml", &content); err != nil { - return nil, fireback.Create401Error(&AbacMessages.FileNotFound, []string{}) - } - bar := progressbar.Default(int64(len(content.Items))) - for _, item := range content.Items { - user, role, workspace, passport := CreateUserCatalog(&item) - if _, err := UnsafeGenerateUser(&GenerateUserDto{ - user: user, - workspace: workspace, - role: role, - passport: passport, - createUser: true, - createWorkspace: true, - createRole: true, - createPassport: true, - - // We want always to be able to login regardless - restricted: true, - }, q); err != nil { - fmt.Println("Error:", err) - } else { - - } - bar.Add(1) - // time.Sleep(time) - } - - return &OkayResponseDto{}, nil -} - -func CreateUserCatalog(dto *UserImportDto) (*UserEntity, *RoleEntity, *WorkspaceEntity, *PassportEntity) { - - user := &UserEntity{ - UniqueId: "ux_" + dto.Passports[0].Value, - } - - passwordHashed, _ := fireback.HashPassword(dto.Passports[0].Password) - method, _ := DetectSignupMechanismOverValue(dto.Passports[0].Value) - - passport := &PassportEntity{ - UniqueId: "ps_" + dto.Passports[0].Value, - Value: dto.Passports[0].Value, - Password: passwordHashed, - Type: method, - } - - // For now, it's random. But make sure later we have the track of workspaces - wid := fireback.UUID() - workspace := &WorkspaceEntity{ - - UniqueId: wid, - WorkspaceId: fireback.NewString(wid), - LinkerId: fireback.NewString(ROOT_VAR), - ParentId: fireback.NewString(ROOT_VAR), - TypeId: fireback.NewString(ROOT_VAR), - } - - role := &RoleEntity{ - UniqueId: "ROLE_WORKSPACE_" + fireback.UUID(), - - WorkspaceId: fireback.NewString(workspace.UniqueId), - Capabilities: []*fireback.CapabilityEntity{ - {UniqueId: ROOT_ALL_ACCESS, Visibility: fireback.NewString("A")}, - }, - } - - return user, role, workspace, passport -} - -func init() { - ImportUserActionImp = ImportFromFs -} +// This code requires a deep test, since a lot is changed. + +// import ( +// "fmt" + +// "github.com/schollz/progressbar/v3" +// "github.com/torabian/fireback/modules/fireback" +// seeders "github.com/torabian/fireback/modules/fireback/mocks/User" +// ) + +// func ImportFromFs(req *ImportUserActionReqDto, q fireback.QueryDSL) (*OkayResponseDto, *fireback.IError) { + +// var content fireback.ContentImport[UserImportDto] +// if err := fireback.ReadYamlFileEmbed[fireback.ContentImport[UserImportDto]](&seeders.ViewsFs, "fake-random-users.yml", &content); err != nil { +// return nil, fireback.Create401Error(&AbacMessages.FileNotFound, []string{}) +// } +// bar := progressbar.Default(int64(len(content.Items))) +// for _, item := range content.Items { +// user, role, workspace, passport := CreateUserCatalog(&item) +// if _, err := UnsafeGenerateUser(&GenerateUserDto{ +// user: user, +// workspace: workspace, +// role: role, +// passport: passport, +// createUser: true, +// createWorkspace: true, +// createRole: true, +// createPassport: true, + +// // We want always to be able to login regardless +// restricted: true, +// }, q); err != nil { +// fmt.Println("Error:", err) +// } else { + +// } +// bar.Add(1) +// // time.Sleep(time) +// } + +// return &OkayResponseDto{}, nil +// } + +// func CreateUserCatalog(dto *UserImportDto) (*UserEntity, *RoleEntity, *WorkspaceEntity, *PassportEntity) { + +// user := &UserEntity{ +// UniqueId: "ux_" + dto.Passports[0].Value, +// } + +// passwordHashed, _ := fireback.HashPassword(dto.Passports[0].Password) +// method, _ := DetectSignupMechanismOverValue(dto.Passports[0].Value) + +// passport := &PassportEntity{ +// UniqueId: "ps_" + dto.Passports[0].Value, +// Value: dto.Passports[0].Value, +// Password: passwordHashed, +// Type: method, +// } + +// // For now, it's random. But make sure later we have the track of workspaces +// wid := fireback.UUID() +// workspace := &WorkspaceEntity{ + +// UniqueId: wid, +// WorkspaceId: fireback.NewString(wid), +// LinkerId: fireback.NewString(ROOT_VAR), +// ParentId: fireback.NewString(ROOT_VAR), +// TypeId: fireback.NewString(ROOT_VAR), +// } + +// role := &RoleEntity{ +// UniqueId: "ROLE_WORKSPACE_" + fireback.UUID(), + +// WorkspaceId: fireback.NewString(workspace.UniqueId), +// Capabilities: []*fireback.CapabilityEntity{ +// {UniqueId: ROOT_ALL_ACCESS, Visibility: fireback.NewString("A")}, +// }, +// } + +// return user, role, workspace, passport +// } + +// func init() { +// ImportUserActionImp = ImportFromFs +// } diff --git a/modules/fireback/codegen/fireback-manage/assets/index-DPN0Vq7F.js b/modules/fireback/codegen/fireback-manage/assets/index-BN1bV6BP.js similarity index 67% rename from modules/fireback/codegen/fireback-manage/assets/index-DPN0Vq7F.js rename to modules/fireback/codegen/fireback-manage/assets/index-BN1bV6BP.js index 95d8b04e3..f0f955992 100644 --- a/modules/fireback/codegen/fireback-manage/assets/index-DPN0Vq7F.js +++ b/modules/fireback/codegen/fireback-manage/assets/index-BN1bV6BP.js @@ -1,4 +1,4 @@ -var Eoe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var bOt=Eoe((Ds,to)=>{function Toe(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var El=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var mR={exports:{}},g1={};/** +var Doe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $Ot=Doe((Ls,no)=>{function $oe(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var _l=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var xR={exports:{}},k1={};/** * @license React * react-jsx-runtime.production.js * @@ -6,7 +6,7 @@ var Eoe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var bOt=Eoe((Ds, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var V4;function Coe(){if(V4)return g1;V4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var o=null;if(i!==void 0&&(o=""+i),a.key!==void 0&&(o=""+a.key),"key"in a){i={};for(var l in a)l!=="key"&&(i[l]=a[l])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:o,ref:a!==void 0?a:null,props:i}}return g1.Fragment=t,g1.jsx=n,g1.jsxs=n,g1}var G4;function hX(){return G4||(G4=1,mR.exports=Coe()),mR.exports}var w=hX(),gR={exports:{}},Nn={};/** + */var iU;function Loe(){if(iU)return k1;iU=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var o=null;if(i!==void 0&&(o=""+i),a.key!==void 0&&(o=""+a.key),"key"in a){i={};for(var l in a)l!=="key"&&(i[l]=a[l])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:o,ref:a!==void 0?a:null,props:i}}return k1.Fragment=t,k1.jsx=n,k1.jsxs=n,k1}var oU;function _X(){return oU||(oU=1,xR.exports=Loe()),xR.exports}var w=_X(),_R={exports:{}},Nn={};/** * @license React * react.production.js * @@ -14,7 +14,7 @@ var Eoe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var bOt=Eoe((Ds, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Y4;function koe(){if(Y4)return Nn;Y4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.iterator;function y(H){return H===null||typeof H!="object"?null:(H=g&&H[g]||H["@@iterator"],typeof H=="function"?H:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,E={};function T(H,Y,ie){this.props=H,this.context=Y,this.refs=E,this.updater=ie||h}T.prototype.isReactComponent={},T.prototype.setState=function(H,Y){if(typeof H!="object"&&typeof H!="function"&&H!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,H,Y,"setState")},T.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function C(){}C.prototype=T.prototype;function k(H,Y,ie){this.props=H,this.context=Y,this.refs=E,this.updater=ie||h}var _=k.prototype=new C;_.constructor=k,v(_,T.prototype),_.isPureReactComponent=!0;var A=Array.isArray,P={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function I(H,Y,ie,J,ee,Z){return ie=Z.ref,{$$typeof:e,type:H,key:Y,ref:ie!==void 0?ie:null,props:Z}}function L(H,Y){return I(H.type,Y,void 0,void 0,void 0,H.props)}function j(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function z(H){var Y={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(ie){return Y[ie]})}var Q=/\/+/g;function le(H,Y){return typeof H=="object"&&H!==null&&H.key!=null?z(""+H.key):Y.toString(36)}function re(){}function ge(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status=="string"?H.then(re,re):(H.status="pending",H.then(function(Y){H.status==="pending"&&(H.status="fulfilled",H.value=Y)},function(Y){H.status==="pending"&&(H.status="rejected",H.reason=Y)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function me(H,Y,ie,J,ee){var Z=typeof H;(Z==="undefined"||Z==="boolean")&&(H=null);var ue=!1;if(H===null)ue=!0;else switch(Z){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(H.$$typeof){case e:case t:ue=!0;break;case f:return ue=H._init,me(ue(H._payload),Y,ie,J,ee)}}if(ue)return ee=ee(H),ue=J===""?"."+le(H,0):J,A(ee)?(ie="",ue!=null&&(ie=ue.replace(Q,"$&/")+"/"),me(ee,Y,ie,"",function(xe){return xe})):ee!=null&&(j(ee)&&(ee=L(ee,ie+(ee.key==null||H&&H.key===ee.key?"":(""+ee.key).replace(Q,"$&/")+"/")+ue)),Y.push(ee)),1;ue=0;var ke=J===""?".":J+":";if(A(H))for(var fe=0;fe()=>(t||e((t={exports:{}}).exports,t),t.exports);var bOt=Eoe((Ds, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var X4;function xoe(){return X4||(X4=1,(function(e){function t(W,G){var q=W.length;W.push(G);e:for(;0>>1,H=W[ce];if(0>>1;cea(J,q))eea(Z,J)?(W[ce]=Z,W[ee]=q,ce=ee):(W[ce]=J,W[ie]=q,ce=ie);else if(eea(Z,q))W[ce]=Z,W[ee]=q,ce=ee;else break e}}return G}function a(W,G){var q=W.sortIndex-G.sortIndex;return q!==0?q:W.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],d=[],f=1,g=null,y=3,h=!1,v=!1,E=!1,T=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function _(W){for(var G=n(d);G!==null;){if(G.callback===null)r(d);else if(G.startTime<=W)r(d),G.sortIndex=G.expirationTime,t(u,G);else break;G=n(d)}}function A(W){if(E=!1,_(W),!v)if(n(u)!==null)v=!0,ge();else{var G=n(d);G!==null&&me(A,G.startTime-W)}}var P=!1,N=-1,I=5,L=-1;function j(){return!(e.unstable_now()-LW&&j());){var ce=g.callback;if(typeof ce=="function"){g.callback=null,y=g.priorityLevel;var H=ce(g.expirationTime<=W);if(W=e.unstable_now(),typeof H=="function"){g.callback=H,_(W),G=!0;break t}g===n(u)&&r(u),_(W)}else r(u);g=n(u)}if(g!==null)G=!0;else{var Y=n(d);Y!==null&&me(A,Y.startTime-W),G=!1}}break e}finally{g=null,y=q,h=!1}G=void 0}}finally{G?Q():P=!1}}}var Q;if(typeof k=="function")Q=function(){k(z)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,re=le.port2;le.port1.onmessage=z,Q=function(){re.postMessage(null)}}else Q=function(){T(z,0)};function ge(){P||(P=!0,Q())}function me(W,G){N=T(function(){W(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(W){W.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,ge())},e.unstable_forceFrameRate=function(W){0>W||125ce?(W.sortIndex=q,t(d,W),n(u)===null&&W===n(d)&&(E?(C(N),N=-1):E=!0,me(A,q-ce))):(W.sortIndex=H,t(u,W),v||h||(v=!0,ge())),W},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(W){var G=y;return function(){var q=y;y=G;try{return W.apply(this,arguments)}finally{y=q}}}})(bR)),bR}var Q4;function _oe(){return Q4||(Q4=1,yR.exports=xoe()),yR.exports}var wR={exports:{}},Ki={};/** + */var uU;function joe(){return uU||(uU=1,(function(e){function t(W,G){var q=W.length;W.push(G);e:for(;0>>1,H=W[ce];if(0>>1;cea(J,q))eea(Z,J)?(W[ce]=Z,W[ee]=q,ce=ee):(W[ce]=J,W[ie]=q,ce=ie);else if(eea(Z,q))W[ce]=Z,W[ee]=q,ce=ee;else break e}}return G}function a(W,G){var q=W.sortIndex-G.sortIndex;return q!==0?q:W.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],d=[],f=1,g=null,y=3,h=!1,v=!1,E=!1,T=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function _(W){for(var G=n(d);G!==null;){if(G.callback===null)r(d);else if(G.startTime<=W)r(d),G.sortIndex=G.expirationTime,t(u,G);else break;G=n(d)}}function A(W){if(E=!1,_(W),!v)if(n(u)!==null)v=!0,ge();else{var G=n(d);G!==null&&me(A,G.startTime-W)}}var P=!1,N=-1,I=5,L=-1;function j(){return!(e.unstable_now()-LW&&j());){var ce=g.callback;if(typeof ce=="function"){g.callback=null,y=g.priorityLevel;var H=ce(g.expirationTime<=W);if(W=e.unstable_now(),typeof H=="function"){g.callback=H,_(W),G=!0;break t}g===n(u)&&r(u),_(W)}else r(u);g=n(u)}if(g!==null)G=!0;else{var Y=n(d);Y!==null&&me(A,Y.startTime-W),G=!1}}break e}finally{g=null,y=q,h=!1}G=void 0}}finally{G?Q():P=!1}}}var Q;if(typeof k=="function")Q=function(){k(z)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,re=le.port2;le.port1.onmessage=z,Q=function(){re.postMessage(null)}}else Q=function(){T(z,0)};function ge(){P||(P=!0,Q())}function me(W,G){N=T(function(){W(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(W){W.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,ge())},e.unstable_forceFrameRate=function(W){0>W||125ce?(W.sortIndex=q,t(d,W),n(u)===null&&W===n(d)&&(E?(C(N),N=-1):E=!0,me(A,q-ce))):(W.sortIndex=H,t(u,W),v||h||(v=!0,ge())),W},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(W){var G=y;return function(){var q=y;y=G;try{return W.apply(this,arguments)}finally{y=q}}}})(PR)),PR}var cU;function Uoe(){return cU||(cU=1,RR.exports=joe()),RR.exports}var AR={exports:{}},Xi={};/** * @license React * react-dom.production.js * @@ -30,7 +30,7 @@ var Eoe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var bOt=Eoe((Ds, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var J4;function Ooe(){if(J4)return Ki;J4=1;var e=Fs();function t(u){var d="https://react.dev/errors/"+u;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),wR.exports=Ooe(),wR.exports}/** + */var dU;function Boe(){if(dU)return Xi;dU=1;var e=Us();function t(u){var d="https://react.dev/errors/"+u;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),AR.exports=Boe(),AR.exports}/** * @license React * react-dom-client.production.js * @@ -38,15 +38,15 @@ var Eoe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var bOt=Eoe((Ds, * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var eU;function Roe(){if(eU)return v1;eU=1;var e=_oe(),t=Fs(),n=D3();function r(s){var c="https://react.dev/errors/"+s;if(1)":-1x||de[S]!==Pe[x]){var Ke=` `+de[S].replace(" at new "," at ");return s.displayName&&Ke.includes("")&&(Ke=Ke.replace("",s.displayName)),Ke}while(1<=S&&0<=x);break}}}finally{ge=!1,Error.prepareStackTrace=p}return(p=s?s.displayName||s.name:"")?re(p):""}function W(s){switch(s.tag){case 26:case 27:case 5:return re(s.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 15:return s=me(s.type,!1),s;case 11:return s=me(s.type.render,!1),s;case 1:return s=me(s.type,!0),s;default:return""}}function G(s){try{var c="";do c+=W(s),s=s.return;while(s);return c}catch(p){return` Error generating stack: `+p.message+` -`+p.stack}}function q(s){var c=s,p=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(p=c.return),s=c.return;while(s)}return c.tag===3?p:null}function ce(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function H(s){if(q(s)!==s)throw Error(r(188))}function Y(s){var c=s.alternate;if(!c){if(c=q(s),c===null)throw Error(r(188));return c!==s?null:s}for(var p=s,S=c;;){var x=p.return;if(x===null)break;var M=x.alternate;if(M===null){if(S=x.return,S!==null){p=S;continue}break}if(x.child===M.child){for(M=x.child;M;){if(M===p)return H(x),s;if(M===S)return H(x),c;M=M.sibling}throw Error(r(188))}if(p.return!==S.return)p=x,S=M;else{for(var B=!1,X=x.child;X;){if(X===p){B=!0,p=x,S=M;break}if(X===S){B=!0,S=x,p=M;break}X=X.sibling}if(!B){for(X=M.child;X;){if(X===p){B=!0,p=M,S=x;break}if(X===S){B=!0,S=M,p=x;break}X=X.sibling}if(!B)throw Error(r(189))}}if(p.alternate!==S)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?s:c}function ie(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s;for(s=s.child;s!==null;){if(c=ie(s),c!==null)return c;s=s.sibling}return null}var J=Array.isArray,ee=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ue=[],ke=-1;function fe(s){return{current:s}}function xe(s){0>ke||(s.current=ue[ke],ue[ke]=null,ke--)}function Ie(s,c){ke++,ue[ke]=s.current,s.current=c}var qe=fe(null),tt=fe(null),Ge=fe(null),at=fe(null);function Et(s,c){switch(Ie(Ge,c),Ie(tt,s),Ie(qe,null),s=c.nodeType,s){case 9:case 11:c=(c=c.documentElement)&&(c=c.namespaceURI)?wC(c):0;break;default:if(s=s===8?c.parentNode:c,c=s.tagName,s=s.namespaceURI)s=wC(s),c=SC(s,c);else switch(c){case"svg":c=1;break;case"math":c=2;break;default:c=0}}xe(qe),Ie(qe,c)}function kt(){xe(qe),xe(tt),xe(Ge)}function xt(s){s.memoizedState!==null&&Ie(at,s);var c=qe.current,p=SC(c,s.type);c!==p&&(Ie(tt,s),Ie(qe,p))}function Rt(s){tt.current===s&&(xe(qe),xe(tt)),at.current===s&&(xe(at),Cm._currentValue=Z)}var cn=Object.prototype.hasOwnProperty,qt=e.unstable_scheduleCallback,Wt=e.unstable_cancelCallback,Oe=e.unstable_shouldYield,dt=e.unstable_requestPaint,ft=e.unstable_now,ut=e.unstable_getCurrentPriorityLevel,Nt=e.unstable_ImmediatePriority,U=e.unstable_UserBlockingPriority,D=e.unstable_NormalPriority,F=e.unstable_LowPriority,ae=e.unstable_IdlePriority,Te=e.log,Fe=e.unstable_setDisableYieldValue,We=null,Tt=null;function Mt(s){if(Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(We,s,void 0,(s.current.flags&128)===128)}catch{}}function be(s){if(typeof Te=="function"&&Fe(s),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(We,s)}catch{}}var Ee=Math.clz32?Math.clz32:_t,gt=Math.log,Lt=Math.LN2;function _t(s){return s>>>=0,s===0?32:31-(gt(s)/Lt|0)|0}var Ut=128,On=4194304;function gn(s){var c=s&42;if(c!==0)return c;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function ln(s,c){var p=s.pendingLanes;if(p===0)return 0;var S=0,x=s.suspendedLanes,M=s.pingedLanes,B=s.warmLanes;s=s.finishedLanes!==0;var X=p&134217727;return X!==0?(p=X&~x,p!==0?S=gn(p):(M&=X,M!==0?S=gn(M):s||(B=X&~B,B!==0&&(S=gn(B))))):(X=p&~x,X!==0?S=gn(X):M!==0?S=gn(M):s||(B=p&~B,B!==0&&(S=gn(B)))),S===0?0:c!==0&&c!==S&&(c&x)===0&&(x=S&-S,B=c&-c,x>=B||x===32&&(B&4194176)!==0)?c:S}function Bn(s,c){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&c)===0}function oa(s,c){switch(s){case 1:case 2:case 4:case 8:return c+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qa(){var s=Ut;return Ut<<=1,(Ut&4194176)===0&&(Ut=128),s}function ha(){var s=On;return On<<=1,(On&62914560)===0&&(On=4194304),s}function vn(s){for(var c=[],p=0;31>p;p++)c.push(s);return c}function _a(s,c){s.pendingLanes|=c,c!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Bo(s,c,p,S,x,M){var B=s.pendingLanes;s.pendingLanes=p,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=p,s.entangledLanes&=p,s.errorRecoveryDisabledLanes&=p,s.shellSuspendCounter=0;var X=s.entanglements,de=s.expirationTimes,Pe=s.hiddenUpdates;for(p=B&~p;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),of=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Yv={},Ph={};function x0(s){return cn.call(Ph,s)?!0:cn.call(Yv,s)?!1:of.test(s)?Ph[s]=!0:(Yv[s]=!0,!1)}function Dc(s,c,p){if(x0(c))if(p===null)s.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":s.removeAttribute(c);return;case"boolean":var S=c.toLowerCase().slice(0,5);if(S!=="data-"&&S!=="aria-"){s.removeAttribute(c);return}}s.setAttribute(c,""+p)}}function qi(s,c,p){if(p===null)s.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(c);return}s.setAttribute(c,""+p)}}function zo(s,c,p,S){if(S===null)s.removeAttribute(p);else{switch(typeof S){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(p);return}s.setAttributeNS(c,p,""+S)}}function Si(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function sf(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Au(s){var c=sf(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),S=""+s[c];if(!s.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var x=p.get,M=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return x.call(this)},set:function(B){S=""+B,M.call(this,B)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return S},setValue:function(B){S=""+B},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Hs(s){s._valueTracker||(s._valueTracker=Au(s))}function Vs(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),S="";return s&&(S=sf(s)?s.checked?"true":"false":s.value),s=S,s!==p?(c.setValue(s),!0):!1}function $c(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var _0=/[\n"\\]/g;function Ei(s){return s.replace(_0,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function lf(s,c,p,S,x,M,B,X){s.name="",B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?s.type=B:s.removeAttribute("type"),c!=null?B==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+Si(c)):s.value!==""+Si(c)&&(s.value=""+Si(c)):B!=="submit"&&B!=="reset"||s.removeAttribute("value"),c!=null?Ah(s,B,Si(c)):p!=null?Ah(s,B,Si(p)):S!=null&&s.removeAttribute("value"),x==null&&M!=null&&(s.defaultChecked=!!M),x!=null&&(s.checked=x&&typeof x!="function"&&typeof x!="symbol"),X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?s.name=""+Si(X):s.removeAttribute("name")}function uf(s,c,p,S,x,M,B,X){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(s.type=M),c!=null||p!=null){if(!(M!=="submit"&&M!=="reset"||c!=null))return;p=p!=null?""+Si(p):"",c=c!=null?""+Si(c):p,X||c===s.value||(s.value=c),s.defaultValue=c}S=S??x,S=typeof S!="function"&&typeof S!="symbol"&&!!S,s.checked=X?s.checked:!!S,s.defaultChecked=!!S,B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"&&(s.name=B)}function Ah(s,c,p){c==="number"&&$c(s.ownerDocument)===s||s.defaultValue===""+p||(s.defaultValue=""+p)}function Ll(s,c,p,S){if(s=s.options,c){c={};for(var x=0;x=bf),ry=" ",N0=!1;function nT(s,c){switch(s){case"keyup":return yf.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ay(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Du=!1;function mO(s,c){switch(s){case"compositionend":return ay(c);case"keypress":return c.which!==32?null:(N0=!0,ry);case"textInput":return s=c.data,s===ry&&N0?null:s;default:return null}}function rT(s,c){if(Du)return s==="compositionend"||!A0&&nT(s,c)?(s=Qv(),Gs=Iu=us=null,Du=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:p,offset:c-s};s=S}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Ho(p)}}function uT(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?uT(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function cT(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var c=$c(s.document);c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=$c(s.document)}return c}function D0(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function bO(s,c){var p=cT(c);c=s.focusedElem;var S=s.selectionRange;if(p!==c&&c&&c.ownerDocument&&uT(c.ownerDocument.documentElement,c)){if(S!==null&&D0(c)){if(s=S.start,p=S.end,p===void 0&&(p=s),"selectionStart"in c)c.selectionStart=s,c.selectionEnd=Math.min(p,c.value.length);else if(p=(s=c.ownerDocument||document)&&s.defaultView||window,p.getSelection){p=p.getSelection();var x=c.textContent.length,M=Math.min(S.start,x);S=S.end===void 0?M:Math.min(S.end,x),!p.extend&&M>S&&(x=S,S=M,M=x),x=I0(c,M);var B=I0(c,S);x&&B&&(p.rangeCount!==1||p.anchorNode!==x.node||p.anchorOffset!==x.offset||p.focusNode!==B.node||p.focusOffset!==B.offset)&&(s=s.createRange(),s.setStart(x.node,x.offset),p.removeAllRanges(),M>S?(p.addRange(s),p.extend(B.node,B.offset)):(s.setEnd(B.node,B.offset),p.addRange(s)))}}for(s=[],p=c;p=p.parentNode;)p.nodeType===1&&s.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c=document.documentMode,cs=null,Ae=null,He=null,Be=!1;function It(s,c,p){var S=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Be||cs==null||cs!==$c(S)||(S=cs,"selectionStart"in S&&D0(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),He&&Xs(He,S)||(He=S,S=Hy(Ae,"onSelect"),0>=B,x-=B,Ko=1<<32-Ee(c)+x|p<sn?(or=Yt,Yt=null):or=Yt.sibling;var Yn=Ue(Le,Yt,je[sn],Ze);if(Yn===null){Yt===null&&(Yt=or);break}s&&Yt&&Yn.alternate===null&&c(Le,Yt),_e=M(Yn,_e,sn),$n===null?$t=Yn:$n.sibling=Yn,$n=Yn,Yt=or}if(sn===je.length)return p(Le,Yt),pn&&ql(Le,sn),$t;if(Yt===null){for(;snsn?(or=Yt,Yt=null):or=Yt.sibling;var sc=Ue(Le,Yt,Yn.value,Ze);if(sc===null){Yt===null&&(Yt=or);break}s&&Yt&&sc.alternate===null&&c(Le,Yt),_e=M(sc,_e,sn),$n===null?$t=sc:$n.sibling=sc,$n=sc,Yt=or}if(Yn.done)return p(Le,Yt),pn&&ql(Le,sn),$t;if(Yt===null){for(;!Yn.done;sn++,Yn=je.next())Yn=st(Le,Yn.value,Ze),Yn!==null&&(_e=M(Yn,_e,sn),$n===null?$t=Yn:$n.sibling=Yn,$n=Yn);return pn&&ql(Le,sn),$t}for(Yt=S(Yt);!Yn.done;sn++,Yn=je.next())Yn=Ve(Yt,Le,sn,Yn.value,Ze),Yn!==null&&(s&&Yn.alternate!==null&&Yt.delete(Yn.key===null?sn:Yn.key),_e=M(Yn,_e,sn),$n===null?$t=Yn:$n.sibling=Yn,$n=Yn);return s&&Yt.forEach(function(cR){return c(Le,cR)}),pn&&ql(Le,sn),$t}function Hr(Le,_e,je,Ze){if(typeof je=="object"&&je!==null&&je.type===u&&je.key===null&&(je=je.props.children),typeof je=="object"&&je!==null){switch(je.$$typeof){case o:e:{for(var $t=je.key;_e!==null;){if(_e.key===$t){if($t=je.type,$t===u){if(_e.tag===7){p(Le,_e.sibling),Ze=x(_e,je.props.children),Ze.return=Le,Le=Ze;break e}}else if(_e.elementType===$t||typeof $t=="object"&&$t!==null&&$t.$$typeof===k&&Wh($t)===_e.type){p(Le,_e.sibling),Ze=x(_e,je.props),K(Ze,je),Ze.return=Le,Le=Ze;break e}p(Le,_e);break}else c(Le,_e);_e=_e.sibling}je.type===u?(Ze=ed(je.props.children,Le.mode,Ze,je.key),Ze.return=Le,Le=Ze):(Ze=dm(je.type,je.key,je.props,null,Le.mode,Ze),K(Ze,je),Ze.return=Le,Le=Ze)}return B(Le);case l:e:{for($t=je.key;_e!==null;){if(_e.key===$t)if(_e.tag===4&&_e.stateNode.containerInfo===je.containerInfo&&_e.stateNode.implementation===je.implementation){p(Le,_e.sibling),Ze=x(_e,je.children||[]),Ze.return=Le,Le=Ze;break e}else{p(Le,_e);break}else c(Le,_e);_e=_e.sibling}Ze=Rw(je,Le.mode,Ze),Ze.return=Le,Le=Ze}return B(Le);case k:return $t=je._init,je=$t(je._payload),Hr(Le,_e,je,Ze)}if(J(je))return Ht(Le,_e,je,Ze);if(N(je)){if($t=N(je),typeof $t!="function")throw Error(r(150));return je=$t.call(je),hn(Le,_e,je,Ze)}if(typeof je.then=="function")return Hr(Le,_e,Bh(je),Ze);if(je.$$typeof===h)return Hr(Le,_e,Iy(Le,je),Ze);Kl(Le,je)}return typeof je=="string"&&je!==""||typeof je=="number"||typeof je=="bigint"?(je=""+je,_e!==null&&_e.tag===6?(p(Le,_e.sibling),Ze=x(_e,je),Ze.return=Le,Le=Ze):(p(Le,_e),Ze=Ow(je,Le.mode,Ze),Ze.return=Le,Le=Ze),B(Le)):p(Le,_e)}return function(Le,_e,je,Ze){try{Yl=0;var $t=Hr(Le,_e,je,Ze);return Gl=null,$t}catch(Yt){if(Yt===Vl)throw Yt;var $n=Eo(29,Yt,null,Le.mode);return $n.lanes=Ze,$n.return=Le,$n}finally{}}}var Tn=mo(!0),vT=mo(!1),xf=fe(null),my=fe(0);function ju(s,c){s=ou,Ie(my,s),Ie(xf,c),ou=s|c.baseLanes}function U0(){Ie(my,ou),Ie(xf,xf.current)}function B0(){ou=my.current,xe(xf),xe(my)}var Qo=fe(null),nl=null;function Uu(s){var c=s.alternate;Ie(Aa,Aa.current&1),Ie(Qo,s),nl===null&&(c===null||xf.current!==null||c.memoizedState!==null)&&(nl=s)}function rl(s){if(s.tag===22){if(Ie(Aa,Aa.current),Ie(Qo,s),nl===null){var c=s.alternate;c!==null&&c.memoizedState!==null&&(nl=s)}}else Bu()}function Bu(){Ie(Aa,Aa.current),Ie(Qo,Qo.current)}function Xl(s){xe(Qo),nl===s&&(nl=null),xe(Aa)}var Aa=fe(0);function gy(s){for(var c=s;c!==null;){if(c.tag===13){var p=c.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var EO=typeof AbortController<"u"?AbortController:function(){var s=[],c=this.signal={aborted:!1,addEventListener:function(p,S){s.push(S)}};this.abort=function(){c.aborted=!0,s.forEach(function(p){return p()})}},Ql=e.unstable_scheduleCallback,TO=e.unstable_NormalPriority,Na={$$typeof:h,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function W0(){return{controller:new EO,data:new Map,refCount:0}}function zh(s){s.refCount--,s.refCount===0&&Ql(TO,function(){s.controller.abort()})}var qh=null,Jl=0,_f=0,Of=null;function ps(s,c){if(qh===null){var p=qh=[];Jl=0,_f=Vw(),Of={status:"pending",value:void 0,then:function(S){p.push(S)}}}return Jl++,c.then(yT,yT),c}function yT(){if(--Jl===0&&qh!==null){Of!==null&&(Of.status="fulfilled");var s=qh;qh=null,_f=0,Of=null;for(var c=0;cM?M:8;var B=j.T,X={};j.T=X,$f(s,!1,c,p);try{var de=x(),Pe=j.S;if(Pe!==null&&Pe(X,de),de!==null&&typeof de=="object"&&typeof de.then=="function"){var Ke=CO(de,S);Qh(s,c,Ke,Co(s))}else Qh(s,c,S,Co(s))}catch(st){Qh(s,c,{then:function(){},status:"rejected",reason:st},Co())}finally{ee.p=M,j.T=B}}function xO(){}function Xh(s,c,p,S){if(s.tag!==5)throw Error(r(476));var x=Rn(s).queue;ky(s,x,c,Z,p===null?xO:function(){return NT(s),p(S)})}function Rn(s){var c=s.memoizedState;if(c!==null)return c;c={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:Z},next:null};var p={};return c.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:p},next:null},s.memoizedState=c,s=s.alternate,s!==null&&(s.memoizedState=c),c}function NT(s){var c=Rn(s).next.queue;Qh(s,c,{},Co())}function aw(){return ci(Cm)}function Df(){return la().memoizedState}function iw(){return la().memoizedState}function _O(s){for(var c=s.return;c!==null;){switch(c.tag){case 24:case 3:var p=Co();s=bs(p);var S=yo(c,s,p);S!==null&&(fi(S,c,p),Qt(S,c,p)),c={cache:W0()},s.payload=c;return}c=c.return}}function OO(s,c,p){var S=Co();p={lane:S,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},Lf(s)?ow(c,p):(p=Qs(s,c,p,S),p!==null&&(fi(p,s,S),sw(p,c,S)))}function vo(s,c,p){var S=Co();Qh(s,c,p,S)}function Qh(s,c,p,S){var x={lane:S,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(Lf(s))ow(c,x);else{var M=s.alternate;if(s.lanes===0&&(M===null||M.lanes===0)&&(M=c.lastRenderedReducer,M!==null))try{var B=c.lastRenderedState,X=M(B,p);if(x.hasEagerState=!0,x.eagerState=X,po(X,B))return jc(s,c,x,0),Tr===null&&cy(),!1}catch{}finally{}if(p=Qs(s,c,x,S),p!==null)return fi(p,s,S),sw(p,c,S),!0}return!1}function $f(s,c,p,S){if(S={lane:2,revertLane:Vw(),action:S,hasEagerState:!1,eagerState:null,next:null},Lf(s)){if(c)throw Error(r(479))}else c=Qs(s,p,S,2),c!==null&&fi(c,s,2)}function Lf(s){var c=s.alternate;return s===An||c!==null&&c===An}function ow(s,c){Rf=Yc=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function sw(s,c,p){if((p&4194176)!==0){var S=c.lanes;S&=s.pendingLanes,p|=S,c.lanes=p,Ra(s,p)}}var Xr={readContext:ci,use:Vh,useCallback:er,useContext:er,useEffect:er,useImperativeHandle:er,useLayoutEffect:er,useInsertionEffect:er,useMemo:er,useReducer:er,useRef:er,useState:er,useDebugValue:er,useDeferredValue:er,useTransition:er,useSyncExternalStore:er,useId:er};Xr.useCacheRefresh=er,Xr.useMemoCache=er,Xr.useHostTransitionStatus=er,Xr.useFormState=er,Xr.useActionState=er,Xr.useOptimistic=er;var Vi={readContext:ci,use:Vh,useCallback:function(s,c){return Hi().memoizedState=[s,c===void 0?null:c],s},useContext:ci,useEffect:J0,useImperativeHandle:function(s,c,p){p=p!=null?p.concat([s]):null,If(4194308,4,Z0.bind(null,c,s),p)},useLayoutEffect:function(s,c){return If(4194308,4,s,c)},useInsertionEffect:function(s,c){If(4,2,s,c)},useMemo:function(s,c){var p=Hi();c=c===void 0?null:c;var S=s();if(zu){be(!0);try{s()}finally{be(!1)}}return p.memoizedState=[S,c],S},useReducer:function(s,c,p){var S=Hi();if(p!==void 0){var x=p(c);if(zu){be(!0);try{p(c)}finally{be(!1)}}}else x=c;return S.memoizedState=S.baseState=x,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:x},S.queue=s,s=s.dispatch=OO.bind(null,An,s),[S.memoizedState,s]},useRef:function(s){var c=Hi();return s={current:s},c.memoizedState=s},useState:function(s){s=Y0(s);var c=s.queue,p=vo.bind(null,An,c);return c.dispatch=p,[s.memoizedState,p]},useDebugValue:tw,useDeferredValue:function(s,c){var p=Hi();return Kh(p,s,c)},useTransition:function(){var s=Y0(!1);return s=ky.bind(null,An,s.queue,!0,!1),Hi().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,c,p){var S=An,x=Hi();if(pn){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),Tr===null)throw Error(r(349));(Gn&60)!==0||Sy(S,c,p)}x.memoizedState=p;var M={value:p,getSnapshot:c};return x.queue=M,J0(ST.bind(null,S,M,s),[s]),S.flags|=2048,Vu(9,wT.bind(null,S,M,p,c),{destroy:void 0},null),p},useId:function(){var s=Hi(),c=Tr.identifierPrefix;if(pn){var p=Xo,S=Ko;p=(S&~(1<<32-Ee(S)-1)).toString(32)+p,c=":"+c+"R"+p,p=vy++,0 title"))),ti(M,S,p),M[ye]=s,lr(M),S=M;break e;case"link":var B=_C("link","href",x).get(S+(p.href||""));if(B){for(var X=0;X<\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof S.is=="string"?x.createElement("select",{is:S.is}):x.createElement("select"),S.multiple?s.multiple=!0:S.size&&(s.size=S.size);break;default:s=typeof S.is=="string"?x.createElement(p,{is:S.is}):x.createElement(p)}}s[ye]=c,s[Se]=S;e:for(x=c.child;x!==null;){if(x.tag===5||x.tag===6)s.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===c)break e;for(;x.sibling===null;){if(x.return===null||x.return===c)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}c.stateNode=s;e:switch(ti(s,p,S),p){case"button":case"input":case"select":case"textarea":s=!!S.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&au(c)}}return Wr(c),c.flags&=-16777217,null;case 6:if(s&&c.stateNode!=null)s.memoizedProps!==S&&au(c);else{if(typeof S!="string"&&c.stateNode===null)throw Error(r(166));if(s=Ge.current,Vc(c)){if(s=c.stateNode,p=c.memoizedProps,S=null,x=ki,x!==null)switch(x.tag){case 27:case 5:S=x.memoizedProps}s[ye]=c,s=!!(s.nodeValue===p||S!==null&&S.suppressHydrationWarning===!0||bn(s.nodeValue,p)),s||Hc(c)}else s=Gy(s).createTextNode(S),s[ye]=c,c.stateNode=s}return Wr(c),null;case 13:if(S=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(x=Vc(c),S!==null&&S.dehydrated!==null){if(s===null){if(!x)throw Error(r(318));if(x=c.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[ye]=c}else tl(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Wr(c),x=!1}else fs!==null&&(Qf(fs),fs=null),x=!0;if(!x)return c.flags&256?(Xl(c),c):(Xl(c),null)}if(Xl(c),(c.flags&128)!==0)return c.lanes=p,c;if(p=S!==null,s=s!==null&&s.memoizedState!==null,p){S=c.child,x=null,S.alternate!==null&&S.alternate.memoizedState!==null&&S.alternate.memoizedState.cachePool!==null&&(x=S.alternate.memoizedState.cachePool.pool);var M=null;S.memoizedState!==null&&S.memoizedState.cachePool!==null&&(M=S.memoizedState.cachePool.pool),M!==x&&(S.flags|=2048)}return p!==s&&p&&(c.child.flags|=8192),Oi(c,c.updateQueue),Wr(c),null;case 4:return kt(),s===null&&Qw(c.stateNode.containerInfo),Wr(c),null;case 10:return il(c.type),Wr(c),null;case 19:if(xe(Aa),x=c.memoizedState,x===null)return Wr(c),null;if(S=(c.flags&128)!==0,M=x.rendering,M===null)if(S)fm(x,!1);else{if(Jr!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(M=gy(s),M!==null){for(c.flags|=128,fm(x,!1),s=M.updateQueue,c.updateQueue=s,Oi(c,s),c.subtreeFlags=0,s=p,p=c.child;p!==null;)QT(p,s),p=p.sibling;return Ie(Aa,Aa.current&1|2),c.child}s=s.sibling}x.tail!==null&&ft()>jy&&(c.flags|=128,S=!0,fm(x,!1),c.lanes=4194304)}else{if(!S)if(s=gy(M),s!==null){if(c.flags|=128,S=!0,s=s.updateQueue,c.updateQueue=s,Oi(c,s),fm(x,!0),x.tail===null&&x.tailMode==="hidden"&&!M.alternate&&!pn)return Wr(c),null}else 2*ft()-x.renderingStartTime>jy&&p!==536870912&&(c.flags|=128,S=!0,fm(x,!1),c.lanes=4194304);x.isBackwards?(M.sibling=c.child,c.child=M):(s=x.last,s!==null?s.sibling=M:c.child=M,x.last=M)}return x.tail!==null?(c=x.tail,x.rendering=c,x.tail=c.sibling,x.renderingStartTime=ft(),c.sibling=null,s=Aa.current,Ie(Aa,S?s&1|2:s&1),c):(Wr(c),null);case 22:case 23:return Xl(c),B0(),S=c.memoizedState!==null,s!==null?s.memoizedState!==null!==S&&(c.flags|=8192):S&&(c.flags|=8192),S?(p&536870912)!==0&&(c.flags&128)===0&&(Wr(c),c.subtreeFlags&6&&(c.flags|=8192)):Wr(c),p=c.updateQueue,p!==null&&Oi(c,p.retryQueue),p=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),S=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(S=c.memoizedState.cachePool.pool),S!==p&&(c.flags|=2048),s!==null&&xe(Gc),null;case 24:return p=null,s!==null&&(p=s.memoizedState.cache),c.memoizedState.cache!==p&&(c.flags|=2048),il(Na),Wr(c),null;case 25:return null}throw Error(r(156,c.tag))}function eC(s,c){switch(j0(c),c.tag){case 1:return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return il(Na),kt(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 26:case 27:case 5:return Rt(c),null;case 13:if(Xl(c),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));tl()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return xe(Aa),null;case 4:return kt(),null;case 10:return il(c.type),null;case 22:case 23:return Xl(c),B0(),s!==null&&xe(Gc),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 24:return il(Na),null;case 25:return null;default:return null}}function tC(s,c){switch(j0(c),c.tag){case 3:il(Na),kt();break;case 26:case 27:case 5:Rt(c);break;case 4:kt();break;case 13:Xl(c);break;case 19:xe(Aa);break;case 10:il(c.type);break;case 22:case 23:Xl(c),B0(),s!==null&&xe(Gc);break;case 24:il(Na)}}var NO={getCacheForType:function(s){var c=ci(Na),p=c.data.get(s);return p===void 0&&(p=s(),c.data.set(s,p)),p}},MO=typeof WeakMap=="function"?WeakMap:Map,zr=0,Tr=null,Un=null,Gn=0,Nr=0,To=null,iu=!1,Kf=!1,Pw=!1,ou=0,Jr=0,tc=0,td=0,Aw=0,Zo=0,Xf=0,pm=null,cl=null,Nw=!1,Mw=0,jy=1/0,Uy=null,dl=null,hm=!1,nd=null,mm=0,Iw=0,Dw=null,gm=0,$w=null;function Co(){if((zr&2)!==0&&Gn!==0)return Gn&-Gn;if(j.T!==null){var s=_f;return s!==0?s:Vw()}return we()}function nC(){Zo===0&&(Zo=(Gn&536870912)===0||pn?Qa():536870912);var s=Qo.current;return s!==null&&(s.flags|=32),Zo}function fi(s,c,p){(s===Tr&&Nr===2||s.cancelPendingCommit!==null)&&(Jf(s,0),su(s,Gn,Zo,!1)),_a(s,p),((zr&2)===0||s!==Tr)&&(s===Tr&&((zr&2)===0&&(td|=p),Jr===4&&su(s,Gn,Zo,!1)),Es(s))}function rC(s,c,p){if((zr&6)!==0)throw Error(r(327));var S=!p&&(c&60)===0&&(c&s.expiredLanes)===0||Bn(s,c),x=S?$O(s,c):jw(s,c,!0),M=S;do{if(x===0){Kf&&!S&&su(s,c,0,!1);break}else if(x===6)su(s,c,0,!iu);else{if(p=s.current.alternate,M&&!IO(p)){x=jw(s,c,!1),M=!1;continue}if(x===2){if(M=c,s.errorRecoveryDisabledLanes&M)var B=0;else B=s.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){c=B;e:{var X=s;x=pm;var de=X.current.memoizedState.isDehydrated;if(de&&(Jf(X,B).flags|=256),B=jw(X,B,!1),B!==2){if(Pw&&!de){X.errorRecoveryDisabledLanes|=M,td|=M,x=4;break e}M=cl,cl=x,M!==null&&Qf(M)}x=B}if(M=!1,x!==2)continue}}if(x===1){Jf(s,0),su(s,c,0,!0);break}e:{switch(S=s,x){case 0:case 1:throw Error(r(345));case 4:if((c&4194176)===c){su(S,c,Zo,!iu);break e}break;case 2:cl=null;break;case 3:case 5:break;default:throw Error(r(329))}if(S.finishedWork=p,S.finishedLanes=c,(c&62914560)===c&&(M=Mw+300-ft(),10p?32:p,j.T=null,nd===null)var M=!1;else{p=Dw,Dw=null;var B=nd,X=mm;if(nd=null,mm=0,(zr&6)!==0)throw Error(r(331));var de=zr;if(zr|=4,KT(B.current),VT(B,B.current,X,p),zr=de,id(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(We,B)}catch{}M=!0}return M}finally{ee.p=x,j.T=S,fC(s,c)}}return!1}function pC(s,c,p){c=Ci(p,c),c=Zh(s.stateNode,c,2),s=yo(s,c,2),s!==null&&(_a(s,2),Es(s))}function _r(s,c,p){if(s.tag===3)pC(s,s,p);else for(;c!==null;){if(c.tag===3){pC(c,s,p);break}else if(c.tag===1){var S=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&(dl===null||!dl.has(S))){s=Ci(p,s),p=IT(2),S=yo(c,p,2),S!==null&&(DT(p,S,c,s),_a(S,2),Es(S));break}}c=c.return}}function Uw(s,c,p){var S=s.pingCache;if(S===null){S=s.pingCache=new MO;var x=new Set;S.set(c,x)}else x=S.get(c),x===void 0&&(x=new Set,S.set(c,x));x.has(p)||(Pw=!0,x.add(p),s=jO.bind(null,s,c,p),c.then(s,s))}function jO(s,c,p){var S=s.pingCache;S!==null&&S.delete(c),s.pingedLanes|=s.suspendedLanes&p,s.warmLanes&=~p,Tr===s&&(Gn&p)===p&&(Jr===4||Jr===3&&(Gn&62914560)===Gn&&300>ft()-Mw?(zr&2)===0&&Jf(s,0):Aw|=p,Xf===Gn&&(Xf=0)),Es(s)}function hC(s,c){c===0&&(c=ha()),s=ds(s,c),s!==null&&(_a(s,c),Es(s))}function UO(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),hC(s,p)}function BO(s,c){var p=0;switch(s.tag){case 13:var S=s.stateNode,x=s.memoizedState;x!==null&&(p=x.retryLane);break;case 19:S=s.stateNode;break;case 22:S=s.stateNode._retryCache;break;default:throw Error(r(314))}S!==null&&S.delete(c),hC(s,p)}function WO(s,c){return qt(s,c)}var Wy=null,Zf=null,Bw=!1,ad=!1,Ww=!1,nc=0;function Es(s){s!==Zf&&s.next===null&&(Zf===null?Wy=Zf=s:Zf=Zf.next=s),ad=!0,Bw||(Bw=!0,zO(mC))}function id(s,c){if(!Ww&&ad){Ww=!0;do for(var p=!1,S=Wy;S!==null;){if(s!==0){var x=S.pendingLanes;if(x===0)var M=0;else{var B=S.suspendedLanes,X=S.pingedLanes;M=(1<<31-Ee(42|s)+1)-1,M&=x&~(B&~X),M=M&201326677?M&201326677|1:M?M|2:0}M!==0&&(p=!0,Hw(S,M))}else M=Gn,M=ln(S,S===Tr?M:0),(M&3)===0||Bn(S,M)||(p=!0,Hw(S,M));S=S.next}while(p);Ww=!1}}function mC(){ad=Bw=!1;var s=0;nc!==0&&(uu()&&(s=nc),nc=0);for(var c=ft(),p=null,S=Wy;S!==null;){var x=S.next,M=zw(S,c);M===0?(S.next=null,p===null?Wy=x:p.next=x,x===null&&(Zf=p)):(p=S,(s!==0||(M&3)!==0)&&(ad=!0)),S=x}id(s)}function zw(s,c){for(var p=s.suspendedLanes,S=s.pingedLanes,x=s.expirationTimes,M=s.pendingLanes&-62914561;0"u"?null:document;function CC(s,c,p){var S=Cs;if(S&&typeof c=="string"&&c){var x=Ei(c);x='link[rel="'+s+'"][href="'+x+'"]',typeof p=="string"&&(x+='[crossorigin="'+p+'"]'),Ky.has(x)||(Ky.add(x),s={rel:s,crossOrigin:p,href:c},S.querySelector(x)===null&&(c=S.createElement("link"),ti(c,"link",s),lr(c),S.head.appendChild(c)))}}function KO(s){fl.D(s),CC("dns-prefetch",s,null)}function XO(s,c){fl.C(s,c),CC("preconnect",s,c)}function QO(s,c,p){fl.L(s,c,p);var S=Cs;if(S&&s&&c){var x='link[rel="preload"][as="'+Ei(c)+'"]';c==="image"&&p&&p.imageSrcSet?(x+='[imagesrcset="'+Ei(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(x+='[imagesizes="'+Ei(p.imageSizes)+'"]')):x+='[href="'+Ei(s)+'"]';var M=x;switch(c){case"style":M=ni(s);break;case"script":M=np(s)}pi.has(M)||(s=z({rel:"preload",href:c==="image"&&p&&p.imageSrcSet?void 0:s,as:c},p),pi.set(M,s),S.querySelector(x)!==null||c==="style"&&S.querySelector(tp(M))||c==="script"&&S.querySelector(rp(M))||(c=S.createElement("link"),ti(c,"link",s),lr(c),S.head.appendChild(c)))}}function JO(s,c){fl.m(s,c);var p=Cs;if(p&&s){var S=c&&typeof c.as=="string"?c.as:"script",x='link[rel="modulepreload"][as="'+Ei(S)+'"][href="'+Ei(s)+'"]',M=x;switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=np(s)}if(!pi.has(M)&&(s=z({rel:"modulepreload",href:s},c),pi.set(M,s),p.querySelector(x)===null)){switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(rp(M)))return}S=p.createElement("link"),ti(S,"link",s),lr(S),p.head.appendChild(S)}}}function kC(s,c,p){fl.S(s,c,p);var S=Cs;if(S&&s){var x=Pr(S).hoistableStyles,M=ni(s);c=c||"default";var B=x.get(M);if(!B){var X={loading:0,preload:null};if(B=S.querySelector(tp(M)))X.loading=5;else{s=z({rel:"stylesheet",href:s,"data-precedence":c},p),(p=pi.get(M))&&s1(s,p);var de=B=S.createElement("link");lr(de),ti(de,"link",s),de._p=new Promise(function(Pe,Ke){de.onload=Pe,de.onerror=Ke}),de.addEventListener("load",function(){X.loading|=1}),de.addEventListener("error",function(){X.loading|=2}),X.loading|=4,Jy(B,c,S)}B={type:"stylesheet",instance:B,count:1,state:X},x.set(M,B)}}}function cu(s,c){fl.X(s,c);var p=Cs;if(p&&s){var S=Pr(p).hoistableScripts,x=np(s),M=S.get(x);M||(M=p.querySelector(rp(x)),M||(s=z({src:s,async:!0},c),(c=pi.get(x))&&l1(s,c),M=p.createElement("script"),lr(M),ti(M,"link",s),p.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},S.set(x,M))}}function xn(s,c){fl.M(s,c);var p=Cs;if(p&&s){var S=Pr(p).hoistableScripts,x=np(s),M=S.get(x);M||(M=p.querySelector(rp(x)),M||(s=z({src:s,async:!0,type:"module"},c),(c=pi.get(x))&&l1(s,c),M=p.createElement("script"),lr(M),ti(M,"link",s),p.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},S.set(x,M))}}function o1(s,c,p,S){var x=(x=Ge.current)?Xy(x):null;if(!x)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(c=ni(p.href),p=Pr(x).hoistableStyles,S=p.get(c),S||(S={type:"style",instance:null,count:0,state:null},p.set(c,S)),S):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){s=ni(p.href);var M=Pr(x).hoistableStyles,B=M.get(s);if(B||(x=x.ownerDocument||x,B={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(s,B),(M=x.querySelector(tp(s)))&&!M._p&&(B.instance=M,B.state.loading=5),pi.has(s)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},pi.set(s,p),M||fr(x,s,p,B.state))),c&&S===null)throw Error(r(528,""));return B}if(c&&S!==null)throw Error(r(529,""));return null;case"script":return c=p.async,p=p.src,typeof p=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=np(p),p=Pr(x).hoistableScripts,S=p.get(c),S||(S={type:"script",instance:null,count:0,state:null},p.set(c,S)),S):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function ni(s){return'href="'+Ei(s)+'"'}function tp(s){return'link[rel="stylesheet"]['+s+"]"}function xC(s){return z({},s,{"data-precedence":s.precedence,precedence:null})}function fr(s,c,p,S){s.querySelector('link[rel="preload"][as="style"]['+c+"]")?S.loading=1:(c=s.createElement("link"),S.preload=c,c.addEventListener("load",function(){return S.loading|=1}),c.addEventListener("error",function(){return S.loading|=2}),ti(c,"link",p),lr(c),s.head.appendChild(c))}function np(s){return'[src="'+Ei(s)+'"]'}function rp(s){return"script[async]"+s}function Em(s,c,p){if(c.count++,c.instance===null)switch(c.type){case"style":var S=s.querySelector('style[data-href~="'+Ei(p.href)+'"]');if(S)return c.instance=S,lr(S),S;var x=z({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return S=(s.ownerDocument||s).createElement("style"),lr(S),ti(S,"style",x),Jy(S,p.precedence,s),c.instance=S;case"stylesheet":x=ni(p.href);var M=s.querySelector(tp(x));if(M)return c.state.loading|=4,c.instance=M,lr(M),M;S=xC(p),(x=pi.get(x))&&s1(S,x),M=(s.ownerDocument||s).createElement("link"),lr(M);var B=M;return B._p=new Promise(function(X,de){B.onload=X,B.onerror=de}),ti(M,"link",S),c.state.loading|=4,Jy(M,p.precedence,s),c.instance=M;case"script":return M=np(p.src),(x=s.querySelector(rp(M)))?(c.instance=x,lr(x),x):(S=p,(x=pi.get(M))&&(S=z({},p),l1(S,x)),s=s.ownerDocument||s,x=s.createElement("script"),lr(x),ti(x,"link",S),s.head.appendChild(x),c.instance=x);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(S=c.instance,c.state.loading|=4,Jy(S,p.precedence,s));return c.instance}function Jy(s,c,p){for(var S=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=S.length?S[S.length-1]:null,M=x,B=0;B title"):null)}function ZO(s,c,p){if(p===1||c.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return s=c.disabled,typeof c.precedence=="string"&&s==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function RC(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var Tm=null;function eR(){}function tR(s,c,p){if(Tm===null)throw Error(r(475));var S=Tm;if(c.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var x=ni(p.href),M=s.querySelector(tp(x));if(M){s=M._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(S.count++,S=eb.bind(S),s.then(S,S)),c.state.loading|=4,c.instance=M,lr(M);return}M=s.ownerDocument||s,p=xC(p),(x=pi.get(x))&&s1(p,x),M=M.createElement("link"),lr(M);var B=M;B._p=new Promise(function(X,de){B.onload=X,B.onerror=de}),ti(M,"link",p),c.instance=M}S.stylesheets===null&&(S.stylesheets=new Map),S.stylesheets.set(c,s),(s=c.state.preload)&&(c.state.loading&3)===0&&(S.count++,c=eb.bind(S),s.addEventListener("load",c),s.addEventListener("error",c))}}function nR(){if(Tm===null)throw Error(r(475));var s=Tm;return s.stylesheets&&s.count===0&&u1(s,s.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),vR.exports=Roe(),vR.exports}var Aoe=Poe();const Noe=Rc(Aoe);var wc=D3();const Moe=Rc(wc);/** +`+p.stack}}function q(s){var c=s,p=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(p=c.return),s=c.return;while(s)}return c.tag===3?p:null}function ce(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function H(s){if(q(s)!==s)throw Error(r(188))}function Y(s){var c=s.alternate;if(!c){if(c=q(s),c===null)throw Error(r(188));return c!==s?null:s}for(var p=s,S=c;;){var x=p.return;if(x===null)break;var M=x.alternate;if(M===null){if(S=x.return,S!==null){p=S;continue}break}if(x.child===M.child){for(M=x.child;M;){if(M===p)return H(x),s;if(M===S)return H(x),c;M=M.sibling}throw Error(r(188))}if(p.return!==S.return)p=x,S=M;else{for(var B=!1,X=x.child;X;){if(X===p){B=!0,p=x,S=M;break}if(X===S){B=!0,S=x,p=M;break}X=X.sibling}if(!B){for(X=M.child;X;){if(X===p){B=!0,p=M,S=x;break}if(X===S){B=!0,S=M,p=x;break}X=X.sibling}if(!B)throw Error(r(189))}}if(p.alternate!==S)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?s:c}function ie(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s;for(s=s.child;s!==null;){if(c=ie(s),c!==null)return c;s=s.sibling}return null}var J=Array.isArray,ee=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ue=[],ke=-1;function fe(s){return{current:s}}function xe(s){0>ke||(s.current=ue[ke],ue[ke]=null,ke--)}function Ie(s,c){ke++,ue[ke]=s.current,s.current=c}var qe=fe(null),tt=fe(null),Ge=fe(null),at=fe(null);function Et(s,c){switch(Ie(Ge,c),Ie(tt,s),Ie(qe,null),s=c.nodeType,s){case 9:case 11:c=(c=c.documentElement)&&(c=c.namespaceURI)?AC(c):0;break;default:if(s=s===8?c.parentNode:c,c=s.tagName,s=s.namespaceURI)s=AC(s),c=NC(s,c);else switch(c){case"svg":c=1;break;case"math":c=2;break;default:c=0}}xe(qe),Ie(qe,c)}function kt(){xe(qe),xe(tt),xe(Ge)}function xt(s){s.memoizedState!==null&&Ie(at,s);var c=qe.current,p=NC(c,s.type);c!==p&&(Ie(tt,s),Ie(qe,p))}function Rt(s){tt.current===s&&(xe(qe),xe(tt)),at.current===s&&(xe(at),_m._currentValue=Z)}var cn=Object.prototype.hasOwnProperty,qt=e.unstable_scheduleCallback,Wt=e.unstable_cancelCallback,Oe=e.unstable_shouldYield,dt=e.unstable_requestPaint,ft=e.unstable_now,ut=e.unstable_getCurrentPriorityLevel,Nt=e.unstable_ImmediatePriority,U=e.unstable_UserBlockingPriority,D=e.unstable_NormalPriority,F=e.unstable_LowPriority,ae=e.unstable_IdlePriority,Te=e.log,Fe=e.unstable_setDisableYieldValue,We=null,Tt=null;function Mt(s){if(Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(We,s,void 0,(s.current.flags&128)===128)}catch{}}function be(s){if(typeof Te=="function"&&Fe(s),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(We,s)}catch{}}var Ee=Math.clz32?Math.clz32:_t,gt=Math.log,Lt=Math.LN2;function _t(s){return s>>>=0,s===0?32:31-(gt(s)/Lt|0)|0}var Ut=128,_n=4194304;function gn(s){var c=s&42;if(c!==0)return c;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function ln(s,c){var p=s.pendingLanes;if(p===0)return 0;var S=0,x=s.suspendedLanes,M=s.pingedLanes,B=s.warmLanes;s=s.finishedLanes!==0;var X=p&134217727;return X!==0?(p=X&~x,p!==0?S=gn(p):(M&=X,M!==0?S=gn(M):s||(B=X&~B,B!==0&&(S=gn(B))))):(X=p&~x,X!==0?S=gn(X):M!==0?S=gn(M):s||(B=p&~B,B!==0&&(S=gn(B)))),S===0?0:c!==0&&c!==S&&(c&x)===0&&(x=S&-S,B=c&-c,x>=B||x===32&&(B&4194176)!==0)?c:S}function Bn(s,c){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&c)===0}function sa(s,c){switch(s){case 1:case 2:case 4:case 8:return c+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qa(){var s=Ut;return Ut<<=1,(Ut&4194176)===0&&(Ut=128),s}function ma(){var s=_n;return _n<<=1,(_n&62914560)===0&&(_n=4194304),s}function vn(s){for(var c=[],p=0;31>p;p++)c.push(s);return c}function _a(s,c){s.pendingLanes|=c,c!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Wo(s,c,p,S,x,M){var B=s.pendingLanes;s.pendingLanes=p,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=p,s.entangledLanes&=p,s.errorRecoveryDisabledLanes&=p,s.shellSuspendCounter=0;var X=s.entanglements,de=s.expirationTimes,Pe=s.hiddenUpdates;for(p=B&~p;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uf=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ny={},Mh={};function D0(s){return cn.call(Mh,s)?!0:cn.call(ny,s)?!1:uf.test(s)?Mh[s]=!0:(ny[s]=!0,!1)}function $c(s,c,p){if(D0(c))if(p===null)s.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":s.removeAttribute(c);return;case"boolean":var S=c.toLowerCase().slice(0,5);if(S!=="data-"&&S!=="aria-"){s.removeAttribute(c);return}}s.setAttribute(c,""+p)}}function Hi(s,c,p){if(p===null)s.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(c);return}s.setAttribute(c,""+p)}}function qo(s,c,p,S){if(S===null)s.removeAttribute(p);else{switch(typeof S){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(p);return}s.setAttributeNS(c,p,""+S)}}function Si(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function cf(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Nu(s){var c=cf(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),S=""+s[c];if(!s.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var x=p.get,M=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return x.call(this)},set:function(B){S=""+B,M.call(this,B)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return S},setValue:function(B){S=""+B},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Xs(s){s._valueTracker||(s._valueTracker=Nu(s))}function Qs(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),S="";return s&&(S=cf(s)?s.checked?"true":"false":s.value),s=S,s!==p?(c.setValue(s),!0):!1}function Lc(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var $0=/[\n"\\]/g;function Ei(s){return s.replace($0,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function df(s,c,p,S,x,M,B,X){s.name="",B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?s.type=B:s.removeAttribute("type"),c!=null?B==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+Si(c)):s.value!==""+Si(c)&&(s.value=""+Si(c)):B!=="submit"&&B!=="reset"||s.removeAttribute("value"),c!=null?Ih(s,B,Si(c)):p!=null?Ih(s,B,Si(p)):S!=null&&s.removeAttribute("value"),x==null&&M!=null&&(s.defaultChecked=!!M),x!=null&&(s.checked=x&&typeof x!="function"&&typeof x!="symbol"),X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?s.name=""+Si(X):s.removeAttribute("name")}function ff(s,c,p,S,x,M,B,X){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(s.type=M),c!=null||p!=null){if(!(M!=="submit"&&M!=="reset"||c!=null))return;p=p!=null?""+Si(p):"",c=c!=null?""+Si(c):p,X||c===s.value||(s.value=c),s.defaultValue=c}S=S??x,S=typeof S!="function"&&typeof S!="symbol"&&!!S,s.checked=X?s.checked:!!S,s.defaultChecked=!!S,B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"&&(s.name=B)}function Ih(s,c,p){c==="number"&&Lc(s.ownerDocument)===s||s.defaultValue===""+p||(s.defaultValue=""+p)}function Fl(s,c,p,S){if(s=s.options,c){c={};for(var x=0;x=Ef),dy=" ",B0=!1;function pT(s,c){switch(s){case"keyup":return Sf.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fy(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var $u=!1;function xO(s,c){switch(s){case"compositionend":return fy(c);case"keypress":return c.which!==32?null:(B0=!0,dy);case"textInput":return s=c.data,s===dy&&B0?null:s;default:return null}}function hT(s,c){if($u)return s==="compositionend"||!U0&&pT(s,c)?(s=iy(),Js=Du=ds=null,$u=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:p,offset:c-s};s=S}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Vo(p)}}function wT(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?wT(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function ST(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var c=Lc(s.document);c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=Lc(s.document)}return c}function q0(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function PO(s,c){var p=ST(c);c=s.focusedElem;var S=s.selectionRange;if(p!==c&&c&&c.ownerDocument&&wT(c.ownerDocument.documentElement,c)){if(S!==null&&q0(c)){if(s=S.start,p=S.end,p===void 0&&(p=s),"selectionStart"in c)c.selectionStart=s,c.selectionEnd=Math.min(p,c.value.length);else if(p=(s=c.ownerDocument||document)&&s.defaultView||window,p.getSelection){p=p.getSelection();var x=c.textContent.length,M=Math.min(S.start,x);S=S.end===void 0?M:Math.min(S.end,x),!p.extend&&M>S&&(x=S,S=M,M=x),x=z0(c,M);var B=z0(c,S);x&&B&&(p.rangeCount!==1||p.anchorNode!==x.node||p.anchorOffset!==x.offset||p.focusNode!==B.node||p.focusOffset!==B.offset)&&(s=s.createRange(),s.setStart(x.node,x.offset),p.removeAllRanges(),M>S?(p.addRange(s),p.extend(B.node,B.offset)):(s.setEnd(B.node,B.offset),p.addRange(s)))}}for(s=[],p=c;p=p.parentNode;)p.nodeType===1&&s.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c=document.documentMode,fs=null,Ae=null,He=null,Be=!1;function It(s,c,p){var S=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Be||fs==null||fs!==Lc(S)||(S=fs,"selectionStart"in S&&q0(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),He&&tl(He,S)||(He=S,S=Zy(Ae,"onSelect"),0>=B,x-=B,Xo=1<<32-Ee(c)+x|p<sn?(or=Yt,Yt=null):or=Yt.sibling;var Yn=Ue(Le,Yt,je[sn],Ze);if(Yn===null){Yt===null&&(Yt=or);break}s&&Yt&&Yn.alternate===null&&c(Le,Yt),_e=M(Yn,_e,sn),$n===null?$t=Yn:$n.sibling=Yn,$n=Yn,Yt=or}if(sn===je.length)return p(Le,Yt),pn&&Hl(Le,sn),$t;if(Yt===null){for(;snsn?(or=Yt,Yt=null):or=Yt.sibling;var lc=Ue(Le,Yt,Yn.value,Ze);if(lc===null){Yt===null&&(Yt=or);break}s&&Yt&&lc.alternate===null&&c(Le,Yt),_e=M(lc,_e,sn),$n===null?$t=lc:$n.sibling=lc,$n=lc,Yt=or}if(Yn.done)return p(Le,Yt),pn&&Hl(Le,sn),$t;if(Yt===null){for(;!Yn.done;sn++,Yn=je.next())Yn=st(Le,Yn.value,Ze),Yn!==null&&(_e=M(Yn,_e,sn),$n===null?$t=Yn:$n.sibling=Yn,$n=Yn);return pn&&Hl(Le,sn),$t}for(Yt=S(Yt);!Yn.done;sn++,Yn=je.next())Yn=Ve(Yt,Le,sn,Yn.value,Ze),Yn!==null&&(s&&Yn.alternate!==null&&Yt.delete(Yn.key===null?sn:Yn.key),_e=M(Yn,_e,sn),$n===null?$t=Yn:$n.sibling=Yn,$n=Yn);return s&&Yt.forEach(function(SR){return c(Le,SR)}),pn&&Hl(Le,sn),$t}function Vr(Le,_e,je,Ze){if(typeof je=="object"&&je!==null&&je.type===u&&je.key===null&&(je=je.props.children),typeof je=="object"&&je!==null){switch(je.$$typeof){case o:e:{for(var $t=je.key;_e!==null;){if(_e.key===$t){if($t=je.type,$t===u){if(_e.tag===7){p(Le,_e.sibling),Ze=x(_e,je.props.children),Ze.return=Le,Le=Ze;break e}}else if(_e.elementType===$t||typeof $t=="object"&&$t!==null&&$t.$$typeof===k&&Hh($t)===_e.type){p(Le,_e.sibling),Ze=x(_e,je.props),K(Ze,je),Ze.return=Le,Le=Ze;break e}p(Le,_e);break}else c(Le,_e);_e=_e.sibling}je.type===u?(Ze=td(je.props.children,Le.mode,Ze,je.key),Ze.return=Le,Le=Ze):(Ze=hm(je.type,je.key,je.props,null,Le.mode,Ze),K(Ze,je),Ze.return=Le,Le=Ze)}return B(Le);case l:e:{for($t=je.key;_e!==null;){if(_e.key===$t)if(_e.tag===4&&_e.stateNode.containerInfo===je.containerInfo&&_e.stateNode.implementation===je.implementation){p(Le,_e.sibling),Ze=x(_e,je.children||[]),Ze.return=Le,Le=Ze;break e}else{p(Le,_e);break}else c(Le,_e);_e=_e.sibling}Ze=Fw(je,Le.mode,Ze),Ze.return=Le,Le=Ze}return B(Le);case k:return $t=je._init,je=$t(je._payload),Vr(Le,_e,je,Ze)}if(J(je))return Ht(Le,_e,je,Ze);if(N(je)){if($t=N(je),typeof $t!="function")throw Error(r(150));return je=$t.call(je),hn(Le,_e,je,Ze)}if(typeof je.then=="function")return Vr(Le,_e,qh(je),Ze);if(je.$$typeof===h)return Vr(Le,_e,Wy(Le,je),Ze);Xl(Le,je)}return typeof je=="string"&&je!==""||typeof je=="number"||typeof je=="bigint"?(je=""+je,_e!==null&&_e.tag===6?(p(Le,_e.sibling),Ze=x(_e,je),Ze.return=Le,Le=Ze):(p(Le,_e),Ze=Lw(je,Le.mode,Ze),Ze.return=Le,Le=Ze),B(Le)):p(Le,_e)}return function(Le,_e,je,Ze){try{Kl=0;var $t=Vr(Le,_e,je,Ze);return Yl=null,$t}catch(Yt){if(Yt===Gl)throw Yt;var $n=To(29,Yt,null,Le.mode);return $n.lanes=Ze,$n.return=Le,$n}finally{}}}var Tn=go(!0),OT=go(!1),Rf=fe(null),Ty=fe(0);function Uu(s,c){s=su,Ie(Ty,s),Ie(Rf,c),su=s|c.baseLanes}function K0(){Ie(Ty,su),Ie(Rf,Rf.current)}function X0(){su=Ty.current,xe(Rf),xe(Ty)}var Jo=fe(null),sl=null;function Bu(s){var c=s.alternate;Ie(Aa,Aa.current&1),Ie(Jo,s),sl===null&&(c===null||Rf.current!==null||c.memoizedState!==null)&&(sl=s)}function ll(s){if(s.tag===22){if(Ie(Aa,Aa.current),Ie(Jo,s),sl===null){var c=s.alternate;c!==null&&c.memoizedState!==null&&(sl=s)}}else Wu()}function Wu(){Ie(Aa,Aa.current),Ie(Jo,Jo.current)}function Ql(s){xe(Jo),sl===s&&(sl=null),xe(Aa)}var Aa=fe(0);function Cy(s){for(var c=s;c!==null;){if(c.tag===13){var p=c.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var MO=typeof AbortController<"u"?AbortController:function(){var s=[],c=this.signal={aborted:!1,addEventListener:function(p,S){s.push(S)}};this.abort=function(){c.aborted=!0,s.forEach(function(p){return p()})}},Jl=e.unstable_scheduleCallback,IO=e.unstable_NormalPriority,Na={$$typeof:h,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Q0(){return{controller:new MO,data:new Map,refCount:0}}function Vh(s){s.refCount--,s.refCount===0&&Jl(IO,function(){s.controller.abort()})}var Gh=null,Zl=0,Pf=0,Af=null;function ms(s,c){if(Gh===null){var p=Gh=[];Zl=0,Pf=t1(),Af={status:"pending",value:void 0,then:function(S){p.push(S)}}}return Zl++,c.then(RT,RT),c}function RT(){if(--Zl===0&&Gh!==null){Af!==null&&(Af.status="fulfilled");var s=Gh;Gh=null,Pf=0,Af=null;for(var c=0;cM?M:8;var B=j.T,X={};j.T=X,jf(s,!1,c,p);try{var de=x(),Pe=j.S;if(Pe!==null&&Pe(X,de),de!==null&&typeof de=="object"&&typeof de.then=="function"){var Ke=DO(de,S);em(s,c,Ke,ko(s))}else em(s,c,S,ko(s))}catch(st){em(s,c,{then:function(){},status:"rejected",reason:st},ko())}finally{ee.p=M,j.T=B}}function LO(){}function Zh(s,c,p,S){if(s.tag!==5)throw Error(r(476));var x=On(s).queue;My(s,x,c,Z,p===null?LO:function(){return zT(s),p(S)})}function On(s){var c=s.memoizedState;if(c!==null)return c;c={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:Z},next:null};var p={};return c.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:p},next:null},s.memoizedState=c,s=s.alternate,s!==null&&(s.memoizedState=c),c}function zT(s){var c=On(s).next.queue;em(s,c,{},ko())}function pw(){return ci(_m)}function Ff(){return ua().memoizedState}function hw(){return ua().memoizedState}function FO(s){for(var c=s.return;c!==null;){switch(c.tag){case 24:case 3:var p=ko();s=Ss(p);var S=bo(c,s,p);S!==null&&(fi(S,c,p),Qt(S,c,p)),c={cache:Q0()},s.payload=c;return}c=c.return}}function jO(s,c,p){var S=ko();p={lane:S,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},Uf(s)?mw(c,p):(p=nl(s,c,p,S),p!==null&&(fi(p,s,S),gw(p,c,S)))}function yo(s,c,p){var S=ko();em(s,c,p,S)}function em(s,c,p,S){var x={lane:S,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(Uf(s))mw(c,x);else{var M=s.alternate;if(s.lanes===0&&(M===null||M.lanes===0)&&(M=c.lastRenderedReducer,M!==null))try{var B=c.lastRenderedState,X=M(B,p);if(x.hasEagerState=!0,x.eagerState=X,ho(X,B))return Uc(s,c,x,0),Tr===null&&yy(),!1}catch{}finally{}if(p=nl(s,c,x,S),p!==null)return fi(p,s,S),gw(p,c,S),!0}return!1}function jf(s,c,p,S){if(S={lane:2,revertLane:t1(),action:S,hasEagerState:!1,eagerState:null,next:null},Uf(s)){if(c)throw Error(r(479))}else c=nl(s,p,S,2),c!==null&&fi(c,s,2)}function Uf(s){var c=s.alternate;return s===An||c!==null&&c===An}function mw(s,c){Nf=Kc=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function gw(s,c,p){if((p&4194176)!==0){var S=c.lanes;S&=s.pendingLanes,p|=S,c.lanes=p,Ra(s,p)}}var Qr={readContext:ci,use:Kh,useCallback:er,useContext:er,useEffect:er,useImperativeHandle:er,useLayoutEffect:er,useInsertionEffect:er,useMemo:er,useReducer:er,useRef:er,useState:er,useDebugValue:er,useDeferredValue:er,useTransition:er,useSyncExternalStore:er,useId:er};Qr.useCacheRefresh=er,Qr.useMemoCache=er,Qr.useHostTransitionStatus=er,Qr.useFormState=er,Qr.useActionState=er,Qr.useOptimistic=er;var Gi={readContext:ci,use:Kh,useCallback:function(s,c){return Vi().memoizedState=[s,c===void 0?null:c],s},useContext:ci,useEffect:sw,useImperativeHandle:function(s,c,p){p=p!=null?p.concat([s]):null,Lf(4194308,4,lw.bind(null,c,s),p)},useLayoutEffect:function(s,c){return Lf(4194308,4,s,c)},useInsertionEffect:function(s,c){Lf(4,2,s,c)},useMemo:function(s,c){var p=Vi();c=c===void 0?null:c;var S=s();if(qu){be(!0);try{s()}finally{be(!1)}}return p.memoizedState=[S,c],S},useReducer:function(s,c,p){var S=Vi();if(p!==void 0){var x=p(c);if(qu){be(!0);try{p(c)}finally{be(!1)}}}else x=c;return S.memoizedState=S.baseState=x,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:x},S.queue=s,s=s.dispatch=jO.bind(null,An,s),[S.memoizedState,s]},useRef:function(s){var c=Vi();return s={current:s},c.memoizedState=s},useState:function(s){s=rw(s);var c=s.queue,p=yo.bind(null,An,c);return c.dispatch=p,[s.memoizedState,p]},useDebugValue:cw,useDeferredValue:function(s,c){var p=Vi();return Jh(p,s,c)},useTransition:function(){var s=rw(!1);return s=My.bind(null,An,s.queue,!0,!1),Vi().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,c,p){var S=An,x=Vi();if(pn){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),Tr===null)throw Error(r(349));(Gn&60)!==0||Ry(S,c,p)}x.memoizedState=p;var M={value:p,getSnapshot:c};return x.queue=M,sw(NT.bind(null,S,M,s),[s]),S.flags|=2048,Gu(9,AT.bind(null,S,M,p,c),{destroy:void 0},null),p},useId:function(){var s=Vi(),c=Tr.identifierPrefix;if(pn){var p=Qo,S=Xo;p=(S&~(1<<32-Ee(S)-1)).toString(32)+p,c=":"+c+"R"+p,p=ky++,0 title"))),ti(M,S,p),M[ye]=s,lr(M),S=M;break e;case"link":var B=FC("link","href",x).get(S+(p.href||""));if(B){for(var X=0;X<\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof S.is=="string"?x.createElement("select",{is:S.is}):x.createElement("select"),S.multiple?s.multiple=!0:S.size&&(s.size=S.size);break;default:s=typeof S.is=="string"?x.createElement(p,{is:S.is}):x.createElement(p)}}s[ye]=c,s[Se]=S;e:for(x=c.child;x!==null;){if(x.tag===5||x.tag===6)s.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===c)break e;for(;x.sibling===null;){if(x.return===null||x.return===c)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}c.stateNode=s;e:switch(ti(s,p,S),p){case"button":case"input":case"select":case"textarea":s=!!S.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&iu(c)}}return zr(c),c.flags&=-16777217,null;case 6:if(s&&c.stateNode!=null)s.memoizedProps!==S&&iu(c);else{if(typeof S!="string"&&c.stateNode===null)throw Error(r(166));if(s=Ge.current,Gc(c)){if(s=c.stateNode,p=c.memoizedProps,S=null,x=ki,x!==null)switch(x.tag){case 27:case 5:S=x.memoizedProps}s[ye]=c,s=!!(s.nodeValue===p||S!==null&&S.suppressHydrationWarning===!0||bn(s.nodeValue,p)),s||Vc(c)}else s=tb(s).createTextNode(S),s[ye]=c,c.stateNode=s}return zr(c),null;case 13:if(S=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(x=Gc(c),S!==null&&S.dehydrated!==null){if(s===null){if(!x)throw Error(r(318));if(x=c.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[ye]=c}else ol(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;zr(c),x=!1}else hs!==null&&(ep(hs),hs=null),x=!0;if(!x)return c.flags&256?(Ql(c),c):(Ql(c),null)}if(Ql(c),(c.flags&128)!==0)return c.lanes=p,c;if(p=S!==null,s=s!==null&&s.memoizedState!==null,p){S=c.child,x=null,S.alternate!==null&&S.alternate.memoizedState!==null&&S.alternate.memoizedState.cachePool!==null&&(x=S.alternate.memoizedState.cachePool.pool);var M=null;S.memoizedState!==null&&S.memoizedState.cachePool!==null&&(M=S.memoizedState.cachePool.pool),M!==x&&(S.flags|=2048)}return p!==s&&p&&(c.child.flags|=8192),Oi(c,c.updateQueue),zr(c),null;case 4:return kt(),s===null&&o1(c.stateNode.containerInfo),zr(c),null;case 10:return cl(c.type),zr(c),null;case 19:if(xe(Aa),x=c.memoizedState,x===null)return zr(c),null;if(S=(c.flags&128)!==0,M=x.rendering,M===null)if(S)mm(x,!1);else{if(Zr!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(M=Cy(s),M!==null){for(c.flags|=128,mm(x,!1),s=M.updateQueue,c.updateQueue=s,Oi(c,s),c.subtreeFlags=0,s=p,p=c.child;p!==null;)lC(p,s),p=p.sibling;return Ie(Aa,Aa.current&1|2),c.child}s=s.sibling}x.tail!==null&&ft()>Gy&&(c.flags|=128,S=!0,mm(x,!1),c.lanes=4194304)}else{if(!S)if(s=Cy(M),s!==null){if(c.flags|=128,S=!0,s=s.updateQueue,c.updateQueue=s,Oi(c,s),mm(x,!0),x.tail===null&&x.tailMode==="hidden"&&!M.alternate&&!pn)return zr(c),null}else 2*ft()-x.renderingStartTime>Gy&&p!==536870912&&(c.flags|=128,S=!0,mm(x,!1),c.lanes=4194304);x.isBackwards?(M.sibling=c.child,c.child=M):(s=x.last,s!==null?s.sibling=M:c.child=M,x.last=M)}return x.tail!==null?(c=x.tail,x.rendering=c,x.tail=c.sibling,x.renderingStartTime=ft(),c.sibling=null,s=Aa.current,Ie(Aa,S?s&1|2:s&1),c):(zr(c),null);case 22:case 23:return Ql(c),X0(),S=c.memoizedState!==null,s!==null?s.memoizedState!==null!==S&&(c.flags|=8192):S&&(c.flags|=8192),S?(p&536870912)!==0&&(c.flags&128)===0&&(zr(c),c.subtreeFlags&6&&(c.flags|=8192)):zr(c),p=c.updateQueue,p!==null&&Oi(c,p.retryQueue),p=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),S=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(S=c.memoizedState.cachePool.pool),S!==p&&(c.flags|=2048),s!==null&&xe(Yc),null;case 24:return p=null,s!==null&&(p=s.memoizedState.cache),c.memoizedState.cache!==p&&(c.flags|=2048),cl(Na),zr(c),null;case 25:return null}throw Error(r(156,c.tag))}function dC(s,c){switch(Y0(c),c.tag){case 1:return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return cl(Na),kt(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 26:case 27:case 5:return Rt(c),null;case 13:if(Ql(c),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));ol()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return xe(Aa),null;case 4:return kt(),null;case 10:return cl(c.type),null;case 22:case 23:return Ql(c),X0(),s!==null&&xe(Yc),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 24:return cl(Na),null;case 25:return null;default:return null}}function fC(s,c){switch(Y0(c),c.tag){case 3:cl(Na),kt();break;case 26:case 27:case 5:Rt(c);break;case 4:kt();break;case 13:Ql(c);break;case 19:xe(Aa);break;case 10:cl(c.type);break;case 22:case 23:Ql(c),X0(),s!==null&&xe(Yc);break;case 24:cl(Na)}}var zO={getCacheForType:function(s){var c=ci(Na),p=c.data.get(s);return p===void 0&&(p=s(),c.data.set(s,p)),p}},qO=typeof WeakMap=="function"?WeakMap:Map,qr=0,Tr=null,Un=null,Gn=0,Nr=0,Co=null,ou=!1,Jf=!1,jw=!1,su=0,Zr=0,nc=0,nd=0,Uw=0,es=0,Zf=0,gm=null,ml=null,Bw=!1,Ww=0,Gy=1/0,Yy=null,gl=null,vm=!1,rd=null,ym=0,zw=0,qw=null,bm=0,Hw=null;function ko(){if((qr&2)!==0&&Gn!==0)return Gn&-Gn;if(j.T!==null){var s=Pf;return s!==0?s:t1()}return we()}function pC(){es===0&&(es=(Gn&536870912)===0||pn?Qa():536870912);var s=Jo.current;return s!==null&&(s.flags|=32),es}function fi(s,c,p){(s===Tr&&Nr===2||s.cancelPendingCommit!==null)&&(tp(s,0),lu(s,Gn,es,!1)),_a(s,p),((qr&2)===0||s!==Tr)&&(s===Tr&&((qr&2)===0&&(nd|=p),Zr===4&&lu(s,Gn,es,!1)),Cs(s))}function hC(s,c,p){if((qr&6)!==0)throw Error(r(327));var S=!p&&(c&60)===0&&(c&s.expiredLanes)===0||Bn(s,c),x=S?GO(s,c):Yw(s,c,!0),M=S;do{if(x===0){Jf&&!S&&lu(s,c,0,!1);break}else if(x===6)lu(s,c,0,!ou);else{if(p=s.current.alternate,M&&!HO(p)){x=Yw(s,c,!1),M=!1;continue}if(x===2){if(M=c,s.errorRecoveryDisabledLanes&M)var B=0;else B=s.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){c=B;e:{var X=s;x=gm;var de=X.current.memoizedState.isDehydrated;if(de&&(tp(X,B).flags|=256),B=Yw(X,B,!1),B!==2){if(jw&&!de){X.errorRecoveryDisabledLanes|=M,nd|=M,x=4;break e}M=ml,ml=x,M!==null&&ep(M)}x=B}if(M=!1,x!==2)continue}}if(x===1){tp(s,0),lu(s,c,0,!0);break}e:{switch(S=s,x){case 0:case 1:throw Error(r(345));case 4:if((c&4194176)===c){lu(S,c,es,!ou);break e}break;case 2:ml=null;break;case 3:case 5:break;default:throw Error(r(329))}if(S.finishedWork=p,S.finishedLanes=c,(c&62914560)===c&&(M=Ww+300-ft(),10p?32:p,j.T=null,rd===null)var M=!1;else{p=qw,qw=null;var B=rd,X=ym;if(rd=null,ym=0,(qr&6)!==0)throw Error(r(331));var de=qr;if(qr|=4,oC(B.current),rC(B,B.current,X,p),qr=de,od(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(We,B)}catch{}M=!0}return M}finally{ee.p=x,j.T=S,TC(s,c)}}return!1}function CC(s,c,p){c=Ci(p,c),c=nm(s.stateNode,c,2),s=bo(s,c,2),s!==null&&(_a(s,2),Cs(s))}function _r(s,c,p){if(s.tag===3)CC(s,s,p);else for(;c!==null;){if(c.tag===3){CC(c,s,p);break}else if(c.tag===1){var S=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&(gl===null||!gl.has(S))){s=Ci(p,s),p=HT(2),S=bo(c,p,2),S!==null&&(VT(p,S,c,s),_a(S,2),Cs(S));break}}c=c.return}}function Kw(s,c,p){var S=s.pingCache;if(S===null){S=s.pingCache=new qO;var x=new Set;S.set(c,x)}else x=S.get(c),x===void 0&&(x=new Set,S.set(c,x));x.has(p)||(jw=!0,x.add(p),s=XO.bind(null,s,c,p),c.then(s,s))}function XO(s,c,p){var S=s.pingCache;S!==null&&S.delete(c),s.pingedLanes|=s.suspendedLanes&p,s.warmLanes&=~p,Tr===s&&(Gn&p)===p&&(Zr===4||Zr===3&&(Gn&62914560)===Gn&&300>ft()-Ww?(qr&2)===0&&tp(s,0):Uw|=p,Zf===Gn&&(Zf=0)),Cs(s)}function kC(s,c){c===0&&(c=ma()),s=ps(s,c),s!==null&&(_a(s,c),Cs(s))}function QO(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),kC(s,p)}function JO(s,c){var p=0;switch(s.tag){case 13:var S=s.stateNode,x=s.memoizedState;x!==null&&(p=x.retryLane);break;case 19:S=s.stateNode;break;case 22:S=s.stateNode._retryCache;break;default:throw Error(r(314))}S!==null&&S.delete(c),kC(s,p)}function ZO(s,c){return qt(s,c)}var Xy=null,np=null,Xw=!1,id=!1,Qw=!1,rc=0;function Cs(s){s!==np&&s.next===null&&(np===null?Xy=np=s:np=np.next=s),id=!0,Xw||(Xw=!0,eR(xC))}function od(s,c){if(!Qw&&id){Qw=!0;do for(var p=!1,S=Xy;S!==null;){if(s!==0){var x=S.pendingLanes;if(x===0)var M=0;else{var B=S.suspendedLanes,X=S.pingedLanes;M=(1<<31-Ee(42|s)+1)-1,M&=x&~(B&~X),M=M&201326677?M&201326677|1:M?M|2:0}M!==0&&(p=!0,e1(S,M))}else M=Gn,M=ln(S,S===Tr?M:0),(M&3)===0||Bn(S,M)||(p=!0,e1(S,M));S=S.next}while(p);Qw=!1}}function xC(){id=Xw=!1;var s=0;rc!==0&&(cu()&&(s=rc),rc=0);for(var c=ft(),p=null,S=Xy;S!==null;){var x=S.next,M=Jw(S,c);M===0?(S.next=null,p===null?Xy=x:p.next=x,x===null&&(np=p)):(p=S,(s!==0||(M&3)!==0)&&(id=!0)),S=x}od(s)}function Jw(s,c){for(var p=s.suspendedLanes,S=s.pingedLanes,x=s.expirationTimes,M=s.pendingLanes&-62914561;0"u"?null:document;function DC(s,c,p){var S=xs;if(S&&typeof c=="string"&&c){var x=Ei(c);x='link[rel="'+s+'"][href="'+x+'"]',typeof p=="string"&&(x+='[crossorigin="'+p+'"]'),rb.has(x)||(rb.add(x),s={rel:s,crossOrigin:p,href:c},S.querySelector(x)===null&&(c=S.createElement("link"),ti(c,"link",s),lr(c),S.head.appendChild(c)))}}function oR(s){vl.D(s),DC("dns-prefetch",s,null)}function sR(s,c){vl.C(s,c),DC("preconnect",s,c)}function lR(s,c,p){vl.L(s,c,p);var S=xs;if(S&&s&&c){var x='link[rel="preload"][as="'+Ei(c)+'"]';c==="image"&&p&&p.imageSrcSet?(x+='[imagesrcset="'+Ei(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(x+='[imagesizes="'+Ei(p.imageSizes)+'"]')):x+='[href="'+Ei(s)+'"]';var M=x;switch(c){case"style":M=ni(s);break;case"script":M=ip(s)}pi.has(M)||(s=z({rel:"preload",href:c==="image"&&p&&p.imageSrcSet?void 0:s,as:c},p),pi.set(M,s),S.querySelector(x)!==null||c==="style"&&S.querySelector(ap(M))||c==="script"&&S.querySelector(op(M))||(c=S.createElement("link"),ti(c,"link",s),lr(c),S.head.appendChild(c)))}}function uR(s,c){vl.m(s,c);var p=xs;if(p&&s){var S=c&&typeof c.as=="string"?c.as:"script",x='link[rel="modulepreload"][as="'+Ei(S)+'"][href="'+Ei(s)+'"]',M=x;switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=ip(s)}if(!pi.has(M)&&(s=z({rel:"modulepreload",href:s},c),pi.set(M,s),p.querySelector(x)===null)){switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(op(M)))return}S=p.createElement("link"),ti(S,"link",s),lr(S),p.head.appendChild(S)}}}function $C(s,c,p){vl.S(s,c,p);var S=xs;if(S&&s){var x=Pr(S).hoistableStyles,M=ni(s);c=c||"default";var B=x.get(M);if(!B){var X={loading:0,preload:null};if(B=S.querySelector(ap(M)))X.loading=5;else{s=z({rel:"stylesheet",href:s,"data-precedence":c},p),(p=pi.get(M))&&g1(s,p);var de=B=S.createElement("link");lr(de),ti(de,"link",s),de._p=new Promise(function(Pe,Ke){de.onload=Pe,de.onerror=Ke}),de.addEventListener("load",function(){X.loading|=1}),de.addEventListener("error",function(){X.loading|=2}),X.loading|=4,ob(B,c,S)}B={type:"stylesheet",instance:B,count:1,state:X},x.set(M,B)}}}function du(s,c){vl.X(s,c);var p=xs;if(p&&s){var S=Pr(p).hoistableScripts,x=ip(s),M=S.get(x);M||(M=p.querySelector(op(x)),M||(s=z({src:s,async:!0},c),(c=pi.get(x))&&v1(s,c),M=p.createElement("script"),lr(M),ti(M,"link",s),p.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},S.set(x,M))}}function xn(s,c){vl.M(s,c);var p=xs;if(p&&s){var S=Pr(p).hoistableScripts,x=ip(s),M=S.get(x);M||(M=p.querySelector(op(x)),M||(s=z({src:s,async:!0,type:"module"},c),(c=pi.get(x))&&v1(s,c),M=p.createElement("script"),lr(M),ti(M,"link",s),p.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},S.set(x,M))}}function m1(s,c,p,S){var x=(x=Ge.current)?ab(x):null;if(!x)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(c=ni(p.href),p=Pr(x).hoistableStyles,S=p.get(c),S||(S={type:"style",instance:null,count:0,state:null},p.set(c,S)),S):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){s=ni(p.href);var M=Pr(x).hoistableStyles,B=M.get(s);if(B||(x=x.ownerDocument||x,B={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(s,B),(M=x.querySelector(ap(s)))&&!M._p&&(B.instance=M,B.state.loading=5),pi.has(s)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},pi.set(s,p),M||fr(x,s,p,B.state))),c&&S===null)throw Error(r(528,""));return B}if(c&&S!==null)throw Error(r(529,""));return null;case"script":return c=p.async,p=p.src,typeof p=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=ip(p),p=Pr(x).hoistableScripts,S=p.get(c),S||(S={type:"script",instance:null,count:0,state:null},p.set(c,S)),S):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function ni(s){return'href="'+Ei(s)+'"'}function ap(s){return'link[rel="stylesheet"]['+s+"]"}function LC(s){return z({},s,{"data-precedence":s.precedence,precedence:null})}function fr(s,c,p,S){s.querySelector('link[rel="preload"][as="style"]['+c+"]")?S.loading=1:(c=s.createElement("link"),S.preload=c,c.addEventListener("load",function(){return S.loading|=1}),c.addEventListener("error",function(){return S.loading|=2}),ti(c,"link",p),lr(c),s.head.appendChild(c))}function ip(s){return'[src="'+Ei(s)+'"]'}function op(s){return"script[async]"+s}function km(s,c,p){if(c.count++,c.instance===null)switch(c.type){case"style":var S=s.querySelector('style[data-href~="'+Ei(p.href)+'"]');if(S)return c.instance=S,lr(S),S;var x=z({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return S=(s.ownerDocument||s).createElement("style"),lr(S),ti(S,"style",x),ob(S,p.precedence,s),c.instance=S;case"stylesheet":x=ni(p.href);var M=s.querySelector(ap(x));if(M)return c.state.loading|=4,c.instance=M,lr(M),M;S=LC(p),(x=pi.get(x))&&g1(S,x),M=(s.ownerDocument||s).createElement("link"),lr(M);var B=M;return B._p=new Promise(function(X,de){B.onload=X,B.onerror=de}),ti(M,"link",S),c.state.loading|=4,ob(M,p.precedence,s),c.instance=M;case"script":return M=ip(p.src),(x=s.querySelector(op(M)))?(c.instance=x,lr(x),x):(S=p,(x=pi.get(M))&&(S=z({},p),v1(S,x)),s=s.ownerDocument||s,x=s.createElement("script"),lr(x),ti(x,"link",S),s.head.appendChild(x),c.instance=x);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(S=c.instance,c.state.loading|=4,ob(S,p.precedence,s));return c.instance}function ob(s,c,p){for(var S=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=S.length?S[S.length-1]:null,M=x,B=0;B title"):null)}function cR(s,c,p){if(p===1||c.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return s=c.disabled,typeof c.precedence=="string"&&s==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function UC(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var xm=null;function dR(){}function fR(s,c,p){if(xm===null)throw Error(r(475));var S=xm;if(c.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var x=ni(p.href),M=s.querySelector(ap(x));if(M){s=M._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(S.count++,S=lb.bind(S),s.then(S,S)),c.state.loading|=4,c.instance=M,lr(M);return}M=s.ownerDocument||s,p=LC(p),(x=pi.get(x))&&g1(p,x),M=M.createElement("link"),lr(M);var B=M;B._p=new Promise(function(X,de){B.onload=X,B.onerror=de}),ti(M,"link",p),c.instance=M}S.stylesheets===null&&(S.stylesheets=new Map),S.stylesheets.set(c,s),(s=c.state.preload)&&(c.state.loading&3)===0&&(S.count++,c=lb.bind(S),s.addEventListener("load",c),s.addEventListener("error",c))}}function pR(){if(xm===null)throw Error(r(475));var s=xm;return s.stylesheets&&s.count===0&&y1(s,s.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),OR.exports=Woe(),OR.exports}var qoe=zoe();const Hoe=Pc(qoe);var Sc=Y3();const Voe=Pc(Sc);/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+p.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function xS(){return xS=Object.assign?Object.assign.bind():function(e){for(var t=1;tf(h,typeof h=="string"?null:h.state,v===0?"default":void 0));let i=u(n??a.length-1),o=Tl.Pop,l=null;function u(h){return Math.min(Math.max(h,0),a.length-1)}function d(){return a[i]}function f(h,v,E){v===void 0&&(v=null);let T=Vk(a?d().pathname:"/",h,v,E);return Yx(T.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(h)),T}function g(h){return typeof h=="string"?h:_S(h)}return{get index(){return i},get action(){return o},get location(){return d()},createHref:g,createURL(h){return new URL(g(h),"http://localhost")},encodeLocation(h){let v=typeof h=="string"?uh(h):h;return{pathname:v.pathname||"",search:v.search||"",hash:v.hash||""}},push(h,v){o=Tl.Push;let E=f(h,v);i+=1,a.splice(i,a.length,E),r&&l&&l({action:o,location:E,delta:1})},replace(h,v){o=Tl.Replace;let E=f(h,v);a[i]=E,r&&l&&l({action:o,location:E,delta:0})},go(h){o=Tl.Pop;let v=u(i+h),E=a[v];i=v,l&&l({action:o,location:E,delta:h})},listen(h){return l=h,()=>{l=null}}}}function Doe(e){e===void 0&&(e={});function t(a,i){let{pathname:o="/",search:l="",hash:u=""}=uh(a.location.hash.substr(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),Vk("",{pathname:o,search:l,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(a,i){let o=a.document.querySelector("base"),l="";if(o&&o.getAttribute("href")){let u=a.location.href,d=u.indexOf("#");l=d===-1?u:u.slice(0,d)}return l+"#"+(typeof i=="string"?i:_S(i))}function r(a,i){Yx(a.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return Loe(t,n,r,e)}function za(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Yx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function $oe(){return Math.random().toString(36).substr(2,8)}function rU(e,t){return{usr:e.state,key:e.key,idx:t}}function Vk(e,t,n,r){return n===void 0&&(n=null),xS({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?uh(t):t,{state:n,key:t&&t.key||r||$oe()})}function _S(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function uh(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Loe(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l=Tl.Pop,u=null,d=f();d==null&&(d=0,o.replaceState(xS({},o.state,{idx:d}),""));function f(){return(o.state||{idx:null}).idx}function g(){l=Tl.Pop;let T=f(),C=T==null?null:T-d;d=T,u&&u({action:l,location:E.location,delta:C})}function y(T,C){l=Tl.Push;let k=Vk(E.location,T,C);n&&n(k,T),d=f()+1;let _=rU(k,d),A=E.createHref(k);try{o.pushState(_,"",A)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;a.location.assign(A)}i&&u&&u({action:l,location:E.location,delta:1})}function h(T,C){l=Tl.Replace;let k=Vk(E.location,T,C);n&&n(k,T),d=f();let _=rU(k,d),A=E.createHref(k);o.replaceState(_,"",A),i&&u&&u({action:l,location:E.location,delta:0})}function v(T){let C=a.location.origin!=="null"?a.location.origin:a.location.href,k=typeof T=="string"?T:_S(T);return k=k.replace(/ $/,"%20"),za(C,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,C)}let E={get action(){return l},get location(){return e(a,o)},listen(T){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(nU,g),u=T,()=>{a.removeEventListener(nU,g),u=null}},createHref(T){return t(a,T)},createURL:v,encodeLocation(T){let C=v(T);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:y,replace:h,go(T){return o.go(T)}};return E}var aU;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(aU||(aU={}));function Foe(e,t,n){return n===void 0&&(n="/"),joe(e,t,n)}function joe(e,t,n,r){let a=typeof t=="string"?uh(t):t,i=$3(a.pathname||"/",n);if(i==null)return null;let o=mX(e);Uoe(o);let l=null;for(let u=0;l==null&&u{let u={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};u.relativePath.startsWith("/")&&(za(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let d=eh([r,u.relativePath]),f=n.concat(u);i.children&&i.children.length>0&&(za(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),mX(i.children,t,f,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:Goe(d,i.index),routesMeta:f})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,o);else for(let u of gX(i.path))a(i,o,u)}),t}function gX(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=gX(r.join("/")),l=[];return l.push(...o.map(u=>u===""?i:[i,u].join("/"))),a&&l.push(...o),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function Uoe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Yoe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Boe=/^:[\w-]+$/,Woe=3,zoe=2,qoe=1,Hoe=10,Voe=-2,iU=e=>e==="*";function Goe(e,t){let n=e.split("/"),r=n.length;return n.some(iU)&&(r+=Voe),t&&(r+=zoe),n.filter(a=>!iU(a)).reduce((a,i)=>a+(Boe.test(i)?Woe:i===""?qoe:Hoe),r)}function Yoe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function Koe(e,t,n){let{routesMeta:r}=e,a={},i="/",o=[];for(let l=0;l{let{paramName:y,isOptional:h}=f;if(y==="*"){let E=l[g]||"";o=i.slice(0,i.length-E.length).replace(/(.)\/+$/,"$1")}const v=l[g];return h&&!v?d[y]=void 0:d[y]=(v||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:o,pattern:e}}function Qoe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Yx(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function Joe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Yx(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function $3(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Zoe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?uh(e):e;return{pathname:n?n.startsWith("/")?n:ese(n,t):t,search:rse(r),hash:ase(a)}}function ese(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function SR(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function tse(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function L3(e,t){let n=tse(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function F3(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=uh(e):(a=xS({},e),za(!a.pathname||!a.pathname.includes("?"),SR("?","pathname","search",a)),za(!a.pathname||!a.pathname.includes("#"),SR("#","pathname","hash",a)),za(!a.search||!a.search.includes("#"),SR("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let g=t.length-1;if(!r&&o.startsWith("..")){let y=o.split("/");for(;y[0]==="..";)y.shift(),g-=1;a.pathname=y.join("/")}l=g>=0?t[g]:"/"}let u=Zoe(a,l),d=o&&o!=="/"&&o.endsWith("/"),f=(i||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||f)&&(u.pathname+="/"),u}const eh=e=>e.join("/").replace(/\/\/+/g,"/"),nse=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rse=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ase=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ise(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const vX=["post","put","patch","delete"];new Set(vX);const ose=["get",...vX];new Set(ose);/** + */function $S(){return $S=Object.assign?Object.assign.bind():function(e){for(var t=1;tf(h,typeof h=="string"?null:h.state,v===0?"default":void 0));let i=u(n??a.length-1),o=Ol.Pop,l=null;function u(h){return Math.min(Math.max(h,0),a.length-1)}function d(){return a[i]}function f(h,v,E){v===void 0&&(v=null);let T=rx(a?d().pathname:"/",h,v,E);return i_(T.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(h)),T}function g(h){return typeof h=="string"?h:LS(h)}return{get index(){return i},get action(){return o},get location(){return d()},createHref:g,createURL(h){return new URL(g(h),"http://localhost")},encodeLocation(h){let v=typeof h=="string"?dh(h):h;return{pathname:v.pathname||"",search:v.search||"",hash:v.hash||""}},push(h,v){o=Ol.Push;let E=f(h,v);i+=1,a.splice(i,a.length,E),r&&l&&l({action:o,location:E,delta:1})},replace(h,v){o=Ol.Replace;let E=f(h,v);a[i]=E,r&&l&&l({action:o,location:E,delta:0})},go(h){o=Ol.Pop;let v=u(i+h),E=a[v];i=v,l&&l({action:o,location:E,delta:h})},listen(h){return l=h,()=>{l=null}}}}function Yoe(e){e===void 0&&(e={});function t(a,i){let{pathname:o="/",search:l="",hash:u=""}=dh(a.location.hash.substr(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),rx("",{pathname:o,search:l,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(a,i){let o=a.document.querySelector("base"),l="";if(o&&o.getAttribute("href")){let u=a.location.href,d=u.indexOf("#");l=d===-1?u:u.slice(0,d)}return l+"#"+(typeof i=="string"?i:LS(i))}function r(a,i){i_(a.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return Xoe(t,n,r,e)}function za(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function i_(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Koe(){return Math.random().toString(36).substr(2,8)}function gU(e,t){return{usr:e.state,key:e.key,idx:t}}function rx(e,t,n,r){return n===void 0&&(n=null),$S({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?dh(t):t,{state:n,key:t&&t.key||r||Koe()})}function LS(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function dh(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Xoe(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l=Ol.Pop,u=null,d=f();d==null&&(d=0,o.replaceState($S({},o.state,{idx:d}),""));function f(){return(o.state||{idx:null}).idx}function g(){l=Ol.Pop;let T=f(),C=T==null?null:T-d;d=T,u&&u({action:l,location:E.location,delta:C})}function y(T,C){l=Ol.Push;let k=rx(E.location,T,C);n&&n(k,T),d=f()+1;let _=gU(k,d),A=E.createHref(k);try{o.pushState(_,"",A)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;a.location.assign(A)}i&&u&&u({action:l,location:E.location,delta:1})}function h(T,C){l=Ol.Replace;let k=rx(E.location,T,C);n&&n(k,T),d=f();let _=gU(k,d),A=E.createHref(k);o.replaceState(_,"",A),i&&u&&u({action:l,location:E.location,delta:0})}function v(T){let C=a.location.origin!=="null"?a.location.origin:a.location.href,k=typeof T=="string"?T:LS(T);return k=k.replace(/ $/,"%20"),za(C,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,C)}let E={get action(){return l},get location(){return e(a,o)},listen(T){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(mU,g),u=T,()=>{a.removeEventListener(mU,g),u=null}},createHref(T){return t(a,T)},createURL:v,encodeLocation(T){let C=v(T);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:y,replace:h,go(T){return o.go(T)}};return E}var vU;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(vU||(vU={}));function Qoe(e,t,n){return n===void 0&&(n="/"),Joe(e,t,n)}function Joe(e,t,n,r){let a=typeof t=="string"?dh(t):t,i=K3(a.pathname||"/",n);if(i==null)return null;let o=OX(e);Zoe(o);let l=null;for(let u=0;l==null&&u{let u={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};u.relativePath.startsWith("/")&&(za(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let d=rh([r,u.relativePath]),f=n.concat(u);i.children&&i.children.length>0&&(za(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),OX(i.children,t,f,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:ose(d,i.index),routesMeta:f})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,o);else for(let u of RX(i.path))a(i,o,u)}),t}function RX(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=RX(r.join("/")),l=[];return l.push(...o.map(u=>u===""?i:[i,u].join("/"))),a&&l.push(...o),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function Zoe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:sse(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ese=/^:[\w-]+$/,tse=3,nse=2,rse=1,ase=10,ise=-2,yU=e=>e==="*";function ose(e,t){let n=e.split("/"),r=n.length;return n.some(yU)&&(r+=ise),t&&(r+=nse),n.filter(a=>!yU(a)).reduce((a,i)=>a+(ese.test(i)?tse:i===""?rse:ase),r)}function sse(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function lse(e,t,n){let{routesMeta:r}=e,a={},i="/",o=[];for(let l=0;l{let{paramName:y,isOptional:h}=f;if(y==="*"){let E=l[g]||"";o=i.slice(0,i.length-E.length).replace(/(.)\/+$/,"$1")}const v=l[g];return h&&!v?d[y]=void 0:d[y]=(v||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:o,pattern:e}}function cse(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),i_(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function dse(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return i_(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function K3(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function fse(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?dh(e):e;return{pathname:n?n.startsWith("/")?n:pse(n,t):t,search:gse(r),hash:vse(a)}}function pse(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function NR(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function hse(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function X3(e,t){let n=hse(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Q3(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=dh(e):(a=$S({},e),za(!a.pathname||!a.pathname.includes("?"),NR("?","pathname","search",a)),za(!a.pathname||!a.pathname.includes("#"),NR("#","pathname","hash",a)),za(!a.search||!a.search.includes("#"),NR("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let g=t.length-1;if(!r&&o.startsWith("..")){let y=o.split("/");for(;y[0]==="..";)y.shift(),g-=1;a.pathname=y.join("/")}l=g>=0?t[g]:"/"}let u=fse(a,l),d=o&&o!=="/"&&o.endsWith("/"),f=(i||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||f)&&(u.pathname+="/"),u}const rh=e=>e.join("/").replace(/\/\/+/g,"/"),mse=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gse=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vse=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function yse(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const PX=["post","put","patch","delete"];new Set(PX);const bse=["get",...PX];new Set(bse);/** * React Router v6.30.0 * * Copyright (c) Remix Software Inc. @@ -64,7 +64,7 @@ Error generating stack: `+p.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function OS(){return OS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),R.useCallback(function(d,f){if(f===void 0&&(f={}),!l.current)return;if(typeof d=="number"){r.go(d);return}let g=F3(d,JSON.parse(o),i,f.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:eh([t,g.pathname])),(f.replace?r.replace:r.push)(g,f.state,f)},[t,r,o,i,e])}const cse=R.createContext(null);function dse(e){let t=R.useContext(Pc).outlet;return t&&R.createElement(cse.Provider,{value:e},t)}function fse(){let{matches:e}=R.useContext(Pc),t=e[e.length-1];return t?t.params:{}}function wX(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=R.useContext(ch),{matches:a}=R.useContext(Pc),{pathname:i}=Xd(),o=JSON.stringify(L3(a,r.v7_relativeSplatPath));return R.useMemo(()=>F3(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function pse(e,t){return hse(e,t)}function hse(e,t,n,r){l0()||za(!1);let{navigator:a,static:i}=R.useContext(ch),{matches:o}=R.useContext(Pc),l=o[o.length-1],u=l?l.params:{};l&&l.pathname;let d=l?l.pathnameBase:"/";l&&l.route;let f=Xd(),g;if(t){var y;let C=typeof t=="string"?uh(t):t;d==="/"||(y=C.pathname)!=null&&y.startsWith(d)||za(!1),g=C}else g=f;let h=g.pathname||"/",v=h;if(d!=="/"){let C=d.replace(/^\//,"").split("/");v="/"+h.replace(/^\//,"").split("/").slice(C.length).join("/")}let E=Foe(e,{pathname:v}),T=bse(E&&E.map(C=>Object.assign({},C,{params:Object.assign({},u,C.params),pathname:eh([d,a.encodeLocation?a.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?d:eh([d,a.encodeLocation?a.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,r);return t&&T?R.createElement(Kx.Provider,{value:{location:OS({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:Tl.Pop}},T):T}function mse(){let e=Tse(),t=ise(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:a},n):null,null)}const gse=R.createElement(mse,null);class vse extends R.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?R.createElement(Pc.Provider,{value:this.props.routeContext},R.createElement(yX.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function yse(e){let{routeContext:t,match:n,children:r}=e,a=R.useContext(j3);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(Pc.Provider,{value:t},r)}function bse(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let f=o.findIndex(g=>g.route.id&&(l==null?void 0:l[g.route.id])!==void 0);f>=0||za(!1),o=o.slice(0,Math.min(o.length,f+1))}let u=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((f,g,y)=>{let h,v=!1,E=null,T=null;n&&(h=l&&g.route.id?l[g.route.id]:void 0,E=g.route.errorElement||gse,u&&(d<0&&y===0?(kse("route-fallback"),v=!0,T=null):d===y&&(v=!0,T=g.route.hydrateFallbackElement||null)));let C=t.concat(o.slice(0,y+1)),k=()=>{let _;return h?_=E:v?_=T:g.route.Component?_=R.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=f,R.createElement(yse,{match:g,routeContext:{outlet:f,matches:C,isDataRoute:n!=null},children:_})};return n&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?R.createElement(vse,{location:n.location,revalidation:n.revalidation,component:E,error:h,children:k(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):k()},null)}var SX=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(SX||{}),EX=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(EX||{});function wse(e){let t=R.useContext(j3);return t||za(!1),t}function Sse(e){let t=R.useContext(sse);return t||za(!1),t}function Ese(e){let t=R.useContext(Pc);return t||za(!1),t}function TX(e){let t=Ese(),n=t.matches[t.matches.length-1];return n.route.id||za(!1),n.route.id}function Tse(){var e;let t=R.useContext(yX),n=Sse(),r=TX();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Cse(){let{router:e}=wse(SX.UseNavigateStable),t=TX(EX.UseNavigateStable),n=R.useRef(!1);return bX(()=>{n.current=!0}),R.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,OS({fromRouteId:t},i)))},[e,t])}const oU={};function kse(e,t,n){oU[e]||(oU[e]=!0)}function CX(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}const xse="startTransition",sU=kS[xse];function _se(e){let{basename:t,children:n,initialEntries:r,initialIndex:a,future:i}=e,o=R.useRef();o.current==null&&(o.current=Ioe({initialEntries:r,initialIndex:a,v5Compat:!0}));let l=o.current,[u,d]=R.useState({action:l.action,location:l.location}),{v7_startTransition:f}=i||{},g=R.useCallback(y=>{f&&sU?sU(()=>d(y)):d(y)},[d,f]);return R.useLayoutEffect(()=>l.listen(g),[l,g]),R.useEffect(()=>CX(i),[i]),R.createElement(kX,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l,future:i})}function B3(e){let{to:t,replace:n,state:r,relative:a}=e;l0()||za(!1);let{future:i,static:o}=R.useContext(ch),{matches:l}=R.useContext(Pc),{pathname:u}=Xd(),d=U3(),f=F3(t,L3(l,i.v7_relativeSplatPath),u,a==="path"),g=JSON.stringify(f);return R.useEffect(()=>d(JSON.parse(g),{replace:n,state:r,relative:a}),[d,g,a,n,r]),null}function Ose(e){return dse(e.context)}function mt(e){za(!1)}function kX(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Tl.Pop,navigator:i,static:o=!1,future:l}=e;l0()&&za(!1);let u=t.replace(/^\/*/,"/"),d=R.useMemo(()=>({basename:u,navigator:i,static:o,future:OS({v7_relativeSplatPath:!1},l)}),[u,l,i,o]);typeof r=="string"&&(r=uh(r));let{pathname:f="/",search:g="",hash:y="",state:h=null,key:v="default"}=r,E=R.useMemo(()=>{let T=$3(f,u);return T==null?null:{location:{pathname:T,search:g,hash:y,state:h,key:v},navigationType:a}},[u,f,g,y,h,v,a]);return E==null?null:R.createElement(ch.Provider,{value:d},R.createElement(Kx.Provider,{children:n,value:E}))}function xX(e){let{children:t,location:n}=e;return pse(L$(t),n)}new Promise(()=>{});function L$(e,t){t===void 0&&(t=[]);let n=[];return R.Children.forEach(e,(r,a)=>{if(!R.isValidElement(r))return;let i=[...t,a];if(r.type===R.Fragment){n.push.apply(n,L$(r.props.children,i));return}r.type!==mt&&za(!1),!r.props.index||!r.props.children||za(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=L$(r.props.children,i)),n.push(o)}),n}/** + */function FS(){return FS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),R.useCallback(function(d,f){if(f===void 0&&(f={}),!l.current)return;if(typeof d=="number"){r.go(d);return}let g=Q3(d,JSON.parse(o),i,f.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:rh([t,g.pathname])),(f.replace?r.replace:r.push)(g,f.state,f)},[t,r,o,i,e])}const Tse=R.createContext(null);function Cse(e){let t=R.useContext(Ac).outlet;return t&&R.createElement(Tse.Provider,{value:e},t)}function kse(){let{matches:e}=R.useContext(Ac),t=e[e.length-1];return t?t.params:{}}function MX(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=R.useContext(fh),{matches:a}=R.useContext(Ac),{pathname:i}=Zd(),o=JSON.stringify(X3(a,r.v7_relativeSplatPath));return R.useMemo(()=>Q3(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function xse(e,t){return _se(e,t)}function _se(e,t,n,r){v0()||za(!1);let{navigator:a,static:i}=R.useContext(fh),{matches:o}=R.useContext(Ac),l=o[o.length-1],u=l?l.params:{};l&&l.pathname;let d=l?l.pathnameBase:"/";l&&l.route;let f=Zd(),g;if(t){var y;let C=typeof t=="string"?dh(t):t;d==="/"||(y=C.pathname)!=null&&y.startsWith(d)||za(!1),g=C}else g=f;let h=g.pathname||"/",v=h;if(d!=="/"){let C=d.replace(/^\//,"").split("/");v="/"+h.replace(/^\//,"").split("/").slice(C.length).join("/")}let E=Qoe(e,{pathname:v}),T=Nse(E&&E.map(C=>Object.assign({},C,{params:Object.assign({},u,C.params),pathname:rh([d,a.encodeLocation?a.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?d:rh([d,a.encodeLocation?a.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,n,r);return t&&T?R.createElement(o_.Provider,{value:{location:FS({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:Ol.Pop}},T):T}function Ose(){let e=$se(),t=yse(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:a},n):null,null)}const Rse=R.createElement(Ose,null);class Pse extends R.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?R.createElement(Ac.Provider,{value:this.props.routeContext},R.createElement(AX.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ase(e){let{routeContext:t,match:n,children:r}=e,a=R.useContext(J3);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(Ac.Provider,{value:t},r)}function Nse(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let f=o.findIndex(g=>g.route.id&&(l==null?void 0:l[g.route.id])!==void 0);f>=0||za(!1),o=o.slice(0,Math.min(o.length,f+1))}let u=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((f,g,y)=>{let h,v=!1,E=null,T=null;n&&(h=l&&g.route.id?l[g.route.id]:void 0,E=g.route.errorElement||Rse,u&&(d<0&&y===0?(Fse("route-fallback"),v=!0,T=null):d===y&&(v=!0,T=g.route.hydrateFallbackElement||null)));let C=t.concat(o.slice(0,y+1)),k=()=>{let _;return h?_=E:v?_=T:g.route.Component?_=R.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=f,R.createElement(Ase,{match:g,routeContext:{outlet:f,matches:C,isDataRoute:n!=null},children:_})};return n&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?R.createElement(Pse,{location:n.location,revalidation:n.revalidation,component:E,error:h,children:k(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):k()},null)}var IX=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(IX||{}),DX=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(DX||{});function Mse(e){let t=R.useContext(J3);return t||za(!1),t}function Ise(e){let t=R.useContext(wse);return t||za(!1),t}function Dse(e){let t=R.useContext(Ac);return t||za(!1),t}function $X(e){let t=Dse(),n=t.matches[t.matches.length-1];return n.route.id||za(!1),n.route.id}function $se(){var e;let t=R.useContext(AX),n=Ise(),r=$X();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Lse(){let{router:e}=Mse(IX.UseNavigateStable),t=$X(DX.UseNavigateStable),n=R.useRef(!1);return NX(()=>{n.current=!0}),R.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,FS({fromRouteId:t},i)))},[e,t])}const bU={};function Fse(e,t,n){bU[e]||(bU[e]=!0)}function LX(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}const jse="startTransition",wU=DS[jse];function Use(e){let{basename:t,children:n,initialEntries:r,initialIndex:a,future:i}=e,o=R.useRef();o.current==null&&(o.current=Goe({initialEntries:r,initialIndex:a,v5Compat:!0}));let l=o.current,[u,d]=R.useState({action:l.action,location:l.location}),{v7_startTransition:f}=i||{},g=R.useCallback(y=>{f&&wU?wU(()=>d(y)):d(y)},[d,f]);return R.useLayoutEffect(()=>l.listen(g),[l,g]),R.useEffect(()=>LX(i),[i]),R.createElement(FX,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l,future:i})}function eF(e){let{to:t,replace:n,state:r,relative:a}=e;v0()||za(!1);let{future:i,static:o}=R.useContext(fh),{matches:l}=R.useContext(Ac),{pathname:u}=Zd(),d=Z3(),f=Q3(t,X3(l,i.v7_relativeSplatPath),u,a==="path"),g=JSON.stringify(f);return R.useEffect(()=>d(JSON.parse(g),{replace:n,state:r,relative:a}),[d,g,a,n,r]),null}function Bse(e){return Cse(e.context)}function mt(e){za(!1)}function FX(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Ol.Pop,navigator:i,static:o=!1,future:l}=e;v0()&&za(!1);let u=t.replace(/^\/*/,"/"),d=R.useMemo(()=>({basename:u,navigator:i,static:o,future:FS({v7_relativeSplatPath:!1},l)}),[u,l,i,o]);typeof r=="string"&&(r=dh(r));let{pathname:f="/",search:g="",hash:y="",state:h=null,key:v="default"}=r,E=R.useMemo(()=>{let T=K3(f,u);return T==null?null:{location:{pathname:T,search:g,hash:y,state:h,key:v},navigationType:a}},[u,f,g,y,h,v,a]);return E==null?null:R.createElement(fh.Provider,{value:d},R.createElement(o_.Provider,{children:n,value:E}))}function jX(e){let{children:t,location:n}=e;return xse(X$(t),n)}new Promise(()=>{});function X$(e,t){t===void 0&&(t=[]);let n=[];return R.Children.forEach(e,(r,a)=>{if(!R.isValidElement(r))return;let i=[...t,a];if(r.type===R.Fragment){n.push.apply(n,X$(r.props.children,i));return}r.type!==mt&&za(!1),!r.props.index||!r.props.children||za(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=X$(r.props.children,i)),n.push(o)}),n}/** * React Router DOM v6.30.0 * * Copyright (c) Remix Software Inc. @@ -73,7 +73,7 @@ Error generating stack: `+p.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function F$(){return F$=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function Pse(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ase(e,t){return e.button===0&&(!t||t==="_self")&&!Pse(e)}const Nse=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Mse="6";try{window.__reactRouterVersion=Mse}catch{}const Ise="startTransition",lU=kS[Ise];function _X(e){let{basename:t,children:n,future:r,window:a}=e,i=R.useRef();i.current==null&&(i.current=Doe({window:a,v5Compat:!0}));let o=i.current,[l,u]=R.useState({action:o.action,location:o.location}),{v7_startTransition:d}=r||{},f=R.useCallback(g=>{d&&lU?lU(()=>u(g)):u(g)},[u,d]);return R.useLayoutEffect(()=>o.listen(f),[o,f]),R.useEffect(()=>CX(r),[r]),R.createElement(kX,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const Dse=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$se=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,j$=R.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:l,target:u,to:d,preventScrollReset:f,viewTransition:g}=t,y=Rse(t,Nse),{basename:h}=R.useContext(ch),v,E=!1;if(typeof d=="string"&&$se.test(d)&&(v=d,Dse))try{let _=new URL(window.location.href),A=d.startsWith("//")?new URL(_.protocol+d):new URL(d),P=$3(A.pathname,h);A.origin===_.origin&&P!=null?d=P+A.search+A.hash:E=!0}catch{}let T=lse(d,{relative:a}),C=Lse(d,{replace:o,state:l,target:u,preventScrollReset:f,relative:a,viewTransition:g});function k(_){r&&r(_),_.defaultPrevented||C(_)}return R.createElement("a",F$({},y,{href:v||T,onClick:E||i?r:k,ref:n,target:u}))});var uU;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uU||(uU={}));var cU;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cU||(cU={}));function Lse(e,t){let{target:n,replace:r,state:a,preventScrollReset:i,relative:o,viewTransition:l}=t===void 0?{}:t,u=U3(),d=Xd(),f=wX(e,{relative:o});return R.useCallback(g=>{if(Ase(g,n)){g.preventDefault();let y=r!==void 0?r:_S(d)===_S(f);u(e,{replace:y,state:a,preventScrollReset:i,relative:o,viewTransition:l})}},[d,u,f,r,a,n,e,i,o,l])}const dh=ze.createContext({patchConfig(){},config:{}});function Fse(){const e=localStorage.getItem("app_config2");if(e){try{const t=JSON.parse(e);return t?{...t}:{}}catch{}return{}}}const jse=Fse();function OX({children:e,initialConfig:t}){const[n,r]=R.useState({...t,...jse}),a=i=>{r(o=>{const l={...o,...i};return localStorage.setItem("app_config2",JSON.stringify(l)),l})};return w.jsx(dh.Provider,{value:{config:n,patchConfig:a},children:e})}const RX={onlyOnRoot:"This feature is only available for root access, please ask your administrator for more details",productName:"Fireback",orders:{archiveTitle:"Orders",discountCode:"Discount code",discountCodeHint:"Discount code",editOrder:"Edit order",invoiceNumber:"Invoice number",invoiceNumberHint:"Invoice number",items:"Items",itemsHint:"Items",newOrder:"New order",orderStatus:"Order status",orderStatusHint:"Order status",paymentStatus:"Payment status",paymentStatusHint:"Payment status",shippingAddress:"Shipping address",shippingAddressHint:"Shipping address",totalPrice:"Total price",totalPriceHint:"Total price"},shoppingCarts:{archiveTitle:"Shopping carts",editShoppingCart:"Edit shopping cart",items:"Items",itemsHint:"Items",newShoppingCart:"New shopping cart",product:"Product",productHint:"Select the product item",quantity:"Quantity",quantityHint:"How many products do you want"},discountCodes:{appliedCategories:"Applied categories",appliedCategoriesHint:"Applied categories",appliedProducts:"Applied products",appliedProductsHint:"Applied products",archiveTitle:"Discount codes",editDiscountCode:"Edit discount code",excludedCategories:"Excluded categories",excludedCategoriesHint:"Excluded categories",excludedProducts:"Excluded products",excludedProductsHint:"Excluded products",limit:"Limit",limitHint:"Limit",newDiscountCode:"New discount code",series:"Series",seriesHint:"Series",validFrom:"Valid from",validFromHint:"Valid from",validUntil:"Valid until",validUntilHint:"Valid until"},postcategories:{archiveTitle:"Post Category",editpostCategory:"Edit Post category",name:"Name",nameHint:"Name",newpostCategory:"Newpost category"},pagecategories:{archiveTitle:"Page category",editpageCategory:"Edit page category",name:"Name",nameHint:"Name",newpageCategory:"New page category"},posttags:{archiveTitle:"Post tag",editpostTag:"Edit post tag",name:"Name",nameHint:"Name",newpostTag:"New post tag"},pagetags:{archiveTitle:"Page tag",editpageTag:"Edit page tag",name:"Name",nameHint:"Name",newpageTag:"New page tag"},posts:{archiveTitle:"Posts",category:"Category",categoryHint:"Category",content:"Content",contentHint:"content",editpost:"Edit post",newpost:"New post",tags:"Tags",tagsHint:"Tags",title:"Title",titleHint:"Title"},pages:{archiveTitle:"Pages",category:"Category",categoryHint:"Page category",content:"Content",contentHint:"",editpage:"Edit page",newpage:"New page",tags:"Tags",tagsHint:"Page tags",title:"Title",titleHint:"Page title"},components:{currency:"Currency",currencyHint:"Currency type",amount:"Amount",amountHint:"Amount in numbers, separated by . for cents"},brands:{archiveTitle:"Brand",editBrand:"Edit brand",name:"Name",nameHint:"Brand's name",newBrand:"New brand"},tags:{archiveTitle:"Tags",editTag:"Edit tag",name:"Name",nameHint:"Tag name",newTag:"Name of the tag"},productsubmissions:{name:"Name",nameHint:"Name of the product",archiveTitle:"Product Inventory",brand:"Brand",brandHint:"If the product belongs to an specific brand",category:"Category",categoryHint:"Product category",description:"Description",descriptionHint:"Product description",editproductSubmission:"Edit product submission",newproductSubmission:"Newproduct submission",price:"Price",priceHint:"Set the price tag for the product",product:"Product",productHint:"Select the product type",sku:"SKU",skuHint:"SKU code for the product",tags:"Tags",tagsHint:"Product tags"},products:{archiveTitle:"product",description:"Description",descriptionHint:"Describe the product form",editproduct:"Edit product",fields:"fields",fieldsHint:"fields hint",jsonSchema:"json schema",jsonSchemaHint:"json schema hint",name:"Form name",nameHint:"Name the type of products which this form represents",newproduct:"New product",uiSchema:"ui schema",uiSchemaHint:"ui schema hint"},categories:{archiveTitle:"Categories",editCategory:"Edit category",name:"Name",nameHint:"Name of the category",newCategory:"New category",parent:"Parent category",parentHint:"This category would be under the parent category in display or search"},abac:{backToApp:"Go back to the app",email:"Email",emailAddress:"Email address",firstName:"First name",lastName:"Last name",otpOrDifferent:"Or try a different account instead",otpResetMethod:"Reset method",otpTitle:"One time password",otpTitleHint:`Login to your account via a 6-8 digit pins, which we will + */function Q$(){return Q$=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function zse(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function qse(e,t){return e.button===0&&(!t||t==="_self")&&!zse(e)}const Hse=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Vse="6";try{window.__reactRouterVersion=Vse}catch{}const Gse="startTransition",SU=DS[Gse];function UX(e){let{basename:t,children:n,future:r,window:a}=e,i=R.useRef();i.current==null&&(i.current=Yoe({window:a,v5Compat:!0}));let o=i.current,[l,u]=R.useState({action:o.action,location:o.location}),{v7_startTransition:d}=r||{},f=R.useCallback(g=>{d&&SU?SU(()=>u(g)):u(g)},[u,d]);return R.useLayoutEffect(()=>o.listen(f),[o,f]),R.useEffect(()=>LX(r),[r]),R.createElement(FX,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const Yse=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Kse=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,J$=R.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:l,target:u,to:d,preventScrollReset:f,viewTransition:g}=t,y=Wse(t,Hse),{basename:h}=R.useContext(fh),v,E=!1;if(typeof d=="string"&&Kse.test(d)&&(v=d,Yse))try{let _=new URL(window.location.href),A=d.startsWith("//")?new URL(_.protocol+d):new URL(d),P=K3(A.pathname,h);A.origin===_.origin&&P!=null?d=P+A.search+A.hash:E=!0}catch{}let T=Sse(d,{relative:a}),C=Xse(d,{replace:o,state:l,target:u,preventScrollReset:f,relative:a,viewTransition:g});function k(_){r&&r(_),_.defaultPrevented||C(_)}return R.createElement("a",Q$({},y,{href:v||T,onClick:E||i?r:k,ref:n,target:u}))});var EU;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(EU||(EU={}));var TU;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(TU||(TU={}));function Xse(e,t){let{target:n,replace:r,state:a,preventScrollReset:i,relative:o,viewTransition:l}=t===void 0?{}:t,u=Z3(),d=Zd(),f=MX(e,{relative:o});return R.useCallback(g=>{if(qse(g,n)){g.preventDefault();let y=r!==void 0?r:LS(d)===LS(f);u(e,{replace:y,state:a,preventScrollReset:i,relative:o,viewTransition:l})}},[d,u,f,r,a,n,e,i,o,l])}const ph=ze.createContext({patchConfig(){},config:{}});function Qse(){const e=localStorage.getItem("app_config2");if(e){try{const t=JSON.parse(e);return t?{...t}:{}}catch{}return{}}}const Jse=Qse();function BX({children:e,initialConfig:t}){const[n,r]=R.useState({...t,...Jse}),a=i=>{r(o=>{const l={...o,...i};return localStorage.setItem("app_config2",JSON.stringify(l)),l})};return w.jsx(ph.Provider,{value:{config:n,patchConfig:a},children:e})}const WX={onlyOnRoot:"This feature is only available for root access, please ask your administrator for more details",productName:"Fireback",orders:{archiveTitle:"Orders",discountCode:"Discount code",discountCodeHint:"Discount code",editOrder:"Edit order",invoiceNumber:"Invoice number",invoiceNumberHint:"Invoice number",items:"Items",itemsHint:"Items",newOrder:"New order",orderStatus:"Order status",orderStatusHint:"Order status",paymentStatus:"Payment status",paymentStatusHint:"Payment status",shippingAddress:"Shipping address",shippingAddressHint:"Shipping address",totalPrice:"Total price",totalPriceHint:"Total price"},shoppingCarts:{archiveTitle:"Shopping carts",editShoppingCart:"Edit shopping cart",items:"Items",itemsHint:"Items",newShoppingCart:"New shopping cart",product:"Product",productHint:"Select the product item",quantity:"Quantity",quantityHint:"How many products do you want"},discountCodes:{appliedCategories:"Applied categories",appliedCategoriesHint:"Applied categories",appliedProducts:"Applied products",appliedProductsHint:"Applied products",archiveTitle:"Discount codes",editDiscountCode:"Edit discount code",excludedCategories:"Excluded categories",excludedCategoriesHint:"Excluded categories",excludedProducts:"Excluded products",excludedProductsHint:"Excluded products",limit:"Limit",limitHint:"Limit",newDiscountCode:"New discount code",series:"Series",seriesHint:"Series",validFrom:"Valid from",validFromHint:"Valid from",validUntil:"Valid until",validUntilHint:"Valid until"},postcategories:{archiveTitle:"Post Category",editpostCategory:"Edit Post category",name:"Name",nameHint:"Name",newpostCategory:"Newpost category"},pagecategories:{archiveTitle:"Page category",editpageCategory:"Edit page category",name:"Name",nameHint:"Name",newpageCategory:"New page category"},posttags:{archiveTitle:"Post tag",editpostTag:"Edit post tag",name:"Name",nameHint:"Name",newpostTag:"New post tag"},pagetags:{archiveTitle:"Page tag",editpageTag:"Edit page tag",name:"Name",nameHint:"Name",newpageTag:"New page tag"},posts:{archiveTitle:"Posts",category:"Category",categoryHint:"Category",content:"Content",contentHint:"content",editpost:"Edit post",newpost:"New post",tags:"Tags",tagsHint:"Tags",title:"Title",titleHint:"Title"},pages:{archiveTitle:"Pages",category:"Category",categoryHint:"Page category",content:"Content",contentHint:"",editpage:"Edit page",newpage:"New page",tags:"Tags",tagsHint:"Page tags",title:"Title",titleHint:"Page title"},components:{currency:"Currency",currencyHint:"Currency type",amount:"Amount",amountHint:"Amount in numbers, separated by . for cents"},brands:{archiveTitle:"Brand",editBrand:"Edit brand",name:"Name",nameHint:"Brand's name",newBrand:"New brand"},tags:{archiveTitle:"Tags",editTag:"Edit tag",name:"Name",nameHint:"Tag name",newTag:"Name of the tag"},productsubmissions:{name:"Name",nameHint:"Name of the product",archiveTitle:"Product Inventory",brand:"Brand",brandHint:"If the product belongs to an specific brand",category:"Category",categoryHint:"Product category",description:"Description",descriptionHint:"Product description",editproductSubmission:"Edit product submission",newproductSubmission:"Newproduct submission",price:"Price",priceHint:"Set the price tag for the product",product:"Product",productHint:"Select the product type",sku:"SKU",skuHint:"SKU code for the product",tags:"Tags",tagsHint:"Product tags"},products:{archiveTitle:"product",description:"Description",descriptionHint:"Describe the product form",editproduct:"Edit product",fields:"fields",fieldsHint:"fields hint",jsonSchema:"json schema",jsonSchemaHint:"json schema hint",name:"Form name",nameHint:"Name the type of products which this form represents",newproduct:"New product",uiSchema:"ui schema",uiSchemaHint:"ui schema hint"},categories:{archiveTitle:"Categories",editCategory:"Edit category",name:"Name",nameHint:"Name of the category",newCategory:"New category",parent:"Parent category",parentHint:"This category would be under the parent category in display or search"},abac:{backToApp:"Go back to the app",email:"Email",emailAddress:"Email address",firstName:"First name",lastName:"Last name",otpOrDifferent:"Or try a different account instead",otpResetMethod:"Reset method",otpTitle:"One time password",otpTitleHint:`Login to your account via a 6-8 digit pins, which we will send by phone or email. You can change your password later in account center.`,password:"Password",remember:"Remember my credentials",signin:"Sign in",signout:"Sign out",signup:"Sign up",signupType:"Signup Type",signupTypeHint:"Select how do you want to use software",viaEmail:"Send pin via email address",viaSms:"Phone number (SMS)"},about:"About",acChecks:{moduleName:"Checks"},acbankbranches:{acBankBranchArchiveTitle:"Bank Branches",bank:"Bank",bankHint:"The bank that this branch belongs to",bankId:"Bank",city:"City",cityHint:"City that this bank branch is located",cityId:"City",editAcBank:"Edit Bank Branch",editAcBankBranch:"Edit Bank Branch",locaitonHint:"Physical location of the branch",location:"Location",name:"Bank Branch Name",nameHint:"The branch name of the bank, town may be included",newAcBankBranch:"New Bank Branch",province:"Province",provinceHint:"Province that this bank branch is located"},acbanks:{acBankArchiveTitle:"Banks",editAcBank:"Edit Bank",name:"Bank name",nameHint:"The national name of the bank to make it easier recognize",newAcBank:"New Bank"},accesibility:{leftHand:"Left handed",rightHand:"Right handed"},acchecks:{acCheckArchiveTitle:"Checks",amount:"Amount",amountFormatted:"Amount",amountHint:"Amount of this check",bankBranch:"Bank Branch",bankBranchCityName:"City name",bankBranchHint:"The branch which has issued this check",bankBranchId:"Bank Branch",bankBranchName:"Branch name",currency:"Currency",currencyHint:"The currency which this check is written in",customer:"Customer",customerHint:"The customer that this check is from or belongs to",customerId:"Customer",dueDate:"Due Date",dueDateFormatted:"Due Date",dueDateHint:"The date that this check should be passed",editAcCheck:"Edit Check",identifier:"Identifier",identifierHint:"Identifier is special code for this check or unique id",issueDate:"Issue date",issueDateFormatted:"Issue Date",issueDateHint:"The date that check has been issued",newAcCheck:"New Check",recipientBankBranch:"Recipient Bank Branch",recipientBankBranchHint:"The bank which this check has been taken to",recipientCustomer:"Recipient Customer",recipientCustomerHint:"The customer who has this check",status:"Status",statusHint:"The status of this check"},accheckstatuses:{acCheckStatusArchiveTitle:"Check Statuses",editAcCheckStatus:"Edit Check Status",name:"Status Name",nameHint:"Status name which will be assigned to a check in workflow",newAcCheckStatus:"New Check Status"},accountcollections:{archiveTitle:"Account Collections",editAccountCollection:"Edit Collection",name:"Collection Name",nameHint:"Name the account collection",newAccountCollection:"New Account Collection"},accounting:{account:{currency:"Currency",name:"Name"},accountCollections:"Account Collections",accountCollectionsHint:"Account Collections",amount:"Amount",legalUnit:{name:"Name"},settlementDate:"Settlement Date",summary:"summary",title:"Title",transactionDate:"Transaction Date"},actions:{addJob:"+ Add job",back:"Back",edit:"Edit",new:"New"},addLocation:"Add location",alreadyHaveAnAccount:"Already have an account? Sign in instead",answerSheet:{grammarProgress:"Grammar %",listeningProgress:"Listening %",readingProgress:"Reading %",sourceExam:"Source exam",speakingProgress:"Speaking %",takerFullname:"Student fullname",writingProgress:"Writing %"},authenticatedOnly:"This section requires you to login before viewing or editing of any kind.",backup:{generateAndDownload:"Generate & Download",generateDescription:`You can create a backup of the system here. It's important to remember you will generate back from data which are visible to you. Making @@ -88,29 +88,29 @@ Error generating stack: `+p.message+` subsequent workspaces, by registering via email, phone number or other types of the passports. In this section you can enable, disable, and make some other - configurations.`,resetToDefault:"Reset to default",role:"role",roleHint:"Select role",sender:"Sender",sidetitle:"Workspaces",slug:"Slug",title:"Title",type:"Type",workspaceName:"Workspace name",workspaceNameHint:"Enter the workspace name",workspaceTypeSlug:"Slug address",workspaceTypeSlugHint:"The path that publicly will be available to users, if they signup through this account this role would be assigned to them.",workspaceTypeTitle:"Title",workspaceTypeUniqueId:"Unique Id",workspaceTypeUniqueIdHint:"Unique id can be used to redirect user to direct signin",workspaceTypeTitleHint:"The title of the Workspace"}};function Use(e){let t="en";const n=e.match(/^\/(fa|en|ar|pl|de|ua|ru)\//);return n&&n[1]&&(t=n[1]),["fa","en","ar","pl","de","ru","ua"].includes(t)?t:"en"}const Bse=e=>w.jsx(j$,{...e,to:e.href,children:e.children});function xr(){const e=U3(),t=fse(),n=Xd(),r=(i,o,l,u=!1)=>{const d=Use(window.location.pathname);let f=i.replace("{locale}",d);e(f,{replace:u,state:l})},a=(i,o,l)=>{r(i,o,l,!0)};return{asPath:n.pathname,state:n.state,pathname:"",query:t,push:r,goBack:()=>e(-1),goBackOrDefault:i=>e(-1),goForward:()=>e(1),replace:a}}var Wse={VITE_REMOTE_SERVICE:"/",PUBLIC_URL:"/manage/",VITE_DEFAULT_ROUTE:"/{locale}/dashboard",VITE_SUPPORTED_LANGUAGES:"fa,en"};const ip=Wse,kr={REMOTE_SERVICE:ip.VITE_REMOTE_SERVICE,PUBLIC_URL:ip.PUBLIC_URL,DEFAULT_ROUTE:ip.VITE_DEFAULT_ROUTE,SUPPORTED_LANGUAGES:ip.VITE_SUPPORTED_LANGUAGES,GITHUB_DEMO:ip.VITE_GITHUB_DEMO,FORCED_LOCALE:ip.VITE_FORCED_LOCALE,FORCE_APP_THEME:ip.VITE_FORCE_APP_THEME,NAVIGATE_ON_SIGNOUT:ip.VITE_NAVIGATE_ON_SIGNOUT};function zse(e){let t="en";const n=e.match(/^\/(fa|en|ar|pl|de)\//);return n&&n[1]&&(t=n[1]),t}function sr(){const e=xr();let t="en",n="us",r="ltr";return kr.FORCED_LOCALE?t=kr.FORCED_LOCALE:e.query.locale?t=`${e.query.locale}`:t=zse(e.asPath),t==="fa"&&(n="ir",r="rtl"),{locale:t,asPath:e.asPath,region:n,dir:r}}const qse={onlyOnRoot:"این بخش فقط برای دسترسی روت قابل مشاهده است. در صورت نیاز به اطلاعات بیشتر با مدیر سیستم خود تماس بگیرید.",abac:{backToApp:"رفتن به صفحات داخلی",email:"ایمیل",emailAddress:"آدرس ایمیل",firstName:"نام",lastName:"نام خانوادگی",otpOrDifferent:"یا یه حساب کاربری دیگه را امتحان کنید",otpResetMethod:"روش ریست کردن رمز",otpTitle:"رمز یک بار ورود",otpTitleHint:"برای ورود یک کد ۶ رقمی به وسیله یکی از روش های ارتباطی دریافت میکنید. بعدا میتوانید رمز خود را از طریق تنظیمات عوض کنید.",password:"کلمه عبور",remember:"مرا به یاد بسپار",signin:"ورود",signout:"خروج",signup:"ثبت نام",signupType:"نوع ثبت نام",signupTypeHint:"نوع حساب کاربری خود را مشخص کنید.",viaEmail:"از طریق ایمیل",viaSms:"از طریق پیامک"},about:"درباره",acChecks:{moduleName:"چک ها"},acbankbranches:{acBankBranchArchiveTitle:"شعب بانک",bank:"بانک",bankHint:"بانکی که این شعبه به آن تعلق دارد",bankId:"بانک",city:"شهر",cityHint:"شهری که این بانک در آن وجود دارد",cityId:"شهر",editAcBank:"ویرایش شعبه",editAcBankBranch:"ویرایش شعبه",locaitonHint:"شهر، استان و یا ناحیه ای که این شعبه در آن است",location:"مکان",name:"نام شعبه",nameHint:"نام این شعبه بانک، کد یا اسم محل یا شهر هم مجاز است",newAcBankBranch:"شعبه جدید بانک",province:"استان",provinceHint:"استانی که این بانک در آن قرار دارد"},acbanks:{acBankArchiveTitle:"بانک ها",editAcBank:"ویرایش بانک",name:"نام بانک",nameHint:"نام بانک را به صورت کلی برای شناسایی راحت تر وارد کنید",newAcBank:"بانک جدید"},accesibility:{leftHand:"چپ دست",rightHand:"راست دست"},accheck:{acCheckArchiveTitle:"چک ها"},acchecks:{acCheckArchiveTitle:"چک ها",amount:"مبلغ",amountFormatted:"مبلغ",amountHint:"مبلغ قابل پرداخت چک",bankBranch:"شعبه بانک",bankBranchCityName:"نام شهر",bankBranchHint:"شعبه بانکی که این چک را صادر کرده است",bankBranchId:"شعبه بانک",bankBranchName:"ن",currency:"واحد پول",currencyHint:"واحد پولی که این چک دارد",customer:"مشتری",customerHint:"مشتری یا شخصی که این چک به او مربوط است",customerId:"مشتری",dueDate:"تاریخ سررسید",dueDateFormatted:"تاریخ سررسید",dueDateHint:"زمانی که چک قابل نقد شدن در بانک باشد",editAcCheck:"ویرایش چک",identifier:"شناسه چک",identifierHint:"شناسه یا کد مخصوص این چک",issueDate:"تاریخ صدور",issueDateFormatted:"تاریخ صدور",issueDateHint:"تاریخی که چک صادر شده است",newAcCheck:"چک جدید",recipientBankBranch:"بانک دریافت کننده",recipientBankBranchHint:"بانکی که این چک برای نقد شدن به آن ارسال شده",recipientCustomer:"مشتری دریافت کننده",recipientCustomerHint:"مشتری که این چک را دریافت کرده است",status:"وضعیت",statusHint:"وضعیت نهایی این چک"},accheckstatuses:{acCheckStatusArchiveTitle:"وضعیت چک",editAcCheckStatus:"ویرایش وضعیت چک",name:"نام وضعیت",nameHint:"نام وضعیتی که به چک ها اختصاص داده میشود",newAcCheckStatus:"وضعیت جدید چک"},accountcollections:{archiveTitle:"سرفصل های حسابداری",editAccountCollection:"ویرایش سرفصل",name:"نام سرفصل",nameHint:"نامی که برای این سرفصل حسابداری در نظر گرفته شده",newAccountCollection:"سرفصل جدید"},accounting:{account:{currency:"واحد پول",name:"نام"},accountCollections:"سرفصل های حسابداری",accountCollectionsHint:"سرفصل های حسابداری",amount:"میزان",legalUnit:{name:"نام"},settlementDate:"تاریخ حل و فصل",summary:"خلاصه",title:"عنوان",transactionDate:"تاریخ معامله"},actions:{addJob:"+ اضافه کردن شغل",back:"Back",edit:"ویرایش",new:"جدید"},addLocation:"اضافه کردن لوکیشن",alreadyHaveAnAccount:"از قبل حساب کاربری دارید؟ به جای آن وارد شوید",answerSheet:{grammarProgress:"گرامر %",listeningProgress:"استماع ٪",readingProgress:"خواندن %",sourceExam:"آزمون منبع",speakingProgress:"صحبت كردن ٪",takerFullname:"نام کامل دانش آموز",writingProgress:"% نوشتن"},authenticatedOnly:"این بخش شما را ملزم می کند که قبل از مشاهده یا ویرایش هر نوع وارد شوید.",b1PolishSample:{b12018:"2018 B1 Sample",grammar:"گرامر",listenning:"شنیدار",reading:"خواندن",speaking:"صحبت",writing:"نوشتار"},backup:{generateAndDownload:"ایجاد و دانلود",generateDescription:`در اینجا می توانید یک نسخه پشتیبان از سیستم ایجاد کنید. مهم است که به خاطر داشته باشید + configurations.`,resetToDefault:"Reset to default",role:"role",roleHint:"Select role",sender:"Sender",sidetitle:"Workspaces",slug:"Slug",title:"Title",type:"Type",workspaceName:"Workspace name",workspaceNameHint:"Enter the workspace name",workspaceTypeSlug:"Slug address",workspaceTypeSlugHint:"The path that publicly will be available to users, if they signup through this account this role would be assigned to them.",workspaceTypeTitle:"Title",workspaceTypeUniqueId:"Unique Id",workspaceTypeUniqueIdHint:"Unique id can be used to redirect user to direct signin",workspaceTypeTitleHint:"The title of the Workspace"}};function Zse(e){let t="en";const n=e.match(/^\/(fa|en|ar|pl|de|ua|ru)\//);return n&&n[1]&&(t=n[1]),["fa","en","ar","pl","de","ru","ua"].includes(t)?t:"en"}const ele=e=>w.jsx(J$,{...e,to:e.href,children:e.children});function xr(){const e=Z3(),t=kse(),n=Zd(),r=(i,o,l,u=!1)=>{const d=Zse(window.location.pathname);let f=i.replace("{locale}",d);e(f,{replace:u,state:l})},a=(i,o,l)=>{r(i,o,l,!0)};return{asPath:n.pathname,state:n.state,pathname:"",query:t,push:r,goBack:()=>e(-1),goBackOrDefault:i=>e(-1),goForward:()=>e(1),replace:a}}var tle={VITE_REMOTE_SERVICE:"/",PUBLIC_URL:"/manage/",VITE_DEFAULT_ROUTE:"/{locale}/dashboard",VITE_SUPPORTED_LANGUAGES:"fa,en"};const lp=tle,kr={REMOTE_SERVICE:lp.VITE_REMOTE_SERVICE,PUBLIC_URL:lp.PUBLIC_URL,DEFAULT_ROUTE:lp.VITE_DEFAULT_ROUTE,SUPPORTED_LANGUAGES:lp.VITE_SUPPORTED_LANGUAGES,GITHUB_DEMO:lp.VITE_GITHUB_DEMO,FORCED_LOCALE:lp.VITE_FORCED_LOCALE,FORCE_APP_THEME:lp.VITE_FORCE_APP_THEME,NAVIGATE_ON_SIGNOUT:lp.VITE_NAVIGATE_ON_SIGNOUT};function nle(e){let t="en";const n=e.match(/^\/(fa|en|ar|pl|de)\//);return n&&n[1]&&(t=n[1]),t}function sr(){const e=xr();let t="en",n="us",r="ltr";return kr.FORCED_LOCALE?t=kr.FORCED_LOCALE:e.query.locale?t=`${e.query.locale}`:t=nle(e.asPath),t==="fa"&&(n="ir",r="rtl"),{locale:t,asPath:e.asPath,region:n,dir:r}}const rle={onlyOnRoot:"این بخش فقط برای دسترسی روت قابل مشاهده است. در صورت نیاز به اطلاعات بیشتر با مدیر سیستم خود تماس بگیرید.",abac:{backToApp:"رفتن به صفحات داخلی",email:"ایمیل",emailAddress:"آدرس ایمیل",firstName:"نام",lastName:"نام خانوادگی",otpOrDifferent:"یا یه حساب کاربری دیگه را امتحان کنید",otpResetMethod:"روش ریست کردن رمز",otpTitle:"رمز یک بار ورود",otpTitleHint:"برای ورود یک کد ۶ رقمی به وسیله یکی از روش های ارتباطی دریافت میکنید. بعدا میتوانید رمز خود را از طریق تنظیمات عوض کنید.",password:"کلمه عبور",remember:"مرا به یاد بسپار",signin:"ورود",signout:"خروج",signup:"ثبت نام",signupType:"نوع ثبت نام",signupTypeHint:"نوع حساب کاربری خود را مشخص کنید.",viaEmail:"از طریق ایمیل",viaSms:"از طریق پیامک"},about:"درباره",acChecks:{moduleName:"چک ها"},acbankbranches:{acBankBranchArchiveTitle:"شعب بانک",bank:"بانک",bankHint:"بانکی که این شعبه به آن تعلق دارد",bankId:"بانک",city:"شهر",cityHint:"شهری که این بانک در آن وجود دارد",cityId:"شهر",editAcBank:"ویرایش شعبه",editAcBankBranch:"ویرایش شعبه",locaitonHint:"شهر، استان و یا ناحیه ای که این شعبه در آن است",location:"مکان",name:"نام شعبه",nameHint:"نام این شعبه بانک، کد یا اسم محل یا شهر هم مجاز است",newAcBankBranch:"شعبه جدید بانک",province:"استان",provinceHint:"استانی که این بانک در آن قرار دارد"},acbanks:{acBankArchiveTitle:"بانک ها",editAcBank:"ویرایش بانک",name:"نام بانک",nameHint:"نام بانک را به صورت کلی برای شناسایی راحت تر وارد کنید",newAcBank:"بانک جدید"},accesibility:{leftHand:"چپ دست",rightHand:"راست دست"},accheck:{acCheckArchiveTitle:"چک ها"},acchecks:{acCheckArchiveTitle:"چک ها",amount:"مبلغ",amountFormatted:"مبلغ",amountHint:"مبلغ قابل پرداخت چک",bankBranch:"شعبه بانک",bankBranchCityName:"نام شهر",bankBranchHint:"شعبه بانکی که این چک را صادر کرده است",bankBranchId:"شعبه بانک",bankBranchName:"ن",currency:"واحد پول",currencyHint:"واحد پولی که این چک دارد",customer:"مشتری",customerHint:"مشتری یا شخصی که این چک به او مربوط است",customerId:"مشتری",dueDate:"تاریخ سررسید",dueDateFormatted:"تاریخ سررسید",dueDateHint:"زمانی که چک قابل نقد شدن در بانک باشد",editAcCheck:"ویرایش چک",identifier:"شناسه چک",identifierHint:"شناسه یا کد مخصوص این چک",issueDate:"تاریخ صدور",issueDateFormatted:"تاریخ صدور",issueDateHint:"تاریخی که چک صادر شده است",newAcCheck:"چک جدید",recipientBankBranch:"بانک دریافت کننده",recipientBankBranchHint:"بانکی که این چک برای نقد شدن به آن ارسال شده",recipientCustomer:"مشتری دریافت کننده",recipientCustomerHint:"مشتری که این چک را دریافت کرده است",status:"وضعیت",statusHint:"وضعیت نهایی این چک"},accheckstatuses:{acCheckStatusArchiveTitle:"وضعیت چک",editAcCheckStatus:"ویرایش وضعیت چک",name:"نام وضعیت",nameHint:"نام وضعیتی که به چک ها اختصاص داده میشود",newAcCheckStatus:"وضعیت جدید چک"},accountcollections:{archiveTitle:"سرفصل های حسابداری",editAccountCollection:"ویرایش سرفصل",name:"نام سرفصل",nameHint:"نامی که برای این سرفصل حسابداری در نظر گرفته شده",newAccountCollection:"سرفصل جدید"},accounting:{account:{currency:"واحد پول",name:"نام"},accountCollections:"سرفصل های حسابداری",accountCollectionsHint:"سرفصل های حسابداری",amount:"میزان",legalUnit:{name:"نام"},settlementDate:"تاریخ حل و فصل",summary:"خلاصه",title:"عنوان",transactionDate:"تاریخ معامله"},actions:{addJob:"+ اضافه کردن شغل",back:"Back",edit:"ویرایش",new:"جدید"},addLocation:"اضافه کردن لوکیشن",alreadyHaveAnAccount:"از قبل حساب کاربری دارید؟ به جای آن وارد شوید",answerSheet:{grammarProgress:"گرامر %",listeningProgress:"استماع ٪",readingProgress:"خواندن %",sourceExam:"آزمون منبع",speakingProgress:"صحبت كردن ٪",takerFullname:"نام کامل دانش آموز",writingProgress:"% نوشتن"},authenticatedOnly:"این بخش شما را ملزم می کند که قبل از مشاهده یا ویرایش هر نوع وارد شوید.",b1PolishSample:{b12018:"2018 B1 Sample",grammar:"گرامر",listenning:"شنیدار",reading:"خواندن",speaking:"صحبت",writing:"نوشتار"},backup:{generateAndDownload:"ایجاد و دانلود",generateDescription:`در اینجا می توانید یک نسخه پشتیبان از سیستم ایجاد کنید. مهم است که به خاطر داشته باشید شما از داده هایی که برای شما قابل مشاهده است تولید خواهید کرد. پشتیبان‌گیری باید با استفاده از حساب‌های مدیریتی انجام شود تا از پوشش همه داده‌های موجود در سیستم اطمینان حاصل شود.`,generateTitle:"ایجاد پشتیبان",restoreDescription:"در اینجا می‌توانید فایل‌های پشتیبان یا داده‌هایی را که از نصب دیگری منتقل کرده‌اید، وارد سیستم کنید.",restoreTitle:"بازیابی نسخه های پشتیبان",uploadAndRestore:"آپلود و بازیابی"},banks:{title:"بانک ها"},classroom:{classRoomName:"نام کلاس درس",classRoomNameHint:"عنوان کلاس را وارد کنید، به عنوان مثال: اسپانیایی گروه A1.1",description:"شرح",descriptionHint:"با چند کلمه توضیح دهید که این کلاس درس در مورد چیست، تا دانش آموزان آن را به راحتی پیدا کنند",editClassRoom:"ویرایش کلاس درس",gogoleMeetUrlHint:"آدرس اینترنتی را که زبان آموزان برای دسترسی به کلاس باز می کنند قرار دهید",googleMeetUrl:"آدرس اینترنتی Google Meet",members:"اعضا",membersHint:"دانش آموزان (اعضایی) را که می توانند به این محتوای کلاس دسترسی داشته باشند انتخاب کنید و شرکت کنید",newClassroom:"کلاس درس جدید",provider:"ارائه دهنده را انتخاب کنید",providerHint:"ارائه دهندگان نرم افزارهایی هستند که می توانید جلسه تماس ویدیویی خود را در بالای آن میزبانی کنید",providers:{googleMeet:"Google Meet",zoom:"بزرگنمایی"},title:"کلاس درس"},close:"بستن",cloudProjects:{clientId:"شناسه مشتری",name:"نام",secret:"راز"},common:{isNUll:"تعیین نشده",cancel:"لغو",no:"خیر",noaccess:"شما به این بخش از برنامه دسترسی ندارید. برای مشاوره با سرپرست خود تماس بگیرید",parent:"رکورد مادر",parentHint:"اگر این رکورد دارای سر مجموعه است آن را انتخاب کنید",save:"ذخیره",yes:"بله"},commonProfile:{},confirm:"تایید",continue:"ادامه",controlsheets:{active:"فعال",archiveTitle:"کنترل شیت",editControlSheet:"ویرایش کنترل شیت",inactive:"غیرفعال",isRunning:"درحال اجرا",name:"نام",nameHint:"نام کنترل شیت برای دسترسی بهتر",newControlSheet:"کنترل شیت جدید"},course:{availableCourses:"دوره های موجود",courseDescription:"شرح دوره",courseDescriptionHint:"در مورد دوره به طور کامل توضیح دهید تا افراد بتوانند قبل از ثبت نام در مورد آن مطالعه کنند",courseExcerpt:"گزیده دوره",courseExcerptHint:"شرح دوره را در 1 یا 2 خط خلاصه کنید",courseId:"Course Id",courseTitle:"عنوان دوره",courseTitleHint:"عنوان دوره را وارد کنید، مانند الگوریتم در C++",editCourse:"ویرایش دوره",myCourses:"دوره های من",name:"Ali",newCourse:"دوره جدید",noCourseAvailable:"هیچ دوره ای در اینجا موجود نیست. برای دیدن دوره های اختصاصی ممکن است لازم باشد با حساب دیگری وارد شوید",noCourseEnrolled:"شما در حال حاضر در هیچ دوره ای ثبت نام نکرده اید. دوره زیر را پیدا کنید و ثبت نام کنید.",title:"عنوان"},createAccount:"ایجاد حساب کاربری",created:"زمان ایجاد شد",currentUser:{editProfile:"ویرایش نمایه",profile:"مشخصات",signin:"ورود",signout:"خروج از سیستم"},dashboards:"محیط کار",datanodes:{addReader:"اضافه کردن خواننده",addWriter:"اضافه کردن نویسنده",archiveTitle:"دیتا نود ها",dataType:"نوع دیتا",expanderFunction:"Expander function",expanderFunctionHint:"How to cast the content into value array",filePath:"File Path",filePathHint:"File address on the system",key:"Data key",keyHint:"Data key is the sub key of a data node",keyReadable:"Readable",keyReadableHint:"If this sub key is readable",keyWritable:"Writable",keyWritableHint:"If this sub key is writable",modbusRtuAddress:"Address",modbusRtuAddressHint:"Address",modbusRtuDataBits:"DataBits",modbusRtuDataBitsHint:"DataBits",modbusRtuParity:"Parity",modbusRtuParityHint:"Parity",modbusRtuSlaveId:"SlaveId",modbusRtuSlaveIdHint:"SlaveId",modbusRtuStopBits:"StopBits",modbusRtuStopBitsHint:"StopBits",modbusRtuTimeout:"Timeout",modbusRtuTimeoutHint:"Timeout",modbusTcpHost:"Host",modbusTcpHostHint:"Host",modbusTcpPort:"Port",modbusTcpPortHint:"Port",modbusTcpSlaveId:"Slave id",modbusTcpSlaveIdHint:"Slave id",modbusTcpTimeout:"Timeout",modbusTcpTimeoutHint:"Timeout",mode:"حالت",modeHint:"حالت دیتا نود",mqttBody:"بدنه پیام",mqttBodyHInt:"پیامی که ارسال خواهد شد",mqttTopic:"عنوان پیام",mqttTopicHint:"موضوع پیام که به MQTT ارسال خواهد شد",nodeReader:"خواننده نود",nodeReaderConfig:"تنظیم نود",nodeReaderConfigHint:"تنظیمات مربوط به نحوه خواندن اطلاعات",nodeReaderHint:"نوع خواننده اطلاعات از روی نود مشخص کنید",nodeWriter:"نویسنده نود",nodeWriterHint:"نوع نویسنده که اطلاعات را بر روی نود مینویسد مشخص کنید",serialPort:"سریال پورت",serialPortHint:"انتخاب سریال پورت های موجود و متصل به سیستم",type:"نوع دیتا",typeHint:"نوع دیتایی که این نوع نگهداری یا منتقل میکند.",udpHost:"Host",udpHostHint:"UDP Host Address",udpPort:"Port",udpPortHint:"UDP Port Number"},datepicker:{day:"روز",month:"ماه",year:"سال"},debugInfo:"نمایش اطلاعات دیباگ",deleteAction:"حذف",deleteConfirmMessage:"آیا از حذف کردن این آیتم ها مطمین هستید؟",deleteConfirmation:"مطمئنی؟",devices:{deviceModbusConfig:"تنظیمات مدباس دستگاه",deviceModbusConfigHint:"تنظیمات مربوط به نوع دستگاه مدباس مانند آدرس ها و رجیستر ها",devicetemplateArchiveTitle:"دستگاه ها",editDevice:"ویرایش دستگاه",ip:"IP",ipHint:"آدرس دستگاه به صورت آی پی ۴",model:"مدل",modelHint:"مدل یا سریال دستگاه",name:"نام دستگاه",nameHint:"نامی که برای دستگاه در سطح نرم افزار گذاشته میشود",newDevice:"دستگاه جدید",securityType:"نوع امنیت بی سیم",securityTypeHint:"نوع رمزگذاری هنگام اتصال به این شبکه وایرلس",type:"نوع دستگاه",typeHint:"نوع فیزیکی دستگاه ",typeId:"نوع",typeIdHint:"نوع دستگاه",wifiPassword:"رمز وای فای",wifiPasswordHint:"رمز هنگام اتصال به وای فای (خالی هم مورد قبول است)",wifiSSID:"شناسه وای فای",wifiSSIDHint:"نام شبکه وای فای یا همان SSID"},devicetype:{archiveTitle:"انواع دستگاه",editDeviceType:"ویرایش نوع دستگاه",name:"نام نوع دستگاه",nameHint:"نوع دستگاه را نام گذاری کنید",newDeviceType:"نوع دستگاه جدید"},diagram:"دیاگرام",drive:{attachFile:"اضافه کردن فایل پیوست",driveTitle:"درایو",menu:"فایل ها",name:"نام",size:"اندازه",title:"عنوان",type:"تایپ کنید",viewPath:"آدرس نمایش",virtualPath:"مسیر مجازی"},dropNFiles:"برای شروع آپلود، {n} فایل را رها کنید",edit:"ویرایش",errors:{UNKOWN_ERRROR:"خطای ناشناخته ای رخ داده است"},exam:{startInstruction:"امتحان جدیدی را با کلیک کردن روی دکمه شروع کنید، ما پیشرفت شما را پیگیری می کنیم تا بتوانید بعداً بازگردید.",startNew:"امتحان جدیدی را شروع کنید",title:"امتحان"},examProgress:{grammarProgress:"پیشرفت گرامر:",listeningProgress:"پیشرفت گوش دادن:",readingProgress:"پیشرفت خواندن:",speakingProgress:"پیشرفت صحبت کردن:",writingProgress:"پیشرفت نوشتن:"},examSession:{highlightMissing:"برجسته کردن از دست رفته",showAnswers:"نمایش پاسخ ها"},fb:{commonProfile:"پروفایل خودت را ویرایش کن",editMailProvider:"ارائه دهنده ایمیل",editMailSender:"فرستنده ایمیل را ویرایش کنید",editPublicJoinKey:"کلید پیوستن عمومی را ویرایش کنید",editRole:"نقش را ویرایش کنید",editWorkspaceType:"ویرایش نوع تیم",newMailProvider:"ارائه دهنده ایمیل جدید",newMailSender:"فرستنده ایمیل جدید",newPublicJoinKey:"کلید پیوستن عمومی جدید",newRole:"نقش جدید",newWorkspaceType:"تیم جدید",publicJoinKey:"کلید پیوستن عمومی"},fbMenu:{emailProvider:"ارائه دهنده ایمیل",emailProviders:"ارائه دهندگان ایمیل",emailSender:"فرستنده ایمیل",emailSenders:"ارسال کنندگان ایمیل",gsmProvider:"سرویس های تماس",keyboardShortcuts:"میانبرها",myInvitations:"دعوتنامه های من",publicJoinKey:"کلیدهای پیوستن عمومی",roles:"نقش ها",title:"سیستم",users:"کاربران",workspaceInvites:"دعوت نامه ها",workspaceTypes:"انواع تیم ها",workspaces:"فضاهای کاری"},featureNotAvailableOnMock:"این بخش در نسخه دمو وجود ندارد. دقت فرمایید که نسخه ای از نرم افزار که شما با آن کار میکنید صرفا برای نمایش بوده و سرور واقعی ارتباط نمی گیرد. بنابراین هیچ اطلاعاتی ذخیره نمیشوند.",financeMenu:{accountName:"نام کیف پول",accountNameHint:"نامی که کیف پول را از بقیه متمایز میکند",amount:"میزان",amountHint:"مبلغ پرداختی را وارد کنید",currency:"واحد پول",currencyHint:"ارزی که این حساب باید در آن باشد را انتخاب کنید",editPaymentRequest:"درخواست پرداخت را ویرایش کنید",editVirtualAccount:"ویرایش حساب مجازی",newPaymentRequest:"درخواست پرداخت جدید",newVirtualAccount:"اکانت مجازی جدید",paymentMethod:"روش پرداخت",paymentMethodHint:"مکانیزم روش پرداخت را انتخاب کنید",paymentRequest:"درخواست پرداخت",paymentRequests:"درخواست های پرداخت",paymentStatus:"وضعیت پرداخت",subject:"موضوع",summary:"مانده",title:"امور مالی",transaction:{amount:"مقدار",subject:"موضوع",summary:"مانده"},virtualAccount:"حساب کاربری مجازی",virtualAccountHint:"حساب مجازی را انتخاب کنید که پرداخت به آن انجام می شود",virtualAccounts:"حساب های مجازی"},firstTime:"اولین بار در برنامه، یا رمز عبور را گم کرده اید؟",forcedLayout:{forcedLayoutGeneralMessage:"دسترسی به این بخش نیازمند حساب کاربری و ورود به سیستم است"},forgotPassword:"رمز عبور را فراموش کرده اید",generalSettings:{accessibility:{description:"تنظیماتی که مربوط به توانایی های فیزیکی و یا شرایط ویژه جسمانی مرتبط هستند",title:"دسترسی بهتر"},debugSettings:{description:"اطلاعات اشکال زدایی برنامه را برای توسعه دهندگان یا میزهای راهنمایی ببینید",title:"تنظیمات اشکال زدایی"},grpcMethod:"بیش از grpc",hostAddress:"نشانی میزبان",httpMethod:"بیش از http",interfaceLang:{description:"در اینجا می توانید تنظیمات زبان رابط نرم افزار خود را تغییر دهید",title:"زبان و منطقه"},port:"بندر",remoteDescripton:"سرویس از راه دور، مکانی است که تمامی داده ها، منطق ها و سرویس ها در آن نصب می شوند. ممکن است ابری یا محلی باشد. فقط کاربران پیشرفته، تغییر آن به آدرس اشتباه ممکن است باعث عدم دسترسی شود.",remoteTitle:"سرویس از راه دور",richTextEditor:{description:"نحوه ویرایش محتوای متنی را در برنامه مدیریت کنید",title:"ویرایشگر متن"},theme:{description:"رنگ تم رابط را تغییر دهید",title:"قالب"}},geo:{geocities:{country:"کشور",countryHint:"کشوری که این شهر در آن قرار داده شده",editGeoCity:"ویرایش شهر",geoCityArchiveTitle:"شهرها",menu:"شهرها",name:"نام شهر",nameHint:"نام شهر",newGeoCity:"شهر جدید",province:"استان",provinceHint:"استانی که این شهر در آن قرار دارد."},geocountries:{editGeoCountry:"ویرایش کشور",geoCountryArchiveTitle:"کشورها",menu:"کشورها",name:"نام کشور",nameHint:"نام کشور",newGeoCountry:"کشور جدید"},geoprovinces:{country:"کشور",editGeoProvince:"ویرایش استان",geoProvinceArchiveTitle:"استان ها",menu:"استان ها",name:"نام استان",nameHint:"نام استان",newGeoProvince:"استان جدید"},lat:"افقی",lng:"عمودی",menu:"ابزار جغرافیایی"},geolocations:{archiveTitle:"مکان ها",children:"children",childrenHint:"children Hint",code:"کد",codeHint:"کد دسترسی",editGeoLocation:"ویرایش",flag:"پرچم",flagHint:"پرچم مکان",name:"نام",nameHint:"نام عمومی مکان",newGeoLocation:"مکان جدید",officialName:"نام رسمی",officialNameHint:"",status:"وضعیت",statusHint:"وضعیت مکان (معمولا کشور)",type:"نوع",typeHint:"نوع مکان"},gpiomodes:{archiveTitle:"حالت های پایه",description:"توضیحات",descriptionHint:"جزیات بیشتر در مورد عملکرد این پایه",editGpioMode:"ویرایش حالت پایه",index:"ایندکس عددی",indexHint:"مقدار عددی این پایه هنگام تنظیمات پایه در ابتدای نرم افزار",key:"کلید عددی",keyHint:"کلید عددی این پایه",newGpioMode:"حالت پایه جدید"},gpios:{analogFunction:"تابع آنالوگ",analogFunctionHint:"جزیات در مورد تابع آنالوگ",archiveTitle:"پایه ها",comments:"توضیحات",commentsHint:"توضیحات بیشتر یا قابلیت های این پایه",editGpio:"ویرایش پایه",index:"ایندکس این پایه",indexHint:"شماره عددی این پایه در قطعه که میتوان با آن مقدار پایه را کنترل کرد",modeId:"حالت پایه",modeIdHint:"انتخاب حالت استفاده پایه مانند ورودی یا خروجی",name:"عنوان پایه",nameHint:"اسم پایه مانند GPIO_1",newGpio:"پایه جدید",rtcGpio:"پایه RTC",rtcGpioHint:"اطلاعات پایه RTC در صورت موجود بودن"},gpiostates:{archiveTitle:"وضعیت پایه ها",editGpioState:"ویرایش وضعیت پایه",gpio:"پایه",gpioHint:"پایه را از لیست پایه های موجود این قطعه انتخاب کنید",gpioMode:"حالت",gpioModeHint:"حالتی که پایه باید تنظیم شود را انتخاب کنید",high:"بالا (روشن)",low:"پایین (خاموش)",newGpioState:"حالت جدید پایه",value:"مقدار",valueHint:"وضعیت فعلی پین"},gsmproviders:{apiKey:"کلید API",apiKeyHint:"کلید دسترسی به سرویس فراهم کننده پیامکی یا تماس",editGsmProvider:"ویرایش GSM",gsmProviderArchiveTitle:"سرویس های GSM",invokeBody:"بدنه درخواست",invokeBodyHint:"اطلاعاتی که به صورت متد پست به سرویس ارسال میشوند",invokeUrl:"آدرس API",invokeUrlHint:"آدرسی که باید برای ارسال پیامک از آن استفاده شود.",mainSenderNumber:"شماره ارسال کننده",mainSenderNumberHint:"شماره تلفنی که برای پیامک یا تماس استفاده میشوند",newGsmProvider:"سرویس GSM جدید",terminal:"ترمینال",type:"نوع سرویس",typeHint:"نوع سرویس فراهم کننده GSM (امکانات مختلف نصبت به نوع سرویس موجود است)",url:"وب سرویس"},hmi:{archiveTitle:"Hmis",editHmi:"Edit Hmi",name:"Hmi Name",nameHint:"Name of the hmi to recognize",newHmi:"New Hmi"},hmiComponents:{archiveTitle:"Hmi Components",editHmiComponent:"Edit HmiComponent",hmi:"hmi",hmiHint:"hmi Hint",hmiId:"hmiId",hmiIdHint:"hmiId Hint",icon:"icon",iconHint:"icon Hint",label:"label",labelHint:"label Hint",layoutMode:"layoutMode",layoutModeHint:"layoutMode Hint",newHmiComponent:"New HmiComponent",position:"position",positionHint:"position Hint",read:"read",readHint:"read Hint",readId:"readId",readIdHint:"readId Hint",states:"states",statesHint:"states Hint",type:"type",typeHint:"type Hint",write:"write",writeHint:"write Hint",writeId:"writeId",writeIdHint:"writeId Hint"},hmicomponents:{archiveTitle:"Hmi Components",editHmiComponent:"Edit HmiComponent",hmi:"hmi",hmiHint:"hmi Hint",hmiId:"hmiId",hmiIdHint:"hmiId Hint",icon:"icon",iconHint:"icon Hint",label:"label",labelHint:"label Hint",layoutMode:"layoutMode",layoutModeHint:"layoutMode Hint",newHmiComponent:"New HmiComponent",position:"position",positionHint:"position Hint",read:"read",readHint:"read Hint",readId:"readId",readIdHint:"readId Hint",states:"states",statesHint:"states Hint",type:"type",typeHint:"type Hint",write:"write",writeHint:"write Hint",writeId:"writeId",writeIdHint:"writeId Hint"},hmis:{archiveTitle:"Hmis",editHmi:"Edit Hmi",name:"Hmi Name",nameHint:"Name of the hmi to recognize",newHmi:"New Hmi"},home:{line1:"{username}، به dEIA خوش آمدید",line2:"ابزار ارزیابی اثرات زیست محیطی PixelPlux",title:"GADM"},intacodes:{description:"شرح فعالیت",descriptionHint:"شرح فعالیت در مورد این اینتاکد",editIntacode:"ویرایش اینتاکد",intacodeArchiveTitle:"اینتاکدها",margin:"حاشیه سود",marginHint:"میزان سودی که برای این نوع از اینتاکد در نظر گرفته شده است (درصد)",newIntacode:"اینتاکد جدید",note:"ملاحضات",noteHint:"نکات اضافی در مورد محاسبات این نوع اینتاکد",year:"سال",yearHint:"سالی که این اینتاکد برای آن معتبر است"},iot:{dataNodeDatum:"تاریخچه تغییرات",dataNodeName:"نام دیتانود",dataNodeNameHint:"نام ویژه این دیتانود که از بقیه دیتا ها متمایز شناخته شود",dataNodes:"دیتانود ها",editDataNode:"ویرایش دیتانود",ingestedAt:"ساخته شده",newDataNode:"دیتانود جدید",title:"هوشمند",valueFloat64:"مقدار اعشاری",valueInt64:"مقدار عددی",valueString:"مقدار متنی"},jalaliMonths:{0:"فروردین",1:"اردیبهشت",2:"خرداد",3:"تیر",4:"مرداد",5:"شهریور",6:"مهر",7:"آبان",8:"آذر",9:"دی",10:"بهمن",11:"اسفند"},jobsList:{completionDate:"تاریخ تکمیل",consumerId:"شناسه مصرف کننده",projectCode:"کد پروژه",projectName:"نام پروژه",result:"نتیجه",status:"وضعیت",submissionDate:"تاریخ ارسال"},katexPlugin:{body:"فرمول",cancel:"لغپ",insert:"افزودن",title:"پلاگین فرمول",toolbarName:"افزودن فرمول"},keyboardShortcut:{action:"عملکرد",defaultBinding:"کلید های پیش فرض",keyboardShortcut:"میانبرهای صفحه کلید",pressToDefine:"برای ثبت کلید ها را فشار دهید",userDefinedBinding:"کلید های تعیین شده کاربر"},lackOfPermission:"برای دسترسی به این بخش از نرم افزار به مجوزهای بیشتری نیاز دارید.",learningMenu:{answerSheets:"پاسخنامه",enrolledCourses:"دوره های ثبت نام شده",myClassRooms:"کلاس ها",myCourses:"دوره های آموزشی",myExams:"امتحانات",practiseBoard:"چرک نویس",title:"یادگیری"},licenses:{activationKeySeries:"سلسله",activationKeys:"کلیدهای فعال سازی",code:"Code",duration:"مدت زمان (روزها)",durationHint:"طول دوره فعال سازی برای مجوز یک آن فعال می شود",editActivationKey:"ویرایش کلید فعال سازی",editLicensableProduct:"ویرایش محصول دارای مجوز",editLicense:"ویرایش مجوز",editProductPlan:"ویرایش طرح محصول",endDate:"End Date",licensableProducts:"محصولات قابل مجوز",licenseName:"نام مجوز",licenseNameHint:"نام مجوز، می تواند ترکیبی از چیزهای مختلف باشد",licenses:"مجوزها",menuActivationKey:"کلیدهای فعال سازی",menuLicenses:"مجوزها",menuProductPlans:"طرح ها",menuProducts:"محصولات",newActivationKey:"کلید فعال سازی جدید",newLicensableProduct:"محصول جدید دارای مجوز",newLicense:"مجوز جدید",newProductPlan:"طرح محصول جدید",planName:"طرح",planNameHint:"کلید فعال سازی آن طرح خاص را انتخاب کنید",planProductName:"محصول پلان",planProductNameHint:"محصولی را که می خواهید این طرح برای آن باشد انتخاب کنید.",privateKey:"کلید خصوصی",privateKeyHint:"کلید خصوصی مجوز که برای صدور گواهی استفاده می شود",productName:"نام محصول",productNameHint:"نام محصول می تواند هر چیزی باشد که مشتریان آن را تشخیص دهند",productPlanName:"نام طرح",productPlanNameHint:"یک نام برای این طرح تعیین کنید، به عنوان مثال شروع کننده یا حرفه ای",productPlans:"طرح های محصول",publicKey:"کلید عمومی",publicKeyHint:"کلید عمومی مجوز که برای صدور گواهی استفاده می شود",series:"سلسله",seriesHint:"یک برچسب را به عنوان سری تنظیم کنید، به عنوان مثال first_1000_codes تا بتوانید تشخیص دهید که چه زمانی آنها را ایجاد کرده اید",startDate:"تاریخ شروع"},locale:{englishWorldwide:"انگلیسی (English)",persianIran:"فارسی - ایران (Persian WorldWide)",polishPoland:"لهستانی (Polski)"},loginButton:"وارد شدن",loginButtonOs:"ورود با سیستم عامل",mailProvider:{apiKey:"کلید ای پی ای",apiKeyHint:"کلید دسترسی به API در صورتی که مورد نیاز باشد.",fromEmailAddress:"از آدرس ایمیل",fromEmailAddressHint:"آدرسی که از آن ارسال می کنید، معمولاً باید در سرویس پستی ثبت شود",fromName:"از نام",fromNameHint:"نام فرستنده",nickName:"نام مستعار",nickNameHint:"نام مستعار فرستنده ایمیل، معمولاً فروشنده یا پشتیبانی مشتری",replyTo:"پاسخ دادن به",replyToHint:"آدرسی که گیرنده قرار است به آن پاسخ دهد. (noreply@domain) به عنوان مثال",senderAddress:"آدرس فرستنده",senderName:"نام فرستنده",type:"نوع سرویس",typeHint:"سرویس ایمیلی که توسط آن ایمیل ها ارسال میشوند"},menu:{answerSheets:"برگه های پاسخ",classRooms:"کلاس های درس",courses:"دوره های آموزشی",exams:"امتحانات",personal:"شخصی سازی کنید",questionBanks:"بانک سوالات",questions:"سوالات",quizzes:"آزمون ها",settings:"تنظیمات",title:"اقدامات",units:"واحدها"},meta:{titleAffix:"PixelPlux"},misc:{currencies:"ارز ها",currency:{editCurrency:"ویرایش ارز",name:"نام ارز",nameHint:"نام بازاری ارز که واحد آن نیز میباشد",newCurrency:"ارز جدید",symbol:"علامت یا سمبل",symbolHint:"کاراکتری که معمولا واحد پول را مشخص میکند. برخی واحد ها سمبل ندارند",symbolNative:"سمبل داخلی",symbolNativeHint:"سمبل یا علامتی از ارز که در کشور استفاده میشود"},title:"سرویس های مخلوط"},mockNotice:"شما در حال دیدن نسخه نمایشی هستید. این نسخه دارای بک اند نیست، اطلاعات شما ذخیره نمیشوند و هیچ گارانتی نسبت به کارکردن ماژول ها وجود ندارد.",myClassrooms:{availableClassrooms:"کلاس های درس موجود",noCoursesAvailable:"هیچ دوره ای در اینجا موجود نیست. ممکن است لازم باشد با حساب دیگری وارد شوید تا انحصاری را ببینید",title:"کلاس های درس من",youHaveNoClasses:"شما به هیچ کلاسی اضافه نمی شوید."},networkError:"شما به شبکه متصل نیستید، دریافت داده انجام نشد. اتصال شبکه خود را بررسی کنید",noOptions:"هیچ گزینه نیست، جستجو کنید",noPendingInvite:"شما هیچ دعوت نامه ای برای پیوستن به تیم های دیگری ندارید.",noSignupType:"ساختن اکانت در حال حاضر ممکن نیست، لطفا با مدیریت تماس بگیرید",node:{Oddeven:"زوج/فرد",average:"میانگین",circularInput:"گردی",color:"رنگ",containerLevelValue:"Container",cron:"کرون",delay:"تاخیری",digital:"دیجیتال",interpolate:"اینترپولیت",run:"اجرا",source:"مبدا",start:"شروع",stop:"توقف",switch:"دگمه",target:"مقصد",timer:"تایمر",value:"مقدار",valueGauge:"گیج"},not_found_404:"صفحه ای که به دنبال آن هستید وجود ندارد. ممکن است این قسمت در زبان فارسی موجود نباشد و یا حذف شده باشد.",notfound:"اطلاعات یا ماژول مورد نظر شما در این نسخه از سرور وجود ندارد.",pages:{catalog:"کاتالوگ",feedback:"بازخورد",jobs:"مشاغل من"},payments:{approve:"تایید",reject:"ریجکت"},priceTag:{add:"اضافه کردن قیمت",priceTag:"برچسب قیمتی",priceTagHint:"نوع قیمت گذاری با توجه منطقه یا نوع ارز"},question:{editQuestion:"سوال جدید",newQuestion:"سوال جدید"},questionBank:{editEntity:"بانک سوالات را ویرایش کنید",editQuestion:"ویرایش سوال",name:"نام بانک",newEntity:"بانک سوالات جدید",newQuestion:"سوال جدید",title:"عنوان بانک سوال",titleHint:'بانک سوالات را نام ببرید، مانند "504 سوال برای طراحی برق"'},questionSemester:{editQuestionSemester:"ویرایش دوره سوال",menu:"دوره های سوال",name:"نام دوره",nameHint:"نام دوره سوال معمولا با ماه آزمون یا سوال مرتبط است، مانند تیرماه یا نیم فصل اول",newQuestionSemester:"دوره جدید",questionSemesterArchiveTitle:"دوره های سوال"},questionlevels:{editQuestionLevel:"ویرایش سطح سوال",name:"سطح سوال",nameHint:"نامی که برای سطح سوال انتخاب میکنید، مانند (کشوری، استانی)",newQuestionLevel:"سطح سوال جدید",questionLevelArchiveTitle:"سطوح سوالات"},questions:{addAnswerHint:"برای اضافه کردن پاسخ کلیک کنید",addQuestion:"اضافه کردن سوال",answer:"پاسخ",answerHint:"یکی از پاسخ های سوال و یا تنها پاسخ",durationInSeconds:"زمان پاسخ (ثانیه)",durationInSecondsHint:"مدت زمانی که دانش آموز باید به این سوال پاسخ بدهد.",province:"استان",provinceHint:"استان یا استان هایی که این سوال به آن مربوط است",question:"سوال",questionBank:"بانک سوالات",questionBankHint:"بانک سوالاتی که این سوال به آن تعلق دارد",questionDifficulityLevel:"سطح دشواری",questionDifficulityLevelHint:"درجه سختی حل این سوال برای دانش آموز",questionLevel:"تیپ سوال",questionLevelHint:"سطح سوال به صورت کشوری یا استانی - منطقه ای",questionSchoolType:"نوع مدرسه",questionSchoolTypeHint:"نوع مدرسه ای که این سوالات در آن نشان داده شده اند.",questionSemester:"دوره سوال",questionSemesterHint:"مانند تیر یا دو نوبت کنکور",questionTitle:"صورت سوال",questionTitleHint:"صورت سوال همان چیزی است که باید به آن جواب داده شود.",questions:"سوالات",studyYear:"سال تحصیلی",studyYearHint:"سال تحصیلی که این سوال وارد شده است"},quiz:{editQuiz:"ویرایش مسابقه",name:"نام",newQuiz:"آزمون جدید"},reactiveSearch:{noResults:"جستجو هیچ نتیجه ای نداشت",placeholder:"جستجو (کلید S)..."},requestReset:"درخواست تنظیم مجدد",resume:{clientLocation:"مکان مشتری:",companyLocation:"مکان شرکت فعالیت:",jobCountry:"کشوری که کار در آن انجام شده:",keySkills:"توانایی های کلیدی",level:"سطح",level_1:"آشنایی",level_2:"متوسط",level_3:"کاربر روزمره",level_4:"حرفه ای",level_5:"معمار",noScreenMessage1:"به نسخه چاپی رزومه من خوش آمدید. برای ایجاد تغیرات و اطلاعات بیشتر حتما ادامه رزومه را در گیت هاب به آدرس",noScreenMessage2:"مشاهده کنید. در نسخه گیت هاب میتوانید اصل پروژه ها، ویدیو ها و حتی امکان دسته بندی یا تغییر در رزومه را داشته باشید",preferredPositions:"مشاغل و پروژ های مورد علاقه",products:"محصولات",projectDescription:"توضیحات پروژه",projects:"پروژه ها",services:"توانایی های مستقل",showDescription:"نمایش توضیحات پروژه",showTechnicalInfo:"نمایش اطلاعات فنی پروژه",skillDuration:"مدت مهارت",skillName:"عنوان مهارت",technicalDescription:"اطلاعات فنی",usage:"میزان استفاده",usage_1:"به صورت محدود",usage_2:"گاها",usage_3:"استفاده مرتب",usage_4:"استفاده پیشرفته",usage_5:"استفاده فوق حرفه ای",videos:"ویدیو ها",years:"سال"},role:{name:"نام",permissions:"دسترسی ها"},saveChanges:"ذخیره",scenariolanguages:{archiveTitle:"زبان های سناریو",editScenarioLanguage:"ویرایش زبان سناریو",name:"نام زبان",nameHint:"نام زبان یا ابزار طراحی سناریو",newScenarioLanguage:"ویرایش زبان سناریو"},scenariooperationtypes:{archiveTitle:"انواع عملیات",editScenarioOperationType:"ویرایش نوع عملیات",name:"نام عملیات",nameHint:"عنوانی که این عملیات با آن شناخته میشود",newScenarioOperationType:"عملیات جدید"},scenarios:{archiveTitle:"سناریو ها",editScenario:"ویرایش سناریو",lammerSequences:"دستورات لمر",lammerSequencesHint:"طراحی دستورالعمل مربوط به این سناریو در زبان لمر",name:"نام سناریو",nameHint:"نامی که این سناریو در سطح نرم افزار شناخته میشود",newScenario:"سناریو جدید",script:"کد سناریو",scriptHint:"کد سناریو که هنگام اجرای سناریو باید اجرا شود"},schooltypes:{editSchoolType:"ویرایش نوع مدرسه",menu:"انواع مدرسه",name:"نام مدرسه",nameHint:"نام مدرسه که عموما افراد آن را در سطح کشور میشناسند",newSchoolType:"نوع مدرسه جدید",schoolTypeTitle:"انواع مدارس"},searchplaceholder:"جستجو...",selectPlaceholder:"- انتخاب کنید -",settings:{apply:"ذخیره",inaccessibleRemote:"سرور خارج از دسترس است",interfaceLanguage:"زبان رابط",interfaceLanguageHint:"زبانی که دوست دارید رابط کاربری به شما نشان داده شود",preferredHand:"دست اصلی",preferredHandHint:"از کدام دست بیشتر برای استفاده از موبایل بهره میبرید؟",remoteAddress:"آدرس سرور",serverConnected:"سرور با موفقیت و صحت کار میکند و متصل هستیم",textEditorModule:"ماژول ویرایشگر متن",textEditorModuleHint:"شما می‌توانید بین ویرایشگرهای متنی مختلفی که ما ارائه می‌دهیم، یکی را انتخاب کنید و از ویرایشگرهایی که راحت‌تر هستید استفاده کنید",theme:"قالب",themeHint:"قالب و یا رنگ تم را انتخاب کنید"},signinInstead:"ورود",signup:{continueAs:"ادامه به عنوان {currentUser}",continueAsHint:`با وارد شدن به عنوان {currentUser}، تمام اطلاعات شما، به صورت آفلاین در رایانه شما، تحت مجوزهای این کاربر ذخیره می‌شود.`,defaultDescription:"برای ایجاد حساب کاربری لطفا فیلدهای زیر را پر کنید",mobileAuthentication:"In order to login with mobile",signupToWorkspace:"برای ثبت نام به عنوان {roleName}، فیلدهای زیر را پر کنید"},signupButton:"ثبت نام",simpleTextEditor:"باکس ساده سیستم برای متن",studentExams:{history:"سابقه امتحان",noExams:"هیچ امتحانی برای شرکت کردن وجود ندارد",noHistory:"شما هرگز در هیچ نوع امتحانی شرکت نکرده اید، وقتی امتحانی را انتخاب و مطالعه می کنید، در اینجا لیست می شود.",title:"امتحانات"},studentRooms:{title:"کلاس های درس من"},studyYears:{editStudyYear:"ویرایش سال تحصیلی",name:"نام",nameHint:"سال تحصیلی مدت زمان یه دوره مانند سال ۹۴-۹۵ است",newStudyYear:"سال تحصیلی جدید",studyYearArchiveTitle:"سالهای تحصیلی"},table:{created:"ساخته شده",filter:{contains:"شامل",endsWith:"پایان یابد",equal:"برابر",filterPlaceholder:"فیلتر...",greaterThan:"بزرگتر از",greaterThanOrEqual:"بزرگتر یا مساوری",lessThan:"کمتر از",lessThanOrEqual:"کمتر یا مساوی",notContains:"شامل نباشد",notEqual:"برابر نباشد",startsWith:"شروع با"},info:"داده",next:"بعدی",noRecords:"هیچ سابقه ای برای نمایش وجود ندارد. برای ایجاد یکی، دکمه مثبت را فشار دهید.",previous:"قبلی",uniqueId:"شناسه",value:"مقدار"},tempControlWidget:{decrese:"کاهش",increase:"افزایش"},tinymceeditor:"ویرایش گر TinyMCE",triggers:{archiveTitle:"شرط ها",editTrigger:"ویرایش شرط",name:"نام شرط",nameHint:"نامی که این شرط در سطح نرم افزار با آن شناخته میشود.",newTrigger:"شرط جدید",triggerType:"نوغ شرط",triggerTypeCronjob:"شرط زمانی (Cronjob)",triggerTypeCronjobHint:"تعریف شرط بر اساس رخداد های زمانی",triggerTypeGpioValue:"شرط تغییر مقدار",triggerTypeGpioValueHint:"شرط بر اساس تغییر مقدار خروجی یا ورودی",triggerTypeHint:"نوغ شرط",triggerTypeId:"نوع شرط",triggerTypeIdHint:"نوع شرط تعیین کننده نحوه استفاده از این شرط است"},triggertypes:{archiveTitle:"نوع شرط",editTriggerType:"ویرایش نوع شرط",name:"نام نوع شرط",nameHint:"نامی که این نوع شرط با آن شناخته میشود",newTriggerType:"ویرایش نوع شرط"},tuyaDevices:{cloudProjectId:"شناسه پروژه ابری",name:"نام دستگاه Tuya"},unit:{editUnit:"ویرایش واحد",newUnit:"واحد جدید",title:"عنوان"},units:{content:"محتویات",editUnit:"واحد ویرایش",newUnit:"واحد جدید",parentId:"واحد مادر",subUnits:"زیر واحد ها"},unnamedRole:"نقش نامعلوم",unnamedWorkspace:"فضای کاری بی نام",user:{editUser:"ویرایش کاربر",newUser:"کاربر جدید"},users:{firstName:"نام کوچک",lastName:"نام خانوادگی"},webrtcconfig:"پیکربندی WebRTC",widgetPicker:{instructions:"کلید های فلش را از روی کیبرد برای جا به جایی فشار دهید. ",instructionsFlat:`Press Arrows from keyboard to change slide
Press Ctrl + Arrows from keyboard to switch to - flat mode`,widgets:"ویدجت ها"},widgets:{noItems:"هیچ ویدجتی در این صفحه وجود ندارد."},wokspaces:{body:"بدن",cascadeNotificationConfig:"پیکربندی اعلان آبشار در فضاهای کاری فرعی",cascadeNotificationConfigHint:"با بررسی این مورد، تمام فضاهای کاری بعدی از این ارائه دهنده ایمیل برای ارسال ایمیل استفاده خواهند کرد. برای محصولاتی که به‌عنوان سرویس آنلاین اجرا می‌شوند، معمولاً می‌خواهید که فضای کاری والد سرور ایمیل را پیکربندی کند. شما ممکن است علامت این را در محصولات بزرگ‌تر که به صورت جهانی اجرا می‌شوند، بردارید و هر فضای کاری باید فضاهای فرعی و پیکربندی ایمیل خود را داشته باشد.",config:"تنظیم تیم",configurateWorkspaceNotification:"سرویس های اطلاع رسانی را پیکربندی کنید",confirmEmailSender:"ثبت نام کاربر ایمیل حساب را تایید کنید",createNewWorkspace:"فضای کاری جدید",customizedTemplate:"ویرایش قالب",disablePublicSignup:"غیر فعال کردن ثبت نام ها",disablePublicSignupHint:"با انتخاب این گزینه هیچ کس نمی تواند به این تیم یا زیر مجموعه های این تیم با فرم ثبت نام آنلاین به صورت خودکار عضو شود.",editWorkspae:"ویرایش فضای کاری",emailSendingConfig:"تنظیمات ارسال ایمیل",emailSendingConfigHint:"نحوه ارسال ایمیل ها و قالب های آنها و ارسال کننده ها را کنترل کنید.",emailSendingConfiguration:"پیکربندی ارسال ایمیل",emailSendingConfigurationHint:"نحوه ارسال ایمیل های سیستمی را کنترل کنید، پیام را سفارشی کنید و غیره.",forceEmailConfigToSubWorkspaces:"استفاده از این تنظیمات برای تیم های زیر مجموعه اجباری باشد",forceEmailConfigToSubWorkspacesHint:"با انتخاب این گزینه، همه تیم های زیر مجموعه باید از همین قالب ها برای ارسال ایمیل استفاده کنند. اطلاعات مختص به این تیم را در این قالب ها قرار ندهید.",forceSubWorkspaceUseConfig:"فضاهای کاری فرعی را مجبور کنید از این پیکربندی ارائه دهنده استفاده کنند",forgetPasswordSender:"دستورالعمل های رمز عبور را فراموش کنید",generalMailProvider:"سرویس اصلی ارسال ایمیل",invite:{createInvitation:"ایجاد دعوت نامه",editInvitation:"ویرایش دعوت نامه",email:"آدرس ایمیل",emailHint:"آدرس ایمیل دعوت کننده، آنها پیوند را با استفاده از این ایمیل دریافت خواهند کرد",firstName:"نام کوچک",firstNameHint:"نام دعوت شده را بنویسید",forcePassport:"کاربر را مجبور کنید فقط با ایمیل یا شماره تلفن تعریف شده ثبت نام کند یا بپیوندد",lastName:"نام خانوادگی",lastNameHint:"نام خانوادگی دعوت شده را بنویسید",name:"نام",phoneNumber:"شماره تلفن",phoneNumberHint:"شماره تلفن دعوت شوندگان، اگر شماره آنها را نیز ارائه دهید، از طریق پیامک دعوتنامه دریافت خواهند کرد",role:"نقش",roleHint:"نقش(هایی) را که می خواهید به کاربر هنگام پیوستن به فضای کاری بدهید، انتخاب کنید. این را می توان بعدا نیز تغییر داد.",roleName:"نام نقش"},inviteToWorkspace:"دعوت به فضای کاری",joinKeyWorkspace:"فضای کار",joinKeyWorkspaceHint:"فضای کاری که برای عموم در دسترس خواهد بود",mailServerConfiguration:"پیکربندی سرور ایمیل",name:"نام",notification:{dialogTitle:"قالب نامه را ویرایش کنید"},publicSignup:"ثبت نام آنلاین و عمومی",publicSignupHint:"این نرم افزار به شما اجازه کنترل نحوه ارسال ایمیل و پیامک، و همچنین نحوه عضو گیری آنلاین را میدهد. در این قسمت میتوانید عضو شدن افراد و ساختن تیم های جدید را کنترل کنید",resetToDefault:"تنظیم مجدد به حالت پیش فرض",role:"نقش",roleHint:"نقش",sender:"فرستنده",sidetitle:"فضاهای کاری",slug:"اسلاگ",title:"عنوان",type:"تایپ کنید",workspaceName:"نام فضای کاری",workspaceNameHint:"نام فضای کاری را وارد کنید",workspaceTypeSlug:"آدرس اسلاگ",workspaceTypeSlugHint:"آدرسی که به صورت عمومی در دسترس خواهد بود و وقتی کسی از این طریق ثبت نام کند رول مشخصی دریافت میکند.",workspaceTypeTitle:"عنوان",workspaceTypeTitleHint:"عنوان ورک اسپیس"}},dU={en:RX,fa:qse};function At(){const{locale:e}=sr();return!e||!dU[e]?RX:dU[e]}var rS={exports:{}};/** + flat mode`,widgets:"ویدجت ها"},widgets:{noItems:"هیچ ویدجتی در این صفحه وجود ندارد."},wokspaces:{body:"بدن",cascadeNotificationConfig:"پیکربندی اعلان آبشار در فضاهای کاری فرعی",cascadeNotificationConfigHint:"با بررسی این مورد، تمام فضاهای کاری بعدی از این ارائه دهنده ایمیل برای ارسال ایمیل استفاده خواهند کرد. برای محصولاتی که به‌عنوان سرویس آنلاین اجرا می‌شوند، معمولاً می‌خواهید که فضای کاری والد سرور ایمیل را پیکربندی کند. شما ممکن است علامت این را در محصولات بزرگ‌تر که به صورت جهانی اجرا می‌شوند، بردارید و هر فضای کاری باید فضاهای فرعی و پیکربندی ایمیل خود را داشته باشد.",config:"تنظیم تیم",configurateWorkspaceNotification:"سرویس های اطلاع رسانی را پیکربندی کنید",confirmEmailSender:"ثبت نام کاربر ایمیل حساب را تایید کنید",createNewWorkspace:"فضای کاری جدید",customizedTemplate:"ویرایش قالب",disablePublicSignup:"غیر فعال کردن ثبت نام ها",disablePublicSignupHint:"با انتخاب این گزینه هیچ کس نمی تواند به این تیم یا زیر مجموعه های این تیم با فرم ثبت نام آنلاین به صورت خودکار عضو شود.",editWorkspae:"ویرایش فضای کاری",emailSendingConfig:"تنظیمات ارسال ایمیل",emailSendingConfigHint:"نحوه ارسال ایمیل ها و قالب های آنها و ارسال کننده ها را کنترل کنید.",emailSendingConfiguration:"پیکربندی ارسال ایمیل",emailSendingConfigurationHint:"نحوه ارسال ایمیل های سیستمی را کنترل کنید، پیام را سفارشی کنید و غیره.",forceEmailConfigToSubWorkspaces:"استفاده از این تنظیمات برای تیم های زیر مجموعه اجباری باشد",forceEmailConfigToSubWorkspacesHint:"با انتخاب این گزینه، همه تیم های زیر مجموعه باید از همین قالب ها برای ارسال ایمیل استفاده کنند. اطلاعات مختص به این تیم را در این قالب ها قرار ندهید.",forceSubWorkspaceUseConfig:"فضاهای کاری فرعی را مجبور کنید از این پیکربندی ارائه دهنده استفاده کنند",forgetPasswordSender:"دستورالعمل های رمز عبور را فراموش کنید",generalMailProvider:"سرویس اصلی ارسال ایمیل",invite:{createInvitation:"ایجاد دعوت نامه",editInvitation:"ویرایش دعوت نامه",email:"آدرس ایمیل",emailHint:"آدرس ایمیل دعوت کننده، آنها پیوند را با استفاده از این ایمیل دریافت خواهند کرد",firstName:"نام کوچک",firstNameHint:"نام دعوت شده را بنویسید",forcePassport:"کاربر را مجبور کنید فقط با ایمیل یا شماره تلفن تعریف شده ثبت نام کند یا بپیوندد",lastName:"نام خانوادگی",lastNameHint:"نام خانوادگی دعوت شده را بنویسید",name:"نام",phoneNumber:"شماره تلفن",phoneNumberHint:"شماره تلفن دعوت شوندگان، اگر شماره آنها را نیز ارائه دهید، از طریق پیامک دعوتنامه دریافت خواهند کرد",role:"نقش",roleHint:"نقش(هایی) را که می خواهید به کاربر هنگام پیوستن به فضای کاری بدهید، انتخاب کنید. این را می توان بعدا نیز تغییر داد.",roleName:"نام نقش"},inviteToWorkspace:"دعوت به فضای کاری",joinKeyWorkspace:"فضای کار",joinKeyWorkspaceHint:"فضای کاری که برای عموم در دسترس خواهد بود",mailServerConfiguration:"پیکربندی سرور ایمیل",name:"نام",notification:{dialogTitle:"قالب نامه را ویرایش کنید"},publicSignup:"ثبت نام آنلاین و عمومی",publicSignupHint:"این نرم افزار به شما اجازه کنترل نحوه ارسال ایمیل و پیامک، و همچنین نحوه عضو گیری آنلاین را میدهد. در این قسمت میتوانید عضو شدن افراد و ساختن تیم های جدید را کنترل کنید",resetToDefault:"تنظیم مجدد به حالت پیش فرض",role:"نقش",roleHint:"نقش",sender:"فرستنده",sidetitle:"فضاهای کاری",slug:"اسلاگ",title:"عنوان",type:"تایپ کنید",workspaceName:"نام فضای کاری",workspaceNameHint:"نام فضای کاری را وارد کنید",workspaceTypeSlug:"آدرس اسلاگ",workspaceTypeSlugHint:"آدرسی که به صورت عمومی در دسترس خواهد بود و وقتی کسی از این طریق ثبت نام کند رول مشخصی دریافت میکند.",workspaceTypeTitle:"عنوان",workspaceTypeTitleHint:"عنوان ورک اسپیس"}},CU={en:WX,fa:rle};function At(){const{locale:e}=sr();return!e||!CU[e]?WX:CU[e]}var pS={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */var Hse=rS.exports,fU;function Vse(){return fU||(fU=1,(function(e,t){(function(){var n,r="4.17.21",a=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",g=1,y=2,h=4,v=1,E=2,T=1,C=2,k=4,_=8,A=16,P=32,N=64,I=128,L=256,j=512,z=30,Q="...",le=800,re=16,ge=1,me=2,W=3,G=1/0,q=9007199254740991,ce=17976931348623157e292,H=NaN,Y=4294967295,ie=Y-1,J=Y>>>1,ee=[["ary",I],["bind",T],["bindKey",C],["curry",_],["curryRight",A],["flip",j],["partial",P],["partialRight",N],["rearg",L]],Z="[object Arguments]",ue="[object Array]",ke="[object AsyncFunction]",fe="[object Boolean]",xe="[object Date]",Ie="[object DOMException]",qe="[object Error]",tt="[object Function]",Ge="[object GeneratorFunction]",at="[object Map]",Et="[object Number]",kt="[object Null]",xt="[object Object]",Rt="[object Promise]",cn="[object Proxy]",qt="[object RegExp]",Wt="[object Set]",Oe="[object String]",dt="[object Symbol]",ft="[object Undefined]",ut="[object WeakMap]",Nt="[object WeakSet]",U="[object ArrayBuffer]",D="[object DataView]",F="[object Float32Array]",ae="[object Float64Array]",Te="[object Int8Array]",Fe="[object Int16Array]",We="[object Int32Array]",Tt="[object Uint8Array]",Mt="[object Uint8ClampedArray]",be="[object Uint16Array]",Ee="[object Uint32Array]",gt=/\b__p \+= '';/g,Lt=/\b(__p \+=) '' \+/g,_t=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ut=/&(?:amp|lt|gt|quot|#39);/g,On=/[&<>"']/g,gn=RegExp(Ut.source),ln=RegExp(On.source),Bn=/<%-([\s\S]+?)%>/g,oa=/<%([\s\S]+?)%>/g,Qa=/<%=([\s\S]+?)%>/g,ha=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vn=/^\w*$/,_a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bo=/[\\^$.*+?()[\]{}|]/g,Oa=RegExp(Bo.source),Ra=/^\s+/,Wo=/\s/,we=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ve=/\{\n\/\* \[wrapped with (.+)\] \*/,$e=/,? & /,ye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Se=/[()=,{}\[\]\/\s]/,ne=/\\(\\)?/g,Me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qe=/\w*$/,ot=/^[-+]0x[0-9a-f]+$/i,Bt=/^0b[01]+$/i,yn=/^\[object .+?Constructor\]$/,an=/^0o[0-7]+$/i,Dn=/^(?:0|[1-9]\d*)$/,En=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Rr=/($^)/,Pr=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",qs="\\u0300-\\u036f",Gv="\\ufe20-\\ufe2f",$l="\\u20d0-\\u20ff",so=qs+Gv+$l,oi="\\u2700-\\u27bf",of="a-z\\xdf-\\xf6\\xf8-\\xff",Yv="\\xac\\xb1\\xd7\\xf7",Ph="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",x0="\\u2000-\\u206f",Dc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qi="A-Z\\xc0-\\xd6\\xd8-\\xde",zo="\\ufe0e\\ufe0f",Si=Yv+Ph+x0+Dc,sf="['’]",Au="["+lr+"]",Hs="["+Si+"]",Vs="["+so+"]",$c="\\d+",_0="["+oi+"]",Ei="["+of+"]",lf="[^"+lr+Si+$c+oi+of+qi+"]",uf="\\ud83c[\\udffb-\\udfff]",Ah="(?:"+Vs+"|"+uf+")",Ll="[^"+lr+"]",cf="(?:\\ud83c[\\udde6-\\uddff]){2}",df="[\\ud800-\\udbff][\\udc00-\\udfff]",lo="["+qi+"]",ff="\\u200d",pf="(?:"+Ei+"|"+lf+")",hf="(?:"+lo+"|"+lf+")",Nu="(?:"+sf+"(?:d|ll|m|re|s|t|ve))?",Kv="(?:"+sf+"(?:D|LL|M|RE|S|T|VE))?",Nh=Ah+"?",Lc="["+zo+"]?",Mh="(?:"+ff+"(?:"+[Ll,cf,df].join("|")+")"+Lc+Nh+")*",Mu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jl=Lc+Nh+Mh,Xv="(?:"+[_0,cf,df].join("|")+")"+jl,Ih="(?:"+[Ll+Vs+"?",Vs,cf,df,Au].join("|")+")",Dh=RegExp(sf,"g"),uo=RegExp(Vs,"g"),Ul=RegExp(uf+"(?="+uf+")|"+Ih+jl,"g"),Fc=RegExp([lo+"?"+Ei+"+"+Nu+"(?="+[Hs,lo,"$"].join("|")+")",hf+"+"+Kv+"(?="+[Hs,lo+pf,"$"].join("|")+")",lo+"?"+pf+"+"+Nu,lo+"+"+Kv,Fl,Mu,$c,Xv].join("|"),"g"),us=RegExp("["+ff+lr+so+zo+"]"),Iu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Qv=-1,ar={};ar[F]=ar[ae]=ar[Te]=ar[Fe]=ar[We]=ar[Tt]=ar[Mt]=ar[be]=ar[Ee]=!0,ar[Z]=ar[ue]=ar[U]=ar[fe]=ar[D]=ar[xe]=ar[qe]=ar[tt]=ar[at]=ar[Et]=ar[xt]=ar[qt]=ar[Wt]=ar[Oe]=ar[ut]=!1;var ir={};ir[Z]=ir[ue]=ir[U]=ir[D]=ir[fe]=ir[xe]=ir[F]=ir[ae]=ir[Te]=ir[Fe]=ir[We]=ir[at]=ir[Et]=ir[xt]=ir[qt]=ir[Wt]=ir[Oe]=ir[dt]=ir[Tt]=ir[Mt]=ir[be]=ir[Ee]=!0,ir[qe]=ir[tt]=ir[ut]=!1;var Jv={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},si={"&":"&","<":"<",">":">",'"':""","'":"'"},co={"&":"&","<":"<",">":">",""":'"',"'":"'"},mf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ys=parseFloat,$h=parseInt,rt=typeof El=="object"&&El&&El.Object===Object&&El,pt=typeof self=="object"&&self&&self.Object===Object&&self,bt=rt||pt||Function("return this")(),zt=t&&!t.nodeType&&t,Sn=zt&&!0&&e&&!e.nodeType&&e,ur=Sn&&Sn.exports===zt,Ar=ur&&rt.process,Jn=(function(){try{var Ae=Sn&&Sn.require&&Sn.require("util").types;return Ae||Ar&&Ar.binding&&Ar.binding("util")}catch{}})(),Pa=Jn&&Jn.isArrayBuffer,Ja=Jn&&Jn.isDate,Bl=Jn&&Jn.isMap,Zv=Jn&&Jn.isRegExp,gf=Jn&&Jn.isSet,vf=Jn&&Jn.isTypedArray;function li(Ae,He,Be){switch(Be.length){case 0:return Ae.call(He);case 1:return Ae.call(He,Be[0]);case 2:return Ae.call(He,Be[0],Be[1]);case 3:return Ae.call(He,Be[0],Be[1],Be[2])}return Ae.apply(He,Be)}function uO(Ae,He,Be,It){for(var on=-1,Wn=Ae==null?0:Ae.length;++on-1}function O0(Ae,He,Be){for(var It=-1,on=Ae==null?0:Ae.length;++It-1;);return Be}function Ef(Ae,He){for(var Be=Ae.length;Be--&&yf(He,Ae[Be],0)>-1;);return Be}function gO(Ae,He){for(var Be=Ae.length,It=0;Be--;)Ae[Be]===He&&++It;return It}var oy=ry(Jv),aT=ry(si);function iT(Ae){return"\\"+mf[Ae]}function M0(Ae,He){return Ae==null?n:Ae[He]}function $u(Ae){return us.test(Ae)}function oT(Ae){return Iu.test(Ae)}function sT(Ae){for(var He,Be=[];!(He=Ae.next()).done;)Be.push(He.value);return Be}function sy(Ae){var He=-1,Be=Array(Ae.size);return Ae.forEach(function(It,on){Be[++He]=[on,It]}),Be}function lT(Ae,He){return function(Be){return Ae(He(Be))}}function Lu(Ae,He){for(var Be=-1,It=Ae.length,on=0,Wn=[];++Be-1}function EO(m,b){var O=this.__data__,$=Yc(O,m);return $<0?(++this.size,O.push([m,b])):O[$][1]=b,this}rl.prototype.clear=Bu,rl.prototype.delete=Xl,rl.prototype.get=Aa,rl.prototype.has=gy,rl.prototype.set=EO;function Ql(m){var b=-1,O=m==null?0:m.length;for(this.clear();++b=b?m:b)),m}function er(m,b,O,$,V,te){var pe,Ce=b&g,De=b&y,Je=b&h;if(O&&(pe=V?O(m,$,V,te):O(m)),pe!==n)return pe;if(!jr(m))return m;var et=bn(m);if(et){if(pe=Zc(m),!Ce)return xi(m,pe)}else{var ct=ga(m),Ct=ct==tt||ct==Ge;if(ac(m))return uw(m,Ce);if(ct==xt||ct==Z||Ct&&!V){if(pe=De||Ct?{}:Gi(m),!Ce)return De?em(m,vy(pe,m)):$T(m,zu(pe,m))}else{if(!ir[ct])return V?m:{};pe=FT(m,ct,Ce)}}te||(te=new ps);var Vt=te.get(m);if(Vt)return Vt;te.set(m,pe),fl(m)?m.forEach(function(fn){pe.add(er(fn,b,O,fn,m,te))}):EC(m)&&m.forEach(function(fn,Hn){pe.set(Hn,er(fn,b,O,Hn,m,te))});var dn=Je?De?rm:sl:De?Ri:Ia,Ln=et?n:dn(m);return qo(Ln||m,function(fn,Hn){Ln&&(Hn=fn,fn=m[Hn]),Lr(pe,Hn,er(fn,b,O,Hn,m,te))}),pe}function H0(m){var b=Ia(m);return function(O){return yy(O,m,b)}}function yy(m,b,O){var $=O.length;if(m==null)return!$;for(m=Er(m);$--;){var V=O[$],te=b[V],pe=m[V];if(pe===n&&!(V in m)||!te(pe))return!1}return!0}function V0(m,b,O){if(typeof m!="function")throw new ho(o);return di(function(){m.apply(n,O)},b)}function Pf(m,b,O,$){var V=-1,te=ey,pe=!0,Ce=m.length,De=[],Je=b.length;if(!Ce)return De;O&&(b=$r(b,fo(O))),$?(te=O0,pe=!1):b.length>=a&&(te=wf,pe=!1,b=new Jl(b));e:for(;++VV?0:V+O),$=$===n||$>V?V:xn($),$<0&&($+=V),$=O>$?0:o1($);O<$;)m[O++]=b;return m}function la(m,b){var O=[];return Hu(m,function($,V,te){b($,V,te)&&O.push($)}),O}function ma(m,b,O,$,V){var te=-1,pe=m.length;for(O||(O=UT),V||(V=[]);++te0&&O(Ce)?b>1?ma(Ce,b-1,O,$,V):Wl(V,Ce):$||(V[V.length]=Ce)}return V}var Xc=hw(),Vh=hw(!0);function Jo(m,b){return m&&Xc(m,b,Ia)}function hs(m,b){return m&&Vh(m,b,Ia)}function Qc(m,b){return Ks(b,function(O){return uu(m[O])})}function Zl(m,b){b=tu(b,m);for(var O=0,$=b.length;m!=null&&O<$;)m=m[_i(b[O++])];return O&&O==$?m:n}function wy(m,b,O){var $=b(m);return bn(m)?$:Wl($,O(m))}function ui(m){return m==null?m===n?ft:kt:Zs&&Zs in Er(m)?om(m):bo(m)}function Sy(m,b){return m>b}function wT(m,b){return m!=null&&cr.call(m,b)}function ST(m,b){return m!=null&&b in Er(m)}function ET(m,b,O){return m>=pn(b,O)&&m=120&&et.length>=120)?new Jl(pe&&et):n}et=m[0];var ct=-1,Ct=Ce[0];e:for(;++ct-1;)Ce!==m&&Ci.call(Ce,De,1),Ci.call(m,De,1);return m}function rw(m,b){for(var O=m?b.length:0,$=O-1;O--;){var V=b[O];if(O==$||V!==te){var te=V;Ss(V)?Ci.call(m,V,1):al(m,V)}}return m}function ky(m,b){return m+Xo(fy()*(b-m+1))}function xO(m,b,O,$){for(var V=-1,te=zn(Ko((b-m)/(O||1)),0),pe=Be(te);te--;)pe[$?te:++V]=m,m+=O;return pe}function Xh(m,b){var O="";if(!m||b<1||b>q)return O;do b%2&&(O+=m),b=Xo(b/2),b&&(m+=m);while(b);return O}function Rn(m,b){return wo(ll(m,b,or),m+"")}function NT(m){return q0(xo(m))}function aw(m,b){var O=xo(m);return sm(O,Kc(b,0,O.length))}function Df(m,b,O,$){if(!jr(m))return m;b=tu(b,m);for(var V=-1,te=b.length,pe=te-1,Ce=m;Ce!=null&&++VV?0:V+b),O=O>V?V:O,O<0&&(O+=V),V=b>O?0:O-b>>>0,b>>>=0;for(var te=Be(V);++$>>1,pe=m[te];pe!==null&&!ko(pe)&&(O?pe<=b:pe=a){var Je=b?null:Xu(m);if(Je)return ly(Je);pe=!1,V=wf,De=new Jl}else De=b?[]:Ce;e:for(;++$=$?m:vo(m,b,O)}var Jh=Go||function(m){return bt.clearTimeout(m)};function uw(m,b){if(b)return m.slice();var O=m.length,$=L0?L0(O):new m.constructor(O);return m.copy($),$}function Zh(m){var b=new m.constructor(m.byteLength);return new ds(b).set(new ds(m)),b}function IT(m,b){var O=b?Zh(m.buffer):m.buffer;return new m.constructor(O,m.byteOffset,m.byteLength)}function DT(m){var b=new m.constructor(m.source,Qe.exec(m));return b.lastIndex=m.lastIndex,b}function RO(m){return Yl?Er(Yl.call(m)):{}}function cw(m,b){var O=b?Zh(m.buffer):m.buffer;return new m.constructor(O,m.byteOffset,m.length)}function Ma(m,b){if(m!==b){var O=m!==n,$=m===null,V=m===m,te=ko(m),pe=b!==n,Ce=b===null,De=b===b,Je=ko(b);if(!Ce&&!Je&&!te&&m>b||te&&pe&&De&&!Ce&&!Je||$&&pe&&De||!O&&De||!V)return 1;if(!$&&!te&&!Je&&m=Ce)return De;var Je=O[$];return De*(Je=="desc"?-1:1)}}return m.index-b.index}function dw(m,b,O,$){for(var V=-1,te=m.length,pe=O.length,Ce=-1,De=b.length,Je=zn(te-pe,0),et=Be(De+Je),ct=!$;++Ce1?O[V-1]:n,pe=V>2?O[2]:n;for(te=m.length>3&&typeof te=="function"?(V--,te):n,pe&&ei(O[0],O[1],pe)&&(te=V<3?n:te,V=1),b=Er(b);++$-1?V[te?b[pe]:pe]:n}}function Py(m){return ol(function(b){var O=b.length,$=O,V=mo.prototype.thru;for(m&&b.reverse();$--;){var te=b[$];if(typeof te!="function")throw new ho(o);if(V&&!pe&&bs(te)=="wrapper")var pe=new mo([],!0)}for($=pe?$:O;++$1&&Zn.reverse(),et&&DeCe))return!1;var Je=te.get(m),et=te.get(b);if(Je&&et)return Je==b&&et==m;var ct=-1,Ct=!0,Vt=O&E?new Jl:n;for(te.set(m,b),te.set(b,m);++ct1?"& ":"")+b[$],b=b.join(O>2?", ":" "),m.replace(we,`{ + */var ale=pS.exports,kU;function ile(){return kU||(kU=1,(function(e,t){(function(){var n,r="4.17.21",a=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",g=1,y=2,h=4,v=1,E=2,T=1,C=2,k=4,_=8,A=16,P=32,N=64,I=128,L=256,j=512,z=30,Q="...",le=800,re=16,ge=1,me=2,W=3,G=1/0,q=9007199254740991,ce=17976931348623157e292,H=NaN,Y=4294967295,ie=Y-1,J=Y>>>1,ee=[["ary",I],["bind",T],["bindKey",C],["curry",_],["curryRight",A],["flip",j],["partial",P],["partialRight",N],["rearg",L]],Z="[object Arguments]",ue="[object Array]",ke="[object AsyncFunction]",fe="[object Boolean]",xe="[object Date]",Ie="[object DOMException]",qe="[object Error]",tt="[object Function]",Ge="[object GeneratorFunction]",at="[object Map]",Et="[object Number]",kt="[object Null]",xt="[object Object]",Rt="[object Promise]",cn="[object Proxy]",qt="[object RegExp]",Wt="[object Set]",Oe="[object String]",dt="[object Symbol]",ft="[object Undefined]",ut="[object WeakMap]",Nt="[object WeakSet]",U="[object ArrayBuffer]",D="[object DataView]",F="[object Float32Array]",ae="[object Float64Array]",Te="[object Int8Array]",Fe="[object Int16Array]",We="[object Int32Array]",Tt="[object Uint8Array]",Mt="[object Uint8ClampedArray]",be="[object Uint16Array]",Ee="[object Uint32Array]",gt=/\b__p \+= '';/g,Lt=/\b(__p \+=) '' \+/g,_t=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ut=/&(?:amp|lt|gt|quot|#39);/g,_n=/[&<>"']/g,gn=RegExp(Ut.source),ln=RegExp(_n.source),Bn=/<%-([\s\S]+?)%>/g,sa=/<%([\s\S]+?)%>/g,Qa=/<%=([\s\S]+?)%>/g,ma=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vn=/^\w*$/,_a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wo=/[\\^$.*+?()[\]{}|]/g,Oa=RegExp(Wo.source),Ra=/^\s+/,zo=/\s/,we=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ve=/\{\n\/\* \[wrapped with (.+)\] \*/,$e=/,? & /,ye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Se=/[()=,{}\[\]\/\s]/,ne=/\\(\\)?/g,Me=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qe=/\w*$/,ot=/^[-+]0x[0-9a-f]+$/i,Bt=/^0b[01]+$/i,yn=/^\[object .+?Constructor\]$/,an=/^0o[0-7]+$/i,Dn=/^(?:0|[1-9]\d*)$/,En=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Rr=/($^)/,Pr=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",Ks="\\u0300-\\u036f",ty="\\ufe20-\\ufe2f",Ll="\\u20d0-\\u20ff",lo=Ks+ty+Ll,oi="\\u2700-\\u27bf",uf="a-z\\xdf-\\xf6\\xf8-\\xff",ny="\\xac\\xb1\\xd7\\xf7",Mh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",D0="\\u2000-\\u206f",$c=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Hi="A-Z\\xc0-\\xd6\\xd8-\\xde",qo="\\ufe0e\\ufe0f",Si=ny+Mh+D0+$c,cf="['’]",Nu="["+lr+"]",Xs="["+Si+"]",Qs="["+lo+"]",Lc="\\d+",$0="["+oi+"]",Ei="["+uf+"]",df="[^"+lr+Si+Lc+oi+uf+Hi+"]",ff="\\ud83c[\\udffb-\\udfff]",Ih="(?:"+Qs+"|"+ff+")",Fl="[^"+lr+"]",pf="(?:\\ud83c[\\udde6-\\uddff]){2}",hf="[\\ud800-\\udbff][\\udc00-\\udfff]",uo="["+Hi+"]",mf="\\u200d",gf="(?:"+Ei+"|"+df+")",vf="(?:"+uo+"|"+df+")",Mu="(?:"+cf+"(?:d|ll|m|re|s|t|ve))?",ry="(?:"+cf+"(?:D|LL|M|RE|S|T|VE))?",Dh=Ih+"?",Fc="["+qo+"]?",$h="(?:"+mf+"(?:"+[Fl,pf,hf].join("|")+")"+Fc+Dh+")*",Iu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ul=Fc+Dh+$h,ay="(?:"+[$0,pf,hf].join("|")+")"+Ul,Lh="(?:"+[Fl+Qs+"?",Qs,pf,hf,Nu].join("|")+")",Fh=RegExp(cf,"g"),co=RegExp(Qs,"g"),Bl=RegExp(ff+"(?="+ff+")|"+Lh+Ul,"g"),jc=RegExp([uo+"?"+Ei+"+"+Mu+"(?="+[Xs,uo,"$"].join("|")+")",vf+"+"+ry+"(?="+[Xs,uo+gf,"$"].join("|")+")",uo+"?"+gf+"+"+Mu,uo+"+"+ry,jl,Iu,Lc,ay].join("|"),"g"),ds=RegExp("["+mf+lr+lo+qo+"]"),Du=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Js=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],iy=-1,ar={};ar[F]=ar[ae]=ar[Te]=ar[Fe]=ar[We]=ar[Tt]=ar[Mt]=ar[be]=ar[Ee]=!0,ar[Z]=ar[ue]=ar[U]=ar[fe]=ar[D]=ar[xe]=ar[qe]=ar[tt]=ar[at]=ar[Et]=ar[xt]=ar[qt]=ar[Wt]=ar[Oe]=ar[ut]=!1;var ir={};ir[Z]=ir[ue]=ir[U]=ir[D]=ir[fe]=ir[xe]=ir[F]=ir[ae]=ir[Te]=ir[Fe]=ir[We]=ir[at]=ir[Et]=ir[xt]=ir[qt]=ir[Wt]=ir[Oe]=ir[dt]=ir[Tt]=ir[Mt]=ir[be]=ir[Ee]=!0,ir[qe]=ir[tt]=ir[ut]=!1;var oy={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},si={"&":"&","<":"<",">":">",'"':""","'":"'"},fo={"&":"&","<":"<",">":">",""":'"',"'":"'"},yf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Zs=parseFloat,jh=parseInt,nt=typeof _l=="object"&&_l&&_l.Object===Object&&_l,pt=typeof self=="object"&&self&&self.Object===Object&&self,bt=nt||pt||Function("return this")(),zt=t&&!t.nodeType&&t,Sn=zt&&!0&&e&&!e.nodeType&&e,ur=Sn&&Sn.exports===zt,Ar=ur&&nt.process,Jn=(function(){try{var Ae=Sn&&Sn.require&&Sn.require("util").types;return Ae||Ar&&Ar.binding&&Ar.binding("util")}catch{}})(),Pa=Jn&&Jn.isArrayBuffer,Ja=Jn&&Jn.isDate,Wl=Jn&&Jn.isMap,sy=Jn&&Jn.isRegExp,bf=Jn&&Jn.isSet,wf=Jn&&Jn.isTypedArray;function li(Ae,He,Be){switch(Be.length){case 0:return Ae.call(He);case 1:return Ae.call(He,Be[0]);case 2:return Ae.call(He,Be[0],Be[1]);case 3:return Ae.call(He,Be[0],Be[1],Be[2])}return Ae.apply(He,Be)}function wO(Ae,He,Be,It){for(var on=-1,Wn=Ae==null?0:Ae.length;++on-1}function L0(Ae,He,Be){for(var It=-1,on=Ae==null?0:Ae.length;++It-1;);return Be}function kf(Ae,He){for(var Be=Ae.length;Be--&&Sf(He,Ae[Be],0)>-1;);return Be}function _O(Ae,He){for(var Be=Ae.length,It=0;Be--;)Ae[Be]===He&&++It;return It}var hy=dy(oy),mT=dy(si);function gT(Ae){return"\\"+yf[Ae]}function W0(Ae,He){return Ae==null?n:Ae[He]}function Lu(Ae){return ds.test(Ae)}function vT(Ae){return Du.test(Ae)}function yT(Ae){for(var He,Be=[];!(He=Ae.next()).done;)Be.push(He.value);return Be}function my(Ae){var He=-1,Be=Array(Ae.size);return Ae.forEach(function(It,on){Be[++He]=[on,It]}),Be}function bT(Ae,He){return function(Be){return Ae(He(Be))}}function Fu(Ae,He){for(var Be=-1,It=Ae.length,on=0,Wn=[];++Be-1}function MO(m,b){var O=this.__data__,$=Kc(O,m);return $<0?(++this.size,O.push([m,b])):O[$][1]=b,this}ll.prototype.clear=Wu,ll.prototype.delete=Ql,ll.prototype.get=Aa,ll.prototype.has=Cy,ll.prototype.set=MO;function Jl(m){var b=-1,O=m==null?0:m.length;for(this.clear();++b=b?m:b)),m}function er(m,b,O,$,V,te){var pe,Ce=b&g,De=b&y,Je=b&h;if(O&&(pe=V?O(m,$,V,te):O(m)),pe!==n)return pe;if(!Ur(m))return m;var et=bn(m);if(et){if(pe=ed(m),!Ce)return xi(m,pe)}else{var ct=va(m),Ct=ct==tt||ct==Ge;if(ic(m))return yw(m,Ce);if(ct==xt||ct==Z||Ct&&!V){if(pe=De||Ct?{}:Yi(m),!Ce)return De?rm(m,ky(pe,m)):GT(m,qu(pe,m))}else{if(!ir[ct])return V?m:{};pe=KT(m,ct,Ce)}}te||(te=new ms);var Vt=te.get(m);if(Vt)return Vt;te.set(m,pe),vl(m)?m.forEach(function(fn){pe.add(er(fn,b,O,fn,m,te))}):MC(m)&&m.forEach(function(fn,Hn){pe.set(Hn,er(fn,b,O,Hn,m,te))});var dn=Je?De?om:fl:De?Ri:Ia,Ln=et?n:dn(m);return Ho(Ln||m,function(fn,Hn){Ln&&(Hn=fn,fn=m[Hn]),Fr(pe,Hn,er(fn,b,O,Hn,m,te))}),pe}function ew(m){var b=Ia(m);return function(O){return xy(O,m,b)}}function xy(m,b,O){var $=O.length;if(m==null)return!$;for(m=Er(m);$--;){var V=O[$],te=b[V],pe=m[V];if(pe===n&&!(V in m)||!te(pe))return!1}return!0}function tw(m,b,O){if(typeof m!="function")throw new mo(o);return di(function(){m.apply(n,O)},b)}function Mf(m,b,O,$){var V=-1,te=ly,pe=!0,Ce=m.length,De=[],Je=b.length;if(!Ce)return De;O&&(b=Lr(b,po(O))),$?(te=L0,pe=!1):b.length>=a&&(te=Tf,pe=!1,b=new Zl(b));e:for(;++VV?0:V+O),$=$===n||$>V?V:xn($),$<0&&($+=V),$=O>$?0:m1($);O<$;)m[O++]=b;return m}function ua(m,b){var O=[];return Vu(m,function($,V,te){b($,V,te)&&O.push($)}),O}function ga(m,b,O,$,V){var te=-1,pe=m.length;for(O||(O=QT),V||(V=[]);++te0&&O(Ce)?b>1?ga(Ce,b-1,O,$,V):zl(V,Ce):$||(V[V.length]=Ce)}return V}var Qc=Tw(),Kh=Tw(!0);function Zo(m,b){return m&&Qc(m,b,Ia)}function gs(m,b){return m&&Kh(m,b,Ia)}function Jc(m,b){return el(b,function(O){return cu(m[O])})}function eu(m,b){b=nu(b,m);for(var O=0,$=b.length;m!=null&&O<$;)m=m[_i(b[O++])];return O&&O==$?m:n}function Oy(m,b,O){var $=b(m);return bn(m)?$:zl($,O(m))}function ui(m){return m==null?m===n?ft:kt:al&&al in Er(m)?um(m):wo(m)}function Ry(m,b){return m>b}function AT(m,b){return m!=null&&cr.call(m,b)}function NT(m,b){return m!=null&&b in Er(m)}function MT(m,b,O){return m>=pn(b,O)&&m=120&&et.length>=120)?new Zl(pe&&et):n}et=m[0];var ct=-1,Ct=Ce[0];e:for(;++ct-1;)Ce!==m&&Ci.call(Ce,De,1),Ci.call(m,De,1);return m}function fw(m,b){for(var O=m?b.length:0,$=O-1;O--;){var V=b[O];if(O==$||V!==te){var te=V;Ts(V)?Ci.call(m,V,1):ul(m,V)}}return m}function My(m,b){return m+Qo(wy()*(b-m+1))}function LO(m,b,O,$){for(var V=-1,te=zn(Xo((b-m)/(O||1)),0),pe=Be(te);te--;)pe[$?te:++V]=m,m+=O;return pe}function Zh(m,b){var O="";if(!m||b<1||b>q)return O;do b%2&&(O+=m),b=Qo(b/2),b&&(m+=m);while(b);return O}function On(m,b){return So(pl(m,b,or),m+"")}function zT(m){return Z0(_o(m))}function pw(m,b){var O=_o(m);return cm(O,Xc(b,0,O.length))}function Ff(m,b,O,$){if(!Ur(m))return m;b=nu(b,m);for(var V=-1,te=b.length,pe=te-1,Ce=m;Ce!=null&&++VV?0:V+b),O=O>V?V:O,O<0&&(O+=V),V=b>O?0:O-b>>>0,b>>>=0;for(var te=Be(V);++$>>1,pe=m[te];pe!==null&&!xo(pe)&&(O?pe<=b:pe=a){var Je=b?null:Qu(m);if(Je)return gy(Je);pe=!1,V=Tf,De=new Zl}else De=b?[]:Ce;e:for(;++$=$?m:yo(m,b,O)}var tm=Yo||function(m){return bt.clearTimeout(m)};function yw(m,b){if(b)return m.slice();var O=m.length,$=V0?V0(O):new m.constructor(O);return m.copy($),$}function nm(m){var b=new m.constructor(m.byteLength);return new ps(b).set(new ps(m)),b}function HT(m,b){var O=b?nm(m.buffer):m.buffer;return new m.constructor(O,m.byteOffset,m.byteLength)}function VT(m){var b=new m.constructor(m.source,Qe.exec(m));return b.lastIndex=m.lastIndex,b}function UO(m){return Kl?Er(Kl.call(m)):{}}function bw(m,b){var O=b?nm(m.buffer):m.buffer;return new m.constructor(O,m.byteOffset,m.length)}function Ma(m,b){if(m!==b){var O=m!==n,$=m===null,V=m===m,te=xo(m),pe=b!==n,Ce=b===null,De=b===b,Je=xo(b);if(!Ce&&!Je&&!te&&m>b||te&&pe&&De&&!Ce&&!Je||$&&pe&&De||!O&&De||!V)return 1;if(!$&&!te&&!Je&&m=Ce)return De;var Je=O[$];return De*(Je=="desc"?-1:1)}}return m.index-b.index}function ww(m,b,O,$){for(var V=-1,te=m.length,pe=O.length,Ce=-1,De=b.length,Je=zn(te-pe,0),et=Be(De+Je),ct=!$;++Ce1?O[V-1]:n,pe=V>2?O[2]:n;for(te=m.length>3&&typeof te=="function"?(V--,te):n,pe&&ei(O[0],O[1],pe)&&(te=V<3?n:te,V=1),b=Er(b);++$-1?V[te?b[pe]:pe]:n}}function Fy(m){return dl(function(b){var O=b.length,$=O,V=go.prototype.thru;for(m&&b.reverse();$--;){var te=b[$];if(typeof te!="function")throw new mo(o);if(V&&!pe&&Ss(te)=="wrapper")var pe=new go([],!0)}for($=pe?$:O;++$1&&Zn.reverse(),et&&DeCe))return!1;var Je=te.get(m),et=te.get(b);if(Je&&et)return Je==b&&et==m;var ct=-1,Ct=!0,Vt=O&E?new Zl:n;for(te.set(m,b),te.set(b,m);++ct1?"& ":"")+b[$],b=b.join(O>2?", ":" "),m.replace(we,`{ /* [wrapped with `+b+`] */ -`)}function UT(m){return bn(m)||rc(m)||!!(Wc&&m&&m[Wc])}function Ss(m,b){var O=typeof m;return b=b??q,!!b&&(O=="number"||O!="symbol"&&Dn.test(m))&&m>-1&&m%1==0&&m0){if(++b>=le)return arguments[0]}else b=0;return m.apply(n,arguments)}}function sm(m,b){var O=-1,$=m.length,V=$-1;for(b=b===n?$:b;++O1?m[b-1]:n;return O=typeof O=="function"?(m.pop(),O):n,hm(m,O)});function fi(m){var b=K(m);return b.__chain__=!0,b}function rC(m,b){return b(m),m}function Qf(m,b){return b(m)}var aC=ol(function(m){var b=m.length,O=b?m[0]:0,$=this.__wrapped__,V=function(te){return qu(te,m)};return b>1||this.__actions__.length||!($ instanceof Tn)||!Ss(O)?this.thru(V):($=$.slice(O,+O+(b?1:0)),$.__actions__.push({func:Qf,args:[V],thisArg:n}),new mo($,this.__chain__).thru(function(te){return b&&!te.length&&te.push(n),te}))});function IO(){return fi(this)}function su(){return new mo(this.value(),this.__chain__)}function By(){this.__values__===n&&(this.__values__=kC(this.value()));var m=this.__index__>=this.__values__.length,b=m?n:this.__values__[this.__index__++];return{done:m,value:b}}function Lw(){return this}function Jf(m){for(var b,O=this;O instanceof Wh;){var $=Ly(O);$.__index__=0,$.__values__=n,b?V.__wrapped__=$:b=$;var V=$;O=O.__wrapped__}return V.__wrapped__=m,b}function iC(){var m=this.__wrapped__;if(m instanceof Tn){var b=m;return this.__actions__.length&&(b=new Tn(this)),b=b.reverse(),b.__actions__.push({func:Qf,args:[Tr],thisArg:n}),new mo(b,this.__chain__)}return this.thru(Tr)}function oC(){return xy(this.__wrapped__,this.__actions__)}var sC=Uf(function(m,b,O){cr.call(m,O)?++m[O]:go(m,O,1)});function Fw(m,b,O){var $=bn(m)?ZE:G0;return O&&ei(m,b,O)&&(b=n),$(m,Qt(b,3))}function jw(m,b){var O=bn(m)?Ks:la;return O(m,Qt(b,3))}var DO=Ry(xw),$O=Ry(XT);function LO(m,b){return ma(lu(m,b),1)}function lC(m,b){return ma(lu(m,b),G)}function uC(m,b,O){return O=O===n?1:xn(O),ma(lu(m,b),O)}function rd(m,b){var O=bn(m)?qo:Hu;return O(m,Qt(b,3))}function vm(m,b){var O=bn(m)?cO:by;return O(m,Qt(b,3))}var cC=Uf(function(m,b,O){cr.call(m,O)?m[O].push(b):go(m,O,[b])});function dC(m,b,O,$){m=kn(m)?m:xo(m),O=O&&!$?xn(O):0;var V=m.length;return O<0&&(O=zn(V+O,0)),Qy(m)?O<=V&&m.indexOf(b,O)>-1:!!V&&yf(m,b,O)>-1}var FO=Rn(function(m,b,O){var $=-1,V=typeof b=="function",te=kn(m)?Be(m.length):[];return Hu(m,function(pe){te[++$]=V?li(b,pe,O):Nf(pe,b,O)}),te}),fC=Uf(function(m,b,O){go(m,O,b)});function lu(m,b){var O=bn(m)?$r:Gh;return O(m,Qt(b,3))}function pC(m,b,O,$){return m==null?[]:(bn(b)||(b=b==null?[]:[b]),O=$?n:O,bn(O)||(O=O==null?[]:[O]),ew(m,b,O))}var _r=Uf(function(m,b,O){m[O?0:1].push(b)},function(){return[[],[]]});function Uw(m,b,O){var $=bn(m)?R0:N0,V=arguments.length<3;return $(m,Qt(b,4),O,V,Hu)}function jO(m,b,O){var $=bn(m)?dO:N0,V=arguments.length<3;return $(m,Qt(b,4),O,V,by)}function hC(m,b){var O=bn(m)?Ks:la;return O(m,zy(Qt(b,3)))}function UO(m){var b=bn(m)?q0:NT;return b(m)}function BO(m,b,O){(O?ei(m,b,O):b===n)?b=1:b=xn(b);var $=bn(m)?Wu:aw;return $(m,b)}function WO(m){var b=bn(m)?An:OO;return b(m)}function Wy(m){if(m==null)return 0;if(kn(m))return Qy(m)?Xs(m):m.length;var b=ga(m);return b==at||b==Wt?m.size:Vu(m).length}function Zf(m,b,O){var $=bn(m)?P0:Qh;return O&&ei(m,b,O)&&(b=n),$(m,Qt(b,3))}var Bw=Rn(function(m,b){if(m==null)return[];var O=b.length;return O>1&&ei(m,b[0],b[1])?b=[]:O>2&&ei(b[0],b[1],b[2])&&(b=[b[0]]),ew(m,ma(b,1),[])}),ad=Yo||function(){return bt.Date.now()};function Ww(m,b){if(typeof b!="function")throw new ho(o);return m=xn(m),function(){if(--m<1)return b.apply(this,arguments)}}function nc(m,b,O){return b=O?n:b,b=m&&b==null?m.length:b,ys(m,I,n,n,n,n,b)}function Es(m,b){var O;if(typeof b!="function")throw new ho(o);return m=xn(m),function(){return--m>0&&(O=b.apply(this,arguments)),m<=1&&(b=n),O}}var id=Rn(function(m,b,O){var $=T;if(O.length){var V=Lu(O,yo(id));$|=P}return ys(m,$,b,O,V)}),mC=Rn(function(m,b,O){var $=T|C;if(O.length){var V=Lu(O,yo(mC));$|=P}return ys(b,$,m,O,V)});function zw(m,b,O){b=O?n:b;var $=ys(m,_,n,n,n,n,n,b);return $.placeholder=zw.placeholder,$}function qw(m,b,O){b=O?n:b;var $=ys(m,A,n,n,n,n,n,b);return $.placeholder=qw.placeholder,$}function Hw(m,b,O){var $,V,te,pe,Ce,De,Je=0,et=!1,ct=!1,Ct=!0;if(typeof m!="function")throw new ho(o);b=ni(b)||0,jr(O)&&(et=!!O.leading,ct="maxWait"in O,te=ct?zn(ni(O.maxWait)||0,b):te,Ct="trailing"in O?!!O.trailing:Ct);function Vt(Da){var fu=$,od=V;return $=V=n,Je=Da,pe=m.apply(od,fu),pe}function dn(Da){return Je=Da,Ce=di(Hn,b),et?Vt(Da):pe}function Ln(Da){var fu=Da-De,od=Da-Je,H4=b-fu;return ct?pn(H4,te-od):H4}function fn(Da){var fu=Da-De,od=Da-Je;return De===n||fu>=b||fu<0||ct&&od>=te}function Hn(){var Da=ad();if(fn(Da))return Zn(Da);Ce=di(Hn,Ln(Da))}function Zn(Da){return Ce=n,Ct&&$?Vt(Da):($=V=n,pe)}function ks(){Ce!==n&&Jh(Ce),Je=0,$=De=V=Ce=n}function _o(){return Ce===n?pe:Zn(ad())}function xs(){var Da=ad(),fu=fn(Da);if($=arguments,V=this,De=Da,fu){if(Ce===n)return dn(De);if(ct)return Jh(Ce),Ce=di(Hn,b),Vt(De)}return Ce===n&&(Ce=di(Hn,b)),pe}return xs.cancel=ks,xs.flush=_o,xs}var zO=Rn(function(m,b){return V0(m,1,b)}),Vw=Rn(function(m,b,O){return V0(m,ni(b)||0,O)});function gC(m){return ys(m,j)}function ym(m,b){if(typeof m!="function"||b!=null&&typeof b!="function")throw new ho(o);var O=function(){var $=arguments,V=b?b.apply(this,$):$[0],te=O.cache;if(te.has(V))return te.get(V);var pe=m.apply(this,$);return O.cache=te.set(V,pe)||te,pe};return O.cache=new(ym.Cache||Ql),O}ym.Cache=Ql;function zy(m){if(typeof m!="function")throw new ho(o);return function(){var b=arguments;switch(b.length){case 0:return!m.call(this);case 1:return!m.call(this,b[0]);case 2:return!m.call(this,b[0],b[1]);case 3:return!m.call(this,b[0],b[1],b[2])}return!m.apply(this,b)}}function Gw(m){return Es(2,m)}var Yw=MT(function(m,b){b=b.length==1&&bn(b[0])?$r(b[0],fo(Qt())):$r(ma(b,1),fo(Qt()));var O=b.length;return Rn(function($){for(var V=-1,te=pn($.length,O);++V=b}),rc=TT((function(){return arguments})())?TT:function(m){return Zr(m)&&cr.call(m,"callee")&&!F0.call(m,"callee")},bn=Be.isArray,Vy=Pa?fo(Pa):CT;function kn(m){return m!=null&&Yy(m.length)&&!uu(m)}function qr(m){return Zr(m)&&kn(m)}function ti(m){return m===!0||m===!1||Zr(m)&&ui(m)==fe}var ac=pT||hR,Zw=Ja?fo(Ja):kT;function e1(m){return Zr(m)&&m.nodeType===1&&!pi(m)}function Gy(m){if(m==null)return!0;if(kn(m)&&(bn(m)||typeof m=="string"||typeof m.splice=="function"||ac(m)||Cs(m)||rc(m)))return!m.length;var b=ga(m);if(b==at||b==Wt)return!m.size;if(Qr(m))return!Vu(m).length;for(var O in m)if(cr.call(m,O))return!1;return!0}function wC(m,b){return Mf(m,b)}function SC(m,b,O){O=typeof O=="function"?O:n;var $=O?O(m,b):n;return $===n?Mf(m,b,n,O):!!$}function Sm(m){if(!Zr(m))return!1;var b=ui(m);return b==qe||b==Ie||typeof m.message=="string"&&typeof m.name=="string"&&!pi(m)}function t1(m){return typeof m=="number"&&dy(m)}function uu(m){if(!jr(m))return!1;var b=ui(m);return b==tt||b==Ge||b==ke||b==cn}function n1(m){return typeof m=="number"&&m==xn(m)}function Yy(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=q}function jr(m){var b=typeof m;return m!=null&&(b=="object"||b=="function")}function Zr(m){return m!=null&&typeof m=="object"}var EC=Bl?fo(Bl):xT;function r1(m,b){return m===b||Ty(m,b,im(b))}function a1(m,b,O){return O=typeof O=="function"?O:n,Ty(m,b,im(b),O)}function GO(m){return i1(m)&&m!=+m}function YO(m){if(BT(m))throw new on(i);return X0(m)}function Ts(m){return m===null}function TC(m){return m==null}function i1(m){return typeof m=="number"||Zr(m)&&ui(m)==Et}function pi(m){if(!Zr(m)||ui(m)!=xt)return!1;var b=Uc(m);if(b===null)return!0;var O=cr.call(b,"constructor")&&b.constructor;return typeof O=="function"&&O instanceof O&&Fh.call(O)==Cf}var Ky=Zv?fo(Zv):_T;function Xy(m){return n1(m)&&m>=-q&&m<=q}var fl=gf?fo(gf):OT;function Qy(m){return typeof m=="string"||!bn(m)&&Zr(m)&&ui(m)==Oe}function ko(m){return typeof m=="symbol"||Zr(m)&&ui(m)==dt}var Cs=vf?fo(vf):kO;function CC(m){return m===n}function KO(m){return Zr(m)&&ga(m)==ut}function XO(m){return Zr(m)&&ui(m)==Nt}var QO=zf(If),JO=zf(function(m,b){return m<=b});function kC(m){if(!m)return[];if(kn(m))return Qy(m)?Ho(m):xi(m);if(Js&&m[Js])return sT(m[Js]());var b=ga(m),O=b==at?sy:b==Wt?ly:xo;return O(m)}function cu(m){if(!m)return m===0?m:0;if(m=ni(m),m===G||m===-G){var b=m<0?-1:1;return b*ce}return m===m?m:0}function xn(m){var b=cu(m),O=b%1;return b===b?O?b-O:b:0}function o1(m){return m?Kc(xn(m),0,Y):0}function ni(m){if(typeof m=="number")return m;if(ko(m))return H;if(jr(m)){var b=typeof m.valueOf=="function"?m.valueOf():m;m=jr(b)?b+"":b}if(typeof m!="string")return m===0?m:+m;m=rT(m);var O=Bt.test(m);return O||an.test(m)?$h(m.slice(2),O?2:8):ot.test(m)?H:+m}function tp(m){return ms(m,Ri(m))}function xC(m){return m?Kc(xn(m),-q,q):m===0?m:0}function fr(m){return m==null?"":Xr(m)}var np=Jc(function(m,b){if(Qr(b)||kn(b)){ms(b,Ia(b),m);return}for(var O in b)cr.call(b,O)&&Lr(m,O,b[O])}),rp=Jc(function(m,b){ms(b,Ri(b),m)}),Em=Jc(function(m,b,O,$){ms(b,Ri(b),m,$)}),Jy=Jc(function(m,b,O,$){ms(b,Ia(b),m,$)}),s1=ol(qu);function l1(m,b){var O=Kl(m);return b==null?O:zu(O,b)}var Zy=Rn(function(m,b){m=Er(m);var O=-1,$=b.length,V=$>2?b[2]:n;for(V&&ei(b[0],b[1],V)&&($=1);++O<$;)for(var te=b[O],pe=Ri(te),Ce=-1,De=pe.length;++Ce1),te}),ms(m,rm(m),O),$&&(O=er(O,g|y|h,My));for(var V=b.length;V--;)al(O,b[V]);return O});function iR(m,b){return tb(m,zy(Qt(b)))}var f1=ol(function(m,b){return m==null?{}:tw(m,b)});function tb(m,b){if(m==null)return{};var O=$r(rm(m),function($){return[$]});return b=Qt(b),nw(m,O,function($,V){return b($,V[0])})}function nb(m,b,O){b=tu(b,m);var $=-1,V=b.length;for(V||(V=1,m=n);++$b){var $=m;m=b,b=$}if(O||m%1||b%1){var V=fy();return pn(m+V*(b-m+Ys("1e-"+((V+"").length-1))),b)}return ky(m,b)}var DC=Yu(function(m,b,O){return b=b.toLowerCase(),m+(O?Rm(b):b)});function Rm(m){return hn(fr(m).toLowerCase())}function h1(m){return m=fr(m),m&&m.replace(En,oy).replace(uo,"")}function lR(m,b,O){m=fr(m),b=Xr(b);var $=m.length;O=O===n?$:Kc(xn(O),0,$);var V=O;return O-=b.length,O>=0&&m.slice(O,V)==b}function ab(m){return m=fr(m),m&&ln.test(m)?m.replace(On,aT):m}function ib(m){return m=fr(m),m&&Oa.test(m)?m.replace(Bo,"\\$&"):m}var $C=Yu(function(m,b,O){return m+(O?"-":"")+b.toLowerCase()}),Pm=Yu(function(m,b,O){return m+(O?" ":"")+b.toLowerCase()}),m1=Oy("toLowerCase");function ob(m,b,O){m=fr(m),b=xn(b);var $=b?Xs(m):0;if(!b||$>=b)return m;var V=(b-$)/2;return Wf(Xo(V),O)+m+Wf(Ko(V),O)}function LC(m,b,O){m=fr(m),b=xn(b);var $=b?Xs(m):0;return b&&$>>0,O?(m=fr(m),m&&(typeof b=="string"||b!=null&&!Ky(b))&&(b=Xr(b),!b&&$u(m))?nu(Ho(m),0,O):m.split(b,O)):[]}var x=Yu(function(m,b,O){return m+(O?" ":"")+hn(b)});function M(m,b,O){return m=fr(m),O=O==null?0:Kc(xn(O),0,m.length),b=Xr(b),m.slice(O,O+b.length)==b}function B(m,b,O){var $=K.templateSettings;O&&ei(m,b,O)&&(b=n),m=fr(m),b=Em({},b,$,Ny);var V=Em({},b.imports,$.imports,Ny),te=Ia(V),pe=iy(V,te),Ce,De,Je=0,et=b.interpolate||Rr,ct="__p += '",Ct=zl((b.escape||Rr).source+"|"+et.source+"|"+(et===Qa?Me:Rr).source+"|"+(b.evaluate||Rr).source+"|$","g"),Vt="//# sourceURL="+(cr.call(b,"sourceURL")?(b.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Qv+"]")+` -`;m.replace(Ct,function(fn,Hn,Zn,ks,_o,xs){return Zn||(Zn=ks),ct+=m.slice(Je,xs).replace(Pr,iT),Hn&&(Ce=!0,ct+=`' + +`)}function QT(m){return bn(m)||ac(m)||!!(zc&&m&&m[zc])}function Ts(m,b){var O=typeof m;return b=b??q,!!b&&(O=="number"||O!="symbol"&&Dn.test(m))&&m>-1&&m%1==0&&m0){if(++b>=le)return arguments[0]}else b=0;return m.apply(n,arguments)}}function cm(m,b){var O=-1,$=m.length,V=$-1;for(b=b===n?$:b;++O1?m[b-1]:n;return O=typeof O=="function"?(m.pop(),O):n,vm(m,O)});function fi(m){var b=K(m);return b.__chain__=!0,b}function hC(m,b){return b(m),m}function ep(m,b){return b(m)}var mC=dl(function(m){var b=m.length,O=b?m[0]:0,$=this.__wrapped__,V=function(te){return Hu(te,m)};return b>1||this.__actions__.length||!($ instanceof Tn)||!Ts(O)?this.thru(V):($=$.slice(O,+O+(b?1:0)),$.__actions__.push({func:ep,args:[V],thisArg:n}),new go($,this.__chain__).thru(function(te){return b&&!te.length&&te.push(n),te}))});function HO(){return fi(this)}function lu(){return new go(this.value(),this.__chain__)}function Ky(){this.__values__===n&&(this.__values__=$C(this.value()));var m=this.__index__>=this.__values__.length,b=m?n:this.__values__[this.__index__++];return{done:m,value:b}}function Vw(){return this}function tp(m){for(var b,O=this;O instanceof Hh;){var $=Hy(O);$.__index__=0,$.__values__=n,b?V.__wrapped__=$:b=$;var V=$;O=O.__wrapped__}return V.__wrapped__=m,b}function gC(){var m=this.__wrapped__;if(m instanceof Tn){var b=m;return this.__actions__.length&&(b=new Tn(this)),b=b.reverse(),b.__actions__.push({func:ep,args:[Tr],thisArg:n}),new go(b,this.__chain__)}return this.thru(Tr)}function vC(){return Iy(this.__wrapped__,this.__actions__)}var yC=zf(function(m,b,O){cr.call(m,O)?++m[O]:vo(m,O,1)});function Gw(m,b,O){var $=bn(m)?cT:nw;return O&&ei(m,b,O)&&(b=n),$(m,Qt(b,3))}function Yw(m,b){var O=bn(m)?el:ua;return O(m,Qt(b,3))}var VO=Ly(Dw),GO=Ly(sC);function YO(m,b){return ga(uu(m,b),1)}function bC(m,b){return ga(uu(m,b),G)}function wC(m,b,O){return O=O===n?1:xn(O),ga(uu(m,b),O)}function ad(m,b){var O=bn(m)?Ho:Vu;return O(m,Qt(b,3))}function wm(m,b){var O=bn(m)?SO:_y;return O(m,Qt(b,3))}var SC=zf(function(m,b,O){cr.call(m,O)?m[O].push(b):vo(m,O,[b])});function EC(m,b,O,$){m=kn(m)?m:_o(m),O=O&&!$?xn(O):0;var V=m.length;return O<0&&(O=zn(V+O,0)),ib(m)?O<=V&&m.indexOf(b,O)>-1:!!V&&Sf(m,b,O)>-1}var KO=On(function(m,b,O){var $=-1,V=typeof b=="function",te=kn(m)?Be(m.length):[];return Vu(m,function(pe){te[++$]=V?li(b,pe,O):Df(pe,b,O)}),te}),TC=zf(function(m,b,O){vo(m,O,b)});function uu(m,b){var O=bn(m)?Lr:Xh;return O(m,Qt(b,3))}function CC(m,b,O,$){return m==null?[]:(bn(b)||(b=b==null?[]:[b]),O=$?n:O,bn(O)||(O=O==null?[]:[O]),uw(m,b,O))}var _r=zf(function(m,b,O){m[O?0:1].push(b)},function(){return[[],[]]});function Kw(m,b,O){var $=bn(m)?F0:B0,V=arguments.length<3;return $(m,Qt(b,4),O,V,Vu)}function XO(m,b,O){var $=bn(m)?EO:B0,V=arguments.length<3;return $(m,Qt(b,4),O,V,_y)}function kC(m,b){var O=bn(m)?el:ua;return O(m,Qy(Qt(b,3)))}function QO(m){var b=bn(m)?Z0:zT;return b(m)}function JO(m,b,O){(O?ei(m,b,O):b===n)?b=1:b=xn(b);var $=bn(m)?zu:pw;return $(m,b)}function ZO(m){var b=bn(m)?An:jO;return b(m)}function Xy(m){if(m==null)return 0;if(kn(m))return ib(m)?tl(m):m.length;var b=va(m);return b==at||b==Wt?m.size:Gu(m).length}function np(m,b,O){var $=bn(m)?j0:em;return O&&ei(m,b,O)&&(b=n),$(m,Qt(b,3))}var Xw=On(function(m,b){if(m==null)return[];var O=b.length;return O>1&&ei(m,b[0],b[1])?b=[]:O>2&&ei(b[0],b[1],b[2])&&(b=[b[0]]),uw(m,ga(b,1),[])}),id=Ko||function(){return bt.Date.now()};function Qw(m,b){if(typeof b!="function")throw new mo(o);return m=xn(m),function(){if(--m<1)return b.apply(this,arguments)}}function rc(m,b,O){return b=O?n:b,b=m&&b==null?m.length:b,ws(m,I,n,n,n,n,b)}function Cs(m,b){var O;if(typeof b!="function")throw new mo(o);return m=xn(m),function(){return--m>0&&(O=b.apply(this,arguments)),m<=1&&(b=n),O}}var od=On(function(m,b,O){var $=T;if(O.length){var V=Fu(O,bo(od));$|=P}return ws(m,$,b,O,V)}),xC=On(function(m,b,O){var $=T|C;if(O.length){var V=Fu(O,bo(xC));$|=P}return ws(b,$,m,O,V)});function Jw(m,b,O){b=O?n:b;var $=ws(m,_,n,n,n,n,n,b);return $.placeholder=Jw.placeholder,$}function Zw(m,b,O){b=O?n:b;var $=ws(m,A,n,n,n,n,n,b);return $.placeholder=Zw.placeholder,$}function e1(m,b,O){var $,V,te,pe,Ce,De,Je=0,et=!1,ct=!1,Ct=!0;if(typeof m!="function")throw new mo(o);b=ni(b)||0,Ur(O)&&(et=!!O.leading,ct="maxWait"in O,te=ct?zn(ni(O.maxWait)||0,b):te,Ct="trailing"in O?!!O.trailing:Ct);function Vt(Da){var pu=$,sd=V;return $=V=n,Je=Da,pe=m.apply(sd,pu),pe}function dn(Da){return Je=Da,Ce=di(Hn,b),et?Vt(Da):pe}function Ln(Da){var pu=Da-De,sd=Da-Je,aU=b-pu;return ct?pn(aU,te-sd):aU}function fn(Da){var pu=Da-De,sd=Da-Je;return De===n||pu>=b||pu<0||ct&&sd>=te}function Hn(){var Da=id();if(fn(Da))return Zn(Da);Ce=di(Hn,Ln(Da))}function Zn(Da){return Ce=n,Ct&&$?Vt(Da):($=V=n,pe)}function _s(){Ce!==n&&tm(Ce),Je=0,$=De=V=Ce=n}function Oo(){return Ce===n?pe:Zn(id())}function Os(){var Da=id(),pu=fn(Da);if($=arguments,V=this,De=Da,pu){if(Ce===n)return dn(De);if(ct)return tm(Ce),Ce=di(Hn,b),Vt(De)}return Ce===n&&(Ce=di(Hn,b)),pe}return Os.cancel=_s,Os.flush=Oo,Os}var eR=On(function(m,b){return tw(m,1,b)}),t1=On(function(m,b,O){return tw(m,ni(b)||0,O)});function _C(m){return ws(m,j)}function Sm(m,b){if(typeof m!="function"||b!=null&&typeof b!="function")throw new mo(o);var O=function(){var $=arguments,V=b?b.apply(this,$):$[0],te=O.cache;if(te.has(V))return te.get(V);var pe=m.apply(this,$);return O.cache=te.set(V,pe)||te,pe};return O.cache=new(Sm.Cache||Jl),O}Sm.Cache=Jl;function Qy(m){if(typeof m!="function")throw new mo(o);return function(){var b=arguments;switch(b.length){case 0:return!m.call(this);case 1:return!m.call(this,b[0]);case 2:return!m.call(this,b[0],b[1]);case 3:return!m.call(this,b[0],b[1],b[2])}return!m.apply(this,b)}}function n1(m){return Cs(2,m)}var r1=qT(function(m,b){b=b.length==1&&bn(b[0])?Lr(b[0],po(Qt())):Lr(ga(b,1),po(Qt()));var O=b.length;return On(function($){for(var V=-1,te=pn($.length,O);++V=b}),ac=IT((function(){return arguments})())?IT:function(m){return ea(m)&&cr.call(m,"callee")&&!G0.call(m,"callee")},bn=Be.isArray,eb=Pa?po(Pa):DT;function kn(m){return m!=null&&nb(m.length)&&!cu(m)}function Hr(m){return ea(m)&&kn(m)}function ti(m){return m===!0||m===!1||ea(m)&&ui(m)==fe}var ic=CT||kR,l1=Ja?po(Ja):$T;function u1(m){return ea(m)&&m.nodeType===1&&!pi(m)}function tb(m){if(m==null)return!0;if(kn(m)&&(bn(m)||typeof m=="string"||typeof m.splice=="function"||ic(m)||xs(m)||ac(m)))return!m.length;var b=va(m);if(b==at||b==Wt)return!m.size;if(Jr(m))return!Gu(m).length;for(var O in m)if(cr.call(m,O))return!1;return!0}function AC(m,b){return $f(m,b)}function NC(m,b,O){O=typeof O=="function"?O:n;var $=O?O(m,b):n;return $===n?$f(m,b,n,O):!!$}function Cm(m){if(!ea(m))return!1;var b=ui(m);return b==qe||b==Ie||typeof m.message=="string"&&typeof m.name=="string"&&!pi(m)}function c1(m){return typeof m=="number"&&by(m)}function cu(m){if(!Ur(m))return!1;var b=ui(m);return b==tt||b==Ge||b==ke||b==cn}function d1(m){return typeof m=="number"&&m==xn(m)}function nb(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=q}function Ur(m){var b=typeof m;return m!=null&&(b=="object"||b=="function")}function ea(m){return m!=null&&typeof m=="object"}var MC=Wl?po(Wl):LT;function f1(m,b){return m===b||Ay(m,b,lm(b))}function p1(m,b,O){return O=typeof O=="function"?O:n,Ay(m,b,lm(b),O)}function aR(m){return h1(m)&&m!=+m}function iR(m){if(JT(m))throw new on(i);return iw(m)}function ks(m){return m===null}function IC(m){return m==null}function h1(m){return typeof m=="number"||ea(m)&&ui(m)==Et}function pi(m){if(!ea(m)||ui(m)!=xt)return!1;var b=Bc(m);if(b===null)return!0;var O=cr.call(b,"constructor")&&b.constructor;return typeof O=="function"&&O instanceof O&&Bh.call(O)==_f}var rb=sy?po(sy):FT;function ab(m){return d1(m)&&m>=-q&&m<=q}var vl=bf?po(bf):jT;function ib(m){return typeof m=="string"||!bn(m)&&ea(m)&&ui(m)==Oe}function xo(m){return typeof m=="symbol"||ea(m)&&ui(m)==dt}var xs=wf?po(wf):$O;function DC(m){return m===n}function oR(m){return ea(m)&&va(m)==ut}function sR(m){return ea(m)&&ui(m)==Nt}var lR=Vf(Lf),uR=Vf(function(m,b){return m<=b});function $C(m){if(!m)return[];if(kn(m))return ib(m)?Vo(m):xi(m);if(rl&&m[rl])return yT(m[rl]());var b=va(m),O=b==at?my:b==Wt?gy:_o;return O(m)}function du(m){if(!m)return m===0?m:0;if(m=ni(m),m===G||m===-G){var b=m<0?-1:1;return b*ce}return m===m?m:0}function xn(m){var b=du(m),O=b%1;return b===b?O?b-O:b:0}function m1(m){return m?Xc(xn(m),0,Y):0}function ni(m){if(typeof m=="number")return m;if(xo(m))return H;if(Ur(m)){var b=typeof m.valueOf=="function"?m.valueOf():m;m=Ur(b)?b+"":b}if(typeof m!="string")return m===0?m:+m;m=hT(m);var O=Bt.test(m);return O||an.test(m)?jh(m.slice(2),O?2:8):ot.test(m)?H:+m}function ap(m){return vs(m,Ri(m))}function LC(m){return m?Xc(xn(m),-q,q):m===0?m:0}function fr(m){return m==null?"":Qr(m)}var ip=Zc(function(m,b){if(Jr(b)||kn(b)){vs(b,Ia(b),m);return}for(var O in b)cr.call(b,O)&&Fr(m,O,b[O])}),op=Zc(function(m,b){vs(b,Ri(b),m)}),km=Zc(function(m,b,O,$){vs(b,Ri(b),m,$)}),ob=Zc(function(m,b,O,$){vs(b,Ia(b),m,$)}),g1=dl(Hu);function v1(m,b){var O=Xl(m);return b==null?O:qu(O,b)}var sb=On(function(m,b){m=Er(m);var O=-1,$=b.length,V=$>2?b[2]:n;for(V&&ei(b[0],b[1],V)&&($=1);++O<$;)for(var te=b[O],pe=Ri(te),Ce=-1,De=pe.length;++Ce1),te}),vs(m,om(m),O),$&&(O=er(O,g|y|h,By));for(var V=b.length;V--;)ul(O,b[V]);return O});function gR(m,b){return ub(m,Qy(Qt(b)))}var S1=dl(function(m,b){return m==null?{}:cw(m,b)});function ub(m,b){if(m==null)return{};var O=Lr(om(m),function($){return[$]});return b=Qt(b),dw(m,O,function($,V){return b($,V[0])})}function cb(m,b,O){b=nu(b,m);var $=-1,V=b.length;for(V||(V=1,m=n);++$b){var $=m;m=b,b=$}if(O||m%1||b%1){var V=wy();return pn(m+V*(b-m+Zs("1e-"+((V+"").length-1))),b)}return My(m,b)}var VC=Ku(function(m,b,O){return b=b.toLowerCase(),m+(O?Nm(b):b)});function Nm(m){return hn(fr(m).toLowerCase())}function T1(m){return m=fr(m),m&&m.replace(En,hy).replace(co,"")}function bR(m,b,O){m=fr(m),b=Qr(b);var $=m.length;O=O===n?$:Xc(xn(O),0,$);var V=O;return O-=b.length,O>=0&&m.slice(O,V)==b}function fb(m){return m=fr(m),m&&ln.test(m)?m.replace(_n,mT):m}function pb(m){return m=fr(m),m&&Oa.test(m)?m.replace(Wo,"\\$&"):m}var GC=Ku(function(m,b,O){return m+(O?"-":"")+b.toLowerCase()}),Mm=Ku(function(m,b,O){return m+(O?" ":"")+b.toLowerCase()}),C1=$y("toLowerCase");function hb(m,b,O){m=fr(m),b=xn(b);var $=b?tl(m):0;if(!b||$>=b)return m;var V=(b-$)/2;return Hf(Qo(V),O)+m+Hf(Xo(V),O)}function YC(m,b,O){m=fr(m),b=xn(b);var $=b?tl(m):0;return b&&$>>0,O?(m=fr(m),m&&(typeof b=="string"||b!=null&&!rb(b))&&(b=Qr(b),!b&&Lu(m))?ru(Vo(m),0,O):m.split(b,O)):[]}var x=Ku(function(m,b,O){return m+(O?" ":"")+hn(b)});function M(m,b,O){return m=fr(m),O=O==null?0:Xc(xn(O),0,m.length),b=Qr(b),m.slice(O,O+b.length)==b}function B(m,b,O){var $=K.templateSettings;O&&ei(m,b,O)&&(b=n),m=fr(m),b=km({},b,$,Uy);var V=km({},b.imports,$.imports,Uy),te=Ia(V),pe=py(V,te),Ce,De,Je=0,et=b.interpolate||Rr,ct="__p += '",Ct=ql((b.escape||Rr).source+"|"+et.source+"|"+(et===Qa?Me:Rr).source+"|"+(b.evaluate||Rr).source+"|$","g"),Vt="//# sourceURL="+(cr.call(b,"sourceURL")?(b.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++iy+"]")+` +`;m.replace(Ct,function(fn,Hn,Zn,_s,Oo,Os){return Zn||(Zn=_s),ct+=m.slice(Je,Os).replace(Pr,gT),Hn&&(Ce=!0,ct+=`' + __e(`+Hn+`) + -'`),_o&&(De=!0,ct+=`'; -`+_o+`; +'`),Oo&&(De=!0,ct+=`'; +`+Oo+`; __p += '`),Zn&&(ct+=`' + ((__t = (`+Zn+`)) == null ? '' : __t) + -'`),Je=xs+fn.length,fn}),ct+=`'; +'`),Je=Os+fn.length,fn}),ct+=`'; `;var dn=cr.call(b,"variable")&&b.variable;if(!dn)ct=`with (obj) { `+ct+` } @@ -120,26 +120,23 @@ __p += '`),Zn&&(ct+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+ct+`return __p -}`;var Ln=Le(function(){return Wn(te,Vt+"return "+ct).apply(n,pe)});if(Ln.source=ct,Sm(Ln))throw Ln;return Ln}function X(m){return fr(m).toLowerCase()}function de(m){return fr(m).toUpperCase()}function Pe(m,b,O){if(m=fr(m),m&&(O||b===n))return rT(m);if(!m||!(b=Xr(b)))return m;var $=Ho(m),V=Ho(b),te=Sf($,V),pe=Ef($,V)+1;return nu($,te,pe).join("")}function Ke(m,b,O){if(m=fr(m),m&&(O||b===n))return m.slice(0,I0(m)+1);if(!m||!(b=Xr(b)))return m;var $=Ho(m),V=Ef($,Ho(b))+1;return nu($,0,V).join("")}function st(m,b,O){if(m=fr(m),m&&(O||b===n))return m.replace(Ra,"");if(!m||!(b=Xr(b)))return m;var $=Ho(m),V=Sf($,Ho(b));return nu($,V).join("")}function Ue(m,b){var O=z,$=Q;if(jr(b)){var V="separator"in b?b.separator:V;O="length"in b?xn(b.length):O,$="omission"in b?Xr(b.omission):$}m=fr(m);var te=m.length;if($u(m)){var pe=Ho(m);te=pe.length}if(O>=te)return m;var Ce=O-Xs($);if(Ce<1)return $;var De=pe?nu(pe,0,Ce).join(""):m.slice(0,Ce);if(V===n)return De+$;if(pe&&(Ce+=De.length-Ce),Ky(V)){if(m.slice(Ce).search(V)){var Je,et=De;for(V.global||(V=zl(V.source,fr(Qe.exec(V))+"g")),V.lastIndex=0;Je=V.exec(et);)var ct=Je.index;De=De.slice(0,ct===n?Ce:ct)}}else if(m.indexOf(Xr(V),Ce)!=Ce){var Ct=De.lastIndexOf(V);Ct>-1&&(De=De.slice(0,Ct))}return De+$}function Ve(m){return m=fr(m),m&&gn.test(m)?m.replace(Ut,uT):m}var Ht=Yu(function(m,b,O){return m+(O?" ":"")+b.toUpperCase()}),hn=Oy("toUpperCase");function Hr(m,b,O){return m=fr(m),b=O?n:b,b===n?oT(m)?bO(m):hO(m):m.match(b)||[]}var Le=Rn(function(m,b){try{return li(m,n,b)}catch(O){return Sm(O)?O:new on(O)}}),_e=ol(function(m,b){return qo(b,function(O){O=_i(O),go(m,O,id(m[O],m))}),m});function je(m){var b=m==null?0:m.length,O=Qt();return m=b?$r(m,function($){if(typeof $[1]!="function")throw new ho(o);return[O($[0]),$[1]]}):[],Rn(function($){for(var V=-1;++Vq)return[];var O=Y,$=pn(m,Y);b=Qt(b),m-=Y;for(var V=Du($,b);++O0||b<0)?new Tn(O):(m<0?O=O.takeRight(-m):m&&(O=O.drop(m)),b!==n&&(b=xn(b),O=b<0?O.dropRight(-b):O.take(b-m)),O)},Tn.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},Tn.prototype.toArray=function(){return this.take(Y)},Jo(Tn.prototype,function(m,b){var O=/^(?:filter|find|map|reject)|While$/.test(b),$=/^(?:head|last)$/.test(b),V=K[$?"take"+(b=="last"?"Right":""):b],te=$||/^find/.test(b);V&&(K.prototype[b]=function(){var pe=this.__wrapped__,Ce=$?[1]:arguments,De=pe instanceof Tn,Je=Ce[0],et=De||bn(pe),ct=function(Hn){var Zn=V.apply(K,Wl([Hn],Ce));return $&&Ct?Zn[0]:Zn};et&&O&&typeof Je=="function"&&Je.length!=1&&(De=et=!1);var Ct=this.__chain__,Vt=!!this.__actions__.length,dn=te&&!Ct,Ln=De&&!Vt;if(!te&&et){pe=Ln?pe:new Tn(this);var fn=m.apply(pe,Ce);return fn.__actions__.push({func:Qf,args:[ct],thisArg:n}),new mo(fn,Ct)}return dn&&Ln?m.apply(this,Ce):(fn=this.thru(ct),dn?$?fn.value()[0]:fn.value():fn)})}),qo(["pop","push","shift","sort","splice","unshift"],function(m){var b=Lh[m],O=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",$=/^(?:pop|shift)$/.test(m);K.prototype[m]=function(){var V=arguments;if($&&!this.__chain__){var te=this.value();return b.apply(bn(te)?te:[],V)}return this[O](function(pe){return b.apply(bn(pe)?pe:[],V)})}}),Jo(Tn.prototype,function(m,b){var O=K[b];if(O){var $=O.name+"";cr.call(Fu,$)||(Fu[$]=[]),Fu[$].push({name:b,func:O})}}),Fu[tm(n,C).name]=[{name:"wrapper",func:n}],Tn.prototype.clone=vT,Tn.prototype.reverse=xf,Tn.prototype.value=my,K.prototype.at=aC,K.prototype.chain=IO,K.prototype.commit=su,K.prototype.next=By,K.prototype.plant=Jf,K.prototype.reverse=iC,K.prototype.toJSON=K.prototype.valueOf=K.prototype.value=oC,K.prototype.first=K.prototype.head,Js&&(K.prototype[Js]=Lw),K}),cs=wO();Sn?((Sn.exports=cs)._=cs,zt._=cs):bt._=cs}).call(Hse)})(rS,rS.exports)),rS.exports}var Ea=Vse();function _n(e){var n,r,a,i,o,l,u,d;const t={};if(e.error&&Array.isArray((n=e.error)==null?void 0:n.errors))for(const f of(r=e.error)==null?void 0:r.errors)Ea.set(t,f.location,f.messageTranslated||f.message);return e.status&&e.ok===!1?{form:`${e.status}`}:((a=e==null?void 0:e.error)!=null&&a.code&&(t.form=(i=e==null?void 0:e.error)==null?void 0:i.code),(o=e==null?void 0:e.error)!=null&&o.message&&(t.form=(l=e==null?void 0:e.error)==null?void 0:l.message),(u=e==null?void 0:e.error)!=null&&u.messageTranslated&&(t.form=(d=e==null?void 0:e.error)==null?void 0:d.messageTranslated),e.message?{form:`${e.message}`}:t)}const St=e=>(t,n,r)=>{const a=e.prefix+n;return fetch(a,{method:t,headers:{Accept:"application/json","Content-Type":"application/json",...e.headers||{}},body:JSON.stringify(r)}).then(i=>{const o=i.headers.get("content-type");if(o&&o.indexOf("application/json")!==-1)return i.json().then(l=>{if(i.ok)return l;throw l});throw i})};var Gse=function(t){return Yse(t)&&!Kse(t)};function Yse(e){return!!e&&typeof e=="object"}function Kse(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Jse(e)}var Xse=typeof Symbol=="function"&&Symbol.for,Qse=Xse?Symbol.for("react.element"):60103;function Jse(e){return e.$$typeof===Qse}function Zse(e){return Array.isArray(e)?[]:{}}function Gk(e,t){return t.clone!==!1&&t.isMergeableObject(e)?RS(Zse(e),e,t):e}function ele(e,t,n){return e.concat(t).map(function(r){return Gk(r,n)})}function tle(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(a){r[a]=Gk(e[a],n)}),Object.keys(t).forEach(function(a){!n.isMergeableObject(t[a])||!e[a]?r[a]=Gk(t[a],n):r[a]=RS(e[a],t[a],n)}),r}function RS(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||ele,n.isMergeableObject=n.isMergeableObject||Gse;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):tle(e,t,n):Gk(t,n)}RS.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return RS(r,a,n)},{})};var U$=RS,PX=typeof global=="object"&&global&&global.Object===Object&&global,nle=typeof self=="object"&&self&&self.Object===Object&&self,Ac=PX||nle||Function("return this")(),rh=Ac.Symbol,AX=Object.prototype,rle=AX.hasOwnProperty,ale=AX.toString,y1=rh?rh.toStringTag:void 0;function ile(e){var t=rle.call(e,y1),n=e[y1];try{e[y1]=void 0;var r=!0}catch{}var a=ale.call(e);return r&&(t?e[y1]=n:delete e[y1]),a}var ole=Object.prototype,sle=ole.toString;function lle(e){return sle.call(e)}var ule="[object Null]",cle="[object Undefined]",pU=rh?rh.toStringTag:void 0;function Nv(e){return e==null?e===void 0?cle:ule:pU&&pU in Object(e)?ile(e):lle(e)}function NX(e,t){return function(n){return e(t(n))}}var W3=NX(Object.getPrototypeOf,Object);function Mv(e){return e!=null&&typeof e=="object"}var dle="[object Object]",fle=Function.prototype,ple=Object.prototype,MX=fle.toString,hle=ple.hasOwnProperty,mle=MX.call(Object);function hU(e){if(!Mv(e)||Nv(e)!=dle)return!1;var t=W3(e);if(t===null)return!0;var n=hle.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&MX.call(n)==mle}function gle(){this.__data__=[],this.size=0}function IX(e,t){return e===t||e!==e&&t!==t}function Xx(e,t){for(var n=e.length;n--;)if(IX(e[n][0],t))return n;return-1}var vle=Array.prototype,yle=vle.splice;function ble(e){var t=this.__data__,n=Xx(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():yle.call(t,n,1),--this.size,!0}function wle(e){var t=this.__data__,n=Xx(t,e);return n<0?void 0:t[n][1]}function Sle(e){return Xx(this.__data__,e)>-1}function Ele(e,t){var n=this.__data__,r=Xx(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Qd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Eue}var Tue="[object Arguments]",Cue="[object Array]",kue="[object Boolean]",xue="[object Date]",_ue="[object Error]",Oue="[object Function]",Rue="[object Map]",Pue="[object Number]",Aue="[object Object]",Nue="[object RegExp]",Mue="[object Set]",Iue="[object String]",Due="[object WeakMap]",$ue="[object ArrayBuffer]",Lue="[object DataView]",Fue="[object Float32Array]",jue="[object Float64Array]",Uue="[object Int8Array]",Bue="[object Int16Array]",Wue="[object Int32Array]",zue="[object Uint8Array]",que="[object Uint8ClampedArray]",Hue="[object Uint16Array]",Vue="[object Uint32Array]",Gr={};Gr[Fue]=Gr[jue]=Gr[Uue]=Gr[Bue]=Gr[Wue]=Gr[zue]=Gr[que]=Gr[Hue]=Gr[Vue]=!0;Gr[Tue]=Gr[Cue]=Gr[$ue]=Gr[kue]=Gr[Lue]=Gr[xue]=Gr[_ue]=Gr[Oue]=Gr[Rue]=Gr[Pue]=Gr[Aue]=Gr[Nue]=Gr[Mue]=Gr[Iue]=Gr[Due]=!1;function Gue(e){return Mv(e)&&BX(e.length)&&!!Gr[Nv(e)]}function z3(e){return function(t){return e(t)}}var WX=typeof Ds=="object"&&Ds&&!Ds.nodeType&&Ds,dS=WX&&typeof to=="object"&&to&&!to.nodeType&&to,Yue=dS&&dS.exports===WX,TR=Yue&&PX.process,Qb=(function(){try{var e=dS&&dS.require&&dS.require("util").types;return e||TR&&TR.binding&&TR.binding("util")}catch{}})(),wU=Qb&&Qb.isTypedArray,Kue=wU?z3(wU):Gue,Xue=Object.prototype,Que=Xue.hasOwnProperty;function zX(e,t){var n=SE(e),r=!n&&mue(e),a=!n&&!r&&UX(e),i=!n&&!r&&!a&&Kue(e),o=n||r||a||i,l=o?due(e.length,String):[],u=l.length;for(var d in e)(t||Que.call(e,d))&&!(o&&(d=="length"||a&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Sue(d,u)))&&l.push(d);return l}var Jue=Object.prototype;function q3(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Jue;return e===n}var Zue=NX(Object.keys,Object),ece=Object.prototype,tce=ece.hasOwnProperty;function nce(e){if(!q3(e))return Zue(e);var t=[];for(var n in Object(e))tce.call(e,n)&&n!="constructor"&&t.push(n);return t}function qX(e){return e!=null&&BX(e.length)&&!DX(e)}function H3(e){return qX(e)?zX(e):nce(e)}function rce(e,t){return e&&Jx(t,H3(t),e)}function ace(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var ice=Object.prototype,oce=ice.hasOwnProperty;function sce(e){if(!wE(e))return ace(e);var t=q3(e),n=[];for(var r in e)r=="constructor"&&(t||!oce.call(e,r))||n.push(r);return n}function V3(e){return qX(e)?zX(e,!0):sce(e)}function lce(e,t){return e&&Jx(t,V3(t),e)}var HX=typeof Ds=="object"&&Ds&&!Ds.nodeType&&Ds,SU=HX&&typeof to=="object"&&to&&!to.nodeType&&to,uce=SU&&SU.exports===HX,EU=uce?Ac.Buffer:void 0,TU=EU?EU.allocUnsafe:void 0;function cce(e,t){if(t)return e.slice();var n=e.length,r=TU?TU(n):new e.constructor(n);return e.copy(r),r}function VX(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=te)return m;var Ce=O-tl($);if(Ce<1)return $;var De=pe?ru(pe,0,Ce).join(""):m.slice(0,Ce);if(V===n)return De+$;if(pe&&(Ce+=De.length-Ce),rb(V)){if(m.slice(Ce).search(V)){var Je,et=De;for(V.global||(V=ql(V.source,fr(Qe.exec(V))+"g")),V.lastIndex=0;Je=V.exec(et);)var ct=Je.index;De=De.slice(0,ct===n?Ce:ct)}}else if(m.indexOf(Qr(V),Ce)!=Ce){var Ct=De.lastIndexOf(V);Ct>-1&&(De=De.slice(0,Ct))}return De+$}function Ve(m){return m=fr(m),m&&gn.test(m)?m.replace(Ut,wT):m}var Ht=Ku(function(m,b,O){return m+(O?" ":"")+b.toUpperCase()}),hn=$y("toUpperCase");function Vr(m,b,O){return m=fr(m),b=O?n:b,b===n?vT(m)?PO(m):kO(m):m.match(b)||[]}var Le=On(function(m,b){try{return li(m,n,b)}catch(O){return Cm(O)?O:new on(O)}}),_e=dl(function(m,b){return Ho(b,function(O){O=_i(O),vo(m,O,od(m[O],m))}),m});function je(m){var b=m==null?0:m.length,O=Qt();return m=b?Lr(m,function($){if(typeof $[1]!="function")throw new mo(o);return[O($[0]),$[1]]}):[],On(function($){for(var V=-1;++Vq)return[];var O=Y,$=pn(m,Y);b=Qt(b),m-=Y;for(var V=$u($,b);++O0||b<0)?new Tn(O):(m<0?O=O.takeRight(-m):m&&(O=O.drop(m)),b!==n&&(b=xn(b),O=b<0?O.dropRight(-b):O.take(b-m)),O)},Tn.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},Tn.prototype.toArray=function(){return this.take(Y)},Zo(Tn.prototype,function(m,b){var O=/^(?:filter|find|map|reject)|While$/.test(b),$=/^(?:head|last)$/.test(b),V=K[$?"take"+(b=="last"?"Right":""):b],te=$||/^find/.test(b);V&&(K.prototype[b]=function(){var pe=this.__wrapped__,Ce=$?[1]:arguments,De=pe instanceof Tn,Je=Ce[0],et=De||bn(pe),ct=function(Hn){var Zn=V.apply(K,zl([Hn],Ce));return $&&Ct?Zn[0]:Zn};et&&O&&typeof Je=="function"&&Je.length!=1&&(De=et=!1);var Ct=this.__chain__,Vt=!!this.__actions__.length,dn=te&&!Ct,Ln=De&&!Vt;if(!te&&et){pe=Ln?pe:new Tn(this);var fn=m.apply(pe,Ce);return fn.__actions__.push({func:ep,args:[ct],thisArg:n}),new go(fn,Ct)}return dn&&Ln?m.apply(this,Ce):(fn=this.thru(ct),dn?$?fn.value()[0]:fn.value():fn)})}),Ho(["pop","push","shift","sort","splice","unshift"],function(m){var b=Uh[m],O=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",$=/^(?:pop|shift)$/.test(m);K.prototype[m]=function(){var V=arguments;if($&&!this.__chain__){var te=this.value();return b.apply(bn(te)?te:[],V)}return this[O](function(pe){return b.apply(bn(pe)?pe:[],V)})}}),Zo(Tn.prototype,function(m,b){var O=K[b];if(O){var $=O.name+"";cr.call(ju,$)||(ju[$]=[]),ju[$].push({name:b,func:O})}}),ju[am(n,C).name]=[{name:"wrapper",func:n}],Tn.prototype.clone=OT,Tn.prototype.reverse=Rf,Tn.prototype.value=Ty,K.prototype.at=mC,K.prototype.chain=HO,K.prototype.commit=lu,K.prototype.next=Ky,K.prototype.plant=tp,K.prototype.reverse=gC,K.prototype.toJSON=K.prototype.valueOf=K.prototype.value=vC,K.prototype.first=K.prototype.head,rl&&(K.prototype[rl]=Vw),K}),fs=AO();Sn?((Sn.exports=fs)._=fs,zt._=fs):bt._=fs}).call(ale)})(pS,pS.exports)),pS.exports}var Ta=ile();function Pn(e){var n,r,a,i,o,l,u,d;const t={};if(e.error&&Array.isArray((n=e.error)==null?void 0:n.errors))for(const f of(r=e.error)==null?void 0:r.errors)Ta.set(t,f.location,f.messageTranslated||f.message);return e.status&&e.ok===!1?{form:`${e.status}`}:((a=e==null?void 0:e.error)!=null&&a.code&&(t.form=(i=e==null?void 0:e.error)==null?void 0:i.code),(o=e==null?void 0:e.error)!=null&&o.message&&(t.form=(l=e==null?void 0:e.error)==null?void 0:l.message),(u=e==null?void 0:e.error)!=null&&u.messageTranslated&&(t.form=(d=e==null?void 0:e.error)==null?void 0:d.messageTranslated),e.message?{form:`${e.message}`}:t)}const St=e=>(t,n,r)=>{const a=e.prefix+n;return fetch(a,{method:t,headers:{Accept:"application/json","Content-Type":"application/json",...e.headers||{}},body:JSON.stringify(r)}).then(i=>{const o=i.headers.get("content-type");if(o&&o.indexOf("application/json")!==-1)return i.json().then(l=>{if(i.ok)return l;throw l});throw i})};var ole=function(t){return sle(t)&&!lle(t)};function sle(e){return!!e&&typeof e=="object"}function lle(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||dle(e)}var ule=typeof Symbol=="function"&&Symbol.for,cle=ule?Symbol.for("react.element"):60103;function dle(e){return e.$$typeof===cle}function fle(e){return Array.isArray(e)?[]:{}}function ax(e,t){return t.clone!==!1&&t.isMergeableObject(e)?jS(fle(e),e,t):e}function ple(e,t,n){return e.concat(t).map(function(r){return ax(r,n)})}function hle(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(a){r[a]=ax(e[a],n)}),Object.keys(t).forEach(function(a){!n.isMergeableObject(t[a])||!e[a]?r[a]=ax(t[a],n):r[a]=jS(e[a],t[a],n)}),r}function jS(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||ple,n.isMergeableObject=n.isMergeableObject||ole;var r=Array.isArray(t),a=Array.isArray(e),i=r===a;return i?r?n.arrayMerge(e,t,n):hle(e,t,n):ax(t,n)}jS.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,a){return jS(r,a,n)},{})};var Z$=jS,zX=typeof global=="object"&&global&&global.Object===Object&&global,mle=typeof self=="object"&&self&&self.Object===Object&&self,Nc=zX||mle||Function("return this")(),oh=Nc.Symbol,qX=Object.prototype,gle=qX.hasOwnProperty,vle=qX.toString,_1=oh?oh.toStringTag:void 0;function yle(e){var t=gle.call(e,_1),n=e[_1];try{e[_1]=void 0;var r=!0}catch{}var a=vle.call(e);return r&&(t?e[_1]=n:delete e[_1]),a}var ble=Object.prototype,wle=ble.toString;function Sle(e){return wle.call(e)}var Ele="[object Null]",Tle="[object Undefined]",xU=oh?oh.toStringTag:void 0;function jv(e){return e==null?e===void 0?Tle:Ele:xU&&xU in Object(e)?yle(e):Sle(e)}function HX(e,t){return function(n){return e(t(n))}}var tF=HX(Object.getPrototypeOf,Object);function Uv(e){return e!=null&&typeof e=="object"}var Cle="[object Object]",kle=Function.prototype,xle=Object.prototype,VX=kle.toString,_le=xle.hasOwnProperty,Ole=VX.call(Object);function _U(e){if(!Uv(e)||jv(e)!=Cle)return!1;var t=tF(e);if(t===null)return!0;var n=_le.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&VX.call(n)==Ole}function Rle(){this.__data__=[],this.size=0}function GX(e,t){return e===t||e!==e&&t!==t}function s_(e,t){for(var n=e.length;n--;)if(GX(e[n][0],t))return n;return-1}var Ple=Array.prototype,Ale=Ple.splice;function Nle(e){var t=this.__data__,n=s_(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ale.call(t,n,1),--this.size,!0}function Mle(e){var t=this.__data__,n=s_(t,e);return n<0?void 0:t[n][1]}function Ile(e){return s_(this.__data__,e)>-1}function Dle(e,t){var n=this.__data__,r=s_(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ef(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Due}var $ue="[object Arguments]",Lue="[object Array]",Fue="[object Boolean]",jue="[object Date]",Uue="[object Error]",Bue="[object Function]",Wue="[object Map]",zue="[object Number]",que="[object Object]",Hue="[object RegExp]",Vue="[object Set]",Gue="[object String]",Yue="[object WeakMap]",Kue="[object ArrayBuffer]",Xue="[object DataView]",Que="[object Float32Array]",Jue="[object Float64Array]",Zue="[object Int8Array]",ece="[object Int16Array]",tce="[object Int32Array]",nce="[object Uint8Array]",rce="[object Uint8ClampedArray]",ace="[object Uint16Array]",ice="[object Uint32Array]",Yr={};Yr[Que]=Yr[Jue]=Yr[Zue]=Yr[ece]=Yr[tce]=Yr[nce]=Yr[rce]=Yr[ace]=Yr[ice]=!0;Yr[$ue]=Yr[Lue]=Yr[Kue]=Yr[Fue]=Yr[Xue]=Yr[jue]=Yr[Uue]=Yr[Bue]=Yr[Wue]=Yr[zue]=Yr[que]=Yr[Hue]=Yr[Vue]=Yr[Gue]=Yr[Yue]=!1;function oce(e){return Uv(e)&&eQ(e.length)&&!!Yr[jv(e)]}function nF(e){return function(t){return e(t)}}var tQ=typeof Ls=="object"&&Ls&&!Ls.nodeType&&Ls,SS=tQ&&typeof no=="object"&&no&&!no.nodeType&&no,sce=SS&&SS.exports===tQ,IR=sce&&zX.process,o0=(function(){try{var e=SS&&SS.require&&SS.require("util").types;return e||IR&&IR.binding&&IR.binding("util")}catch{}})(),MU=o0&&o0.isTypedArray,lce=MU?nF(MU):oce,uce=Object.prototype,cce=uce.hasOwnProperty;function nQ(e,t){var n=NE(e),r=!n&&Oue(e),a=!n&&!r&&ZX(e),i=!n&&!r&&!a&&lce(e),o=n||r||a||i,l=o?Cue(e.length,String):[],u=l.length;for(var d in e)(t||cce.call(e,d))&&!(o&&(d=="length"||a&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Iue(d,u)))&&l.push(d);return l}var dce=Object.prototype;function rF(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||dce;return e===n}var fce=HX(Object.keys,Object),pce=Object.prototype,hce=pce.hasOwnProperty;function mce(e){if(!rF(e))return fce(e);var t=[];for(var n in Object(e))hce.call(e,n)&&n!="constructor"&&t.push(n);return t}function rQ(e){return e!=null&&eQ(e.length)&&!YX(e)}function aF(e){return rQ(e)?nQ(e):mce(e)}function gce(e,t){return e&&u_(t,aF(t),e)}function vce(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var yce=Object.prototype,bce=yce.hasOwnProperty;function wce(e){if(!AE(e))return vce(e);var t=rF(e),n=[];for(var r in e)r=="constructor"&&(t||!bce.call(e,r))||n.push(r);return n}function iF(e){return rQ(e)?nQ(e,!0):wce(e)}function Sce(e,t){return e&&u_(t,iF(t),e)}var aQ=typeof Ls=="object"&&Ls&&!Ls.nodeType&&Ls,IU=aQ&&typeof no=="object"&&no&&!no.nodeType&&no,Ece=IU&&IU.exports===aQ,DU=Ece?Nc.Buffer:void 0,$U=DU?DU.allocUnsafe:void 0;function Tce(e,t){if(t)return e.slice();var n=e.length,r=$U?$U(n):new e.constructor(n);return e.copy(r),r}function iQ(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0)&&(n[a]=e[a]);return n}var Zx=R.createContext(void 0);Zx.displayName="FormikContext";var Jde=Zx.Provider;Zx.Consumer;function Zde(){var e=R.useContext(Zx);return e}var ml=function(t){return typeof t=="function"},e_=function(t){return t!==null&&typeof t=="object"},efe=function(t){return String(Math.floor(Number(t)))===t},_R=function(t){return Object.prototype.toString.call(t)==="[object String]"},tfe=function(t){return R.Children.count(t)===0},OR=function(t){return e_(t)&&ml(t.then)};function Ps(e,t,n,r){r===void 0&&(r=0);for(var a=nQ(t);e&&r=0?[]:{}}}return(i===0?e:a)[o[i]]===n?e:(n===void 0?delete a[o[i]]:a[o[i]]=n,i===0&&n===void 0&&delete r[o[i]],r)}function aQ(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var a=0,i=Object.keys(e);a0?dt.map(function(ut){return z(ut,Ps(Oe,ut))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ft).then(function(ut){return ut.reduce(function(Nt,U,D){return U==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||U&&(Nt=bv(Nt,dt[D],U)),Nt},{})})},[z]),le=R.useCallback(function(Oe){return Promise.all([Q(Oe),y.validationSchema?j(Oe):{},y.validate?L(Oe):{}]).then(function(dt){var ft=dt[0],ut=dt[1],Nt=dt[2],U=U$.all([ft,ut,Nt],{arrayMerge:ife});return U})},[y.validate,y.validationSchema,Q,L,j]),re=pl(function(Oe){return Oe===void 0&&(Oe=N.values),I({type:"SET_ISVALIDATING",payload:!0}),le(Oe).then(function(dt){return C.current&&(I({type:"SET_ISVALIDATING",payload:!1}),I({type:"SET_ERRORS",payload:dt})),dt})});R.useEffect(function(){o&&C.current===!0&&Jg(h.current,y.initialValues)&&re(h.current)},[o,re]);var ge=R.useCallback(function(Oe){var dt=Oe&&Oe.values?Oe.values:h.current,ft=Oe&&Oe.errors?Oe.errors:v.current?v.current:y.initialErrors||{},ut=Oe&&Oe.touched?Oe.touched:E.current?E.current:y.initialTouched||{},Nt=Oe&&Oe.status?Oe.status:T.current?T.current:y.initialStatus;h.current=dt,v.current=ft,E.current=ut,T.current=Nt;var U=function(){I({type:"RESET_FORM",payload:{isSubmitting:!!Oe&&!!Oe.isSubmitting,errors:ft,touched:ut,status:Nt,values:dt,isValidating:!!Oe&&!!Oe.isValidating,submitCount:Oe&&Oe.submitCount&&typeof Oe.submitCount=="number"?Oe.submitCount:0}})};if(y.onReset){var D=y.onReset(N.values,Ge);OR(D)?D.then(U):U()}else U()},[y.initialErrors,y.initialStatus,y.initialTouched,y.onReset]);R.useEffect(function(){C.current===!0&&!Jg(h.current,y.initialValues)&&d&&(h.current=y.initialValues,ge(),o&&re(h.current))},[d,y.initialValues,ge,o,re]),R.useEffect(function(){d&&C.current===!0&&!Jg(v.current,y.initialErrors)&&(v.current=y.initialErrors||Am,I({type:"SET_ERRORS",payload:y.initialErrors||Am}))},[d,y.initialErrors]),R.useEffect(function(){d&&C.current===!0&&!Jg(E.current,y.initialTouched)&&(E.current=y.initialTouched||jC,I({type:"SET_TOUCHED",payload:y.initialTouched||jC}))},[d,y.initialTouched]),R.useEffect(function(){d&&C.current===!0&&!Jg(T.current,y.initialStatus)&&(T.current=y.initialStatus,I({type:"SET_STATUS",payload:y.initialStatus}))},[d,y.initialStatus,y.initialTouched]);var me=pl(function(Oe){if(k.current[Oe]&&ml(k.current[Oe].validate)){var dt=Ps(N.values,Oe),ft=k.current[Oe].validate(dt);return OR(ft)?(I({type:"SET_ISVALIDATING",payload:!0}),ft.then(function(ut){return ut}).then(function(ut){I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:ut}}),I({type:"SET_ISVALIDATING",payload:!1})})):(I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:ft}}),Promise.resolve(ft))}else if(y.validationSchema)return I({type:"SET_ISVALIDATING",payload:!0}),j(N.values,Oe).then(function(ut){return ut}).then(function(ut){I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:Ps(ut,Oe)}}),I({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),W=R.useCallback(function(Oe,dt){var ft=dt.validate;k.current[Oe]={validate:ft}},[]),G=R.useCallback(function(Oe){delete k.current[Oe]},[]),q=pl(function(Oe,dt){I({type:"SET_TOUCHED",payload:Oe});var ft=dt===void 0?a:dt;return ft?re(N.values):Promise.resolve()}),ce=R.useCallback(function(Oe){I({type:"SET_ERRORS",payload:Oe})},[]),H=pl(function(Oe,dt){var ft=ml(Oe)?Oe(N.values):Oe;I({type:"SET_VALUES",payload:ft});var ut=dt===void 0?n:dt;return ut?re(ft):Promise.resolve()}),Y=R.useCallback(function(Oe,dt){I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:dt}})},[]),ie=pl(function(Oe,dt,ft){I({type:"SET_FIELD_VALUE",payload:{field:Oe,value:dt}});var ut=ft===void 0?n:ft;return ut?re(bv(N.values,Oe,dt)):Promise.resolve()}),J=R.useCallback(function(Oe,dt){var ft=dt,ut=Oe,Nt;if(!_R(Oe)){Oe.persist&&Oe.persist();var U=Oe.target?Oe.target:Oe.currentTarget,D=U.type,F=U.name,ae=U.id,Te=U.value,Fe=U.checked;U.outerHTML;var We=U.options,Tt=U.multiple;ft=dt||F||ae,ut=/number|range/.test(D)?(Nt=parseFloat(Te),isNaN(Nt)?"":Nt):/checkbox/.test(D)?sfe(Ps(N.values,ft),Fe,Te):We&&Tt?ofe(We):Te}ft&&ie(ft,ut)},[ie,N.values]),ee=pl(function(Oe){if(_R(Oe))return function(dt){return J(dt,Oe)};J(Oe)}),Z=pl(function(Oe,dt,ft){dt===void 0&&(dt=!0),I({type:"SET_FIELD_TOUCHED",payload:{field:Oe,value:dt}});var ut=ft===void 0?a:ft;return ut?re(N.values):Promise.resolve()}),ue=R.useCallback(function(Oe,dt){Oe.persist&&Oe.persist();var ft=Oe.target,ut=ft.name,Nt=ft.id;ft.outerHTML;var U=dt||ut||Nt;Z(U,!0)},[Z]),ke=pl(function(Oe){if(_R(Oe))return function(dt){return ue(dt,Oe)};ue(Oe)}),fe=R.useCallback(function(Oe){ml(Oe)?I({type:"SET_FORMIK_STATE",payload:Oe}):I({type:"SET_FORMIK_STATE",payload:function(){return Oe}})},[]),xe=R.useCallback(function(Oe){I({type:"SET_STATUS",payload:Oe})},[]),Ie=R.useCallback(function(Oe){I({type:"SET_ISSUBMITTING",payload:Oe})},[]),qe=pl(function(){return I({type:"SUBMIT_ATTEMPT"}),re().then(function(Oe){var dt=Oe instanceof Error,ft=!dt&&Object.keys(Oe).length===0;if(ft){var ut;try{if(ut=at(),ut===void 0)return}catch(Nt){throw Nt}return Promise.resolve(ut).then(function(Nt){return C.current&&I({type:"SUBMIT_SUCCESS"}),Nt}).catch(function(Nt){if(C.current)throw I({type:"SUBMIT_FAILURE"}),Nt})}else if(C.current&&(I({type:"SUBMIT_FAILURE"}),dt))throw Oe})}),tt=pl(function(Oe){Oe&&Oe.preventDefault&&ml(Oe.preventDefault)&&Oe.preventDefault(),Oe&&Oe.stopPropagation&&ml(Oe.stopPropagation)&&Oe.stopPropagation(),qe().catch(function(dt){console.warn("Warning: An unhandled error was caught from submitForm()",dt)})}),Ge={resetForm:ge,validateForm:re,validateField:me,setErrors:ce,setFieldError:Y,setFieldTouched:Z,setFieldValue:ie,setStatus:xe,setSubmitting:Ie,setTouched:q,setValues:H,setFormikState:fe,submitForm:qe},at=pl(function(){return f(N.values,Ge)}),Et=pl(function(Oe){Oe&&Oe.preventDefault&&ml(Oe.preventDefault)&&Oe.preventDefault(),Oe&&Oe.stopPropagation&&ml(Oe.stopPropagation)&&Oe.stopPropagation(),ge()}),kt=R.useCallback(function(Oe){return{value:Ps(N.values,Oe),error:Ps(N.errors,Oe),touched:!!Ps(N.touched,Oe),initialValue:Ps(h.current,Oe),initialTouched:!!Ps(E.current,Oe),initialError:Ps(v.current,Oe)}},[N.errors,N.touched,N.values]),xt=R.useCallback(function(Oe){return{setValue:function(ft,ut){return ie(Oe,ft,ut)},setTouched:function(ft,ut){return Z(Oe,ft,ut)},setError:function(ft){return Y(Oe,ft)}}},[ie,Z,Y]),Rt=R.useCallback(function(Oe){var dt=e_(Oe),ft=dt?Oe.name:Oe,ut=Ps(N.values,ft),Nt={name:ft,value:ut,onChange:ee,onBlur:ke};if(dt){var U=Oe.type,D=Oe.value,F=Oe.as,ae=Oe.multiple;U==="checkbox"?D===void 0?Nt.checked=!!ut:(Nt.checked=!!(Array.isArray(ut)&&~ut.indexOf(D)),Nt.value=D):U==="radio"?(Nt.checked=ut===D,Nt.value=D):F==="select"&&ae&&(Nt.value=Nt.value||[],Nt.multiple=!0)}return Nt},[ke,ee,N.values]),cn=R.useMemo(function(){return!Jg(h.current,N.values)},[h.current,N.values]),qt=R.useMemo(function(){return typeof l<"u"?cn?N.errors&&Object.keys(N.errors).length===0:l!==!1&&ml(l)?l(y):l:N.errors&&Object.keys(N.errors).length===0},[l,cn,N.errors,y]),Wt=hi({},N,{initialValues:h.current,initialErrors:v.current,initialTouched:E.current,initialStatus:T.current,handleBlur:ke,handleChange:ee,handleReset:Et,handleSubmit:tt,resetForm:ge,setErrors:ce,setFormikState:fe,setFieldTouched:Z,setFieldValue:ie,setFieldError:Y,setStatus:xe,setSubmitting:Ie,setTouched:q,setValues:H,submitForm:qe,validateForm:re,validateField:me,isValid:qt,dirty:cn,unregisterField:G,registerField:W,getFieldProps:Rt,getFieldMeta:kt,getFieldHelpers:xt,validateOnBlur:a,validateOnChange:n,validateOnMount:o});return Wt}function ss(e){var t=Jd(e),n=e.component,r=e.children,a=e.render,i=e.innerRef;return R.useImperativeHandle(i,function(){return t}),R.createElement(Jde,{value:t},n?R.createElement(n,t):a?a(t):r?ml(r)?r(t):tfe(r)?null:R.Children.only(r):null)}function rfe(e){var t={};if(e.inner){if(e.inner.length===0)return bv(t,e.path,e.message);for(var a=e.inner,n=Array.isArray(a),r=0,a=n?a:a[Symbol.iterator]();;){var i;if(n){if(r>=a.length)break;i=a[r++]}else{if(r=a.next(),r.done)break;i=r.value}var o=i;Ps(t,o.path)||(t=bv(t,o.path,o.message))}}return t}function afe(e,t,n,r){n===void 0&&(n=!1);var a=H$(e);return t[n?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function H$(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(a){return Array.isArray(a)===!0||hU(a)?H$(a):a!==""?a:void 0}):hU(e[r])?t[r]=H$(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function ife(e,t,n){var r=e.slice();return t.forEach(function(i,o){if(typeof r[o]>"u"){var l=n.clone!==!1,u=l&&n.isMergeableObject(i);r[o]=u?U$(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[o]=U$(e[o],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function ofe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function sfe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],a=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),a=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!a?r.concat(n):a?r.slice(0,i).concat(r.slice(i+1)):r}var lfe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?R.useLayoutEffect:R.useEffect;function pl(e){var t=R.useRef(e);return lfe(function(){t.current=e}),R.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a(e.NewEntity="new_entity",e.SidebarToggle="sidebarToggle",e.NewChildEntity="new_child_entity",e.EditEntity="edit_entity",e.ViewQuestions="view_questions",e.ExportTable="export_table",e.CommonBack="common_back",e.StopStart="StopStart",e.Delete="delete",e.Select1Index="select1_index",e.Select2Index="select2_index",e.Select3Index="select3_index",e.Select4Index="select4_index",e.Select5Index="select5_index",e.Select6Index="select6_index",e.Select7Index="select7_index",e.Select8Index="select8_index",e.Select9Index="select9_index",e.ToggleLock="l",e))(Ir||{});function V$(){if(typeof window>"u")return"mac";let e=window==null?void 0:window.navigator.userAgent,t=window==null?void 0:window.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],r=["Win32","Win64","Windows","WinCE"],a=["iPhone","iPad","iPod"],i="mac";return n.indexOf(t)!==-1?i="mac":a.indexOf(t)!==-1?i="ios":r.indexOf(t)!==-1?i="windows":/Android/.test(e)?i="android":!i&&/Linux/.test(t)?i="linux":i="web",i}const Pt=V$(),it={edit:{default:"ios-theme/icons/edit.svg"},add:{default:"ios-theme/icons/add.svg"},cancel:{default:"ios-theme/icons/cancel.svg"},delete:{default:"ios-theme/icons/delete.svg"},entity:{default:"ios-theme/icons/entity.svg"},left:{default:"ios-theme/icons/left.svg"},menu:{default:"ios-theme/icons/menu.svg"},backup:{default:"ios-theme/icons/backup.svg"},right:{default:"ios-theme/icons/right.svg"},settings:{default:"ios-theme/icons/settings.svg"},user:{default:"ios-theme/icons/user.svg"},export:{default:"ios-theme/icons/export.svg"},up:{default:"ios-theme/icons/up.svg"},dataNode:{default:"ios-theme/icons/dnode.svg"},ctrlSheet:{default:"ios-theme/icons/ctrlsheet.svg"},gpiomode:{default:"ios-theme/icons/gpiomode.svg"},gpiostate:{default:"ios-theme/icons/gpiostate.svg"},down:{default:"ios-theme/icons/down.svg"},turnoff:{default:"ios-theme/icons/turnoff.svg"},mqtt:{default:"ios-theme/icons/mqtt.svg"},cart:{default:"ios-theme/icons/cart.svg"},questionBank:{default:"ios-theme/icons/questions.svg"},dashboard:{default:"ios-theme/icons/dashboard.svg"},country:{default:"ios-theme/icons/country.svg"},order:{default:"ios-theme/icons/order.svg"},province:{default:"ios-theme/icons/province.svg"},city:{default:"ios-theme/icons/city.svg"},about:{default:"ios-theme/icons/about.svg"},sms:{default:"ios-theme/icons/sms.svg"},product:{default:"ios-theme/icons/product.svg"},discount:{default:"ios-theme/icons/discount.svg"},tag:{default:"ios-theme/icons/tag.svg"},category:{default:"ios-theme/icons/category.svg"},brand:{default:"ios-theme/icons/brand.svg"},form:{default:"ios-theme/icons/form.svg"}},ku={dashboard:it.dashboard[Pt]?it.dashboard[Pt]:it.dashboard.default,up:it.up[Pt]?it.up[Pt]:it.up.default,questionBank:it.questionBank[Pt]?it.questionBank[Pt]:it.questionBank.default,down:it.down[Pt]?it.down[Pt]:it.down.default,edit:it.edit[Pt]?it.edit[Pt]:it.edit.default,add:it.add[Pt]?it.add[Pt]:it.add.default,cancel:it.cancel[Pt]?it.cancel[Pt]:it.cancel.default,delete:it.delete[Pt]?it.delete[Pt]:it.delete.default,discount:it.discount[Pt]?it.discount[Pt]:it.discount.default,cart:it.cart[Pt]?it.cart[Pt]:it.cart.default,entity:it.entity[Pt]?it.entity[Pt]:it.entity.default,sms:it.sms[Pt]?it.sms[Pt]:it.sms.default,left:it.left[Pt]?it.left[Pt]:it.left.default,brand:it.brand[Pt]?it.brand[Pt]:it.brand.default,menu:it.menu[Pt]?it.menu[Pt]:it.menu.default,right:it.right[Pt]?it.right[Pt]:it.right.default,settings:it.settings[Pt]?it.settings[Pt]:it.settings.default,dataNode:it.dataNode[Pt]?it.dataNode[Pt]:it.dataNode.default,user:it.user[Pt]?it.user[Pt]:it.user.default,city:it.city[Pt]?it.city[Pt]:it.city.default,province:it.province[Pt]?it.province[Pt]:it.province.default,about:it.about[Pt]?it.about[Pt]:it.about.default,turnoff:it.turnoff[Pt]?it.turnoff[Pt]:it.turnoff.default,ctrlSheet:it.ctrlSheet[Pt]?it.ctrlSheet[Pt]:it.ctrlSheet.default,country:it.country[Pt]?it.country[Pt]:it.country.default,export:it.export[Pt]?it.export[Pt]:it.export.default,gpio:it.ctrlSheet[Pt]?it.ctrlSheet[Pt]:it.ctrlSheet.default,order:it.order[Pt]?it.order[Pt]:it.order.default,mqtt:it.mqtt[Pt]?it.mqtt[Pt]:it.mqtt.default,tag:it.tag[Pt]?it.tag[Pt]:it.tag.default,product:it.product[Pt]?it.product[Pt]:it.product.default,category:it.category[Pt]?it.category[Pt]:it.category.default,form:it.form[Pt]?it.form[Pt]:it.form.default,gpiomode:it.gpiomode[Pt]?it.gpiomode[Pt]:it.gpiomode.default,backup:it.backup[Pt]?it.backup[Pt]:it.backup.default,gpiostate:it.gpiostate[Pt]?it.gpiostate[Pt]:it.gpiostate.default};function $s(e){const t=kr.PUBLIC_URL;return e.startsWith("$")?t+ku[e.substr(1)]:e.startsWith(t)?e:t+e}function zU(){const e=At();return sr(),w.jsx(w.Fragment,{children:w.jsxs("div",{className:"not-found-pagex",children:[w.jsx("img",{src:$s("/common/error.svg")}),w.jsx("div",{className:"content",children:w.jsx("p",{children:e.not_found_404})})]})})}function cfe(){const{locale:e,asPath:t}=sr();R.useEffect(()=>{var n;(n=document.querySelector("html"))==null||n.setAttribute("dir",["fa","ar"].includes(e)?"rtl":"ltr")},[t])}var G$=(e=>(e.Green="#00bd00",e.Red="#ff0313",e.Orange="#fa7a00",e.Yellow="#f4b700",e.Blue="#0072ff",e.Purple="#ad41d1",e.Grey="#717176",e))(G$||{});function Y$(e){"@babel/helpers - typeof";return Y$=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y$(e)}function dfe(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function ffe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pfe(e,t,n){return t=MS(t),hfe(e,Q3()?Reflect.construct(t,n||[],MS(e).constructor):t.apply(e,n))}function hfe(e,t){if(t&&(Y$(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mfe(e)}function mfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gfe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NS(e,t)}function K$(e){var t=typeof Map=="function"?new Map:void 0;return K$=function(r){if(r===null||!yfe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return vfe(r,arguments,MS(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),NS(a,r)},K$(e)}function vfe(e,t,n){if(Q3())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&NS(a,n.prototype),a}function Q3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q3=function(){return!!e})()}function yfe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function NS(e,t){return NS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},NS(e,t)}function MS(e){return MS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},MS(e)}var UC=(function(e){function t(n){var r,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(ffe(this,t),r=pfe(this,t,[n]),r.originalRequest=i,r.originalResponse=o,r.causingError=a,a!=null&&(n+=", caused by ".concat(a.toString())),i!=null){var l=i.getHeader("X-Request-ID")||"n/a",u=i.getMethod(),d=i.getURL(),f=o?o.getStatus():"n/a",g=o?o.getBody()||"":"n/a";n+=", originated from request (method: ".concat(u,", url: ").concat(d,", response code: ").concat(f,", response text: ").concat(g,", request id: ").concat(l,")")}return r.message=n,r}return gfe(t,e),dfe(t)})(K$(Error));function IS(e){"@babel/helpers - typeof";return IS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},IS(e)}function bfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wfe(e,t){for(var n=0;n{let t={};return e.forEach((n,r)=>t[n]=r),t})(aS),_fe=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Bi=String.fromCharCode.bind(String),VU=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),oQ=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),sQ=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),lQ=e=>{let t,n,r,a,i="";const o=e.length%3;for(let l=0;l255||(r=e.charCodeAt(l++))>255||(a=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|a,i+=aS[t>>18&63]+aS[t>>12&63]+aS[t>>6&63]+aS[t&63]}return o?i.slice(0,o-3)+"===".substring(o):i},J3=typeof btoa=="function"?e=>btoa(e):c0?e=>Buffer.from(e,"binary").toString("base64"):lQ,X$=c0?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,a=e.length;rt?oQ(X$(e)):X$(e),Ofe=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Bi(192|t>>>6)+Bi(128|t&63):Bi(224|t>>>12&15)+Bi(128|t>>>6&63)+Bi(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Bi(240|t>>>18&7)+Bi(128|t>>>12&63)+Bi(128|t>>>6&63)+Bi(128|t&63)}},Rfe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,uQ=e=>e.replace(Rfe,Ofe),GU=c0?e=>Buffer.from(e,"utf8").toString("base64"):HU?e=>X$(HU.encode(e)):e=>J3(uQ(e)),Fb=(e,t=!1)=>t?oQ(GU(e)):GU(e),YU=e=>Fb(e,!0),Pfe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Afe=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return Bi((n>>>10)+55296)+Bi((n&1023)+56320);case 3:return Bi((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Bi((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},cQ=e=>e.replace(Pfe,Afe),dQ=e=>{if(e=e.replace(/\s+/g,""),!_fe.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,n="",r,a;for(let i=0;i>16&255):a===64?Bi(t>>16&255,t>>8&255):Bi(t>>16&255,t>>8&255,t&255);return n},Z3=typeof atob=="function"?e=>atob(sQ(e)):c0?e=>Buffer.from(e,"base64").toString("binary"):dQ,fQ=c0?e=>VU(Buffer.from(e,"base64")):e=>VU(Z3(e).split("").map(t=>t.charCodeAt(0))),pQ=e=>fQ(hQ(e)),Nfe=c0?e=>Buffer.from(e,"base64").toString("utf8"):qU?e=>qU.decode(fQ(e)):e=>cQ(Z3(e)),hQ=e=>sQ(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Q$=e=>Nfe(hQ(e)),Mfe=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},mQ=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),gQ=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,mQ(n));e("fromBase64",function(){return Q$(this)}),e("toBase64",function(t){return Fb(this,t)}),e("toBase64URI",function(){return Fb(this,!0)}),e("toBase64URL",function(){return Fb(this,!0)}),e("toUint8Array",function(){return pQ(this)})},vQ=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,mQ(n));e("toBase64",function(t){return wk(this,t)}),e("toBase64URI",function(){return wk(this,!0)}),e("toBase64URL",function(){return wk(this,!0)})},Ife=()=>{gQ(),vQ()},Dfe={version:iQ,VERSION:kfe,atob:Z3,atobPolyfill:dQ,btoa:J3,btoaPolyfill:lQ,fromBase64:Q$,toBase64:Fb,encode:Fb,encodeURI:YU,encodeURL:YU,utob:uQ,btou:cQ,decode:Q$,isValid:Mfe,fromUint8Array:wk,toUint8Array:pQ,extendString:gQ,extendUint8Array:vQ,extendBuiltins:Ife};var RR,KU;function $fe(){return KU||(KU=1,RR=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}),RR}var WC={},XU;function Lfe(){if(XU)return WC;XU=1;var e=Object.prototype.hasOwnProperty,t;function n(o){try{return decodeURIComponent(o.replace(/\+/g," "))}catch{return null}}function r(o){try{return encodeURIComponent(o)}catch{return null}}function a(o){for(var l=/([^=?#&]+)=?([^&]*)/g,u={},d;d=l.exec(o);){var f=n(d[1]),g=n(d[2]);f===null||g===null||f in u||(u[f]=g)}return u}function i(o,l){l=l||"";var u=[],d,f;typeof l!="string"&&(l="?");for(f in o)if(e.call(o,f)){if(d=o[f],!d&&(d===null||d===t||isNaN(d))&&(d=""),f=r(f),d=r(d),f===null||d===null)continue;u.push(f+"="+d)}return u.length?l+u.join("&"):""}return WC.stringify=i,WC.parse=a,WC}var PR,QU;function Ffe(){if(QU)return PR;QU=1;var e=$fe(),t=Lfe(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,i=/:\d+$/,o=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function u(k){return(k||"").toString().replace(n,"")}var d=[["#","hash"],["?","query"],function(_,A){return y(A.protocol)?_.replace(/\\/g,"/"):_},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};function g(k){var _;typeof window<"u"?_=window:typeof El<"u"?_=El:typeof self<"u"?_=self:_={};var A=_.location||{};k=k||A;var P={},N=typeof k,I;if(k.protocol==="blob:")P=new E(unescape(k.pathname),{});else if(N==="string"){P=new E(k,{});for(I in f)delete P[I]}else if(N==="object"){for(I in k)I in f||(P[I]=k[I]);P.slashes===void 0&&(P.slashes=a.test(k.href))}return P}function y(k){return k==="file:"||k==="ftp:"||k==="http:"||k==="https:"||k==="ws:"||k==="wss:"}function h(k,_){k=u(k),k=k.replace(r,""),_=_||{};var A=o.exec(k),P=A[1]?A[1].toLowerCase():"",N=!!A[2],I=!!A[3],L=0,j;return N?I?(j=A[2]+A[3]+A[4],L=A[2].length+A[3].length):(j=A[2]+A[4],L=A[2].length):I?(j=A[3]+A[4],L=A[3].length):j=A[4],P==="file:"?L>=2&&(j=j.slice(2)):y(P)?j=A[4]:P?N&&(j=j.slice(2)):L>=2&&y(_.protocol)&&(j=A[4]),{protocol:P,slashes:N||y(P),slashesCount:L,rest:j}}function v(k,_){if(k==="")return _;for(var A=(_||"/").split("/").slice(0,-1).concat(k.split("/")),P=A.length,N=A[P-1],I=!1,L=0;P--;)A[P]==="."?A.splice(P,1):A[P]===".."?(A.splice(P,1),L++):L&&(P===0&&(I=!0),A.splice(P,1),L--);return I&&A.unshift(""),(N==="."||N==="..")&&A.push(""),A.join("/")}function E(k,_,A){if(k=u(k),k=k.replace(r,""),!(this instanceof E))return new E(k,_,A);var P,N,I,L,j,z,Q=d.slice(),le=typeof _,re=this,ge=0;for(le!=="object"&&le!=="string"&&(A=_,_=null),A&&typeof A!="function"&&(A=t.parse),_=g(_),N=h(k||"",_),P=!N.protocol&&!N.slashes,re.slashes=N.slashes||P&&_.slashes,re.protocol=N.protocol||_.protocol||"",k=N.rest,(N.protocol==="file:"&&(N.slashesCount!==2||l.test(k))||!N.slashes&&(N.protocol||N.slashesCount<2||!y(re.protocol)))&&(Q[3]=[/(.*)/,"pathname"]);ge=0;--H){var Y=this.tryEntries[H],ie=Y.completion;if(Y.tryLoc==="root")return ce("end");if(Y.tryLoc<=this.prev){var J=r.call(Y,"catchLoc"),ee=r.call(Y,"finallyLoc");if(J&&ee){if(this.prev=0;--ce){var H=this.tryEntries[ce];if(H.tryLoc<=this.prev&&r.call(H,"finallyLoc")&&this.prev=0;--q){var ce=this.tryEntries[q];if(ce.finallyLoc===G)return this.complete(ce.completion,ce.afterLoc),re(ce),T}},catch:function(G){for(var q=this.tryEntries.length-1;q>=0;--q){var ce=this.tryEntries[q];if(ce.tryLoc===G){var H=ce.completion;if(H.type==="throw"){var Y=H.arg;re(ce)}return Y}}throw Error("illegal catch attempt")},delegateYield:function(G,q,ce){return this.delegate={iterator:me(G),resultName:q,nextLoc:ce},this.method==="next"&&(this.arg=e),T}},t}function JU(e,t,n,r,a,i,o){try{var l=e[i](o),u=l.value}catch(d){n(d);return}l.done?t(u):Promise.resolve(u).then(r,a)}function Wfe(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(u){JU(i,r,a,o,l,"next",u)}function l(u){JU(i,r,a,o,l,"throw",u)}o(void 0)})}}function yQ(e,t){return Hfe(e)||qfe(e,t)||bQ(e,t)||zfe()}function zfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qfe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],u=!0,d=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){d=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw a}}return l}}function Hfe(e){if(Array.isArray(e))return e}function xv(e){"@babel/helpers - typeof";return xv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xv(e)}function Vfe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=bQ(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,l;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return i=d.done,d},e:function(d){o=!0,l=d},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}}}function bQ(e,t){if(e){if(typeof e=="string")return ZU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZU(e,t)}}function ZU(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1)for(var i=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];i1||n._parallelUploadUrls!=null?n._startParallelUpload():n._startSingleUpload()}).catch(function(u){n._emitError(u)})}},{key:"_startParallelUpload",value:function(){var n,r=this,a=this._size,i=0;this._parallelUploads=[];var o=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,l=(n=this.options.parallelUploadBoundaries)!==null&&n!==void 0?n:Zfe(this._source.size,o);this._parallelUploadUrls&&l.forEach(function(f,g){f.uploadUrl=r._parallelUploadUrls[g]||null}),this._parallelUploadUrls=new Array(l.length);var u=l.map(function(f,g){var y=0;return r._source.slice(f.start,f.end).then(function(h){var v=h.value;return new Promise(function(E,T){var C=lb(lb({},r.options),{},{uploadUrl:f.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:r.options.metadataForPartialUploads,headers:lb(lb({},r.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:E,onError:T,onProgress:function(A){i=i-y+A,y=A,r._emitProgress(i,a)},onUploadUrlAvailable:function(){r._parallelUploadUrls[g]=k.url,r._parallelUploadUrls.filter(function(A){return!!A}).length===l.length&&r._saveUploadInUrlStorage()}}),k=new e(v,C);k.start(),r._parallelUploads.push(k)})})}),d;Promise.all(u).then(function(){d=r._openRequest("POST",r.options.endpoint),d.setHeader("Upload-Concat","final;".concat(r._parallelUploadUrls.join(" ")));var f=n6(r.options.metadata);return f!==""&&d.setHeader("Upload-Metadata",f),r._sendRequest(d,null)}).then(function(f){if(!Sb(f.getStatus(),200)){r._emitHttpError(d,f,"tus: unexpected response while creating upload");return}var g=f.getHeader("Location");if(g==null){r._emitHttpError(d,f,"tus: invalid or missing Location header");return}r.url=o6(r.options.endpoint,g),"Created upload at ".concat(r.url),r._emitSuccess(f)}).catch(function(f){r._emitError(f)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(n){var r=this;if(this._parallelUploads!=null){var a=Vfe(this._parallelUploads),i;try{for(a.s();!(i=a.n()).done;){var o=i.value;o.abort(n)}}catch(l){a.e(l)}finally{a.f()}}return this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!n||this.url==null?Promise.resolve():e.terminate(this.url,this.options).then(function(){return r._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(n,r,a,i){this._emitError(new UC(a,i,n,r))}},{key:"_emitError",value:function(n){var r=this;if(!this._aborted){if(this.options.retryDelays!=null){var a=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(a&&(this._retryAttempt=0),i6(n,this._retryAttempt,this.options)){var i=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){r.start()},i);return}}if(typeof this.options.onError=="function")this.options.onError(n);else throw n}}},{key:"_emitSuccess",value:function(n){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess({lastResponse:n})}},{key:"_emitProgress",value:function(n,r){typeof this.options.onProgress=="function"&&this.options.onProgress(n,r)}},{key:"_emitChunkComplete",value:function(n,r,a){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(n,r,a)}},{key:"_createUpload",value:function(){var n=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var r=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?r.setHeader("Upload-Defer-Length","1"):r.setHeader("Upload-Length","".concat(this._size));var a=n6(this.options.metadata);a!==""&&r.setHeader("Upload-Metadata",a);var i;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,i=this._addChunkToRequest(r)):((this.options.protocol===Ek||this.options.protocol===iS)&&r.setHeader("Upload-Complete","?0"),i=this._sendRequest(r,null)),i.then(function(o){if(!Sb(o.getStatus(),200)){n._emitHttpError(r,o,"tus: unexpected response while creating upload");return}var l=o.getHeader("Location");if(l==null){n._emitHttpError(r,o,"tus: invalid or missing Location header");return}if(n.url=o6(n.options.endpoint,l),"Created upload at ".concat(n.url),typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._size===0){n._emitSuccess(o),n._source.close();return}n._saveUploadInUrlStorage().then(function(){n.options.uploadDataDuringCreation?n._handleUploadResponse(r,o):(n._offset=0,n._performUpload())})}).catch(function(o){n._emitHttpError(r,null,"tus: failed to create upload",o)})}},{key:"_resumeUpload",value:function(){var n=this,r=this._openRequest("HEAD",this.url),a=this._sendRequest(r,null);a.then(function(i){var o=i.getStatus();if(!Sb(o,200)){if(o===423){n._emitHttpError(r,i,"tus: upload is currently locked; retry later");return}if(Sb(o,400)&&n._removeFromUrlStorage(),!n.options.endpoint){n._emitHttpError(r,i,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}n.url=null,n._createUpload();return}var l=Number.parseInt(i.getHeader("Upload-Offset"),10);if(Number.isNaN(l)){n._emitHttpError(r,i,"tus: invalid or missing offset value");return}var u=Number.parseInt(i.getHeader("Upload-Length"),10);if(Number.isNaN(u)&&!n.options.uploadLengthDeferred&&n.options.protocol===Sk){n._emitHttpError(r,i,"tus: invalid or missing length value");return}typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._saveUploadInUrlStorage().then(function(){if(l===u){n._emitProgress(u,u),n._emitSuccess(i);return}n._offset=l,n._performUpload()})}).catch(function(i){n._emitHttpError(r,null,"tus: failed to resume upload",i)})}},{key:"_performUpload",value:function(){var n=this;if(!this._aborted){var r;this.options.overridePatchMethod?(r=this._openRequest("POST",this.url),r.setHeader("X-HTTP-Method-Override","PATCH")):r=this._openRequest("PATCH",this.url),r.setHeader("Upload-Offset","".concat(this._offset));var a=this._addChunkToRequest(r);a.then(function(i){if(!Sb(i.getStatus(),200)){n._emitHttpError(r,i,"tus: unexpected response while uploading chunk");return}n._handleUploadResponse(r,i)}).catch(function(i){n._aborted||n._emitHttpError(r,null,"tus: failed to upload chunk at offset ".concat(n._offset),i)})}}},{key:"_addChunkToRequest",value:function(n){var r=this,a=this._offset,i=this._offset+this.options.chunkSize;return n.setProgressHandler(function(o){r._emitProgress(a+o,r._size)}),this.options.protocol===Sk?n.setHeader("Content-Type","application/offset+octet-stream"):this.options.protocol===iS&&n.setHeader("Content-Type","application/partial-upload"),(i===Number.POSITIVE_INFINITY||i>this._size)&&!this.options.uploadLengthDeferred&&(i=this._size),this._source.slice(a,i).then(function(o){var l=o.value,u=o.done,d=l!=null&&l.size?l.size:0;r.options.uploadLengthDeferred&&u&&(r._size=r._offset+d,n.setHeader("Upload-Length","".concat(r._size)));var f=r._offset+d;return!r.options.uploadLengthDeferred&&u&&f!==r._size?Promise.reject(new Error("upload was configured with a size of ".concat(r._size," bytes, but the source is done after ").concat(f," bytes"))):l===null?r._sendRequest(n):((r.options.protocol===Ek||r.options.protocol===iS)&&n.setHeader("Upload-Complete",u?"?1":"?0"),r._emitProgress(r._offset,r._size),r._sendRequest(n,l))})}},{key:"_handleUploadResponse",value:function(n,r){var a=Number.parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(a)){this._emitHttpError(n,r,"tus: invalid or missing offset value");return}if(this._emitProgress(a,this._size),this._emitChunkComplete(a-this._offset,a,this._size),this._offset=a,a===this._size){this._emitSuccess(r),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(n,r){var a=r6(n,r,this.options);return this._req=a,a}},{key:"_removeFromUrlStorage",value:function(){var n=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(r){n._emitError(r)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var n=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var r={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?r.parallelUploadUrls=this._parallelUploadUrls:r.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,r).then(function(a){n._urlStorageKey=a})}},{key:"_sendRequest",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return a6(n,r,this.options)}}],[{key:"terminate",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r6("DELETE",n,r);return a6(a,null,r).then(function(i){if(i.getStatus()!==204)throw new UC("tus: unexpected response while terminating upload",null,a,i)}).catch(function(i){if(i instanceof UC||(i=new UC("tus: failed to terminate upload",i,a,null)),!i6(i,0,r))throw i;var o=r.retryDelays[0],l=r.retryDelays.slice(1),u=lb(lb({},r),{},{retryDelays:l});return new Promise(function(d){return setTimeout(d,o)}).then(function(){return e.terminate(n,u)})})}}])})();function n6(e){return Object.entries(e).map(function(t){var n=yQ(t,2),r=n[0],a=n[1];return"".concat(r," ").concat(Dfe.encode(String(a)))}).join(",")}function Sb(e,t){return e>=t&&e=n.retryDelays.length||e.originalRequest==null?!1:n&&typeof n.onShouldRetry=="function"?n.onShouldRetry(e,t,n):SQ(e)}function SQ(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return(!Sb(t,400)||t===409||t===423)&&Jfe()}function o6(e,t){return new Ufe(t,e).toString()}function Zfe(e,t){for(var n=Math.floor(e/t),r=[],a=0;a=this.size;return Promise.resolve({value:a,done:i})}},{key:"close",value:function(){}}])})();function $S(e){"@babel/helpers - typeof";return $S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$S(e)}function lpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function upe(e,t){for(var n=0;nthis._bufferOffset&&(this._buffer=this._buffer.slice(n-this._bufferOffset),this._bufferOffset=n);var a=l6(this._buffer)===0;return this._done&&a?null:this._buffer.slice(0,r-n)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])})();function _v(e){"@babel/helpers - typeof";return _v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_v(e)}function eL(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */eL=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(W,G,q){W[G]=q.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(W,G,q){return Object.defineProperty(W,G,{value:q,enumerable:!0,configurable:!0,writable:!0}),W[G]}try{d({},"")}catch{d=function(q,ce,H){return q[ce]=H}}function f(W,G,q,ce){var H=G&&G.prototype instanceof C?G:C,Y=Object.create(H.prototype),ie=new ge(ce||[]);return a(Y,"_invoke",{value:z(W,q,ie)}),Y}function g(W,G,q){try{return{type:"normal",arg:W.call(G,q)}}catch(ce){return{type:"throw",arg:ce}}}t.wrap=f;var y="suspendedStart",h="suspendedYield",v="executing",E="completed",T={};function C(){}function k(){}function _(){}var A={};d(A,o,function(){return this});var P=Object.getPrototypeOf,N=P&&P(P(me([])));N&&N!==n&&r.call(N,o)&&(A=N);var I=_.prototype=C.prototype=Object.create(A);function L(W){["next","throw","return"].forEach(function(G){d(W,G,function(q){return this._invoke(G,q)})})}function j(W,G){function q(H,Y,ie,J){var ee=g(W[H],W,Y);if(ee.type!=="throw"){var Z=ee.arg,ue=Z.value;return ue&&_v(ue)=="object"&&r.call(ue,"__await")?G.resolve(ue.__await).then(function(ke){q("next",ke,ie,J)},function(ke){q("throw",ke,ie,J)}):G.resolve(ue).then(function(ke){Z.value=ke,ie(Z)},function(ke){return q("throw",ke,ie,J)})}J(ee.arg)}var ce;a(this,"_invoke",{value:function(Y,ie){function J(){return new G(function(ee,Z){q(Y,ie,ee,Z)})}return ce=ce?ce.then(J,J):J()}})}function z(W,G,q){var ce=y;return function(H,Y){if(ce===v)throw Error("Generator is already running");if(ce===E){if(H==="throw")throw Y;return{value:e,done:!0}}for(q.method=H,q.arg=Y;;){var ie=q.delegate;if(ie){var J=Q(ie,q);if(J){if(J===T)continue;return J}}if(q.method==="next")q.sent=q._sent=q.arg;else if(q.method==="throw"){if(ce===y)throw ce=E,q.arg;q.dispatchException(q.arg)}else q.method==="return"&&q.abrupt("return",q.arg);ce=v;var ee=g(W,G,q);if(ee.type==="normal"){if(ce=q.done?E:h,ee.arg===T)continue;return{value:ee.arg,done:q.done}}ee.type==="throw"&&(ce=E,q.method="throw",q.arg=ee.arg)}}}function Q(W,G){var q=G.method,ce=W.iterator[q];if(ce===e)return G.delegate=null,q==="throw"&&W.iterator.return&&(G.method="return",G.arg=e,Q(W,G),G.method==="throw")||q!=="return"&&(G.method="throw",G.arg=new TypeError("The iterator does not provide a '"+q+"' method")),T;var H=g(ce,W.iterator,G.arg);if(H.type==="throw")return G.method="throw",G.arg=H.arg,G.delegate=null,T;var Y=H.arg;return Y?Y.done?(G[W.resultName]=Y.value,G.next=W.nextLoc,G.method!=="return"&&(G.method="next",G.arg=e),G.delegate=null,T):Y:(G.method="throw",G.arg=new TypeError("iterator result is not an object"),G.delegate=null,T)}function le(W){var G={tryLoc:W[0]};1 in W&&(G.catchLoc=W[1]),2 in W&&(G.finallyLoc=W[2],G.afterLoc=W[3]),this.tryEntries.push(G)}function re(W){var G=W.completion||{};G.type="normal",delete G.arg,W.completion=G}function ge(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(le,this),this.reset(!0)}function me(W){if(W||W===""){var G=W[o];if(G)return G.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var q=-1,ce=function H(){for(;++q=0;--H){var Y=this.tryEntries[H],ie=Y.completion;if(Y.tryLoc==="root")return ce("end");if(Y.tryLoc<=this.prev){var J=r.call(Y,"catchLoc"),ee=r.call(Y,"finallyLoc");if(J&&ee){if(this.prev=0;--ce){var H=this.tryEntries[ce];if(H.tryLoc<=this.prev&&r.call(H,"finallyLoc")&&this.prev=0;--q){var ce=this.tryEntries[q];if(ce.finallyLoc===G)return this.complete(ce.completion,ce.afterLoc),re(ce),T}},catch:function(G){for(var q=this.tryEntries.length-1;q>=0;--q){var ce=this.tryEntries[q];if(ce.tryLoc===G){var H=ce.completion;if(H.type==="throw"){var Y=H.arg;re(ce)}return Y}}throw Error("illegal catch attempt")},delegateYield:function(G,q,ce){return this.delegate={iterator:me(G),resultName:q,nextLoc:ce},this.method==="next"&&(this.arg=e),T}},t}function u6(e,t,n,r,a,i,o){try{var l=e[i](o),u=l.value}catch(d){n(d);return}l.done?t(u):Promise.resolve(u).then(r,a)}function mpe(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(u){u6(i,r,a,o,l,"next",u)}function l(u){u6(i,r,a,o,l,"throw",u)}o(void 0)})}}function gpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vpe(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(a,i){n._xhr.onload=function(){a(new Ppe(n._xhr))},n._xhr.onerror=function(o){i(o)},n._xhr.send(r)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})(),Ppe=(function(){function e(t){eF(this,e),this._xhr=t}return tF(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(n){return this._xhr.getResponseHeader(n)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})();function FS(e){"@babel/helpers - typeof";return FS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},FS(e)}function Ape(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Npe(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Fpe(this,t),r=kb(kb({},f6),r),Bpe(this,t,[n,r])}return qpe(t,e),Upe(t,null,[{key:"terminate",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a=kb(kb({},f6),a),Yk.terminate(r,a)}}])})(Yk);const nt=ze.createContext({setSession(e){},options:{}});class Ype{async setItem(t,n){return localStorage.setItem(t,n)}async getItem(t){return localStorage.getItem(t)}async removeItem(t){return localStorage.removeItem(t)}}async function Kpe(e,t,n){n.setItem("fb_microservice_"+e,JSON.stringify(t))}function Xpe(e,t,n){n.setItem("fb_selected_workspace_"+e,JSON.stringify(t))}async function Qpe(e,t){let n=null;try{n=JSON.parse(await t.getItem("fb_microservice_"+e))}catch{}return n}async function Jpe(e,t){let n=null;try{n=JSON.parse(await t.getItem("fb_selected_workspace_"+e))}catch{}return n}function Zpe({children:e,remote:t,selectedUrw:n,identifier:r,token:a,preferredAcceptLanguage:i,queryClient:o,defaultExecFn:l,socketEnabled:u,socket:d,credentialStorage:f,prefix:g}){var G;const[y,h]=R.useState(!1),[v,E]=R.useState(),[T,C]=R.useState(""),[k,_]=R.useState(),A=R.useRef(f||new Ype),P=async()=>{const q=await Jpe(r,A.current),ce=await Qpe(r,A.current);_(q),E(ce),h(!0)};R.useEffect(()=>{P()},[]);const[N,I]=R.useState([]),[L,j]=R.useState(l),z=!!v,Q=q=>{Xpe(r,q,A.current),_(q)},le=q=>{E(()=>(Kpe(r,q,A.current),q))},re={headers:{authorization:a||(v==null?void 0:v.token)},prefix:(T||t)+(g||"")};if(k)re.headers["workspace-id"]=k.workspaceId,re.headers["role-id"]=k.roleId;else if(n)re.headers["workspace-id"]=n.workspaceId,re.headers["role-id"]=n.roleId;else if(v!=null&&v.userWorkspaces&&v.userWorkspaces.length>0){const q=v.userWorkspaces[0];re.headers["workspace-id"]=q.workspaceId,re.headers["role-id"]=q.roleId}i&&(re.headers["accept-language"]=i),R.useEffect(()=>{a&&E({...v||{},token:a})},[a]);const ge=()=>{var q;E(null),(q=A.current)==null||q.removeItem("fb_microservice_"+r),Q(void 0)},me=()=>{I([])},{socketState:W}=ehe(t,(G=re.headers)==null?void 0:G.authorization,re.headers["workspace-id"],o,u);return w.jsx(nt.Provider,{value:{options:re,signout:ge,setOverrideRemoteUrl:C,overrideRemoteUrl:T,setSession:le,socketState:W,checked:y,selectedUrw:k,selectUrw:Q,session:v,preferredAcceptLanguage:i,activeUploads:N,setActiveUploads:I,execFn:L,setExecFn:j,discardActiveUploads:me,isAuthenticated:z},children:e})}function ehe(e,t,n,r,a=!0){const[i,o]=R.useState({state:"unknown"});return R.useEffect(()=>{if(!e||!t||t==="undefined"||a===!1)return;const l=e.replace("https","wss").replace("http","ws");let u;try{u=new WebSocket(`${l}ws?token=${t}&workspaceId=${n}`),u.onerror=function(d){o({state:"error"})},u.onclose=function(d){o({state:"closed"})},u.onmessage=function(d){try{const f=JSON.parse(d.data);f!=null&&f.cacheKey&&r.invalidateQueries(f==null?void 0:f.cacheKey)}catch{console.error("Socket message parsing error",d)}},u.onopen=function(d){o({state:"connected"})}}catch{}return()=>{(u==null?void 0:u.readyState)===1&&u.close()}},[t,n]),{socketState:i}}function Gt(e){if(!e)return{};const t={};return e.startIndex&&(t.startIndex=e.startIndex),e.itemsPerPage&&(t.itemsPerPage=e.itemsPerPage),e.query&&(t.query=e.query),e.deep&&(t.deep=e.deep),e.jsonQuery&&(t.jsonQuery=JSON.stringify(e.jsonQuery)),e.withPreloads&&(t.withPreloads=e.withPreloads),e.uniqueId&&(t.uniqueId=e.uniqueId),e.sort&&(t.sort=e.sort),t}function the(){const{activeUploads:e,setActiveUploads:t}=R.useContext(nt),n=()=>{t([])};return e.length===0?null:w.jsxs("div",{className:"active-upload-box",children:[w.jsxs("div",{className:"upload-header",children:[w.jsxs("span",{children:[e.length," Uploads"]}),w.jsx("span",{className:"action-section",children:w.jsx("button",{onClick:n,children:w.jsx("img",{src:"/common/close.svg"})})})]}),e.map(r=>w.jsxs("div",{className:"upload-file-item",children:[w.jsx("span",{children:r.filename}),w.jsxs("span",{children:[Math.ceil(r.bytesSent/r.bytesTotal*100),"%"]})]},r.uploadId))]})}var NR={exports:{}};/*! + */var ZU;function ofe(){if(ZU)return Cr;ZU=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function _(P){if(typeof P=="object"&&P!==null){var N=P.$$typeof;switch(N){case t:switch(P=P.type,P){case u:case d:case r:case i:case a:case g:return P;default:switch(P=P&&P.$$typeof,P){case l:case f:case v:case h:case o:return P;default:return N}}case n:return N}}}function A(P){return _(P)===d}return Cr.AsyncMode=u,Cr.ConcurrentMode=d,Cr.ContextConsumer=l,Cr.ContextProvider=o,Cr.Element=t,Cr.ForwardRef=f,Cr.Fragment=r,Cr.Lazy=v,Cr.Memo=h,Cr.Portal=n,Cr.Profiler=i,Cr.StrictMode=a,Cr.Suspense=g,Cr.isAsyncMode=function(P){return A(P)||_(P)===u},Cr.isConcurrentMode=A,Cr.isContextConsumer=function(P){return _(P)===l},Cr.isContextProvider=function(P){return _(P)===o},Cr.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},Cr.isForwardRef=function(P){return _(P)===f},Cr.isFragment=function(P){return _(P)===r},Cr.isLazy=function(P){return _(P)===v},Cr.isMemo=function(P){return _(P)===h},Cr.isPortal=function(P){return _(P)===n},Cr.isProfiler=function(P){return _(P)===i},Cr.isStrictMode=function(P){return _(P)===a},Cr.isSuspense=function(P){return _(P)===g},Cr.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===d||P===i||P===a||P===g||P===y||typeof P=="object"&&P!==null&&(P.$$typeof===v||P.$$typeof===h||P.$$typeof===o||P.$$typeof===l||P.$$typeof===f||P.$$typeof===T||P.$$typeof===C||P.$$typeof===k||P.$$typeof===E)},Cr.typeOf=_,Cr}var e6;function sfe(){return e6||(e6=1,$R.exports=ofe()),$R.exports}var LR,t6;function lfe(){if(t6)return LR;t6=1;var e=sfe(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function o(v){return e.isMemo(v)?a:i[v.$$typeof]||t}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,y=Object.prototype;function h(v,E,T){if(typeof E!="string"){if(y){var C=g(E);C&&C!==y&&h(v,C,T)}var k=u(E);d&&(k=k.concat(d(E)));for(var _=o(v),A=o(E),P=0;P=0)&&(n[a]=e[a]);return n}var c_=R.createContext(void 0);c_.displayName="FormikContext";var dfe=c_.Provider;c_.Consumer;function ffe(){var e=R.useContext(c_);return e}var wl=function(t){return typeof t=="function"},d_=function(t){return t!==null&&typeof t=="object"},pfe=function(t){return String(Math.floor(Number(t)))===t},FR=function(t){return Object.prototype.toString.call(t)==="[object String]"},hfe=function(t){return R.Children.count(t)===0},jR=function(t){return d_(t)&&wl(t.then)};function Ns(e,t,n,r){r===void 0&&(r=0);for(var a=mQ(t);e&&r=0?[]:{}}}return(i===0?e:a)[o[i]]===n?e:(n===void 0?delete a[o[i]]:a[o[i]]=n,i===0&&n===void 0&&delete r[o[i]],r)}function vQ(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var a=0,i=Object.keys(e);a0?dt.map(function(ut){return z(ut,Ns(Oe,ut))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ft).then(function(ut){return ut.reduce(function(Nt,U,D){return U==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||U&&(Nt=xv(Nt,dt[D],U)),Nt},{})})},[z]),le=R.useCallback(function(Oe){return Promise.all([Q(Oe),y.validationSchema?j(Oe):{},y.validate?L(Oe):{}]).then(function(dt){var ft=dt[0],ut=dt[1],Nt=dt[2],U=Z$.all([ft,ut,Nt],{arrayMerge:yfe});return U})},[y.validate,y.validationSchema,Q,L,j]),re=yl(function(Oe){return Oe===void 0&&(Oe=N.values),I({type:"SET_ISVALIDATING",payload:!0}),le(Oe).then(function(dt){return C.current&&(I({type:"SET_ISVALIDATING",payload:!1}),I({type:"SET_ERRORS",payload:dt})),dt})});R.useEffect(function(){o&&C.current===!0&&av(h.current,y.initialValues)&&re(h.current)},[o,re]);var ge=R.useCallback(function(Oe){var dt=Oe&&Oe.values?Oe.values:h.current,ft=Oe&&Oe.errors?Oe.errors:v.current?v.current:y.initialErrors||{},ut=Oe&&Oe.touched?Oe.touched:E.current?E.current:y.initialTouched||{},Nt=Oe&&Oe.status?Oe.status:T.current?T.current:y.initialStatus;h.current=dt,v.current=ft,E.current=ut,T.current=Nt;var U=function(){I({type:"RESET_FORM",payload:{isSubmitting:!!Oe&&!!Oe.isSubmitting,errors:ft,touched:ut,status:Nt,values:dt,isValidating:!!Oe&&!!Oe.isValidating,submitCount:Oe&&Oe.submitCount&&typeof Oe.submitCount=="number"?Oe.submitCount:0}})};if(y.onReset){var D=y.onReset(N.values,Ge);jR(D)?D.then(U):U()}else U()},[y.initialErrors,y.initialStatus,y.initialTouched,y.onReset]);R.useEffect(function(){C.current===!0&&!av(h.current,y.initialValues)&&d&&(h.current=y.initialValues,ge(),o&&re(h.current))},[d,y.initialValues,ge,o,re]),R.useEffect(function(){d&&C.current===!0&&!av(v.current,y.initialErrors)&&(v.current=y.initialErrors||Im,I({type:"SET_ERRORS",payload:y.initialErrors||Im}))},[d,y.initialErrors]),R.useEffect(function(){d&&C.current===!0&&!av(E.current,y.initialTouched)&&(E.current=y.initialTouched||XC,I({type:"SET_TOUCHED",payload:y.initialTouched||XC}))},[d,y.initialTouched]),R.useEffect(function(){d&&C.current===!0&&!av(T.current,y.initialStatus)&&(T.current=y.initialStatus,I({type:"SET_STATUS",payload:y.initialStatus}))},[d,y.initialStatus,y.initialTouched]);var me=yl(function(Oe){if(k.current[Oe]&&wl(k.current[Oe].validate)){var dt=Ns(N.values,Oe),ft=k.current[Oe].validate(dt);return jR(ft)?(I({type:"SET_ISVALIDATING",payload:!0}),ft.then(function(ut){return ut}).then(function(ut){I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:ut}}),I({type:"SET_ISVALIDATING",payload:!1})})):(I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:ft}}),Promise.resolve(ft))}else if(y.validationSchema)return I({type:"SET_ISVALIDATING",payload:!0}),j(N.values,Oe).then(function(ut){return ut}).then(function(ut){I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:Ns(ut,Oe)}}),I({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),W=R.useCallback(function(Oe,dt){var ft=dt.validate;k.current[Oe]={validate:ft}},[]),G=R.useCallback(function(Oe){delete k.current[Oe]},[]),q=yl(function(Oe,dt){I({type:"SET_TOUCHED",payload:Oe});var ft=dt===void 0?a:dt;return ft?re(N.values):Promise.resolve()}),ce=R.useCallback(function(Oe){I({type:"SET_ERRORS",payload:Oe})},[]),H=yl(function(Oe,dt){var ft=wl(Oe)?Oe(N.values):Oe;I({type:"SET_VALUES",payload:ft});var ut=dt===void 0?n:dt;return ut?re(ft):Promise.resolve()}),Y=R.useCallback(function(Oe,dt){I({type:"SET_FIELD_ERROR",payload:{field:Oe,value:dt}})},[]),ie=yl(function(Oe,dt,ft){I({type:"SET_FIELD_VALUE",payload:{field:Oe,value:dt}});var ut=ft===void 0?n:ft;return ut?re(xv(N.values,Oe,dt)):Promise.resolve()}),J=R.useCallback(function(Oe,dt){var ft=dt,ut=Oe,Nt;if(!FR(Oe)){Oe.persist&&Oe.persist();var U=Oe.target?Oe.target:Oe.currentTarget,D=U.type,F=U.name,ae=U.id,Te=U.value,Fe=U.checked;U.outerHTML;var We=U.options,Tt=U.multiple;ft=dt||F||ae,ut=/number|range/.test(D)?(Nt=parseFloat(Te),isNaN(Nt)?"":Nt):/checkbox/.test(D)?wfe(Ns(N.values,ft),Fe,Te):We&&Tt?bfe(We):Te}ft&&ie(ft,ut)},[ie,N.values]),ee=yl(function(Oe){if(FR(Oe))return function(dt){return J(dt,Oe)};J(Oe)}),Z=yl(function(Oe,dt,ft){dt===void 0&&(dt=!0),I({type:"SET_FIELD_TOUCHED",payload:{field:Oe,value:dt}});var ut=ft===void 0?a:ft;return ut?re(N.values):Promise.resolve()}),ue=R.useCallback(function(Oe,dt){Oe.persist&&Oe.persist();var ft=Oe.target,ut=ft.name,Nt=ft.id;ft.outerHTML;var U=dt||ut||Nt;Z(U,!0)},[Z]),ke=yl(function(Oe){if(FR(Oe))return function(dt){return ue(dt,Oe)};ue(Oe)}),fe=R.useCallback(function(Oe){wl(Oe)?I({type:"SET_FORMIK_STATE",payload:Oe}):I({type:"SET_FORMIK_STATE",payload:function(){return Oe}})},[]),xe=R.useCallback(function(Oe){I({type:"SET_STATUS",payload:Oe})},[]),Ie=R.useCallback(function(Oe){I({type:"SET_ISSUBMITTING",payload:Oe})},[]),qe=yl(function(){return I({type:"SUBMIT_ATTEMPT"}),re().then(function(Oe){var dt=Oe instanceof Error,ft=!dt&&Object.keys(Oe).length===0;if(ft){var ut;try{if(ut=at(),ut===void 0)return}catch(Nt){throw Nt}return Promise.resolve(ut).then(function(Nt){return C.current&&I({type:"SUBMIT_SUCCESS"}),Nt}).catch(function(Nt){if(C.current)throw I({type:"SUBMIT_FAILURE"}),Nt})}else if(C.current&&(I({type:"SUBMIT_FAILURE"}),dt))throw Oe})}),tt=yl(function(Oe){Oe&&Oe.preventDefault&&wl(Oe.preventDefault)&&Oe.preventDefault(),Oe&&Oe.stopPropagation&&wl(Oe.stopPropagation)&&Oe.stopPropagation(),qe().catch(function(dt){console.warn("Warning: An unhandled error was caught from submitForm()",dt)})}),Ge={resetForm:ge,validateForm:re,validateField:me,setErrors:ce,setFieldError:Y,setFieldTouched:Z,setFieldValue:ie,setStatus:xe,setSubmitting:Ie,setTouched:q,setValues:H,setFormikState:fe,submitForm:qe},at=yl(function(){return f(N.values,Ge)}),Et=yl(function(Oe){Oe&&Oe.preventDefault&&wl(Oe.preventDefault)&&Oe.preventDefault(),Oe&&Oe.stopPropagation&&wl(Oe.stopPropagation)&&Oe.stopPropagation(),ge()}),kt=R.useCallback(function(Oe){return{value:Ns(N.values,Oe),error:Ns(N.errors,Oe),touched:!!Ns(N.touched,Oe),initialValue:Ns(h.current,Oe),initialTouched:!!Ns(E.current,Oe),initialError:Ns(v.current,Oe)}},[N.errors,N.touched,N.values]),xt=R.useCallback(function(Oe){return{setValue:function(ft,ut){return ie(Oe,ft,ut)},setTouched:function(ft,ut){return Z(Oe,ft,ut)},setError:function(ft){return Y(Oe,ft)}}},[ie,Z,Y]),Rt=R.useCallback(function(Oe){var dt=d_(Oe),ft=dt?Oe.name:Oe,ut=Ns(N.values,ft),Nt={name:ft,value:ut,onChange:ee,onBlur:ke};if(dt){var U=Oe.type,D=Oe.value,F=Oe.as,ae=Oe.multiple;U==="checkbox"?D===void 0?Nt.checked=!!ut:(Nt.checked=!!(Array.isArray(ut)&&~ut.indexOf(D)),Nt.value=D):U==="radio"?(Nt.checked=ut===D,Nt.value=D):F==="select"&&ae&&(Nt.value=Nt.value||[],Nt.multiple=!0)}return Nt},[ke,ee,N.values]),cn=R.useMemo(function(){return!av(h.current,N.values)},[h.current,N.values]),qt=R.useMemo(function(){return typeof l<"u"?cn?N.errors&&Object.keys(N.errors).length===0:l!==!1&&wl(l)?l(y):l:N.errors&&Object.keys(N.errors).length===0},[l,cn,N.errors,y]),Wt=hi({},N,{initialValues:h.current,initialErrors:v.current,initialTouched:E.current,initialStatus:T.current,handleBlur:ke,handleChange:ee,handleReset:Et,handleSubmit:tt,resetForm:ge,setErrors:ce,setFormikState:fe,setFieldTouched:Z,setFieldValue:ie,setFieldError:Y,setStatus:xe,setSubmitting:Ie,setTouched:q,setValues:H,submitForm:qe,validateForm:re,validateField:me,isValid:qt,dirty:cn,unregisterField:G,registerField:W,getFieldProps:Rt,getFieldMeta:kt,getFieldHelpers:xt,validateOnBlur:a,validateOnChange:n,validateOnMount:o});return Wt}function ls(e){var t=tf(e),n=e.component,r=e.children,a=e.render,i=e.innerRef;return R.useImperativeHandle(i,function(){return t}),R.createElement(dfe,{value:t},n?R.createElement(n,t):a?a(t):r?wl(r)?r(t):hfe(r)?null:R.Children.only(r):null)}function gfe(e){var t={};if(e.inner){if(e.inner.length===0)return xv(t,e.path,e.message);for(var a=e.inner,n=Array.isArray(a),r=0,a=n?a:a[Symbol.iterator]();;){var i;if(n){if(r>=a.length)break;i=a[r++]}else{if(r=a.next(),r.done)break;i=r.value}var o=i;Ns(t,o.path)||(t=xv(t,o.path,o.message))}}return t}function vfe(e,t,n,r){n===void 0&&(n=!1);var a=aL(e);return t[n?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function aL(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(a){return Array.isArray(a)===!0||_U(a)?aL(a):a!==""?a:void 0}):_U(e[r])?t[r]=aL(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function yfe(e,t,n){var r=e.slice();return t.forEach(function(i,o){if(typeof r[o]>"u"){var l=n.clone!==!1,u=l&&n.isMergeableObject(i);r[o]=u?Z$(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[o]=Z$(e[o],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function bfe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function wfe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],a=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),a=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!a?r.concat(n):a?r.slice(0,i).concat(r.slice(i+1)):r}var Sfe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?R.useLayoutEffect:R.useEffect;function yl(e){var t=R.useRef(e);return Sfe(function(){t.current=e}),R.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a(e.NewEntity="new_entity",e.SidebarToggle="sidebarToggle",e.NewChildEntity="new_child_entity",e.EditEntity="edit_entity",e.ViewQuestions="view_questions",e.ExportTable="export_table",e.CommonBack="common_back",e.StopStart="StopStart",e.Delete="delete",e.Select1Index="select1_index",e.Select2Index="select2_index",e.Select3Index="select3_index",e.Select4Index="select4_index",e.Select5Index="select5_index",e.Select6Index="select6_index",e.Select7Index="select7_index",e.Select8Index="select8_index",e.Select9Index="select9_index",e.ToggleLock="l",e))(Ir||{});function iL(){if(typeof window>"u")return"mac";let e=window==null?void 0:window.navigator.userAgent,t=window==null?void 0:window.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],r=["Win32","Win64","Windows","WinCE"],a=["iPhone","iPad","iPod"],i="mac";return n.indexOf(t)!==-1?i="mac":a.indexOf(t)!==-1?i="ios":r.indexOf(t)!==-1?i="windows":/Android/.test(e)?i="android":!i&&/Linux/.test(t)?i="linux":i="web",i}const Pt=iL(),it={edit:{default:"ios-theme/icons/edit.svg"},add:{default:"ios-theme/icons/add.svg"},cancel:{default:"ios-theme/icons/cancel.svg"},delete:{default:"ios-theme/icons/delete.svg"},entity:{default:"ios-theme/icons/entity.svg"},left:{default:"ios-theme/icons/left.svg"},menu:{default:"ios-theme/icons/menu.svg"},backup:{default:"ios-theme/icons/backup.svg"},right:{default:"ios-theme/icons/right.svg"},settings:{default:"ios-theme/icons/settings.svg"},user:{default:"ios-theme/icons/user.svg"},export:{default:"ios-theme/icons/export.svg"},up:{default:"ios-theme/icons/up.svg"},dataNode:{default:"ios-theme/icons/dnode.svg"},ctrlSheet:{default:"ios-theme/icons/ctrlsheet.svg"},gpiomode:{default:"ios-theme/icons/gpiomode.svg"},gpiostate:{default:"ios-theme/icons/gpiostate.svg"},down:{default:"ios-theme/icons/down.svg"},turnoff:{default:"ios-theme/icons/turnoff.svg"},mqtt:{default:"ios-theme/icons/mqtt.svg"},cart:{default:"ios-theme/icons/cart.svg"},questionBank:{default:"ios-theme/icons/questions.svg"},dashboard:{default:"ios-theme/icons/dashboard.svg"},country:{default:"ios-theme/icons/country.svg"},order:{default:"ios-theme/icons/order.svg"},province:{default:"ios-theme/icons/province.svg"},city:{default:"ios-theme/icons/city.svg"},about:{default:"ios-theme/icons/about.svg"},sms:{default:"ios-theme/icons/sms.svg"},product:{default:"ios-theme/icons/product.svg"},discount:{default:"ios-theme/icons/discount.svg"},tag:{default:"ios-theme/icons/tag.svg"},category:{default:"ios-theme/icons/category.svg"},brand:{default:"ios-theme/icons/brand.svg"},form:{default:"ios-theme/icons/form.svg"}},xu={dashboard:it.dashboard[Pt]?it.dashboard[Pt]:it.dashboard.default,up:it.up[Pt]?it.up[Pt]:it.up.default,questionBank:it.questionBank[Pt]?it.questionBank[Pt]:it.questionBank.default,down:it.down[Pt]?it.down[Pt]:it.down.default,edit:it.edit[Pt]?it.edit[Pt]:it.edit.default,add:it.add[Pt]?it.add[Pt]:it.add.default,cancel:it.cancel[Pt]?it.cancel[Pt]:it.cancel.default,delete:it.delete[Pt]?it.delete[Pt]:it.delete.default,discount:it.discount[Pt]?it.discount[Pt]:it.discount.default,cart:it.cart[Pt]?it.cart[Pt]:it.cart.default,entity:it.entity[Pt]?it.entity[Pt]:it.entity.default,sms:it.sms[Pt]?it.sms[Pt]:it.sms.default,left:it.left[Pt]?it.left[Pt]:it.left.default,brand:it.brand[Pt]?it.brand[Pt]:it.brand.default,menu:it.menu[Pt]?it.menu[Pt]:it.menu.default,right:it.right[Pt]?it.right[Pt]:it.right.default,settings:it.settings[Pt]?it.settings[Pt]:it.settings.default,dataNode:it.dataNode[Pt]?it.dataNode[Pt]:it.dataNode.default,user:it.user[Pt]?it.user[Pt]:it.user.default,city:it.city[Pt]?it.city[Pt]:it.city.default,province:it.province[Pt]?it.province[Pt]:it.province.default,about:it.about[Pt]?it.about[Pt]:it.about.default,turnoff:it.turnoff[Pt]?it.turnoff[Pt]:it.turnoff.default,ctrlSheet:it.ctrlSheet[Pt]?it.ctrlSheet[Pt]:it.ctrlSheet.default,country:it.country[Pt]?it.country[Pt]:it.country.default,export:it.export[Pt]?it.export[Pt]:it.export.default,gpio:it.ctrlSheet[Pt]?it.ctrlSheet[Pt]:it.ctrlSheet.default,order:it.order[Pt]?it.order[Pt]:it.order.default,mqtt:it.mqtt[Pt]?it.mqtt[Pt]:it.mqtt.default,tag:it.tag[Pt]?it.tag[Pt]:it.tag.default,product:it.product[Pt]?it.product[Pt]:it.product.default,category:it.category[Pt]?it.category[Pt]:it.category.default,form:it.form[Pt]?it.form[Pt]:it.form.default,gpiomode:it.gpiomode[Pt]?it.gpiomode[Pt]:it.gpiomode.default,backup:it.backup[Pt]?it.backup[Pt]:it.backup.default,gpiostate:it.gpiostate[Pt]?it.gpiostate[Pt]:it.gpiostate.default};function Fs(e){const t=kr.PUBLIC_URL;return e.startsWith("$")?t+xu[e.substr(1)]:e.startsWith(t)?e:t+e}function n6(){const e=At();return sr(),w.jsx(w.Fragment,{children:w.jsxs("div",{className:"not-found-pagex",children:[w.jsx("img",{src:Fs("/common/error.svg")}),w.jsx("div",{className:"content",children:w.jsx("p",{children:e.not_found_404})})]})})}function Tfe(){const{locale:e,asPath:t}=sr();R.useEffect(()=>{var n;(n=document.querySelector("html"))==null||n.setAttribute("dir",["fa","ar"].includes(e)?"rtl":"ltr")},[t])}var oL=(e=>(e.Green="#00bd00",e.Red="#ff0313",e.Orange="#fa7a00",e.Yellow="#f4b700",e.Blue="#0072ff",e.Purple="#ad41d1",e.Grey="#717176",e))(oL||{});function sL(e){"@babel/helpers - typeof";return sL=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sL(e)}function Cfe(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function kfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xfe(e,t,n){return t=zS(t),_fe(e,cF()?Reflect.construct(t,n||[],zS(e).constructor):t.apply(e,n))}function _fe(e,t){if(t&&(sL(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ofe(e)}function Ofe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rfe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WS(e,t)}function lL(e){var t=typeof Map=="function"?new Map:void 0;return lL=function(r){if(r===null||!Afe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return Pfe(r,arguments,zS(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),WS(a,r)},lL(e)}function Pfe(e,t,n){if(cF())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&WS(a,n.prototype),a}function cF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cF=function(){return!!e})()}function Afe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function WS(e,t){return WS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},WS(e,t)}function zS(e){return zS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zS(e)}var QC=(function(e){function t(n){var r,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(kfe(this,t),r=xfe(this,t,[n]),r.originalRequest=i,r.originalResponse=o,r.causingError=a,a!=null&&(n+=", caused by ".concat(a.toString())),i!=null){var l=i.getHeader("X-Request-ID")||"n/a",u=i.getMethod(),d=i.getURL(),f=o?o.getStatus():"n/a",g=o?o.getBody()||"":"n/a";n+=", originated from request (method: ".concat(u,", url: ").concat(d,", response code: ").concat(f,", response text: ").concat(g,", request id: ").concat(l,")")}return r.message=n,r}return Rfe(t,e),Cfe(t)})(lL(Error));function qS(e){"@babel/helpers - typeof";return qS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qS(e)}function Nfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mfe(e,t){for(var n=0;n{let t={};return e.forEach((n,r)=>t[n]=r),t})(hS),Ufe=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Wi=String.fromCharCode.bind(String),i6=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),bQ=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),wQ=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),SQ=e=>{let t,n,r,a,i="";const o=e.length%3;for(let l=0;l255||(r=e.charCodeAt(l++))>255||(a=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|a,i+=hS[t>>18&63]+hS[t>>12&63]+hS[t>>6&63]+hS[t&63]}return o?i.slice(0,o-3)+"===".substring(o):i},dF=typeof btoa=="function"?e=>btoa(e):b0?e=>Buffer.from(e,"binary").toString("base64"):SQ,uL=b0?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,a=e.length;rt?bQ(uL(e)):uL(e),Bfe=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Wi(192|t>>>6)+Wi(128|t&63):Wi(224|t>>>12&15)+Wi(128|t>>>6&63)+Wi(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Wi(240|t>>>18&7)+Wi(128|t>>>12&63)+Wi(128|t>>>6&63)+Wi(128|t&63)}},Wfe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,EQ=e=>e.replace(Wfe,Bfe),o6=b0?e=>Buffer.from(e,"utf8").toString("base64"):a6?e=>uL(a6.encode(e)):e=>dF(EQ(e)),Gb=(e,t=!1)=>t?bQ(o6(e)):o6(e),s6=e=>Gb(e,!0),zfe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,qfe=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return Wi((n>>>10)+55296)+Wi((n&1023)+56320);case 3:return Wi((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Wi((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},TQ=e=>e.replace(zfe,qfe),CQ=e=>{if(e=e.replace(/\s+/g,""),!Ufe.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,n="",r,a;for(let i=0;i>16&255):a===64?Wi(t>>16&255,t>>8&255):Wi(t>>16&255,t>>8&255,t&255);return n},fF=typeof atob=="function"?e=>atob(wQ(e)):b0?e=>Buffer.from(e,"base64").toString("binary"):CQ,kQ=b0?e=>i6(Buffer.from(e,"base64")):e=>i6(fF(e).split("").map(t=>t.charCodeAt(0))),xQ=e=>kQ(_Q(e)),Hfe=b0?e=>Buffer.from(e,"base64").toString("utf8"):r6?e=>r6.decode(kQ(e)):e=>TQ(fF(e)),_Q=e=>wQ(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),cL=e=>Hfe(_Q(e)),Vfe=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},OQ=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),RQ=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,OQ(n));e("fromBase64",function(){return cL(this)}),e("toBase64",function(t){return Gb(this,t)}),e("toBase64URI",function(){return Gb(this,!0)}),e("toBase64URL",function(){return Gb(this,!0)}),e("toUint8Array",function(){return xQ(this)})},PQ=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,OQ(n));e("toBase64",function(t){return Ak(this,t)}),e("toBase64URI",function(){return Ak(this,!0)}),e("toBase64URL",function(){return Ak(this,!0)})},Gfe=()=>{RQ(),PQ()},Yfe={version:yQ,VERSION:Ffe,atob:fF,atobPolyfill:CQ,btoa:dF,btoaPolyfill:SQ,fromBase64:cL,toBase64:Gb,encode:Gb,encodeURI:s6,encodeURL:s6,utob:EQ,btou:TQ,decode:cL,isValid:Vfe,fromUint8Array:Ak,toUint8Array:xQ,extendString:RQ,extendUint8Array:PQ,extendBuiltins:Gfe};var UR,l6;function Kfe(){return l6||(l6=1,UR=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}),UR}var ZC={},u6;function Xfe(){if(u6)return ZC;u6=1;var e=Object.prototype.hasOwnProperty,t;function n(o){try{return decodeURIComponent(o.replace(/\+/g," "))}catch{return null}}function r(o){try{return encodeURIComponent(o)}catch{return null}}function a(o){for(var l=/([^=?#&]+)=?([^&]*)/g,u={},d;d=l.exec(o);){var f=n(d[1]),g=n(d[2]);f===null||g===null||f in u||(u[f]=g)}return u}function i(o,l){l=l||"";var u=[],d,f;typeof l!="string"&&(l="?");for(f in o)if(e.call(o,f)){if(d=o[f],!d&&(d===null||d===t||isNaN(d))&&(d=""),f=r(f),d=r(d),f===null||d===null)continue;u.push(f+"="+d)}return u.length?l+u.join("&"):""}return ZC.stringify=i,ZC.parse=a,ZC}var BR,c6;function Qfe(){if(c6)return BR;c6=1;var e=Kfe(),t=Xfe(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,i=/:\d+$/,o=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function u(k){return(k||"").toString().replace(n,"")}var d=[["#","hash"],["?","query"],function(_,A){return y(A.protocol)?_.replace(/\\/g,"/"):_},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};function g(k){var _;typeof window<"u"?_=window:typeof _l<"u"?_=_l:typeof self<"u"?_=self:_={};var A=_.location||{};k=k||A;var P={},N=typeof k,I;if(k.protocol==="blob:")P=new E(unescape(k.pathname),{});else if(N==="string"){P=new E(k,{});for(I in f)delete P[I]}else if(N==="object"){for(I in k)I in f||(P[I]=k[I]);P.slashes===void 0&&(P.slashes=a.test(k.href))}return P}function y(k){return k==="file:"||k==="ftp:"||k==="http:"||k==="https:"||k==="ws:"||k==="wss:"}function h(k,_){k=u(k),k=k.replace(r,""),_=_||{};var A=o.exec(k),P=A[1]?A[1].toLowerCase():"",N=!!A[2],I=!!A[3],L=0,j;return N?I?(j=A[2]+A[3]+A[4],L=A[2].length+A[3].length):(j=A[2]+A[4],L=A[2].length):I?(j=A[3]+A[4],L=A[3].length):j=A[4],P==="file:"?L>=2&&(j=j.slice(2)):y(P)?j=A[4]:P?N&&(j=j.slice(2)):L>=2&&y(_.protocol)&&(j=A[4]),{protocol:P,slashes:N||y(P),slashesCount:L,rest:j}}function v(k,_){if(k==="")return _;for(var A=(_||"/").split("/").slice(0,-1).concat(k.split("/")),P=A.length,N=A[P-1],I=!1,L=0;P--;)A[P]==="."?A.splice(P,1):A[P]===".."?(A.splice(P,1),L++):L&&(P===0&&(I=!0),A.splice(P,1),L--);return I&&A.unshift(""),(N==="."||N==="..")&&A.push(""),A.join("/")}function E(k,_,A){if(k=u(k),k=k.replace(r,""),!(this instanceof E))return new E(k,_,A);var P,N,I,L,j,z,Q=d.slice(),le=typeof _,re=this,ge=0;for(le!=="object"&&le!=="string"&&(A=_,_=null),A&&typeof A!="function"&&(A=t.parse),_=g(_),N=h(k||"",_),P=!N.protocol&&!N.slashes,re.slashes=N.slashes||P&&_.slashes,re.protocol=N.protocol||_.protocol||"",k=N.rest,(N.protocol==="file:"&&(N.slashesCount!==2||l.test(k))||!N.slashes&&(N.protocol||N.slashesCount<2||!y(re.protocol)))&&(Q[3]=[/(.*)/,"pathname"]);ge=0;--H){var Y=this.tryEntries[H],ie=Y.completion;if(Y.tryLoc==="root")return ce("end");if(Y.tryLoc<=this.prev){var J=r.call(Y,"catchLoc"),ee=r.call(Y,"finallyLoc");if(J&&ee){if(this.prev=0;--ce){var H=this.tryEntries[ce];if(H.tryLoc<=this.prev&&r.call(H,"finallyLoc")&&this.prev=0;--q){var ce=this.tryEntries[q];if(ce.finallyLoc===G)return this.complete(ce.completion,ce.afterLoc),re(ce),T}},catch:function(G){for(var q=this.tryEntries.length-1;q>=0;--q){var ce=this.tryEntries[q];if(ce.tryLoc===G){var H=ce.completion;if(H.type==="throw"){var Y=H.arg;re(ce)}return Y}}throw Error("illegal catch attempt")},delegateYield:function(G,q,ce){return this.delegate={iterator:me(G),resultName:q,nextLoc:ce},this.method==="next"&&(this.arg=e),T}},t}function d6(e,t,n,r,a,i,o){try{var l=e[i](o),u=l.value}catch(d){n(d);return}l.done?t(u):Promise.resolve(u).then(r,a)}function tpe(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(u){d6(i,r,a,o,l,"next",u)}function l(u){d6(i,r,a,o,l,"throw",u)}o(void 0)})}}function AQ(e,t){return ape(e)||rpe(e,t)||NQ(e,t)||npe()}function npe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rpe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],u=!0,d=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(f){d=!0,a=f}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw a}}return l}}function ape(e){if(Array.isArray(e))return e}function Mv(e){"@babel/helpers - typeof";return Mv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mv(e)}function ipe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=NQ(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,l;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return i=d.done,d},e:function(d){o=!0,l=d},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}}}function NQ(e,t){if(e){if(typeof e=="string")return f6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f6(e,t)}}function f6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1)for(var i=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];i1||n._parallelUploadUrls!=null?n._startParallelUpload():n._startSingleUpload()}).catch(function(u){n._emitError(u)})}},{key:"_startParallelUpload",value:function(){var n,r=this,a=this._size,i=0;this._parallelUploads=[];var o=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,l=(n=this.options.parallelUploadBoundaries)!==null&&n!==void 0?n:fpe(this._source.size,o);this._parallelUploadUrls&&l.forEach(function(f,g){f.uploadUrl=r._parallelUploadUrls[g]||null}),this._parallelUploadUrls=new Array(l.length);var u=l.map(function(f,g){var y=0;return r._source.slice(f.start,f.end).then(function(h){var v=h.value;return new Promise(function(E,T){var C=gb(gb({},r.options),{},{uploadUrl:f.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:r.options.metadataForPartialUploads,headers:gb(gb({},r.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:E,onError:T,onProgress:function(A){i=i-y+A,y=A,r._emitProgress(i,a)},onUploadUrlAvailable:function(){r._parallelUploadUrls[g]=k.url,r._parallelUploadUrls.filter(function(A){return!!A}).length===l.length&&r._saveUploadInUrlStorage()}}),k=new e(v,C);k.start(),r._parallelUploads.push(k)})})}),d;Promise.all(u).then(function(){d=r._openRequest("POST",r.options.endpoint),d.setHeader("Upload-Concat","final;".concat(r._parallelUploadUrls.join(" ")));var f=m6(r.options.metadata);return f!==""&&d.setHeader("Upload-Metadata",f),r._sendRequest(d,null)}).then(function(f){if(!Rb(f.getStatus(),200)){r._emitHttpError(d,f,"tus: unexpected response while creating upload");return}var g=f.getHeader("Location");if(g==null){r._emitHttpError(d,f,"tus: invalid or missing Location header");return}r.url=b6(r.options.endpoint,g),"Created upload at ".concat(r.url),r._emitSuccess(f)}).catch(function(f){r._emitError(f)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(n){var r=this;if(this._parallelUploads!=null){var a=ipe(this._parallelUploads),i;try{for(a.s();!(i=a.n()).done;){var o=i.value;o.abort(n)}}catch(l){a.e(l)}finally{a.f()}}return this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!n||this.url==null?Promise.resolve():e.terminate(this.url,this.options).then(function(){return r._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(n,r,a,i){this._emitError(new QC(a,i,n,r))}},{key:"_emitError",value:function(n){var r=this;if(!this._aborted){if(this.options.retryDelays!=null){var a=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(a&&(this._retryAttempt=0),y6(n,this._retryAttempt,this.options)){var i=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){r.start()},i);return}}if(typeof this.options.onError=="function")this.options.onError(n);else throw n}}},{key:"_emitSuccess",value:function(n){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess({lastResponse:n})}},{key:"_emitProgress",value:function(n,r){typeof this.options.onProgress=="function"&&this.options.onProgress(n,r)}},{key:"_emitChunkComplete",value:function(n,r,a){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(n,r,a)}},{key:"_createUpload",value:function(){var n=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var r=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?r.setHeader("Upload-Defer-Length","1"):r.setHeader("Upload-Length","".concat(this._size));var a=m6(this.options.metadata);a!==""&&r.setHeader("Upload-Metadata",a);var i;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,i=this._addChunkToRequest(r)):((this.options.protocol===Mk||this.options.protocol===mS)&&r.setHeader("Upload-Complete","?0"),i=this._sendRequest(r,null)),i.then(function(o){if(!Rb(o.getStatus(),200)){n._emitHttpError(r,o,"tus: unexpected response while creating upload");return}var l=o.getHeader("Location");if(l==null){n._emitHttpError(r,o,"tus: invalid or missing Location header");return}if(n.url=b6(n.options.endpoint,l),"Created upload at ".concat(n.url),typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._size===0){n._emitSuccess(o),n._source.close();return}n._saveUploadInUrlStorage().then(function(){n.options.uploadDataDuringCreation?n._handleUploadResponse(r,o):(n._offset=0,n._performUpload())})}).catch(function(o){n._emitHttpError(r,null,"tus: failed to create upload",o)})}},{key:"_resumeUpload",value:function(){var n=this,r=this._openRequest("HEAD",this.url),a=this._sendRequest(r,null);a.then(function(i){var o=i.getStatus();if(!Rb(o,200)){if(o===423){n._emitHttpError(r,i,"tus: upload is currently locked; retry later");return}if(Rb(o,400)&&n._removeFromUrlStorage(),!n.options.endpoint){n._emitHttpError(r,i,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}n.url=null,n._createUpload();return}var l=Number.parseInt(i.getHeader("Upload-Offset"),10);if(Number.isNaN(l)){n._emitHttpError(r,i,"tus: invalid or missing offset value");return}var u=Number.parseInt(i.getHeader("Upload-Length"),10);if(Number.isNaN(u)&&!n.options.uploadLengthDeferred&&n.options.protocol===Nk){n._emitHttpError(r,i,"tus: invalid or missing length value");return}typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._saveUploadInUrlStorage().then(function(){if(l===u){n._emitProgress(u,u),n._emitSuccess(i);return}n._offset=l,n._performUpload()})}).catch(function(i){n._emitHttpError(r,null,"tus: failed to resume upload",i)})}},{key:"_performUpload",value:function(){var n=this;if(!this._aborted){var r;this.options.overridePatchMethod?(r=this._openRequest("POST",this.url),r.setHeader("X-HTTP-Method-Override","PATCH")):r=this._openRequest("PATCH",this.url),r.setHeader("Upload-Offset","".concat(this._offset));var a=this._addChunkToRequest(r);a.then(function(i){if(!Rb(i.getStatus(),200)){n._emitHttpError(r,i,"tus: unexpected response while uploading chunk");return}n._handleUploadResponse(r,i)}).catch(function(i){n._aborted||n._emitHttpError(r,null,"tus: failed to upload chunk at offset ".concat(n._offset),i)})}}},{key:"_addChunkToRequest",value:function(n){var r=this,a=this._offset,i=this._offset+this.options.chunkSize;return n.setProgressHandler(function(o){r._emitProgress(a+o,r._size)}),this.options.protocol===Nk?n.setHeader("Content-Type","application/offset+octet-stream"):this.options.protocol===mS&&n.setHeader("Content-Type","application/partial-upload"),(i===Number.POSITIVE_INFINITY||i>this._size)&&!this.options.uploadLengthDeferred&&(i=this._size),this._source.slice(a,i).then(function(o){var l=o.value,u=o.done,d=l!=null&&l.size?l.size:0;r.options.uploadLengthDeferred&&u&&(r._size=r._offset+d,n.setHeader("Upload-Length","".concat(r._size)));var f=r._offset+d;return!r.options.uploadLengthDeferred&&u&&f!==r._size?Promise.reject(new Error("upload was configured with a size of ".concat(r._size," bytes, but the source is done after ").concat(f," bytes"))):l===null?r._sendRequest(n):((r.options.protocol===Mk||r.options.protocol===mS)&&n.setHeader("Upload-Complete",u?"?1":"?0"),r._emitProgress(r._offset,r._size),r._sendRequest(n,l))})}},{key:"_handleUploadResponse",value:function(n,r){var a=Number.parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(a)){this._emitHttpError(n,r,"tus: invalid or missing offset value");return}if(this._emitProgress(a,this._size),this._emitChunkComplete(a-this._offset,a,this._size),this._offset=a,a===this._size){this._emitSuccess(r),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(n,r){var a=g6(n,r,this.options);return this._req=a,a}},{key:"_removeFromUrlStorage",value:function(){var n=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(r){n._emitError(r)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var n=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var r={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?r.parallelUploadUrls=this._parallelUploadUrls:r.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,r).then(function(a){n._urlStorageKey=a})}},{key:"_sendRequest",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v6(n,r,this.options)}}],[{key:"terminate",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=g6("DELETE",n,r);return v6(a,null,r).then(function(i){if(i.getStatus()!==204)throw new QC("tus: unexpected response while terminating upload",null,a,i)}).catch(function(i){if(i instanceof QC||(i=new QC("tus: failed to terminate upload",i,a,null)),!y6(i,0,r))throw i;var o=r.retryDelays[0],l=r.retryDelays.slice(1),u=gb(gb({},r),{},{retryDelays:l});return new Promise(function(d){return setTimeout(d,o)}).then(function(){return e.terminate(n,u)})})}}])})();function m6(e){return Object.entries(e).map(function(t){var n=AQ(t,2),r=n[0],a=n[1];return"".concat(r," ").concat(Yfe.encode(String(a)))}).join(",")}function Rb(e,t){return e>=t&&e=n.retryDelays.length||e.originalRequest==null?!1:n&&typeof n.onShouldRetry=="function"?n.onShouldRetry(e,t,n):IQ(e)}function IQ(e){var t=e.originalResponse?e.originalResponse.getStatus():0;return(!Rb(t,400)||t===409||t===423)&&dpe()}function b6(e,t){return new Zfe(t,e).toString()}function fpe(e,t){for(var n=Math.floor(e/t),r=[],a=0;a=this.size;return Promise.resolve({value:a,done:i})}},{key:"close",value:function(){}}])})();function VS(e){"@babel/helpers - typeof";return VS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VS(e)}function Spe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Epe(e,t){for(var n=0;nthis._bufferOffset&&(this._buffer=this._buffer.slice(n-this._bufferOffset),this._bufferOffset=n);var a=S6(this._buffer)===0;return this._done&&a?null:this._buffer.slice(0,r-n)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])})();function Iv(e){"@babel/helpers - typeof";return Iv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iv(e)}function pL(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */pL=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(W,G,q){W[G]=q.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function d(W,G,q){return Object.defineProperty(W,G,{value:q,enumerable:!0,configurable:!0,writable:!0}),W[G]}try{d({},"")}catch{d=function(q,ce,H){return q[ce]=H}}function f(W,G,q,ce){var H=G&&G.prototype instanceof C?G:C,Y=Object.create(H.prototype),ie=new ge(ce||[]);return a(Y,"_invoke",{value:z(W,q,ie)}),Y}function g(W,G,q){try{return{type:"normal",arg:W.call(G,q)}}catch(ce){return{type:"throw",arg:ce}}}t.wrap=f;var y="suspendedStart",h="suspendedYield",v="executing",E="completed",T={};function C(){}function k(){}function _(){}var A={};d(A,o,function(){return this});var P=Object.getPrototypeOf,N=P&&P(P(me([])));N&&N!==n&&r.call(N,o)&&(A=N);var I=_.prototype=C.prototype=Object.create(A);function L(W){["next","throw","return"].forEach(function(G){d(W,G,function(q){return this._invoke(G,q)})})}function j(W,G){function q(H,Y,ie,J){var ee=g(W[H],W,Y);if(ee.type!=="throw"){var Z=ee.arg,ue=Z.value;return ue&&Iv(ue)=="object"&&r.call(ue,"__await")?G.resolve(ue.__await).then(function(ke){q("next",ke,ie,J)},function(ke){q("throw",ke,ie,J)}):G.resolve(ue).then(function(ke){Z.value=ke,ie(Z)},function(ke){return q("throw",ke,ie,J)})}J(ee.arg)}var ce;a(this,"_invoke",{value:function(Y,ie){function J(){return new G(function(ee,Z){q(Y,ie,ee,Z)})}return ce=ce?ce.then(J,J):J()}})}function z(W,G,q){var ce=y;return function(H,Y){if(ce===v)throw Error("Generator is already running");if(ce===E){if(H==="throw")throw Y;return{value:e,done:!0}}for(q.method=H,q.arg=Y;;){var ie=q.delegate;if(ie){var J=Q(ie,q);if(J){if(J===T)continue;return J}}if(q.method==="next")q.sent=q._sent=q.arg;else if(q.method==="throw"){if(ce===y)throw ce=E,q.arg;q.dispatchException(q.arg)}else q.method==="return"&&q.abrupt("return",q.arg);ce=v;var ee=g(W,G,q);if(ee.type==="normal"){if(ce=q.done?E:h,ee.arg===T)continue;return{value:ee.arg,done:q.done}}ee.type==="throw"&&(ce=E,q.method="throw",q.arg=ee.arg)}}}function Q(W,G){var q=G.method,ce=W.iterator[q];if(ce===e)return G.delegate=null,q==="throw"&&W.iterator.return&&(G.method="return",G.arg=e,Q(W,G),G.method==="throw")||q!=="return"&&(G.method="throw",G.arg=new TypeError("The iterator does not provide a '"+q+"' method")),T;var H=g(ce,W.iterator,G.arg);if(H.type==="throw")return G.method="throw",G.arg=H.arg,G.delegate=null,T;var Y=H.arg;return Y?Y.done?(G[W.resultName]=Y.value,G.next=W.nextLoc,G.method!=="return"&&(G.method="next",G.arg=e),G.delegate=null,T):Y:(G.method="throw",G.arg=new TypeError("iterator result is not an object"),G.delegate=null,T)}function le(W){var G={tryLoc:W[0]};1 in W&&(G.catchLoc=W[1]),2 in W&&(G.finallyLoc=W[2],G.afterLoc=W[3]),this.tryEntries.push(G)}function re(W){var G=W.completion||{};G.type="normal",delete G.arg,W.completion=G}function ge(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(le,this),this.reset(!0)}function me(W){if(W||W===""){var G=W[o];if(G)return G.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var q=-1,ce=function H(){for(;++q=0;--H){var Y=this.tryEntries[H],ie=Y.completion;if(Y.tryLoc==="root")return ce("end");if(Y.tryLoc<=this.prev){var J=r.call(Y,"catchLoc"),ee=r.call(Y,"finallyLoc");if(J&&ee){if(this.prev=0;--ce){var H=this.tryEntries[ce];if(H.tryLoc<=this.prev&&r.call(H,"finallyLoc")&&this.prev=0;--q){var ce=this.tryEntries[q];if(ce.finallyLoc===G)return this.complete(ce.completion,ce.afterLoc),re(ce),T}},catch:function(G){for(var q=this.tryEntries.length-1;q>=0;--q){var ce=this.tryEntries[q];if(ce.tryLoc===G){var H=ce.completion;if(H.type==="throw"){var Y=H.arg;re(ce)}return Y}}throw Error("illegal catch attempt")},delegateYield:function(G,q,ce){return this.delegate={iterator:me(G),resultName:q,nextLoc:ce},this.method==="next"&&(this.arg=e),T}},t}function E6(e,t,n,r,a,i,o){try{var l=e[i](o),u=l.value}catch(d){n(d);return}l.done?t(u):Promise.resolve(u).then(r,a)}function Ope(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(u){E6(i,r,a,o,l,"next",u)}function l(u){E6(i,r,a,o,l,"throw",u)}o(void 0)})}}function Rpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ppe(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(a,i){n._xhr.onload=function(){a(new zpe(n._xhr))},n._xhr.onerror=function(o){i(o)},n._xhr.send(r)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})(),zpe=(function(){function e(t){pF(this,e),this._xhr=t}return hF(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(n){return this._xhr.getResponseHeader(n)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})();function YS(e){"@babel/helpers - typeof";return YS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},YS(e)}function qpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hpe(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Qpe(this,t),r=Mb(Mb({},k6),r),ehe(this,t,[n,r])}return rhe(t,e),Zpe(t,null,[{key:"terminate",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a=Mb(Mb({},k6),a),ix.terminate(r,a)}}])})(ix);const rt=ze.createContext({setSession(e){},options:{}});class she{async setItem(t,n){return localStorage.setItem(t,n)}async getItem(t){return localStorage.getItem(t)}async removeItem(t){return localStorage.removeItem(t)}}async function lhe(e,t,n){n.setItem("fb_microservice_"+e,JSON.stringify(t))}function uhe(e,t,n){n.setItem("fb_selected_workspace_"+e,JSON.stringify(t))}async function che(e,t){let n=null;try{n=JSON.parse(await t.getItem("fb_microservice_"+e))}catch{}return n}async function dhe(e,t){let n=null;try{n=JSON.parse(await t.getItem("fb_selected_workspace_"+e))}catch{}return n}function fhe({children:e,remote:t,selectedUrw:n,identifier:r,token:a,preferredAcceptLanguage:i,queryClient:o,defaultExecFn:l,socketEnabled:u,socket:d,credentialStorage:f,prefix:g}){var G;const[y,h]=R.useState(!1),[v,E]=R.useState(),[T,C]=R.useState(""),[k,_]=R.useState(),A=R.useRef(f||new she),P=async()=>{const q=await dhe(r,A.current),ce=await che(r,A.current);_(q),E(ce),h(!0)};R.useEffect(()=>{P()},[]);const[N,I]=R.useState([]),[L,j]=R.useState(l),z=!!v,Q=q=>{uhe(r,q,A.current),_(q)},le=q=>{E(()=>(lhe(r,q,A.current),q))},re={headers:{authorization:a||(v==null?void 0:v.token)},prefix:(T||t)+(g||"")};if(k)re.headers["workspace-id"]=k.workspaceId,re.headers["role-id"]=k.roleId;else if(n)re.headers["workspace-id"]=n.workspaceId,re.headers["role-id"]=n.roleId;else if(v!=null&&v.userWorkspaces&&v.userWorkspaces.length>0){const q=v.userWorkspaces[0];re.headers["workspace-id"]=q.workspaceId,re.headers["role-id"]=q.roleId}i&&(re.headers["accept-language"]=i),R.useEffect(()=>{a&&E({...v||{},token:a})},[a]);const ge=()=>{var q;E(null),(q=A.current)==null||q.removeItem("fb_microservice_"+r),Q(void 0)},me=()=>{I([])},{socketState:W}=phe(t,(G=re.headers)==null?void 0:G.authorization,re.headers["workspace-id"],o,u);return w.jsx(rt.Provider,{value:{options:re,signout:ge,setOverrideRemoteUrl:C,overrideRemoteUrl:T,setSession:le,socketState:W,checked:y,selectedUrw:k,selectUrw:Q,session:v,preferredAcceptLanguage:i,activeUploads:N,setActiveUploads:I,execFn:L,setExecFn:j,discardActiveUploads:me,isAuthenticated:z},children:e})}function phe(e,t,n,r,a=!0){const[i,o]=R.useState({state:"unknown"});return R.useEffect(()=>{if(!e||!t||t==="undefined"||a===!1)return;const l=e.replace("https","wss").replace("http","ws");let u;try{u=new WebSocket(`${l}ws?token=${t}&workspaceId=${n}`),u.onerror=function(d){o({state:"error"})},u.onclose=function(d){o({state:"closed"})},u.onmessage=function(d){try{const f=JSON.parse(d.data);f!=null&&f.cacheKey&&r.invalidateQueries(f==null?void 0:f.cacheKey)}catch{console.error("Socket message parsing error",d)}},u.onopen=function(d){o({state:"connected"})}}catch{}return()=>{(u==null?void 0:u.readyState)===1&&u.close()}},[t,n]),{socketState:i}}function Gt(e){if(!e)return{};const t={};return e.startIndex&&(t.startIndex=e.startIndex),e.itemsPerPage&&(t.itemsPerPage=e.itemsPerPage),e.query&&(t.query=e.query),e.deep&&(t.deep=e.deep),e.jsonQuery&&(t.jsonQuery=JSON.stringify(e.jsonQuery)),e.withPreloads&&(t.withPreloads=e.withPreloads),e.uniqueId&&(t.uniqueId=e.uniqueId),e.sort&&(t.sort=e.sort),t}function hhe(){const{activeUploads:e,setActiveUploads:t}=R.useContext(rt),n=()=>{t([])};return e.length===0?null:w.jsxs("div",{className:"active-upload-box",children:[w.jsxs("div",{className:"upload-header",children:[w.jsxs("span",{children:[e.length," Uploads"]}),w.jsx("span",{className:"action-section",children:w.jsx("button",{onClick:n,children:w.jsx("img",{src:"/common/close.svg"})})})]}),e.map(r=>w.jsxs("div",{className:"upload-file-item",children:[w.jsx("span",{children:r.filename}),w.jsxs("span",{children:[Math.ceil(r.bytesSent/r.bytesTotal*100),"%"]})]},r.uploadId))]})}var zR={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/var p6;function ph(){return p6||(p6=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o{if(!e.body)throw new Error("SSE requires readable body");const r=e.body.getReader(),a=new TextDecoder;let i="";const o=new Promise((l,u)=>{function d(){r.read().then(({done:f,value:g})=>{if(n!=null&&n.aborted)return r.cancel(),l();if(f)return l();i+=a.decode(g,{stream:!0});const y=i.split(` - -`);i=y.pop()||"";for(const h of y){let v="",E="message";if(h.split(` -`).forEach(T=>{T.startsWith("data:")?v+=T.slice(5).trim():T.startsWith("event:")&&(E=T.slice(6).trim())}),v){if(v==="[DONE]")return l();t==null||t(new MessageEvent(E,{data:v}))}}d()}).catch(f=>{f.name==="AbortError"?l():u(f)})}d()});return{response:e,done:o}};class nF{constructor(t="",n={},r,a,i=null){this.baseUrl=t,this.defaultHeaders=n,this.requestInterceptor=r,this.responseInterceptor=a,this.fetchOverrideFn=i}async apply(t,n){return/^https?:\/\//.test(t)||(t=this.baseUrl+t),n.headers={...this.defaultHeaders,...n.headers||{}},this.requestInterceptor?this.requestInterceptor(t,n):[t,n]}async handle(t){return this.responseInterceptor?this.responseInterceptor(t):t}clone(t){return new nF((t==null?void 0:t.baseUrl)??this.baseUrl,{...this.defaultHeaders,...(t==null?void 0:t.defaultHeaders)||{}},(t==null?void 0:t.requestInterceptor)??this.requestInterceptor,(t==null?void 0:t.responseInterceptor)??this.responseInterceptor)}}function ah(e,t){const n={};for(const[r,a]of Object.entries(t))typeof a=="string"?n[r]=`${e}.${a}`:typeof a=="object"&&a!==null&&(n[r]=a);return n}function ya(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ihe=0;function $v(e){return"__private_"+ihe+++"_"+e}var sd=$v("passport"),Nm=$v("token"),Mm=$v("exchangeKey"),ld=$v("userWorkspaces"),ud=$v("user"),Im=$v("userId"),MR=$v("isJsonAppliable");class Ta{get passport(){return ya(this,sd)[sd]}set passport(t){t instanceof jS?ya(this,sd)[sd]=t:ya(this,sd)[sd]=new jS(t)}setPassport(t){return this.passport=t,this}get token(){return ya(this,Nm)[Nm]}set token(t){ya(this,Nm)[Nm]=String(t)}setToken(t){return this.token=t,this}get exchangeKey(){return ya(this,Mm)[Mm]}set exchangeKey(t){ya(this,Mm)[Mm]=String(t)}setExchangeKey(t){return this.exchangeKey=t,this}get userWorkspaces(){return ya(this,ld)[ld]}set userWorkspaces(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof jb?ya(this,ld)[ld]=t:ya(this,ld)[ld]=t.map(n=>new jb(n)))}setUserWorkspaces(t){return this.userWorkspaces=t,this}get user(){return ya(this,ud)[ud]}set user(t){t instanceof aa?ya(this,ud)[ud]=t:ya(this,ud)[ud]=new aa(t)}setUser(t){return this.user=t,this}get userId(){return ya(this,Im)[Im]}set userId(t){const n=typeof t=="string"||t===void 0||t===null;ya(this,Im)[Im]=n?t:String(t)}setUserId(t){return this.userId=t,this}constructor(t=void 0){if(Object.defineProperty(this,MR,{value:ohe}),Object.defineProperty(this,sd,{writable:!0,value:void 0}),Object.defineProperty(this,Nm,{writable:!0,value:""}),Object.defineProperty(this,Mm,{writable:!0,value:""}),Object.defineProperty(this,ld,{writable:!0,value:[]}),Object.defineProperty(this,ud,{writable:!0,value:void 0}),Object.defineProperty(this,Im,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(ya(this,MR)[MR](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.passport!==void 0&&(this.passport=n.passport),n.token!==void 0&&(this.token=n.token),n.exchangeKey!==void 0&&(this.exchangeKey=n.exchangeKey),n.userWorkspaces!==void 0&&(this.userWorkspaces=n.userWorkspaces),n.user!==void 0&&(this.user=n.user),n.userId!==void 0&&(this.userId=n.userId)}toJSON(){return{passport:ya(this,sd)[sd],token:ya(this,Nm)[Nm],exchangeKey:ya(this,Mm)[Mm],userWorkspaces:ya(this,ld)[ld],user:ya(this,ud)[ud],userId:ya(this,Im)[Im]}}toString(){return JSON.stringify(this)}static get Fields(){return{passport:"passport",token:"token",exchangeKey:"exchangeKey",userWorkspaces$:"userWorkspaces",get userWorkspaces(){return ah("userWorkspaces[:i]",jb.Fields)},user:"user",userId:"userId"}}static from(t){return new Ta(t)}static with(t){return new Ta(t)}copyWith(t){return new Ta({...this.toJSON(),...t})}clone(){return new Ta(this.toJSON())}}function ohe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function she(e,t){var r,a;let n=!1;for(const i of((r=e==null?void 0:e.role)==null?void 0:r.capabilities)||[])if(i.uniqueId===t||i.uniqueId==="root.*"||(a=i==null?void 0:i.uniqueId)!=null&&a.endsWith(".*")&&t.includes(i.uniqueId.replace("*",""))){n=!0;break}return n}function lhe(e,t,n){let r=!1,a=!1;if(!e)return!1;const i=t.find(l=>l.uniqueId===e.workspaceId);if(!i)return!1;for(const l of i.capabilities||[])if(new RegExp(l).test(n)){r=!0;break}const o=(i.roles||[]).find(l=>l.uniqueId===e.roleId);if(!o)return!1;for(const l of o.capabilities||[])if(new RegExp(l).test(n)){a=!0;break}return r&&a}function kQ(e){for(var t=[],n=e.length,r,a=0;a>>0,t.push(String.fromCharCode(r));return t.join("")}function uhe(e,t,n,r,a){var i=new XMLHttpRequest;i.open(t,e),i.addEventListener("load",function(){var o=kQ(this.responseText);o="data:application/text;base64,"+btoa(o),document.location=o},!1),i.setRequestHeader("Authorization",n),i.setRequestHeader("Workspace-Id",r),i.setRequestHeader("role-Id",a),i.overrideMimeType("application/octet-stream; charset=x-user-defined;"),i.send(null)}const che=({path:e})=>{At();const{options:t}=R.useContext(nt);_Q(e?()=>{const n=t==null?void 0:t.headers;uhe(t.prefix+""+e,"GET",n.authorization||"",n["workspace-id"]||"",n["role-id"]||"")}:void 0,Ir.ExportTable)};function d0(e,t){const n={[Ir.NewEntity]:"n",[Ir.NewChildEntity]:"n",[Ir.EditEntity]:"e",[Ir.SidebarToggle]:"m",[Ir.ViewQuestions]:"q",[Ir.Delete]:"Backspace",[Ir.StopStart]:" ",[Ir.ExportTable]:"x",[Ir.CommonBack]:"Escape",[Ir.Select1Index]:"1",[Ir.Select2Index]:"2",[Ir.Select3Index]:"3",[Ir.Select4Index]:"4",[Ir.Select5Index]:"5",[Ir.Select6Index]:"6",[Ir.Select7Index]:"7",[Ir.Select8Index]:"8",[Ir.Select9Index]:"9"};let r;return typeof e=="object"?r=e.map(a=>n[a]):typeof e=="string"&&(r=n[e]),rF(r,t)}function rF(e,t){R.useEffect(()=>{if(!e||e.length===0||!t)return;function n(r){var a=r||window.event,i=a.target||a.srcElement;const o=i.tagName.toUpperCase(),l=i.type;if(["TEXTAREA","SELECT"].includes(o)){r.key==="Escape"&&a.target.blur();return}if(o==="INPUT"&&(l==="text"||l==="password")){r.key==="Escape"&&a.target.blur();return}let u=!1;typeof e=="string"&&r.key===e?u=!0:Array.isArray(e)&&(u=e.includes(r.key)),u&&t&&t(r.key)}if(t)return window.addEventListener("keyup",n),()=>{window.removeEventListener("keyup",n)}},[t,e])}function rL({filter:e}){const t=R.useContext(t_);return w.jsx(w.Fragment,{children:(t.refs||[]).filter(e||Boolean).map(n=>w.jsx(dhe,{mref:n},n.id))})}function dhe({mref:e}){var t;return w.jsx("div",{className:"action-menu",children:w.jsx("ul",{className:"navbar-nav",children:(t=e.actions)==null?void 0:t.filter(Boolean).map(n=>w.jsx(fhe,{item:n},n.uniqueActionKey))})})}function fhe({item:e}){if(e.Component){const t=e.Component;return w.jsx("li",{className:"action-menu-item",children:w.jsx(t,{})})}return w.jsx("li",{className:ia("action-menu-item",e.className),onClick:e.onSelect,children:e.icon?w.jsx("span",{children:w.jsx("img",{src:kr.PUBLIC_URL+e.icon,title:e.label,alt:e.label})}):w.jsx("span",{children:e.label})})}const t_=ze.createContext({setActionMenu(){},removeActionMenu(){},removeActionMenuItems(e,t){},refs:[]});function phe(){const e=R.useContext(t_);return{addActions:(a,i)=>(e.setActionMenu(a,i),()=>e.removeActionMenu(a)),removeActionMenu:a=>{e.removeActionMenu(a)},deleteActions:(a,i)=>{e.removeActionMenuItems(a,i)}}}function EE(e,t,n,r){const a=R.useContext(t_);return R.useEffect(()=>(a.setActionMenu(e,t.filter(i=>i!==void 0)),()=>{a.removeActionMenu(e)}),[]),{addActions(i,o=e){a.setActionMenu(o,i)},deleteActions(i,o=e){a.removeActionMenuItems(o,i)}}}function hhe({children:e}){const[t,n]=R.useState([]),r=(o,l)=>{n(u=>(u.find(f=>f.id===o)?u=u.map(f=>f.id===o?{...f,actions:l}:f):u.push({id:o,actions:l}),[...u]))},a=o=>{n(l=>[...l.filter(u=>u.id!==o)])},i=(o,l)=>{for(let d=0;dv===y.uniqueActionKey)||g.push(y);f.actions=g}}const u=[...t];n(u)};return w.jsx(t_.Provider,{value:{refs:t,setActionMenu:r,removeActionMenuItems:i,removeActionMenu:a},children:e})}function mhe({onCancel:e,onSave:t,access:n}){const{selectedUrw:r}=R.useContext(nt),a=R.useMemo(()=>n?(r==null?void 0:r.workspaceId)!=="root"&&(n!=null&&n.onlyRoot)?!1:!(n!=null&&n.permissions)||n.permissions.length===0?!0:she(r,n.permissions[0]):!0,[r,n]),i=At();EE("editing-core",(({onSave:l,onCancel:u})=>a?[{icon:"",label:i.common.save,uniqueActionKey:"save",onSelect:()=>{l()}},u&&{icon:"",label:i.common.cancel,uniqueActionKey:"cancel",onSelect:()=>{u()}}]:[])({onCancel:e,onSave:t}))}function ghe(e,t){const n=At();d0(t,e),EE("commonEntityActions",[e&&{icon:ku.add,label:n.actions.new,uniqueActionKey:"new",onSelect:e}])}function xQ(e,t){const n=At();d0(t,e),EE("navigation",[e&&{icon:ku.left,label:n.actions.back,uniqueActionKey:"back",className:"navigator-back-button",onSelect:e}])}function vhe(){const{session:e,options:t}=R.useContext(nt);_Q(()=>{var n=new XMLHttpRequest;n.open("GET",t.prefix+"roles/export"),n.addEventListener("load",function(){var a=kQ(this.responseText);a="data:application/text;base64,"+btoa(a),document.location=a},!1);const r=t==null?void 0:t.headers;n.setRequestHeader("Authorization",r.authorization||""),n.setRequestHeader("Workspace-Id",r["workspace-id"]||""),n.setRequestHeader("role-Id",r["role-id"]||""),n.overrideMimeType("application/octet-stream; charset=x-user-defined;"),n.send(null)},Ir.ExportTable)}function _Q(e,t){const n=At();d0(t,e),EE("exportTools",[e&&{icon:ku.export,label:n.actions.new,uniqueActionKey:"export",onSelect:e}])}function yhe(e,t){const n=At();d0(t,e),EE("commonEntityActions",[e&&{icon:ku.edit,label:n.actions.edit,uniqueActionKey:"new",onSelect:e}])}function bhe(e,t,n=100){const r=R.useRef(window.innerWidth);R.useEffect(()=>{let a;const i=()=>{const l=window.innerWidth,u=l=e&&u||r.current{clearTimeout(a),a=setTimeout(i,n)};return window.addEventListener("resize",o),i(),()=>{window.removeEventListener("resize",o),clearTimeout(a)}},[e,t,n])}function OQ(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="number"&&!isNaN(e),Ov=e=>typeof e=="string",as=e=>typeof e=="function",Tk=e=>Ov(e)||as(e)?e:null,IR=e=>R.isValidElement(e)||Ov(e)||as(e)||pS(e);function whe(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:a}=e;requestAnimationFrame(()=>{a.minHeight="initial",a.height=r+"px",a.transition=`all ${n}ms`,requestAnimationFrame(()=>{a.height="0",a.padding="0",a.margin="0",setTimeout(t,n)})})}function n_(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:a=!0,collapseDuration:i=300}=e;return function(o){let{children:l,position:u,preventExitTransition:d,done:f,nodeRef:g,isIn:y}=o;const h=r?`${t}--${u}`:t,v=r?`${n}--${u}`:n,E=R.useRef(0);return R.useLayoutEffect(()=>{const T=g.current,C=h.split(" "),k=_=>{_.target===g.current&&(T.dispatchEvent(new Event("d")),T.removeEventListener("animationend",k),T.removeEventListener("animationcancel",k),E.current===0&&_.type!=="animationcancel"&&T.classList.remove(...C))};T.classList.add(...C),T.addEventListener("animationend",k),T.addEventListener("animationcancel",k)},[]),R.useEffect(()=>{const T=g.current,C=()=>{T.removeEventListener("animationend",C),a?whe(T,f,i):f()};y||(d?C():(E.current=1,T.className+=` ${v}`,T.addEventListener("animationend",C)))},[y]),ze.createElement(ze.Fragment,null,l)}}function h6(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const yl={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},zC=e=>{let{theme:t,type:n,...r}=e;return ze.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},DR={info:function(e){return ze.createElement(zC,{...e},ze.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return ze.createElement(zC,{...e},ze.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return ze.createElement(zC,{...e},ze.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return ze.createElement(zC,{...e},ze.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ze.createElement("div",{className:"Toastify__spinner"})}};function She(e){const[,t]=R.useReducer(h=>h+1,0),[n,r]=R.useState([]),a=R.useRef(null),i=R.useRef(new Map).current,o=h=>n.indexOf(h)!==-1,l=R.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:o,getToast:h=>i.get(h)}).current;function u(h){let{containerId:v}=h;const{limit:E}=l.props;!E||v&&l.containerId!==v||(l.count-=l.queue.length,l.queue=[])}function d(h){r(v=>h==null?[]:v.filter(E=>E!==h))}function f(){const{toastContent:h,toastProps:v,staleId:E}=l.queue.shift();y(h,v,E)}function g(h,v){let{delay:E,staleId:T,...C}=v;if(!IR(h)||(function(le){return!a.current||l.props.enableMultiContainer&&le.containerId!==l.props.containerId||i.has(le.toastId)&&le.updateId==null})(C))return;const{toastId:k,updateId:_,data:A}=C,{props:P}=l,N=()=>d(k),I=_==null;I&&l.count++;const L={...P,style:P.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(C).filter(le=>{let[re,ge]=le;return ge!=null})),toastId:k,updateId:_,data:A,closeToast:N,isIn:!1,className:Tk(C.className||P.toastClassName),bodyClassName:Tk(C.bodyClassName||P.bodyClassName),progressClassName:Tk(C.progressClassName||P.progressClassName),autoClose:!C.isLoading&&(j=C.autoClose,z=P.autoClose,j===!1||pS(j)&&j>0?j:z),deleteToast(){const le=h6(i.get(k),"removed");i.delete(k),yl.emit(4,le);const re=l.queue.length;if(l.count=k==null?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),re>0){const ge=k==null?l.props.limit:1;if(re===1||ge===1)l.displayedToast++,f();else{const me=ge>re?re:ge;l.displayedToast=me;for(let W=0;Wce in DR)(ge)&&(G=DR[ge](q))),G})(L),as(C.onOpen)&&(L.onOpen=C.onOpen),as(C.onClose)&&(L.onClose=C.onClose),L.closeButton=P.closeButton,C.closeButton===!1||IR(C.closeButton)?L.closeButton=C.closeButton:C.closeButton===!0&&(L.closeButton=!IR(P.closeButton)||P.closeButton);let Q=h;R.isValidElement(h)&&!Ov(h.type)?Q=R.cloneElement(h,{closeToast:N,toastProps:L,data:A}):as(h)&&(Q=h({closeToast:N,toastProps:L,data:A})),P.limit&&P.limit>0&&l.count>P.limit&&I?l.queue.push({toastContent:Q,toastProps:L,staleId:T}):pS(E)?setTimeout(()=>{y(Q,L,T)},E):y(Q,L,T)}function y(h,v,E){const{toastId:T}=v;E&&i.delete(E);const C={content:h,props:v};i.set(T,C),r(k=>[...k,T].filter(_=>_!==E)),yl.emit(4,h6(C,C.props.updateId==null?"added":"updated"))}return R.useEffect(()=>(l.containerId=e.containerId,yl.cancelEmit(3).on(0,g).on(1,h=>a.current&&d(h)).on(5,u).emit(2,l),()=>{i.clear(),yl.emit(3,l)}),[]),R.useEffect(()=>{l.props=e,l.isToastActive=o,l.displayedToast=n.length}),{getToastToRender:function(h){const v=new Map,E=Array.from(i.values());return e.newestOnTop&&E.reverse(),E.forEach(T=>{const{position:C}=T.props;v.has(C)||v.set(C,[]),v.get(C).push(T)}),Array.from(v,T=>h(T[0],T[1]))},containerRef:a,isToastActive:o}}function m6(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function g6(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Ehe(e){const[t,n]=R.useState(!1),[r,a]=R.useState(!1),i=R.useRef(null),o=R.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=R.useRef(e),{autoClose:u,pauseOnHover:d,closeToast:f,onClick:g,closeOnClick:y}=e;function h(A){if(e.draggable){A.nativeEvent.type==="touchstart"&&A.nativeEvent.preventDefault(),o.didMove=!1,document.addEventListener("mousemove",C),document.addEventListener("mouseup",k),document.addEventListener("touchmove",C),document.addEventListener("touchend",k);const P=i.current;o.canCloseOnClick=!0,o.canDrag=!0,o.boundingRect=P.getBoundingClientRect(),P.style.transition="",o.x=m6(A.nativeEvent),o.y=g6(A.nativeEvent),e.draggableDirection==="x"?(o.start=o.x,o.removalDistance=P.offsetWidth*(e.draggablePercent/100)):(o.start=o.y,o.removalDistance=P.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function v(A){if(o.boundingRect){const{top:P,bottom:N,left:I,right:L}=o.boundingRect;A.nativeEvent.type!=="touchend"&&e.pauseOnHover&&o.x>=I&&o.x<=L&&o.y>=P&&o.y<=N?T():E()}}function E(){n(!0)}function T(){n(!1)}function C(A){const P=i.current;o.canDrag&&P&&(o.didMove=!0,t&&T(),o.x=m6(A),o.y=g6(A),o.delta=e.draggableDirection==="x"?o.x-o.start:o.y-o.start,o.start!==o.x&&(o.canCloseOnClick=!1),P.style.transform=`translate${e.draggableDirection}(${o.delta}px)`,P.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function k(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",k),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",k);const A=i.current;if(o.canDrag&&o.didMove&&A){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return a(!0),void e.closeToast();A.style.transition="transform 0.2s, opacity 0.2s",A.style.transform=`translate${e.draggableDirection}(0)`,A.style.opacity="1"}}R.useEffect(()=>{l.current=e}),R.useEffect(()=>(i.current&&i.current.addEventListener("d",E,{once:!0}),as(e.onOpen)&&e.onOpen(R.isValidElement(e.children)&&e.children.props),()=>{const A=l.current;as(A.onClose)&&A.onClose(R.isValidElement(A.children)&&A.children.props)}),[]),R.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||T(),window.addEventListener("focus",E),window.addEventListener("blur",T)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",E),window.removeEventListener("blur",T))}),[e.pauseOnFocusLoss]);const _={onMouseDown:h,onTouchStart:h,onMouseUp:v,onTouchEnd:v};return u&&d&&(_.onMouseEnter=T,_.onMouseLeave=E),y&&(_.onClick=A=>{g&&g(A),o.canCloseOnClick&&f()}),{playToast:E,pauseToast:T,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:_}}function RQ(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return ze.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:a=>{a.stopPropagation(),t(a)},"aria-label":r},ze.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ze.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function The(e){let{delay:t,isRunning:n,closeToast:r,type:a="default",hide:i,className:o,style:l,controlledProgress:u,progress:d,rtl:f,isIn:g,theme:y}=e;const h=i||u&&d===0,v={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:h?0:1};u&&(v.transform=`scaleX(${d})`);const E=Gp("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":f}),T=as(o)?o({rtl:f,type:a,defaultClassName:E}):Gp(E,o);return ze.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:T,style:v,[u&&d>=1?"onTransitionEnd":"onAnimationEnd"]:u&&d<1?null:()=>{g&&r()}})}const Che=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:a}=Ehe(e),{closeButton:i,children:o,autoClose:l,onClick:u,type:d,hideProgressBar:f,closeToast:g,transition:y,position:h,className:v,style:E,bodyClassName:T,bodyStyle:C,progressClassName:k,progressStyle:_,updateId:A,role:P,progress:N,rtl:I,toastId:L,deleteToast:j,isIn:z,isLoading:Q,iconOut:le,closeOnClick:re,theme:ge}=e,me=Gp("Toastify__toast",`Toastify__toast-theme--${ge}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":I},{"Toastify__toast--close-on-click":re}),W=as(v)?v({rtl:I,position:h,type:d,defaultClassName:me}):Gp(me,v),G=!!N||!l,q={closeToast:g,type:d,theme:ge};let ce=null;return i===!1||(ce=as(i)?i(q):R.isValidElement(i)?R.cloneElement(i,q):RQ(q)),ze.createElement(y,{isIn:z,done:j,position:h,preventExitTransition:n,nodeRef:r},ze.createElement("div",{id:L,onClick:u,className:W,...a,style:E,ref:r},ze.createElement("div",{...z&&{role:P},className:as(T)?T({type:d}):Gp("Toastify__toast-body",T),style:C},le!=null&&ze.createElement("div",{className:Gp("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Q})},le),ze.createElement("div",null,o)),ce,ze.createElement(The,{...A&&!G?{key:`pb-${A}`}:{},rtl:I,theme:ge,delay:l,isRunning:t,isIn:z,closeToast:g,hide:f,type:d,style:_,className:k,controlledProgress:G,progress:N||0})))},r_=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},khe=n_(r_("bounce",!0));n_(r_("slide",!0));n_(r_("zoom"));n_(r_("flip"));const aL=R.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:a}=She(e),{className:i,style:o,rtl:l,containerId:u}=e;function d(f){const g=Gp("Toastify__toast-container",`Toastify__toast-container--${f}`,{"Toastify__toast-container--rtl":l});return as(i)?i({position:f,rtl:l,defaultClassName:g}):Gp(g,Tk(i))}return R.useEffect(()=>{t&&(t.current=r.current)},[]),ze.createElement("div",{ref:r,className:"Toastify",id:u},n((f,g)=>{const y=g.length?{...o}:{...o,pointerEvents:"none"};return ze.createElement("div",{className:d(f),style:y,key:`container-${f}`},g.map((h,v)=>{let{content:E,props:T}=h;return ze.createElement(Che,{...T,isIn:a(T.toastId),style:{...T.style,"--nth":v+1,"--len":g.length},key:`toast-${T.key}`},E)}))}))});aL.displayName="ToastContainer",aL.defaultProps={position:"top-right",transition:khe,autoClose:5e3,closeButton:RQ,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let $R,Zg=new Map,oS=[],xhe=1;function PQ(){return""+xhe++}function _he(e){return e&&(Ov(e.toastId)||pS(e.toastId))?e.toastId:PQ()}function hS(e,t){return Zg.size>0?yl.emit(0,e,t):oS.push({content:e,options:t}),t.toastId}function Xk(e,t){return{...t,type:t&&t.type||e,toastId:_he(t)}}function qC(e){return(t,n)=>hS(t,Xk(e,n))}function ea(e,t){return hS(e,Xk("default",t))}ea.loading=(e,t)=>hS(e,Xk("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ea.promise=function(e,t,n){let r,{pending:a,error:i,success:o}=t;a&&(r=Ov(a)?ea.loading(a,n):ea.loading(a.render,{...n,...a}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(f,g,y)=>{if(g==null)return void ea.dismiss(r);const h={type:f,...l,...n,data:y},v=Ov(g)?{render:g}:g;return r?ea.update(r,{...h,...v}):ea(v.render,{...h,...v}),y},d=as(e)?e():e;return d.then(f=>u("success",o,f)).catch(f=>u("error",i,f)),d},ea.success=qC("success"),ea.info=qC("info"),ea.error=qC("error"),ea.warning=qC("warning"),ea.warn=ea.warning,ea.dark=(e,t)=>hS(e,Xk("default",{theme:"dark",...t})),ea.dismiss=e=>{Zg.size>0?yl.emit(1,e):oS=oS.filter(t=>e!=null&&t.options.toastId!==e)},ea.clearWaitingQueue=function(e){return e===void 0&&(e={}),yl.emit(5,e)},ea.isActive=e=>{let t=!1;return Zg.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},ea.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=(function(r,a){let{containerId:i}=a;const o=Zg.get(i||$R);return o&&o.getToast(r)})(e,t);if(n){const{props:r,content:a}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:PQ()};i.toastId!==e&&(i.staleId=e);const o=i.render||a;delete i.render,hS(o,i)}},0)},ea.done=e=>{ea.update(e,{progress:1})},ea.onChange=e=>(yl.on(4,e),()=>{yl.off(4,e)}),ea.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},ea.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},yl.on(2,e=>{$R=e.containerId||e,Zg.set($R,e),oS.forEach(t=>{yl.emit(0,t.content,t.options)}),oS=[]}).on(3,e=>{Zg.delete(e.containerId||e),Zg.size===0&&yl.off(0).off(1).off(5)});let b1=null;const v6=2500;function Ohe(e,t){if((b1==null?void 0:b1.content)==e)return;const n=ea(e,{hideProgressBar:!0,autoClose:v6,...t});b1={content:e,key:n},setTimeout(()=>{b1=null},v6)}function f0(e){var n,r,a,i;const t={};if(e.error&&Array.isArray((n=e.error)==null?void 0:n.errors))for(const o of(r=e.error)==null?void 0:r.errors)t[o.location]=o.message;return e.status&&e.ok===!1?{form:`${e.status}`}:((a=e==null?void 0:e.error)!=null&&a.message&&(t.form=(i=e==null?void 0:e.error)==null?void 0:i.message),e.message?{form:`${e.message}`}:t)}function AQ(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function Rhe(e,t,n,r){const[a,i]=R.useState(null);return R.useEffect(()=>{const o=document.querySelector(e);if(!o)return;let l=null;const u=new ResizeObserver(d=>{for(const f of d){const g=f.contentRect.width;let y=null;for(const{name:h,value:v}of t)if(g{u.unobserve(o),u.disconnect()}},[e,t,n,r]),a}const ih=()=>{const e=navigator.userAgent.toLowerCase(),t="ontouchstart"in window||navigator.maxTouchPoints>0,n=window.innerWidth||document.documentElement.clientWidth,r=!!window.cordova||!!window.cordovaPlatformId,a=/iphone|android.*mobile|blackberry|windows phone|opera mini|iemobile/,i=/ipad|android(?!.*mobile)|tablet/,o=/windows|macintosh|linux|x11/,l=a.test(e),u=i.test(e),d=!t||o.test(e);let f="large";n<600?f="small":n<1024&&(f="medium");const g=n<1024;return{isPhysicalPhone:l,isTablet:u,isDesktop:d,isMobileView:g,isCordova:r,viewSize:f}},NQ=ze.createContext({sidebarVisible:!1,threshold:"desktop",routers:[{id:"url-router"}],toggleSidebar(){},setSidebarRef(e){},persistSidebarSize(e){},setFocusedRouter(e){},closeCurrentRouter(){},sidebarItemSelected(){},collapseLeftPanel(){},addRouter(){},updateSidebarSize(){},hide(){},show(){}});function Lv(){return R.useContext(NQ)}function Phe({children:e}){const t=R.useRef(null),n=R.useRef(null),[r,a]=R.useState(!1),[i,o]=R.useState([{id:"url-router"}]),l=N=>{n.current=N,localStorage.setItem("sidebarState",N.toString())};R.useEffect(()=>{const N=localStorage.getItem("sidebarState"),I=N!==null?parseFloat(N):null;I&&(n.current=I)},[]);const u=R.useRef(!1),d=N=>{var I;(I=t.current)==null||I.resize(N)};bhe(768,N=>{d(N?0:20)});const f=N=>{o(I=>[...I,{id:AQ(),href:N}])},g=N=>{o(I=>I.map(L=>L.id===N?{...L,focused:!0}:{...L,focused:!1}))},y=()=>{var N;t.current&&u.current&&(E(),u.current=!1),C((N=t.current)==null?void 0:N.getSize())},h=()=>{var j;const N=(j=t.current)==null?void 0:j.getSize(),I=180/window.innerWidth*100;let L=I;n.current&&n.current>I&&(L=n.current),ih().isMobileView&&(L=80),N&&N>0?(d(0),localStorage.setItem("sidebarState","-1"),a(!1)):(localStorage.setItem("sidebarState",L.toString()),d(L),a(!0))},v=N=>{t.current=N},E=()=>{d(0),a(!1)},T=N=>{o(I=>I.filter(L=>L.id!==N))},C=N=>{d(N)},k=()=>{t.current&&(d(20),a(!0))},_=N=>{N==="closed"?u.current=!0:u.current=!1},A=Rhe(".sidebar-panel",[{name:"closed",value:50},{name:"tablet",value:100},{name:"desktop",value:150}],_,_),P=()=>{window.innerWidth<500&&E()};return w.jsx(NQ.Provider,{value:{hide:E,sidebarItemSelected:P,addRouter:f,show:k,updateSidebarSize:C,setFocusedRouter:g,setSidebarRef:v,persistSidebarSize:l,closeCurrentRouter:T,threshold:A,collapseLeftPanel:y,routers:i,sidebarVisible:r,toggleSidebar:h},children:e})}class Od extends wn{constructor(...t){super(...t),this.children=void 0,this.name=void 0,this.operationId=void 0,this.diskPath=void 0,this.size=void 0,this.virtualPath=void 0,this.type=void 0,this.variations=void 0}}Od.Navigation={edit(e,t){return`${t?"/"+t:".."}/file/edit/${e}`},create(e){return`${e?"/"+e:".."}/file/new`},single(e,t){return`${t?"/"+t:".."}/file/${e}`},query(e={},t){return`${t?"/"+t:".."}/files`},Redit:"file/edit/:uniqueId",Rcreate:"file/new",Rsingle:"file/:uniqueId",Rquery:"files",rVariationsCreate:"file/:linkerId/variations/new",rVariationsEdit:"file/:linkerId/variations/edit/:uniqueId",editVariations(e,t,n){return`${n?"/"+n:""}/file/${e}/variations/edit/${t}`},createVariations(e,t){return`${t?"/"+t:""}/file/${e}/variations/new`}};Od.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"file",features:{},gormMap:{},fields:[{name:"name",type:"string",computedType:"string",gormMap:{}},{name:"operationId",description:"For each upload, we need to assign a operation id, so if the operation has been cancelled, it would be cleared automatically, and there won't be orphant files in the database.",type:"string",computedType:"string",gormMap:{}},{name:"diskPath",type:"string",computedType:"string",gormMap:{}},{name:"size",type:"int64",computedType:"number",gormMap:{}},{name:"virtualPath",type:"string",computedType:"string",gormMap:{}},{name:"type",type:"string",computedType:"string",gormMap:{}},{name:"variations",type:"array",computedType:"FileVariations[]",gormMap:{},"-":"FileVariations",fields:[{name:"name",type:"string",computedType:"string",gormMap:{}}],linkedTo:"FileEntity"}],description:"Tus file uploading reference of the content. Every files being uploaded using tus will be stored in this table."};Od.Fields={...wn.Fields,name:"name",operationId:"operationId",diskPath:"diskPath",size:"size",virtualPath:"virtualPath",type:"type",variations$:"variations",variationsAt:e=>({$:`variations[${e}]`,...wn.Fields,name:`variations[${e}].name`})};function y6(e){let t=(e||"").replaceAll(/fbtusid_____(.*)_____/g,kr.REMOTE_SERVICE+"files/$1");return t=(t||"").replaceAll(/directasset_____(.*)_____/g,kr.REMOTE_SERVICE+"$1"),t}function Ahe(){return{compiler:"unknown"}}function MQ(){return{directPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?y6(n.uniqueId):`${kr.REMOTE_SERVICE}files-inline/${n==null?void 0:n.diskPath}`,downloadPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?y6(n.uniqueId):`${kr.REMOTE_SERVICE}files/${n==null?void 0:n.diskPath}`}}const kl=({children:e,isActive:t,skip:n,activeClassName:r,inActiveClassName:a,...i})=>{var g;const o=xr(),{locale:l}=sr(),u=i.locale||l||"en",{compiler:d}=Ahe();let f=(i==null?void 0:i.href)||(o==null?void 0:o.asPath)||"";return typeof f=="string"&&(f!=null&&f.indexOf)&&f.indexOf("http")===0&&(n=!0),typeof f=="string"&&u&&!n&&!f.startsWith(".")&&(f=f?`/${l}`+f:(g=o.pathname)==null?void 0:g.replace("[locale]",u)),t&&(i.className=`${i.className||""} ${r||"active"}`),!t&&a&&(i.className=`${i.className||""} ${a}`),w.jsx(Bse,{...i,href:f,compiler:d,children:e})},Ub=e=>{const{children:t,forceActive:n,...r}=e,{locale:a,asPath:i}=sr(),o=R.Children.only(t),l=i===`/${a}`+r.href||i+"/"==`/${a}`+r.href||n;return e.disabled?w.jsx("span",{className:"disabled",children:o}):w.jsx(kl,{...r,isActive:l,children:o})};function Nhe(){const e=R.useContext(aF);return w.jsx("span",{children:e.ref.title})}const aF=ze.createContext({setPageTitle(){},removePageTitle(){},ref:{title:""}});function hh(e){const t=R.useContext(aF);R.useEffect(()=>(t.setPageTitle(e||""),()=>{t.removePageTitle("")}),[e])}function Mhe({children:e,prefix:t,affix:n}){const[r,a]=R.useState(""),i=l=>{const u=[t,l,n].filter(Boolean).join(" | ");document.title=u,a(l)},o=()=>{document.title="",a("")};return w.jsx(aF.Provider,{value:{ref:{title:r},setPageTitle:i,removePageTitle:o},children:e})}const IQ=()=>{const e=R.useRef();return{withDebounce:(n,r)=>{e.current&&clearTimeout(e.current),e.current=setTimeout(n,r)}}},a_=ze.createContext({result:[],setResult(){},reset(){},appendResult(){},setPhrase(){},phrase:""});function Ihe({children:e}){const[t,n]=R.useState(""),[r,a]=R.useState([]),i=l=>{a(u=>[...u,l])},o=()=>{n(""),a([])};return w.jsx(a_.Provider,{value:{result:r,setResult:a,reset:o,appendResult:i,setPhrase:n,phrase:t},children:e})}function Qk(e,t){return Qk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Qk(e,t)}function Fv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qk(e,t)}var p0=(function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var a=this,i=r||function(){};return this.listeners.push(i),this.onSubscribe(),function(){a.listeners=a.listeners.filter(function(o){return o!==i}),a.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e})();function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u";function ji(){}function Dhe(e,t){return typeof e=="function"?e(t):e}function iL(e){return typeof e=="number"&&e>=0&&e!==1/0}function Zk(e){return Array.isArray(e)?e:[e]}function DQ(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ck(e,t,n){return TE(e)?typeof t=="function"?vt({},n,{queryKey:e,queryFn:t}):vt({},t,{queryKey:e}):e}function $he(e,t,n){return TE(e)?vt({},t,{mutationKey:e}):typeof e=="function"?vt({},t,{mutationFn:e}):vt({},e)}function zp(e,t,n){return TE(e)?[vt({},t,{queryKey:e}),n]:[e||{},t]}function Lhe(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function b6(e,t){var n=e.active,r=e.exact,a=e.fetching,i=e.inactive,o=e.predicate,l=e.queryKey,u=e.stale;if(TE(l)){if(r){if(t.queryHash!==iF(l,t.options))return!1}else if(!ex(t.queryKey,l))return!1}var d=Lhe(n,i);if(d==="none")return!1;if(d!=="all"){var f=t.isActive();if(d==="active"&&!f||d==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof a=="boolean"&&t.isFetching()!==a||o&&!o(t))}function w6(e,t){var n=e.exact,r=e.fetching,a=e.predicate,i=e.mutationKey;if(TE(i)){if(!t.options.mutationKey)return!1;if(n){if(nv(t.options.mutationKey)!==nv(i))return!1}else if(!ex(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||a&&!a(t))}function iF(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||nv;return n(e)}function nv(e){var t=Zk(e);return Fhe(t)}function Fhe(e){return JSON.stringify(e,function(t,n){return oL(n)?Object.keys(n).sort().reduce(function(r,a){return r[a]=n[a],r},{}):n})}function ex(e,t){return $Q(Zk(e),Zk(t))}function $Q(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!$Q(e[n],t[n])}):!1}function tx(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||oL(e)&&oL(t)){for(var r=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),i=a.length,o=n?[]:{},l=0,u=0;u"u")return!0;var n=t.prototype;return!(!S6(n)||!n.hasOwnProperty("isPrototypeOf"))}function S6(e){return Object.prototype.toString.call(e)==="[object Object]"}function TE(e){return typeof e=="string"||Array.isArray(e)}function Uhe(e){return new Promise(function(t){setTimeout(t,e)})}function E6(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function LQ(){if(typeof AbortController=="function")return new AbortController}var Bhe=(function(e){Fv(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var i;if(!Jk&&((i=window)!=null&&i.addEventListener)){var o=function(){return a()};return window.addEventListener("visibilitychange",o,!1),window.addEventListener("focus",o,!1),function(){window.removeEventListener("visibilitychange",o),window.removeEventListener("focus",o)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var i,o=this;this.setup=a,(i=this.cleanup)==null||i.call(this),this.cleanup=a(function(l){typeof l=="boolean"?o.setFocused(l):o.onFocus()})},n.setFocused=function(a){this.focused=a,a&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(a){a()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t})(p0),mS=new Bhe,Whe=(function(e){Fv(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var i;if(!Jk&&((i=window)!=null&&i.addEventListener)){var o=function(){return a()};return window.addEventListener("online",o,!1),window.addEventListener("offline",o,!1),function(){window.removeEventListener("online",o),window.removeEventListener("offline",o)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var i,o=this;this.setup=a,(i=this.cleanup)==null||i.call(this),this.cleanup=a(function(l){typeof l=="boolean"?o.setOnline(l):o.onOnline()})},n.setOnline=function(a){this.online=a,a&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(a){a()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t})(p0),kk=new Whe;function zhe(e){return Math.min(1e3*Math.pow(2,e),3e4)}function nx(e){return typeof(e==null?void 0:e.cancel)=="function"}var FQ=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function xk(e){return e instanceof FQ}var jQ=function(t){var n=this,r=!1,a,i,o,l;this.abort=t.abort,this.cancel=function(y){return a==null?void 0:a(y)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return i==null?void 0:i()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(y,h){o=y,l=h});var u=function(h){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(h),i==null||i(),o(h))},d=function(h){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(h),i==null||i(),l(h))},f=function(){return new Promise(function(h){i=h,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){i=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},g=function y(){if(!n.isResolved){var h;try{h=t.fn()}catch(v){h=Promise.reject(v)}a=function(E){if(!n.isResolved&&(d(new FQ(E)),n.abort==null||n.abort(),nx(h)))try{h.cancel()}catch{}},n.isTransportCancelable=nx(h),Promise.resolve(h).then(u).catch(function(v){var E,T;if(!n.isResolved){var C=(E=t.retry)!=null?E:3,k=(T=t.retryDelay)!=null?T:zhe,_=typeof k=="function"?k(n.failureCount,v):k,A=C===!0||typeof C=="number"&&n.failureCount"u"&&(l.exact=!0),this.queries.find(function(u){return b6(l,u)})},n.findAll=function(a,i){var o=zp(a,i),l=o[0];return Object.keys(l).length>0?this.queries.filter(function(u){return b6(l,u)}):this.queries},n.notify=function(a){var i=this;ra.batch(function(){i.listeners.forEach(function(o){o(a)})})},n.onFocus=function(){var a=this;ra.batch(function(){a.queries.forEach(function(i){i.onFocus()})})},n.onOnline=function(){var a=this;ra.batch(function(){a.queries.forEach(function(i){i.onOnline()})})},t})(p0),Yhe=(function(){function e(n){this.options=vt({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||BQ(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(a){return a!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(ji).catch(ji)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,a,i=this.state.status==="loading",o=Promise.resolve();return i||(this.dispatch({type:"loading",variables:this.options.variables}),o=o.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(l){l!==r.state.context&&r.dispatch({type:"loading",context:l,variables:r.state.variables})})),o.then(function(){return r.executeMutation()}).then(function(l){a=l,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(a,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(a,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(a,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:a}),a}).catch(function(l){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(l,r.state.variables,r.state.context,r),rx().error(l),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(l,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,l,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:l}),l})})},t.executeMutation=function(){var r=this,a;return this.retryer=new jQ({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var a=this;this.state=Khe(this.state,r),ra.batch(function(){a.observers.forEach(function(i){i.onMutationUpdate(r)}),a.mutationCache.notify(a)})},e})();function BQ(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function Khe(e,t){switch(t.type){case"failed":return vt({},e,{failureCount:e.failureCount+1});case"pause":return vt({},e,{isPaused:!0});case"continue":return vt({},e,{isPaused:!1});case"loading":return vt({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return vt({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return vt({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return vt({},e,t.state);default:return e}}var Xhe=(function(e){Fv(t,e);function t(r){var a;return a=e.call(this)||this,a.config=r||{},a.mutations=[],a.mutationId=0,a}var n=t.prototype;return n.build=function(a,i,o){var l=new Yhe({mutationCache:this,mutationId:++this.mutationId,options:a.defaultMutationOptions(i),state:o,defaultOptions:i.mutationKey?a.getMutationDefaults(i.mutationKey):void 0,meta:i.meta});return this.add(l),l},n.add=function(a){this.mutations.push(a),this.notify(a)},n.remove=function(a){this.mutations=this.mutations.filter(function(i){return i!==a}),a.cancel(),this.notify(a)},n.clear=function(){var a=this;ra.batch(function(){a.mutations.forEach(function(i){a.remove(i)})})},n.getAll=function(){return this.mutations},n.find=function(a){return typeof a.exact>"u"&&(a.exact=!0),this.mutations.find(function(i){return w6(a,i)})},n.findAll=function(a){return this.mutations.filter(function(i){return w6(a,i)})},n.notify=function(a){var i=this;ra.batch(function(){i.listeners.forEach(function(o){o(a)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var a=this.mutations.filter(function(i){return i.state.isPaused});return ra.batch(function(){return a.reduce(function(i,o){return i.then(function(){return o.continue().catch(ji)})},Promise.resolve())})},t})(p0);function Qhe(){return{onFetch:function(t){t.fetchFn=function(){var n,r,a,i,o,l,u=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,d=(a=t.fetchOptions)==null||(i=a.meta)==null?void 0:i.fetchMore,f=d==null?void 0:d.pageParam,g=(d==null?void 0:d.direction)==="forward",y=(d==null?void 0:d.direction)==="backward",h=((o=t.state.data)==null?void 0:o.pages)||[],v=((l=t.state.data)==null?void 0:l.pageParams)||[],E=LQ(),T=E==null?void 0:E.signal,C=v,k=!1,_=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},A=function(ge,me,W,G){return C=G?[me].concat(C):[].concat(C,[me]),G?[W].concat(ge):[].concat(ge,[W])},P=function(ge,me,W,G){if(k)return Promise.reject("Cancelled");if(typeof W>"u"&&!me&&ge.length)return Promise.resolve(ge);var q={queryKey:t.queryKey,signal:T,pageParam:W,meta:t.meta},ce=_(q),H=Promise.resolve(ce).then(function(ie){return A(ge,W,ie,G)});if(nx(ce)){var Y=H;Y.cancel=ce.cancel}return H},N;if(!h.length)N=P([]);else if(g){var I=typeof f<"u",L=I?f:T6(t.options,h);N=P(h,I,L)}else if(y){var j=typeof f<"u",z=j?f:Jhe(t.options,h);N=P(h,j,z,!0)}else(function(){C=[];var re=typeof t.options.getNextPageParam>"u",ge=u&&h[0]?u(h[0],0,h):!0;N=ge?P([],re,v[0]):Promise.resolve(A([],v[0],h[0]));for(var me=function(q){N=N.then(function(ce){var H=u&&h[q]?u(h[q],q,h):!0;if(H){var Y=re?v[q]:T6(t.options,ce);return P(ce,re,Y)}return Promise.resolve(A(ce,v[q],h[q]))})},W=1;W"u"&&(f.revert=!0);var g=ra.batch(function(){return o.queryCache.findAll(u).map(function(y){return y.cancel(f)})});return Promise.all(g).then(ji).catch(ji)},t.invalidateQueries=function(r,a,i){var o,l,u,d=this,f=zp(r,a,i),g=f[0],y=f[1],h=vt({},g,{active:(o=(l=g.refetchActive)!=null?l:g.active)!=null?o:!0,inactive:(u=g.refetchInactive)!=null?u:!1});return ra.batch(function(){return d.queryCache.findAll(g).forEach(function(v){v.invalidate()}),d.refetchQueries(h,y)})},t.refetchQueries=function(r,a,i){var o=this,l=zp(r,a,i),u=l[0],d=l[1],f=ra.batch(function(){return o.queryCache.findAll(u).map(function(y){return y.fetch(void 0,vt({},d,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))})}),g=Promise.all(f).then(ji);return d!=null&&d.throwOnError||(g=g.catch(ji)),g},t.fetchQuery=function(r,a,i){var o=Ck(r,a,i),l=this.defaultQueryOptions(o);typeof l.retry>"u"&&(l.retry=!1);var u=this.queryCache.build(this,l);return u.isStaleByTime(l.staleTime)?u.fetch(l):Promise.resolve(u.state.data)},t.prefetchQuery=function(r,a,i){return this.fetchQuery(r,a,i).then(ji).catch(ji)},t.fetchInfiniteQuery=function(r,a,i){var o=Ck(r,a,i);return o.behavior=Qhe(),this.fetchQuery(o)},t.prefetchInfiniteQuery=function(r,a,i){return this.fetchInfiniteQuery(r,a,i).then(ji).catch(ji)},t.cancelMutations=function(){var r=this,a=ra.batch(function(){return r.mutationCache.getAll().map(function(i){return i.cancel()})});return Promise.all(a).then(ji).catch(ji)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,a){var i=this.queryDefaults.find(function(o){return nv(r)===nv(o.queryKey)});i?i.defaultOptions=a:this.queryDefaults.push({queryKey:r,defaultOptions:a})},t.getQueryDefaults=function(r){var a;return r?(a=this.queryDefaults.find(function(i){return ex(r,i.queryKey)}))==null?void 0:a.defaultOptions:void 0},t.setMutationDefaults=function(r,a){var i=this.mutationDefaults.find(function(o){return nv(r)===nv(o.mutationKey)});i?i.defaultOptions=a:this.mutationDefaults.push({mutationKey:r,defaultOptions:a})},t.getMutationDefaults=function(r){var a;return r?(a=this.mutationDefaults.find(function(i){return ex(r,i.mutationKey)}))==null?void 0:a.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var a=vt({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!a.queryHash&&a.queryKey&&(a.queryHash=iF(a.queryKey,a)),a},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:vt({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e})(),eme=(function(e){Fv(t,e);function t(r,a){var i;return i=e.call(this)||this,i.client=r,i.options=a,i.trackedProps=[],i.selectError=null,i.bindMethods(),i.setOptions(a),i}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),C6(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return sL(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return sL(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(a,i){var o=this.options,l=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(a),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),this.updateQuery();var u=this.hasListeners();u&&k6(this.currentQuery,l,this.options,o)&&this.executeFetch(),this.updateResult(i),u&&(this.currentQuery!==l||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&this.updateStaleTimeout();var d=this.computeRefetchInterval();u&&(this.currentQuery!==l||this.options.enabled!==o.enabled||d!==this.currentRefetchInterval)&&this.updateRefetchInterval(d)},n.getOptimisticResult=function(a){var i=this.client.defaultQueryObserverOptions(a),o=this.client.getQueryCache().build(this.client,i);return this.createResult(o,i)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(a,i){var o=this,l={},u=function(f){o.trackedProps.includes(f)||o.trackedProps.push(f)};return Object.keys(a).forEach(function(d){Object.defineProperty(l,d,{configurable:!1,enumerable:!0,get:function(){return u(d),a[d]}})}),(i.useErrorBoundary||i.suspense)&&u("error"),l},n.getNextResult=function(a){var i=this;return new Promise(function(o,l){var u=i.subscribe(function(d){d.isFetching||(u(),d.isError&&(a!=null&&a.throwOnError)?l(d.error):o(d))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(a){return this.fetch(vt({},a,{meta:{refetchPage:a==null?void 0:a.refetchPage}}))},n.fetchOptimistic=function(a){var i=this,o=this.client.defaultQueryObserverOptions(a),l=this.client.getQueryCache().build(this.client,o);return l.fetch().then(function(){return i.createResult(l,o)})},n.fetch=function(a){var i=this;return this.executeFetch(a).then(function(){return i.updateResult(),i.currentResult})},n.executeFetch=function(a){this.updateQuery();var i=this.currentQuery.fetch(this.options,a);return a!=null&&a.throwOnError||(i=i.catch(ji)),i},n.updateStaleTimeout=function(){var a=this;if(this.clearStaleTimeout(),!(Jk||this.currentResult.isStale||!iL(this.options.staleTime))){var i=DQ(this.currentResult.dataUpdatedAt,this.options.staleTime),o=i+1;this.staleTimeoutId=setTimeout(function(){a.currentResult.isStale||a.updateResult()},o)}},n.computeRefetchInterval=function(){var a;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(a=this.options.refetchInterval)!=null?a:!1},n.updateRefetchInterval=function(a){var i=this;this.clearRefetchInterval(),this.currentRefetchInterval=a,!(Jk||this.options.enabled===!1||!iL(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(i.options.refetchIntervalInBackground||mS.isFocused())&&i.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(a,i){var o=this.currentQuery,l=this.options,u=this.currentResult,d=this.currentResultState,f=this.currentResultOptions,g=a!==o,y=g?a.state:this.currentQueryInitialState,h=g?this.currentResult:this.previousQueryResult,v=a.state,E=v.dataUpdatedAt,T=v.error,C=v.errorUpdatedAt,k=v.isFetching,_=v.status,A=!1,P=!1,N;if(i.optimisticResults){var I=this.hasListeners(),L=!I&&C6(a,i),j=I&&k6(a,o,i,l);(L||j)&&(k=!0,E||(_="loading"))}if(i.keepPreviousData&&!v.dataUpdateCount&&(h!=null&&h.isSuccess)&&_!=="error")N=h.data,E=h.dataUpdatedAt,_=h.status,A=!0;else if(i.select&&typeof v.data<"u")if(u&&v.data===(d==null?void 0:d.data)&&i.select===this.selectFn)N=this.selectResult;else try{this.selectFn=i.select,N=i.select(v.data),i.structuralSharing!==!1&&(N=tx(u==null?void 0:u.data,N)),this.selectResult=N,this.selectError=null}catch(le){rx().error(le),this.selectError=le}else N=v.data;if(typeof i.placeholderData<"u"&&typeof N>"u"&&(_==="loading"||_==="idle")){var z;if(u!=null&&u.isPlaceholderData&&i.placeholderData===(f==null?void 0:f.placeholderData))z=u.data;else if(z=typeof i.placeholderData=="function"?i.placeholderData():i.placeholderData,i.select&&typeof z<"u")try{z=i.select(z),i.structuralSharing!==!1&&(z=tx(u==null?void 0:u.data,z)),this.selectError=null}catch(le){rx().error(le),this.selectError=le}typeof z<"u"&&(_="success",N=z,P=!0)}this.selectError&&(T=this.selectError,N=this.selectResult,C=Date.now(),_="error");var Q={status:_,isLoading:_==="loading",isSuccess:_==="success",isError:_==="error",isIdle:_==="idle",data:N,dataUpdatedAt:E,error:T,errorUpdatedAt:C,failureCount:v.fetchFailureCount,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>y.dataUpdateCount||v.errorUpdateCount>y.errorUpdateCount,isFetching:k,isRefetching:k&&_!=="loading",isLoadingError:_==="error"&&v.dataUpdatedAt===0,isPlaceholderData:P,isPreviousData:A,isRefetchError:_==="error"&&v.dataUpdatedAt!==0,isStale:oF(a,i),refetch:this.refetch,remove:this.remove};return Q},n.shouldNotifyListeners=function(a,i){if(!i)return!0;var o=this.options,l=o.notifyOnChangeProps,u=o.notifyOnChangePropsExclusions;if(!l&&!u||l==="tracked"&&!this.trackedProps.length)return!0;var d=l==="tracked"?this.trackedProps:l;return Object.keys(a).some(function(f){var g=f,y=a[g]!==i[g],h=d==null?void 0:d.some(function(E){return E===f}),v=u==null?void 0:u.some(function(E){return E===f});return y&&!v&&(!d||h)})},n.updateResult=function(a){var i=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!jhe(this.currentResult,i)){var o={cache:!0};(a==null?void 0:a.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,i)&&(o.listeners=!0),this.notify(vt({},o,a))}},n.updateQuery=function(){var a=this.client.getQueryCache().build(this.client,this.options);if(a!==this.currentQuery){var i=this.currentQuery;this.currentQuery=a,this.currentQueryInitialState=a.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(i==null||i.removeObserver(this),a.addObserver(this))}},n.onQueryUpdate=function(a){var i={};a.type==="success"?i.onSuccess=!0:a.type==="error"&&!xk(a.error)&&(i.onError=!0),this.updateResult(i),this.hasListeners()&&this.updateTimers()},n.notify=function(a){var i=this;ra.batch(function(){a.onSuccess?(i.options.onSuccess==null||i.options.onSuccess(i.currentResult.data),i.options.onSettled==null||i.options.onSettled(i.currentResult.data,null)):a.onError&&(i.options.onError==null||i.options.onError(i.currentResult.error),i.options.onSettled==null||i.options.onSettled(void 0,i.currentResult.error)),a.listeners&&i.listeners.forEach(function(o){o(i.currentResult)}),a.cache&&i.client.getQueryCache().notify({query:i.currentQuery,type:"observerResultsUpdated"})})},t})(p0);function tme(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function C6(e,t){return tme(e,t)||e.state.dataUpdatedAt>0&&sL(e,t,t.refetchOnMount)}function sL(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&oF(e,t)}return!1}function k6(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&oF(e,n)}function oF(e,t){return e.isStaleByTime(t.staleTime)}var nme=(function(e){Fv(t,e);function t(r,a){var i;return i=e.call(this)||this,i.client=r,i.setOptions(a),i.bindMethods(),i.updateResult(),i}var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(a){this.options=this.client.defaultMutationOptions(a)},n.onUnsubscribe=function(){if(!this.listeners.length){var a;(a=this.currentMutation)==null||a.removeObserver(this)}},n.onMutationUpdate=function(a){this.updateResult();var i={listeners:!0};a.type==="success"?i.onSuccess=!0:a.type==="error"&&(i.onError=!0),this.notify(i)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(a,i){return this.mutateOptions=i,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,vt({},this.options,{variables:typeof a<"u"?a:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var a=this.currentMutation?this.currentMutation.state:BQ(),i=vt({},a,{isLoading:a.status==="loading",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=i},n.notify=function(a){var i=this;ra.batch(function(){i.mutateOptions&&(a.onSuccess?(i.mutateOptions.onSuccess==null||i.mutateOptions.onSuccess(i.currentResult.data,i.currentResult.variables,i.currentResult.context),i.mutateOptions.onSettled==null||i.mutateOptions.onSettled(i.currentResult.data,null,i.currentResult.variables,i.currentResult.context)):a.onError&&(i.mutateOptions.onError==null||i.mutateOptions.onError(i.currentResult.error,i.currentResult.variables,i.currentResult.context),i.mutateOptions.onSettled==null||i.mutateOptions.onSettled(void 0,i.currentResult.error,i.currentResult.variables,i.currentResult.context))),a.listeners&&i.listeners.forEach(function(o){o(i.currentResult)})})},t})(p0),rme=Moe.unstable_batchedUpdates;ra.setBatchNotifyFunction(rme);var ame=console;Hhe(ame);var x6=ze.createContext(void 0),WQ=ze.createContext(!1);function zQ(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=x6),window.ReactQueryClientContext):x6}var js=function(){var t=ze.useContext(zQ(ze.useContext(WQ)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ime=function(t){var n=t.client,r=t.contextSharing,a=r===void 0?!1:r,i=t.children;ze.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var o=zQ(a);return ze.createElement(WQ.Provider,{value:a},ze.createElement(o.Provider,{value:n},i))};function ome(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var sme=ze.createContext(ome()),lme=function(){return ze.useContext(sme)};function qQ(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function un(e,t,n){var r=ze.useRef(!1),a=ze.useState(0),i=a[1],o=$he(e,t),l=js(),u=ze.useRef();u.current?u.current.setOptions(o):u.current=new nme(l,o);var d=u.current.getCurrentResult();ze.useEffect(function(){r.current=!0;var g=u.current.subscribe(ra.batchCalls(function(){r.current&&i(function(y){return y+1})}));return function(){r.current=!1,g()}},[]);var f=ze.useCallback(function(g,y){u.current.mutate(g,y).catch(ji)},[]);if(d.error&&qQ(void 0,u.current.options.useErrorBoundary,[d.error]))throw d.error;return vt({},d,{mutate:f,mutateAsync:d.mutate})}function ume(e,t){var n=ze.useRef(!1),r=ze.useState(0),a=r[1],i=js(),o=lme(),l=i.defaultQueryObserverOptions(e);l.optimisticResults=!0,l.onError&&(l.onError=ra.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=ra.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=ra.batchCalls(l.onSettled)),l.suspense&&(typeof l.staleTime!="number"&&(l.staleTime=1e3),l.cacheTime===0&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(o.isReset()||(l.retryOnMount=!1));var u=ze.useState(function(){return new t(i,l)}),d=u[0],f=d.getOptimisticResult(l);if(ze.useEffect(function(){n.current=!0,o.clearReset();var g=d.subscribe(ra.batchCalls(function(){n.current&&a(function(y){return y+1})}));return d.updateResult(),function(){n.current=!1,g()}},[o,d]),ze.useEffect(function(){d.setOptions(l,{listeners:!1})},[l,d]),l.suspense&&f.isLoading)throw d.fetchOptimistic(l).then(function(g){var y=g.data;l.onSuccess==null||l.onSuccess(y),l.onSettled==null||l.onSettled(y,null)}).catch(function(g){o.clearReset(),l.onError==null||l.onError(g),l.onSettled==null||l.onSettled(void 0,g)});if(f.isError&&!o.isReset()&&!f.isFetching&&qQ(l.suspense,l.useErrorBoundary,[f.error,d.getCurrentQuery()]))throw f.error;return l.notifyOnChangeProps==="tracked"&&(f=d.trackResult(f,l)),f}function jn(e,t,n){var r=Ck(e,t,n);return ume(r,eme)}function cme({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a,onMessage:i,presistResult:o}){var A;const{options:l}=R.useContext(nt),u=l.prefix,d=(A=l.headers)==null?void 0:A.authorization,f=l.headers["workspace-id"],g=R.useRef(),[y,h]=R.useState([]),v=P=>{h(N=>[...N,P])},[E,T]=R.useState(!1),C=()=>{var P,N;((P=g.current)==null?void 0:P.readyState)===1&&((N=g.current)==null||N.close()),T(!1)},k=P=>{var N;(N=g.current)==null||N.send(P)},_=(P,N=null)=>{var Q,le;((Q=g.current)==null?void 0:Q.readyState)===1&&((le=g.current)==null||le.close()),h([]);const I=u==null?void 0:u.replace("https","wss").replace("http","ws"),L="/reactive-search".substr(1);let j=`${I}${L}?acceptLanguage=${l.headers["accept-language"]}&token=${d}&workspaceId=${f}&${new URLSearchParams(P)}&${new URLSearchParams(n||{})}`;j=j.replace(":uniqueId",n==null?void 0:n.uniqueId);let z=new WebSocket(j);g.current=z,z.onopen=function(){T(!0)},z.onmessage=function(re){if(N!==null)return N(re);if(re.data instanceof Blob||re.data instanceof ArrayBuffer)i==null||i(re.data);else try{const ge=JSON.parse(re.data);ge&&(i&&i(ge),o!==!1&&v(ge))}catch{}}};return R.useEffect(()=>()=>{C()},[]),{operate:_,data:y,close:C,connected:E,write:k}}function dme(){const e=At(),{withDebounce:t}=IQ(),{setResult:n,setPhrase:r,phrase:a,result:i,reset:o}=R.useContext(a_),{operate:l,data:u}=cme({}),d=xr(),f=R.useRef(),[g,y]=R.useState(""),{locale:h}=sr();R.useEffect(()=>{a||y("")},[a]),R.useEffect(()=>{n(u)},[u]);const v=T=>{t(()=>{r(T),l({searchPhrase:encodeURIComponent(T)})},500)};rF("s",()=>{var T;(T=f.current)==null||T.focus()});const{isMobileView:E}=ih();return E?null:w.jsx("form",{className:"navbar-search-box",onSubmit:T=>{T.preventDefault(),i.length>0&&i[0].actionFn==="navigate"&&i[0].uiLocation&&(d.push(`/${h}${i[0].uiLocation}`),o())},children:w.jsx("input",{ref:T=>{f.current=T},value:g,placeholder:e.reactiveSearch.placeholder,onInput:T=>{y(T.target.value),v(T.target.value)},className:"form-control"})})}const fme=({children:e,close:t,visible:n,params:r})=>w.jsx("div",{className:ia("modal d-block with-fade-in modal-overlay",n?"visible":"invisible"),children:w.jsx("div",{className:"modal-dialog",children:w.jsxs("div",{className:"modal-content",children:[w.jsxs("div",{className:"modal-header",children:[w.jsx("h5",{className:"modal-title",children:r==null?void 0:r.title}),w.jsx("button",{type:"button",id:"cls",className:"btn-close",onClick:t,"aria-label":"Close"})]}),e]})})});function lL(){return lL=Object.assign||function(e){for(var t=1;tw.jsx(hme,{open:n,direction:(e==null?void 0:e.direction)||"right",zIndex:1e4,onClose:r,duration:e==null?void 0:e.speed,size:e==null?void 0:e.size,children:t}),HQ=R.createContext(null);let gme=0;const vme=({children:e,BaseModalWrapper:t=fme,OverlayWrapper:n=mme})=>{const[r,a]=R.useState([]),i=R.useRef(r);i.current=r,R.useEffect(()=>{const f=g=>{var y;if(g.key==="Escape"&&r.length>0){const h=r[r.length-1];(y=h==null?void 0:h.close)==null||y.call(h)}};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[r]);const o=(f,g)=>{const y=gme++,h=ze.createRef();let v,E;const T=new Promise((A,P)=>{v=A,E=P}),C=()=>{a(A=>A.map(P=>P.id===y?{...P,visible:!1}:P)),setTimeout(()=>{a(A=>A.filter(P=>P.id!==y))},300)},k={id:y,ref:h,Component:f,type:(g==null?void 0:g.type)||"modal",params:g==null?void 0:g.params,data:{},visible:!1,onBeforeClose:void 0,resolve:A=>{setTimeout(()=>v({type:"resolved",data:A}),50),C()},close:async()=>{var N;const A=i.current.find(I=>I.id===y);A!=null&&A.onBeforeClose&&!await A.onBeforeClose()||!await(((N=k.onBeforeClose)==null?void 0:N.call(k))??!0)||(setTimeout(()=>v({data:null,type:"closed"}),50),C())},reject:A=>{setTimeout(()=>E({data:A,type:"rejected"}),50),C()}};a(A=>[...A,k]),setTimeout(()=>{a(A=>A.map(P=>P.id===y?{...P,visible:!0}:P))},50);const _=A=>{a(P=>P.map(N=>N.id===y?{...N,data:{...N.data,...A}}:N))};return{id:y,ref:h,promise:T,close:k.close,resolve:k.resolve,reject:k.reject,updateData:_}},l=(f,g)=>o(f,{type:"modal",params:g}),u=(f,g)=>o(f,{type:"drawer",params:g}),d=()=>{i.current.forEach(f=>{var g;return(g=f.reject)==null?void 0:g.call(f,"dismiss-all")}),a([])};return w.jsxs(HQ.Provider,{value:{openOverlay:o,openDrawer:u,openModal:l,dismissAll:d},children:[e,r.map(({id:f,type:g,Component:y,resolve:h,reject:v,close:E,params:T,visible:C,data:k})=>{const _=g==="drawer"?n:t;return w.jsx(_,{visible:C,close:E,reject:v,resolve:h,params:T,children:w.jsx(y,{resolve:h,reject:v,close:E,data:k,setOnBeforeClose:A=>{a(P=>P.map(N=>N.id===f?{...N,onBeforeClose:A}:N))}})},f)})]})},sF=()=>{const e=R.useContext(HQ);if(!e)throw new Error("useOverlay must be inside OverlayProvider");return e};var LR,_6;function h0(){return _6||(_6=1,LR=TypeError),LR}const yme={},bme=Object.freeze(Object.defineProperty({__proto__:null,default:yme},Symbol.toStringTag,{value:"Module"})),wme=jt(bme);var FR,O6;function i_(){if(O6)return FR;O6=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=e&&t&&typeof t.get=="function"?t.get:null,r=e&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o=a&&i&&typeof i.get=="function"?i.get:null,l=a&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,d=u?WeakMap.prototype.has:null,f=typeof WeakSet=="function"&&WeakSet.prototype,g=f?WeakSet.prototype.has:null,y=typeof WeakRef=="function"&&WeakRef.prototype,h=y?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,E=Object.prototype.toString,T=Function.prototype.toString,C=String.prototype.match,k=String.prototype.slice,_=String.prototype.replace,A=String.prototype.toUpperCase,P=String.prototype.toLowerCase,N=RegExp.prototype.test,I=Array.prototype.concat,L=Array.prototype.join,j=Array.prototype.slice,z=Math.floor,Q=typeof BigInt=="function"?BigInt.prototype.valueOf:null,le=Object.getOwnPropertySymbols,re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ge=typeof Symbol=="function"&&typeof Symbol.iterator=="object",me=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ge||!0)?Symbol.toStringTag:null,W=Object.prototype.propertyIsEnumerable,G=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(be){return be.__proto__}:null);function q(be,Ee){if(be===1/0||be===-1/0||be!==be||be&&be>-1e3&&be<1e3||N.call(/e/,Ee))return Ee;var gt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof be=="number"){var Lt=be<0?-z(-be):z(be);if(Lt!==be){var _t=String(Lt),Ut=k.call(Ee,_t.length+1);return _.call(_t,gt,"$&_")+"."+_.call(_.call(Ut,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(Ee,gt,"$&_")}var ce=wme,H=ce.custom,Y=at(H)?H:null,ie={__proto__:null,double:'"',single:"'"},J={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};FR=function be(Ee,gt,Lt,_t){var Ut=gt||{};if(xt(Ut,"quoteStyle")&&!xt(ie,Ut.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xt(Ut,"maxStringLength")&&(typeof Ut.maxStringLength=="number"?Ut.maxStringLength<0&&Ut.maxStringLength!==1/0:Ut.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var On=xt(Ut,"customInspect")?Ut.customInspect:!0;if(typeof On!="boolean"&&On!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xt(Ut,"indent")&&Ut.indent!==null&&Ut.indent!==" "&&!(parseInt(Ut.indent,10)===Ut.indent&&Ut.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(xt(Ut,"numericSeparator")&&typeof Ut.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var gn=Ut.numericSeparator;if(typeof Ee>"u")return"undefined";if(Ee===null)return"null";if(typeof Ee=="boolean")return Ee?"true":"false";if(typeof Ee=="string")return U(Ee,Ut);if(typeof Ee=="number"){if(Ee===0)return 1/0/Ee>0?"0":"-0";var ln=String(Ee);return gn?q(Ee,ln):ln}if(typeof Ee=="bigint"){var Bn=String(Ee)+"n";return gn?q(Ee,Bn):Bn}var oa=typeof Ut.depth>"u"?5:Ut.depth;if(typeof Lt>"u"&&(Lt=0),Lt>=oa&&oa>0&&typeof Ee=="object")return ke(Ee)?"[Array]":"[Object]";var Qa=We(Ut,Lt);if(typeof _t>"u")_t=[];else if(qt(_t,Ee)>=0)return"[Circular]";function ha(yn,an,Dn){if(an&&(_t=j.call(_t),_t.push(an)),Dn){var En={depth:Ut.depth};return xt(Ut,"quoteStyle")&&(En.quoteStyle=Ut.quoteStyle),be(yn,En,Lt+1,_t)}return be(yn,Ut,Lt+1,_t)}if(typeof Ee=="function"&&!xe(Ee)){var vn=cn(Ee),_a=Mt(Ee,ha);return"[Function"+(vn?": "+vn:" (anonymous)")+"]"+(_a.length>0?" { "+L.call(_a,", ")+" }":"")}if(at(Ee)){var Bo=ge?_.call(String(Ee),/^(Symbol\(.*\))_[^)]*$/,"$1"):re.call(Ee);return typeof Ee=="object"&&!ge?F(Bo):Bo}if(Nt(Ee)){for(var Oa="<"+P.call(String(Ee.nodeName)),Ra=Ee.attributes||[],Wo=0;Wo",Oa}if(ke(Ee)){if(Ee.length===0)return"[]";var we=Mt(Ee,ha);return Qa&&!Fe(we)?"["+Tt(we,Qa)+"]":"[ "+L.call(we,", ")+" ]"}if(Ie(Ee)){var ve=Mt(Ee,ha);return!("cause"in Error.prototype)&&"cause"in Ee&&!W.call(Ee,"cause")?"{ ["+String(Ee)+"] "+L.call(I.call("[cause]: "+ha(Ee.cause),ve),", ")+" }":ve.length===0?"["+String(Ee)+"]":"{ ["+String(Ee)+"] "+L.call(ve,", ")+" }"}if(typeof Ee=="object"&&On){if(Y&&typeof Ee[Y]=="function"&&ce)return ce(Ee,{depth:oa-Lt});if(On!=="symbol"&&typeof Ee.inspect=="function")return Ee.inspect()}if(Wt(Ee)){var $e=[];return r&&r.call(Ee,function(yn,an){$e.push(ha(an,Ee,!0)+" => "+ha(yn,Ee))}),Te("Map",n.call(Ee),$e,Qa)}if(ft(Ee)){var ye=[];return l&&l.call(Ee,function(yn){ye.push(ha(yn,Ee))}),Te("Set",o.call(Ee),ye,Qa)}if(Oe(Ee))return ae("WeakMap");if(ut(Ee))return ae("WeakSet");if(dt(Ee))return ae("WeakRef");if(tt(Ee))return F(ha(Number(Ee)));if(Et(Ee))return F(ha(Q.call(Ee)));if(Ge(Ee))return F(v.call(Ee));if(qe(Ee))return F(ha(String(Ee)));if(typeof window<"u"&&Ee===window)return"{ [object Window] }";if(typeof globalThis<"u"&&Ee===globalThis||typeof El<"u"&&Ee===El)return"{ [object globalThis] }";if(!fe(Ee)&&!xe(Ee)){var Se=Mt(Ee,ha),ne=G?G(Ee)===Object.prototype:Ee instanceof Object||Ee.constructor===Object,Me=Ee instanceof Object?"":"null prototype",Qe=!ne&&me&&Object(Ee)===Ee&&me in Ee?k.call(Rt(Ee),8,-1):Me?"Object":"",ot=ne||typeof Ee.constructor!="function"?"":Ee.constructor.name?Ee.constructor.name+" ":"",Bt=ot+(Qe||Me?"["+L.call(I.call([],Qe||[],Me||[]),": ")+"] ":"");return Se.length===0?Bt+"{}":Qa?Bt+"{"+Tt(Se,Qa)+"}":Bt+"{ "+L.call(Se,", ")+" }"}return String(Ee)};function ee(be,Ee,gt){var Lt=gt.quoteStyle||Ee,_t=ie[Lt];return _t+be+_t}function Z(be){return _.call(String(be),/"/g,""")}function ue(be){return!me||!(typeof be=="object"&&(me in be||typeof be[me]<"u"))}function ke(be){return Rt(be)==="[object Array]"&&ue(be)}function fe(be){return Rt(be)==="[object Date]"&&ue(be)}function xe(be){return Rt(be)==="[object RegExp]"&&ue(be)}function Ie(be){return Rt(be)==="[object Error]"&&ue(be)}function qe(be){return Rt(be)==="[object String]"&&ue(be)}function tt(be){return Rt(be)==="[object Number]"&&ue(be)}function Ge(be){return Rt(be)==="[object Boolean]"&&ue(be)}function at(be){if(ge)return be&&typeof be=="object"&&be instanceof Symbol;if(typeof be=="symbol")return!0;if(!be||typeof be!="object"||!re)return!1;try{return re.call(be),!0}catch{}return!1}function Et(be){if(!be||typeof be!="object"||!Q)return!1;try{return Q.call(be),!0}catch{}return!1}var kt=Object.prototype.hasOwnProperty||function(be){return be in this};function xt(be,Ee){return kt.call(be,Ee)}function Rt(be){return E.call(be)}function cn(be){if(be.name)return be.name;var Ee=C.call(T.call(be),/^function\s*([\w$]+)/);return Ee?Ee[1]:null}function qt(be,Ee){if(be.indexOf)return be.indexOf(Ee);for(var gt=0,Lt=be.length;gtEe.maxStringLength){var gt=be.length-Ee.maxStringLength,Lt="... "+gt+" more character"+(gt>1?"s":"");return U(k.call(be,0,Ee.maxStringLength),Ee)+Lt}var _t=J[Ee.quoteStyle||"single"];_t.lastIndex=0;var Ut=_.call(_.call(be,_t,"\\$1"),/[\x00-\x1f]/g,D);return ee(Ut,"single",Ee)}function D(be){var Ee=be.charCodeAt(0),gt={8:"b",9:"t",10:"n",12:"f",13:"r"}[Ee];return gt?"\\"+gt:"\\x"+(Ee<16?"0":"")+A.call(Ee.toString(16))}function F(be){return"Object("+be+")"}function ae(be){return be+" { ? }"}function Te(be,Ee,gt,Lt){var _t=Lt?Tt(gt,Lt):L.call(gt,", ");return be+" ("+Ee+") {"+_t+"}"}function Fe(be){for(var Ee=0;Eel.uniqueId===e.workspaceId);if(!i)return!1;for(const l of i.capabilities||[])if(new RegExp(l).test(n)){r=!0;break}const o=(i.roles||[]).find(l=>l.uniqueId===e.roleId);if(!o)return!1;for(const l of o.capabilities||[])if(new RegExp(l).test(n)){a=!0;break}return r&&a}function FQ(e){for(var t=[],n=e.length,r,a=0;a>>0,t.push(String.fromCharCode(r));return t.join("")}function yhe(e,t,n,r,a){var i=new XMLHttpRequest;i.open(t,e),i.addEventListener("load",function(){var o=FQ(this.responseText);o="data:application/text;base64,"+btoa(o),document.location=o},!1),i.setRequestHeader("Authorization",n),i.setRequestHeader("Workspace-Id",r),i.setRequestHeader("role-Id",a),i.overrideMimeType("application/octet-stream; charset=x-user-defined;"),i.send(null)}const bhe=({path:e})=>{At();const{options:t}=R.useContext(rt);UQ(e?()=>{const n=t==null?void 0:t.headers;yhe(t.prefix+""+e,"GET",n.authorization||"",n["workspace-id"]||"",n["role-id"]||"")}:void 0,Ir.ExportTable)};function w0(e,t){const n={[Ir.NewEntity]:"n",[Ir.NewChildEntity]:"n",[Ir.EditEntity]:"e",[Ir.SidebarToggle]:"m",[Ir.ViewQuestions]:"q",[Ir.Delete]:"Backspace",[Ir.StopStart]:" ",[Ir.ExportTable]:"x",[Ir.CommonBack]:"Escape",[Ir.Select1Index]:"1",[Ir.Select2Index]:"2",[Ir.Select3Index]:"3",[Ir.Select4Index]:"4",[Ir.Select5Index]:"5",[Ir.Select6Index]:"6",[Ir.Select7Index]:"7",[Ir.Select8Index]:"8",[Ir.Select9Index]:"9"};let r;return typeof e=="object"?r=e.map(a=>n[a]):typeof e=="string"&&(r=n[e]),mF(r,t)}function mF(e,t){R.useEffect(()=>{if(!e||e.length===0||!t)return;function n(r){var a=r||window.event,i=a.target||a.srcElement;const o=i.tagName.toUpperCase(),l=i.type;if(["TEXTAREA","SELECT"].includes(o)){r.key==="Escape"&&a.target.blur();return}if(o==="INPUT"&&(l==="text"||l==="password")){r.key==="Escape"&&a.target.blur();return}let u=!1;typeof e=="string"&&r.key===e?u=!0:Array.isArray(e)&&(u=e.includes(r.key)),u&&t&&t(r.key)}if(t)return window.addEventListener("keyup",n),()=>{window.removeEventListener("keyup",n)}},[t,e])}function gL({filter:e}){const t=R.useContext(f_);return w.jsx(w.Fragment,{children:(t.refs||[]).filter(e||Boolean).map(n=>w.jsx(whe,{mref:n},n.id))})}function whe({mref:e}){var t;return w.jsx("div",{className:"action-menu",children:w.jsx("ul",{className:"navbar-nav",children:(t=e.actions)==null?void 0:t.filter(Boolean).map(n=>w.jsx(She,{item:n},n.uniqueActionKey))})})}function She({item:e}){if(e.Component){const t=e.Component;return w.jsx("li",{className:"action-menu-item",children:w.jsx(t,{})})}return w.jsx("li",{className:oa("action-menu-item",e.className),onClick:e.onSelect,children:e.icon?w.jsx("span",{children:w.jsx("img",{src:kr.PUBLIC_URL+e.icon,title:e.label,alt:e.label})}):w.jsx("span",{children:e.label})})}const f_=ze.createContext({setActionMenu(){},removeActionMenu(){},removeActionMenuItems(e,t){},refs:[]});function Ehe(){const e=R.useContext(f_);return{addActions:(a,i)=>(e.setActionMenu(a,i),()=>e.removeActionMenu(a)),removeActionMenu:a=>{e.removeActionMenu(a)},deleteActions:(a,i)=>{e.removeActionMenuItems(a,i)}}}function ME(e,t,n,r){const a=R.useContext(f_);return R.useEffect(()=>(a.setActionMenu(e,t.filter(i=>i!==void 0)),()=>{a.removeActionMenu(e)}),[]),{addActions(i,o=e){a.setActionMenu(o,i)},deleteActions(i,o=e){a.removeActionMenuItems(o,i)}}}function The({children:e}){const[t,n]=R.useState([]),r=(o,l)=>{n(u=>(u.find(f=>f.id===o)?u=u.map(f=>f.id===o?{...f,actions:l}:f):u.push({id:o,actions:l}),[...u]))},a=o=>{n(l=>[...l.filter(u=>u.id!==o)])},i=(o,l)=>{for(let d=0;dv===y.uniqueActionKey)||g.push(y);f.actions=g}}const u=[...t];n(u)};return w.jsx(f_.Provider,{value:{refs:t,setActionMenu:r,removeActionMenuItems:i,removeActionMenu:a},children:e})}function Che({onCancel:e,onSave:t,access:n}){const{selectedUrw:r}=R.useContext(rt),a=R.useMemo(()=>n?(r==null?void 0:r.workspaceId)!=="root"&&(n!=null&&n.onlyRoot)?!1:!(n!=null&&n.permissions)||n.permissions.length===0?!0:ghe(r,n.permissions[0]):!0,[r,n]),i=At();ME("editing-core",(({onSave:l,onCancel:u})=>a?[{icon:"",label:i.common.save,uniqueActionKey:"save",onSelect:()=>{l()}},u&&{icon:"",label:i.common.cancel,uniqueActionKey:"cancel",onSelect:()=>{u()}}]:[])({onCancel:e,onSave:t}))}function khe(e,t){const n=At();w0(t,e),ME("commonEntityActions",[e&&{icon:xu.add,label:n.actions.new,uniqueActionKey:"new",onSelect:e}])}function jQ(e,t){const n=At();w0(t,e),ME("navigation",[e&&{icon:xu.left,label:n.actions.back,uniqueActionKey:"back",className:"navigator-back-button",onSelect:e}])}function xhe(){const{session:e,options:t}=R.useContext(rt);UQ(()=>{var n=new XMLHttpRequest;n.open("GET",t.prefix+"roles/export"),n.addEventListener("load",function(){var a=FQ(this.responseText);a="data:application/text;base64,"+btoa(a),document.location=a},!1);const r=t==null?void 0:t.headers;n.setRequestHeader("Authorization",r.authorization||""),n.setRequestHeader("Workspace-Id",r["workspace-id"]||""),n.setRequestHeader("role-Id",r["role-id"]||""),n.overrideMimeType("application/octet-stream; charset=x-user-defined;"),n.send(null)},Ir.ExportTable)}function UQ(e,t){const n=At();w0(t,e),ME("exportTools",[e&&{icon:xu.export,label:n.actions.new,uniqueActionKey:"export",onSelect:e}])}function _he(e,t){const n=At();w0(t,e),ME("commonEntityActions",[e&&{icon:xu.edit,label:n.actions.edit,uniqueActionKey:"new",onSelect:e}])}function Ohe(e,t,n=100){const r=R.useRef(window.innerWidth);R.useEffect(()=>{let a;const i=()=>{const l=window.innerWidth,u=l=e&&u||r.current{clearTimeout(a),a=setTimeout(i,n)};return window.addEventListener("resize",o),i(),()=>{window.removeEventListener("resize",o),clearTimeout(a)}},[e,t,n])}function BQ(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ttypeof e=="number"&&!isNaN(e),Dv=e=>typeof e=="string",is=e=>typeof e=="function",Ik=e=>Dv(e)||is(e)?e:null,qR=e=>R.isValidElement(e)||Dv(e)||is(e)||TS(e);function Rhe(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:a}=e;requestAnimationFrame(()=>{a.minHeight="initial",a.height=r+"px",a.transition=`all ${n}ms`,requestAnimationFrame(()=>{a.height="0",a.padding="0",a.margin="0",setTimeout(t,n)})})}function p_(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:a=!0,collapseDuration:i=300}=e;return function(o){let{children:l,position:u,preventExitTransition:d,done:f,nodeRef:g,isIn:y}=o;const h=r?`${t}--${u}`:t,v=r?`${n}--${u}`:n,E=R.useRef(0);return R.useLayoutEffect(()=>{const T=g.current,C=h.split(" "),k=_=>{_.target===g.current&&(T.dispatchEvent(new Event("d")),T.removeEventListener("animationend",k),T.removeEventListener("animationcancel",k),E.current===0&&_.type!=="animationcancel"&&T.classList.remove(...C))};T.classList.add(...C),T.addEventListener("animationend",k),T.addEventListener("animationcancel",k)},[]),R.useEffect(()=>{const T=g.current,C=()=>{T.removeEventListener("animationend",C),a?Rhe(T,f,i):f()};y||(d?C():(E.current=1,T.className+=` ${v}`,T.addEventListener("animationend",C)))},[y]),ze.createElement(ze.Fragment,null,l)}}function _6(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Tl={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},ek=e=>{let{theme:t,type:n,...r}=e;return ze.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},HR={info:function(e){return ze.createElement(ek,{...e},ze.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return ze.createElement(ek,{...e},ze.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return ze.createElement(ek,{...e},ze.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return ze.createElement(ek,{...e},ze.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ze.createElement("div",{className:"Toastify__spinner"})}};function Phe(e){const[,t]=R.useReducer(h=>h+1,0),[n,r]=R.useState([]),a=R.useRef(null),i=R.useRef(new Map).current,o=h=>n.indexOf(h)!==-1,l=R.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:o,getToast:h=>i.get(h)}).current;function u(h){let{containerId:v}=h;const{limit:E}=l.props;!E||v&&l.containerId!==v||(l.count-=l.queue.length,l.queue=[])}function d(h){r(v=>h==null?[]:v.filter(E=>E!==h))}function f(){const{toastContent:h,toastProps:v,staleId:E}=l.queue.shift();y(h,v,E)}function g(h,v){let{delay:E,staleId:T,...C}=v;if(!qR(h)||(function(le){return!a.current||l.props.enableMultiContainer&&le.containerId!==l.props.containerId||i.has(le.toastId)&&le.updateId==null})(C))return;const{toastId:k,updateId:_,data:A}=C,{props:P}=l,N=()=>d(k),I=_==null;I&&l.count++;const L={...P,style:P.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(C).filter(le=>{let[re,ge]=le;return ge!=null})),toastId:k,updateId:_,data:A,closeToast:N,isIn:!1,className:Ik(C.className||P.toastClassName),bodyClassName:Ik(C.bodyClassName||P.bodyClassName),progressClassName:Ik(C.progressClassName||P.progressClassName),autoClose:!C.isLoading&&(j=C.autoClose,z=P.autoClose,j===!1||TS(j)&&j>0?j:z),deleteToast(){const le=_6(i.get(k),"removed");i.delete(k),Tl.emit(4,le);const re=l.queue.length;if(l.count=k==null?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),re>0){const ge=k==null?l.props.limit:1;if(re===1||ge===1)l.displayedToast++,f();else{const me=ge>re?re:ge;l.displayedToast=me;for(let W=0;Wce in HR)(ge)&&(G=HR[ge](q))),G})(L),is(C.onOpen)&&(L.onOpen=C.onOpen),is(C.onClose)&&(L.onClose=C.onClose),L.closeButton=P.closeButton,C.closeButton===!1||qR(C.closeButton)?L.closeButton=C.closeButton:C.closeButton===!0&&(L.closeButton=!qR(P.closeButton)||P.closeButton);let Q=h;R.isValidElement(h)&&!Dv(h.type)?Q=R.cloneElement(h,{closeToast:N,toastProps:L,data:A}):is(h)&&(Q=h({closeToast:N,toastProps:L,data:A})),P.limit&&P.limit>0&&l.count>P.limit&&I?l.queue.push({toastContent:Q,toastProps:L,staleId:T}):TS(E)?setTimeout(()=>{y(Q,L,T)},E):y(Q,L,T)}function y(h,v,E){const{toastId:T}=v;E&&i.delete(E);const C={content:h,props:v};i.set(T,C),r(k=>[...k,T].filter(_=>_!==E)),Tl.emit(4,_6(C,C.props.updateId==null?"added":"updated"))}return R.useEffect(()=>(l.containerId=e.containerId,Tl.cancelEmit(3).on(0,g).on(1,h=>a.current&&d(h)).on(5,u).emit(2,l),()=>{i.clear(),Tl.emit(3,l)}),[]),R.useEffect(()=>{l.props=e,l.isToastActive=o,l.displayedToast=n.length}),{getToastToRender:function(h){const v=new Map,E=Array.from(i.values());return e.newestOnTop&&E.reverse(),E.forEach(T=>{const{position:C}=T.props;v.has(C)||v.set(C,[]),v.get(C).push(T)}),Array.from(v,T=>h(T[0],T[1]))},containerRef:a,isToastActive:o}}function O6(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function R6(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Ahe(e){const[t,n]=R.useState(!1),[r,a]=R.useState(!1),i=R.useRef(null),o=R.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=R.useRef(e),{autoClose:u,pauseOnHover:d,closeToast:f,onClick:g,closeOnClick:y}=e;function h(A){if(e.draggable){A.nativeEvent.type==="touchstart"&&A.nativeEvent.preventDefault(),o.didMove=!1,document.addEventListener("mousemove",C),document.addEventListener("mouseup",k),document.addEventListener("touchmove",C),document.addEventListener("touchend",k);const P=i.current;o.canCloseOnClick=!0,o.canDrag=!0,o.boundingRect=P.getBoundingClientRect(),P.style.transition="",o.x=O6(A.nativeEvent),o.y=R6(A.nativeEvent),e.draggableDirection==="x"?(o.start=o.x,o.removalDistance=P.offsetWidth*(e.draggablePercent/100)):(o.start=o.y,o.removalDistance=P.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function v(A){if(o.boundingRect){const{top:P,bottom:N,left:I,right:L}=o.boundingRect;A.nativeEvent.type!=="touchend"&&e.pauseOnHover&&o.x>=I&&o.x<=L&&o.y>=P&&o.y<=N?T():E()}}function E(){n(!0)}function T(){n(!1)}function C(A){const P=i.current;o.canDrag&&P&&(o.didMove=!0,t&&T(),o.x=O6(A),o.y=R6(A),o.delta=e.draggableDirection==="x"?o.x-o.start:o.y-o.start,o.start!==o.x&&(o.canCloseOnClick=!1),P.style.transform=`translate${e.draggableDirection}(${o.delta}px)`,P.style.opacity=""+(1-Math.abs(o.delta/o.removalDistance)))}function k(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",k),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",k);const A=i.current;if(o.canDrag&&o.didMove&&A){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance)return a(!0),void e.closeToast();A.style.transition="transform 0.2s, opacity 0.2s",A.style.transform=`translate${e.draggableDirection}(0)`,A.style.opacity="1"}}R.useEffect(()=>{l.current=e}),R.useEffect(()=>(i.current&&i.current.addEventListener("d",E,{once:!0}),is(e.onOpen)&&e.onOpen(R.isValidElement(e.children)&&e.children.props),()=>{const A=l.current;is(A.onClose)&&A.onClose(R.isValidElement(A.children)&&A.children.props)}),[]),R.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||T(),window.addEventListener("focus",E),window.addEventListener("blur",T)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",E),window.removeEventListener("blur",T))}),[e.pauseOnFocusLoss]);const _={onMouseDown:h,onTouchStart:h,onMouseUp:v,onTouchEnd:v};return u&&d&&(_.onMouseEnter=T,_.onMouseLeave=E),y&&(_.onClick=A=>{g&&g(A),o.canCloseOnClick&&f()}),{playToast:E,pauseToast:T,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:_}}function WQ(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return ze.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:a=>{a.stopPropagation(),t(a)},"aria-label":r},ze.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ze.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Nhe(e){let{delay:t,isRunning:n,closeToast:r,type:a="default",hide:i,className:o,style:l,controlledProgress:u,progress:d,rtl:f,isIn:g,theme:y}=e;const h=i||u&&d===0,v={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:h?0:1};u&&(v.transform=`scaleX(${d})`);const E=Xp("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":f}),T=is(o)?o({rtl:f,type:a,defaultClassName:E}):Xp(E,o);return ze.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:T,style:v,[u&&d>=1?"onTransitionEnd":"onAnimationEnd"]:u&&d<1?null:()=>{g&&r()}})}const Mhe=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:a}=Ahe(e),{closeButton:i,children:o,autoClose:l,onClick:u,type:d,hideProgressBar:f,closeToast:g,transition:y,position:h,className:v,style:E,bodyClassName:T,bodyStyle:C,progressClassName:k,progressStyle:_,updateId:A,role:P,progress:N,rtl:I,toastId:L,deleteToast:j,isIn:z,isLoading:Q,iconOut:le,closeOnClick:re,theme:ge}=e,me=Xp("Toastify__toast",`Toastify__toast-theme--${ge}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":I},{"Toastify__toast--close-on-click":re}),W=is(v)?v({rtl:I,position:h,type:d,defaultClassName:me}):Xp(me,v),G=!!N||!l,q={closeToast:g,type:d,theme:ge};let ce=null;return i===!1||(ce=is(i)?i(q):R.isValidElement(i)?R.cloneElement(i,q):WQ(q)),ze.createElement(y,{isIn:z,done:j,position:h,preventExitTransition:n,nodeRef:r},ze.createElement("div",{id:L,onClick:u,className:W,...a,style:E,ref:r},ze.createElement("div",{...z&&{role:P},className:is(T)?T({type:d}):Xp("Toastify__toast-body",T),style:C},le!=null&&ze.createElement("div",{className:Xp("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Q})},le),ze.createElement("div",null,o)),ce,ze.createElement(Nhe,{...A&&!G?{key:`pb-${A}`}:{},rtl:I,theme:ge,delay:l,isRunning:t,isIn:z,closeToast:g,hide:f,type:d,style:_,className:k,controlledProgress:G,progress:N||0})))},h_=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Ihe=p_(h_("bounce",!0));p_(h_("slide",!0));p_(h_("zoom"));p_(h_("flip"));const vL=R.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:a}=Phe(e),{className:i,style:o,rtl:l,containerId:u}=e;function d(f){const g=Xp("Toastify__toast-container",`Toastify__toast-container--${f}`,{"Toastify__toast-container--rtl":l});return is(i)?i({position:f,rtl:l,defaultClassName:g}):Xp(g,Ik(i))}return R.useEffect(()=>{t&&(t.current=r.current)},[]),ze.createElement("div",{ref:r,className:"Toastify",id:u},n((f,g)=>{const y=g.length?{...o}:{...o,pointerEvents:"none"};return ze.createElement("div",{className:d(f),style:y,key:`container-${f}`},g.map((h,v)=>{let{content:E,props:T}=h;return ze.createElement(Mhe,{...T,isIn:a(T.toastId),style:{...T.style,"--nth":v+1,"--len":g.length},key:`toast-${T.key}`},E)}))}))});vL.displayName="ToastContainer",vL.defaultProps={position:"top-right",transition:Ihe,autoClose:5e3,closeButton:WQ,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let VR,iv=new Map,gS=[],Dhe=1;function zQ(){return""+Dhe++}function $he(e){return e&&(Dv(e.toastId)||TS(e.toastId))?e.toastId:zQ()}function CS(e,t){return iv.size>0?Tl.emit(0,e,t):gS.push({content:e,options:t}),t.toastId}function sx(e,t){return{...t,type:t&&t.type||e,toastId:$he(t)}}function tk(e){return(t,n)=>CS(t,sx(e,n))}function ta(e,t){return CS(e,sx("default",t))}ta.loading=(e,t)=>CS(e,sx("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ta.promise=function(e,t,n){let r,{pending:a,error:i,success:o}=t;a&&(r=Dv(a)?ta.loading(a,n):ta.loading(a.render,{...n,...a}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(f,g,y)=>{if(g==null)return void ta.dismiss(r);const h={type:f,...l,...n,data:y},v=Dv(g)?{render:g}:g;return r?ta.update(r,{...h,...v}):ta(v.render,{...h,...v}),y},d=is(e)?e():e;return d.then(f=>u("success",o,f)).catch(f=>u("error",i,f)),d},ta.success=tk("success"),ta.info=tk("info"),ta.error=tk("error"),ta.warning=tk("warning"),ta.warn=ta.warning,ta.dark=(e,t)=>CS(e,sx("default",{theme:"dark",...t})),ta.dismiss=e=>{iv.size>0?Tl.emit(1,e):gS=gS.filter(t=>e!=null&&t.options.toastId!==e)},ta.clearWaitingQueue=function(e){return e===void 0&&(e={}),Tl.emit(5,e)},ta.isActive=e=>{let t=!1;return iv.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},ta.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=(function(r,a){let{containerId:i}=a;const o=iv.get(i||VR);return o&&o.getToast(r)})(e,t);if(n){const{props:r,content:a}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:zQ()};i.toastId!==e&&(i.staleId=e);const o=i.render||a;delete i.render,CS(o,i)}},0)},ta.done=e=>{ta.update(e,{progress:1})},ta.onChange=e=>(Tl.on(4,e),()=>{Tl.off(4,e)}),ta.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},ta.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Tl.on(2,e=>{VR=e.containerId||e,iv.set(VR,e),gS.forEach(t=>{Tl.emit(0,t.content,t.options)}),gS=[]}).on(3,e=>{iv.delete(e.containerId||e),iv.size===0&&Tl.off(0).off(1).off(5)});let O1=null;const P6=2500;function Lhe(e,t){if((O1==null?void 0:O1.content)==e)return;const n=ta(e,{hideProgressBar:!0,autoClose:P6,...t});O1={content:e,key:n},setTimeout(()=>{O1=null},P6)}function S0(e){var n,r,a,i;const t={};if(e.error&&Array.isArray((n=e.error)==null?void 0:n.errors))for(const o of(r=e.error)==null?void 0:r.errors)t[o.location]=o.message;return e.status&&e.ok===!1?{form:`${e.status}`}:((a=e==null?void 0:e.error)!=null&&a.message&&(t.form=(i=e==null?void 0:e.error)==null?void 0:i.message),e.message?{form:`${e.message}`}:t)}function qQ(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function Fhe(e,t,n,r){const[a,i]=R.useState(null);return R.useEffect(()=>{const o=document.querySelector(e);if(!o)return;let l=null;const u=new ResizeObserver(d=>{for(const f of d){const g=f.contentRect.width;let y=null;for(const{name:h,value:v}of t)if(g{u.unobserve(o),u.disconnect()}},[e,t,n,r]),a}const sh=()=>{const e=navigator.userAgent.toLowerCase(),t="ontouchstart"in window||navigator.maxTouchPoints>0,n=window.innerWidth||document.documentElement.clientWidth,r=!!window.cordova||!!window.cordovaPlatformId,a=/iphone|android.*mobile|blackberry|windows phone|opera mini|iemobile/,i=/ipad|android(?!.*mobile)|tablet/,o=/windows|macintosh|linux|x11/,l=a.test(e),u=i.test(e),d=!t||o.test(e);let f="large";n<600?f="small":n<1024&&(f="medium");const g=n<1024;return{isPhysicalPhone:l,isTablet:u,isDesktop:d,isMobileView:g,isCordova:r,viewSize:f}},HQ=ze.createContext({sidebarVisible:!1,threshold:"desktop",routers:[{id:"url-router"}],toggleSidebar(){},setSidebarRef(e){},persistSidebarSize(e){},setFocusedRouter(e){},closeCurrentRouter(){},sidebarItemSelected(){},collapseLeftPanel(){},addRouter(){},updateSidebarSize(){},hide(){},show(){}});function zv(){return R.useContext(HQ)}function jhe({children:e}){const t=R.useRef(null),n=R.useRef(null),[r,a]=R.useState(!1),[i,o]=R.useState([{id:"url-router"}]),l=N=>{n.current=N,localStorage.setItem("sidebarState",N.toString())};R.useEffect(()=>{const N=localStorage.getItem("sidebarState"),I=N!==null?parseFloat(N):null;I&&(n.current=I)},[]);const u=R.useRef(!1),d=N=>{var I;(I=t.current)==null||I.resize(N)};Ohe(768,N=>{d(N?0:20)});const f=N=>{o(I=>[...I,{id:qQ(),href:N}])},g=N=>{o(I=>I.map(L=>L.id===N?{...L,focused:!0}:{...L,focused:!1}))},y=()=>{var N;t.current&&u.current&&(E(),u.current=!1),C((N=t.current)==null?void 0:N.getSize())},h=()=>{var j;const N=(j=t.current)==null?void 0:j.getSize(),I=180/window.innerWidth*100;let L=I;n.current&&n.current>I&&(L=n.current),sh().isMobileView&&(L=80),N&&N>0?(d(0),localStorage.setItem("sidebarState","-1"),a(!1)):(localStorage.setItem("sidebarState",L.toString()),d(L),a(!0))},v=N=>{t.current=N},E=()=>{d(0),a(!1)},T=N=>{o(I=>I.filter(L=>L.id!==N))},C=N=>{d(N)},k=()=>{t.current&&(d(20),a(!0))},_=N=>{N==="closed"?u.current=!0:u.current=!1},A=Fhe(".sidebar-panel",[{name:"closed",value:50},{name:"tablet",value:100},{name:"desktop",value:150}],_,_),P=()=>{window.innerWidth<500&&E()};return w.jsx(HQ.Provider,{value:{hide:E,sidebarItemSelected:P,addRouter:f,show:k,updateSidebarSize:C,setFocusedRouter:g,setSidebarRef:v,persistSidebarSize:l,closeCurrentRouter:T,threshold:A,collapseLeftPanel:y,routers:i,sidebarVisible:r,toggleSidebar:h},children:e})}class Pd extends wn{constructor(...t){super(...t),this.children=void 0,this.name=void 0,this.operationId=void 0,this.diskPath=void 0,this.size=void 0,this.virtualPath=void 0,this.type=void 0,this.variations=void 0}}Pd.Navigation={edit(e,t){return`${t?"/"+t:".."}/file/edit/${e}`},create(e){return`${e?"/"+e:".."}/file/new`},single(e,t){return`${t?"/"+t:".."}/file/${e}`},query(e={},t){return`${t?"/"+t:".."}/files`},Redit:"file/edit/:uniqueId",Rcreate:"file/new",Rsingle:"file/:uniqueId",Rquery:"files",rVariationsCreate:"file/:linkerId/variations/new",rVariationsEdit:"file/:linkerId/variations/edit/:uniqueId",editVariations(e,t,n){return`${n?"/"+n:""}/file/${e}/variations/edit/${t}`},createVariations(e,t){return`${t?"/"+t:""}/file/${e}/variations/new`}};Pd.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"file",features:{},gormMap:{},fields:[{name:"name",type:"string",computedType:"string",gormMap:{}},{name:"operationId",description:"For each upload, we need to assign a operation id, so if the operation has been cancelled, it would be cleared automatically, and there won't be orphant files in the database.",type:"string",computedType:"string",gormMap:{}},{name:"diskPath",type:"string",computedType:"string",gormMap:{}},{name:"size",type:"int64",computedType:"number",gormMap:{}},{name:"virtualPath",type:"string",computedType:"string",gormMap:{}},{name:"type",type:"string",computedType:"string",gormMap:{}},{name:"variations",type:"array",computedType:"FileVariations[]",gormMap:{},"-":"FileVariations",fields:[{name:"name",type:"string",computedType:"string",gormMap:{}}],linkedTo:"FileEntity"}],description:"Tus file uploading reference of the content. Every files being uploaded using tus will be stored in this table."};Pd.Fields={...wn.Fields,name:"name",operationId:"operationId",diskPath:"diskPath",size:"size",virtualPath:"virtualPath",type:"type",variations$:"variations",variationsAt:e=>({$:`variations[${e}]`,...wn.Fields,name:`variations[${e}].name`})};function A6(e){let t=(e||"").replaceAll(/fbtusid_____(.*)_____/g,kr.REMOTE_SERVICE+"files/$1");return t=(t||"").replaceAll(/directasset_____(.*)_____/g,kr.REMOTE_SERVICE+"$1"),t}function Uhe(){return{compiler:"unknown"}}function VQ(){return{directPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?A6(n.uniqueId):`${kr.REMOTE_SERVICE}files-inline/${n==null?void 0:n.diskPath}`,downloadPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?A6(n.uniqueId):`${kr.REMOTE_SERVICE}files/${n==null?void 0:n.diskPath}`}}const Pl=({children:e,isActive:t,skip:n,activeClassName:r,inActiveClassName:a,...i})=>{var g;const o=xr(),{locale:l}=sr(),u=i.locale||l||"en",{compiler:d}=Uhe();let f=(i==null?void 0:i.href)||(o==null?void 0:o.asPath)||"";return typeof f=="string"&&(f!=null&&f.indexOf)&&f.indexOf("http")===0&&(n=!0),typeof f=="string"&&u&&!n&&!f.startsWith(".")&&(f=f?`/${l}`+f:(g=o.pathname)==null?void 0:g.replace("[locale]",u)),t&&(i.className=`${i.className||""} ${r||"active"}`),!t&&a&&(i.className=`${i.className||""} ${a}`),w.jsx(ele,{...i,href:f,compiler:d,children:e})},Yb=e=>{const{children:t,forceActive:n,...r}=e,{locale:a,asPath:i}=sr(),o=R.Children.only(t),l=i===`/${a}`+r.href||i+"/"==`/${a}`+r.href||n;return e.disabled?w.jsx("span",{className:"disabled",children:o}):w.jsx(Pl,{...r,isActive:l,children:o})};function Bhe(){const e=R.useContext(gF);return w.jsx("span",{children:e.ref.title})}const gF=ze.createContext({setPageTitle(){},removePageTitle(){},ref:{title:""}});function gh(e){const t=R.useContext(gF);R.useEffect(()=>(t.setPageTitle(e||""),()=>{t.removePageTitle("")}),[e])}function Whe({children:e,prefix:t,affix:n}){const[r,a]=R.useState(""),i=l=>{const u=[t,l,n].filter(Boolean).join(" | ");document.title=u,a(l)},o=()=>{document.title="",a("")};return w.jsx(gF.Provider,{value:{ref:{title:r},setPageTitle:i,removePageTitle:o},children:e})}const GQ=()=>{const e=R.useRef();return{withDebounce:(n,r)=>{e.current&&clearTimeout(e.current),e.current=setTimeout(n,r)}}},m_=ze.createContext({result:[],setResult(){},reset(){},appendResult(){},setPhrase(){},phrase:""});function zhe({children:e}){const[t,n]=R.useState(""),[r,a]=R.useState([]),i=l=>{a(u=>[...u,l])},o=()=>{n(""),a([])};return w.jsx(m_.Provider,{value:{result:r,setResult:a,reset:o,appendResult:i,setPhrase:n,phrase:t},children:e})}function lx(e,t){return lx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},lx(e,t)}function qv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lx(e,t)}var E0=(function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var a=this,i=r||function(){};return this.listeners.push(i),this.onSubscribe(),function(){a.listeners=a.listeners.filter(function(o){return o!==i}),a.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e})();function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u";function ji(){}function qhe(e,t){return typeof e=="function"?e(t):e}function yL(e){return typeof e=="number"&&e>=0&&e!==1/0}function cx(e){return Array.isArray(e)?e:[e]}function YQ(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Dk(e,t,n){return IE(e)?typeof t=="function"?vt({},n,{queryKey:e,queryFn:t}):vt({},t,{queryKey:e}):e}function Hhe(e,t,n){return IE(e)?vt({},t,{mutationKey:e}):typeof e=="function"?vt({},t,{mutationFn:e}):vt({},e)}function Vp(e,t,n){return IE(e)?[vt({},t,{queryKey:e}),n]:[e||{},t]}function Vhe(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function N6(e,t){var n=e.active,r=e.exact,a=e.fetching,i=e.inactive,o=e.predicate,l=e.queryKey,u=e.stale;if(IE(l)){if(r){if(t.queryHash!==vF(l,t.options))return!1}else if(!dx(t.queryKey,l))return!1}var d=Vhe(n,i);if(d==="none")return!1;if(d!=="all"){var f=t.isActive();if(d==="active"&&!f||d==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof a=="boolean"&&t.isFetching()!==a||o&&!o(t))}function M6(e,t){var n=e.exact,r=e.fetching,a=e.predicate,i=e.mutationKey;if(IE(i)){if(!t.options.mutationKey)return!1;if(n){if(lv(t.options.mutationKey)!==lv(i))return!1}else if(!dx(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||a&&!a(t))}function vF(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||lv;return n(e)}function lv(e){var t=cx(e);return Ghe(t)}function Ghe(e){return JSON.stringify(e,function(t,n){return bL(n)?Object.keys(n).sort().reduce(function(r,a){return r[a]=n[a],r},{}):n})}function dx(e,t){return KQ(cx(e),cx(t))}function KQ(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!KQ(e[n],t[n])}):!1}function fx(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||bL(e)&&bL(t)){for(var r=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),i=a.length,o=n?[]:{},l=0,u=0;u"u")return!0;var n=t.prototype;return!(!I6(n)||!n.hasOwnProperty("isPrototypeOf"))}function I6(e){return Object.prototype.toString.call(e)==="[object Object]"}function IE(e){return typeof e=="string"||Array.isArray(e)}function Khe(e){return new Promise(function(t){setTimeout(t,e)})}function D6(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function XQ(){if(typeof AbortController=="function")return new AbortController}var Xhe=(function(e){qv(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var i;if(!ux&&((i=window)!=null&&i.addEventListener)){var o=function(){return a()};return window.addEventListener("visibilitychange",o,!1),window.addEventListener("focus",o,!1),function(){window.removeEventListener("visibilitychange",o),window.removeEventListener("focus",o)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var i,o=this;this.setup=a,(i=this.cleanup)==null||i.call(this),this.cleanup=a(function(l){typeof l=="boolean"?o.setFocused(l):o.onFocus()})},n.setFocused=function(a){this.focused=a,a&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(a){a()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t})(E0),kS=new Xhe,Qhe=(function(e){qv(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(a){var i;if(!ux&&((i=window)!=null&&i.addEventListener)){var o=function(){return a()};return window.addEventListener("online",o,!1),window.addEventListener("offline",o,!1),function(){window.removeEventListener("online",o),window.removeEventListener("offline",o)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var a;(a=this.cleanup)==null||a.call(this),this.cleanup=void 0}},n.setEventListener=function(a){var i,o=this;this.setup=a,(i=this.cleanup)==null||i.call(this),this.cleanup=a(function(l){typeof l=="boolean"?o.setOnline(l):o.onOnline()})},n.setOnline=function(a){this.online=a,a&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(a){a()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t})(E0),$k=new Qhe;function Jhe(e){return Math.min(1e3*Math.pow(2,e),3e4)}function px(e){return typeof(e==null?void 0:e.cancel)=="function"}var QQ=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Lk(e){return e instanceof QQ}var JQ=function(t){var n=this,r=!1,a,i,o,l;this.abort=t.abort,this.cancel=function(y){return a==null?void 0:a(y)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return i==null?void 0:i()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(y,h){o=y,l=h});var u=function(h){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(h),i==null||i(),o(h))},d=function(h){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(h),i==null||i(),l(h))},f=function(){return new Promise(function(h){i=h,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){i=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},g=function y(){if(!n.isResolved){var h;try{h=t.fn()}catch(v){h=Promise.reject(v)}a=function(E){if(!n.isResolved&&(d(new QQ(E)),n.abort==null||n.abort(),px(h)))try{h.cancel()}catch{}},n.isTransportCancelable=px(h),Promise.resolve(h).then(u).catch(function(v){var E,T;if(!n.isResolved){var C=(E=t.retry)!=null?E:3,k=(T=t.retryDelay)!=null?T:Jhe,_=typeof k=="function"?k(n.failureCount,v):k,A=C===!0||typeof C=="number"&&n.failureCount"u"&&(l.exact=!0),this.queries.find(function(u){return N6(l,u)})},n.findAll=function(a,i){var o=Vp(a,i),l=o[0];return Object.keys(l).length>0?this.queries.filter(function(u){return N6(l,u)}):this.queries},n.notify=function(a){var i=this;aa.batch(function(){i.listeners.forEach(function(o){o(a)})})},n.onFocus=function(){var a=this;aa.batch(function(){a.queries.forEach(function(i){i.onFocus()})})},n.onOnline=function(){var a=this;aa.batch(function(){a.queries.forEach(function(i){i.onOnline()})})},t})(E0),rme=(function(){function e(n){this.options=vt({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||eJ(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(a){return a!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(ji).catch(ji)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,a,i=this.state.status==="loading",o=Promise.resolve();return i||(this.dispatch({type:"loading",variables:this.options.variables}),o=o.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(l){l!==r.state.context&&r.dispatch({type:"loading",context:l,variables:r.state.variables})})),o.then(function(){return r.executeMutation()}).then(function(l){a=l,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(a,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(a,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(a,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:a}),a}).catch(function(l){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(l,r.state.variables,r.state.context,r),hx().error(l),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(l,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,l,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:l}),l})})},t.executeMutation=function(){var r=this,a;return this.retryer=new JQ({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(a=this.options.retry)!=null?a:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var a=this;this.state=ame(this.state,r),aa.batch(function(){a.observers.forEach(function(i){i.onMutationUpdate(r)}),a.mutationCache.notify(a)})},e})();function eJ(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function ame(e,t){switch(t.type){case"failed":return vt({},e,{failureCount:e.failureCount+1});case"pause":return vt({},e,{isPaused:!0});case"continue":return vt({},e,{isPaused:!1});case"loading":return vt({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return vt({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return vt({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return vt({},e,t.state);default:return e}}var ime=(function(e){qv(t,e);function t(r){var a;return a=e.call(this)||this,a.config=r||{},a.mutations=[],a.mutationId=0,a}var n=t.prototype;return n.build=function(a,i,o){var l=new rme({mutationCache:this,mutationId:++this.mutationId,options:a.defaultMutationOptions(i),state:o,defaultOptions:i.mutationKey?a.getMutationDefaults(i.mutationKey):void 0,meta:i.meta});return this.add(l),l},n.add=function(a){this.mutations.push(a),this.notify(a)},n.remove=function(a){this.mutations=this.mutations.filter(function(i){return i!==a}),a.cancel(),this.notify(a)},n.clear=function(){var a=this;aa.batch(function(){a.mutations.forEach(function(i){a.remove(i)})})},n.getAll=function(){return this.mutations},n.find=function(a){return typeof a.exact>"u"&&(a.exact=!0),this.mutations.find(function(i){return M6(a,i)})},n.findAll=function(a){return this.mutations.filter(function(i){return M6(a,i)})},n.notify=function(a){var i=this;aa.batch(function(){i.listeners.forEach(function(o){o(a)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var a=this.mutations.filter(function(i){return i.state.isPaused});return aa.batch(function(){return a.reduce(function(i,o){return i.then(function(){return o.continue().catch(ji)})},Promise.resolve())})},t})(E0);function ome(){return{onFetch:function(t){t.fetchFn=function(){var n,r,a,i,o,l,u=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,d=(a=t.fetchOptions)==null||(i=a.meta)==null?void 0:i.fetchMore,f=d==null?void 0:d.pageParam,g=(d==null?void 0:d.direction)==="forward",y=(d==null?void 0:d.direction)==="backward",h=((o=t.state.data)==null?void 0:o.pages)||[],v=((l=t.state.data)==null?void 0:l.pageParams)||[],E=XQ(),T=E==null?void 0:E.signal,C=v,k=!1,_=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},A=function(ge,me,W,G){return C=G?[me].concat(C):[].concat(C,[me]),G?[W].concat(ge):[].concat(ge,[W])},P=function(ge,me,W,G){if(k)return Promise.reject("Cancelled");if(typeof W>"u"&&!me&&ge.length)return Promise.resolve(ge);var q={queryKey:t.queryKey,signal:T,pageParam:W,meta:t.meta},ce=_(q),H=Promise.resolve(ce).then(function(ie){return A(ge,W,ie,G)});if(px(ce)){var Y=H;Y.cancel=ce.cancel}return H},N;if(!h.length)N=P([]);else if(g){var I=typeof f<"u",L=I?f:$6(t.options,h);N=P(h,I,L)}else if(y){var j=typeof f<"u",z=j?f:sme(t.options,h);N=P(h,j,z,!0)}else(function(){C=[];var re=typeof t.options.getNextPageParam>"u",ge=u&&h[0]?u(h[0],0,h):!0;N=ge?P([],re,v[0]):Promise.resolve(A([],v[0],h[0]));for(var me=function(q){N=N.then(function(ce){var H=u&&h[q]?u(h[q],q,h):!0;if(H){var Y=re?v[q]:$6(t.options,ce);return P(ce,re,Y)}return Promise.resolve(A(ce,v[q],h[q]))})},W=1;W"u"&&(f.revert=!0);var g=aa.batch(function(){return o.queryCache.findAll(u).map(function(y){return y.cancel(f)})});return Promise.all(g).then(ji).catch(ji)},t.invalidateQueries=function(r,a,i){var o,l,u,d=this,f=Vp(r,a,i),g=f[0],y=f[1],h=vt({},g,{active:(o=(l=g.refetchActive)!=null?l:g.active)!=null?o:!0,inactive:(u=g.refetchInactive)!=null?u:!1});return aa.batch(function(){return d.queryCache.findAll(g).forEach(function(v){v.invalidate()}),d.refetchQueries(h,y)})},t.refetchQueries=function(r,a,i){var o=this,l=Vp(r,a,i),u=l[0],d=l[1],f=aa.batch(function(){return o.queryCache.findAll(u).map(function(y){return y.fetch(void 0,vt({},d,{meta:{refetchPage:u==null?void 0:u.refetchPage}}))})}),g=Promise.all(f).then(ji);return d!=null&&d.throwOnError||(g=g.catch(ji)),g},t.fetchQuery=function(r,a,i){var o=Dk(r,a,i),l=this.defaultQueryOptions(o);typeof l.retry>"u"&&(l.retry=!1);var u=this.queryCache.build(this,l);return u.isStaleByTime(l.staleTime)?u.fetch(l):Promise.resolve(u.state.data)},t.prefetchQuery=function(r,a,i){return this.fetchQuery(r,a,i).then(ji).catch(ji)},t.fetchInfiniteQuery=function(r,a,i){var o=Dk(r,a,i);return o.behavior=ome(),this.fetchQuery(o)},t.prefetchInfiniteQuery=function(r,a,i){return this.fetchInfiniteQuery(r,a,i).then(ji).catch(ji)},t.cancelMutations=function(){var r=this,a=aa.batch(function(){return r.mutationCache.getAll().map(function(i){return i.cancel()})});return Promise.all(a).then(ji).catch(ji)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,a){var i=this.queryDefaults.find(function(o){return lv(r)===lv(o.queryKey)});i?i.defaultOptions=a:this.queryDefaults.push({queryKey:r,defaultOptions:a})},t.getQueryDefaults=function(r){var a;return r?(a=this.queryDefaults.find(function(i){return dx(r,i.queryKey)}))==null?void 0:a.defaultOptions:void 0},t.setMutationDefaults=function(r,a){var i=this.mutationDefaults.find(function(o){return lv(r)===lv(o.mutationKey)});i?i.defaultOptions=a:this.mutationDefaults.push({mutationKey:r,defaultOptions:a})},t.getMutationDefaults=function(r){var a;return r?(a=this.mutationDefaults.find(function(i){return dx(r,i.mutationKey)}))==null?void 0:a.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var a=vt({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!a.queryHash&&a.queryKey&&(a.queryHash=vF(a.queryKey,a)),a},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:vt({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e})(),ume=(function(e){qv(t,e);function t(r,a){var i;return i=e.call(this)||this,i.client=r,i.options=a,i.trackedProps=[],i.selectError=null,i.bindMethods(),i.setOptions(a),i}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),L6(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return wL(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return wL(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(a,i){var o=this.options,l=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(a),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=o.queryKey),this.updateQuery();var u=this.hasListeners();u&&F6(this.currentQuery,l,this.options,o)&&this.executeFetch(),this.updateResult(i),u&&(this.currentQuery!==l||this.options.enabled!==o.enabled||this.options.staleTime!==o.staleTime)&&this.updateStaleTimeout();var d=this.computeRefetchInterval();u&&(this.currentQuery!==l||this.options.enabled!==o.enabled||d!==this.currentRefetchInterval)&&this.updateRefetchInterval(d)},n.getOptimisticResult=function(a){var i=this.client.defaultQueryObserverOptions(a),o=this.client.getQueryCache().build(this.client,i);return this.createResult(o,i)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(a,i){var o=this,l={},u=function(f){o.trackedProps.includes(f)||o.trackedProps.push(f)};return Object.keys(a).forEach(function(d){Object.defineProperty(l,d,{configurable:!1,enumerable:!0,get:function(){return u(d),a[d]}})}),(i.useErrorBoundary||i.suspense)&&u("error"),l},n.getNextResult=function(a){var i=this;return new Promise(function(o,l){var u=i.subscribe(function(d){d.isFetching||(u(),d.isError&&(a!=null&&a.throwOnError)?l(d.error):o(d))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(a){return this.fetch(vt({},a,{meta:{refetchPage:a==null?void 0:a.refetchPage}}))},n.fetchOptimistic=function(a){var i=this,o=this.client.defaultQueryObserverOptions(a),l=this.client.getQueryCache().build(this.client,o);return l.fetch().then(function(){return i.createResult(l,o)})},n.fetch=function(a){var i=this;return this.executeFetch(a).then(function(){return i.updateResult(),i.currentResult})},n.executeFetch=function(a){this.updateQuery();var i=this.currentQuery.fetch(this.options,a);return a!=null&&a.throwOnError||(i=i.catch(ji)),i},n.updateStaleTimeout=function(){var a=this;if(this.clearStaleTimeout(),!(ux||this.currentResult.isStale||!yL(this.options.staleTime))){var i=YQ(this.currentResult.dataUpdatedAt,this.options.staleTime),o=i+1;this.staleTimeoutId=setTimeout(function(){a.currentResult.isStale||a.updateResult()},o)}},n.computeRefetchInterval=function(){var a;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(a=this.options.refetchInterval)!=null?a:!1},n.updateRefetchInterval=function(a){var i=this;this.clearRefetchInterval(),this.currentRefetchInterval=a,!(ux||this.options.enabled===!1||!yL(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(i.options.refetchIntervalInBackground||kS.isFocused())&&i.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(a,i){var o=this.currentQuery,l=this.options,u=this.currentResult,d=this.currentResultState,f=this.currentResultOptions,g=a!==o,y=g?a.state:this.currentQueryInitialState,h=g?this.currentResult:this.previousQueryResult,v=a.state,E=v.dataUpdatedAt,T=v.error,C=v.errorUpdatedAt,k=v.isFetching,_=v.status,A=!1,P=!1,N;if(i.optimisticResults){var I=this.hasListeners(),L=!I&&L6(a,i),j=I&&F6(a,o,i,l);(L||j)&&(k=!0,E||(_="loading"))}if(i.keepPreviousData&&!v.dataUpdateCount&&(h!=null&&h.isSuccess)&&_!=="error")N=h.data,E=h.dataUpdatedAt,_=h.status,A=!0;else if(i.select&&typeof v.data<"u")if(u&&v.data===(d==null?void 0:d.data)&&i.select===this.selectFn)N=this.selectResult;else try{this.selectFn=i.select,N=i.select(v.data),i.structuralSharing!==!1&&(N=fx(u==null?void 0:u.data,N)),this.selectResult=N,this.selectError=null}catch(le){hx().error(le),this.selectError=le}else N=v.data;if(typeof i.placeholderData<"u"&&typeof N>"u"&&(_==="loading"||_==="idle")){var z;if(u!=null&&u.isPlaceholderData&&i.placeholderData===(f==null?void 0:f.placeholderData))z=u.data;else if(z=typeof i.placeholderData=="function"?i.placeholderData():i.placeholderData,i.select&&typeof z<"u")try{z=i.select(z),i.structuralSharing!==!1&&(z=fx(u==null?void 0:u.data,z)),this.selectError=null}catch(le){hx().error(le),this.selectError=le}typeof z<"u"&&(_="success",N=z,P=!0)}this.selectError&&(T=this.selectError,N=this.selectResult,C=Date.now(),_="error");var Q={status:_,isLoading:_==="loading",isSuccess:_==="success",isError:_==="error",isIdle:_==="idle",data:N,dataUpdatedAt:E,error:T,errorUpdatedAt:C,failureCount:v.fetchFailureCount,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>y.dataUpdateCount||v.errorUpdateCount>y.errorUpdateCount,isFetching:k,isRefetching:k&&_!=="loading",isLoadingError:_==="error"&&v.dataUpdatedAt===0,isPlaceholderData:P,isPreviousData:A,isRefetchError:_==="error"&&v.dataUpdatedAt!==0,isStale:yF(a,i),refetch:this.refetch,remove:this.remove};return Q},n.shouldNotifyListeners=function(a,i){if(!i)return!0;var o=this.options,l=o.notifyOnChangeProps,u=o.notifyOnChangePropsExclusions;if(!l&&!u||l==="tracked"&&!this.trackedProps.length)return!0;var d=l==="tracked"?this.trackedProps:l;return Object.keys(a).some(function(f){var g=f,y=a[g]!==i[g],h=d==null?void 0:d.some(function(E){return E===f}),v=u==null?void 0:u.some(function(E){return E===f});return y&&!v&&(!d||h)})},n.updateResult=function(a){var i=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Yhe(this.currentResult,i)){var o={cache:!0};(a==null?void 0:a.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,i)&&(o.listeners=!0),this.notify(vt({},o,a))}},n.updateQuery=function(){var a=this.client.getQueryCache().build(this.client,this.options);if(a!==this.currentQuery){var i=this.currentQuery;this.currentQuery=a,this.currentQueryInitialState=a.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(i==null||i.removeObserver(this),a.addObserver(this))}},n.onQueryUpdate=function(a){var i={};a.type==="success"?i.onSuccess=!0:a.type==="error"&&!Lk(a.error)&&(i.onError=!0),this.updateResult(i),this.hasListeners()&&this.updateTimers()},n.notify=function(a){var i=this;aa.batch(function(){a.onSuccess?(i.options.onSuccess==null||i.options.onSuccess(i.currentResult.data),i.options.onSettled==null||i.options.onSettled(i.currentResult.data,null)):a.onError&&(i.options.onError==null||i.options.onError(i.currentResult.error),i.options.onSettled==null||i.options.onSettled(void 0,i.currentResult.error)),a.listeners&&i.listeners.forEach(function(o){o(i.currentResult)}),a.cache&&i.client.getQueryCache().notify({query:i.currentQuery,type:"observerResultsUpdated"})})},t})(E0);function cme(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function L6(e,t){return cme(e,t)||e.state.dataUpdatedAt>0&&wL(e,t,t.refetchOnMount)}function wL(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&yF(e,t)}return!1}function F6(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&yF(e,n)}function yF(e,t){return e.isStaleByTime(t.staleTime)}var dme=(function(e){qv(t,e);function t(r,a){var i;return i=e.call(this)||this,i.client=r,i.setOptions(a),i.bindMethods(),i.updateResult(),i}var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(a){this.options=this.client.defaultMutationOptions(a)},n.onUnsubscribe=function(){if(!this.listeners.length){var a;(a=this.currentMutation)==null||a.removeObserver(this)}},n.onMutationUpdate=function(a){this.updateResult();var i={listeners:!0};a.type==="success"?i.onSuccess=!0:a.type==="error"&&(i.onError=!0),this.notify(i)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(a,i){return this.mutateOptions=i,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,vt({},this.options,{variables:typeof a<"u"?a:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var a=this.currentMutation?this.currentMutation.state:eJ(),i=vt({},a,{isLoading:a.status==="loading",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=i},n.notify=function(a){var i=this;aa.batch(function(){i.mutateOptions&&(a.onSuccess?(i.mutateOptions.onSuccess==null||i.mutateOptions.onSuccess(i.currentResult.data,i.currentResult.variables,i.currentResult.context),i.mutateOptions.onSettled==null||i.mutateOptions.onSettled(i.currentResult.data,null,i.currentResult.variables,i.currentResult.context)):a.onError&&(i.mutateOptions.onError==null||i.mutateOptions.onError(i.currentResult.error,i.currentResult.variables,i.currentResult.context),i.mutateOptions.onSettled==null||i.mutateOptions.onSettled(void 0,i.currentResult.error,i.currentResult.variables,i.currentResult.context))),a.listeners&&i.listeners.forEach(function(o){o(i.currentResult)})})},t})(E0),fme=Voe.unstable_batchedUpdates;aa.setBatchNotifyFunction(fme);var pme=console;eme(pme);var j6=ze.createContext(void 0),tJ=ze.createContext(!1);function nJ(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=j6),window.ReactQueryClientContext):j6}var Bs=function(){var t=ze.useContext(nJ(ze.useContext(tJ)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},hme=function(t){var n=t.client,r=t.contextSharing,a=r===void 0?!1:r,i=t.children;ze.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var o=nJ(a);return ze.createElement(tJ.Provider,{value:a},ze.createElement(o.Provider,{value:n},i))};function mme(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var gme=ze.createContext(mme()),vme=function(){return ze.useContext(gme)};function rJ(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function un(e,t,n){var r=ze.useRef(!1),a=ze.useState(0),i=a[1],o=Hhe(e,t),l=Bs(),u=ze.useRef();u.current?u.current.setOptions(o):u.current=new dme(l,o);var d=u.current.getCurrentResult();ze.useEffect(function(){r.current=!0;var g=u.current.subscribe(aa.batchCalls(function(){r.current&&i(function(y){return y+1})}));return function(){r.current=!1,g()}},[]);var f=ze.useCallback(function(g,y){u.current.mutate(g,y).catch(ji)},[]);if(d.error&&rJ(void 0,u.current.options.useErrorBoundary,[d.error]))throw d.error;return vt({},d,{mutate:f,mutateAsync:d.mutate})}function yme(e,t){var n=ze.useRef(!1),r=ze.useState(0),a=r[1],i=Bs(),o=vme(),l=i.defaultQueryObserverOptions(e);l.optimisticResults=!0,l.onError&&(l.onError=aa.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=aa.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=aa.batchCalls(l.onSettled)),l.suspense&&(typeof l.staleTime!="number"&&(l.staleTime=1e3),l.cacheTime===0&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(o.isReset()||(l.retryOnMount=!1));var u=ze.useState(function(){return new t(i,l)}),d=u[0],f=d.getOptimisticResult(l);if(ze.useEffect(function(){n.current=!0,o.clearReset();var g=d.subscribe(aa.batchCalls(function(){n.current&&a(function(y){return y+1})}));return d.updateResult(),function(){n.current=!1,g()}},[o,d]),ze.useEffect(function(){d.setOptions(l,{listeners:!1})},[l,d]),l.suspense&&f.isLoading)throw d.fetchOptimistic(l).then(function(g){var y=g.data;l.onSuccess==null||l.onSuccess(y),l.onSettled==null||l.onSettled(y,null)}).catch(function(g){o.clearReset(),l.onError==null||l.onError(g),l.onSettled==null||l.onSettled(void 0,g)});if(f.isError&&!o.isReset()&&!f.isFetching&&rJ(l.suspense,l.useErrorBoundary,[f.error,d.getCurrentQuery()]))throw f.error;return l.notifyOnChangeProps==="tracked"&&(f=d.trackResult(f,l)),f}function jn(e,t,n){var r=Dk(e,t,n);return yme(r,ume)}function bme({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a,onMessage:i,presistResult:o}){var A;const{options:l}=R.useContext(rt),u=l.prefix,d=(A=l.headers)==null?void 0:A.authorization,f=l.headers["workspace-id"],g=R.useRef(),[y,h]=R.useState([]),v=P=>{h(N=>[...N,P])},[E,T]=R.useState(!1),C=()=>{var P,N;((P=g.current)==null?void 0:P.readyState)===1&&((N=g.current)==null||N.close()),T(!1)},k=P=>{var N;(N=g.current)==null||N.send(P)},_=(P,N=null)=>{var Q,le;((Q=g.current)==null?void 0:Q.readyState)===1&&((le=g.current)==null||le.close()),h([]);const I=u==null?void 0:u.replace("https","wss").replace("http","ws"),L="/reactive-search".substr(1);let j=`${I}${L}?acceptLanguage=${l.headers["accept-language"]}&token=${d}&workspaceId=${f}&${new URLSearchParams(P)}&${new URLSearchParams(n||{})}`;j=j.replace(":uniqueId",n==null?void 0:n.uniqueId);let z=new WebSocket(j);g.current=z,z.onopen=function(){T(!0)},z.onmessage=function(re){if(N!==null)return N(re);if(re.data instanceof Blob||re.data instanceof ArrayBuffer)i==null||i(re.data);else try{const ge=JSON.parse(re.data);ge&&(i&&i(ge),o!==!1&&v(ge))}catch{}}};return R.useEffect(()=>()=>{C()},[]),{operate:_,data:y,close:C,connected:E,write:k}}function wme(){const e=At(),{withDebounce:t}=GQ(),{setResult:n,setPhrase:r,phrase:a,result:i,reset:o}=R.useContext(m_),{operate:l,data:u}=bme({}),d=xr(),f=R.useRef(),[g,y]=R.useState(""),{locale:h}=sr();R.useEffect(()=>{a||y("")},[a]),R.useEffect(()=>{n(u)},[u]);const v=T=>{t(()=>{r(T),l({searchPhrase:encodeURIComponent(T)})},500)};mF("s",()=>{var T;(T=f.current)==null||T.focus()});const{isMobileView:E}=sh();return E?null:w.jsx("form",{className:"navbar-search-box",onSubmit:T=>{T.preventDefault(),i.length>0&&i[0].actionFn==="navigate"&&i[0].uiLocation&&(d.push(`/${h}${i[0].uiLocation}`),o())},children:w.jsx("input",{ref:T=>{f.current=T},value:g,placeholder:e.reactiveSearch.placeholder,onInput:T=>{y(T.target.value),v(T.target.value)},className:"form-control"})})}const Sme=({children:e,close:t,visible:n,params:r})=>w.jsx("div",{className:oa("modal d-block with-fade-in modal-overlay",n?"visible":"invisible"),children:w.jsx("div",{className:"modal-dialog",children:w.jsxs("div",{className:"modal-content",children:[w.jsxs("div",{className:"modal-header",children:[w.jsx("h5",{className:"modal-title",children:r==null?void 0:r.title}),w.jsx("button",{type:"button",id:"cls",className:"btn-close",onClick:t,"aria-label":"Close"})]}),e]})})});function SL(){return SL=Object.assign||function(e){for(var t=1;tw.jsx(Tme,{open:n,direction:(e==null?void 0:e.direction)||"right",zIndex:1e4,onClose:r,duration:e==null?void 0:e.speed,size:e==null?void 0:e.size,children:t}),aJ=R.createContext(null);let kme=0;const xme=({children:e,BaseModalWrapper:t=Sme,OverlayWrapper:n=Cme})=>{const[r,a]=R.useState([]),i=R.useRef(r);i.current=r,R.useEffect(()=>{const f=g=>{var y;if(g.key==="Escape"&&r.length>0){const h=r[r.length-1];(y=h==null?void 0:h.close)==null||y.call(h)}};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[r]);const o=(f,g)=>{const y=kme++,h=ze.createRef();let v,E;const T=new Promise((A,P)=>{v=A,E=P}),C=()=>{a(A=>A.map(P=>P.id===y?{...P,visible:!1}:P)),setTimeout(()=>{a(A=>A.filter(P=>P.id!==y))},300)},k={id:y,ref:h,Component:f,type:(g==null?void 0:g.type)||"modal",params:g==null?void 0:g.params,data:{},visible:!1,onBeforeClose:void 0,resolve:A=>{setTimeout(()=>v({type:"resolved",data:A}),50),C()},close:async()=>{var N;const A=i.current.find(I=>I.id===y);A!=null&&A.onBeforeClose&&!await A.onBeforeClose()||!await(((N=k.onBeforeClose)==null?void 0:N.call(k))??!0)||(setTimeout(()=>v({data:null,type:"closed"}),50),C())},reject:A=>{setTimeout(()=>E({data:A,type:"rejected"}),50),C()}};a(A=>[...A,k]),setTimeout(()=>{a(A=>A.map(P=>P.id===y?{...P,visible:!0}:P))},50);const _=A=>{a(P=>P.map(N=>N.id===y?{...N,data:{...N.data,...A}}:N))};return{id:y,ref:h,promise:T,close:k.close,resolve:k.resolve,reject:k.reject,updateData:_}},l=(f,g)=>o(f,{type:"modal",params:g}),u=(f,g)=>o(f,{type:"drawer",params:g}),d=()=>{i.current.forEach(f=>{var g;return(g=f.reject)==null?void 0:g.call(f,"dismiss-all")}),a([])};return w.jsxs(aJ.Provider,{value:{openOverlay:o,openDrawer:u,openModal:l,dismissAll:d},children:[e,r.map(({id:f,type:g,Component:y,resolve:h,reject:v,close:E,params:T,visible:C,data:k})=>{const _=g==="drawer"?n:t;return w.jsx(_,{visible:C,close:E,reject:v,resolve:h,params:T,children:w.jsx(y,{resolve:h,reject:v,close:E,data:k,setOnBeforeClose:A=>{a(P=>P.map(N=>N.id===f?{...N,onBeforeClose:A}:N))}})},f)})]})},bF=()=>{const e=R.useContext(aJ);if(!e)throw new Error("useOverlay must be inside OverlayProvider");return e};var GR,U6;function T0(){return U6||(U6=1,GR=TypeError),GR}const _me={},Ome=Object.freeze(Object.defineProperty({__proto__:null,default:_me},Symbol.toStringTag,{value:"Module"})),Rme=jt(Ome);var YR,B6;function g_(){if(B6)return YR;B6=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=e&&t&&typeof t.get=="function"?t.get:null,r=e&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o=a&&i&&typeof i.get=="function"?i.get:null,l=a&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,d=u?WeakMap.prototype.has:null,f=typeof WeakSet=="function"&&WeakSet.prototype,g=f?WeakSet.prototype.has:null,y=typeof WeakRef=="function"&&WeakRef.prototype,h=y?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,E=Object.prototype.toString,T=Function.prototype.toString,C=String.prototype.match,k=String.prototype.slice,_=String.prototype.replace,A=String.prototype.toUpperCase,P=String.prototype.toLowerCase,N=RegExp.prototype.test,I=Array.prototype.concat,L=Array.prototype.join,j=Array.prototype.slice,z=Math.floor,Q=typeof BigInt=="function"?BigInt.prototype.valueOf:null,le=Object.getOwnPropertySymbols,re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ge=typeof Symbol=="function"&&typeof Symbol.iterator=="object",me=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ge||!0)?Symbol.toStringTag:null,W=Object.prototype.propertyIsEnumerable,G=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(be){return be.__proto__}:null);function q(be,Ee){if(be===1/0||be===-1/0||be!==be||be&&be>-1e3&&be<1e3||N.call(/e/,Ee))return Ee;var gt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof be=="number"){var Lt=be<0?-z(-be):z(be);if(Lt!==be){var _t=String(Lt),Ut=k.call(Ee,_t.length+1);return _.call(_t,gt,"$&_")+"."+_.call(_.call(Ut,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(Ee,gt,"$&_")}var ce=Rme,H=ce.custom,Y=at(H)?H:null,ie={__proto__:null,double:'"',single:"'"},J={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};YR=function be(Ee,gt,Lt,_t){var Ut=gt||{};if(xt(Ut,"quoteStyle")&&!xt(ie,Ut.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xt(Ut,"maxStringLength")&&(typeof Ut.maxStringLength=="number"?Ut.maxStringLength<0&&Ut.maxStringLength!==1/0:Ut.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _n=xt(Ut,"customInspect")?Ut.customInspect:!0;if(typeof _n!="boolean"&&_n!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xt(Ut,"indent")&&Ut.indent!==null&&Ut.indent!==" "&&!(parseInt(Ut.indent,10)===Ut.indent&&Ut.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(xt(Ut,"numericSeparator")&&typeof Ut.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var gn=Ut.numericSeparator;if(typeof Ee>"u")return"undefined";if(Ee===null)return"null";if(typeof Ee=="boolean")return Ee?"true":"false";if(typeof Ee=="string")return U(Ee,Ut);if(typeof Ee=="number"){if(Ee===0)return 1/0/Ee>0?"0":"-0";var ln=String(Ee);return gn?q(Ee,ln):ln}if(typeof Ee=="bigint"){var Bn=String(Ee)+"n";return gn?q(Ee,Bn):Bn}var sa=typeof Ut.depth>"u"?5:Ut.depth;if(typeof Lt>"u"&&(Lt=0),Lt>=sa&&sa>0&&typeof Ee=="object")return ke(Ee)?"[Array]":"[Object]";var Qa=We(Ut,Lt);if(typeof _t>"u")_t=[];else if(qt(_t,Ee)>=0)return"[Circular]";function ma(yn,an,Dn){if(an&&(_t=j.call(_t),_t.push(an)),Dn){var En={depth:Ut.depth};return xt(Ut,"quoteStyle")&&(En.quoteStyle=Ut.quoteStyle),be(yn,En,Lt+1,_t)}return be(yn,Ut,Lt+1,_t)}if(typeof Ee=="function"&&!xe(Ee)){var vn=cn(Ee),_a=Mt(Ee,ma);return"[Function"+(vn?": "+vn:" (anonymous)")+"]"+(_a.length>0?" { "+L.call(_a,", ")+" }":"")}if(at(Ee)){var Wo=ge?_.call(String(Ee),/^(Symbol\(.*\))_[^)]*$/,"$1"):re.call(Ee);return typeof Ee=="object"&&!ge?F(Wo):Wo}if(Nt(Ee)){for(var Oa="<"+P.call(String(Ee.nodeName)),Ra=Ee.attributes||[],zo=0;zo",Oa}if(ke(Ee)){if(Ee.length===0)return"[]";var we=Mt(Ee,ma);return Qa&&!Fe(we)?"["+Tt(we,Qa)+"]":"[ "+L.call(we,", ")+" ]"}if(Ie(Ee)){var ve=Mt(Ee,ma);return!("cause"in Error.prototype)&&"cause"in Ee&&!W.call(Ee,"cause")?"{ ["+String(Ee)+"] "+L.call(I.call("[cause]: "+ma(Ee.cause),ve),", ")+" }":ve.length===0?"["+String(Ee)+"]":"{ ["+String(Ee)+"] "+L.call(ve,", ")+" }"}if(typeof Ee=="object"&&_n){if(Y&&typeof Ee[Y]=="function"&&ce)return ce(Ee,{depth:sa-Lt});if(_n!=="symbol"&&typeof Ee.inspect=="function")return Ee.inspect()}if(Wt(Ee)){var $e=[];return r&&r.call(Ee,function(yn,an){$e.push(ma(an,Ee,!0)+" => "+ma(yn,Ee))}),Te("Map",n.call(Ee),$e,Qa)}if(ft(Ee)){var ye=[];return l&&l.call(Ee,function(yn){ye.push(ma(yn,Ee))}),Te("Set",o.call(Ee),ye,Qa)}if(Oe(Ee))return ae("WeakMap");if(ut(Ee))return ae("WeakSet");if(dt(Ee))return ae("WeakRef");if(tt(Ee))return F(ma(Number(Ee)));if(Et(Ee))return F(ma(Q.call(Ee)));if(Ge(Ee))return F(v.call(Ee));if(qe(Ee))return F(ma(String(Ee)));if(typeof window<"u"&&Ee===window)return"{ [object Window] }";if(typeof globalThis<"u"&&Ee===globalThis||typeof _l<"u"&&Ee===_l)return"{ [object globalThis] }";if(!fe(Ee)&&!xe(Ee)){var Se=Mt(Ee,ma),ne=G?G(Ee)===Object.prototype:Ee instanceof Object||Ee.constructor===Object,Me=Ee instanceof Object?"":"null prototype",Qe=!ne&&me&&Object(Ee)===Ee&&me in Ee?k.call(Rt(Ee),8,-1):Me?"Object":"",ot=ne||typeof Ee.constructor!="function"?"":Ee.constructor.name?Ee.constructor.name+" ":"",Bt=ot+(Qe||Me?"["+L.call(I.call([],Qe||[],Me||[]),": ")+"] ":"");return Se.length===0?Bt+"{}":Qa?Bt+"{"+Tt(Se,Qa)+"}":Bt+"{ "+L.call(Se,", ")+" }"}return String(Ee)};function ee(be,Ee,gt){var Lt=gt.quoteStyle||Ee,_t=ie[Lt];return _t+be+_t}function Z(be){return _.call(String(be),/"/g,""")}function ue(be){return!me||!(typeof be=="object"&&(me in be||typeof be[me]<"u"))}function ke(be){return Rt(be)==="[object Array]"&&ue(be)}function fe(be){return Rt(be)==="[object Date]"&&ue(be)}function xe(be){return Rt(be)==="[object RegExp]"&&ue(be)}function Ie(be){return Rt(be)==="[object Error]"&&ue(be)}function qe(be){return Rt(be)==="[object String]"&&ue(be)}function tt(be){return Rt(be)==="[object Number]"&&ue(be)}function Ge(be){return Rt(be)==="[object Boolean]"&&ue(be)}function at(be){if(ge)return be&&typeof be=="object"&&be instanceof Symbol;if(typeof be=="symbol")return!0;if(!be||typeof be!="object"||!re)return!1;try{return re.call(be),!0}catch{}return!1}function Et(be){if(!be||typeof be!="object"||!Q)return!1;try{return Q.call(be),!0}catch{}return!1}var kt=Object.prototype.hasOwnProperty||function(be){return be in this};function xt(be,Ee){return kt.call(be,Ee)}function Rt(be){return E.call(be)}function cn(be){if(be.name)return be.name;var Ee=C.call(T.call(be),/^function\s*([\w$]+)/);return Ee?Ee[1]:null}function qt(be,Ee){if(be.indexOf)return be.indexOf(Ee);for(var gt=0,Lt=be.length;gtEe.maxStringLength){var gt=be.length-Ee.maxStringLength,Lt="... "+gt+" more character"+(gt>1?"s":"");return U(k.call(be,0,Ee.maxStringLength),Ee)+Lt}var _t=J[Ee.quoteStyle||"single"];_t.lastIndex=0;var Ut=_.call(_.call(be,_t,"\\$1"),/[\x00-\x1f]/g,D);return ee(Ut,"single",Ee)}function D(be){var Ee=be.charCodeAt(0),gt={8:"b",9:"t",10:"n",12:"f",13:"r"}[Ee];return gt?"\\"+gt:"\\x"+(Ee<16?"0":"")+A.call(Ee.toString(16))}function F(be){return"Object("+be+")"}function ae(be){return be+" { ? }"}function Te(be,Ee,gt,Lt){var _t=Lt?Tt(gt,Lt):L.call(gt,", ");return be+" ("+Ee+") {"+_t+"}"}function Fe(be){for(var Ee=0;Ee=0)return!1;return!0}function We(be,Ee){var gt;if(be.indent===" ")gt=" ";else if(typeof be.indent=="number"&&be.indent>0)gt=L.call(Array(be.indent+1)," ");else return null;return{base:gt,prev:L.call(Array(Ee+1),gt)}}function Tt(be,Ee){if(be.length===0)return"";var gt=` `+Ee.prev+Ee.base;return gt+L.call(be,","+gt)+` -`+Ee.prev}function Mt(be,Ee){var gt=ke(be),Lt=[];if(gt){Lt.length=be.length;for(var _t=0;_t"u"||!I?e:I(Uint8Array),ge={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":N&&I?I([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":le,"%AsyncGenerator%":le,"%AsyncGeneratorFunction%":le,"%AsyncIteratorPrototype%":le,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":le,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N&&I?I(I([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!N||!I?e:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":k,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":a,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!N||!I?e:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N&&I?I(""[Symbol.iterator]()):e,"%Symbol%":N?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":P,"%TypedArray%":re,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":Q,"%Function.prototype.apply%":z,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":L,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":y,"%Math.pow%":h,"%Math.round%":v,"%Math.sign%":E,"%Reflect.getPrototypeOf%":j};if(I)try{null.error}catch(xe){var me=I(I(xe));ge["%Error.prototype%"]=me}var W=function xe(Ie){var qe;if(Ie==="%AsyncFunction%")qe=C("async function () {}");else if(Ie==="%GeneratorFunction%")qe=C("function* () {}");else if(Ie==="%AsyncGeneratorFunction%")qe=C("async function* () {}");else if(Ie==="%AsyncGenerator%"){var tt=xe("%AsyncGeneratorFunction%");tt&&(qe=tt.prototype)}else if(Ie==="%AsyncIteratorPrototype%"){var Ge=xe("%AsyncGenerator%");Ge&&I&&(qe=I(Ge.prototype))}return ge[Ie]=qe,qe},G={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},q=o_(),ce=Hme(),H=q.call(Q,Array.prototype.concat),Y=q.call(z,Array.prototype.splice),ie=q.call(Q,String.prototype.replace),J=q.call(Q,String.prototype.slice),ee=q.call(Q,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ue=/\\(\\)?/g,ke=function(Ie){var qe=J(Ie,0,1),tt=J(Ie,-1);if(qe==="%"&&tt!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(tt==="%"&&qe!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var Ge=[];return ie(Ie,Z,function(at,Et,kt,xt){Ge[Ge.length]=kt?ie(xt,ue,"$1"):Et||at}),Ge},fe=function(Ie,qe){var tt=Ie,Ge;if(ce(G,tt)&&(Ge=G[tt],tt="%"+Ge[0]+"%"),ce(ge,tt)){var at=ge[tt];if(at===le&&(at=W(tt)),typeof at>"u"&&!qe)throw new l("intrinsic "+Ie+" exists, but is not available. Please file an issue!");return{alias:Ge,name:tt,value:at}}throw new o("intrinsic "+Ie+" does not exist!")};return yP=function(Ie,qe){if(typeof Ie!="string"||Ie.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof qe!="boolean")throw new l('"allowMissing" argument must be a boolean');if(ee(/^%?[^%]*%?$/,Ie)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var tt=ke(Ie),Ge=tt.length>0?tt[0]:"",at=fe("%"+Ge+"%",qe),Et=at.name,kt=at.value,xt=!1,Rt=at.alias;Rt&&(Ge=Rt[0],Y(tt,H([0,1],Rt)));for(var cn=1,qt=!0;cn=tt.length){var ft=k(kt,Wt);qt=!!ft,qt&&"get"in ft&&!("originalValue"in ft.get)?kt=ft.get:kt=kt[Wt]}else qt=ce(kt,Wt),kt=kt[Wt];qt&&!xt&&(ge[Et]=kt)}}return kt},yP}var bP,uB;function JQ(){if(uB)return bP;uB=1;var e=uF(),t=QQ(),n=t([e("%String.prototype.indexOf%")]);return bP=function(a,i){var o=e(a,!!i);return typeof o=="function"&&n(a,".prototype.")>-1?t([o]):o},bP}var wP,cB;function ZQ(){if(cB)return wP;cB=1;var e=uF(),t=JQ(),n=i_(),r=h0(),a=e("%Map%",!0),i=t("Map.prototype.get",!0),o=t("Map.prototype.set",!0),l=t("Map.prototype.has",!0),u=t("Map.prototype.delete",!0),d=t("Map.prototype.size",!0);return wP=!!a&&function(){var g,y={assert:function(h){if(!y.has(h))throw new r("Side channel does not contain "+n(h))},delete:function(h){if(g){var v=u(g,h);return d(g)===0&&(g=void 0),v}return!1},get:function(h){if(g)return i(g,h)},has:function(h){return g?l(g,h):!1},set:function(h,v){g||(g=new a),o(g,h,v)}};return y},wP}var SP,dB;function Vme(){if(dB)return SP;dB=1;var e=uF(),t=JQ(),n=i_(),r=ZQ(),a=h0(),i=e("%WeakMap%",!0),o=t("WeakMap.prototype.get",!0),l=t("WeakMap.prototype.set",!0),u=t("WeakMap.prototype.has",!0),d=t("WeakMap.prototype.delete",!0);return SP=i?function(){var g,y,h={assert:function(v){if(!h.has(v))throw new a("Side channel does not contain "+n(v))},delete:function(v){if(i&&v&&(typeof v=="object"||typeof v=="function")){if(g)return d(g,v)}else if(r&&y)return y.delete(v);return!1},get:function(v){return i&&v&&(typeof v=="object"||typeof v=="function")&&g?o(g,v):y&&y.get(v)},has:function(v){return i&&v&&(typeof v=="object"||typeof v=="function")&&g?u(g,v):!!y&&y.has(v)},set:function(v,E){i&&v&&(typeof v=="object"||typeof v=="function")?(g||(g=new i),l(g,v,E)):r&&(y||(y=r()),y.set(v,E))}};return h}:r,SP}var EP,fB;function Gme(){if(fB)return EP;fB=1;var e=h0(),t=i_(),n=Sme(),r=ZQ(),a=Vme(),i=a||r||n;return EP=function(){var l,u={assert:function(d){if(!u.has(d))throw new e("Side channel does not contain "+t(d))},delete:function(d){return!!l&&l.delete(d)},get:function(d){return l&&l.get(d)},has:function(d){return!!l&&l.has(d)},set:function(d,f){l||(l=i()),l.set(d,f)}};return u},EP}var TP,pB;function cF(){if(pB)return TP;pB=1;var e=String.prototype.replace,t=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return TP={default:n.RFC3986,formatters:{RFC1738:function(r){return e.call(r,t,"+")},RFC3986:function(r){return String(r)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},TP}var CP,hB;function eJ(){if(hB)return CP;hB=1;var e=cF(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r=(function(){for(var T=[],C=0;C<256;++C)T.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return T})(),a=function(C){for(;C.length>1;){var k=C.pop(),_=k.obj[k.prop];if(n(_)){for(var A=[],P=0;P<_.length;++P)typeof _[P]<"u"&&A.push(_[P]);k.obj[k.prop]=A}}},i=function(C,k){for(var _=k&&k.plainObjects?{__proto__:null}:{},A=0;A=d?N.slice(L,L+d):N,z=[],Q=0;Q=48&&le<=57||le>=65&&le<=90||le>=97&&le<=122||P===e.RFC1738&&(le===40||le===41)){z[z.length]=j.charAt(Q);continue}if(le<128){z[z.length]=r[le];continue}if(le<2048){z[z.length]=r[192|le>>6]+r[128|le&63];continue}if(le<55296||le>=57344){z[z.length]=r[224|le>>12]+r[128|le>>6&63]+r[128|le&63];continue}Q+=1,le=65536+((le&1023)<<10|j.charCodeAt(Q)&1023),z[z.length]=r[240|le>>18]+r[128|le>>12&63]+r[128|le>>6&63]+r[128|le&63]}I+=z.join("")}return I},g=function(C){for(var k=[{obj:{o:C},prop:"o"}],_=[],A=0;A"u"&&(H=0)}if(typeof j=="function"?q=j(C,q):q instanceof Date?q=le(q):k==="comma"&&i(q)&&(q=t.maybeMap(q,function(Et){return Et instanceof Date?le(Et):Et})),q===null){if(P)return L&&!me?L(C,f.encoder,W,"key",re):C;q=""}if(g(q)||t.isBuffer(q)){if(L){var J=me?C:L(C,f.encoder,W,"key",re);return[ge(J)+"="+ge(L(q,f.encoder,W,"value",re))]}return[ge(C)+"="+ge(String(q))]}var ee=[];if(typeof q>"u")return ee;var Z;if(k==="comma"&&i(q))me&&L&&(q=t.maybeMap(q,L)),Z=[{value:q.length>0?q.join(",")||null:void 0}];else if(i(j))Z=j;else{var ue=Object.keys(q);Z=z?ue.sort(z):ue}var ke=I?String(C).replace(/\./g,"%2E"):String(C),fe=_&&i(q)&&q.length===1?ke+"[]":ke;if(A&&i(q)&&q.length===0)return fe+"[]";for(var xe=0;xe"u"?T.encodeDotInKeys===!0?!0:f.allowDots:!!T.allowDots;return{addQueryPrefix:typeof T.addQueryPrefix=="boolean"?T.addQueryPrefix:f.addQueryPrefix,allowDots:N,allowEmptyArrays:typeof T.allowEmptyArrays=="boolean"?!!T.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:P,charset:C,charsetSentinel:typeof T.charsetSentinel=="boolean"?T.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!T.commaRoundTrip,delimiter:typeof T.delimiter>"u"?f.delimiter:T.delimiter,encode:typeof T.encode=="boolean"?T.encode:f.encode,encodeDotInKeys:typeof T.encodeDotInKeys=="boolean"?T.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof T.encoder=="function"?T.encoder:f.encoder,encodeValuesOnly:typeof T.encodeValuesOnly=="boolean"?T.encodeValuesOnly:f.encodeValuesOnly,filter:A,format:k,formatter:_,serializeDate:typeof T.serializeDate=="function"?T.serializeDate:f.serializeDate,skipNulls:typeof T.skipNulls=="boolean"?T.skipNulls:f.skipNulls,sort:typeof T.sort=="function"?T.sort:null,strictNullHandling:typeof T.strictNullHandling=="boolean"?T.strictNullHandling:f.strictNullHandling}};return kP=function(E,T){var C=E,k=v(T),_,A;typeof k.filter=="function"?(A=k.filter,C=A("",C)):i(k.filter)&&(A=k.filter,_=A);var P=[];if(typeof C!="object"||C===null)return"";var N=a[k.arrayFormat],I=N==="comma"&&k.commaRoundTrip;_||(_=Object.keys(C)),k.sort&&_.sort(k.sort);for(var L=e(),j=0;j<_.length;++j){var z=_[j],Q=C[z];k.skipNulls&&Q===null||l(P,h(Q,z,N,I,k.allowEmptyArrays,k.strictNullHandling,k.skipNulls,k.encodeDotInKeys,k.encode?k.encoder:null,k.filter,k.sort,k.allowDots,k.serializeDate,k.format,k.formatter,k.encodeValuesOnly,k.charset,L))}var le=P.join(k.delimiter),re=k.addQueryPrefix===!0?"?":"";return k.charsetSentinel&&(k.charset==="iso-8859-1"?re+="utf8=%26%2310003%3B&":re+="utf8=%E2%9C%93&"),le.length>0?re+le:""},kP}var xP,gB;function Kme(){if(gB)return xP;gB=1;var e=eJ(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(y){return y.replace(/&#(\d+);/g,function(h,v){return String.fromCharCode(parseInt(v,10))})},i=function(y,h,v){if(y&&typeof y=="string"&&h.comma&&y.indexOf(",")>-1)return y.split(",");if(h.throwOnLimitExceeded&&v>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return y},o="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",u=function(h,v){var E={__proto__:null},T=v.ignoreQueryPrefix?h.replace(/^\?/,""):h;T=T.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var C=v.parameterLimit===1/0?void 0:v.parameterLimit,k=T.split(v.delimiter,v.throwOnLimitExceeded?C+1:C);if(v.throwOnLimitExceeded&&k.length>C)throw new RangeError("Parameter limit exceeded. Only "+C+" parameter"+(C===1?"":"s")+" allowed.");var _=-1,A,P=v.charset;if(v.charsetSentinel)for(A=0;A-1&&(z=n(z)?[z]:z);var Q=t.call(E,j);Q&&v.duplicates==="combine"?E[j]=e.combine(E[j],z):(!Q||v.duplicates==="last")&&(E[j]=z)}return E},d=function(y,h,v,E){var T=0;if(y.length>0&&y[y.length-1]==="[]"){var C=y.slice(0,-1).join("");T=Array.isArray(h)&&h[C]?h[C].length:0}for(var k=E?h:i(h,v,T),_=y.length-1;_>=0;--_){var A,P=y[_];if(P==="[]"&&v.parseArrays)A=v.allowEmptyArrays&&(k===""||v.strictNullHandling&&k===null)?[]:e.combine([],k);else{A=v.plainObjects?{__proto__:null}:{};var N=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,I=v.decodeDotInKeys?N.replace(/%2E/g,"."):N,L=parseInt(I,10);!v.parseArrays&&I===""?A={0:k}:!isNaN(L)&&P!==I&&String(L)===I&&L>=0&&v.parseArrays&&L<=v.arrayLimit?(A=[],A[L]=k):I!=="__proto__"&&(A[I]=k)}k=A}return k},f=function(h,v,E,T){if(h){var C=E.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,k=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,A=E.depth>0&&k.exec(C),P=A?C.slice(0,A.index):C,N=[];if(P){if(!E.plainObjects&&t.call(Object.prototype,P)&&!E.allowPrototypes)return;N.push(P)}for(var I=0;E.depth>0&&(A=_.exec(C))!==null&&I"u"?r.charset:h.charset,E=typeof h.duplicates>"u"?r.duplicates:h.duplicates;if(E!=="combine"&&E!=="first"&&E!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var T=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:r.allowDots:!!h.allowDots;return{allowDots:T,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:r.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:r.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:r.arrayLimit,charset:v,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:r.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:r.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:r.decoder,delimiter:typeof h.delimiter=="string"||e.isRegExp(h.delimiter)?h.delimiter:r.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:r.depth,duplicates:E,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:r.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:r.plainObjects,strictDepth:typeof h.strictDepth=="boolean"?!!h.strictDepth:r.strictDepth,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof h.throwOnLimitExceeded=="boolean"?h.throwOnLimitExceeded:!1}};return xP=function(y,h){var v=g(h);if(y===""||y===null||typeof y>"u")return v.plainObjects?{__proto__:null}:{};for(var E=typeof y=="string"?u(y,v):y,T=v.plainObjects?{__proto__:null}:{},C=Object.keys(E),k=0;kd("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.AppMenuEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}tJ.UKEY="*abac.AppMenuEntity";function CE({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/urw/query".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.QueryUserRoleWorkspacesActionResDto",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}CE.UKEY="*abac.QueryUserRoleWorkspacesActionResDto";function nJ(e){var u,d,f,g,y,h;const t=js(),{selectedUrw:n}=R.useContext(nt),{query:r}=CE({query:{}}),{query:a}=tJ({queryClient:t,queryOptions:{refetchOnWindowFocus:!1,enabled:!r.isError&&r.isSuccess},query:{itemsPerPage:9999}}),{locale:i}=sr();R.useEffect(()=>{a.refetch()},[i]);let o=[];const l=v=>{var E,T;return v?lhe(n,((T=(E=r.data)==null?void 0:E.data)==null?void 0:T.items)||[],v):!0};return(d=(u=a.data)==null?void 0:u.data)!=null&&d.items&&((g=(f=a.data)==null?void 0:f.data)!=null&&g.items.length)&&(o=(h=(y=a.data)==null?void 0:y.data)==null?void 0:h.items.map(v=>iJ(v,l)).filter(Boolean)),o}function Qme({onClick:e}){const{isAuthenticated:t,signout:n}=R.useContext(nt),r=xr(),a=At(),i=js(),o=()=>{e(),n(),i.setQueriesData("*fireback.UserRoleWorkspace",[]),kr.NAVIGATE_ON_SIGNOUT&&r.push(kr.NAVIGATE_ON_SIGNOUT,kr.NAVIGATE_ON_SIGNOUT)},l=()=>{confirm("Are you sure to leave the app?")&&o()};return t?w.jsx("div",{className:"sidebar-menu-particle mt-5",children:w.jsx("ul",{className:"nav nav-pills flex-column mb-auto",children:w.jsx("li",{className:"nav-item",children:w.jsx("a",{onClick:l,className:"nav-link text-white",children:w.jsxs("span",{children:[w.jsx("img",{className:"menu-icon",src:$s(ku.turnoff)}),w.jsx("span",{className:"nav-link-text",children:a.currentUser.signout})]})})})})}):w.jsxs(kl,{className:"user-signin-section",href:"/signin",onClick:e,children:[w.jsx("img",{src:kr.PUBLIC_URL+"/common/user.svg"}),a.currentUser.signin]})}function yB({item:e}){return w.jsxs("span",{children:[e.icon&&w.jsx("img",{className:"menu-icon",src:$s(e.icon)}),e.color&&!e.icon?w.jsx("span",{className:"tag-circle",style:{backgroundColor:e.color}}):null,w.jsx("span",{className:"nav-link-text",children:e.label})]})}function fF({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/user-workspaces".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.UserWorkspaceEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}fF.UKEY="*abac.UserWorkspaceEntity";function Jme(e,t){var a;let n=!1;const r=(a=e.children)==null?void 0:a.map(i=>{let o=i.activeMatcher?i.activeMatcher.test(t.asPath):void 0;i.forceActive&&(o=!0);let l=i.displayFn?i.displayFn({location:"here",asPath:t.asPath,selectedUrw:t.urw,userRoleWorkspaces:t.urws}):!0;return l&&(n=!0),{...i,isActive:o||!1,isVisible:l}});return n===!1&&!e.href?null:{name:e.label,href:e.href,children:r}}function bB({menu:e,onClick:t}){var l,u,d;const{asPath:n}=sr(),r=js(),{selectedUrw:a}=R.useContext(nt),{query:i}=fF({queryClient:r,query:{},queryOptions:{refetchOnWindowFocus:!1,cacheTime:0}}),o=Jme(e,{asPath:n,urw:a,urws:((u=(l=i.data)==null?void 0:l.data)==null?void 0:u.items)||[]});return o?w.jsx("div",{className:"sidebar-menu-particle",onClick:t,children:((d=e.children)==null?void 0:d.length)>0?w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none",children:w.jsx("span",{className:"category",children:e.label})}),w.jsx(rJ,{items:o.children})]}):w.jsx(w.Fragment,{children:w.jsx(aJ,{item:e})})}):null}function rJ({items:e}){return w.jsx("ul",{className:"nav nav-pills flex-column mb-auto",children:e.map(t=>w.jsx(aJ,{item:t},t.label+"_"+t.href))})}function aJ({item:e}){return w.jsxs("li",{className:ia("nav-item"),children:[e.href&&!e.onClick?w.jsx(Ub,{replace:!0,href:e.href,className:"nav-link","aria-current":"page",forceActive:e.isActive,scroll:null,inActiveClassName:"text-white",activeClassName:"active",children:w.jsx(yB,{item:e})}):w.jsx("a",{className:ia("nav-link",e.isActive&&"active"),onClick:e.onClick,children:w.jsx(yB,{item:e})}),e.children&&w.jsx(rJ,{items:e.children})]},e.label)}function Zme(){var l,u;const e=At(),{selectedUrw:t,selectUrw:n}=R.useContext(nt),{query:r}=CE({queryOptions:{cacheTime:50},query:{}}),a=((u=(l=r.data)==null?void 0:l.data)==null?void 0:u.items)||[],i=a.map(d=>d.uniqueId).join("-")+"_"+(t==null?void 0:t.roleId)+"_"+(t==null?void 0:t.workspaceId);return{menus:R.useMemo(()=>{const d=[];return a.forEach(f=>{f.roles.forEach(g=>{d.push({key:`${g.uniqueId}_${f.uniqueId}`,label:`${f.name} (${g.name})`,children:[],forceActive:(t==null?void 0:t.roleId)===g.uniqueId&&(t==null?void 0:t.workspaceId)===f.uniqueId,color:f.uniqueId==="root"?G$.Orange:G$.Green,onClick:()=>{n({roleId:g.uniqueId,workspaceId:f.uniqueId})}})})}),[{label:e.wokspaces.sidetitle,children:d.sort((f,g)=>f.key!0){if(!t(e.capabilityId))return null;const n=(e.children||[]).map(r=>iJ(r,t)).filter(Boolean);return{label:e.label||"",children:n,displayFn:ege(),icon:e.icon,href:e.href,activeMatcher:e.activeMatcher?new RegExp(e.activeMatcher):void 0}}function ege(e){return()=>!0}function tge({miniSize:e,onClose:t,sidebarItemSelectedExtra:n}){var g;const{sidebarVisible:r,toggleSidebar:a,sidebarItemSelected:i}=Lv(),o=nJ(),{reset:l}=R.useContext(a_),u=()=>{l(),a()};if(!o)return null;let d=[];Array.isArray(o)?d=[...o]:(g=o.children)!=null&&g.length&&d.push(o);const{menus:f}=Zme();return d.push(f[0]),w.jsxs("div",{"data-wails-drag":!0,className:ia(e?"sidebar-extra-small":"","sidebar",r?"open":"","scrollable-element",ih().isMobileView?"has-bottom-tab":void 0),children:[w.jsx("button",{className:"sidebar-close",onClick:()=>t?t():u(),children:w.jsx("img",{src:$s(ku.cancel)})}),d.map(y=>w.jsx(bB,{onClick:()=>{i(),n==null||n()},menu:y},y.label)),kr.GITHUB_DEMO==="true"&&w.jsx(bB,{onClick:()=>{i(),n==null||n()},menu:{label:"Demo",children:[{label:"Form select",icon:"/ios-theme/icons/settings.svg",children:[],href:"/demo/form-select"},{label:"Form Date/Time",icon:"/ios-theme/icons/settings.svg",children:[],href:"/demo/form-date"},{label:"Overlays & Modal",icon:"/ios-theme/icons/settings.svg",children:[],href:"/demo/modals"}]}}),w.jsx(Qme,{onClick:()=>{i(),n==null||n()}})]})}const oJ=ze.memo(tge);function nge({menu:e,isSecondary:t,routerId:n}){const{toggleSidebar:r,closeCurrentRouter:a}=Lv(),{openDrawer:i}=sF();return d0(Ir.SidebarToggle,()=>{r()}),w.jsx("nav",{className:"navbar navbar-expand-lg navbar-light",style:{"--wails-draggable":"drag"},children:w.jsxs("div",{className:"container-fluid",children:[w.jsx("div",{className:"page-navigator",children:n==="url-router"?w.jsx("button",{className:"navbar-menu-icon",onClick:()=>ih().isMobileView?i(({close:o})=>w.jsx(oJ,{sidebarItemSelectedExtra:o,onClose:o,miniSize:!1}),{speed:180,direction:"left"}):r(),children:w.jsx("img",{src:$s(ku.menu)})}):w.jsx("button",{className:"navbar-menu-icon",onClick:()=>a(n),children:w.jsx("img",{src:$s(ku.cancel)})})}),w.jsx(rL,{filter:({id:o})=>o==="navigation"}),w.jsx("div",{className:"page-navigator"}),w.jsx("span",{className:"navbar-brand",children:w.jsx(Nhe,{})}),V$()==="web"&&w.jsx("button",{className:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation",children:w.jsx("span",{className:"navbar-toggler-icon"})}),w.jsxs("div",{className:V$()==="web"?"collapse navbar-collapse":"",id:"navbarSupportedContent",children:[w.jsx("ul",{className:"navbar-nav ms-auto mb-2 mb-lg-0",children:((e==null?void 0:e.children)||[]).map(o=>{var l;return w.jsx("li",{className:ia("nav-item",((l=o.children)==null?void 0:l.length)&&"dropdown"),children:o.children.length?w.jsxs(w.Fragment,{children:[w.jsx(Ub,{className:"nav-link dropdown-toggle",href:o.href,id:"navbarDropdown",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false",children:w.jsx("span",{children:o.label})}),(o!=null&&o.children,w.jsx("ul",{className:"dropdown-menu","aria-labelledby":"navbarDropdown",children:((o==null?void 0:o.children)||[]).map(u=>{var d;return w.jsx("li",{className:ia("nav-item",((d=u.children)==null?void 0:d.length)&&"dropdown"),children:w.jsx(Ub,{className:"dropdown-item",href:u.href,children:w.jsx("span",{children:u.label})})},`${u.label}_${u.href}`)})}))]}):w.jsx(Ub,{className:"nav-link active","aria-current":"page",href:o.href,children:w.jsx("span",{children:o.label})})},`${o.label}_${o.href}`)})}),w.jsx("span",{className:"general-action-menu desktop-view",children:w.jsx(rL,{filter:({id:o})=>o!=="navigation"})}),w.jsx(dme,{})]})]})})}const rge=ze.memo(nge);function age({result:e,onComplete:t}){const n=At(),r=Ea.groupBy(e,"group"),a=Object.keys(r);return w.jsx("div",{className:"reactive-search-result",children:a.length===0?w.jsx(w.Fragment,{children:n.reactiveSearch.noResults}):w.jsx("ul",{children:a.map((i,o)=>w.jsxs("li",{children:[w.jsx("span",{className:"result-group-name",children:i}),w.jsx("ul",{children:r[i].map((l,u)=>w.jsx("li",{children:l.actionFn?w.jsxs(kl,{onClick:t,href:l.uiLocation,children:[l.icon&&w.jsx("img",{className:"result-icon",src:$s(l.icon)}),l.phrase]}):null},l.uniqueId))})]},o))})})}function ige({children:e}){return w.jsxs(w.Fragment,{children:[w.jsx(Ose,{}),e]})}const oge=({children:e,navbarMenu:t,sidebarMenu:n,routerId:r})=>{At();const{result:a,phrase:i,reset:o}=R.useContext(a_),{sidebarVisible:l,toggleSidebar:u}=Lv(),d=i.length>0;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{style:{display:"flex",width:"100%"},children:[w.jsx("div",{className:ia("sidebar-overlay",l?"open":""),onClick:f=>{u(),f.stopPropagation()}}),w.jsxs("div",{style:{width:"100%",flex:1},children:[w.jsx(rge,{routerId:r,menu:t}),w.jsxs("div",{className:"content-section",children:[d?w.jsx("div",{className:"content-container",children:w.jsx(age,{onComplete:()=>o(),result:a})}):null,w.jsx("div",{className:"content-container",style:{visibility:d?"hidden":void 0},children:w.jsx(ige,{children:e})})]})]}),w.jsx(the,{})]}),w.jsx("span",{className:"general-action-menu mobile-view",children:w.jsx(rL,{})})]})};function Kt(e){const{locale:t}=sr();return!t||t==="en"?e:e["$"+t]?e["$"+t]:e}const sge={capabilities:{nameHint:"Name",newCapability:"New capability",archiveTitle:"Capabilities",description:"Description",descriptionHint:"Description",editCapability:"Edit capability",name:"Name"}},kE={...sge},Fo=({children:e,newEntityHandler:t,exportPath:n,pageTitle:r})=>{hh(r);const a=xr(),{locale:i}=sr();return che({path:n||""}),ghe(t?()=>t({locale:i,router:a}):void 0,Ir.NewEntity),w.jsx(w.Fragment,{children:e})};var ax=function(e){return Array.prototype.slice.call(e)},lge=(function(){function e(){this.handlers=[]}return e.prototype.emit=function(t){this.handlers.forEach(function(n){return n(t)})},e.prototype.subscribe=function(t){this.handlers.push(t)},e.prototype.unsubscribe=function(t){this.handlers.splice(this.handlers.indexOf(t),1)},e})(),sJ=function(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=Object.prototype.hasOwnProperty,i=0;i"u"||!I?e:I(Uint8Array),ge={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":N&&I?I([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":le,"%AsyncGenerator%":le,"%AsyncGeneratorFunction%":le,"%AsyncIteratorPrototype%":le,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":le,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N&&I?I(I([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!N||!I?e:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":k,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":a,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!N||!I?e:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N&&I?I(""[Symbol.iterator]()):e,"%Symbol%":N?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":P,"%TypedArray%":re,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":Q,"%Function.prototype.apply%":z,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":L,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":y,"%Math.pow%":h,"%Math.round%":v,"%Math.sign%":E,"%Reflect.getPrototypeOf%":j};if(I)try{null.error}catch(xe){var me=I(I(xe));ge["%Error.prototype%"]=me}var W=function xe(Ie){var qe;if(Ie==="%AsyncFunction%")qe=C("async function () {}");else if(Ie==="%GeneratorFunction%")qe=C("function* () {}");else if(Ie==="%AsyncGeneratorFunction%")qe=C("async function* () {}");else if(Ie==="%AsyncGenerator%"){var tt=xe("%AsyncGeneratorFunction%");tt&&(qe=tt.prototype)}else if(Ie==="%AsyncIteratorPrototype%"){var Ge=xe("%AsyncGenerator%");Ge&&I&&(qe=I(Ge.prototype))}return ge[Ie]=qe,qe},G={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},q=v_(),ce=ege(),H=q.call(Q,Array.prototype.concat),Y=q.call(z,Array.prototype.splice),ie=q.call(Q,String.prototype.replace),J=q.call(Q,String.prototype.slice),ee=q.call(Q,RegExp.prototype.exec),Z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ue=/\\(\\)?/g,ke=function(Ie){var qe=J(Ie,0,1),tt=J(Ie,-1);if(qe==="%"&&tt!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(tt==="%"&&qe!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var Ge=[];return ie(Ie,Z,function(at,Et,kt,xt){Ge[Ge.length]=kt?ie(xt,ue,"$1"):Et||at}),Ge},fe=function(Ie,qe){var tt=Ie,Ge;if(ce(G,tt)&&(Ge=G[tt],tt="%"+Ge[0]+"%"),ce(ge,tt)){var at=ge[tt];if(at===le&&(at=W(tt)),typeof at>"u"&&!qe)throw new l("intrinsic "+Ie+" exists, but is not available. Please file an issue!");return{alias:Ge,name:tt,value:at}}throw new o("intrinsic "+Ie+" does not exist!")};return OP=function(Ie,qe){if(typeof Ie!="string"||Ie.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof qe!="boolean")throw new l('"allowMissing" argument must be a boolean');if(ee(/^%?[^%]*%?$/,Ie)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var tt=ke(Ie),Ge=tt.length>0?tt[0]:"",at=fe("%"+Ge+"%",qe),Et=at.name,kt=at.value,xt=!1,Rt=at.alias;Rt&&(Ge=Rt[0],Y(tt,H([0,1],Rt)));for(var cn=1,qt=!0;cn=tt.length){var ft=k(kt,Wt);qt=!!ft,qt&&"get"in ft&&!("originalValue"in ft.get)?kt=ft.get:kt=kt[Wt]}else qt=ce(kt,Wt),kt=kt[Wt];qt&&!xt&&(ge[Et]=kt)}}return kt},OP}var RP,EB;function dJ(){if(EB)return RP;EB=1;var e=SF(),t=cJ(),n=t([e("%String.prototype.indexOf%")]);return RP=function(a,i){var o=e(a,!!i);return typeof o=="function"&&n(a,".prototype.")>-1?t([o]):o},RP}var PP,TB;function fJ(){if(TB)return PP;TB=1;var e=SF(),t=dJ(),n=g_(),r=T0(),a=e("%Map%",!0),i=t("Map.prototype.get",!0),o=t("Map.prototype.set",!0),l=t("Map.prototype.has",!0),u=t("Map.prototype.delete",!0),d=t("Map.prototype.size",!0);return PP=!!a&&function(){var g,y={assert:function(h){if(!y.has(h))throw new r("Side channel does not contain "+n(h))},delete:function(h){if(g){var v=u(g,h);return d(g)===0&&(g=void 0),v}return!1},get:function(h){if(g)return i(g,h)},has:function(h){return g?l(g,h):!1},set:function(h,v){g||(g=new a),o(g,h,v)}};return y},PP}var AP,CB;function tge(){if(CB)return AP;CB=1;var e=SF(),t=dJ(),n=g_(),r=fJ(),a=T0(),i=e("%WeakMap%",!0),o=t("WeakMap.prototype.get",!0),l=t("WeakMap.prototype.set",!0),u=t("WeakMap.prototype.has",!0),d=t("WeakMap.prototype.delete",!0);return AP=i?function(){var g,y,h={assert:function(v){if(!h.has(v))throw new a("Side channel does not contain "+n(v))},delete:function(v){if(i&&v&&(typeof v=="object"||typeof v=="function")){if(g)return d(g,v)}else if(r&&y)return y.delete(v);return!1},get:function(v){return i&&v&&(typeof v=="object"||typeof v=="function")&&g?o(g,v):y&&y.get(v)},has:function(v){return i&&v&&(typeof v=="object"||typeof v=="function")&&g?u(g,v):!!y&&y.has(v)},set:function(v,E){i&&v&&(typeof v=="object"||typeof v=="function")?(g||(g=new i),l(g,v,E)):r&&(y||(y=r()),y.set(v,E))}};return h}:r,AP}var NP,kB;function nge(){if(kB)return NP;kB=1;var e=T0(),t=g_(),n=Pme(),r=fJ(),a=tge(),i=a||r||n;return NP=function(){var l,u={assert:function(d){if(!u.has(d))throw new e("Side channel does not contain "+t(d))},delete:function(d){return!!l&&l.delete(d)},get:function(d){return l&&l.get(d)},has:function(d){return!!l&&l.has(d)},set:function(d,f){l||(l=i()),l.set(d,f)}};return u},NP}var MP,xB;function EF(){if(xB)return MP;xB=1;var e=String.prototype.replace,t=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return MP={default:n.RFC3986,formatters:{RFC1738:function(r){return e.call(r,t,"+")},RFC3986:function(r){return String(r)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},MP}var IP,_B;function pJ(){if(_B)return IP;_B=1;var e=EF(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r=(function(){for(var T=[],C=0;C<256;++C)T.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return T})(),a=function(C){for(;C.length>1;){var k=C.pop(),_=k.obj[k.prop];if(n(_)){for(var A=[],P=0;P<_.length;++P)typeof _[P]<"u"&&A.push(_[P]);k.obj[k.prop]=A}}},i=function(C,k){for(var _=k&&k.plainObjects?{__proto__:null}:{},A=0;A=d?N.slice(L,L+d):N,z=[],Q=0;Q=48&&le<=57||le>=65&&le<=90||le>=97&&le<=122||P===e.RFC1738&&(le===40||le===41)){z[z.length]=j.charAt(Q);continue}if(le<128){z[z.length]=r[le];continue}if(le<2048){z[z.length]=r[192|le>>6]+r[128|le&63];continue}if(le<55296||le>=57344){z[z.length]=r[224|le>>12]+r[128|le>>6&63]+r[128|le&63];continue}Q+=1,le=65536+((le&1023)<<10|j.charCodeAt(Q)&1023),z[z.length]=r[240|le>>18]+r[128|le>>12&63]+r[128|le>>6&63]+r[128|le&63]}I+=z.join("")}return I},g=function(C){for(var k=[{obj:{o:C},prop:"o"}],_=[],A=0;A"u"&&(H=0)}if(typeof j=="function"?q=j(C,q):q instanceof Date?q=le(q):k==="comma"&&i(q)&&(q=t.maybeMap(q,function(Et){return Et instanceof Date?le(Et):Et})),q===null){if(P)return L&&!me?L(C,f.encoder,W,"key",re):C;q=""}if(g(q)||t.isBuffer(q)){if(L){var J=me?C:L(C,f.encoder,W,"key",re);return[ge(J)+"="+ge(L(q,f.encoder,W,"value",re))]}return[ge(C)+"="+ge(String(q))]}var ee=[];if(typeof q>"u")return ee;var Z;if(k==="comma"&&i(q))me&&L&&(q=t.maybeMap(q,L)),Z=[{value:q.length>0?q.join(",")||null:void 0}];else if(i(j))Z=j;else{var ue=Object.keys(q);Z=z?ue.sort(z):ue}var ke=I?String(C).replace(/\./g,"%2E"):String(C),fe=_&&i(q)&&q.length===1?ke+"[]":ke;if(A&&i(q)&&q.length===0)return fe+"[]";for(var xe=0;xe"u"?T.encodeDotInKeys===!0?!0:f.allowDots:!!T.allowDots;return{addQueryPrefix:typeof T.addQueryPrefix=="boolean"?T.addQueryPrefix:f.addQueryPrefix,allowDots:N,allowEmptyArrays:typeof T.allowEmptyArrays=="boolean"?!!T.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:P,charset:C,charsetSentinel:typeof T.charsetSentinel=="boolean"?T.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!T.commaRoundTrip,delimiter:typeof T.delimiter>"u"?f.delimiter:T.delimiter,encode:typeof T.encode=="boolean"?T.encode:f.encode,encodeDotInKeys:typeof T.encodeDotInKeys=="boolean"?T.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof T.encoder=="function"?T.encoder:f.encoder,encodeValuesOnly:typeof T.encodeValuesOnly=="boolean"?T.encodeValuesOnly:f.encodeValuesOnly,filter:A,format:k,formatter:_,serializeDate:typeof T.serializeDate=="function"?T.serializeDate:f.serializeDate,skipNulls:typeof T.skipNulls=="boolean"?T.skipNulls:f.skipNulls,sort:typeof T.sort=="function"?T.sort:null,strictNullHandling:typeof T.strictNullHandling=="boolean"?T.strictNullHandling:f.strictNullHandling}};return DP=function(E,T){var C=E,k=v(T),_,A;typeof k.filter=="function"?(A=k.filter,C=A("",C)):i(k.filter)&&(A=k.filter,_=A);var P=[];if(typeof C!="object"||C===null)return"";var N=a[k.arrayFormat],I=N==="comma"&&k.commaRoundTrip;_||(_=Object.keys(C)),k.sort&&_.sort(k.sort);for(var L=e(),j=0;j<_.length;++j){var z=_[j],Q=C[z];k.skipNulls&&Q===null||l(P,h(Q,z,N,I,k.allowEmptyArrays,k.strictNullHandling,k.skipNulls,k.encodeDotInKeys,k.encode?k.encoder:null,k.filter,k.sort,k.allowDots,k.serializeDate,k.format,k.formatter,k.encodeValuesOnly,k.charset,L))}var le=P.join(k.delimiter),re=k.addQueryPrefix===!0?"?":"";return k.charsetSentinel&&(k.charset==="iso-8859-1"?re+="utf8=%26%2310003%3B&":re+="utf8=%E2%9C%93&"),le.length>0?re+le:""},DP}var $P,RB;function age(){if(RB)return $P;RB=1;var e=pJ(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(y){return y.replace(/&#(\d+);/g,function(h,v){return String.fromCharCode(parseInt(v,10))})},i=function(y,h,v){if(y&&typeof y=="string"&&h.comma&&y.indexOf(",")>-1)return y.split(",");if(h.throwOnLimitExceeded&&v>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return y},o="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",u=function(h,v){var E={__proto__:null},T=v.ignoreQueryPrefix?h.replace(/^\?/,""):h;T=T.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var C=v.parameterLimit===1/0?void 0:v.parameterLimit,k=T.split(v.delimiter,v.throwOnLimitExceeded?C+1:C);if(v.throwOnLimitExceeded&&k.length>C)throw new RangeError("Parameter limit exceeded. Only "+C+" parameter"+(C===1?"":"s")+" allowed.");var _=-1,A,P=v.charset;if(v.charsetSentinel)for(A=0;A-1&&(z=n(z)?[z]:z);var Q=t.call(E,j);Q&&v.duplicates==="combine"?E[j]=e.combine(E[j],z):(!Q||v.duplicates==="last")&&(E[j]=z)}return E},d=function(y,h,v,E){var T=0;if(y.length>0&&y[y.length-1]==="[]"){var C=y.slice(0,-1).join("");T=Array.isArray(h)&&h[C]?h[C].length:0}for(var k=E?h:i(h,v,T),_=y.length-1;_>=0;--_){var A,P=y[_];if(P==="[]"&&v.parseArrays)A=v.allowEmptyArrays&&(k===""||v.strictNullHandling&&k===null)?[]:e.combine([],k);else{A=v.plainObjects?{__proto__:null}:{};var N=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,I=v.decodeDotInKeys?N.replace(/%2E/g,"."):N,L=parseInt(I,10);!v.parseArrays&&I===""?A={0:k}:!isNaN(L)&&P!==I&&String(L)===I&&L>=0&&v.parseArrays&&L<=v.arrayLimit?(A=[],A[L]=k):I!=="__proto__"&&(A[I]=k)}k=A}return k},f=function(h,v,E,T){if(h){var C=E.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,k=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,A=E.depth>0&&k.exec(C),P=A?C.slice(0,A.index):C,N=[];if(P){if(!E.plainObjects&&t.call(Object.prototype,P)&&!E.allowPrototypes)return;N.push(P)}for(var I=0;E.depth>0&&(A=_.exec(C))!==null&&I"u"?r.charset:h.charset,E=typeof h.duplicates>"u"?r.duplicates:h.duplicates;if(E!=="combine"&&E!=="first"&&E!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var T=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:r.allowDots:!!h.allowDots;return{allowDots:T,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:r.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:r.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:r.arrayLimit,charset:v,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:r.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:r.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:r.decoder,delimiter:typeof h.delimiter=="string"||e.isRegExp(h.delimiter)?h.delimiter:r.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:r.depth,duplicates:E,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:r.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:r.plainObjects,strictDepth:typeof h.strictDepth=="boolean"?!!h.strictDepth:r.strictDepth,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof h.throwOnLimitExceeded=="boolean"?h.throwOnLimitExceeded:!1}};return $P=function(y,h){var v=g(h);if(y===""||y===null||typeof y>"u")return v.plainObjects?{__proto__:null}:{};for(var E=typeof y=="string"?u(y,v):y,T=v.plainObjects?{__proto__:null}:{},C=Object.keys(E),k=0;kd("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.AppMenuEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}hJ.UKEY="*abac.AppMenuEntity";function DE({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/urw/query".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.QueryUserRoleWorkspacesActionResDto",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}DE.UKEY="*abac.QueryUserRoleWorkspacesActionResDto";function mJ(e){var u,d,f,g,y,h;const t=Bs(),{selectedUrw:n}=R.useContext(rt),{query:r}=DE({query:{}}),{query:a}=hJ({queryClient:t,queryOptions:{refetchOnWindowFocus:!1,enabled:!r.isError&&r.isSuccess},query:{itemsPerPage:9999}}),{locale:i}=sr();R.useEffect(()=>{a.refetch()},[i]);let o=[];const l=v=>{var E,T;return v?vhe(n,((T=(E=r.data)==null?void 0:E.data)==null?void 0:T.items)||[],v):!0};return(d=(u=a.data)==null?void 0:u.data)!=null&&d.items&&((g=(f=a.data)==null?void 0:f.data)!=null&&g.items.length)&&(o=(h=(y=a.data)==null?void 0:y.data)==null?void 0:h.items.map(v=>yJ(v,l)).filter(Boolean)),o}function oge({onClick:e}){const{isAuthenticated:t,signout:n}=R.useContext(rt),r=xr(),a=At(),i=Bs(),o=()=>{e(),n(),i.setQueriesData("*fireback.UserRoleWorkspace",[]),kr.NAVIGATE_ON_SIGNOUT&&r.push(kr.NAVIGATE_ON_SIGNOUT,kr.NAVIGATE_ON_SIGNOUT)},l=()=>{confirm("Are you sure to leave the app?")&&o()};return t?w.jsx("div",{className:"sidebar-menu-particle mt-5",children:w.jsx("ul",{className:"nav nav-pills flex-column mb-auto",children:w.jsx("li",{className:"nav-item",children:w.jsx("a",{onClick:l,className:"nav-link text-white",children:w.jsxs("span",{children:[w.jsx("img",{className:"menu-icon",src:Fs(xu.turnoff)}),w.jsx("span",{className:"nav-link-text",children:a.currentUser.signout})]})})})})}):w.jsxs(Pl,{className:"user-signin-section",href:"/signin",onClick:e,children:[w.jsx("img",{src:kr.PUBLIC_URL+"/common/user.svg"}),a.currentUser.signin]})}function AB({item:e}){return w.jsxs("span",{children:[e.icon&&w.jsx("img",{className:"menu-icon",src:Fs(e.icon)}),e.color&&!e.icon?w.jsx("span",{className:"tag-circle",style:{backgroundColor:e.color}}):null,w.jsx("span",{className:"nav-link-text",children:e.label})]})}class ia extends wn{constructor(...t){super(...t),this.children=void 0,this.firstName=void 0,this.lastName=void 0,this.photo=void 0,this.gender=void 0,this.title=void 0,this.birthDate=void 0,this.avatar=void 0,this.lastIpAddress=void 0,this.primaryAddress=void 0}}ia.Navigation={edit(e,t){return`${t?"/"+t:".."}/user/edit/${e}`},create(e){return`${e?"/"+e:".."}/user/new`},single(e,t){return`${t?"/"+t:".."}/user/${e}`},query(e={},t){return`${t?"/"+t:".."}/users`},Redit:"user/edit/:uniqueId",Rcreate:"user/new",Rsingle:"user/:uniqueId",Rquery:"users",rPrimaryAddressCreate:"user/:linkerId/primary_address/new",rPrimaryAddressEdit:"user/:linkerId/primary_address/edit/:uniqueId",editPrimaryAddress(e,t,n){return`${n?"/"+n:""}/user/${e}/primary_address/edit/${t}`},createPrimaryAddress(e,t){return`${t?"/"+t:""}/user/${e}/primary_address/new`}};ia.definition={events:[{name:"Googoli2",description:"Googlievent",payload:{fields:[{name:"entity",type:"string",computedType:"string",gormMap:{}}]}}],rpc:{query:{qs:[{name:"withImages",type:"bool?",gormMap:{}}]}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"user",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"firstName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"lastName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"photo",type:"string",computedType:"string",gormMap:{}},{name:"gender",type:"int?",computedType:"number",gormMap:{}},{name:"title",type:"string",computedType:"string",gormMap:{}},{name:"birthDate",type:"date",computedType:"Date",gormMap:{}},{name:"avatar",type:"string",computedType:"string",gormMap:{}},{name:"lastIpAddress",description:"User last connecting ip address",type:"string",computedType:"string",gormMap:{}},{name:"primaryAddress",description:"User primary address location. Can be useful for simple projects that a user is associated with a single address.",type:"object",computedType:"UserPrimaryAddress",gormMap:{},"-":"UserPrimaryAddress",fields:[{name:"addressLine1",description:"Street address, building number",type:"string",computedType:"string",gormMap:{}},{name:"addressLine2",description:"Apartment, suite, floor (optional)",type:"string?",computedType:"string",gormMap:{}},{name:"city",description:"City or locality",type:"string?",computedType:"string",gormMap:{}},{name:"stateOrProvince",description:"State, region, or province",type:"string?",computedType:"string",gormMap:{}},{name:"postalCode",description:"ZIP or postal code",type:"string?",computedType:"string",gormMap:{}},{name:"countryCode",description:'ISO 3166-1 alpha-2 (e.g., \\"US\\", \\"DE\\")',type:"string?",computedType:"string",gormMap:{}}],linkedTo:"UserEntity"}],description:"Manage the users who are in the current app (root only)"};ia.Fields={...wn.Fields,firstName:"firstName",lastName:"lastName",photo:"photo",gender:"gender",title:"title",birthDate:"birthDate",avatar:"avatar",lastIpAddress:"lastIpAddress",primaryAddress$:"primaryAddress",primaryAddress:{...wn.Fields,addressLine1:"primaryAddress.addressLine1",addressLine2:"primaryAddress.addressLine2",city:"primaryAddress.city",stateOrProvince:"primaryAddress.stateOrProvince",postalCode:"primaryAddress.postalCode",countryCode:"primaryAddress.countryCode"}};class ri extends wn{constructor(...t){super(...t),this.children=void 0,this.name=void 0,this.capabilities=void 0,this.capabilitiesListId=void 0}}ri.Navigation={edit(e,t){return`${t?"/"+t:".."}/role/edit/${e}`},create(e){return`${e?"/"+e:".."}/role/new`},single(e,t){return`${t?"/"+t:".."}/role/${e}`},query(e={},t){return`${t?"/"+t:".."}/roles`},Redit:"role/edit/:uniqueId",Rcreate:"role/new",Rsingle:"role/:uniqueId",Rquery:"roles"};ri.definition={rpc:{query:{}},name:"role",features:{},messages:{roleNeedsOneCapability:{en:"Role atleast needs one capability to be selected."}},gormMap:{},fields:[{name:"name",type:"string",validate:"required,omitempty,min=1,max=200",computedType:"string",gormMap:{}},{name:"capabilities",type:"collection",target:"CapabilityEntity",module:"fireback",computedType:"CapabilityEntity[]",gormMap:{}}],description:"Manage roles within the workspaces, or root configuration"};ri.Fields={...wn.Fields,name:"name",capabilitiesListId:"capabilitiesListId",capabilities$:"capabilities",capabilities:vi.Fields};class Ji extends wn{constructor(...t){super(...t),this.children=void 0,this.title=void 0,this.description=void 0,this.slug=void 0,this.role=void 0,this.roleId=void 0}}Ji.Navigation={edit(e,t){return`${t?"/"+t:".."}/workspace-type/edit/${e}`},create(e){return`${e?"/"+e:".."}/workspace-type/new`},single(e,t){return`${t?"/"+t:".."}/workspace-type/${e}`},query(e={},t){return`${t?"/"+t:".."}/workspace-types`},Redit:"workspace-type/edit/:uniqueId",Rcreate:"workspace-type/new",Rsingle:"workspace-type/:uniqueId",Rquery:"workspace-types"};Ji.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspaceType",features:{mock:!1,msync:!1},security:{writeOnRoot:!0,readOnRoot:!0},messages:{cannotCreateWorkspaceType:{en:"You cannot create workspace type due to some validation errors."},cannotModifyWorkspaceType:{en:"You cannot modify workspace type due to some validation errors."},onlyRootRoleIsAccepted:{en:"You can only select a role which is created or belong to 'root' workspace."},roleIsNecessary:{en:"Role needs to be defined and exist."},roleIsNotAccessible:{en:"Role is not accessible unfortunately. Make sure you the role chose exists."},roleNeedsToHaveCapabilities:{en:"Role needs to have at least one capability before could be assigned."}},gormMap:{},fields:[{name:"title",type:"string",validate:"required,omitempty,min=1,max=250",translate:!0,computedType:"string",gormMap:{}},{name:"description",type:"string",translate:!0,computedType:"string",gormMap:{}},{name:"slug",type:"string",validate:"required,omitempty,min=2,max=50",computedType:"string",gormMap:{}},{name:"role",description:"The role which will be used to define the functionality of this workspace, Role needs to be created before hand, and only roles which belong to root workspace are possible to be selected",type:"one",target:"RoleEntity",validate:"required",computedType:"RoleEntity",gormMap:{}}],cliName:"type",description:"Defines a type for workspace, and the role which it can have as a whole. In systems with multiple types of services, e.g. student, teachers, schools this is useful to set those default types and limit the access of the users."};Ji.Fields={...wn.Fields,title:"title",description:"description",slug:"slug",roleId:"roleId",role$:"role",role:ri.Fields};class yi extends wn{constructor(...t){super(...t),this.children=void 0,this.description=void 0,this.name=void 0,this.type=void 0,this.typeId=void 0}}yi.Navigation={edit(e,t){return`${t?"/"+t:".."}/workspace/edit/${e}`},create(e){return`${e?"/"+e:".."}/workspace/new`},single(e,t){return`${t?"/"+t:".."}/workspace/${e}`},query(e={},t){return`${t?"/"+t:".."}/workspaces`},Redit:"workspace/edit/:uniqueId",Rcreate:"workspace/new",Rsingle:"workspace/:uniqueId",Rquery:"workspaces"};yi.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0},gormMap:{},fields:[{name:"description",type:"string",computedType:"string",gormMap:{}},{name:"name",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"type",type:"one",target:"WorkspaceTypeEntity",validate:"required",computedType:"WorkspaceTypeEntity",gormMap:{}}],cliName:"ws",description:"Fireback general user role, workspaces services.",cte:!0};yi.Fields={...wn.Fields,description:"description",name:"name",typeId:"typeId",type$:"type",type:Ji.Fields};class Kb extends wn{constructor(...t){super(...t),this.children=void 0,this.user=void 0,this.workspace=void 0,this.userPermissions=void 0,this.rolePermission=void 0,this.workspacePermissions=void 0}}Kb.Navigation={edit(e,t){return`${t?"/"+t:".."}/user-workspace/edit/${e}`},create(e){return`${e?"/"+e:".."}/user-workspace/new`},single(e,t){return`${t?"/"+t:".."}/user-workspace/${e}`},query(e={},t){return`${t?"/"+t:".."}/user-workspaces`},Redit:"user-workspace/edit/:uniqueId",Rcreate:"user-workspace/new",Rsingle:"user-workspace/:uniqueId",Rquery:"user-workspaces"};Kb.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"userWorkspace",features:{},security:{resolveStrategy:"user"},gormMap:{workspaceId:"index:userworkspace_idx,unique",userId:"index:userworkspace_idx,unique"},fields:[{name:"user",type:"one",target:"UserEntity",computedType:"UserEntity",gormMap:{}},{name:"workspace",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}},{name:"userPermissions",type:"slice",primitive:"string",computedType:"string[]",gorm:"-",gormMap:{},sql:"-"},{name:"rolePermission",type:"slice",primitive:"UserRoleWorkspaceDto",computedType:"unknown[]",gorm:"-",gormMap:{},sql:"-"},{name:"workspacePermissions",type:"slice",primitive:"string",computedType:"string[]",gorm:"-",gormMap:{},sql:"-"}],cliShort:"user",description:"Manage the workspaces that user belongs to (either its himselves or adding by invitation)"};Kb.Fields={...wn.Fields,user$:"user",user:ia.Fields,workspace$:"workspace",workspace:yi.Fields,userPermissions:"userPermissions",rolePermission:"rolePermission",workspacePermissions:"workspacePermissions"};function CF({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/user-workspaces".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.UserWorkspaceEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}CF.UKEY="*abac.UserWorkspaceEntity";function sge(e,t){var a;let n=!1;const r=(a=e.children)==null?void 0:a.map(i=>{let o=i.activeMatcher?i.activeMatcher.test(t.asPath):void 0;i.forceActive&&(o=!0);let l=i.displayFn?i.displayFn({location:"here",asPath:t.asPath,selectedUrw:t.urw,userRoleWorkspaces:t.urws}):!0;return l&&(n=!0),{...i,isActive:o||!1,isVisible:l}});return n===!1&&!e.href?null:{name:e.label,href:e.href,children:r}}function NB({menu:e,onClick:t}){var l,u,d;const{asPath:n}=sr(),r=Bs(),{selectedUrw:a}=R.useContext(rt),{query:i}=CF({queryClient:r,query:{},queryOptions:{refetchOnWindowFocus:!1,cacheTime:0}}),o=sge(e,{asPath:n,urw:a,urws:((u=(l=i.data)==null?void 0:l.data)==null?void 0:u.items)||[]});return o?w.jsx("div",{className:"sidebar-menu-particle",onClick:t,children:((d=e.children)==null?void 0:d.length)>0?w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none",children:w.jsx("span",{className:"category",children:e.label})}),w.jsx(gJ,{items:o.children})]}):w.jsx(w.Fragment,{children:w.jsx(vJ,{item:e})})}):null}function gJ({items:e}){return w.jsx("ul",{className:"nav nav-pills flex-column mb-auto",children:e.map(t=>w.jsx(vJ,{item:t},t.label+"_"+t.href))})}function vJ({item:e}){return w.jsxs("li",{className:oa("nav-item"),children:[e.href&&!e.onClick?w.jsx(Yb,{replace:!0,href:e.href,className:"nav-link","aria-current":"page",forceActive:e.isActive,scroll:null,inActiveClassName:"text-white",activeClassName:"active",children:w.jsx(AB,{item:e})}):w.jsx("a",{className:oa("nav-link",e.isActive&&"active"),onClick:e.onClick,children:w.jsx(AB,{item:e})}),e.children&&w.jsx(gJ,{items:e.children})]},e.label)}function lge(){var l,u;const e=At(),{selectedUrw:t,selectUrw:n}=R.useContext(rt),{query:r}=DE({queryOptions:{cacheTime:50},query:{}}),a=((u=(l=r.data)==null?void 0:l.data)==null?void 0:u.items)||[],i=a.map(d=>d.uniqueId).join("-")+"_"+(t==null?void 0:t.roleId)+"_"+(t==null?void 0:t.workspaceId);return{menus:R.useMemo(()=>{const d=[];return a.forEach(f=>{f.roles.forEach(g=>{d.push({key:`${g.uniqueId}_${f.uniqueId}`,label:`${f.name} (${g.name})`,children:[],forceActive:(t==null?void 0:t.roleId)===g.uniqueId&&(t==null?void 0:t.workspaceId)===f.uniqueId,color:f.uniqueId==="root"?oL.Orange:oL.Green,onClick:()=>{n({roleId:g.uniqueId,workspaceId:f.uniqueId})}})})}),[{label:e.wokspaces.sidetitle,children:d.sort((f,g)=>f.key!0){if(!t(e.capabilityId))return null;const n=(e.children||[]).map(r=>yJ(r,t)).filter(Boolean);return{label:e.label||"",children:n,displayFn:uge(),icon:e.icon,href:e.href,activeMatcher:e.activeMatcher?new RegExp(e.activeMatcher):void 0}}function uge(e){return()=>!0}function cge({miniSize:e,onClose:t,sidebarItemSelectedExtra:n}){var g;const{sidebarVisible:r,toggleSidebar:a,sidebarItemSelected:i}=zv(),o=mJ(),{reset:l}=R.useContext(m_),u=()=>{l(),a()};if(!o)return null;let d=[];Array.isArray(o)?d=[...o]:(g=o.children)!=null&&g.length&&d.push(o);const{menus:f}=lge();return d.push(f[0]),w.jsxs("div",{"data-wails-drag":!0,className:oa(e?"sidebar-extra-small":"","sidebar",r?"open":"","scrollable-element",sh().isMobileView?"has-bottom-tab":void 0),children:[w.jsx("button",{className:"sidebar-close",onClick:()=>t?t():u(),children:w.jsx("img",{src:Fs(xu.cancel)})}),d.map(y=>w.jsx(NB,{onClick:()=>{i(),n==null||n()},menu:y},y.label)),kr.GITHUB_DEMO==="true"&&w.jsx(NB,{onClick:()=>{i(),n==null||n()},menu:{label:"Demo",children:[{label:"Form select",icon:"/ios-theme/icons/settings.svg",children:[],href:"/demo/form-select"},{label:"Form Date/Time",icon:"/ios-theme/icons/settings.svg",children:[],href:"/demo/form-date"},{label:"Overlays & Modal",icon:"/ios-theme/icons/settings.svg",children:[],href:"/demo/modals"}]}}),w.jsx(oge,{onClick:()=>{i(),n==null||n()}})]})}const bJ=ze.memo(cge);function dge({menu:e,isSecondary:t,routerId:n}){const{toggleSidebar:r,closeCurrentRouter:a}=zv(),{openDrawer:i}=bF();return w0(Ir.SidebarToggle,()=>{r()}),w.jsx("nav",{className:"navbar navbar-expand-lg navbar-light",style:{"--wails-draggable":"drag"},children:w.jsxs("div",{className:"container-fluid",children:[w.jsx("div",{className:"page-navigator",children:n==="url-router"?w.jsx("button",{className:"navbar-menu-icon",onClick:()=>sh().isMobileView?i(({close:o})=>w.jsx(bJ,{sidebarItemSelectedExtra:o,onClose:o,miniSize:!1}),{speed:180,direction:"left"}):r(),children:w.jsx("img",{src:Fs(xu.menu)})}):w.jsx("button",{className:"navbar-menu-icon",onClick:()=>a(n),children:w.jsx("img",{src:Fs(xu.cancel)})})}),w.jsx(gL,{filter:({id:o})=>o==="navigation"}),w.jsx("div",{className:"page-navigator"}),w.jsx("span",{className:"navbar-brand",children:w.jsx(Bhe,{})}),iL()==="web"&&w.jsx("button",{className:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation",children:w.jsx("span",{className:"navbar-toggler-icon"})}),w.jsxs("div",{className:iL()==="web"?"collapse navbar-collapse":"",id:"navbarSupportedContent",children:[w.jsx("ul",{className:"navbar-nav ms-auto mb-2 mb-lg-0",children:((e==null?void 0:e.children)||[]).map(o=>{var l;return w.jsx("li",{className:oa("nav-item",((l=o.children)==null?void 0:l.length)&&"dropdown"),children:o.children.length?w.jsxs(w.Fragment,{children:[w.jsx(Yb,{className:"nav-link dropdown-toggle",href:o.href,id:"navbarDropdown",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false",children:w.jsx("span",{children:o.label})}),(o!=null&&o.children,w.jsx("ul",{className:"dropdown-menu","aria-labelledby":"navbarDropdown",children:((o==null?void 0:o.children)||[]).map(u=>{var d;return w.jsx("li",{className:oa("nav-item",((d=u.children)==null?void 0:d.length)&&"dropdown"),children:w.jsx(Yb,{className:"dropdown-item",href:u.href,children:w.jsx("span",{children:u.label})})},`${u.label}_${u.href}`)})}))]}):w.jsx(Yb,{className:"nav-link active","aria-current":"page",href:o.href,children:w.jsx("span",{children:o.label})})},`${o.label}_${o.href}`)})}),w.jsx("span",{className:"general-action-menu desktop-view",children:w.jsx(gL,{filter:({id:o})=>o!=="navigation"})}),w.jsx(wme,{})]})]})})}const fge=ze.memo(dge);function pge({result:e,onComplete:t}){const n=At(),r=Ta.groupBy(e,"group"),a=Object.keys(r);return w.jsx("div",{className:"reactive-search-result",children:a.length===0?w.jsx(w.Fragment,{children:n.reactiveSearch.noResults}):w.jsx("ul",{children:a.map((i,o)=>w.jsxs("li",{children:[w.jsx("span",{className:"result-group-name",children:i}),w.jsx("ul",{children:r[i].map((l,u)=>w.jsx("li",{children:l.actionFn?w.jsxs(Pl,{onClick:t,href:l.uiLocation,children:[l.icon&&w.jsx("img",{className:"result-icon",src:Fs(l.icon)}),l.phrase]}):null},l.uniqueId))})]},o))})})}function hge({children:e}){return w.jsxs(w.Fragment,{children:[w.jsx(Bse,{}),e]})}const mge=({children:e,navbarMenu:t,sidebarMenu:n,routerId:r})=>{At();const{result:a,phrase:i,reset:o}=R.useContext(m_),{sidebarVisible:l,toggleSidebar:u}=zv(),d=i.length>0;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{style:{display:"flex",width:"100%"},children:[w.jsx("div",{className:oa("sidebar-overlay",l?"open":""),onClick:f=>{u(),f.stopPropagation()}}),w.jsxs("div",{style:{width:"100%",flex:1},children:[w.jsx(fge,{routerId:r,menu:t}),w.jsxs("div",{className:"content-section",children:[d?w.jsx("div",{className:"content-container",children:w.jsx(pge,{onComplete:()=>o(),result:a})}):null,w.jsx("div",{className:"content-container",style:{visibility:d?"hidden":void 0},children:w.jsx(hge,{children:e})})]})]}),w.jsx(hhe,{})]}),w.jsx("span",{className:"general-action-menu mobile-view",children:w.jsx(gL,{})})]})};function Kt(e){const{locale:t}=sr();return!t||t==="en"?e:e["$"+t]?e["$"+t]:e}const gge={capabilities:{nameHint:"Name",newCapability:"New capability",archiveTitle:"Capabilities",description:"Description",descriptionHint:"Description",editCapability:"Edit capability",name:"Name"}},$E={...gge},jo=({children:e,newEntityHandler:t,exportPath:n,pageTitle:r})=>{gh(r);const a=xr(),{locale:i}=sr();return bhe({path:n||""}),khe(t?()=>t({locale:i,router:a}):void 0,Ir.NewEntity),w.jsx(w.Fragment,{children:e})};var mx=function(e){return Array.prototype.slice.call(e)},vge=(function(){function e(){this.handlers=[]}return e.prototype.emit=function(t){this.handlers.forEach(function(n){return n(t)})},e.prototype.subscribe=function(t){this.handlers.push(t)},e.prototype.unsubscribe=function(t){this.handlers.splice(this.handlers.indexOf(t),1)},e})(),wJ=function(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=Object.prototype.hasOwnProperty,i=0;i0)&&!(a=r.next()).done;)i.push(a.value)}catch(l){o={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function TB(e,t,n){if(arguments.length===2)for(var r=0,a=t.length,i;r0?xge(t,n,r):t}};Ye.shape({current:Ye.instanceOf(typeof Element<"u"?Element:Object)});var vF=Symbol("group"),_ge=Symbol("".concat(vF.toString(),"_check"));Symbol("".concat(vF.toString(),"_levelKey"));Symbol("".concat(vF.toString(),"_collapsedRows"));var Oge=function(e){return function(t){var n=e(t);return!t[_ge]&&n===void 0&&console.warn("The row id is undefined. Check the getRowId function. The row is",t),n}},Rge=function(e,t){if(!e){var n=new Map(t.map(function(r,a){return[r,a]}));return function(r){return n.get(r)}}return Oge(e)},Pge=function(e,t){return e[t]},Age=function(e,t){e===void 0&&(e=Pge);var n=!0,r=t.reduce(function(a,i){return i.getCellValue&&(n=!1,a[i.name]=i.getCellValue),a},{});return n?e:function(a,i){return r[i]?r[i](a,i):e(a,i)}};/*! ***************************************************************************** +***************************************************************************** */var EL=function(e,t){return EL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},EL(e,t)};function nf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");EL(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var bc=function(){return bc=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0)&&!(a=r.next()).done;)i.push(a.value)}catch(l){o={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function $B(e,t,n){if(arguments.length===2)for(var r=0,a=t.length,i;r0?Dge(t,n,r):t}};Ye.shape({current:Ye.instanceOf(typeof Element<"u"?Element:Object)});var RF=Symbol("group"),$ge=Symbol("".concat(RF.toString(),"_check"));Symbol("".concat(RF.toString(),"_levelKey"));Symbol("".concat(RF.toString(),"_collapsedRows"));var Lge=function(e){return function(t){var n=e(t);return!t[$ge]&&n===void 0&&console.warn("The row id is undefined. Check the getRowId function. The row is",t),n}},Fge=function(e,t){if(!e){var n=new Map(t.map(function(r,a){return[r,a]}));return function(r){return n.get(r)}}return Lge(e)},jge=function(e,t){return e[t]},Uge=function(e,t){e===void 0&&(e=jge);var n=!0,r=t.reduce(function(a,i){return i.getCellValue&&(n=!1,a[i.name]=i.getCellValue),a},{});return n?e:function(a,i){return r[i]?r[i](a,i):e(a,i)}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -165,7 +162,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Zb=function(){return Zb=Object.assign||function(t){for(var n,r=1,a=arguments.length;r0)&&!(a=r.next()).done;)i.push(a.value)}catch(l){o={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function sx(e,t,n){if(arguments.length===2)for(var r=0,a=t.length,i;rr){do t[u++]=e[l++];while(l<=a);break}}else if(t[u++]=e[l++],l>a){do t[u++]=e[o++];while(o<=r);break}}},RB=function(e,t,n,r,a){if(!(ri?1:0});var n=ax(e),r=ax(e);return fL(n,r,0,n.length-1,t),n}),Ige=function(e,t,n){var r=n.map(function(a){var i=a.columnName;return{column:e.find(function(o){return o.name===i}),draft:!t.some(function(o){return o.columnName===i})}});return t.forEach(function(a,i){var o=a.columnName;n.some(function(l){return l.columnName===o})||r.splice(i,0,{column:e.find(function(l){return l.name===o}),draft:!0})}),r},lx=Symbol("reordering"),Dge=function(e,t){var n=t.sourceColumnName,r=t.targetColumnName,a=e.indexOf(n),i=e.indexOf(r),o=ax(e);return o.splice(a,1),o.splice(i,0,n),o},$d=Symbol("data"),$ge=function(e,t){return e===void 0&&(e=[]),Mge(e,function(n,r){if(n.type!==$d||r.type!==$d)return 0;var a=t.indexOf(n.column.name),i=t.indexOf(r.column.name);return a-i})},Lge=function(e){return sx(sx([],dL(e),!1),[{key:lx.toString(),type:lx,height:0}],!1)},Fge=function(e,t,n){if(t===-1||n===-1||t===n)return e;var r=ax(e),a=e[t];return r.splice(t,1),r.splice(n,0,a),r},jge=function(e,t){var n=parseInt(e,10),r=n?e.substr(n.toString().length):e,a=isNaN(n)&&r==="auto",i=n>=0&&t.some(function(o){return o===r});return a||i},Uge=function(e){if(typeof e=="string"){var t=parseInt(e,10);return e.substr(t.toString().length).length>0?e:t}return e},Bge=Symbol("heading"),Wge=Symbol("filter"),pL=Symbol("group"),zge=Symbol("stub"),qge=function(e,t,n,r){return e.reduce(function(a,i){if(i.type!==$d)return a.push(i),a;var o=i.column&&i.column.name||"",l=t.some(function(d){return d.columnName===o}),u=n.some(function(d){return d.columnName===o});return!l&&!u||r(o)?a.push(i):(!l&&u||l&&!u)&&a.push(Zb(Zb({},i),{draft:!0})),a},[])},Hge=function(e,t,n,r,a,i){return sx(sx([],dL(n.map(function(o){var l=e.find(function(u){return u.name===o.columnName});return{key:"".concat(pL.toString(),"_").concat(l.name),type:pL,column:l,width:a}})),!1),dL(qge(t,n,r,i)),!1)},Vge=Symbol("band"),Gge=["px","%","em","rem","vm","vh","vmin","vmax",""],Yge="The columnExtension property of the Table plugin is given an invalid value.",Kge=function(e){e&&e.map(function(t){var n=t.width;if(typeof n=="string"&&!jge(n,Gge))throw new Error(Yge)})},Xge=function(e,t){if(!e)return{};var n=e.find(function(r){return r.columnName===t});return n||{}},Qge=function(e,t){return e.map(function(n){var r=n.name,a=Xge(t,r),i=Uge(a.width);return{column:n,key:"".concat($d.toString(),"_").concat(r),type:$d,width:i,align:a.align,wordWrapEnabled:a.wordWrapEnabled}})},Jge=function(e,t){return e===void 0&&(e=[]),e.filter(function(n){return n.type!==$d||t.indexOf(n.column.name)===-1})},Zge=function(e,t,n){return function(r){return n.indexOf(r)>-1&&t||typeof e=="function"&&e(r)||void 0}},eve=Symbol("totalSummary");Bge.toString();Wge.toString();$d.toString();Vge.toString();eve.toString();zge.toString();pL.toString();var tve=function(e,t){var n=e[t].right-e[t].left,r=function(a){return e[a].right-e[a].left-n};return e.map(function(a,i){var o=a.top,l=a.right,u=a.bottom,d=a.left,f=d;i>0&&i<=t&&(f=Math.min(f,f-r(i-1))),i>t&&(f=Math.max(f,f+r(i)));var g=l;return i=t&&(g=Math.max(g,g+r(i+1))),i=o&&t=e.top&&t<=e.bottom},rve=function(e){var t=e.top,n=e.right,r=e.bottom,a=e.left;return{top:t,right:n,bottom:r,left:a}},ave=function(e){return e.map(function(t,n){return n!==e.length-1&&t.top===e[n+1].top?Zb(Zb({},t),{right:e[n+1].left}):t})},ive=function(e,t,n){var r=n.x,a=n.y;if(e.length===0)return 0;var i=t!==-1?tve(e,t):e.map(rve),o=ave(i).findIndex(function(l,u){var d=PB(l,a),f=r>=l.left&&r<=l.right,g=u===0&&r0)&&!(a=r.next()).done;)i.push(a.value)}catch(l){o={error:l}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return i}function yx(e,t,n){if(arguments.length===2)for(var r=0,a=t.length,i;rr){do t[u++]=e[l++];while(l<=a);break}}else if(t[u++]=e[l++],l>a){do t[u++]=e[o++];while(o<=r);break}}},WB=function(e,t,n,r,a){if(!(ri?1:0});var n=mx(e),r=mx(e);return kL(n,r,0,n.length-1,t),n}),zge=function(e,t,n){var r=n.map(function(a){var i=a.columnName;return{column:e.find(function(o){return o.name===i}),draft:!t.some(function(o){return o.columnName===i})}});return t.forEach(function(a,i){var o=a.columnName;n.some(function(l){return l.columnName===o})||r.splice(i,0,{column:e.find(function(l){return l.name===o}),draft:!0})}),r},bx=Symbol("reordering"),qge=function(e,t){var n=t.sourceColumnName,r=t.targetColumnName,a=e.indexOf(n),i=e.indexOf(r),o=mx(e);return o.splice(a,1),o.splice(i,0,n),o},Fd=Symbol("data"),Hge=function(e,t){return e===void 0&&(e=[]),Wge(e,function(n,r){if(n.type!==Fd||r.type!==Fd)return 0;var a=t.indexOf(n.column.name),i=t.indexOf(r.column.name);return a-i})},Vge=function(e){return yx(yx([],CL(e),!1),[{key:bx.toString(),type:bx,height:0}],!1)},Gge=function(e,t,n){if(t===-1||n===-1||t===n)return e;var r=mx(e),a=e[t];return r.splice(t,1),r.splice(n,0,a),r},Yge=function(e,t){var n=parseInt(e,10),r=n?e.substr(n.toString().length):e,a=isNaN(n)&&r==="auto",i=n>=0&&t.some(function(o){return o===r});return a||i},Kge=function(e){if(typeof e=="string"){var t=parseInt(e,10);return e.substr(t.toString().length).length>0?e:t}return e},Xge=Symbol("heading"),Qge=Symbol("filter"),xL=Symbol("group"),Jge=Symbol("stub"),Zge=function(e,t,n,r){return e.reduce(function(a,i){if(i.type!==Fd)return a.push(i),a;var o=i.column&&i.column.name||"",l=t.some(function(d){return d.columnName===o}),u=n.some(function(d){return d.columnName===o});return!l&&!u||r(o)?a.push(i):(!l&&u||l&&!u)&&a.push(l0(l0({},i),{draft:!0})),a},[])},eve=function(e,t,n,r,a,i){return yx(yx([],CL(n.map(function(o){var l=e.find(function(u){return u.name===o.columnName});return{key:"".concat(xL.toString(),"_").concat(l.name),type:xL,column:l,width:a}})),!1),CL(Zge(t,n,r,i)),!1)},tve=Symbol("band"),nve=["px","%","em","rem","vm","vh","vmin","vmax",""],rve="The columnExtension property of the Table plugin is given an invalid value.",ave=function(e){e&&e.map(function(t){var n=t.width;if(typeof n=="string"&&!Yge(n,nve))throw new Error(rve)})},ive=function(e,t){if(!e)return{};var n=e.find(function(r){return r.columnName===t});return n||{}},ove=function(e,t){return e.map(function(n){var r=n.name,a=ive(t,r),i=Kge(a.width);return{column:n,key:"".concat(Fd.toString(),"_").concat(r),type:Fd,width:i,align:a.align,wordWrapEnabled:a.wordWrapEnabled}})},sve=function(e,t){return e===void 0&&(e=[]),e.filter(function(n){return n.type!==Fd||t.indexOf(n.column.name)===-1})},lve=function(e,t,n){return function(r){return n.indexOf(r)>-1&&t||typeof e=="function"&&e(r)||void 0}},uve=Symbol("totalSummary");Xge.toString();Qge.toString();Fd.toString();tve.toString();uve.toString();Jge.toString();xL.toString();var cve=function(e,t){var n=e[t].right-e[t].left,r=function(a){return e[a].right-e[a].left-n};return e.map(function(a,i){var o=a.top,l=a.right,u=a.bottom,d=a.left,f=d;i>0&&i<=t&&(f=Math.min(f,f-r(i-1))),i>t&&(f=Math.max(f,f+r(i)));var g=l;return i=t&&(g=Math.max(g,g+r(i+1))),i=o&&t=e.top&&t<=e.bottom},fve=function(e){var t=e.top,n=e.right,r=e.bottom,a=e.left;return{top:t,right:n,bottom:r,left:a}},pve=function(e){return e.map(function(t,n){return n!==e.length-1&&t.top===e[n+1].top?l0(l0({},t),{right:e[n+1].left}):t})},hve=function(e,t,n){var r=n.x,a=n.y;if(e.length===0)return 0;var i=t!==-1?cve(e,t):e.map(fve),o=pve(i).findIndex(function(l,u){var d=zB(l,a),f=r>=l.left&&r<=l.right,g=u===0&&r{e(!1)})},refs:[]});function Ove({mref:e,context:t}){const n=At(),r=e.component,a=async()=>{e.onSubmit&&await e.onSubmit()===!0&&t.closeModal(e.id)};return w.jsx("div",{className:"modal d-block with-fade-in",children:w.jsx("div",{className:"modal-dialog",children:w.jsxs("div",{className:"modal-content",children:[w.jsxs("div",{className:"modal-header",children:[w.jsx("h5",{className:"modal-title",children:e.title}),w.jsx("button",{type:"button",id:"cls",className:"btn-close",onClick:()=>t.closeModal(e.id),"aria-label":"Close"})]}),w.jsx("div",{className:"modal-body",children:w.jsx("p",{children:w.jsx(r,{})})}),w.jsxs("div",{className:"modal-footer",children:[w.jsx("button",{type:"button",className:"btn btn-secondary",autoFocus:!0,onClick:()=>t.closeModal(e.id),children:n.close}),w.jsx("button",{onClick:a,type:"button",className:"btn btn-primary",children:e.confirmButtonLabel||n.saveChanges})]})]})})})}function Rve(){const e=R.useContext(l_);return w.jsxs(w.Fragment,{children:[e.refs.map(t=>w.jsx(Ove,{context:e,mref:t},t.id)),e.refs.length?w.jsx("div",{className:ia("modal-backdrop fade",e.refs.length&&"show")}):null]})}function Pve({children:e}){const[t,n]=R.useState([]),r=l=>{let u=(Math.random()+1).toString(36).substring(2);const d={...l,id:u};n(f=>[...f,d])},a=l=>{n(u=>u.filter(d=>d.id!==l))},i=()=>new Promise(l=>{l(!0)});return rF("Escape",()=>{n(l=>l.filter((u,d)=>d!==l.length-1))}),w.jsx(l_.Provider,{value:{confirm:i,refs:t,closeModal:a,openModal:r},children:e})}const CJ=()=>{const{openDrawer:e,openModal:t}=sF();return{confirmDrawer:({title:a,description:i,cancelLabel:o,confirmLabel:l})=>e(({close:u,resolve:d})=>w.jsxs("div",{className:"confirm-drawer-container p-3",children:[w.jsx("h2",{children:a}),w.jsx("span",{children:i}),w.jsxs("div",{children:[w.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>d(),children:l}),w.jsx("button",{className:"d-block w-100 btn",onClick:()=>u(),children:o})]})]})),confirmModal:({title:a,description:i,cancelLabel:o,confirmLabel:l})=>t(({close:u,resolve:d})=>w.jsxs("div",{className:"confirm-drawer-container p-3",children:[w.jsx("span",{children:i}),w.jsxs("div",{className:"row mt-4",children:[w.jsx("div",{className:"col-md-6",children:w.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>d(),children:l})}),w.jsx("div",{className:"col-md-6",children:w.jsx("button",{className:"d-block w-100 btn",onClick:()=>u(),children:o})})]})]}),{title:a})}};function Ave({urlMask:e,submitDelete:t,onRecordsDeleted:n,initialFilters:r}){const a=At(),i=xr(),{confirmModal:o}=CJ(),{withDebounce:l}=IQ(),u={itemsPerPage:100,startIndex:0,sorting:[],...r||{}},[d,f]=R.useState(u),[g,y]=R.useState(u),{search:h}=Xd(),v=R.useRef(!1);R.useEffect(()=>{if(v.current)return;v.current=!0;let me={};try{me=qa.parse(h.substring(1)),delete me.startIndex}catch{}f({...u,...me}),y({...u,...me})},[h]);const[E,T]=R.useState([]),k=(me=>{var G;const W={...me};return delete W.startIndex,delete W.itemsPerPage,((G=W==null?void 0:W.sorting)==null?void 0:G.length)===0&&delete W.sorting,JSON.stringify(W)})(d),_=me=>{T(me)},A=(me,W=!0)=>{const G={...d,...me};W&&(G.startIndex=0),f(G),i.push("?"+qa.stringify(G),void 0,{},!0),l(()=>{y(G)},500)},P=me=>{A({itemsPerPage:me},!1)},N=me=>me.map(W=>`${W.columnName} ${W.direction}`).join(", "),I=me=>{A({sorting:me,sort:N(me)},!1)},L=me=>{A({startIndex:me},!1)},j=me=>{A({startIndex:0})};R.useContext(l_);const z=me=>({query:me.map(W=>`unique_id = ${W}`).join(" or "),uniqueId:""}),Q=async()=>{o({title:a.confirm,confirmLabel:a.common.yes,cancelLabel:a.common.no,description:a.deleteConfirmMessage}).promise.then(({type:me})=>{if(me==="resolved")return t(z(E),null)}).then(()=>{n&&n()})},le=()=>({label:a.deleteAction,onSelect(){Q()},icon:ku.delete,uniqueActionKey:"GENERAL_DELETE_ACTION"}),{addActions:re,removeActionMenu:ge}=phe();return R.useEffect(()=>{if(E.length>0&&typeof t<"u")return re("table-selection",[le()]);ge("table-selection")},[E]),d0(Ir.Delete,()=>{E.length>0&&typeof t<"u"&&Q()}),{filters:d,setFilters:f,setFilter:A,setSorting:I,setStartIndex:L,selection:E,setSelection:_,onFiltersChange:j,queryHash:k,setPageSize:P,debouncedFilters:g}}function Nve({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/table-view-sizing/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.TableViewSizingEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}class yF extends wn{constructor(...t){super(...t),this.children=void 0,this.tableName=void 0,this.sizes=void 0}}yF.Navigation={edit(e,t){return`${t?"/"+t:".."}/table-view-sizing/edit/${e}`},create(e){return`${e?"/"+e:".."}/table-view-sizing/new`},single(e,t){return`${t?"/"+t:".."}/table-view-sizing/${e}`},query(e={},t){return`${t?"/"+t:".."}/table-view-sizings`},Redit:"table-view-sizing/edit/:uniqueId",Rcreate:"table-view-sizing/new",Rsingle:"table-view-sizing/:uniqueId",Rquery:"table-view-sizings"};yF.definition={rpc:{query:{}},name:"tableViewSizing",features:{},gormMap:{},fields:[{name:"tableName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"sizes",type:"string",computedType:"string",gormMap:{}}],cliShort:"tvs",description:"Used to store meta data about user tables (in front-end, or apps for example) about the size of the columns"};yF.Fields={...wn.Fields,tableName:"tableName",sizes:"sizes"};function Mve(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/table-view-sizing".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.TableViewSizingEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function kJ(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t1&&(!e.frozen||e.idx+r-1<=t))return r}function Ive(e){e.stopPropagation()}function Ok(e){e==null||e.scrollIntoView({inline:"nearest",block:"nearest"})}function gS(e){let t=!1;const n={...e,preventGridDefault(){t=!0},isGridDefaultPrevented(){return t}};return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}const Dve=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function mL(e){return(e.ctrlKey||e.metaKey)&&e.key!=="Control"}function $ve(e){return mL(e)&&e.keyCode!==86?!1:!Dve.has(e.key)}function Lve({key:e,target:t}){var n;return e==="Tab"&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)?((n=t.closest(".rdg-editor-container"))==null?void 0:n.querySelectorAll("input, textarea, select").length)===1:!1}const Fve="mlln6zg7-0-0-beta-51";function jve(e){return e.map(({key:t,idx:n,minWidth:r,maxWidth:a})=>w.jsx("div",{className:Fve,style:{gridColumnStart:n+1,minWidth:r,maxWidth:a},"data-measuring-cell-key":t},t))}function Uve({selectedPosition:e,columns:t,rows:n}){const r=t[e.idx],a=n[e.rowIdx];return xJ(r,a)}function xJ(e,t){return e.renderEditCell!=null&&(typeof e.editable=="function"?e.editable(t):e.editable)!==!1}function Bve({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:a,lastFrozenColumnIndex:i,column:o}){const l=(t==null?void 0:t.length)??0;if(r===a)return Cl(o,i,{type:"HEADER"});if(t&&r>a&&r<=l+a)return Cl(o,i,{type:"SUMMARY",row:t[r+l]});if(r>=0&&r{for(const I of a){const L=I.idx;if(L>T)break;const j=Bve({rows:i,topSummaryRows:o,bottomSummaryRows:l,rowIdx:C,mainHeaderRowIdx:d,lastFrozenColumnIndex:v,column:I});if(j&&T>L&&TN.level+d,P=()=>{if(t){let I=r[T].parent;for(;I!==void 0;){const L=A(I);if(C===L){T=I.idx+I.colSpan;break}I=I.parent}}else if(e){let I=r[T].parent,L=!1;for(;I!==void 0;){const j=A(I);if(C>=j){T=I.idx,C=j,L=!0;break}I=I.parent}L||(T=g,C=y)}};if(E(h)&&(_(t),C=L&&(C=j,T=I.idx),I=I.parent}}return{idx:T,rowIdx:C}}function zve({maxColIdx:e,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:a},shiftKey:i}){return i?a===0&&r===t:a===e&&r===n}const qve="cj343x07-0-0-beta-51",_J=`rdg-cell ${qve}`,Hve="csofj7r7-0-0-beta-51",Vve=`rdg-cell-frozen ${Hve}`;function bF(e){return{"--rdg-grid-row-start":e}}function OJ(e,t,n){const r=t+1,a=`calc(${n-1} * var(--rdg-header-row-height))`;return e.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:r,paddingBlockStart:a}:{insetBlockStart:`calc(${t-n} * var(--rdg-header-row-height))`,gridRowStart:r-n,gridRowEnd:r,paddingBlockStart:a}}function m0(e,t=1){const n=e.idx+1;return{gridColumnStart:n,gridColumnEnd:n+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function _E(e,...t){return Ld(_J,{[Vve]:e.frozen},...t)}const{min:BS,max:ux,floor:AB,sign:Gve,abs:Yve}=Math;function NP(e){if(typeof e!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function RJ(e,{minWidth:t,maxWidth:n}){return e=ux(e,t),typeof n=="number"&&n>=t?BS(e,n):e}function PJ(e,t){return e.parent===void 0?t:e.level-e.parent.level}const Kve="c1bn88vv7-0-0-beta-51",Xve=`rdg-checkbox-input ${Kve}`;function Qve({onChange:e,indeterminate:t,...n}){function r(a){e(a.target.checked,a.nativeEvent.shiftKey)}return w.jsx("input",{ref:a=>{a&&(a.indeterminate=t===!0)},type:"checkbox",className:Xve,onChange:r,...n})}function Jve(e){try{return e.row[e.column.key]}catch{return null}}const AJ=R.createContext(void 0);function u_(){return R.useContext(AJ)}function wF({value:e,tabIndex:t,indeterminate:n,disabled:r,onChange:a,"aria-label":i,"aria-labelledby":o}){const l=u_().renderCheckbox;return l({"aria-label":i,"aria-labelledby":o,tabIndex:t,indeterminate:n,disabled:r,checked:e,onChange:a})}const SF=R.createContext(void 0),NJ=R.createContext(void 0);function MJ(){const e=R.useContext(SF),t=R.useContext(NJ);if(e===void 0||t===void 0)throw new Error("useRowSelection must be used within renderCell");return{isRowSelectionDisabled:e.isRowSelectionDisabled,isRowSelected:e.isRowSelected,onRowSelectionChange:t}}const IJ=R.createContext(void 0),DJ=R.createContext(void 0);function Zve(){const e=R.useContext(IJ),t=R.useContext(DJ);if(e===void 0||t===void 0)throw new Error("useHeaderRowSelection must be used within renderHeaderCell");return{isIndeterminate:e.isIndeterminate,isRowSelected:e.isRowSelected,onRowSelectionChange:t}}const cx="rdg-select-column";function eye(e){const{isIndeterminate:t,isRowSelected:n,onRowSelectionChange:r}=Zve();return w.jsx(wF,{"aria-label":"Select All",tabIndex:e.tabIndex,indeterminate:t,value:n,onChange:a=>{r({checked:t?!1:a})}})}function tye(e){const{isRowSelectionDisabled:t,isRowSelected:n,onRowSelectionChange:r}=MJ();return w.jsx(wF,{"aria-label":"Select",tabIndex:e.tabIndex,disabled:t,value:n,onChange:(a,i)=>{r({row:e.row,checked:a,isShiftClick:i})}})}function nye(e){const{isRowSelected:t,onRowSelectionChange:n}=MJ();return w.jsx(wF,{"aria-label":"Select Group",tabIndex:e.tabIndex,value:t,onChange:r=>{n({row:e.row,checked:r,isShiftClick:!1})}})}const rye={key:cx,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell(e){return w.jsx(eye,{...e})},renderCell(e){return w.jsx(tye,{...e})},renderGroupCell(e){return w.jsx(nye,{...e})}},aye="h44jtk67-0-0-beta-51",iye="hcgkhxz7-0-0-beta-51",oye=`rdg-header-sort-name ${iye}`;function sye({column:e,sortDirection:t,priority:n}){return e.sortable?w.jsx(lye,{sortDirection:t,priority:n,children:e.name}):e.name}function lye({sortDirection:e,priority:t,children:n}){const r=u_().renderSortStatus;return w.jsxs("span",{className:aye,children:[w.jsx("span",{className:oye,children:n}),w.jsx("span",{children:r({sortDirection:e,priority:t})})]})}const uye="auto",cye=50;function dye({rawColumns:e,defaultColumnOptions:t,getColumnWidth:n,viewportWidth:r,scrollLeft:a,enableVirtualization:i}){const o=(t==null?void 0:t.width)??uye,l=(t==null?void 0:t.minWidth)??cye,u=(t==null?void 0:t.maxWidth)??void 0,d=(t==null?void 0:t.renderCell)??Jve,f=(t==null?void 0:t.renderHeaderCell)??sye,g=(t==null?void 0:t.sortable)??!1,y=(t==null?void 0:t.resizable)??!1,h=(t==null?void 0:t.draggable)??!1,{columns:v,colSpanColumns:E,lastFrozenColumnIndex:T,headerRowsCount:C}=R.useMemo(()=>{let L=-1,j=1;const z=[];Q(e,1);function Q(re,ge,me){for(const W of re){if("children"in W){const ce={name:W.name,parent:me,idx:-1,colSpan:0,level:0,headerCellClass:W.headerCellClass};Q(W.children,ge+1,ce);continue}const G=W.frozen??!1,q={...W,parent:me,idx:0,level:0,frozen:G,width:W.width??o,minWidth:W.minWidth??l,maxWidth:W.maxWidth??u,sortable:W.sortable??g,resizable:W.resizable??y,draggable:W.draggable??h,renderCell:W.renderCell??d,renderHeaderCell:W.renderHeaderCell??f};z.push(q),G&&L++,ge>j&&(j=ge)}}z.sort(({key:re,frozen:ge},{key:me,frozen:W})=>re===cx?-1:me===cx?1:ge?W?0:-1:W?1:0);const le=[];return z.forEach((re,ge)=>{re.idx=ge,$J(re,ge,0),re.colSpan!=null&&le.push(re)}),{columns:z,colSpanColumns:le,lastFrozenColumnIndex:L,headerRowsCount:j}},[e,o,l,u,d,f,y,g,h]),{templateColumns:k,layoutCssVars:_,totalFrozenColumnWidth:A,columnMetrics:P}=R.useMemo(()=>{const L=new Map;let j=0,z=0;const Q=[];for(const re of v){let ge=n(re);typeof ge=="number"?ge=RJ(ge,re):ge=re.minWidth,Q.push(`${ge}px`),L.set(re,{width:ge,left:j}),j+=ge}if(T!==-1){const re=L.get(v[T]);z=re.left+re.width}const le={};for(let re=0;re<=T;re++){const ge=v[re];le[`--rdg-frozen-left-${ge.idx}`]=`${L.get(ge).left}px`}return{templateColumns:Q,layoutCssVars:le,totalFrozenColumnWidth:z,columnMetrics:L}},[n,v,T]),[N,I]=R.useMemo(()=>{if(!i)return[0,v.length-1];const L=a+A,j=a+r,z=v.length-1,Q=BS(T+1,z);if(L>=j)return[Q,Q];let le=Q;for(;leL)break;le++}let re=le;for(;re=j)break;re++}const ge=ux(Q,le-1),me=BS(z,re+1);return[ge,me]},[P,v,T,a,A,r,i]);return{columns:v,colSpanColumns:E,colOverscanStartIdx:N,colOverscanEndIdx:I,templateColumns:k,layoutCssVars:_,headerRowsCount:C,lastFrozenColumnIndex:T,totalFrozenColumnWidth:A}}function $J(e,t,n){if(n{f.current=a,T(v)});function T(k){k.length!==0&&u(_=>{const A=new Map(_);let P=!1;for(const N of k){const I=NB(r,N);P||(P=I!==_.get(N)),I===void 0?A.delete(N):A.set(N,I)}return P?A:_})}function C(k,_){const{key:A}=k,P=[...n],N=[];for(const{key:L,idx:j,width:z}of t)if(A===L){const Q=typeof _=="number"?`${_}px`:_;P[j]=Q}else g&&typeof z=="string"&&!i.has(L)&&(P[j]=z,N.push(L));r.current.style.gridTemplateColumns=P.join(" ");const I=typeof _=="number"?_:NB(r,A);wc.flushSync(()=>{l(L=>{const j=new Map(L);return j.set(A,I),j}),T(N)}),d==null||d(k,I)}return{gridTemplateColumns:E,handleColumnResize:C}}function NB(e,t){var a;const n=`[data-measuring-cell-key="${CSS.escape(t)}"]`,r=(a=e.current)==null?void 0:a.querySelector(n);return r==null?void 0:r.getBoundingClientRect().width}function pye(){const e=R.useRef(null),[t,n]=R.useState(1),[r,a]=R.useState(1),[i,o]=R.useState(0);return R.useLayoutEffect(()=>{const{ResizeObserver:l}=window;if(l==null)return;const{clientWidth:u,clientHeight:d,offsetWidth:f,offsetHeight:g}=e.current,{width:y,height:h}=e.current.getBoundingClientRect(),v=g-d,E=y-f+u,T=h-v;n(E),a(T),o(v);const C=new l(k=>{const _=k[0].contentBoxSize[0],{clientHeight:A,offsetHeight:P}=e.current;wc.flushSync(()=>{n(_.inlineSize),a(_.blockSize),o(P-A)})});return C.observe(e.current),()=>{C.disconnect()}},[]),[e,t,r,i]}function As(e){const t=R.useRef(e);R.useEffect(()=>{t.current=e});const n=R.useCallback((...r)=>{t.current(...r)},[]);return e&&n}function OE(e){const[t,n]=R.useState(!1);t&&!e&&n(!1);function r(i){i.target!==i.currentTarget&&n(!0)}return{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?r:void 0}}function hye({columns:e,colSpanColumns:t,rows:n,topSummaryRows:r,bottomSummaryRows:a,colOverscanStartIdx:i,colOverscanEndIdx:o,lastFrozenColumnIndex:l,rowOverscanStartIdx:u,rowOverscanEndIdx:d}){const f=R.useMemo(()=>{if(i===0)return 0;let g=i;const y=(h,v)=>v!==void 0&&h+v>i?(g=h,!0):!1;for(const h of t){const v=h.idx;if(v>=g||y(v,Cl(h,l,{type:"HEADER"})))break;for(let E=u;E<=d;E++){const T=n[E];if(y(v,Cl(h,l,{type:"ROW",row:T})))break}if(r!=null){for(const E of r)if(y(v,Cl(h,l,{type:"SUMMARY",row:E})))break}if(a!=null){for(const E of a)if(y(v,Cl(h,l,{type:"SUMMARY",row:E})))break}}return g},[u,d,n,r,a,i,l,t]);return R.useMemo(()=>{const g=[];for(let y=0;y<=o;y++){const h=e[y];y{if(typeof t=="number")return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:T=>T*t,getRowHeight:()=>t,findRowIdx:T=>AB(T/t)};let y=0,h=" ";const v=e.map(T=>{const C=t(T),k={top:y,height:C};return h+=`${C}px `,y+=C,k}),E=T=>ux(0,BS(e.length-1,T));return{totalRowHeight:y,gridTemplateRows:h,getRowTop:T=>v[E(T)].top,getRowHeight:T=>v[E(T)].height,findRowIdx(T){let C=0,k=v.length-1;for(;C<=k;){const _=C+AB((k-C)/2),A=v[_].top;if(A===T)return _;if(AT&&(k=_-1),C>k)return k}return 0}}},[t,e]);let f=0,g=e.length-1;if(a){const h=d(r),v=d(r+n);f=ux(0,h-4),g=BS(e.length-1,v+4)}return{rowOverscanStartIdx:f,rowOverscanEndIdx:g,totalRowHeight:i,gridTemplateRows:o,getRowTop:l,getRowHeight:u,findRowIdx:d}}const gye="c6ra8a37-0-0-beta-51",vye=`rdg-cell-copied ${gye}`,yye="cq910m07-0-0-beta-51",bye=`rdg-cell-dragged-over ${yye}`;function wye({column:e,colSpan:t,isCellSelected:n,isCopied:r,isDraggedOver:a,row:i,rowIdx:o,className:l,onClick:u,onDoubleClick:d,onContextMenu:f,onRowChange:g,selectCell:y,style:h,...v}){const{tabIndex:E,childTabIndex:T,onFocus:C}=OE(n),{cellClass:k}=e;l=_E(e,{[vye]:r,[bye]:a},typeof k=="function"?k(i):k,l);const _=xJ(e,i);function A(j){y({rowIdx:o,idx:e.idx},j)}function P(j){if(u){const z=gS(j);if(u({rowIdx:o,row:i,column:e,selectCell:A},z),z.isGridDefaultPrevented())return}A()}function N(j){if(f){const z=gS(j);if(f({rowIdx:o,row:i,column:e,selectCell:A},z),z.isGridDefaultPrevented())return}A()}function I(j){if(d){const z=gS(j);if(d({rowIdx:o,row:i,column:e,selectCell:A},z),z.isGridDefaultPrevented())return}A(!0)}function L(j){g(e,j)}return w.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!_||void 0,tabIndex:E,className:l,style:{...m0(e,t),...h},onClick:P,onDoubleClick:I,onContextMenu:N,onFocus:C,...v,children:e.renderCell({column:e,row:i,rowIdx:o,isCellEditable:_,tabIndex:T,onRowChange:L})})}const Sye=R.memo(wye);function Eye(e,t){return w.jsx(Sye,{...t},e)}const Tye="c1w9bbhr7-0-0-beta-51",Cye="c1creorc7-0-0-beta-51",kye=`rdg-cell-drag-handle ${Tye}`;function xye({gridRowStart:e,rows:t,column:n,columnWidth:r,maxColIdx:a,isLastRow:i,selectedPosition:o,latestDraggedOverRowIdx:l,isCellEditable:u,onRowsChange:d,onFill:f,onClick:g,setDragging:y,setDraggedOverRowIdx:h}){const{idx:v,rowIdx:E}=o;function T(P){if(P.preventDefault(),P.buttons!==1)return;y(!0),window.addEventListener("mouseover",N),window.addEventListener("mouseup",I);function N(L){L.buttons!==1&&I()}function I(){window.removeEventListener("mouseover",N),window.removeEventListener("mouseup",I),y(!1),C()}}function C(){const P=l.current;if(P===void 0)return;const N=E0&&(d==null||d(L,{indexes:j,column:n}))}function A(){var z;const P=((z=n.colSpan)==null?void 0:z.call(n,{type:"ROW",row:t[E]}))??1,{insetInlineStart:N,...I}=m0(n,P),L="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",j=n.idx+P-1===a;return{...I,gridRowStart:e,marginInlineEnd:j?void 0:L,marginBlockEnd:i?void 0:L,insetInlineStart:N?`calc(${N} + ${r}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0}}return w.jsx("div",{style:A(),className:Ld(kye,n.frozen&&Cye),onClick:g,onMouseDown:T,onDoubleClick:k})}const _ye="cis5rrm7-0-0-beta-51";function Oye({column:e,colSpan:t,row:n,rowIdx:r,onRowChange:a,closeEditor:i,onKeyDown:o,navigate:l}){var C,k,_;const u=R.useRef(void 0),d=((C=e.editorOptions)==null?void 0:C.commitOnOutsideClick)!==!1,f=As(()=>{h(!0,!1)});R.useEffect(()=>{if(!d)return;function A(){u.current=requestAnimationFrame(f)}return addEventListener("mousedown",A,{capture:!0}),()=>{removeEventListener("mousedown",A,{capture:!0}),g()}},[d,f]);function g(){cancelAnimationFrame(u.current)}function y(A){if(o){const P=gS(A);if(o({mode:"EDIT",row:n,column:e,rowIdx:r,navigate(){l(A)},onClose:h},P),P.isGridDefaultPrevented())return}A.key==="Escape"?h():A.key==="Enter"?h(!0):Lve(A)&&l(A)}function h(A=!1,P=!0){A?a(n,!0,P):i(P)}function v(A,P=!1){a(A,P,P)}const{cellClass:E}=e,T=_E(e,"rdg-editor-container",!((k=e.editorOptions)!=null&&k.displayCellContent)&&_ye,typeof E=="function"?E(n):E);return w.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:T,style:m0(e,t),onKeyDown:y,onMouseDownCapture:g,children:e.renderEditCell!=null&&w.jsxs(w.Fragment,{children:[e.renderEditCell({column:e,row:n,rowIdx:r,onRowChange:v,onClose:h}),((_=e.editorOptions)==null?void 0:_.displayCellContent)&&e.renderCell({column:e,row:n,rowIdx:r,isCellEditable:!0,tabIndex:-1,onRowChange:v})]})})}function Rye({column:e,rowIdx:t,isCellSelected:n,selectCell:r}){const{tabIndex:a,onFocus:i}=OE(n),{colSpan:o}=e,l=PJ(e,t),u=e.idx+1;function d(){r({idx:e.idx,rowIdx:t})}return w.jsx("div",{role:"columnheader","aria-colindex":u,"aria-colspan":o,"aria-rowspan":l,"aria-selected":n,tabIndex:a,className:Ld(_J,e.headerCellClass),style:{...OJ(e,t,l),gridColumnStart:u,gridColumnEnd:u+o},onFocus:i,onClick:d,children:e.name})}const Pye="c6l2wv17-0-0-beta-51",Aye="c1kqdw7y7-0-0-beta-51",Nye=`rdg-cell-resizable ${Aye}`,Mye="r1y6ywlx7-0-0-beta-51",Iye="rdg-cell-draggable",Dye="c1bezg5o7-0-0-beta-51",$ye=`rdg-cell-dragging ${Dye}`,Lye="c1vc96037-0-0-beta-51",Fye=`rdg-cell-drag-over ${Lye}`;function jye({column:e,colSpan:t,rowIdx:n,isCellSelected:r,onColumnResize:a,onColumnsReorder:i,sortColumns:o,onSortColumnsChange:l,selectCell:u,shouldFocusGrid:d,direction:f,dragDropKey:g}){const y=R.useRef(!1),[h,v]=R.useState(!1),[E,T]=R.useState(!1),C=f==="rtl",k=PJ(e,n),{tabIndex:_,childTabIndex:A,onFocus:P}=OE(r),N=o==null?void 0:o.findIndex(fe=>fe.columnKey===e.key),I=N!==void 0&&N>-1?o[N]:void 0,L=I==null?void 0:I.direction,j=I!==void 0&&o.length>1?N+1:void 0,z=L&&!j?L==="ASC"?"ascending":"descending":void 0,{sortable:Q,resizable:le,draggable:re}=e,ge=_E(e,e.headerCellClass,{[Pye]:Q,[Nye]:le,[Iye]:re,[$ye]:h,[Fye]:E});function me(fe){if(fe.pointerType==="mouse"&&fe.buttons!==1)return;fe.preventDefault();const{currentTarget:xe,pointerId:Ie}=fe,qe=xe.parentElement,{right:tt,left:Ge}=qe.getBoundingClientRect(),at=C?fe.clientX-Ge:tt-fe.clientX;y.current=!1;function Et(xt){const{width:Rt,right:cn,left:qt}=qe.getBoundingClientRect();let Wt=C?cn+at-xt.clientX:xt.clientX+at-qt;Wt=RJ(Wt,e),Rt>0&&Wt!==Rt&&a(e,Wt)}function kt(xt){y.current||Et(xt),xe.removeEventListener("pointermove",Et),xe.removeEventListener("lostpointercapture",kt)}xe.setPointerCapture(Ie),xe.addEventListener("pointermove",Et),xe.addEventListener("lostpointercapture",kt)}function W(){y.current=!0,a(e,"max-content")}function G(fe){if(l==null)return;const{sortDescendingFirst:xe}=e;if(I===void 0){const Ie={columnKey:e.key,direction:xe?"DESC":"ASC"};l(o&&fe?[...o,Ie]:[Ie])}else{let Ie;if((xe===!0&&L==="DESC"||xe!==!0&&L==="ASC")&&(Ie={columnKey:e.key,direction:L==="ASC"?"DESC":"ASC"}),fe){const qe=[...o];Ie?qe[N]=Ie:qe.splice(N,1),l(qe)}else l(Ie?[Ie]:[])}}function q(fe){u({idx:e.idx,rowIdx:n}),Q&&G(fe.ctrlKey||fe.metaKey)}function ce(fe){P==null||P(fe),d&&u({idx:0,rowIdx:n})}function H(fe){(fe.key===" "||fe.key==="Enter")&&(fe.preventDefault(),G(fe.ctrlKey||fe.metaKey))}function Y(fe){fe.dataTransfer.setData(g,e.key),fe.dataTransfer.dropEffect="move",v(!0)}function ie(){v(!1)}function J(fe){fe.preventDefault(),fe.dataTransfer.dropEffect="move"}function ee(fe){if(T(!1),fe.dataTransfer.types.includes(g.toLowerCase())){const xe=fe.dataTransfer.getData(g.toLowerCase());xe!==e.key&&(fe.preventDefault(),i==null||i(xe,e.key))}}function Z(fe){MB(fe)&&T(!0)}function ue(fe){MB(fe)&&T(!1)}let ke;return re&&(ke={draggable:!0,onDragStart:Y,onDragEnd:ie,onDragOver:J,onDragEnter:Z,onDragLeave:ue,onDrop:ee}),w.jsxs("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":k,"aria-selected":r,"aria-sort":z,tabIndex:d?0:_,className:ge,style:{...OJ(e,n,k),...m0(e,t)},onFocus:ce,onClick:q,onKeyDown:Q?H:void 0,...ke,children:[e.renderHeaderCell({column:e,sortDirection:L,priority:j,tabIndex:A}),le&&w.jsx("div",{className:Mye,onClick:Ive,onPointerDown:me,onDoubleClick:W})]})}function MB(e){const t=e.relatedTarget;return!e.currentTarget.contains(t)}const Uye="r1upfr807-0-0-beta-51",EF=`rdg-row ${Uye}`,Bye="r190mhd37-0-0-beta-51",c_="rdg-row-selected",Wye="r139qu9m7-0-0-beta-51",zye="rdg-top-summary-row",qye="rdg-bottom-summary-row",Hye="h10tskcx7-0-0-beta-51",LJ=`rdg-header-row ${Hye}`;function Vye({rowIdx:e,columns:t,onColumnResize:n,onColumnsReorder:r,sortColumns:a,onSortColumnsChange:i,lastFrozenColumnIndex:o,selectedCellIdx:l,selectCell:u,shouldFocusGrid:d,direction:f}){const g=R.useId(),y=[];for(let h=0;ht&&u.parent!==void 0;)u=u.parent;if(u.level===t&&!o.has(u)){o.add(u);const{idx:d}=u;i.push(w.jsx(Rye,{column:u,rowIdx:e,isCellSelected:r===d,selectCell:a},d))}}}return w.jsx("div",{role:"row","aria-rowindex":e,className:LJ,children:i})}var Kye=R.memo(Yye);function Xye({className:e,rowIdx:t,gridRowStart:n,selectedCellIdx:r,isRowSelectionDisabled:a,isRowSelected:i,copiedCellIdx:o,draggedOverCellIdx:l,lastFrozenColumnIndex:u,row:d,viewportColumns:f,selectedCellEditor:g,onCellClick:y,onCellDoubleClick:h,onCellContextMenu:v,rowClass:E,setDraggedOverRowIdx:T,onMouseEnter:C,onRowChange:k,selectCell:_,...A}){const P=u_().renderCell,N=As((z,Q)=>{k(z,t,Q)});function I(z){T==null||T(t),C==null||C(z)}e=Ld(EF,`rdg-row-${t%2===0?"even":"odd"}`,{[c_]:r===-1},E==null?void 0:E(d,t),e);const L=[];for(let z=0;z({isRowSelected:i,isRowSelectionDisabled:a}),[a,i]);return w.jsx(SF,{value:j,children:w.jsx("div",{role:"row",className:e,onMouseEnter:I,style:bF(n),...A,children:L})})}const Qye=R.memo(Xye);function Jye(e,t){return w.jsx(Qye,{...t},e)}function Zye({scrollToPosition:{idx:e,rowIdx:t},gridRef:n,setScrollToCellPosition:r}){const a=R.useRef(null);return R.useLayoutEffect(()=>{Ok(a.current)}),R.useLayoutEffect(()=>{function i(){r(null)}const o=new IntersectionObserver(i,{root:n.current,threshold:1});return o.observe(a.current),()=>{o.disconnect()}},[n,r]),w.jsx("div",{ref:a,style:{gridColumn:e===void 0?"1/-1":e+1,gridRow:t===void 0?"1/-1":t+2}})}const ebe="a3ejtar7-0-0-beta-51",tbe=`rdg-sort-arrow ${ebe}`;function nbe({sortDirection:e,priority:t}){return w.jsxs(w.Fragment,{children:[rbe({sortDirection:e}),abe({priority:t})]})}function rbe({sortDirection:e}){return e===void 0?null:w.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:tbe,"aria-hidden":!0,children:w.jsx("path",{d:e==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function abe({priority:e}){return e}const ibe="rnvodz57-0-0-beta-51",obe=`rdg ${ibe}`,sbe="vlqv91k7-0-0-beta-51",lbe=`rdg-viewport-dragging ${sbe}`,ube="f1lsfrzw7-0-0-beta-51",cbe="f1cte0lg7-0-0-beta-51",dbe="s8wc6fl7-0-0-beta-51";function fbe({column:e,colSpan:t,row:n,rowIdx:r,isCellSelected:a,selectCell:i}){var y;const{tabIndex:o,childTabIndex:l,onFocus:u}=OE(a),{summaryCellClass:d}=e,f=_E(e,dbe,typeof d=="function"?d(n):d);function g(){i({rowIdx:r,idx:e.idx})}return w.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":a,tabIndex:o,className:f,style:m0(e,t),onClick:g,onFocus:u,children:(y=e.renderSummaryCell)==null?void 0:y.call(e,{column:e,row:n,tabIndex:l})})}var pbe=R.memo(fbe);const hbe="skuhp557-0-0-beta-51",mbe="tf8l5ub7-0-0-beta-51",gbe=`rdg-summary-row ${hbe}`;function vbe({rowIdx:e,gridRowStart:t,row:n,viewportColumns:r,top:a,bottom:i,lastFrozenColumnIndex:o,selectedCellIdx:l,isTop:u,selectCell:d,"aria-rowindex":f}){const g=[];for(let y=0;ynew Map),[ft,ut]=R.useState(()=>new Map),[Nt,U]=R.useState(null),[D,F]=R.useState(!1),[ae,Te]=R.useState(void 0),[Fe,We]=R.useState(null),[Tt,Mt]=R.useState(!1),[be,Ee]=R.useState(-1),gt=R.useCallback(rt=>Oe.get(rt.key)??ft.get(rt.key)??rt.width,[ft,Oe]),[Lt,_t,Ut,On]=pye(),{columns:gn,colSpanColumns:ln,lastFrozenColumnIndex:Bn,headerRowsCount:oa,colOverscanStartIdx:Qa,colOverscanEndIdx:ha,templateColumns:vn,layoutCssVars:_a,totalFrozenColumnWidth:Bo}=dye({rawColumns:n,defaultColumnOptions:T,getColumnWidth:gt,scrollLeft:qt,viewportWidth:_t,enableVirtualization:kt}),Oa=(a==null?void 0:a.length)??0,Ra=(i==null?void 0:i.length)??0,Wo=Oa+Ra,we=oa+Oa,ve=oa-1,$e=-we,ye=$e+ve,Se=r.length+Ra-1,[ne,Me]=R.useState(()=>({idx:-1,rowIdx:$e-1,mode:"SELECT"})),Qe=R.useRef(ae),ot=R.useRef(null),Bt=ke==="treegrid",yn=oa*xe,an=Wo*Ie,Dn=Ut-yn-an,En=g!=null&&h!=null,Rr=xt==="rtl",Pr=Rr?"ArrowRight":"ArrowLeft",lr=Rr?"ArrowLeft":"ArrowRight",qs=J??oa+r.length+Wo,Gv=R.useMemo(()=>({renderCheckbox:at,renderSortStatus:Ge,renderCell:tt}),[at,Ge,tt]),$l=R.useMemo(()=>{let rt=!1,pt=!1;if(o!=null&&g!=null&&g.size>0){for(const bt of r)if(g.has(o(bt))?rt=!0:pt=!0,rt&&pt)break}return{isRowSelected:rt&&!pt,isIndeterminate:rt&&pt}},[r,g,o]),{rowOverscanStartIdx:so,rowOverscanEndIdx:oi,totalRowHeight:of,gridTemplateRows:Yv,getRowTop:Ph,getRowHeight:x0,findRowIdx:Dc}=mye({rows:r,rowHeight:fe,clientHeight:Dn,scrollTop:Rt,enableVirtualization:kt}),qi=hye({columns:gn,colSpanColumns:ln,colOverscanStartIdx:Qa,colOverscanEndIdx:ha,lastFrozenColumnIndex:Bn,rowOverscanStartIdx:so,rowOverscanEndIdx:oi,rows:r,topSummaryRows:a,bottomSummaryRows:i}),{gridTemplateColumns:zo,handleColumnResize:Si}=fye(gn,qi,vn,Lt,_t,Oe,ft,dt,ut,I),sf=Bt?-1:0,Au=gn.length-1,Hs=Ul(ne),Vs=us(ne),$c=xe+of+an+On,_0=As(Si),Ei=As(L),lf=As(E),uf=As(C),Ah=As(k),Ll=As(_),cf=As(Kv),df=As(Nh),lo=As(Mu),ff=As(Gs),pf=As(({idx:rt,rowIdx:pt})=>{Gs({rowIdx:$e+pt-1,idx:rt})}),hf=R.useCallback(rt=>{Te(rt),Qe.current=rt},[]),Nu=R.useCallback(()=>{const rt=DB(Lt.current);if(rt===null)return;Ok(rt),(rt.querySelector('[tabindex="0"]')??rt).focus({preventScroll:!0})},[Lt]);R.useLayoutEffect(()=>{ot.current!==null&&Hs&&ne.idx===-1&&(ot.current.focus({preventScroll:!0}),Ok(ot.current))},[Hs,ne]),R.useLayoutEffect(()=>{Tt&&(Mt(!1),Nu())},[Tt,Nu]),R.useImperativeHandle(t,()=>({element:Lt.current,scrollToCell({idx:rt,rowIdx:pt}){const bt=rt!==void 0&&rt>Bn&&rt{cn(pt),Wt(Yve(bt))}),N==null||N(rt)}function Mu(rt,pt,bt){if(typeof l!="function"||bt===r[pt])return;const zt=[...r];zt[pt]=bt,l(zt,{indexes:[pt],column:rt})}function Fl(){ne.mode==="EDIT"&&Mu(gn[ne.idx],ne.rowIdx,ne.row)}function jl(){const{idx:rt,rowIdx:pt}=ne,bt=r[pt],zt=gn[rt].key;U({row:bt,columnKey:zt}),z==null||z({sourceRow:bt,sourceColumnKey:zt})}function Xv(){if(!Q||!l||Nt===null||!Iu(ne))return;const{idx:rt,rowIdx:pt}=ne,bt=gn[rt],zt=r[pt],Sn=Q({sourceRow:Nt.row,sourceColumnKey:Nt.columnKey,targetRow:zt,targetColumnKey:bt.key});Mu(bt,pt,Sn)}function Ih(rt){if(!Vs)return;const pt=r[ne.rowIdx],{key:bt,shiftKey:zt}=rt;if(En&&zt&&bt===" "){NP(o);const Sn=o(pt);Nh({row:pt,checked:!g.has(Sn),isShiftClick:!1}),rt.preventDefault();return}Iu(ne)&&$ve(rt)&&Me(({idx:Sn,rowIdx:ur})=>({idx:Sn,rowIdx:ur,mode:"EDIT",row:pt,originalRow:pt}))}function Dh(rt){return rt>=sf&&rt<=Au}function uo(rt){return rt>=0&&rt=$e&&pt<=Se&&Dh(rt)}function Fc({idx:rt,rowIdx:pt}){return uo(pt)&&rt>=0&&rt<=Au}function us({idx:rt,rowIdx:pt}){return uo(pt)&&Dh(rt)}function Iu(rt){return Fc(rt)&&Uve({columns:gn,rows:r,selectedPosition:rt})}function Gs(rt,pt){if(!Ul(rt))return;Fl();const bt=$B(ne,rt);if(pt&&Iu(rt)){const zt=r[rt.rowIdx];Me({...rt,mode:"EDIT",row:zt,originalRow:zt})}else bt?Ok(DB(Lt.current)):(Mt(!0),Me({...rt,mode:"SELECT"}));P&&!bt&&P({rowIdx:rt.rowIdx,row:uo(rt.rowIdx)?r[rt.rowIdx]:void 0,column:gn[rt.idx]})}function Qv(rt,pt,bt){const{idx:zt,rowIdx:Sn}=ne,ur=Hs&&zt===-1;switch(rt){case"ArrowUp":return{idx:zt,rowIdx:Sn-1};case"ArrowDown":return{idx:zt,rowIdx:Sn+1};case Pr:return{idx:zt-1,rowIdx:Sn};case lr:return{idx:zt+1,rowIdx:Sn};case"Tab":return{idx:zt+(bt?-1:1),rowIdx:Sn};case"Home":return ur?{idx:zt,rowIdx:$e}:{idx:0,rowIdx:pt?$e:Sn};case"End":return ur?{idx:zt,rowIdx:Se}:{idx:Au,rowIdx:pt?Se:Sn};case"PageUp":{if(ne.rowIdx===$e)return ne;const Ar=Ph(Sn)+x0(Sn)-Dn;return{idx:zt,rowIdx:Ar>0?Dc(Ar):0}}case"PageDown":{if(ne.rowIdx>=r.length)return ne;const Ar=Ph(Sn)+Dn;return{idx:zt,rowIdx:Arrt&&rt>=ae)?ne.idx:void 0}function Jv(){if(j==null||ne.mode==="EDIT"||!us(ne))return;const{idx:rt,rowIdx:pt}=ne,bt=gn[rt];if(bt.renderEditCell==null||bt.editable===!1)return;const zt=gt(bt);return w.jsx(xye,{gridRowStart:we+pt+1,rows:r,column:bt,columnWidth:zt,maxColIdx:Au,isLastRow:pt===Se,selectedPosition:ne,isCellEditable:Iu,latestDraggedOverRowIdx:Qe,onRowsChange:l,onClick:Nu,onFill:j,setDragging:F,setDraggedOverRowIdx:hf})}function si(rt){if(ne.rowIdx!==rt||ne.mode==="SELECT")return;const{idx:pt,row:bt}=ne,zt=gn[pt],Sn=Cl(zt,Bn,{type:"ROW",row:bt}),ur=Jn=>{Mt(Jn),Me(({idx:Pa,rowIdx:Ja})=>({idx:Pa,rowIdx:Ja,mode:"SELECT"}))},Ar=(Jn,Pa,Ja)=>{Pa?wc.flushSync(()=>{Mu(zt,ne.rowIdx,Jn),ur(Ja)}):Me(Bl=>({...Bl,row:Jn}))};return r[ne.rowIdx]!==ne.originalRow&&ur(!1),w.jsx(Oye,{column:zt,colSpan:Sn,row:bt,rowIdx:rt,onRowChange:Ar,closeEditor:ur,onKeyDown:A,navigate:ar},zt.key)}function co(rt){const pt=ne.idx===-1?void 0:gn[ne.idx];return pt!==void 0&&ne.rowIdx===rt&&!qi.includes(pt)?ne.idx>ha?[...qi,pt]:[...qi.slice(0,Bn+1),pt,...qi.slice(Bn+1)]:qi}function mf(){const rt=[],{idx:pt,rowIdx:bt}=ne,zt=Vs&&btoi?oi+1:oi;for(let ur=zt;ur<=Sn;ur++){const Ar=ur===so-1||ur===oi+1,Jn=Ar?bt:ur;let Pa=qi;const Ja=pt===-1?void 0:gn[pt];Ja!==void 0&&(Ar?Pa=[Ja]:Pa=co(Jn));const Bl=r[Jn],Zv=we+Jn+1;let gf=Jn,vf=!1;typeof o=="function"&&(gf=o(Bl),vf=(g==null?void 0:g.has(gf))??!1),rt.push(qe(gf,{"aria-rowindex":we+Jn+1,"aria-selected":En?vf:void 0,rowIdx:Jn,row:Bl,viewportColumns:Pa,isRowSelectionDisabled:(y==null?void 0:y(Bl))??!1,isRowSelected:vf,onCellClick:uf,onCellDoubleClick:Ah,onCellContextMenu:Ll,rowClass:W,gridRowStart:Zv,copiedCellIdx:Nt!==null&&Nt.row===Bl?gn.findIndex(li=>li.key===Nt.columnKey):void 0,selectedCellIdx:bt===Jn?pt:void 0,draggedOverCellIdx:ir(Jn),setDraggedOverRowIdx:D?hf:void 0,lastFrozenColumnIndex:Bn,onRowChange:lo,selectCell:ff,selectedCellEditor:si(Jn)}))}return rt}(ne.idx>Au||ne.rowIdx>Se)&&(Me({idx:-1,rowIdx:$e-1,mode:"SELECT"}),hf(void 0));let Ys=`repeat(${oa}, ${xe}px)`;Oa>0&&(Ys+=` repeat(${Oa}, ${Ie}px)`),r.length>0&&(Ys+=Yv),Ra>0&&(Ys+=` repeat(${Ra}, ${Ie}px)`);const $h=ne.idx===-1&&ne.rowIdx!==$e-1;return w.jsxs("div",{role:ke,"aria-label":ce,"aria-labelledby":H,"aria-description":Y,"aria-describedby":ie,"aria-multiselectable":En?!0:void 0,"aria-colcount":gn.length,"aria-rowcount":qs,className:Ld(obe,{[lbe]:D},ge),style:{...me,scrollPaddingInlineStart:ne.idx>Bn||(Fe==null?void 0:Fe.idx)!==void 0?`${Bo}px`:void 0,scrollPaddingBlock:uo(ne.rowIdx)||(Fe==null?void 0:Fe.rowIdx)!==void 0?`${yn+Oa*Ie}px ${Ra*Ie}px`:void 0,gridTemplateColumns:zo,gridTemplateRows:Ys,"--rdg-header-row-height":`${xe}px`,"--rdg-scroll-height":`${$c}px`,..._a},dir:xt,ref:Lt,onScroll:Mh,onKeyDown:Lc,"data-testid":ee,"data-cy":Z,children:[w.jsxs(AJ,{value:Gv,children:[w.jsx(DJ,{value:cf,children:w.jsxs(IJ,{value:$l,children:[Array.from({length:ve},(rt,pt)=>w.jsx(Kye,{rowIdx:pt+1,level:-ve+pt,columns:co($e+pt),selectedCellIdx:ne.rowIdx===$e+pt?ne.idx:void 0,selectCell:pf},pt)),w.jsx(Gye,{rowIdx:oa,columns:co(ye),onColumnResize:_0,onColumnsReorder:Ei,sortColumns:v,onSortColumnsChange:lf,lastFrozenColumnIndex:Bn,selectedCellIdx:ne.rowIdx===ye?ne.idx:void 0,selectCell:pf,shouldFocusGrid:!Hs,direction:xt})]})}),r.length===0&&Et?Et:w.jsxs(w.Fragment,{children:[a==null?void 0:a.map((rt,pt)=>{const bt=oa+1+pt,zt=ye+1+pt,Sn=ne.rowIdx===zt,ur=yn+Ie*pt;return w.jsx(IB,{"aria-rowindex":bt,rowIdx:zt,gridRowStart:bt,row:rt,top:ur,bottom:void 0,viewportColumns:co(zt),lastFrozenColumnIndex:Bn,selectedCellIdx:Sn?ne.idx:void 0,isTop:!0,selectCell:ff},pt)}),w.jsx(NJ,{value:df,children:mf()}),i==null?void 0:i.map((rt,pt)=>{const bt=we+r.length+pt+1,zt=r.length+pt,Sn=ne.rowIdx===zt,ur=Dn>of?Ut-Ie*(i.length-pt):void 0,Ar=ur===void 0?Ie*(i.length-1-pt):void 0;return w.jsx(IB,{"aria-rowindex":qs-Ra+pt+1,rowIdx:zt,gridRowStart:bt,row:rt,top:ur,bottom:Ar,viewportColumns:co(zt),lastFrozenColumnIndex:Bn,selectedCellIdx:Sn?ne.idx:void 0,isTop:!1,selectCell:ff},pt)})]})]}),Jv(),jve(qi),Bt&&w.jsx("div",{ref:ot,tabIndex:$h?0:-1,className:Ld(ube,{[cbe]:!uo(ne.rowIdx),[Bye]:$h,[Wye]:$h&&Bn!==-1}),style:{gridRowStart:ne.rowIdx+we+1}}),Fe!==null&&w.jsx(Zye,{scrollToPosition:Fe,setScrollToCellPosition:We,gridRef:Lt})]})}function DB(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function $B(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}function bbe({id:e,groupKey:t,childRows:n,isExpanded:r,isCellSelected:a,column:i,row:o,groupColumnIndex:l,isGroupByColumn:u,toggleGroup:d}){var E;const{tabIndex:f,childTabIndex:g,onFocus:y}=OE(a);function h(){d(e)}const v=u&&l===i.idx;return w.jsx("div",{role:"gridcell","aria-colindex":i.idx+1,"aria-selected":a,tabIndex:f,className:_E(i),style:{...m0(i),cursor:v?"pointer":"default"},onClick:v?h:void 0,onFocus:y,children:(!u||v)&&((E=i.renderGroupCell)==null?void 0:E.call(i,{groupKey:t,childRows:n,column:i,row:o,isExpanded:r,tabIndex:g,toggleGroup:h}))},i.key)}var wbe=R.memo(bbe);const Sbe="g1yxluv37-0-0-beta-51",Ebe=`rdg-group-row ${Sbe}`;function Tbe({className:e,row:t,rowIdx:n,viewportColumns:r,selectedCellIdx:a,isRowSelected:i,selectCell:o,gridRowStart:l,groupBy:u,toggleGroup:d,isRowSelectionDisabled:f,...g}){const y=r[0].key===cx?t.level+1:t.level;function h(){o({rowIdx:n,idx:-1})}const v=R.useMemo(()=>({isRowSelectionDisabled:!1,isRowSelected:i}),[i]);return w.jsx(SF,{value:v,children:w.jsx("div",{role:"row","aria-level":t.level+1,"aria-setsize":t.setSize,"aria-posinset":t.posInSet+1,"aria-expanded":t.isExpanded,className:Ld(EF,Ebe,`rdg-row-${n%2===0?"even":"odd"}`,a===-1&&c_,e),onClick:h,style:bF(l),...g,children:r.map(E=>w.jsx(wbe,{id:t.id,groupKey:t.groupKey,childRows:t.childRows,isExpanded:t.isExpanded,isCellSelected:a===E.idx,column:E,row:t,groupColumnIndex:y,toggleGroup:d,isGroupByColumn:u.includes(E.key)},E.key))})})}R.memo(Tbe);const FJ=({value:e})=>{const t=n=>{n.stopPropagation(),navigator.clipboard.writeText(e).then(()=>{})};return w.jsx("div",{className:"table-btn table-copy-btn",onClick:t,children:w.jsx(Cbe,{})})},Cbe=({size:e=16,color:t="silver",style:n={}})=>w.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n,children:w.jsx("path",{d:"M16 1H6C4.9 1 4 1.9 4 3V17H6V3H16V1ZM18 5H10C8.9 5 8 5.9 8 7V21C8 22.1 8.9 23 10 23H18C19.1 23 20 22.1 20 21V7C20 5.9 19.1 5 18 5ZM18 21H10V7H18V21Z",fill:t})}),kbe=({value:e})=>{const{addRouter:t}=Lv(),n=r=>{r.stopPropagation(),t(e)};return w.jsx("div",{className:"table-btn table-open-in-new-router",onClick:n,children:w.jsx(xbe,{})})},xbe=({size:e=16,color:t="silver",style:n={}})=>w.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer",...n},children:w.jsx("path",{d:"M9 3H5C3.895 3 3 3.895 3 5v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2v-4h-2v4H5V5h4V3ZM21 3h-6v2h3.586l-9.293 9.293 1.414 1.414L20 6.414V10h2V3Z",fill:t})});/** +***************************************************************************** */var _L=function(e,t){return _L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},_L(e,t)};function LE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");_L(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Zi=function(){return Zi=Object.assign||function(t){for(var n,r=1,a=arguments.length;r{e(!1)})},refs:[]});function Lve({mref:e,context:t}){const n=At(),r=e.component,a=async()=>{e.onSubmit&&await e.onSubmit()===!0&&t.closeModal(e.id)};return w.jsx("div",{className:"modal d-block with-fade-in",children:w.jsx("div",{className:"modal-dialog",children:w.jsxs("div",{className:"modal-content",children:[w.jsxs("div",{className:"modal-header",children:[w.jsx("h5",{className:"modal-title",children:e.title}),w.jsx("button",{type:"button",id:"cls",className:"btn-close",onClick:()=>t.closeModal(e.id),"aria-label":"Close"})]}),w.jsx("div",{className:"modal-body",children:w.jsx("p",{children:w.jsx(r,{})})}),w.jsxs("div",{className:"modal-footer",children:[w.jsx("button",{type:"button",className:"btn btn-secondary",autoFocus:!0,onClick:()=>t.closeModal(e.id),children:n.close}),w.jsx("button",{onClick:a,type:"button",className:"btn btn-primary",children:e.confirmButtonLabel||n.saveChanges})]})]})})})}function Fve(){const e=R.useContext(b_);return w.jsxs(w.Fragment,{children:[e.refs.map(t=>w.jsx(Lve,{context:e,mref:t},t.id)),e.refs.length?w.jsx("div",{className:oa("modal-backdrop fade",e.refs.length&&"show")}):null]})}function jve({children:e}){const[t,n]=R.useState([]),r=l=>{let u=(Math.random()+1).toString(36).substring(2);const d={...l,id:u};n(f=>[...f,d])},a=l=>{n(u=>u.filter(d=>d.id!==l))},i=()=>new Promise(l=>{l(!0)});return mF("Escape",()=>{n(l=>l.filter((u,d)=>d!==l.length-1))}),w.jsx(b_.Provider,{value:{confirm:i,refs:t,closeModal:a,openModal:r},children:e})}const LJ=()=>{const{openDrawer:e,openModal:t}=bF();return{confirmDrawer:({title:a,description:i,cancelLabel:o,confirmLabel:l})=>e(({close:u,resolve:d})=>w.jsxs("div",{className:"confirm-drawer-container p-3",children:[w.jsx("h2",{children:a}),w.jsx("span",{children:i}),w.jsxs("div",{children:[w.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>d(),children:l}),w.jsx("button",{className:"d-block w-100 btn",onClick:()=>u(),children:o})]})]})),confirmModal:({title:a,description:i,cancelLabel:o,confirmLabel:l})=>t(({close:u,resolve:d})=>w.jsxs("div",{className:"confirm-drawer-container p-3",children:[w.jsx("span",{children:i}),w.jsxs("div",{className:"row mt-4",children:[w.jsx("div",{className:"col-md-6",children:w.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>d(),children:l})}),w.jsx("div",{className:"col-md-6",children:w.jsx("button",{className:"d-block w-100 btn",onClick:()=>u(),children:o})})]})]}),{title:a})}};function Uve({urlMask:e,submitDelete:t,onRecordsDeleted:n,initialFilters:r}){const a=At(),i=xr(),{confirmModal:o}=LJ(),{withDebounce:l}=GQ(),u={itemsPerPage:100,startIndex:0,sorting:[],...r||{}},[d,f]=R.useState(u),[g,y]=R.useState(u),{search:h}=Zd(),v=R.useRef(!1);R.useEffect(()=>{if(v.current)return;v.current=!0;let me={};try{me=qa.parse(h.substring(1)),delete me.startIndex}catch{}f({...u,...me}),y({...u,...me})},[h]);const[E,T]=R.useState([]),k=(me=>{var G;const W={...me};return delete W.startIndex,delete W.itemsPerPage,((G=W==null?void 0:W.sorting)==null?void 0:G.length)===0&&delete W.sorting,JSON.stringify(W)})(d),_=me=>{T(me)},A=(me,W=!0)=>{const G={...d,...me};W&&(G.startIndex=0),f(G),i.push("?"+qa.stringify(G),void 0,{},!0),l(()=>{y(G)},500)},P=me=>{A({itemsPerPage:me},!1)},N=me=>me.map(W=>`${W.columnName} ${W.direction}`).join(", "),I=me=>{A({sorting:me,sort:N(me)},!1)},L=me=>{A({startIndex:me},!1)},j=me=>{A({startIndex:0})};R.useContext(b_);const z=me=>({query:me.map(W=>`unique_id = ${W}`).join(" or "),uniqueId:""}),Q=async()=>{o({title:a.confirm,confirmLabel:a.common.yes,cancelLabel:a.common.no,description:a.deleteConfirmMessage}).promise.then(({type:me})=>{if(me==="resolved")return t(z(E),null)}).then(()=>{n&&n()})},le=()=>({label:a.deleteAction,onSelect(){Q()},icon:xu.delete,uniqueActionKey:"GENERAL_DELETE_ACTION"}),{addActions:re,removeActionMenu:ge}=Ehe();return R.useEffect(()=>{if(E.length>0&&typeof t<"u")return re("table-selection",[le()]);ge("table-selection")},[E]),w0(Ir.Delete,()=>{E.length>0&&typeof t<"u"&&Q()}),{filters:d,setFilters:f,setFilter:A,setSorting:I,setStartIndex:L,selection:E,setSelection:_,onFiltersChange:j,queryHash:k,setPageSize:P,debouncedFilters:g}}function Bve({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/table-view-sizing/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.TableViewSizingEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}class PF extends wn{constructor(...t){super(...t),this.children=void 0,this.tableName=void 0,this.sizes=void 0}}PF.Navigation={edit(e,t){return`${t?"/"+t:".."}/table-view-sizing/edit/${e}`},create(e){return`${e?"/"+e:".."}/table-view-sizing/new`},single(e,t){return`${t?"/"+t:".."}/table-view-sizing/${e}`},query(e={},t){return`${t?"/"+t:".."}/table-view-sizings`},Redit:"table-view-sizing/edit/:uniqueId",Rcreate:"table-view-sizing/new",Rsingle:"table-view-sizing/:uniqueId",Rquery:"table-view-sizings"};PF.definition={rpc:{query:{}},name:"tableViewSizing",features:{},gormMap:{},fields:[{name:"tableName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"sizes",type:"string",computedType:"string",gormMap:{}}],cliShort:"tvs",description:"Used to store meta data about user tables (in front-end, or apps for example) about the size of the columns"};PF.Fields={...wn.Fields,tableName:"tableName",sizes:"sizes"};function Wve(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/table-view-sizing".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.TableViewSizingEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function FJ(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t1&&(!e.frozen||e.idx+r-1<=t))return r}function zve(e){e.stopPropagation()}function jk(e){e==null||e.scrollIntoView({inline:"nearest",block:"nearest"})}function xS(e){let t=!1;const n={...e,preventGridDefault(){t=!0},isGridDefaultPrevented(){return t}};return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}const qve=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function OL(e){return(e.ctrlKey||e.metaKey)&&e.key!=="Control"}function Hve(e){return OL(e)&&e.keyCode!==86?!1:!qve.has(e.key)}function Vve({key:e,target:t}){var n;return e==="Tab"&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)?((n=t.closest(".rdg-editor-container"))==null?void 0:n.querySelectorAll("input, textarea, select").length)===1:!1}const Gve="mlln6zg7-0-0-beta-51";function Yve(e){return e.map(({key:t,idx:n,minWidth:r,maxWidth:a})=>w.jsx("div",{className:Gve,style:{gridColumnStart:n+1,minWidth:r,maxWidth:a},"data-measuring-cell-key":t},t))}function Kve({selectedPosition:e,columns:t,rows:n}){const r=t[e.idx],a=n[e.rowIdx];return jJ(r,a)}function jJ(e,t){return e.renderEditCell!=null&&(typeof e.editable=="function"?e.editable(t):e.editable)!==!1}function Xve({rows:e,topSummaryRows:t,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:a,lastFrozenColumnIndex:i,column:o}){const l=(t==null?void 0:t.length)??0;if(r===a)return Rl(o,i,{type:"HEADER"});if(t&&r>a&&r<=l+a)return Rl(o,i,{type:"SUMMARY",row:t[r+l]});if(r>=0&&r{for(const I of a){const L=I.idx;if(L>T)break;const j=Xve({rows:i,topSummaryRows:o,bottomSummaryRows:l,rowIdx:C,mainHeaderRowIdx:d,lastFrozenColumnIndex:v,column:I});if(j&&T>L&&TN.level+d,P=()=>{if(t){let I=r[T].parent;for(;I!==void 0;){const L=A(I);if(C===L){T=I.idx+I.colSpan;break}I=I.parent}}else if(e){let I=r[T].parent,L=!1;for(;I!==void 0;){const j=A(I);if(C>=j){T=I.idx,C=j,L=!0;break}I=I.parent}L||(T=g,C=y)}};if(E(h)&&(_(t),C=L&&(C=j,T=I.idx),I=I.parent}}return{idx:T,rowIdx:C}}function Jve({maxColIdx:e,minRowIdx:t,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:a},shiftKey:i}){return i?a===0&&r===t:a===e&&r===n}const Zve="cj343x07-0-0-beta-51",UJ=`rdg-cell ${Zve}`,eye="csofj7r7-0-0-beta-51",tye=`rdg-cell-frozen ${eye}`;function AF(e){return{"--rdg-grid-row-start":e}}function BJ(e,t,n){const r=t+1,a=`calc(${n-1} * var(--rdg-header-row-height))`;return e.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:r,paddingBlockStart:a}:{insetBlockStart:`calc(${t-n} * var(--rdg-header-row-height))`,gridRowStart:r-n,gridRowEnd:r,paddingBlockStart:a}}function C0(e,t=1){const n=e.idx+1;return{gridColumnStart:n,gridColumnEnd:n+t,insetInlineStart:e.frozen?`var(--rdg-frozen-left-${e.idx})`:void 0}}function FE(e,...t){return jd(UJ,{[tye]:e.frozen},...t)}const{min:XS,max:wx,floor:qB,sign:nye,abs:rye}=Math;function WP(e){if(typeof e!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function WJ(e,{minWidth:t,maxWidth:n}){return e=wx(e,t),typeof n=="number"&&n>=t?XS(e,n):e}function zJ(e,t){return e.parent===void 0?t:e.level-e.parent.level}const aye="c1bn88vv7-0-0-beta-51",iye=`rdg-checkbox-input ${aye}`;function oye({onChange:e,indeterminate:t,...n}){function r(a){e(a.target.checked,a.nativeEvent.shiftKey)}return w.jsx("input",{ref:a=>{a&&(a.indeterminate=t===!0)},type:"checkbox",className:iye,onChange:r,...n})}function sye(e){try{return e.row[e.column.key]}catch{return null}}const qJ=R.createContext(void 0);function w_(){return R.useContext(qJ)}function NF({value:e,tabIndex:t,indeterminate:n,disabled:r,onChange:a,"aria-label":i,"aria-labelledby":o}){const l=w_().renderCheckbox;return l({"aria-label":i,"aria-labelledby":o,tabIndex:t,indeterminate:n,disabled:r,checked:e,onChange:a})}const MF=R.createContext(void 0),HJ=R.createContext(void 0);function VJ(){const e=R.useContext(MF),t=R.useContext(HJ);if(e===void 0||t===void 0)throw new Error("useRowSelection must be used within renderCell");return{isRowSelectionDisabled:e.isRowSelectionDisabled,isRowSelected:e.isRowSelected,onRowSelectionChange:t}}const GJ=R.createContext(void 0),YJ=R.createContext(void 0);function lye(){const e=R.useContext(GJ),t=R.useContext(YJ);if(e===void 0||t===void 0)throw new Error("useHeaderRowSelection must be used within renderHeaderCell");return{isIndeterminate:e.isIndeterminate,isRowSelected:e.isRowSelected,onRowSelectionChange:t}}const Sx="rdg-select-column";function uye(e){const{isIndeterminate:t,isRowSelected:n,onRowSelectionChange:r}=lye();return w.jsx(NF,{"aria-label":"Select All",tabIndex:e.tabIndex,indeterminate:t,value:n,onChange:a=>{r({checked:t?!1:a})}})}function cye(e){const{isRowSelectionDisabled:t,isRowSelected:n,onRowSelectionChange:r}=VJ();return w.jsx(NF,{"aria-label":"Select",tabIndex:e.tabIndex,disabled:t,value:n,onChange:(a,i)=>{r({row:e.row,checked:a,isShiftClick:i})}})}function dye(e){const{isRowSelected:t,onRowSelectionChange:n}=VJ();return w.jsx(NF,{"aria-label":"Select Group",tabIndex:e.tabIndex,value:t,onChange:r=>{n({row:e.row,checked:r,isShiftClick:!1})}})}const fye={key:Sx,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell(e){return w.jsx(uye,{...e})},renderCell(e){return w.jsx(cye,{...e})},renderGroupCell(e){return w.jsx(dye,{...e})}},pye="h44jtk67-0-0-beta-51",hye="hcgkhxz7-0-0-beta-51",mye=`rdg-header-sort-name ${hye}`;function gye({column:e,sortDirection:t,priority:n}){return e.sortable?w.jsx(vye,{sortDirection:t,priority:n,children:e.name}):e.name}function vye({sortDirection:e,priority:t,children:n}){const r=w_().renderSortStatus;return w.jsxs("span",{className:pye,children:[w.jsx("span",{className:mye,children:n}),w.jsx("span",{children:r({sortDirection:e,priority:t})})]})}const yye="auto",bye=50;function wye({rawColumns:e,defaultColumnOptions:t,getColumnWidth:n,viewportWidth:r,scrollLeft:a,enableVirtualization:i}){const o=(t==null?void 0:t.width)??yye,l=(t==null?void 0:t.minWidth)??bye,u=(t==null?void 0:t.maxWidth)??void 0,d=(t==null?void 0:t.renderCell)??sye,f=(t==null?void 0:t.renderHeaderCell)??gye,g=(t==null?void 0:t.sortable)??!1,y=(t==null?void 0:t.resizable)??!1,h=(t==null?void 0:t.draggable)??!1,{columns:v,colSpanColumns:E,lastFrozenColumnIndex:T,headerRowsCount:C}=R.useMemo(()=>{let L=-1,j=1;const z=[];Q(e,1);function Q(re,ge,me){for(const W of re){if("children"in W){const ce={name:W.name,parent:me,idx:-1,colSpan:0,level:0,headerCellClass:W.headerCellClass};Q(W.children,ge+1,ce);continue}const G=W.frozen??!1,q={...W,parent:me,idx:0,level:0,frozen:G,width:W.width??o,minWidth:W.minWidth??l,maxWidth:W.maxWidth??u,sortable:W.sortable??g,resizable:W.resizable??y,draggable:W.draggable??h,renderCell:W.renderCell??d,renderHeaderCell:W.renderHeaderCell??f};z.push(q),G&&L++,ge>j&&(j=ge)}}z.sort(({key:re,frozen:ge},{key:me,frozen:W})=>re===Sx?-1:me===Sx?1:ge?W?0:-1:W?1:0);const le=[];return z.forEach((re,ge)=>{re.idx=ge,KJ(re,ge,0),re.colSpan!=null&&le.push(re)}),{columns:z,colSpanColumns:le,lastFrozenColumnIndex:L,headerRowsCount:j}},[e,o,l,u,d,f,y,g,h]),{templateColumns:k,layoutCssVars:_,totalFrozenColumnWidth:A,columnMetrics:P}=R.useMemo(()=>{const L=new Map;let j=0,z=0;const Q=[];for(const re of v){let ge=n(re);typeof ge=="number"?ge=WJ(ge,re):ge=re.minWidth,Q.push(`${ge}px`),L.set(re,{width:ge,left:j}),j+=ge}if(T!==-1){const re=L.get(v[T]);z=re.left+re.width}const le={};for(let re=0;re<=T;re++){const ge=v[re];le[`--rdg-frozen-left-${ge.idx}`]=`${L.get(ge).left}px`}return{templateColumns:Q,layoutCssVars:le,totalFrozenColumnWidth:z,columnMetrics:L}},[n,v,T]),[N,I]=R.useMemo(()=>{if(!i)return[0,v.length-1];const L=a+A,j=a+r,z=v.length-1,Q=XS(T+1,z);if(L>=j)return[Q,Q];let le=Q;for(;leL)break;le++}let re=le;for(;re=j)break;re++}const ge=wx(Q,le-1),me=XS(z,re+1);return[ge,me]},[P,v,T,a,A,r,i]);return{columns:v,colSpanColumns:E,colOverscanStartIdx:N,colOverscanEndIdx:I,templateColumns:k,layoutCssVars:_,headerRowsCount:C,lastFrozenColumnIndex:T,totalFrozenColumnWidth:A}}function KJ(e,t,n){if(n{f.current=a,T(v)});function T(k){k.length!==0&&u(_=>{const A=new Map(_);let P=!1;for(const N of k){const I=HB(r,N);P||(P=I!==_.get(N)),I===void 0?A.delete(N):A.set(N,I)}return P?A:_})}function C(k,_){const{key:A}=k,P=[...n],N=[];for(const{key:L,idx:j,width:z}of t)if(A===L){const Q=typeof _=="number"?`${_}px`:_;P[j]=Q}else g&&typeof z=="string"&&!i.has(L)&&(P[j]=z,N.push(L));r.current.style.gridTemplateColumns=P.join(" ");const I=typeof _=="number"?_:HB(r,A);Sc.flushSync(()=>{l(L=>{const j=new Map(L);return j.set(A,I),j}),T(N)}),d==null||d(k,I)}return{gridTemplateColumns:E,handleColumnResize:C}}function HB(e,t){var a;const n=`[data-measuring-cell-key="${CSS.escape(t)}"]`,r=(a=e.current)==null?void 0:a.querySelector(n);return r==null?void 0:r.getBoundingClientRect().width}function Eye(){const e=R.useRef(null),[t,n]=R.useState(1),[r,a]=R.useState(1),[i,o]=R.useState(0);return R.useLayoutEffect(()=>{const{ResizeObserver:l}=window;if(l==null)return;const{clientWidth:u,clientHeight:d,offsetWidth:f,offsetHeight:g}=e.current,{width:y,height:h}=e.current.getBoundingClientRect(),v=g-d,E=y-f+u,T=h-v;n(E),a(T),o(v);const C=new l(k=>{const _=k[0].contentBoxSize[0],{clientHeight:A,offsetHeight:P}=e.current;Sc.flushSync(()=>{n(_.inlineSize),a(_.blockSize),o(P-A)})});return C.observe(e.current),()=>{C.disconnect()}},[]),[e,t,r,i]}function Ms(e){const t=R.useRef(e);R.useEffect(()=>{t.current=e});const n=R.useCallback((...r)=>{t.current(...r)},[]);return e&&n}function jE(e){const[t,n]=R.useState(!1);t&&!e&&n(!1);function r(i){i.target!==i.currentTarget&&n(!0)}return{tabIndex:e&&!t?0:-1,childTabIndex:e?0:-1,onFocus:e?r:void 0}}function Tye({columns:e,colSpanColumns:t,rows:n,topSummaryRows:r,bottomSummaryRows:a,colOverscanStartIdx:i,colOverscanEndIdx:o,lastFrozenColumnIndex:l,rowOverscanStartIdx:u,rowOverscanEndIdx:d}){const f=R.useMemo(()=>{if(i===0)return 0;let g=i;const y=(h,v)=>v!==void 0&&h+v>i?(g=h,!0):!1;for(const h of t){const v=h.idx;if(v>=g||y(v,Rl(h,l,{type:"HEADER"})))break;for(let E=u;E<=d;E++){const T=n[E];if(y(v,Rl(h,l,{type:"ROW",row:T})))break}if(r!=null){for(const E of r)if(y(v,Rl(h,l,{type:"SUMMARY",row:E})))break}if(a!=null){for(const E of a)if(y(v,Rl(h,l,{type:"SUMMARY",row:E})))break}}return g},[u,d,n,r,a,i,l,t]);return R.useMemo(()=>{const g=[];for(let y=0;y<=o;y++){const h=e[y];y{if(typeof t=="number")return{totalRowHeight:t*e.length,gridTemplateRows:` repeat(${e.length}, ${t}px)`,getRowTop:T=>T*t,getRowHeight:()=>t,findRowIdx:T=>qB(T/t)};let y=0,h=" ";const v=e.map(T=>{const C=t(T),k={top:y,height:C};return h+=`${C}px `,y+=C,k}),E=T=>wx(0,XS(e.length-1,T));return{totalRowHeight:y,gridTemplateRows:h,getRowTop:T=>v[E(T)].top,getRowHeight:T=>v[E(T)].height,findRowIdx(T){let C=0,k=v.length-1;for(;C<=k;){const _=C+qB((k-C)/2),A=v[_].top;if(A===T)return _;if(AT&&(k=_-1),C>k)return k}return 0}}},[t,e]);let f=0,g=e.length-1;if(a){const h=d(r),v=d(r+n);f=wx(0,h-4),g=XS(e.length-1,v+4)}return{rowOverscanStartIdx:f,rowOverscanEndIdx:g,totalRowHeight:i,gridTemplateRows:o,getRowTop:l,getRowHeight:u,findRowIdx:d}}const kye="c6ra8a37-0-0-beta-51",xye=`rdg-cell-copied ${kye}`,_ye="cq910m07-0-0-beta-51",Oye=`rdg-cell-dragged-over ${_ye}`;function Rye({column:e,colSpan:t,isCellSelected:n,isCopied:r,isDraggedOver:a,row:i,rowIdx:o,className:l,onClick:u,onDoubleClick:d,onContextMenu:f,onRowChange:g,selectCell:y,style:h,...v}){const{tabIndex:E,childTabIndex:T,onFocus:C}=jE(n),{cellClass:k}=e;l=FE(e,{[xye]:r,[Oye]:a},typeof k=="function"?k(i):k,l);const _=jJ(e,i);function A(j){y({rowIdx:o,idx:e.idx},j)}function P(j){if(u){const z=xS(j);if(u({rowIdx:o,row:i,column:e,selectCell:A},z),z.isGridDefaultPrevented())return}A()}function N(j){if(f){const z=xS(j);if(f({rowIdx:o,row:i,column:e,selectCell:A},z),z.isGridDefaultPrevented())return}A()}function I(j){if(d){const z=xS(j);if(d({rowIdx:o,row:i,column:e,selectCell:A},z),z.isGridDefaultPrevented())return}A(!0)}function L(j){g(e,j)}return w.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":n,"aria-readonly":!_||void 0,tabIndex:E,className:l,style:{...C0(e,t),...h},onClick:P,onDoubleClick:I,onContextMenu:N,onFocus:C,...v,children:e.renderCell({column:e,row:i,rowIdx:o,isCellEditable:_,tabIndex:T,onRowChange:L})})}const Pye=R.memo(Rye);function Aye(e,t){return w.jsx(Pye,{...t},e)}const Nye="c1w9bbhr7-0-0-beta-51",Mye="c1creorc7-0-0-beta-51",Iye=`rdg-cell-drag-handle ${Nye}`;function Dye({gridRowStart:e,rows:t,column:n,columnWidth:r,maxColIdx:a,isLastRow:i,selectedPosition:o,latestDraggedOverRowIdx:l,isCellEditable:u,onRowsChange:d,onFill:f,onClick:g,setDragging:y,setDraggedOverRowIdx:h}){const{idx:v,rowIdx:E}=o;function T(P){if(P.preventDefault(),P.buttons!==1)return;y(!0),window.addEventListener("mouseover",N),window.addEventListener("mouseup",I);function N(L){L.buttons!==1&&I()}function I(){window.removeEventListener("mouseover",N),window.removeEventListener("mouseup",I),y(!1),C()}}function C(){const P=l.current;if(P===void 0)return;const N=E0&&(d==null||d(L,{indexes:j,column:n}))}function A(){var z;const P=((z=n.colSpan)==null?void 0:z.call(n,{type:"ROW",row:t[E]}))??1,{insetInlineStart:N,...I}=C0(n,P),L="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",j=n.idx+P-1===a;return{...I,gridRowStart:e,marginInlineEnd:j?void 0:L,marginBlockEnd:i?void 0:L,insetInlineStart:N?`calc(${N} + ${r}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0}}return w.jsx("div",{style:A(),className:jd(Iye,n.frozen&&Mye),onClick:g,onMouseDown:T,onDoubleClick:k})}const $ye="cis5rrm7-0-0-beta-51";function Lye({column:e,colSpan:t,row:n,rowIdx:r,onRowChange:a,closeEditor:i,onKeyDown:o,navigate:l}){var C,k,_;const u=R.useRef(void 0),d=((C=e.editorOptions)==null?void 0:C.commitOnOutsideClick)!==!1,f=Ms(()=>{h(!0,!1)});R.useEffect(()=>{if(!d)return;function A(){u.current=requestAnimationFrame(f)}return addEventListener("mousedown",A,{capture:!0}),()=>{removeEventListener("mousedown",A,{capture:!0}),g()}},[d,f]);function g(){cancelAnimationFrame(u.current)}function y(A){if(o){const P=xS(A);if(o({mode:"EDIT",row:n,column:e,rowIdx:r,navigate(){l(A)},onClose:h},P),P.isGridDefaultPrevented())return}A.key==="Escape"?h():A.key==="Enter"?h(!0):Vve(A)&&l(A)}function h(A=!1,P=!0){A?a(n,!0,P):i(P)}function v(A,P=!1){a(A,P,P)}const{cellClass:E}=e,T=FE(e,"rdg-editor-container",!((k=e.editorOptions)!=null&&k.displayCellContent)&&$ye,typeof E=="function"?E(n):E);return w.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":!0,className:T,style:C0(e,t),onKeyDown:y,onMouseDownCapture:g,children:e.renderEditCell!=null&&w.jsxs(w.Fragment,{children:[e.renderEditCell({column:e,row:n,rowIdx:r,onRowChange:v,onClose:h}),((_=e.editorOptions)==null?void 0:_.displayCellContent)&&e.renderCell({column:e,row:n,rowIdx:r,isCellEditable:!0,tabIndex:-1,onRowChange:v})]})})}function Fye({column:e,rowIdx:t,isCellSelected:n,selectCell:r}){const{tabIndex:a,onFocus:i}=jE(n),{colSpan:o}=e,l=zJ(e,t),u=e.idx+1;function d(){r({idx:e.idx,rowIdx:t})}return w.jsx("div",{role:"columnheader","aria-colindex":u,"aria-colspan":o,"aria-rowspan":l,"aria-selected":n,tabIndex:a,className:jd(UJ,e.headerCellClass),style:{...BJ(e,t,l),gridColumnStart:u,gridColumnEnd:u+o},onFocus:i,onClick:d,children:e.name})}const jye="c6l2wv17-0-0-beta-51",Uye="c1kqdw7y7-0-0-beta-51",Bye=`rdg-cell-resizable ${Uye}`,Wye="r1y6ywlx7-0-0-beta-51",zye="rdg-cell-draggable",qye="c1bezg5o7-0-0-beta-51",Hye=`rdg-cell-dragging ${qye}`,Vye="c1vc96037-0-0-beta-51",Gye=`rdg-cell-drag-over ${Vye}`;function Yye({column:e,colSpan:t,rowIdx:n,isCellSelected:r,onColumnResize:a,onColumnsReorder:i,sortColumns:o,onSortColumnsChange:l,selectCell:u,shouldFocusGrid:d,direction:f,dragDropKey:g}){const y=R.useRef(!1),[h,v]=R.useState(!1),[E,T]=R.useState(!1),C=f==="rtl",k=zJ(e,n),{tabIndex:_,childTabIndex:A,onFocus:P}=jE(r),N=o==null?void 0:o.findIndex(fe=>fe.columnKey===e.key),I=N!==void 0&&N>-1?o[N]:void 0,L=I==null?void 0:I.direction,j=I!==void 0&&o.length>1?N+1:void 0,z=L&&!j?L==="ASC"?"ascending":"descending":void 0,{sortable:Q,resizable:le,draggable:re}=e,ge=FE(e,e.headerCellClass,{[jye]:Q,[Bye]:le,[zye]:re,[Hye]:h,[Gye]:E});function me(fe){if(fe.pointerType==="mouse"&&fe.buttons!==1)return;fe.preventDefault();const{currentTarget:xe,pointerId:Ie}=fe,qe=xe.parentElement,{right:tt,left:Ge}=qe.getBoundingClientRect(),at=C?fe.clientX-Ge:tt-fe.clientX;y.current=!1;function Et(xt){const{width:Rt,right:cn,left:qt}=qe.getBoundingClientRect();let Wt=C?cn+at-xt.clientX:xt.clientX+at-qt;Wt=WJ(Wt,e),Rt>0&&Wt!==Rt&&a(e,Wt)}function kt(xt){y.current||Et(xt),xe.removeEventListener("pointermove",Et),xe.removeEventListener("lostpointercapture",kt)}xe.setPointerCapture(Ie),xe.addEventListener("pointermove",Et),xe.addEventListener("lostpointercapture",kt)}function W(){y.current=!0,a(e,"max-content")}function G(fe){if(l==null)return;const{sortDescendingFirst:xe}=e;if(I===void 0){const Ie={columnKey:e.key,direction:xe?"DESC":"ASC"};l(o&&fe?[...o,Ie]:[Ie])}else{let Ie;if((xe===!0&&L==="DESC"||xe!==!0&&L==="ASC")&&(Ie={columnKey:e.key,direction:L==="ASC"?"DESC":"ASC"}),fe){const qe=[...o];Ie?qe[N]=Ie:qe.splice(N,1),l(qe)}else l(Ie?[Ie]:[])}}function q(fe){u({idx:e.idx,rowIdx:n}),Q&&G(fe.ctrlKey||fe.metaKey)}function ce(fe){P==null||P(fe),d&&u({idx:0,rowIdx:n})}function H(fe){(fe.key===" "||fe.key==="Enter")&&(fe.preventDefault(),G(fe.ctrlKey||fe.metaKey))}function Y(fe){fe.dataTransfer.setData(g,e.key),fe.dataTransfer.dropEffect="move",v(!0)}function ie(){v(!1)}function J(fe){fe.preventDefault(),fe.dataTransfer.dropEffect="move"}function ee(fe){if(T(!1),fe.dataTransfer.types.includes(g.toLowerCase())){const xe=fe.dataTransfer.getData(g.toLowerCase());xe!==e.key&&(fe.preventDefault(),i==null||i(xe,e.key))}}function Z(fe){VB(fe)&&T(!0)}function ue(fe){VB(fe)&&T(!1)}let ke;return re&&(ke={draggable:!0,onDragStart:Y,onDragEnd:ie,onDragOver:J,onDragEnter:Z,onDragLeave:ue,onDrop:ee}),w.jsxs("div",{role:"columnheader","aria-colindex":e.idx+1,"aria-colspan":t,"aria-rowspan":k,"aria-selected":r,"aria-sort":z,tabIndex:d?0:_,className:ge,style:{...BJ(e,n,k),...C0(e,t)},onFocus:ce,onClick:q,onKeyDown:Q?H:void 0,...ke,children:[e.renderHeaderCell({column:e,sortDirection:L,priority:j,tabIndex:A}),le&&w.jsx("div",{className:Wye,onClick:zve,onPointerDown:me,onDoubleClick:W})]})}function VB(e){const t=e.relatedTarget;return!e.currentTarget.contains(t)}const Kye="r1upfr807-0-0-beta-51",IF=`rdg-row ${Kye}`,Xye="r190mhd37-0-0-beta-51",S_="rdg-row-selected",Qye="r139qu9m7-0-0-beta-51",Jye="rdg-top-summary-row",Zye="rdg-bottom-summary-row",ebe="h10tskcx7-0-0-beta-51",XJ=`rdg-header-row ${ebe}`;function tbe({rowIdx:e,columns:t,onColumnResize:n,onColumnsReorder:r,sortColumns:a,onSortColumnsChange:i,lastFrozenColumnIndex:o,selectedCellIdx:l,selectCell:u,shouldFocusGrid:d,direction:f}){const g=R.useId(),y=[];for(let h=0;ht&&u.parent!==void 0;)u=u.parent;if(u.level===t&&!o.has(u)){o.add(u);const{idx:d}=u;i.push(w.jsx(Fye,{column:u,rowIdx:e,isCellSelected:r===d,selectCell:a},d))}}}return w.jsx("div",{role:"row","aria-rowindex":e,className:XJ,children:i})}var abe=R.memo(rbe);function ibe({className:e,rowIdx:t,gridRowStart:n,selectedCellIdx:r,isRowSelectionDisabled:a,isRowSelected:i,copiedCellIdx:o,draggedOverCellIdx:l,lastFrozenColumnIndex:u,row:d,viewportColumns:f,selectedCellEditor:g,onCellClick:y,onCellDoubleClick:h,onCellContextMenu:v,rowClass:E,setDraggedOverRowIdx:T,onMouseEnter:C,onRowChange:k,selectCell:_,...A}){const P=w_().renderCell,N=Ms((z,Q)=>{k(z,t,Q)});function I(z){T==null||T(t),C==null||C(z)}e=jd(IF,`rdg-row-${t%2===0?"even":"odd"}`,{[S_]:r===-1},E==null?void 0:E(d,t),e);const L=[];for(let z=0;z({isRowSelected:i,isRowSelectionDisabled:a}),[a,i]);return w.jsx(MF,{value:j,children:w.jsx("div",{role:"row",className:e,onMouseEnter:I,style:AF(n),...A,children:L})})}const obe=R.memo(ibe);function sbe(e,t){return w.jsx(obe,{...t},e)}function lbe({scrollToPosition:{idx:e,rowIdx:t},gridRef:n,setScrollToCellPosition:r}){const a=R.useRef(null);return R.useLayoutEffect(()=>{jk(a.current)}),R.useLayoutEffect(()=>{function i(){r(null)}const o=new IntersectionObserver(i,{root:n.current,threshold:1});return o.observe(a.current),()=>{o.disconnect()}},[n,r]),w.jsx("div",{ref:a,style:{gridColumn:e===void 0?"1/-1":e+1,gridRow:t===void 0?"1/-1":t+2}})}const ube="a3ejtar7-0-0-beta-51",cbe=`rdg-sort-arrow ${ube}`;function dbe({sortDirection:e,priority:t}){return w.jsxs(w.Fragment,{children:[fbe({sortDirection:e}),pbe({priority:t})]})}function fbe({sortDirection:e}){return e===void 0?null:w.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:cbe,"aria-hidden":!0,children:w.jsx("path",{d:e==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function pbe({priority:e}){return e}const hbe="rnvodz57-0-0-beta-51",mbe=`rdg ${hbe}`,gbe="vlqv91k7-0-0-beta-51",vbe=`rdg-viewport-dragging ${gbe}`,ybe="f1lsfrzw7-0-0-beta-51",bbe="f1cte0lg7-0-0-beta-51",wbe="s8wc6fl7-0-0-beta-51";function Sbe({column:e,colSpan:t,row:n,rowIdx:r,isCellSelected:a,selectCell:i}){var y;const{tabIndex:o,childTabIndex:l,onFocus:u}=jE(a),{summaryCellClass:d}=e,f=FE(e,wbe,typeof d=="function"?d(n):d);function g(){i({rowIdx:r,idx:e.idx})}return w.jsx("div",{role:"gridcell","aria-colindex":e.idx+1,"aria-colspan":t,"aria-selected":a,tabIndex:o,className:f,style:C0(e,t),onClick:g,onFocus:u,children:(y=e.renderSummaryCell)==null?void 0:y.call(e,{column:e,row:n,tabIndex:l})})}var Ebe=R.memo(Sbe);const Tbe="skuhp557-0-0-beta-51",Cbe="tf8l5ub7-0-0-beta-51",kbe=`rdg-summary-row ${Tbe}`;function xbe({rowIdx:e,gridRowStart:t,row:n,viewportColumns:r,top:a,bottom:i,lastFrozenColumnIndex:o,selectedCellIdx:l,isTop:u,selectCell:d,"aria-rowindex":f}){const g=[];for(let y=0;ynew Map),[ft,ut]=R.useState(()=>new Map),[Nt,U]=R.useState(null),[D,F]=R.useState(!1),[ae,Te]=R.useState(void 0),[Fe,We]=R.useState(null),[Tt,Mt]=R.useState(!1),[be,Ee]=R.useState(-1),gt=R.useCallback(nt=>Oe.get(nt.key)??ft.get(nt.key)??nt.width,[ft,Oe]),[Lt,_t,Ut,_n]=Eye(),{columns:gn,colSpanColumns:ln,lastFrozenColumnIndex:Bn,headerRowsCount:sa,colOverscanStartIdx:Qa,colOverscanEndIdx:ma,templateColumns:vn,layoutCssVars:_a,totalFrozenColumnWidth:Wo}=wye({rawColumns:n,defaultColumnOptions:T,getColumnWidth:gt,scrollLeft:qt,viewportWidth:_t,enableVirtualization:kt}),Oa=(a==null?void 0:a.length)??0,Ra=(i==null?void 0:i.length)??0,zo=Oa+Ra,we=sa+Oa,ve=sa-1,$e=-we,ye=$e+ve,Se=r.length+Ra-1,[ne,Me]=R.useState(()=>({idx:-1,rowIdx:$e-1,mode:"SELECT"})),Qe=R.useRef(ae),ot=R.useRef(null),Bt=ke==="treegrid",yn=sa*xe,an=zo*Ie,Dn=Ut-yn-an,En=g!=null&&h!=null,Rr=xt==="rtl",Pr=Rr?"ArrowRight":"ArrowLeft",lr=Rr?"ArrowLeft":"ArrowRight",Ks=J??sa+r.length+zo,ty=R.useMemo(()=>({renderCheckbox:at,renderSortStatus:Ge,renderCell:tt}),[at,Ge,tt]),Ll=R.useMemo(()=>{let nt=!1,pt=!1;if(o!=null&&g!=null&&g.size>0){for(const bt of r)if(g.has(o(bt))?nt=!0:pt=!0,nt&&pt)break}return{isRowSelected:nt&&!pt,isIndeterminate:nt&&pt}},[r,g,o]),{rowOverscanStartIdx:lo,rowOverscanEndIdx:oi,totalRowHeight:uf,gridTemplateRows:ny,getRowTop:Mh,getRowHeight:D0,findRowIdx:$c}=Cye({rows:r,rowHeight:fe,clientHeight:Dn,scrollTop:Rt,enableVirtualization:kt}),Hi=Tye({columns:gn,colSpanColumns:ln,colOverscanStartIdx:Qa,colOverscanEndIdx:ma,lastFrozenColumnIndex:Bn,rowOverscanStartIdx:lo,rowOverscanEndIdx:oi,rows:r,topSummaryRows:a,bottomSummaryRows:i}),{gridTemplateColumns:qo,handleColumnResize:Si}=Sye(gn,Hi,vn,Lt,_t,Oe,ft,dt,ut,I),cf=Bt?-1:0,Nu=gn.length-1,Xs=Bl(ne),Qs=ds(ne),Lc=xe+uf+an+_n,$0=Ms(Si),Ei=Ms(L),df=Ms(E),ff=Ms(C),Ih=Ms(k),Fl=Ms(_),pf=Ms(ry),hf=Ms(Dh),uo=Ms(Iu),mf=Ms(Js),gf=Ms(({idx:nt,rowIdx:pt})=>{Js({rowIdx:$e+pt-1,idx:nt})}),vf=R.useCallback(nt=>{Te(nt),Qe.current=nt},[]),Mu=R.useCallback(()=>{const nt=YB(Lt.current);if(nt===null)return;jk(nt),(nt.querySelector('[tabindex="0"]')??nt).focus({preventScroll:!0})},[Lt]);R.useLayoutEffect(()=>{ot.current!==null&&Xs&&ne.idx===-1&&(ot.current.focus({preventScroll:!0}),jk(ot.current))},[Xs,ne]),R.useLayoutEffect(()=>{Tt&&(Mt(!1),Mu())},[Tt,Mu]),R.useImperativeHandle(t,()=>({element:Lt.current,scrollToCell({idx:nt,rowIdx:pt}){const bt=nt!==void 0&&nt>Bn&&nt{cn(pt),Wt(rye(bt))}),N==null||N(nt)}function Iu(nt,pt,bt){if(typeof l!="function"||bt===r[pt])return;const zt=[...r];zt[pt]=bt,l(zt,{indexes:[pt],column:nt})}function jl(){ne.mode==="EDIT"&&Iu(gn[ne.idx],ne.rowIdx,ne.row)}function Ul(){const{idx:nt,rowIdx:pt}=ne,bt=r[pt],zt=gn[nt].key;U({row:bt,columnKey:zt}),z==null||z({sourceRow:bt,sourceColumnKey:zt})}function ay(){if(!Q||!l||Nt===null||!Du(ne))return;const{idx:nt,rowIdx:pt}=ne,bt=gn[nt],zt=r[pt],Sn=Q({sourceRow:Nt.row,sourceColumnKey:Nt.columnKey,targetRow:zt,targetColumnKey:bt.key});Iu(bt,pt,Sn)}function Lh(nt){if(!Qs)return;const pt=r[ne.rowIdx],{key:bt,shiftKey:zt}=nt;if(En&&zt&&bt===" "){WP(o);const Sn=o(pt);Dh({row:pt,checked:!g.has(Sn),isShiftClick:!1}),nt.preventDefault();return}Du(ne)&&Hve(nt)&&Me(({idx:Sn,rowIdx:ur})=>({idx:Sn,rowIdx:ur,mode:"EDIT",row:pt,originalRow:pt}))}function Fh(nt){return nt>=cf&&nt<=Nu}function co(nt){return nt>=0&&nt=$e&&pt<=Se&&Fh(nt)}function jc({idx:nt,rowIdx:pt}){return co(pt)&&nt>=0&&nt<=Nu}function ds({idx:nt,rowIdx:pt}){return co(pt)&&Fh(nt)}function Du(nt){return jc(nt)&&Kve({columns:gn,rows:r,selectedPosition:nt})}function Js(nt,pt){if(!Bl(nt))return;jl();const bt=KB(ne,nt);if(pt&&Du(nt)){const zt=r[nt.rowIdx];Me({...nt,mode:"EDIT",row:zt,originalRow:zt})}else bt?jk(YB(Lt.current)):(Mt(!0),Me({...nt,mode:"SELECT"}));P&&!bt&&P({rowIdx:nt.rowIdx,row:co(nt.rowIdx)?r[nt.rowIdx]:void 0,column:gn[nt.idx]})}function iy(nt,pt,bt){const{idx:zt,rowIdx:Sn}=ne,ur=Xs&&zt===-1;switch(nt){case"ArrowUp":return{idx:zt,rowIdx:Sn-1};case"ArrowDown":return{idx:zt,rowIdx:Sn+1};case Pr:return{idx:zt-1,rowIdx:Sn};case lr:return{idx:zt+1,rowIdx:Sn};case"Tab":return{idx:zt+(bt?-1:1),rowIdx:Sn};case"Home":return ur?{idx:zt,rowIdx:$e}:{idx:0,rowIdx:pt?$e:Sn};case"End":return ur?{idx:zt,rowIdx:Se}:{idx:Nu,rowIdx:pt?Se:Sn};case"PageUp":{if(ne.rowIdx===$e)return ne;const Ar=Mh(Sn)+D0(Sn)-Dn;return{idx:zt,rowIdx:Ar>0?$c(Ar):0}}case"PageDown":{if(ne.rowIdx>=r.length)return ne;const Ar=Mh(Sn)+Dn;return{idx:zt,rowIdx:Arnt&&nt>=ae)?ne.idx:void 0}function oy(){if(j==null||ne.mode==="EDIT"||!ds(ne))return;const{idx:nt,rowIdx:pt}=ne,bt=gn[nt];if(bt.renderEditCell==null||bt.editable===!1)return;const zt=gt(bt);return w.jsx(Dye,{gridRowStart:we+pt+1,rows:r,column:bt,columnWidth:zt,maxColIdx:Nu,isLastRow:pt===Se,selectedPosition:ne,isCellEditable:Du,latestDraggedOverRowIdx:Qe,onRowsChange:l,onClick:Mu,onFill:j,setDragging:F,setDraggedOverRowIdx:vf})}function si(nt){if(ne.rowIdx!==nt||ne.mode==="SELECT")return;const{idx:pt,row:bt}=ne,zt=gn[pt],Sn=Rl(zt,Bn,{type:"ROW",row:bt}),ur=Jn=>{Mt(Jn),Me(({idx:Pa,rowIdx:Ja})=>({idx:Pa,rowIdx:Ja,mode:"SELECT"}))},Ar=(Jn,Pa,Ja)=>{Pa?Sc.flushSync(()=>{Iu(zt,ne.rowIdx,Jn),ur(Ja)}):Me(Wl=>({...Wl,row:Jn}))};return r[ne.rowIdx]!==ne.originalRow&&ur(!1),w.jsx(Lye,{column:zt,colSpan:Sn,row:bt,rowIdx:nt,onRowChange:Ar,closeEditor:ur,onKeyDown:A,navigate:ar},zt.key)}function fo(nt){const pt=ne.idx===-1?void 0:gn[ne.idx];return pt!==void 0&&ne.rowIdx===nt&&!Hi.includes(pt)?ne.idx>ma?[...Hi,pt]:[...Hi.slice(0,Bn+1),pt,...Hi.slice(Bn+1)]:Hi}function yf(){const nt=[],{idx:pt,rowIdx:bt}=ne,zt=Qs&&btoi?oi+1:oi;for(let ur=zt;ur<=Sn;ur++){const Ar=ur===lo-1||ur===oi+1,Jn=Ar?bt:ur;let Pa=Hi;const Ja=pt===-1?void 0:gn[pt];Ja!==void 0&&(Ar?Pa=[Ja]:Pa=fo(Jn));const Wl=r[Jn],sy=we+Jn+1;let bf=Jn,wf=!1;typeof o=="function"&&(bf=o(Wl),wf=(g==null?void 0:g.has(bf))??!1),nt.push(qe(bf,{"aria-rowindex":we+Jn+1,"aria-selected":En?wf:void 0,rowIdx:Jn,row:Wl,viewportColumns:Pa,isRowSelectionDisabled:(y==null?void 0:y(Wl))??!1,isRowSelected:wf,onCellClick:ff,onCellDoubleClick:Ih,onCellContextMenu:Fl,rowClass:W,gridRowStart:sy,copiedCellIdx:Nt!==null&&Nt.row===Wl?gn.findIndex(li=>li.key===Nt.columnKey):void 0,selectedCellIdx:bt===Jn?pt:void 0,draggedOverCellIdx:ir(Jn),setDraggedOverRowIdx:D?vf:void 0,lastFrozenColumnIndex:Bn,onRowChange:uo,selectCell:mf,selectedCellEditor:si(Jn)}))}return nt}(ne.idx>Nu||ne.rowIdx>Se)&&(Me({idx:-1,rowIdx:$e-1,mode:"SELECT"}),vf(void 0));let Zs=`repeat(${sa}, ${xe}px)`;Oa>0&&(Zs+=` repeat(${Oa}, ${Ie}px)`),r.length>0&&(Zs+=ny),Ra>0&&(Zs+=` repeat(${Ra}, ${Ie}px)`);const jh=ne.idx===-1&&ne.rowIdx!==$e-1;return w.jsxs("div",{role:ke,"aria-label":ce,"aria-labelledby":H,"aria-description":Y,"aria-describedby":ie,"aria-multiselectable":En?!0:void 0,"aria-colcount":gn.length,"aria-rowcount":Ks,className:jd(mbe,{[vbe]:D},ge),style:{...me,scrollPaddingInlineStart:ne.idx>Bn||(Fe==null?void 0:Fe.idx)!==void 0?`${Wo}px`:void 0,scrollPaddingBlock:co(ne.rowIdx)||(Fe==null?void 0:Fe.rowIdx)!==void 0?`${yn+Oa*Ie}px ${Ra*Ie}px`:void 0,gridTemplateColumns:qo,gridTemplateRows:Zs,"--rdg-header-row-height":`${xe}px`,"--rdg-scroll-height":`${Lc}px`,..._a},dir:xt,ref:Lt,onScroll:$h,onKeyDown:Fc,"data-testid":ee,"data-cy":Z,children:[w.jsxs(qJ,{value:ty,children:[w.jsx(YJ,{value:pf,children:w.jsxs(GJ,{value:Ll,children:[Array.from({length:ve},(nt,pt)=>w.jsx(abe,{rowIdx:pt+1,level:-ve+pt,columns:fo($e+pt),selectedCellIdx:ne.rowIdx===$e+pt?ne.idx:void 0,selectCell:gf},pt)),w.jsx(nbe,{rowIdx:sa,columns:fo(ye),onColumnResize:$0,onColumnsReorder:Ei,sortColumns:v,onSortColumnsChange:df,lastFrozenColumnIndex:Bn,selectedCellIdx:ne.rowIdx===ye?ne.idx:void 0,selectCell:gf,shouldFocusGrid:!Xs,direction:xt})]})}),r.length===0&&Et?Et:w.jsxs(w.Fragment,{children:[a==null?void 0:a.map((nt,pt)=>{const bt=sa+1+pt,zt=ye+1+pt,Sn=ne.rowIdx===zt,ur=yn+Ie*pt;return w.jsx(GB,{"aria-rowindex":bt,rowIdx:zt,gridRowStart:bt,row:nt,top:ur,bottom:void 0,viewportColumns:fo(zt),lastFrozenColumnIndex:Bn,selectedCellIdx:Sn?ne.idx:void 0,isTop:!0,selectCell:mf},pt)}),w.jsx(HJ,{value:hf,children:yf()}),i==null?void 0:i.map((nt,pt)=>{const bt=we+r.length+pt+1,zt=r.length+pt,Sn=ne.rowIdx===zt,ur=Dn>uf?Ut-Ie*(i.length-pt):void 0,Ar=ur===void 0?Ie*(i.length-1-pt):void 0;return w.jsx(GB,{"aria-rowindex":Ks-Ra+pt+1,rowIdx:zt,gridRowStart:bt,row:nt,top:ur,bottom:Ar,viewportColumns:fo(zt),lastFrozenColumnIndex:Bn,selectedCellIdx:Sn?ne.idx:void 0,isTop:!1,selectCell:mf},pt)})]})]}),oy(),Yve(Hi),Bt&&w.jsx("div",{ref:ot,tabIndex:jh?0:-1,className:jd(ybe,{[bbe]:!co(ne.rowIdx),[Xye]:jh,[Qye]:jh&&Bn!==-1}),style:{gridRowStart:ne.rowIdx+we+1}}),Fe!==null&&w.jsx(lbe,{scrollToPosition:Fe,setScrollToCellPosition:We,gridRef:Lt})]})}function YB(e){return e.querySelector(':scope > [role="row"] > [tabindex="0"]')}function KB(e,t){return e.idx===t.idx&&e.rowIdx===t.rowIdx}function Obe({id:e,groupKey:t,childRows:n,isExpanded:r,isCellSelected:a,column:i,row:o,groupColumnIndex:l,isGroupByColumn:u,toggleGroup:d}){var E;const{tabIndex:f,childTabIndex:g,onFocus:y}=jE(a);function h(){d(e)}const v=u&&l===i.idx;return w.jsx("div",{role:"gridcell","aria-colindex":i.idx+1,"aria-selected":a,tabIndex:f,className:FE(i),style:{...C0(i),cursor:v?"pointer":"default"},onClick:v?h:void 0,onFocus:y,children:(!u||v)&&((E=i.renderGroupCell)==null?void 0:E.call(i,{groupKey:t,childRows:n,column:i,row:o,isExpanded:r,tabIndex:g,toggleGroup:h}))},i.key)}var Rbe=R.memo(Obe);const Pbe="g1yxluv37-0-0-beta-51",Abe=`rdg-group-row ${Pbe}`;function Nbe({className:e,row:t,rowIdx:n,viewportColumns:r,selectedCellIdx:a,isRowSelected:i,selectCell:o,gridRowStart:l,groupBy:u,toggleGroup:d,isRowSelectionDisabled:f,...g}){const y=r[0].key===Sx?t.level+1:t.level;function h(){o({rowIdx:n,idx:-1})}const v=R.useMemo(()=>({isRowSelectionDisabled:!1,isRowSelected:i}),[i]);return w.jsx(MF,{value:v,children:w.jsx("div",{role:"row","aria-level":t.level+1,"aria-setsize":t.setSize,"aria-posinset":t.posInSet+1,"aria-expanded":t.isExpanded,className:jd(IF,Abe,`rdg-row-${n%2===0?"even":"odd"}`,a===-1&&S_,e),onClick:h,style:AF(l),...g,children:r.map(E=>w.jsx(Rbe,{id:t.id,groupKey:t.groupKey,childRows:t.childRows,isExpanded:t.isExpanded,isCellSelected:a===E.idx,column:E,row:t,groupColumnIndex:y,toggleGroup:d,isGroupByColumn:u.includes(E.key)},E.key))})})}R.memo(Nbe);const QJ=({value:e})=>{const t=n=>{n.stopPropagation(),navigator.clipboard.writeText(e).then(()=>{})};return w.jsx("div",{className:"table-btn table-copy-btn",onClick:t,children:w.jsx(Mbe,{})})},Mbe=({size:e=16,color:t="silver",style:n={}})=>w.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n,children:w.jsx("path",{d:"M16 1H6C4.9 1 4 1.9 4 3V17H6V3H16V1ZM18 5H10C8.9 5 8 5.9 8 7V21C8 22.1 8.9 23 10 23H18C19.1 23 20 22.1 20 21V7C20 5.9 19.1 5 18 5ZM18 21H10V7H18V21Z",fill:t})}),Ibe=({value:e})=>{const{addRouter:t}=zv(),n=r=>{r.stopPropagation(),t(e)};return w.jsx("div",{className:"table-btn table-open-in-new-router",onClick:n,children:w.jsx(Dbe,{})})},Dbe=({size:e=16,color:t="silver",style:n={}})=>w.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer",...n},children:w.jsx("path",{d:"M9 3H5C3.895 3 3 3.895 3 5v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2v-4h-2v4H5V5h4V3ZM21 3h-6v2h3.586l-9.293 9.293 1.414 1.414L20 6.414V10h2V3Z",fill:t})});/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const _be=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Obe=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),LB=e=>{const t=Obe(e);return t.charAt(0).toUpperCase()+t.slice(1)},jJ=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** + */const $be=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Lbe=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),XB=e=>{const t=Lbe(e);return t.charAt(0).toUpperCase()+t.slice(1)},JJ=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var Rbe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + */var Fbe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Pbe=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:o,...l},u)=>R.createElement("svg",{ref:u,...Rbe,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:jJ("lucide",a),...l},[...o.map(([d,f])=>R.createElement(d,f)),...Array.isArray(i)?i:[i]]));/** + */const jbe=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:o,...l},u)=>R.createElement("svg",{ref:u,...Fbe,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:JJ("lucide",a),...l},[...o.map(([d,f])=>R.createElement(d,f)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const TF=(e,t)=>{const n=R.forwardRef(({className:r,...a},i)=>R.createElement(Pbe,{ref:i,iconNode:t,className:jJ(`lucide-${_be(LB(e))}`,`lucide-${e}`,r),...a}));return n.displayName=LB(e),n};/** + */const DF=(e,t)=>{const n=R.forwardRef(({className:r,...a},i)=>R.createElement(jbe,{ref:i,iconNode:t,className:JJ(`lucide-${$be(XB(e))}`,`lucide-${e}`,r),...a}));return n.displayName=XB(e),n};/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Abe=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]],Nbe=TF("arrow-down-a-z",Abe);/** + */const Ube=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]],Bbe=DF("arrow-down-a-z",Ube);/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Mbe=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]],Ibe=TF("arrow-down-wide-narrow",Mbe);/** + */const Wbe=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]],zbe=DF("arrow-down-wide-narrow",Wbe);/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Dbe=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M15 4h5l-5 6h5",key:"8asdl1"}],["path",{d:"M15 20v-3.5a2.5 2.5 0 0 1 5 0V20",key:"r6l5cz"}],["path",{d:"M20 18h-5",key:"18j1r2"}]],$be=TF("arrow-down-z-a",Dbe);function Lbe({tabIndex:e,column:t,filterType:n,sortable:r,filterable:a,selectable:i,udf:o}){var y;const l=(y=o.filters.sorting)==null?void 0:y.find(h=>h.columnName===t.key),[u,d]=R.useState("");R.useEffect(()=>{u!==Ea.get(o.filters,t.key)&&d(Ea.get(o.filters,t.key))},[o.filters]);let f;(l==null?void 0:l.columnName)===t.key&&(l==null?void 0:l.direction)=="asc"&&(f="asc"),(l==null?void 0:l.columnName)===t.key&&(l==null?void 0:l.direction)=="desc"&&(f="desc");const g=()=>{l?((l==null?void 0:l.direction)==="desc"&&o.setSorting(o.filters.sorting.filter(h=>h.columnName!==t.key)),(l==null?void 0:l.direction)==="asc"&&o.setSorting(o.filters.sorting.map(h=>h.columnName===t.key?{...h,direction:"desc"}:h))):o.setSorting([...o.filters.sorting,{columnName:t.key.toString(),direction:"asc"}])};return w.jsxs(w.Fragment,{children:[r?w.jsx("span",{className:"data-table-sort-actions",children:w.jsxs("button",{className:`active-sort-col ${t.key==(l==null?void 0:l.columnName)?"active":""}`,onClick:g,children:[f=="asc"?w.jsx(Nbe,{className:"sort-icon"}):null,f=="desc"?w.jsx($be,{className:"sort-icon"}):null,f===void 0?w.jsx(Ibe,{className:"sort-icon"}):null]})}):null,a?w.jsx(w.Fragment,{children:n==="date"?w.jsx("input",{className:"data-table-filter-input",tabIndex:e,value:u,onChange:h=>{d(h.target.value),o.setFilter({[t.key]:h.target.value})},placeholder:t.name||"",type:"date"}):w.jsx("input",{className:"data-table-filter-input",tabIndex:e,value:u,onChange:h=>{d(h.target.value),o.setFilter({[t.key]:h.target.value})},placeholder:t.name||""})}):w.jsx("span",{children:t.name})]})}function Fbe(e,t){const n=e.split("/").filter(Boolean);return t.split("/").forEach(a=>{a===".."?n.pop():a!=="."&&a!==""&&n.push(a)}),"/"+n.join("/")}const jbe=(e,t,n,r=[],a,i)=>e.map(o=>{const l=r.find(u=>u.columnName===o.name);return{...o,key:o.name,renderCell:({column:u,row:d})=>{if(u.key==="uniqueId"){let f=a?a(d.uniqueId):"";return f.startsWith(".")&&(f=Fbe(i,f)),w.jsxs("div",{style:{position:"relative"},children:[w.jsx(kl,{href:a&&a(d.uniqueId),children:d.uniqueId}),w.jsxs("div",{className:"cell-actions",children:[w.jsx(FJ,{value:d.uniqueId}),w.jsx(kbe,{value:f})]})]})}return u.getCellValue?w.jsx(w.Fragment,{children:u.getCellValue(d)}):w.jsx("span",{children:Ea.get(d,u.key)})},width:l?l.width:o.width,name:o.title,resizable:!0,sortable:o.sortable,renderHeaderCell:u=>w.jsx(Lbe,{...u,selectable:!0,sortable:o.sortable,filterable:o.filterable,filterType:o.filterType,udf:n})}});function Ube(e){const t=R.useRef();let[n,r]=R.useState([]);const a=R.useRef({});return{reindex:(o,l,u)=>{if(l===t.current){const d=o.filter(f=>a.current[f.uniqueId]?!1:(a.current[f.uniqueId]=!0,!0));r([...n,...d].filter(Boolean))}else r([...o].filter(Boolean)),u==null||u();t.current=l},indexedData:n}}function Bbe({columns:e,query:t,columnSizes:n,onColumnWidthsChange:r,udf:a,tableClass:i,uniqueIdHrefHandler:o}){var P,N;At();const{pathname:l}=Xd(),{filters:u,setSorting:d,setStartIndex:f,selection:g,setSelection:y,setPageSize:h,onFiltersChange:v}=a,E=R.useMemo(()=>[rye,...jbe(e,(I,L)=>{a.setFilter({[I]:L})},a,n,o,l)],[e,n]),{indexedData:T,reindex:C}=Ube(),k=R.useRef();R.useEffect(()=>{var L,j;const I=((j=(L=t.data)==null?void 0:L.data)==null?void 0:j.items)||[];C(I,a.queryHash,()=>{k.current.element.scrollTo({top:0,left:0})})},[(N=(P=t.data)==null?void 0:P.data)==null?void 0:N.items]);async function _(I){t.isLoading||!Wbe(I)||f(T.length)}const A=Ea.debounce((I,L)=>{const j=E.map(z=>({columnName:z.key,width:z.name===I.name?L:z.width}));r(j)},300);return w.jsx(w.Fragment,{children:w.jsx(ybe,{className:i,columns:E,onScroll:_,onColumnResize:A,onSelectedRowsChange:I=>{y(Array.from(I))},selectedRows:new Set(g),ref:k,rows:T,rowKeyGetter:I=>I.uniqueId,style:{height:"calc(100% - 2px)",margin:"1px -14px"}})})}function Wbe({currentTarget:e}){return e.scrollTop+300>=e.scrollHeight-e.clientHeight}function zbe(e){const t={};for(let n of e||[])n&&n.columnName&&Ea.set(t,n.columnName,{operation:n.operation,value:n.value});return t}let xl;typeof window<"u"?xl=window:typeof self<"u"?xl=self:xl=global;let gL=null,vL=null;const FB=20,MP=xl.clearTimeout,jB=xl.setTimeout,IP=xl.cancelAnimationFrame||xl.mozCancelAnimationFrame||xl.webkitCancelAnimationFrame,UB=xl.requestAnimationFrame||xl.mozRequestAnimationFrame||xl.webkitRequestAnimationFrame;IP==null||UB==null?(gL=MP,vL=function(t){return jB(t,FB)}):(gL=function([t,n]){IP(t),MP(n)},vL=function(t){const n=UB(function(){MP(r),t()}),r=jB(function(){IP(n),t()},FB);return[n,r]});function qbe(e){let t,n,r,a,i,o,l;const u=typeof document<"u"&&document.attachEvent;if(!u){o=function(C){const k=C.__resizeTriggers__,_=k.firstElementChild,A=k.lastElementChild,P=_.firstElementChild;A.scrollLeft=A.scrollWidth,A.scrollTop=A.scrollHeight,P.style.width=_.offsetWidth+1+"px",P.style.height=_.offsetHeight+1+"px",_.scrollLeft=_.scrollWidth,_.scrollTop=_.scrollHeight},i=function(C){return C.offsetWidth!==C.__resizeLast__.width||C.offsetHeight!==C.__resizeLast__.height},l=function(C){if(C.target.className&&typeof C.target.className.indexOf=="function"&&C.target.className.indexOf("contract-trigger")<0&&C.target.className.indexOf("expand-trigger")<0)return;const k=this;o(this),this.__resizeRAF__&&gL(this.__resizeRAF__),this.__resizeRAF__=vL(function(){i(k)&&(k.__resizeLast__.width=k.offsetWidth,k.__resizeLast__.height=k.offsetHeight,k.__resizeListeners__.forEach(function(P){P.call(k,C)}))})};let y=!1,h="";r="animationstart";const v="Webkit Moz O ms".split(" ");let E="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),T="";{const C=document.createElement("fakeelement");if(C.style.animationName!==void 0&&(y=!0),y===!1){for(let k=0;k div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',v=y.head||y.getElementsByTagName("head")[0],E=y.createElement("style");E.id="detectElementResize",E.type="text/css",e!=null&&E.setAttribute("nonce",e),E.styleSheet?E.styleSheet.cssText=h:E.appendChild(y.createTextNode(h)),v.appendChild(E)}};return{addResizeListener:function(y,h){if(u)y.attachEvent("onresize",h);else{if(!y.__resizeTriggers__){const v=y.ownerDocument,E=xl.getComputedStyle(y);E&&E.position==="static"&&(y.style.position="relative"),d(v),y.__resizeLast__={},y.__resizeListeners__=[],(y.__resizeTriggers__=v.createElement("div")).className="resize-triggers";const T=v.createElement("div");T.className="expand-trigger",T.appendChild(v.createElement("div"));const C=v.createElement("div");C.className="contract-trigger",y.__resizeTriggers__.appendChild(T),y.__resizeTriggers__.appendChild(C),y.appendChild(y.__resizeTriggers__),o(y),y.addEventListener("scroll",l,!0),r&&(y.__resizeTriggers__.__animationListener__=function(_){_.animationName===n&&o(y)},y.__resizeTriggers__.addEventListener(r,y.__resizeTriggers__.__animationListener__))}y.__resizeListeners__.push(h)}},removeResizeListener:function(y,h){if(u)y.detachEvent("onresize",h);else if(y.__resizeListeners__.splice(y.__resizeListeners__.indexOf(h),1),!y.__resizeListeners__.length){y.removeEventListener("scroll",l,!0),y.__resizeTriggers__.__animationListener__&&(y.__resizeTriggers__.removeEventListener(r,y.__resizeTriggers__.__animationListener__),y.__resizeTriggers__.__animationListener__=null);try{y.__resizeTriggers__=!y.removeChild(y.__resizeTriggers__)}catch{}}}}}class Hbe extends R.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:a}=this.props;if(this._parentNode){const i=window.getComputedStyle(this._parentNode)||{},o=parseFloat(i.paddingLeft||"0"),l=parseFloat(i.paddingRight||"0"),u=parseFloat(i.paddingTop||"0"),d=parseFloat(i.paddingBottom||"0"),f=this._parentNode.getBoundingClientRect(),g=f.height-u-d,y=f.width-o-l,h=this._parentNode.offsetHeight-u-d,v=this._parentNode.offsetWidth-o-l;(!n&&(this.state.height!==h||this.state.scaledHeight!==g)||!r&&(this.state.width!==v||this.state.scaledWidth!==y))&&(this.setState({height:h,width:v,scaledHeight:g,scaledWidth:y}),typeof a=="function"&&a({height:h,scaledHeight:g,scaledWidth:y,width:v}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=qbe(t),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:a=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:o=!1,nonce:l,onResize:u,style:d={},tagName:f="div",...g}=this.props,{height:y,scaledHeight:h,scaledWidth:v,width:E}=this.state,T={overflow:"visible"},C={};let k=!1;return a||(y===0&&(k=!0),T.height=0,C.height=y,C.scaledHeight=h),i||(E===0&&(k=!0),T.width=0,C.width=E,C.scaledWidth=v),o&&(k=!1),R.createElement(f,{ref:this._setRef,style:{...T,...d},...g},!k&&t(C))}}function Vbe(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,a=e.stopIndex;return!(r>n||a0;){var h=o[0]-1;if(!t(h))o[0]=h;else break}return o}var Ybe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Kbe=(function(){function e(t,n){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,a){var i=this.props,o=i.isItemLoaded,l=i.itemCount,u=i.minimumBatchSize,d=u===void 0?10:u,f=i.threshold,g=f===void 0?15:f,y=Gbe({isItemLoaded:o,itemCount:l,minimumBatchSize:d,startIndex:Math.max(0,r-g),stopIndex:Math.min(l-1,a+g)});(this._memoizedUnloadedRanges.length!==y.length||this._memoizedUnloadedRanges.some(function(h,v){return y[v]!==h}))&&(this._memoizedUnloadedRanges=y,this._loadUnloadedRanges(y))}},{key:"_loadUnloadedRanges",value:function(r){for(var a=this,i=this.props.loadMoreItems||this.props.loadMoreRows,o=function(d){var f=r[d],g=r[d+1],y=i(f,g);y!=null&&y.then(function(){if(Vbe({lastRenderedStartIndex:a._lastRenderedStartIndex,lastRenderedStopIndex:a._lastRenderedStopIndex,startIndex:f,stopIndex:g})){if(a._listRef==null)return;typeof a._listRef.resetAfterIndex=="function"?a._listRef.resetAfterIndex(f,!0):(typeof a._listRef._getItemStyleCache=="function"&&a._listRef._getItemStyleCache(-1),a._listRef.forceUpdate())}})},l=0;l0;throw new Error("unsupported direction")}function UJ(e,t){return Zbe(e,t)?!0:e===document.body&&getComputedStyle(document.body).overflowY==="hidden"||e.parentElement==null?!1:UJ(e.parentElement,t)}class e0e extends R.Component{containerRef(t){this.container=t}pullDownRef(t){this.pullDown=t;const n=this.pullDown&&this.pullDown.firstChild&&this.pullDown.firstChild.getBoundingClientRect?this.pullDown.firstChild.getBoundingClientRect().height:0;this.setState({maxPullDownDistance:n})}constructor(t){super(t),this.container=void 0,this.pullDown=void 0,this.dragging=!1,this.startY=0,this.currentY=0,this.state={pullToRefreshThresholdBreached:!1,maxPullDownDistance:0,onRefreshing:!1},this.containerRef=this.containerRef.bind(this),this.pullDownRef=this.pullDownRef.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onEnd=this.onEnd.bind(this)}componentDidMount(){this.container&&(this.container.addEventListener("touchstart",this.onTouchStart),this.container.addEventListener("touchmove",this.onTouchMove),this.container.addEventListener("touchend",this.onEnd),this.container.addEventListener("mousedown",this.onTouchStart),this.container.addEventListener("mousemove",this.onTouchMove),this.container.addEventListener("mouseup",this.onEnd))}componentWillUnmount(){this.container&&(this.container.removeEventListener("touchstart",this.onTouchStart),this.container.removeEventListener("touchmove",this.onTouchMove),this.container.removeEventListener("touchend",this.onEnd),this.container.removeEventListener("mousedown",this.onTouchStart),this.container.removeEventListener("mousemove",this.onTouchMove),this.container.removeEventListener("mouseup",this.onEnd))}onTouchStart(t){const{triggerHeight:n=40}=this.props;if(this.startY=t.pageY||t.touches[0].pageY,this.currentY=this.startY,n==="auto"){const r=t.target,a=this.container;if(!a||t.type==="touchstart"&&UJ(r,yL.up)||a.getBoundingClientRect().top<0)return}else{const r=this.container.getBoundingClientRect().top||this.container.getBoundingClientRect().y||0;if(this.startY-r>n)return}this.dragging=!0,this.container.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)",this.pullDown.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"}onTouchMove(t){this.dragging&&(this.currentY=t.pageY||t.touches[0].pageY,!(this.currentY=this.props.pullDownThreshold&&this.setState({pullToRefreshThresholdBreached:!0}),!(this.currentY-this.startY>this.state.maxPullDownDistance)&&(this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.currentY-this.startY}px)`,this.pullDown.style.visibility="visible")))}onEnd(){if(this.dragging=!1,this.startY=0,this.currentY=0,!this.state.pullToRefreshThresholdBreached){this.pullDown.style.visibility=this.props.startInvisible?"hidden":"visible",this.initContainer();return}this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.props.pullDownThreshold}px)`,this.setState({onRefreshing:!0},()=>{this.props.onRefresh().then(()=>{this.initContainer(),setTimeout(()=>{this.setState({onRefreshing:!1,pullToRefreshThresholdBreached:!1})},200)})})}initContainer(){requestAnimationFrame(()=>{this.container&&(this.container.style.overflow="auto",this.container.style.transform="none")})}renderPullDownContent(){const{releaseContent:t,pullDownContent:n,refreshContent:r,startInvisible:a}=this.props,{onRefreshing:i,pullToRefreshThresholdBreached:o}=this.state,l=i?r:o?t:n,u={position:"absolute",overflow:"hidden",left:0,right:0,top:0,visibility:a?"hidden":"visible"};return w.jsx("div",{id:"ptr-pull-down",style:u,ref:this.pullDownRef,children:l})}render(){const{backgroundColor:t}=this.props,n={height:"auto",overflow:"hidden",margin:"0 -10px",padding:"0 10px",WebkitOverflowScrolling:"touch",position:"relative",zIndex:1};return this.props.containerStyle&&Object.keys(this.props.containerStyle).forEach(r=>{n[r]=this.props.containerStyle[r]}),t&&(n.backgroundColor=t),w.jsxs("div",{id:"ptr-parent",style:n,children:[this.renderPullDownContent(),w.jsx("div",{id:"ptr-container",ref:this.containerRef,style:n,children:this.props.children})]})}}const t0e=({height:e="200px",background:t="none"})=>w.jsxs("div",{id:"container",children:[w.jsxs("div",{className:"sk-fading-circle",children:[w.jsx("div",{className:"sk-circle1 sk-circle"}),w.jsx("div",{className:"sk-circle2 sk-circle"}),w.jsx("div",{className:"sk-circle3 sk-circle"}),w.jsx("div",{className:"sk-circle4 sk-circle"}),w.jsx("div",{className:"sk-circle5 sk-circle"}),w.jsx("div",{className:"sk-circle6 sk-circle"}),w.jsx("div",{className:"sk-circle7 sk-circle"}),w.jsx("div",{className:"sk-circle8 sk-circle"}),w.jsx("div",{className:"sk-circle9 sk-circle"}),w.jsx("div",{className:"sk-circle10 sk-circle"}),w.jsx("div",{className:"sk-circle11 sk-circle"}),w.jsx("div",{className:"sk-circle12 sk-circle"})]}),w.jsx("style",{children:` + */const qbe=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M15 4h5l-5 6h5",key:"8asdl1"}],["path",{d:"M15 20v-3.5a2.5 2.5 0 0 1 5 0V20",key:"r6l5cz"}],["path",{d:"M20 18h-5",key:"18j1r2"}]],Hbe=DF("arrow-down-z-a",qbe);function Vbe({tabIndex:e,column:t,filterType:n,sortable:r,filterable:a,selectable:i,udf:o}){var y;const l=(y=o.filters.sorting)==null?void 0:y.find(h=>h.columnName===t.key),[u,d]=R.useState("");R.useEffect(()=>{u!==Ta.get(o.filters,t.key)&&d(Ta.get(o.filters,t.key))},[o.filters]);let f;(l==null?void 0:l.columnName)===t.key&&(l==null?void 0:l.direction)=="asc"&&(f="asc"),(l==null?void 0:l.columnName)===t.key&&(l==null?void 0:l.direction)=="desc"&&(f="desc");const g=()=>{l?((l==null?void 0:l.direction)==="desc"&&o.setSorting(o.filters.sorting.filter(h=>h.columnName!==t.key)),(l==null?void 0:l.direction)==="asc"&&o.setSorting(o.filters.sorting.map(h=>h.columnName===t.key?{...h,direction:"desc"}:h))):o.setSorting([...o.filters.sorting,{columnName:t.key.toString(),direction:"asc"}])};return w.jsxs(w.Fragment,{children:[r?w.jsx("span",{className:"data-table-sort-actions",children:w.jsxs("button",{className:`active-sort-col ${t.key==(l==null?void 0:l.columnName)?"active":""}`,onClick:g,children:[f=="asc"?w.jsx(Bbe,{className:"sort-icon"}):null,f=="desc"?w.jsx(Hbe,{className:"sort-icon"}):null,f===void 0?w.jsx(zbe,{className:"sort-icon"}):null]})}):null,a?w.jsx(w.Fragment,{children:n==="date"?w.jsx("input",{className:"data-table-filter-input",tabIndex:e,value:u,onChange:h=>{d(h.target.value),o.setFilter({[t.key]:h.target.value})},placeholder:t.name||"",type:"date"}):w.jsx("input",{className:"data-table-filter-input",tabIndex:e,value:u,onChange:h=>{d(h.target.value),o.setFilter({[t.key]:h.target.value})},placeholder:t.name||""})}):w.jsx("span",{children:t.name})]})}function Gbe(e,t){const n=e.split("/").filter(Boolean);return t.split("/").forEach(a=>{a===".."?n.pop():a!=="."&&a!==""&&n.push(a)}),"/"+n.join("/")}const Ybe=(e,t,n,r=[],a,i)=>e.map(o=>{const l=r.find(u=>u.columnName===o.name);return{...o,key:o.name,renderCell:({column:u,row:d})=>{if(u.key==="uniqueId"){let f=a?a(d.uniqueId):"";return f.startsWith(".")&&(f=Gbe(i,f)),w.jsxs("div",{style:{position:"relative"},children:[w.jsx(Pl,{href:a&&a(d.uniqueId),children:d.uniqueId}),w.jsxs("div",{className:"cell-actions",children:[w.jsx(QJ,{value:d.uniqueId}),w.jsx(Ibe,{value:f})]})]})}return u.getCellValue?w.jsx(w.Fragment,{children:u.getCellValue(d)}):w.jsx("span",{children:Ta.get(d,u.key)})},width:l?l.width:o.width,name:o.title,resizable:!0,sortable:o.sortable,renderHeaderCell:u=>w.jsx(Vbe,{...u,selectable:!0,sortable:o.sortable,filterable:o.filterable,filterType:o.filterType,udf:n})}});function Kbe(e){const t=R.useRef();let[n,r]=R.useState([]);const a=R.useRef({});return{reindex:(o,l,u)=>{if(l===t.current){const d=o.filter(f=>a.current[f.uniqueId]?!1:(a.current[f.uniqueId]=!0,!0));r([...n,...d].filter(Boolean))}else r([...o].filter(Boolean)),u==null||u();t.current=l},indexedData:n}}function Xbe({columns:e,query:t,columnSizes:n,onColumnWidthsChange:r,udf:a,tableClass:i,uniqueIdHrefHandler:o}){var P,N;At();const{pathname:l}=Zd(),{filters:u,setSorting:d,setStartIndex:f,selection:g,setSelection:y,setPageSize:h,onFiltersChange:v}=a,E=R.useMemo(()=>[fye,...Ybe(e,(I,L)=>{a.setFilter({[I]:L})},a,n,o,l)],[e,n]),{indexedData:T,reindex:C}=Kbe(),k=R.useRef();R.useEffect(()=>{var L,j;const I=((j=(L=t.data)==null?void 0:L.data)==null?void 0:j.items)||[];C(I,a.queryHash,()=>{k.current.element.scrollTo({top:0,left:0})})},[(N=(P=t.data)==null?void 0:P.data)==null?void 0:N.items]);async function _(I){t.isLoading||!Qbe(I)||f(T.length)}const A=Ta.debounce((I,L)=>{const j=E.map(z=>({columnName:z.key,width:z.name===I.name?L:z.width}));r(j)},300);return w.jsx(w.Fragment,{children:w.jsx(_be,{className:i,columns:E,onScroll:_,onColumnResize:A,onSelectedRowsChange:I=>{y(Array.from(I))},selectedRows:new Set(g),ref:k,rows:T,rowKeyGetter:I=>I.uniqueId,style:{height:"calc(100% - 2px)",margin:"1px -14px"}})})}function Qbe({currentTarget:e}){return e.scrollTop+300>=e.scrollHeight-e.clientHeight}function Jbe(e){const t={};for(let n of e||[])n&&n.columnName&&Ta.set(t,n.columnName,{operation:n.operation,value:n.value});return t}let Al;typeof window<"u"?Al=window:typeof self<"u"?Al=self:Al=global;let RL=null,PL=null;const QB=20,zP=Al.clearTimeout,JB=Al.setTimeout,qP=Al.cancelAnimationFrame||Al.mozCancelAnimationFrame||Al.webkitCancelAnimationFrame,ZB=Al.requestAnimationFrame||Al.mozRequestAnimationFrame||Al.webkitRequestAnimationFrame;qP==null||ZB==null?(RL=zP,PL=function(t){return JB(t,QB)}):(RL=function([t,n]){qP(t),zP(n)},PL=function(t){const n=ZB(function(){zP(r),t()}),r=JB(function(){qP(n),t()},QB);return[n,r]});function Zbe(e){let t,n,r,a,i,o,l;const u=typeof document<"u"&&document.attachEvent;if(!u){o=function(C){const k=C.__resizeTriggers__,_=k.firstElementChild,A=k.lastElementChild,P=_.firstElementChild;A.scrollLeft=A.scrollWidth,A.scrollTop=A.scrollHeight,P.style.width=_.offsetWidth+1+"px",P.style.height=_.offsetHeight+1+"px",_.scrollLeft=_.scrollWidth,_.scrollTop=_.scrollHeight},i=function(C){return C.offsetWidth!==C.__resizeLast__.width||C.offsetHeight!==C.__resizeLast__.height},l=function(C){if(C.target.className&&typeof C.target.className.indexOf=="function"&&C.target.className.indexOf("contract-trigger")<0&&C.target.className.indexOf("expand-trigger")<0)return;const k=this;o(this),this.__resizeRAF__&&RL(this.__resizeRAF__),this.__resizeRAF__=PL(function(){i(k)&&(k.__resizeLast__.width=k.offsetWidth,k.__resizeLast__.height=k.offsetHeight,k.__resizeListeners__.forEach(function(P){P.call(k,C)}))})};let y=!1,h="";r="animationstart";const v="Webkit Moz O ms".split(" ");let E="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),T="";{const C=document.createElement("fakeelement");if(C.style.animationName!==void 0&&(y=!0),y===!1){for(let k=0;k div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',v=y.head||y.getElementsByTagName("head")[0],E=y.createElement("style");E.id="detectElementResize",E.type="text/css",e!=null&&E.setAttribute("nonce",e),E.styleSheet?E.styleSheet.cssText=h:E.appendChild(y.createTextNode(h)),v.appendChild(E)}};return{addResizeListener:function(y,h){if(u)y.attachEvent("onresize",h);else{if(!y.__resizeTriggers__){const v=y.ownerDocument,E=Al.getComputedStyle(y);E&&E.position==="static"&&(y.style.position="relative"),d(v),y.__resizeLast__={},y.__resizeListeners__=[],(y.__resizeTriggers__=v.createElement("div")).className="resize-triggers";const T=v.createElement("div");T.className="expand-trigger",T.appendChild(v.createElement("div"));const C=v.createElement("div");C.className="contract-trigger",y.__resizeTriggers__.appendChild(T),y.__resizeTriggers__.appendChild(C),y.appendChild(y.__resizeTriggers__),o(y),y.addEventListener("scroll",l,!0),r&&(y.__resizeTriggers__.__animationListener__=function(_){_.animationName===n&&o(y)},y.__resizeTriggers__.addEventListener(r,y.__resizeTriggers__.__animationListener__))}y.__resizeListeners__.push(h)}},removeResizeListener:function(y,h){if(u)y.detachEvent("onresize",h);else if(y.__resizeListeners__.splice(y.__resizeListeners__.indexOf(h),1),!y.__resizeListeners__.length){y.removeEventListener("scroll",l,!0),y.__resizeTriggers__.__animationListener__&&(y.__resizeTriggers__.removeEventListener(r,y.__resizeTriggers__.__animationListener__),y.__resizeTriggers__.__animationListener__=null);try{y.__resizeTriggers__=!y.removeChild(y.__resizeTriggers__)}catch{}}}}}class e0e extends R.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:a}=this.props;if(this._parentNode){const i=window.getComputedStyle(this._parentNode)||{},o=parseFloat(i.paddingLeft||"0"),l=parseFloat(i.paddingRight||"0"),u=parseFloat(i.paddingTop||"0"),d=parseFloat(i.paddingBottom||"0"),f=this._parentNode.getBoundingClientRect(),g=f.height-u-d,y=f.width-o-l,h=this._parentNode.offsetHeight-u-d,v=this._parentNode.offsetWidth-o-l;(!n&&(this.state.height!==h||this.state.scaledHeight!==g)||!r&&(this.state.width!==v||this.state.scaledWidth!==y))&&(this.setState({height:h,width:v,scaledHeight:g,scaledWidth:y}),typeof a=="function"&&a({height:h,scaledHeight:g,scaledWidth:y,width:v}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=Zbe(t),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:a=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:o=!1,nonce:l,onResize:u,style:d={},tagName:f="div",...g}=this.props,{height:y,scaledHeight:h,scaledWidth:v,width:E}=this.state,T={overflow:"visible"},C={};let k=!1;return a||(y===0&&(k=!0),T.height=0,C.height=y,C.scaledHeight=h),i||(E===0&&(k=!0),T.width=0,C.width=E,C.scaledWidth=v),o&&(k=!1),R.createElement(f,{ref:this._setRef,style:{...T,...d},...g},!k&&t(C))}}function t0e(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,a=e.stopIndex;return!(r>n||a0;){var h=o[0]-1;if(!t(h))o[0]=h;else break}return o}var r0e=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a0e=(function(){function e(t,n){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,a){var i=this.props,o=i.isItemLoaded,l=i.itemCount,u=i.minimumBatchSize,d=u===void 0?10:u,f=i.threshold,g=f===void 0?15:f,y=n0e({isItemLoaded:o,itemCount:l,minimumBatchSize:d,startIndex:Math.max(0,r-g),stopIndex:Math.min(l-1,a+g)});(this._memoizedUnloadedRanges.length!==y.length||this._memoizedUnloadedRanges.some(function(h,v){return y[v]!==h}))&&(this._memoizedUnloadedRanges=y,this._loadUnloadedRanges(y))}},{key:"_loadUnloadedRanges",value:function(r){for(var a=this,i=this.props.loadMoreItems||this.props.loadMoreRows,o=function(d){var f=r[d],g=r[d+1],y=i(f,g);y!=null&&y.then(function(){if(t0e({lastRenderedStartIndex:a._lastRenderedStartIndex,lastRenderedStopIndex:a._lastRenderedStopIndex,startIndex:f,stopIndex:g})){if(a._listRef==null)return;typeof a._listRef.resetAfterIndex=="function"?a._listRef.resetAfterIndex(f,!0):(typeof a._listRef._getItemStyleCache=="function"&&a._listRef._getItemStyleCache(-1),a._listRef.forceUpdate())}})},l=0;l0;throw new Error("unsupported direction")}function ZJ(e,t){return l0e(e,t)?!0:e===document.body&&getComputedStyle(document.body).overflowY==="hidden"||e.parentElement==null?!1:ZJ(e.parentElement,t)}class u0e extends R.Component{containerRef(t){this.container=t}pullDownRef(t){this.pullDown=t;const n=this.pullDown&&this.pullDown.firstChild&&this.pullDown.firstChild.getBoundingClientRect?this.pullDown.firstChild.getBoundingClientRect().height:0;this.setState({maxPullDownDistance:n})}constructor(t){super(t),this.container=void 0,this.pullDown=void 0,this.dragging=!1,this.startY=0,this.currentY=0,this.state={pullToRefreshThresholdBreached:!1,maxPullDownDistance:0,onRefreshing:!1},this.containerRef=this.containerRef.bind(this),this.pullDownRef=this.pullDownRef.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onEnd=this.onEnd.bind(this)}componentDidMount(){this.container&&(this.container.addEventListener("touchstart",this.onTouchStart),this.container.addEventListener("touchmove",this.onTouchMove),this.container.addEventListener("touchend",this.onEnd),this.container.addEventListener("mousedown",this.onTouchStart),this.container.addEventListener("mousemove",this.onTouchMove),this.container.addEventListener("mouseup",this.onEnd))}componentWillUnmount(){this.container&&(this.container.removeEventListener("touchstart",this.onTouchStart),this.container.removeEventListener("touchmove",this.onTouchMove),this.container.removeEventListener("touchend",this.onEnd),this.container.removeEventListener("mousedown",this.onTouchStart),this.container.removeEventListener("mousemove",this.onTouchMove),this.container.removeEventListener("mouseup",this.onEnd))}onTouchStart(t){const{triggerHeight:n=40}=this.props;if(this.startY=t.pageY||t.touches[0].pageY,this.currentY=this.startY,n==="auto"){const r=t.target,a=this.container;if(!a||t.type==="touchstart"&&ZJ(r,AL.up)||a.getBoundingClientRect().top<0)return}else{const r=this.container.getBoundingClientRect().top||this.container.getBoundingClientRect().y||0;if(this.startY-r>n)return}this.dragging=!0,this.container.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)",this.pullDown.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"}onTouchMove(t){this.dragging&&(this.currentY=t.pageY||t.touches[0].pageY,!(this.currentY=this.props.pullDownThreshold&&this.setState({pullToRefreshThresholdBreached:!0}),!(this.currentY-this.startY>this.state.maxPullDownDistance)&&(this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.currentY-this.startY}px)`,this.pullDown.style.visibility="visible")))}onEnd(){if(this.dragging=!1,this.startY=0,this.currentY=0,!this.state.pullToRefreshThresholdBreached){this.pullDown.style.visibility=this.props.startInvisible?"hidden":"visible",this.initContainer();return}this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.props.pullDownThreshold}px)`,this.setState({onRefreshing:!0},()=>{this.props.onRefresh().then(()=>{this.initContainer(),setTimeout(()=>{this.setState({onRefreshing:!1,pullToRefreshThresholdBreached:!1})},200)})})}initContainer(){requestAnimationFrame(()=>{this.container&&(this.container.style.overflow="auto",this.container.style.transform="none")})}renderPullDownContent(){const{releaseContent:t,pullDownContent:n,refreshContent:r,startInvisible:a}=this.props,{onRefreshing:i,pullToRefreshThresholdBreached:o}=this.state,l=i?r:o?t:n,u={position:"absolute",overflow:"hidden",left:0,right:0,top:0,visibility:a?"hidden":"visible"};return w.jsx("div",{id:"ptr-pull-down",style:u,ref:this.pullDownRef,children:l})}render(){const{backgroundColor:t}=this.props,n={height:"auto",overflow:"hidden",margin:"0 -10px",padding:"0 10px",WebkitOverflowScrolling:"touch",position:"relative",zIndex:1};return this.props.containerStyle&&Object.keys(this.props.containerStyle).forEach(r=>{n[r]=this.props.containerStyle[r]}),t&&(n.backgroundColor=t),w.jsxs("div",{id:"ptr-parent",style:n,children:[this.renderPullDownContent(),w.jsx("div",{id:"ptr-container",ref:this.containerRef,style:n,children:this.props.children})]})}}const c0e=({height:e="200px",background:t="none"})=>w.jsxs("div",{id:"container",children:[w.jsxs("div",{className:"sk-fading-circle",children:[w.jsx("div",{className:"sk-circle1 sk-circle"}),w.jsx("div",{className:"sk-circle2 sk-circle"}),w.jsx("div",{className:"sk-circle3 sk-circle"}),w.jsx("div",{className:"sk-circle4 sk-circle"}),w.jsx("div",{className:"sk-circle5 sk-circle"}),w.jsx("div",{className:"sk-circle6 sk-circle"}),w.jsx("div",{className:"sk-circle7 sk-circle"}),w.jsx("div",{className:"sk-circle8 sk-circle"}),w.jsx("div",{className:"sk-circle9 sk-circle"}),w.jsx("div",{className:"sk-circle10 sk-circle"}),w.jsx("div",{className:"sk-circle11 sk-circle"}),w.jsx("div",{className:"sk-circle12 sk-circle"})]}),w.jsx("style",{children:` #container { display: flex; flex-direction: column; @@ -360,7 +357,7 @@ PERFORMANCE OF THIS SOFTWARE. opacity: 1; } } - `})]}),n0e=({height:e="200px",background:t="none",label:n="Pull down to refresh"})=>w.jsxs("div",{id:"container2",children:[w.jsx("span",{children:n}),w.jsx("style",{children:` + `})]}),d0e=({height:e="200px",background:t="none",label:n="Pull down to refresh"})=>w.jsxs("div",{id:"container2",children:[w.jsx("span",{children:n}),w.jsx("style",{children:` #container2 { background: ${t}; height: ${e}; @@ -384,7 +381,7 @@ PERFORMANCE OF THIS SOFTWARE. opacity: 1; } } - `})]}),r0e=({height:e="200px",background:t="none",label:n="Release to refresh"})=>w.jsxs("div",{id:"container",children:[w.jsx("div",{id:"arrow"}),w.jsx("span",{children:n}),w.jsx("style",{children:` + `})]}),f0e=({height:e="200px",background:t="none",label:n="Release to refresh"})=>w.jsxs("div",{id:"container",children:[w.jsx("div",{id:"arrow"}),w.jsx("span",{children:n}),w.jsx("style",{children:` #container { background: ${t||"none"}; height: ${e||"200px"}; @@ -409,35 +406,38 @@ PERFORMANCE OF THIS SOFTWARE. opacity: 1; } } - `})]}),ef=({label:e,getInputRef:t,displayValue:n,Icon:r,children:a,errorMessage:i,validMessage:o,value:l,hint:u,onClick:d,onChange:f,className:g,focused:y=!1,hasAnimation:h})=>w.jsxs("div",{style:{position:"relative"},className:ia("mb-3",g),children:[e&&w.jsx("label",{className:"form-label",children:e}),a,w.jsx("div",{className:"form-text",children:u}),w.jsx("div",{className:"invalid-feedback",children:i}),w.jsx("div",{className:"valid-feedback",children:o})]}),Us=e=>{const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,isSubmitting:o,errorMessage:l,onChange:u,value:d,disabled:f,type:g,focused:y=!1,className:h,mutation:v,...E}=e,T=v==null?void 0:v.isLoading;return w.jsx("button",{onClick:e.onClick,type:"submit",disabled:f||T,className:ia("btn mb-3",`btn-${g||"primary"}`,h),...e,children:e.children||e.label})};function a0e(e,t,n={}){var r,a,i,o,l,u,d,f,g,y;if(t.isError){if(((r=t.error)==null?void 0:r.status)===404)return e.notfound+"("+n.remote+")";if(t.error.message==="Failed to fetch")return e.networkError+"("+n.remote+")";if((i=(a=t.error)==null?void 0:a.error)!=null&&i.messageTranslated)return(l=(o=t.error)==null?void 0:o.error)==null?void 0:l.messageTranslated;if((d=(u=t.error)==null?void 0:u.error)!=null&&d.message)return(g=(f=t.error)==null?void 0:f.error)==null?void 0:g.message;let h=(y=t.error)==null?void 0:y.toString();return(h+"").includes("object Object")&&(h="There is an unknown error while getting information, please contact your software provider if issue persists."),h}return null}function Al({query:e,children:t}){var d,f,g,y;const n=At(),{options:r,setOverrideRemoteUrl:a,overrideRemoteUrl:i}=R.useContext(nt);let o=!1,l="80";try{if(r!=null&&r.prefix){const h=new URL(r==null?void 0:r.prefix);l=h.port||(h.protocol==="https:"?"443":"80"),o=(location.host.includes("192.168")||location.host.includes("127.0"))&&((f=(d=e.error)==null?void 0:d.message)==null?void 0:f.includes("Failed to fetch"))}}catch{}const u=()=>{a("http://"+location.hostname+":"+l+"/")};return e?w.jsxs(w.Fragment,{children:[e.isError&&w.jsxs("div",{className:"basic-error-box fadein",children:[a0e(n,e,{remote:r.prefix})||"",o&&w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:u,children:"Auto-reroute"}),i&&w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>a(void 0),children:"Reset"}),w.jsx("ul",{children:(((y=(g=e.error)==null?void 0:g.error)==null?void 0:y.errors)||[]).map(h=>w.jsxs("li",{children:[h.messageTranslated||h.message," (",h.location,")"]},h.location))}),e.refetch&&w.jsx(Us,{onClick:e.refetch,children:"Retry"})]}),!e.isError||e.isPreviousData?t:null]}):null}function BJ({content:e,columns:t,uniqueIdHrefHandler:n,style:r}){const a=n?kl:"span";return w.jsx(a,{className:"auto-card-list-item card mb-2 p-3",style:r,href:n(e.uniqueId),children:t.map(i=>{let o=i.getCellValue?i.getCellValue(e):"";return o||(o=i.name?e[i.name]:""),o||(o="-"),i.name==="uniqueId"?null:w.jsxs("div",{className:"row auto-card-drawer",children:[w.jsxs("div",{className:"col-6",children:[i.title,":"]}),w.jsx("div",{className:"col-6",children:o})]},i.title)})})}const i0e=()=>{const e=At();return w.jsxs("div",{className:"empty-list-indicator",children:[w.jsx("img",{src:$s("/common/empty.png")}),w.jsx("div",{children:e.table.noRecords})]})};function Dt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var WB=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function o0e(e,t){return!!(e===t||WB(e)&&WB(t))}function s0e(e,t){if(e.length!==t.length)return!1;for(var n=0;n=0)&&(n[a]=e[a]);return n}var u0e=typeof performance=="object"&&typeof performance.now=="function",zB=u0e?function(){return performance.now()}:function(){return Date.now()};function qB(e){cancelAnimationFrame(e.id)}function c0e(e,t){var n=zB();function r(){zB()-n>=t?e.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var $P=-1;function HB(e){if(e===void 0&&(e=!1),$P===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),$P=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return $P}var ub=null;function VB(e){if(e===void 0&&(e=!1),ub===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?ub="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?ub="negative":ub="positive-ascending"),document.body.removeChild(t),ub}return ub}var d0e=150,f0e=function(t,n){return t};function p0e(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,a=e.getItemSize,i=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,u=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=(function(g){Fv(y,g);function y(v){var E;return E=g.call(this,v)||this,E._instanceProps=u(E.props,Dt(E)),E._outerRef=void 0,E._resetIsScrollingTimeoutId=null,E.state={instance:Dt(E),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof E.props.initialScrollOffset=="number"?E.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},E._callOnItemsRendered=void 0,E._callOnItemsRendered=DP(function(T,C,k,_){return E.props.onItemsRendered({overscanStartIndex:T,overscanStopIndex:C,visibleStartIndex:k,visibleStopIndex:_})}),E._callOnScroll=void 0,E._callOnScroll=DP(function(T,C,k){return E.props.onScroll({scrollDirection:T,scrollOffset:C,scrollUpdateWasRequested:k})}),E._getItemStyle=void 0,E._getItemStyle=function(T){var C=E.props,k=C.direction,_=C.itemSize,A=C.layout,P=E._getItemStyleCache(d&&_,d&&A,d&&k),N;if(P.hasOwnProperty(T))N=P[T];else{var I=n(E.props,T,E._instanceProps),L=a(E.props,T,E._instanceProps),j=k==="horizontal"||A==="horizontal",z=k==="rtl",Q=j?I:0;P[T]=N={position:"absolute",left:z?void 0:Q,right:z?Q:void 0,top:j?0:I,height:j?"100%":L,width:j?L:"100%"}}return N},E._getItemStyleCache=void 0,E._getItemStyleCache=DP(function(T,C,k){return{}}),E._onScrollHorizontal=function(T){var C=T.currentTarget,k=C.clientWidth,_=C.scrollLeft,A=C.scrollWidth;E.setState(function(P){if(P.scrollOffset===_)return null;var N=E.props.direction,I=_;if(N==="rtl")switch(VB()){case"negative":I=-_;break;case"positive-descending":I=A-k-_;break}return I=Math.max(0,Math.min(I,A-k)),{isScrolling:!0,scrollDirection:P.scrollOffsetN.clientWidth?HB():0:P=N.scrollHeight>N.clientHeight?HB():0}this.scrollTo(i(this.props,E,T,A,this._instanceProps,P))},h.componentDidMount=function(){var E=this.props,T=E.direction,C=E.initialScrollOffset,k=E.layout;if(typeof C=="number"&&this._outerRef!=null){var _=this._outerRef;T==="horizontal"||k==="horizontal"?_.scrollLeft=C:_.scrollTop=C}this._callPropsCallbacks()},h.componentDidUpdate=function(){var E=this.props,T=E.direction,C=E.layout,k=this.state,_=k.scrollOffset,A=k.scrollUpdateWasRequested;if(A&&this._outerRef!=null){var P=this._outerRef;if(T==="horizontal"||C==="horizontal")if(T==="rtl")switch(VB()){case"negative":P.scrollLeft=-_;break;case"positive-ascending":P.scrollLeft=_;break;default:var N=P.clientWidth,I=P.scrollWidth;P.scrollLeft=I-N-_;break}else P.scrollLeft=_;else P.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&qB(this._resetIsScrollingTimeoutId)},h.render=function(){var E=this.props,T=E.children,C=E.className,k=E.direction,_=E.height,A=E.innerRef,P=E.innerElementType,N=E.innerTagName,I=E.itemCount,L=E.itemData,j=E.itemKey,z=j===void 0?f0e:j,Q=E.layout,le=E.outerElementType,re=E.outerTagName,ge=E.style,me=E.useIsScrolling,W=E.width,G=this.state.isScrolling,q=k==="horizontal"||Q==="horizontal",ce=q?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),Y=H[0],ie=H[1],J=[];if(I>0)for(var ee=Y;ee<=ie;ee++)J.push(R.createElement(T,{data:L,key:z(ee,L),index:ee,isScrolling:me?G:void 0,style:this._getItemStyle(ee)}));var Z=r(this.props,this._instanceProps);return R.createElement(le||re||"div",{className:C,onScroll:ce,ref:this._outerRefSetter,style:vt({position:"relative",height:_,width:W,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:k},ge)},R.createElement(P||N||"div",{children:J,ref:A,style:{height:q?"100%":Z,pointerEvents:G?"none":void 0,width:q?Z:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var E=this.props.itemCount;if(E>0){var T=this._getRangeToRender(),C=T[0],k=T[1],_=T[2],A=T[3];this._callOnItemsRendered(C,k,_,A)}}if(typeof this.props.onScroll=="function"){var P=this.state,N=P.scrollDirection,I=P.scrollOffset,L=P.scrollUpdateWasRequested;this._callOnScroll(N,I,L)}},h._getRangeToRender=function(){var E=this.props,T=E.itemCount,C=E.overscanCount,k=this.state,_=k.isScrolling,A=k.scrollDirection,P=k.scrollOffset;if(T===0)return[0,0,0,0];var N=o(this.props,P,this._instanceProps),I=l(this.props,N,P,this._instanceProps),L=!_||A==="backward"?Math.max(1,C):1,j=!_||A==="forward"?Math.max(1,C):1;return[Math.max(0,N-L),Math.max(0,Math.min(T-1,I+j)),N,I]},y})(R.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var h0e=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},m0e=p0e({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,a,i,o){var l=t.direction,u=t.height,d=t.itemCount,f=t.itemSize,g=t.layout,y=t.width,h=l==="horizontal"||g==="horizontal",v=h?y:u,E=Math.max(0,d*f-v),T=Math.min(E,n*f),C=Math.max(0,n*f-v+f+o);switch(r==="smart"&&(a>=C-v&&a<=T+v?r="auto":r="center"),r){case"start":return T;case"end":return C;case"center":{var k=Math.round(C+(T-C)/2);return kE+Math.floor(v/2)?E:k}case"auto":default:return a>=C&&a<=T?a:a{var k,_,A,P,N,I;At();const l=R.useRef();let[u,d]=R.useState([]);const[f,g]=R.useState(!0),y=js();t&&t({queryClient:y});const h=(L,j)=>{const z=r.debouncedFilters.startIndex||0,Q=[...u];l.current!==j&&(Q.length=0,l.current=j);for(let le=z;le<(r.debouncedFilters.itemsPerPage||0)+z;le++){const re=le-z;L[re]&&(Q[le]=L[re])}d(Q)};R.useEffect(()=>{var j,z,Q;const L=((z=(j=i.query.data)==null?void 0:j.data)==null?void 0:z.items)||[];h(L,(Q=i.query.data)==null?void 0:Q.jsonQuery)},[(_=(k=i.query.data)==null?void 0:k.data)==null?void 0:_.items]);const v=({index:L,style:j})=>{var Q,le;return u[L]?o?w.jsx(o,{content:u[L]},(Q=u[L])==null?void 0:Q.uniqueId):w.jsx(BJ,{style:{...j,top:j.top+10,height:j.height-10,width:j.width},uniqueIdHrefHandler:n,columns:e,content:u[L]},(le=u[L])==null?void 0:le.uniqueId):null},E=({scrollOffset:L})=>{L===0&&!f?g(!0):L>0&&f&&g(!1)},T=R.useCallback(()=>(i.query.refetch(),Promise.resolve(!0)),[]),C=((N=(P=(A=i.query)==null?void 0:A.data)==null?void 0:P.data)==null?void 0:N.totalItems)||0;return w.jsx(w.Fragment,{children:w.jsx(e0e,{pullDownContent:w.jsx(n0e,{label:""}),releaseContent:w.jsx(r0e,{}),refreshContent:w.jsx(t0e,{}),pullDownThreshold:200,onRefresh:T,triggerHeight:f?500:0,startInvisible:!0,children:u.length===0&&!((I=i.query)!=null&&I.isError)?w.jsx("div",{style:{height:"calc(100vh - 130px)"},children:w.jsx(i0e,{})}):w.jsxs("div",{style:{height:"calc(100vh - 130px)"},children:[w.jsx(Al,{query:i.query}),w.jsx(Qbe,{isItemLoaded:L=>!!u[L],itemCount:C,loadMoreItems:async(L,j)=>{r.setFilter({startIndex:L,itemsPerPage:j-L})},children:({onItemsRendered:L,ref:j})=>w.jsx(Hbe,{children:({height:z,width:Q})=>w.jsx(m0e,{height:z,itemCount:u.length,itemSize:o!=null&&o.getHeight?o.getHeight():e.length*24+10,width:Q,onScroll:E,onItemsRendered:L,ref:j,children:v})})})]})})})},v0e=({columns:e,deleteHook:t,uniqueIdHrefHandler:n,udf:r,q:a})=>{var d,f,g,y,h,v,E,T;const i=At(),o=js();t&&t({queryClient:o}),(f=(d=a.query.data)==null?void 0:d.data)!=null&&f.items;const l=((h=(y=(g=a.query)==null?void 0:g.data)==null?void 0:y.data)==null?void 0:h.items)||[],u=((T=(E=(v=a.query)==null?void 0:v.data)==null?void 0:E.data)==null?void 0:T.totalItems)||0;return w.jsxs(w.Fragment,{children:[u===0&&w.jsx("p",{children:i.table.noRecords}),l.map(C=>w.jsx(BJ,{style:{},uniqueIdHrefHandler:n,columns:e,content:C},C.uniqueId))]})},GB=matchMedia("(max-width: 600px)");function y0e(){const e=R.useRef(GB),[t,n]=R.useState(GB.matches?"card":"datatable");return R.useEffect(()=>{const r=e.current;function a(){r.matches?n("card"):n("datatable")}return r.addEventListener("change",a),()=>r.removeEventListener("change",a)},[]),{view:t}}const jo=({children:e,columns:t,deleteHook:n,uniqueIdHrefHandler:r,withFilters:a,queryHook:i,onRecordsDeleted:o,selectable:l,id:u,RowDetail:d,withPreloads:f,queryFilters:g,deep:y,inlineInsertHook:h,bulkEditHook:v,urlMask:E,CardComponent:T})=>{var G,q,ce,H;At();const{view:C}=y0e(),k=js(),{query:_}=Nve({query:{uniqueId:i.UKEY}}),[A,P]=R.useState(t.map(Y=>({columnName:Y.name,width:Y.width})));R.useEffect(()=>{var Y,ie,J,ee;if((ie=(Y=_.data)==null?void 0:Y.data)!=null&&ie.sizes)P(JSON.parse((ee=(J=_.data)==null?void 0:J.data)==null?void 0:ee.sizes));else{const Z=localStorage.getItem(`table_${i.UKEY}`);Z&&P(JSON.parse(Z))}},[(q=(G=_.data)==null?void 0:G.data)==null?void 0:q.sizes]);const{submit:N}=Mve({queryClient:k}),I=n&&n({queryClient:k}),L=Ave({urlMask:"",submitDelete:I==null?void 0:I.submit,onRecordsDeleted:o?()=>o({queryClient:k}):void 0}),[j]=R.useState(t.map(Y=>({columnName:Y.name,width:Y.width}))),z=Y=>{P(Y);const ie=JSON.stringify(Y);N({uniqueId:i.UKEY,sizes:ie}),localStorage.setItem(`table_${i.UKEY}`,ie)};let Q=({value:Y})=>w.jsx("div",{style:{position:"relative"},children:w.jsx(kl,{href:r&&r(Y),children:Y})}),le=Y=>w.jsx(kve,{formatterComponent:Q,...Y});const re=[...g||[]],ge=R.useMemo(()=>zbe(re),[re]),me=i({query:{deep:y===void 0?!0:y,...L.debouncedFilters,withPreloads:f},queryClient:k});me.jsonQuery=ge;const W=((H=(ce=me.query.data)==null?void 0:ce.data)==null?void 0:H.items)||[];return w.jsxs(w.Fragment,{children:[C==="map"&&w.jsx(v0e,{columns:t,deleteHook:n,uniqueIdHrefHandler:r,q:me,udf:L}),C==="card"&&w.jsx(g0e,{columns:t,CardComponent:T,jsonQuery:ge,deleteHook:n,uniqueIdHrefHandler:r,q:me,udf:L}),C==="datatable"&&w.jsxs(Bbe,{udf:L,selectable:l,bulkEditHook:v,RowDetail:d,uniqueIdHrefHandler:r,onColumnWidthsChange:z,columns:t,columnSizes:A,inlineInsertHook:h,rows:W,defaultColumnWidths:j,query:me.query,booleanColumns:["uniqueId"],withFilters:a,children:[w.jsx(le,{for:["uniqueId"]}),e]})]})},b0e=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:vi.Fields.name,title:e.capabilities.name,width:100},{name:vi.Fields.description,title:e.capabilities.description,width:100}];function w0e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(nt),o=t?t(a):i?i(a):St(a);let u=`${"/capability".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*fireback.CapabilityEntity",k=>g(k)),n==null||n.invalidateQueries("*fireback.CapabilityEntity"),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function WJ({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/capabilities".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*fireback.CapabilityEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}WJ.UKEY="*fireback.CapabilityEntity";const S0e=()=>{const e=Kt(kE);return w.jsx(w.Fragment,{children:w.jsx(jo,{columns:b0e(e),queryHook:WJ,uniqueIdHrefHandler:t=>vi.Navigation.single(t),deleteHook:w0e})})},E0e=()=>{const e=Kt(kE);return w.jsx(Fo,{pageTitle:e.capabilities.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(vi.Navigation.create())},children:w.jsx(S0e,{})})};function Dr(e){const t=R.useRef(),n=js();R.useEffect(()=>{var d;e!=null&&e.data&&((d=t.current)==null||d.setValues(e.data))},[e==null?void 0:e.data]);const r=xr(),a=r.query.uniqueId,i=r.query.linkerId,o=!!a,{locale:l}=sr(),u=At();return{router:r,t:u,isEditing:o,locale:l,queryClient:n,formik:t,uniqueId:a,linkerId:i}}const Uo=({data:e,Form:t,getSingleHook:n,postHook:r,onCancel:a,onFinishUriResolver:i,disableOnGetFailed:o,patchHook:l,onCreateTitle:u,onEditTitle:d,setInnerRef:f,beforeSetValues:g,forceEdit:y,onlyOnRoot:h,customClass:v,beforeSubmit:E,onSuccessPatchOrPost:T})=>{var re,ge,me;const[C,k]=R.useState(),{router:_,isEditing:A,locale:P,formik:N,t:I}=Dr({data:e}),L=R.useRef({});xQ(a,Ir.CommonBack);const{selectedUrw:j}=R.useContext(nt);hh((A||y?d:u)||"");const{query:z}=n;R.useEffect(()=>{var W,G,q;(W=z.data)!=null&&W.data&&((G=N.current)==null||G.setValues(g?g({...z.data.data}):{...z.data.data}),k((q=z.data)==null?void 0:q.data))},[z.data]),R.useEffect(()=>{var W;(W=N.current)==null||W.setSubmitting((r==null?void 0:r.mutation.isLoading)||(l==null?void 0:l.mutation.isLoading))},[r==null?void 0:r.isLoading,l==null?void 0:l.isLoading]);const Q=(W,G)=>{let q=L.current;q.uniqueId=W.uniqueId,E&&(q=E(q)),(A||y?l==null?void 0:l.submit(q,G):r==null?void 0:r.submit(q,G)).then(H=>{var Y;(Y=H.data)!=null&&Y.uniqueId&&(T?T(H):i?_.goBackOrDefault(i(H,P)):Ohe("Done",{type:"success"}))}).catch(H=>void 0)},le=((re=n==null?void 0:n.query)==null?void 0:re.isLoading)||!1||((ge=r==null?void 0:r.query)==null?void 0:ge.isLoading)||!1||((me=l==null?void 0:l.query)==null?void 0:me.isLoading)||!1;return mhe({onSave(){var W;(W=N.current)==null||W.submitForm()}}),h&&j.workspaceId!=="root"?w.jsx("div",{children:I.onlyOnRoot}):w.jsx(ss,{innerRef:W=>{W&&(N.current=W,f&&f(W))},initialValues:{},onSubmit:Q,children:W=>{var G,q,ce,H;return w.jsx("form",{onSubmit:Y=>{Y.preventDefault(),W.submitForm()},className:v??"headless-form-entity-manager",children:w.jsxs("fieldset",{disabled:le,children:[w.jsx("div",{style:{marginBottom:"15px"},children:w.jsx(Al,{query:(G=r==null?void 0:r.mutation)!=null&&G.isError?r.mutation:(q=l==null?void 0:l.mutation)!=null&&q.isError?l.mutation:(ce=n==null?void 0:n.query)!=null&&ce.isError?n.query:null})}),o===!0&&((H=n==null?void 0:n.query)!=null&&H.isError)?null:w.jsx(t,{isEditing:A,initialData:C,form:{...W,setValues:(Y,ie)=>{for(const J in Y)Ea.set(L.current,J,Y[J]);return W.setValues(Y)},setFieldValue:(Y,ie,J)=>(Ea.set(L.current,Y,ie),W.setFieldValue(Y,ie,J))}}),w.jsx("button",{type:"submit",className:"d-none"})]})})}})},T0e={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-468]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function C0e(e,t,n){switch(n){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1);break}return{value:e,caret:t}}function k0e(e,t,n){for(var r={},a="",i=0,o=0;oo&&(i=a.length))),o++}t===void 0&&(i=a.length);var u={value:a,caret:i};return u}function x0e(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_0e(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _0e(e,t){if(e){if(typeof e=="string")return YB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YB(e,t)}}function YB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:"x",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",a=e.length,i=bL("(",e),o=bL(")",e),l=i-o;l>0&&a=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P0e(e,t){if(e){if(typeof e=="string")return KB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KB(e,t)}}function KB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!e)return function(a){return{text:a}};var r=bL(t,e);return function(a){if(!a)return{text:"",template:e};for(var i=0,o="",l=R0e(e.split("")),u;!(u=l()).done;){var d=u.value;if(d!==t){o+=d;continue}if(o+=a[i],i++,i===a.length&&a.length=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function H0e(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function V0e(e){var t=e.ref,n=e.parse,r=e.format,a=e.value,i=e.defaultValue,o=e.controlled,l=o===void 0?!0:o,u=e.onChange,d=e.onKeyDown,f=q0e(e,W0e),g=R.useRef(),y=R.useCallback(function(T){g.current=T,t&&(typeof t=="function"?t(T):t.current=T)},[t]),h=R.useCallback(function(T){return j0e(T,g.current,n,r,u)},[g,n,r,u]),v=R.useCallback(function(T){if(d&&d(T),!T.defaultPrevented)return U0e(T,g.current,n,r,u)},[g,n,r,u,d]),E=cb(cb({},f),{},{ref:y,onChange:h,onKeyDown:v});return l?cb(cb({},E),{},{value:r(JB(a)?"":a).text}):cb(cb({},E),{},{defaultValue:r(JB(i)?"":i).text})}function JB(e){return e==null}var G0e=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function ZB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Y0e(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Q0e(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function dx(e,t){var n=e.inputComponent,r=n===void 0?"input":n,a=e.parse,i=e.format,o=e.value,l=e.defaultValue,u=e.onChange,d=e.controlled,f=e.onKeyDown,g=e.type,y=g===void 0?"text":g,h=X0e(e,G0e),v=V0e(Y0e({ref:t,parse:a,format:i,value:o,defaultValue:l,onChange:u,controlled:d,onKeyDown:f,type:y},h));return ze.createElement(r,v)}dx=ze.forwardRef(dx);dx.propTypes={parse:Ye.func.isRequired,format:Ye.func.isRequired,inputComponent:Ye.elementType,type:Ye.string,value:Ye.string,defaultValue:Ye.string,onChange:Ye.func,controlled:Ye.bool,onKeyDown:Ye.func,onCut:Ye.func,onPaste:Ye.func};function e8(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),a=0;a<3;a++){var i=Number(n[a]),o=Number(r[a]);if(i>o)return 1;if(o>i)return-1;if(!isNaN(i)&&isNaN(o))return 1;if(isNaN(i)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]i?"TOO_SHORT":a[a.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function lwe(e,t,n){if(t===void 0&&(t={}),n=new ii(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return GJ(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function GJ(e,t){switch(p_(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function Fd(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function uwe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=cwe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cwe(e,t){if(e){if(typeof e=="string")return a8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a8(e,t)}}function a8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0}var kF=2,mwe=17,gwe=3,$o="0-90-9٠-٩۰-۹",vwe="-‐-―−ー-",ywe="//",bwe="..",wwe="  ­​⁠ ",Swe="()()[]\\[\\]",Ewe="~⁓∼~",Eu="".concat(vwe).concat(ywe).concat(bwe).concat(wwe).concat(Swe).concat(Ewe),h_="++",Twe=new RegExp("(["+$o+"])");function YJ(e,t,n,r){if(t){var a=new ii(r);a.selectNumberingPlan(t,n);var i=new RegExp(a.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var o=e.match(Twe);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]==="0"))return e}}}function EL(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var a,i,o=r.length-1,l=o>0&&r[o];if(t.nationalPrefixTransformRule()&&l)a=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(i=r[1]);else{var u=r[0];a=e.slice(u.length),l&&(i=r[1])}var d;if(l){var f=e.indexOf(r[1]),g=e.slice(0,f);g===t.numberingPlan.nationalPrefix()&&(d=t.numberingPlan.nationalPrefix())}else d=r[0];return{nationalNumber:a,nationalPrefix:d,carrierCode:i}}}return{nationalNumber:e}}function TL(e,t){var n=EL(e,t),r=n.carrierCode,a=n.nationalNumber;if(a!==e){if(!Cwe(e,a,t))return{nationalNumber:e};if(t.possibleLengths()&&!kwe(a,t))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:r}}function Cwe(e,t,n){return!(Fd(e,n.nationalNumberPattern())&&!Fd(t,n.nationalNumberPattern()))}function kwe(e,t){switch(p_(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function KJ(e,t,n,r){var a=t?gh(t,r):n;if(e.indexOf(a)===0){r=new ii(r),r.selectNumberingPlan(t,n);var i=e.slice(a.length),o=TL(i,r),l=o.nationalNumber,u=TL(e,r),d=u.nationalNumber;if(!Fd(d,r.nationalNumberPattern())&&Fd(l,r.nationalNumberPattern())||p_(d,r)==="TOO_LONG")return{countryCallingCode:a,number:i}}return{number:e}}function xF(e,t,n,r){if(!e)return{};var a;if(e[0]!=="+"){var i=YJ(e,t,n,r);if(i&&i!==e)a=!0,e="+"+i;else{if(t||n){var o=KJ(e,t,n,r),l=o.countryCallingCode,u=o.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:u}}return{number:e}}}if(e[1]==="0")return{};r=new ii(r);for(var d=2;d-1<=gwe&&d<=e.length;){var f=e.slice(1,d);if(r.hasCallingCode(f))return r.selectNumberingPlan(f),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:f,number:e.slice(d)};d++}return{}}function XJ(e){return e.replace(new RegExp("[".concat(Eu,"]+"),"g")," ").trim()}var QJ=/(\$\d)/;function JJ(e,t,n){var r=n.useInternationalFormat,a=n.withNationalPrefix;n.carrierCode,n.metadata;var i=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(QJ,t.nationalPrefixFormattingRule()):t.format());return r?XJ(i):i}var xwe=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function _we(e,t,n){var r=new ii(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(xwe.test(r.IDDPrefix()))return r.IDDPrefix()}var Owe=";ext=",db=function(t){return"([".concat($o,"]{1,").concat(t,"})")};function ZJ(e){var t="20",n="15",r="9",a="6",i="[  \\t,]*",o="[:\\..]?[  \\t,-]*",l="#?",u="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",f="[- ]+",g="[  \\t]*",y="(?:,{2}|;)",h=Owe+db(t),v=i+u+o+db(t)+l,E=i+d+o+db(r)+l,T=f+db(a)+"#",C=g+y+o+db(n)+l,k=g+"(?:,)+"+o+db(r)+l;return h+"|"+v+"|"+E+"|"+T+"|"+C+"|"+k}var Rwe="["+$o+"]{"+kF+"}",Pwe="["+h_+"]{0,1}(?:["+Eu+"]*["+$o+"]){3,}["+Eu+$o+"]*",Awe=new RegExp("^["+h_+"]{0,1}(?:["+Eu+"]*["+$o+"]){1,2}$","i"),Nwe=Pwe+"(?:"+ZJ()+")?",Mwe=new RegExp("^"+Rwe+"$|^"+Nwe+"$","i");function Iwe(e){return e.length>=kF&&Mwe.test(e)}function Dwe(e){return Awe.test(e)}function $we(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}function Lwe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Fwe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fwe(e,t){if(e){if(typeof e=="string")return i8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i8(e,t)}}function i8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var i=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(t.search(i)!==0)continue}if(Fd(t,a.pattern()))return a}}function FP(e,t,n,r){return t?r(e,t,n):e}function Wwe(e,t,n,r,a){var i=gh(r,a.metadata);if(i===n){var o=fx(e,t,"NATIONAL",a);return n==="1"?n+" "+o:o}var l=_we(r,void 0,a.metadata);if(l)return"".concat(l," ").concat(n," ").concat(fx(e,null,"INTERNATIONAL",a))}function u8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function c8(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function t1e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function WS(e,t){return WS=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},WS(e,t)}function zS(e){return zS=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},zS(e)}var _d=(function(e){Jwe(n,e);var t=Zwe(n);function n(r){var a;return Qwe(this,n),a=t.call(this,r),Object.setPrototypeOf(tZ(a),n.prototype),a.name=a.constructor.name,a}return Xwe(n)})(kL(Error)),d8=new RegExp("(?:"+ZJ()+")$","i");function n1e(e){var t=e.search(d8);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(d8),a=1;a=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a1e(e,t){if(e){if(typeof e=="string")return f8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f8(e,t)}}function f8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s1e(e,t){if(e){if(typeof e=="string")return p8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p8(e,t)}}function p8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u1e(e,t){if(e){if(typeof e=="string")return h8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h8(e,t)}}function h8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function w1e(e){return e===null?!0:e.length===0?!1:f1e.test(e)||v1e.test(e)}function S1e(e,t){var n=t.extractFormattedPhoneNumber,r=b1e(e);if(!w1e(r))throw new _d("NOT_A_NUMBER");var a;if(r===null)a=n(e)||"";else{a="",r.charAt(0)===sZ&&(a+=r);var i=e.indexOf(g8),o;i>=0?o=i+g8.length:o=0;var l=e.indexOf(OL);a+=e.substring(o,l)}var u=a.indexOf(y1e);if(u>0&&(a=a.substring(0,u)),a!=="")return a}var E1e=250,T1e=new RegExp("["+h_+$o+"]"),C1e=new RegExp("[^"+$o+"#]+$");function k1e(e,t,n){if(t=t||{},n=new ii(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new _d("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=_1e(e,t.v2,t.extract),a=r.number,i=r.ext,o=r.error;if(!a){if(t.v2)throw o==="TOO_SHORT"?new _d("TOO_SHORT"):new _d("NOT_A_NUMBER");return{}}var l=R1e(a,t.defaultCountry,t.defaultCallingCode,n),u=l.country,d=l.nationalNumber,f=l.countryCallingCode,g=l.countryCallingCodeSource,y=l.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new _d("INVALID_COUNTRY");return{}}if(!d||d.lengthmwe){if(t.v2)throw new _d("TOO_LONG");return{}}if(t.v2){var h=new eZ(f,d,n.metadata);return u&&(h.country=u),y&&(h.carrierCode=y),i&&(h.ext=i),h.__countryCallingCodeSource=g,h}var v=(t.extended?n.hasSelectedNumberingPlan():u)?Fd(d,n.nationalNumberPattern()):!1;return t.extended?{country:u,countryCallingCode:f,carrierCode:y,valid:v,possible:v?!0:!!(t.extended===!0&&n.possibleLengths()&&GJ(d,n)),phone:d,ext:i}:v?O1e(u,d,i):{}}function x1e(e,t,n){if(e){if(e.length>E1e){if(n)throw new _d("TOO_LONG");return}if(t===!1)return e;var r=e.search(T1e);if(!(r<0))return e.slice(r).replace(C1e,"")}}function _1e(e,t,n){var r=S1e(e,{extractFormattedPhoneNumber:function(o){return x1e(o,n,t)}});if(!r)return{};if(!Iwe(r))return Dwe(r)?{error:"TOO_SHORT"}:{};var a=n1e(r);return a.ext?a:{number:r}}function O1e(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function R1e(e,t,n,r){var a=xF(xL(e),t,n,r.metadata),i=a.countryCallingCodeSource,o=a.countryCallingCode,l=a.number,u;if(o)r.selectNumberingPlan(o);else if(l&&(t||n))r.selectNumberingPlan(t,n),t&&(u=t),o=n||gh(t,r.metadata);else return{};if(!l)return{countryCallingCodeSource:i,countryCallingCode:o};var d=TL(xL(l),r),f=d.nationalNumber,g=d.carrierCode,y=oZ(o,{nationalNumber:f,defaultCountry:t,metadata:r});return y&&(u=y,y==="001"||r.country(u)),{country:u,countryCallingCode:o,countryCallingCodeSource:i,nationalNumber:f,carrierCode:g}}function v8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function y8(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y1e(e,t){if(e){if(typeof e=="string")return T8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T8(e,t)}}function T8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function C8(e,t){return e[t]===")"&&t++,K1e(e.slice(0,t))}function K1e(e){for(var t=[],n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lSe(e,t){if(e){if(typeof e=="string")return _8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _8(e,t)}}function _8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},a=r.allowOverflow;if(!n)throw new Error("String is required");var i=RL(n.split(""),this.matchTree,!0);if(i&&i.match&&delete i.matchedChars,!(i&&i.overflow&&!a))return i}}]),e})();function RL(e,t,n){if(typeof t=="string"){var r=e.join("");return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var a=e.slice(),i=0;i=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pSe(e,t){if(e){if(typeof e=="string")return R8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R8(e,t)}}function R8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)){var a=this.getTemplateForFormat(n,r);if(a)return this.setNationalNumberTemplate(a,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&bSe.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var a=n.IDDPrefix,i=n.missingPlus;return a?r&&r.spacing===!1?a:a+" ":i?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,a=0,i=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";ad.length)){var f=new RegExp("^"+u+"$"),g=a.replace(/\d/g,PL);f.test(g)&&(d=g);var y=this.getFormatFormat(n,i),h;if(this.shouldTryNationalPrefixFormattingRule(n,{international:i,nationalPrefix:o})){var v=y.replace(QJ,n.nationalPrefixFormattingRule());if(px(n.nationalPrefixFormattingRule())===(o||"")+px("$1")&&(y=v,h=!0,o))for(var E=o.length;E>0;)y=y.replace(/\d/,gu),E--}var T=d.replace(new RegExp(u),y).replace(new RegExp(PL,"g"),gu);return h||(l?T=Pk(gu,l.length)+" "+T:o&&(T=Pk(gu,o.length)+this.getSeparatorAfterNationalPrefix(n)+T)),i&&(T=XJ(T)),T}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=X1e(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],C8(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var a=r.international,i=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var o=n.usesNationalPrefix();if(o&&i||!o&&!a)return!0}}}]),e})();function lZ(e,t){return _Se(e)||xSe(e,t)||kSe(e,t)||CSe()}function CSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kSe(e,t){if(e){if(typeof e=="string")return A8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A8(e,t)}}function A8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=3;if(r.appendDigits(n),i&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(o){return r.update(o)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,a=n.callingCode;return r&&!a}},{key:"extractCountryCallingCode",value:function(n){var r=xF("+"+n.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=r.countryCallingCode,i=r.number;if(a)return n.setCallingCode(a),n.update({nationalSignificantNumber:i}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&DSe.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var a=EL(n,this.metadata),i=a.nationalPrefix,o=a.nationalNumber,l=a.carrierCode;if(o!==n)return this.onExtractedNationalNumber(i,l,o,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,a){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,a);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var i=EL(n,this.metadata),o=i.nationalPrefix,l=i.nationalNumber,u=i.carrierCode;if(l!==r)return this.onExtractedNationalNumber(o,u,l,n,a),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,a,i,o){var l,u,d=i.lastIndexOf(a);if(d>=0&&d===i.length-a.length){u=!0;var f=i.slice(0,d);f!==n&&(l=f)}o({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:a,nationalSignificantNumberMatchesInput:u,complexPrefixBeforeNationalSignificantNumber:l}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,a=n.IDDPrefix,i=n.digits;if(n.nationalSignificantNumber,!(r||a)){var o=YJ(i,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(o!==void 0&&o!==i)return n.update({IDDPrefix:i.slice(0,i.length-o.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=KJ(n.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=r.countryCallingCode;if(r.number,a)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:a}),!0}}},{key:"startInternationalNumber",value:function(n,r){var a=r.country,i=r.callingCode;n.startInternationalNumber(a,i),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}]),e})();function LSe(e){var t=e.search(MSe);if(!(t<0)){e=e.slice(t);var n;return e[0]==="+"&&(n=!0,e=e.slice(1)),e=e.replace(ISe,""),n&&(e="+"+e),e}}function FSe(e){var t=LSe(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function jSe(e){var t=FSe(e),n=lZ(t,2),r=n[0],a=n[1];return NSe.test(r)||(r=""),[r,a]}function USe(e,t){return qSe(e)||zSe(e,t)||WSe(e,t)||BSe()}function BSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WSe(e,t){if(e){if(typeof e=="string")return N8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N8(e,t)}}function N8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1}},{key:"determineTheCountry",value:function(){this.state.setCountry(oZ(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,a=n.callingCode,i=n.country,o=n.nationalSignificantNumber;if(r){if(this.isInternational())return a?"+"+a+o:"+"+r;if(i||a){var l=i?this.metadata.countryCallingCode():a;return"+"+l+o}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,a=n.carrierCode,i=n.callingCode,o=this._getCountry();if(r&&!(!o&&!i)){if(o&&o===this.defaultCountry){var l=new ii(this.metadata.metadata);l.selectNumberingPlan(o);var u=l.numberingPlan.callingCode(),d=this.metadata.getCountryCodesForCallingCode(u);if(d.length>1){var f=iZ(r,{countries:d,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});f&&(o=f)}}var g=new eZ(o||i,r,this.metadata.metadata);return a&&(g.carrierCode=a),g}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),e})();function M8(e){return new ii(e).getCountries()}function YSe(e,t,n){return n||(n=t,t=void 0),new g0(t,n).input(e)}function uZ(e){var t=e.inputFormat,n=e.country,r=e.metadata;return t==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(gh(n,r)):""}function AL(e,t){return t&&(e=e.slice(t.length),e[0]===" "&&(e=e.slice(1))),e}function KSe(e,t,n){if(!(n&&n.ignoreRest)){var r=function(i){if(n)switch(i){case"end":n.ignoreRest=!0;break}};return aZ(e,t,r)}}function cZ(e){var t=e.onKeyDown,n=e.inputFormat;return R.useCallback(function(r){if(r.keyCode===QSe&&n==="INTERNATIONAL"&&r.target instanceof HTMLInputElement&&XSe(r.target)===JSe.length){r.preventDefault();return}t&&t(r)},[t,n])}function XSe(e){return e.selectionStart}var QSe=8,JSe="+",ZSe=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function NL(){return NL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function nEe(e){function t(n,r){var a=n.onKeyDown,i=n.country,o=n.inputFormat,l=n.metadata,u=l===void 0?e:l;n.international,n.withCountryCallingCode;var d=eEe(n,ZSe),f=R.useCallback(function(y){var h=new g0(i,u),v=uZ({inputFormat:o,country:i,metadata:u}),E=h.input(v+y),T=h.getTemplate();return v&&(E=AL(E,v),T&&(T=AL(T,v))),{text:E,template:T}},[i,u]),g=cZ({onKeyDown:a,inputFormat:o});return ze.createElement(dx,NL({},d,{ref:r,parse:KSe,format:f,onKeyDown:g}))}return t=ze.forwardRef(t),t.propTypes={value:Ye.string.isRequired,onChange:Ye.func.isRequired,onKeyDown:Ye.func,country:Ye.string,inputFormat:Ye.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Ye.object},t}const rEe=nEe();var aEe=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function ML(){return ML=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function sEe(e){function t(n,r){var a=n.value,i=n.onChange,o=n.onKeyDown,l=n.country,u=n.inputFormat,d=n.metadata,f=d===void 0?e:d,g=n.inputComponent,y=g===void 0?"input":g;n.international,n.withCountryCallingCode;var h=iEe(n,aEe),v=uZ({inputFormat:u,country:l,metadata:f}),E=R.useCallback(function(C){var k=xL(C.target.value);if(k===a){var _=I8(v,k,l,f);_.indexOf(C.target.value)===0&&(k=k.slice(0,-1))}i(k)},[v,a,i,l,f]),T=cZ({onKeyDown:o,inputFormat:u});return ze.createElement(y,ML({},h,{ref:r,value:I8(v,a,l,f),onChange:E,onKeyDown:T}))}return t=ze.forwardRef(t),t.propTypes={value:Ye.string.isRequired,onChange:Ye.func.isRequired,onKeyDown:Ye.func,country:Ye.string,inputFormat:Ye.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Ye.object,inputComponent:Ye.elementType},t}const lEe=sEe();function I8(e,t,n,r){return AL(YSe(e+t,n,r),e)}function uEe(e){return D8(e[0])+D8(e[1])}function D8(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var cEe=["value","onChange","options","disabled","readOnly"],dEe=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function fEe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=pEe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pEe(e,t){if(e){if(typeof e=="string")return $8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $8(e,t)}}function $8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function fZ(e){var t=e.value,n=e.onChange,r=e.options,a=e.disabled,i=e.readOnly,o=dZ(e,cEe),l=R.useCallback(function(u){var d=u.target.value;n(d==="ZZ"?void 0:d)},[n]);return R.useMemo(function(){return hZ(r,t)},[r,t]),ze.createElement("select",hx({},o,{disabled:a||i,readOnly:i,value:t||"ZZ",onChange:l}),r.map(function(u){var d=u.value,f=u.label,g=u.divider;return ze.createElement("option",{key:g?"|":d||"ZZ",value:g?"|":d||"ZZ",disabled:!!g,style:g?mEe:void 0},f)}))}fZ.propTypes={value:Ye.string,onChange:Ye.func.isRequired,options:Ye.arrayOf(Ye.shape({value:Ye.string,label:Ye.string,divider:Ye.bool})).isRequired,disabled:Ye.bool,readOnly:Ye.bool};var mEe={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function pZ(e){var t=e.value,n=e.options,r=e.className,a=e.iconComponent;e.getIconAspectRatio;var i=e.arrowComponent,o=i===void 0?gEe:i,l=e.unicodeFlags,u=dZ(e,dEe),d=R.useMemo(function(){return hZ(n,t)},[n,t]);return ze.createElement("div",{className:"PhoneInputCountry"},ze.createElement(fZ,hx({},u,{value:t,options:n,className:ia("PhoneInputCountrySelect",r)})),d&&(l&&t?ze.createElement("div",{className:"PhoneInputCountryIconUnicode"},uEe(t)):ze.createElement(a,{"aria-hidden":!0,country:t,label:d.label,aspectRatio:l?1:void 0})),ze.createElement(o,null))}pZ.propTypes={iconComponent:Ye.elementType,arrowComponent:Ye.elementType,unicodeFlags:Ye.bool};function gEe(){return ze.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function hZ(e,t){for(var n=fEe(e),r;!(r=n()).done;){var a=r.value;if(!a.divider&&vEe(a.value,t))return a}}function vEe(e,t){return e==null?t==null:e===t}var yEe=["country","countryName","flags","flagUrl"];function IL(){return IL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function _F(e){var t=e.country,n=e.countryName,r=e.flags,a=e.flagUrl,i=bEe(e,yEe);return r&&r[t]?r[t]({title:n}):ze.createElement("img",IL({},i,{alt:n,role:n?void 0:"presentation",src:a.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}_F.propTypes={country:Ye.string.isRequired,countryName:Ye.string.isRequired,flags:Ye.objectOf(Ye.elementType),flagUrl:Ye.string.isRequired};var SEe=["aspectRatio"],EEe=["title"],TEe=["title"];function mx(){return mx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function m_(e){var t=e.aspectRatio,n=OF(e,SEe);return t===1?ze.createElement(gZ,n):ze.createElement(mZ,n)}m_.propTypes={title:Ye.string.isRequired,aspectRatio:Ye.number};function mZ(e){var t=e.title,n=OF(e,EEe);return ze.createElement("svg",mx({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),ze.createElement("title",null,t),ze.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},ze.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),ze.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),ze.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),ze.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),ze.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),ze.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),ze.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}mZ.propTypes={title:Ye.string.isRequired};function gZ(e){var t=e.title,n=OF(e,TEe);return ze.createElement("svg",mx({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),ze.createElement("title",null,t),ze.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},ze.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),ze.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),ze.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),ze.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),ze.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),ze.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),ze.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}gZ.propTypes={title:Ye.string.isRequired};function kEe(e){if(e.length<2||e[0]!=="+")return!1;for(var t=1;t=48&&n<=57))return!1;t++}return!0}function vZ(e){kEe(e)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",e)}function xEe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_Ee(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _Ee(e,t){if(e){if(typeof e=="string")return L8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L8(e,t)}}function L8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0))return e}function g_(e,t){return HJ(e,t)?!0:(console.error("Country not found: ".concat(e)),!1)}function yZ(e,t){return e&&(e=e.filter(function(n){return g_(n,t)}),e.length===0&&(e=void 0)),e}var PEe=["country","label","aspectRatio"];function DL(){return DL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function bZ(e){var t=e.flags,n=e.flagUrl,r=e.flagComponent,a=e.internationalIcon;function i(o){var l=o.country,u=o.label,d=o.aspectRatio,f=AEe(o,PEe),g=a===m_?d:void 0;return ze.createElement("div",DL({},f,{className:ia("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":g===1,"PhoneInputCountryIcon--border":l})}),l?ze.createElement(r,{country:l,countryName:u,flags:t,flagUrl:n,className:"PhoneInputCountryIconImg"}):ze.createElement(a,{title:u,aspectRatio:g,className:"PhoneInputCountryIconImg"}))}return i.propTypes={country:Ye.string,label:Ye.string.isRequired,aspectRatio:Ye.number},i}bZ({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:_F,internationalIcon:m_});function MEe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=IEe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IEe(e,t){if(e){if(typeof e=="string")return F8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F8(e,t)}}function F8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(u=a()),u}function FEe(e){var t=e.countries,n=e.countryNames,r=e.addInternationalOption,a=e.compareStringsLocales,i=e.compareStrings;i||(i=HEe);var o=t.map(function(l){return{value:l,label:n[l]||l}});return o.sort(function(l,u){return i(l.label,u.label,a)}),r&&o.unshift({label:n.ZZ}),o}function EZ(e,t){return W1e(e||"",t)}function jEe(e){return e.formatNational().replace(/\D/g,"")}function UEe(e,t){var n=t.prevCountry,r=t.newCountry,a=t.metadata,i=t.useNationalFormat;if(n===r)return e;if(!e)return i?"":r?Md(r,a):"";if(r){if(e[0]==="+"){if(i)return e.indexOf("+"+gh(r,a))===0?VEe(e,r,a):"";if(n){var o=Md(r,a);return e.indexOf(o)===0?e:o}else{var l=Md(r,a);return e.indexOf(l)===0?e:l}}}else if(e[0]!=="+")return xb(e,n,a)||"";return e}function xb(e,t,n){if(e){if(e[0]==="+"){if(e==="+")return;var r=new g0(t,n);return r.input(e),r.getNumberValue()}if(t){var a=CZ(e,t,n);return"+".concat(gh(t,n)).concat(a||"")}}}function BEe(e,t,n){var r=CZ(e,t,n);if(r){var a=r.length-WEe(t,n);if(a>0)return e.slice(0,e.length-a)}return e}function WEe(e,t){return t=new ii(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}function TZ(e,t){var n=t.country,r=t.countries,a=t.defaultCountry,i=t.latestCountrySelectedByUser,o=t.required,l=t.metadata;if(e==="+")return n;var u=qEe(e,l);if(u)return!r||r.indexOf(u)>=0?u:void 0;if(n){if(Wb(e,n,l)){if(i&&Wb(e,i,l))return i;if(a&&Wb(e,a,l))return a;if(!o)return}else if(!o)return}return n}function zEe(e,t){var n=t.prevPhoneDigits,r=t.country,a=t.defaultCountry,i=t.latestCountrySelectedByUser,o=t.countryRequired,l=t.getAnyCountry,u=t.countries,d=t.international,f=t.limitMaxLength,g=t.countryCallingCodeEditable,y=t.metadata;if(d&&g===!1&&r){var h=Md(r,y);if(e.indexOf(h)!==0){var v,E=e&&e[0]!=="+";return E?(e=h+e,v=xb(e,r,y)):e=h,{phoneDigits:e,value:v,country:r}}}d===!1&&r&&e&&e[0]==="+"&&(e=j8(e,r,y)),e&&r&&f&&(e=BEe(e,r,y)),e&&e[0]!=="+"&&(!r||d)&&(e="+"+e),!e&&n&&n[0]==="+"&&(d?r=void 0:r=a),e==="+"&&n&&n[0]==="+"&&n.length>1&&(r=void 0);var T;return e&&(e[0]==="+"&&(e==="+"||r&&Md(r,y).indexOf(e)===0)?T=void 0:T=xb(e,r,y)),T&&(r=TZ(T,{country:r,countries:u,defaultCountry:a,latestCountrySelectedByUser:i,required:!1,metadata:y}),d===!1&&r&&e&&e[0]==="+"&&(e=j8(e,r,y),T=xb(e,r,y))),!r&&o&&(r=a||l()),{phoneDigits:e,country:r,value:T}}function j8(e,t,n){if(e.indexOf(Md(t,n))===0){var r=new g0(t,n);r.input(e);var a=r.getNumber();return a?a.formatNational().replace(/\D/g,""):""}else return e.replace(/\D/g,"")}function qEe(e,t){var n=new g0(null,t);return n.input(e),n.getCountry()}function HEe(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):et?1:0}function VEe(e,t,n){if(t){var r="+"+gh(t,n);if(e.length=0)&&(N=P.country):(N=TZ(o,{country:void 0,countries:I,metadata:r}),N||i&&o.indexOf(Md(i,r))===0&&(N=i))}var L;if(o){if(T){var j=N?T===N:Wb(o,T,r);j?N||(N=T):L={latestCountrySelectedByUser:void 0}}}else L={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return KC(KC({},L),{},{phoneDigits:C({phoneNumber:P,value:o,defaultCountry:i}),value:o,country:o?N:i})}}function B8(e,t){return e===null&&(e=void 0),t===null&&(t=void 0),e===t}var QEe=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function e0(e){"@babel/helpers - typeof";return e0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e0(e)}function W8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xZ(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function eTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z8(e,t){for(var n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pTe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function PZ(e){var t=ze.forwardRef(function(n,r){var a=n.metadata,i=a===void 0?e:a,o=n.labels,l=o===void 0?cTe:o,u=fTe(n,dTe);return ze.createElement(RZ,LL({},u,{ref:r,metadata:i,labels:l}))});return t.propTypes={metadata:wZ,labels:SZ},t}PZ();const hTe=PZ(T0e),In=e=>{const{region:t}=sr(),{label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,children:u,errorMessage:d,type:f,focused:g=!1,autoFocus:y,...h}=e,[v,E]=R.useState(!1),T=R.useRef(),C=R.useCallback(()=>{var A;(A=T.current)==null||A.focus()},[T.current]);let k=l===void 0?"":l;f==="number"&&(k=+l);const _=A=>{o&&o(f==="number"?+A.target.value:A.target.value)};return w.jsxs(ef,{focused:v,onClick:C,...e,children:[e.type==="phonenumber"?w.jsx(hTe,{country:t,autoFocus:y,value:k,onChange:A=>o&&o(A)}):w.jsx("input",{...h,ref:T,value:k,autoFocus:y,className:ia("form-control",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),type:f||"text",onChange:_,onBlur:()=>E(!1),onFocus:()=>E(!0)}),u]})};function ro(e){"@babel/helpers - typeof";return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ro(e)}function mTe(e,t){if(ro(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ro(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AZ(e){var t=mTe(e,"string");return ro(t)=="symbol"?t:String(t)}function wt(e,t,n){return t=AZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?Wi(v0,--os):0,n0--,Ka===10&&(n0=1,y_--),Ka}function Ls(){return Ka=os<$Z?Wi(v0,os++):0,n0++,Ka===10&&(n0=1,y_++),Ka}function Sc(){return Wi(v0,os)}function Ak(){return os}function RE(e,t){return HS(v0,e,t)}function VS(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function LZ(e){return y_=n0=1,$Z=pc(v0=e),os=0,[]}function FZ(e){return v0="",e}function Nk(e){return DZ(RE(os-1,UL(e===91?e+2:e===40?e+1:e)))}function NTe(e){for(;(Ka=Sc())&&Ka<33;)Ls();return VS(e)>2||VS(Ka)>3?"":" "}function MTe(e,t){for(;--t&&Ls()&&!(Ka<48||Ka>102||Ka>57&&Ka<65||Ka>70&&Ka<97););return RE(e,Ak()+(t<6&&Sc()==32&&Ls()==32))}function UL(e){for(;Ls();)switch(Ka){case e:return os;case 34:case 39:e!==34&&e!==39&&UL(Ka);break;case 40:e===41&&UL(e);break;case 92:Ls();break}return os}function ITe(e,t){for(;Ls()&&e+Ka!==57;)if(e+Ka===84&&Sc()===47)break;return"/*"+RE(t,os-1)+"*"+v_(e===47?e:Ls())}function DTe(e){for(;!VS(Sc());)Ls();return RE(e,os)}function $Te(e){return FZ(Mk("",null,null,null,[""],e=LZ(e),0,[0],e))}function Mk(e,t,n,r,a,i,o,l,u){for(var d=0,f=0,g=o,y=0,h=0,v=0,E=1,T=1,C=1,k=0,_="",A=a,P=i,N=r,I=_;T;)switch(v=k,k=Ls()){case 40:if(v!=108&&Wi(I,g-1)==58){jL(I+=br(Nk(k),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:I+=Nk(k);break;case 9:case 10:case 13:case 32:I+=NTe(v);break;case 92:I+=MTe(Ak()-1,7);continue;case 47:switch(Sc()){case 42:case 47:XC(LTe(ITe(Ls(),Ak()),t,n),u);break;default:I+="/"}break;case 123*E:l[d++]=pc(I)*C;case 125*E:case 59:case 0:switch(k){case 0:case 125:T=0;case 59+f:C==-1&&(I=br(I,/\f/g,"")),h>0&&pc(I)-g&&XC(h>32?Y8(I+";",r,n,g-1):Y8(br(I," ","")+";",r,n,g-2),u);break;case 59:I+=";";default:if(XC(N=G8(I,t,n,d,f,a,l,_,A=[],P=[],g),i),k===123)if(f===0)Mk(I,t,N,N,A,i,g,l,P);else switch(y===99&&Wi(I,3)===110?100:y){case 100:case 108:case 109:case 115:Mk(e,N,N,r&&XC(G8(e,N,N,0,0,a,l,_,a,A=[],g),P),a,P,g,l,r?A:P);break;default:Mk(I,N,N,N,[""],P,0,l,P)}}d=f=h=0,E=C=1,_=I="",g=o;break;case 58:g=1+pc(I),h=v;default:if(E<1){if(k==123)--E;else if(k==125&&E++==0&&ATe()==125)continue}switch(I+=v_(k),k*E){case 38:C=f>0?1:(I+="\f",-1);break;case 44:l[d++]=(pc(I)-1)*C,C=1;break;case 64:Sc()===45&&(I+=Nk(Ls())),y=Sc(),f=g=pc(_=I+=DTe(Ak())),k++;break;case 45:v===45&&pc(I)==2&&(E=0)}}return i}function G8(e,t,n,r,a,i,o,l,u,d,f){for(var g=a-1,y=a===0?i:[""],h=NF(y),v=0,E=0,T=0;v0?y[C]+" "+k:br(k,/&\f/g,y[C])))&&(u[T++]=_);return b_(e,t,n,a===0?PF:l,u,d,f)}function LTe(e,t,n){return b_(e,t,n,MZ,v_(PTe()),HS(e,2,-2),0)}function Y8(e,t,n,r){return b_(e,t,n,AF,HS(e,0,r),HS(e,r+1,-1),r)}function qb(e,t){for(var n="",r=NF(e),a=0;a6)switch(Wi(e,t+1)){case 109:if(Wi(e,t+4)!==45)break;case 102:return br(e,/(.+:)(.+)-([^]+)/,"$1"+yr+"$2-$3$1"+yx+(Wi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~jL(e,"stretch")?jZ(br(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Wi(e,t+1)!==115)break;case 6444:switch(Wi(e,pc(e)-3-(~jL(e,"!important")&&10))){case 107:return br(e,":",":"+yr)+e;case 101:return br(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yr+(Wi(e,14)===45?"inline-":"")+"box$3$1"+yr+"$2$3$1"+Xi+"$2box$3")+e}break;case 5936:switch(Wi(e,t+11)){case 114:return yr+e+Xi+br(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yr+e+Xi+br(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yr+e+Xi+br(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yr+e+Xi+e+e}return e}var VTe=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case AF:t.return=jZ(t.value,t.length);break;case IZ:return qb([w1(t,{value:br(t.value,"@","@"+yr)})],a);case PF:if(t.length)return RTe(t.props,function(i){switch(OTe(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qb([w1(t,{props:[br(i,/:(read-\w+)/,":"+yx+"$1")]})],a);case"::placeholder":return qb([w1(t,{props:[br(i,/:(plac\w+)/,":"+yr+"input-$1")]}),w1(t,{props:[br(i,/:(plac\w+)/,":"+yx+"$1")]}),w1(t,{props:[br(i,/:(plac\w+)/,Xi+"input-$1")]})],a)}return""})}},GTe=[VTe],YTe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(E){var T=E.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var a=t.stylisPlugins||GTe,i={},o,l=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var T=E.getAttribute("data-emotion").split(" "),C=1;C=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ZTe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function eCe(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var tCe=/[A-Z]|^ms/g,nCe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,BZ=function(t){return t.charCodeAt(1)===45},X8=function(t){return t!=null&&typeof t!="boolean"},BP=eCe(function(e){return BZ(e)?e:e.replace(tCe,"-$&").toLowerCase()}),Q8=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(nCe,function(r,a,i){return hc={name:a,styles:i,next:hc},a})}return ZTe[t]!==1&&!BZ(t)&&typeof n=="number"&&n!==0?n+"px":n};function GS(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return hc={name:n.name,styles:n.styles,next:hc},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)hc={name:r.name,styles:r.styles,next:hc},r=r.next;var a=n.styles+";";return a}return rCe(e,t,n)}case"function":{if(e!==void 0){var i=hc,o=n(e);return hc=i,GS(e,t,o)}break}}return n}function rCe(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vCe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const yCe=Math.min,bCe=Math.max,bx=Math.round,QC=Math.floor,wx=e=>({x:e,y:e});function wCe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function qZ(e){return VZ(e)?(e.nodeName||"").toLowerCase():"#document"}function jd(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function HZ(e){var t;return(t=(VZ(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function VZ(e){return e instanceof Node||e instanceof jd(e).Node}function SCe(e){return e instanceof Element||e instanceof jd(e).Element}function DF(e){return e instanceof HTMLElement||e instanceof jd(e).HTMLElement}function Z8(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof jd(e).ShadowRoot}function GZ(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=$F(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function ECe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function TCe(e){return["html","body","#document"].includes(qZ(e))}function $F(e){return jd(e).getComputedStyle(e)}function CCe(e){if(qZ(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Z8(e)&&e.host||HZ(e);return Z8(t)?t.host:t}function YZ(e){const t=CCe(e);return TCe(t)?e.ownerDocument?e.ownerDocument.body:e.body:DF(t)&&GZ(t)?t:YZ(t)}function Sx(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=YZ(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=jd(a);return i?t.concat(o,o.visualViewport||[],GZ(a)?a:[],o.frameElement&&n?Sx(o.frameElement):[]):t.concat(a,Sx(a,[],n))}function kCe(e){const t=$F(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=DF(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,l=bx(n)!==i||bx(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function LF(e){return SCe(e)?e:e.contextElement}function e5(e){const t=LF(e);if(!DF(t))return wx(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=kCe(t);let o=(i?bx(n.width):n.width)/r,l=(i?bx(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const xCe=wx(0);function _Ce(e){const t=jd(e);return!ECe()||!t.visualViewport?xCe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function OCe(e,t,n){return!1}function t5(e,t,n,r){t===void 0&&(t=!1);const a=e.getBoundingClientRect(),i=LF(e);let o=wx(1);t&&(o=e5(e));const l=OCe()?_Ce(i):wx(0);let u=(a.left+l.x)/o.x,d=(a.top+l.y)/o.y,f=a.width/o.x,g=a.height/o.y;if(i){const y=jd(i),h=r;let v=y,E=v.frameElement;for(;E&&r&&h!==v;){const T=e5(E),C=E.getBoundingClientRect(),k=$F(E),_=C.left+(E.clientLeft+parseFloat(k.paddingLeft))*T.x,A=C.top+(E.clientTop+parseFloat(k.paddingTop))*T.y;u*=T.x,d*=T.y,f*=T.x,g*=T.y,u+=_,d+=A,v=jd(E),E=v.frameElement}}return wCe({width:f,height:g,x:u,y:d})}function RCe(e,t){let n=null,r;const a=HZ(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),i();const{left:d,top:f,width:g,height:y}=e.getBoundingClientRect();if(l||t(),!g||!y)return;const h=QC(f),v=QC(a.clientWidth-(d+g)),E=QC(a.clientHeight-(f+y)),T=QC(d),k={rootMargin:-h+"px "+-v+"px "+-E+"px "+-T+"px",threshold:bCe(0,yCe(1,u))||1};let _=!0;function A(P){const N=P[0].intersectionRatio;if(N!==u){if(!_)return o();N?o(!1,N):r=setTimeout(()=>{o(!1,1e-7)},100)}_=!1}try{n=new IntersectionObserver(A,{...k,root:a.ownerDocument})}catch{n=new IntersectionObserver(A,k)}n.observe(e)}return o(!0),i}function PCe(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=LF(e),f=a||i?[...d?Sx(d):[],...Sx(t)]:[];f.forEach(C=>{a&&C.addEventListener("scroll",n,{passive:!0}),i&&C.addEventListener("resize",n)});const g=d&&l?RCe(d,n):null;let y=-1,h=null;o&&(h=new ResizeObserver(C=>{let[k]=C;k&&k.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(t)})),n()}),d&&!u&&h.observe(d),h.observe(t));let v,E=u?t5(e):null;u&&T();function T(){const C=t5(e);E&&(C.x!==E.x||C.y!==E.y||C.width!==E.width||C.height!==E.height)&&n(),E=C,v=requestAnimationFrame(T)}return n(),()=>{var C;f.forEach(k=>{a&&k.removeEventListener("scroll",n),i&&k.removeEventListener("resize",n)}),g==null||g(),(C=h)==null||C.disconnect(),h=null,u&&cancelAnimationFrame(v)}}var WL=R.useLayoutEffect,ACe=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ex=function(){};function NCe(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function MCe(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a-1}function DCe(e){return w_(e)?window.innerHeight:e.clientHeight}function XZ(e){return w_(e)?window.pageYOffset:e.scrollTop}function Tx(e,t){if(w_(e)){window.scrollTo(0,t);return}e.scrollTop=t}function $Ce(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}function LCe(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function JC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ex,a=XZ(e),i=t-a,o=10,l=0;function u(){l+=o;var d=LCe(l,a,i,n);Tx(e,d),ln.bottom?Tx(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):r.top-a1?n-1:0),a=1;a=v)return{placement:"bottom",maxHeight:t};if(j>=v&&!o)return i&&JC(u,z,le),{placement:"bottom",maxHeight:t};if(!o&&j>=r||o&&I>=r){i&&JC(u,z,le);var re=o?I-A:j-A;return{placement:"bottom",maxHeight:re}}if(a==="auto"||o){var ge=t,me=o?N:L;return me>=r&&(ge=Math.min(me-A-l,t)),{placement:"top",maxHeight:ge}}if(a==="bottom")return i&&Tx(u,z),{placement:"bottom",maxHeight:t};break;case"top":if(N>=v)return{placement:"top",maxHeight:t};if(L>=v&&!o)return i&&JC(u,Q,le),{placement:"top",maxHeight:t};if(!o&&L>=r||o&&N>=r){var W=t;return(!o&&L>=r||o&&N>=r)&&(W=o?N-P:L-P),i&&JC(u,Q,le),{placement:"top",maxHeight:W}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return d}function YCe(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var JZ=function(t){return t==="auto"?"bottom":t},KCe=function(t,n){var r,a=t.placement,i=t.theme,o=i.borderRadius,l=i.spacing,u=i.colors;return Jt((r={label:"menu"},wt(r,YCe(a),"100%"),wt(r,"position","absolute"),wt(r,"width","100%"),wt(r,"zIndex",1),r),n?{}:{backgroundColor:u.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},ZZ=R.createContext(null),XCe=function(t){var n=t.children,r=t.minMenuHeight,a=t.maxMenuHeight,i=t.menuPlacement,o=t.menuPosition,l=t.menuShouldScrollIntoView,u=t.theme,d=R.useContext(ZZ)||{},f=d.setPortalPlacement,g=R.useRef(null),y=R.useState(a),h=mi(y,2),v=h[0],E=h[1],T=R.useState(null),C=mi(T,2),k=C[0],_=C[1],A=u.spacing.controlHeight;return WL(function(){var P=g.current;if(P){var N=o==="fixed",I=l&&!N,L=GCe({maxHeight:a,menuEl:P,minHeight:r,placement:i,shouldScroll:I,isFixedPosition:N,controlHeight:A});E(L.maxHeight),_(L.placement),f==null||f(L.placement)}},[a,i,o,l,r,f,A]),n({ref:g,placerProps:Jt(Jt({},t),{},{placement:k||JZ(i),maxHeight:v})})},QCe=function(t){var n=t.children,r=t.innerRef,a=t.innerProps;return rn("div",vt({},Ca(t,"menu",{menu:!0}),{ref:r},a),n)},JCe=QCe,ZCe=function(t,n){var r=t.maxHeight,a=t.theme.spacing.baseUnit;return Jt({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:a,paddingTop:a})},eke=function(t){var n=t.children,r=t.innerProps,a=t.innerRef,i=t.isMulti;return rn("div",vt({},Ca(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:a},r),n)},eee=function(t,n){var r=t.theme,a=r.spacing.baseUnit,i=r.colors;return Jt({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(a*2,"px ").concat(a*3,"px")})},tke=eee,nke=eee,rke=function(t){var n=t.children,r=n===void 0?"No options":n,a=t.innerProps,i=Ou(t,HCe);return rn("div",vt({},Ca(Jt(Jt({},i),{},{children:r,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),r)},ake=function(t){var n=t.children,r=n===void 0?"Loading...":n,a=t.innerProps,i=Ou(t,VCe);return rn("div",vt({},Ca(Jt(Jt({},i),{},{children:r,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),r)},ike=function(t){var n=t.rect,r=t.offset,a=t.position;return{left:n.left,position:a,top:r,width:n.width,zIndex:1}},oke=function(t){var n=t.appendTo,r=t.children,a=t.controlElement,i=t.innerProps,o=t.menuPlacement,l=t.menuPosition,u=R.useRef(null),d=R.useRef(null),f=R.useState(JZ(o)),g=mi(f,2),y=g[0],h=g[1],v=R.useMemo(function(){return{setPortalPlacement:h}},[]),E=R.useState(null),T=mi(E,2),C=T[0],k=T[1],_=R.useCallback(function(){if(a){var I=FCe(a),L=l==="fixed"?0:window.pageYOffset,j=I[y]+L;(j!==(C==null?void 0:C.offset)||I.left!==(C==null?void 0:C.rect.left)||I.width!==(C==null?void 0:C.rect.width))&&k({offset:j,rect:I})}},[a,l,y,C==null?void 0:C.offset,C==null?void 0:C.rect.left,C==null?void 0:C.rect.width]);WL(function(){_()},[_]);var A=R.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),a&&u.current&&(d.current=PCe(a,u.current,_,{elementResize:"ResizeObserver"in window}))},[a,_]);WL(function(){A()},[A]);var P=R.useCallback(function(I){u.current=I,A()},[A]);if(!n&&l!=="fixed"||!C)return null;var N=rn("div",vt({ref:P},Ca(Jt(Jt({},t),{},{offset:C.offset,position:l,rect:C.rect}),"menuPortal",{"menu-portal":!0}),i),r);return rn(ZZ.Provider,{value:v},n?wc.createPortal(N,n):N)},ske=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},lke=function(t){var n=t.children,r=t.innerProps,a=t.isDisabled,i=t.isRtl;return rn("div",vt({},Ca(t,"container",{"--is-disabled":a,"--is-rtl":i}),r),n)},uke=function(t,n){var r=t.theme.spacing,a=t.isMulti,i=t.hasValue,o=t.selectProps.controlShouldRenderValue;return Jt({alignItems:"center",display:a&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},cke=function(t){var n=t.children,r=t.innerProps,a=t.isMulti,i=t.hasValue;return rn("div",vt({},Ca(t,"valueContainer",{"value-container":!0,"value-container--is-multi":a,"value-container--has-value":i}),r),n)},dke=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},fke=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},Ca(t,"indicatorsContainer",{indicators:!0}),r),n)},i5,pke=["size"],hke=["innerProps","isRtl","size"],mke={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},tee=function(t){var n=t.size,r=Ou(t,pke);return rn("svg",vt({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:mke},r))},FF=function(t){return rn(tee,vt({size:20},t),rn("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},nee=function(t){return rn(tee,vt({size:20},t),rn("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ree=function(t,n){var r=t.isFocused,a=t.theme,i=a.spacing.baseUnit,o=a.colors;return Jt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:i*2,":hover":{color:r?o.neutral80:o.neutral40}})},gke=ree,vke=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},Ca(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||rn(nee,null))},yke=ree,bke=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},Ca(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||rn(FF,null))},wke=function(t,n){var r=t.isDisabled,a=t.theme,i=a.spacing.baseUnit,o=a.colors;return Jt({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:i*2,marginTop:i*2})},Ske=function(t){var n=t.innerProps;return rn("span",vt({},n,Ca(t,"indicatorSeparator",{"indicator-separator":!0})))},Eke=pCe(i5||(i5=vCe([` + `})]}),rf=({label:e,getInputRef:t,displayValue:n,Icon:r,children:a,errorMessage:i,validMessage:o,value:l,hint:u,onClick:d,onChange:f,className:g,focused:y=!1,hasAnimation:h})=>w.jsxs("div",{style:{position:"relative"},className:oa("mb-3",g),children:[e&&w.jsx("label",{className:"form-label",children:e}),a,w.jsx("div",{className:"form-text",children:u}),w.jsx("div",{className:"invalid-feedback",children:i}),w.jsx("div",{className:"valid-feedback",children:o})]}),Ws=e=>{const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,isSubmitting:o,errorMessage:l,onChange:u,value:d,disabled:f,type:g,focused:y=!1,className:h,mutation:v,...E}=e,T=v==null?void 0:v.isLoading;return w.jsx("button",{onClick:e.onClick,type:"submit",disabled:f||T,className:oa("btn mb-3",`btn-${g||"primary"}`,h),...e,children:e.children||e.label})};function p0e(e,t,n={}){var r,a,i,o,l,u,d,f,g,y;if(t.isError){if(((r=t.error)==null?void 0:r.status)===404)return e.notfound+"("+n.remote+")";if(t.error.message==="Failed to fetch")return e.networkError+"("+n.remote+")";if((i=(a=t.error)==null?void 0:a.error)!=null&&i.messageTranslated)return(l=(o=t.error)==null?void 0:o.error)==null?void 0:l.messageTranslated;if((d=(u=t.error)==null?void 0:u.error)!=null&&d.message)return(g=(f=t.error)==null?void 0:f.error)==null?void 0:g.message;let h=(y=t.error)==null?void 0:y.toString();return(h+"").includes("object Object")&&(h="There is an unknown error while getting information, please contact your software provider if issue persists."),h}return null}function Il({query:e,children:t}){var d,f,g,y;const n=At(),{options:r,setOverrideRemoteUrl:a,overrideRemoteUrl:i}=R.useContext(rt);let o=!1,l="80";try{if(r!=null&&r.prefix){const h=new URL(r==null?void 0:r.prefix);l=h.port||(h.protocol==="https:"?"443":"80"),o=(location.host.includes("192.168")||location.host.includes("127.0"))&&((f=(d=e.error)==null?void 0:d.message)==null?void 0:f.includes("Failed to fetch"))}}catch{}const u=()=>{a("http://"+location.hostname+":"+l+"/")};return e?w.jsxs(w.Fragment,{children:[e.isError&&w.jsxs("div",{className:"basic-error-box fadein",children:[p0e(n,e,{remote:r.prefix})||"",o&&w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:u,children:"Auto-reroute"}),i&&w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>a(void 0),children:"Reset"}),w.jsx("ul",{children:(((y=(g=e.error)==null?void 0:g.error)==null?void 0:y.errors)||[]).map(h=>w.jsxs("li",{children:[h.messageTranslated||h.message," (",h.location,")"]},h.location))}),e.refetch&&w.jsx(Ws,{onClick:e.refetch,children:"Retry"})]}),!e.isError||e.isPreviousData?t:null]}):null}function eZ({content:e,columns:t,uniqueIdHrefHandler:n,style:r}){const a=n?Pl:"span";return w.jsx(a,{className:"auto-card-list-item card mb-2 p-3",style:r,href:n(e.uniqueId),children:t.map(i=>{let o=i.getCellValue?i.getCellValue(e):"";return o||(o=i.name?e[i.name]:""),o||(o="-"),i.name==="uniqueId"?null:w.jsxs("div",{className:"row auto-card-drawer",children:[w.jsxs("div",{className:"col-6",children:[i.title,":"]}),w.jsx("div",{className:"col-6",children:o})]},i.title)})})}const h0e=()=>{const e=At();return w.jsxs("div",{className:"empty-list-indicator",children:[w.jsx("img",{src:Fs("/common/empty.png")}),w.jsx("div",{children:e.table.noRecords})]})};function Dt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var t8=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function m0e(e,t){return!!(e===t||t8(e)&&t8(t))}function g0e(e,t){if(e.length!==t.length)return!1;for(var n=0;n=0)&&(n[a]=e[a]);return n}var y0e=typeof performance=="object"&&typeof performance.now=="function",n8=y0e?function(){return performance.now()}:function(){return Date.now()};function r8(e){cancelAnimationFrame(e.id)}function b0e(e,t){var n=n8();function r(){n8()-n>=t?e.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var VP=-1;function a8(e){if(e===void 0&&(e=!1),VP===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),VP=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return VP}var vb=null;function i8(e){if(e===void 0&&(e=!1),vb===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?vb="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?vb="negative":vb="positive-ascending"),document.body.removeChild(t),vb}return vb}var w0e=150,S0e=function(t,n){return t};function E0e(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,a=e.getItemSize,i=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,u=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=(function(g){qv(y,g);function y(v){var E;return E=g.call(this,v)||this,E._instanceProps=u(E.props,Dt(E)),E._outerRef=void 0,E._resetIsScrollingTimeoutId=null,E.state={instance:Dt(E),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof E.props.initialScrollOffset=="number"?E.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},E._callOnItemsRendered=void 0,E._callOnItemsRendered=HP(function(T,C,k,_){return E.props.onItemsRendered({overscanStartIndex:T,overscanStopIndex:C,visibleStartIndex:k,visibleStopIndex:_})}),E._callOnScroll=void 0,E._callOnScroll=HP(function(T,C,k){return E.props.onScroll({scrollDirection:T,scrollOffset:C,scrollUpdateWasRequested:k})}),E._getItemStyle=void 0,E._getItemStyle=function(T){var C=E.props,k=C.direction,_=C.itemSize,A=C.layout,P=E._getItemStyleCache(d&&_,d&&A,d&&k),N;if(P.hasOwnProperty(T))N=P[T];else{var I=n(E.props,T,E._instanceProps),L=a(E.props,T,E._instanceProps),j=k==="horizontal"||A==="horizontal",z=k==="rtl",Q=j?I:0;P[T]=N={position:"absolute",left:z?void 0:Q,right:z?Q:void 0,top:j?0:I,height:j?"100%":L,width:j?L:"100%"}}return N},E._getItemStyleCache=void 0,E._getItemStyleCache=HP(function(T,C,k){return{}}),E._onScrollHorizontal=function(T){var C=T.currentTarget,k=C.clientWidth,_=C.scrollLeft,A=C.scrollWidth;E.setState(function(P){if(P.scrollOffset===_)return null;var N=E.props.direction,I=_;if(N==="rtl")switch(i8()){case"negative":I=-_;break;case"positive-descending":I=A-k-_;break}return I=Math.max(0,Math.min(I,A-k)),{isScrolling:!0,scrollDirection:P.scrollOffsetN.clientWidth?a8():0:P=N.scrollHeight>N.clientHeight?a8():0}this.scrollTo(i(this.props,E,T,A,this._instanceProps,P))},h.componentDidMount=function(){var E=this.props,T=E.direction,C=E.initialScrollOffset,k=E.layout;if(typeof C=="number"&&this._outerRef!=null){var _=this._outerRef;T==="horizontal"||k==="horizontal"?_.scrollLeft=C:_.scrollTop=C}this._callPropsCallbacks()},h.componentDidUpdate=function(){var E=this.props,T=E.direction,C=E.layout,k=this.state,_=k.scrollOffset,A=k.scrollUpdateWasRequested;if(A&&this._outerRef!=null){var P=this._outerRef;if(T==="horizontal"||C==="horizontal")if(T==="rtl")switch(i8()){case"negative":P.scrollLeft=-_;break;case"positive-ascending":P.scrollLeft=_;break;default:var N=P.clientWidth,I=P.scrollWidth;P.scrollLeft=I-N-_;break}else P.scrollLeft=_;else P.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&r8(this._resetIsScrollingTimeoutId)},h.render=function(){var E=this.props,T=E.children,C=E.className,k=E.direction,_=E.height,A=E.innerRef,P=E.innerElementType,N=E.innerTagName,I=E.itemCount,L=E.itemData,j=E.itemKey,z=j===void 0?S0e:j,Q=E.layout,le=E.outerElementType,re=E.outerTagName,ge=E.style,me=E.useIsScrolling,W=E.width,G=this.state.isScrolling,q=k==="horizontal"||Q==="horizontal",ce=q?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),Y=H[0],ie=H[1],J=[];if(I>0)for(var ee=Y;ee<=ie;ee++)J.push(R.createElement(T,{data:L,key:z(ee,L),index:ee,isScrolling:me?G:void 0,style:this._getItemStyle(ee)}));var Z=r(this.props,this._instanceProps);return R.createElement(le||re||"div",{className:C,onScroll:ce,ref:this._outerRefSetter,style:vt({position:"relative",height:_,width:W,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:k},ge)},R.createElement(P||N||"div",{children:J,ref:A,style:{height:q?"100%":Z,pointerEvents:G?"none":void 0,width:q?Z:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var E=this.props.itemCount;if(E>0){var T=this._getRangeToRender(),C=T[0],k=T[1],_=T[2],A=T[3];this._callOnItemsRendered(C,k,_,A)}}if(typeof this.props.onScroll=="function"){var P=this.state,N=P.scrollDirection,I=P.scrollOffset,L=P.scrollUpdateWasRequested;this._callOnScroll(N,I,L)}},h._getRangeToRender=function(){var E=this.props,T=E.itemCount,C=E.overscanCount,k=this.state,_=k.isScrolling,A=k.scrollDirection,P=k.scrollOffset;if(T===0)return[0,0,0,0];var N=o(this.props,P,this._instanceProps),I=l(this.props,N,P,this._instanceProps),L=!_||A==="backward"?Math.max(1,C):1,j=!_||A==="forward"?Math.max(1,C):1;return[Math.max(0,N-L),Math.max(0,Math.min(T-1,I+j)),N,I]},y})(R.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var T0e=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},C0e=E0e({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,a,i,o){var l=t.direction,u=t.height,d=t.itemCount,f=t.itemSize,g=t.layout,y=t.width,h=l==="horizontal"||g==="horizontal",v=h?y:u,E=Math.max(0,d*f-v),T=Math.min(E,n*f),C=Math.max(0,n*f-v+f+o);switch(r==="smart"&&(a>=C-v&&a<=T+v?r="auto":r="center"),r){case"start":return T;case"end":return C;case"center":{var k=Math.round(C+(T-C)/2);return kE+Math.floor(v/2)?E:k}case"auto":default:return a>=C&&a<=T?a:a{var k,_,A,P,N,I;At();const l=R.useRef();let[u,d]=R.useState([]);const[f,g]=R.useState(!0),y=Bs();t&&t({queryClient:y});const h=(L,j)=>{const z=r.debouncedFilters.startIndex||0,Q=[...u];l.current!==j&&(Q.length=0,l.current=j);for(let le=z;le<(r.debouncedFilters.itemsPerPage||0)+z;le++){const re=le-z;L[re]&&(Q[le]=L[re])}d(Q)};R.useEffect(()=>{var j,z,Q;const L=((z=(j=i.query.data)==null?void 0:j.data)==null?void 0:z.items)||[];h(L,(Q=i.query.data)==null?void 0:Q.jsonQuery)},[(_=(k=i.query.data)==null?void 0:k.data)==null?void 0:_.items]);const v=({index:L,style:j})=>{var Q,le;return u[L]?o?w.jsx(o,{content:u[L]},(Q=u[L])==null?void 0:Q.uniqueId):w.jsx(eZ,{style:{...j,top:j.top+10,height:j.height-10,width:j.width},uniqueIdHrefHandler:n,columns:e,content:u[L]},(le=u[L])==null?void 0:le.uniqueId):null},E=({scrollOffset:L})=>{L===0&&!f?g(!0):L>0&&f&&g(!1)},T=R.useCallback(()=>(i.query.refetch(),Promise.resolve(!0)),[]),C=((N=(P=(A=i.query)==null?void 0:A.data)==null?void 0:P.data)==null?void 0:N.totalItems)||0;return w.jsx(w.Fragment,{children:w.jsx(u0e,{pullDownContent:w.jsx(d0e,{label:""}),releaseContent:w.jsx(f0e,{}),refreshContent:w.jsx(c0e,{}),pullDownThreshold:200,onRefresh:T,triggerHeight:f?500:0,startInvisible:!0,children:u.length===0&&!((I=i.query)!=null&&I.isError)?w.jsx("div",{style:{height:"calc(100vh - 130px)"},children:w.jsx(h0e,{})}):w.jsxs("div",{style:{height:"calc(100vh - 130px)"},children:[w.jsx(Il,{query:i.query}),w.jsx(o0e,{isItemLoaded:L=>!!u[L],itemCount:C,loadMoreItems:async(L,j)=>{r.setFilter({startIndex:L,itemsPerPage:j-L})},children:({onItemsRendered:L,ref:j})=>w.jsx(e0e,{children:({height:z,width:Q})=>w.jsx(C0e,{height:z,itemCount:u.length,itemSize:o!=null&&o.getHeight?o.getHeight():e.length*24+10,width:Q,onScroll:E,onItemsRendered:L,ref:j,children:v})})})]})})})},x0e=({columns:e,deleteHook:t,uniqueIdHrefHandler:n,udf:r,q:a})=>{var d,f,g,y,h,v,E,T;const i=At(),o=Bs();t&&t({queryClient:o}),(f=(d=a.query.data)==null?void 0:d.data)!=null&&f.items;const l=((h=(y=(g=a.query)==null?void 0:g.data)==null?void 0:y.data)==null?void 0:h.items)||[],u=((T=(E=(v=a.query)==null?void 0:v.data)==null?void 0:E.data)==null?void 0:T.totalItems)||0;return w.jsxs(w.Fragment,{children:[u===0&&w.jsx("p",{children:i.table.noRecords}),l.map(C=>w.jsx(eZ,{style:{},uniqueIdHrefHandler:n,columns:e,content:C},C.uniqueId))]})},o8=matchMedia("(max-width: 600px)");function _0e(){const e=R.useRef(o8),[t,n]=R.useState(o8.matches?"card":"datatable");return R.useEffect(()=>{const r=e.current;function a(){r.matches?n("card"):n("datatable")}return r.addEventListener("change",a),()=>r.removeEventListener("change",a)},[]),{view:t}}const Uo=({children:e,columns:t,deleteHook:n,uniqueIdHrefHandler:r,withFilters:a,queryHook:i,onRecordsDeleted:o,selectable:l,id:u,RowDetail:d,withPreloads:f,queryFilters:g,deep:y,inlineInsertHook:h,bulkEditHook:v,urlMask:E,CardComponent:T})=>{var G,q,ce,H;At();const{view:C}=_0e(),k=Bs(),{query:_}=Bve({query:{uniqueId:i.UKEY}}),[A,P]=R.useState(t.map(Y=>({columnName:Y.name,width:Y.width})));R.useEffect(()=>{var Y,ie,J,ee;if((ie=(Y=_.data)==null?void 0:Y.data)!=null&&ie.sizes)P(JSON.parse((ee=(J=_.data)==null?void 0:J.data)==null?void 0:ee.sizes));else{const Z=localStorage.getItem(`table_${i.UKEY}`);Z&&P(JSON.parse(Z))}},[(q=(G=_.data)==null?void 0:G.data)==null?void 0:q.sizes]);const{submit:N}=Wve({queryClient:k}),I=n&&n({queryClient:k}),L=Uve({urlMask:"",submitDelete:I==null?void 0:I.submit,onRecordsDeleted:o?()=>o({queryClient:k}):void 0}),[j]=R.useState(t.map(Y=>({columnName:Y.name,width:Y.width}))),z=Y=>{P(Y);const ie=JSON.stringify(Y);N({uniqueId:i.UKEY,sizes:ie}),localStorage.setItem(`table_${i.UKEY}`,ie)};let Q=({value:Y})=>w.jsx("div",{style:{position:"relative"},children:w.jsx(Pl,{href:r&&r(Y),children:Y})}),le=Y=>w.jsx(Ive,{formatterComponent:Q,...Y});const re=[...g||[]],ge=R.useMemo(()=>Jbe(re),[re]),me=i({query:{deep:y===void 0?!0:y,...L.debouncedFilters,withPreloads:f},queryClient:k});me.jsonQuery=ge;const W=((H=(ce=me.query.data)==null?void 0:ce.data)==null?void 0:H.items)||[];return w.jsxs(w.Fragment,{children:[C==="map"&&w.jsx(x0e,{columns:t,deleteHook:n,uniqueIdHrefHandler:r,q:me,udf:L}),C==="card"&&w.jsx(k0e,{columns:t,CardComponent:T,jsonQuery:ge,deleteHook:n,uniqueIdHrefHandler:r,q:me,udf:L}),C==="datatable"&&w.jsxs(Xbe,{udf:L,selectable:l,bulkEditHook:v,RowDetail:d,uniqueIdHrefHandler:r,onColumnWidthsChange:z,columns:t,columnSizes:A,inlineInsertHook:h,rows:W,defaultColumnWidths:j,query:me.query,booleanColumns:["uniqueId"],withFilters:a,children:[w.jsx(le,{for:["uniqueId"]}),e]})]})},O0e=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:vi.Fields.name,title:e.capabilities.name,width:100},{name:vi.Fields.description,title:e.capabilities.description,width:100}];function R0e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/capability".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*fireback.CapabilityEntity",k=>g(k)),n==null||n.invalidateQueries("*fireback.CapabilityEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function tZ({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/capabilities".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*fireback.CapabilityEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}tZ.UKEY="*fireback.CapabilityEntity";const P0e=()=>{const e=Kt($E);return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:O0e(e),queryHook:tZ,uniqueIdHrefHandler:t=>vi.Navigation.single(t),deleteHook:R0e})})},A0e=()=>{const e=Kt($E);return w.jsx(jo,{pageTitle:e.capabilities.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(vi.Navigation.create())},children:w.jsx(P0e,{})})};function $r(e){const t=R.useRef(),n=Bs();R.useEffect(()=>{var d;e!=null&&e.data&&((d=t.current)==null||d.setValues(e.data))},[e==null?void 0:e.data]);const r=xr(),a=r.query.uniqueId,i=r.query.linkerId,o=!!a,{locale:l}=sr(),u=At();return{router:r,t:u,isEditing:o,locale:l,queryClient:n,formik:t,uniqueId:a,linkerId:i}}const Bo=({data:e,Form:t,getSingleHook:n,postHook:r,onCancel:a,onFinishUriResolver:i,disableOnGetFailed:o,patchHook:l,onCreateTitle:u,onEditTitle:d,setInnerRef:f,beforeSetValues:g,forceEdit:y,onlyOnRoot:h,customClass:v,beforeSubmit:E,onSuccessPatchOrPost:T})=>{var re,ge,me;const[C,k]=R.useState(),{router:_,isEditing:A,locale:P,formik:N,t:I}=$r({data:e}),L=R.useRef({});jQ(a,Ir.CommonBack);const{selectedUrw:j}=R.useContext(rt);gh((A||y?d:u)||"");const{query:z}=n;R.useEffect(()=>{var W,G,q;(W=z.data)!=null&&W.data&&((G=N.current)==null||G.setValues(g?g({...z.data.data}):{...z.data.data}),k((q=z.data)==null?void 0:q.data))},[z.data]),R.useEffect(()=>{var W;(W=N.current)==null||W.setSubmitting((r==null?void 0:r.mutation.isLoading)||(l==null?void 0:l.mutation.isLoading))},[r==null?void 0:r.isLoading,l==null?void 0:l.isLoading]);const Q=(W,G)=>{let q=L.current;q.uniqueId=W.uniqueId,E&&(q=E(q)),(A||y?l==null?void 0:l.submit(q,G):r==null?void 0:r.submit(q,G)).then(H=>{var Y;(Y=H.data)!=null&&Y.uniqueId&&(T?T(H):i?_.goBackOrDefault(i(H,P)):Lhe("Done",{type:"success"}))}).catch(H=>void 0)},le=((re=n==null?void 0:n.query)==null?void 0:re.isLoading)||!1||((ge=r==null?void 0:r.query)==null?void 0:ge.isLoading)||!1||((me=l==null?void 0:l.query)==null?void 0:me.isLoading)||!1;return Che({onSave(){var W;(W=N.current)==null||W.submitForm()}}),h&&j.workspaceId!=="root"?w.jsx("div",{children:I.onlyOnRoot}):w.jsx(ls,{innerRef:W=>{W&&(N.current=W,f&&f(W))},initialValues:{},onSubmit:Q,children:W=>{var G,q,ce,H;return w.jsx("form",{onSubmit:Y=>{Y.preventDefault(),W.submitForm()},className:v??"headless-form-entity-manager",children:w.jsxs("fieldset",{disabled:le,children:[w.jsx("div",{style:{marginBottom:"15px"},children:w.jsx(Il,{query:(G=r==null?void 0:r.mutation)!=null&&G.isError?r.mutation:(q=l==null?void 0:l.mutation)!=null&&q.isError?l.mutation:(ce=n==null?void 0:n.query)!=null&&ce.isError?n.query:null})}),o===!0&&((H=n==null?void 0:n.query)!=null&&H.isError)?null:w.jsx(t,{isEditing:A,initialData:C,form:{...W,setValues:(Y,ie)=>{for(const J in Y)Ta.set(L.current,J,Y[J]);return W.setValues(Y)},setFieldValue:(Y,ie,J)=>(Ta.set(L.current,Y,ie),W.setFieldValue(Y,ie,J))}}),w.jsx("button",{type:"submit",className:"d-none"})]})})}})},N0e={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-468]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function M0e(e,t,n){switch(n){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1);break}return{value:e,caret:t}}function I0e(e,t,n){for(var r={},a="",i=0,o=0;oo&&(i=a.length))),o++}t===void 0&&(i=a.length);var u={value:a,caret:i};return u}function D0e(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=$0e(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $0e(e,t){if(e){if(typeof e=="string")return s8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s8(e,t)}}function s8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:"x",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",a=e.length,i=NL("(",e),o=NL(")",e),l=i-o;l>0&&a=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j0e(e,t){if(e){if(typeof e=="string")return l8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l8(e,t)}}function l8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!e)return function(a){return{text:a}};var r=NL(t,e);return function(a){if(!a)return{text:"",template:e};for(var i=0,o="",l=F0e(e.split("")),u;!(u=l()).done;){var d=u.value;if(d!==t){o+=d;continue}if(o+=a[i],i++,i===a.length&&a.length=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ewe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function twe(e){var t=e.ref,n=e.parse,r=e.format,a=e.value,i=e.defaultValue,o=e.controlled,l=o===void 0?!0:o,u=e.onChange,d=e.onKeyDown,f=Z0e(e,Q0e),g=R.useRef(),y=R.useCallback(function(T){g.current=T,t&&(typeof t=="function"?t(T):t.current=T)},[t]),h=R.useCallback(function(T){return Y0e(T,g.current,n,r,u)},[g,n,r,u]),v=R.useCallback(function(T){if(d&&d(T),!T.defaultPrevented)return K0e(T,g.current,n,r,u)},[g,n,r,u,d]),E=yb(yb({},f),{},{ref:y,onChange:h,onKeyDown:v});return l?yb(yb({},E),{},{value:r(d8(a)?"":a).text}):yb(yb({},E),{},{defaultValue:r(d8(i)?"":i).text})}function d8(e){return e==null}var nwe=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function f8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function rwe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function owe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function Ex(e,t){var n=e.inputComponent,r=n===void 0?"input":n,a=e.parse,i=e.format,o=e.value,l=e.defaultValue,u=e.onChange,d=e.controlled,f=e.onKeyDown,g=e.type,y=g===void 0?"text":g,h=iwe(e,nwe),v=twe(rwe({ref:t,parse:a,format:i,value:o,defaultValue:l,onChange:u,controlled:d,onKeyDown:f,type:y},h));return ze.createElement(r,v)}Ex=ze.forwardRef(Ex);Ex.propTypes={parse:Ye.func.isRequired,format:Ye.func.isRequired,inputComponent:Ye.elementType,type:Ye.string,value:Ye.string,defaultValue:Ye.string,onChange:Ye.func,controlled:Ye.bool,onKeyDown:Ye.func,onCut:Ye.func,onPaste:Ye.func};function p8(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),a=0;a<3;a++){var i=Number(n[a]),o=Number(r[a]);if(i>o)return 1;if(o>i)return-1;if(!isNaN(i)&&isNaN(o))return 1;if(isNaN(i)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]i?"TOO_SHORT":a[a.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function vwe(e,t,n){if(t===void 0&&(t={}),n=new ii(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return oZ(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function oZ(e,t){switch(C_(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function Ud(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function ywe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=bwe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bwe(e,t){if(e){if(typeof e=="string")return v8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v8(e,t)}}function v8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0}var LF=2,Cwe=17,kwe=3,Lo="0-90-9٠-٩۰-۹",xwe="-‐-―−ー-",_we="//",Owe="..",Rwe="  ­​⁠ ",Pwe="()()[]\\[\\]",Awe="~⁓∼~",Tu="".concat(xwe).concat(_we).concat(Owe).concat(Rwe).concat(Pwe).concat(Awe),k_="++",Nwe=new RegExp("(["+Lo+"])");function sZ(e,t,n,r){if(t){var a=new ii(r);a.selectNumberingPlan(t,n);var i=new RegExp(a.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var o=e.match(Nwe);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]==="0"))return e}}}function DL(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var a,i,o=r.length-1,l=o>0&&r[o];if(t.nationalPrefixTransformRule()&&l)a=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(i=r[1]);else{var u=r[0];a=e.slice(u.length),l&&(i=r[1])}var d;if(l){var f=e.indexOf(r[1]),g=e.slice(0,f);g===t.numberingPlan.nationalPrefix()&&(d=t.numberingPlan.nationalPrefix())}else d=r[0];return{nationalNumber:a,nationalPrefix:d,carrierCode:i}}}return{nationalNumber:e}}function $L(e,t){var n=DL(e,t),r=n.carrierCode,a=n.nationalNumber;if(a!==e){if(!Mwe(e,a,t))return{nationalNumber:e};if(t.possibleLengths()&&!Iwe(a,t))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:r}}function Mwe(e,t,n){return!(Ud(e,n.nationalNumberPattern())&&!Ud(t,n.nationalNumberPattern()))}function Iwe(e,t){switch(C_(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function lZ(e,t,n,r){var a=t?yh(t,r):n;if(e.indexOf(a)===0){r=new ii(r),r.selectNumberingPlan(t,n);var i=e.slice(a.length),o=$L(i,r),l=o.nationalNumber,u=$L(e,r),d=u.nationalNumber;if(!Ud(d,r.nationalNumberPattern())&&Ud(l,r.nationalNumberPattern())||C_(d,r)==="TOO_LONG")return{countryCallingCode:a,number:i}}return{number:e}}function FF(e,t,n,r){if(!e)return{};var a;if(e[0]!=="+"){var i=sZ(e,t,n,r);if(i&&i!==e)a=!0,e="+"+i;else{if(t||n){var o=lZ(e,t,n,r),l=o.countryCallingCode,u=o.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:u}}return{number:e}}}if(e[1]==="0")return{};r=new ii(r);for(var d=2;d-1<=kwe&&d<=e.length;){var f=e.slice(1,d);if(r.hasCallingCode(f))return r.selectNumberingPlan(f),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:f,number:e.slice(d)};d++}return{}}function uZ(e){return e.replace(new RegExp("[".concat(Tu,"]+"),"g")," ").trim()}var cZ=/(\$\d)/;function dZ(e,t,n){var r=n.useInternationalFormat,a=n.withNationalPrefix;n.carrierCode,n.metadata;var i=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(cZ,t.nationalPrefixFormattingRule()):t.format());return r?uZ(i):i}var Dwe=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function $we(e,t,n){var r=new ii(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Dwe.test(r.IDDPrefix()))return r.IDDPrefix()}var Lwe=";ext=",bb=function(t){return"([".concat(Lo,"]{1,").concat(t,"})")};function fZ(e){var t="20",n="15",r="9",a="6",i="[  \\t,]*",o="[:\\..]?[  \\t,-]*",l="#?",u="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",f="[- ]+",g="[  \\t]*",y="(?:,{2}|;)",h=Lwe+bb(t),v=i+u+o+bb(t)+l,E=i+d+o+bb(r)+l,T=f+bb(a)+"#",C=g+y+o+bb(n)+l,k=g+"(?:,)+"+o+bb(r)+l;return h+"|"+v+"|"+E+"|"+T+"|"+C+"|"+k}var Fwe="["+Lo+"]{"+LF+"}",jwe="["+k_+"]{0,1}(?:["+Tu+"]*["+Lo+"]){3,}["+Tu+Lo+"]*",Uwe=new RegExp("^["+k_+"]{0,1}(?:["+Tu+"]*["+Lo+"]){1,2}$","i"),Bwe=jwe+"(?:"+fZ()+")?",Wwe=new RegExp("^"+Fwe+"$|^"+Bwe+"$","i");function zwe(e){return e.length>=LF&&Wwe.test(e)}function qwe(e){return Uwe.test(e)}function Hwe(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}function Vwe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Gwe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gwe(e,t){if(e){if(typeof e=="string")return y8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y8(e,t)}}function y8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var i=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(t.search(i)!==0)continue}if(Ud(t,a.pattern()))return a}}function YP(e,t,n,r){return t?r(e,t,n):e}function Qwe(e,t,n,r,a){var i=yh(r,a.metadata);if(i===n){var o=Tx(e,t,"NATIONAL",a);return n==="1"?n+" "+o:o}var l=$we(r,void 0,a.metadata);if(l)return"".concat(l," ").concat(n," ").concat(Tx(e,null,"INTERNATIONAL",a))}function E8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function T8(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function c1e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function QS(e,t){return QS=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},QS(e,t)}function JS(e){return JS=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},JS(e)}var Rd=(function(e){s1e(n,e);var t=l1e(n);function n(r){var a;return o1e(this,n),a=t.call(this,r),Object.setPrototypeOf(hZ(a),n.prototype),a.name=a.constructor.name,a}return i1e(n)})(FL(Error)),C8=new RegExp("(?:"+fZ()+")$","i");function d1e(e){var t=e.search(C8);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(C8),a=1;a=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p1e(e,t){if(e){if(typeof e=="string")return k8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k8(e,t)}}function k8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g1e(e,t){if(e){if(typeof e=="string")return x8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x8(e,t)}}function x8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y1e(e,t){if(e){if(typeof e=="string")return _8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _8(e,t)}}function _8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function R1e(e){return e===null?!0:e.length===0?!1:S1e.test(e)||x1e.test(e)}function P1e(e,t){var n=t.extractFormattedPhoneNumber,r=O1e(e);if(!R1e(r))throw new Rd("NOT_A_NUMBER");var a;if(r===null)a=n(e)||"";else{a="",r.charAt(0)===wZ&&(a+=r);var i=e.indexOf(R8),o;i>=0?o=i+R8.length:o=0;var l=e.indexOf(BL);a+=e.substring(o,l)}var u=a.indexOf(_1e);if(u>0&&(a=a.substring(0,u)),a!=="")return a}var A1e=250,N1e=new RegExp("["+k_+Lo+"]"),M1e=new RegExp("[^"+Lo+"#]+$");function I1e(e,t,n){if(t=t||{},n=new ii(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new Rd("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=$1e(e,t.v2,t.extract),a=r.number,i=r.ext,o=r.error;if(!a){if(t.v2)throw o==="TOO_SHORT"?new Rd("TOO_SHORT"):new Rd("NOT_A_NUMBER");return{}}var l=F1e(a,t.defaultCountry,t.defaultCallingCode,n),u=l.country,d=l.nationalNumber,f=l.countryCallingCode,g=l.countryCallingCodeSource,y=l.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Rd("INVALID_COUNTRY");return{}}if(!d||d.lengthCwe){if(t.v2)throw new Rd("TOO_LONG");return{}}if(t.v2){var h=new pZ(f,d,n.metadata);return u&&(h.country=u),y&&(h.carrierCode=y),i&&(h.ext=i),h.__countryCallingCodeSource=g,h}var v=(t.extended?n.hasSelectedNumberingPlan():u)?Ud(d,n.nationalNumberPattern()):!1;return t.extended?{country:u,countryCallingCode:f,carrierCode:y,valid:v,possible:v?!0:!!(t.extended===!0&&n.possibleLengths()&&oZ(d,n)),phone:d,ext:i}:v?L1e(u,d,i):{}}function D1e(e,t,n){if(e){if(e.length>A1e){if(n)throw new Rd("TOO_LONG");return}if(t===!1)return e;var r=e.search(N1e);if(!(r<0))return e.slice(r).replace(M1e,"")}}function $1e(e,t,n){var r=P1e(e,{extractFormattedPhoneNumber:function(o){return D1e(o,n,t)}});if(!r)return{};if(!zwe(r))return qwe(r)?{error:"TOO_SHORT"}:{};var a=d1e(r);return a.ext?a:{number:r}}function L1e(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function F1e(e,t,n,r){var a=FF(jL(e),t,n,r.metadata),i=a.countryCallingCodeSource,o=a.countryCallingCode,l=a.number,u;if(o)r.selectNumberingPlan(o);else if(l&&(t||n))r.selectNumberingPlan(t,n),t&&(u=t),o=n||yh(t,r.metadata);else return{};if(!l)return{countryCallingCodeSource:i,countryCallingCode:o};var d=$L(jL(l),r),f=d.nationalNumber,g=d.carrierCode,y=bZ(o,{nationalNumber:f,defaultCountry:t,metadata:r});return y&&(u=y,y==="001"||r.country(u)),{country:u,countryCallingCode:o,countryCallingCodeSource:i,nationalNumber:f,carrierCode:g}}function P8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function A8(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rSe(e,t){if(e){if(typeof e=="string")return $8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $8(e,t)}}function $8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function L8(e,t){return e[t]===")"&&t++,aSe(e.slice(0,t))}function aSe(e){for(var t=[],n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vSe(e,t){if(e){if(typeof e=="string")return U8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U8(e,t)}}function U8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},a=r.allowOverflow;if(!n)throw new Error("String is required");var i=WL(n.split(""),this.matchTree,!0);if(i&&i.match&&delete i.matchedChars,!(i&&i.overflow&&!a))return i}}]),e})();function WL(e,t,n){if(typeof t=="string"){var r=e.join("");return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var a=e.slice(),i=0;i=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ESe(e,t){if(e){if(typeof e=="string")return W8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W8(e,t)}}function W8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)){var a=this.getTemplateForFormat(n,r);if(a)return this.setNationalNumberTemplate(a,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&OSe.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var a=n.IDDPrefix,i=n.missingPlus;return a?r&&r.spacing===!1?a:a+" ":i?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,a=0,i=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";ad.length)){var f=new RegExp("^"+u+"$"),g=a.replace(/\d/g,zL);f.test(g)&&(d=g);var y=this.getFormatFormat(n,i),h;if(this.shouldTryNationalPrefixFormattingRule(n,{international:i,nationalPrefix:o})){var v=y.replace(cZ,n.nationalPrefixFormattingRule());if(Cx(n.nationalPrefixFormattingRule())===(o||"")+Cx("$1")&&(y=v,h=!0,o))for(var E=o.length;E>0;)y=y.replace(/\d/,vu),E--}var T=d.replace(new RegExp(u),y).replace(new RegExp(zL,"g"),vu);return h||(l?T=Bk(vu,l.length)+" "+T:o&&(T=Bk(vu,o.length)+this.getSeparatorAfterNationalPrefix(n)+T)),i&&(T=uZ(T)),T}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=iSe(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],L8(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var a=r.international,i=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var o=n.usesNationalPrefix();if(o&&i||!o&&!a)return!0}}}]),e})();function SZ(e,t){return $Se(e)||DSe(e,t)||ISe(e,t)||MSe()}function MSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ISe(e,t){if(e){if(typeof e=="string")return q8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q8(e,t)}}function q8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=3;if(r.appendDigits(n),i&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(o){return r.update(o)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,a=n.callingCode;return r&&!a}},{key:"extractCountryCallingCode",value:function(n){var r=FF("+"+n.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=r.countryCallingCode,i=r.number;if(a)return n.setCallingCode(a),n.update({nationalSignificantNumber:i}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&qSe.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var a=DL(n,this.metadata),i=a.nationalPrefix,o=a.nationalNumber,l=a.carrierCode;if(o!==n)return this.onExtractedNationalNumber(i,l,o,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,a){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,a);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var i=DL(n,this.metadata),o=i.nationalPrefix,l=i.nationalNumber,u=i.carrierCode;if(l!==r)return this.onExtractedNationalNumber(o,u,l,n,a),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,a,i,o){var l,u,d=i.lastIndexOf(a);if(d>=0&&d===i.length-a.length){u=!0;var f=i.slice(0,d);f!==n&&(l=f)}o({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:a,nationalSignificantNumberMatchesInput:u,complexPrefixBeforeNationalSignificantNumber:l}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,a=n.IDDPrefix,i=n.digits;if(n.nationalSignificantNumber,!(r||a)){var o=sZ(i,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(o!==void 0&&o!==i)return n.update({IDDPrefix:i.slice(0,i.length-o.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=lZ(n.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=r.countryCallingCode;if(r.number,a)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:a}),!0}}},{key:"startInternationalNumber",value:function(n,r){var a=r.country,i=r.callingCode;n.startInternationalNumber(a,i),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}]),e})();function VSe(e){var t=e.search(WSe);if(!(t<0)){e=e.slice(t);var n;return e[0]==="+"&&(n=!0,e=e.slice(1)),e=e.replace(zSe,""),n&&(e="+"+e),e}}function GSe(e){var t=VSe(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function YSe(e){var t=GSe(e),n=SZ(t,2),r=n[0],a=n[1];return BSe.test(r)||(r=""),[r,a]}function KSe(e,t){return ZSe(e)||JSe(e,t)||QSe(e,t)||XSe()}function XSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QSe(e,t){if(e){if(typeof e=="string")return H8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H8(e,t)}}function H8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1}},{key:"determineTheCountry",value:function(){this.state.setCountry(bZ(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,a=n.callingCode,i=n.country,o=n.nationalSignificantNumber;if(r){if(this.isInternational())return a?"+"+a+o:"+"+r;if(i||a){var l=i?this.metadata.countryCallingCode():a;return"+"+l+o}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,a=n.carrierCode,i=n.callingCode,o=this._getCountry();if(r&&!(!o&&!i)){if(o&&o===this.defaultCountry){var l=new ii(this.metadata.metadata);l.selectNumberingPlan(o);var u=l.numberingPlan.callingCode(),d=this.metadata.getCountryCodesForCallingCode(u);if(d.length>1){var f=yZ(r,{countries:d,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});f&&(o=f)}}var g=new pZ(o||i,r,this.metadata.metadata);return a&&(g.carrierCode=a),g}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),e})();function V8(e){return new ii(e).getCountries()}function rEe(e,t,n){return n||(n=t,t=void 0),new k0(t,n).input(e)}function EZ(e){var t=e.inputFormat,n=e.country,r=e.metadata;return t==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(yh(n,r)):""}function qL(e,t){return t&&(e=e.slice(t.length),e[0]===" "&&(e=e.slice(1))),e}function aEe(e,t,n){if(!(n&&n.ignoreRest)){var r=function(i){if(n)switch(i){case"end":n.ignoreRest=!0;break}};return vZ(e,t,r)}}function TZ(e){var t=e.onKeyDown,n=e.inputFormat;return R.useCallback(function(r){if(r.keyCode===oEe&&n==="INTERNATIONAL"&&r.target instanceof HTMLInputElement&&iEe(r.target)===sEe.length){r.preventDefault();return}t&&t(r)},[t,n])}function iEe(e){return e.selectionStart}var oEe=8,sEe="+",lEe=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function HL(){return HL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function dEe(e){function t(n,r){var a=n.onKeyDown,i=n.country,o=n.inputFormat,l=n.metadata,u=l===void 0?e:l;n.international,n.withCountryCallingCode;var d=uEe(n,lEe),f=R.useCallback(function(y){var h=new k0(i,u),v=EZ({inputFormat:o,country:i,metadata:u}),E=h.input(v+y),T=h.getTemplate();return v&&(E=qL(E,v),T&&(T=qL(T,v))),{text:E,template:T}},[i,u]),g=TZ({onKeyDown:a,inputFormat:o});return ze.createElement(Ex,HL({},d,{ref:r,parse:aEe,format:f,onKeyDown:g}))}return t=ze.forwardRef(t),t.propTypes={value:Ye.string.isRequired,onChange:Ye.func.isRequired,onKeyDown:Ye.func,country:Ye.string,inputFormat:Ye.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Ye.object},t}const fEe=dEe();var pEe=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function VL(){return VL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function gEe(e){function t(n,r){var a=n.value,i=n.onChange,o=n.onKeyDown,l=n.country,u=n.inputFormat,d=n.metadata,f=d===void 0?e:d,g=n.inputComponent,y=g===void 0?"input":g;n.international,n.withCountryCallingCode;var h=hEe(n,pEe),v=EZ({inputFormat:u,country:l,metadata:f}),E=R.useCallback(function(C){var k=jL(C.target.value);if(k===a){var _=G8(v,k,l,f);_.indexOf(C.target.value)===0&&(k=k.slice(0,-1))}i(k)},[v,a,i,l,f]),T=TZ({onKeyDown:o,inputFormat:u});return ze.createElement(y,VL({},h,{ref:r,value:G8(v,a,l,f),onChange:E,onKeyDown:T}))}return t=ze.forwardRef(t),t.propTypes={value:Ye.string.isRequired,onChange:Ye.func.isRequired,onKeyDown:Ye.func,country:Ye.string,inputFormat:Ye.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Ye.object,inputComponent:Ye.elementType},t}const vEe=gEe();function G8(e,t,n,r){return qL(rEe(e+t,n,r),e)}function yEe(e){return Y8(e[0])+Y8(e[1])}function Y8(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var bEe=["value","onChange","options","disabled","readOnly"],wEe=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function SEe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=EEe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EEe(e,t){if(e){if(typeof e=="string")return K8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K8(e,t)}}function K8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function kZ(e){var t=e.value,n=e.onChange,r=e.options,a=e.disabled,i=e.readOnly,o=CZ(e,bEe),l=R.useCallback(function(u){var d=u.target.value;n(d==="ZZ"?void 0:d)},[n]);return R.useMemo(function(){return _Z(r,t)},[r,t]),ze.createElement("select",kx({},o,{disabled:a||i,readOnly:i,value:t||"ZZ",onChange:l}),r.map(function(u){var d=u.value,f=u.label,g=u.divider;return ze.createElement("option",{key:g?"|":d||"ZZ",value:g?"|":d||"ZZ",disabled:!!g,style:g?CEe:void 0},f)}))}kZ.propTypes={value:Ye.string,onChange:Ye.func.isRequired,options:Ye.arrayOf(Ye.shape({value:Ye.string,label:Ye.string,divider:Ye.bool})).isRequired,disabled:Ye.bool,readOnly:Ye.bool};var CEe={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function xZ(e){var t=e.value,n=e.options,r=e.className,a=e.iconComponent;e.getIconAspectRatio;var i=e.arrowComponent,o=i===void 0?kEe:i,l=e.unicodeFlags,u=CZ(e,wEe),d=R.useMemo(function(){return _Z(n,t)},[n,t]);return ze.createElement("div",{className:"PhoneInputCountry"},ze.createElement(kZ,kx({},u,{value:t,options:n,className:oa("PhoneInputCountrySelect",r)})),d&&(l&&t?ze.createElement("div",{className:"PhoneInputCountryIconUnicode"},yEe(t)):ze.createElement(a,{"aria-hidden":!0,country:t,label:d.label,aspectRatio:l?1:void 0})),ze.createElement(o,null))}xZ.propTypes={iconComponent:Ye.elementType,arrowComponent:Ye.elementType,unicodeFlags:Ye.bool};function kEe(){return ze.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function _Z(e,t){for(var n=SEe(e),r;!(r=n()).done;){var a=r.value;if(!a.divider&&xEe(a.value,t))return a}}function xEe(e,t){return e==null?t==null:e===t}var _Ee=["country","countryName","flags","flagUrl"];function GL(){return GL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function REe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function jF(e){var t=e.country,n=e.countryName,r=e.flags,a=e.flagUrl,i=OEe(e,_Ee);return r&&r[t]?r[t]({title:n}):ze.createElement("img",GL({},i,{alt:n,role:n?void 0:"presentation",src:a.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}jF.propTypes={country:Ye.string.isRequired,countryName:Ye.string.isRequired,flags:Ye.objectOf(Ye.elementType),flagUrl:Ye.string.isRequired};var PEe=["aspectRatio"],AEe=["title"],NEe=["title"];function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function x_(e){var t=e.aspectRatio,n=UF(e,PEe);return t===1?ze.createElement(RZ,n):ze.createElement(OZ,n)}x_.propTypes={title:Ye.string.isRequired,aspectRatio:Ye.number};function OZ(e){var t=e.title,n=UF(e,AEe);return ze.createElement("svg",xx({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),ze.createElement("title",null,t),ze.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},ze.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),ze.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),ze.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),ze.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),ze.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),ze.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),ze.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}OZ.propTypes={title:Ye.string.isRequired};function RZ(e){var t=e.title,n=UF(e,NEe);return ze.createElement("svg",xx({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),ze.createElement("title",null,t),ze.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},ze.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),ze.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),ze.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),ze.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),ze.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),ze.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),ze.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}RZ.propTypes={title:Ye.string.isRequired};function IEe(e){if(e.length<2||e[0]!=="+")return!1;for(var t=1;t=48&&n<=57))return!1;t++}return!0}function PZ(e){IEe(e)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",e)}function DEe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=$Ee(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $Ee(e,t){if(e){if(typeof e=="string")return X8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X8(e,t)}}function X8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0))return e}function __(e,t){return aZ(e,t)?!0:(console.error("Country not found: ".concat(e)),!1)}function AZ(e,t){return e&&(e=e.filter(function(n){return __(n,t)}),e.length===0&&(e=void 0)),e}var jEe=["country","label","aspectRatio"];function YL(){return YL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BEe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function NZ(e){var t=e.flags,n=e.flagUrl,r=e.flagComponent,a=e.internationalIcon;function i(o){var l=o.country,u=o.label,d=o.aspectRatio,f=UEe(o,jEe),g=a===x_?d:void 0;return ze.createElement("div",YL({},f,{className:oa("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":g===1,"PhoneInputCountryIcon--border":l})}),l?ze.createElement(r,{country:l,countryName:u,flags:t,flagUrl:n,className:"PhoneInputCountryIconImg"}):ze.createElement(a,{title:u,aspectRatio:g,className:"PhoneInputCountryIconImg"}))}return i.propTypes={country:Ye.string,label:Ye.string.isRequired,aspectRatio:Ye.number},i}NZ({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:jF,internationalIcon:x_});function WEe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=zEe(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zEe(e,t){if(e){if(typeof e=="string")return Q8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q8(e,t)}}function Q8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(u=a()),u}function GEe(e){var t=e.countries,n=e.countryNames,r=e.addInternationalOption,a=e.compareStringsLocales,i=e.compareStrings;i||(i=eTe);var o=t.map(function(l){return{value:l,label:n[l]||l}});return o.sort(function(l,u){return i(l.label,u.label,a)}),r&&o.unshift({label:n.ZZ}),o}function DZ(e,t){return Q1e(e||"",t)}function YEe(e){return e.formatNational().replace(/\D/g,"")}function KEe(e,t){var n=t.prevCountry,r=t.newCountry,a=t.metadata,i=t.useNationalFormat;if(n===r)return e;if(!e)return i?"":r?Dd(r,a):"";if(r){if(e[0]==="+"){if(i)return e.indexOf("+"+yh(r,a))===0?tTe(e,r,a):"";if(n){var o=Dd(r,a);return e.indexOf(o)===0?e:o}else{var l=Dd(r,a);return e.indexOf(l)===0?e:l}}}else if(e[0]!=="+")return Ib(e,n,a)||"";return e}function Ib(e,t,n){if(e){if(e[0]==="+"){if(e==="+")return;var r=new k0(t,n);return r.input(e),r.getNumberValue()}if(t){var a=LZ(e,t,n);return"+".concat(yh(t,n)).concat(a||"")}}}function XEe(e,t,n){var r=LZ(e,t,n);if(r){var a=r.length-QEe(t,n);if(a>0)return e.slice(0,e.length-a)}return e}function QEe(e,t){return t=new ii(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}function $Z(e,t){var n=t.country,r=t.countries,a=t.defaultCountry,i=t.latestCountrySelectedByUser,o=t.required,l=t.metadata;if(e==="+")return n;var u=ZEe(e,l);if(u)return!r||r.indexOf(u)>=0?u:void 0;if(n){if(Qb(e,n,l)){if(i&&Qb(e,i,l))return i;if(a&&Qb(e,a,l))return a;if(!o)return}else if(!o)return}return n}function JEe(e,t){var n=t.prevPhoneDigits,r=t.country,a=t.defaultCountry,i=t.latestCountrySelectedByUser,o=t.countryRequired,l=t.getAnyCountry,u=t.countries,d=t.international,f=t.limitMaxLength,g=t.countryCallingCodeEditable,y=t.metadata;if(d&&g===!1&&r){var h=Dd(r,y);if(e.indexOf(h)!==0){var v,E=e&&e[0]!=="+";return E?(e=h+e,v=Ib(e,r,y)):e=h,{phoneDigits:e,value:v,country:r}}}d===!1&&r&&e&&e[0]==="+"&&(e=J8(e,r,y)),e&&r&&f&&(e=XEe(e,r,y)),e&&e[0]!=="+"&&(!r||d)&&(e="+"+e),!e&&n&&n[0]==="+"&&(d?r=void 0:r=a),e==="+"&&n&&n[0]==="+"&&n.length>1&&(r=void 0);var T;return e&&(e[0]==="+"&&(e==="+"||r&&Dd(r,y).indexOf(e)===0)?T=void 0:T=Ib(e,r,y)),T&&(r=$Z(T,{country:r,countries:u,defaultCountry:a,latestCountrySelectedByUser:i,required:!1,metadata:y}),d===!1&&r&&e&&e[0]==="+"&&(e=J8(e,r,y),T=Ib(e,r,y))),!r&&o&&(r=a||l()),{phoneDigits:e,country:r,value:T}}function J8(e,t,n){if(e.indexOf(Dd(t,n))===0){var r=new k0(t,n);r.input(e);var a=r.getNumber();return a?a.formatNational().replace(/\D/g,""):""}else return e.replace(/\D/g,"")}function ZEe(e,t){var n=new k0(null,t);return n.input(e),n.getCountry()}function eTe(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):et?1:0}function tTe(e,t,n){if(t){var r="+"+yh(t,n);if(e.length=0)&&(N=P.country):(N=$Z(o,{country:void 0,countries:I,metadata:r}),N||i&&o.indexOf(Dd(i,r))===0&&(N=i))}var L;if(o){if(T){var j=N?T===N:Qb(o,T,r);j?N||(N=T):L={latestCountrySelectedByUser:void 0}}}else L={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return ok(ok({},L),{},{phoneDigits:C({phoneNumber:P,value:o,defaultCountry:i}),value:o,country:o?N:i})}}function e5(e,t){return e===null&&(e=void 0),t===null&&(t=void 0),e===t}var oTe=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function u0(e){"@babel/helpers - typeof";return u0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u0(e)}function t5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function jZ(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lTe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function uTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n5(e,t){for(var n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ETe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function zZ(e){var t=ze.forwardRef(function(n,r){var a=n.metadata,i=a===void 0?e:a,o=n.labels,l=o===void 0?bTe:o,u=STe(n,wTe);return ze.createElement(WZ,XL({},u,{ref:r,metadata:i,labels:l}))});return t.propTypes={metadata:MZ,labels:IZ},t}zZ();const TTe=zZ(N0e),In=e=>{const{region:t}=sr(),{label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,children:u,errorMessage:d,type:f,focused:g=!1,autoFocus:y,...h}=e,[v,E]=R.useState(!1),T=R.useRef(),C=R.useCallback(()=>{var A;(A=T.current)==null||A.focus()},[T.current]);let k=l===void 0?"":l;f==="number"&&(k=+l);const _=A=>{o&&o(f==="number"?+A.target.value:A.target.value)};return w.jsxs(rf,{focused:v,onClick:C,...e,children:[e.type==="phonenumber"?w.jsx(TTe,{country:t,autoFocus:y,value:k,onChange:A=>o&&o(A)}):w.jsx("input",{...h,ref:T,value:k,autoFocus:y,className:oa("form-control",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),type:f||"text",onChange:_,onBlur:()=>E(!1),onFocus:()=>E(!0)}),u]})};function ao(e){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(e)}function CTe(e,t){if(ao(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ao(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qZ(e){var t=CTe(e,"string");return ao(t)=="symbol"?t:String(t)}function wt(e,t,n){return t=qZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?zi(x0,--ss):0,d0--,Ka===10&&(d0=1,R_--),Ka}function js(){return Ka=ss2||tE(Ka)>3?"":" "}function WTe(e,t){for(;--t&&js()&&!(Ka<48||Ka>102||Ka>57&&Ka<65||Ka>70&&Ka<97););return UE(e,Wk()+(t<6&&Ec()==32&&js()==32))}function ZL(e){for(;js();)switch(Ka){case e:return ss;case 34:case 39:e!==34&&e!==39&&ZL(Ka);break;case 40:e===41&&ZL(e);break;case 92:js();break}return ss}function zTe(e,t){for(;js()&&e+Ka!==57;)if(e+Ka===84&&Ec()===47)break;return"/*"+UE(t,ss-1)+"*"+O_(e===47?e:js())}function qTe(e){for(;!tE(Ec());)js();return UE(e,ss)}function HTe(e){return QZ(qk("",null,null,null,[""],e=XZ(e),0,[0],e))}function qk(e,t,n,r,a,i,o,l,u){for(var d=0,f=0,g=o,y=0,h=0,v=0,E=1,T=1,C=1,k=0,_="",A=a,P=i,N=r,I=_;T;)switch(v=k,k=js()){case 40:if(v!=108&&zi(I,g-1)==58){JL(I+=br(zk(k),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:I+=zk(k);break;case 9:case 10:case 13:case 32:I+=BTe(v);break;case 92:I+=WTe(Wk()-1,7);continue;case 47:switch(Ec()){case 42:case 47:sk(VTe(zTe(js(),Wk()),t,n),u);break;default:I+="/"}break;case 123*E:l[d++]=hc(I)*C;case 125*E:case 59:case 0:switch(k){case 0:case 125:T=0;case 59+f:C==-1&&(I=br(I,/\f/g,"")),h>0&&hc(I)-g&&sk(h>32?s5(I+";",r,n,g-1):s5(br(I," ","")+";",r,n,g-2),u);break;case 59:I+=";";default:if(sk(N=o5(I,t,n,d,f,a,l,_,A=[],P=[],g),i),k===123)if(f===0)qk(I,t,N,N,A,i,g,l,P);else switch(y===99&&zi(I,3)===110?100:y){case 100:case 108:case 109:case 115:qk(e,N,N,r&&sk(o5(e,N,N,0,0,a,l,_,a,A=[],g),P),a,P,g,l,r?A:P);break;default:qk(I,N,N,N,[""],P,0,l,P)}}d=f=h=0,E=C=1,_=I="",g=o;break;case 58:g=1+hc(I),h=v;default:if(E<1){if(k==123)--E;else if(k==125&&E++==0&&UTe()==125)continue}switch(I+=O_(k),k*E){case 38:C=f>0?1:(I+="\f",-1);break;case 44:l[d++]=(hc(I)-1)*C,C=1;break;case 64:Ec()===45&&(I+=zk(js())),y=Ec(),f=g=hc(_=I+=qTe(Wk())),k++;break;case 45:v===45&&hc(I)==2&&(E=0)}}return i}function o5(e,t,n,r,a,i,o,l,u,d,f){for(var g=a-1,y=a===0?i:[""],h=qF(y),v=0,E=0,T=0;v0?y[C]+" "+k:br(k,/&\f/g,y[C])))&&(u[T++]=_);return P_(e,t,n,a===0?WF:l,u,d,f)}function VTe(e,t,n){return P_(e,t,n,VZ,O_(jTe()),eE(e,2,-2),0)}function s5(e,t,n,r){return P_(e,t,n,zF,eE(e,0,r),eE(e,r+1,-1),r)}function Zb(e,t){for(var n="",r=qF(e),a=0;a6)switch(zi(e,t+1)){case 109:if(zi(e,t+4)!==45)break;case 102:return br(e,/(.+:)(.+)-([^]+)/,"$1"+yr+"$2-$3$1"+Rx+(zi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~JL(e,"stretch")?JZ(br(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(zi(e,t+1)!==115)break;case 6444:switch(zi(e,hc(e)-3-(~JL(e,"!important")&&10))){case 107:return br(e,":",":"+yr)+e;case 101:return br(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yr+(zi(e,14)===45?"inline-":"")+"box$3$1"+yr+"$2$3$1"+Qi+"$2box$3")+e}break;case 5936:switch(zi(e,t+11)){case 114:return yr+e+Qi+br(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yr+e+Qi+br(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yr+e+Qi+br(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yr+e+Qi+e+e}return e}var tCe=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case zF:t.return=JZ(t.value,t.length);break;case GZ:return Zb([R1(t,{value:br(t.value,"@","@"+yr)})],a);case WF:if(t.length)return FTe(t.props,function(i){switch(LTe(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zb([R1(t,{props:[br(i,/:(read-\w+)/,":"+Rx+"$1")]})],a);case"::placeholder":return Zb([R1(t,{props:[br(i,/:(plac\w+)/,":"+yr+"input-$1")]}),R1(t,{props:[br(i,/:(plac\w+)/,":"+Rx+"$1")]}),R1(t,{props:[br(i,/:(plac\w+)/,Qi+"input-$1")]})],a)}return""})}},nCe=[tCe],rCe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(E){var T=E.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var a=t.stylisPlugins||nCe,i={},o,l=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var T=E.getAttribute("data-emotion").split(" "),C=1;C=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var lCe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function uCe(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var cCe=/[A-Z]|^ms/g,dCe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eee=function(t){return t.charCodeAt(1)===45},u5=function(t){return t!=null&&typeof t!="boolean"},QP=uCe(function(e){return eee(e)?e:e.replace(cCe,"-$&").toLowerCase()}),c5=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(dCe,function(r,a,i){return mc={name:a,styles:i,next:mc},a})}return lCe[t]!==1&&!eee(t)&&typeof n=="number"&&n!==0?n+"px":n};function nE(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return mc={name:n.name,styles:n.styles,next:mc},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)mc={name:r.name,styles:r.styles,next:mc},r=r.next;var a=n.styles+";";return a}return fCe(e,t,n)}case"function":{if(e!==void 0){var i=mc,o=n(e);return mc=i,nE(e,t,o)}break}}return n}function fCe(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xCe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const _Ce=Math.min,OCe=Math.max,Px=Math.round,lk=Math.floor,Ax=e=>({x:e,y:e});function RCe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ree(e){return iee(e)?(e.nodeName||"").toLowerCase():"#document"}function Bd(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function aee(e){var t;return(t=(iee(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function iee(e){return e instanceof Node||e instanceof Bd(e).Node}function PCe(e){return e instanceof Element||e instanceof Bd(e).Element}function GF(e){return e instanceof HTMLElement||e instanceof Bd(e).HTMLElement}function f5(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Bd(e).ShadowRoot}function oee(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=YF(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function ACe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function NCe(e){return["html","body","#document"].includes(ree(e))}function YF(e){return Bd(e).getComputedStyle(e)}function MCe(e){if(ree(e)==="html")return e;const t=e.assignedSlot||e.parentNode||f5(e)&&e.host||aee(e);return f5(t)?t.host:t}function see(e){const t=MCe(e);return NCe(t)?e.ownerDocument?e.ownerDocument.body:e.body:GF(t)&&oee(t)?t:see(t)}function Nx(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=see(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=Bd(a);return i?t.concat(o,o.visualViewport||[],oee(a)?a:[],o.frameElement&&n?Nx(o.frameElement):[]):t.concat(a,Nx(a,[],n))}function ICe(e){const t=YF(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=GF(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,l=Px(n)!==i||Px(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function KF(e){return PCe(e)?e:e.contextElement}function p5(e){const t=KF(e);if(!GF(t))return Ax(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=ICe(t);let o=(i?Px(n.width):n.width)/r,l=(i?Px(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const DCe=Ax(0);function $Ce(e){const t=Bd(e);return!ACe()||!t.visualViewport?DCe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function LCe(e,t,n){return!1}function h5(e,t,n,r){t===void 0&&(t=!1);const a=e.getBoundingClientRect(),i=KF(e);let o=Ax(1);t&&(o=p5(e));const l=LCe()?$Ce(i):Ax(0);let u=(a.left+l.x)/o.x,d=(a.top+l.y)/o.y,f=a.width/o.x,g=a.height/o.y;if(i){const y=Bd(i),h=r;let v=y,E=v.frameElement;for(;E&&r&&h!==v;){const T=p5(E),C=E.getBoundingClientRect(),k=YF(E),_=C.left+(E.clientLeft+parseFloat(k.paddingLeft))*T.x,A=C.top+(E.clientTop+parseFloat(k.paddingTop))*T.y;u*=T.x,d*=T.y,f*=T.x,g*=T.y,u+=_,d+=A,v=Bd(E),E=v.frameElement}}return RCe({width:f,height:g,x:u,y:d})}function FCe(e,t){let n=null,r;const a=aee(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),i();const{left:d,top:f,width:g,height:y}=e.getBoundingClientRect();if(l||t(),!g||!y)return;const h=lk(f),v=lk(a.clientWidth-(d+g)),E=lk(a.clientHeight-(f+y)),T=lk(d),k={rootMargin:-h+"px "+-v+"px "+-E+"px "+-T+"px",threshold:OCe(0,_Ce(1,u))||1};let _=!0;function A(P){const N=P[0].intersectionRatio;if(N!==u){if(!_)return o();N?o(!1,N):r=setTimeout(()=>{o(!1,1e-7)},100)}_=!1}try{n=new IntersectionObserver(A,{...k,root:a.ownerDocument})}catch{n=new IntersectionObserver(A,k)}n.observe(e)}return o(!0),i}function jCe(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=KF(e),f=a||i?[...d?Nx(d):[],...Nx(t)]:[];f.forEach(C=>{a&&C.addEventListener("scroll",n,{passive:!0}),i&&C.addEventListener("resize",n)});const g=d&&l?FCe(d,n):null;let y=-1,h=null;o&&(h=new ResizeObserver(C=>{let[k]=C;k&&k.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(t)})),n()}),d&&!u&&h.observe(d),h.observe(t));let v,E=u?h5(e):null;u&&T();function T(){const C=h5(e);E&&(C.x!==E.x||C.y!==E.y||C.width!==E.width||C.height!==E.height)&&n(),E=C,v=requestAnimationFrame(T)}return n(),()=>{var C;f.forEach(k=>{a&&k.removeEventListener("scroll",n),i&&k.removeEventListener("resize",n)}),g==null||g(),(C=h)==null||C.disconnect(),h=null,u&&cancelAnimationFrame(v)}}var t3=R.useLayoutEffect,UCe=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Mx=function(){};function BCe(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function WCe(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a-1}function qCe(e){return A_(e)?window.innerHeight:e.clientHeight}function uee(e){return A_(e)?window.pageYOffset:e.scrollTop}function Ix(e,t){if(A_(e)){window.scrollTo(0,t);return}e.scrollTop=t}function HCe(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}function VCe(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function uk(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Mx,a=uee(e),i=t-a,o=10,l=0;function u(){l+=o;var d=VCe(l,a,i,n);Ix(e,d),ln.bottom?Ix(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):r.top-a1?n-1:0),a=1;a=v)return{placement:"bottom",maxHeight:t};if(j>=v&&!o)return i&&uk(u,z,le),{placement:"bottom",maxHeight:t};if(!o&&j>=r||o&&I>=r){i&&uk(u,z,le);var re=o?I-A:j-A;return{placement:"bottom",maxHeight:re}}if(a==="auto"||o){var ge=t,me=o?N:L;return me>=r&&(ge=Math.min(me-A-l,t)),{placement:"top",maxHeight:ge}}if(a==="bottom")return i&&Ix(u,z),{placement:"bottom",maxHeight:t};break;case"top":if(N>=v)return{placement:"top",maxHeight:t};if(L>=v&&!o)return i&&uk(u,Q,le),{placement:"top",maxHeight:t};if(!o&&L>=r||o&&N>=r){var W=t;return(!o&&L>=r||o&&N>=r)&&(W=o?N-P:L-P),i&&uk(u,Q,le),{placement:"top",maxHeight:W}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return d}function rke(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var dee=function(t){return t==="auto"?"bottom":t},ake=function(t,n){var r,a=t.placement,i=t.theme,o=i.borderRadius,l=i.spacing,u=i.colors;return Jt((r={label:"menu"},wt(r,rke(a),"100%"),wt(r,"position","absolute"),wt(r,"width","100%"),wt(r,"zIndex",1),r),n?{}:{backgroundColor:u.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},fee=R.createContext(null),ike=function(t){var n=t.children,r=t.minMenuHeight,a=t.maxMenuHeight,i=t.menuPlacement,o=t.menuPosition,l=t.menuShouldScrollIntoView,u=t.theme,d=R.useContext(fee)||{},f=d.setPortalPlacement,g=R.useRef(null),y=R.useState(a),h=mi(y,2),v=h[0],E=h[1],T=R.useState(null),C=mi(T,2),k=C[0],_=C[1],A=u.spacing.controlHeight;return t3(function(){var P=g.current;if(P){var N=o==="fixed",I=l&&!N,L=nke({maxHeight:a,menuEl:P,minHeight:r,placement:i,shouldScroll:I,isFixedPosition:N,controlHeight:A});E(L.maxHeight),_(L.placement),f==null||f(L.placement)}},[a,i,o,l,r,f,A]),n({ref:g,placerProps:Jt(Jt({},t),{},{placement:k||dee(i),maxHeight:v})})},oke=function(t){var n=t.children,r=t.innerRef,a=t.innerProps;return rn("div",vt({},Ca(t,"menu",{menu:!0}),{ref:r},a),n)},ske=oke,lke=function(t,n){var r=t.maxHeight,a=t.theme.spacing.baseUnit;return Jt({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:a,paddingTop:a})},uke=function(t){var n=t.children,r=t.innerProps,a=t.innerRef,i=t.isMulti;return rn("div",vt({},Ca(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:a},r),n)},pee=function(t,n){var r=t.theme,a=r.spacing.baseUnit,i=r.colors;return Jt({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(a*2,"px ").concat(a*3,"px")})},cke=pee,dke=pee,fke=function(t){var n=t.children,r=n===void 0?"No options":n,a=t.innerProps,i=Ru(t,eke);return rn("div",vt({},Ca(Jt(Jt({},i),{},{children:r,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),r)},pke=function(t){var n=t.children,r=n===void 0?"Loading...":n,a=t.innerProps,i=Ru(t,tke);return rn("div",vt({},Ca(Jt(Jt({},i),{},{children:r,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),r)},hke=function(t){var n=t.rect,r=t.offset,a=t.position;return{left:n.left,position:a,top:r,width:n.width,zIndex:1}},mke=function(t){var n=t.appendTo,r=t.children,a=t.controlElement,i=t.innerProps,o=t.menuPlacement,l=t.menuPosition,u=R.useRef(null),d=R.useRef(null),f=R.useState(dee(o)),g=mi(f,2),y=g[0],h=g[1],v=R.useMemo(function(){return{setPortalPlacement:h}},[]),E=R.useState(null),T=mi(E,2),C=T[0],k=T[1],_=R.useCallback(function(){if(a){var I=GCe(a),L=l==="fixed"?0:window.pageYOffset,j=I[y]+L;(j!==(C==null?void 0:C.offset)||I.left!==(C==null?void 0:C.rect.left)||I.width!==(C==null?void 0:C.rect.width))&&k({offset:j,rect:I})}},[a,l,y,C==null?void 0:C.offset,C==null?void 0:C.rect.left,C==null?void 0:C.rect.width]);t3(function(){_()},[_]);var A=R.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),a&&u.current&&(d.current=jCe(a,u.current,_,{elementResize:"ResizeObserver"in window}))},[a,_]);t3(function(){A()},[A]);var P=R.useCallback(function(I){u.current=I,A()},[A]);if(!n&&l!=="fixed"||!C)return null;var N=rn("div",vt({ref:P},Ca(Jt(Jt({},t),{},{offset:C.offset,position:l,rect:C.rect}),"menuPortal",{"menu-portal":!0}),i),r);return rn(fee.Provider,{value:v},n?Sc.createPortal(N,n):N)},gke=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},vke=function(t){var n=t.children,r=t.innerProps,a=t.isDisabled,i=t.isRtl;return rn("div",vt({},Ca(t,"container",{"--is-disabled":a,"--is-rtl":i}),r),n)},yke=function(t,n){var r=t.theme.spacing,a=t.isMulti,i=t.hasValue,o=t.selectProps.controlShouldRenderValue;return Jt({alignItems:"center",display:a&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},bke=function(t){var n=t.children,r=t.innerProps,a=t.isMulti,i=t.hasValue;return rn("div",vt({},Ca(t,"valueContainer",{"value-container":!0,"value-container--is-multi":a,"value-container--has-value":i}),r),n)},wke=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Ske=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},Ca(t,"indicatorsContainer",{indicators:!0}),r),n)},y5,Eke=["size"],Tke=["innerProps","isRtl","size"],Cke={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},hee=function(t){var n=t.size,r=Ru(t,Eke);return rn("svg",vt({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Cke},r))},XF=function(t){return rn(hee,vt({size:20},t),rn("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},mee=function(t){return rn(hee,vt({size:20},t),rn("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},gee=function(t,n){var r=t.isFocused,a=t.theme,i=a.spacing.baseUnit,o=a.colors;return Jt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?o.neutral60:o.neutral20,padding:i*2,":hover":{color:r?o.neutral80:o.neutral40}})},kke=gee,xke=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},Ca(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||rn(mee,null))},_ke=gee,Oke=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},Ca(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||rn(XF,null))},Rke=function(t,n){var r=t.isDisabled,a=t.theme,i=a.spacing.baseUnit,o=a.colors;return Jt({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?o.neutral10:o.neutral20,marginBottom:i*2,marginTop:i*2})},Pke=function(t){var n=t.innerProps;return rn("span",vt({},n,Ca(t,"indicatorSeparator",{"indicator-separator":!0})))},Ake=ECe(y5||(y5=xCe([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } -`]))),Tke=function(t,n){var r=t.isFocused,a=t.size,i=t.theme,o=i.colors,l=i.spacing.baseUnit;return Jt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:l*2})},WP=function(t){var n=t.delay,r=t.offset;return rn("span",{css:IF({animation:"".concat(Eke," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Cke=function(t){var n=t.innerProps,r=t.isRtl,a=t.size,i=a===void 0?4:a,o=Ou(t,hke);return rn("div",vt({},Ca(Jt(Jt({},o),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),rn(WP,{delay:0,offset:r}),rn(WP,{delay:160,offset:!0}),rn(WP,{delay:320,offset:!r}))},kke=function(t,n){var r=t.isDisabled,a=t.isFocused,i=t.theme,o=i.colors,l=i.borderRadius,u=i.spacing;return Jt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:a?o.primary:o.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:a?o.primary:o.neutral30}})},xke=function(t){var n=t.children,r=t.isDisabled,a=t.isFocused,i=t.innerRef,o=t.innerProps,l=t.menuIsOpen;return rn("div",vt({ref:i},Ca(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":a,"control--menu-is-open":l}),o,{"aria-disabled":r||void 0}),n)},_ke=xke,Oke=["data"],Rke=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Pke=function(t){var n=t.children,r=t.cx,a=t.getStyles,i=t.getClassNames,o=t.Heading,l=t.headingProps,u=t.innerProps,d=t.label,f=t.theme,g=t.selectProps;return rn("div",vt({},Ca(t,"group",{group:!0}),u),rn(o,vt({},l,{selectProps:g,theme:f,getStyles:a,getClassNames:i,cx:r}),d),rn("div",null,n))},Ake=function(t,n){var r=t.theme,a=r.colors,i=r.spacing;return Jt({label:"group",cursor:"default",display:"block"},n?{}:{color:a.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},Nke=function(t){var n=KZ(t);n.data;var r=Ou(n,Oke);return rn("div",vt({},Ca(t,"groupHeading",{"group-heading":!0}),r))},Mke=Pke,Ike=["innerRef","isDisabled","isHidden","inputClassName"],Dke=function(t,n){var r=t.isDisabled,a=t.value,i=t.theme,o=i.spacing,l=i.colors;return Jt(Jt({visibility:r?"hidden":"visible",transform:a?"translateZ(0)":""},$ke),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:l.neutral80})},aee={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},$ke={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Jt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},aee)},Lke=function(t){return Jt({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},aee)},Fke=function(t){var n=t.cx,r=t.value,a=KZ(t),i=a.innerRef,o=a.isDisabled,l=a.isHidden,u=a.inputClassName,d=Ou(a,Ike);return rn("div",vt({},Ca(t,"input",{"input-container":!0}),{"data-value":r||""}),rn("input",vt({className:n({input:!0},u),ref:i,style:Lke(l),disabled:o},d)))},jke=Fke,Uke=function(t,n){var r=t.theme,a=r.spacing,i=r.borderRadius,o=r.colors;return Jt({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:a.baseUnit/2})},Bke=function(t,n){var r=t.theme,a=r.borderRadius,i=r.colors,o=t.cropWithEllipsis;return Jt({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:a/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Wke=function(t,n){var r=t.theme,a=r.spacing,i=r.borderRadius,o=r.colors,l=t.isFocused;return Jt({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:l?o.dangerLight:void 0,paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},iee=function(t){var n=t.children,r=t.innerProps;return rn("div",r,n)},zke=iee,qke=iee;function Hke(e){var t=e.children,n=e.innerProps;return rn("div",vt({role:"button"},n),t||rn(FF,{size:14}))}var Vke=function(t){var n=t.children,r=t.components,a=t.data,i=t.innerProps,o=t.isDisabled,l=t.removeProps,u=t.selectProps,d=r.Container,f=r.Label,g=r.Remove;return rn(d,{data:a,innerProps:Jt(Jt({},Ca(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:u},rn(f,{data:a,innerProps:Jt({},Ca(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},n),rn(g,{data:a,innerProps:Jt(Jt({},Ca(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:u}))},Gke=Vke,Yke=function(t,n){var r=t.isDisabled,a=t.isFocused,i=t.isSelected,o=t.theme,l=o.spacing,u=o.colors;return Jt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?u.primary:a?u.primary25:"transparent",color:r?u.neutral20:i?u.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?u.primary:u.primary50}})},Kke=function(t){var n=t.children,r=t.isDisabled,a=t.isFocused,i=t.isSelected,o=t.innerRef,l=t.innerProps;return rn("div",vt({},Ca(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":a,"option--is-selected":i}),{ref:o,"aria-disabled":r},l),n)},Xke=Kke,Qke=function(t,n){var r=t.theme,a=r.spacing,i=r.colors;return Jt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},Jke=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},Ca(t,"placeholder",{placeholder:!0}),r),n)},Zke=Jke,exe=function(t,n){var r=t.isDisabled,a=t.theme,i=a.spacing,o=a.colors;return Jt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},txe=function(t){var n=t.children,r=t.isDisabled,a=t.innerProps;return rn("div",vt({},Ca(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),a),n)},nxe=txe,rxe={ClearIndicator:bke,Control:_ke,DropdownIndicator:vke,DownChevron:nee,CrossIcon:FF,Group:Mke,GroupHeading:Nke,IndicatorsContainer:fke,IndicatorSeparator:Ske,Input:jke,LoadingIndicator:Cke,Menu:JCe,MenuList:eke,MenuPortal:oke,LoadingMessage:ake,NoOptionsMessage:rke,MultiValue:Gke,MultiValueContainer:zke,MultiValueLabel:qke,MultiValueRemove:Hke,Option:Xke,Placeholder:Zke,SelectContainer:lke,SingleValue:nxe,ValueContainer:cke},axe=function(t){return Jt(Jt({},rxe),t.components)},o5=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ixe(e,t){return!!(e===t||o5(e)&&o5(t))}function oxe(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(a," is disabled. Select another option."):"option ".concat(a,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,a=t.options,i=t.label,o=i===void 0?"":i,l=t.selectValue,u=t.isDisabled,d=t.isSelected,f=t.isAppleDevice,g=function(E,T){return E&&E.length?"".concat(E.indexOf(T)+1," of ").concat(E.length):""};if(n==="value"&&l)return"value ".concat(o," focused, ").concat(g(l,r),".");if(n==="menu"&&f){var y=u?" disabled":"",h="".concat(d?" selected":"").concat(y);return"".concat(o).concat(h,", ").concat(g(a,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},dxe=function(t){var n=t.ariaSelection,r=t.focusedOption,a=t.focusedValue,i=t.focusableOptions,o=t.isFocused,l=t.selectValue,u=t.selectProps,d=t.id,f=t.isAppleDevice,g=u.ariaLiveMessages,y=u.getOptionLabel,h=u.inputValue,v=u.isMulti,E=u.isOptionDisabled,T=u.isSearchable,C=u.menuIsOpen,k=u.options,_=u.screenReaderStatus,A=u.tabSelectsValue,P=u.isLoading,N=u["aria-label"],I=u["aria-live"],L=R.useMemo(function(){return Jt(Jt({},cxe),g||{})},[g]),j=R.useMemo(function(){var me="";if(n&&L.onChange){var W=n.option,G=n.options,q=n.removedValue,ce=n.removedValues,H=n.value,Y=function(fe){return Array.isArray(fe)?null:fe},ie=q||W||Y(H),J=ie?y(ie):"",ee=G||ce||void 0,Z=ee?ee.map(y):[],ue=Jt({isDisabled:ie&&E(ie,l),label:J,labels:Z},n);me=L.onChange(ue)}return me},[n,L,E,l,y]),z=R.useMemo(function(){var me="",W=r||a,G=!!(r&&l&&l.includes(r));if(W&&L.onFocus){var q={focused:W,label:y(W),isDisabled:E(W,l),isSelected:G,options:i,context:W===r?"menu":"value",selectValue:l,isAppleDevice:f};me=L.onFocus(q)}return me},[r,a,y,E,L,i,l,f]),Q=R.useMemo(function(){var me="";if(C&&k.length&&!P&&L.onFilter){var W=_({count:i.length});me=L.onFilter({inputValue:h,resultsMessage:W})}return me},[i,h,C,L,k,_,P]),le=(n==null?void 0:n.action)==="initial-input-focus",re=R.useMemo(function(){var me="";if(L.guidance){var W=a?"value":C?"menu":"input";me=L.guidance({"aria-label":N,context:W,isDisabled:r&&E(r,l),isMulti:v,isSearchable:T,tabSelectsValue:A,isInitialFocus:le})}return me},[N,r,a,v,E,T,C,L,l,A,le]),ge=rn(R.Fragment,null,rn("span",{id:"aria-selection"},j),rn("span",{id:"aria-focused"},z),rn("span",{id:"aria-results"},Q),rn("span",{id:"aria-guidance"},re));return rn(R.Fragment,null,rn(s5,{id:d},le&&ge),rn(s5,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!le&&ge))},fxe=dxe,zL=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],pxe=new RegExp("["+zL.map(function(e){return e.letters}).join("")+"]","g"),oee={};for(var zP=0;zP-1}},vxe=["innerRef"];function yxe(e){var t=e.innerRef,n=Ou(e,vxe),r=qCe(n,"onExited","in","enter","exit","appear");return rn("input",vt({ref:t},r,{css:IF({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var bxe=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function wxe(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,a=e.onTopArrive,i=e.onTopLeave,o=R.useRef(!1),l=R.useRef(!1),u=R.useRef(0),d=R.useRef(null),f=R.useCallback(function(T,C){if(d.current!==null){var k=d.current,_=k.scrollTop,A=k.scrollHeight,P=k.clientHeight,N=d.current,I=C>0,L=A-P-_,j=!1;L>C&&o.current&&(r&&r(T),o.current=!1),I&&l.current&&(i&&i(T),l.current=!1),I&&C>L?(n&&!o.current&&n(T),N.scrollTop=A,j=!0,o.current=!0):!I&&-C>_&&(a&&!l.current&&a(T),N.scrollTop=0,j=!0,l.current=!0),j&&bxe(T)}},[n,r,a,i]),g=R.useCallback(function(T){f(T,T.deltaY)},[f]),y=R.useCallback(function(T){u.current=T.changedTouches[0].clientY},[]),h=R.useCallback(function(T){var C=u.current-T.changedTouches[0].clientY;f(T,C)},[f]),v=R.useCallback(function(T){if(T){var C=BCe?{passive:!1}:!1;T.addEventListener("wheel",g,C),T.addEventListener("touchstart",y,C),T.addEventListener("touchmove",h,C)}},[h,y,g]),E=R.useCallback(function(T){T&&(T.removeEventListener("wheel",g,!1),T.removeEventListener("touchstart",y,!1),T.removeEventListener("touchmove",h,!1))},[h,y,g]);return R.useEffect(function(){if(t){var T=d.current;return v(T),function(){E(T)}}},[t,v,E]),function(T){d.current=T}}var u5=["boxSizing","height","overflow","paddingRight","position"],c5={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function d5(e){e.cancelable&&e.preventDefault()}function f5(e){e.stopPropagation()}function p5(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function h5(){return"ontouchstart"in window||navigator.maxTouchPoints}var m5=!!(typeof window<"u"&&window.document&&window.document.createElement),S1=0,fb={capture:!1,passive:!1};function Sxe(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,a=R.useRef({}),i=R.useRef(null),o=R.useCallback(function(u){if(m5){var d=document.body,f=d&&d.style;if(r&&u5.forEach(function(v){var E=f&&f[v];a.current[v]=E}),r&&S1<1){var g=parseInt(a.current.paddingRight,10)||0,y=document.body?document.body.clientWidth:0,h=window.innerWidth-y+g||0;Object.keys(c5).forEach(function(v){var E=c5[v];f&&(f[v]=E)}),f&&(f.paddingRight="".concat(h,"px"))}d&&h5()&&(d.addEventListener("touchmove",d5,fb),u&&(u.addEventListener("touchstart",p5,fb),u.addEventListener("touchmove",f5,fb))),S1+=1}},[r]),l=R.useCallback(function(u){if(m5){var d=document.body,f=d&&d.style;S1=Math.max(S1-1,0),r&&S1<1&&u5.forEach(function(g){var y=a.current[g];f&&(f[g]=y)}),d&&h5()&&(d.removeEventListener("touchmove",d5,fb),u&&(u.removeEventListener("touchstart",p5,fb),u.removeEventListener("touchmove",f5,fb)))}},[r]);return R.useEffect(function(){if(t){var u=i.current;return o(u),function(){l(u)}}},[t,o,l]),function(u){i.current=u}}var Exe=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Txe={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Cxe(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,a=r===void 0?!0:r,i=e.onBottomArrive,o=e.onBottomLeave,l=e.onTopArrive,u=e.onTopLeave,d=wxe({isEnabled:a,onBottomArrive:i,onBottomLeave:o,onTopArrive:l,onTopLeave:u}),f=Sxe({isEnabled:n}),g=function(h){d(h),f(h)};return rn(R.Fragment,null,n&&rn("div",{onClick:Exe,css:Txe}),t(g))}var kxe={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},xxe=function(t){var n=t.name,r=t.onFocus;return rn("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:kxe,value:"",onChange:function(){}})},_xe=xxe;function jF(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Oxe(){return jF(/^iPhone/i)}function lee(){return jF(/^Mac/i)}function Rxe(){return jF(/^iPad/i)||lee()&&navigator.maxTouchPoints>1}function Pxe(){return Oxe()||Rxe()}function Axe(){return lee()||Pxe()}var Nxe=function(t){return t.label},Mxe=function(t){return t.label},Ixe=function(t){return t.value},Dxe=function(t){return!!t.isDisabled},$xe={clearIndicator:yke,container:ske,control:kke,dropdownIndicator:gke,group:Rke,groupHeading:Ake,indicatorsContainer:dke,indicatorSeparator:wke,input:Dke,loadingIndicator:Tke,loadingMessage:nke,menu:KCe,menuList:ZCe,menuPortal:ike,multiValue:Uke,multiValueLabel:Bke,multiValueRemove:Wke,noOptionsMessage:tke,option:Yke,placeholder:Qke,singleValue:exe,valueContainer:uke},Lxe={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Fxe=4,uee=4,jxe=38,Uxe=uee*2,Bxe={baseUnit:uee,controlHeight:jxe,menuGutter:Uxe},VP={borderRadius:Fxe,colors:Lxe,spacing:Bxe},Wxe={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:a5(),captureMenuScroll:!a5(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:gxe(),formatGroupLabel:Nxe,getOptionLabel:Mxe,getOptionValue:Ixe,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Dxe,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!jCe(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function g5(e,t,n,r){var a=fee(e,t,n),i=pee(e,t,n),o=dee(e,t),l=Cx(e,t);return{type:"option",data:t,isDisabled:a,isSelected:i,label:o,value:l,index:r}}function Ik(e,t){return e.options.map(function(n,r){if("options"in n){var a=n.options.map(function(o,l){return g5(e,o,t,l)}).filter(function(o){return y5(e,o)});return a.length>0?{type:"group",data:n,options:a,index:r}:void 0}var i=g5(e,n,t,r);return y5(e,i)?i:void 0}).filter(WCe)}function cee(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,t0(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function v5(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,t0(r.options.map(function(a){return{data:a.data,id:"".concat(t,"-").concat(r.index,"-").concat(a.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function zxe(e,t){return cee(Ik(e,t))}function y5(e,t){var n=e.inputValue,r=n===void 0?"":n,a=t.data,i=t.isSelected,o=t.label,l=t.value;return(!mee(e)||!i)&&hee(e,{label:o,value:l,data:a},r)}function qxe(e,t){var n=e.focusedValue,r=e.selectValue,a=r.indexOf(n);if(a>-1){var i=t.indexOf(n);if(i>-1)return n;if(a-1?n:t[0]}var GP=function(t,n){var r,a=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return a||null},dee=function(t,n){return t.getOptionLabel(n)},Cx=function(t,n){return t.getOptionValue(n)};function fee(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function pee(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Cx(e,t);return n.some(function(a){return Cx(e,a)===r})}function hee(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var mee=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},Vxe=1,gee=(function(e){tr(n,e);var t=nr(n);function n(r){var a;if(Xn(this,n),a=t.call(this,r),a.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},a.blockOptionHover=!1,a.isComposing=!1,a.commonProps=void 0,a.initialTouchX=0,a.initialTouchY=0,a.openAfterFocus=!1,a.scrollToFocusedOptionOnUpdate=!1,a.userIsDragging=void 0,a.isAppleDevice=Axe(),a.controlRef=null,a.getControlRef=function(u){a.controlRef=u},a.focusedOptionRef=null,a.getFocusedOptionRef=function(u){a.focusedOptionRef=u},a.menuListRef=null,a.getMenuListRef=function(u){a.menuListRef=u},a.inputRef=null,a.getInputRef=function(u){a.inputRef=u},a.focus=a.focusInput,a.blur=a.blurInput,a.onChange=function(u,d){var f=a.props,g=f.onChange,y=f.name;d.name=y,a.ariaOnChange(u,d),g(u,d)},a.setValue=function(u,d,f){var g=a.props,y=g.closeMenuOnSelect,h=g.isMulti,v=g.inputValue;a.onInputChange("",{action:"set-value",prevInputValue:v}),y&&(a.setState({inputIsHiddenAfterUpdate:!h}),a.onMenuClose()),a.setState({clearFocusValueOnUpdate:!0}),a.onChange(u,{action:d,option:f})},a.selectOption=function(u){var d=a.props,f=d.blurInputOnSelect,g=d.isMulti,y=d.name,h=a.state.selectValue,v=g&&a.isOptionSelected(u,h),E=a.isOptionDisabled(u,h);if(v){var T=a.getOptionValue(u);a.setValue(h.filter(function(C){return a.getOptionValue(C)!==T}),"deselect-option",u)}else if(!E)g?a.setValue([].concat(t0(h),[u]),"select-option",u):a.setValue(u,"select-option");else{a.ariaOnChange(u,{action:"select-option",option:u,name:y});return}f&&a.blurInput()},a.removeValue=function(u){var d=a.props.isMulti,f=a.state.selectValue,g=a.getOptionValue(u),y=f.filter(function(v){return a.getOptionValue(v)!==g}),h=ek(d,y,y[0]||null);a.onChange(h,{action:"remove-value",removedValue:u}),a.focusInput()},a.clearValue=function(){var u=a.state.selectValue;a.onChange(ek(a.props.isMulti,[],null),{action:"clear",removedValues:u})},a.popValue=function(){var u=a.props.isMulti,d=a.state.selectValue,f=d[d.length-1],g=d.slice(0,d.length-1),y=ek(u,g,g[0]||null);f&&a.onChange(y,{action:"pop-value",removedValue:f})},a.getFocusedOptionId=function(u){return GP(a.state.focusableOptionsWithIds,u)},a.getFocusableOptionsWithIds=function(){return v5(Ik(a.props,a.state.selectValue),a.getElementId("option"))},a.getValue=function(){return a.state.selectValue},a.cx=function(){for(var u=arguments.length,d=new Array(u),f=0;fh||y>h}},a.onTouchEnd=function(u){a.userIsDragging||(a.controlRef&&!a.controlRef.contains(u.target)&&a.menuListRef&&!a.menuListRef.contains(u.target)&&a.blurInput(),a.initialTouchX=0,a.initialTouchY=0)},a.onControlTouchEnd=function(u){a.userIsDragging||a.onControlMouseDown(u)},a.onClearIndicatorTouchEnd=function(u){a.userIsDragging||a.onClearIndicatorMouseDown(u)},a.onDropdownIndicatorTouchEnd=function(u){a.userIsDragging||a.onDropdownIndicatorMouseDown(u)},a.handleInputChange=function(u){var d=a.props.inputValue,f=u.currentTarget.value;a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange(f,{action:"input-change",prevInputValue:d}),a.props.menuIsOpen||a.onMenuOpen()},a.onInputFocus=function(u){a.props.onFocus&&a.props.onFocus(u),a.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(a.openAfterFocus||a.props.openMenuOnFocus)&&a.openMenu("first"),a.openAfterFocus=!1},a.onInputBlur=function(u){var d=a.props.inputValue;if(a.menuListRef&&a.menuListRef.contains(document.activeElement)){a.inputRef.focus();return}a.props.onBlur&&a.props.onBlur(u),a.onInputChange("",{action:"input-blur",prevInputValue:d}),a.onMenuClose(),a.setState({focusedValue:null,isFocused:!1})},a.onOptionHover=function(u){if(!(a.blockOptionHover||a.state.focusedOption===u)){var d=a.getFocusableOptions(),f=d.indexOf(u);a.setState({focusedOption:u,focusedOptionId:f>-1?a.getFocusedOptionId(u):null})}},a.shouldHideSelectedOptions=function(){return mee(a.props)},a.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),a.focus()},a.onKeyDown=function(u){var d=a.props,f=d.isMulti,g=d.backspaceRemovesValue,y=d.escapeClearsValue,h=d.inputValue,v=d.isClearable,E=d.isDisabled,T=d.menuIsOpen,C=d.onKeyDown,k=d.tabSelectsValue,_=d.openMenuOnFocus,A=a.state,P=A.focusedOption,N=A.focusedValue,I=A.selectValue;if(!E&&!(typeof C=="function"&&(C(u),u.defaultPrevented))){switch(a.blockOptionHover=!0,u.key){case"ArrowLeft":if(!f||h)return;a.focusValue("previous");break;case"ArrowRight":if(!f||h)return;a.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(N)a.removeValue(N);else{if(!g)return;f?a.popValue():v&&a.clearValue()}break;case"Tab":if(a.isComposing||u.shiftKey||!T||!k||!P||_&&a.isOptionSelected(P,I))return;a.selectOption(P);break;case"Enter":if(u.keyCode===229)break;if(T){if(!P||a.isComposing)return;a.selectOption(P);break}return;case"Escape":T?(a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange("",{action:"menu-close",prevInputValue:h}),a.onMenuClose()):v&&y&&a.clearValue();break;case" ":if(h)return;if(!T){a.openMenu("first");break}if(!P)return;a.selectOption(P);break;case"ArrowUp":T?a.focusOption("up"):a.openMenu("last");break;case"ArrowDown":T?a.focusOption("down"):a.openMenu("first");break;case"PageUp":if(!T)return;a.focusOption("pageup");break;case"PageDown":if(!T)return;a.focusOption("pagedown");break;case"Home":if(!T)return;a.focusOption("first");break;case"End":if(!T)return;a.focusOption("last");break;default:return}u.preventDefault()}},a.state.instancePrefix="react-select-"+(a.props.instanceId||++Vxe),a.state.selectValue=n5(r.value),r.menuIsOpen&&a.state.selectValue.length){var i=a.getFocusableOptionsWithIds(),o=a.buildFocusableOptions(),l=o.indexOf(a.state.selectValue[0]);a.state.focusableOptionsWithIds=i,a.state.focusedOption=o[l],a.state.focusedOptionId=GP(i,o[l])}return a}return Qn(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&r5(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isDisabled,l=i.menuIsOpen,u=this.state.isFocused;(u&&!o&&a.isDisabled||u&&l&&!a.menuIsOpen)&&this.focusInput(),u&&o&&!a.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!o&&a.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(r5(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(a,i){this.props.onInputChange(a,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(a){var i=this,o=this.state,l=o.selectValue,u=o.isFocused,d=this.buildFocusableOptions(),f=a==="first"?0:d.length-1;if(!this.props.isMulti){var g=d.indexOf(l[0]);g>-1&&(f=g)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[f],focusedOptionId:this.getFocusedOptionId(d[f])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(a){var i=this.state,o=i.selectValue,l=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=o.indexOf(l);l||(u=-1);var d=o.length-1,f=-1;if(o.length){switch(a){case"previous":u===0?f=0:u===-1?f=d:f=u-1;break;case"next":u>-1&&u0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,o=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var u=0,d=l.indexOf(o);o||(d=-1),a==="up"?u=d>0?d-1:l.length-1:a==="down"?u=(d+1)%l.length:a==="pageup"?(u=d-i,u<0&&(u=0)):a==="pagedown"?(u=d+i,u>l.length-1&&(u=l.length-1)):a==="last"&&(u=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[u],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[u])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(VP):Jt(Jt({},VP),this.props.theme):VP})},{key:"getCommonProps",value:function(){var a=this.clearValue,i=this.cx,o=this.getStyles,l=this.getClassNames,u=this.getValue,d=this.selectOption,f=this.setValue,g=this.props,y=g.isMulti,h=g.isRtl,v=g.options,E=this.hasValue();return{clearValue:a,cx:i,getStyles:o,getClassNames:l,getValue:u,hasValue:E,isMulti:y,isRtl:h,options:v,selectOption:d,selectProps:g,setValue:f,theme:this.getTheme()}}},{key:"hasValue",value:function(){var a=this.state.selectValue;return a.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var a=this.props,i=a.isClearable,o=a.isMulti;return i===void 0?o:i}},{key:"isOptionDisabled",value:function(a,i){return fee(this.props,a,i)}},{key:"isOptionSelected",value:function(a,i){return pee(this.props,a,i)}},{key:"filterOption",value:function(a,i){return hee(this.props,a,i)}},{key:"formatOptionLabel",value:function(a,i){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(a,{context:i,inputValue:o,selectValue:l})}else return this.getOptionLabel(a)}},{key:"formatGroupLabel",value:function(a){return this.props.formatGroupLabel(a)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var a=this.props,i=a.isDisabled,o=a.isSearchable,l=a.inputId,u=a.inputValue,d=a.tabIndex,f=a.form,g=a.menuIsOpen,y=a.required,h=this.getComponents(),v=h.Input,E=this.state,T=E.inputIsHidden,C=E.ariaSelection,k=this.commonProps,_=l||this.getElementId("input"),A=Jt(Jt(Jt({"aria-autocomplete":"list","aria-expanded":g,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":y,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},g&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(C==null?void 0:C.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?R.createElement(v,vt({},k,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:_,innerRef:this.getInputRef,isDisabled:i,isHidden:T,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:f,type:"text",value:u},A)):R.createElement(yxe,vt({id:_,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ex,onFocus:this.onInputFocus,disabled:i,tabIndex:d,inputMode:"none",form:f,value:""},A))})},{key:"renderPlaceholderOrValue",value:function(){var a=this,i=this.getComponents(),o=i.MultiValue,l=i.MultiValueContainer,u=i.MultiValueLabel,d=i.MultiValueRemove,f=i.SingleValue,g=i.Placeholder,y=this.commonProps,h=this.props,v=h.controlShouldRenderValue,E=h.isDisabled,T=h.isMulti,C=h.inputValue,k=h.placeholder,_=this.state,A=_.selectValue,P=_.focusedValue,N=_.isFocused;if(!this.hasValue()||!v)return C?null:R.createElement(g,vt({},y,{key:"placeholder",isDisabled:E,isFocused:N,innerProps:{id:this.getElementId("placeholder")}}),k);if(T)return A.map(function(L,j){var z=L===P,Q="".concat(a.getOptionLabel(L),"-").concat(a.getOptionValue(L));return R.createElement(o,vt({},y,{components:{Container:l,Label:u,Remove:d},isFocused:z,isDisabled:E,key:Q,index:j,removeProps:{onClick:function(){return a.removeValue(L)},onTouchEnd:function(){return a.removeValue(L)},onMouseDown:function(re){re.preventDefault()}},data:L}),a.formatOptionLabel(L,"value"))});if(C)return null;var I=A[0];return R.createElement(f,vt({},y,{data:I,isDisabled:E}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var a=this.getComponents(),i=a.ClearIndicator,o=this.commonProps,l=this.props,u=l.isDisabled,d=l.isLoading,f=this.state.isFocused;if(!this.isClearable()||!i||u||!this.hasValue()||d)return null;var g={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(i,vt({},o,{innerProps:g,isFocused:f}))}},{key:"renderLoadingIndicator",value:function(){var a=this.getComponents(),i=a.LoadingIndicator,o=this.commonProps,l=this.props,u=l.isDisabled,d=l.isLoading,f=this.state.isFocused;if(!i||!d)return null;var g={"aria-hidden":"true"};return R.createElement(i,vt({},o,{innerProps:g,isDisabled:u,isFocused:f}))}},{key:"renderIndicatorSeparator",value:function(){var a=this.getComponents(),i=a.DropdownIndicator,o=a.IndicatorSeparator;if(!i||!o)return null;var l=this.commonProps,u=this.props.isDisabled,d=this.state.isFocused;return R.createElement(o,vt({},l,{isDisabled:u,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var a=this.getComponents(),i=a.DropdownIndicator;if(!i)return null;var o=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(i,vt({},o,{innerProps:d,isDisabled:l,isFocused:u}))}},{key:"renderMenu",value:function(){var a=this,i=this.getComponents(),o=i.Group,l=i.GroupHeading,u=i.Menu,d=i.MenuList,f=i.MenuPortal,g=i.LoadingMessage,y=i.NoOptionsMessage,h=i.Option,v=this.commonProps,E=this.state.focusedOption,T=this.props,C=T.captureMenuScroll,k=T.inputValue,_=T.isLoading,A=T.loadingMessage,P=T.minMenuHeight,N=T.maxMenuHeight,I=T.menuIsOpen,L=T.menuPlacement,j=T.menuPosition,z=T.menuPortalTarget,Q=T.menuShouldBlockScroll,le=T.menuShouldScrollIntoView,re=T.noOptionsMessage,ge=T.onMenuScrollToTop,me=T.onMenuScrollToBottom;if(!I)return null;var W=function(J,ee){var Z=J.type,ue=J.data,ke=J.isDisabled,fe=J.isSelected,xe=J.label,Ie=J.value,qe=E===ue,tt=ke?void 0:function(){return a.onOptionHover(ue)},Ge=ke?void 0:function(){return a.selectOption(ue)},at="".concat(a.getElementId("option"),"-").concat(ee),Et={id:at,onClick:Ge,onMouseMove:tt,onMouseOver:tt,tabIndex:-1,role:"option","aria-selected":a.isAppleDevice?void 0:fe};return R.createElement(h,vt({},v,{innerProps:Et,data:ue,isDisabled:ke,isSelected:fe,key:at,label:xe,type:Z,value:Ie,isFocused:qe,innerRef:qe?a.getFocusedOptionRef:void 0}),a.formatOptionLabel(J.data,"menu"))},G;if(this.hasOptions())G=this.getCategorizedOptions().map(function(ie){if(ie.type==="group"){var J=ie.data,ee=ie.options,Z=ie.index,ue="".concat(a.getElementId("group"),"-").concat(Z),ke="".concat(ue,"-heading");return R.createElement(o,vt({},v,{key:ue,data:J,options:ee,Heading:l,headingProps:{id:ke,data:ie.data},label:a.formatGroupLabel(ie.data)}),ie.options.map(function(fe){return W(fe,"".concat(Z,"-").concat(fe.index))}))}else if(ie.type==="option")return W(ie,"".concat(ie.index))});else if(_){var q=A({inputValue:k});if(q===null)return null;G=R.createElement(g,v,q)}else{var ce=re({inputValue:k});if(ce===null)return null;G=R.createElement(y,v,ce)}var H={minMenuHeight:P,maxMenuHeight:N,menuPlacement:L,menuPosition:j,menuShouldScrollIntoView:le},Y=R.createElement(XCe,vt({},v,H),function(ie){var J=ie.ref,ee=ie.placerProps,Z=ee.placement,ue=ee.maxHeight;return R.createElement(u,vt({},v,H,{innerRef:J,innerProps:{onMouseDown:a.onMenuMouseDown,onMouseMove:a.onMenuMouseMove},isLoading:_,placement:Z}),R.createElement(Cxe,{captureEnabled:C,onTopArrive:ge,onBottomArrive:me,lockEnabled:Q},function(ke){return R.createElement(d,vt({},v,{innerRef:function(xe){a.getMenuListRef(xe),ke(xe)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:a.getElementId("listbox")},isLoading:_,maxHeight:ue,focusedOption:E}),G)}))});return z||j==="fixed"?R.createElement(f,vt({},v,{appendTo:z,controlElement:this.controlRef,menuPlacement:L,menuPosition:j}),Y):Y}},{key:"renderFormField",value:function(){var a=this,i=this.props,o=i.delimiter,l=i.isDisabled,u=i.isMulti,d=i.name,f=i.required,g=this.state.selectValue;if(f&&!this.hasValue()&&!l)return R.createElement(_xe,{name:d,onFocus:this.onValueInputFocus});if(!(!d||l))if(u)if(o){var y=g.map(function(E){return a.getOptionValue(E)}).join(o);return R.createElement("input",{name:d,type:"hidden",value:y})}else{var h=g.length>0?g.map(function(E,T){return R.createElement("input",{key:"i-".concat(T),name:d,type:"hidden",value:a.getOptionValue(E)})}):R.createElement("input",{name:d,type:"hidden",value:""});return R.createElement("div",null,h)}else{var v=g[0]?this.getOptionValue(g[0]):"";return R.createElement("input",{name:d,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var a=this.commonProps,i=this.state,o=i.ariaSelection,l=i.focusedOption,u=i.focusedValue,d=i.isFocused,f=i.selectValue,g=this.getFocusableOptions();return R.createElement(fxe,vt({},a,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:l,focusedValue:u,isFocused:d,selectValue:f,focusableOptions:g,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var a=this.getComponents(),i=a.Control,o=a.IndicatorsContainer,l=a.SelectContainer,u=a.ValueContainer,d=this.props,f=d.className,g=d.id,y=d.isDisabled,h=d.menuIsOpen,v=this.state.isFocused,E=this.commonProps=this.getCommonProps();return R.createElement(l,vt({},E,{className:f,innerProps:{id:g,onKeyDown:this.onKeyDown},isDisabled:y,isFocused:v}),this.renderLiveRegion(),R.createElement(i,vt({},E,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:y,isFocused:v,menuIsOpen:h}),R.createElement(u,vt({},E,{isDisabled:y}),this.renderPlaceholderOrValue(),this.renderInput()),R.createElement(o,vt({},E,{isDisabled:y}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(a,i){var o=i.prevProps,l=i.clearFocusValueOnUpdate,u=i.inputIsHiddenAfterUpdate,d=i.ariaSelection,f=i.isFocused,g=i.prevWasFocused,y=i.instancePrefix,h=a.options,v=a.value,E=a.menuIsOpen,T=a.inputValue,C=a.isMulti,k=n5(v),_={};if(o&&(v!==o.value||h!==o.options||E!==o.menuIsOpen||T!==o.inputValue)){var A=E?zxe(a,k):[],P=E?v5(Ik(a,k),"".concat(y,"-option")):[],N=l?qxe(i,k):null,I=Hxe(i,A),L=GP(P,I);_={selectValue:k,focusedOption:I,focusedOptionId:L,focusableOptionsWithIds:P,focusedValue:N,clearFocusValueOnUpdate:!1}}var j=u!=null&&a!==o?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},z=d,Q=f&&g;return f&&!Q&&(z={value:ek(C,k,k[0]||null),options:k,action:"initial-input-focus"},Q=!g),(d==null?void 0:d.action)==="initial-input-focus"&&(z=null),Jt(Jt(Jt({},_),j),{},{prevProps:a,ariaSelection:z,prevWasFocused:Q})}}]),n})(R.Component);gee.defaultProps=Wxe;var Gxe=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Yxe(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,a=r===void 0?!1:r,i=e.defaultValue,o=i===void 0?null:i,l=e.inputValue,u=e.menuIsOpen,d=e.onChange,f=e.onInputChange,g=e.onMenuClose,y=e.onMenuOpen,h=e.value,v=Ou(e,Gxe),E=R.useState(l!==void 0?l:n),T=mi(E,2),C=T[0],k=T[1],_=R.useState(u!==void 0?u:a),A=mi(_,2),P=A[0],N=A[1],I=R.useState(h!==void 0?h:o),L=mi(I,2),j=L[0],z=L[1],Q=R.useCallback(function(q,ce){typeof d=="function"&&d(q,ce),z(q)},[d]),le=R.useCallback(function(q,ce){var H;typeof f=="function"&&(H=f(q,ce)),k(H!==void 0?H:q)},[f]),re=R.useCallback(function(){typeof y=="function"&&y(),N(!0)},[y]),ge=R.useCallback(function(){typeof g=="function"&&g(),N(!1)},[g]),me=l!==void 0?l:C,W=u!==void 0?u:P,G=h!==void 0?h:j;return Jt(Jt({},v),{},{inputValue:me,menuIsOpen:W,onChange:Q,onInputChange:le,onMenuClose:ge,onMenuOpen:re,value:G})}var Kxe=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function Xxe(e){var t=e.defaultOptions,n=t===void 0?!1:t,r=e.cacheOptions,a=r===void 0?!1:r,i=e.loadOptions;e.options;var o=e.isLoading,l=o===void 0?!1:o,u=e.onInputChange,d=e.filterOption,f=d===void 0?null:d,g=Ou(e,Kxe),y=g.inputValue,h=R.useRef(void 0),v=R.useRef(!1),E=R.useState(Array.isArray(n)?n:void 0),T=mi(E,2),C=T[0],k=T[1],_=R.useState(typeof y<"u"?y:""),A=mi(_,2),P=A[0],N=A[1],I=R.useState(n===!0),L=mi(I,2),j=L[0],z=L[1],Q=R.useState(void 0),le=mi(Q,2),re=le[0],ge=le[1],me=R.useState([]),W=mi(me,2),G=W[0],q=W[1],ce=R.useState(!1),H=mi(ce,2),Y=H[0],ie=H[1],J=R.useState({}),ee=mi(J,2),Z=ee[0],ue=ee[1],ke=R.useState(void 0),fe=mi(ke,2),xe=fe[0],Ie=fe[1],qe=R.useState(void 0),tt=mi(qe,2),Ge=tt[0],at=tt[1];a!==Ge&&(ue({}),at(a)),n!==xe&&(k(Array.isArray(n)?n:void 0),Ie(n)),R.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var Et=R.useCallback(function(Rt,cn){if(!i)return cn();var qt=i(Rt,cn);qt&&typeof qt.then=="function"&&qt.then(cn,function(){return cn()})},[i]);R.useEffect(function(){n===!0&&Et(P,function(Rt){v.current&&(k(Rt||[]),z(!!h.current))})},[]);var kt=R.useCallback(function(Rt,cn){var qt=ICe(Rt,cn,u);if(!qt){h.current=void 0,N(""),ge(""),q([]),z(!1),ie(!1);return}if(a&&Z[qt])N(qt),ge(qt),q(Z[qt]),z(!1),ie(!1);else{var Wt=h.current={};N(qt),z(!0),ie(!re),Et(qt,function(Oe){v&&Wt===h.current&&(h.current=void 0,z(!1),ge(qt),q(Oe||[]),ie(!1),ue(Oe?Jt(Jt({},Z),{},wt({},qt,Oe)):Z))})}},[a,Et,re,Z,u]),xt=Y?[]:P&&re?G:C||[];return Jt(Jt({},g),{},{options:xt,isLoading:j||l,onInputChange:kt,filterOption:f})}var Qxe=R.forwardRef(function(e,t){var n=Xxe(e),r=Yxe(n);return R.createElement(gee,vt({ref:t},r))}),Jxe=Qxe;function Zxe(e,t){return t?t(e):{name:{operation:"contains",value:e}}}function UF(e){return w.jsx(ca,{...e,multiple:!0})}function ca(e){var y,h,v;const t=At(),n=js();let[r,a]=R.useState("");if(!e.querySource)return w.jsx("div",{children:"No query source to render"});const{query:i,keyExtractor:o}=e.querySource({queryClient:n,query:{itemsPerPage:20,jsonQuery:Zxe(r,e.jsonQuery),withPreloads:e.withPreloads},queryOptions:{refetchOnWindowFocus:!1}}),l=e.keyExtractor||o||(E=>JSON.stringify(E)),u=(h=(y=i==null?void 0:i.data)==null?void 0:y.data)==null?void 0:h.items,d=E=>{var T;if((T=e==null?void 0:e.formEffect)!=null&&T.form){const{formEffect:C}=e,k={...C.form.values};if(C.beforeSet&&(E=C.beforeSet(E)),Ea.set(k,C.field,E),Ea.isObject(E)&&E.uniqueId&&C.skipFirebackMetaData!==!0&&Ea.set(k,C.field+"Id",E.uniqueId),Ea.isArray(E)&&C.skipFirebackMetaData!==!0){const _=C.field+"ListId";Ea.set(k,_,(E||[]).map(A=>A.uniqueId))}C==null||C.form.setValues(k)}e.onChange&&typeof e.onChange=="function"&&e.onChange(E)};let f=e.value;if(f===void 0&&((v=e.formEffect)!=null&&v.form)){const E=Ea.get(e.formEffect.form.values,e.formEffect.field);E!==void 0&&(f=E)}typeof f!="object"&&l&&f!==void 0&&(f=u.find(E=>l(E)===f));const g=E=>new Promise(T=>{setTimeout(()=>{T(u)},100)});return w.jsxs(ef,{...e,children:[e.children,e.convertToNative?w.jsxs("select",{value:f,multiple:e.multiple,onChange:E=>{const T=u==null?void 0:u.find(C=>C.uniqueId===E.target.value);d(T)},className:ia("form-select",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),disabled:e.disabled,"aria-label":"Default select example",children:[w.jsx("option",{value:"",children:t.selectPlaceholder},void 0),u==null?void 0:u.filter(Boolean).map(E=>{const T=l(E);return w.jsx("option",{value:T,children:e.fnLabelFormat(E)},T)})]}):w.jsx(w.Fragment,{children:w.jsx(Jxe,{value:f,onChange:E=>{d(E)},isMulti:e.multiple,classNames:{container(E){return ia(e.errorMessage&&" form-control form-control-no-padding is-invalid",e.validMessage&&"is-valid")},control(E){return ia("form-control form-control-no-padding")},menu(E){return"react-select-menu-area"}},isSearchable:!0,defaultOptions:u,placeholder:t.searchplaceholder,noOptionsMessage:()=>t.noOptions,getOptionValue:l,loadOptions:g,formatOptionLabel:e.fnLabelFormat,onInputChange:a})})]})}const e_e=({form:e,isEditing:t})=>{const{options:n}=R.useContext(nt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(kE);return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.name,onChange:u=>i(vi.Fields.name,u,!1),errorMessage:o.name,label:l.capabilities.name,hint:l.capabilities.nameHint}),w.jsx(In,{value:r.description,onChange:u=>i(vi.Fields.description,u,!1),errorMessage:o.description,label:l.capabilities.description,hint:l.capabilities.descriptionHint})]})};function vee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/capability/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*fireback.CapabilityEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function t_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/capability".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*fireback.CapabilityEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function n_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/capability".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*fireback.CapabilityEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const b5=({data:e})=>{const t=Kt(kE),{router:n,uniqueId:r,queryClient:a,locale:i}=Dr({data:e}),o=vee({query:{uniqueId:r}}),l=t_e({queryClient:a}),u=n_e({queryClient:a});return w.jsx(Uo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(vi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return vi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:e_e,onEditTitle:t.capabilities.editCapability,onCreateTitle:t.capabilities.newCapability,data:e})},ao=({children:e,getSingleHook:t,editEntityHandler:n,noBack:r,disableOnGetFailed:a})=>{var l;const{router:i,locale:o}=Dr({});return yhe(n?()=>n({locale:o,router:i}):void 0,Ir.EditEntity),xQ(r!==!0?()=>i.goBack():null,Ir.CommonBack),w.jsxs(w.Fragment,{children:[w.jsx(Al,{query:t.query}),a===!0&&((l=t==null?void 0:t.query)!=null&&l.isError)?null:w.jsx(w.Fragment,{children:e})]})};function io({entity:e,fields:t,title:n,description:r}){var i;const a=At();return w.jsx("div",{className:"mt-4",children:w.jsxs("div",{className:"general-entity-view ",children:[n?w.jsx("h1",{children:n}):null,r?w.jsx("p",{children:r}):null,w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:a.table.info}),w.jsx("div",{className:"field-value",children:a.table.value})]}),(e==null?void 0:e.uniqueId)&&w.jsxs("div",{className:"entity-view-row entity-view-body",children:[w.jsx("div",{className:"field-info",children:a.table.uniqueId}),w.jsx("div",{className:"field-value",children:e.uniqueId})]}),(i=t||[])==null?void 0:i.map((o,l)=>{var d;let u=o.elem===void 0?"-":o.elem;return o.elem===!0&&(u=a.common.yes),o.elem===!1&&(u=a.common.no),o.elem===null&&(u=w.jsx("i",{children:w.jsx("b",{children:a.common.isNUll})})),w.jsxs("div",{className:"entity-view-row entity-view-body",children:[w.jsx("div",{className:"field-info",children:o.label}),w.jsxs("div",{className:"field-value","data-test-id":((d=o.label)==null?void 0:d.toString())||"",children:[u," ",w.jsx(FJ,{value:u})]})]},l)}),(e==null?void 0:e.createdFormatted)&&w.jsxs("div",{className:"entity-view-row entity-view-body",children:[w.jsx("div",{className:"field-info",children:a.table.created}),w.jsx("div",{className:"field-value",children:e.createdFormatted})]})]})})}const r_e=()=>{var a;const{uniqueId:e}=Dr({}),t=vee({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt(kE);return w.jsx(w.Fragment,{children:w.jsx(ao,{editEntityHandler:({locale:i,router:o})=>{o.push(vi.Navigation.edit(e))},getSingleHook:t,children:w.jsx(io,{entity:n,fields:[{elem:n==null?void 0:n.name,label:r.capabilities.name},{elem:n==null?void 0:n.description,label:r.capabilities.description}]})})})};function a_e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(b5,{}),path:vi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(r_e,{}),path:vi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(b5,{}),path:vi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(E0e,{}),path:vi.Navigation.Rquery})]})}function i_e(e){const t=R.useContext(o_e);R.useEffect(()=>{const n=t.listenFiles(e);return()=>t.removeSubscription(n)},[])}const o_e=ze.createContext({listenFiles(){return""},removeSubscription(){},refs:[]});function yee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/files".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.FileEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}yee.UKEY="*abac.FileEntity";const s_e=e=>[{name:Od.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:Od.Fields.name,title:e.drive.title,width:200},{name:Od.Fields.size,title:e.drive.size,width:100},{name:Od.Fields.virtualPath,title:e.drive.virtualPath,width:100},{name:Od.Fields.type,title:e.drive.type,width:100}],l_e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{columns:s_e(e),queryHook:yee,uniqueIdHrefHandler:t=>Od.Navigation.single(t)})})};function u_e(e,t){const n=[];let r=!1;for(let a of e)a.uploadId===t.uploadId?(r=!0,n.push(t)):n.push(a);return r===!1&&n.push(t),n}function bee(){const{session:e,selectedUrw:t,activeUploads:n,setActiveUploads:r}=R.useContext(nt),a=(l,u)=>o([new File([l],u)]),i=(l,u=!1)=>new Promise((d,f)=>{const g=new Gpe(l,{endpoint:kr.REMOTE_SERVICE+"tus",onBeforeRequest(y){y.setHeader("authorization",e.token),y.setHeader("workspace-id",t==null?void 0:t.workspaceId)},headers:{},metadata:{filename:l.name,path:"/database/users",filetype:l.type},onSuccess(){var h;const y=(h=g.url)==null?void 0:h.match(/([a-z0-9]){10,}/gi);d(`${y}`)},onError(y){f(y)},onProgress(y,h){var E,T;const v=(T=(E=g.url)==null?void 0:E.match(/([a-z0-9]){10,}/gi))==null?void 0:T.toString();if(v){const C={uploadId:v,bytesSent:y,filename:l.name,bytesTotal:h};u!==!0&&r(k=>u_e(k,C))}}});g.start()}),o=(l,u=!1)=>l.map(d=>i(d));return{upload:o,activeUploads:n,uploadBlob:a,uploadSingle:i}}const w5=()=>{const e=At(),{upload:t}=bee(),n=js(),r=i=>{Promise.all(t(i)).then(o=>{n.invalidateQueries("*drive.FileEntity")}).catch(o=>{alert(o)})};i_e({label:"Add files or documents to drive",extentions:["*"],onCaptureFile(i){r(i)}});const a=()=>{var i=document.createElement("input");i.type="file",i.onchange=o=>{r(Array.from(o.target.files))},i.click()};return w.jsx(Fo,{pageTitle:e.drive.driveTitle,newEntityHandler:()=>{a()},children:w.jsx(l_e,{})})};function c_e({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/file/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.FileEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}const d_e=()=>{var o;const t=xr().query.uniqueId,n=c_e({query:{uniqueId:t}});let r=(o=n.query.data)==null?void 0:o.data;hh((r==null?void 0:r.name)||"");const a=At(),{directPath:i}=MQ();return w.jsx(w.Fragment,{children:w.jsx(ao,{getSingleHook:n,children:w.jsx(io,{entity:r,fields:[{label:a.drive.name,elem:r==null?void 0:r.name},{label:a.drive.size,elem:r==null?void 0:r.size},{label:a.drive.type,elem:r==null?void 0:r.type},{label:a.drive.virtualPath,elem:r==null?void 0:r.virtualPath},{label:a.drive.viewPath,elem:w.jsx("pre",{children:i(r)})}]})})})};function f_e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{path:"drive",element:w.jsx(w5,{})}),w.jsx(mt,{path:"drives",element:w.jsx(w5,{})}),w.jsx(mt,{path:"file/:uniqueId",element:w.jsx(d_e,{})})]})}function wee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/email-provider/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.EmailProviderEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function p_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/email-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.EmailProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function h_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/email-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.EmailProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function m_e(e,t){const n=Ea.flatMapDeep(t,(r,a,i)=>{let o=[],l=a;if(r&&typeof r=="object"&&!r.value){const u=Object.keys(r);if(u.length)for(let d of u)o.push({name:`${l}.${d}`,filter:r[d]})}else o.push({name:l,filter:r});return o});return e.filter((r,a)=>{for(let i of n){const o=Ea.get(r,i.name);if(o)switch(i.filter.operation){case"equal":if(o!==i.filter.value)return!1;break;case"contains":if(!o.includes(i.filter.value))return!1;break;case"notContains":if(o.includes(i.filter.value))return!1;break;case"endsWith":if(!o.endsWith(i.filter.value))return!1;break;case"startsWith":if(!o.startsWith(i.filter.value))return!1;break;case"greaterThan":if(oi.filter.value)return!1;break;case"lessThanOrEqual":if(o>=i.filter.value)return!1;break;case"notEqual":if(o===i.filter.value)return!1;break}}return!0})}function Bs(e){return t=>g_e({items:e,...t})}function g_e(e){var i,o;let t=((i=e.query)==null?void 0:i.itemsPerPage)||2,n=e.query.startIndex||0,r=e.items||[];return(o=e.query)!=null&&o.jsonQuery&&(r=m_e(r,e.query.jsonQuery)),r=r.slice(n,n+t),{query:{data:{data:{items:r,totalItems:r.length,totalAvailableItems:r.length}},dataUpdatedAt:0,error:null,errorUpdateCount:0,errorUpdatedAt:0,failureCount:0,isError:!1,isFetched:!1,isFetchedAfterMount:!1,isFetching:!1,isIdle:!1,isLoading:!1,isLoadingError:!1,isPlaceholderData:!1,isPreviousData:!1,isRefetchError:!1,isRefetching:!1,isStale:!1,remove(){console.log("Use as query has not implemented this.")},refetch(){return console.log("Refetch is not working actually."),Promise.resolve(void 0)},isSuccess:!0,status:"success"},items:r}}const v_e=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a}=e,i=At(),l=Bs([{label:"Sendgrid",value:"sendgrid"}]);return w.jsxs(w.Fragment,{children:[w.jsx(ca,{formEffect:{form:e,field:gi.Fields.type,beforeSet(u){return u.value}},querySource:l,errorMessage:a.type,label:i.mailProvider.type,hint:i.mailProvider.typeHint}),w.jsx(In,{value:n.apiKey,autoFocus:!t,onChange:u=>r(gi.Fields.apiKey,u,!1),dir:"ltr",errorMessage:a.apiKey,label:i.mailProvider.apiKey,hint:i.mailProvider.apiKeyHint})]})},S5=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,t:a,locale:i}=Dr({data:e}),o=wee({query:{uniqueId:n}}),l=h_e({queryClient:r}),u=p_e({queryClient:r});return w.jsx(Uo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(gi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return gi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:v_e,onEditTitle:a.fb.editMailProvider,onCreateTitle:a.fb.newMailProvider,data:e})},See=ze.createContext({setToken(){},setSession(){},signout(){},ref:{token:""},isAuthenticated:!1});function y_e(){const e=localStorage.getItem("app_auth_state");if(e){try{const t=JSON.parse(e);return t?{...t}:{}}catch{}return{}}}const b_e=y_e();function S_(e){const t=R.useContext(See);R.useEffect(()=>{t.setToken(e||"")},[e])}function w_e({children:e}){const[t,n]=R.useState(b_e),r=()=>{n({token:""}),localStorage.removeItem("app_auth_state")},a=l=>{const u={...t,...l};n(u),localStorage.setItem("app_auth_state",JSON.stringify(u))},i=l=>{const u={...t,token:l};n(u),localStorage.setItem("app_auth_state",JSON.stringify(u))},o=!!(t!=null&&t.token);return w.jsx(See.Provider,{value:{signout:r,setSession:a,isAuthenticated:o,ref:t,setToken:i},children:e})}const S_e=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=wee({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return S_((a==null?void 0:a.type)||""),w.jsx(w.Fragment,{children:w.jsx(ao,{editEntityHandler:()=>{e.push(gi.Navigation.edit(n))},getSingleHook:r,children:w.jsx(io,{entity:a,fields:[{label:t.mailProvider.type,elem:w.jsx("span",{children:a==null?void 0:a.type})},{label:t.mailProvider.apiKey,elem:w.jsx("pre",{dir:"ltr",children:a==null?void 0:a.apiKey})}]})})})},E_e=e=>[{name:gi.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:gi.Fields.type,title:e.mailProvider.type,width:200},{name:gi.Fields.apiKey,title:e.mailProvider.apiKey,width:200}];function BF({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/email-providers".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.EmailProviderEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}BF.UKEY="*abac.EmailProviderEntity";function T_e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(nt),o=t?t(a):i?i(a):St(a);let u=`${"/email-provider".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.EmailProviderEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.EmailProviderEntity"),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const C_e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{columns:E_e(e),queryHook:BF,uniqueIdHrefHandler:t=>gi.Navigation.single(t),deleteHook:T_e})})},k_e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Fo,{pageTitle:e.fbMenu.emailProviders,newEntityHandler:({locale:t,router:n})=>{n.push(gi.Navigation.create())},children:w.jsx(C_e,{})})})};function x_e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(S5,{}),path:gi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(S_e,{}),path:gi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(S5,{}),path:gi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(k_e,{}),path:gi.Navigation.Rquery})]})}class Ua extends wn{constructor(...t){super(...t),this.children=void 0,this.fromName=void 0,this.fromEmailAddress=void 0,this.replyTo=void 0,this.nickName=void 0}}Ua.Navigation={edit(e,t){return`${t?"/"+t:".."}/email-sender/edit/${e}`},create(e){return`${e?"/"+e:".."}/email-sender/new`},single(e,t){return`${t?"/"+t:".."}/email-sender/${e}`},query(e={},t){return`${t?"/"+t:".."}/email-senders`},Redit:"email-sender/edit/:uniqueId",Rcreate:"email-sender/new",Rsingle:"email-sender/:uniqueId",Rquery:"email-senders"};Ua.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"emailSender",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"fromName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"fromEmailAddress",type:"string",validate:"required",computedType:"string",gorm:"unique",gormMap:{}},{name:"replyTo",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"nickName",type:"string",validate:"required",computedType:"string",gormMap:{}}],description:"All emails going from the system need to have a virtual sender (nick name, email address, etc)"};Ua.Fields={...wn.Fields,fromName:"fromName",fromEmailAddress:"fromEmailAddress",replyTo:"replyTo",nickName:"nickName"};function Eee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/email-sender/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.EmailSenderEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function __e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/email-sender".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.EmailSenderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function O_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/email-sender".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.EmailSenderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const R_e=({form:e,isEditing:t})=>{const n=At(),{values:r,setFieldValue:a,errors:i}=e;return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.fromEmailAddress,onChange:o=>a(Ua.Fields.fromEmailAddress,o,!1),autoFocus:!t,errorMessage:i.fromEmailAddress,label:n.mailProvider.fromEmailAddress,hint:n.mailProvider.fromEmailAddressHint}),w.jsx(In,{value:r.fromName,onChange:o=>a(Ua.Fields.fromName,o,!1),errorMessage:i.fromName,label:n.mailProvider.fromName,hint:n.mailProvider.fromNameHint}),w.jsx(In,{value:r.nickName,onChange:o=>a(Ua.Fields.nickName,o,!1),errorMessage:i.nickName,label:n.mailProvider.nickName,hint:n.mailProvider.nickNameHint}),w.jsx(In,{value:r.replyTo,onChange:o=>a(Ua.Fields.replyTo,o,!1),errorMessage:i.replyTo,label:n.mailProvider.replyTo,hint:n.mailProvider.replyToHint})]})},E5=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a}=Dr({data:e}),i=At(),o=Eee({query:{uniqueId:n}}),l=O_e({queryClient:r}),u=__e({queryClient:r});return w.jsx(Uo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(Ua.Navigation.query(void 0,a))},onFinishUriResolver:(d,f)=>{var g;return Ua.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:R_e,onEditTitle:i.fb.editMailSender,onCreateTitle:i.fb.newMailSender,data:e})},P_e=()=>{var l;const e=xr(),t=At(),n=e.query.uniqueId;sr();const[r,a]=R.useState([]),i=Eee({query:{uniqueId:n}});var o=(l=i.query.data)==null?void 0:l.data;return S_((o==null?void 0:o.fromName)||""),w.jsx(w.Fragment,{children:w.jsx(ao,{editEntityHandler:()=>{e.push(Ua.Navigation.edit(n))},getSingleHook:i,children:w.jsx(io,{entity:o,fields:[{label:t.mailProvider.fromName,elem:o==null?void 0:o.fromName},{label:t.mailProvider.fromEmailAddress,elem:o==null?void 0:o.fromEmailAddress},{label:t.mailProvider.nickName,elem:o==null?void 0:o.nickName},{label:t.mailProvider.replyTo,elem:o==null?void 0:o.replyTo}]})})})},A_e=e=>[{name:Ua.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:Ua.Fields.fromName,title:e.mailProvider.fromName,width:200},{name:Ua.Fields.fromEmailAddress,title:e.mailProvider.fromEmailAddress,width:200},{name:Ua.Fields.nickName,title:e.mailProvider.nickName,width:200},{name:Ua.Fields.replyTo,title:e.mailProvider.replyTo,width:200}];function Tee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/email-senders".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.EmailSenderEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Tee.UKEY="*abac.EmailSenderEntity";function N_e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(nt),o=t?t(a):i?i(a):St(a);let u=`${"/email-sender".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.EmailSenderEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.EmailSenderEntity"),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const M_e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{columns:A_e(e),queryHook:Tee,uniqueIdHrefHandler:t=>Ua.Navigation.single(t),deleteHook:N_e})})},I_e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Fo,{pageTitle:e.fbMenu.emailSenders,newEntityHandler:({locale:t,router:n})=>{n.push(Ua.Navigation.create())},children:w.jsx(M_e,{})})})};function D_e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(E5,{}),path:Ua.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(P_e,{}),path:Ua.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(E5,{}),path:Ua.Navigation.Redit}),w.jsx(mt,{element:w.jsx(I_e,{}),path:Ua.Navigation.Rquery})]})}const $_e={passportMethods:{clientKeyHint:"Klucz klienta dla metod takich jak Google, służący do autoryzacji OAuth2",archiveTitle:"Metody paszportowe",region:"Region",regionHint:"Region",type:"Typ",editPassportMethod:"Edytuj metodę paszportową",newPassportMethod:"Nowa metoda paszportowa",typeHint:"Typ",clientKey:"Klucz klienta"}},L_e={passportMethods:{archiveTitle:"Passport methods",clientKey:"Client Key",editPassportMethod:"Edit passport method",newPassportMethod:"New passport method",region:"Region",typeHint:"Type",clientKeyHint:"Client key for methods such as google, to authroize the oauth2",regionHint:"Region",type:"Type"}},PE={...$_e,$pl:L_e};class zi extends wn{constructor(...t){super(...t),this.children=void 0,this.type=void 0,this.region=void 0,this.clientKey=void 0}}zi.Navigation={edit(e,t){return`${t?"/"+t:".."}/passport-method/edit/${e}`},create(e){return`${e?"/"+e:".."}/passport-method/new`},single(e,t){return`${t?"/"+t:".."}/passport-method/${e}`},query(e={},t){return`${t?"/"+t:".."}/passport-methods`},Redit:"passport-method/edit/:uniqueId",Rcreate:"passport-method/new",Rsingle:"passport-method/:uniqueId",Rquery:"passport-methods"};zi.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"passportMethod",features:{mock:!1,msync:!1},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"type",type:"enum",validate:"oneof=email phone google facebook,required",of:[{k:"email",description:"Authenticate users using email"},{k:"phone",description:"Authenticat users using phone number, can be sms, calls, or whatsapp."},{k:"google",description:"Users can be authenticated using their google account"},{k:"facebook",description:"Users can be authenticated using their facebook account"}],computedType:'"email" | "phone" | "google" | "facebook"',gormMap:{}},{name:"region",description:"The region which would be using this method of passports for authentication. In Fireback open-source, only 'global' is available.",type:"enum",validate:"required,oneof=global",default:"global",of:[{k:"global"}],computedType:'"global"',gormMap:{}},{name:"clientKey",description:"Client key for those methods such as 'google' which require oauth client key",type:"string",computedType:"string",gormMap:{}}],cliShort:"method",description:"Login/Signup methods which are available in the app for different regions (Email, Phone Number, Google, etc)"};zi.Fields={...wn.Fields,type:"type",region:"region",clientKey:"clientKey"};const F_e=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:zi.Fields.type,title:e.passportMethods.type,width:100},{name:zi.Fields.region,title:e.passportMethods.region,width:100}];function Cee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/passport-methods".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.PassportMethodEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Cee.UKEY="*abac.PassportMethodEntity";function j_e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(nt),o=t?t(a):i?i(a):St(a);let u=`${"/passport-method".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.PassportMethodEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.PassportMethodEntity"),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const U_e=()=>{const e=Kt(PE);return w.jsx(w.Fragment,{children:w.jsx(jo,{columns:F_e(e),queryHook:Cee,uniqueIdHrefHandler:t=>zi.Navigation.single(t),deleteHook:j_e})})},B_e=()=>{const e=Kt(PE);return w.jsx(Fo,{pageTitle:e.passportMethods.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(zi.Navigation.create())},children:w.jsx(U_e,{})})},W_e=({form:e,isEditing:t})=>{const{options:n}=R.useContext(nt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(PE),u=Bs([{name:"Google",uniqueId:"google"},{name:"Facebook",uniqueId:"facebook"},{name:"Email",uniqueId:"email"},{name:"Phone",uniqueId:"phone"}]);return w.jsxs(w.Fragment,{children:[w.jsx(ca,{querySource:u,formEffect:{form:e,field:zi.Fields.type,beforeSet(d){return d.uniqueId}},keyExtractor:d=>d.uniqueId,fnLabelFormat:d=>d.name,errorMessage:o.type,label:l.passportMethods.type,hint:l.passportMethods.typeHint}),w.jsx(In,{value:r.region,onChange:d=>i(zi.Fields.region,d,!1),errorMessage:o.region,label:l.passportMethods.region,hint:l.passportMethods.regionHint}),r.type==="google"||r.type==="facebook"?w.jsx(In,{value:r.clientKey,onChange:d=>i(zi.Fields.clientKey,d,!1),errorMessage:o.clientKey,label:l.passportMethods.clientKey,hint:l.passportMethods.clientKeyHint}):null]})};function kee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/passport-method/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.PassportMethodEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function z_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/passport-method".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.PassportMethodEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function q_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/passport-method".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.PassportMethodEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const T5=({data:e})=>{const t=Kt(PE),{router:n,uniqueId:r,queryClient:a,locale:i}=Dr({data:e}),o=kee({query:{uniqueId:r}}),l=z_e({queryClient:a}),u=q_e({queryClient:a});return w.jsx(Uo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(zi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return zi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:W_e,onEditTitle:t.passportMethods.editPassportMethod,onCreateTitle:t.passportMethods.newPassportMethod,data:e})},H_e=()=>{var r;const{uniqueId:e}=Dr({}),t=kee({query:{uniqueId:e}});var n=(r=t.query.data)==null?void 0:r.data;return Kt(PE),w.jsx(w.Fragment,{children:w.jsx(ao,{editEntityHandler:({locale:a,router:i})=>{i.push(zi.Navigation.edit(e))},getSingleHook:t,children:w.jsx(io,{entity:n,fields:[]})})})};function V_e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(T5,{}),path:zi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(H_e,{}),path:zi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(T5,{}),path:zi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(B_e,{}),path:zi.Navigation.Rquery})]})}class th extends wn{constructor(...t){super(...t),this.children=void 0,this.enableStripe=void 0,this.stripeSecretKey=void 0,this.stripeCallbackUrl=void 0}}th.Navigation={edit(e,t){return`${t?"/"+t:".."}/payment-config/edit/${e}`},create(e){return`${e?"/"+e:".."}/payment-config/new`},single(e,t){return`${t?"/"+t:".."}/payment-config/${e}`},query(e={},t){return`${t?"/"+t:".."}/payment-configs`},Redit:"payment-config/edit/:uniqueId",Rcreate:"payment-config/new",Rsingle:"payment-config/:uniqueId",Rquery:"payment-configs"};th.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"paymentConfig",distinctBy:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"enableStripe",description:"Enables the stripe payment integration in the project",type:"bool?",computedType:"boolean",gormMap:{}},{name:"stripeSecretKey",description:"Stripe secret key to initiate a payment intent",type:"string",computedType:"string",gormMap:{}},{name:"stripeCallbackUrl",description:"The endpoint which the payment module will handle response coming back from stripe.",type:"string",computedType:"string",gormMap:{}}],description:"Contains the api keys, configuration, urls, callbacks for different payment gateways."};th.Fields={...wn.Fields,enableStripe:"enableStripe",stripeSecretKey:"stripeSecretKey",stripeCallbackUrl:"stripeCallbackUrl"};function xee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var E;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/payment-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=()=>l("GET",d),g=(E=i==null?void 0:i.headers)==null?void 0:E.authorization,y=g!="undefined"&&g!=null&&g!=null&&g!="null"&&!!g;let h=!0;return!y&&!a&&(h=!1),{query:jn([i,n,"*payment.PaymentConfigEntity"],f,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:h,...e||{}})}}function G_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/payment-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*payment.PaymentConfigEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const Y_e={paymentConfigs:{stripeSecretKeyHint:"Stripe secret key is starting with sk_...",enableStripe:"Enable stripe",enableStripeHint:"Enable stripe",stripeCallbackUrl:"Stripe callback url",archiveTitle:"Payment configs",editPaymentConfig:"Edit payment config",newPaymentConfig:"New payment config",stripeCallbackUrlHint:"The url, which the payment success validator service is deployed, such as http://localhost:4500/payment/invoice",stripeSecretKey:"Stripe secret key"}},K_e={paymentConfigs:{enableStripe:"Włącz Stripe",newPaymentConfig:"Nowa konfiguracja płatności",stripeCallbackUrl:"URL zwrotny Stripe",stripeCallbackUrlHint:"URL, pod którym działa usługa weryfikująca powodzenie płatności, np. http://localhost:4500/payment/invoice",archiveTitle:"Konfiguracje płatności",editPaymentConfig:"Edytuj konfigurację płatności",enableStripeHint:"Włącz Stripe",stripeSecretKey:"Tajny klucz Stripe",stripeSecretKeyHint:"Tajny klucz Stripe zaczyna się od sk_..."}},WF={...Y_e,$pl:K_e},vl=e=>{const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,disabled:u,focused:d=!1,errorMessage:f,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(null),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(ef,{focused:h,onClick:T,...e,label:"",children:w.jsxs("label",{className:"form-label mr-2",children:[w.jsx("input",{...y,ref:E,checked:!!l,type:"checkbox",onChange:C=>o&&o(!l),onBlur:()=>v(!1),onFocus:()=>v(!0),className:"form-checkbox"}),n]})})};function Io({title:e,children:t,className:n,description:r}){return w.jsxs("div",{className:ia("page-section",n),children:[e?w.jsx("h2",{className:"",children:e}):null,r?w.jsx("p",{className:"",children:r}):null,w.jsx("div",{className:"mt-4",children:t})]})}const X_e=({form:e,isEditing:t})=>{const{options:n}=R.useContext(nt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(WF);return w.jsx(w.Fragment,{children:w.jsxs(Io,{title:"Stripe configuration",children:[w.jsx(vl,{value:r.enableStripe,onChange:u=>i(th.Fields.enableStripe,u,!1),errorMessage:o.enableStripe,label:l.paymentConfigs.enableStripe,hint:l.paymentConfigs.enableStripeHint}),w.jsx(In,{disabled:!r.enableStripe,value:r.stripeSecretKey,onChange:u=>i(th.Fields.stripeSecretKey,u,!1),errorMessage:o.stripeSecretKey,label:l.paymentConfigs.stripeSecretKey,hint:l.paymentConfigs.stripeSecretKeyHint}),w.jsx(In,{disabled:!r.enableStripe,value:r.stripeCallbackUrl,onChange:u=>i(th.Fields.stripeCallbackUrl,u,!1),errorMessage:o.stripeCallbackUrl,label:l.paymentConfigs.stripeCallbackUrl,hint:l.paymentConfigs.stripeCallbackUrlHint})]})})},Q_e=({data:e})=>{const t=Kt(WF),{router:n,queryClient:r,locale:a}=Dr({data:e}),o=xee({query:{uniqueId:"workspace"}}),l=G_e({queryClient:r});return w.jsx(Uo,{patchHook:l,forceEdit:!0,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(th.Navigation.query(void 0,a))},onFinishUriResolver:(u,d)=>{var f;return th.Navigation.single((f=u.data)==null?void 0:f.uniqueId,d)},Form:X_e,onEditTitle:t.paymentConfigs.editPaymentConfig,onCreateTitle:t.paymentConfigs.newPaymentConfig,data:e})},J_e=()=>{var a;const{uniqueId:e}=Dr({}),t=xee({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt(WF);return w.jsx(w.Fragment,{children:w.jsx(ao,{editEntityHandler:({locale:i,router:o})=>{o.push("../config/edit")},getSingleHook:t,children:w.jsx(io,{entity:n,fields:[{elem:n==null?void 0:n.stripeSecretKey,label:r.paymentConfigs.stripeSecretKey},{elem:n==null?void 0:n.stripeCallbackUrl,label:r.paymentConfigs.stripeCallbackUrl}]})})})};function Z_e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(Q_e,{}),path:"config/edit"}),w.jsx(mt,{element:w.jsx(J_e,{}),path:"config"})]})}const eOe={invoices:{amountHint:"Amount",archiveTitle:"Invoices",newInvoice:"New invoice",titleHint:"Title",amount:"Amount",editInvoice:"Edit invoice",finalStatus:"Final status",finalStatusHint:"Final status",title:"Title"}},tOe={invoices:{amount:"Kwota",amountHint:"Kwota",finalStatus:"Status końcowy",newInvoice:"Nowa faktura",titleHint:"Tytuł",archiveTitle:"Faktury",editInvoice:"Edytuj fakturę",finalStatusHint:"Status końcowy",title:"Tytuł"}},AE={...eOe,$pl:tOe};class bi extends wn{constructor(...t){super(...t),this.children=void 0,this.title=void 0,this.titleExcerpt=void 0,this.amount=void 0,this.notificationKey=void 0,this.redirectAfterSuccess=void 0,this.finalStatus=void 0}}bi.Navigation={edit(e,t){return`${t?"/"+t:".."}/invoice/edit/${e}`},create(e){return`${e?"/"+e:".."}/invoice/new`},single(e,t){return`${t?"/"+t:".."}/invoice/${e}`},query(e={},t){return`${t?"/"+t:".."}/invoices`},Redit:"invoice/edit/:uniqueId",Rcreate:"invoice/new",Rsingle:"invoice/:uniqueId",Rquery:"invoices"};bi.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"invoice",features:{},security:{writeOnRoot:!0,readOnRoot:!0},gormMap:{},fields:[{name:"title",description:"Explanation about the invoice, the reason someone needs to pay",type:"text",validate:"required",computedType:"string",gormMap:{}},{name:"amount",description:"Amount of the invoice which has to be payed",type:"money?",validate:"required",computedType:"{amount: number, currency: string, formatted?: string}",gormMap:{}},{name:"notificationKey",description:"The unique key, when an event related to the invoice happened it would be triggered. For example if another module wants to initiate the payment, and after payment success, wants to run some code, it would be listening to invoice events and notificationKey will come.",type:"string",computedType:"string",gormMap:{}},{name:"redirectAfterSuccess",description:"When the payment is successful, it might use this url to make a redirect.",type:"string",computedType:"string",gormMap:{}},{name:"finalStatus",description:"Final status of the invoice from a accounting perspective",type:"enum",validate:"required",of:[{k:"payed",description:"Payed"},{k:"pending",description:"Pending"}],computedType:'"payed" | "pending"',gormMap:{}}],description:"Invoice is a billable value, which a party recieves, and needs to pay it by different means. Invoice keeps information such as reason, total amount, tax amount and other details. An invoice can be payed via different payment methods."};bi.Fields={...wn.Fields,title:"title",amount:"amount",notificationKey:"notificationKey",redirectAfterSuccess:"redirectAfterSuccess",finalStatus:"finalStatus"};const nOe=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:bi.Fields.title,title:e.invoices.title,width:100},{name:bi.Fields.amount,title:e.invoices.amount,width:100,getCellValue:t=>{var n;return(n=t.amount)==null?void 0:n.formatted}},{name:bi.Fields.finalStatus,title:e.invoices.finalStatus,width:100}];function _ee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/invoices".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*payment.InvoiceEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}_ee.UKEY="*payment.InvoiceEntity";function rOe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(nt),o=t?t(a):i?i(a):St(a);let u=`${"/invoice".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*payment.InvoiceEntity",k=>g(k)),n==null||n.invalidateQueries("*payment.InvoiceEntity"),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const aOe=()=>{const e=Kt(AE);return w.jsx(w.Fragment,{children:w.jsx(jo,{columns:nOe(e),queryHook:_ee,uniqueIdHrefHandler:t=>bi.Navigation.single(t),deleteHook:rOe})})},iOe=()=>{const e=Kt(AE);return w.jsx(Fo,{pageTitle:e.invoices.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(bi.Navigation.create())},children:w.jsx(aOe,{})})};var hr=function(){return hr=Object.assign||function(t){for(var n,r=1,a=arguments.length;r1){if(n===0)return e.replace(t,"");if(e.includes(t)){var r=e.split(t),a=r[0],i=r[1];if(i.length===n)return e;if(i.length>n)return"".concat(a).concat(t).concat(i.slice(0,n))}var o=e.length>n?new RegExp("(\\d+)(\\d{".concat(n,"})")):new RegExp("(\\d)(\\d+)"),l=e.match(o);if(l){var a=l[1],i=l[2];return"".concat(a).concat(t).concat(i)}}return e},Oee=function(e,t){var n=t.groupSeparator,r=n===void 0?",":n,a=t.decimalSeparator,i=a===void 0?".":a,o=new RegExp("\\d([^".concat(xc(r)).concat(xc(i),"0-9]+)")),l=e.match(o);return l?l[1]:void 0},E1=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,a=e.decimalScale,i=e.prefix,o=i===void 0?"":i,l=e.suffix,u=l===void 0?"":l;if(t===""||t===void 0)return"";if(t==="-")return"-";var d=new RegExp("^\\d?-".concat(o?"".concat(xc(o),"?"):"","\\d")).test(t),f=n!=="."?dOe(t,n,d):t;n&&n!=="-"&&f.startsWith(n)&&(f="0"+f);var g=r||{},y=g.locale,h=g.currency,v=zF(g,["locale","currency"]),E=hr(hr({},v),{minimumFractionDigits:a||0,maximumFractionDigits:20}),T=r?new Intl.NumberFormat(y,hr(hr({},E),h&&{style:"currency",currency:h})):new Intl.NumberFormat(void 0,E),C=T.formatToParts(Number(f)),k=fOe(C,e),_=Oee(k,hr({},e)),A=t.slice(-1)===n?n:"",P=f.match(RegExp("\\d+\\.(\\d+)"))||[],N=P[1];return a===void 0&&N&&n&&(k.includes(n)?k=k.replace(RegExp("(\\d+)(".concat(xc(n),")(\\d+)"),"g"),"$1$2".concat(N)):_&&!u?k=k.replace(_,"".concat(n).concat(N).concat(_)):k="".concat(k).concat(n).concat(N)),u&&A?"".concat(k).concat(A).concat(u):_&&A?k.replace(_,"".concat(A).concat(_)):_&&u?k.replace(_,"".concat(A).concat(u)):[k,A,u].join("")},dOe=function(e,t,n){var r=e;return t&&t!=="."&&(r=r.replace(RegExp(xc(t),"g"),"."),n&&t==="-"&&(r="-".concat(r.slice(1)))),r},fOe=function(e,t){var n=t.prefix,r=t.groupSeparator,a=t.decimalSeparator,i=t.decimalScale,o=t.disableGroupSeparators,l=o===void 0?!1:o;return e.reduce(function(u,d,f){var g=d.type,y=d.value;return f===0&&n?g==="minusSign"?[y,n]:g==="currency"?Rs(Rs([],u,!0),[n],!1):[n,y]:g==="currency"?n?u:Rs(Rs([],u,!0),[y],!1):g==="group"?l?u:Rs(Rs([],u,!0),[r!==void 0?r:y],!1):g==="decimal"?i!==void 0&&i===0?u:Rs(Rs([],u,!0),[a!==void 0?a:y],!1):g==="fraction"?Rs(Rs([],u,!0),[i!==void 0?y.slice(0,i):y],!1):Rs(Rs([],u,!0),[y],!1)},[""]).join("")},pOe={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},hOe=function(e){var t=e||{},n=t.locale,r=t.currency,a=zF(t,["locale","currency"]),i=n?new Intl.NumberFormat(n,hr(hr({},a),r&&{currency:r,style:"currency"})):new Intl.NumberFormat;return i.formatToParts(1000.1).reduce(function(o,l,u){return l.type==="currency"?u===0?hr(hr({},o),{currencySymbol:l.value,prefix:l.value}):hr(hr({},o),{currencySymbol:l.value,suffix:l.value}):l.type==="group"?hr(hr({},o),{groupSeparator:l.value}):l.type==="decimal"?hr(hr({},o),{decimalSeparator:l.value}):o},pOe)},C5=function(e){return RegExp(/\d/,"gi").test(e)},mOe=function(e,t,n){if(n===void 0||t===""||t===void 0||e===""||e===void 0)return e;if(!e.match(/\d/g))return"";var r=e.split(t),a=r[0],i=r[1];if(n===0)return a;var o=i||"";if(o.lengthv)){if(_t===""||_t==="-"||_t===ue){T&&T(void 0,l,{float:null,formatted:"",value:""}),tt(_t),Rt(1);return}var Ut=ue?_t.replace(ue,"."):_t,On=parseFloat(Ut),gn=E1(hr({value:_t},fe));if(Lt!=null){var ln=Lt+(gn.length-Mt.length);ln=ln<=0?A?A.length:0:ln,Rt(ln),Wt(qt+1)}if(tt(gn),T){var Bn={float:On,formatted:gn,value:_t};T(_t,l,Bn)}}},U=function(Mt){var be=Mt.target,Ee=be.value,gt=be.selectionStart;Nt(Ee,gt),W&&W(Mt)},D=function(Mt){return G&&G(Mt),qe?qe.length:0},F=function(Mt){var be=Mt.target.value,Ee=YP(hr({value:be},xe));if(Ee==="-"||Ee===ue||!Ee){tt(""),q&&q(Mt);return}var gt=cOe(Ee,ue,C),Lt=mOe(gt,ue,_!==void 0?_:C),_t=ue?Lt.replace(ue,"."):Lt,Ut=parseFloat(_t),On=E1(hr(hr({},fe),{value:Lt}));T&&J&&T(Lt,l,{float:Ut,formatted:On,value:Lt}),tt(On),q&&q(Mt)},ae=function(Mt){var be=Mt.key;if(ft(be),I&&(be==="ArrowUp"||be==="ArrowDown")){Mt.preventDefault(),Rt(qe.length);var Ee=E!=null?String(E):void 0,gt=ue&&Ee?Ee.replace(ue,"."):Ee,Lt=parseFloat(gt??YP(hr({value:qe},xe)))||0,_t=be==="ArrowUp"?Lt+I:Lt-I;if(L!==void 0&&_tNumber(j))return;var Ut=String(I).includes(".")?Number(String(I).split(".")[1].length):void 0;Nt(String(Ut?_t.toFixed(Ut):_t).replace(".",ue))}ce&&ce(Mt)},Te=function(Mt){var be=Mt.key,Ee=Mt.currentTarget.selectionStart;if(be!=="ArrowUp"&&be!=="ArrowDown"&&qe!=="-"){var gt=Oee(qe,{groupSeparator:ke,decimalSeparator:ue});if(gt&&Ee&&Ee>qe.length-gt.length&&ut.current){var Lt=qe.length-gt.length;ut.current.setSelectionRange(Lt,Lt)}}H&&H(Mt)};R.useEffect(function(){E==null&&g==null&&tt("")},[g,E]),R.useEffect(function(){at&&qe!=="-"&&ut.current&&document.activeElement===ut.current&&ut.current.setSelectionRange(xt,xt)},[qe,xt,ut,at,qt]);var Fe=function(){return E!=null&&qe!=="-"&&(!ue||qe!==ue)?E1(hr(hr({},fe),{decimalScale:at?void 0:_,value:String(E)})):qe},We=hr({type:"text",inputMode:"decimal",id:o,name:l,className:u,onChange:U,onBlur:F,onFocus:D,onKeyDown:ae,onKeyUp:Te,placeholder:k,disabled:h,value:Fe(),ref:ut},ee);if(d){var Tt=d;return ze.createElement(Tt,hr({},We))}return ze.createElement("input",hr({},We))});Ree.displayName="CurrencyInput";const vOe=e=>{const{placeholder:t,onChange:n,value:r,...a}=e,[i,o]=R.useState(()=>(r==null?void 0:r.amount)!=null?r.amount.toString():"");R.useEffect(()=>{const d=(r==null?void 0:r.amount)!=null?r.amount.toString():"";d!==i&&o(d)},[r==null?void 0:r.amount]);const l=d=>{const f=parseFloat(d);isNaN(f)||n==null||n({...r,amount:f})},u=d=>{const f=d||"";o(f),f.trim()!==""&&l(f)};return w.jsx(ef,{...a,children:w.jsxs("div",{className:"flex gap-2 items-center",style:{flexDirection:"row",display:"flex"},children:[w.jsx(Ree,{placeholder:t,value:i,decimalsLimit:2,className:ia("form-control",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),onValueChange:u}),w.jsxs("select",{value:r==null?void 0:r.currency,onChange:d=>n==null?void 0:n({...r,currency:d.target.value}),className:"form-select w-24",style:{width:"110px"},children:[w.jsx("option",{value:"USD",children:"USD"}),w.jsx("option",{value:"PLN",children:"PLN"}),w.jsx("option",{value:"EUR",children:"EUR"})]})]})})},yOe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(nt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(AE);return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.title,onChange:u=>i(bi.Fields.title,u,!1),errorMessage:o.title,label:l.invoices.title,hint:l.invoices.titleHint}),w.jsx(vOe,{value:r.amount,onChange:u=>i(bi.Fields.amount,u,!1),label:l.invoices.amount,hint:l.invoices.amountHint}),w.jsx(In,{value:r.finalStatus,onChange:u=>i(bi.Fields.finalStatus,u,!1),errorMessage:o.finalStatus,label:l.invoices.finalStatus,hint:l.invoices.finalStatusHint})]})};function Pee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/invoice/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*payment.InvoiceEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function bOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/invoice".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*payment.InvoiceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function wOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/invoice".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*payment.InvoiceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const k5=({data:e})=>{const t=Kt(AE),{router:n,uniqueId:r,queryClient:a,locale:i}=Dr({data:e}),o=Pee({query:{uniqueId:r}}),l=bOe({queryClient:a}),u=wOe({queryClient:a});return w.jsx(Uo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(bi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return bi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:yOe,onEditTitle:t.invoices.editInvoice,onCreateTitle:t.invoices.newInvoice,data:e})},SOe=()=>{var i,o;const{uniqueId:e}=Dr({}),t=Pee({query:{uniqueId:e}});var n=(i=t.query.data)==null?void 0:i.data;const r=Kt(AE),a=l=>{window.open(`http://localhost:4500/payment/invoice/${l}`,"_blank")};return w.jsx(w.Fragment,{children:w.jsx(ao,{editEntityHandler:({locale:l,router:u})=>{u.push(bi.Navigation.edit(e))},getSingleHook:t,children:w.jsx(io,{entity:n,fields:[{elem:n==null?void 0:n.title,label:r.invoices.title},{elem:(o=n==null?void 0:n.amount)==null?void 0:o.formatted,label:r.invoices.amount},{elem:w.jsx(w.Fragment,{children:w.jsx("button",{className:"btn btn-small",onClick:()=>a(e),children:"Pay now"})}),label:"Actions"}]})})})};function EOe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(k5,{}),path:bi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(SOe,{}),path:bi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(k5,{}),path:bi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(iOe,{}),path:bi.Navigation.Rquery})]})}function TOe(){const e=Z_e(),t=EOe();return w.jsxs(mt,{path:"payment",children:[e,t]})}const COe={regionalContents:{titleHint:"Title",archiveTitle:"Regional contents",keyGroup:"Key group",languageId:"Language id",regionHint:"Region",title:"Title",content:"Content",contentHint:"Content",editRegionalContent:"Edit regional content",keyGroupHint:"Key group",languageIdHint:"Language id",newRegionalContent:"New regional content",region:"Region"}},kOe={regionalContents:{editRegionalContent:"Edytuj treść regionalną",keyGroup:"Grupa kluczy",keyGroupHint:"Grupa kluczy",languageId:"Identyfikator języka",region:"Region",title:"Tytuł",titleHint:"Tytuł",archiveTitle:"Treści regionalne",content:"Treść",contentHint:"Treść",languageIdHint:"Identyfikator języka",newRegionalContent:"Nowa treść regionalna",regionHint:"Region"}},NE={...COe,$pl:kOe};class Br extends wn{constructor(...t){super(...t),this.children=void 0,this.content=void 0,this.contentExcerpt=void 0,this.region=void 0,this.title=void 0,this.languageId=void 0,this.keyGroup=void 0}}Br.Navigation={edit(e,t){return`${t?"/"+t:".."}/regional-content/edit/${e}`},create(e){return`${e?"/"+e:".."}/regional-content/new`},single(e,t){return`${t?"/"+t:".."}/regional-content/${e}`},query(e={},t){return`${t?"/"+t:".."}/regional-contents`},Redit:"regional-content/edit/:uniqueId",Rcreate:"regional-content/new",Rsingle:"regional-content/:uniqueId",Rquery:"regional-contents"};Br.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"regionalContent",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"content",type:"html",validate:"required",computedType:"string",gormMap:{}},{name:"region",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"title",type:"string",computedType:"string",gormMap:{}},{name:"languageId",type:"string",validate:"required",computedType:"string",gorm:"index:regional_content_index,unique",gormMap:{}},{name:"keyGroup",type:"enum",validate:"required",of:[{k:"SMS_OTP",description:"Used when an email would be sent with one time password"},{k:"EMAIL_OTP",description:"Used when an sms would be sent with one time password"}],computedType:'"SMS_OTP" | "EMAIL_OTP"',gorm:"index:regional_content_index,unique",gormMap:{}}],cliShort:"rc",description:"Email templates, sms templates or other textual content which can be accessed."};Br.Fields={...wn.Fields,content:"content",region:"region",title:"title",languageId:"languageId",keyGroup:"keyGroup"};const xOe=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:Br.Fields.content,title:e.regionalContents.content,width:100},{name:Br.Fields.region,title:e.regionalContents.region,width:100},{name:Br.Fields.title,title:e.regionalContents.title,width:100},{name:Br.Fields.languageId,title:e.regionalContents.languageId,width:100},{name:Br.Fields.keyGroup,title:e.regionalContents.keyGroup,width:100}];function vS({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/regional-contents".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.RegionalContentEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}vS.UKEY="*abac.RegionalContentEntity";function _Oe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(nt),o=t?t(a):i?i(a):St(a);let u=`${"/regional-content".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.RegionalContentEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.RegionalContentEntity"),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const OOe=()=>{const e=Kt(NE);return w.jsx(w.Fragment,{children:w.jsx(jo,{columns:xOe(e),queryHook:vS,uniqueIdHrefHandler:t=>Br.Navigation.single(t),deleteHook:_Oe})})},ROe=()=>{const e=Kt(NE);return w.jsx(Fo,{pageTitle:e.regionalContents.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(Br.Navigation.create())},children:w.jsx(OOe,{})})};var qL=function(){return qL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},MOe=function(e,t){return P5(e).concat(P5(t))},IOe=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},DOe=function(e){if(!("isConnected"in Node.prototype)){for(var t=e,n=e.parentNode;n!=null;)t=n,n=t.parentNode;return t===e.ownerDocument}return e.isConnected},A5=function(e,t){e!==void 0&&(e.mode!=null&&typeof e.mode=="object"&&typeof e.mode.set=="function"?e.mode.set(t):e.setMode(t))},HL=function(){return HL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?setTimeout(d,o):d()},r=function(){for(var a=e.pop();a!=null;a=e.pop())a.deleteScripts()};return{loadList:n,reinitialize:r}},jOe=FOe(),XP=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},UOe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),kx=function(){return kx=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)throw new Error("Invalid string. Length must be a multiple of 4");var E=h.indexOf("=");E===-1&&(E=v);var T=E===v?0:4-E%4;return[E,T]}function l(h){var v=o(h),E=v[0],T=v[1];return(E+T)*3/4-T}function u(h,v,E){return(v+E)*3/4-E}function d(h){var v,E=o(h),T=E[0],C=E[1],k=new n(u(h,T,C)),_=0,A=C>0?T-4:T,P;for(P=0;P>16&255,k[_++]=v>>8&255,k[_++]=v&255;return C===2&&(v=t[h.charCodeAt(P)]<<2|t[h.charCodeAt(P+1)]>>4,k[_++]=v&255),C===1&&(v=t[h.charCodeAt(P)]<<10|t[h.charCodeAt(P+1)]<<4|t[h.charCodeAt(P+2)]>>2,k[_++]=v>>8&255,k[_++]=v&255),k}function f(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function g(h,v,E){for(var T,C=[],k=v;kA?A:_+k));return T===1?(v=h[E-1],C.push(e[v>>2]+e[v<<4&63]+"==")):T===2&&(v=(h[E-2]<<8)+h[E-1],C.push(e[v>>10]+e[v>>4&63]+e[v<<2&63]+"=")),C.join("")}return T1}var tk={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var M5;function zOe(){return M5||(M5=1,tk.read=function(e,t,n,r,a){var i,o,l=a*8-r-1,u=(1<>1,f=-7,g=n?a-1:0,y=n?-1:1,h=e[t+g];for(g+=y,i=h&(1<<-f)-1,h>>=-f,f+=l;f>0;i=i*256+e[t+g],g+=y,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=r;f>0;o=o*256+e[t+g],g+=y,f-=8);if(i===0)i=1-d;else{if(i===u)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,r),i=i-d}return(h?-1:1)*o*Math.pow(2,i-r)},tk.write=function(e,t,n,r,a,i){var o,l,u,d=i*8-a-1,f=(1<>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,v=r?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+g>=1?t+=y/u:t+=y*Math.pow(2,1-g),t*u>=2&&(o++,u/=2),o+g>=f?(l=0,o=f):o+g>=1?(l=(t*u-1)*Math.pow(2,a),o=o+g):(l=t*Math.pow(2,g-1)*Math.pow(2,a),o=0));a>=8;e[n+h]=l&255,h+=v,l/=256,a-=8);for(o=o<0;e[n+h]=o&255,h+=v,o/=256,d-=8);e[n+h-v]|=E*128}),tk}/*! +`]))),Nke=function(t,n){var r=t.isFocused,a=t.size,i=t.theme,o=i.colors,l=i.spacing.baseUnit;return Jt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?o.neutral60:o.neutral20,padding:l*2})},JP=function(t){var n=t.delay,r=t.offset;return rn("span",{css:VF({animation:"".concat(Ake," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Mke=function(t){var n=t.innerProps,r=t.isRtl,a=t.size,i=a===void 0?4:a,o=Ru(t,Tke);return rn("div",vt({},Ca(Jt(Jt({},o),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),rn(JP,{delay:0,offset:r}),rn(JP,{delay:160,offset:!0}),rn(JP,{delay:320,offset:!r}))},Ike=function(t,n){var r=t.isDisabled,a=t.isFocused,i=t.theme,o=i.colors,l=i.borderRadius,u=i.spacing;return Jt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?o.neutral5:o.neutral0,borderColor:r?o.neutral10:a?o.primary:o.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:a?o.primary:o.neutral30}})},Dke=function(t){var n=t.children,r=t.isDisabled,a=t.isFocused,i=t.innerRef,o=t.innerProps,l=t.menuIsOpen;return rn("div",vt({ref:i},Ca(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":a,"control--menu-is-open":l}),o,{"aria-disabled":r||void 0}),n)},$ke=Dke,Lke=["data"],Fke=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},jke=function(t){var n=t.children,r=t.cx,a=t.getStyles,i=t.getClassNames,o=t.Heading,l=t.headingProps,u=t.innerProps,d=t.label,f=t.theme,g=t.selectProps;return rn("div",vt({},Ca(t,"group",{group:!0}),u),rn(o,vt({},l,{selectProps:g,theme:f,getStyles:a,getClassNames:i,cx:r}),d),rn("div",null,n))},Uke=function(t,n){var r=t.theme,a=r.colors,i=r.spacing;return Jt({label:"group",cursor:"default",display:"block"},n?{}:{color:a.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},Bke=function(t){var n=lee(t);n.data;var r=Ru(n,Lke);return rn("div",vt({},Ca(t,"groupHeading",{"group-heading":!0}),r))},Wke=jke,zke=["innerRef","isDisabled","isHidden","inputClassName"],qke=function(t,n){var r=t.isDisabled,a=t.value,i=t.theme,o=i.spacing,l=i.colors;return Jt(Jt({visibility:r?"hidden":"visible",transform:a?"translateZ(0)":""},Hke),n?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:l.neutral80})},vee={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Hke={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Jt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},vee)},Vke=function(t){return Jt({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},vee)},Gke=function(t){var n=t.cx,r=t.value,a=lee(t),i=a.innerRef,o=a.isDisabled,l=a.isHidden,u=a.inputClassName,d=Ru(a,zke);return rn("div",vt({},Ca(t,"input",{"input-container":!0}),{"data-value":r||""}),rn("input",vt({className:n({input:!0},u),ref:i,style:Vke(l),disabled:o},d)))},Yke=Gke,Kke=function(t,n){var r=t.theme,a=r.spacing,i=r.borderRadius,o=r.colors;return Jt({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:a.baseUnit/2})},Xke=function(t,n){var r=t.theme,a=r.borderRadius,i=r.colors,o=t.cropWithEllipsis;return Jt({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:a/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Qke=function(t,n){var r=t.theme,a=r.spacing,i=r.borderRadius,o=r.colors,l=t.isFocused;return Jt({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:l?o.dangerLight:void 0,paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},yee=function(t){var n=t.children,r=t.innerProps;return rn("div",r,n)},Jke=yee,Zke=yee;function exe(e){var t=e.children,n=e.innerProps;return rn("div",vt({role:"button"},n),t||rn(XF,{size:14}))}var txe=function(t){var n=t.children,r=t.components,a=t.data,i=t.innerProps,o=t.isDisabled,l=t.removeProps,u=t.selectProps,d=r.Container,f=r.Label,g=r.Remove;return rn(d,{data:a,innerProps:Jt(Jt({},Ca(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:u},rn(f,{data:a,innerProps:Jt({},Ca(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},n),rn(g,{data:a,innerProps:Jt(Jt({},Ca(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:u}))},nxe=txe,rxe=function(t,n){var r=t.isDisabled,a=t.isFocused,i=t.isSelected,o=t.theme,l=o.spacing,u=o.colors;return Jt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?u.primary:a?u.primary25:"transparent",color:r?u.neutral20:i?u.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?u.primary:u.primary50}})},axe=function(t){var n=t.children,r=t.isDisabled,a=t.isFocused,i=t.isSelected,o=t.innerRef,l=t.innerProps;return rn("div",vt({},Ca(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":a,"option--is-selected":i}),{ref:o,"aria-disabled":r},l),n)},ixe=axe,oxe=function(t,n){var r=t.theme,a=r.spacing,i=r.colors;return Jt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},sxe=function(t){var n=t.children,r=t.innerProps;return rn("div",vt({},Ca(t,"placeholder",{placeholder:!0}),r),n)},lxe=sxe,uxe=function(t,n){var r=t.isDisabled,a=t.theme,i=a.spacing,o=a.colors;return Jt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},cxe=function(t){var n=t.children,r=t.isDisabled,a=t.innerProps;return rn("div",vt({},Ca(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),a),n)},dxe=cxe,fxe={ClearIndicator:Oke,Control:$ke,DropdownIndicator:xke,DownChevron:mee,CrossIcon:XF,Group:Wke,GroupHeading:Bke,IndicatorsContainer:Ske,IndicatorSeparator:Pke,Input:Yke,LoadingIndicator:Mke,Menu:ske,MenuList:uke,MenuPortal:mke,LoadingMessage:pke,NoOptionsMessage:fke,MultiValue:nxe,MultiValueContainer:Jke,MultiValueLabel:Zke,MultiValueRemove:exe,Option:ixe,Placeholder:lxe,SelectContainer:vke,SingleValue:dxe,ValueContainer:bke},pxe=function(t){return Jt(Jt({},fxe),t.components)},b5=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function hxe(e,t){return!!(e===t||b5(e)&&b5(t))}function mxe(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(a," is disabled. Select another option."):"option ".concat(a,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,a=t.options,i=t.label,o=i===void 0?"":i,l=t.selectValue,u=t.isDisabled,d=t.isSelected,f=t.isAppleDevice,g=function(E,T){return E&&E.length?"".concat(E.indexOf(T)+1," of ").concat(E.length):""};if(n==="value"&&l)return"value ".concat(o," focused, ").concat(g(l,r),".");if(n==="menu"&&f){var y=u?" disabled":"",h="".concat(d?" selected":"").concat(y);return"".concat(o).concat(h,", ").concat(g(a,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},wxe=function(t){var n=t.ariaSelection,r=t.focusedOption,a=t.focusedValue,i=t.focusableOptions,o=t.isFocused,l=t.selectValue,u=t.selectProps,d=t.id,f=t.isAppleDevice,g=u.ariaLiveMessages,y=u.getOptionLabel,h=u.inputValue,v=u.isMulti,E=u.isOptionDisabled,T=u.isSearchable,C=u.menuIsOpen,k=u.options,_=u.screenReaderStatus,A=u.tabSelectsValue,P=u.isLoading,N=u["aria-label"],I=u["aria-live"],L=R.useMemo(function(){return Jt(Jt({},bxe),g||{})},[g]),j=R.useMemo(function(){var me="";if(n&&L.onChange){var W=n.option,G=n.options,q=n.removedValue,ce=n.removedValues,H=n.value,Y=function(fe){return Array.isArray(fe)?null:fe},ie=q||W||Y(H),J=ie?y(ie):"",ee=G||ce||void 0,Z=ee?ee.map(y):[],ue=Jt({isDisabled:ie&&E(ie,l),label:J,labels:Z},n);me=L.onChange(ue)}return me},[n,L,E,l,y]),z=R.useMemo(function(){var me="",W=r||a,G=!!(r&&l&&l.includes(r));if(W&&L.onFocus){var q={focused:W,label:y(W),isDisabled:E(W,l),isSelected:G,options:i,context:W===r?"menu":"value",selectValue:l,isAppleDevice:f};me=L.onFocus(q)}return me},[r,a,y,E,L,i,l,f]),Q=R.useMemo(function(){var me="";if(C&&k.length&&!P&&L.onFilter){var W=_({count:i.length});me=L.onFilter({inputValue:h,resultsMessage:W})}return me},[i,h,C,L,k,_,P]),le=(n==null?void 0:n.action)==="initial-input-focus",re=R.useMemo(function(){var me="";if(L.guidance){var W=a?"value":C?"menu":"input";me=L.guidance({"aria-label":N,context:W,isDisabled:r&&E(r,l),isMulti:v,isSearchable:T,tabSelectsValue:A,isInitialFocus:le})}return me},[N,r,a,v,E,T,C,L,l,A,le]),ge=rn(R.Fragment,null,rn("span",{id:"aria-selection"},j),rn("span",{id:"aria-focused"},z),rn("span",{id:"aria-results"},Q),rn("span",{id:"aria-guidance"},re));return rn(R.Fragment,null,rn(w5,{id:d},le&&ge),rn(w5,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!le&&ge))},Sxe=wxe,n3=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Exe=new RegExp("["+n3.map(function(e){return e.letters}).join("")+"]","g"),bee={};for(var ZP=0;ZP-1}},xxe=["innerRef"];function _xe(e){var t=e.innerRef,n=Ru(e,xxe),r=ZCe(n,"onExited","in","enter","exit","appear");return rn("input",vt({ref:t},r,{css:VF({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Oxe=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Rxe(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,a=e.onTopArrive,i=e.onTopLeave,o=R.useRef(!1),l=R.useRef(!1),u=R.useRef(0),d=R.useRef(null),f=R.useCallback(function(T,C){if(d.current!==null){var k=d.current,_=k.scrollTop,A=k.scrollHeight,P=k.clientHeight,N=d.current,I=C>0,L=A-P-_,j=!1;L>C&&o.current&&(r&&r(T),o.current=!1),I&&l.current&&(i&&i(T),l.current=!1),I&&C>L?(n&&!o.current&&n(T),N.scrollTop=A,j=!0,o.current=!0):!I&&-C>_&&(a&&!l.current&&a(T),N.scrollTop=0,j=!0,l.current=!0),j&&Oxe(T)}},[n,r,a,i]),g=R.useCallback(function(T){f(T,T.deltaY)},[f]),y=R.useCallback(function(T){u.current=T.changedTouches[0].clientY},[]),h=R.useCallback(function(T){var C=u.current-T.changedTouches[0].clientY;f(T,C)},[f]),v=R.useCallback(function(T){if(T){var C=XCe?{passive:!1}:!1;T.addEventListener("wheel",g,C),T.addEventListener("touchstart",y,C),T.addEventListener("touchmove",h,C)}},[h,y,g]),E=R.useCallback(function(T){T&&(T.removeEventListener("wheel",g,!1),T.removeEventListener("touchstart",y,!1),T.removeEventListener("touchmove",h,!1))},[h,y,g]);return R.useEffect(function(){if(t){var T=d.current;return v(T),function(){E(T)}}},[t,v,E]),function(T){d.current=T}}var E5=["boxSizing","height","overflow","paddingRight","position"],T5={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function C5(e){e.cancelable&&e.preventDefault()}function k5(e){e.stopPropagation()}function x5(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function _5(){return"ontouchstart"in window||navigator.maxTouchPoints}var O5=!!(typeof window<"u"&&window.document&&window.document.createElement),P1=0,wb={capture:!1,passive:!1};function Pxe(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,a=R.useRef({}),i=R.useRef(null),o=R.useCallback(function(u){if(O5){var d=document.body,f=d&&d.style;if(r&&E5.forEach(function(v){var E=f&&f[v];a.current[v]=E}),r&&P1<1){var g=parseInt(a.current.paddingRight,10)||0,y=document.body?document.body.clientWidth:0,h=window.innerWidth-y+g||0;Object.keys(T5).forEach(function(v){var E=T5[v];f&&(f[v]=E)}),f&&(f.paddingRight="".concat(h,"px"))}d&&_5()&&(d.addEventListener("touchmove",C5,wb),u&&(u.addEventListener("touchstart",x5,wb),u.addEventListener("touchmove",k5,wb))),P1+=1}},[r]),l=R.useCallback(function(u){if(O5){var d=document.body,f=d&&d.style;P1=Math.max(P1-1,0),r&&P1<1&&E5.forEach(function(g){var y=a.current[g];f&&(f[g]=y)}),d&&_5()&&(d.removeEventListener("touchmove",C5,wb),u&&(u.removeEventListener("touchstart",x5,wb),u.removeEventListener("touchmove",k5,wb)))}},[r]);return R.useEffect(function(){if(t){var u=i.current;return o(u),function(){l(u)}}},[t,o,l]),function(u){i.current=u}}var Axe=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},Nxe={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Mxe(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,a=r===void 0?!0:r,i=e.onBottomArrive,o=e.onBottomLeave,l=e.onTopArrive,u=e.onTopLeave,d=Rxe({isEnabled:a,onBottomArrive:i,onBottomLeave:o,onTopArrive:l,onTopLeave:u}),f=Pxe({isEnabled:n}),g=function(h){d(h),f(h)};return rn(R.Fragment,null,n&&rn("div",{onClick:Axe,css:Nxe}),t(g))}var Ixe={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Dxe=function(t){var n=t.name,r=t.onFocus;return rn("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Ixe,value:"",onChange:function(){}})},$xe=Dxe;function QF(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Lxe(){return QF(/^iPhone/i)}function See(){return QF(/^Mac/i)}function Fxe(){return QF(/^iPad/i)||See()&&navigator.maxTouchPoints>1}function jxe(){return Lxe()||Fxe()}function Uxe(){return See()||jxe()}var Bxe=function(t){return t.label},Wxe=function(t){return t.label},zxe=function(t){return t.value},qxe=function(t){return!!t.isDisabled},Hxe={clearIndicator:_ke,container:gke,control:Ike,dropdownIndicator:kke,group:Fke,groupHeading:Uke,indicatorsContainer:wke,indicatorSeparator:Rke,input:qke,loadingIndicator:Nke,loadingMessage:dke,menu:ake,menuList:lke,menuPortal:hke,multiValue:Kke,multiValueLabel:Xke,multiValueRemove:Qke,noOptionsMessage:cke,option:rxe,placeholder:oxe,singleValue:uxe,valueContainer:yke},Vxe={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Gxe=4,Eee=4,Yxe=38,Kxe=Eee*2,Xxe={baseUnit:Eee,controlHeight:Yxe,menuGutter:Kxe},nA={borderRadius:Gxe,colors:Vxe,spacing:Xxe},Qxe={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:v5(),captureMenuScroll:!v5(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:kxe(),formatGroupLabel:Bxe,getOptionLabel:Wxe,getOptionValue:zxe,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:qxe,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!YCe(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function R5(e,t,n,r){var a=kee(e,t,n),i=xee(e,t,n),o=Cee(e,t),l=Dx(e,t);return{type:"option",data:t,isDisabled:a,isSelected:i,label:o,value:l,index:r}}function Hk(e,t){return e.options.map(function(n,r){if("options"in n){var a=n.options.map(function(o,l){return R5(e,o,t,l)}).filter(function(o){return A5(e,o)});return a.length>0?{type:"group",data:n,options:a,index:r}:void 0}var i=R5(e,n,t,r);return A5(e,i)?i:void 0}).filter(QCe)}function Tee(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,c0(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function P5(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,c0(r.options.map(function(a){return{data:a.data,id:"".concat(t,"-").concat(r.index,"-").concat(a.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function Jxe(e,t){return Tee(Hk(e,t))}function A5(e,t){var n=e.inputValue,r=n===void 0?"":n,a=t.data,i=t.isSelected,o=t.label,l=t.value;return(!Oee(e)||!i)&&_ee(e,{label:o,value:l,data:a},r)}function Zxe(e,t){var n=e.focusedValue,r=e.selectValue,a=r.indexOf(n);if(a>-1){var i=t.indexOf(n);if(i>-1)return n;if(a-1?n:t[0]}var rA=function(t,n){var r,a=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return a||null},Cee=function(t,n){return t.getOptionLabel(n)},Dx=function(t,n){return t.getOptionValue(n)};function kee(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function xee(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Dx(e,t);return n.some(function(a){return Dx(e,a)===r})}function _ee(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Oee=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},t_e=1,Ree=(function(e){tr(n,e);var t=nr(n);function n(r){var a;if(Xn(this,n),a=t.call(this,r),a.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},a.blockOptionHover=!1,a.isComposing=!1,a.commonProps=void 0,a.initialTouchX=0,a.initialTouchY=0,a.openAfterFocus=!1,a.scrollToFocusedOptionOnUpdate=!1,a.userIsDragging=void 0,a.isAppleDevice=Uxe(),a.controlRef=null,a.getControlRef=function(u){a.controlRef=u},a.focusedOptionRef=null,a.getFocusedOptionRef=function(u){a.focusedOptionRef=u},a.menuListRef=null,a.getMenuListRef=function(u){a.menuListRef=u},a.inputRef=null,a.getInputRef=function(u){a.inputRef=u},a.focus=a.focusInput,a.blur=a.blurInput,a.onChange=function(u,d){var f=a.props,g=f.onChange,y=f.name;d.name=y,a.ariaOnChange(u,d),g(u,d)},a.setValue=function(u,d,f){var g=a.props,y=g.closeMenuOnSelect,h=g.isMulti,v=g.inputValue;a.onInputChange("",{action:"set-value",prevInputValue:v}),y&&(a.setState({inputIsHiddenAfterUpdate:!h}),a.onMenuClose()),a.setState({clearFocusValueOnUpdate:!0}),a.onChange(u,{action:d,option:f})},a.selectOption=function(u){var d=a.props,f=d.blurInputOnSelect,g=d.isMulti,y=d.name,h=a.state.selectValue,v=g&&a.isOptionSelected(u,h),E=a.isOptionDisabled(u,h);if(v){var T=a.getOptionValue(u);a.setValue(h.filter(function(C){return a.getOptionValue(C)!==T}),"deselect-option",u)}else if(!E)g?a.setValue([].concat(c0(h),[u]),"select-option",u):a.setValue(u,"select-option");else{a.ariaOnChange(u,{action:"select-option",option:u,name:y});return}f&&a.blurInput()},a.removeValue=function(u){var d=a.props.isMulti,f=a.state.selectValue,g=a.getOptionValue(u),y=f.filter(function(v){return a.getOptionValue(v)!==g}),h=dk(d,y,y[0]||null);a.onChange(h,{action:"remove-value",removedValue:u}),a.focusInput()},a.clearValue=function(){var u=a.state.selectValue;a.onChange(dk(a.props.isMulti,[],null),{action:"clear",removedValues:u})},a.popValue=function(){var u=a.props.isMulti,d=a.state.selectValue,f=d[d.length-1],g=d.slice(0,d.length-1),y=dk(u,g,g[0]||null);f&&a.onChange(y,{action:"pop-value",removedValue:f})},a.getFocusedOptionId=function(u){return rA(a.state.focusableOptionsWithIds,u)},a.getFocusableOptionsWithIds=function(){return P5(Hk(a.props,a.state.selectValue),a.getElementId("option"))},a.getValue=function(){return a.state.selectValue},a.cx=function(){for(var u=arguments.length,d=new Array(u),f=0;fh||y>h}},a.onTouchEnd=function(u){a.userIsDragging||(a.controlRef&&!a.controlRef.contains(u.target)&&a.menuListRef&&!a.menuListRef.contains(u.target)&&a.blurInput(),a.initialTouchX=0,a.initialTouchY=0)},a.onControlTouchEnd=function(u){a.userIsDragging||a.onControlMouseDown(u)},a.onClearIndicatorTouchEnd=function(u){a.userIsDragging||a.onClearIndicatorMouseDown(u)},a.onDropdownIndicatorTouchEnd=function(u){a.userIsDragging||a.onDropdownIndicatorMouseDown(u)},a.handleInputChange=function(u){var d=a.props.inputValue,f=u.currentTarget.value;a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange(f,{action:"input-change",prevInputValue:d}),a.props.menuIsOpen||a.onMenuOpen()},a.onInputFocus=function(u){a.props.onFocus&&a.props.onFocus(u),a.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(a.openAfterFocus||a.props.openMenuOnFocus)&&a.openMenu("first"),a.openAfterFocus=!1},a.onInputBlur=function(u){var d=a.props.inputValue;if(a.menuListRef&&a.menuListRef.contains(document.activeElement)){a.inputRef.focus();return}a.props.onBlur&&a.props.onBlur(u),a.onInputChange("",{action:"input-blur",prevInputValue:d}),a.onMenuClose(),a.setState({focusedValue:null,isFocused:!1})},a.onOptionHover=function(u){if(!(a.blockOptionHover||a.state.focusedOption===u)){var d=a.getFocusableOptions(),f=d.indexOf(u);a.setState({focusedOption:u,focusedOptionId:f>-1?a.getFocusedOptionId(u):null})}},a.shouldHideSelectedOptions=function(){return Oee(a.props)},a.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),a.focus()},a.onKeyDown=function(u){var d=a.props,f=d.isMulti,g=d.backspaceRemovesValue,y=d.escapeClearsValue,h=d.inputValue,v=d.isClearable,E=d.isDisabled,T=d.menuIsOpen,C=d.onKeyDown,k=d.tabSelectsValue,_=d.openMenuOnFocus,A=a.state,P=A.focusedOption,N=A.focusedValue,I=A.selectValue;if(!E&&!(typeof C=="function"&&(C(u),u.defaultPrevented))){switch(a.blockOptionHover=!0,u.key){case"ArrowLeft":if(!f||h)return;a.focusValue("previous");break;case"ArrowRight":if(!f||h)return;a.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(N)a.removeValue(N);else{if(!g)return;f?a.popValue():v&&a.clearValue()}break;case"Tab":if(a.isComposing||u.shiftKey||!T||!k||!P||_&&a.isOptionSelected(P,I))return;a.selectOption(P);break;case"Enter":if(u.keyCode===229)break;if(T){if(!P||a.isComposing)return;a.selectOption(P);break}return;case"Escape":T?(a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange("",{action:"menu-close",prevInputValue:h}),a.onMenuClose()):v&&y&&a.clearValue();break;case" ":if(h)return;if(!T){a.openMenu("first");break}if(!P)return;a.selectOption(P);break;case"ArrowUp":T?a.focusOption("up"):a.openMenu("last");break;case"ArrowDown":T?a.focusOption("down"):a.openMenu("first");break;case"PageUp":if(!T)return;a.focusOption("pageup");break;case"PageDown":if(!T)return;a.focusOption("pagedown");break;case"Home":if(!T)return;a.focusOption("first");break;case"End":if(!T)return;a.focusOption("last");break;default:return}u.preventDefault()}},a.state.instancePrefix="react-select-"+(a.props.instanceId||++t_e),a.state.selectValue=m5(r.value),r.menuIsOpen&&a.state.selectValue.length){var i=a.getFocusableOptionsWithIds(),o=a.buildFocusableOptions(),l=o.indexOf(a.state.selectValue[0]);a.state.focusableOptionsWithIds=i,a.state.focusedOption=o[l],a.state.focusedOptionId=rA(i,o[l])}return a}return Qn(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&g5(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isDisabled,l=i.menuIsOpen,u=this.state.isFocused;(u&&!o&&a.isDisabled||u&&l&&!a.menuIsOpen)&&this.focusInput(),u&&o&&!a.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!o&&a.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(g5(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(a,i){this.props.onInputChange(a,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(a){var i=this,o=this.state,l=o.selectValue,u=o.isFocused,d=this.buildFocusableOptions(),f=a==="first"?0:d.length-1;if(!this.props.isMulti){var g=d.indexOf(l[0]);g>-1&&(f=g)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[f],focusedOptionId:this.getFocusedOptionId(d[f])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(a){var i=this.state,o=i.selectValue,l=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=o.indexOf(l);l||(u=-1);var d=o.length-1,f=-1;if(o.length){switch(a){case"previous":u===0?f=0:u===-1?f=d:f=u-1;break;case"next":u>-1&&u0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,o=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var u=0,d=l.indexOf(o);o||(d=-1),a==="up"?u=d>0?d-1:l.length-1:a==="down"?u=(d+1)%l.length:a==="pageup"?(u=d-i,u<0&&(u=0)):a==="pagedown"?(u=d+i,u>l.length-1&&(u=l.length-1)):a==="last"&&(u=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[u],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[u])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(nA):Jt(Jt({},nA),this.props.theme):nA})},{key:"getCommonProps",value:function(){var a=this.clearValue,i=this.cx,o=this.getStyles,l=this.getClassNames,u=this.getValue,d=this.selectOption,f=this.setValue,g=this.props,y=g.isMulti,h=g.isRtl,v=g.options,E=this.hasValue();return{clearValue:a,cx:i,getStyles:o,getClassNames:l,getValue:u,hasValue:E,isMulti:y,isRtl:h,options:v,selectOption:d,selectProps:g,setValue:f,theme:this.getTheme()}}},{key:"hasValue",value:function(){var a=this.state.selectValue;return a.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var a=this.props,i=a.isClearable,o=a.isMulti;return i===void 0?o:i}},{key:"isOptionDisabled",value:function(a,i){return kee(this.props,a,i)}},{key:"isOptionSelected",value:function(a,i){return xee(this.props,a,i)}},{key:"filterOption",value:function(a,i){return _ee(this.props,a,i)}},{key:"formatOptionLabel",value:function(a,i){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(a,{context:i,inputValue:o,selectValue:l})}else return this.getOptionLabel(a)}},{key:"formatGroupLabel",value:function(a){return this.props.formatGroupLabel(a)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var a=this.props,i=a.isDisabled,o=a.isSearchable,l=a.inputId,u=a.inputValue,d=a.tabIndex,f=a.form,g=a.menuIsOpen,y=a.required,h=this.getComponents(),v=h.Input,E=this.state,T=E.inputIsHidden,C=E.ariaSelection,k=this.commonProps,_=l||this.getElementId("input"),A=Jt(Jt(Jt({"aria-autocomplete":"list","aria-expanded":g,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":y,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},g&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(C==null?void 0:C.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?R.createElement(v,vt({},k,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:_,innerRef:this.getInputRef,isDisabled:i,isHidden:T,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:f,type:"text",value:u},A)):R.createElement(_xe,vt({id:_,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Mx,onFocus:this.onInputFocus,disabled:i,tabIndex:d,inputMode:"none",form:f,value:""},A))})},{key:"renderPlaceholderOrValue",value:function(){var a=this,i=this.getComponents(),o=i.MultiValue,l=i.MultiValueContainer,u=i.MultiValueLabel,d=i.MultiValueRemove,f=i.SingleValue,g=i.Placeholder,y=this.commonProps,h=this.props,v=h.controlShouldRenderValue,E=h.isDisabled,T=h.isMulti,C=h.inputValue,k=h.placeholder,_=this.state,A=_.selectValue,P=_.focusedValue,N=_.isFocused;if(!this.hasValue()||!v)return C?null:R.createElement(g,vt({},y,{key:"placeholder",isDisabled:E,isFocused:N,innerProps:{id:this.getElementId("placeholder")}}),k);if(T)return A.map(function(L,j){var z=L===P,Q="".concat(a.getOptionLabel(L),"-").concat(a.getOptionValue(L));return R.createElement(o,vt({},y,{components:{Container:l,Label:u,Remove:d},isFocused:z,isDisabled:E,key:Q,index:j,removeProps:{onClick:function(){return a.removeValue(L)},onTouchEnd:function(){return a.removeValue(L)},onMouseDown:function(re){re.preventDefault()}},data:L}),a.formatOptionLabel(L,"value"))});if(C)return null;var I=A[0];return R.createElement(f,vt({},y,{data:I,isDisabled:E}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var a=this.getComponents(),i=a.ClearIndicator,o=this.commonProps,l=this.props,u=l.isDisabled,d=l.isLoading,f=this.state.isFocused;if(!this.isClearable()||!i||u||!this.hasValue()||d)return null;var g={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(i,vt({},o,{innerProps:g,isFocused:f}))}},{key:"renderLoadingIndicator",value:function(){var a=this.getComponents(),i=a.LoadingIndicator,o=this.commonProps,l=this.props,u=l.isDisabled,d=l.isLoading,f=this.state.isFocused;if(!i||!d)return null;var g={"aria-hidden":"true"};return R.createElement(i,vt({},o,{innerProps:g,isDisabled:u,isFocused:f}))}},{key:"renderIndicatorSeparator",value:function(){var a=this.getComponents(),i=a.DropdownIndicator,o=a.IndicatorSeparator;if(!i||!o)return null;var l=this.commonProps,u=this.props.isDisabled,d=this.state.isFocused;return R.createElement(o,vt({},l,{isDisabled:u,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var a=this.getComponents(),i=a.DropdownIndicator;if(!i)return null;var o=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(i,vt({},o,{innerProps:d,isDisabled:l,isFocused:u}))}},{key:"renderMenu",value:function(){var a=this,i=this.getComponents(),o=i.Group,l=i.GroupHeading,u=i.Menu,d=i.MenuList,f=i.MenuPortal,g=i.LoadingMessage,y=i.NoOptionsMessage,h=i.Option,v=this.commonProps,E=this.state.focusedOption,T=this.props,C=T.captureMenuScroll,k=T.inputValue,_=T.isLoading,A=T.loadingMessage,P=T.minMenuHeight,N=T.maxMenuHeight,I=T.menuIsOpen,L=T.menuPlacement,j=T.menuPosition,z=T.menuPortalTarget,Q=T.menuShouldBlockScroll,le=T.menuShouldScrollIntoView,re=T.noOptionsMessage,ge=T.onMenuScrollToTop,me=T.onMenuScrollToBottom;if(!I)return null;var W=function(J,ee){var Z=J.type,ue=J.data,ke=J.isDisabled,fe=J.isSelected,xe=J.label,Ie=J.value,qe=E===ue,tt=ke?void 0:function(){return a.onOptionHover(ue)},Ge=ke?void 0:function(){return a.selectOption(ue)},at="".concat(a.getElementId("option"),"-").concat(ee),Et={id:at,onClick:Ge,onMouseMove:tt,onMouseOver:tt,tabIndex:-1,role:"option","aria-selected":a.isAppleDevice?void 0:fe};return R.createElement(h,vt({},v,{innerProps:Et,data:ue,isDisabled:ke,isSelected:fe,key:at,label:xe,type:Z,value:Ie,isFocused:qe,innerRef:qe?a.getFocusedOptionRef:void 0}),a.formatOptionLabel(J.data,"menu"))},G;if(this.hasOptions())G=this.getCategorizedOptions().map(function(ie){if(ie.type==="group"){var J=ie.data,ee=ie.options,Z=ie.index,ue="".concat(a.getElementId("group"),"-").concat(Z),ke="".concat(ue,"-heading");return R.createElement(o,vt({},v,{key:ue,data:J,options:ee,Heading:l,headingProps:{id:ke,data:ie.data},label:a.formatGroupLabel(ie.data)}),ie.options.map(function(fe){return W(fe,"".concat(Z,"-").concat(fe.index))}))}else if(ie.type==="option")return W(ie,"".concat(ie.index))});else if(_){var q=A({inputValue:k});if(q===null)return null;G=R.createElement(g,v,q)}else{var ce=re({inputValue:k});if(ce===null)return null;G=R.createElement(y,v,ce)}var H={minMenuHeight:P,maxMenuHeight:N,menuPlacement:L,menuPosition:j,menuShouldScrollIntoView:le},Y=R.createElement(ike,vt({},v,H),function(ie){var J=ie.ref,ee=ie.placerProps,Z=ee.placement,ue=ee.maxHeight;return R.createElement(u,vt({},v,H,{innerRef:J,innerProps:{onMouseDown:a.onMenuMouseDown,onMouseMove:a.onMenuMouseMove},isLoading:_,placement:Z}),R.createElement(Mxe,{captureEnabled:C,onTopArrive:ge,onBottomArrive:me,lockEnabled:Q},function(ke){return R.createElement(d,vt({},v,{innerRef:function(xe){a.getMenuListRef(xe),ke(xe)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:a.getElementId("listbox")},isLoading:_,maxHeight:ue,focusedOption:E}),G)}))});return z||j==="fixed"?R.createElement(f,vt({},v,{appendTo:z,controlElement:this.controlRef,menuPlacement:L,menuPosition:j}),Y):Y}},{key:"renderFormField",value:function(){var a=this,i=this.props,o=i.delimiter,l=i.isDisabled,u=i.isMulti,d=i.name,f=i.required,g=this.state.selectValue;if(f&&!this.hasValue()&&!l)return R.createElement($xe,{name:d,onFocus:this.onValueInputFocus});if(!(!d||l))if(u)if(o){var y=g.map(function(E){return a.getOptionValue(E)}).join(o);return R.createElement("input",{name:d,type:"hidden",value:y})}else{var h=g.length>0?g.map(function(E,T){return R.createElement("input",{key:"i-".concat(T),name:d,type:"hidden",value:a.getOptionValue(E)})}):R.createElement("input",{name:d,type:"hidden",value:""});return R.createElement("div",null,h)}else{var v=g[0]?this.getOptionValue(g[0]):"";return R.createElement("input",{name:d,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var a=this.commonProps,i=this.state,o=i.ariaSelection,l=i.focusedOption,u=i.focusedValue,d=i.isFocused,f=i.selectValue,g=this.getFocusableOptions();return R.createElement(Sxe,vt({},a,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:l,focusedValue:u,isFocused:d,selectValue:f,focusableOptions:g,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var a=this.getComponents(),i=a.Control,o=a.IndicatorsContainer,l=a.SelectContainer,u=a.ValueContainer,d=this.props,f=d.className,g=d.id,y=d.isDisabled,h=d.menuIsOpen,v=this.state.isFocused,E=this.commonProps=this.getCommonProps();return R.createElement(l,vt({},E,{className:f,innerProps:{id:g,onKeyDown:this.onKeyDown},isDisabled:y,isFocused:v}),this.renderLiveRegion(),R.createElement(i,vt({},E,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:y,isFocused:v,menuIsOpen:h}),R.createElement(u,vt({},E,{isDisabled:y}),this.renderPlaceholderOrValue(),this.renderInput()),R.createElement(o,vt({},E,{isDisabled:y}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(a,i){var o=i.prevProps,l=i.clearFocusValueOnUpdate,u=i.inputIsHiddenAfterUpdate,d=i.ariaSelection,f=i.isFocused,g=i.prevWasFocused,y=i.instancePrefix,h=a.options,v=a.value,E=a.menuIsOpen,T=a.inputValue,C=a.isMulti,k=m5(v),_={};if(o&&(v!==o.value||h!==o.options||E!==o.menuIsOpen||T!==o.inputValue)){var A=E?Jxe(a,k):[],P=E?P5(Hk(a,k),"".concat(y,"-option")):[],N=l?Zxe(i,k):null,I=e_e(i,A),L=rA(P,I);_={selectValue:k,focusedOption:I,focusedOptionId:L,focusableOptionsWithIds:P,focusedValue:N,clearFocusValueOnUpdate:!1}}var j=u!=null&&a!==o?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},z=d,Q=f&&g;return f&&!Q&&(z={value:dk(C,k,k[0]||null),options:k,action:"initial-input-focus"},Q=!g),(d==null?void 0:d.action)==="initial-input-focus"&&(z=null),Jt(Jt(Jt({},_),j),{},{prevProps:a,ariaSelection:z,prevWasFocused:Q})}}]),n})(R.Component);Ree.defaultProps=Qxe;var n_e=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function r_e(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,a=r===void 0?!1:r,i=e.defaultValue,o=i===void 0?null:i,l=e.inputValue,u=e.menuIsOpen,d=e.onChange,f=e.onInputChange,g=e.onMenuClose,y=e.onMenuOpen,h=e.value,v=Ru(e,n_e),E=R.useState(l!==void 0?l:n),T=mi(E,2),C=T[0],k=T[1],_=R.useState(u!==void 0?u:a),A=mi(_,2),P=A[0],N=A[1],I=R.useState(h!==void 0?h:o),L=mi(I,2),j=L[0],z=L[1],Q=R.useCallback(function(q,ce){typeof d=="function"&&d(q,ce),z(q)},[d]),le=R.useCallback(function(q,ce){var H;typeof f=="function"&&(H=f(q,ce)),k(H!==void 0?H:q)},[f]),re=R.useCallback(function(){typeof y=="function"&&y(),N(!0)},[y]),ge=R.useCallback(function(){typeof g=="function"&&g(),N(!1)},[g]),me=l!==void 0?l:C,W=u!==void 0?u:P,G=h!==void 0?h:j;return Jt(Jt({},v),{},{inputValue:me,menuIsOpen:W,onChange:Q,onInputChange:le,onMenuClose:ge,onMenuOpen:re,value:G})}var a_e=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function i_e(e){var t=e.defaultOptions,n=t===void 0?!1:t,r=e.cacheOptions,a=r===void 0?!1:r,i=e.loadOptions;e.options;var o=e.isLoading,l=o===void 0?!1:o,u=e.onInputChange,d=e.filterOption,f=d===void 0?null:d,g=Ru(e,a_e),y=g.inputValue,h=R.useRef(void 0),v=R.useRef(!1),E=R.useState(Array.isArray(n)?n:void 0),T=mi(E,2),C=T[0],k=T[1],_=R.useState(typeof y<"u"?y:""),A=mi(_,2),P=A[0],N=A[1],I=R.useState(n===!0),L=mi(I,2),j=L[0],z=L[1],Q=R.useState(void 0),le=mi(Q,2),re=le[0],ge=le[1],me=R.useState([]),W=mi(me,2),G=W[0],q=W[1],ce=R.useState(!1),H=mi(ce,2),Y=H[0],ie=H[1],J=R.useState({}),ee=mi(J,2),Z=ee[0],ue=ee[1],ke=R.useState(void 0),fe=mi(ke,2),xe=fe[0],Ie=fe[1],qe=R.useState(void 0),tt=mi(qe,2),Ge=tt[0],at=tt[1];a!==Ge&&(ue({}),at(a)),n!==xe&&(k(Array.isArray(n)?n:void 0),Ie(n)),R.useEffect(function(){return v.current=!0,function(){v.current=!1}},[]);var Et=R.useCallback(function(Rt,cn){if(!i)return cn();var qt=i(Rt,cn);qt&&typeof qt.then=="function"&&qt.then(cn,function(){return cn()})},[i]);R.useEffect(function(){n===!0&&Et(P,function(Rt){v.current&&(k(Rt||[]),z(!!h.current))})},[]);var kt=R.useCallback(function(Rt,cn){var qt=zCe(Rt,cn,u);if(!qt){h.current=void 0,N(""),ge(""),q([]),z(!1),ie(!1);return}if(a&&Z[qt])N(qt),ge(qt),q(Z[qt]),z(!1),ie(!1);else{var Wt=h.current={};N(qt),z(!0),ie(!re),Et(qt,function(Oe){v&&Wt===h.current&&(h.current=void 0,z(!1),ge(qt),q(Oe||[]),ie(!1),ue(Oe?Jt(Jt({},Z),{},wt({},qt,Oe)):Z))})}},[a,Et,re,Z,u]),xt=Y?[]:P&&re?G:C||[];return Jt(Jt({},g),{},{options:xt,isLoading:j||l,onInputChange:kt,filterOption:f})}var o_e=R.forwardRef(function(e,t){var n=i_e(e),r=r_e(n);return R.createElement(Ree,vt({ref:t},r))}),s_e=o_e;function l_e(e,t){return t?t(e):{name:{operation:"contains",value:e}}}function JF(e){return w.jsx(da,{...e,multiple:!0})}function da(e){var y,h,v;const t=At(),n=Bs();let[r,a]=R.useState("");if(!e.querySource)return w.jsx("div",{children:"No query source to render"});const{query:i,keyExtractor:o}=e.querySource({queryClient:n,query:{itemsPerPage:20,jsonQuery:l_e(r,e.jsonQuery),withPreloads:e.withPreloads},queryOptions:{refetchOnWindowFocus:!1}}),l=e.keyExtractor||o||(E=>JSON.stringify(E)),u=(h=(y=i==null?void 0:i.data)==null?void 0:y.data)==null?void 0:h.items,d=E=>{var T;if((T=e==null?void 0:e.formEffect)!=null&&T.form){const{formEffect:C}=e,k={...C.form.values};if(C.beforeSet&&(E=C.beforeSet(E)),Ta.set(k,C.field,E),Ta.isObject(E)&&E.uniqueId&&C.skipFirebackMetaData!==!0&&Ta.set(k,C.field+"Id",E.uniqueId),Ta.isArray(E)&&C.skipFirebackMetaData!==!0){const _=C.field+"ListId";Ta.set(k,_,(E||[]).map(A=>A.uniqueId))}C==null||C.form.setValues(k)}e.onChange&&typeof e.onChange=="function"&&e.onChange(E)};let f=e.value;if(f===void 0&&((v=e.formEffect)!=null&&v.form)){const E=Ta.get(e.formEffect.form.values,e.formEffect.field);E!==void 0&&(f=E)}typeof f!="object"&&l&&f!==void 0&&(f=u.find(E=>l(E)===f));const g=E=>new Promise(T=>{setTimeout(()=>{T(u)},100)});return w.jsxs(rf,{...e,children:[e.children,e.convertToNative?w.jsxs("select",{value:f,multiple:e.multiple,onChange:E=>{const T=u==null?void 0:u.find(C=>C.uniqueId===E.target.value);d(T)},className:oa("form-select",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),disabled:e.disabled,"aria-label":"Default select example",children:[w.jsx("option",{value:"",children:t.selectPlaceholder},void 0),u==null?void 0:u.filter(Boolean).map(E=>{const T=l(E);return w.jsx("option",{value:T,children:e.fnLabelFormat(E)},T)})]}):w.jsx(w.Fragment,{children:w.jsx(s_e,{value:f,onChange:E=>{d(E)},isMulti:e.multiple,classNames:{container(E){return oa(e.errorMessage&&" form-control form-control-no-padding is-invalid",e.validMessage&&"is-valid")},control(E){return oa("form-control form-control-no-padding")},menu(E){return"react-select-menu-area"}},isSearchable:!0,defaultOptions:u,placeholder:t.searchplaceholder,noOptionsMessage:()=>t.noOptions,getOptionValue:l,loadOptions:g,formatOptionLabel:e.fnLabelFormat,onInputChange:a})})]})}const u_e=({form:e,isEditing:t})=>{const{options:n}=R.useContext(rt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt($E);return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.name,onChange:u=>i(vi.Fields.name,u,!1),errorMessage:o.name,label:l.capabilities.name,hint:l.capabilities.nameHint}),w.jsx(In,{value:r.description,onChange:u=>i(vi.Fields.description,u,!1),errorMessage:o.description,label:l.capabilities.description,hint:l.capabilities.descriptionHint})]})};function Pee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/capability/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*fireback.CapabilityEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function c_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/capability".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*fireback.CapabilityEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function d_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/capability".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*fireback.CapabilityEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const N5=({data:e})=>{const t=Kt($E),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=Pee({query:{uniqueId:r}}),l=c_e({queryClient:a}),u=d_e({queryClient:a});return w.jsx(Bo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(vi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return vi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:u_e,onEditTitle:t.capabilities.editCapability,onCreateTitle:t.capabilities.newCapability,data:e})},io=({children:e,getSingleHook:t,editEntityHandler:n,noBack:r,disableOnGetFailed:a})=>{var l;const{router:i,locale:o}=$r({});return _he(n?()=>n({locale:o,router:i}):void 0,Ir.EditEntity),jQ(r!==!0?()=>i.goBack():null,Ir.CommonBack),w.jsxs(w.Fragment,{children:[w.jsx(Il,{query:t.query}),a===!0&&((l=t==null?void 0:t.query)!=null&&l.isError)?null:w.jsx(w.Fragment,{children:e})]})};function oo({entity:e,fields:t,title:n,description:r}){var i;const a=At();return w.jsx("div",{className:"mt-4",children:w.jsxs("div",{className:"general-entity-view ",children:[n?w.jsx("h1",{children:n}):null,r?w.jsx("p",{children:r}):null,w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:a.table.info}),w.jsx("div",{className:"field-value",children:a.table.value})]}),(e==null?void 0:e.uniqueId)&&w.jsxs("div",{className:"entity-view-row entity-view-body",children:[w.jsx("div",{className:"field-info",children:a.table.uniqueId}),w.jsx("div",{className:"field-value",children:e.uniqueId})]}),(i=t||[])==null?void 0:i.map((o,l)=>{var d;let u=o.elem===void 0?"-":o.elem;return o.elem===!0&&(u=a.common.yes),o.elem===!1&&(u=a.common.no),o.elem===null&&(u=w.jsx("i",{children:w.jsx("b",{children:a.common.isNUll})})),w.jsxs("div",{className:"entity-view-row entity-view-body",children:[w.jsx("div",{className:"field-info",children:o.label}),w.jsxs("div",{className:"field-value","data-test-id":((d=o.label)==null?void 0:d.toString())||"",children:[u," ",w.jsx(QJ,{value:u})]})]},l)}),(e==null?void 0:e.createdFormatted)&&w.jsxs("div",{className:"entity-view-row entity-view-body",children:[w.jsx("div",{className:"field-info",children:a.table.created}),w.jsx("div",{className:"field-value",children:e.createdFormatted})]})]})})}const f_e=()=>{var a;const{uniqueId:e}=$r({}),t=Pee({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt($E);return w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:({locale:i,router:o})=>{o.push(vi.Navigation.edit(e))},getSingleHook:t,children:w.jsx(oo,{entity:n,fields:[{elem:n==null?void 0:n.name,label:r.capabilities.name},{elem:n==null?void 0:n.description,label:r.capabilities.description}]})})})};function p_e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(N5,{}),path:vi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(f_e,{}),path:vi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(N5,{}),path:vi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(A0e,{}),path:vi.Navigation.Rquery})]})}function h_e(e){const t=R.useContext(m_e);R.useEffect(()=>{const n=t.listenFiles(e);return()=>t.removeSubscription(n)},[])}const m_e=ze.createContext({listenFiles(){return""},removeSubscription(){},refs:[]});function Aee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/files".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.FileEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Aee.UKEY="*abac.FileEntity";const g_e=e=>[{name:Pd.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:Pd.Fields.name,title:e.drive.title,width:200},{name:Pd.Fields.size,title:e.drive.size,width:100},{name:Pd.Fields.virtualPath,title:e.drive.virtualPath,width:100},{name:Pd.Fields.type,title:e.drive.type,width:100}],v_e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:g_e(e),queryHook:Aee,uniqueIdHrefHandler:t=>Pd.Navigation.single(t)})})};function y_e(e,t){const n=[];let r=!1;for(let a of e)a.uploadId===t.uploadId?(r=!0,n.push(t)):n.push(a);return r===!1&&n.push(t),n}function Nee(){const{session:e,selectedUrw:t,activeUploads:n,setActiveUploads:r}=R.useContext(rt),a=(l,u)=>o([new File([l],u)]),i=(l,u=!1)=>new Promise((d,f)=>{const g=new ohe(l,{endpoint:kr.REMOTE_SERVICE+"tus",onBeforeRequest(y){y.setHeader("authorization",e.token),y.setHeader("workspace-id",t==null?void 0:t.workspaceId)},headers:{},metadata:{filename:l.name,path:"/database/users",filetype:l.type},onSuccess(){var h;const y=(h=g.url)==null?void 0:h.match(/([a-z0-9]){10,}/gi);d(`${y}`)},onError(y){f(y)},onProgress(y,h){var E,T;const v=(T=(E=g.url)==null?void 0:E.match(/([a-z0-9]){10,}/gi))==null?void 0:T.toString();if(v){const C={uploadId:v,bytesSent:y,filename:l.name,bytesTotal:h};u!==!0&&r(k=>y_e(k,C))}}});g.start()}),o=(l,u=!1)=>l.map(d=>i(d));return{upload:o,activeUploads:n,uploadBlob:a,uploadSingle:i}}const M5=()=>{const e=At(),{upload:t}=Nee(),n=Bs(),r=i=>{Promise.all(t(i)).then(o=>{n.invalidateQueries("*drive.FileEntity")}).catch(o=>{alert(o)})};h_e({label:"Add files or documents to drive",extentions:["*"],onCaptureFile(i){r(i)}});const a=()=>{var i=document.createElement("input");i.type="file",i.onchange=o=>{r(Array.from(o.target.files))},i.click()};return w.jsx(jo,{pageTitle:e.drive.driveTitle,newEntityHandler:()=>{a()},children:w.jsx(v_e,{})})};function b_e({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/file/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.FileEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}const w_e=()=>{var o;const t=xr().query.uniqueId,n=b_e({query:{uniqueId:t}});let r=(o=n.query.data)==null?void 0:o.data;gh((r==null?void 0:r.name)||"");const a=At(),{directPath:i}=VQ();return w.jsx(w.Fragment,{children:w.jsx(io,{getSingleHook:n,children:w.jsx(oo,{entity:r,fields:[{label:a.drive.name,elem:r==null?void 0:r.name},{label:a.drive.size,elem:r==null?void 0:r.size},{label:a.drive.type,elem:r==null?void 0:r.type},{label:a.drive.virtualPath,elem:r==null?void 0:r.virtualPath},{label:a.drive.viewPath,elem:w.jsx("pre",{children:i(r)})}]})})})};function S_e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{path:"drive",element:w.jsx(M5,{})}),w.jsx(mt,{path:"drives",element:w.jsx(M5,{})}),w.jsx(mt,{path:"file/:uniqueId",element:w.jsx(w_e,{})})]})}function Mee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/email-provider/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.EmailProviderEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function E_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/email-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.EmailProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function T_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/email-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.EmailProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function C_e(e,t){const n=Ta.flatMapDeep(t,(r,a,i)=>{let o=[],l=a;if(r&&typeof r=="object"&&!r.value){const u=Object.keys(r);if(u.length)for(let d of u)o.push({name:`${l}.${d}`,filter:r[d]})}else o.push({name:l,filter:r});return o});return e.filter((r,a)=>{for(let i of n){const o=Ta.get(r,i.name);if(o)switch(i.filter.operation){case"equal":if(o!==i.filter.value)return!1;break;case"contains":if(!o.includes(i.filter.value))return!1;break;case"notContains":if(o.includes(i.filter.value))return!1;break;case"endsWith":if(!o.endsWith(i.filter.value))return!1;break;case"startsWith":if(!o.startsWith(i.filter.value))return!1;break;case"greaterThan":if(oi.filter.value)return!1;break;case"lessThanOrEqual":if(o>=i.filter.value)return!1;break;case"notEqual":if(o===i.filter.value)return!1;break}}return!0})}function zs(e){return t=>k_e({items:e,...t})}function k_e(e){var i,o;let t=((i=e.query)==null?void 0:i.itemsPerPage)||2,n=e.query.startIndex||0,r=e.items||[];return(o=e.query)!=null&&o.jsonQuery&&(r=C_e(r,e.query.jsonQuery)),r=r.slice(n,n+t),{query:{data:{data:{items:r,totalItems:r.length,totalAvailableItems:r.length}},dataUpdatedAt:0,error:null,errorUpdateCount:0,errorUpdatedAt:0,failureCount:0,isError:!1,isFetched:!1,isFetchedAfterMount:!1,isFetching:!1,isIdle:!1,isLoading:!1,isLoadingError:!1,isPlaceholderData:!1,isPreviousData:!1,isRefetchError:!1,isRefetching:!1,isStale:!1,remove(){console.log("Use as query has not implemented this.")},refetch(){return console.log("Refetch is not working actually."),Promise.resolve(void 0)},isSuccess:!0,status:"success"},items:r}}const x_e=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a}=e,i=At(),l=zs([{label:"Sendgrid",value:"sendgrid"}]);return w.jsxs(w.Fragment,{children:[w.jsx(da,{formEffect:{form:e,field:gi.Fields.type,beforeSet(u){return u.value}},querySource:l,errorMessage:a.type,label:i.mailProvider.type,hint:i.mailProvider.typeHint}),w.jsx(In,{value:n.apiKey,autoFocus:!t,onChange:u=>r(gi.Fields.apiKey,u,!1),dir:"ltr",errorMessage:a.apiKey,label:i.mailProvider.apiKey,hint:i.mailProvider.apiKeyHint})]})},I5=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,t:a,locale:i}=$r({data:e}),o=Mee({query:{uniqueId:n}}),l=T_e({queryClient:r}),u=E_e({queryClient:r});return w.jsx(Bo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(gi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return gi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:x_e,onEditTitle:a.fb.editMailProvider,onCreateTitle:a.fb.newMailProvider,data:e})};class rE extends wn{constructor(...t){super(...t),this.children=void 0,this.thirdPartyVerifier=void 0,this.type=void 0,this.user=void 0,this.value=void 0,this.totpSecret=void 0,this.totpConfirmed=void 0,this.password=void 0,this.confirmed=void 0,this.accessToken=void 0}}rE.Navigation={edit(e,t){return`${t?"/"+t:".."}/passport/edit/${e}`},create(e){return`${e?"/"+e:".."}/passport/new`},single(e,t){return`${t?"/"+t:".."}/passport/${e}`},query(e={},t){return`${t?"/"+t:".."}/passports`},Redit:"passport/edit/:uniqueId",Rcreate:"passport/new",Rsingle:"passport/:uniqueId",Rquery:"passports"};rE.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"passport",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"thirdPartyVerifier",description:"When user creates account via oauth services such as google, it's essential to set the provider and do not allow passwordless logins if it's not via that specific provider.",type:"string",default:!1,computedType:"string",gormMap:{}},{name:"type",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"user",type:"one",target:"UserEntity",computedType:"UserEntity",gormMap:{}},{name:"value",type:"string",validate:"required",computedType:"string",gorm:"unique",gormMap:{}},{name:"totpSecret",description:"Store the secret of 2FA using time based dual factor authentication here for this specific passport. If set, during authorization will be asked.",type:"string",computedType:"string",gormMap:{}},{name:"totpConfirmed",description:"Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"password",type:"string",json:"-",yaml:"-",computedType:"string",gormMap:{}},{name:"confirmed",type:"bool?",computedType:"boolean",gormMap:{}},{name:"accessToken",type:"string",computedType:"string",gormMap:{}}],description:"Represent a mean to login in into the system, each user could have multiple passport (email, phone) and authenticate into the system."};rE.Fields={...wn.Fields,thirdPartyVerifier:"thirdPartyVerifier",type:"type",user$:"user",user:ia.Fields,value:"value",totpSecret:"totpSecret",totpConfirmed:"totpConfirmed",password:"password",confirmed:"confirmed",accessToken:"accessToken"};async function qs(e,t,n){let r=e.toString(),a=t||{},i,o=fetch;return n&&([r,a]=await n.apply(r,a),n.fetchOverrideFn&&(o=n.fetchOverrideFn)),i=await o(r,a),n&&(i=await n.handle(i)),i}function __e(e){return typeof e=="function"&&e.prototype&&e.prototype.constructor===e}async function Hs(e,t,n,r){const a=e.headers.get("content-type")||"",i=e.headers.get("content-disposition")||"";if(a.includes("text/event-stream"))return O_e(e,n,r);if(i.includes("attachment")||!a.includes("json")&&!a.startsWith("text/"))e.result=e.body;else if(a.includes("application/json")){const o=await e.json();t?__e(t)?e.result=new t(o):e.result=t(o):e.result=o}else e.result=await e.text();return{done:Promise.resolve(),response:e}}const O_e=(e,t,n)=>{if(!e.body)throw new Error("SSE requires readable body");const r=e.body.getReader(),a=new TextDecoder;let i="";const o=new Promise((l,u)=>{function d(){r.read().then(({done:f,value:g})=>{if(n!=null&&n.aborted)return r.cancel(),l();if(f)return l();i+=a.decode(g,{stream:!0});const y=i.split(` + +`);i=y.pop()||"";for(const h of y){let v="",E="message";if(h.split(` +`).forEach(T=>{T.startsWith("data:")?v+=T.slice(5).trim():T.startsWith("event:")&&(E=T.slice(6).trim())}),v){if(v==="[DONE]")return l();t==null||t(new MessageEvent(E,{data:v}))}}d()}).catch(f=>{f.name==="AbortError"?l():u(f)})}d()});return{response:e,done:o}};class ZF{constructor(t="",n={},r,a,i=null){this.baseUrl=t,this.defaultHeaders=n,this.requestInterceptor=r,this.responseInterceptor=a,this.fetchOverrideFn=i}async apply(t,n){return/^https?:\/\//.test(t)||(t=this.baseUrl+t),n.headers={...this.defaultHeaders,...n.headers||{}},this.requestInterceptor?this.requestInterceptor(t,n):[t,n]}async handle(t){return this.responseInterceptor?this.responseInterceptor(t):t}clone(t){return new ZF((t==null?void 0:t.baseUrl)??this.baseUrl,{...this.defaultHeaders,...(t==null?void 0:t.defaultHeaders)||{}},(t==null?void 0:t.requestInterceptor)??this.requestInterceptor,(t==null?void 0:t.responseInterceptor)??this.responseInterceptor)}}function Wd(e,t){const n={};for(const[r,a]of Object.entries(t))typeof a=="string"?n[r]=`${e}.${a}`:typeof a=="object"&&a!==null&&(n[r]=a);return n}function ba(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var R_e=0;function Hv(e){return"__private_"+R_e+++"_"+e}var ld=Hv("passport"),Dm=Hv("token"),$m=Hv("exchangeKey"),ud=Hv("userWorkspaces"),cd=Hv("user"),Lm=Hv("userId"),aA=Hv("isJsonAppliable");class Dr{get passport(){return ba(this,ld)[ld]}set passport(t){t instanceof rE?ba(this,ld)[ld]=t:ba(this,ld)[ld]=new rE(t)}setPassport(t){return this.passport=t,this}get token(){return ba(this,Dm)[Dm]}set token(t){ba(this,Dm)[Dm]=String(t)}setToken(t){return this.token=t,this}get exchangeKey(){return ba(this,$m)[$m]}set exchangeKey(t){ba(this,$m)[$m]=String(t)}setExchangeKey(t){return this.exchangeKey=t,this}get userWorkspaces(){return ba(this,ud)[ud]}set userWorkspaces(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof Kb?ba(this,ud)[ud]=t:ba(this,ud)[ud]=t.map(n=>new Kb(n)))}setUserWorkspaces(t){return this.userWorkspaces=t,this}get user(){return ba(this,cd)[cd]}set user(t){t instanceof ia?ba(this,cd)[cd]=t:ba(this,cd)[cd]=new ia(t)}setUser(t){return this.user=t,this}get userId(){return ba(this,Lm)[Lm]}set userId(t){const n=typeof t=="string"||t===void 0||t===null;ba(this,Lm)[Lm]=n?t:String(t)}setUserId(t){return this.userId=t,this}constructor(t=void 0){if(Object.defineProperty(this,aA,{value:P_e}),Object.defineProperty(this,ld,{writable:!0,value:void 0}),Object.defineProperty(this,Dm,{writable:!0,value:""}),Object.defineProperty(this,$m,{writable:!0,value:""}),Object.defineProperty(this,ud,{writable:!0,value:[]}),Object.defineProperty(this,cd,{writable:!0,value:void 0}),Object.defineProperty(this,Lm,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(ba(this,aA)[aA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.passport!==void 0&&(this.passport=n.passport),n.token!==void 0&&(this.token=n.token),n.exchangeKey!==void 0&&(this.exchangeKey=n.exchangeKey),n.userWorkspaces!==void 0&&(this.userWorkspaces=n.userWorkspaces),n.user!==void 0&&(this.user=n.user),n.userId!==void 0&&(this.userId=n.userId)}toJSON(){return{passport:ba(this,ld)[ld],token:ba(this,Dm)[Dm],exchangeKey:ba(this,$m)[$m],userWorkspaces:ba(this,ud)[ud],user:ba(this,cd)[cd],userId:ba(this,Lm)[Lm]}}toString(){return JSON.stringify(this)}static get Fields(){return{passport:"passport",token:"token",exchangeKey:"exchangeKey",userWorkspaces$:"userWorkspaces",get userWorkspaces(){return Wd("userWorkspaces[:i]",Kb.Fields)},user:"user",userId:"userId"}}static from(t){return new Dr(t)}static with(t){return new Dr(t)}copyWith(t){return new Dr({...this.toJSON(),...t})}clone(){return new Dr(this.toJSON())}}function P_e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const Iee=ze.createContext({setToken(){},setSession(){},signout(){},ref:{token:""},isAuthenticated:!1});function A_e(){const e=localStorage.getItem("app_auth_state");if(e){try{const t=JSON.parse(e);return t?{...t}:{}}catch{}return{}}}const N_e=A_e();function N_(e){const t=R.useContext(Iee);R.useEffect(()=>{t.setToken(e||"")},[e])}function M_e({children:e}){const[t,n]=R.useState(N_e),r=()=>{n({token:""}),localStorage.removeItem("app_auth_state")},a=l=>{const u={...t,...l};n(u),localStorage.setItem("app_auth_state",JSON.stringify(u))},i=l=>{const u={...t,token:l};n(u),localStorage.setItem("app_auth_state",JSON.stringify(u))},o=!!(t!=null&&t.token);return w.jsx(Iee.Provider,{value:{signout:r,setSession:a,isAuthenticated:o,ref:t,setToken:i},children:e})}const I_e=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Mee({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return N_((a==null?void 0:a.type)||""),w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:()=>{e.push(gi.Navigation.edit(n))},getSingleHook:r,children:w.jsx(oo,{entity:a,fields:[{label:t.mailProvider.type,elem:w.jsx("span",{children:a==null?void 0:a.type})},{label:t.mailProvider.apiKey,elem:w.jsx("pre",{dir:"ltr",children:a==null?void 0:a.apiKey})}]})})})},D_e=e=>[{name:gi.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:gi.Fields.type,title:e.mailProvider.type,width:200},{name:gi.Fields.apiKey,title:e.mailProvider.apiKey,width:200}];function ej({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/email-providers".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.EmailProviderEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}ej.UKEY="*abac.EmailProviderEntity";function $_e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/email-provider".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.EmailProviderEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.EmailProviderEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const L_e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:D_e(e),queryHook:ej,uniqueIdHrefHandler:t=>gi.Navigation.single(t),deleteHook:$_e})})},F_e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{pageTitle:e.fbMenu.emailProviders,newEntityHandler:({locale:t,router:n})=>{n.push(gi.Navigation.create())},children:w.jsx(L_e,{})})})};function j_e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(I5,{}),path:gi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(I_e,{}),path:gi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(I5,{}),path:gi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(F_e,{}),path:gi.Navigation.Rquery})]})}class Ua extends wn{constructor(...t){super(...t),this.children=void 0,this.fromName=void 0,this.fromEmailAddress=void 0,this.replyTo=void 0,this.nickName=void 0}}Ua.Navigation={edit(e,t){return`${t?"/"+t:".."}/email-sender/edit/${e}`},create(e){return`${e?"/"+e:".."}/email-sender/new`},single(e,t){return`${t?"/"+t:".."}/email-sender/${e}`},query(e={},t){return`${t?"/"+t:".."}/email-senders`},Redit:"email-sender/edit/:uniqueId",Rcreate:"email-sender/new",Rsingle:"email-sender/:uniqueId",Rquery:"email-senders"};Ua.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"emailSender",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"fromName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"fromEmailAddress",type:"string",validate:"required",computedType:"string",gorm:"unique",gormMap:{}},{name:"replyTo",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"nickName",type:"string",validate:"required",computedType:"string",gormMap:{}}],description:"All emails going from the system need to have a virtual sender (nick name, email address, etc)"};Ua.Fields={...wn.Fields,fromName:"fromName",fromEmailAddress:"fromEmailAddress",replyTo:"replyTo",nickName:"nickName"};function Dee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/email-sender/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.EmailSenderEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function U_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/email-sender".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.EmailSenderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function B_e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/email-sender".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.EmailSenderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const W_e=({form:e,isEditing:t})=>{const n=At(),{values:r,setFieldValue:a,errors:i}=e;return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.fromEmailAddress,onChange:o=>a(Ua.Fields.fromEmailAddress,o,!1),autoFocus:!t,errorMessage:i.fromEmailAddress,label:n.mailProvider.fromEmailAddress,hint:n.mailProvider.fromEmailAddressHint}),w.jsx(In,{value:r.fromName,onChange:o=>a(Ua.Fields.fromName,o,!1),errorMessage:i.fromName,label:n.mailProvider.fromName,hint:n.mailProvider.fromNameHint}),w.jsx(In,{value:r.nickName,onChange:o=>a(Ua.Fields.nickName,o,!1),errorMessage:i.nickName,label:n.mailProvider.nickName,hint:n.mailProvider.nickNameHint}),w.jsx(In,{value:r.replyTo,onChange:o=>a(Ua.Fields.replyTo,o,!1),errorMessage:i.replyTo,label:n.mailProvider.replyTo,hint:n.mailProvider.replyToHint})]})},D5=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a}=$r({data:e}),i=At(),o=Dee({query:{uniqueId:n}}),l=B_e({queryClient:r}),u=U_e({queryClient:r});return w.jsx(Bo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(Ua.Navigation.query(void 0,a))},onFinishUriResolver:(d,f)=>{var g;return Ua.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:W_e,onEditTitle:i.fb.editMailSender,onCreateTitle:i.fb.newMailSender,data:e})},z_e=()=>{var l;const e=xr(),t=At(),n=e.query.uniqueId;sr();const[r,a]=R.useState([]),i=Dee({query:{uniqueId:n}});var o=(l=i.query.data)==null?void 0:l.data;return N_((o==null?void 0:o.fromName)||""),w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:()=>{e.push(Ua.Navigation.edit(n))},getSingleHook:i,children:w.jsx(oo,{entity:o,fields:[{label:t.mailProvider.fromName,elem:o==null?void 0:o.fromName},{label:t.mailProvider.fromEmailAddress,elem:o==null?void 0:o.fromEmailAddress},{label:t.mailProvider.nickName,elem:o==null?void 0:o.nickName},{label:t.mailProvider.replyTo,elem:o==null?void 0:o.replyTo}]})})})},q_e=e=>[{name:Ua.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:Ua.Fields.fromName,title:e.mailProvider.fromName,width:200},{name:Ua.Fields.fromEmailAddress,title:e.mailProvider.fromEmailAddress,width:200},{name:Ua.Fields.nickName,title:e.mailProvider.nickName,width:200},{name:Ua.Fields.replyTo,title:e.mailProvider.replyTo,width:200}];function $ee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/email-senders".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.EmailSenderEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}$ee.UKEY="*abac.EmailSenderEntity";function H_e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/email-sender".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.EmailSenderEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.EmailSenderEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const V_e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:q_e(e),queryHook:$ee,uniqueIdHrefHandler:t=>Ua.Navigation.single(t),deleteHook:H_e})})},G_e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{pageTitle:e.fbMenu.emailSenders,newEntityHandler:({locale:t,router:n})=>{n.push(Ua.Navigation.create())},children:w.jsx(V_e,{})})})};function Y_e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(D5,{}),path:Ua.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(z_e,{}),path:Ua.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(D5,{}),path:Ua.Navigation.Redit}),w.jsx(mt,{element:w.jsx(G_e,{}),path:Ua.Navigation.Rquery})]})}const K_e={passportMethods:{clientKeyHint:"Klucz klienta dla metod takich jak Google, służący do autoryzacji OAuth2",archiveTitle:"Metody paszportowe",region:"Region",regionHint:"Region",type:"Typ",editPassportMethod:"Edytuj metodę paszportową",newPassportMethod:"Nowa metoda paszportowa",typeHint:"Typ",clientKey:"Klucz klienta"}},X_e={passportMethods:{archiveTitle:"Passport methods",clientKey:"Client Key",editPassportMethod:"Edit passport method",newPassportMethod:"New passport method",region:"Region",typeHint:"Type",clientKeyHint:"Client key for methods such as google, to authroize the oauth2",regionHint:"Region",type:"Type"}},BE={...K_e,$pl:X_e};class qi extends wn{constructor(...t){super(...t),this.children=void 0,this.type=void 0,this.region=void 0,this.clientKey=void 0}}qi.Navigation={edit(e,t){return`${t?"/"+t:".."}/passport-method/edit/${e}`},create(e){return`${e?"/"+e:".."}/passport-method/new`},single(e,t){return`${t?"/"+t:".."}/passport-method/${e}`},query(e={},t){return`${t?"/"+t:".."}/passport-methods`},Redit:"passport-method/edit/:uniqueId",Rcreate:"passport-method/new",Rsingle:"passport-method/:uniqueId",Rquery:"passport-methods"};qi.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"passportMethod",features:{mock:!1,msync:!1},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"type",type:"enum",validate:"oneof=email phone google facebook,required",of:[{k:"email",description:"Authenticate users using email"},{k:"phone",description:"Authenticat users using phone number, can be sms, calls, or whatsapp."},{k:"google",description:"Users can be authenticated using their google account"},{k:"facebook",description:"Users can be authenticated using their facebook account"}],computedType:'"email" | "phone" | "google" | "facebook"',gormMap:{}},{name:"region",description:"The region which would be using this method of passports for authentication. In Fireback open-source, only 'global' is available.",type:"enum",validate:"required,oneof=global",default:"global",of:[{k:"global"}],computedType:'"global"',gormMap:{}},{name:"clientKey",description:"Client key for those methods such as 'google' which require oauth client key",type:"string",computedType:"string",gormMap:{}}],cliShort:"method",description:"Login/Signup methods which are available in the app for different regions (Email, Phone Number, Google, etc)"};qi.Fields={...wn.Fields,type:"type",region:"region",clientKey:"clientKey"};const Q_e=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:qi.Fields.type,title:e.passportMethods.type,width:100},{name:qi.Fields.region,title:e.passportMethods.region,width:100}];function Lee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/passport-methods".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.PassportMethodEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Lee.UKEY="*abac.PassportMethodEntity";function J_e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/passport-method".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.PassportMethodEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.PassportMethodEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const Z_e=()=>{const e=Kt(BE);return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:Q_e(e),queryHook:Lee,uniqueIdHrefHandler:t=>qi.Navigation.single(t),deleteHook:J_e})})},eOe=()=>{const e=Kt(BE);return w.jsx(jo,{pageTitle:e.passportMethods.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(qi.Navigation.create())},children:w.jsx(Z_e,{})})},tOe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(rt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(BE),u=zs([{name:"Google",uniqueId:"google"},{name:"Facebook",uniqueId:"facebook"},{name:"Email",uniqueId:"email"},{name:"Phone",uniqueId:"phone"}]);return w.jsxs(w.Fragment,{children:[w.jsx(da,{querySource:u,formEffect:{form:e,field:qi.Fields.type,beforeSet(d){return d.uniqueId}},keyExtractor:d=>d.uniqueId,fnLabelFormat:d=>d.name,errorMessage:o.type,label:l.passportMethods.type,hint:l.passportMethods.typeHint}),w.jsx(In,{value:r.region,onChange:d=>i(qi.Fields.region,d,!1),errorMessage:o.region,label:l.passportMethods.region,hint:l.passportMethods.regionHint}),r.type==="google"||r.type==="facebook"?w.jsx(In,{value:r.clientKey,onChange:d=>i(qi.Fields.clientKey,d,!1),errorMessage:o.clientKey,label:l.passportMethods.clientKey,hint:l.passportMethods.clientKeyHint}):null]})};function Fee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/passport-method/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.PassportMethodEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function nOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/passport-method".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.PassportMethodEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function rOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/passport-method".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.PassportMethodEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const $5=({data:e})=>{const t=Kt(BE),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=Fee({query:{uniqueId:r}}),l=nOe({queryClient:a}),u=rOe({queryClient:a});return w.jsx(Bo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(qi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return qi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:tOe,onEditTitle:t.passportMethods.editPassportMethod,onCreateTitle:t.passportMethods.newPassportMethod,data:e})},aOe=()=>{var r;const{uniqueId:e}=$r({}),t=Fee({query:{uniqueId:e}});var n=(r=t.query.data)==null?void 0:r.data;return Kt(BE),w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:({locale:a,router:i})=>{i.push(qi.Navigation.edit(e))},getSingleHook:t,children:w.jsx(oo,{entity:n,fields:[]})})})};function iOe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx($5,{}),path:qi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(aOe,{}),path:qi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx($5,{}),path:qi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(eOe,{}),path:qi.Navigation.Rquery})]})}class ah extends wn{constructor(...t){super(...t),this.children=void 0,this.enableStripe=void 0,this.stripeSecretKey=void 0,this.stripeCallbackUrl=void 0}}ah.Navigation={edit(e,t){return`${t?"/"+t:".."}/payment-config/edit/${e}`},create(e){return`${e?"/"+e:".."}/payment-config/new`},single(e,t){return`${t?"/"+t:".."}/payment-config/${e}`},query(e={},t){return`${t?"/"+t:".."}/payment-configs`},Redit:"payment-config/edit/:uniqueId",Rcreate:"payment-config/new",Rsingle:"payment-config/:uniqueId",Rquery:"payment-configs"};ah.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"paymentConfig",distinctBy:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"enableStripe",description:"Enables the stripe payment integration in the project",type:"bool?",computedType:"boolean",gormMap:{}},{name:"stripeSecretKey",description:"Stripe secret key to initiate a payment intent",type:"string",computedType:"string",gormMap:{}},{name:"stripeCallbackUrl",description:"The endpoint which the payment module will handle response coming back from stripe.",type:"string",computedType:"string",gormMap:{}}],description:"Contains the api keys, configuration, urls, callbacks for different payment gateways."};ah.Fields={...wn.Fields,enableStripe:"enableStripe",stripeSecretKey:"stripeSecretKey",stripeCallbackUrl:"stripeCallbackUrl"};function jee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var E;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/payment-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=()=>l("GET",d),g=(E=i==null?void 0:i.headers)==null?void 0:E.authorization,y=g!="undefined"&&g!=null&&g!=null&&g!="null"&&!!g;let h=!0;return!y&&!a&&(h=!1),{query:jn([i,n,"*payment.PaymentConfigEntity"],f,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:h,...e||{}})}}function oOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/payment-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*payment.PaymentConfigEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const sOe={paymentConfigs:{stripeSecretKeyHint:"Stripe secret key is starting with sk_...",enableStripe:"Enable stripe",enableStripeHint:"Enable stripe",stripeCallbackUrl:"Stripe callback url",archiveTitle:"Payment configs",editPaymentConfig:"Edit payment config",newPaymentConfig:"New payment config",stripeCallbackUrlHint:"The url, which the payment success validator service is deployed, such as http://localhost:4500/payment/invoice",stripeSecretKey:"Stripe secret key"}},lOe={paymentConfigs:{enableStripe:"Włącz Stripe",newPaymentConfig:"Nowa konfiguracja płatności",stripeCallbackUrl:"URL zwrotny Stripe",stripeCallbackUrlHint:"URL, pod którym działa usługa weryfikująca powodzenie płatności, np. http://localhost:4500/payment/invoice",archiveTitle:"Konfiguracje płatności",editPaymentConfig:"Edytuj konfigurację płatności",enableStripeHint:"Włącz Stripe",stripeSecretKey:"Tajny klucz Stripe",stripeSecretKeyHint:"Tajny klucz Stripe zaczyna się od sk_..."}},tj={...sOe,$pl:lOe},El=e=>{const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,disabled:u,focused:d=!1,errorMessage:f,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(null),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(rf,{focused:h,onClick:T,...e,label:"",children:w.jsxs("label",{className:"form-label mr-2",children:[w.jsx("input",{...y,ref:E,checked:!!l,type:"checkbox",onChange:C=>o&&o(!l),onBlur:()=>v(!1),onFocus:()=>v(!0),className:"form-checkbox"}),n]})})};function Do({title:e,children:t,className:n,description:r}){return w.jsxs("div",{className:oa("page-section",n),children:[e?w.jsx("h2",{className:"",children:e}):null,r?w.jsx("p",{className:"",children:r}):null,w.jsx("div",{className:"mt-4",children:t})]})}const uOe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(rt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(tj);return w.jsx(w.Fragment,{children:w.jsxs(Do,{title:"Stripe configuration",children:[w.jsx(El,{value:r.enableStripe,onChange:u=>i(ah.Fields.enableStripe,u,!1),errorMessage:o.enableStripe,label:l.paymentConfigs.enableStripe,hint:l.paymentConfigs.enableStripeHint}),w.jsx(In,{disabled:!r.enableStripe,value:r.stripeSecretKey,onChange:u=>i(ah.Fields.stripeSecretKey,u,!1),errorMessage:o.stripeSecretKey,label:l.paymentConfigs.stripeSecretKey,hint:l.paymentConfigs.stripeSecretKeyHint}),w.jsx(In,{disabled:!r.enableStripe,value:r.stripeCallbackUrl,onChange:u=>i(ah.Fields.stripeCallbackUrl,u,!1),errorMessage:o.stripeCallbackUrl,label:l.paymentConfigs.stripeCallbackUrl,hint:l.paymentConfigs.stripeCallbackUrlHint})]})})},cOe=({data:e})=>{const t=Kt(tj),{router:n,queryClient:r,locale:a}=$r({data:e}),o=jee({query:{uniqueId:"workspace"}}),l=oOe({queryClient:r});return w.jsx(Bo,{patchHook:l,forceEdit:!0,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(ah.Navigation.query(void 0,a))},onFinishUriResolver:(u,d)=>{var f;return ah.Navigation.single((f=u.data)==null?void 0:f.uniqueId,d)},Form:uOe,onEditTitle:t.paymentConfigs.editPaymentConfig,onCreateTitle:t.paymentConfigs.newPaymentConfig,data:e})},dOe=()=>{var a;const{uniqueId:e}=$r({}),t=jee({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt(tj);return w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:({locale:i,router:o})=>{o.push("../config/edit")},getSingleHook:t,children:w.jsx(oo,{entity:n,fields:[{elem:n==null?void 0:n.stripeSecretKey,label:r.paymentConfigs.stripeSecretKey},{elem:n==null?void 0:n.stripeCallbackUrl,label:r.paymentConfigs.stripeCallbackUrl}]})})})};function fOe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(cOe,{}),path:"config/edit"}),w.jsx(mt,{element:w.jsx(dOe,{}),path:"config"})]})}const pOe={invoices:{amountHint:"Amount",archiveTitle:"Invoices",newInvoice:"New invoice",titleHint:"Title",amount:"Amount",editInvoice:"Edit invoice",finalStatus:"Final status",finalStatusHint:"Final status",title:"Title"}},hOe={invoices:{amount:"Kwota",amountHint:"Kwota",finalStatus:"Status końcowy",newInvoice:"Nowa faktura",titleHint:"Tytuł",archiveTitle:"Faktury",editInvoice:"Edytuj fakturę",finalStatusHint:"Status końcowy",title:"Tytuł"}},WE={...pOe,$pl:hOe};class bi extends wn{constructor(...t){super(...t),this.children=void 0,this.title=void 0,this.titleExcerpt=void 0,this.amount=void 0,this.notificationKey=void 0,this.redirectAfterSuccess=void 0,this.finalStatus=void 0}}bi.Navigation={edit(e,t){return`${t?"/"+t:".."}/invoice/edit/${e}`},create(e){return`${e?"/"+e:".."}/invoice/new`},single(e,t){return`${t?"/"+t:".."}/invoice/${e}`},query(e={},t){return`${t?"/"+t:".."}/invoices`},Redit:"invoice/edit/:uniqueId",Rcreate:"invoice/new",Rsingle:"invoice/:uniqueId",Rquery:"invoices"};bi.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"invoice",features:{},security:{writeOnRoot:!0,readOnRoot:!0},gormMap:{},fields:[{name:"title",description:"Explanation about the invoice, the reason someone needs to pay",type:"text",validate:"required",computedType:"string",gormMap:{}},{name:"amount",description:"Amount of the invoice which has to be payed",type:"money?",validate:"required",computedType:"{amount: number, currency: string, formatted?: string}",gormMap:{}},{name:"notificationKey",description:"The unique key, when an event related to the invoice happened it would be triggered. For example if another module wants to initiate the payment, and after payment success, wants to run some code, it would be listening to invoice events and notificationKey will come.",type:"string",computedType:"string",gormMap:{}},{name:"redirectAfterSuccess",description:"When the payment is successful, it might use this url to make a redirect.",type:"string",computedType:"string",gormMap:{}},{name:"finalStatus",description:"Final status of the invoice from a accounting perspective",type:"enum",validate:"required",of:[{k:"payed",description:"Payed"},{k:"pending",description:"Pending"}],computedType:'"payed" | "pending"',gormMap:{}}],description:"Invoice is a billable value, which a party recieves, and needs to pay it by different means. Invoice keeps information such as reason, total amount, tax amount and other details. An invoice can be payed via different payment methods."};bi.Fields={...wn.Fields,title:"title",amount:"amount",notificationKey:"notificationKey",redirectAfterSuccess:"redirectAfterSuccess",finalStatus:"finalStatus"};const mOe=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:bi.Fields.title,title:e.invoices.title,width:100},{name:bi.Fields.amount,title:e.invoices.amount,width:100,getCellValue:t=>{var n;return(n=t.amount)==null?void 0:n.formatted}},{name:bi.Fields.finalStatus,title:e.invoices.finalStatus,width:100}];function Uee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/invoices".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*payment.InvoiceEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Uee.UKEY="*payment.InvoiceEntity";function gOe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/invoice".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*payment.InvoiceEntity",k=>g(k)),n==null||n.invalidateQueries("*payment.InvoiceEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const vOe=()=>{const e=Kt(WE);return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:mOe(e),queryHook:Uee,uniqueIdHrefHandler:t=>bi.Navigation.single(t),deleteHook:gOe})})},yOe=()=>{const e=Kt(WE);return w.jsx(jo,{pageTitle:e.invoices.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(bi.Navigation.create())},children:w.jsx(vOe,{})})};var hr=function(){return hr=Object.assign||function(t){for(var n,r=1,a=arguments.length;r1){if(n===0)return e.replace(t,"");if(e.includes(t)){var r=e.split(t),a=r[0],i=r[1];if(i.length===n)return e;if(i.length>n)return"".concat(a).concat(t).concat(i.slice(0,n))}var o=e.length>n?new RegExp("(\\d+)(\\d{".concat(n,"})")):new RegExp("(\\d)(\\d+)"),l=e.match(o);if(l){var a=l[1],i=l[2];return"".concat(a).concat(t).concat(i)}}return e},Bee=function(e,t){var n=t.groupSeparator,r=n===void 0?",":n,a=t.decimalSeparator,i=a===void 0?".":a,o=new RegExp("\\d([^".concat(_c(r)).concat(_c(i),"0-9]+)")),l=e.match(o);return l?l[1]:void 0},A1=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,a=e.decimalScale,i=e.prefix,o=i===void 0?"":i,l=e.suffix,u=l===void 0?"":l;if(t===""||t===void 0)return"";if(t==="-")return"-";var d=new RegExp("^\\d?-".concat(o?"".concat(_c(o),"?"):"","\\d")).test(t),f=n!=="."?COe(t,n,d):t;n&&n!=="-"&&f.startsWith(n)&&(f="0"+f);var g=r||{},y=g.locale,h=g.currency,v=nj(g,["locale","currency"]),E=hr(hr({},v),{minimumFractionDigits:a||0,maximumFractionDigits:20}),T=r?new Intl.NumberFormat(y,hr(hr({},E),h&&{style:"currency",currency:h})):new Intl.NumberFormat(void 0,E),C=T.formatToParts(Number(f)),k=kOe(C,e),_=Bee(k,hr({},e)),A=t.slice(-1)===n?n:"",P=f.match(RegExp("\\d+\\.(\\d+)"))||[],N=P[1];return a===void 0&&N&&n&&(k.includes(n)?k=k.replace(RegExp("(\\d+)(".concat(_c(n),")(\\d+)"),"g"),"$1$2".concat(N)):_&&!u?k=k.replace(_,"".concat(n).concat(N).concat(_)):k="".concat(k).concat(n).concat(N)),u&&A?"".concat(k).concat(A).concat(u):_&&A?k.replace(_,"".concat(A).concat(_)):_&&u?k.replace(_,"".concat(A).concat(u)):[k,A,u].join("")},COe=function(e,t,n){var r=e;return t&&t!=="."&&(r=r.replace(RegExp(_c(t),"g"),"."),n&&t==="-"&&(r="-".concat(r.slice(1)))),r},kOe=function(e,t){var n=t.prefix,r=t.groupSeparator,a=t.decimalSeparator,i=t.decimalScale,o=t.disableGroupSeparators,l=o===void 0?!1:o;return e.reduce(function(u,d,f){var g=d.type,y=d.value;return f===0&&n?g==="minusSign"?[y,n]:g==="currency"?As(As([],u,!0),[n],!1):[n,y]:g==="currency"?n?u:As(As([],u,!0),[y],!1):g==="group"?l?u:As(As([],u,!0),[r!==void 0?r:y],!1):g==="decimal"?i!==void 0&&i===0?u:As(As([],u,!0),[a!==void 0?a:y],!1):g==="fraction"?As(As([],u,!0),[i!==void 0?y.slice(0,i):y],!1):As(As([],u,!0),[y],!1)},[""]).join("")},xOe={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},_Oe=function(e){var t=e||{},n=t.locale,r=t.currency,a=nj(t,["locale","currency"]),i=n?new Intl.NumberFormat(n,hr(hr({},a),r&&{currency:r,style:"currency"})):new Intl.NumberFormat;return i.formatToParts(1000.1).reduce(function(o,l,u){return l.type==="currency"?u===0?hr(hr({},o),{currencySymbol:l.value,prefix:l.value}):hr(hr({},o),{currencySymbol:l.value,suffix:l.value}):l.type==="group"?hr(hr({},o),{groupSeparator:l.value}):l.type==="decimal"?hr(hr({},o),{decimalSeparator:l.value}):o},xOe)},L5=function(e){return RegExp(/\d/,"gi").test(e)},OOe=function(e,t,n){if(n===void 0||t===""||t===void 0||e===""||e===void 0)return e;if(!e.match(/\d/g))return"";var r=e.split(t),a=r[0],i=r[1];if(n===0)return a;var o=i||"";if(o.lengthv)){if(_t===""||_t==="-"||_t===ue){T&&T(void 0,l,{float:null,formatted:"",value:""}),tt(_t),Rt(1);return}var Ut=ue?_t.replace(ue,"."):_t,_n=parseFloat(Ut),gn=A1(hr({value:_t},fe));if(Lt!=null){var ln=Lt+(gn.length-Mt.length);ln=ln<=0?A?A.length:0:ln,Rt(ln),Wt(qt+1)}if(tt(gn),T){var Bn={float:_n,formatted:gn,value:_t};T(_t,l,Bn)}}},U=function(Mt){var be=Mt.target,Ee=be.value,gt=be.selectionStart;Nt(Ee,gt),W&&W(Mt)},D=function(Mt){return G&&G(Mt),qe?qe.length:0},F=function(Mt){var be=Mt.target.value,Ee=iA(hr({value:be},xe));if(Ee==="-"||Ee===ue||!Ee){tt(""),q&&q(Mt);return}var gt=TOe(Ee,ue,C),Lt=OOe(gt,ue,_!==void 0?_:C),_t=ue?Lt.replace(ue,"."):Lt,Ut=parseFloat(_t),_n=A1(hr(hr({},fe),{value:Lt}));T&&J&&T(Lt,l,{float:Ut,formatted:_n,value:Lt}),tt(_n),q&&q(Mt)},ae=function(Mt){var be=Mt.key;if(ft(be),I&&(be==="ArrowUp"||be==="ArrowDown")){Mt.preventDefault(),Rt(qe.length);var Ee=E!=null?String(E):void 0,gt=ue&&Ee?Ee.replace(ue,"."):Ee,Lt=parseFloat(gt??iA(hr({value:qe},xe)))||0,_t=be==="ArrowUp"?Lt+I:Lt-I;if(L!==void 0&&_tNumber(j))return;var Ut=String(I).includes(".")?Number(String(I).split(".")[1].length):void 0;Nt(String(Ut?_t.toFixed(Ut):_t).replace(".",ue))}ce&&ce(Mt)},Te=function(Mt){var be=Mt.key,Ee=Mt.currentTarget.selectionStart;if(be!=="ArrowUp"&&be!=="ArrowDown"&&qe!=="-"){var gt=Bee(qe,{groupSeparator:ke,decimalSeparator:ue});if(gt&&Ee&&Ee>qe.length-gt.length&&ut.current){var Lt=qe.length-gt.length;ut.current.setSelectionRange(Lt,Lt)}}H&&H(Mt)};R.useEffect(function(){E==null&&g==null&&tt("")},[g,E]),R.useEffect(function(){at&&qe!=="-"&&ut.current&&document.activeElement===ut.current&&ut.current.setSelectionRange(xt,xt)},[qe,xt,ut,at,qt]);var Fe=function(){return E!=null&&qe!=="-"&&(!ue||qe!==ue)?A1(hr(hr({},fe),{decimalScale:at?void 0:_,value:String(E)})):qe},We=hr({type:"text",inputMode:"decimal",id:o,name:l,className:u,onChange:U,onBlur:F,onFocus:D,onKeyDown:ae,onKeyUp:Te,placeholder:k,disabled:h,value:Fe(),ref:ut},ee);if(d){var Tt=d;return ze.createElement(Tt,hr({},We))}return ze.createElement("input",hr({},We))});Wee.displayName="CurrencyInput";const POe=e=>{const{placeholder:t,onChange:n,value:r,...a}=e,[i,o]=R.useState(()=>(r==null?void 0:r.amount)!=null?r.amount.toString():"");R.useEffect(()=>{const d=(r==null?void 0:r.amount)!=null?r.amount.toString():"";d!==i&&o(d)},[r==null?void 0:r.amount]);const l=d=>{const f=parseFloat(d);isNaN(f)||n==null||n({...r,amount:f})},u=d=>{const f=d||"";o(f),f.trim()!==""&&l(f)};return w.jsx(rf,{...a,children:w.jsxs("div",{className:"flex gap-2 items-center",style:{flexDirection:"row",display:"flex"},children:[w.jsx(Wee,{placeholder:t,value:i,decimalsLimit:2,className:oa("form-control",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),onValueChange:u}),w.jsxs("select",{value:r==null?void 0:r.currency,onChange:d=>n==null?void 0:n({...r,currency:d.target.value}),className:"form-select w-24",style:{width:"110px"},children:[w.jsx("option",{value:"USD",children:"USD"}),w.jsx("option",{value:"PLN",children:"PLN"}),w.jsx("option",{value:"EUR",children:"EUR"})]})]})})},AOe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(rt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(WE);return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.title,onChange:u=>i(bi.Fields.title,u,!1),errorMessage:o.title,label:l.invoices.title,hint:l.invoices.titleHint}),w.jsx(POe,{value:r.amount,onChange:u=>i(bi.Fields.amount,u,!1),label:l.invoices.amount,hint:l.invoices.amountHint}),w.jsx(In,{value:r.finalStatus,onChange:u=>i(bi.Fields.finalStatus,u,!1),errorMessage:o.finalStatus,label:l.invoices.finalStatus,hint:l.invoices.finalStatusHint})]})};function zee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/invoice/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*payment.InvoiceEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function NOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/invoice".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*payment.InvoiceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function MOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/invoice".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*payment.InvoiceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const F5=({data:e})=>{const t=Kt(WE),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=zee({query:{uniqueId:r}}),l=NOe({queryClient:a}),u=MOe({queryClient:a});return w.jsx(Bo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(bi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return bi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:AOe,onEditTitle:t.invoices.editInvoice,onCreateTitle:t.invoices.newInvoice,data:e})},IOe=()=>{var i,o;const{uniqueId:e}=$r({}),t=zee({query:{uniqueId:e}});var n=(i=t.query.data)==null?void 0:i.data;const r=Kt(WE),a=l=>{window.open(`http://localhost:4500/payment/invoice/${l}`,"_blank")};return w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:({locale:l,router:u})=>{u.push(bi.Navigation.edit(e))},getSingleHook:t,children:w.jsx(oo,{entity:n,fields:[{elem:n==null?void 0:n.title,label:r.invoices.title},{elem:(o=n==null?void 0:n.amount)==null?void 0:o.formatted,label:r.invoices.amount},{elem:w.jsx(w.Fragment,{children:w.jsx("button",{className:"btn btn-small",onClick:()=>a(e),children:"Pay now"})}),label:"Actions"}]})})})};function DOe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(F5,{}),path:bi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(IOe,{}),path:bi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(F5,{}),path:bi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(yOe,{}),path:bi.Navigation.Rquery})]})}function $Oe(){const e=fOe(),t=DOe();return w.jsxs(mt,{path:"payment",children:[e,t]})}const LOe={regionalContents:{titleHint:"Title",archiveTitle:"Regional contents",keyGroup:"Key group",languageId:"Language id",regionHint:"Region",title:"Title",content:"Content",contentHint:"Content",editRegionalContent:"Edit regional content",keyGroupHint:"Key group",languageIdHint:"Language id",newRegionalContent:"New regional content",region:"Region"}},FOe={regionalContents:{editRegionalContent:"Edytuj treść regionalną",keyGroup:"Grupa kluczy",keyGroupHint:"Grupa kluczy",languageId:"Identyfikator języka",region:"Region",title:"Tytuł",titleHint:"Tytuł",archiveTitle:"Treści regionalne",content:"Treść",contentHint:"Treść",languageIdHint:"Identyfikator języka",newRegionalContent:"Nowa treść regionalna",regionHint:"Region"}},zE={...LOe,$pl:FOe};class Wr extends wn{constructor(...t){super(...t),this.children=void 0,this.content=void 0,this.contentExcerpt=void 0,this.region=void 0,this.title=void 0,this.languageId=void 0,this.keyGroup=void 0}}Wr.Navigation={edit(e,t){return`${t?"/"+t:".."}/regional-content/edit/${e}`},create(e){return`${e?"/"+e:".."}/regional-content/new`},single(e,t){return`${t?"/"+t:".."}/regional-content/${e}`},query(e={},t){return`${t?"/"+t:".."}/regional-contents`},Redit:"regional-content/edit/:uniqueId",Rcreate:"regional-content/new",Rsingle:"regional-content/:uniqueId",Rquery:"regional-contents"};Wr.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"regionalContent",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"content",type:"html",validate:"required",computedType:"string",gormMap:{}},{name:"region",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"title",type:"string",computedType:"string",gormMap:{}},{name:"languageId",type:"string",validate:"required",computedType:"string",gorm:"index:regional_content_index,unique",gormMap:{}},{name:"keyGroup",type:"enum",validate:"required",of:[{k:"SMS_OTP",description:"Used when an email would be sent with one time password"},{k:"EMAIL_OTP",description:"Used when an sms would be sent with one time password"}],computedType:'"SMS_OTP" | "EMAIL_OTP"',gorm:"index:regional_content_index,unique",gormMap:{}}],cliShort:"rc",description:"Email templates, sms templates or other textual content which can be accessed."};Wr.Fields={...wn.Fields,content:"content",region:"region",title:"title",languageId:"languageId",keyGroup:"keyGroup"};const jOe=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:Wr.Fields.content,title:e.regionalContents.content,width:100},{name:Wr.Fields.region,title:e.regionalContents.region,width:100},{name:Wr.Fields.title,title:e.regionalContents.title,width:100},{name:Wr.Fields.languageId,title:e.regionalContents.languageId,width:100},{name:Wr.Fields.keyGroup,title:e.regionalContents.keyGroup,width:100}];function _S({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/regional-contents".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.RegionalContentEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}_S.UKEY="*abac.RegionalContentEntity";function UOe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/regional-content".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.RegionalContentEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.RegionalContentEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const BOe=()=>{const e=Kt(zE);return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:jOe(e),queryHook:_S,uniqueIdHrefHandler:t=>Wr.Navigation.single(t),deleteHook:UOe})})},WOe=()=>{const e=Kt(zE);return w.jsx(jo,{pageTitle:e.regionalContents.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(Wr.Navigation.create())},children:w.jsx(BOe,{})})};var r3=function(){return r3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},VOe=function(e,t){return z5(e).concat(z5(t))},GOe=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},YOe=function(e){if(!("isConnected"in Node.prototype)){for(var t=e,n=e.parentNode;n!=null;)t=n,n=t.parentNode;return t===e.ownerDocument}return e.isConnected},q5=function(e,t){e!==void 0&&(e.mode!=null&&typeof e.mode=="object"&&typeof e.mode.set=="function"?e.mode.set(t):e.setMode(t))},a3=function(){return a3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?setTimeout(d,o):d()},r=function(){for(var a=e.pop();a!=null;a=e.pop())a.deleteScripts()};return{loadList:n,reinitialize:r}},JOe=QOe(),sA=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},ZOe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),$x=function(){return $x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)throw new Error("Invalid string. Length must be a multiple of 4");var E=h.indexOf("=");E===-1&&(E=v);var T=E===v?0:4-E%4;return[E,T]}function l(h){var v=o(h),E=v[0],T=v[1];return(E+T)*3/4-T}function u(h,v,E){return(v+E)*3/4-E}function d(h){var v,E=o(h),T=E[0],C=E[1],k=new n(u(h,T,C)),_=0,A=C>0?T-4:T,P;for(P=0;P>16&255,k[_++]=v>>8&255,k[_++]=v&255;return C===2&&(v=t[h.charCodeAt(P)]<<2|t[h.charCodeAt(P+1)]>>4,k[_++]=v&255),C===1&&(v=t[h.charCodeAt(P)]<<10|t[h.charCodeAt(P+1)]<<4|t[h.charCodeAt(P+2)]>>2,k[_++]=v>>8&255,k[_++]=v&255),k}function f(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function g(h,v,E){for(var T,C=[],k=v;kA?A:_+k));return T===1?(v=h[E-1],C.push(e[v>>2]+e[v<<4&63]+"==")):T===2&&(v=(h[E-2]<<8)+h[E-1],C.push(e[v>>10]+e[v>>4&63]+e[v<<2&63]+"=")),C.join("")}return N1}var fk={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var V5;function nRe(){return V5||(V5=1,fk.read=function(e,t,n,r,a){var i,o,l=a*8-r-1,u=(1<>1,f=-7,g=n?a-1:0,y=n?-1:1,h=e[t+g];for(g+=y,i=h&(1<<-f)-1,h>>=-f,f+=l;f>0;i=i*256+e[t+g],g+=y,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=r;f>0;o=o*256+e[t+g],g+=y,f-=8);if(i===0)i=1-d;else{if(i===u)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,r),i=i-d}return(h?-1:1)*o*Math.pow(2,i-r)},fk.write=function(e,t,n,r,a,i){var o,l,u,d=i*8-a-1,f=(1<>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,v=r?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+g>=1?t+=y/u:t+=y*Math.pow(2,1-g),t*u>=2&&(o++,u/=2),o+g>=f?(l=0,o=f):o+g>=1?(l=(t*u-1)*Math.pow(2,a),o=o+g):(l=t*Math.pow(2,g-1)*Math.pow(2,a),o=0));a>=8;e[n+h]=l&255,h+=v,l/=256,a-=8);for(o=o<0;e[n+h]=o&255,h+=v,o/=256,d-=8);e[n+h-v]|=E*128}),fk}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */var I5;function qOe(){return I5||(I5=1,(function(e){const t=WOe(),n=zOe(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=l,e.SlowBuffer=k,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=i(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const U=new Uint8Array(1),D={foo:function(){return 42}};return Object.setPrototypeOf(D,Uint8Array.prototype),Object.setPrototypeOf(U,D),U.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function o(U){if(U>a)throw new RangeError('The value "'+U+'" is invalid for option "size"');const D=new Uint8Array(U);return Object.setPrototypeOf(D,l.prototype),D}function l(U,D,F){if(typeof U=="number"){if(typeof D=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(U)}return u(U,D,F)}l.poolSize=8192;function u(U,D,F){if(typeof U=="string")return y(U,D);if(ArrayBuffer.isView(U))return v(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(Oe(U,ArrayBuffer)||U&&Oe(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Oe(U,SharedArrayBuffer)||U&&Oe(U.buffer,SharedArrayBuffer)))return E(U,D,F);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ae=U.valueOf&&U.valueOf();if(ae!=null&&ae!==U)return l.from(ae,D,F);const Te=T(U);if(Te)return Te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return l.from(U[Symbol.toPrimitive]("string"),D,F);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}l.from=function(U,D,F){return u(U,D,F)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function d(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function f(U,D,F){return d(U),U<=0?o(U):D!==void 0?typeof F=="string"?o(U).fill(D,F):o(U).fill(D):o(U)}l.alloc=function(U,D,F){return f(U,D,F)};function g(U){return d(U),o(U<0?0:C(U)|0)}l.allocUnsafe=function(U){return g(U)},l.allocUnsafeSlow=function(U){return g(U)};function y(U,D){if((typeof D!="string"||D==="")&&(D="utf8"),!l.isEncoding(D))throw new TypeError("Unknown encoding: "+D);const F=_(U,D)|0;let ae=o(F);const Te=ae.write(U,D);return Te!==F&&(ae=ae.slice(0,Te)),ae}function h(U){const D=U.length<0?0:C(U.length)|0,F=o(D);for(let ae=0;ae=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return U|0}function k(U){return+U!=U&&(U=0),l.alloc(+U)}l.isBuffer=function(D){return D!=null&&D._isBuffer===!0&&D!==l.prototype},l.compare=function(D,F){if(Oe(D,Uint8Array)&&(D=l.from(D,D.offset,D.byteLength)),Oe(F,Uint8Array)&&(F=l.from(F,F.offset,F.byteLength)),!l.isBuffer(D)||!l.isBuffer(F))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(D===F)return 0;let ae=D.length,Te=F.length;for(let Fe=0,We=Math.min(ae,Te);FeTe.length?(l.isBuffer(We)||(We=l.from(We)),We.copy(Te,Fe)):Uint8Array.prototype.set.call(Te,We,Fe);else if(l.isBuffer(We))We.copy(Te,Fe);else throw new TypeError('"list" argument must be an Array of Buffers');Fe+=We.length}return Te};function _(U,D){if(l.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||Oe(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);const F=U.length,ae=arguments.length>2&&arguments[2]===!0;if(!ae&&F===0)return 0;let Te=!1;for(;;)switch(D){case"ascii":case"latin1":case"binary":return F;case"utf8":case"utf-8":return xt(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F*2;case"hex":return F>>>1;case"base64":return qt(U).length;default:if(Te)return ae?-1:xt(U).length;D=(""+D).toLowerCase(),Te=!0}}l.byteLength=_;function A(U,D,F){let ae=!1;if((D===void 0||D<0)&&(D=0),D>this.length||((F===void 0||F>this.length)&&(F=this.length),F<=0)||(F>>>=0,D>>>=0,F<=D))return"";for(U||(U="utf8");;)switch(U){case"hex":return ce(this,D,F);case"utf8":case"utf-8":return ge(this,D,F);case"ascii":return G(this,D,F);case"latin1":case"binary":return q(this,D,F);case"base64":return re(this,D,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,D,F);default:if(ae)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),ae=!0}}l.prototype._isBuffer=!0;function P(U,D,F){const ae=U[D];U[D]=U[F],U[F]=ae}l.prototype.swap16=function(){const D=this.length;if(D%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let F=0;FF&&(D+=" ... "),""},r&&(l.prototype[r]=l.prototype.inspect),l.prototype.compare=function(D,F,ae,Te,Fe){if(Oe(D,Uint8Array)&&(D=l.from(D,D.offset,D.byteLength)),!l.isBuffer(D))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof D);if(F===void 0&&(F=0),ae===void 0&&(ae=D?D.length:0),Te===void 0&&(Te=0),Fe===void 0&&(Fe=this.length),F<0||ae>D.length||Te<0||Fe>this.length)throw new RangeError("out of range index");if(Te>=Fe&&F>=ae)return 0;if(Te>=Fe)return-1;if(F>=ae)return 1;if(F>>>=0,ae>>>=0,Te>>>=0,Fe>>>=0,this===D)return 0;let We=Fe-Te,Tt=ae-F;const Mt=Math.min(We,Tt),be=this.slice(Te,Fe),Ee=D.slice(F,ae);for(let gt=0;gt2147483647?F=2147483647:F<-2147483648&&(F=-2147483648),F=+F,dt(F)&&(F=Te?0:U.length-1),F<0&&(F=U.length+F),F>=U.length){if(Te)return-1;F=U.length-1}else if(F<0)if(Te)F=0;else return-1;if(typeof D=="string"&&(D=l.from(D,ae)),l.isBuffer(D))return D.length===0?-1:I(U,D,F,ae,Te);if(typeof D=="number")return D=D&255,typeof Uint8Array.prototype.indexOf=="function"?Te?Uint8Array.prototype.indexOf.call(U,D,F):Uint8Array.prototype.lastIndexOf.call(U,D,F):I(U,[D],F,ae,Te);throw new TypeError("val must be string, number or Buffer")}function I(U,D,F,ae,Te){let Fe=1,We=U.length,Tt=D.length;if(ae!==void 0&&(ae=String(ae).toLowerCase(),ae==="ucs2"||ae==="ucs-2"||ae==="utf16le"||ae==="utf-16le")){if(U.length<2||D.length<2)return-1;Fe=2,We/=2,Tt/=2,F/=2}function Mt(Ee,gt){return Fe===1?Ee[gt]:Ee.readUInt16BE(gt*Fe)}let be;if(Te){let Ee=-1;for(be=F;beWe&&(F=We-Tt),be=F;be>=0;be--){let Ee=!0;for(let gt=0;gtTe&&(ae=Te)):ae=Te;const Fe=D.length;ae>Fe/2&&(ae=Fe/2);let We;for(We=0;We>>0,isFinite(ae)?(ae=ae>>>0,Te===void 0&&(Te="utf8")):(Te=ae,ae=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Fe=this.length-F;if((ae===void 0||ae>Fe)&&(ae=Fe),D.length>0&&(ae<0||F<0)||F>this.length)throw new RangeError("Attempt to write outside buffer bounds");Te||(Te="utf8");let We=!1;for(;;)switch(Te){case"hex":return L(this,D,F,ae);case"utf8":case"utf-8":return j(this,D,F,ae);case"ascii":case"latin1":case"binary":return z(this,D,F,ae);case"base64":return Q(this,D,F,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le(this,D,F,ae);default:if(We)throw new TypeError("Unknown encoding: "+Te);Te=(""+Te).toLowerCase(),We=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(U,D,F){return D===0&&F===U.length?t.fromByteArray(U):t.fromByteArray(U.slice(D,F))}function ge(U,D,F){F=Math.min(U.length,F);const ae=[];let Te=D;for(;Te239?4:Fe>223?3:Fe>191?2:1;if(Te+Tt<=F){let Mt,be,Ee,gt;switch(Tt){case 1:Fe<128&&(We=Fe);break;case 2:Mt=U[Te+1],(Mt&192)===128&&(gt=(Fe&31)<<6|Mt&63,gt>127&&(We=gt));break;case 3:Mt=U[Te+1],be=U[Te+2],(Mt&192)===128&&(be&192)===128&&(gt=(Fe&15)<<12|(Mt&63)<<6|be&63,gt>2047&&(gt<55296||gt>57343)&&(We=gt));break;case 4:Mt=U[Te+1],be=U[Te+2],Ee=U[Te+3],(Mt&192)===128&&(be&192)===128&&(Ee&192)===128&&(gt=(Fe&15)<<18|(Mt&63)<<12|(be&63)<<6|Ee&63,gt>65535&><1114112&&(We=gt))}}We===null?(We=65533,Tt=1):We>65535&&(We-=65536,ae.push(We>>>10&1023|55296),We=56320|We&1023),ae.push(We),Te+=Tt}return W(ae)}const me=4096;function W(U){const D=U.length;if(D<=me)return String.fromCharCode.apply(String,U);let F="",ae=0;for(;aeae)&&(F=ae);let Te="";for(let Fe=D;Feae&&(D=ae),F<0?(F+=ae,F<0&&(F=0)):F>ae&&(F=ae),FF)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(D,F,ae){D=D>>>0,F=F>>>0,ae||Y(D,F,this.length);let Te=this[D],Fe=1,We=0;for(;++We>>0,F=F>>>0,ae||Y(D,F,this.length);let Te=this[D+--F],Fe=1;for(;F>0&&(Fe*=256);)Te+=this[D+--F]*Fe;return Te},l.prototype.readUint8=l.prototype.readUInt8=function(D,F){return D=D>>>0,F||Y(D,1,this.length),this[D]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(D,F){return D=D>>>0,F||Y(D,2,this.length),this[D]|this[D+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(D,F){return D=D>>>0,F||Y(D,2,this.length),this[D]<<8|this[D+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(D,F){return D=D>>>0,F||Y(D,4,this.length),(this[D]|this[D+1]<<8|this[D+2]<<16)+this[D+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(D,F){return D=D>>>0,F||Y(D,4,this.length),this[D]*16777216+(this[D+1]<<16|this[D+2]<<8|this[D+3])},l.prototype.readBigUInt64LE=ut(function(D){D=D>>>0,Ge(D,"offset");const F=this[D],ae=this[D+7];(F===void 0||ae===void 0)&&at(D,this.length-8);const Te=F+this[++D]*2**8+this[++D]*2**16+this[++D]*2**24,Fe=this[++D]+this[++D]*2**8+this[++D]*2**16+ae*2**24;return BigInt(Te)+(BigInt(Fe)<>>0,Ge(D,"offset");const F=this[D],ae=this[D+7];(F===void 0||ae===void 0)&&at(D,this.length-8);const Te=F*2**24+this[++D]*2**16+this[++D]*2**8+this[++D],Fe=this[++D]*2**24+this[++D]*2**16+this[++D]*2**8+ae;return(BigInt(Te)<>>0,F=F>>>0,ae||Y(D,F,this.length);let Te=this[D],Fe=1,We=0;for(;++We=Fe&&(Te-=Math.pow(2,8*F)),Te},l.prototype.readIntBE=function(D,F,ae){D=D>>>0,F=F>>>0,ae||Y(D,F,this.length);let Te=F,Fe=1,We=this[D+--Te];for(;Te>0&&(Fe*=256);)We+=this[D+--Te]*Fe;return Fe*=128,We>=Fe&&(We-=Math.pow(2,8*F)),We},l.prototype.readInt8=function(D,F){return D=D>>>0,F||Y(D,1,this.length),this[D]&128?(255-this[D]+1)*-1:this[D]},l.prototype.readInt16LE=function(D,F){D=D>>>0,F||Y(D,2,this.length);const ae=this[D]|this[D+1]<<8;return ae&32768?ae|4294901760:ae},l.prototype.readInt16BE=function(D,F){D=D>>>0,F||Y(D,2,this.length);const ae=this[D+1]|this[D]<<8;return ae&32768?ae|4294901760:ae},l.prototype.readInt32LE=function(D,F){return D=D>>>0,F||Y(D,4,this.length),this[D]|this[D+1]<<8|this[D+2]<<16|this[D+3]<<24},l.prototype.readInt32BE=function(D,F){return D=D>>>0,F||Y(D,4,this.length),this[D]<<24|this[D+1]<<16|this[D+2]<<8|this[D+3]},l.prototype.readBigInt64LE=ut(function(D){D=D>>>0,Ge(D,"offset");const F=this[D],ae=this[D+7];(F===void 0||ae===void 0)&&at(D,this.length-8);const Te=this[D+4]+this[D+5]*2**8+this[D+6]*2**16+(ae<<24);return(BigInt(Te)<>>0,Ge(D,"offset");const F=this[D],ae=this[D+7];(F===void 0||ae===void 0)&&at(D,this.length-8);const Te=(F<<24)+this[++D]*2**16+this[++D]*2**8+this[++D];return(BigInt(Te)<>>0,F||Y(D,4,this.length),n.read(this,D,!0,23,4)},l.prototype.readFloatBE=function(D,F){return D=D>>>0,F||Y(D,4,this.length),n.read(this,D,!1,23,4)},l.prototype.readDoubleLE=function(D,F){return D=D>>>0,F||Y(D,8,this.length),n.read(this,D,!0,52,8)},l.prototype.readDoubleBE=function(D,F){return D=D>>>0,F||Y(D,8,this.length),n.read(this,D,!1,52,8)};function ie(U,D,F,ae,Te,Fe){if(!l.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(D>Te||DU.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(D,F,ae,Te){if(D=+D,F=F>>>0,ae=ae>>>0,!Te){const Tt=Math.pow(2,8*ae)-1;ie(this,D,F,ae,Tt,0)}let Fe=1,We=0;for(this[F]=D&255;++We>>0,ae=ae>>>0,!Te){const Tt=Math.pow(2,8*ae)-1;ie(this,D,F,ae,Tt,0)}let Fe=ae-1,We=1;for(this[F+Fe]=D&255;--Fe>=0&&(We*=256);)this[F+Fe]=D/We&255;return F+ae},l.prototype.writeUint8=l.prototype.writeUInt8=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,1,255,0),this[F]=D&255,F+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,2,65535,0),this[F]=D&255,this[F+1]=D>>>8,F+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,2,65535,0),this[F]=D>>>8,this[F+1]=D&255,F+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,4,4294967295,0),this[F+3]=D>>>24,this[F+2]=D>>>16,this[F+1]=D>>>8,this[F]=D&255,F+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,4,4294967295,0),this[F]=D>>>24,this[F+1]=D>>>16,this[F+2]=D>>>8,this[F+3]=D&255,F+4};function J(U,D,F,ae,Te){tt(D,ae,Te,U,F,7);let Fe=Number(D&BigInt(4294967295));U[F++]=Fe,Fe=Fe>>8,U[F++]=Fe,Fe=Fe>>8,U[F++]=Fe,Fe=Fe>>8,U[F++]=Fe;let We=Number(D>>BigInt(32)&BigInt(4294967295));return U[F++]=We,We=We>>8,U[F++]=We,We=We>>8,U[F++]=We,We=We>>8,U[F++]=We,F}function ee(U,D,F,ae,Te){tt(D,ae,Te,U,F,7);let Fe=Number(D&BigInt(4294967295));U[F+7]=Fe,Fe=Fe>>8,U[F+6]=Fe,Fe=Fe>>8,U[F+5]=Fe,Fe=Fe>>8,U[F+4]=Fe;let We=Number(D>>BigInt(32)&BigInt(4294967295));return U[F+3]=We,We=We>>8,U[F+2]=We,We=We>>8,U[F+1]=We,We=We>>8,U[F]=We,F+8}l.prototype.writeBigUInt64LE=ut(function(D,F=0){return J(this,D,F,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=ut(function(D,F=0){return ee(this,D,F,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(D,F,ae,Te){if(D=+D,F=F>>>0,!Te){const Mt=Math.pow(2,8*ae-1);ie(this,D,F,ae,Mt-1,-Mt)}let Fe=0,We=1,Tt=0;for(this[F]=D&255;++Fe>0)-Tt&255;return F+ae},l.prototype.writeIntBE=function(D,F,ae,Te){if(D=+D,F=F>>>0,!Te){const Mt=Math.pow(2,8*ae-1);ie(this,D,F,ae,Mt-1,-Mt)}let Fe=ae-1,We=1,Tt=0;for(this[F+Fe]=D&255;--Fe>=0&&(We*=256);)D<0&&Tt===0&&this[F+Fe+1]!==0&&(Tt=1),this[F+Fe]=(D/We>>0)-Tt&255;return F+ae},l.prototype.writeInt8=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,1,127,-128),D<0&&(D=255+D+1),this[F]=D&255,F+1},l.prototype.writeInt16LE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,2,32767,-32768),this[F]=D&255,this[F+1]=D>>>8,F+2},l.prototype.writeInt16BE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,2,32767,-32768),this[F]=D>>>8,this[F+1]=D&255,F+2},l.prototype.writeInt32LE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,4,2147483647,-2147483648),this[F]=D&255,this[F+1]=D>>>8,this[F+2]=D>>>16,this[F+3]=D>>>24,F+4},l.prototype.writeInt32BE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,4,2147483647,-2147483648),D<0&&(D=4294967295+D+1),this[F]=D>>>24,this[F+1]=D>>>16,this[F+2]=D>>>8,this[F+3]=D&255,F+4},l.prototype.writeBigInt64LE=ut(function(D,F=0){return J(this,D,F,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=ut(function(D,F=0){return ee(this,D,F,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Z(U,D,F,ae,Te,Fe){if(F+ae>U.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function ue(U,D,F,ae,Te){return D=+D,F=F>>>0,Te||Z(U,D,F,4),n.write(U,D,F,ae,23,4),F+4}l.prototype.writeFloatLE=function(D,F,ae){return ue(this,D,F,!0,ae)},l.prototype.writeFloatBE=function(D,F,ae){return ue(this,D,F,!1,ae)};function ke(U,D,F,ae,Te){return D=+D,F=F>>>0,Te||Z(U,D,F,8),n.write(U,D,F,ae,52,8),F+8}l.prototype.writeDoubleLE=function(D,F,ae){return ke(this,D,F,!0,ae)},l.prototype.writeDoubleBE=function(D,F,ae){return ke(this,D,F,!1,ae)},l.prototype.copy=function(D,F,ae,Te){if(!l.isBuffer(D))throw new TypeError("argument should be a Buffer");if(ae||(ae=0),!Te&&Te!==0&&(Te=this.length),F>=D.length&&(F=D.length),F||(F=0),Te>0&&Te=this.length)throw new RangeError("Index out of range");if(Te<0)throw new RangeError("sourceEnd out of bounds");Te>this.length&&(Te=this.length),D.length-F>>0,ae=ae===void 0?this.length:ae>>>0,D||(D=0);let Fe;if(typeof D=="number")for(Fe=F;Fe2**32?Te=Ie(String(F)):typeof F=="bigint"&&(Te=String(F),(F>BigInt(2)**BigInt(32)||F<-(BigInt(2)**BigInt(32)))&&(Te=Ie(Te)),Te+="n"),ae+=` It must be ${D}. Received ${Te}`,ae},RangeError);function Ie(U){let D="",F=U.length;const ae=U[0]==="-"?1:0;for(;F>=ae+4;F-=3)D=`_${U.slice(F-3,F)}${D}`;return`${U.slice(0,F)}${D}`}function qe(U,D,F){Ge(D,"offset"),(U[D]===void 0||U[D+F]===void 0)&&at(D,U.length-(F+1))}function tt(U,D,F,ae,Te,Fe){if(U>F||U= 0${We} and < 2${We} ** ${(Fe+1)*8}${We}`:Tt=`>= -(2${We} ** ${(Fe+1)*8-1}${We}) and < 2 ** ${(Fe+1)*8-1}${We}`,new fe.ERR_OUT_OF_RANGE("value",Tt,U)}qe(ae,Te,Fe)}function Ge(U,D){if(typeof U!="number")throw new fe.ERR_INVALID_ARG_TYPE(D,"number",U)}function at(U,D,F){throw Math.floor(U)!==U?(Ge(U,F),new fe.ERR_OUT_OF_RANGE("offset","an integer",U)):D<0?new fe.ERR_BUFFER_OUT_OF_BOUNDS:new fe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${D}`,U)}const Et=/[^+/0-9A-Za-z-_]/g;function kt(U){if(U=U.split("=")[0],U=U.trim().replace(Et,""),U.length<2)return"";for(;U.length%4!==0;)U=U+"=";return U}function xt(U,D){D=D||1/0;let F;const ae=U.length;let Te=null;const Fe=[];for(let We=0;We55295&&F<57344){if(!Te){if(F>56319){(D-=3)>-1&&Fe.push(239,191,189);continue}else if(We+1===ae){(D-=3)>-1&&Fe.push(239,191,189);continue}Te=F;continue}if(F<56320){(D-=3)>-1&&Fe.push(239,191,189),Te=F;continue}F=(Te-55296<<10|F-56320)+65536}else Te&&(D-=3)>-1&&Fe.push(239,191,189);if(Te=null,F<128){if((D-=1)<0)break;Fe.push(F)}else if(F<2048){if((D-=2)<0)break;Fe.push(F>>6|192,F&63|128)}else if(F<65536){if((D-=3)<0)break;Fe.push(F>>12|224,F>>6&63|128,F&63|128)}else if(F<1114112){if((D-=4)<0)break;Fe.push(F>>18|240,F>>12&63|128,F>>6&63|128,F&63|128)}else throw new Error("Invalid code point")}return Fe}function Rt(U){const D=[];for(let F=0;F>8,Te=F%256,Fe.push(Te),Fe.push(ae);return Fe}function qt(U){return t.toByteArray(kt(U))}function Wt(U,D,F,ae){let Te;for(Te=0;Te=D.length||Te>=U.length);++Te)D[Te+F]=U[Te];return Te}function Oe(U,D){return U instanceof D||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===D.name}function dt(U){return U!==U}const ft=(function(){const U="0123456789abcdef",D=new Array(256);for(let F=0;F<16;++F){const ae=F*16;for(let Te=0;Te<16;++Te)D[ae+Te]=U[F]+U[Te]}return D})();function ut(U){return typeof BigInt>"u"?Nt:U}function Nt(){throw new Error("BigInt not supported")}})(QP)),QP}qOe();const qF=e=>{const{config:t}=R.useContext(dh);At();const{placeholder:n,label:r,getInputRef:a,secureTextEntry:i,Icon:o,onChange:l,value:u,height:d,disabled:f,forceBasic:g,forceRich:y,focused:h=!1,autoFocus:v,...E}=e,[T,C]=R.useState(!1),k=R.useRef(),_=R.useRef(!1),[A,P]=R.useState("tinymce"),{upload:N}=bee(),{directPath:I}=MQ();R.useEffect(()=>{if(t.textEditorModule!=="tinymce")e.onReady&&e.onReady();else{const z=setTimeout(()=>{_.current===!1&&(P("textarea"),e.onReady&&e.onReady())},5e3);return()=>{clearTimeout(z)}}},[]);const L=async(z,Q)=>{const le=await N([new File([z.blob()],"filename")],!0)[0];return I({diskPath:le})},j=window.matchMedia("(prefers-color-scheme: dark)").matches||document.getElementsByTagName("body")[0].classList.contains("dark-theme");return w.jsx(ef,{focused:T,...e,children:t.textEditorModule==="tinymce"&&!g||y?w.jsx(BOe,{onInit:(z,Q)=>{k.current=Q,setTimeout(()=>{Q.setContent(u||"",{format:"raw"})},0),e.onReady&&e.onReady()},onEditorChange:(z,Q)=>{l&&l(Q.getContent({format:"raw"}))},onLoadContent:()=>{_.current=!0},apiKey:"4dh1g4gxp1gbmxi3hnkro4wf9lfgmqr86khygey2bwb7ps74",onBlur:()=>C(!1),tinymceScriptSrc:kr.PUBLIC_URL+"plugins/js/tinymce/tinymce.min.js",onFocus:()=>C(!0),init:{menubar:!1,height:d||400,images_upload_handler:L,skin:j?"oxide-dark":"oxide",content_css:j?"dark":"default",plugins:["example","image","directionality","image"],toolbar:"undo redo | formatselect | example | image | rtl ltr | link | bullist numlist bold italic backcolor h2 h3 | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",content_style:"body {font-size:18px }"}}):w.jsx("textarea",{...E,value:u,placeholder:n,style:{minHeight:"140px"},autoFocus:v,className:ia("form-control",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),onChange:z=>l&&l(z.target.value),onBlur:()=>C(!1),onFocus:()=>C(!0)})})},HOe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(nt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(NE),u=Bs(Br.definition.fields.find(d=>d.name==="keyGroup").of.map(d=>({label:d.k,value:d.k})));return w.jsxs(w.Fragment,{children:[w.jsx(ca,{keyExtractor:d=>d.value,formEffect:{form:e,field:Br.Fields.keyGroup,beforeSet(d){return d.value}},querySource:u,errorMessage:o.keyGroup,label:l.regionalContents.keyGroup,hint:l.regionalContents.keyGroupHint}),w.jsx(qF,{value:r.content,forceRich:r.keyGroup==="EMAIL_OTP",forceBasic:r.keyGroup==="SMS_OTP",onChange:d=>i(Br.Fields.content,d,!1),errorMessage:o.content,label:l.regionalContents.content,hint:l.regionalContents.contentHint}),w.jsx(In,{value:"global",readonly:!0,onChange:d=>i(Br.Fields.region,d,!1),errorMessage:o.region,label:l.regionalContents.region,hint:l.regionalContents.regionHint}),w.jsx(In,{value:r.title,onChange:d=>i(Br.Fields.title,d,!1),errorMessage:o.title,label:l.regionalContents.title,hint:l.regionalContents.titleHint}),w.jsx(In,{value:r.languageId,onChange:d=>i(Br.Fields.languageId,d,!1),errorMessage:o.languageId,label:l.regionalContents.languageId,hint:l.regionalContents.languageIdHint})]})};function Mee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/regional-content/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.RegionalContentEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function VOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/regional-content".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.RegionalContentEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function GOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/regional-content".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.RegionalContentEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const D5=({data:e})=>{const t=Kt(NE),{router:n,uniqueId:r,queryClient:a,locale:i}=Dr({data:e}),o=Mee({query:{uniqueId:r}}),l=VOe({queryClient:a}),u=GOe({queryClient:a});return w.jsx(Uo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(Br.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return Br.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:HOe,onEditTitle:t.regionalContents.editRegionalContent,onCreateTitle:t.regionalContents.newRegionalContent,data:e})},YOe=()=>{var a;const{uniqueId:e}=Dr({}),t=Mee({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt(NE);return w.jsx(w.Fragment,{children:w.jsx(ao,{editEntityHandler:({locale:i,router:o})=>{o.push(Br.Navigation.edit(e))},getSingleHook:t,children:w.jsx(io,{entity:n,fields:[{elem:n==null?void 0:n.region,label:r.regionalContents.region},{elem:n==null?void 0:n.title,label:r.regionalContents.title},{elem:n==null?void 0:n.languageId,label:r.regionalContents.languageId}]})})})};function KOe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(D5,{}),path:Br.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(YOe,{}),path:Br.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(D5,{}),path:Br.Navigation.Redit}),w.jsx(mt,{element:w.jsx(ROe,{}),path:Br.Navigation.Rquery})]})}function Iee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/user/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.UserEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function XOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/user".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.UserEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function QOe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/user".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.UserEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const JOe=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a,setValues:i}=e,{options:o}=R.useContext(nt),l=At();return w.jsx(w.Fragment,{children:w.jsxs("div",{className:"row",children:[w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:n==null?void 0:n.firstName,onChange:u=>r(aa.Fields.firstName,u,!1),autoFocus:!t,errorMessage:a==null?void 0:a.firstName,label:l.wokspaces.invite.firstName,hint:l.wokspaces.invite.firstNameHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:n==null?void 0:n.lastName,onChange:u=>r(aa.Fields.lastName,u,!1),errorMessage:a==null?void 0:a.lastName,label:l.wokspaces.invite.lastName,hint:l.wokspaces.invite.lastNameHint})})]})})},$5=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a,t:i}=Dr({data:e}),o=Iee({query:{uniqueId:n,deep:!0}}),l=QOe({queryClient:r}),u=XOe({queryClient:r});return w.jsx(Uo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(aa.Navigation.query(void 0,a))},onFinishUriResolver:(d,f)=>{var g;return aa.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:JOe,onEditTitle:i.user.editUser,onCreateTitle:i.user.newUser,data:e})};function Dee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/passports".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.PassportEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Dee.UKEY="*abac.PassportEntity";const ZOe=({userId:e})=>{const{items:t}=Dee({query:{query:e?"user_id = "+e:null}});return w.jsx("div",{children:w.jsx(Io,{title:"Passports",children:t.map(n=>w.jsx(tRe,{passport:n},n.uniqueId))})})};function eRe(e){if(e==null)return"n/a";if(e===!0)return"Yes";if(e===!1)return"No"}const tRe=({passport:e})=>w.jsx("div",{children:w.jsxs("div",{className:"general-entity-view ",children:[w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:"Value:"}),w.jsx("div",{className:"field-value",children:e.value})]}),w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:"Type:"}),w.jsx("div",{className:"field-value",children:e.type})]}),w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:"Confirmed:"}),w.jsx("div",{className:"field-value",children:eRe(e.confirmed)})]})]})}),nRe=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Iee({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return hh((a==null?void 0:a.firstName)||""),w.jsx(w.Fragment,{children:w.jsxs(ao,{editEntityHandler:()=>{e.push(aa.Navigation.edit(n))},getSingleHook:r,children:[w.jsx(io,{entity:a,fields:[{label:t.users.firstName,elem:a==null?void 0:a.firstName},{label:t.users.lastName,elem:a==null?void 0:a.lastName}]}),w.jsx(ZOe,{userId:n})]})})};function rRe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(nt),o=t?t(a):i?i(a):St(a);let u=`${"/user".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.UserEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.UserEntity"),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function $ee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/users".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.UserEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}$ee.UKEY="*abac.UserEntity";const aRe=({gender:e})=>e===0?w.jsx("img",{style:{width:"20px",height:"20px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pjxzdmcgdmlld0JveD0iMCAwIDI1NiA1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyOCAwYzM1LjM0NiAwIDY0IDI4LjY1NCA2NCA2NHMtMjguNjU0IDY0LTY0IDY0Yy0zNS4zNDYgMC02NC0yOC42NTQtNjQtNjRTOTIuNjU0IDAgMTI4IDBtMTE5LjI4MyAzNTQuMTc5bC00OC0xOTJBMjQgMjQgMCAwIDAgMTc2IDE0NGgtMTEuMzZjLTIyLjcxMSAxMC40NDMtNDkuNTkgMTAuODk0LTczLjI4IDBIODBhMjQgMjQgMCAwIDAtMjMuMjgzIDE4LjE3OWwtNDggMTkyQzQuOTM1IDM2OS4zMDUgMTYuMzgzIDM4NCAzMiAzODRoNTZ2MTA0YzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNGgzMmMxMy4yNTUgMCAyNC0xMC43NDUgMjQtMjRWMzg0aDU2YzE1LjU5MSAwIDI3LjA3MS0xNC42NzEgMjMuMjgzLTI5LjgyMXoiLz48L3N2Zz4="}):w.jsx("img",{style:{width:"20px",height:"20px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjwhRE9DVFlQRSBzdmcgIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nICAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz48c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE0MS43MzIgMTQxLjczMiIgaGVpZ2h0PSIxNDEuNzMycHgiIGlkPSJMaXZlbGxvXzEiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDE0MS43MzIgMTQxLjczMiIgd2lkdGg9IjE0MS43MzJweCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgaWQ9IkxpdmVsbG9fOTAiPjxwYXRoIGQ9Ik04MS42NDcsMTAuNzU0YzAtNS4zNzItMy45NzMtOS44MTgtOS4xNi0xMC42MjRoMC4xMTdjLTAuMzc5LTAuMDU4LTAuNzY4LTAuMDktMS4xNTYtMC4xMDQgICBjLTAuMTAzLTAuMDA2LTAuMjA3LTAuMDA5LTAuMzExLTAuMDEyQzcxLjA2NiwwLjAxLDcwLjk5NiwwLDcwLjkyMywwYy0wLjAyMSwwLTAuMDM4LDAuMDAzLTAuMDYsMC4wMDMgICBDNzAuODQ2LDAuMDAzLDcwLjgyOCwwLDcwLjgwNywwYy0wLjA2OSwwLTAuMTQyLDAuMDEyLTAuMjE0LDAuMDE0Yy0wLjEwNCwwLjAwMy0wLjIwOCwwLjAwNi0wLjMxMiwwLjAxMiAgIGMtMC4zOTMsMC4wMTktMC43NzQsMC4wNTEtMS4xNTMsMC4xMDRoMC4xMTdjLTUuMTg5LDAuODA2LTkuMTYsNS4yNTItOS4xNiwxMC42MjRjMCw1Ljg5OSw0Ljc5MSwxMC42ODgsMTAuNzI0LDEwLjc0OHYwLjAwNCAgIGMwLjAyMSwwLDAuMDM5LTAuMDAxLDAuMDYyLTAuMDAyYzAuMDIxLDAuMDAxLDAuMDM4LDAuMDAyLDAuMDU5LDAuMDAydi0wLjAwNEM3Ni44NTYsMjEuNDQsODEuNjQ3LDE2LjY1Myw4MS42NDcsMTAuNzU0ICAgIE05NS45MTUsNjcuODEzVjI1LjYzOGMwLTIuMjgyLTEuODUyLTQuMTM2LTQuMTM1LTQuMTM2SDcwLjkyM2gtMC4xMTZINDkuOTVjLTIuMjgyLDAuMDAzLTQuMTMzLDEuODUzLTQuMTMzLDQuMTM2djQyLjE3NmgwLjAwNCAgIGMwLjA0OCwyLjI0MiwxLjg3NSw0LjA0Nyw0LjEyOSw0LjA0N2MyLjI1MywwLDQuMDgyLTEuODA1LDQuMTI4LTQuMDQ3aDAuMDA0VjQ0Ljk3MmgtMC4wMDlWMzMuOTM0YzAtMC43ODQsMC42MzgtMS40MiwxLjQyMS0xLjQyICAgczEuNDIsMC42MzYsMS40MiwxLjQydjExLjAzOHY4OC4zMTRjMC4zMiwzLjEwNywyLjkxNCw1LjUzNyw2LjA5LDUuNjA4aDAuMjg1YzMuMzk2LTAuMDc2LDYuMTI1LTIuODQ5LDYuMTI1LTYuMjU5Vjc3LjQ1NSAgIGMwLTAuNzcxLDAuNjItMS4zOTYsMS4zOTQtMS40MTF2MC4wMTJjMC4wMjEtMC4wMDEsMC4wMzktMC4wMDcsMC4wNjItMC4wMWMwLjAyMSwwLjAwMywwLjAzOCwwLjAwOSwwLjA1OSwwLjAxdi0wLjAxMiAgIGMwLjc3LDAuMDE4LDEuMzk1LDAuNjQzLDEuMzk1LDEuNDExdjU1LjE4OGMwLDMuNDEyLDIuNzMsNi4xODMsNi4xMjUsNi4yNTloMC4yODVjMy4xNzYtMC4wNzEsNS43Ny0yLjUwMSw2LjA5LTUuNjA4VjQ0Ljk3NCAgIHYtMTEuMDRjMC0wLjc4NCwwLjYzNy0xLjQyLDEuNDIyLTEuNDJjMC43ODEsMCwxLjQyLDAuNjM2LDEuNDIsMS40MnYxMS4wMzhoLTAuMDF2MjIuODQyaDAuMDA0ICAgYzAuMDQ3LDIuMjQyLDEuODc1LDQuMDQ3LDQuMTI5LDQuMDQ3Qzk0LjA0LDcxLjg2MSw5NS44NjYsNzAuMDU2LDk1LjkxNSw2Ny44MTNMOTUuOTE1LDY3LjgxM0w5NS45MTUsNjcuODEzeiIvPjwvZz48ZyBpZD0iTGl2ZWxsb18xXzFfIi8+PC9zdmc+"}),iRe=e=>[{name:aa.Fields.uniqueId,title:e.table.uniqueId,width:100},{name:"firstName",title:e.users.firstName,width:200,sortable:!0,filterable:!0,getCellValue:t=>t==null?void 0:t.firstName},{filterable:!0,name:"lastName",sortable:!0,title:e.users.lastName,width:200,getCellValue:t=>t==null?void 0:t.lastName},{name:"birthDate",title:"birthdate",width:140,getCellValue:t=>w.jsx(w.Fragment,{children:t==null?void 0:t.birthDate}),filterType:"date",filterable:!0,sortable:!0},{name:"gender",title:"gender",width:50,getCellValue:t=>w.jsx(w.Fragment,{children:w.jsx(aRe,{gender:t.gender})})},{name:"Image",title:"Image",width:40,getCellValue:t=>w.jsx(w.Fragment,{children:(t==null?void 0:t.photo)&&w.jsx("img",{src:t==null?void 0:t.photo,style:{width:"20px",height:"20px"}})})},{name:aa.Fields.primaryAddress.countryCode,title:"Country code",width:40,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.countryCode})}},{name:aa.Fields.primaryAddress.addressLine1,title:"Address Line 1",width:180,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.addressLine1})}},{name:aa.Fields.primaryAddress.addressLine2,title:"Address Line 2",width:180,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.addressLine2})}},{name:aa.Fields.primaryAddress.city,title:"City",width:180,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.city})}},{name:aa.Fields.primaryAddress.postalCode,title:"Postal Code",width:80,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.postalCode})}}],oRe=()=>{const e=At();return hh(e.fbMenu.users),w.jsx(w.Fragment,{children:w.jsx(jo,{columns:iRe(e),queryHook:$ee,uniqueIdHrefHandler:t=>aa.Navigation.single(t),deleteHook:rRe})})},sRe=()=>{const e=At(),t=xr();return sr(),w.jsx(w.Fragment,{children:w.jsx(Fo,{newEntityHandler:()=>{t.push(aa.Navigation.create())},pageTitle:e.fbMenu.users,children:w.jsx(oRe,{})})})};function lRe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx($5,{}),path:aa.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(nRe,{}),path:aa.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx($5,{}),path:aa.Navigation.Redit}),w.jsx(mt,{element:w.jsx(sRe,{}),path:aa.Navigation.Rquery})]})}class La extends wn{constructor(...t){super(...t),this.children=void 0,this.enableRecaptcha2=void 0,this.enableOtp=void 0,this.requireOtpOnSignup=void 0,this.requireOtpOnSignin=void 0,this.recaptcha2ServerKey=void 0,this.recaptcha2ClientKey=void 0,this.enableTotp=void 0,this.forceTotp=void 0,this.forcePasswordOnPhone=void 0,this.forcePersonNameOnPhone=void 0,this.generalEmailProvider=void 0,this.generalEmailProviderId=void 0,this.generalGsmProvider=void 0,this.generalGsmProviderId=void 0,this.inviteToWorkspaceContent=void 0,this.inviteToWorkspaceContentId=void 0,this.emailOtpContent=void 0,this.emailOtpContentId=void 0,this.smsOtpContent=void 0,this.smsOtpContentId=void 0}}La.Navigation={edit(e,t){return`${t?"/"+t:".."}/workspace-config/edit/${e}`},create(e){return`${e?"/"+e:".."}/workspace-config/new`},single(e,t){return`${t?"/"+t:".."}/workspace-config/${e}`},query(e={},t){return`${t?"/"+t:".."}/workspace-configs`},Redit:"workspace-config/edit/:uniqueId",Rcreate:"workspace-config/new",Rsingle:"workspace-config/:uniqueId",Rquery:"workspace-configs"};La.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspaceConfig",distinctBy:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"enableRecaptcha2",description:"Enables the recaptcha2 for authentication flow.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"enableOtp",recommended:!0,description:"Enables the otp option. It's not forcing it, so user can choose if they want otp or password.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignup",recommended:!0,description:"Forces the user to have otp verification before can create an account. They can define their password still.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignin",recommended:!0,description:"Forces the user to use otp when signing in. Even if they have password set, they won't use it and only will be able to signin using that otp.",type:"bool?",default:!1,computedType:"boolean",gormMap:{}},{name:"recaptcha2ServerKey",description:"Secret which would be used to decrypt if the recaptcha is correct. Should not be available publicly.",type:"string",computedType:"string",gormMap:{}},{name:"recaptcha2ClientKey",description:"Secret which would be used for recaptcha2 on the client side. Can be publicly visible, and upon authenticating users it would be sent to front-end.",type:"string",computedType:"string",gormMap:{}},{name:"enableTotp",recommended:!0,description:"Enables user to make 2FA using apps such as google authenticator or microsoft authenticator.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forceTotp",recommended:!0,description:"Forces the user to setup a 2FA in order to access their account. Users which did not setup this won't be affected.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePasswordOnPhone",description:"Forces users who want to create account using phone number to also set a password on their account",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePersonNameOnPhone",description:"Forces the creation of account using phone number to ask for user first name and last name",type:"bool?",computedType:"boolean",gormMap:{}},{name:"generalEmailProvider",description:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",type:"one",target:"EmailProviderEntity",computedType:"EmailProviderEntity",gormMap:{}},{name:"generalGsmProvider",description:"General service which would be used to send text messages (sms) using it's services or API.",type:"one",target:"GsmProviderEntity",computedType:"GsmProviderEntity",gormMap:{}},{name:"inviteToWorkspaceContent",description:"This template would be used, as default when a user is inviting a third-party into their own workspace.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"emailOtpContent",description:"Upon one time password request for email, the content will be read to fill the message which will go to user.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"smsOtpContent",description:"Upon OTP text messages, this template will be used to create such text message, including the one time password code.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}}],cliName:"config",description:"Contains configuration which would be necessary for application environment to be running. At the moment, a single record is allowed, and only for root workspace. But in theory it could be configured per each workspace independently. For sub projects do not touch this, rather create a custom config entity if workspaces in the product need extra config."};La.Fields={...wn.Fields,enableRecaptcha2:"enableRecaptcha2",enableOtp:"enableOtp",requireOtpOnSignup:"requireOtpOnSignup",requireOtpOnSignin:"requireOtpOnSignin",recaptcha2ServerKey:"recaptcha2ServerKey",recaptcha2ClientKey:"recaptcha2ClientKey",enableTotp:"enableTotp",forceTotp:"forceTotp",forcePasswordOnPhone:"forcePasswordOnPhone",forcePersonNameOnPhone:"forcePersonNameOnPhone",generalEmailProviderId:"generalEmailProviderId",generalEmailProvider$:"generalEmailProvider",generalEmailProvider:gi.Fields,generalGsmProviderId:"generalGsmProviderId",generalGsmProvider$:"generalGsmProvider",generalGsmProvider:ua.Fields,inviteToWorkspaceContentId:"inviteToWorkspaceContentId",inviteToWorkspaceContent$:"inviteToWorkspaceContent",inviteToWorkspaceContent:Br.Fields,emailOtpContentId:"emailOtpContentId",emailOtpContent$:"emailOtpContent",emailOtpContent:Br.Fields,smsOtpContentId:"smsOtpContentId",smsOtpContent$:"smsOtpContent",smsOtpContent:Br.Fields};function Lee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var E;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/workspace-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=()=>l("GET",d),g=(E=i==null?void 0:i.headers)==null?void 0:E.authorization,y=g!="undefined"&&g!=null&&g!=null&&g!="null"&&!!g;let h=!0;return!y&&!a&&(h=!1),{query:jn([i,n,"*abac.WorkspaceConfigEntity"],f,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:h,...e||{}})}}function uRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceConfigEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const cRe={workspaceConfigs:{archiveTitle:"Workspace configs",description:"Configurate how the workspaces work in terms of totp, forced otp, recaptcha and how the user can interact with the application.",editWorkspaceConfig:"Edit workspace config",emailOtpContentHint:"Upon one time password request for email, the content will be read to fill the message which will go to user.",emailOtpContentLabel:"Email Otp Content",enableOtp:"Enable otp",enableOtpHint:"Enables the one time password for the selfservice. It would allow email or phone numbers to bypass password and recieve a 6 digit code on their inbox or phone.",enableRecaptcha2:"Enable reCAPTCHA2",enableRecaptcha2Hint:"Enables reCAPTCHA2 from google integration into the project selfservice. You need to provide Server Key and Client Key to make it effective.",enableTotp:"Enable totp",enableTotpHint:"Enables time based otp for account creation and signin.",forcePasswordOnPhone:"Force password on phone",forcePasswordOnPhoneHint:"Force password on phone",forcePersonNameOnPhone:"Force person name on phone",forcePersonNameOnPhoneHint:"Force person name on phone",forceTotp:"Force totp",forceTotpHint:"Forces the totp for account creation. If an account doesn't have it, they need to setup before they can login.",generalEmailProviderHint:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",generalEmailProviderLabel:"General Email Provider",generalGsmProviderHint:"General service which would be used to send text messages (sms) using it's services or API.",generalGsmProviderLabel:"General Gsm Provider",inviteToWorkspaceContentHint:"This template would be used, as default when a user is inviting a third-party into their own workspace.",inviteToWorkspaceContentLabel:"Invite To Workspace Content",newWorkspaceConfig:"New workspace config",otpSectionDescription:"Manage the user authentication using single time password over sms/email",otpSectionTitle:"OTP (One time password)",passwordSectionDescription:"Configurate the usage of password by users",passwordSectionTitle:"Password management",recaptcha2ClientKey:"Client key",recaptcha2ClientKeyHint:"Client key for reCAPTCHA2",recaptcha2ServerKey:"Server key",recaptcha2ServerKeyHint:"Server key for reCAPTCHA2",recaptchaSectionDescription:"Configurate the recaptcha 2 related options for the application.",recaptchaSectionTitle:"Recaptcha section",requireOtpOnSignin:"Require otp on signin",requireOtpOnSigninHint:"Forces passports such as phone and email to approve signin with 6 digit code, even if the passport has a password. OAuth is exempted.",requireOtpOnSignup:"Require otp on signup",requireOtpOnSignupHint:"It would force account creation to first make a one time password verification and then continue the process.",smsOtpContentHint:"Upon OTP text messages, this template will be used to create such text message, including the one time password code.",smsOtpContentLabel:"SMS Otp Content",title:"Workspace Config",totpSectionDescription:"Usage of the authenticator app as a second security step for the password.",totpSectionTitle:"TOTP (Time based Dual Factor)"}},dRe={workspaceConfigs:{archiveTitle:"Workspace configs",description:"Configurate how the workspaces work in terms of totp, forced otp, recaptcha and how the user can interact with the application.",editWorkspaceConfig:"Edit workspace config",emailOtpContentHint:"Upon one time password request for email, the content will be read to fill the message which will go to user.",emailOtpContentLabel:"Email Otp Content",enableOtp:"Enable otp",enableOtpHint:"Enables the one time password for the selfservice. It would allow email or phone numbers to bypass password and recieve a 6 digit code on their inbox or phone.",enableRecaptcha2:"Enable reCAPTCHA2",enableRecaptcha2Hint:"Enables reCAPTCHA2 from google integration into the project selfservice. You need to provide Server Key and Client Key to make it effective.",enableTotp:"Enable totp",enableTotpHint:"Enables time based otp for account creation and signin.",forcePasswordOnPhone:"Force password on phone",forcePasswordOnPhoneHint:"Force password on phone",forcePersonNameOnPhone:"Force person name on phone",forcePersonNameOnPhoneHint:"Force person name on phone",forceTotp:"Force totp",forceTotpHint:"Forces the totp for account creation. If an account doesn't have it, they need to setup before they can login.",generalEmailProviderHint:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",generalEmailProviderLabel:"General Email Provider",generalGsmProviderHint:"General service which would be used to send text messages (sms) using it's services or API.",generalGsmProviderLabel:"General Gsm Provider",inviteToWorkspaceContentHint:"This template would be used, as default when a user is inviting a third-party into their own workspace.",inviteToWorkspaceContentLabel:"Invite To Workspace Content",newWorkspaceConfig:"New workspace config",otpSectionDescription:"Manage the user authentication using single time password over sms/email",otpSectionTitle:"OTP (One time password)",passwordSectionDescription:"Configurate the usage of password by users",passwordSectionTitle:"Password management",recaptcha2ClientKey:"Client key",recaptcha2ClientKeyHint:"Client key for reCAPTCHA2",recaptcha2ServerKey:"Server key",recaptcha2ServerKeyHint:"Server key for reCAPTCHA2",recaptchaSectionDescription:"Configurate the recaptcha 2 related options for the application.",recaptchaSectionTitle:"Recaptcha section",requireOtpOnSignin:"Require otp on signin",requireOtpOnSigninHint:"Forces passports such as phone and email to approve signin with 6 digit code, even if the passport has a password. OAuth is exempted.",requireOtpOnSignup:"Require otp on signup",requireOtpOnSignupHint:"It would force account creation to first make a one time password verification and then continue the process.",smsOtpContentHint:"Upon one time password request for email, the content will be read to fill the message which will go to user.",smsOtpContentLabel:"SMS Otp Content",title:"Workspace Config",totpSectionDescription:"Usage of the authenticator app as a second security step for the password.",totpSectionTitle:"TOTP (Time based Dual Factor)"}},HF={...cRe,$pl:dRe};function VF({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/gsm-providers".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.GsmProviderEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}VF.UKEY="*abac.GsmProviderEntity";const fRe=({form:e,isEditing:t})=>{const{values:n,setValues:r,setFieldValue:a,errors:i}=e,o=Kt(HF);return w.jsxs(w.Fragment,{children:[w.jsxs(Io,{title:o.workspaceConfigs.recaptchaSectionTitle,description:o.workspaceConfigs.recaptchaSectionDescription,children:[w.jsx(vl,{value:n.enableRecaptcha2,onChange:l=>a(La.Fields.enableRecaptcha2,l,!1),errorMessage:i.enableRecaptcha2,label:o.workspaceConfigs.enableRecaptcha2,hint:o.workspaceConfigs.enableRecaptcha2Hint}),w.jsx(In,{value:n.recaptcha2ServerKey,disabled:!n.enableRecaptcha2,onChange:l=>a(La.Fields.recaptcha2ServerKey,l,!1),errorMessage:i.recaptcha2ServerKey,label:o.workspaceConfigs.recaptcha2ServerKey,hint:o.workspaceConfigs.recaptcha2ServerKeyHint}),w.jsx(In,{value:n.recaptcha2ClientKey,disabled:!n.enableRecaptcha2,onChange:l=>a(La.Fields.recaptcha2ClientKey,l,!1),errorMessage:i.recaptcha2ClientKey,label:o.workspaceConfigs.recaptcha2ClientKey,hint:o.workspaceConfigs.recaptcha2ClientKeyHint})]}),w.jsxs(Io,{title:o.workspaceConfigs.otpSectionTitle,description:o.workspaceConfigs.otpSectionDescription,children:[w.jsx(vl,{value:n.enableOtp,onChange:l=>a(La.Fields.enableOtp,l,!1),errorMessage:i.enableOtp,label:o.workspaceConfigs.enableOtp,hint:o.workspaceConfigs.enableOtpHint}),w.jsx(vl,{value:n.requireOtpOnSignup,onChange:l=>a(La.Fields.requireOtpOnSignup,l,!1),errorMessage:i.requireOtpOnSignup,label:o.workspaceConfigs.requireOtpOnSignup,hint:o.workspaceConfigs.requireOtpOnSignupHint}),w.jsx(vl,{value:n.requireOtpOnSignin,onChange:l=>a(La.Fields.requireOtpOnSignin,l,!1),errorMessage:i.requireOtpOnSignin,label:o.workspaceConfigs.requireOtpOnSignin,hint:o.workspaceConfigs.requireOtpOnSigninHint})]}),w.jsxs(Io,{title:o.workspaceConfigs.totpSectionTitle,description:o.workspaceConfigs.totpSectionDescription,children:[w.jsx(vl,{value:n.enableTotp,onChange:l=>a(La.Fields.enableTotp,l,!1),errorMessage:i.enableTotp,label:o.workspaceConfigs.enableTotp,hint:o.workspaceConfigs.enableTotpHint}),w.jsx(vl,{value:n.forceTotp,onChange:l=>a(La.Fields.forceTotp,l,!1),errorMessage:i.forceTotp,label:o.workspaceConfigs.forceTotp,hint:o.workspaceConfigs.forceTotpHint})]}),w.jsxs(Io,{title:o.workspaceConfigs.passwordSectionTitle,description:o.workspaceConfigs.passwordSectionDescription,children:[w.jsx(vl,{value:n.forcePasswordOnPhone,onChange:l=>a(La.Fields.forcePasswordOnPhone,l,!1),errorMessage:i.forcePasswordOnPhone,label:o.workspaceConfigs.forcePasswordOnPhone,hint:o.workspaceConfigs.forcePasswordOnPhoneHint}),w.jsx(vl,{value:n.forcePersonNameOnPhone,onChange:l=>a(La.Fields.forcePersonNameOnPhone,l,!1),errorMessage:i.forcePersonNameOnPhone,label:o.workspaceConfigs.forcePersonNameOnPhone,hint:o.workspaceConfigs.forcePersonNameOnPhoneHint})]}),w.jsxs(Io,{title:o.workspaceConfigs.passwordSectionTitle,description:o.workspaceConfigs.passwordSectionDescription,children:[w.jsx(ca,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:La.Fields.generalEmailProviderId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.type} (${l.uniqueId})`,querySource:BF,errorMessage:i.generalEmailProviderId,label:o.workspaceConfigs.generalEmailProviderLabel,hint:o.workspaceConfigs.generalEmailProviderHint}),w.jsx(ca,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:La.Fields.generalGsmProviderId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.type} (${l.uniqueId})`,querySource:VF,errorMessage:i.generalGsmProviderId,label:o.workspaceConfigs.generalGsmProviderLabel,hint:o.workspaceConfigs.generalGsmProviderHint}),w.jsx(ca,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:La.Fields.inviteToWorkspaceContentId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.title})`,querySource:vS,errorMessage:i.inviteToWorkspaceContentId,label:o.workspaceConfigs.inviteToWorkspaceContentLabel,hint:o.workspaceConfigs.inviteToWorkspaceContentHint}),w.jsx(ca,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:La.Fields.emailOtpContentId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.title})`,querySource:vS,errorMessage:i.emailOtpContentId,label:o.workspaceConfigs.emailOtpContentLabel,hint:o.workspaceConfigs.emailOtpContentHint}),w.jsx(ca,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:La.Fields.smsOtpContentId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.title})`,querySource:vS,errorMessage:i.smsOtpContentId,label:o.workspaceConfigs.smsOtpContentLabel,hint:o.workspaceConfigs.smsOtpContentHint})]})]})},pRe=({data:e})=>{const t=Kt(HF),{router:n,uniqueId:r,queryClient:a,locale:i}=Dr({data:e}),o=Lee({query:{uniqueId:r}}),l=uRe({queryClient:a});return w.jsx(Uo,{patchHook:l,getSingleHook:o,disableOnGetFailed:!0,forceEdit:!0,onCancel:()=>{n.goBackOrDefault(La.Navigation.single(void 0,i))},onFinishUriResolver:(u,d)=>{var f;return La.Navigation.single((f=u.data)==null?void 0:f.uniqueId,d)},customClass:"w-100",Form:fRe,onEditTitle:t.workspaceConfigs.editWorkspaceConfig,onCreateTitle:t.workspaceConfigs.newWorkspaceConfig,data:e})},hRe=()=>{var r;const e=Lee({});var t=(r=e.query.data)==null?void 0:r.data;const n=Kt(HF);return w.jsx(w.Fragment,{children:w.jsx(ao,{editEntityHandler:({locale:a,router:i})=>{i.push(La.Navigation.edit(""))},noBack:!0,disableOnGetFailed:!0,getSingleHook:e,children:w.jsx(io,{title:n.workspaceConfigs.title,description:n.workspaceConfigs.description,entity:t,fields:[{elem:t==null?void 0:t.recaptcha2ServerKey,label:n.workspaceConfigs.recaptcha2ServerKey},{elem:t==null?void 0:t.recaptcha2ClientKey,label:n.workspaceConfigs.recaptcha2ClientKey},{elem:t==null?void 0:t.enableOtp,label:n.workspaceConfigs.enableOtp},{elem:t==null?void 0:t.enableRecaptcha2,label:n.workspaceConfigs.enableRecaptcha2},{elem:t==null?void 0:t.requireOtpOnSignin,label:n.workspaceConfigs.requireOtpOnSignin},{elem:t==null?void 0:t.requireOtpOnSignup,label:n.workspaceConfigs.requireOtpOnSignup},{elem:t==null?void 0:t.enableTotp,label:n.workspaceConfigs.enableTotp},{elem:t==null?void 0:t.forceTotp,label:n.workspaceConfigs.forceTotp},{elem:t==null?void 0:t.forcePasswordOnPhone,label:n.workspaceConfigs.forcePasswordOnPhone},{elem:t==null?void 0:t.forcePersonNameOnPhone,label:n.workspaceConfigs.forcePersonNameOnPhone},{elem:t==null?void 0:t.generalEmailProviderId,label:n.workspaceConfigs.generalEmailProviderLabel},{elem:t==null?void 0:t.generalGsmProviderId,label:n.workspaceConfigs.generalGsmProviderLabel},{elem:t==null?void 0:t.inviteToWorkspaceContentId,label:n.workspaceConfigs.inviteToWorkspaceContentLabel},{elem:t==null?void 0:t.emailOtpContentId,label:n.workspaceConfigs.emailOtpContentLabel},{elem:t==null?void 0:t.smsOtpContentId,label:n.workspaceConfigs.smsOtpContentLabel}]})})})};function mRe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(hRe,{}),path:"workspace-config"}),w.jsx(mt,{element:w.jsx(pRe,{}),path:"workspace-config/edit"})]})}function tf({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/roles".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.RoleEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}tf.UKEY="*abac.RoleEntity";const gRe=({form:e,isEditing:t})=>{const{values:n,setValues:r}=e,{options:a}=R.useContext(nt),i=At();return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:n.uniqueId,onChange:o=>e.setFieldValue(Qi.Fields.uniqueId,o,!1),errorMessage:e.errors.uniqueId,label:i.wokspaces.workspaceTypeUniqueId,autoFocus:!t,hint:i.wokspaces.workspaceTypeUniqueIdHint}),w.jsx(In,{value:n.title,onChange:o=>e.setFieldValue(Qi.Fields.title,o,!1),errorMessage:e.errors.title,label:i.wokspaces.workspaceTypeTitle,autoFocus:!t,hint:i.wokspaces.workspaceTypeTitleHint}),w.jsx(In,{value:n.slug,onChange:o=>e.setFieldValue(Qi.Fields.slug,o,!1),errorMessage:e.errors.slug,label:i.wokspaces.workspaceTypeSlug,hint:i.wokspaces.workspaceTypeSlugHint}),w.jsx(ca,{label:i.wokspaces.invite.role,hint:i.wokspaces.invite.roleHint,fnLabelFormat:o=>o.name,querySource:tf,formEffect:{form:e,field:Qi.Fields.role$},errorMessage:e.errors.roleId}),w.jsx(qF,{value:n.description,onChange:o=>e.setFieldValue(Qi.Fields.description,o,!1),errorMessage:e.errors.description,label:i.wokspaces.typeDescription,hint:i.wokspaces.typeDescriptionHint})]})};function Fee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/workspace-type/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.WorkspaceTypeEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function vRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace-type".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.WorkspaceTypeEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function yRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace-type".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceTypeEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const L5=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a,t:i}=Dr({data:e}),o=Fee({query:{uniqueId:n}}),l=vRe({queryClient:r}),u=yRe({queryClient:r});return w.jsx(Uo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(`/${a}/workspace-types`)},onFinishUriResolver:(d,f)=>{var g;return`/${f}/workspace-type/${(g=d.data)==null?void 0:g.uniqueId}`},Form:gRe,onEditTitle:i.fb.editWorkspaceType,onCreateTitle:i.fb.newWorkspaceType,data:e})};function bRe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(nt),o=t?t(a):i?i(a):St(a);let u=`${"/workspace-type".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.WorkspaceTypeEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.WorkspaceTypeEntity"),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function jee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/workspace-types".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.WorkspaceTypeEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}jee.UKEY="*abac.WorkspaceTypeEntity";const wRe=e=>[{name:"uniqueId",title:e.table.uniqueId,width:200},{name:"title",title:e.wokspaces.title,width:200,getCellValue:t=>t.title},{name:"slug",slug:e.wokspaces.slug,width:200,getCellValue:t=>t.slug}],SRe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{columns:wRe(e),queryHook:jee,uniqueIdHrefHandler:t=>Qi.Navigation.single(t),deleteHook:bRe})})},ERe=()=>{const e=At(),t=xr();return sr(),w.jsx(w.Fragment,{children:w.jsx(Fo,{newEntityHandler:()=>{t.push(Qi.Navigation.create())},pageTitle:e.fbMenu.workspaceTypes,children:w.jsx(SRe,{})})})},TRe=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Fee({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return hh((a==null?void 0:a.title)||""),w.jsx(w.Fragment,{children:w.jsx(ao,{editEntityHandler:()=>{e.push(Qi.Navigation.edit(n))},getSingleHook:r,children:w.jsx(io,{entity:a,fields:[{label:t.wokspaces.slug,elem:a==null?void 0:a.slug}]})})})};function CRe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(L5,{}),path:Qi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(L5,{}),path:Qi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(TRe,{}),path:Qi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(ERe,{}),path:Qi.Navigation.Rquery})]})}function kRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.WorkspaceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function Uee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/workspace/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.WorkspaceEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function xRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const _Re=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a}=e,i=At();return w.jsx(w.Fragment,{children:w.jsx(In,{value:n.name,autoFocus:!t,onChange:o=>r(yi.Fields.name,o,!1),errorMessage:a.name,label:i.wokspaces.workspaceName,hint:i.wokspaces.workspaceNameHint})})},F5=({data:e})=>{const t=At(),{router:n,uniqueId:r,queryClient:a,locale:i}=Dr({data:e}),o=Uee({query:{uniqueId:r}}),l=kRe({queryClient:a}),u=xRe({queryClient:a});return w.jsx(Uo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{n.goBackOrDefault(yi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return yi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:_Re,onEditTitle:t.wokspaces.editWorkspae,onCreateTitle:t.wokspaces.createNewWorkspace,data:e})},ORe=({row:e,uniqueIdHrefHandler:t,columns:n})=>{const r=At();return w.jsx(w.Fragment,{children:(e.children||[]).map(a=>w.jsxs("tr",{children:[w.jsx("td",{}),w.jsx("td",{}),n(r).map(i=>{let o=a.getCellValue?a.getCellValue(e):a[i.name];return i.name==="uniqueId"?w.jsx("td",{children:w.jsx(kl,{href:t&&t(o),children:o})}):w.jsx("td",{children:o})})]}))})};function Bee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/cte-workspaces".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.WorkspaceEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Bee.UKEY="*abac.WorkspaceEntity";const j5=e=>[{name:yi.Fields.uniqueId,title:e.table.uniqueId,width:100},{name:yi.Fields.name,title:e.wokspaces.name,width:200}],RRe=()=>{const e=At(),t=n=>yi.Navigation.single(n);return w.jsx(w.Fragment,{children:w.jsx(jo,{columns:j5(e),queryHook:Bee,onRecordsDeleted:({queryClient:n})=>{n.invalidateQueries("*fireback.UserRoleWorkspace"),n.invalidateQueries("*fireback.WorkspaceEntity")},RowDetail:n=>w.jsx(ORe,{...n,columns:j5,uniqueIdHref:!0,Handler:t}),uniqueIdHrefHandler:t})})},PRe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Fo,{pageTitle:e.fbMenu.workspaces,newEntityHandler:({locale:t,router:n})=>{n.push(yi.Navigation.create())},children:w.jsx(RRe,{})})})},ARe=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Uee({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return hh((a==null?void 0:a.name)||""),w.jsx(w.Fragment,{children:w.jsx(ao,{editEntityHandler:()=>{e.push(yi.Navigation.edit(n))},getSingleHook:r,children:w.jsx(io,{entity:a,fields:[{label:t.wokspaces.name,elem:a==null?void 0:a.name}]})})})};function NRe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(F5,{}),path:yi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(F5,{}),path:yi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(ARe,{}),path:yi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(PRe,{}),path:yi.Navigation.Rquery})]})}const MRe={gsmProviders:{apiKey:"Api key",apiKeyHint:"Api key",archiveTitle:"Gsm providers",editGsmProvider:"Edit gsm provider",invokeBody:"Invoke body",invokeBodyHint:"Invoke body",invokeUrl:"Invoke url",invokeUrlHint:"Invoke url",mainSenderNumber:"Main sender number",mainSenderNumberHint:"Main sender number",newGsmProvider:"New gsm provider",type:"Type",typeHint:"Type"}},IRe={gsmProviders:{apiKey:"Api key",apiKeyHint:"Api key",archiveTitle:"Gsm providers",editGsmProvider:"Edit gsm provider",invokeBody:"Invoke body",invokeBodyHint:"Invoke body",invokeUrl:"Invoke url",invokeUrlHint:"Invoke url",mainSenderNumber:"Main sender number",mainSenderNumberHint:"Main sender number",newGsmProvider:"New gsm provider",type:"Type",typeHint:"Type"}},ME={...MRe,$pl:IRe},DRe=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:ua.Fields.apiKey,title:e.gsmProviders.apiKey,width:100},{name:ua.Fields.mainSenderNumber,title:e.gsmProviders.mainSenderNumber,width:100},{name:ua.Fields.type,title:e.gsmProviders.type,width:100},{name:ua.Fields.invokeUrl,title:e.gsmProviders.invokeUrl,width:100},{name:ua.Fields.invokeBody,title:e.gsmProviders.invokeBody,width:100}];function $Re(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(nt),o=t?t(a):i?i(a):St(a);let u=`${"/gsm-provider".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.GsmProviderEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.GsmProviderEntity"),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const LRe=()=>{const e=Kt(ME);return w.jsx(w.Fragment,{children:w.jsx(jo,{columns:DRe(e),queryHook:VF,uniqueIdHrefHandler:t=>ua.Navigation.single(t),deleteHook:$Re})})},FRe=()=>{const e=Kt(ME);return w.jsx(Fo,{pageTitle:e.gsmProviders.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(ua.Navigation.create())},children:w.jsx(LRe,{})})},jRe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(nt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Bs([{uniqueId:"terminal",title:"Terminal"},{uniqueId:"url",title:"Url"}]),u=Kt(ME);return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.apiKey,onChange:d=>i(ua.Fields.apiKey,d,!1),errorMessage:o.apiKey,label:u.gsmProviders.apiKey,hint:u.gsmProviders.apiKeyHint}),w.jsx(In,{value:r.mainSenderNumber,onChange:d=>i(ua.Fields.mainSenderNumber,d,!1),errorMessage:o.mainSenderNumber,label:u.gsmProviders.mainSenderNumber,hint:u.gsmProviders.mainSenderNumberHint}),w.jsx(ca,{querySource:l,value:r.type,fnLabelFormat:d=>d.title,keyExtractor:d=>d.uniqueId,onChange:d=>i(ua.Fields.type,d.uniqueId,!1),errorMessage:o.type,label:u.gsmProviders.type,hint:u.gsmProviders.typeHint}),w.jsx(In,{value:r.invokeUrl,onChange:d=>i(ua.Fields.invokeUrl,d,!1),errorMessage:o.invokeUrl,label:u.gsmProviders.invokeUrl,hint:u.gsmProviders.invokeUrlHint}),w.jsx(In,{value:r.invokeBody,onChange:d=>i(ua.Fields.invokeBody,d,!1),errorMessage:o.invokeBody,label:u.gsmProviders.invokeBody,hint:u.gsmProviders.invokeBodyHint})]})};function Wee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/gsm-provider/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.GsmProviderEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function URe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/gsm-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.GsmProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function BRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/gsm-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.GsmProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const U5=({data:e})=>{const t=Kt(ME),{router:n,uniqueId:r,queryClient:a,locale:i}=Dr({data:e}),o=Wee({query:{uniqueId:r}}),l=URe({queryClient:a}),u=BRe({queryClient:a});return w.jsx(Uo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(ua.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return ua.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:jRe,onEditTitle:t.gsmProviders.editGsmProvider,onCreateTitle:t.gsmProviders.newGsmProvider,data:e})},WRe=()=>{var a;const{uniqueId:e}=Dr({}),t=Wee({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt(ME);return w.jsx(w.Fragment,{children:w.jsx(ao,{editEntityHandler:({locale:i,router:o})=>{o.push(ua.Navigation.edit(e))},getSingleHook:t,children:w.jsx(io,{entity:n,fields:[{elem:n==null?void 0:n.apiKey,label:r.gsmProviders.apiKey},{elem:n==null?void 0:n.mainSenderNumber,label:r.gsmProviders.mainSenderNumber},{elem:n==null?void 0:n.invokeUrl,label:r.gsmProviders.invokeUrl},{elem:n==null?void 0:n.invokeBody,label:r.gsmProviders.invokeBody}]})})})};function zRe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(U5,{}),path:ua.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(WRe,{}),path:ua.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(U5,{}),path:ua.Navigation.Redit}),w.jsx(mt,{element:w.jsx(FRe,{}),path:ua.Navigation.Rquery})]})}function qRe(){const e=a_e(),t=f_e(),n=x_e(),r=zRe(),a=D_e(),i=V_e(),o=lRe(),l=mRe(),u=CRe(),d=NRe(),f=KOe(),g=TOe();return w.jsxs(mt,{path:"manage",children:[e,t,g,n,a,i,o,r,l,u,d,f]})}const HRe=()=>w.jsxs("div",{children:[w.jsx("h1",{className:"mt-4",children:"Dashboard"}),w.jsx("p",{children:"Welcome to the dashboard. You can see what's going on here."})]}),GF=R.createContext({});function YF(e){const t=R.useRef(null);return t.current===null&&(t.current=e()),t.current}const KF=typeof window<"u",zee=KF?R.useLayoutEffect:R.useEffect,E_=R.createContext(null);function XF(e,t){e.indexOf(t)===-1&&e.push(t)}function QF(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ud=(e,t,n)=>n>t?t:n{};const Bd={},qee=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Hee(e){return typeof e=="object"&&e!==null}const Vee=e=>/^0[^.\s]+$/u.test(e);function ZF(e){let t;return()=>(t===void 0&&(t=e()),t)}const _l=e=>e,VRe=(e,t)=>n=>t(e(n)),IE=(...e)=>e.reduce(VRe),YS=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class ej{constructor(){this.subscriptions=[]}add(t){return XF(this.subscriptions,t),()=>QF(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let i=0;ie*1e3,Tc=e=>e/1e3;function Gee(e,t){return t?e*(1e3/t):0}const Yee=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,GRe=1e-7,YRe=12;function KRe(e,t,n,r,a){let i,o,l=0;do o=t+(n-t)/2,i=Yee(o,r,a)-e,i>0?n=o:t=o;while(Math.abs(i)>GRe&&++lKRe(i,0,1,e,n);return i=>i===0||i===1?i:Yee(a(i),t,r)}const Kee=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Xee=e=>t=>1-e(1-t),Qee=DE(.33,1.53,.69,.99),tj=Xee(Qee),Jee=Kee(tj),Zee=e=>(e*=2)<1?.5*tj(e):.5*(2-Math.pow(2,-10*(e-1))),nj=e=>1-Math.sin(Math.acos(e)),ete=Xee(nj),tte=Kee(nj),XRe=DE(.42,0,1,1),QRe=DE(0,0,.58,1),nte=DE(.42,0,.58,1),JRe=e=>Array.isArray(e)&&typeof e[0]!="number",rte=e=>Array.isArray(e)&&typeof e[0]=="number",ZRe={linear:_l,easeIn:XRe,easeInOut:nte,easeOut:QRe,circIn:nj,circInOut:tte,circOut:ete,backIn:tj,backInOut:Jee,backOut:Qee,anticipate:Zee},ePe=e=>typeof e=="string",B5=e=>{if(rte(e)){JF(e.length===4);const[t,n,r,a]=e;return DE(t,n,r,a)}else if(ePe(e))return ZRe[e];return e},nk=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],W5={value:null};function tPe(e,t){let n=new Set,r=new Set,a=!1,i=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},u=0;function d(g){o.has(g)&&(f.schedule(g),e()),u++,g(l)}const f={schedule:(g,y=!1,h=!1)=>{const E=h&&a?n:r;return y&&o.add(g),E.has(g)||E.add(g),g},cancel:g=>{r.delete(g),o.delete(g)},process:g=>{if(l=g,a){i=!0;return}a=!0,[n,r]=[r,n],n.forEach(d),t&&W5.value&&W5.value.frameloop[t].push(u),u=0,n.clear(),a=!1,i&&(i=!1,f.process(g))}};return f}const nPe=40;function ate(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=nk.reduce((_,A)=>(_[A]=tPe(i,t?A:void 0),_),{}),{setup:l,read:u,resolveKeyframes:d,preUpdate:f,update:g,preRender:y,render:h,postRender:v}=o,E=()=>{const _=Bd.useManualTiming?a.timestamp:performance.now();n=!1,Bd.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(_-a.timestamp,nPe),1)),a.timestamp=_,a.isProcessing=!0,l.process(a),u.process(a),d.process(a),f.process(a),g.process(a),y.process(a),h.process(a),v.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(E))},T=()=>{n=!0,r=!0,a.isProcessing||e(E)};return{schedule:nk.reduce((_,A)=>{const P=o[A];return _[A]=(N,I=!1,L=!1)=>(n||T(),P.schedule(N,I,L)),_},{}),cancel:_=>{for(let A=0;A(Dk===void 0&&is.set(Fi.isProcessing||Bd.useManualTiming?Fi.timestamp:performance.now()),Dk),set:e=>{Dk=e,queueMicrotask(rPe)}},ite=e=>t=>typeof t=="string"&&t.startsWith(e),rj=ite("--"),aPe=ite("var(--"),aj=e=>aPe(e)?iPe.test(e.split("/*")[0].trim()):!1,iPe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,y0={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},KS={...y0,transform:e=>Ud(0,1,e)},rk={...y0,default:1},yS=e=>Math.round(e*1e5)/1e5,ij=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function oPe(e){return e==null}const sPe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,oj=(e,t)=>n=>!!(typeof n=="string"&&sPe.test(n)&&n.startsWith(e)||t&&!oPe(n)&&Object.prototype.hasOwnProperty.call(n,t)),ote=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,i,o,l]=r.match(ij);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},lPe=e=>Ud(0,255,e),ZP={...y0,transform:e=>Math.round(lPe(e))},rv={test:oj("rgb","red"),parse:ote("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ZP.transform(e)+", "+ZP.transform(t)+", "+ZP.transform(n)+", "+yS(KS.transform(r))+")"};function uPe(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const VL={test:oj("#"),parse:uPe,transform:rv.transform},$E=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Wp=$E("deg"),Cc=$E("%"),mn=$E("px"),cPe=$E("vh"),dPe=$E("vw"),z5={...Cc,parse:e=>Cc.parse(e)/100,transform:e=>Cc.transform(e*100)},_b={test:oj("hsl","hue"),parse:ote("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Cc.transform(yS(t))+", "+Cc.transform(yS(n))+", "+yS(KS.transform(r))+")"},Ga={test:e=>rv.test(e)||VL.test(e)||_b.test(e),parse:e=>rv.test(e)?rv.parse(e):_b.test(e)?_b.parse(e):VL.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?rv.transform(e):_b.transform(e),getAnimatableNone:e=>{const t=Ga.parse(e);return t.alpha=0,Ga.transform(t)}},fPe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pPe(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ij))==null?void 0:t.length)||0)+(((n=e.match(fPe))==null?void 0:n.length)||0)>0}const ste="number",lte="color",hPe="var",mPe="var(",q5="${}",gPe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function XS(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let i=0;const l=t.replace(gPe,u=>(Ga.test(u)?(r.color.push(i),a.push(lte),n.push(Ga.parse(u))):u.startsWith(mPe)?(r.var.push(i),a.push(hPe),n.push(u)):(r.number.push(i),a.push(ste),n.push(parseFloat(u))),++i,q5)).split(q5);return{values:n,split:l,indexes:r,types:a}}function ute(e){return XS(e).values}function cte(e){const{split:t,types:n}=XS(e),r=t.length;return a=>{let i="";for(let o=0;otypeof e=="number"?0:Ga.test(e)?Ga.getAnimatableNone(e):e;function yPe(e){const t=ute(e);return cte(e)(t.map(vPe))}const sh={test:pPe,parse:ute,createTransformer:cte,getAnimatableNone:yPe};function eA(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function bPe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,i=0,o=0;if(!t)a=i=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;a=eA(u,l,e+1/3),i=eA(u,l,e),o=eA(u,l,e-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function xx(e,t){return n=>n>0?t:e}const da=(e,t,n)=>e+(t-e)*n,tA=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},wPe=[VL,rv,_b],SPe=e=>wPe.find(t=>t.test(e));function H5(e){const t=SPe(e);if(!t)return!1;let n=t.parse(e);return t===_b&&(n=bPe(n)),n}const V5=(e,t)=>{const n=H5(e),r=H5(t);if(!n||!r)return xx(e,t);const a={...n};return i=>(a.red=tA(n.red,r.red,i),a.green=tA(n.green,r.green,i),a.blue=tA(n.blue,r.blue,i),a.alpha=da(n.alpha,r.alpha,i),rv.transform(a))},GL=new Set(["none","hidden"]);function EPe(e,t){return GL.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function TPe(e,t){return n=>da(e,t,n)}function sj(e){return typeof e=="number"?TPe:typeof e=="string"?aj(e)?xx:Ga.test(e)?V5:xPe:Array.isArray(e)?dte:typeof e=="object"?Ga.test(e)?V5:CPe:xx}function dte(e,t){const n=[...e],r=n.length,a=e.map((i,o)=>sj(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](a);return n}}function kPe(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a{const n=sh.createTransformer(t),r=XS(e),a=XS(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?GL.has(e)&&!a.values.length||GL.has(t)&&!r.values.length?EPe(e,t):IE(dte(kPe(r,a),a.values),n):xx(e,t)};function fte(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?da(e,t,n):sj(e)(e,t)}const _Pe=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>pa.update(t,n),stop:()=>oh(t),now:()=>Fi.isProcessing?Fi.timestamp:is.now()}},pte=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let i=0;i=_x?1/0:t}function OPe(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(lj(r),_x);return{type:"keyframes",ease:i=>r.next(a*i).value/t,duration:Tc(a)}}const RPe=5;function hte(e,t,n){const r=Math.max(t-RPe,0);return Gee(n-e(r),t-r)}const wa={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},nA=.001;function PPe({duration:e=wa.duration,bounce:t=wa.bounce,velocity:n=wa.velocity,mass:r=wa.mass}){let a,i,o=1-t;o=Ud(wa.minDamping,wa.maxDamping,o),e=Ud(wa.minDuration,wa.maxDuration,Tc(e)),o<1?(a=d=>{const f=d*o,g=f*e,y=f-n,h=YL(d,o),v=Math.exp(-g);return nA-y/h*v},i=d=>{const g=d*o*e,y=g*n+n,h=Math.pow(o,2)*Math.pow(d,2)*e,v=Math.exp(-g),E=YL(Math.pow(d,2),o);return(-a(d)+nA>0?-1:1)*((y-h)*v)/E}):(a=d=>{const f=Math.exp(-d*e),g=(d-n)*e+1;return-nA+f*g},i=d=>{const f=Math.exp(-d*e),g=(n-d)*(e*e);return f*g});const l=5/e,u=NPe(a,i,l);if(e=Ec(e),isNaN(u))return{stiffness:wa.stiffness,damping:wa.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const APe=12;function NPe(e,t,n){let r=n;for(let a=1;ae[n]!==void 0)}function DPe(e){let t={velocity:wa.velocity,stiffness:wa.stiffness,damping:wa.damping,mass:wa.mass,isResolvedFromDuration:!1,...e};if(!G5(e,IPe)&&G5(e,MPe))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,i=2*Ud(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:wa.mass,stiffness:a,damping:i}}else{const n=PPe(e);t={...t,...n,mass:wa.mass},t.isResolvedFromDuration=!0}return t}function Ox(e=wa.visualDuration,t=wa.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:u,damping:d,mass:f,duration:g,velocity:y,isResolvedFromDuration:h}=DPe({...n,velocity:-Tc(n.velocity||0)}),v=y||0,E=d/(2*Math.sqrt(u*f)),T=o-i,C=Tc(Math.sqrt(u/f)),k=Math.abs(T)<5;r||(r=k?wa.restSpeed.granular:wa.restSpeed.default),a||(a=k?wa.restDelta.granular:wa.restDelta.default);let _;if(E<1){const P=YL(C,E);_=N=>{const I=Math.exp(-E*C*N);return o-I*((v+E*C*T)/P*Math.sin(P*N)+T*Math.cos(P*N))}}else if(E===1)_=P=>o-Math.exp(-C*P)*(T+(v+C*T)*P);else{const P=C*Math.sqrt(E*E-1);_=N=>{const I=Math.exp(-E*C*N),L=Math.min(P*N,300);return o-I*((v+E*C*T)*Math.sinh(L)+P*T*Math.cosh(L))/P}}const A={calculatedDuration:h&&g||null,next:P=>{const N=_(P);if(h)l.done=P>=g;else{let I=P===0?v:0;E<1&&(I=P===0?Ec(v):hte(_,P,N));const L=Math.abs(I)<=r,j=Math.abs(o-N)<=a;l.done=L&&j}return l.value=l.done?o:N,l},toString:()=>{const P=Math.min(lj(A),_x),N=pte(I=>A.next(P*I).value,P,30);return P+"ms "+N},toTransition:()=>{}};return A}Ox.applyToOptions=e=>{const t=OPe(e,100,Ox);return e.ease=t.ease,e.duration=Ec(t.duration),e.type="keyframes",e};function KL({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:u,restDelta:d=.5,restSpeed:f}){const g=e[0],y={done:!1,value:g},h=L=>l!==void 0&&Lu,v=L=>l===void 0?u:u===void 0||Math.abs(l-L)-E*Math.exp(-L/r),_=L=>C+k(L),A=L=>{const j=k(L),z=_(L);y.done=Math.abs(j)<=d,y.value=y.done?C:z};let P,N;const I=L=>{h(y.value)&&(P=L,N=Ox({keyframes:[y.value,v(y.value)],velocity:hte(_,L,y.value),damping:a,stiffness:i,restDelta:d,restSpeed:f}))};return I(0),{calculatedDuration:null,next:L=>{let j=!1;return!N&&P===void 0&&(j=!0,A(L),I(L)),P!==void 0&&L>=P?N.next(L-P):(!j&&A(L),y)}}}function $Pe(e,t,n){const r=[],a=n||Bd.mix||fte,i=e.length-1;for(let o=0;ot[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=$Pe(t,r,a),u=l.length,d=f=>{if(o&&f1)for(;gd(Ud(e[0],e[i-1],f)):d}function FPe(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=YS(0,t,r);e.push(da(n,1,a))}}function jPe(e){const t=[0];return FPe(t,e.length-1),t}function UPe(e,t){return e.map(n=>n*t)}function BPe(e,t){return e.map(()=>t||nte).splice(0,e.length-1)}function bS({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=JRe(r)?r.map(B5):B5(r),i={done:!1,value:t[0]},o=UPe(n&&n.length===t.length?n:jPe(t),e),l=LPe(o,t,{ease:Array.isArray(a)?a:BPe(t,a)});return{calculatedDuration:e,next:u=>(i.value=l(u),i.done=u>=e,i)}}const WPe=e=>e!==null;function uj(e,{repeat:t,repeatType:n="loop"},r,a=1){const i=e.filter(WPe),l=a<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||r===void 0?i[l]:r}const zPe={decay:KL,inertia:KL,tween:bS,keyframes:bS,spring:Ox};function mte(e){typeof e.type=="string"&&(e.type=zPe[e.type])}class cj{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const qPe=e=>e/100;class dj extends cj{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,a;const{motionValue:n}=this.options;n&&n.updatedAt!==is.now()&&this.tick(is.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(r=this.options).onStop)==null||a.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;mte(t);const{type:n=bS,repeat:r=0,repeatDelay:a=0,repeatType:i,velocity:o=0}=t;let{keyframes:l}=t;const u=n||bS;u!==bS&&typeof l[0]!="number"&&(this.mixKeyframes=IE(qPe,fte(l[0],l[1])),l=[0,100]);const d=u({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...l].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=lj(d));const{calculatedDuration:f}=d;this.calculatedDuration=f,this.resolvedDuration=f+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:f,repeat:g,repeatType:y,repeatDelay:h,type:v,onUpdate:E,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const C=this.currentTime-d*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?C<0:C>a;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let _=this.currentTime,A=r;if(g){const L=Math.min(this.currentTime,a)/l;let j=Math.floor(L),z=L%1;!z&&L>=1&&(z=1),z===1&&j--,j=Math.min(j,g+1),!!(j%2)&&(y==="reverse"?(z=1-z,h&&(z-=h/l)):y==="mirror"&&(A=o)),_=Ud(0,1,z)*l}const P=k?{done:!1,value:f[0]}:A.next(_);i&&(P.value=i(P.value));let{done:N}=P;!k&&u!==null&&(N=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return I&&v!==KL&&(P.value=uj(f,this.options,T,this.speed)),E&&E(P.value),I&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Tc(this.calculatedDuration)}get time(){return Tc(this.currentTime)}set time(t){var n;t=Ec(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(is.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Tc(this.currentTime))}play(){var a,i;if(this.isStopped)return;const{driver:t=_Pe,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(a=this.options).onPlay)==null||i.call(a);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(is.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function HPe(e){for(let t=1;te*180/Math.PI,XL=e=>{const t=av(Math.atan2(e[1],e[0]));return QL(t)},VPe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:XL,rotateZ:XL,skewX:e=>av(Math.atan(e[1])),skewY:e=>av(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},QL=e=>(e=e%360,e<0&&(e+=360),e),Y5=XL,K5=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),X5=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),GPe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:K5,scaleY:X5,scale:e=>(K5(e)+X5(e))/2,rotateX:e=>QL(av(Math.atan2(e[6],e[5]))),rotateY:e=>QL(av(Math.atan2(-e[2],e[0]))),rotateZ:Y5,rotate:Y5,skewX:e=>av(Math.atan(e[4])),skewY:e=>av(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function JL(e){return e.includes("scale")?1:0}function ZL(e,t){if(!e||e==="none")return JL(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=GPe,a=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=VPe,a=l}if(!a)return JL(t);const i=r[t],o=a[1].split(",").map(KPe);return typeof i=="function"?i(o):o[i]}const YPe=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ZL(n,t)};function KPe(e){return parseFloat(e.trim())}const b0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],w0=new Set(b0),Q5=e=>e===y0||e===mn,XPe=new Set(["x","y","z"]),QPe=b0.filter(e=>!XPe.has(e));function JPe(e){const t=[];return QPe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Sv={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ZL(t,"x"),y:(e,{transform:t})=>ZL(t,"y")};Sv.translateX=Sv.x;Sv.translateY=Sv.y;const Ev=new Set;let e3=!1,t3=!1,n3=!1;function gte(){if(t3){const e=Array.from(Ev).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=JPe(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([i,o])=>{var l;(l=r.getValue(i))==null||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}t3=!1,e3=!1,Ev.forEach(e=>e.complete(n3)),Ev.clear()}function vte(){Ev.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(t3=!0)})}function ZPe(){n3=!0,vte(),gte(),n3=!1}class fj{constructor(t,n,r,a,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Ev.add(this),e3||(e3=!0,pa.read(vte),pa.resolveKeyframes(gte))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const i=a==null?void 0:a.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const l=r.readValue(n,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),a&&i===void 0&&a.set(t[0])}HPe(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ev.delete(this)}cancel(){this.state==="scheduled"&&(Ev.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const eAe=e=>e.startsWith("--");function tAe(e,t,n){eAe(t)?e.style.setProperty(t,n):e.style[t]=n}const nAe=ZF(()=>window.ScrollTimeline!==void 0),rAe={};function aAe(e,t){const n=ZF(e);return()=>rAe[t]??n()}const yte=aAe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),sS=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,J5={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:sS([0,.65,.55,1]),circOut:sS([.55,0,1,.45]),backIn:sS([.31,.01,.66,-.59]),backOut:sS([.33,1.53,.69,.99])};function bte(e,t){if(e)return typeof e=="function"?yte()?pte(e,t):"ease-out":rte(e)?sS(e):Array.isArray(e)?e.map(n=>bte(n,t)||J5.easeOut):J5[e]}function iAe(e,t,n,{delay:r=0,duration:a=300,repeat:i=0,repeatType:o="loop",ease:l="easeOut",times:u}={},d=void 0){const f={[t]:n};u&&(f.offset=u);const g=bte(l,a);Array.isArray(g)&&(f.easing=g);const y={delay:r,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return d&&(y.pseudoElement=d),e.animate(f,y)}function wte(e){return typeof e=="function"&&"applyToOptions"in e}function oAe({type:e,...t}){return wte(e)&&yte()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class sAe extends cj{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:l,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,JF(typeof t.type!="string");const d=oAe(t);this.animation=iAe(n,r,a,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const f=uj(a,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(f):tAe(n,r,f),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Tc(Number(t))}get time(){return Tc(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ec(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&nAe()?(this.animation.timeline=t,_l):n(this)}}const Ste={anticipate:Zee,backInOut:Jee,circInOut:tte};function lAe(e){return e in Ste}function uAe(e){typeof e.ease=="string"&&lAe(e.ease)&&(e.ease=Ste[e.ease])}const Z5=10;class cAe extends sAe{constructor(t){uAe(t),mte(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new dj({...o,autoplay:!1}),u=Ec(this.finishedTime??this.time);n.setWithVelocity(l.sample(u-Z5).value,l.sample(u).value,Z5),l.stop()}}const eW=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(sh.test(e)||e==="0")&&!e.startsWith("url("));function dAe(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function mAe(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:i,type:o}=e;if(!pj((d=t==null?void 0:t.owner)==null?void 0:d.current))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return hAe()&&n&&pAe.has(n)&&(n!=="transform"||!u)&&!l&&!r&&a!=="mirror"&&i!==0&&o!=="inertia"}const gAe=40;class vAe extends cj{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:o="loop",keyframes:l,name:u,motionValue:d,element:f,...g}){var v;super(),this.stop=()=>{var E,T;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=is.now();const y={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:i,repeatType:o,name:u,motionValue:d,element:f,...g},h=(f==null?void 0:f.KeyframeResolver)||fj;this.keyframeResolver=new h(l,(E,T,C)=>this.onKeyframesResolved(E,T,y,!C),u,d,f),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:i,type:o,velocity:l,delay:u,isHandoff:d,onUpdate:f}=r;this.resolvedAt=is.now(),fAe(t,i,o,l)||((Bd.instantAnimations||!u)&&(f==null||f(uj(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const y={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>gAe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!d&&mAe(y)?new cAe({...y,element:y.motionValue.owner.current}):new dj(y);h.finished.then(()=>this.notifyFinished()).catch(_l),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),ZPe()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const yAe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function bAe(e){const t=yAe.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function Ete(e,t,n=1){const[r,a]=bAe(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return qee(o)?parseFloat(o):o}return aj(a)?Ete(a,t,n+1):a}function hj(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Tte=new Set(["width","height","top","left","right","bottom",...b0]),wAe={test:e=>e==="auto",parse:e=>e},Cte=e=>t=>t.test(e),kte=[y0,mn,Cc,Wp,dPe,cPe,wAe],tW=e=>kte.find(Cte(e));function SAe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Vee(e):!0}const EAe=new Set(["brightness","contrast","saturate","opacity"]);function TAe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ij)||[];if(!r)return e;const a=n.replace(r,"");let i=EAe.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+a+")"}const CAe=/\b([a-z-]*)\(.*?\)/gu,r3={...sh,getAnimatableNone:e=>{const t=e.match(CAe);return t?t.map(TAe).join(" "):e}},nW={...y0,transform:Math.round},kAe={rotate:Wp,rotateX:Wp,rotateY:Wp,rotateZ:Wp,scale:rk,scaleX:rk,scaleY:rk,scaleZ:rk,skew:Wp,skewX:Wp,skewY:Wp,distance:mn,translateX:mn,translateY:mn,translateZ:mn,x:mn,y:mn,z:mn,perspective:mn,transformPerspective:mn,opacity:KS,originX:z5,originY:z5,originZ:mn},mj={borderWidth:mn,borderTopWidth:mn,borderRightWidth:mn,borderBottomWidth:mn,borderLeftWidth:mn,borderRadius:mn,radius:mn,borderTopLeftRadius:mn,borderTopRightRadius:mn,borderBottomRightRadius:mn,borderBottomLeftRadius:mn,width:mn,maxWidth:mn,height:mn,maxHeight:mn,top:mn,right:mn,bottom:mn,left:mn,padding:mn,paddingTop:mn,paddingRight:mn,paddingBottom:mn,paddingLeft:mn,margin:mn,marginTop:mn,marginRight:mn,marginBottom:mn,marginLeft:mn,backgroundPositionX:mn,backgroundPositionY:mn,...kAe,zIndex:nW,fillOpacity:KS,strokeOpacity:KS,numOctaves:nW},xAe={...mj,color:Ga,backgroundColor:Ga,outlineColor:Ga,fill:Ga,stroke:Ga,borderColor:Ga,borderTopColor:Ga,borderRightColor:Ga,borderBottomColor:Ga,borderLeftColor:Ga,filter:r3,WebkitFilter:r3},xte=e=>xAe[e];function _te(e,t){let n=xte(e);return n!==r3&&(n=sh),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const _Ae=new Set(["auto","none","0"]);function OAe(e,t,n){let r=0,a;for(;r{t.getValue(u).set(d)}),this.resolveNoneKeyframes()}}function PAe(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=(n==null?void 0:n[e])??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const Ote=(e,t)=>t&&typeof e=="number"?t.transform(e):e,rW=30,AAe=e=>!isNaN(parseFloat(e));class NAe{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{var o,l;const i=is.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty();a&&((l=this.events.renderRequest)==null||l.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=is.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=AAe(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ej);const r=this.events[t].add(n);return t==="change"?()=>{r(),pa.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=is.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>rW)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,rW);return Gee(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function r0(e,t){return new NAe(e,t)}const{schedule:gj}=ate(queueMicrotask,!1),vu={x:!1,y:!1};function Rte(){return vu.x||vu.y}function MAe(e){return e==="x"||e==="y"?vu[e]?null:(vu[e]=!0,()=>{vu[e]=!1}):vu.x||vu.y?null:(vu.x=vu.y=!0,()=>{vu.x=vu.y=!1})}function Pte(e,t){const n=PAe(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function aW(e){return!(e.pointerType==="touch"||Rte())}function IAe(e,t,n={}){const[r,a,i]=Pte(e,n),o=l=>{if(!aW(l))return;const{target:u}=l,d=t(u,l);if(typeof d!="function"||!u)return;const f=g=>{aW(g)&&(d(g),u.removeEventListener("pointerleave",f))};u.addEventListener("pointerleave",f,a)};return r.forEach(l=>{l.addEventListener("pointerenter",o,a)}),i}const Ate=(e,t)=>t?e===t?!0:Ate(e,t.parentElement):!1,vj=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,DAe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $Ae(e){return DAe.has(e.tagName)||e.tabIndex!==-1}const $k=new WeakSet;function iW(e){return t=>{t.key==="Enter"&&e(t)}}function rA(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const LAe=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=iW(()=>{if($k.has(n))return;rA(n,"down");const a=iW(()=>{rA(n,"up")}),i=()=>rA(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function oW(e){return vj(e)&&!Rte()}function FAe(e,t,n={}){const[r,a,i]=Pte(e,n),o=l=>{const u=l.currentTarget;if(!oW(l))return;$k.add(u);const d=t(u,l),f=(h,v)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",y),$k.has(u)&&$k.delete(u),oW(h)&&typeof d=="function"&&d(h,{success:v})},g=h=>{f(h,u===window||u===document||n.useGlobalTarget||Ate(u,h.target))},y=h=>{f(h,!1)};window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",y,a)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,a),pj(l)&&(l.addEventListener("focus",d=>LAe(d,a)),!$Ae(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function Nte(e){return Hee(e)&&"ownerSVGElement"in e}function jAe(e){return Nte(e)&&e.tagName==="svg"}const eo=e=>!!(e&&e.getVelocity),UAe=[...kte,Ga,sh],BAe=e=>UAe.find(Cte(e)),yj=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class WAe extends R.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,a=pj(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=a-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function zAe({children:e,isPresent:t,anchorX:n}){const r=R.useId(),a=R.useRef(null),i=R.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=R.useContext(yj);return R.useInsertionEffect(()=>{const{width:l,height:u,top:d,left:f,right:g}=i.current;if(t||!a.current||!l||!u)return;const y=n==="left"?`left: ${f}`:`right: ${g}`;a.current.dataset.motionPopId=r;const h=document.createElement("style");return o&&(h.nonce=o),document.head.appendChild(h),h.sheet&&h.sheet.insertRule(` + */var G5;function rRe(){return G5||(G5=1,(function(e){const t=tRe(),n=nRe(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=l,e.SlowBuffer=k,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=i(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const U=new Uint8Array(1),D={foo:function(){return 42}};return Object.setPrototypeOf(D,Uint8Array.prototype),Object.setPrototypeOf(U,D),U.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function o(U){if(U>a)throw new RangeError('The value "'+U+'" is invalid for option "size"');const D=new Uint8Array(U);return Object.setPrototypeOf(D,l.prototype),D}function l(U,D,F){if(typeof U=="number"){if(typeof D=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(U)}return u(U,D,F)}l.poolSize=8192;function u(U,D,F){if(typeof U=="string")return y(U,D);if(ArrayBuffer.isView(U))return v(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(Oe(U,ArrayBuffer)||U&&Oe(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Oe(U,SharedArrayBuffer)||U&&Oe(U.buffer,SharedArrayBuffer)))return E(U,D,F);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ae=U.valueOf&&U.valueOf();if(ae!=null&&ae!==U)return l.from(ae,D,F);const Te=T(U);if(Te)return Te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return l.from(U[Symbol.toPrimitive]("string"),D,F);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}l.from=function(U,D,F){return u(U,D,F)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function d(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function f(U,D,F){return d(U),U<=0?o(U):D!==void 0?typeof F=="string"?o(U).fill(D,F):o(U).fill(D):o(U)}l.alloc=function(U,D,F){return f(U,D,F)};function g(U){return d(U),o(U<0?0:C(U)|0)}l.allocUnsafe=function(U){return g(U)},l.allocUnsafeSlow=function(U){return g(U)};function y(U,D){if((typeof D!="string"||D==="")&&(D="utf8"),!l.isEncoding(D))throw new TypeError("Unknown encoding: "+D);const F=_(U,D)|0;let ae=o(F);const Te=ae.write(U,D);return Te!==F&&(ae=ae.slice(0,Te)),ae}function h(U){const D=U.length<0?0:C(U.length)|0,F=o(D);for(let ae=0;ae=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return U|0}function k(U){return+U!=U&&(U=0),l.alloc(+U)}l.isBuffer=function(D){return D!=null&&D._isBuffer===!0&&D!==l.prototype},l.compare=function(D,F){if(Oe(D,Uint8Array)&&(D=l.from(D,D.offset,D.byteLength)),Oe(F,Uint8Array)&&(F=l.from(F,F.offset,F.byteLength)),!l.isBuffer(D)||!l.isBuffer(F))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(D===F)return 0;let ae=D.length,Te=F.length;for(let Fe=0,We=Math.min(ae,Te);FeTe.length?(l.isBuffer(We)||(We=l.from(We)),We.copy(Te,Fe)):Uint8Array.prototype.set.call(Te,We,Fe);else if(l.isBuffer(We))We.copy(Te,Fe);else throw new TypeError('"list" argument must be an Array of Buffers');Fe+=We.length}return Te};function _(U,D){if(l.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||Oe(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);const F=U.length,ae=arguments.length>2&&arguments[2]===!0;if(!ae&&F===0)return 0;let Te=!1;for(;;)switch(D){case"ascii":case"latin1":case"binary":return F;case"utf8":case"utf-8":return xt(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F*2;case"hex":return F>>>1;case"base64":return qt(U).length;default:if(Te)return ae?-1:xt(U).length;D=(""+D).toLowerCase(),Te=!0}}l.byteLength=_;function A(U,D,F){let ae=!1;if((D===void 0||D<0)&&(D=0),D>this.length||((F===void 0||F>this.length)&&(F=this.length),F<=0)||(F>>>=0,D>>>=0,F<=D))return"";for(U||(U="utf8");;)switch(U){case"hex":return ce(this,D,F);case"utf8":case"utf-8":return ge(this,D,F);case"ascii":return G(this,D,F);case"latin1":case"binary":return q(this,D,F);case"base64":return re(this,D,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,D,F);default:if(ae)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),ae=!0}}l.prototype._isBuffer=!0;function P(U,D,F){const ae=U[D];U[D]=U[F],U[F]=ae}l.prototype.swap16=function(){const D=this.length;if(D%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let F=0;FF&&(D+=" ... "),""},r&&(l.prototype[r]=l.prototype.inspect),l.prototype.compare=function(D,F,ae,Te,Fe){if(Oe(D,Uint8Array)&&(D=l.from(D,D.offset,D.byteLength)),!l.isBuffer(D))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof D);if(F===void 0&&(F=0),ae===void 0&&(ae=D?D.length:0),Te===void 0&&(Te=0),Fe===void 0&&(Fe=this.length),F<0||ae>D.length||Te<0||Fe>this.length)throw new RangeError("out of range index");if(Te>=Fe&&F>=ae)return 0;if(Te>=Fe)return-1;if(F>=ae)return 1;if(F>>>=0,ae>>>=0,Te>>>=0,Fe>>>=0,this===D)return 0;let We=Fe-Te,Tt=ae-F;const Mt=Math.min(We,Tt),be=this.slice(Te,Fe),Ee=D.slice(F,ae);for(let gt=0;gt2147483647?F=2147483647:F<-2147483648&&(F=-2147483648),F=+F,dt(F)&&(F=Te?0:U.length-1),F<0&&(F=U.length+F),F>=U.length){if(Te)return-1;F=U.length-1}else if(F<0)if(Te)F=0;else return-1;if(typeof D=="string"&&(D=l.from(D,ae)),l.isBuffer(D))return D.length===0?-1:I(U,D,F,ae,Te);if(typeof D=="number")return D=D&255,typeof Uint8Array.prototype.indexOf=="function"?Te?Uint8Array.prototype.indexOf.call(U,D,F):Uint8Array.prototype.lastIndexOf.call(U,D,F):I(U,[D],F,ae,Te);throw new TypeError("val must be string, number or Buffer")}function I(U,D,F,ae,Te){let Fe=1,We=U.length,Tt=D.length;if(ae!==void 0&&(ae=String(ae).toLowerCase(),ae==="ucs2"||ae==="ucs-2"||ae==="utf16le"||ae==="utf-16le")){if(U.length<2||D.length<2)return-1;Fe=2,We/=2,Tt/=2,F/=2}function Mt(Ee,gt){return Fe===1?Ee[gt]:Ee.readUInt16BE(gt*Fe)}let be;if(Te){let Ee=-1;for(be=F;beWe&&(F=We-Tt),be=F;be>=0;be--){let Ee=!0;for(let gt=0;gtTe&&(ae=Te)):ae=Te;const Fe=D.length;ae>Fe/2&&(ae=Fe/2);let We;for(We=0;We>>0,isFinite(ae)?(ae=ae>>>0,Te===void 0&&(Te="utf8")):(Te=ae,ae=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Fe=this.length-F;if((ae===void 0||ae>Fe)&&(ae=Fe),D.length>0&&(ae<0||F<0)||F>this.length)throw new RangeError("Attempt to write outside buffer bounds");Te||(Te="utf8");let We=!1;for(;;)switch(Te){case"hex":return L(this,D,F,ae);case"utf8":case"utf-8":return j(this,D,F,ae);case"ascii":case"latin1":case"binary":return z(this,D,F,ae);case"base64":return Q(this,D,F,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le(this,D,F,ae);default:if(We)throw new TypeError("Unknown encoding: "+Te);Te=(""+Te).toLowerCase(),We=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(U,D,F){return D===0&&F===U.length?t.fromByteArray(U):t.fromByteArray(U.slice(D,F))}function ge(U,D,F){F=Math.min(U.length,F);const ae=[];let Te=D;for(;Te239?4:Fe>223?3:Fe>191?2:1;if(Te+Tt<=F){let Mt,be,Ee,gt;switch(Tt){case 1:Fe<128&&(We=Fe);break;case 2:Mt=U[Te+1],(Mt&192)===128&&(gt=(Fe&31)<<6|Mt&63,gt>127&&(We=gt));break;case 3:Mt=U[Te+1],be=U[Te+2],(Mt&192)===128&&(be&192)===128&&(gt=(Fe&15)<<12|(Mt&63)<<6|be&63,gt>2047&&(gt<55296||gt>57343)&&(We=gt));break;case 4:Mt=U[Te+1],be=U[Te+2],Ee=U[Te+3],(Mt&192)===128&&(be&192)===128&&(Ee&192)===128&&(gt=(Fe&15)<<18|(Mt&63)<<12|(be&63)<<6|Ee&63,gt>65535&><1114112&&(We=gt))}}We===null?(We=65533,Tt=1):We>65535&&(We-=65536,ae.push(We>>>10&1023|55296),We=56320|We&1023),ae.push(We),Te+=Tt}return W(ae)}const me=4096;function W(U){const D=U.length;if(D<=me)return String.fromCharCode.apply(String,U);let F="",ae=0;for(;aeae)&&(F=ae);let Te="";for(let Fe=D;Feae&&(D=ae),F<0?(F+=ae,F<0&&(F=0)):F>ae&&(F=ae),FF)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(D,F,ae){D=D>>>0,F=F>>>0,ae||Y(D,F,this.length);let Te=this[D],Fe=1,We=0;for(;++We>>0,F=F>>>0,ae||Y(D,F,this.length);let Te=this[D+--F],Fe=1;for(;F>0&&(Fe*=256);)Te+=this[D+--F]*Fe;return Te},l.prototype.readUint8=l.prototype.readUInt8=function(D,F){return D=D>>>0,F||Y(D,1,this.length),this[D]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(D,F){return D=D>>>0,F||Y(D,2,this.length),this[D]|this[D+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(D,F){return D=D>>>0,F||Y(D,2,this.length),this[D]<<8|this[D+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(D,F){return D=D>>>0,F||Y(D,4,this.length),(this[D]|this[D+1]<<8|this[D+2]<<16)+this[D+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(D,F){return D=D>>>0,F||Y(D,4,this.length),this[D]*16777216+(this[D+1]<<16|this[D+2]<<8|this[D+3])},l.prototype.readBigUInt64LE=ut(function(D){D=D>>>0,Ge(D,"offset");const F=this[D],ae=this[D+7];(F===void 0||ae===void 0)&&at(D,this.length-8);const Te=F+this[++D]*2**8+this[++D]*2**16+this[++D]*2**24,Fe=this[++D]+this[++D]*2**8+this[++D]*2**16+ae*2**24;return BigInt(Te)+(BigInt(Fe)<>>0,Ge(D,"offset");const F=this[D],ae=this[D+7];(F===void 0||ae===void 0)&&at(D,this.length-8);const Te=F*2**24+this[++D]*2**16+this[++D]*2**8+this[++D],Fe=this[++D]*2**24+this[++D]*2**16+this[++D]*2**8+ae;return(BigInt(Te)<>>0,F=F>>>0,ae||Y(D,F,this.length);let Te=this[D],Fe=1,We=0;for(;++We=Fe&&(Te-=Math.pow(2,8*F)),Te},l.prototype.readIntBE=function(D,F,ae){D=D>>>0,F=F>>>0,ae||Y(D,F,this.length);let Te=F,Fe=1,We=this[D+--Te];for(;Te>0&&(Fe*=256);)We+=this[D+--Te]*Fe;return Fe*=128,We>=Fe&&(We-=Math.pow(2,8*F)),We},l.prototype.readInt8=function(D,F){return D=D>>>0,F||Y(D,1,this.length),this[D]&128?(255-this[D]+1)*-1:this[D]},l.prototype.readInt16LE=function(D,F){D=D>>>0,F||Y(D,2,this.length);const ae=this[D]|this[D+1]<<8;return ae&32768?ae|4294901760:ae},l.prototype.readInt16BE=function(D,F){D=D>>>0,F||Y(D,2,this.length);const ae=this[D+1]|this[D]<<8;return ae&32768?ae|4294901760:ae},l.prototype.readInt32LE=function(D,F){return D=D>>>0,F||Y(D,4,this.length),this[D]|this[D+1]<<8|this[D+2]<<16|this[D+3]<<24},l.prototype.readInt32BE=function(D,F){return D=D>>>0,F||Y(D,4,this.length),this[D]<<24|this[D+1]<<16|this[D+2]<<8|this[D+3]},l.prototype.readBigInt64LE=ut(function(D){D=D>>>0,Ge(D,"offset");const F=this[D],ae=this[D+7];(F===void 0||ae===void 0)&&at(D,this.length-8);const Te=this[D+4]+this[D+5]*2**8+this[D+6]*2**16+(ae<<24);return(BigInt(Te)<>>0,Ge(D,"offset");const F=this[D],ae=this[D+7];(F===void 0||ae===void 0)&&at(D,this.length-8);const Te=(F<<24)+this[++D]*2**16+this[++D]*2**8+this[++D];return(BigInt(Te)<>>0,F||Y(D,4,this.length),n.read(this,D,!0,23,4)},l.prototype.readFloatBE=function(D,F){return D=D>>>0,F||Y(D,4,this.length),n.read(this,D,!1,23,4)},l.prototype.readDoubleLE=function(D,F){return D=D>>>0,F||Y(D,8,this.length),n.read(this,D,!0,52,8)},l.prototype.readDoubleBE=function(D,F){return D=D>>>0,F||Y(D,8,this.length),n.read(this,D,!1,52,8)};function ie(U,D,F,ae,Te,Fe){if(!l.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(D>Te||DU.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(D,F,ae,Te){if(D=+D,F=F>>>0,ae=ae>>>0,!Te){const Tt=Math.pow(2,8*ae)-1;ie(this,D,F,ae,Tt,0)}let Fe=1,We=0;for(this[F]=D&255;++We>>0,ae=ae>>>0,!Te){const Tt=Math.pow(2,8*ae)-1;ie(this,D,F,ae,Tt,0)}let Fe=ae-1,We=1;for(this[F+Fe]=D&255;--Fe>=0&&(We*=256);)this[F+Fe]=D/We&255;return F+ae},l.prototype.writeUint8=l.prototype.writeUInt8=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,1,255,0),this[F]=D&255,F+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,2,65535,0),this[F]=D&255,this[F+1]=D>>>8,F+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,2,65535,0),this[F]=D>>>8,this[F+1]=D&255,F+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,4,4294967295,0),this[F+3]=D>>>24,this[F+2]=D>>>16,this[F+1]=D>>>8,this[F]=D&255,F+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,4,4294967295,0),this[F]=D>>>24,this[F+1]=D>>>16,this[F+2]=D>>>8,this[F+3]=D&255,F+4};function J(U,D,F,ae,Te){tt(D,ae,Te,U,F,7);let Fe=Number(D&BigInt(4294967295));U[F++]=Fe,Fe=Fe>>8,U[F++]=Fe,Fe=Fe>>8,U[F++]=Fe,Fe=Fe>>8,U[F++]=Fe;let We=Number(D>>BigInt(32)&BigInt(4294967295));return U[F++]=We,We=We>>8,U[F++]=We,We=We>>8,U[F++]=We,We=We>>8,U[F++]=We,F}function ee(U,D,F,ae,Te){tt(D,ae,Te,U,F,7);let Fe=Number(D&BigInt(4294967295));U[F+7]=Fe,Fe=Fe>>8,U[F+6]=Fe,Fe=Fe>>8,U[F+5]=Fe,Fe=Fe>>8,U[F+4]=Fe;let We=Number(D>>BigInt(32)&BigInt(4294967295));return U[F+3]=We,We=We>>8,U[F+2]=We,We=We>>8,U[F+1]=We,We=We>>8,U[F]=We,F+8}l.prototype.writeBigUInt64LE=ut(function(D,F=0){return J(this,D,F,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=ut(function(D,F=0){return ee(this,D,F,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(D,F,ae,Te){if(D=+D,F=F>>>0,!Te){const Mt=Math.pow(2,8*ae-1);ie(this,D,F,ae,Mt-1,-Mt)}let Fe=0,We=1,Tt=0;for(this[F]=D&255;++Fe>0)-Tt&255;return F+ae},l.prototype.writeIntBE=function(D,F,ae,Te){if(D=+D,F=F>>>0,!Te){const Mt=Math.pow(2,8*ae-1);ie(this,D,F,ae,Mt-1,-Mt)}let Fe=ae-1,We=1,Tt=0;for(this[F+Fe]=D&255;--Fe>=0&&(We*=256);)D<0&&Tt===0&&this[F+Fe+1]!==0&&(Tt=1),this[F+Fe]=(D/We>>0)-Tt&255;return F+ae},l.prototype.writeInt8=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,1,127,-128),D<0&&(D=255+D+1),this[F]=D&255,F+1},l.prototype.writeInt16LE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,2,32767,-32768),this[F]=D&255,this[F+1]=D>>>8,F+2},l.prototype.writeInt16BE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,2,32767,-32768),this[F]=D>>>8,this[F+1]=D&255,F+2},l.prototype.writeInt32LE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,4,2147483647,-2147483648),this[F]=D&255,this[F+1]=D>>>8,this[F+2]=D>>>16,this[F+3]=D>>>24,F+4},l.prototype.writeInt32BE=function(D,F,ae){return D=+D,F=F>>>0,ae||ie(this,D,F,4,2147483647,-2147483648),D<0&&(D=4294967295+D+1),this[F]=D>>>24,this[F+1]=D>>>16,this[F+2]=D>>>8,this[F+3]=D&255,F+4},l.prototype.writeBigInt64LE=ut(function(D,F=0){return J(this,D,F,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=ut(function(D,F=0){return ee(this,D,F,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Z(U,D,F,ae,Te,Fe){if(F+ae>U.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function ue(U,D,F,ae,Te){return D=+D,F=F>>>0,Te||Z(U,D,F,4),n.write(U,D,F,ae,23,4),F+4}l.prototype.writeFloatLE=function(D,F,ae){return ue(this,D,F,!0,ae)},l.prototype.writeFloatBE=function(D,F,ae){return ue(this,D,F,!1,ae)};function ke(U,D,F,ae,Te){return D=+D,F=F>>>0,Te||Z(U,D,F,8),n.write(U,D,F,ae,52,8),F+8}l.prototype.writeDoubleLE=function(D,F,ae){return ke(this,D,F,!0,ae)},l.prototype.writeDoubleBE=function(D,F,ae){return ke(this,D,F,!1,ae)},l.prototype.copy=function(D,F,ae,Te){if(!l.isBuffer(D))throw new TypeError("argument should be a Buffer");if(ae||(ae=0),!Te&&Te!==0&&(Te=this.length),F>=D.length&&(F=D.length),F||(F=0),Te>0&&Te=this.length)throw new RangeError("Index out of range");if(Te<0)throw new RangeError("sourceEnd out of bounds");Te>this.length&&(Te=this.length),D.length-F>>0,ae=ae===void 0?this.length:ae>>>0,D||(D=0);let Fe;if(typeof D=="number")for(Fe=F;Fe2**32?Te=Ie(String(F)):typeof F=="bigint"&&(Te=String(F),(F>BigInt(2)**BigInt(32)||F<-(BigInt(2)**BigInt(32)))&&(Te=Ie(Te)),Te+="n"),ae+=` It must be ${D}. Received ${Te}`,ae},RangeError);function Ie(U){let D="",F=U.length;const ae=U[0]==="-"?1:0;for(;F>=ae+4;F-=3)D=`_${U.slice(F-3,F)}${D}`;return`${U.slice(0,F)}${D}`}function qe(U,D,F){Ge(D,"offset"),(U[D]===void 0||U[D+F]===void 0)&&at(D,U.length-(F+1))}function tt(U,D,F,ae,Te,Fe){if(U>F||U= 0${We} and < 2${We} ** ${(Fe+1)*8}${We}`:Tt=`>= -(2${We} ** ${(Fe+1)*8-1}${We}) and < 2 ** ${(Fe+1)*8-1}${We}`,new fe.ERR_OUT_OF_RANGE("value",Tt,U)}qe(ae,Te,Fe)}function Ge(U,D){if(typeof U!="number")throw new fe.ERR_INVALID_ARG_TYPE(D,"number",U)}function at(U,D,F){throw Math.floor(U)!==U?(Ge(U,F),new fe.ERR_OUT_OF_RANGE("offset","an integer",U)):D<0?new fe.ERR_BUFFER_OUT_OF_BOUNDS:new fe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${D}`,U)}const Et=/[^+/0-9A-Za-z-_]/g;function kt(U){if(U=U.split("=")[0],U=U.trim().replace(Et,""),U.length<2)return"";for(;U.length%4!==0;)U=U+"=";return U}function xt(U,D){D=D||1/0;let F;const ae=U.length;let Te=null;const Fe=[];for(let We=0;We55295&&F<57344){if(!Te){if(F>56319){(D-=3)>-1&&Fe.push(239,191,189);continue}else if(We+1===ae){(D-=3)>-1&&Fe.push(239,191,189);continue}Te=F;continue}if(F<56320){(D-=3)>-1&&Fe.push(239,191,189),Te=F;continue}F=(Te-55296<<10|F-56320)+65536}else Te&&(D-=3)>-1&&Fe.push(239,191,189);if(Te=null,F<128){if((D-=1)<0)break;Fe.push(F)}else if(F<2048){if((D-=2)<0)break;Fe.push(F>>6|192,F&63|128)}else if(F<65536){if((D-=3)<0)break;Fe.push(F>>12|224,F>>6&63|128,F&63|128)}else if(F<1114112){if((D-=4)<0)break;Fe.push(F>>18|240,F>>12&63|128,F>>6&63|128,F&63|128)}else throw new Error("Invalid code point")}return Fe}function Rt(U){const D=[];for(let F=0;F>8,Te=F%256,Fe.push(Te),Fe.push(ae);return Fe}function qt(U){return t.toByteArray(kt(U))}function Wt(U,D,F,ae){let Te;for(Te=0;Te=D.length||Te>=U.length);++Te)D[Te+F]=U[Te];return Te}function Oe(U,D){return U instanceof D||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===D.name}function dt(U){return U!==U}const ft=(function(){const U="0123456789abcdef",D=new Array(256);for(let F=0;F<16;++F){const ae=F*16;for(let Te=0;Te<16;++Te)D[ae+Te]=U[F]+U[Te]}return D})();function ut(U){return typeof BigInt>"u"?Nt:U}function Nt(){throw new Error("BigInt not supported")}})(lA)),lA}rRe();const rj=e=>{const{config:t}=R.useContext(ph);At();const{placeholder:n,label:r,getInputRef:a,secureTextEntry:i,Icon:o,onChange:l,value:u,height:d,disabled:f,forceBasic:g,forceRich:y,focused:h=!1,autoFocus:v,...E}=e,[T,C]=R.useState(!1),k=R.useRef(),_=R.useRef(!1),[A,P]=R.useState("tinymce"),{upload:N}=Nee(),{directPath:I}=VQ();R.useEffect(()=>{if(t.textEditorModule!=="tinymce")e.onReady&&e.onReady();else{const z=setTimeout(()=>{_.current===!1&&(P("textarea"),e.onReady&&e.onReady())},5e3);return()=>{clearTimeout(z)}}},[]);const L=async(z,Q)=>{const le=await N([new File([z.blob()],"filename")],!0)[0];return I({diskPath:le})},j=window.matchMedia("(prefers-color-scheme: dark)").matches||document.getElementsByTagName("body")[0].classList.contains("dark-theme");return w.jsx(rf,{focused:T,...e,children:t.textEditorModule==="tinymce"&&!g||y?w.jsx(eRe,{onInit:(z,Q)=>{k.current=Q,setTimeout(()=>{Q.setContent(u||"",{format:"raw"})},0),e.onReady&&e.onReady()},onEditorChange:(z,Q)=>{l&&l(Q.getContent({format:"raw"}))},onLoadContent:()=>{_.current=!0},apiKey:"4dh1g4gxp1gbmxi3hnkro4wf9lfgmqr86khygey2bwb7ps74",onBlur:()=>C(!1),tinymceScriptSrc:kr.PUBLIC_URL+"plugins/js/tinymce/tinymce.min.js",onFocus:()=>C(!0),init:{menubar:!1,height:d||400,images_upload_handler:L,skin:j?"oxide-dark":"oxide",content_css:j?"dark":"default",plugins:["example","image","directionality","image"],toolbar:"undo redo | formatselect | example | image | rtl ltr | link | bullist numlist bold italic backcolor h2 h3 | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",content_style:"body {font-size:18px }"}}):w.jsx("textarea",{...E,value:u,placeholder:n,style:{minHeight:"140px"},autoFocus:v,className:oa("form-control",e.errorMessage&&"is-invalid",e.validMessage&&"is-valid"),onChange:z=>l&&l(z.target.value),onBlur:()=>C(!1),onFocus:()=>C(!0)})})},aRe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(rt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(zE),u=zs(Wr.definition.fields.find(d=>d.name==="keyGroup").of.map(d=>({label:d.k,value:d.k})));return w.jsxs(w.Fragment,{children:[w.jsx(da,{keyExtractor:d=>d.value,formEffect:{form:e,field:Wr.Fields.keyGroup,beforeSet(d){return d.value}},querySource:u,errorMessage:o.keyGroup,label:l.regionalContents.keyGroup,hint:l.regionalContents.keyGroupHint}),w.jsx(rj,{value:r.content,forceRich:r.keyGroup==="EMAIL_OTP",forceBasic:r.keyGroup==="SMS_OTP",onChange:d=>i(Wr.Fields.content,d,!1),errorMessage:o.content,label:l.regionalContents.content,hint:l.regionalContents.contentHint}),w.jsx(In,{value:"global",readonly:!0,onChange:d=>i(Wr.Fields.region,d,!1),errorMessage:o.region,label:l.regionalContents.region,hint:l.regionalContents.regionHint}),w.jsx(In,{value:r.title,onChange:d=>i(Wr.Fields.title,d,!1),errorMessage:o.title,label:l.regionalContents.title,hint:l.regionalContents.titleHint}),w.jsx(In,{value:r.languageId,onChange:d=>i(Wr.Fields.languageId,d,!1),errorMessage:o.languageId,label:l.regionalContents.languageId,hint:l.regionalContents.languageIdHint})]})};function Vee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/regional-content/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.RegionalContentEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function iRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/regional-content".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.RegionalContentEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function oRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/regional-content".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.RegionalContentEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const Y5=({data:e})=>{const t=Kt(zE),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=Vee({query:{uniqueId:r}}),l=iRe({queryClient:a}),u=oRe({queryClient:a});return w.jsx(Bo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(Wr.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return Wr.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:aRe,onEditTitle:t.regionalContents.editRegionalContent,onCreateTitle:t.regionalContents.newRegionalContent,data:e})},sRe=()=>{var a;const{uniqueId:e}=$r({}),t=Vee({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt(zE);return w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:({locale:i,router:o})=>{o.push(Wr.Navigation.edit(e))},getSingleHook:t,children:w.jsx(oo,{entity:n,fields:[{elem:n==null?void 0:n.region,label:r.regionalContents.region},{elem:n==null?void 0:n.title,label:r.regionalContents.title},{elem:n==null?void 0:n.languageId,label:r.regionalContents.languageId}]})})})};function lRe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(Y5,{}),path:Wr.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(sRe,{}),path:Wr.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(Y5,{}),path:Wr.Navigation.Redit}),w.jsx(mt,{element:w.jsx(WOe,{}),path:Wr.Navigation.Rquery})]})}function Gee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/user/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.UserEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function uRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/user".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.UserEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function cRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/user".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.UserEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const dRe=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a,setValues:i}=e,{options:o}=R.useContext(rt),l=At();return w.jsx(w.Fragment,{children:w.jsxs("div",{className:"row",children:[w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:n==null?void 0:n.firstName,onChange:u=>r(ia.Fields.firstName,u,!1),autoFocus:!t,errorMessage:a==null?void 0:a.firstName,label:l.wokspaces.invite.firstName,hint:l.wokspaces.invite.firstNameHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:n==null?void 0:n.lastName,onChange:u=>r(ia.Fields.lastName,u,!1),errorMessage:a==null?void 0:a.lastName,label:l.wokspaces.invite.lastName,hint:l.wokspaces.invite.lastNameHint})})]})})},K5=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a,t:i}=$r({data:e}),o=Gee({query:{uniqueId:n,deep:!0}}),l=cRe({queryClient:r}),u=uRe({queryClient:r});return w.jsx(Bo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(ia.Navigation.query(void 0,a))},onFinishUriResolver:(d,f)=>{var g;return ia.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:dRe,onEditTitle:i.user.editUser,onCreateTitle:i.user.newUser,data:e})};function Yee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/passports".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.PassportEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Yee.UKEY="*abac.PassportEntity";const fRe=({userId:e})=>{const{items:t}=Yee({query:{query:e?"user_id = "+e:null}});return w.jsx("div",{children:w.jsx(Do,{title:"Passports",children:t.map(n=>w.jsx(hRe,{passport:n},n.uniqueId))})})};function pRe(e){if(e==null)return"n/a";if(e===!0)return"Yes";if(e===!1)return"No"}const hRe=({passport:e})=>w.jsx("div",{children:w.jsxs("div",{className:"general-entity-view ",children:[w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:"Value:"}),w.jsx("div",{className:"field-value",children:e.value})]}),w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:"Type:"}),w.jsx("div",{className:"field-value",children:e.type})]}),w.jsxs("div",{className:"entity-view-row entity-view-head",children:[w.jsx("div",{className:"field-info",children:"Confirmed:"}),w.jsx("div",{className:"field-value",children:pRe(e.confirmed)})]})]})}),mRe=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Gee({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return gh((a==null?void 0:a.firstName)||""),w.jsx(w.Fragment,{children:w.jsxs(io,{editEntityHandler:()=>{e.push(ia.Navigation.edit(n))},getSingleHook:r,children:[w.jsx(oo,{entity:a,fields:[{label:t.users.firstName,elem:a==null?void 0:a.firstName},{label:t.users.lastName,elem:a==null?void 0:a.lastName}]}),w.jsx(fRe,{userId:n})]})})};function gRe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/user".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.UserEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.UserEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function Kee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/users".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.UserEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Kee.UKEY="*abac.UserEntity";const vRe=({gender:e})=>e===0?w.jsx("img",{style:{width:"20px",height:"20px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pjxzdmcgdmlld0JveD0iMCAwIDI1NiA1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyOCAwYzM1LjM0NiAwIDY0IDI4LjY1NCA2NCA2NHMtMjguNjU0IDY0LTY0IDY0Yy0zNS4zNDYgMC02NC0yOC42NTQtNjQtNjRTOTIuNjU0IDAgMTI4IDBtMTE5LjI4MyAzNTQuMTc5bC00OC0xOTJBMjQgMjQgMCAwIDAgMTc2IDE0NGgtMTEuMzZjLTIyLjcxMSAxMC40NDMtNDkuNTkgMTAuODk0LTczLjI4IDBIODBhMjQgMjQgMCAwIDAtMjMuMjgzIDE4LjE3OWwtNDggMTkyQzQuOTM1IDM2OS4zMDUgMTYuMzgzIDM4NCAzMiAzODRoNTZ2MTA0YzAgMTMuMjU1IDEwLjc0NSAyNCAyNCAyNGgzMmMxMy4yNTUgMCAyNC0xMC43NDUgMjQtMjRWMzg0aDU2YzE1LjU5MSAwIDI3LjA3MS0xNC42NzEgMjMuMjgzLTI5LjgyMXoiLz48L3N2Zz4="}):w.jsx("img",{style:{width:"20px",height:"20px"},src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjwhRE9DVFlQRSBzdmcgIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nICAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz48c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE0MS43MzIgMTQxLjczMiIgaGVpZ2h0PSIxNDEuNzMycHgiIGlkPSJMaXZlbGxvXzEiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDE0MS43MzIgMTQxLjczMiIgd2lkdGg9IjE0MS43MzJweCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGcgaWQ9IkxpdmVsbG9fOTAiPjxwYXRoIGQ9Ik04MS42NDcsMTAuNzU0YzAtNS4zNzItMy45NzMtOS44MTgtOS4xNi0xMC42MjRoMC4xMTdjLTAuMzc5LTAuMDU4LTAuNzY4LTAuMDktMS4xNTYtMC4xMDQgICBjLTAuMTAzLTAuMDA2LTAuMjA3LTAuMDA5LTAuMzExLTAuMDEyQzcxLjA2NiwwLjAxLDcwLjk5NiwwLDcwLjkyMywwYy0wLjAyMSwwLTAuMDM4LDAuMDAzLTAuMDYsMC4wMDMgICBDNzAuODQ2LDAuMDAzLDcwLjgyOCwwLDcwLjgwNywwYy0wLjA2OSwwLTAuMTQyLDAuMDEyLTAuMjE0LDAuMDE0Yy0wLjEwNCwwLjAwMy0wLjIwOCwwLjAwNi0wLjMxMiwwLjAxMiAgIGMtMC4zOTMsMC4wMTktMC43NzQsMC4wNTEtMS4xNTMsMC4xMDRoMC4xMTdjLTUuMTg5LDAuODA2LTkuMTYsNS4yNTItOS4xNiwxMC42MjRjMCw1Ljg5OSw0Ljc5MSwxMC42ODgsMTAuNzI0LDEwLjc0OHYwLjAwNCAgIGMwLjAyMSwwLDAuMDM5LTAuMDAxLDAuMDYyLTAuMDAyYzAuMDIxLDAuMDAxLDAuMDM4LDAuMDAyLDAuMDU5LDAuMDAydi0wLjAwNEM3Ni44NTYsMjEuNDQsODEuNjQ3LDE2LjY1Myw4MS42NDcsMTAuNzU0ICAgIE05NS45MTUsNjcuODEzVjI1LjYzOGMwLTIuMjgyLTEuODUyLTQuMTM2LTQuMTM1LTQuMTM2SDcwLjkyM2gtMC4xMTZINDkuOTVjLTIuMjgyLDAuMDAzLTQuMTMzLDEuODUzLTQuMTMzLDQuMTM2djQyLjE3NmgwLjAwNCAgIGMwLjA0OCwyLjI0MiwxLjg3NSw0LjA0Nyw0LjEyOSw0LjA0N2MyLjI1MywwLDQuMDgyLTEuODA1LDQuMTI4LTQuMDQ3aDAuMDA0VjQ0Ljk3MmgtMC4wMDlWMzMuOTM0YzAtMC43ODQsMC42MzgtMS40MiwxLjQyMS0xLjQyICAgczEuNDIsMC42MzYsMS40MiwxLjQydjExLjAzOHY4OC4zMTRjMC4zMiwzLjEwNywyLjkxNCw1LjUzNyw2LjA5LDUuNjA4aDAuMjg1YzMuMzk2LTAuMDc2LDYuMTI1LTIuODQ5LDYuMTI1LTYuMjU5Vjc3LjQ1NSAgIGMwLTAuNzcxLDAuNjItMS4zOTYsMS4zOTQtMS40MTF2MC4wMTJjMC4wMjEtMC4wMDEsMC4wMzktMC4wMDcsMC4wNjItMC4wMWMwLjAyMSwwLjAwMywwLjAzOCwwLjAwOSwwLjA1OSwwLjAxdi0wLjAxMiAgIGMwLjc3LDAuMDE4LDEuMzk1LDAuNjQzLDEuMzk1LDEuNDExdjU1LjE4OGMwLDMuNDEyLDIuNzMsNi4xODMsNi4xMjUsNi4yNTloMC4yODVjMy4xNzYtMC4wNzEsNS43Ny0yLjUwMSw2LjA5LTUuNjA4VjQ0Ljk3NCAgIHYtMTEuMDRjMC0wLjc4NCwwLjYzNy0xLjQyLDEuNDIyLTEuNDJjMC43ODEsMCwxLjQyLDAuNjM2LDEuNDIsMS40MnYxMS4wMzhoLTAuMDF2MjIuODQyaDAuMDA0ICAgYzAuMDQ3LDIuMjQyLDEuODc1LDQuMDQ3LDQuMTI5LDQuMDQ3Qzk0LjA0LDcxLjg2MSw5NS44NjYsNzAuMDU2LDk1LjkxNSw2Ny44MTNMOTUuOTE1LDY3LjgxM0w5NS45MTUsNjcuODEzeiIvPjwvZz48ZyBpZD0iTGl2ZWxsb18xXzFfIi8+PC9zdmc+"}),yRe=e=>[{name:ia.Fields.uniqueId,title:e.table.uniqueId,width:100},{name:"firstName",title:e.users.firstName,width:200,sortable:!0,filterable:!0,getCellValue:t=>t==null?void 0:t.firstName},{filterable:!0,name:"lastName",sortable:!0,title:e.users.lastName,width:200,getCellValue:t=>t==null?void 0:t.lastName},{name:"birthDate",title:"birthdate",width:140,getCellValue:t=>w.jsx(w.Fragment,{children:t==null?void 0:t.birthDate}),filterType:"date",filterable:!0,sortable:!0},{name:"gender",title:"gender",width:50,getCellValue:t=>w.jsx(w.Fragment,{children:w.jsx(vRe,{gender:t.gender})})},{name:"Image",title:"Image",width:40,getCellValue:t=>w.jsx(w.Fragment,{children:(t==null?void 0:t.photo)&&w.jsx("img",{src:t==null?void 0:t.photo,style:{width:"20px",height:"20px"}})})},{name:ia.Fields.primaryAddress.countryCode,title:"Country code",width:40,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.countryCode})}},{name:ia.Fields.primaryAddress.addressLine1,title:"Address Line 1",width:180,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.addressLine1})}},{name:ia.Fields.primaryAddress.addressLine2,title:"Address Line 2",width:180,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.addressLine2})}},{name:ia.Fields.primaryAddress.city,title:"City",width:180,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.city})}},{name:ia.Fields.primaryAddress.postalCode,title:"Postal Code",width:80,getCellValue:t=>{var n;return w.jsx(w.Fragment,{children:(n=t.primaryAddress)==null?void 0:n.postalCode})}}],bRe=()=>{const e=At();return gh(e.fbMenu.users),w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:yRe(e),queryHook:Kee,uniqueIdHrefHandler:t=>ia.Navigation.single(t),deleteHook:gRe})})},wRe=()=>{const e=At(),t=xr();return sr(),w.jsx(w.Fragment,{children:w.jsx(jo,{newEntityHandler:()=>{t.push(ia.Navigation.create())},pageTitle:e.fbMenu.users,children:w.jsx(bRe,{})})})};function SRe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(K5,{}),path:ia.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(mRe,{}),path:ia.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(K5,{}),path:ia.Navigation.Redit}),w.jsx(mt,{element:w.jsx(wRe,{}),path:ia.Navigation.Rquery})]})}class La extends wn{constructor(...t){super(...t),this.children=void 0,this.enableRecaptcha2=void 0,this.enableOtp=void 0,this.requireOtpOnSignup=void 0,this.requireOtpOnSignin=void 0,this.recaptcha2ServerKey=void 0,this.recaptcha2ClientKey=void 0,this.enableTotp=void 0,this.forceTotp=void 0,this.forcePasswordOnPhone=void 0,this.forcePersonNameOnPhone=void 0,this.generalEmailProvider=void 0,this.generalEmailProviderId=void 0,this.generalGsmProvider=void 0,this.generalGsmProviderId=void 0,this.inviteToWorkspaceContent=void 0,this.inviteToWorkspaceContentId=void 0,this.emailOtpContent=void 0,this.emailOtpContentId=void 0,this.smsOtpContent=void 0,this.smsOtpContentId=void 0}}La.Navigation={edit(e,t){return`${t?"/"+t:".."}/workspace-config/edit/${e}`},create(e){return`${e?"/"+e:".."}/workspace-config/new`},single(e,t){return`${t?"/"+t:".."}/workspace-config/${e}`},query(e={},t){return`${t?"/"+t:".."}/workspace-configs`},Redit:"workspace-config/edit/:uniqueId",Rcreate:"workspace-config/new",Rsingle:"workspace-config/:uniqueId",Rquery:"workspace-configs"};La.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspaceConfig",distinctBy:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"enableRecaptcha2",description:"Enables the recaptcha2 for authentication flow.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"enableOtp",recommended:!0,description:"Enables the otp option. It's not forcing it, so user can choose if they want otp or password.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignup",recommended:!0,description:"Forces the user to have otp verification before can create an account. They can define their password still.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignin",recommended:!0,description:"Forces the user to use otp when signing in. Even if they have password set, they won't use it and only will be able to signin using that otp.",type:"bool?",default:!1,computedType:"boolean",gormMap:{}},{name:"recaptcha2ServerKey",description:"Secret which would be used to decrypt if the recaptcha is correct. Should not be available publicly.",type:"string",computedType:"string",gormMap:{}},{name:"recaptcha2ClientKey",description:"Secret which would be used for recaptcha2 on the client side. Can be publicly visible, and upon authenticating users it would be sent to front-end.",type:"string",computedType:"string",gormMap:{}},{name:"enableTotp",recommended:!0,description:"Enables user to make 2FA using apps such as google authenticator or microsoft authenticator.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forceTotp",recommended:!0,description:"Forces the user to setup a 2FA in order to access their account. Users which did not setup this won't be affected.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePasswordOnPhone",description:"Forces users who want to create account using phone number to also set a password on their account",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePersonNameOnPhone",description:"Forces the creation of account using phone number to ask for user first name and last name",type:"bool?",computedType:"boolean",gormMap:{}},{name:"generalEmailProvider",description:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",type:"one",target:"EmailProviderEntity",computedType:"EmailProviderEntity",gormMap:{}},{name:"generalGsmProvider",description:"General service which would be used to send text messages (sms) using it's services or API.",type:"one",target:"GsmProviderEntity",computedType:"GsmProviderEntity",gormMap:{}},{name:"inviteToWorkspaceContent",description:"This template would be used, as default when a user is inviting a third-party into their own workspace.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"emailOtpContent",description:"Upon one time password request for email, the content will be read to fill the message which will go to user.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"smsOtpContent",description:"Upon OTP text messages, this template will be used to create such text message, including the one time password code.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}}],cliName:"config",description:"Contains configuration which would be necessary for application environment to be running. At the moment, a single record is allowed, and only for root workspace. But in theory it could be configured per each workspace independently. For sub projects do not touch this, rather create a custom config entity if workspaces in the product need extra config."};La.Fields={...wn.Fields,enableRecaptcha2:"enableRecaptcha2",enableOtp:"enableOtp",requireOtpOnSignup:"requireOtpOnSignup",requireOtpOnSignin:"requireOtpOnSignin",recaptcha2ServerKey:"recaptcha2ServerKey",recaptcha2ClientKey:"recaptcha2ClientKey",enableTotp:"enableTotp",forceTotp:"forceTotp",forcePasswordOnPhone:"forcePasswordOnPhone",forcePersonNameOnPhone:"forcePersonNameOnPhone",generalEmailProviderId:"generalEmailProviderId",generalEmailProvider$:"generalEmailProvider",generalEmailProvider:gi.Fields,generalGsmProviderId:"generalGsmProviderId",generalGsmProvider$:"generalGsmProvider",generalGsmProvider:ca.Fields,inviteToWorkspaceContentId:"inviteToWorkspaceContentId",inviteToWorkspaceContent$:"inviteToWorkspaceContent",inviteToWorkspaceContent:Wr.Fields,emailOtpContentId:"emailOtpContentId",emailOtpContent$:"emailOtpContent",emailOtpContent:Wr.Fields,smsOtpContentId:"smsOtpContentId",smsOtpContent$:"smsOtpContent",smsOtpContent:Wr.Fields};function Xee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var E;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/workspace-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=()=>l("GET",d),g=(E=i==null?void 0:i.headers)==null?void 0:E.authorization,y=g!="undefined"&&g!=null&&g!=null&&g!="null"&&!!g;let h=!0;return!y&&!a&&(h=!1),{query:jn([i,n,"*abac.WorkspaceConfigEntity"],f,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:h,...e||{}})}}function ERe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace-config/distinct".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceConfigEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const TRe={workspaceConfigs:{archiveTitle:"Workspace configs",description:"Configurate how the workspaces work in terms of totp, forced otp, recaptcha and how the user can interact with the application.",editWorkspaceConfig:"Edit workspace config",emailOtpContentHint:"Upon one time password request for email, the content will be read to fill the message which will go to user.",emailOtpContentLabel:"Email Otp Content",enableOtp:"Enable otp",enableOtpHint:"Enables the one time password for the selfservice. It would allow email or phone numbers to bypass password and recieve a 6 digit code on their inbox or phone.",enableRecaptcha2:"Enable reCAPTCHA2",enableRecaptcha2Hint:"Enables reCAPTCHA2 from google integration into the project selfservice. You need to provide Server Key and Client Key to make it effective.",enableTotp:"Enable totp",enableTotpHint:"Enables time based otp for account creation and signin.",forcePasswordOnPhone:"Force password on phone",forcePasswordOnPhoneHint:"Force password on phone",forcePersonNameOnPhone:"Force person name on phone",forcePersonNameOnPhoneHint:"Force person name on phone",forceTotp:"Force totp",forceTotpHint:"Forces the totp for account creation. If an account doesn't have it, they need to setup before they can login.",generalEmailProviderHint:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",generalEmailProviderLabel:"General Email Provider",generalGsmProviderHint:"General service which would be used to send text messages (sms) using it's services or API.",generalGsmProviderLabel:"General Gsm Provider",inviteToWorkspaceContentHint:"This template would be used, as default when a user is inviting a third-party into their own workspace.",inviteToWorkspaceContentLabel:"Invite To Workspace Content",newWorkspaceConfig:"New workspace config",otpSectionDescription:"Manage the user authentication using single time password over sms/email",otpSectionTitle:"OTP (One time password)",passwordSectionDescription:"Configurate the usage of password by users",passwordSectionTitle:"Password management",recaptcha2ClientKey:"Client key",recaptcha2ClientKeyHint:"Client key for reCAPTCHA2",recaptcha2ServerKey:"Server key",recaptcha2ServerKeyHint:"Server key for reCAPTCHA2",recaptchaSectionDescription:"Configurate the recaptcha 2 related options for the application.",recaptchaSectionTitle:"Recaptcha section",requireOtpOnSignin:"Require otp on signin",requireOtpOnSigninHint:"Forces passports such as phone and email to approve signin with 6 digit code, even if the passport has a password. OAuth is exempted.",requireOtpOnSignup:"Require otp on signup",requireOtpOnSignupHint:"It would force account creation to first make a one time password verification and then continue the process.",smsOtpContentHint:"Upon OTP text messages, this template will be used to create such text message, including the one time password code.",smsOtpContentLabel:"SMS Otp Content",title:"Workspace Config",totpSectionDescription:"Usage of the authenticator app as a second security step for the password.",totpSectionTitle:"TOTP (Time based Dual Factor)"}},CRe={workspaceConfigs:{archiveTitle:"Workspace configs",description:"Configurate how the workspaces work in terms of totp, forced otp, recaptcha and how the user can interact with the application.",editWorkspaceConfig:"Edit workspace config",emailOtpContentHint:"Upon one time password request for email, the content will be read to fill the message which will go to user.",emailOtpContentLabel:"Email Otp Content",enableOtp:"Enable otp",enableOtpHint:"Enables the one time password for the selfservice. It would allow email or phone numbers to bypass password and recieve a 6 digit code on their inbox or phone.",enableRecaptcha2:"Enable reCAPTCHA2",enableRecaptcha2Hint:"Enables reCAPTCHA2 from google integration into the project selfservice. You need to provide Server Key and Client Key to make it effective.",enableTotp:"Enable totp",enableTotpHint:"Enables time based otp for account creation and signin.",forcePasswordOnPhone:"Force password on phone",forcePasswordOnPhoneHint:"Force password on phone",forcePersonNameOnPhone:"Force person name on phone",forcePersonNameOnPhoneHint:"Force person name on phone",forceTotp:"Force totp",forceTotpHint:"Forces the totp for account creation. If an account doesn't have it, they need to setup before they can login.",generalEmailProviderHint:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",generalEmailProviderLabel:"General Email Provider",generalGsmProviderHint:"General service which would be used to send text messages (sms) using it's services or API.",generalGsmProviderLabel:"General Gsm Provider",inviteToWorkspaceContentHint:"This template would be used, as default when a user is inviting a third-party into their own workspace.",inviteToWorkspaceContentLabel:"Invite To Workspace Content",newWorkspaceConfig:"New workspace config",otpSectionDescription:"Manage the user authentication using single time password over sms/email",otpSectionTitle:"OTP (One time password)",passwordSectionDescription:"Configurate the usage of password by users",passwordSectionTitle:"Password management",recaptcha2ClientKey:"Client key",recaptcha2ClientKeyHint:"Client key for reCAPTCHA2",recaptcha2ServerKey:"Server key",recaptcha2ServerKeyHint:"Server key for reCAPTCHA2",recaptchaSectionDescription:"Configurate the recaptcha 2 related options for the application.",recaptchaSectionTitle:"Recaptcha section",requireOtpOnSignin:"Require otp on signin",requireOtpOnSigninHint:"Forces passports such as phone and email to approve signin with 6 digit code, even if the passport has a password. OAuth is exempted.",requireOtpOnSignup:"Require otp on signup",requireOtpOnSignupHint:"It would force account creation to first make a one time password verification and then continue the process.",smsOtpContentHint:"Upon one time password request for email, the content will be read to fill the message which will go to user.",smsOtpContentLabel:"SMS Otp Content",title:"Workspace Config",totpSectionDescription:"Usage of the authenticator app as a second security step for the password.",totpSectionTitle:"TOTP (Time based Dual Factor)"}},aj={...TRe,$pl:CRe};function ij({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/gsm-providers".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.GsmProviderEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}ij.UKEY="*abac.GsmProviderEntity";const kRe=({form:e,isEditing:t})=>{const{values:n,setValues:r,setFieldValue:a,errors:i}=e,o=Kt(aj);return w.jsxs(w.Fragment,{children:[w.jsxs(Do,{title:o.workspaceConfigs.recaptchaSectionTitle,description:o.workspaceConfigs.recaptchaSectionDescription,children:[w.jsx(El,{value:n.enableRecaptcha2,onChange:l=>a(La.Fields.enableRecaptcha2,l,!1),errorMessage:i.enableRecaptcha2,label:o.workspaceConfigs.enableRecaptcha2,hint:o.workspaceConfigs.enableRecaptcha2Hint}),w.jsx(In,{value:n.recaptcha2ServerKey,disabled:!n.enableRecaptcha2,onChange:l=>a(La.Fields.recaptcha2ServerKey,l,!1),errorMessage:i.recaptcha2ServerKey,label:o.workspaceConfigs.recaptcha2ServerKey,hint:o.workspaceConfigs.recaptcha2ServerKeyHint}),w.jsx(In,{value:n.recaptcha2ClientKey,disabled:!n.enableRecaptcha2,onChange:l=>a(La.Fields.recaptcha2ClientKey,l,!1),errorMessage:i.recaptcha2ClientKey,label:o.workspaceConfigs.recaptcha2ClientKey,hint:o.workspaceConfigs.recaptcha2ClientKeyHint})]}),w.jsxs(Do,{title:o.workspaceConfigs.otpSectionTitle,description:o.workspaceConfigs.otpSectionDescription,children:[w.jsx(El,{value:n.enableOtp,onChange:l=>a(La.Fields.enableOtp,l,!1),errorMessage:i.enableOtp,label:o.workspaceConfigs.enableOtp,hint:o.workspaceConfigs.enableOtpHint}),w.jsx(El,{value:n.requireOtpOnSignup,onChange:l=>a(La.Fields.requireOtpOnSignup,l,!1),errorMessage:i.requireOtpOnSignup,label:o.workspaceConfigs.requireOtpOnSignup,hint:o.workspaceConfigs.requireOtpOnSignupHint}),w.jsx(El,{value:n.requireOtpOnSignin,onChange:l=>a(La.Fields.requireOtpOnSignin,l,!1),errorMessage:i.requireOtpOnSignin,label:o.workspaceConfigs.requireOtpOnSignin,hint:o.workspaceConfigs.requireOtpOnSigninHint})]}),w.jsxs(Do,{title:o.workspaceConfigs.totpSectionTitle,description:o.workspaceConfigs.totpSectionDescription,children:[w.jsx(El,{value:n.enableTotp,onChange:l=>a(La.Fields.enableTotp,l,!1),errorMessage:i.enableTotp,label:o.workspaceConfigs.enableTotp,hint:o.workspaceConfigs.enableTotpHint}),w.jsx(El,{value:n.forceTotp,onChange:l=>a(La.Fields.forceTotp,l,!1),errorMessage:i.forceTotp,label:o.workspaceConfigs.forceTotp,hint:o.workspaceConfigs.forceTotpHint})]}),w.jsxs(Do,{title:o.workspaceConfigs.passwordSectionTitle,description:o.workspaceConfigs.passwordSectionDescription,children:[w.jsx(El,{value:n.forcePasswordOnPhone,onChange:l=>a(La.Fields.forcePasswordOnPhone,l,!1),errorMessage:i.forcePasswordOnPhone,label:o.workspaceConfigs.forcePasswordOnPhone,hint:o.workspaceConfigs.forcePasswordOnPhoneHint}),w.jsx(El,{value:n.forcePersonNameOnPhone,onChange:l=>a(La.Fields.forcePersonNameOnPhone,l,!1),errorMessage:i.forcePersonNameOnPhone,label:o.workspaceConfigs.forcePersonNameOnPhone,hint:o.workspaceConfigs.forcePersonNameOnPhoneHint})]}),w.jsxs(Do,{title:o.workspaceConfigs.passwordSectionTitle,description:o.workspaceConfigs.passwordSectionDescription,children:[w.jsx(da,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:La.Fields.generalEmailProviderId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.type} (${l.uniqueId})`,querySource:ej,errorMessage:i.generalEmailProviderId,label:o.workspaceConfigs.generalEmailProviderLabel,hint:o.workspaceConfigs.generalEmailProviderHint}),w.jsx(da,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:La.Fields.generalGsmProviderId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.type} (${l.uniqueId})`,querySource:ij,errorMessage:i.generalGsmProviderId,label:o.workspaceConfigs.generalGsmProviderLabel,hint:o.workspaceConfigs.generalGsmProviderHint}),w.jsx(da,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:La.Fields.inviteToWorkspaceContentId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.title})`,querySource:_S,errorMessage:i.inviteToWorkspaceContentId,label:o.workspaceConfigs.inviteToWorkspaceContentLabel,hint:o.workspaceConfigs.inviteToWorkspaceContentHint}),w.jsx(da,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:La.Fields.emailOtpContentId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.title})`,querySource:_S,errorMessage:i.emailOtpContentId,label:o.workspaceConfigs.emailOtpContentLabel,hint:o.workspaceConfigs.emailOtpContentHint}),w.jsx(da,{keyExtractor:l=>l.uniqueId,formEffect:{form:e,field:La.Fields.smsOtpContentId,beforeSet(l){return l.uniqueId}},fnLabelFormat:l=>`${l.title})`,querySource:_S,errorMessage:i.smsOtpContentId,label:o.workspaceConfigs.smsOtpContentLabel,hint:o.workspaceConfigs.smsOtpContentHint})]})]})},xRe=({data:e})=>{const t=Kt(aj),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=Xee({query:{uniqueId:r}}),l=ERe({queryClient:a});return w.jsx(Bo,{patchHook:l,getSingleHook:o,disableOnGetFailed:!0,forceEdit:!0,onCancel:()=>{n.goBackOrDefault(La.Navigation.single(void 0,i))},onFinishUriResolver:(u,d)=>{var f;return La.Navigation.single((f=u.data)==null?void 0:f.uniqueId,d)},customClass:"w-100",Form:kRe,onEditTitle:t.workspaceConfigs.editWorkspaceConfig,onCreateTitle:t.workspaceConfigs.newWorkspaceConfig,data:e})},_Re=()=>{var r;const e=Xee({});var t=(r=e.query.data)==null?void 0:r.data;const n=Kt(aj);return w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:({locale:a,router:i})=>{i.push(La.Navigation.edit(""))},noBack:!0,disableOnGetFailed:!0,getSingleHook:e,children:w.jsx(oo,{title:n.workspaceConfigs.title,description:n.workspaceConfigs.description,entity:t,fields:[{elem:t==null?void 0:t.recaptcha2ServerKey,label:n.workspaceConfigs.recaptcha2ServerKey},{elem:t==null?void 0:t.recaptcha2ClientKey,label:n.workspaceConfigs.recaptcha2ClientKey},{elem:t==null?void 0:t.enableOtp,label:n.workspaceConfigs.enableOtp},{elem:t==null?void 0:t.enableRecaptcha2,label:n.workspaceConfigs.enableRecaptcha2},{elem:t==null?void 0:t.requireOtpOnSignin,label:n.workspaceConfigs.requireOtpOnSignin},{elem:t==null?void 0:t.requireOtpOnSignup,label:n.workspaceConfigs.requireOtpOnSignup},{elem:t==null?void 0:t.enableTotp,label:n.workspaceConfigs.enableTotp},{elem:t==null?void 0:t.forceTotp,label:n.workspaceConfigs.forceTotp},{elem:t==null?void 0:t.forcePasswordOnPhone,label:n.workspaceConfigs.forcePasswordOnPhone},{elem:t==null?void 0:t.forcePersonNameOnPhone,label:n.workspaceConfigs.forcePersonNameOnPhone},{elem:t==null?void 0:t.generalEmailProviderId,label:n.workspaceConfigs.generalEmailProviderLabel},{elem:t==null?void 0:t.generalGsmProviderId,label:n.workspaceConfigs.generalGsmProviderLabel},{elem:t==null?void 0:t.inviteToWorkspaceContentId,label:n.workspaceConfigs.inviteToWorkspaceContentLabel},{elem:t==null?void 0:t.emailOtpContentId,label:n.workspaceConfigs.emailOtpContentLabel},{elem:t==null?void 0:t.smsOtpContentId,label:n.workspaceConfigs.smsOtpContentLabel}]})})})};function ORe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(_Re,{}),path:"workspace-config"}),w.jsx(mt,{element:w.jsx(xRe,{}),path:"workspace-config/edit"})]})}function af({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/roles".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.RoleEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}af.UKEY="*abac.RoleEntity";const RRe=({form:e,isEditing:t})=>{const{values:n,setValues:r}=e,{options:a}=R.useContext(rt),i=At();return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:n.uniqueId,onChange:o=>e.setFieldValue(Ji.Fields.uniqueId,o,!1),errorMessage:e.errors.uniqueId,label:i.wokspaces.workspaceTypeUniqueId,autoFocus:!t,hint:i.wokspaces.workspaceTypeUniqueIdHint}),w.jsx(In,{value:n.title,onChange:o=>e.setFieldValue(Ji.Fields.title,o,!1),errorMessage:e.errors.title,label:i.wokspaces.workspaceTypeTitle,autoFocus:!t,hint:i.wokspaces.workspaceTypeTitleHint}),w.jsx(In,{value:n.slug,onChange:o=>e.setFieldValue(Ji.Fields.slug,o,!1),errorMessage:e.errors.slug,label:i.wokspaces.workspaceTypeSlug,hint:i.wokspaces.workspaceTypeSlugHint}),w.jsx(da,{label:i.wokspaces.invite.role,hint:i.wokspaces.invite.roleHint,fnLabelFormat:o=>o.name,querySource:af,formEffect:{form:e,field:Ji.Fields.role$},errorMessage:e.errors.roleId}),w.jsx(rj,{value:n.description,onChange:o=>e.setFieldValue(Ji.Fields.description,o,!1),errorMessage:e.errors.description,label:i.wokspaces.typeDescription,hint:i.wokspaces.typeDescriptionHint})]})};function Qee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/workspace-type/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.WorkspaceTypeEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function PRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace-type".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.WorkspaceTypeEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function ARe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace-type".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceTypeEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const X5=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a,t:i}=$r({data:e}),o=Qee({query:{uniqueId:n}}),l=PRe({queryClient:r}),u=ARe({queryClient:r});return w.jsx(Bo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{t.goBackOrDefault(`/${a}/workspace-types`)},onFinishUriResolver:(d,f)=>{var g;return`/${f}/workspace-type/${(g=d.data)==null?void 0:g.uniqueId}`},Form:RRe,onEditTitle:i.fb.editWorkspaceType,onCreateTitle:i.fb.newWorkspaceType,data:e})};function NRe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/workspace-type".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.WorkspaceTypeEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.WorkspaceTypeEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function Jee({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/workspace-types".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.WorkspaceTypeEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Jee.UKEY="*abac.WorkspaceTypeEntity";const MRe=e=>[{name:"uniqueId",title:e.table.uniqueId,width:200},{name:"title",title:e.wokspaces.title,width:200,getCellValue:t=>t.title},{name:"slug",slug:e.wokspaces.slug,width:200,getCellValue:t=>t.slug}],IRe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:MRe(e),queryHook:Jee,uniqueIdHrefHandler:t=>Ji.Navigation.single(t),deleteHook:NRe})})},DRe=()=>{const e=At(),t=xr();return sr(),w.jsx(w.Fragment,{children:w.jsx(jo,{newEntityHandler:()=>{t.push(Ji.Navigation.create())},pageTitle:e.fbMenu.workspaceTypes,children:w.jsx(IRe,{})})})},$Re=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Qee({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return gh((a==null?void 0:a.title)||""),w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:()=>{e.push(Ji.Navigation.edit(n))},getSingleHook:r,children:w.jsx(oo,{entity:a,fields:[{label:t.wokspaces.slug,elem:a==null?void 0:a.slug}]})})})};function LRe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(X5,{}),path:Ji.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(X5,{}),path:Ji.Navigation.Redit}),w.jsx(mt,{element:w.jsx($Re,{}),path:Ji.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(DRe,{}),path:Ji.Navigation.Rquery})]})}function FRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.WorkspaceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function Zee({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/workspace/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.WorkspaceEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function jRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const URe=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a}=e,i=At();return w.jsx(w.Fragment,{children:w.jsx(In,{value:n.name,autoFocus:!t,onChange:o=>r(yi.Fields.name,o,!1),errorMessage:a.name,label:i.wokspaces.workspaceName,hint:i.wokspaces.workspaceNameHint})})},Q5=({data:e})=>{const t=At(),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=Zee({query:{uniqueId:r}}),l=FRe({queryClient:a}),u=jRe({queryClient:a});return w.jsx(Bo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{n.goBackOrDefault(yi.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return yi.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:URe,onEditTitle:t.wokspaces.editWorkspae,onCreateTitle:t.wokspaces.createNewWorkspace,data:e})},BRe=({row:e,uniqueIdHrefHandler:t,columns:n})=>{const r=At();return w.jsx(w.Fragment,{children:(e.children||[]).map(a=>w.jsxs("tr",{children:[w.jsx("td",{}),w.jsx("td",{}),n(r).map(i=>{let o=a.getCellValue?a.getCellValue(e):a[i.name];return i.name==="uniqueId"?w.jsx("td",{children:w.jsx(Pl,{href:t&&t(o),children:o})}):w.jsx("td",{children:o})})]}))})};function ete({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/cte-workspaces".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.WorkspaceEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}ete.UKEY="*abac.WorkspaceEntity";const J5=e=>[{name:yi.Fields.uniqueId,title:e.table.uniqueId,width:100},{name:yi.Fields.name,title:e.wokspaces.name,width:200}],WRe=()=>{const e=At(),t=n=>yi.Navigation.single(n);return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:J5(e),queryHook:ete,onRecordsDeleted:({queryClient:n})=>{n.invalidateQueries("*fireback.UserRoleWorkspace"),n.invalidateQueries("*fireback.WorkspaceEntity")},RowDetail:n=>w.jsx(BRe,{...n,columns:J5,uniqueIdHref:!0,Handler:t}),uniqueIdHrefHandler:t})})},zRe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{pageTitle:e.fbMenu.workspaces,newEntityHandler:({locale:t,router:n})=>{n.push(yi.Navigation.create())},children:w.jsx(WRe,{})})})},qRe=()=>{var i;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Zee({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return gh((a==null?void 0:a.name)||""),w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:()=>{e.push(yi.Navigation.edit(n))},getSingleHook:r,children:w.jsx(oo,{entity:a,fields:[{label:t.wokspaces.name,elem:a==null?void 0:a.name}]})})})};function HRe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(Q5,{}),path:yi.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(Q5,{}),path:yi.Navigation.Redit}),w.jsx(mt,{element:w.jsx(qRe,{}),path:yi.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(zRe,{}),path:yi.Navigation.Rquery})]})}const VRe={gsmProviders:{apiKey:"Api key",apiKeyHint:"Api key",archiveTitle:"Gsm providers",editGsmProvider:"Edit gsm provider",invokeBody:"Invoke body",invokeBodyHint:"Invoke body",invokeUrl:"Invoke url",invokeUrlHint:"Invoke url",mainSenderNumber:"Main sender number",mainSenderNumberHint:"Main sender number",newGsmProvider:"New gsm provider",type:"Type",typeHint:"Type"}},GRe={gsmProviders:{apiKey:"Api key",apiKeyHint:"Api key",archiveTitle:"Gsm providers",editGsmProvider:"Edit gsm provider",invokeBody:"Invoke body",invokeBodyHint:"Invoke body",invokeUrl:"Invoke url",invokeUrlHint:"Invoke url",mainSenderNumber:"Main sender number",mainSenderNumberHint:"Main sender number",newGsmProvider:"New gsm provider",type:"Type",typeHint:"Type"}},qE={...VRe,$pl:GRe},YRe=e=>[{name:"uniqueId",title:"uniqueId",width:200},{name:ca.Fields.apiKey,title:e.gsmProviders.apiKey,width:100},{name:ca.Fields.mainSenderNumber,title:e.gsmProviders.mainSenderNumber,width:100},{name:ca.Fields.type,title:e.gsmProviders.type,width:100},{name:ca.Fields.invokeUrl,title:e.gsmProviders.invokeUrl,width:100},{name:ca.Fields.invokeBody,title:e.gsmProviders.invokeBody,width:100}];function KRe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/gsm-provider".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.GsmProviderEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.GsmProviderEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const XRe=()=>{const e=Kt(qE);return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:YRe(e),queryHook:ij,uniqueIdHrefHandler:t=>ca.Navigation.single(t),deleteHook:KRe})})},QRe=()=>{const e=Kt(qE);return w.jsx(jo,{pageTitle:e.gsmProviders.archiveTitle,newEntityHandler:({locale:t,router:n})=>{n.push(ca.Navigation.create())},children:w.jsx(XRe,{})})},JRe=({form:e,isEditing:t})=>{const{options:n}=R.useContext(rt),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=zs([{uniqueId:"terminal",title:"Terminal"},{uniqueId:"url",title:"Url"}]),u=Kt(qE);return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:r.apiKey,onChange:d=>i(ca.Fields.apiKey,d,!1),errorMessage:o.apiKey,label:u.gsmProviders.apiKey,hint:u.gsmProviders.apiKeyHint}),w.jsx(In,{value:r.mainSenderNumber,onChange:d=>i(ca.Fields.mainSenderNumber,d,!1),errorMessage:o.mainSenderNumber,label:u.gsmProviders.mainSenderNumber,hint:u.gsmProviders.mainSenderNumberHint}),w.jsx(da,{querySource:l,value:r.type,fnLabelFormat:d=>d.title,keyExtractor:d=>d.uniqueId,onChange:d=>i(ca.Fields.type,d.uniqueId,!1),errorMessage:o.type,label:u.gsmProviders.type,hint:u.gsmProviders.typeHint}),w.jsx(In,{value:r.invokeUrl,onChange:d=>i(ca.Fields.invokeUrl,d,!1),errorMessage:o.invokeUrl,label:u.gsmProviders.invokeUrl,hint:u.gsmProviders.invokeUrlHint}),w.jsx(In,{value:r.invokeBody,onChange:d=>i(ca.Fields.invokeBody,d,!1),errorMessage:o.invokeBody,label:u.gsmProviders.invokeBody,hint:u.gsmProviders.invokeBodyHint})]})};function tte({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/gsm-provider/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.GsmProviderEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function ZRe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/gsm-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.GsmProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function ePe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/gsm-provider".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.GsmProviderEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const Z5=({data:e})=>{const t=Kt(qE),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=tte({query:{uniqueId:r}}),l=ZRe({queryClient:a}),u=ePe({queryClient:a});return w.jsx(Bo,{postHook:l,patchHook:u,getSingleHook:o,onCancel:()=>{n.goBackOrDefault(ca.Navigation.query(void 0,i))},onFinishUriResolver:(d,f)=>{var g;return ca.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:JRe,onEditTitle:t.gsmProviders.editGsmProvider,onCreateTitle:t.gsmProviders.newGsmProvider,data:e})},tPe=()=>{var a;const{uniqueId:e}=$r({}),t=tte({query:{uniqueId:e}});var n=(a=t.query.data)==null?void 0:a.data;const r=Kt(qE);return w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:({locale:i,router:o})=>{o.push(ca.Navigation.edit(e))},getSingleHook:t,children:w.jsx(oo,{entity:n,fields:[{elem:n==null?void 0:n.apiKey,label:r.gsmProviders.apiKey},{elem:n==null?void 0:n.mainSenderNumber,label:r.gsmProviders.mainSenderNumber},{elem:n==null?void 0:n.invokeUrl,label:r.gsmProviders.invokeUrl},{elem:n==null?void 0:n.invokeBody,label:r.gsmProviders.invokeBody}]})})})};function nPe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(Z5,{}),path:ca.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(tPe,{}),path:ca.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(Z5,{}),path:ca.Navigation.Redit}),w.jsx(mt,{element:w.jsx(QRe,{}),path:ca.Navigation.Rquery})]})}function rPe(){const e=p_e(),t=S_e(),n=j_e(),r=nPe(),a=Y_e(),i=iOe(),o=SRe(),l=ORe(),u=LRe(),d=HRe(),f=lRe(),g=$Oe();return w.jsxs(mt,{path:"manage",children:[e,t,g,n,a,i,o,r,l,u,d,f]})}const aPe=()=>w.jsxs("div",{children:[w.jsx("h1",{className:"mt-4",children:"Dashboard"}),w.jsx("p",{children:"Welcome to the dashboard. You can see what's going on here."})]}),oj=R.createContext({});function sj(e){const t=R.useRef(null);return t.current===null&&(t.current=e()),t.current}const lj=typeof window<"u",nte=lj?R.useLayoutEffect:R.useEffect,M_=R.createContext(null);function uj(e,t){e.indexOf(t)===-1&&e.push(t)}function cj(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const zd=(e,t,n)=>n>t?t:n{};const qd={},rte=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ate(e){return typeof e=="object"&&e!==null}const ite=e=>/^0[^.\s]+$/u.test(e);function fj(e){let t;return()=>(t===void 0&&(t=e()),t)}const Nl=e=>e,iPe=(e,t)=>n=>t(e(n)),HE=(...e)=>e.reduce(iPe),aE=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class pj{constructor(){this.subscriptions=[]}add(t){return uj(this.subscriptions,t),()=>cj(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let i=0;ie*1e3,Cc=e=>e/1e3;function ote(e,t){return t?e*(1e3/t):0}const ste=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,oPe=1e-7,sPe=12;function lPe(e,t,n,r,a){let i,o,l=0;do o=t+(n-t)/2,i=ste(o,r,a)-e,i>0?n=o:t=o;while(Math.abs(i)>oPe&&++llPe(i,0,1,e,n);return i=>i===0||i===1?i:ste(a(i),t,r)}const lte=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ute=e=>t=>1-e(1-t),cte=VE(.33,1.53,.69,.99),hj=ute(cte),dte=lte(hj),fte=e=>(e*=2)<1?.5*hj(e):.5*(2-Math.pow(2,-10*(e-1))),mj=e=>1-Math.sin(Math.acos(e)),pte=ute(mj),hte=lte(mj),uPe=VE(.42,0,1,1),cPe=VE(0,0,.58,1),mte=VE(.42,0,.58,1),dPe=e=>Array.isArray(e)&&typeof e[0]!="number",gte=e=>Array.isArray(e)&&typeof e[0]=="number",fPe={linear:Nl,easeIn:uPe,easeInOut:mte,easeOut:cPe,circIn:mj,circInOut:hte,circOut:pte,backIn:hj,backInOut:dte,backOut:cte,anticipate:fte},pPe=e=>typeof e=="string",eW=e=>{if(gte(e)){dj(e.length===4);const[t,n,r,a]=e;return VE(t,n,r,a)}else if(pPe(e))return fPe[e];return e},pk=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tW={value:null};function hPe(e,t){let n=new Set,r=new Set,a=!1,i=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},u=0;function d(g){o.has(g)&&(f.schedule(g),e()),u++,g(l)}const f={schedule:(g,y=!1,h=!1)=>{const E=h&&a?n:r;return y&&o.add(g),E.has(g)||E.add(g),g},cancel:g=>{r.delete(g),o.delete(g)},process:g=>{if(l=g,a){i=!0;return}a=!0,[n,r]=[r,n],n.forEach(d),t&&tW.value&&tW.value.frameloop[t].push(u),u=0,n.clear(),a=!1,i&&(i=!1,f.process(g))}};return f}const mPe=40;function vte(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=pk.reduce((_,A)=>(_[A]=hPe(i,t?A:void 0),_),{}),{setup:l,read:u,resolveKeyframes:d,preUpdate:f,update:g,preRender:y,render:h,postRender:v}=o,E=()=>{const _=qd.useManualTiming?a.timestamp:performance.now();n=!1,qd.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(_-a.timestamp,mPe),1)),a.timestamp=_,a.isProcessing=!0,l.process(a),u.process(a),d.process(a),f.process(a),g.process(a),y.process(a),h.process(a),v.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(E))},T=()=>{n=!0,r=!0,a.isProcessing||e(E)};return{schedule:pk.reduce((_,A)=>{const P=o[A];return _[A]=(N,I=!1,L=!1)=>(n||T(),P.schedule(N,I,L)),_},{}),cancel:_=>{for(let A=0;A(Vk===void 0&&os.set(Fi.isProcessing||qd.useManualTiming?Fi.timestamp:performance.now()),Vk),set:e=>{Vk=e,queueMicrotask(gPe)}},yte=e=>t=>typeof t=="string"&&t.startsWith(e),gj=yte("--"),vPe=yte("var(--"),vj=e=>vPe(e)?yPe.test(e.split("/*")[0].trim()):!1,yPe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,_0={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},iE={..._0,transform:e=>zd(0,1,e)},hk={..._0,default:1},OS=e=>Math.round(e*1e5)/1e5,yj=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function bPe(e){return e==null}const wPe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bj=(e,t)=>n=>!!(typeof n=="string"&&wPe.test(n)&&n.startsWith(e)||t&&!bPe(n)&&Object.prototype.hasOwnProperty.call(n,t)),bte=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,i,o,l]=r.match(yj);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},SPe=e=>zd(0,255,e),cA={..._0,transform:e=>Math.round(SPe(e))},uv={test:bj("rgb","red"),parse:bte("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+cA.transform(e)+", "+cA.transform(t)+", "+cA.transform(n)+", "+OS(iE.transform(r))+")"};function EPe(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const i3={test:bj("#"),parse:EPe,transform:uv.transform},GE=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Hp=GE("deg"),kc=GE("%"),mn=GE("px"),TPe=GE("vh"),CPe=GE("vw"),nW={...kc,parse:e=>kc.parse(e)/100,transform:e=>kc.transform(e*100)},Db={test:bj("hsl","hue"),parse:bte("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+kc.transform(OS(t))+", "+kc.transform(OS(n))+", "+OS(iE.transform(r))+")"},Ga={test:e=>uv.test(e)||i3.test(e)||Db.test(e),parse:e=>uv.test(e)?uv.parse(e):Db.test(e)?Db.parse(e):i3.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?uv.transform(e):Db.transform(e),getAnimatableNone:e=>{const t=Ga.parse(e);return t.alpha=0,Ga.transform(t)}},kPe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function xPe(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(yj))==null?void 0:t.length)||0)+(((n=e.match(kPe))==null?void 0:n.length)||0)>0}const wte="number",Ste="color",_Pe="var",OPe="var(",rW="${}",RPe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function oE(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let i=0;const l=t.replace(RPe,u=>(Ga.test(u)?(r.color.push(i),a.push(Ste),n.push(Ga.parse(u))):u.startsWith(OPe)?(r.var.push(i),a.push(_Pe),n.push(u)):(r.number.push(i),a.push(wte),n.push(parseFloat(u))),++i,rW)).split(rW);return{values:n,split:l,indexes:r,types:a}}function Ete(e){return oE(e).values}function Tte(e){const{split:t,types:n}=oE(e),r=t.length;return a=>{let i="";for(let o=0;otypeof e=="number"?0:Ga.test(e)?Ga.getAnimatableNone(e):e;function APe(e){const t=Ete(e);return Tte(e)(t.map(PPe))}const uh={test:xPe,parse:Ete,createTransformer:Tte,getAnimatableNone:APe};function dA(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function NPe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,i=0,o=0;if(!t)a=i=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;a=dA(u,l,e+1/3),i=dA(u,l,e),o=dA(u,l,e-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Lx(e,t){return n=>n>0?t:e}const fa=(e,t,n)=>e+(t-e)*n,fA=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},MPe=[i3,uv,Db],IPe=e=>MPe.find(t=>t.test(e));function aW(e){const t=IPe(e);if(!t)return!1;let n=t.parse(e);return t===Db&&(n=NPe(n)),n}const iW=(e,t)=>{const n=aW(e),r=aW(t);if(!n||!r)return Lx(e,t);const a={...n};return i=>(a.red=fA(n.red,r.red,i),a.green=fA(n.green,r.green,i),a.blue=fA(n.blue,r.blue,i),a.alpha=fa(n.alpha,r.alpha,i),uv.transform(a))},o3=new Set(["none","hidden"]);function DPe(e,t){return o3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $Pe(e,t){return n=>fa(e,t,n)}function wj(e){return typeof e=="number"?$Pe:typeof e=="string"?vj(e)?Lx:Ga.test(e)?iW:jPe:Array.isArray(e)?Cte:typeof e=="object"?Ga.test(e)?iW:LPe:Lx}function Cte(e,t){const n=[...e],r=n.length,a=e.map((i,o)=>wj(i)(i,t[o]));return i=>{for(let o=0;o{for(const i in r)n[i]=r[i](a);return n}}function FPe(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a{const n=uh.createTransformer(t),r=oE(e),a=oE(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?o3.has(e)&&!a.values.length||o3.has(t)&&!r.values.length?DPe(e,t):HE(Cte(FPe(r,a),a.values),n):Lx(e,t)};function kte(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?fa(e,t,n):wj(e)(e,t)}const UPe=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ha.update(t,n),stop:()=>lh(t),now:()=>Fi.isProcessing?Fi.timestamp:os.now()}},xte=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let i=0;i=Fx?1/0:t}function BPe(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(Sj(r),Fx);return{type:"keyframes",ease:i=>r.next(a*i).value/t,duration:Cc(a)}}const WPe=5;function _te(e,t,n){const r=Math.max(t-WPe,0);return ote(n-e(r),t-r)}const Sa={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},pA=.001;function zPe({duration:e=Sa.duration,bounce:t=Sa.bounce,velocity:n=Sa.velocity,mass:r=Sa.mass}){let a,i,o=1-t;o=zd(Sa.minDamping,Sa.maxDamping,o),e=zd(Sa.minDuration,Sa.maxDuration,Cc(e)),o<1?(a=d=>{const f=d*o,g=f*e,y=f-n,h=s3(d,o),v=Math.exp(-g);return pA-y/h*v},i=d=>{const g=d*o*e,y=g*n+n,h=Math.pow(o,2)*Math.pow(d,2)*e,v=Math.exp(-g),E=s3(Math.pow(d,2),o);return(-a(d)+pA>0?-1:1)*((y-h)*v)/E}):(a=d=>{const f=Math.exp(-d*e),g=(d-n)*e+1;return-pA+f*g},i=d=>{const f=Math.exp(-d*e),g=(n-d)*(e*e);return f*g});const l=5/e,u=HPe(a,i,l);if(e=Tc(e),isNaN(u))return{stiffness:Sa.stiffness,damping:Sa.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const qPe=12;function HPe(e,t,n){let r=n;for(let a=1;ae[n]!==void 0)}function YPe(e){let t={velocity:Sa.velocity,stiffness:Sa.stiffness,damping:Sa.damping,mass:Sa.mass,isResolvedFromDuration:!1,...e};if(!oW(e,GPe)&&oW(e,VPe))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,i=2*zd(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Sa.mass,stiffness:a,damping:i}}else{const n=zPe(e);t={...t,...n,mass:Sa.mass},t.isResolvedFromDuration=!0}return t}function jx(e=Sa.visualDuration,t=Sa.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:u,damping:d,mass:f,duration:g,velocity:y,isResolvedFromDuration:h}=YPe({...n,velocity:-Cc(n.velocity||0)}),v=y||0,E=d/(2*Math.sqrt(u*f)),T=o-i,C=Cc(Math.sqrt(u/f)),k=Math.abs(T)<5;r||(r=k?Sa.restSpeed.granular:Sa.restSpeed.default),a||(a=k?Sa.restDelta.granular:Sa.restDelta.default);let _;if(E<1){const P=s3(C,E);_=N=>{const I=Math.exp(-E*C*N);return o-I*((v+E*C*T)/P*Math.sin(P*N)+T*Math.cos(P*N))}}else if(E===1)_=P=>o-Math.exp(-C*P)*(T+(v+C*T)*P);else{const P=C*Math.sqrt(E*E-1);_=N=>{const I=Math.exp(-E*C*N),L=Math.min(P*N,300);return o-I*((v+E*C*T)*Math.sinh(L)+P*T*Math.cosh(L))/P}}const A={calculatedDuration:h&&g||null,next:P=>{const N=_(P);if(h)l.done=P>=g;else{let I=P===0?v:0;E<1&&(I=P===0?Tc(v):_te(_,P,N));const L=Math.abs(I)<=r,j=Math.abs(o-N)<=a;l.done=L&&j}return l.value=l.done?o:N,l},toString:()=>{const P=Math.min(Sj(A),Fx),N=xte(I=>A.next(P*I).value,P,30);return P+"ms "+N},toTransition:()=>{}};return A}jx.applyToOptions=e=>{const t=BPe(e,100,jx);return e.ease=t.ease,e.duration=Tc(t.duration),e.type="keyframes",e};function l3({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:u,restDelta:d=.5,restSpeed:f}){const g=e[0],y={done:!1,value:g},h=L=>l!==void 0&&Lu,v=L=>l===void 0?u:u===void 0||Math.abs(l-L)-E*Math.exp(-L/r),_=L=>C+k(L),A=L=>{const j=k(L),z=_(L);y.done=Math.abs(j)<=d,y.value=y.done?C:z};let P,N;const I=L=>{h(y.value)&&(P=L,N=jx({keyframes:[y.value,v(y.value)],velocity:_te(_,L,y.value),damping:a,stiffness:i,restDelta:d,restSpeed:f}))};return I(0),{calculatedDuration:null,next:L=>{let j=!1;return!N&&P===void 0&&(j=!0,A(L),I(L)),P!==void 0&&L>=P?N.next(L-P):(!j&&A(L),y)}}}function KPe(e,t,n){const r=[],a=n||qd.mix||kte,i=e.length-1;for(let o=0;ot[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=KPe(t,r,a),u=l.length,d=f=>{if(o&&f1)for(;gd(zd(e[0],e[i-1],f)):d}function QPe(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=aE(0,t,r);e.push(fa(n,1,a))}}function JPe(e){const t=[0];return QPe(t,e.length-1),t}function ZPe(e,t){return e.map(n=>n*t)}function eAe(e,t){return e.map(()=>t||mte).splice(0,e.length-1)}function RS({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=dPe(r)?r.map(eW):eW(r),i={done:!1,value:t[0]},o=ZPe(n&&n.length===t.length?n:JPe(t),e),l=XPe(o,t,{ease:Array.isArray(a)?a:eAe(t,a)});return{calculatedDuration:e,next:u=>(i.value=l(u),i.done=u>=e,i)}}const tAe=e=>e!==null;function Ej(e,{repeat:t,repeatType:n="loop"},r,a=1){const i=e.filter(tAe),l=a<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||r===void 0?i[l]:r}const nAe={decay:l3,inertia:l3,tween:RS,keyframes:RS,spring:jx};function Ote(e){typeof e.type=="string"&&(e.type=nAe[e.type])}class Tj{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const rAe=e=>e/100;class Cj extends Tj{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,a;const{motionValue:n}=this.options;n&&n.updatedAt!==os.now()&&this.tick(os.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(r=this.options).onStop)==null||a.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Ote(t);const{type:n=RS,repeat:r=0,repeatDelay:a=0,repeatType:i,velocity:o=0}=t;let{keyframes:l}=t;const u=n||RS;u!==RS&&typeof l[0]!="number"&&(this.mixKeyframes=HE(rAe,kte(l[0],l[1])),l=[0,100]);const d=u({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...l].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=Sj(d));const{calculatedDuration:f}=d;this.calculatedDuration=f,this.resolvedDuration=f+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:f,repeat:g,repeatType:y,repeatDelay:h,type:v,onUpdate:E,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const C=this.currentTime-d*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?C<0:C>a;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let _=this.currentTime,A=r;if(g){const L=Math.min(this.currentTime,a)/l;let j=Math.floor(L),z=L%1;!z&&L>=1&&(z=1),z===1&&j--,j=Math.min(j,g+1),!!(j%2)&&(y==="reverse"?(z=1-z,h&&(z-=h/l)):y==="mirror"&&(A=o)),_=zd(0,1,z)*l}const P=k?{done:!1,value:f[0]}:A.next(_);i&&(P.value=i(P.value));let{done:N}=P;!k&&u!==null&&(N=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return I&&v!==l3&&(P.value=Ej(f,this.options,T,this.speed)),E&&E(P.value),I&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Cc(this.calculatedDuration)}get time(){return Cc(this.currentTime)}set time(t){var n;t=Tc(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(os.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Cc(this.currentTime))}play(){var a,i;if(this.isStopped)return;const{driver:t=UPe,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(a=this.options).onPlay)==null||i.call(a);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(os.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function aAe(e){for(let t=1;te*180/Math.PI,u3=e=>{const t=cv(Math.atan2(e[1],e[0]));return c3(t)},iAe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:u3,rotateZ:u3,skewX:e=>cv(Math.atan(e[1])),skewY:e=>cv(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},c3=e=>(e=e%360,e<0&&(e+=360),e),sW=u3,lW=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),uW=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),oAe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:lW,scaleY:uW,scale:e=>(lW(e)+uW(e))/2,rotateX:e=>c3(cv(Math.atan2(e[6],e[5]))),rotateY:e=>c3(cv(Math.atan2(-e[2],e[0]))),rotateZ:sW,rotate:sW,skewX:e=>cv(Math.atan(e[4])),skewY:e=>cv(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function d3(e){return e.includes("scale")?1:0}function f3(e,t){if(!e||e==="none")return d3(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=oAe,a=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=iAe,a=l}if(!a)return d3(t);const i=r[t],o=a[1].split(",").map(lAe);return typeof i=="function"?i(o):o[i]}const sAe=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return f3(n,t)};function lAe(e){return parseFloat(e.trim())}const O0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],R0=new Set(O0),cW=e=>e===_0||e===mn,uAe=new Set(["x","y","z"]),cAe=O0.filter(e=>!uAe.has(e));function dAe(e){const t=[];return cAe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ov={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>f3(t,"x"),y:(e,{transform:t})=>f3(t,"y")};Ov.translateX=Ov.x;Ov.translateY=Ov.y;const Rv=new Set;let p3=!1,h3=!1,m3=!1;function Rte(){if(h3){const e=Array.from(Rv).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=dAe(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([i,o])=>{var l;(l=r.getValue(i))==null||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}h3=!1,p3=!1,Rv.forEach(e=>e.complete(m3)),Rv.clear()}function Pte(){Rv.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(h3=!0)})}function fAe(){m3=!0,Pte(),Rte(),m3=!1}class kj{constructor(t,n,r,a,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Rv.add(this),p3||(p3=!0,ha.read(Pte),ha.resolveKeyframes(Rte))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const i=a==null?void 0:a.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const l=r.readValue(n,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),a&&i===void 0&&a.set(t[0])}aAe(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Rv.delete(this)}cancel(){this.state==="scheduled"&&(Rv.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const pAe=e=>e.startsWith("--");function hAe(e,t,n){pAe(t)?e.style.setProperty(t,n):e.style[t]=n}const mAe=fj(()=>window.ScrollTimeline!==void 0),gAe={};function vAe(e,t){const n=fj(e);return()=>gAe[t]??n()}const Ate=vAe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),vS=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,dW={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vS([0,.65,.55,1]),circOut:vS([.55,0,1,.45]),backIn:vS([.31,.01,.66,-.59]),backOut:vS([.33,1.53,.69,.99])};function Nte(e,t){if(e)return typeof e=="function"?Ate()?xte(e,t):"ease-out":gte(e)?vS(e):Array.isArray(e)?e.map(n=>Nte(n,t)||dW.easeOut):dW[e]}function yAe(e,t,n,{delay:r=0,duration:a=300,repeat:i=0,repeatType:o="loop",ease:l="easeOut",times:u}={},d=void 0){const f={[t]:n};u&&(f.offset=u);const g=Nte(l,a);Array.isArray(g)&&(f.easing=g);const y={delay:r,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return d&&(y.pseudoElement=d),e.animate(f,y)}function Mte(e){return typeof e=="function"&&"applyToOptions"in e}function bAe({type:e,...t}){return Mte(e)&&Ate()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class wAe extends Tj{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:l,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,dj(typeof t.type!="string");const d=bAe(t);this.animation=yAe(n,r,a,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const f=Ej(a,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(f):hAe(n,r,f),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Cc(Number(t))}get time(){return Cc(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Tc(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&mAe()?(this.animation.timeline=t,Nl):n(this)}}const Ite={anticipate:fte,backInOut:dte,circInOut:hte};function SAe(e){return e in Ite}function EAe(e){typeof e.ease=="string"&&SAe(e.ease)&&(e.ease=Ite[e.ease])}const fW=10;class TAe extends wAe{constructor(t){EAe(t),Ote(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Cj({...o,autoplay:!1}),u=Tc(this.finishedTime??this.time);n.setWithVelocity(l.sample(u-fW).value,l.sample(u).value,fW),l.stop()}}const pW=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(uh.test(e)||e==="0")&&!e.startsWith("url("));function CAe(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function OAe(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:i,type:o}=e;if(!xj((d=t==null?void 0:t.owner)==null?void 0:d.current))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return _Ae()&&n&&xAe.has(n)&&(n!=="transform"||!u)&&!l&&!r&&a!=="mirror"&&i!==0&&o!=="inertia"}const RAe=40;class PAe extends Tj{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:o="loop",keyframes:l,name:u,motionValue:d,element:f,...g}){var v;super(),this.stop=()=>{var E,T;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=os.now();const y={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:i,repeatType:o,name:u,motionValue:d,element:f,...g},h=(f==null?void 0:f.KeyframeResolver)||kj;this.keyframeResolver=new h(l,(E,T,C)=>this.onKeyframesResolved(E,T,y,!C),u,d,f),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:i,type:o,velocity:l,delay:u,isHandoff:d,onUpdate:f}=r;this.resolvedAt=os.now(),kAe(t,i,o,l)||((qd.instantAnimations||!u)&&(f==null||f(Ej(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const y={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>RAe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!d&&OAe(y)?new TAe({...y,element:y.motionValue.owner.current}):new Cj(y);h.finished.then(()=>this.notifyFinished()).catch(Nl),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),fAe()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const AAe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function NAe(e){const t=AAe.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function Dte(e,t,n=1){const[r,a]=NAe(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return rte(o)?parseFloat(o):o}return vj(a)?Dte(a,t,n+1):a}function _j(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const $te=new Set(["width","height","top","left","right","bottom",...O0]),MAe={test:e=>e==="auto",parse:e=>e},Lte=e=>t=>t.test(e),Fte=[_0,mn,kc,Hp,CPe,TPe,MAe],hW=e=>Fte.find(Lte(e));function IAe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ite(e):!0}const DAe=new Set(["brightness","contrast","saturate","opacity"]);function $Ae(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(yj)||[];if(!r)return e;const a=n.replace(r,"");let i=DAe.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+a+")"}const LAe=/\b([a-z-]*)\(.*?\)/gu,g3={...uh,getAnimatableNone:e=>{const t=e.match(LAe);return t?t.map($Ae).join(" "):e}},mW={..._0,transform:Math.round},FAe={rotate:Hp,rotateX:Hp,rotateY:Hp,rotateZ:Hp,scale:hk,scaleX:hk,scaleY:hk,scaleZ:hk,skew:Hp,skewX:Hp,skewY:Hp,distance:mn,translateX:mn,translateY:mn,translateZ:mn,x:mn,y:mn,z:mn,perspective:mn,transformPerspective:mn,opacity:iE,originX:nW,originY:nW,originZ:mn},Oj={borderWidth:mn,borderTopWidth:mn,borderRightWidth:mn,borderBottomWidth:mn,borderLeftWidth:mn,borderRadius:mn,radius:mn,borderTopLeftRadius:mn,borderTopRightRadius:mn,borderBottomRightRadius:mn,borderBottomLeftRadius:mn,width:mn,maxWidth:mn,height:mn,maxHeight:mn,top:mn,right:mn,bottom:mn,left:mn,padding:mn,paddingTop:mn,paddingRight:mn,paddingBottom:mn,paddingLeft:mn,margin:mn,marginTop:mn,marginRight:mn,marginBottom:mn,marginLeft:mn,backgroundPositionX:mn,backgroundPositionY:mn,...FAe,zIndex:mW,fillOpacity:iE,strokeOpacity:iE,numOctaves:mW},jAe={...Oj,color:Ga,backgroundColor:Ga,outlineColor:Ga,fill:Ga,stroke:Ga,borderColor:Ga,borderTopColor:Ga,borderRightColor:Ga,borderBottomColor:Ga,borderLeftColor:Ga,filter:g3,WebkitFilter:g3},jte=e=>jAe[e];function Ute(e,t){let n=jte(e);return n!==g3&&(n=uh),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const UAe=new Set(["auto","none","0"]);function BAe(e,t,n){let r=0,a;for(;r{t.getValue(u).set(d)}),this.resolveNoneKeyframes()}}function zAe(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=(n==null?void 0:n[e])??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const Bte=(e,t)=>t&&typeof e=="number"?t.transform(e):e,gW=30,qAe=e=>!isNaN(parseFloat(e));class HAe{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{var o,l;const i=os.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty();a&&((l=this.events.renderRequest)==null||l.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=os.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=qAe(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new pj);const r=this.events[t].add(n);return t==="change"?()=>{r(),ha.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=os.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>gW)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,gW);return ote(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function f0(e,t){return new HAe(e,t)}const{schedule:Rj}=vte(queueMicrotask,!1),yu={x:!1,y:!1};function Wte(){return yu.x||yu.y}function VAe(e){return e==="x"||e==="y"?yu[e]?null:(yu[e]=!0,()=>{yu[e]=!1}):yu.x||yu.y?null:(yu.x=yu.y=!0,()=>{yu.x=yu.y=!1})}function zte(e,t){const n=zAe(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function vW(e){return!(e.pointerType==="touch"||Wte())}function GAe(e,t,n={}){const[r,a,i]=zte(e,n),o=l=>{if(!vW(l))return;const{target:u}=l,d=t(u,l);if(typeof d!="function"||!u)return;const f=g=>{vW(g)&&(d(g),u.removeEventListener("pointerleave",f))};u.addEventListener("pointerleave",f,a)};return r.forEach(l=>{l.addEventListener("pointerenter",o,a)}),i}const qte=(e,t)=>t?e===t?!0:qte(e,t.parentElement):!1,Pj=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,YAe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function KAe(e){return YAe.has(e.tagName)||e.tabIndex!==-1}const Gk=new WeakSet;function yW(e){return t=>{t.key==="Enter"&&e(t)}}function hA(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const XAe=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=yW(()=>{if(Gk.has(n))return;hA(n,"down");const a=yW(()=>{hA(n,"up")}),i=()=>hA(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function bW(e){return Pj(e)&&!Wte()}function QAe(e,t,n={}){const[r,a,i]=zte(e,n),o=l=>{const u=l.currentTarget;if(!bW(l))return;Gk.add(u);const d=t(u,l),f=(h,v)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",y),Gk.has(u)&&Gk.delete(u),bW(h)&&typeof d=="function"&&d(h,{success:v})},g=h=>{f(h,u===window||u===document||n.useGlobalTarget||qte(u,h.target))},y=h=>{f(h,!1)};window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",y,a)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,a),xj(l)&&(l.addEventListener("focus",d=>XAe(d,a)),!KAe(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function Hte(e){return ate(e)&&"ownerSVGElement"in e}function JAe(e){return Hte(e)&&e.tagName==="svg"}const to=e=>!!(e&&e.getVelocity),ZAe=[...Fte,Ga,uh],eNe=e=>ZAe.find(Lte(e)),Aj=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class tNe extends R.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,a=xj(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=a-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function nNe({children:e,isPresent:t,anchorX:n}){const r=R.useId(),a=R.useRef(null),i=R.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=R.useContext(Aj);return R.useInsertionEffect(()=>{const{width:l,height:u,top:d,left:f,right:g}=i.current;if(t||!a.current||!l||!u)return;const y=n==="left"?`left: ${f}`:`right: ${g}`;a.current.dataset.motionPopId=r;const h=document.createElement("style");return o&&(h.nonce=o),document.head.appendChild(h),h.sheet&&h.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${l}px !important; @@ -445,30 +445,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${y}px !important; top: ${d}px !important; } - `),()=>{document.head.contains(h)&&document.head.removeChild(h)}},[t]),w.jsx(WAe,{isPresent:t,childRef:a,sizeRef:i,children:R.cloneElement(e,{ref:a})})}const qAe=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:i,mode:o,anchorX:l})=>{const u=YF(HAe),d=R.useId();let f=!0,g=R.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:a,onExitComplete:y=>{u.set(y,!0);for(const h of u.values())if(!h)return;r&&r()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[n,u,r]);return i&&f&&(g={...g}),R.useMemo(()=>{u.forEach((y,h)=>u.set(h,!1))},[n]),R.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=w.jsx(zAe,{isPresent:n,anchorX:l,children:e})),w.jsx(E_.Provider,{value:g,children:e})};function HAe(){return new Map}function Mte(e=!0){const t=R.useContext(E_);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,i=R.useId();R.useEffect(()=>{if(e)return a(i)},[e]);const o=R.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const ak=e=>e.key||"";function sW(e){const t=[];return R.Children.forEach(e,n=>{R.isValidElement(n)&&t.push(n)}),t}const VAe=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:i="sync",propagate:o=!1,anchorX:l="left"})=>{const[u,d]=Mte(o),f=R.useMemo(()=>sW(e),[e]),g=o&&!u?[]:f.map(ak),y=R.useRef(!0),h=R.useRef(f),v=YF(()=>new Map),[E,T]=R.useState(f),[C,k]=R.useState(f);zee(()=>{y.current=!1,h.current=f;for(let P=0;P{const N=ak(P),I=o&&!u?!1:f===C||g.includes(N),L=()=>{if(v.has(N))v.set(N,!0);else return;let j=!0;v.forEach(z=>{z||(j=!1)}),j&&(A==null||A(),k(h.current),o&&(d==null||d()),r&&r())};return w.jsx(qAe,{isPresent:I,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:i,onExitComplete:I?void 0:L,anchorX:l,children:P},N)})})},Ite=R.createContext({strict:!1}),lW={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},a0={};for(const e in lW)a0[e]={isEnabled:t=>lW[e].some(n=>!!t[n])};function GAe(e){for(const t in e)a0[t]={...a0[t],...e[t]}}const YAe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Rx(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||YAe.has(e)}let Dte=e=>!Rx(e);function KAe(e){typeof e=="function"&&(Dte=t=>t.startsWith("on")?!Rx(t):e(t))}try{KAe(require("@emotion/is-prop-valid").default)}catch{}function XAe(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(Dte(a)||n===!0&&Rx(a)||!t&&!Rx(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function QAe(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const T_=R.createContext({});function C_(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function QS(e){return typeof e=="string"||Array.isArray(e)}const bj=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wj=["initial",...bj];function k_(e){return C_(e.animate)||wj.some(t=>QS(e[t]))}function $te(e){return!!(k_(e)||e.variants)}function JAe(e,t){if(k_(e)){const{initial:n,animate:r}=e;return{initial:n===!1||QS(n)?n:void 0,animate:QS(r)?r:void 0}}return e.inherit!==!1?t:{}}function ZAe(e){const{initial:t,animate:n}=JAe(e,R.useContext(T_));return R.useMemo(()=>({initial:t,animate:n}),[uW(t),uW(n)])}function uW(e){return Array.isArray(e)?e.join(" "):e}const eNe=Symbol.for("motionComponentSymbol");function Ob(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function tNe(e,t,n){return R.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ob(n)&&(n.current=r))},[t])}const Sj=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),nNe="framerAppearId",Lte="data-"+Sj(nNe),Fte=R.createContext({});function rNe(e,t,n,r,a){var E,T;const{visualElement:i}=R.useContext(T_),o=R.useContext(Ite),l=R.useContext(E_),u=R.useContext(yj).reducedMotion,d=R.useRef(null);r=r||o.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:i,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,g=R.useContext(Fte);f&&!f.projection&&a&&(f.type==="html"||f.type==="svg")&&aNe(d.current,n,a,g);const y=R.useRef(!1);R.useInsertionEffect(()=>{f&&y.current&&f.update(n,l)});const h=n[Lte],v=R.useRef(!!h&&!((E=window.MotionHandoffIsComplete)!=null&&E.call(window,h))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,h)));return zee(()=>{f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),gj.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())}),R.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,h)}),v.current=!1))}),f}function aNe(e,t,n,r){const{layoutId:a,layout:i,drag:o,dragConstraints:l,layoutScroll:u,layoutRoot:d,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:jte(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!o||l&&Ob(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:u,layoutRoot:d})}function jte(e){if(e)return e.options.allowProjection!==!1?e.projection:jte(e.parent)}function iNe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){e&&GAe(e);function i(l,u){let d;const f={...R.useContext(yj),...l,layoutId:oNe(l)},{isStatic:g}=f,y=ZAe(l),h=r(l,g);if(!g&&KF){sNe();const v=lNe(f);d=v.MeasureLayout,y.visualElement=rNe(a,h,f,t,v.ProjectionNode)}return w.jsxs(T_.Provider,{value:y,children:[d&&y.visualElement?w.jsx(d,{visualElement:y.visualElement,...f}):null,n(a,l,tNe(h,y.visualElement,u),h,g,y.visualElement)]})}i.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const o=R.forwardRef(i);return o[eNe]=a,o}function oNe({layoutId:e}){const t=R.useContext(GF).id;return t&&e!==void 0?t+"-"+e:e}function sNe(e,t){R.useContext(Ite).strict}function lNe(e){const{drag:t,layout:n}=a0;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const JS={};function uNe(e){for(const t in e)JS[t]=e[t],rj(t)&&(JS[t].isCSSVariable=!0)}function Ute(e,{layout:t,layoutId:n}){return w0.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!JS[e]||e==="opacity")}const cNe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dNe=b0.length;function fNe(e,t,n){let r="",a=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}});function Bte(e,t,n){for(const r in t)!eo(t[r])&&!Ute(r,n)&&(e[r]=t[r])}function pNe({transformTemplate:e},t){return R.useMemo(()=>{const n=Tj();return Ej(n,t,e),Object.assign({},n.vars,n.style)},[t])}function hNe(e,t){const n=e.style||{},r={};return Bte(r,n,e),Object.assign(r,pNe(e,t)),r}function mNe(e,t){const n={},r=hNe(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const gNe={offset:"stroke-dashoffset",array:"stroke-dasharray"},vNe={offset:"strokeDashoffset",array:"strokeDasharray"};function yNe(e,t,n=1,r=0,a=!0){e.pathLength=1;const i=a?gNe:vNe;e[i.offset]=mn.transform(-r);const o=mn.transform(t),l=mn.transform(n);e[i.array]=`${o} ${l}`}function Wte(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:i=1,pathOffset:o=0,...l},u,d,f){if(Ej(e,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y}=e;g.transform&&(y.transform=g.transform,delete g.transform),(y.transform||g.transformOrigin)&&(y.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),y.transform&&(y.transformBox=(f==null?void 0:f.transformBox)??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&yNe(g,a,i,o,!1)}const zte=()=>({...Tj(),attrs:{}}),qte=e=>typeof e=="string"&&e.toLowerCase()==="svg";function bNe(e,t,n,r){const a=R.useMemo(()=>{const i=zte();return Wte(i,t,qte(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Bte(i,e.style,e),a.style={...i,...a.style}}return a}const wNe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Cj(e){return typeof e!="string"||e.includes("-")?!1:!!(wNe.indexOf(e)>-1||/[A-Z]/u.test(e))}function SNe(e=!1){return(n,r,a,{latestValues:i},o)=>{const u=(Cj(n)?bNe:mNe)(r,i,o,n),d=XAe(r,typeof n=="string",e),f=n!==R.Fragment?{...d,...u,ref:a}:{},{children:g}=r,y=R.useMemo(()=>eo(g)?g.get():g,[g]);return R.createElement(n,{...f,children:y})}}function cW(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function kj(e,t,n,r){if(typeof t=="function"){const[a,i]=cW(r);t=t(n!==void 0?n:e.custom,a,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,i]=cW(r);t=t(n!==void 0?n:e.custom,a,i)}return t}function Lk(e){return eo(e)?e.get():e}function ENe({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:TNe(n,r,a,e),renderState:t()}}const Hte=e=>(t,n)=>{const r=R.useContext(T_),a=R.useContext(E_),i=()=>ENe(e,t,r,a);return n?i():YF(i)};function TNe(e,t,n,r){const a={},i=r(e,{});for(const y in i)a[y]=Lk(i[y]);let{initial:o,animate:l}=e;const u=k_(e),d=$te(e);t&&d&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let f=n?n.initial===!1:!1;f=f||o===!1;const g=f?l:o;if(g&&typeof g!="boolean"&&!C_(g)){const y=Array.isArray(g)?g:[g];for(let h=0;hArray.isArray(e);function _Ne(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,r0(n))}function ONe(e){return a3(e)?e[e.length-1]||0:e}function RNe(e,t){const n=ZS(e,t);let{transitionEnd:r={},transition:a={},...i}=n||{};i={...i,...r};for(const o in i){const l=ONe(i[o]);_Ne(e,o,l)}}function PNe(e){return!!(eo(e)&&e.add)}function i3(e,t){const n=e.getValue("willChange");if(PNe(n))return n.add(t);if(!n&&Bd.WillChange){const r=new Bd.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Gte(e){return e.props[Lte]}const ANe=e=>e!==null;function NNe(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(ANe),i=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[i]}const MNe={type:"spring",stiffness:500,damping:25,restSpeed:10},INe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),DNe={type:"keyframes",duration:.8},$Ne={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},LNe=(e,{keyframes:t})=>t.length>2?DNe:w0.has(e)?e.startsWith("scale")?INe(t[1]):MNe:$Ne;function FNe({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:i,repeatType:o,repeatDelay:l,from:u,elapsed:d,...f}){return!!Object.keys(f).length}const _j=(e,t,n,r={},a,i)=>o=>{const l=hj(r,e)||{},u=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ec(u);const f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:y=>{t.set(y),l.onUpdate&&l.onUpdate(y)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:a};FNe(l)||Object.assign(f,LNe(e,f)),f.duration&&(f.duration=Ec(f.duration)),f.repeatDelay&&(f.repeatDelay=Ec(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let g=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(g=!0)),(Bd.instantAnimations||Bd.skipAnimations)&&(g=!0,f.duration=0,f.delay=0),f.allowFlatten=!l.type&&!l.ease,g&&!i&&t.get()!==void 0){const y=NNe(f.keyframes,l);if(y!==void 0){pa.update(()=>{f.onUpdate(y),f.onComplete()});return}}return l.isSync?new dj(f):new vAe(f)};function jNe({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Yte(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(i=r);const u=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const f in l){const g=e.getValue(f,e.latestValues[f]??null),y=l[f];if(y===void 0||d&&jNe(d,f))continue;const h={delay:n,...hj(i||{},f)},v=g.get();if(v!==void 0&&!g.isAnimating&&!Array.isArray(y)&&y===v&&!h.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const C=Gte(e);if(C){const k=window.MotionHandoffAnimation(C,f,pa);k!==null&&(h.startTime=k,E=!0)}}i3(e,f),g.start(_j(f,g,y,e.shouldReduceMotion&&Tte.has(f)?{type:!1}:h,e,E));const T=g.animation;T&&u.push(T)}return o&&Promise.all(u).then(()=>{pa.update(()=>{o&&RNe(e,o)})}),u}function o3(e,t,n={}){var u;const r=ZS(e,t,n.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const i=r?()=>Promise.all(Yte(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:g,staggerDirection:y}=a;return UNe(e,t,f+d,g,y,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[d,f]=l==="beforeChildren"?[i,o]:[o,i];return d().then(()=>f())}else return Promise.all([i(),o(n.delay)])}function UNe(e,t,n=0,r=0,a=1,i){const o=[],l=(e.variantChildren.size-1)*r,u=a===1?(d=0)=>d*r:(d=0)=>l-d*r;return Array.from(e.variantChildren).sort(BNe).forEach((d,f)=>{d.notify("AnimationStart",t),o.push(o3(d,t,{...i,delay:n+u(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function BNe(e,t){return e.sortNodePosition(t)}function WNe(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(i=>o3(e,i,n));r=Promise.all(a)}else if(typeof t=="string")r=o3(e,t,n);else{const a=typeof t=="function"?ZS(e,t,n.custom):t;r=Promise.all(Yte(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Kte(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>WNe(e,n,r)))}function GNe(e){let t=VNe(e),n=dW(),r=!0;const a=u=>(d,f)=>{var y;const g=ZS(e,f,u==="exit"?(y=e.presenceContext)==null?void 0:y.custom:void 0);if(g){const{transition:h,transitionEnd:v,...E}=g;d={...d,...E,...v}}return d};function i(u){t=u(e)}function o(u){const{props:d}=e,f=Xte(e.parent)||{},g=[],y=new Set;let h={},v=1/0;for(let T=0;Tv&&A,j=!1;const z=Array.isArray(_)?_:[_];let Q=z.reduce(a(C),{});P===!1&&(Q={});const{prevResolvedValues:le={}}=k,re={...le,...Q},ge=G=>{L=!0,y.has(G)&&(j=!0,y.delete(G)),k.needsAnimating[G]=!0;const q=e.getValue(G);q&&(q.liveStyle=!1)};for(const G in re){const q=Q[G],ce=le[G];if(h.hasOwnProperty(G))continue;let H=!1;a3(q)&&a3(ce)?H=!Kte(q,ce):H=q!==ce,H?q!=null?ge(G):y.add(G):q!==void 0&&y.has(G)?ge(G):k.protectedKeys[G]=!0}k.prevProp=_,k.prevResolvedValues=Q,k.isActive&&(h={...h,...Q}),r&&e.blockInitialAnimation&&(L=!1),L&&(!(N&&I)||j)&&g.push(...z.map(G=>({animation:G,options:{type:C}})))}if(y.size){const T={};if(typeof d.initial!="boolean"){const C=ZS(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(T.transition=C.transition)}y.forEach(C=>{const k=e.getBaseTarget(C),_=e.getValue(C);_&&(_.liveStyle=!0),T[C]=k??null}),g.push({animation:T})}let E=!!g.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(g):Promise.resolve()}function l(u,d){var g;if(n[u].isActive===d)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(y=>{var h;return(h=y.animationState)==null?void 0:h.setActive(u,d)}),n[u].isActive=d;const f=o(u);for(const y in n)n[y].protectedKeys={};return f}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=dW(),r=!0}}}function YNe(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Kte(t,e):!1}function Dm(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dW(){return{animate:Dm(!0),whileInView:Dm(),whileHover:Dm(),whileTap:Dm(),whileDrag:Dm(),whileFocus:Dm(),exit:Dm()}}class vh{constructor(t){this.isMounted=!1,this.node=t}update(){}}class KNe extends vh{constructor(t){super(t),t.animationState||(t.animationState=GNe(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();C_(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let XNe=0;class QNe extends vh{constructor(){super(...arguments),this.id=XNe++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const JNe={animation:{Feature:KNe},exit:{Feature:QNe}};function eE(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function LE(e){return{point:{x:e.pageX,y:e.pageY}}}const ZNe=e=>t=>vj(t)&&e(t,LE(t));function wS(e,t,n,r){return eE(e,t,ZNe(n),r)}function Qte({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function e2e({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function t2e(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Jte=1e-4,n2e=1-Jte,r2e=1+Jte,Zte=.01,a2e=0-Zte,i2e=0+Zte;function Do(e){return e.max-e.min}function o2e(e,t,n){return Math.abs(e-t)<=n}function fW(e,t,n,r=.5){e.origin=r,e.originPoint=da(t.min,t.max,e.origin),e.scale=Do(n)/Do(t),e.translate=da(n.min,n.max,e.origin)-e.originPoint,(e.scale>=n2e&&e.scale<=r2e||isNaN(e.scale))&&(e.scale=1),(e.translate>=a2e&&e.translate<=i2e||isNaN(e.translate))&&(e.translate=0)}function SS(e,t,n,r){fW(e.x,t.x,n.x,r?r.originX:void 0),fW(e.y,t.y,n.y,r?r.originY:void 0)}function pW(e,t,n){e.min=n.min+t.min,e.max=e.min+Do(t)}function s2e(e,t,n){pW(e.x,t.x,n.x),pW(e.y,t.y,n.y)}function hW(e,t,n){e.min=t.min-n.min,e.max=e.min+Do(t)}function ES(e,t,n){hW(e.x,t.x,n.x),hW(e.y,t.y,n.y)}const mW=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rb=()=>({x:mW(),y:mW()}),gW=()=>({min:0,max:0}),$a=()=>({x:gW(),y:gW()});function gl(e){return[e("x"),e("y")]}function aA(e){return e===void 0||e===1}function s3({scale:e,scaleX:t,scaleY:n}){return!aA(e)||!aA(t)||!aA(n)}function ev(e){return s3(e)||ene(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ene(e){return vW(e.x)||vW(e.y)}function vW(e){return e&&e!=="0%"}function Px(e,t,n){const r=e-n,a=t*r;return n+a}function yW(e,t,n,r,a){return a!==void 0&&(e=Px(e,a,r)),Px(e,n,r)+t}function l3(e,t=0,n=1,r,a){e.min=yW(e.min,t,n,r,a),e.max=yW(e.max,t,n,r,a)}function tne(e,{x:t,y:n}){l3(e.x,t.translate,t.scale,t.originPoint),l3(e.y,n.translate,n.scale,n.originPoint)}const bW=.999999999999,wW=1.0000000000001;function l2e(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let i,o;for(let l=0;lbW&&(t.x=1),t.ybW&&(t.y=1)}function Pb(e,t){e.min=e.min+t,e.max=e.max+t}function SW(e,t,n,r,a=.5){const i=da(e.min,e.max,a);l3(e,t,n,i,r)}function Ab(e,t){SW(e.x,t.x,t.scaleX,t.scale,t.originX),SW(e.y,t.y,t.scaleY,t.scale,t.originY)}function nne(e,t){return Qte(t2e(e.getBoundingClientRect(),t))}function u2e(e,t,n){const r=nne(e,n),{scroll:a}=t;return a&&(Pb(r.x,a.offset.x),Pb(r.y,a.offset.y)),r}const rne=({current:e})=>e?e.ownerDocument.defaultView:null,EW=(e,t)=>Math.abs(e-t);function c2e(e,t){const n=EW(e.x,t.x),r=EW(e.y,t.y);return Math.sqrt(n**2+r**2)}class ane{constructor(t,n,{transformPagePoint:r,contextWindow:a,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=oA(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,h=c2e(g.offset,{x:0,y:0})>=3;if(!y&&!h)return;const{point:v}=g,{timestamp:E}=Fi;this.history.push({...v,timestamp:E});const{onStart:T,onMove:C}=this.handlers;y||(T&&T(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,g)},this.handlePointerMove=(g,y)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=iA(y,this.transformPagePoint),pa.update(this.updatePoint,!0)},this.handlePointerUp=(g,y)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=oA(g.type==="pointercancel"?this.lastMoveEventInfo:iA(y,this.transformPagePoint),this.history);this.startEvent&&h&&h(g,T),v&&v(g,T)},!vj(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const o=LE(t),l=iA(o,this.transformPagePoint),{point:u}=l,{timestamp:d}=Fi;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,oA(l,this.history)),this.removeListeners=IE(wS(this.contextWindow,"pointermove",this.handlePointerMove),wS(this.contextWindow,"pointerup",this.handlePointerUp),wS(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),oh(this.updatePoint)}}function iA(e,t){return t?{point:t(e.point)}:e}function TW(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oA({point:e},t){return{point:e,delta:TW(e,ine(t)),offset:TW(e,d2e(t)),velocity:f2e(t,.1)}}function d2e(e){return e[0]}function ine(e){return e[e.length-1]}function f2e(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=ine(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Ec(t)));)n--;if(!r)return{x:0,y:0};const i=Tc(a.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(a.x-r.x)/i,y:(a.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function p2e(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?da(n,e,r.max):Math.min(e,n)),e}function CW(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function h2e(e,{top:t,left:n,bottom:r,right:a}){return{x:CW(e.x,n,a),y:CW(e.y,t,r)}}function kW(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=YS(t.min,t.max-r,e.min):r>a&&(n=YS(e.min,e.max-a,t.min)),Ud(0,1,n)}function v2e(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const u3=.35;function y2e(e=u3){return e===!1?e=0:e===!0&&(e=u3),{x:xW(e,"left","right"),y:xW(e,"top","bottom")}}function xW(e,t,n){return{min:_W(e,t),max:_W(e,n)}}function _W(e,t){return typeof e=="number"?e:e[t]||0}const b2e=new WeakMap;class w2e{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$a(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=f=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(LE(f).point)},i=(f,g)=>{const{drag:y,dragPropagation:h,onDragStart:v}=this.getProps();if(y&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=MAe(y),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gl(T=>{let C=this.getAxisMotionValue(T).get()||0;if(Cc.test(C)){const{projection:k}=this.visualElement;if(k&&k.layout){const _=k.layout.layoutBox[T];_&&(C=Do(_)*(parseFloat(C)/100))}}this.originPoint[T]=C}),v&&pa.postRender(()=>v(f,g)),i3(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},o=(f,g)=>{const{dragPropagation:y,dragDirectionLock:h,onDirectionLock:v,onDrag:E}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:T}=g;if(h&&this.currentDirection===null){this.currentDirection=S2e(T),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",g.point,T),this.updateAxis("y",g.point,T),this.visualElement.render(),E&&E(f,g)},l=(f,g)=>this.stop(f,g),u=()=>gl(f=>{var g;return this.getAnimationState(f)==="paused"&&((g=this.getAxisMotionValue(f).animation)==null?void 0:g.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new ane(t,{onSessionStart:a,onStart:i,onMove:o,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:rne(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:i}=this.getProps();i&&pa.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!ik(t,a,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=p2e(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,a=this.constraints;t&&Ob(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=h2e(r.layoutBox,t):this.constraints=!1,this.elastic=y2e(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&gl(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=v2e(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ob(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=u2e(r,a.root,this.visualElement.getTransformPagePoint());let o=m2e(a.layout.layoutBox,i);if(n){const l=n(e2e(o));this.hasMutatedConstraints=!!l,l&&(o=Qte(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},d=gl(f=>{if(!ik(f,n,this.currentDirection))return;let g=u&&u[f]||{};o&&(g={min:0,max:0});const y=a?200:1e6,h=a?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:y,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...g};return this.startAxisValueAnimation(f,v)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return i3(this.visualElement,t),r.start(_j(t,r,0,n,this.visualElement,!1))}stopAnimation(){gl(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){gl(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){gl(n=>{const{drag:r}=this.getProps();if(!ik(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:o,max:l}=a.layout.layoutBox[n];i.set(t[n]-da(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ob(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};gl(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const u=l.get();a[o]=g2e({min:u,max:u},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),gl(o=>{if(!ik(o,t,null))return;const l=this.getAxisMotionValue(o),{min:u,max:d}=this.constraints[o];l.set(da(u,d,a[o]))})}addListeners(){if(!this.visualElement.current)return;b2e.set(this.visualElement,this);const t=this.visualElement.current,n=wS(t,"pointerdown",u=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Ob(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),pa.read(r);const o=eE(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(gl(f=>{const g=this.getAxisMotionValue(f);g&&(this.originPoint[f]+=u[f].translate,g.set(g.get()+u[f].translate))}),this.visualElement.render())}));return()=>{o(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:o=u3,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function ik(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function S2e(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class E2e extends vh{constructor(t){super(t),this.removeGroupControls=_l,this.removeListeners=_l,this.controls=new w2e(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_l}unmount(){this.removeGroupControls(),this.removeListeners()}}const OW=e=>(t,n)=>{e&&pa.postRender(()=>e(t,n))};class T2e extends vh{constructor(){super(...arguments),this.removePointerDownListener=_l}onPointerDown(t){this.session=new ane(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rne(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:OW(t),onStart:OW(n),onMove:r,onEnd:(i,o)=>{delete this.session,a&&pa.postRender(()=>a(i,o))}}}mount(){this.removePointerDownListener=wS(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Fk={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function RW(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const C1={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(mn.test(e))e=parseFloat(e);else return e;const n=RW(e,t.target.x),r=RW(e,t.target.y);return`${n}% ${r}%`}},C2e={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=sh.parse(e);if(a.length>5)return r;const i=sh.createTransformer(e),o=typeof a[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;a[0+o]/=l,a[1+o]/=u;const d=da(l,u,.5);return typeof a[2+o]=="number"&&(a[2+o]/=d),typeof a[3+o]=="number"&&(a[3+o]/=d),i(a)}};class k2e extends R.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:i}=t;uNe(x2e),i&&(n.group&&n.group.add(i),r&&r.register&&a&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Fk.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,a||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||pa.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gj.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function one(e){const[t,n]=Mte(),r=R.useContext(GF);return w.jsx(k2e,{...e,layoutGroup:r,switchLayoutGroup:R.useContext(Fte),isPresent:t,safeToRemove:n})}const x2e={borderRadius:{...C1,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:C1,borderTopRightRadius:C1,borderBottomLeftRadius:C1,borderBottomRightRadius:C1,boxShadow:C2e};function _2e(e,t,n){const r=eo(e)?e:r0(e);return r.start(_j("",r,t,n)),r.animation}const O2e=(e,t)=>e.depth-t.depth;class R2e{constructor(){this.children=[],this.isDirty=!1}add(t){XF(this.children,t),this.isDirty=!0}remove(t){QF(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(O2e),this.isDirty=!1,this.children.forEach(t)}}function P2e(e,t){const n=is.now(),r=({timestamp:a})=>{const i=a-n;i>=t&&(oh(r),e(i-t))};return pa.setup(r,!0),()=>oh(r)}const sne=["TopLeft","TopRight","BottomLeft","BottomRight"],A2e=sne.length,PW=e=>typeof e=="string"?parseFloat(e):e,AW=e=>typeof e=="number"||mn.test(e);function N2e(e,t,n,r,a,i){a?(e.opacity=da(0,n.opacity??1,M2e(r)),e.opacityExit=da(t.opacity??1,0,I2e(r))):i&&(e.opacity=da(t.opacity??1,n.opacity??1,r));for(let o=0;ort?1:n(YS(e,t,r))}function MW(e,t){e.min=t.min,e.max=t.max}function hl(e,t){MW(e.x,t.x),MW(e.y,t.y)}function IW(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function DW(e,t,n,r,a){return e-=t,e=Px(e,1/n,r),a!==void 0&&(e=Px(e,1/a,r)),e}function D2e(e,t=0,n=1,r=.5,a,i=e,o=e){if(Cc.test(t)&&(t=parseFloat(t),t=da(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=da(i.min,i.max,r);e===i&&(l-=t),e.min=DW(e.min,t,n,l,a),e.max=DW(e.max,t,n,l,a)}function $W(e,t,[n,r,a],i,o){D2e(e,t[n],t[r],t[a],t.scale,i,o)}const $2e=["x","scaleX","originX"],L2e=["y","scaleY","originY"];function LW(e,t,n,r){$W(e.x,t,$2e,n?n.x:void 0,r?r.x:void 0),$W(e.y,t,L2e,n?n.y:void 0,r?r.y:void 0)}function FW(e){return e.translate===0&&e.scale===1}function une(e){return FW(e.x)&&FW(e.y)}function jW(e,t){return e.min===t.min&&e.max===t.max}function F2e(e,t){return jW(e.x,t.x)&&jW(e.y,t.y)}function UW(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function cne(e,t){return UW(e.x,t.x)&&UW(e.y,t.y)}function BW(e){return Do(e.x)/Do(e.y)}function WW(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class j2e{constructor(){this.members=[]}add(t){XF(this.members,t),t.scheduleRender()}remove(t){if(QF(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function U2e(e,t,n){let r="";const a=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((a||i||o)&&(r=`translate3d(${a}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:g,rotateY:y,skewX:h,skewY:v}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),g&&(r+=`rotateX(${g}deg) `),y&&(r+=`rotateY(${y}deg) `),h&&(r+=`skewX(${h}deg) `),v&&(r+=`skewY(${v}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const sA=["","X","Y","Z"],B2e={visibility:"hidden"},W2e=1e3;let z2e=0;function lA(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function dne(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Gte(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",pa,!(a||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&dne(r)}function fne({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(o={},l=t==null?void 0:t()){this.id=z2e++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(V2e),this.nodes.forEach(X2e),this.nodes.forEach(Q2e),this.nodes.forEach(G2e)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=P2e(g,250),Fk.hasAnimatedSinceResize&&(Fk.hasAnimatedSinceResize=!1,this.nodes.forEach(HW))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||nMe,{onLayoutAnimationStart:E,onLayoutAnimationComplete:T}=d.getProps(),C=!this.targetLayout||!cne(this.targetLayout,h),k=!g&&y;if(this.options.layoutRoot||this.resumeFrom||k||g&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const _={...hj(v,"layout"),onPlay:E,onComplete:T};(d.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_),this.setAnimationOrigin(f,k)}else g||HW(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),oh(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(J2e),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&dne(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Do(this.snapshot.measuredBox.x)&&!Do(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const P=A/1e3;VW(g.x,o.x,P),VW(g.y,o.y,P),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ES(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),eMe(this.relativeTarget,this.relativeTargetOrigin,y,P),_&&F2e(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=$a()),hl(_,this.relativeTarget)),E&&(this.animationValues=f,N2e(f,d,this.latestValues,P,k,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var l,u,d;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(d=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||d.stop(),this.pendingAnimation&&(oh(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=pa.update(()=>{Fk.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=r0(0)),this.currentAnimation=_2e(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),o.onUpdate&&o.onUpdate(f)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(W2e),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:u,layout:d,latestValues:f}=o;if(!(!l||!u||!d)){if(this!==o&&this.layout&&d&&pne(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||$a();const g=Do(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+g;const y=Do(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+y}hl(l,u),Ab(l,f),SS(this.projectionDeltaWithTransform,this.layoutCorrected,l,f)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new j2e),this.sharedNodes.get(o).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var l;const{layoutId:o}=this.options;return o?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:o}=this.options;return o?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const d={};u.z&&lA("z",o,d,this.animationValues);for(let f=0;f{var l;return(l=o.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(zW),this.root.sharedNodes.clear()}}}function q2e(e){e.updateLayout()}function H2e(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;i==="size"?gl(g=>{const y=o?t.measuredBox[g]:t.layoutBox[g],h=Do(y);y.min=r[g].min,y.max=y.min+h}):pne(i,t.layoutBox,r)&&gl(g=>{const y=o?t.measuredBox[g]:t.layoutBox[g],h=Do(r[g]);y.max=y.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+h)});const l=Rb();SS(l,r,t.layoutBox);const u=Rb();o?SS(u,e.applyTransform(a,!0),t.measuredBox):SS(u,r,t.layoutBox);const d=!une(l);let f=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:y,layout:h}=g;if(y&&h){const v=$a();ES(v,t.layoutBox,y.layoutBox);const E=$a();ES(E,r,h.layoutBox),cne(v,E)||(f=!0),g.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=v,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:u,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function V2e(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function G2e(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Y2e(e){e.clearSnapshot()}function zW(e){e.clearMeasurements()}function qW(e){e.isLayoutDirty=!1}function K2e(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function HW(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function X2e(e){e.resolveTargetDelta()}function Q2e(e){e.calcProjection()}function J2e(e){e.resetSkewAndRotation()}function Z2e(e){e.removeLeadSnapshot()}function VW(e,t,n){e.translate=da(t.translate,0,n),e.scale=da(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function GW(e,t,n,r){e.min=da(t.min,n.min,r),e.max=da(t.max,n.max,r)}function eMe(e,t,n,r){GW(e.x,t.x,n.x,r),GW(e.y,t.y,n.y,r)}function tMe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const nMe={duration:.45,ease:[.4,0,.1,1]},YW=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),KW=YW("applewebkit/")&&!YW("chrome/")?Math.round:_l;function XW(e){e.min=KW(e.min),e.max=KW(e.max)}function rMe(e){XW(e.x),XW(e.y)}function pne(e,t,n){return e==="position"||e==="preserve-aspect"&&!o2e(BW(t),BW(n),.2)}function aMe(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const iMe=fne({attachResizeListener:(e,t)=>eE(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),uA={current:void 0},hne=fne({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!uA.current){const e=new iMe({});e.mount(window),e.setOptions({layoutScroll:!0}),uA.current=e}return uA.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),oMe={pan:{Feature:T2e},drag:{Feature:E2e,ProjectionNode:hne,MeasureLayout:one}};function QW(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,i=r[a];i&&pa.postRender(()=>i(t,LE(t)))}class sMe extends vh{mount(){const{current:t}=this.node;t&&(this.unmount=IAe(t,(n,r)=>(QW(this.node,r,"Start"),a=>QW(this.node,a,"End"))))}unmount(){}}class lMe extends vh{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=IE(eE(this.node.current,"focus",()=>this.onFocus()),eE(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function JW(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),i=r[a];i&&pa.postRender(()=>i(t,LE(t)))}class uMe extends vh{mount(){const{current:t}=this.node;t&&(this.unmount=FAe(t,(n,r)=>(JW(this.node,r,"Start"),(a,{success:i})=>JW(this.node,a,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const c3=new WeakMap,cA=new WeakMap,cMe=e=>{const t=c3.get(e.target);t&&t(e)},dMe=e=>{e.forEach(cMe)};function fMe({root:e,...t}){const n=e||document;cA.has(n)||cA.set(n,{});const r=cA.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(dMe,{root:e,...t})),r[a]}function pMe(e,t,n){const r=fMe(t);return c3.set(e,n),r.observe(e),()=>{c3.delete(e),r.unobserve(e)}}const hMe={some:0,all:1};class mMe extends vh{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:hMe[a]},l=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:g}=this.node.getProps(),y=d?f:g;y&&y(u)};return pMe(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(gMe(t,n))&&this.startObserver()}unmount(){}}function gMe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const vMe={inView:{Feature:mMe},tap:{Feature:uMe},focus:{Feature:lMe},hover:{Feature:sMe}},yMe={layout:{ProjectionNode:hne,MeasureLayout:one}},d3={current:null},mne={current:!1};function bMe(){if(mne.current=!0,!!KF)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>d3.current=e.matches;e.addListener(t),t()}else d3.current=!1}const wMe=new WeakMap;function SMe(e,t,n){for(const r in t){const a=t[r],i=n[r];if(eo(a))e.addValue(r,a);else if(eo(i))e.addValue(r,r0(a,{owner:e}));else if(i!==a)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(a):o.hasAnimated||o.set(a)}else{const o=e.getStaticValue(r);e.addValue(r,r0(o!==void 0?o:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ZW=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class EMe{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:i,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=fj,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=is.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),mne.current||bMe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:d3.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),oh(this.notifyUpdate),oh(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=w0.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&pa.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in a0){const n=a0[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$a()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=r0(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(qee(r)||Vee(r))?r=parseFloat(r):!BAe(r)&&sh.test(n)&&(r=_te(t,n)),this.setBaseTarget(t,eo(r)?r.get():r)),eo(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=kj(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!eo(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ej),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class gne extends EMe{constructor(){super(...arguments),this.KeyframeResolver=RAe}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;eo(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function vne(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}function TMe(e){return window.getComputedStyle(e)}class CMe extends gne{constructor(){super(...arguments),this.type="html",this.renderInstance=vne}readValueFromInstance(t,n){var r;if(w0.has(n))return(r=this.projection)!=null&&r.isProjecting?JL(n):YPe(t,n);{const a=TMe(t),i=(rj(n)?a.getPropertyValue(n):a[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return nne(t,n)}build(t,n,r){Ej(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return xj(t,n,r)}}const yne=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function kMe(e,t,n,r){vne(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(yne.has(a)?a:Sj(a),t.attrs[a])}class xMe extends gne{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$a}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(w0.has(n)){const r=xte(n);return r&&r.default||0}return n=yne.has(n)?n:Sj(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Vte(t,n,r)}build(t,n,r){Wte(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){kMe(t,n,r,a)}mount(t){this.isSVGTag=qte(t.tagName),super.mount(t)}}const _Me=(e,t)=>Cj(e)?new xMe(t):new CMe(t,{allowProjection:e!==R.Fragment}),OMe=xNe({...JNe,...vMe,...oMe,...yMe},_Me),RMe=QAe(OMe),PMe={initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"100%",opacity:0}};function Oj({children:e}){var r;const t=Xd();return((r=t.state)==null?void 0:r.animated)?w.jsx(VAe,{mode:"wait",children:w.jsx(RMe.div,{variants:PMe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.15},style:{width:"100%"},children:e},t.pathname)}):w.jsx(w.Fragment,{children:e})}function AMe(){return w.jsx(mt,{path:"",children:w.jsx(mt,{element:w.jsx(Oj,{children:w.jsx(HRe,{})}),path:"dashboard"})})}const S0=({errors:e,error:t})=>{if(!t&&!e)return null;let n={};t&&t.errors?n=t.errors:e&&(n=e);const r=Object.keys(n);return w.jsxs("div",{style:{minHeight:"30px"},children:[(e==null?void 0:e.form)&&w.jsx("div",{className:"with-fade-in",style:{color:"red"},children:e.form}),n.length&&w.jsxs("div",{children:[((t==null?void 0:t.title)||(t==null?void 0:t.message))&&w.jsx("span",{children:(t==null?void 0:t.title)||(t==null?void 0:t.message)}),r.map(a=>w.jsx("div",{children:w.jsxs("span",{children:["• ",n[a]]})},a))]})]})},NMe={remoteTitle:"Remote service",grpcMethod:"Over grpc",hostAddress:"Host address",httpMethod:"Over http",interfaceLang:{description:"Here you can change your software interface language settings",title:"Language & Region"},port:"Port",remoteDescription:"Remote service, is the place that all data, logics, and services are installed there. It could be cloud, or locally. Only advanced users, changing it to wrong address might cause inaccessibility.",richTextEditor:{description:"Manage how you want to edit textual content in the app",title:"Text Editor"},theme:{title:"Theme",description:"Change the interface theme color"},accessibility:{description:"Handle the accessibility settings",title:"Accessibility"},debugSettings:{description:"See the debug information of the app, for developers or help desks",title:"Debug Settings"}},MMe={interfaceLang:{description:"Tutaj możesz zmienić ustawienia języka interfejsu oprogramowania",title:"Język i Region"},port:"Port",remoteDescription:"Usługa zdalna, to miejsce, w którym zainstalowane są wszystkie dane, logiki i usługi. Może to być chmura lub lokalnie. Tylko zaawansowani użytkownicy, zmieniając go na błędny adres, mogą spowodować niedostępność.",theme:{description:"Zmień kolor motywu interfejsu",title:"Motyw"},grpcMethod:"Przez gRPC",httpMethod:"Przez HTTP",hostAddress:"Adres hosta",remoteTitle:"Usługa zdalna",richTextEditor:{description:"Zarządzaj sposobem edycji treści tekstowej w aplikacji",title:"Edytor tekstu"},accessibility:{description:"Obsługa ustawień dostępności",title:"Dostępność"},debugSettings:{description:"Wyświetl informacje debugowania aplikacji, dla programistów lub biur pomocy",title:"Ustawienia debugowania"}},IMe={accessibility:{description:"مدیریت تنظیمات دسترسی",title:"دسترسی"},debugSettings:{description:"نمایش اطلاعات اشکال زدایی برنامه، برای توسعه‌دهندگان یا مراکز کمک",title:"تنظیمات اشکال زدایی"},httpMethod:"از طریق HTTP",interfaceLang:{description:"در اینجا می‌توانید تنظیمات زبان و منطقه رابط کاربری نرم‌افزار را تغییر دهید",title:"زبان و منطقه"},port:"پورت",remoteDescription:"سرویس از راه دور، مکانی است که تمام داده‌ها، منطق‌ها و خدمات در آن نصب می‌شوند. ممکن است این ابری یا محلی باشد. تنها کاربران پیشرفته با تغییر آن به آدرس نادرست، ممکن است بر ندسترسی برخورد کنند.",remoteTitle:"سرویس از راه دور",grpcMethod:"از طریق gRPC",hostAddress:"آدرس میزبان",richTextEditor:{title:"ویرایشگر متن",description:"مدیریت نحوه ویرایش محتوای متنی در برنامه"},theme:{description:"تغییر رنگ موضوع رابط کاربری",title:"موضوع"}},DMe={...NMe,$pl:MMe,$fa:IMe},$Me=(e,t)=>{e.preferredHand&&localStorage.setItem("app_preferredHand_address",e.preferredHand)},LMe=e=>[{label:e.accesibility.leftHand,value:"left"},{label:e.accesibility.rightHand,value:"right"}];function FMe({}){const{config:e,patchConfig:t}=R.useContext(dh),n=At(),r=Kt(DMe),{formik:a}=Dr({}),i=(l,u)=>{l.preferredHand&&(t({preferredHand:l.preferredHand}),$Me(l))},o=Bs(LMe(n));return R.useEffect(()=>{var l;(l=a.current)==null||l.setValues({preferredHand:e.preferredHand})},[e.remote]),w.jsxs(Io,{title:n.generalSettings.accessibility.title,children:[w.jsx("p",{children:r.accessibility.description}),w.jsx(ss,{innerRef:l=>{l&&(a.current=l)},initialValues:{},onSubmit:i,children:l=>w.jsxs("form",{className:"richtext-editor-config-form",onSubmit:u=>u.preventDefault(),children:[w.jsx(S0,{errors:l.errors}),w.jsx(ca,{formEffect:{form:l,field:"preferredHand",beforeSet(u){return u.value}},keyExtractor:u=>u.value,errorMessage:l.errors.preferredHand,querySource:o,label:n.settings.preferredHand,hint:n.settings.preferredHandHint}),w.jsx(Us,{disabled:l.values.preferredHand===""||l.values.preferredHand===e.preferredHand,label:n.settings.apply,onClick:()=>l.submitForm()})]})})]})}function jMe(){const e=js(),{query:t}=fF({queryClient:e,query:{},queryOptions:{cacheTime:0}});return w.jsxs(w.Fragment,{children:[w.jsx("h2",{children:"User Role Workspaces"}),w.jsx("p",{children:"Data:"}),w.jsx("pre",{children:JSON.stringify(t.data,null,2)}),w.jsx("p",{children:"Error:"}),w.jsx("pre",{children:JSON.stringify(t.error,null,2)})]})}function UMe(){const e=R.useContext(nt);return w.jsxs(w.Fragment,{children:[w.jsx("h2",{children:"Fireback context:"}),w.jsx("pre",{children:JSON.stringify(e,null,2)})]})}function BMe({}){const[e,t]=R.useState(!1);R.useContext(nt);const n=At();return w.jsxs(Io,{title:n.generalSettings.debugSettings.title,children:[w.jsx("p",{children:n.generalSettings.debugSettings.description}),w.jsx(vl,{value:e,label:n.debugInfo,onChange:()=>t(r=>!r)}),e&&w.jsxs(w.Fragment,{children:[w.jsx("pre",{}),w.jsx(kl,{href:"/lalaland",children:"Go to Lalaland"}),w.jsx(kl,{href:"/view3d",children:"View 3D"}),w.jsx(jMe,{}),w.jsx(UMe,{})]})]})}const bne=e=>[kr.SUPPORTED_LANGUAGES.includes("en")?{label:e.locale.englishWorldwide,value:"en"}:void 0,kr.SUPPORTED_LANGUAGES.includes("fa")?{label:e.locale.persianIran,value:"fa"}:void 0,kr.SUPPORTED_LANGUAGES.includes("ru")?{label:"Russian (Русский)",value:"ru"}:void 0,kr.SUPPORTED_LANGUAGES.includes("pl")?{label:e.locale.polishPoland,value:"pl"}:void 0,kr.SUPPORTED_LANGUAGES.includes("ua")?{label:"Ukrainain (українська)",value:"ua"}:void 0].filter(Boolean),WMe=(e,t)=>{e.interfaceLanguage&&localStorage.setItem("app_interfaceLanguage_address",e.interfaceLanguage)};function zMe({}){const{config:e,patchConfig:t}=R.useContext(dh),n=At(),{router:r,formik:a}=Dr({}),i=(u,d)=>{u.interfaceLanguage&&(t({interfaceLanguage:u.interfaceLanguage}),WMe(u),r.push(`/${u.interfaceLanguage}/settings`))};R.useEffect(()=>{var u;(u=a.current)==null||u.setValues({interfaceLanguage:e.interfaceLanguage})},[e.remote]);const o=bne(n),l=Bs(o);return w.jsxs(Io,{title:n.generalSettings.interfaceLang.title,children:[w.jsx("p",{children:n.generalSettings.interfaceLang.description}),w.jsx(ss,{innerRef:u=>{u&&(a.current=u)},initialValues:{},onSubmit:i,children:u=>w.jsxs("form",{className:"remote-service-form",onSubmit:d=>d.preventDefault(),children:[w.jsx(S0,{errors:u.errors}),w.jsx(ca,{keyExtractor:d=>d.value,formEffect:{form:u,field:"interfaceLanguage",beforeSet(d){return d.value}},errorMessage:u.errors.interfaceLanguage,querySource:l,label:n.settings.interfaceLanguage,hint:n.settings.interfaceLanguageHint}),w.jsx(Us,{disabled:u.values.interfaceLanguage===""||u.values.interfaceLanguage===e.interfaceLanguage,label:n.settings.apply,onClick:()=>u.submitForm()})]})})]})}class Rj extends wn{constructor(...t){super(...t),this.children=void 0,this.subscription=void 0}}Rj.Navigation={edit(e,t){return`${t?"/"+t:".."}/web-push-config/edit/${e}`},create(e){return`${e?"/"+e:".."}/web-push-config/new`},single(e,t){return`${t?"/"+t:".."}/web-push-config/${e}`},query(e={},t){return`${t?"/"+t:".."}/web-push-configs`},Redit:"web-push-config/edit/:uniqueId",Rcreate:"web-push-config/new",Rsingle:"web-push-config/:uniqueId",Rquery:"web-push-configs"};Rj.definition={rpc:{query:{}},name:"webPushConfig",distinctBy:"user",features:{},security:{resolveStrategy:"user"},gormMap:{},fields:[{name:"subscription",description:"The json content of the web push after getting it from browser",type:"json",validate:"required",computedType:"any",gormMap:{}}],description:"Keep the web push notification configuration for each user"};Rj.Fields={...wn.Fields,subscription:"subscription"};function qMe(e){let{queryClient:t,query:n,execFnOverride:r}={};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/web-push-config".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*fireback.WebPushConfigEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function HMe(){const{submit:e}=qMe();R.useEffect(()=>{navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",d=>{var f;((f=d.data)==null?void 0:f.type)==="PUSH_RECEIVED"&&console.log("Push message in UI:",d.data.payload)})},[]);const[t,n]=R.useState(!1),[r,a]=R.useState(!1),[i,o]=R.useState(null);return R.useEffect(()=>{async function d(){try{const g=await(await navigator.serviceWorker.ready).pushManager.getSubscription();a(!!g)}catch(f){console.error("Failed to check subscription",f)}}d()},[]),{isSubscribing:t,isSubscribed:r,error:i,subscribe:async()=>{n(!0),o(null);try{const f=await(await navigator.serviceWorker.ready).pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:"BAw6oGpr6FoFDj49xOhFbTSOY07zvcqYWyyXeQXUJIFubi5iLQNV0vYsXKLz7J8520o4IjCq8u9tLPBx2NSuu04"});console.log(25,f),e({subscription:f}),console.log("Subscribed:",JSON.stringify(f)),a(!0)}catch(d){o("Failed to subscribe."),console.error("Subscription failed:",d)}finally{n(!1)}},unsubscribe:async()=>{n(!0),o(null);try{const f=await(await navigator.serviceWorker.ready).pushManager.getSubscription();f?(await f.unsubscribe(),a(!1)):o("No subscription found")}catch(d){o("Failed to unsubscribe."),console.error("Unsubscription failed:",d)}finally{n(!1)}}}}function VMe({}){const{error:e,isSubscribed:t,isSubscribing:n,subscribe:r,unsubscribe:a}=HMe();return w.jsxs(Io,{title:"Notification settings",children:[w.jsx("p",{children:"Here you can manage your notifications"}),w.jsx(S0,{error:e}),w.jsx("button",{className:"btn",disabled:n||t,onClick:()=>r(),children:"Subscribe"}),w.jsx("button",{disabled:!t,className:"btn",onClick:()=>a(),children:"Unsubscribe"})]})}const GMe=(e,t)=>{e.textEditorModule&&localStorage.setItem("app_textEditorModule_address",e.textEditorModule)},YMe=e=>[{label:e.simpleTextEditor,value:"bare"},{label:e.tinymceeditor,value:"tinymce"}];function KMe({}){const{config:e,patchConfig:t}=R.useContext(dh),n=At(),{formik:r}=Dr({}),a=(l,u)=>{l.textEditorModule&&(t({textEditorModule:l.textEditorModule}),GMe(l))};R.useEffect(()=>{var l;(l=r.current)==null||l.setValues({textEditorModule:e.textEditorModule})},[e.remote]);const i=YMe(n),o=Bs(i);return w.jsxs(Io,{title:n.generalSettings.richTextEditor.title,children:[w.jsx("p",{children:n.generalSettings.richTextEditor.description}),w.jsx(ss,{innerRef:l=>{l&&(r.current=l)},initialValues:{},onSubmit:a,children:l=>w.jsxs("form",{className:"richtext-editor-config-form",onSubmit:u=>u.preventDefault(),children:[w.jsx(S0,{errors:l.errors}),w.jsx(ca,{formEffect:{form:l,field:"textEditorModule",beforeSet(u){return u.value}},keyExtractor:u=>u.value,querySource:o,errorMessage:l.errors.textEditorModule,label:n.settings.textEditorModule,hint:n.settings.textEditorModuleHint}),w.jsx(Us,{disabled:l.values.textEditorModule===""||l.values.textEditorModule===e.textEditorModule,label:n.settings.apply,onClick:()=>l.submitForm()})]})})]})}const XMe=(e,t)=>{if(e.theme){localStorage.setItem("ui_theme",e.theme);const n=document.getElementsByTagName("body")[0].classList;for(const r of n.value.split(" "))r.endsWith("-theme")&&n.remove(r);e.theme.split(" ").forEach(r=>{n.add(r)})}},QMe=[{label:"MacOSX Automatic",value:"mac-theme"},{label:"MacOSX Light",value:"mac-theme light-theme"},{label:"MacOSX Dark",value:"mac-theme dark-theme"}];function JMe({}){const{config:e,patchConfig:t}=R.useContext(dh),n=At(),{formik:r}=Dr({}),a=(o,l)=>{o.theme&&(t({theme:o.theme}),XMe(o))};R.useEffect(()=>{var o;(o=r.current)==null||o.setValues({theme:e.theme})},[e.remote]);const i=Bs(QMe);return w.jsxs(Io,{title:n.generalSettings.theme.title,children:[w.jsx("p",{children:n.generalSettings.theme.description}),w.jsx(ss,{innerRef:o=>{o&&(r.current=o)},initialValues:{},onSubmit:a,children:o=>w.jsxs("form",{className:"richtext-editor-config-form",onSubmit:l=>l.preventDefault(),children:[w.jsx(S0,{errors:o.errors}),w.jsx(ca,{keyExtractor:l=>l.value,formEffect:{form:o,field:"theme",beforeSet(l){return l.value}},errorMessage:o.errors.theme,querySource:i,label:n.settings.theme,hint:n.settings.themeHint}),w.jsx(Us,{disabled:o.values.theme===""||o.values.theme===e.theme,label:n.settings.apply,onClick:()=>o.submitForm()})]})})]})}function ZMe({}){const e=At();return hh(e.menu.settings),w.jsxs("div",{children:[w.jsx(VMe,{}),kr.FORCED_LOCALE?null:w.jsx(zMe,{}),w.jsx(KMe,{}),w.jsx(FMe,{}),kr.FORCE_APP_THEME!=="true"?w.jsx(JMe,{}):null,w.jsx(BMe,{})]})}const eIe={setupTotpDescription:'In order to complete account registeration, you need to scan the following code using "Microsoft authenticator" or "Google Authenticator". After that, you need to enter the 6 digit code from the app here.',welcomeBackDescription:"Select any option to continue to access your account.",google:"Google",selectWorkspace:"You have multiple workspaces associated with your account. Select one to continue.",completeYourAccount:"Complete your account",completeYourAccountDescription:"Complete the information below to complete your signup",registerationNotPossibleLine1:"In this project there are no workspace types that can be used publicly to create account.",enterPassword:"Enter Password",welcomeBack:"Welcome back",emailMethod:"Email",phoneMethod:"Phone number",noAuthenticationMethod:"Authentication Currently Unavailable",firstName:"First name",registerationNotPossible:"Registeration not possible.",setupDualFactor:"Setup Dual Factor",cancelStep:"Cancel and try another way.",enterOtp:"Enter OTP",skipTotpInfo:"You can setup this any time later, by visiting your account security section.",continueWithEmailDescription:"Enter your email address to continue.",enterOtpDescription:"We have sent you an one time password, please enter to continue.",continueWithEmail:"Continue with Email",continueWithPhone:"Continue with Phone",registerationNotPossibleLine2:"Contact the service administrator to create your account for you.",useOneTimePassword:"Use one time password instead",changePassword:{pass1Label:"Password",pass2Label:"Repeat password",submit:"Change Password",title:"Change password",description:"In order to change your password, enter new password twice same in the fields"},continueWithPhoneDescription:"Enter your phone number to continue.",lastName:"Last name",password:"Password",continue:"Continue",anotherAccount:"Choose another account",noAuthenticationMethodDescription:"Sign-in and registration are not available in your region at this time. If you believe this is an error or need access, please contact the administrator.",home:{title:"Account & Profile",description:"Manage your account, emails, passwords and more",passports:"Passports",passportsTitle:"Passports",passportsDescription:"View emails, phone numbers associated with your account."},enterTotp:"Enter Totp Code",enterTotpDescription:"Open your authenticator app and enter the 6 digits.",setupTotp:"Setup Dual Factor",skipTotpButton:"Skip for now",userPassports:{title:"Passports",description:"You can see a list of passports that you can use to authenticate into the system here.",add:"Add new passport",remove:"Remove passport"},selectWorkspaceTitle:"Select workspace",chooseAnotherMethod:"Choose another method",enterPasswordDescription:"Enter your password to continue authorizing your account."},tIe={registerationNotPossibleLine2:"Skontaktuj się z administratorem usługi, aby utworzył konto dla Ciebie.",chooseAnotherMethod:"Wybierz inną metodę",continue:"Kontynuuj",continueWithPhone:"Kontynuuj za pomocą numeru telefonu",enterPassword:"Wprowadź hasło",noAuthenticationMethod:"Uwierzytelnianie obecnie niedostępne",completeYourAccountDescription:"Uzupełnij poniższe informacje, aby zakończyć rejestrację",registerationNotPossible:"Rejestracja niemożliwa.",selectWorkspace:"Masz wiele przestrzeni roboczych powiązanych z Twoim kontem. Wybierz jedną, aby kontynuować.",welcomeBack:"Witamy ponownie",enterOtp:"Wprowadź jednorazowy kod",enterPasswordDescription:"Wprowadź swoje hasło, aby kontynuować autoryzację konta.",userPassports:{add:"Dodaj nowy paszport",description:"Tutaj możesz zobaczyć listę paszportów, które możesz wykorzystać do uwierzytelniania w systemie.",remove:"Usuń paszport",title:"Paszporty"},registerationNotPossibleLine1:"W tym projekcie nie ma dostępnych typów przestrzeni roboczych do publicznego tworzenia konta.",cancelStep:"Anuluj i spróbuj innej metody.",continueWithEmail:"Kontynuuj za pomocą e-maila",continueWithPhoneDescription:"Wprowadź swój numer telefonu, aby kontynuować.",emailMethod:"E-mail",enterTotp:"Wprowadź kod TOTP",noAuthenticationMethodDescription:"Logowanie i rejestracja są obecnie niedostępne w Twoim regionie. Jeśli uważasz, że to błąd lub potrzebujesz dostępu, skontaktuj się z administratorem.",password:"Hasło",anotherAccount:"Wybierz inne konto",enterTotpDescription:"Otwórz aplikację uwierzytelniającą i wprowadź 6-cyfrowy kod.",firstName:"Imię",phoneMethod:"Numer telefonu",setupDualFactor:"Skonfiguruj uwierzytelnianie dwuskładnikowe",setupTotp:"Skonfiguruj uwierzytelnianie dwuskładnikowe",skipTotpInfo:"Możesz skonfigurować to później, odwiedzając sekcję bezpieczeństwa konta.",welcomeBackDescription:"Wybierz dowolną opcję, aby kontynuować dostęp do swojego konta.",changePassword:{pass1Label:"Hasło",pass2Label:"Powtórz hasło",submit:"Zmień hasło",title:"Zmień hasło",description:"Aby zmienić hasło, wprowadź nowe hasło dwukrotnie w polach poniżej"},lastName:"Nazwisko",useOneTimePassword:"Użyj jednorazowego hasła zamiast tego",completeYourAccount:"Uzupełnij swoje konto",continueWithEmailDescription:"Wprowadź swój adres e-mail, aby kontynuować.",enterOtpDescription:"Wysłaliśmy jednorazowy kod, wprowadź go, aby kontynuować.",google:"Google",home:{description:"Zarządzaj swoim kontem, e-mailami, hasłami i innymi",passports:"Paszporty",passportsDescription:"Zobacz e-maile i numery telefonów powiązane z Twoim kontem.",passportsTitle:"Paszporty",title:"Konto i profil"},selectWorkspaceTitle:"Wybierz przestrzeń roboczą",setupTotpDescription:"Aby zakończyć rejestrację konta, zeskanuj poniższy kod za pomocą aplikacji „Microsoft Authenticator” lub „Google Authenticator”. Następnie wprowadź tutaj 6-cyfrowy kod z aplikacji.",skipTotpButton:"Pomiń na razie"},xa={...eIe,$pl:tIe};function f3(e,t){const n={};for(const[r,a]of Object.entries(t))typeof a=="string"?n[r]=`${e}.${a}`:typeof a=="object"&&a!==null&&(n[r]=a);return n}var Va,op,sp,lp,up,cp,dp,fp,pp,hp,mp,gp,vp,yp,bp,wp,Sp,Ep,Tp,ok,sk,Cp,kp,xp,lc,lk,_p,Op,Rp,Pp,Ap,Np,Mp,Ip,uk;function Xe(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var nIe=0;function Pn(e){return"__private_"+nIe+++"_"+e}var $m=Pn("apiVersion"),Lm=Pn("context"),Fm=Pn("id"),jm=Pn("method"),Um=Pn("params"),cd=Pn("data"),dd=Pn("error"),dA=Pn("isJsonAppliable"),k1=Pn("lateInitFields");class Mo{get apiVersion(){return Xe(this,$m)[$m]}set apiVersion(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,$m)[$m]=n?t:String(t)}setApiVersion(t){return this.apiVersion=t,this}get context(){return Xe(this,Lm)[Lm]}set context(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Lm)[Lm]=n?t:String(t)}setContext(t){return this.context=t,this}get id(){return Xe(this,Fm)[Fm]}set id(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Fm)[Fm]=n?t:String(t)}setId(t){return this.id=t,this}get method(){return Xe(this,jm)[jm]}set method(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,jm)[jm]=n?t:String(t)}setMethod(t){return this.method=t,this}get params(){return Xe(this,Um)[Um]}set params(t){Xe(this,Um)[Um]=t}setParams(t){return this.params=t,this}get data(){return Xe(this,cd)[cd]}set data(t){t instanceof Mo.Data?Xe(this,cd)[cd]=t:Xe(this,cd)[cd]=new Mo.Data(t)}setData(t){return this.data=t,this}get error(){return Xe(this,dd)[dd]}set error(t){t instanceof Mo.Error?Xe(this,dd)[dd]=t:Xe(this,dd)[dd]=new Mo.Error(t)}setError(t){return this.error=t,this}constructor(t=void 0){if(Object.defineProperty(this,k1,{value:aIe}),Object.defineProperty(this,dA,{value:rIe}),Object.defineProperty(this,$m,{writable:!0,value:void 0}),Object.defineProperty(this,Lm,{writable:!0,value:void 0}),Object.defineProperty(this,Fm,{writable:!0,value:void 0}),Object.defineProperty(this,jm,{writable:!0,value:void 0}),Object.defineProperty(this,Um,{writable:!0,value:null}),Object.defineProperty(this,cd,{writable:!0,value:void 0}),Object.defineProperty(this,dd,{writable:!0,value:void 0}),t==null){Xe(this,k1)[k1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,dA)[dA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.apiVersion!==void 0&&(this.apiVersion=n.apiVersion),n.context!==void 0&&(this.context=n.context),n.id!==void 0&&(this.id=n.id),n.method!==void 0&&(this.method=n.method),n.params!==void 0&&(this.params=n.params),n.data!==void 0&&(this.data=n.data),n.error!==void 0&&(this.error=n.error),Xe(this,k1)[k1](t)}toJSON(){return{apiVersion:Xe(this,$m)[$m],context:Xe(this,Lm)[Lm],id:Xe(this,Fm)[Fm],method:Xe(this,jm)[jm],params:Xe(this,Um)[Um],data:Xe(this,cd)[cd],error:Xe(this,dd)[dd]}}toString(){return JSON.stringify(this)}static get Fields(){return{apiVersion:"apiVersion",context:"context",id:"id",method:"method",params:"params",data$:"data",get data(){return f3("data",Mo.Data.Fields)},error$:"error",get error(){return f3("error",Mo.Error.Fields)}}}static from(t){return new Mo(t)}static with(t){return new Mo(t)}copyWith(t){return new Mo({...this.toJSON(),...t})}clone(){return new Mo(this.toJSON())}}Va=Mo;function rIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function aIe(e={}){const t=e;t.data instanceof Va.Data||(this.data=new Va.Data(t.data||{})),t.error instanceof Va.Error||(this.error=new Va.Error(t.error||{}))}Mo.Data=(op=Pn("item"),sp=Pn("items"),lp=Pn("editLink"),up=Pn("selfLink"),cp=Pn("kind"),dp=Pn("fields"),fp=Pn("etag"),pp=Pn("cursor"),hp=Pn("id"),mp=Pn("lang"),gp=Pn("updated"),vp=Pn("currentItemCount"),yp=Pn("itemsPerPage"),bp=Pn("startIndex"),wp=Pn("totalItems"),Sp=Pn("totalAvailableItems"),Ep=Pn("pageIndex"),Tp=Pn("totalPages"),ok=Pn("isJsonAppliable"),class{get item(){return Xe(this,op)[op]}set item(t){Xe(this,op)[op]=t}setItem(t){return this.item=t,this}get items(){return Xe(this,sp)[sp]}set items(t){Xe(this,sp)[sp]=t}setItems(t){return this.items=t,this}get editLink(){return Xe(this,lp)[lp]}set editLink(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,lp)[lp]=n?t:String(t)}setEditLink(t){return this.editLink=t,this}get selfLink(){return Xe(this,up)[up]}set selfLink(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,up)[up]=n?t:String(t)}setSelfLink(t){return this.selfLink=t,this}get kind(){return Xe(this,cp)[cp]}set kind(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,cp)[cp]=n?t:String(t)}setKind(t){return this.kind=t,this}get fields(){return Xe(this,dp)[dp]}set fields(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,dp)[dp]=n?t:String(t)}setFields(t){return this.fields=t,this}get etag(){return Xe(this,fp)[fp]}set etag(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,fp)[fp]=n?t:String(t)}setEtag(t){return this.etag=t,this}get cursor(){return Xe(this,pp)[pp]}set cursor(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,pp)[pp]=n?t:String(t)}setCursor(t){return this.cursor=t,this}get id(){return Xe(this,hp)[hp]}set id(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,hp)[hp]=n?t:String(t)}setId(t){return this.id=t,this}get lang(){return Xe(this,mp)[mp]}set lang(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,mp)[mp]=n?t:String(t)}setLang(t){return this.lang=t,this}get updated(){return Xe(this,gp)[gp]}set updated(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,gp)[gp]=n?t:String(t)}setUpdated(t){return this.updated=t,this}get currentItemCount(){return Xe(this,vp)[vp]}set currentItemCount(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,vp)[vp]=r)}setCurrentItemCount(t){return this.currentItemCount=t,this}get itemsPerPage(){return Xe(this,yp)[yp]}set itemsPerPage(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,yp)[yp]=r)}setItemsPerPage(t){return this.itemsPerPage=t,this}get startIndex(){return Xe(this,bp)[bp]}set startIndex(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,bp)[bp]=r)}setStartIndex(t){return this.startIndex=t,this}get totalItems(){return Xe(this,wp)[wp]}set totalItems(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,wp)[wp]=r)}setTotalItems(t){return this.totalItems=t,this}get totalAvailableItems(){return Xe(this,Sp)[Sp]}set totalAvailableItems(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Sp)[Sp]=r)}setTotalAvailableItems(t){return this.totalAvailableItems=t,this}get pageIndex(){return Xe(this,Ep)[Ep]}set pageIndex(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Ep)[Ep]=r)}setPageIndex(t){return this.pageIndex=t,this}get totalPages(){return Xe(this,Tp)[Tp]}set totalPages(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Tp)[Tp]=r)}setTotalPages(t){return this.totalPages=t,this}constructor(t=void 0){if(Object.defineProperty(this,ok,{value:iIe}),Object.defineProperty(this,op,{writable:!0,value:null}),Object.defineProperty(this,sp,{writable:!0,value:null}),Object.defineProperty(this,lp,{writable:!0,value:void 0}),Object.defineProperty(this,up,{writable:!0,value:void 0}),Object.defineProperty(this,cp,{writable:!0,value:void 0}),Object.defineProperty(this,dp,{writable:!0,value:void 0}),Object.defineProperty(this,fp,{writable:!0,value:void 0}),Object.defineProperty(this,pp,{writable:!0,value:void 0}),Object.defineProperty(this,hp,{writable:!0,value:void 0}),Object.defineProperty(this,mp,{writable:!0,value:void 0}),Object.defineProperty(this,gp,{writable:!0,value:void 0}),Object.defineProperty(this,vp,{writable:!0,value:void 0}),Object.defineProperty(this,yp,{writable:!0,value:void 0}),Object.defineProperty(this,bp,{writable:!0,value:void 0}),Object.defineProperty(this,wp,{writable:!0,value:void 0}),Object.defineProperty(this,Sp,{writable:!0,value:void 0}),Object.defineProperty(this,Ep,{writable:!0,value:void 0}),Object.defineProperty(this,Tp,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,ok)[ok](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.item!==void 0&&(this.item=n.item),n.items!==void 0&&(this.items=n.items),n.editLink!==void 0&&(this.editLink=n.editLink),n.selfLink!==void 0&&(this.selfLink=n.selfLink),n.kind!==void 0&&(this.kind=n.kind),n.fields!==void 0&&(this.fields=n.fields),n.etag!==void 0&&(this.etag=n.etag),n.cursor!==void 0&&(this.cursor=n.cursor),n.id!==void 0&&(this.id=n.id),n.lang!==void 0&&(this.lang=n.lang),n.updated!==void 0&&(this.updated=n.updated),n.currentItemCount!==void 0&&(this.currentItemCount=n.currentItemCount),n.itemsPerPage!==void 0&&(this.itemsPerPage=n.itemsPerPage),n.startIndex!==void 0&&(this.startIndex=n.startIndex),n.totalItems!==void 0&&(this.totalItems=n.totalItems),n.totalAvailableItems!==void 0&&(this.totalAvailableItems=n.totalAvailableItems),n.pageIndex!==void 0&&(this.pageIndex=n.pageIndex),n.totalPages!==void 0&&(this.totalPages=n.totalPages)}toJSON(){return{item:Xe(this,op)[op],items:Xe(this,sp)[sp],editLink:Xe(this,lp)[lp],selfLink:Xe(this,up)[up],kind:Xe(this,cp)[cp],fields:Xe(this,dp)[dp],etag:Xe(this,fp)[fp],cursor:Xe(this,pp)[pp],id:Xe(this,hp)[hp],lang:Xe(this,mp)[mp],updated:Xe(this,gp)[gp],currentItemCount:Xe(this,vp)[vp],itemsPerPage:Xe(this,yp)[yp],startIndex:Xe(this,bp)[bp],totalItems:Xe(this,wp)[wp],totalAvailableItems:Xe(this,Sp)[Sp],pageIndex:Xe(this,Ep)[Ep],totalPages:Xe(this,Tp)[Tp]}}toString(){return JSON.stringify(this)}static get Fields(){return{item:"item",items:"items",editLink:"editLink",selfLink:"selfLink",kind:"kind",fields:"fields",etag:"etag",cursor:"cursor",id:"id",lang:"lang",updated:"updated",currentItemCount:"currentItemCount",itemsPerPage:"itemsPerPage",startIndex:"startIndex",totalItems:"totalItems",totalAvailableItems:"totalAvailableItems",pageIndex:"pageIndex",totalPages:"totalPages"}}static from(t){return new Va.Data(t)}static with(t){return new Va.Data(t)}copyWith(t){return new Va.Data({...this.toJSON(),...t})}clone(){return new Va.Data(this.toJSON())}});function iIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}Mo.Error=(Cp=Pn("code"),kp=Pn("message"),xp=Pn("messageTranslated"),lc=Pn("errors"),lk=Pn("isJsonAppliable"),sk=class wne{get code(){return Xe(this,Cp)[Cp]}set code(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Xe(this,Cp)[Cp]=r)}setCode(t){return this.code=t,this}get message(){return Xe(this,kp)[kp]}set message(t){Xe(this,kp)[kp]=String(t)}setMessage(t){return this.message=t,this}get messageTranslated(){return Xe(this,xp)[xp]}set messageTranslated(t){Xe(this,xp)[xp]=String(t)}setMessageTranslated(t){return this.messageTranslated=t,this}get errors(){return Xe(this,lc)[lc]}set errors(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof Va.Error.Errors?Xe(this,lc)[lc]=t:Xe(this,lc)[lc]=t.map(n=>new Va.Error.Errors(n)))}setErrors(t){return this.errors=t,this}constructor(t=void 0){if(Object.defineProperty(this,lk,{value:sIe}),Object.defineProperty(this,Cp,{writable:!0,value:0}),Object.defineProperty(this,kp,{writable:!0,value:""}),Object.defineProperty(this,xp,{writable:!0,value:""}),Object.defineProperty(this,lc,{writable:!0,value:[]}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,lk)[lk](t))this.applyFromObject(t);else throw new wne("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.code!==void 0&&(this.code=n.code),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.errors!==void 0&&(this.errors=n.errors)}toJSON(){return{code:Xe(this,Cp)[Cp],message:Xe(this,kp)[kp],messageTranslated:Xe(this,xp)[xp],errors:Xe(this,lc)[lc]}}toString(){return JSON.stringify(this)}static get Fields(){return{code:"code",message:"message",messageTranslated:"messageTranslated",errors$:"errors",get errors(){return f3("error.errors[:i]",Va.Error.Errors.Fields)}}}static from(t){return new Va.Error(t)}static with(t){return new Va.Error(t)}copyWith(t){return new Va.Error({...this.toJSON(),...t})}clone(){return new Va.Error(this.toJSON())}},sk.Errors=(_p=Pn("domain"),Op=Pn("reason"),Rp=Pn("message"),Pp=Pn("messageTranslated"),Ap=Pn("location"),Np=Pn("locationType"),Mp=Pn("extendedHelp"),Ip=Pn("sendReport"),uk=Pn("isJsonAppliable"),class{get domain(){return Xe(this,_p)[_p]}set domain(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,_p)[_p]=n?t:String(t)}setDomain(t){return this.domain=t,this}get reason(){return Xe(this,Op)[Op]}set reason(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Op)[Op]=n?t:String(t)}setReason(t){return this.reason=t,this}get message(){return Xe(this,Rp)[Rp]}set message(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Rp)[Rp]=n?t:String(t)}setMessage(t){return this.message=t,this}get messageTranslated(){return Xe(this,Pp)[Pp]}set messageTranslated(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Pp)[Pp]=n?t:String(t)}setMessageTranslated(t){return this.messageTranslated=t,this}get location(){return Xe(this,Ap)[Ap]}set location(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Ap)[Ap]=n?t:String(t)}setLocation(t){return this.location=t,this}get locationType(){return Xe(this,Np)[Np]}set locationType(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Np)[Np]=n?t:String(t)}setLocationType(t){return this.locationType=t,this}get extendedHelp(){return Xe(this,Mp)[Mp]}set extendedHelp(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Mp)[Mp]=n?t:String(t)}setExtendedHelp(t){return this.extendedHelp=t,this}get sendReport(){return Xe(this,Ip)[Ip]}set sendReport(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Ip)[Ip]=n?t:String(t)}setSendReport(t){return this.sendReport=t,this}constructor(t=void 0){if(Object.defineProperty(this,uk,{value:oIe}),Object.defineProperty(this,_p,{writable:!0,value:void 0}),Object.defineProperty(this,Op,{writable:!0,value:void 0}),Object.defineProperty(this,Rp,{writable:!0,value:void 0}),Object.defineProperty(this,Pp,{writable:!0,value:void 0}),Object.defineProperty(this,Ap,{writable:!0,value:void 0}),Object.defineProperty(this,Np,{writable:!0,value:void 0}),Object.defineProperty(this,Mp,{writable:!0,value:void 0}),Object.defineProperty(this,Ip,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,uk)[uk](t))this.applyFromObject(t);else throw new sk("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.domain!==void 0&&(this.domain=n.domain),n.reason!==void 0&&(this.reason=n.reason),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.location!==void 0&&(this.location=n.location),n.locationType!==void 0&&(this.locationType=n.locationType),n.extendedHelp!==void 0&&(this.extendedHelp=n.extendedHelp),n.sendReport!==void 0&&(this.sendReport=n.sendReport)}toJSON(){return{domain:Xe(this,_p)[_p],reason:Xe(this,Op)[Op],message:Xe(this,Rp)[Rp],messageTranslated:Xe(this,Pp)[Pp],location:Xe(this,Ap)[Ap],locationType:Xe(this,Np)[Np],extendedHelp:Xe(this,Mp)[Mp],sendReport:Xe(this,Ip)[Ip]}}toString(){return JSON.stringify(this)}static get Fields(){return{domain:"domain",reason:"reason",message:"message",messageTranslated:"messageTranslated",location:"location",locationType:"locationType",extendedHelp:"extendedHelp",sendReport:"sendReport"}}static from(t){return new Va.Error.Errors(t)}static with(t){return new Va.Error.Errors(t)}copyWith(t){return new Va.Error.Errors({...this.toJSON(),...t})}clone(){return new Va.Error.Errors(this.toJSON())}}),sk);function oIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function sIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}class Ws extends Mo{constructor(t){super(t),this.creator=void 0}setCreator(t){return this.creator=t,this}inject(t){var n,r,a,i,o,l,u,d;return this.applyFromObject(t),t!=null&&t.data&&(this.data||this.setData({}),Array.isArray(t==null?void 0:t.data.items)&&typeof this.creator<"u"&&this.creator!==null?(a=this.data)==null||a.setItems((r=(n=t==null?void 0:t.data)==null?void 0:n.items)==null?void 0:r.map(f=>{var g;return(g=this.creator)==null?void 0:g.call(this,f)})):typeof((i=t==null?void 0:t.data)==null?void 0:i.item)=="object"&&typeof this.creator<"u"&&this.creator!==null?(l=this.data)==null||l.setItem(this.creator((o=t==null?void 0:t.data)==null?void 0:o.item)):(d=this.data)==null||d.setItem((u=t==null?void 0:t.data)==null?void 0:u.item)),this}}function Nl(e,t,n){if(n&&n instanceof URLSearchParams)e+=`?${n.toString()}`;else if(n&&Object.keys(n).length){const r=new URLSearchParams(Object.entries(n).map(([a,i])=>[a,String(i)])).toString();e+=`?${r}`}return e}const Sne=R.createContext(null),lIe=Sne.Provider;function Ml(){return R.useContext(Sne)}var tE;function _s(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var uIe=0;function FE(e){return"__private_"+uIe+++"_"+e}const cIe=e=>{const t=Ml(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),Wd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[Wd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class Wd{}tE=Wd;Wd.URL="/user/passports";Wd.NewUrl=e=>Nl(tE.URL,void 0,e);Wd.Method="get";Wd.Fetch$=async(e,t,n,r)=>Rl(r??tE.NewUrl(e),{method:tE.Method,...n||{}},t);Wd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new iv(o)})=>{t=t||(l=>new iv(l));const o=await tE.Fetch$(n,r,e,i);return Pl(o,l=>{const u=new Ws;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Wd.Definition={name:"UserPassports",url:"/user/passports",method:"get",description:"Returns list of passports belongs to an specific user.",out:{envelope:"GResponse",fields:[{name:"value",description:"The passport value, such as email address or phone number",type:"string"},{name:"uniqueId",description:"Unique identifier of the passport to operate some action on top of it",type:"string"},{name:"type",description:"The type of the passport, such as email, phone number",type:"string"},{name:"totpConfirmed",description:"Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login.",type:"bool"}]}};var Bm=FE("value"),Wm=FE("uniqueId"),zm=FE("type"),qm=FE("totpConfirmed"),fA=FE("isJsonAppliable");class iv{get value(){return _s(this,Bm)[Bm]}set value(t){_s(this,Bm)[Bm]=String(t)}setValue(t){return this.value=t,this}get uniqueId(){return _s(this,Wm)[Wm]}set uniqueId(t){_s(this,Wm)[Wm]=String(t)}setUniqueId(t){return this.uniqueId=t,this}get type(){return _s(this,zm)[zm]}set type(t){_s(this,zm)[zm]=String(t)}setType(t){return this.type=t,this}get totpConfirmed(){return _s(this,qm)[qm]}set totpConfirmed(t){_s(this,qm)[qm]=!!t}setTotpConfirmed(t){return this.totpConfirmed=t,this}constructor(t=void 0){if(Object.defineProperty(this,fA,{value:dIe}),Object.defineProperty(this,Bm,{writable:!0,value:""}),Object.defineProperty(this,Wm,{writable:!0,value:""}),Object.defineProperty(this,zm,{writable:!0,value:""}),Object.defineProperty(this,qm,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(_s(this,fA)[fA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.type!==void 0&&(this.type=n.type),n.totpConfirmed!==void 0&&(this.totpConfirmed=n.totpConfirmed)}toJSON(){return{value:_s(this,Bm)[Bm],uniqueId:_s(this,Wm)[Wm],type:_s(this,zm)[zm],totpConfirmed:_s(this,qm)[qm]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",uniqueId:"uniqueId",type:"type",totpConfirmed:"totpConfirmed"}}static from(t){return new iv(t)}static with(t){return new iv(t)}copyWith(t){return new iv({...this.toJSON(),...t})}clone(){return new iv(this.toJSON())}}function dIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const fIe=()=>{const e=Kt(xa),{goBack:t}=xr(),n=cIe({}),{signout:r}=R.useContext(nt);return{goBack:t,signout:r,query:n,s:e}},pIe=({})=>{var a,i;const{query:e,s:t,signout:n}=fIe(),r=((i=(a=e==null?void 0:e.data)==null?void 0:a.data)==null?void 0:i.items)||[];return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:t.userPassports.title}),w.jsx("p",{children:t.userPassports.description}),w.jsx(Al,{query:e}),w.jsx(hIe,{passports:r}),w.jsx("button",{className:"btn btn-danger mt-3 w-100",onClick:n,children:"Signout"})]})},hIe=({passports:e})=>{const t=Kt(xa);return w.jsx("div",{className:"d-flex ",children:e.map(n=>w.jsxs("div",{className:"card p-3 w-100",children:[w.jsx("h3",{className:"card-title",children:n.type.toUpperCase()}),w.jsx("p",{className:"card-text",children:n.value}),w.jsxs("p",{className:"text-muted",children:["TOTP: ",n.totpConfirmed?"Yes":"No"]}),w.jsx(Ub,{href:`../change-password/${n.uniqueId}`,children:w.jsx("button",{className:"btn btn-primary",children:t.changePassword.submit})})]},n.uniqueId))})};var nE;function yu(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var mIe=0;function jE(e){return"__private_"+mIe+++"_"+e}const gIe=e=>{const n=Ml()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),yh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class yh{}nE=yh;yh.URL="/passport/change-password";yh.NewUrl=e=>Nl(nE.URL,void 0,e);yh.Method="post";yh.Fetch$=async(e,t,n,r)=>Rl(r??nE.NewUrl(e),{method:nE.Method,...n||{}},t);yh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new sv(o)})=>{t=t||(l=>new sv(l));const o=await nE.Fetch$(n,r,e,i);return Pl(o,l=>{const u=new Ws;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};yh.Definition={name:"ChangePassword",cliName:"cp",url:"/passport/change-password",method:"post",description:"Change the password for a given passport of the user. User needs to be authenticated in order to be able to change the password for a given account.",in:{fields:[{name:"password",description:"New password meeting the security requirements.",type:"string",tags:{validate:"required"}},{name:"uniqueId",description:"The passport uniqueId (not the email or phone number) which password would be applied to. Don't confuse with value.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"changed",type:"bool"}]}};var Hm=jE("password"),Vm=jE("uniqueId"),pA=jE("isJsonAppliable");class ov{get password(){return yu(this,Hm)[Hm]}set password(t){yu(this,Hm)[Hm]=String(t)}setPassword(t){return this.password=t,this}get uniqueId(){return yu(this,Vm)[Vm]}set uniqueId(t){yu(this,Vm)[Vm]=String(t)}setUniqueId(t){return this.uniqueId=t,this}constructor(t=void 0){if(Object.defineProperty(this,pA,{value:vIe}),Object.defineProperty(this,Hm,{writable:!0,value:""}),Object.defineProperty(this,Vm,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(yu(this,pA)[pA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.password!==void 0&&(this.password=n.password),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId)}toJSON(){return{password:yu(this,Hm)[Hm],uniqueId:yu(this,Vm)[Vm]}}toString(){return JSON.stringify(this)}static get Fields(){return{password:"password",uniqueId:"uniqueId"}}static from(t){return new ov(t)}static with(t){return new ov(t)}copyWith(t){return new ov({...this.toJSON(),...t})}clone(){return new ov(this.toJSON())}}function vIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var Gm=jE("changed"),hA=jE("isJsonAppliable");class sv{get changed(){return yu(this,Gm)[Gm]}set changed(t){yu(this,Gm)[Gm]=!!t}setChanged(t){return this.changed=t,this}constructor(t=void 0){if(Object.defineProperty(this,hA,{value:yIe}),Object.defineProperty(this,Gm,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(yu(this,hA)[hA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.changed!==void 0&&(this.changed=n.changed)}toJSON(){return{changed:yu(this,Gm)[Gm]}}toString(){return JSON.stringify(this)}static get Fields(){return{changed:"changed"}}static from(t){return new sv(t)}static with(t){return new sv(t)}copyWith(t){return new sv({...this.toJSON(),...t})}clone(){return new sv(this.toJSON())}}function yIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const bIe=()=>{const e=Kt(xa),{goBack:t,state:n,replace:r,push:a,query:i}=xr(),o=gIe(),l=i==null?void 0:i.uniqueId,u=()=>{o.mutateAsync(new ov(d.values)).then(f=>{t()})},d=Jd({initialValues:{},onSubmit:u});return R.useEffect(()=>{!l||!d||d.setFieldValue(ov.Fields.uniqueId,l)},[l]),{mutation:o,form:d,submit:u,goBack:t,s:e}},wIe=({})=>{const{mutation:e,form:t,s:n}=bIe();return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:n.changePassword.title}),w.jsx("p",{children:n.changePassword.description}),w.jsx(Al,{query:e}),w.jsx(SIe,{form:t,mutation:e})]})},SIe=({form:e,mutation:t})=>{const n=Kt(xa),{password2:r,password:a}=e.values,i=a!==r||((a==null?void 0:a.length)||0)<6;return w.jsxs("form",{onSubmit:o=>{o.preventDefault(),e.submitForm()},children:[w.jsx(In,{type:"password",value:e.values.password,label:n.changePassword.pass1Label,id:"password-input",errorMessage:e.errors.password,onChange:o=>e.setFieldValue("password",o,!1)}),w.jsx(In,{type:"password",value:e.values.password2,label:n.changePassword.pass2Label,id:"password-input-2",errorMessage:e.errors.password,onChange:o=>e.setFieldValue("password2",o,!1)}),w.jsx(Us,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:i,children:n.continue})]})};function EIe(e={}){const{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}=e,[a,i]=R.useState(!1),o=R.useRef(n);o.current=n;const l=R.useRef(r);return l.current=r,R.useEffect(()=>{const u=document.createElement("script");return u.src="https://accounts.google.com/gsi/client",u.async=!0,u.defer=!0,u.nonce=t,u.onload=()=>{var d;i(!0),(d=o.current)===null||d===void 0||d.call(o)},u.onerror=()=>{var d;i(!1),(d=l.current)===null||d===void 0||d.call(l)},document.body.appendChild(u),()=>{document.body.removeChild(u)}},[t]),a}const Ene=R.createContext(null);function TIe({clientId:e,nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r,children:a}){const i=EIe({nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}),o=R.useMemo(()=>({clientId:e,scriptLoadedSuccessfully:i}),[e,i]);return ze.createElement(Ene.Provider,{value:o},a)}function CIe(){const e=R.useContext(Ene);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function kIe({flow:e="implicit",scope:t="",onSuccess:n,onError:r,onNonOAuthError:a,overrideScope:i,state:o,...l}){const{clientId:u,scriptLoadedSuccessfully:d}=CIe(),f=R.useRef(),g=R.useRef(n);g.current=n;const y=R.useRef(r);y.current=r;const h=R.useRef(a);h.current=a,R.useEffect(()=>{var T,C;if(!d)return;const k=e==="implicit"?"initTokenClient":"initCodeClient",_=(C=(T=window==null?void 0:window.google)===null||T===void 0?void 0:T.accounts)===null||C===void 0?void 0:C.oauth2[k]({client_id:u,scope:i?t:`openid profile email ${t}`,callback:A=>{var P,N;if(A.error)return(P=y.current)===null||P===void 0?void 0:P.call(y,A);(N=g.current)===null||N===void 0||N.call(g,A)},error_callback:A=>{var P;(P=h.current)===null||P===void 0||P.call(h,A)},state:o,...l});f.current=_},[u,d,e,t,o]);const v=R.useCallback(T=>{var C;return(C=f.current)===null||C===void 0?void 0:C.requestAccessToken(T)},[]),E=R.useCallback(()=>{var T;return(T=f.current)===null||T===void 0?void 0:T.requestCode()},[]);return e==="implicit"?v:E}const Tne=()=>w.jsxs("div",{className:"loader",id:"loader-4",children:[w.jsx("span",{}),w.jsx("span",{}),w.jsx("span",{})]});function xIe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/passport/via-oauth".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.OauthAuthenticateActionResDto",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}var Ms=(e=>(e.Email="email",e.Phone="phone",e.Google="google",e.Facebook="facebook",e))(Ms||{});const UE=()=>{const{setSession:e,selectUrw:t,selectedUrw:n}=R.useContext(nt),{locale:r}=sr(),{replace:a}=xr();return{onComplete:o=>{var g,y;e(o.data.item.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify(o.data));const u=new URLSearchParams(window.location.search).get("redirect"),d=sessionStorage.getItem("redirect_temporary");if(!((y=(g=o.data)==null?void 0:g.item.session)==null?void 0:y.token)){alert("Authentication has failed.");return}if(sessionStorage.removeItem("redirect_temporary"),sessionStorage.removeItem("workspace_type_id"),d)window.location.href=d;else if(u){const h=new URL(u);h.searchParams.set("session",JSON.stringify(o.data.item.session)),window.location.href=h.toString()}else{const h="/{locale}/dashboard".replace("{locale}",r||"en");a(h,h)}}}},_Ie=e=>{R.useEffect(()=>{const t=new URLSearchParams(window.location.search),n=window.location.hash.indexOf("?"),r=n!==-1?new URLSearchParams(window.location.hash.slice(n)):new URLSearchParams;e.forEach(a=>{const i=t.get(a)||r.get(a);i&&sessionStorage.setItem(a,i)})},[e.join(",")])},OIe=({continueWithResult:e,facebookAppId:t})=>{Kt(xa),R.useEffect(()=>{if(window.FB)return;const r=document.createElement("script");r.src="https://connect.facebook.net/en_US/sdk.js",r.async=!0,r.onload=()=>{window.FB.init({appId:t,cookie:!0,xfbml:!1,version:"v19.0"})},document.body.appendChild(r)},[]);const n=()=>{const r=window.FB;if(!r){alert("Facebook SDK not loaded");return}r.login(a=>{var i;console.log("Facebook:",a),(i=a.authResponse)!=null&&i.accessToken?e(a.authResponse.accessToken):alert("Facebook login failed")},{scope:"email,public_profile"})};return w.jsxs("button",{id:"using-facebook",type:"button",onClick:n,children:[w.jsx("img",{className:"button-icon",src:$s("/common/facebook.png")}),"Facebook"]})};var rE;function Vr(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var RIe=0;function nf(e){return"__private_"+RIe+++"_"+e}const Cne=e=>{const t=Ml(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),zd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[zd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class zd{}rE=zd;zd.URL="/passports/available-methods";zd.NewUrl=e=>Nl(rE.URL,void 0,e);zd.Method="get";zd.Fetch$=async(e,t,n,r)=>Rl(r??rE.NewUrl(e),{method:rE.Method,...n||{}},t);zd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Yp(o)})=>{t=t||(l=>new Yp(l));const o=await rE.Fetch$(n,r,e,i);return Pl(o,l=>{const u=new Ws;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};zd.Definition={name:"CheckPassportMethods",cliName:"check-passport-methods",url:"/passports/available-methods",method:"get",description:"Publicly available information to create the authentication form, and show users how they can signin or signup to the system. Based on the PassportMethod entities, it will compute the available methods for the user, considering their region (IP for example)",out:{envelope:"GResponse",fields:[{name:"email",type:"bool",default:!1},{name:"phone",type:"bool",default:!1},{name:"google",type:"bool",default:!1},{name:"facebook",type:"bool",default:!1},{name:"googleOAuthClientKey",type:"string"},{name:"facebookAppId",type:"string"},{name:"enabledRecaptcha2",type:"bool",default:!1},{name:"recaptcha2ClientKey",type:"string"}]}};var Ym=nf("email"),Km=nf("phone"),Xm=nf("google"),Qm=nf("facebook"),Jm=nf("googleOAuthClientKey"),Zm=nf("facebookAppId"),eg=nf("enabledRecaptcha2"),tg=nf("recaptcha2ClientKey"),mA=nf("isJsonAppliable");class Yp{get email(){return Vr(this,Ym)[Ym]}set email(t){Vr(this,Ym)[Ym]=!!t}setEmail(t){return this.email=t,this}get phone(){return Vr(this,Km)[Km]}set phone(t){Vr(this,Km)[Km]=!!t}setPhone(t){return this.phone=t,this}get google(){return Vr(this,Xm)[Xm]}set google(t){Vr(this,Xm)[Xm]=!!t}setGoogle(t){return this.google=t,this}get facebook(){return Vr(this,Qm)[Qm]}set facebook(t){Vr(this,Qm)[Qm]=!!t}setFacebook(t){return this.facebook=t,this}get googleOAuthClientKey(){return Vr(this,Jm)[Jm]}set googleOAuthClientKey(t){Vr(this,Jm)[Jm]=String(t)}setGoogleOAuthClientKey(t){return this.googleOAuthClientKey=t,this}get facebookAppId(){return Vr(this,Zm)[Zm]}set facebookAppId(t){Vr(this,Zm)[Zm]=String(t)}setFacebookAppId(t){return this.facebookAppId=t,this}get enabledRecaptcha2(){return Vr(this,eg)[eg]}set enabledRecaptcha2(t){Vr(this,eg)[eg]=!!t}setEnabledRecaptcha2(t){return this.enabledRecaptcha2=t,this}get recaptcha2ClientKey(){return Vr(this,tg)[tg]}set recaptcha2ClientKey(t){Vr(this,tg)[tg]=String(t)}setRecaptcha2ClientKey(t){return this.recaptcha2ClientKey=t,this}constructor(t=void 0){if(Object.defineProperty(this,mA,{value:PIe}),Object.defineProperty(this,Ym,{writable:!0,value:!1}),Object.defineProperty(this,Km,{writable:!0,value:!1}),Object.defineProperty(this,Xm,{writable:!0,value:!1}),Object.defineProperty(this,Qm,{writable:!0,value:!1}),Object.defineProperty(this,Jm,{writable:!0,value:""}),Object.defineProperty(this,Zm,{writable:!0,value:""}),Object.defineProperty(this,eg,{writable:!0,value:!1}),Object.defineProperty(this,tg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Vr(this,mA)[mA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.email!==void 0&&(this.email=n.email),n.phone!==void 0&&(this.phone=n.phone),n.google!==void 0&&(this.google=n.google),n.facebook!==void 0&&(this.facebook=n.facebook),n.googleOAuthClientKey!==void 0&&(this.googleOAuthClientKey=n.googleOAuthClientKey),n.facebookAppId!==void 0&&(this.facebookAppId=n.facebookAppId),n.enabledRecaptcha2!==void 0&&(this.enabledRecaptcha2=n.enabledRecaptcha2),n.recaptcha2ClientKey!==void 0&&(this.recaptcha2ClientKey=n.recaptcha2ClientKey)}toJSON(){return{email:Vr(this,Ym)[Ym],phone:Vr(this,Km)[Km],google:Vr(this,Xm)[Xm],facebook:Vr(this,Qm)[Qm],googleOAuthClientKey:Vr(this,Jm)[Jm],facebookAppId:Vr(this,Zm)[Zm],enabledRecaptcha2:Vr(this,eg)[eg],recaptcha2ClientKey:Vr(this,tg)[tg]}}toString(){return JSON.stringify(this)}static get Fields(){return{email:"email",phone:"phone",google:"google",facebook:"facebook",googleOAuthClientKey:"googleOAuthClientKey",facebookAppId:"facebookAppId",enabledRecaptcha2:"enabledRecaptcha2",recaptcha2ClientKey:"recaptcha2ClientKey"}}static from(t){return new Yp(t)}static with(t){return new Yp(t)}copyWith(t){return new Yp({...this.toJSON(),...t})}clone(){return new Yp(this.toJSON())}}function PIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const AIe=()=>{var f,g;const e=At(),{locale:t}=sr(),{push:n}=xr(),r=R.useRef(),a=Cne({});_Ie(["redirect_temporary","workspace_type_id"]);const[i,o]=R.useState(void 0),l=i?Object.values(i).filter(Boolean).length:void 0,u=(g=(f=a.data)==null?void 0:f.data)==null?void 0:g.item,d=(y,h=!0)=>{switch(y){case Ms.Email:n(`/${t}/selfservice/email`,void 0,{canGoBack:h});break;case Ms.Phone:n(`/${t}/selfservice/phone`,void 0,{canGoBack:h});break}};return R.useEffect(()=>{if(!u)return;const y={email:u.email,google:u.google,facebook:u.facebook,phone:u.phone,googleOAuthClientKey:u.googleOAuthClientKey,facebookAppId:u.facebookAppId};Object.values(y).filter(Boolean).length===1&&(y.email&&d(Ms.Email,!1),y.phone&&d(Ms.Phone,!1),y.google&&d(Ms.Google,!1),y.facebook&&d(Ms.Facebook,!1)),o(y)},[u]),{t:e,formik:r,onSelect:d,availableOptions:i,passportMethodsQuery:a,isLoadingMethods:a.isLoading,totalAvailableMethods:l}},NIe=()=>{const{onSelect:e,availableOptions:t,totalAvailableMethods:n,isLoadingMethods:r,passportMethodsQuery:a}=AIe(),i=Jd({initialValues:{},onSubmit:()=>{}});return a.isError||a.error?w.jsx("div",{className:"signin-form-container",children:w.jsx(Al,{query:a})}):n===void 0||r?w.jsx("div",{className:"signin-form-container",children:w.jsx(Tne,{})}):n===0?w.jsx("div",{className:"signin-form-container",children:w.jsx(IIe,{})}):w.jsx("div",{className:"signin-form-container",children:t.googleOAuthClientKey?w.jsx(TIe,{clientId:t.googleOAuthClientKey,children:w.jsx(ez,{availableOptions:t,onSelect:e,form:i})}):w.jsx(ez,{availableOptions:t,onSelect:e,form:i})})},ez=({form:e,onSelect:t,availableOptions:n})=>{const{submit:r}=xIe({}),{setSession:a}=R.useContext(nt),{locale:i}=sr(),{replace:o}=xr(),l=(d,f)=>{r({service:f,token:d}).then(g=>{a(g.data.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify(g.data));{const y=kr.DEFAULT_ROUTE.replace("{locale}",i||"en");o(y,y)}}).catch(g=>{alert(g)})},u=Kt(xa);return w.jsxs("form",{onSubmit:d=>{d.preventDefault(),e.submitForm()},children:[w.jsx("h1",{children:u.welcomeBack}),w.jsxs("p",{children:[u.welcomeBackDescription," "]}),w.jsxs("div",{role:"group","aria-label":"Login method",className:"flex gap-2 login-option-buttons",children:[n.email?w.jsx("button",{id:"using-email",type:"button",onClick:()=>t(Ms.Email),children:u.emailMethod}):null,n.phone?w.jsx("button",{id:"using-phone",type:"button",onClick:()=>t(Ms.Phone),children:u.phoneMethod}):null,n.facebook?w.jsx(OIe,{facebookAppId:n.facebookAppId,continueWithResult:d=>l(d,"facebook")}):null,n.google?w.jsx(MIe,{continueWithResult:d=>l(d,"google")}):null]})]})},MIe=({continueWithResult:e})=>{const t=Kt(xa),n=kIe({onSuccess:r=>{e(r.access_token)},scope:["https://www.googleapis.com/auth/userinfo.profile"].join(" ")});return w.jsx(w.Fragment,{children:w.jsxs("button",{id:"using-google",type:"button",onClick:()=>n(),children:[w.jsx("img",{className:"button-icon",src:$s("/common/google.png")}),t.google]})})},IIe=()=>{const e=Kt(xa);return w.jsxs(w.Fragment,{children:[w.jsx("h1",{children:e.noAuthenticationMethod}),w.jsx("p",{children:e.noAuthenticationMethodDescription})]})};var DIe=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function p3(){return p3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function ck(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LIe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h3(e,t)}function h3(e,t){return h3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},h3(e,t)}var x_=(function(e){LIe(t,e);function t(){var r;return r=e.call(this)||this,r.handleExpired=r.handleExpired.bind(ck(r)),r.handleErrored=r.handleErrored.bind(ck(r)),r.handleChange=r.handleChange.bind(ck(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(ck(r)),r}var n=t.prototype;return n.getCaptchaFunction=function(a){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[a]:this.props.grecaptcha[a]:null},n.getValue=function(){var a=this.getCaptchaFunction("getResponse");return a&&this._widgetId!==void 0?a(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var a=this.getCaptchaFunction("execute");if(a&&this._widgetId!==void 0)return a(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var a=this;return new Promise(function(i,o){a.executionResolve=i,a.executionReject=o,a.execute()})},n.reset=function(){var a=this.getCaptchaFunction("reset");a&&this._widgetId!==void 0&&a(this._widgetId)},n.forceReset=function(){var a=this.getCaptchaFunction("reset");a&&a()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(a){this.props.onChange&&this.props.onChange(a),this.executionResolve&&(this.executionResolve(a),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var a=this.getCaptchaFunction("render");if(a&&this._widgetId===void 0){var i=document.createElement("div");this._widgetId=a(i,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(i)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(a){this.captcha=a},n.render=function(){var a=this.props;a.sitekey,a.onChange,a.theme,a.type,a.tabindex,a.onExpired,a.onErrored,a.size,a.stoken,a.grecaptcha,a.badge,a.hl,a.isolated;var i=$Ie(a,DIe);return R.createElement("div",p3({},i,{ref:this.handleRecaptchaRef}))},t})(R.Component);x_.displayName="ReCAPTCHA";x_.propTypes={sitekey:Ye.string.isRequired,onChange:Ye.func,grecaptcha:Ye.object,theme:Ye.oneOf(["dark","light"]),type:Ye.oneOf(["image","audio"]),tabindex:Ye.number,onExpired:Ye.func,onErrored:Ye.func,size:Ye.oneOf(["compact","normal","invisible"]),stoken:Ye.string,hl:Ye.string,badge:Ye.oneOf(["bottomright","bottomleft","inline"]),isolated:Ye.bool};x_.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};function m3(){return m3=Object.assign||function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function jIe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var pu={},UIe=0;function BIe(e,t){return t=t||{},function(r){var a=r.displayName||r.name||"Component",i=(function(l){jIe(u,l);function u(f,g){var y;return y=l.call(this,f,g)||this,y.state={},y.__scriptURL="",y}var d=u.prototype;return d.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+UIe++),this.__scriptLoaderID},d.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},d.asyncScriptLoaderHandleLoad=function(g){var y=this;this.setState(g,function(){return y.props.asyncScriptOnLoad&&y.props.asyncScriptOnLoad(y.state)})},d.asyncScriptLoaderTriggerOnScriptLoaded=function(){var g=pu[this.__scriptURL];if(!g||!g.loaded)throw new Error("Script is not loaded.");for(var y in g.observers)g.observers[y](g);delete window[t.callbackName]},d.componentDidMount=function(){var g=this,y=this.setupScriptURL(),h=this.asyncScriptLoaderGetScriptLoaderID(),v=t,E=v.globalName,T=v.callbackName,C=v.scriptId;if(E&&typeof window[E]<"u"&&(pu[y]={loaded:!0,observers:{}}),pu[y]){var k=pu[y];if(k&&(k.loaded||k.errored)){this.asyncScriptLoaderHandleLoad(k);return}k.observers[h]=function(I){return g.asyncScriptLoaderHandleLoad(I)};return}var _={};_[h]=function(I){return g.asyncScriptLoaderHandleLoad(I)},pu[y]={loaded:!1,observers:_};var A=document.createElement("script");A.src=y,A.async=!0;for(var P in t.attributes)A.setAttribute(P,t.attributes[P]);C&&(A.id=C);var N=function(L){if(pu[y]){var j=pu[y],z=j.observers;for(var Q in z)L(z[Q])&&delete z[Q]}};T&&typeof window<"u"&&(window[T]=function(){return g.asyncScriptLoaderTriggerOnScriptLoaded()}),A.onload=function(){var I=pu[y];I&&(I.loaded=!0,N(function(L){return T?!1:(L(I),!0)}))},A.onerror=function(){var I=pu[y];I&&(I.errored=!0,N(function(L){return L(I),!0}))},document.body.appendChild(A)},d.componentWillUnmount=function(){var g=this.__scriptURL;if(t.removeOnUnmount===!0)for(var y=document.getElementsByTagName("script"),h=0;h-1&&y[h].parentNode&&y[h].parentNode.removeChild(y[h]);var v=pu[g];v&&(delete v.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete pu[g])},d.render=function(){var g=t.globalName,y=this.props;y.asyncScriptOnLoad;var h=y.forwardedRef,v=FIe(y,["asyncScriptOnLoad","forwardedRef"]);return g&&typeof window<"u"&&(v[g]=typeof window[g]<"u"?window[g]:void 0),v.ref=h,R.createElement(r,v)},u})(R.Component),o=R.forwardRef(function(l,u){return R.createElement(i,m3({},l,{forwardedRef:u}))});return o.displayName="AsyncScriptLoader("+a+")",o.propTypes={asyncScriptOnLoad:Ye.func},Qde(o,r)}}var g3="onloadcallback",WIe="grecaptcha";function v3(){return typeof window<"u"&&window.recaptchaOptions||{}}function zIe(){var e=v3(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+g3+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+g3+"&render=explicit"}const qIe=BIe(zIe,{callbackName:g3,globalName:WIe,attributes:v3().nonce?{nonce:v3().nonce}:{}})(x_),HIe=({sitekey:e,enabled:t,invisible:n})=>{n=n===void 0?!0:n;const[r,a]=R.useState(),[i,o]=R.useState(!1),l=R.createRef(),u=R.useRef("");return R.useEffect(()=>{var g,y;t&&l.current&&((g=l.current)==null||g.execute(),(y=l.current)==null||y.reset())},[t,l.current]),R.useEffect(()=>{setTimeout(()=>{u.current||o(!0)},2e3)},[]),{value:r,Component:()=>!t||!e?null:w.jsx(w.Fragment,{children:w.jsx(qIe,{sitekey:e,size:n&&!i?"invisible":void 0,ref:l,onChange:g=>{a(g),u.current=g}})}),LegalNotice:()=>!n||!t?null:w.jsxs("div",{className:"mt-5 recaptcha-closure",children:["This site is protected by reCAPTCHA and the Google",w.jsxs("a",{target:"_blank",href:"https://policies.google.com/privacy",children:[" ","Privacy Policy"," "]})," ","and",w.jsxs("a",{target:"_blank",href:"https://policies.google.com/terms",children:[" ","Terms of Service"," "]})," ","apply."]})}};var aE,lS,Dp,$p,Lp,Fp,dk;function wr(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var VIe=0;function Sl(e){return"__private_"+VIe+++"_"+e}const GIe=e=>{const n=Ml()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),bh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class bh{}aE=bh;bh.URL="/workspace/passport/check";bh.NewUrl=e=>Nl(aE.URL,void 0,e);bh.Method="post";bh.Fetch$=async(e,t,n,r)=>Rl(r??aE.NewUrl(e),{method:aE.Method,...n||{}},t);bh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new bl(o)})=>{t=t||(l=>new bl(l));const o=await aE.Fetch$(n,r,e,i);return Pl(o,l=>{const u=new Ws;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};bh.Definition={name:"CheckClassicPassport",cliName:"ccp",url:"/workspace/passport/check",method:"post",description:"Checks if a classic passport (email, phone) exists or not, used in multi step authentication",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"securityToken",description:"This can be the value of ReCaptcha2, ReCaptcha3, or generate security image or voice for verification. Will be used based on the configuration.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"flags",description:"Extra information that can be useful actually when doing onboarding. Make sure sensitive information doesn't go out.",type:"slice",primitive:"string"},{name:"otpInfo",description:"If the endpoint automatically triggers a send otp, then it would be holding that information, Also the otp information can become available.",type:"object?",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}]}};var ng=Sl("value"),rg=Sl("securityToken"),gA=Sl("isJsonAppliable");class lv{get value(){return wr(this,ng)[ng]}set value(t){wr(this,ng)[ng]=String(t)}setValue(t){return this.value=t,this}get securityToken(){return wr(this,rg)[rg]}set securityToken(t){wr(this,rg)[rg]=String(t)}setSecurityToken(t){return this.securityToken=t,this}constructor(t=void 0){if(Object.defineProperty(this,gA,{value:YIe}),Object.defineProperty(this,ng,{writable:!0,value:""}),Object.defineProperty(this,rg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(wr(this,gA)[gA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.securityToken!==void 0&&(this.securityToken=n.securityToken)}toJSON(){return{value:wr(this,ng)[ng],securityToken:wr(this,rg)[rg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",securityToken:"securityToken"}}static from(t){return new lv(t)}static with(t){return new lv(t)}copyWith(t){return new lv({...this.toJSON(),...t})}clone(){return new lv(this.toJSON())}}function YIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var ag=Sl("next"),ig=Sl("flags"),fd=Sl("otpInfo"),vA=Sl("isJsonAppliable");class bl{get next(){return wr(this,ag)[ag]}set next(t){wr(this,ag)[ag]=t}setNext(t){return this.next=t,this}get flags(){return wr(this,ig)[ig]}set flags(t){wr(this,ig)[ig]=t}setFlags(t){return this.flags=t,this}get otpInfo(){return wr(this,fd)[fd]}set otpInfo(t){t instanceof bl.OtpInfo?wr(this,fd)[fd]=t:wr(this,fd)[fd]=new bl.OtpInfo(t)}setOtpInfo(t){return this.otpInfo=t,this}constructor(t=void 0){if(Object.defineProperty(this,vA,{value:KIe}),Object.defineProperty(this,ag,{writable:!0,value:[]}),Object.defineProperty(this,ig,{writable:!0,value:[]}),Object.defineProperty(this,fd,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(wr(this,vA)[vA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.next!==void 0&&(this.next=n.next),n.flags!==void 0&&(this.flags=n.flags),n.otpInfo!==void 0&&(this.otpInfo=n.otpInfo)}toJSON(){return{next:wr(this,ag)[ag],flags:wr(this,ig)[ig],otpInfo:wr(this,fd)[fd]}}toString(){return JSON.stringify(this)}static get Fields(){return{next$:"next",get next(){return"next[:i]"},flags$:"flags",get flags(){return"flags[:i]"},otpInfo$:"otpInfo",get otpInfo(){return ah("otpInfo",bl.OtpInfo.Fields)}}}static from(t){return new bl(t)}static with(t){return new bl(t)}copyWith(t){return new bl({...this.toJSON(),...t})}clone(){return new bl(this.toJSON())}}lS=bl;function KIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}bl.OtpInfo=(Dp=Sl("suspendUntil"),$p=Sl("validUntil"),Lp=Sl("blockedUntil"),Fp=Sl("secondsToUnblock"),dk=Sl("isJsonAppliable"),class{get suspendUntil(){return wr(this,Dp)[Dp]}set suspendUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,Dp)[Dp]=r)}setSuspendUntil(t){return this.suspendUntil=t,this}get validUntil(){return wr(this,$p)[$p]}set validUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,$p)[$p]=r)}setValidUntil(t){return this.validUntil=t,this}get blockedUntil(){return wr(this,Lp)[Lp]}set blockedUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,Lp)[Lp]=r)}setBlockedUntil(t){return this.blockedUntil=t,this}get secondsToUnblock(){return wr(this,Fp)[Fp]}set secondsToUnblock(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,Fp)[Fp]=r)}setSecondsToUnblock(t){return this.secondsToUnblock=t,this}constructor(t=void 0){if(Object.defineProperty(this,dk,{value:XIe}),Object.defineProperty(this,Dp,{writable:!0,value:0}),Object.defineProperty(this,$p,{writable:!0,value:0}),Object.defineProperty(this,Lp,{writable:!0,value:0}),Object.defineProperty(this,Fp,{writable:!0,value:0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(wr(this,dk)[dk](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:wr(this,Dp)[Dp],validUntil:wr(this,$p)[$p],blockedUntil:wr(this,Lp)[Lp],secondsToUnblock:wr(this,Fp)[Fp]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(t){return new lS.OtpInfo(t)}static with(t){return new lS.OtpInfo(t)}copyWith(t){return new lS.OtpInfo({...this.toJSON(),...t})}clone(){return new lS.OtpInfo(this.toJSON())}});function XIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const QIe=({method:e})=>{var k,_,A;const t=Kt(xa),{goBack:n,push:r,state:a}=xr(),{locale:i}=sr(),o=GIe(),l=(a==null?void 0:a.canGoBack)!==!1;let u=!1,d="";const{data:f}=Cne({});f instanceof Ws&&f.data.item instanceof Yp&&(u=(k=f==null?void 0:f.data)==null?void 0:k.item.enabledRecaptcha2,d=(A=(_=f==null?void 0:f.data)==null?void 0:_.item)==null?void 0:A.recaptcha2ClientKey);const g=P=>{o.mutateAsync(new lv(P)).then(N=>{var j;const{next:I,flags:L}=(j=N==null?void 0:N.data)==null?void 0:j.item;I.includes("otp")&&I.length===1?r(`/${i}/selfservice/otp`,void 0,{value:P.value,type:e}):I.includes("signin-with-password")?r(`/${i}/selfservice/password`,void 0,{value:P.value,next:I,canContinueOnOtp:I==null?void 0:I.includes("otp"),flags:L}):I.includes("create-with-password")&&r(`/${i}/selfservice/complete`,void 0,{value:P.value,type:e,next:I,flags:L})}).catch(N=>{y==null||y.setErrors(f0(N))})},y=Jd({initialValues:{},onSubmit:g});let h=t.continueWithEmail,v=t.continueWithEmailDescription;e==="phone"&&(h=t.continueWithPhone,v=t.continueWithPhoneDescription);const{Component:E,LegalNotice:T,value:C}=HIe({enabled:u,sitekey:d});return R.useEffect(()=>{!u||!C||y.setFieldValue(lv.Fields.securityToken,C)},[C]),{title:h,mutation:o,canGoBack:l,form:y,enabledRecaptcha2:u,recaptcha2ClientKey:d,description:v,Recaptcha:E,LegalNotice:T,s:t,submit:g,goBack:n}};var iE;function Or(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var JIe=0;function Ru(e){return"__private_"+JIe+++"_"+e}const kne=e=>{const n=Ml()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),wh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class wh{}iE=wh;wh.URL="/passports/signin/classic";wh.NewUrl=e=>Nl(iE.URL,void 0,e);wh.Method="post";wh.Fetch$=async(e,t,n,r)=>Rl(r??iE.NewUrl(e),{method:iE.Method,...n||{}},t);wh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new uv(o)})=>{t=t||(l=>new uv(l));const o=await iE.Fetch$(n,r,e,i);return Pl(o,l=>{const u=new Ws;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};wh.Definition={name:"ClassicSignin",cliName:"in",url:"/passports/signin/classic",method:"post",description:"Signin publicly to and account using class passports (email, password)",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"Accepts login with totp code. If enabled, first login would return a success response with next[enter-totp] value and ui can understand that user needs to be navigated into the screen other screen.",type:"string"},{name:"sessionSecret",description:"Session secret when logging in to the application requires more steps to complete.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"},{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"totpUrl",description:"In case the account doesn't have totp, but enforced by installation, this value will contain the link",type:"string"},{name:"sessionSecret",description:"Returns a secret session if the authentication requires more steps.",type:"string"}]}};var og=Ru("value"),sg=Ru("password"),lg=Ru("totpCode"),ug=Ru("sessionSecret"),yA=Ru("isJsonAppliable");class wu{get value(){return Or(this,og)[og]}set value(t){Or(this,og)[og]=String(t)}setValue(t){return this.value=t,this}get password(){return Or(this,sg)[sg]}set password(t){Or(this,sg)[sg]=String(t)}setPassword(t){return this.password=t,this}get totpCode(){return Or(this,lg)[lg]}set totpCode(t){Or(this,lg)[lg]=String(t)}setTotpCode(t){return this.totpCode=t,this}get sessionSecret(){return Or(this,ug)[ug]}set sessionSecret(t){Or(this,ug)[ug]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}constructor(t=void 0){if(Object.defineProperty(this,yA,{value:ZIe}),Object.defineProperty(this,og,{writable:!0,value:""}),Object.defineProperty(this,sg,{writable:!0,value:""}),Object.defineProperty(this,lg,{writable:!0,value:""}),Object.defineProperty(this,ug,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Or(this,yA)[yA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret)}toJSON(){return{value:Or(this,og)[og],password:Or(this,sg)[sg],totpCode:Or(this,lg)[lg],sessionSecret:Or(this,ug)[ug]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode",sessionSecret:"sessionSecret"}}static from(t){return new wu(t)}static with(t){return new wu(t)}copyWith(t){return new wu({...this.toJSON(),...t})}clone(){return new wu(this.toJSON())}}function ZIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var pd=Ru("session"),cg=Ru("next"),dg=Ru("totpUrl"),fg=Ru("sessionSecret"),bA=Ru("isJsonAppliable"),x1=Ru("lateInitFields");class uv{get session(){return Or(this,pd)[pd]}set session(t){t instanceof Ta?Or(this,pd)[pd]=t:Or(this,pd)[pd]=new Ta(t)}setSession(t){return this.session=t,this}get next(){return Or(this,cg)[cg]}set next(t){Or(this,cg)[cg]=t}setNext(t){return this.next=t,this}get totpUrl(){return Or(this,dg)[dg]}set totpUrl(t){Or(this,dg)[dg]=String(t)}setTotpUrl(t){return this.totpUrl=t,this}get sessionSecret(){return Or(this,fg)[fg]}set sessionSecret(t){Or(this,fg)[fg]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}constructor(t=void 0){if(Object.defineProperty(this,x1,{value:tDe}),Object.defineProperty(this,bA,{value:eDe}),Object.defineProperty(this,pd,{writable:!0,value:void 0}),Object.defineProperty(this,cg,{writable:!0,value:[]}),Object.defineProperty(this,dg,{writable:!0,value:""}),Object.defineProperty(this,fg,{writable:!0,value:""}),t==null){Or(this,x1)[x1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Or(this,bA)[bA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),n.next!==void 0&&(this.next=n.next),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),Or(this,x1)[x1](t)}toJSON(){return{session:Or(this,pd)[pd],next:Or(this,cg)[cg],totpUrl:Or(this,dg)[dg],sessionSecret:Or(this,fg)[fg]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return ah("session",Ta.Fields)},next$:"next",get next(){return"next[:i]"},totpUrl:"totpUrl",sessionSecret:"sessionSecret"}}static from(t){return new uv(t)}static with(t){return new uv(t)}copyWith(t){return new uv({...this.toJSON(),...t})}clone(){return new uv(this.toJSON())}}function eDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function tDe(e={}){const t=e;t.session instanceof Ta||(this.session=new Ta(t.session||{}))}const tz=({method:e})=>{const{description:t,title:n,goBack:r,mutation:a,form:i,canGoBack:o,LegalNotice:l,Recaptcha:u,s:d}=QIe({method:e});return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:n}),w.jsx("p",{children:t}),w.jsx(Al,{query:a}),w.jsx(rDe,{form:i,method:e,mutation:a}),w.jsx(u,{}),o?w.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:r,children:d.chooseAnotherMethod}):null,w.jsx(l,{})]})},nDe=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),rDe=({form:e,mutation:t,method:n})=>{var o,l,u;let r="email";n===Ms.Phone&&(r="phonenumber");let a=!((o=e==null?void 0:e.values)!=null&&o.value);Ms.Email===n&&(a=!nDe((l=e==null?void 0:e.values)==null?void 0:l.value));const i=Kt(xa);return w.jsxs("form",{onSubmit:d=>{d.preventDefault(),e.submitForm()},children:[w.jsx(In,{autoFocus:!0,type:r,id:"value-input",dir:"ltr",value:(u=e==null?void 0:e.values)==null?void 0:u.value,errorMessage:e==null?void 0:e.errors.value,onChange:d=>e.setFieldValue(wu.Fields.value,d,!1)}),w.jsx(Us,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:a,children:i.continue})]})};var aDe=Object.defineProperty,Ax=Object.getOwnPropertySymbols,xne=Object.prototype.hasOwnProperty,_ne=Object.prototype.propertyIsEnumerable,nz=(e,t,n)=>t in e?aDe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y3=(e,t)=>{for(var n in t||(t={}))xne.call(t,n)&&nz(e,n,t[n]);if(Ax)for(var n of Ax(t))_ne.call(t,n)&&nz(e,n,t[n]);return e},b3=(e,t)=>{var n={};for(var r in e)xne.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ax)for(var r of Ax(e))t.indexOf(r)<0&&_ne.call(e,r)&&(n[r]=e[r]);return n};/** + `),()=>{document.head.contains(h)&&document.head.removeChild(h)}},[t]),w.jsx(tNe,{isPresent:t,childRef:a,sizeRef:i,children:R.cloneElement(e,{ref:a})})}const rNe=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:i,mode:o,anchorX:l})=>{const u=sj(aNe),d=R.useId();let f=!0,g=R.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:a,onExitComplete:y=>{u.set(y,!0);for(const h of u.values())if(!h)return;r&&r()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[n,u,r]);return i&&f&&(g={...g}),R.useMemo(()=>{u.forEach((y,h)=>u.set(h,!1))},[n]),R.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=w.jsx(nNe,{isPresent:n,anchorX:l,children:e})),w.jsx(M_.Provider,{value:g,children:e})};function aNe(){return new Map}function Vte(e=!0){const t=R.useContext(M_);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,i=R.useId();R.useEffect(()=>{if(e)return a(i)},[e]);const o=R.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const mk=e=>e.key||"";function wW(e){const t=[];return R.Children.forEach(e,n=>{R.isValidElement(n)&&t.push(n)}),t}const iNe=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:i="sync",propagate:o=!1,anchorX:l="left"})=>{const[u,d]=Vte(o),f=R.useMemo(()=>wW(e),[e]),g=o&&!u?[]:f.map(mk),y=R.useRef(!0),h=R.useRef(f),v=sj(()=>new Map),[E,T]=R.useState(f),[C,k]=R.useState(f);nte(()=>{y.current=!1,h.current=f;for(let P=0;P{const N=mk(P),I=o&&!u?!1:f===C||g.includes(N),L=()=>{if(v.has(N))v.set(N,!0);else return;let j=!0;v.forEach(z=>{z||(j=!1)}),j&&(A==null||A(),k(h.current),o&&(d==null||d()),r&&r())};return w.jsx(rNe,{isPresent:I,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:i,onExitComplete:I?void 0:L,anchorX:l,children:P},N)})})},Gte=R.createContext({strict:!1}),SW={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},p0={};for(const e in SW)p0[e]={isEnabled:t=>SW[e].some(n=>!!t[n])};function oNe(e){for(const t in e)p0[t]={...p0[t],...e[t]}}const sNe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ux(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||sNe.has(e)}let Yte=e=>!Ux(e);function lNe(e){typeof e=="function"&&(Yte=t=>t.startsWith("on")?!Ux(t):e(t))}try{lNe(require("@emotion/is-prop-valid").default)}catch{}function uNe(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(Yte(a)||n===!0&&Ux(a)||!t&&!Ux(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function cNe(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const I_=R.createContext({});function D_(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function sE(e){return typeof e=="string"||Array.isArray(e)}const Nj=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mj=["initial",...Nj];function $_(e){return D_(e.animate)||Mj.some(t=>sE(e[t]))}function Kte(e){return!!($_(e)||e.variants)}function dNe(e,t){if($_(e)){const{initial:n,animate:r}=e;return{initial:n===!1||sE(n)?n:void 0,animate:sE(r)?r:void 0}}return e.inherit!==!1?t:{}}function fNe(e){const{initial:t,animate:n}=dNe(e,R.useContext(I_));return R.useMemo(()=>({initial:t,animate:n}),[EW(t),EW(n)])}function EW(e){return Array.isArray(e)?e.join(" "):e}const pNe=Symbol.for("motionComponentSymbol");function $b(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function hNe(e,t,n){return R.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):$b(n)&&(n.current=r))},[t])}const Ij=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),mNe="framerAppearId",Xte="data-"+Ij(mNe),Qte=R.createContext({});function gNe(e,t,n,r,a){var E,T;const{visualElement:i}=R.useContext(I_),o=R.useContext(Gte),l=R.useContext(M_),u=R.useContext(Aj).reducedMotion,d=R.useRef(null);r=r||o.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:i,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,g=R.useContext(Qte);f&&!f.projection&&a&&(f.type==="html"||f.type==="svg")&&vNe(d.current,n,a,g);const y=R.useRef(!1);R.useInsertionEffect(()=>{f&&y.current&&f.update(n,l)});const h=n[Xte],v=R.useRef(!!h&&!((E=window.MotionHandoffIsComplete)!=null&&E.call(window,h))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,h)));return nte(()=>{f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Rj.render(f.render),v.current&&f.animationState&&f.animationState.animateChanges())}),R.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,h)}),v.current=!1))}),f}function vNe(e,t,n,r){const{layoutId:a,layout:i,drag:o,dragConstraints:l,layoutScroll:u,layoutRoot:d,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Jte(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!o||l&&$b(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:u,layoutRoot:d})}function Jte(e){if(e)return e.options.allowProjection!==!1?e.projection:Jte(e.parent)}function yNe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){e&&oNe(e);function i(l,u){let d;const f={...R.useContext(Aj),...l,layoutId:bNe(l)},{isStatic:g}=f,y=fNe(l),h=r(l,g);if(!g&&lj){wNe();const v=SNe(f);d=v.MeasureLayout,y.visualElement=gNe(a,h,f,t,v.ProjectionNode)}return w.jsxs(I_.Provider,{value:y,children:[d&&y.visualElement?w.jsx(d,{visualElement:y.visualElement,...f}):null,n(a,l,hNe(h,y.visualElement,u),h,g,y.visualElement)]})}i.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const o=R.forwardRef(i);return o[pNe]=a,o}function bNe({layoutId:e}){const t=R.useContext(oj).id;return t&&e!==void 0?t+"-"+e:e}function wNe(e,t){R.useContext(Gte).strict}function SNe(e){const{drag:t,layout:n}=p0;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const lE={};function ENe(e){for(const t in e)lE[t]=e[t],gj(t)&&(lE[t].isCSSVariable=!0)}function Zte(e,{layout:t,layoutId:n}){return R0.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!lE[e]||e==="opacity")}const TNe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},CNe=O0.length;function kNe(e,t,n){let r="",a=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}});function ene(e,t,n){for(const r in t)!to(t[r])&&!Zte(r,n)&&(e[r]=t[r])}function xNe({transformTemplate:e},t){return R.useMemo(()=>{const n=$j();return Dj(n,t,e),Object.assign({},n.vars,n.style)},[t])}function _Ne(e,t){const n=e.style||{},r={};return ene(r,n,e),Object.assign(r,xNe(e,t)),r}function ONe(e,t){const n={},r=_Ne(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const RNe={offset:"stroke-dashoffset",array:"stroke-dasharray"},PNe={offset:"strokeDashoffset",array:"strokeDasharray"};function ANe(e,t,n=1,r=0,a=!0){e.pathLength=1;const i=a?RNe:PNe;e[i.offset]=mn.transform(-r);const o=mn.transform(t),l=mn.transform(n);e[i.array]=`${o} ${l}`}function tne(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:i=1,pathOffset:o=0,...l},u,d,f){if(Dj(e,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y}=e;g.transform&&(y.transform=g.transform,delete g.transform),(y.transform||g.transformOrigin)&&(y.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),y.transform&&(y.transformBox=(f==null?void 0:f.transformBox)??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&ANe(g,a,i,o,!1)}const nne=()=>({...$j(),attrs:{}}),rne=e=>typeof e=="string"&&e.toLowerCase()==="svg";function NNe(e,t,n,r){const a=R.useMemo(()=>{const i=nne();return tne(i,t,rne(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ene(i,e.style,e),a.style={...i,...a.style}}return a}const MNe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Lj(e){return typeof e!="string"||e.includes("-")?!1:!!(MNe.indexOf(e)>-1||/[A-Z]/u.test(e))}function INe(e=!1){return(n,r,a,{latestValues:i},o)=>{const u=(Lj(n)?NNe:ONe)(r,i,o,n),d=uNe(r,typeof n=="string",e),f=n!==R.Fragment?{...d,...u,ref:a}:{},{children:g}=r,y=R.useMemo(()=>to(g)?g.get():g,[g]);return R.createElement(n,{...f,children:y})}}function TW(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Fj(e,t,n,r){if(typeof t=="function"){const[a,i]=TW(r);t=t(n!==void 0?n:e.custom,a,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,i]=TW(r);t=t(n!==void 0?n:e.custom,a,i)}return t}function Yk(e){return to(e)?e.get():e}function DNe({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:$Ne(n,r,a,e),renderState:t()}}const ane=e=>(t,n)=>{const r=R.useContext(I_),a=R.useContext(M_),i=()=>DNe(e,t,r,a);return n?i():sj(i)};function $Ne(e,t,n,r){const a={},i=r(e,{});for(const y in i)a[y]=Yk(i[y]);let{initial:o,animate:l}=e;const u=$_(e),d=Kte(e);t&&d&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let f=n?n.initial===!1:!1;f=f||o===!1;const g=f?l:o;if(g&&typeof g!="boolean"&&!D_(g)){const y=Array.isArray(g)?g:[g];for(let h=0;hArray.isArray(e);function UNe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,f0(n))}function BNe(e){return v3(e)?e[e.length-1]||0:e}function WNe(e,t){const n=uE(e,t);let{transitionEnd:r={},transition:a={},...i}=n||{};i={...i,...r};for(const o in i){const l=BNe(i[o]);UNe(e,o,l)}}function zNe(e){return!!(to(e)&&e.add)}function y3(e,t){const n=e.getValue("willChange");if(zNe(n))return n.add(t);if(!n&&qd.WillChange){const r=new qd.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function one(e){return e.props[Xte]}const qNe=e=>e!==null;function HNe(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(qNe),i=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[i]}const VNe={type:"spring",stiffness:500,damping:25,restSpeed:10},GNe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),YNe={type:"keyframes",duration:.8},KNe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},XNe=(e,{keyframes:t})=>t.length>2?YNe:R0.has(e)?e.startsWith("scale")?GNe(t[1]):VNe:KNe;function QNe({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:i,repeatType:o,repeatDelay:l,from:u,elapsed:d,...f}){return!!Object.keys(f).length}const Uj=(e,t,n,r={},a,i)=>o=>{const l=_j(r,e)||{},u=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Tc(u);const f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:y=>{t.set(y),l.onUpdate&&l.onUpdate(y)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:a};QNe(l)||Object.assign(f,XNe(e,f)),f.duration&&(f.duration=Tc(f.duration)),f.repeatDelay&&(f.repeatDelay=Tc(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let g=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(g=!0)),(qd.instantAnimations||qd.skipAnimations)&&(g=!0,f.duration=0,f.delay=0),f.allowFlatten=!l.type&&!l.ease,g&&!i&&t.get()!==void 0){const y=HNe(f.keyframes,l);if(y!==void 0){ha.update(()=>{f.onUpdate(y),f.onComplete()});return}}return l.isSync?new Cj(f):new PAe(f)};function JNe({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function sne(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(i=r);const u=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const f in l){const g=e.getValue(f,e.latestValues[f]??null),y=l[f];if(y===void 0||d&&JNe(d,f))continue;const h={delay:n,..._j(i||{},f)},v=g.get();if(v!==void 0&&!g.isAnimating&&!Array.isArray(y)&&y===v&&!h.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const C=one(e);if(C){const k=window.MotionHandoffAnimation(C,f,ha);k!==null&&(h.startTime=k,E=!0)}}y3(e,f),g.start(Uj(f,g,y,e.shouldReduceMotion&&$te.has(f)?{type:!1}:h,e,E));const T=g.animation;T&&u.push(T)}return o&&Promise.all(u).then(()=>{ha.update(()=>{o&&WNe(e,o)})}),u}function b3(e,t,n={}){var u;const r=uE(e,t,n.type==="exit"?(u=e.presenceContext)==null?void 0:u.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const i=r?()=>Promise.all(sne(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:g,staggerDirection:y}=a;return ZNe(e,t,f+d,g,y,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[d,f]=l==="beforeChildren"?[i,o]:[o,i];return d().then(()=>f())}else return Promise.all([i(),o(n.delay)])}function ZNe(e,t,n=0,r=0,a=1,i){const o=[],l=(e.variantChildren.size-1)*r,u=a===1?(d=0)=>d*r:(d=0)=>l-d*r;return Array.from(e.variantChildren).sort(e2e).forEach((d,f)=>{d.notify("AnimationStart",t),o.push(b3(d,t,{...i,delay:n+u(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function e2e(e,t){return e.sortNodePosition(t)}function t2e(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(i=>b3(e,i,n));r=Promise.all(a)}else if(typeof t=="string")r=b3(e,t,n);else{const a=typeof t=="function"?uE(e,t,n.custom):t;r=Promise.all(sne(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function lne(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>t2e(e,n,r)))}function o2e(e){let t=i2e(e),n=CW(),r=!0;const a=u=>(d,f)=>{var y;const g=uE(e,f,u==="exit"?(y=e.presenceContext)==null?void 0:y.custom:void 0);if(g){const{transition:h,transitionEnd:v,...E}=g;d={...d,...E,...v}}return d};function i(u){t=u(e)}function o(u){const{props:d}=e,f=une(e.parent)||{},g=[],y=new Set;let h={},v=1/0;for(let T=0;Tv&&A,j=!1;const z=Array.isArray(_)?_:[_];let Q=z.reduce(a(C),{});P===!1&&(Q={});const{prevResolvedValues:le={}}=k,re={...le,...Q},ge=G=>{L=!0,y.has(G)&&(j=!0,y.delete(G)),k.needsAnimating[G]=!0;const q=e.getValue(G);q&&(q.liveStyle=!1)};for(const G in re){const q=Q[G],ce=le[G];if(h.hasOwnProperty(G))continue;let H=!1;v3(q)&&v3(ce)?H=!lne(q,ce):H=q!==ce,H?q!=null?ge(G):y.add(G):q!==void 0&&y.has(G)?ge(G):k.protectedKeys[G]=!0}k.prevProp=_,k.prevResolvedValues=Q,k.isActive&&(h={...h,...Q}),r&&e.blockInitialAnimation&&(L=!1),L&&(!(N&&I)||j)&&g.push(...z.map(G=>({animation:G,options:{type:C}})))}if(y.size){const T={};if(typeof d.initial!="boolean"){const C=uE(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(T.transition=C.transition)}y.forEach(C=>{const k=e.getBaseTarget(C),_=e.getValue(C);_&&(_.liveStyle=!0),T[C]=k??null}),g.push({animation:T})}let E=!!g.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(g):Promise.resolve()}function l(u,d){var g;if(n[u].isActive===d)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(y=>{var h;return(h=y.animationState)==null?void 0:h.setActive(u,d)}),n[u].isActive=d;const f=o(u);for(const y in n)n[y].protectedKeys={};return f}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=CW(),r=!0}}}function s2e(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!lne(t,e):!1}function Fm(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function CW(){return{animate:Fm(!0),whileInView:Fm(),whileHover:Fm(),whileTap:Fm(),whileDrag:Fm(),whileFocus:Fm(),exit:Fm()}}class bh{constructor(t){this.isMounted=!1,this.node=t}update(){}}class l2e extends bh{constructor(t){super(t),t.animationState||(t.animationState=o2e(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();D_(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let u2e=0;class c2e extends bh{constructor(){super(...arguments),this.id=u2e++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const d2e={animation:{Feature:l2e},exit:{Feature:c2e}};function cE(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function YE(e){return{point:{x:e.pageX,y:e.pageY}}}const f2e=e=>t=>Pj(t)&&e(t,YE(t));function PS(e,t,n,r){return cE(e,t,f2e(n),r)}function cne({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function p2e({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function h2e(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const dne=1e-4,m2e=1-dne,g2e=1+dne,fne=.01,v2e=0-fne,y2e=0+fne;function $o(e){return e.max-e.min}function b2e(e,t,n){return Math.abs(e-t)<=n}function kW(e,t,n,r=.5){e.origin=r,e.originPoint=fa(t.min,t.max,e.origin),e.scale=$o(n)/$o(t),e.translate=fa(n.min,n.max,e.origin)-e.originPoint,(e.scale>=m2e&&e.scale<=g2e||isNaN(e.scale))&&(e.scale=1),(e.translate>=v2e&&e.translate<=y2e||isNaN(e.translate))&&(e.translate=0)}function AS(e,t,n,r){kW(e.x,t.x,n.x,r?r.originX:void 0),kW(e.y,t.y,n.y,r?r.originY:void 0)}function xW(e,t,n){e.min=n.min+t.min,e.max=e.min+$o(t)}function w2e(e,t,n){xW(e.x,t.x,n.x),xW(e.y,t.y,n.y)}function _W(e,t,n){e.min=t.min-n.min,e.max=e.min+$o(t)}function NS(e,t,n){_W(e.x,t.x,n.x),_W(e.y,t.y,n.y)}const OW=()=>({translate:0,scale:1,origin:0,originPoint:0}),Lb=()=>({x:OW(),y:OW()}),RW=()=>({min:0,max:0}),$a=()=>({x:RW(),y:RW()});function Sl(e){return[e("x"),e("y")]}function mA(e){return e===void 0||e===1}function w3({scale:e,scaleX:t,scaleY:n}){return!mA(e)||!mA(t)||!mA(n)}function ov(e){return w3(e)||pne(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function pne(e){return PW(e.x)||PW(e.y)}function PW(e){return e&&e!=="0%"}function Bx(e,t,n){const r=e-n,a=t*r;return n+a}function AW(e,t,n,r,a){return a!==void 0&&(e=Bx(e,a,r)),Bx(e,n,r)+t}function S3(e,t=0,n=1,r,a){e.min=AW(e.min,t,n,r,a),e.max=AW(e.max,t,n,r,a)}function hne(e,{x:t,y:n}){S3(e.x,t.translate,t.scale,t.originPoint),S3(e.y,n.translate,n.scale,n.originPoint)}const NW=.999999999999,MW=1.0000000000001;function S2e(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let i,o;for(let l=0;lNW&&(t.x=1),t.yNW&&(t.y=1)}function Fb(e,t){e.min=e.min+t,e.max=e.max+t}function IW(e,t,n,r,a=.5){const i=fa(e.min,e.max,a);S3(e,t,n,i,r)}function jb(e,t){IW(e.x,t.x,t.scaleX,t.scale,t.originX),IW(e.y,t.y,t.scaleY,t.scale,t.originY)}function mne(e,t){return cne(h2e(e.getBoundingClientRect(),t))}function E2e(e,t,n){const r=mne(e,n),{scroll:a}=t;return a&&(Fb(r.x,a.offset.x),Fb(r.y,a.offset.y)),r}const gne=({current:e})=>e?e.ownerDocument.defaultView:null,DW=(e,t)=>Math.abs(e-t);function T2e(e,t){const n=DW(e.x,t.x),r=DW(e.y,t.y);return Math.sqrt(n**2+r**2)}class vne{constructor(t,n,{transformPagePoint:r,contextWindow:a,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=vA(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,h=T2e(g.offset,{x:0,y:0})>=3;if(!y&&!h)return;const{point:v}=g,{timestamp:E}=Fi;this.history.push({...v,timestamp:E});const{onStart:T,onMove:C}=this.handlers;y||(T&&T(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,g)},this.handlePointerMove=(g,y)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=gA(y,this.transformPagePoint),ha.update(this.updatePoint,!0)},this.handlePointerUp=(g,y)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=vA(g.type==="pointercancel"?this.lastMoveEventInfo:gA(y,this.transformPagePoint),this.history);this.startEvent&&h&&h(g,T),v&&v(g,T)},!Pj(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const o=YE(t),l=gA(o,this.transformPagePoint),{point:u}=l,{timestamp:d}=Fi;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,vA(l,this.history)),this.removeListeners=HE(PS(this.contextWindow,"pointermove",this.handlePointerMove),PS(this.contextWindow,"pointerup",this.handlePointerUp),PS(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),lh(this.updatePoint)}}function gA(e,t){return t?{point:t(e.point)}:e}function $W(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vA({point:e},t){return{point:e,delta:$W(e,yne(t)),offset:$W(e,C2e(t)),velocity:k2e(t,.1)}}function C2e(e){return e[0]}function yne(e){return e[e.length-1]}function k2e(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=yne(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Tc(t)));)n--;if(!r)return{x:0,y:0};const i=Cc(a.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(a.x-r.x)/i,y:(a.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function x2e(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?fa(n,e,r.max):Math.min(e,n)),e}function LW(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function _2e(e,{top:t,left:n,bottom:r,right:a}){return{x:LW(e.x,n,a),y:LW(e.y,t,r)}}function FW(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=aE(t.min,t.max-r,e.min):r>a&&(n=aE(e.min,e.max-a,t.min)),zd(0,1,n)}function P2e(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const E3=.35;function A2e(e=E3){return e===!1?e=0:e===!0&&(e=E3),{x:jW(e,"left","right"),y:jW(e,"top","bottom")}}function jW(e,t,n){return{min:UW(e,t),max:UW(e,n)}}function UW(e,t){return typeof e=="number"?e:e[t]||0}const N2e=new WeakMap;class M2e{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$a(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=f=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(YE(f).point)},i=(f,g)=>{const{drag:y,dragPropagation:h,onDragStart:v}=this.getProps();if(y&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=VAe(y),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Sl(T=>{let C=this.getAxisMotionValue(T).get()||0;if(kc.test(C)){const{projection:k}=this.visualElement;if(k&&k.layout){const _=k.layout.layoutBox[T];_&&(C=$o(_)*(parseFloat(C)/100))}}this.originPoint[T]=C}),v&&ha.postRender(()=>v(f,g)),y3(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},o=(f,g)=>{const{dragPropagation:y,dragDirectionLock:h,onDirectionLock:v,onDrag:E}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:T}=g;if(h&&this.currentDirection===null){this.currentDirection=I2e(T),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",g.point,T),this.updateAxis("y",g.point,T),this.visualElement.render(),E&&E(f,g)},l=(f,g)=>this.stop(f,g),u=()=>Sl(f=>{var g;return this.getAnimationState(f)==="paused"&&((g=this.getAxisMotionValue(f).animation)==null?void 0:g.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new vne(t,{onSessionStart:a,onStart:i,onMove:o,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:gne(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:i}=this.getProps();i&&ha.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!gk(t,a,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=x2e(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,a=this.constraints;t&&$b(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=_2e(r.layoutBox,t):this.constraints=!1,this.elastic=A2e(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Sl(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=P2e(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!$b(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=E2e(r,a.root,this.visualElement.getTransformPagePoint());let o=O2e(a.layout.layoutBox,i);if(n){const l=n(p2e(o));this.hasMutatedConstraints=!!l,l&&(o=cne(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},d=Sl(f=>{if(!gk(f,n,this.currentDirection))return;let g=u&&u[f]||{};o&&(g={min:0,max:0});const y=a?200:1e6,h=a?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:y,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...g};return this.startAxisValueAnimation(f,v)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return y3(this.visualElement,t),r.start(Uj(t,r,0,n,this.visualElement,!1))}stopAnimation(){Sl(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Sl(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Sl(n=>{const{drag:r}=this.getProps();if(!gk(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:o,max:l}=a.layout.layoutBox[n];i.set(t[n]-fa(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!$b(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Sl(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const u=l.get();a[o]=R2e({min:u,max:u},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Sl(o=>{if(!gk(o,t,null))return;const l=this.getAxisMotionValue(o),{min:u,max:d}=this.constraints[o];l.set(fa(u,d,a[o]))})}addListeners(){if(!this.visualElement.current)return;N2e.set(this.visualElement,this);const t=this.visualElement.current,n=PS(t,"pointerdown",u=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();$b(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),ha.read(r);const o=cE(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(Sl(f=>{const g=this.getAxisMotionValue(f);g&&(this.originPoint[f]+=u[f].translate,g.set(g.get()+u[f].translate))}),this.visualElement.render())}));return()=>{o(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:o=E3,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function gk(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function I2e(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class D2e extends bh{constructor(t){super(t),this.removeGroupControls=Nl,this.removeListeners=Nl,this.controls=new M2e(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nl}unmount(){this.removeGroupControls(),this.removeListeners()}}const BW=e=>(t,n)=>{e&&ha.postRender(()=>e(t,n))};class $2e extends bh{constructor(){super(...arguments),this.removePointerDownListener=Nl}onPointerDown(t){this.session=new vne(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gne(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:BW(t),onStart:BW(n),onMove:r,onEnd:(i,o)=>{delete this.session,a&&ha.postRender(()=>a(i,o))}}}mount(){this.removePointerDownListener=PS(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Kk={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function WW(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const M1={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(mn.test(e))e=parseFloat(e);else return e;const n=WW(e,t.target.x),r=WW(e,t.target.y);return`${n}% ${r}%`}},L2e={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=uh.parse(e);if(a.length>5)return r;const i=uh.createTransformer(e),o=typeof a[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;a[0+o]/=l,a[1+o]/=u;const d=fa(l,u,.5);return typeof a[2+o]=="number"&&(a[2+o]/=d),typeof a[3+o]=="number"&&(a[3+o]/=d),i(a)}};class F2e extends R.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:i}=t;ENe(j2e),i&&(n.group&&n.group.add(i),r&&r.register&&a&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Kk.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,a||t.layoutDependency!==n||n===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ha.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Rj.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function bne(e){const[t,n]=Vte(),r=R.useContext(oj);return w.jsx(F2e,{...e,layoutGroup:r,switchLayoutGroup:R.useContext(Qte),isPresent:t,safeToRemove:n})}const j2e={borderRadius:{...M1,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:M1,borderTopRightRadius:M1,borderBottomLeftRadius:M1,borderBottomRightRadius:M1,boxShadow:L2e};function U2e(e,t,n){const r=to(e)?e:f0(e);return r.start(Uj("",r,t,n)),r.animation}const B2e=(e,t)=>e.depth-t.depth;class W2e{constructor(){this.children=[],this.isDirty=!1}add(t){uj(this.children,t),this.isDirty=!0}remove(t){cj(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(B2e),this.isDirty=!1,this.children.forEach(t)}}function z2e(e,t){const n=os.now(),r=({timestamp:a})=>{const i=a-n;i>=t&&(lh(r),e(i-t))};return ha.setup(r,!0),()=>lh(r)}const wne=["TopLeft","TopRight","BottomLeft","BottomRight"],q2e=wne.length,zW=e=>typeof e=="string"?parseFloat(e):e,qW=e=>typeof e=="number"||mn.test(e);function H2e(e,t,n,r,a,i){a?(e.opacity=fa(0,n.opacity??1,V2e(r)),e.opacityExit=fa(t.opacity??1,0,G2e(r))):i&&(e.opacity=fa(t.opacity??1,n.opacity??1,r));for(let o=0;ort?1:n(aE(e,t,r))}function VW(e,t){e.min=t.min,e.max=t.max}function bl(e,t){VW(e.x,t.x),VW(e.y,t.y)}function GW(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function YW(e,t,n,r,a){return e-=t,e=Bx(e,1/n,r),a!==void 0&&(e=Bx(e,1/a,r)),e}function Y2e(e,t=0,n=1,r=.5,a,i=e,o=e){if(kc.test(t)&&(t=parseFloat(t),t=fa(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=fa(i.min,i.max,r);e===i&&(l-=t),e.min=YW(e.min,t,n,l,a),e.max=YW(e.max,t,n,l,a)}function KW(e,t,[n,r,a],i,o){Y2e(e,t[n],t[r],t[a],t.scale,i,o)}const K2e=["x","scaleX","originX"],X2e=["y","scaleY","originY"];function XW(e,t,n,r){KW(e.x,t,K2e,n?n.x:void 0,r?r.x:void 0),KW(e.y,t,X2e,n?n.y:void 0,r?r.y:void 0)}function QW(e){return e.translate===0&&e.scale===1}function Ene(e){return QW(e.x)&&QW(e.y)}function JW(e,t){return e.min===t.min&&e.max===t.max}function Q2e(e,t){return JW(e.x,t.x)&&JW(e.y,t.y)}function ZW(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Tne(e,t){return ZW(e.x,t.x)&&ZW(e.y,t.y)}function ez(e){return $o(e.x)/$o(e.y)}function tz(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class J2e{constructor(){this.members=[]}add(t){uj(this.members,t),t.scheduleRender()}remove(t){if(cj(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Z2e(e,t,n){let r="";const a=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((a||i||o)&&(r=`translate3d(${a}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:g,rotateY:y,skewX:h,skewY:v}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),g&&(r+=`rotateX(${g}deg) `),y&&(r+=`rotateY(${y}deg) `),h&&(r+=`skewX(${h}deg) `),v&&(r+=`skewY(${v}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const yA=["","X","Y","Z"],eMe={visibility:"hidden"},tMe=1e3;let nMe=0;function bA(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Cne(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=one(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ha,!(a||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Cne(r)}function kne({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(o={},l=t==null?void 0:t()){this.id=nMe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(iMe),this.nodes.forEach(uMe),this.nodes.forEach(cMe),this.nodes.forEach(oMe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=z2e(g,250),Kk.hasAnimatedSinceResize&&(Kk.hasAnimatedSinceResize=!1,this.nodes.forEach(az))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||mMe,{onLayoutAnimationStart:E,onLayoutAnimationComplete:T}=d.getProps(),C=!this.targetLayout||!Tne(this.targetLayout,h),k=!g&&y;if(this.options.layoutRoot||this.resumeFrom||k||g&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const _={..._j(v,"layout"),onPlay:E,onComplete:T};(d.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_),this.setAnimationOrigin(f,k)}else g||az(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),lh(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(dMe),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Cne(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$o(this.snapshot.measuredBox.x)&&!$o(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const P=A/1e3;iz(g.x,o.x,P),iz(g.y,o.y,P),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(NS(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pMe(this.relativeTarget,this.relativeTargetOrigin,y,P),_&&Q2e(this.relativeTarget,_)&&(this.isProjectionDirty=!1),_||(_=$a()),bl(_,this.relativeTarget)),E&&(this.animationValues=f,H2e(f,d,this.latestValues,P,k,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var l,u,d;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(d=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||d.stop(),this.pendingAnimation&&(lh(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ha.update(()=>{Kk.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=f0(0)),this.currentAnimation=U2e(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),o.onUpdate&&o.onUpdate(f)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(tMe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:u,layout:d,latestValues:f}=o;if(!(!l||!u||!d)){if(this!==o&&this.layout&&d&&xne(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||$a();const g=$o(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+g;const y=$o(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+y}bl(l,u),jb(l,f),AS(this.projectionDeltaWithTransform,this.layoutCorrected,l,f)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new J2e),this.sharedNodes.get(o).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var l;const{layoutId:o}=this.options;return o?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:o}=this.options;return o?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const d={};u.z&&bA("z",o,d,this.animationValues);for(let f=0;f{var l;return(l=o.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(nz),this.root.sharedNodes.clear()}}}function rMe(e){e.updateLayout()}function aMe(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;i==="size"?Sl(g=>{const y=o?t.measuredBox[g]:t.layoutBox[g],h=$o(y);y.min=r[g].min,y.max=y.min+h}):xne(i,t.layoutBox,r)&&Sl(g=>{const y=o?t.measuredBox[g]:t.layoutBox[g],h=$o(r[g]);y.max=y.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+h)});const l=Lb();AS(l,r,t.layoutBox);const u=Lb();o?AS(u,e.applyTransform(a,!0),t.measuredBox):AS(u,r,t.layoutBox);const d=!Ene(l);let f=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:y,layout:h}=g;if(y&&h){const v=$a();NS(v,t.layoutBox,y.layoutBox);const E=$a();NS(E,r,h.layoutBox),Tne(v,E)||(f=!0),g.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=v,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:u,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function iMe(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function oMe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sMe(e){e.clearSnapshot()}function nz(e){e.clearMeasurements()}function rz(e){e.isLayoutDirty=!1}function lMe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function az(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function uMe(e){e.resolveTargetDelta()}function cMe(e){e.calcProjection()}function dMe(e){e.resetSkewAndRotation()}function fMe(e){e.removeLeadSnapshot()}function iz(e,t,n){e.translate=fa(t.translate,0,n),e.scale=fa(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function oz(e,t,n,r){e.min=fa(t.min,n.min,r),e.max=fa(t.max,n.max,r)}function pMe(e,t,n,r){oz(e.x,t.x,n.x,r),oz(e.y,t.y,n.y,r)}function hMe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const mMe={duration:.45,ease:[.4,0,.1,1]},sz=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),lz=sz("applewebkit/")&&!sz("chrome/")?Math.round:Nl;function uz(e){e.min=lz(e.min),e.max=lz(e.max)}function gMe(e){uz(e.x),uz(e.y)}function xne(e,t,n){return e==="position"||e==="preserve-aspect"&&!b2e(ez(t),ez(n),.2)}function vMe(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const yMe=kne({attachResizeListener:(e,t)=>cE(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wA={current:void 0},_ne=kne({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wA.current){const e=new yMe({});e.mount(window),e.setOptions({layoutScroll:!0}),wA.current=e}return wA.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),bMe={pan:{Feature:$2e},drag:{Feature:D2e,ProjectionNode:_ne,MeasureLayout:bne}};function cz(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,i=r[a];i&&ha.postRender(()=>i(t,YE(t)))}class wMe extends bh{mount(){const{current:t}=this.node;t&&(this.unmount=GAe(t,(n,r)=>(cz(this.node,r,"Start"),a=>cz(this.node,a,"End"))))}unmount(){}}class SMe extends bh{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=HE(cE(this.node.current,"focus",()=>this.onFocus()),cE(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function dz(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),i=r[a];i&&ha.postRender(()=>i(t,YE(t)))}class EMe extends bh{mount(){const{current:t}=this.node;t&&(this.unmount=QAe(t,(n,r)=>(dz(this.node,r,"Start"),(a,{success:i})=>dz(this.node,a,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const T3=new WeakMap,SA=new WeakMap,TMe=e=>{const t=T3.get(e.target);t&&t(e)},CMe=e=>{e.forEach(TMe)};function kMe({root:e,...t}){const n=e||document;SA.has(n)||SA.set(n,{});const r=SA.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(CMe,{root:e,...t})),r[a]}function xMe(e,t,n){const r=kMe(t);return T3.set(e,n),r.observe(e),()=>{T3.delete(e),r.unobserve(e)}}const _Me={some:0,all:1};class OMe extends bh{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:_Me[a]},l=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:g}=this.node.getProps(),y=d?f:g;y&&y(u)};return xMe(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(RMe(t,n))&&this.startObserver()}unmount(){}}function RMe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const PMe={inView:{Feature:OMe},tap:{Feature:EMe},focus:{Feature:SMe},hover:{Feature:wMe}},AMe={layout:{ProjectionNode:_ne,MeasureLayout:bne}},C3={current:null},One={current:!1};function NMe(){if(One.current=!0,!!lj)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>C3.current=e.matches;e.addListener(t),t()}else C3.current=!1}const MMe=new WeakMap;function IMe(e,t,n){for(const r in t){const a=t[r],i=n[r];if(to(a))e.addValue(r,a);else if(to(i))e.addValue(r,f0(a,{owner:e}));else if(i!==a)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(a):o.hasAnimated||o.set(a)}else{const o=e.getStaticValue(r);e.addValue(r,f0(o!==void 0?o:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const fz=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class DMe{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:i,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=kj,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=os.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),One.current||NMe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:C3.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),lh(this.notifyUpdate),lh(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=R0.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&ha.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in p0){const n=p0[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$a()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=f0(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(rte(r)||ite(r))?r=parseFloat(r):!eNe(r)&&uh.test(n)&&(r=Ute(t,n)),this.setBaseTarget(t,to(r)?r.get():r)),to(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Fj(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!to(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new pj),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Rne extends DMe{constructor(){super(...arguments),this.KeyframeResolver=WAe}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;to(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Pne(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}function $Me(e){return window.getComputedStyle(e)}class LMe extends Rne{constructor(){super(...arguments),this.type="html",this.renderInstance=Pne}readValueFromInstance(t,n){var r;if(R0.has(n))return(r=this.projection)!=null&&r.isProjecting?d3(n):sAe(t,n);{const a=$Me(t),i=(gj(n)?a.getPropertyValue(n):a[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return mne(t,n)}build(t,n,r){Dj(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return jj(t,n,r)}}const Ane=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function FMe(e,t,n,r){Pne(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(Ane.has(a)?a:Ij(a),t.attrs[a])}class jMe extends Rne{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$a}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(R0.has(n)){const r=jte(n);return r&&r.default||0}return n=Ane.has(n)?n:Ij(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ine(t,n,r)}build(t,n,r){tne(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){FMe(t,n,r,a)}mount(t){this.isSVGTag=rne(t.tagName),super.mount(t)}}const UMe=(e,t)=>Lj(e)?new jMe(t):new LMe(t,{allowProjection:e!==R.Fragment}),BMe=jNe({...d2e,...PMe,...bMe,...AMe},UMe),WMe=cNe(BMe),zMe={initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"100%",opacity:0}};function Bj({children:e}){var r;const t=Zd();return((r=t.state)==null?void 0:r.animated)?w.jsx(iNe,{mode:"wait",children:w.jsx(WMe.div,{variants:zMe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.15},style:{width:"100%"},children:e},t.pathname)}):w.jsx(w.Fragment,{children:e})}function qMe(){return w.jsx(mt,{path:"",children:w.jsx(mt,{element:w.jsx(Bj,{children:w.jsx(aPe,{})}),path:"dashboard"})})}const P0=({errors:e,error:t})=>{if(!t&&!e)return null;let n={};t&&t.errors?n=t.errors:e&&(n=e);const r=Object.keys(n);return w.jsxs("div",{style:{minHeight:"30px"},children:[(e==null?void 0:e.form)&&w.jsx("div",{className:"with-fade-in",style:{color:"red"},children:e.form}),n.length&&w.jsxs("div",{children:[((t==null?void 0:t.title)||(t==null?void 0:t.message))&&w.jsx("span",{children:(t==null?void 0:t.title)||(t==null?void 0:t.message)}),r.map(a=>w.jsx("div",{children:w.jsxs("span",{children:["• ",n[a]]})},a))]})]})},HMe={remoteTitle:"Remote service",grpcMethod:"Over grpc",hostAddress:"Host address",httpMethod:"Over http",interfaceLang:{description:"Here you can change your software interface language settings",title:"Language & Region"},port:"Port",remoteDescription:"Remote service, is the place that all data, logics, and services are installed there. It could be cloud, or locally. Only advanced users, changing it to wrong address might cause inaccessibility.",richTextEditor:{description:"Manage how you want to edit textual content in the app",title:"Text Editor"},theme:{title:"Theme",description:"Change the interface theme color"},accessibility:{description:"Handle the accessibility settings",title:"Accessibility"},debugSettings:{description:"See the debug information of the app, for developers or help desks",title:"Debug Settings"}},VMe={interfaceLang:{description:"Tutaj możesz zmienić ustawienia języka interfejsu oprogramowania",title:"Język i Region"},port:"Port",remoteDescription:"Usługa zdalna, to miejsce, w którym zainstalowane są wszystkie dane, logiki i usługi. Może to być chmura lub lokalnie. Tylko zaawansowani użytkownicy, zmieniając go na błędny adres, mogą spowodować niedostępność.",theme:{description:"Zmień kolor motywu interfejsu",title:"Motyw"},grpcMethod:"Przez gRPC",httpMethod:"Przez HTTP",hostAddress:"Adres hosta",remoteTitle:"Usługa zdalna",richTextEditor:{description:"Zarządzaj sposobem edycji treści tekstowej w aplikacji",title:"Edytor tekstu"},accessibility:{description:"Obsługa ustawień dostępności",title:"Dostępność"},debugSettings:{description:"Wyświetl informacje debugowania aplikacji, dla programistów lub biur pomocy",title:"Ustawienia debugowania"}},GMe={accessibility:{description:"مدیریت تنظیمات دسترسی",title:"دسترسی"},debugSettings:{description:"نمایش اطلاعات اشکال زدایی برنامه، برای توسعه‌دهندگان یا مراکز کمک",title:"تنظیمات اشکال زدایی"},httpMethod:"از طریق HTTP",interfaceLang:{description:"در اینجا می‌توانید تنظیمات زبان و منطقه رابط کاربری نرم‌افزار را تغییر دهید",title:"زبان و منطقه"},port:"پورت",remoteDescription:"سرویس از راه دور، مکانی است که تمام داده‌ها، منطق‌ها و خدمات در آن نصب می‌شوند. ممکن است این ابری یا محلی باشد. تنها کاربران پیشرفته با تغییر آن به آدرس نادرست، ممکن است بر ندسترسی برخورد کنند.",remoteTitle:"سرویس از راه دور",grpcMethod:"از طریق gRPC",hostAddress:"آدرس میزبان",richTextEditor:{title:"ویرایشگر متن",description:"مدیریت نحوه ویرایش محتوای متنی در برنامه"},theme:{description:"تغییر رنگ موضوع رابط کاربری",title:"موضوع"}},YMe={...HMe,$pl:VMe,$fa:GMe},KMe=(e,t)=>{e.preferredHand&&localStorage.setItem("app_preferredHand_address",e.preferredHand)},XMe=e=>[{label:e.accesibility.leftHand,value:"left"},{label:e.accesibility.rightHand,value:"right"}];function QMe({}){const{config:e,patchConfig:t}=R.useContext(ph),n=At(),r=Kt(YMe),{formik:a}=$r({}),i=(l,u)=>{l.preferredHand&&(t({preferredHand:l.preferredHand}),KMe(l))},o=zs(XMe(n));return R.useEffect(()=>{var l;(l=a.current)==null||l.setValues({preferredHand:e.preferredHand})},[e.remote]),w.jsxs(Do,{title:n.generalSettings.accessibility.title,children:[w.jsx("p",{children:r.accessibility.description}),w.jsx(ls,{innerRef:l=>{l&&(a.current=l)},initialValues:{},onSubmit:i,children:l=>w.jsxs("form",{className:"richtext-editor-config-form",onSubmit:u=>u.preventDefault(),children:[w.jsx(P0,{errors:l.errors}),w.jsx(da,{formEffect:{form:l,field:"preferredHand",beforeSet(u){return u.value}},keyExtractor:u=>u.value,errorMessage:l.errors.preferredHand,querySource:o,label:n.settings.preferredHand,hint:n.settings.preferredHandHint}),w.jsx(Ws,{disabled:l.values.preferredHand===""||l.values.preferredHand===e.preferredHand,label:n.settings.apply,onClick:()=>l.submitForm()})]})})]})}function JMe(){const e=Bs(),{query:t}=CF({queryClient:e,query:{},queryOptions:{cacheTime:0}});return w.jsxs(w.Fragment,{children:[w.jsx("h2",{children:"User Role Workspaces"}),w.jsx("p",{children:"Data:"}),w.jsx("pre",{children:JSON.stringify(t.data,null,2)}),w.jsx("p",{children:"Error:"}),w.jsx("pre",{children:JSON.stringify(t.error,null,2)})]})}function ZMe(){const e=R.useContext(rt);return w.jsxs(w.Fragment,{children:[w.jsx("h2",{children:"Fireback context:"}),w.jsx("pre",{children:JSON.stringify(e,null,2)})]})}function eIe({}){const[e,t]=R.useState(!1);R.useContext(rt);const n=At();return w.jsxs(Do,{title:n.generalSettings.debugSettings.title,children:[w.jsx("p",{children:n.generalSettings.debugSettings.description}),w.jsx(El,{value:e,label:n.debugInfo,onChange:()=>t(r=>!r)}),e&&w.jsxs(w.Fragment,{children:[w.jsx("pre",{}),w.jsx(Pl,{href:"/lalaland",children:"Go to Lalaland"}),w.jsx(Pl,{href:"/view3d",children:"View 3D"}),w.jsx(JMe,{}),w.jsx(ZMe,{})]})]})}const Nne=e=>[kr.SUPPORTED_LANGUAGES.includes("en")?{label:e.locale.englishWorldwide,value:"en"}:void 0,kr.SUPPORTED_LANGUAGES.includes("fa")?{label:e.locale.persianIran,value:"fa"}:void 0,kr.SUPPORTED_LANGUAGES.includes("ru")?{label:"Russian (Русский)",value:"ru"}:void 0,kr.SUPPORTED_LANGUAGES.includes("pl")?{label:e.locale.polishPoland,value:"pl"}:void 0,kr.SUPPORTED_LANGUAGES.includes("ua")?{label:"Ukrainain (українська)",value:"ua"}:void 0].filter(Boolean),tIe=(e,t)=>{e.interfaceLanguage&&localStorage.setItem("app_interfaceLanguage_address",e.interfaceLanguage)};function nIe({}){const{config:e,patchConfig:t}=R.useContext(ph),n=At(),{router:r,formik:a}=$r({}),i=(u,d)=>{u.interfaceLanguage&&(t({interfaceLanguage:u.interfaceLanguage}),tIe(u),r.push(`/${u.interfaceLanguage}/settings`))};R.useEffect(()=>{var u;(u=a.current)==null||u.setValues({interfaceLanguage:e.interfaceLanguage})},[e.remote]);const o=Nne(n),l=zs(o);return w.jsxs(Do,{title:n.generalSettings.interfaceLang.title,children:[w.jsx("p",{children:n.generalSettings.interfaceLang.description}),w.jsx(ls,{innerRef:u=>{u&&(a.current=u)},initialValues:{},onSubmit:i,children:u=>w.jsxs("form",{className:"remote-service-form",onSubmit:d=>d.preventDefault(),children:[w.jsx(P0,{errors:u.errors}),w.jsx(da,{keyExtractor:d=>d.value,formEffect:{form:u,field:"interfaceLanguage",beforeSet(d){return d.value}},errorMessage:u.errors.interfaceLanguage,querySource:l,label:n.settings.interfaceLanguage,hint:n.settings.interfaceLanguageHint}),w.jsx(Ws,{disabled:u.values.interfaceLanguage===""||u.values.interfaceLanguage===e.interfaceLanguage,label:n.settings.apply,onClick:()=>u.submitForm()})]})})]})}class Wj extends wn{constructor(...t){super(...t),this.children=void 0,this.subscription=void 0}}Wj.Navigation={edit(e,t){return`${t?"/"+t:".."}/web-push-config/edit/${e}`},create(e){return`${e?"/"+e:".."}/web-push-config/new`},single(e,t){return`${t?"/"+t:".."}/web-push-config/${e}`},query(e={},t){return`${t?"/"+t:".."}/web-push-configs`},Redit:"web-push-config/edit/:uniqueId",Rcreate:"web-push-config/new",Rsingle:"web-push-config/:uniqueId",Rquery:"web-push-configs"};Wj.definition={rpc:{query:{}},name:"webPushConfig",distinctBy:"user",features:{},security:{resolveStrategy:"user"},gormMap:{},fields:[{name:"subscription",description:"The json content of the web push after getting it from browser",type:"json",validate:"required",computedType:"any",gormMap:{}}],description:"Keep the web push notification configuration for each user"};Wj.Fields={...wn.Fields,subscription:"subscription"};function rIe(e){let{queryClient:t,query:n,execFnOverride:r}={};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/web-push-config".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*fireback.WebPushConfigEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function aIe(){const{submit:e}=rIe();R.useEffect(()=>{navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",d=>{var f;((f=d.data)==null?void 0:f.type)==="PUSH_RECEIVED"&&console.log("Push message in UI:",d.data.payload)})},[]);const[t,n]=R.useState(!1),[r,a]=R.useState(!1),[i,o]=R.useState(null);return R.useEffect(()=>{async function d(){try{const g=await(await navigator.serviceWorker.ready).pushManager.getSubscription();a(!!g)}catch(f){console.error("Failed to check subscription",f)}}d()},[]),{isSubscribing:t,isSubscribed:r,error:i,subscribe:async()=>{n(!0),o(null);try{const f=await(await navigator.serviceWorker.ready).pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:"BAw6oGpr6FoFDj49xOhFbTSOY07zvcqYWyyXeQXUJIFubi5iLQNV0vYsXKLz7J8520o4IjCq8u9tLPBx2NSuu04"});console.log(25,f),e({subscription:f}),console.log("Subscribed:",JSON.stringify(f)),a(!0)}catch(d){o("Failed to subscribe."),console.error("Subscription failed:",d)}finally{n(!1)}},unsubscribe:async()=>{n(!0),o(null);try{const f=await(await navigator.serviceWorker.ready).pushManager.getSubscription();f?(await f.unsubscribe(),a(!1)):o("No subscription found")}catch(d){o("Failed to unsubscribe."),console.error("Unsubscription failed:",d)}finally{n(!1)}}}}function iIe({}){const{error:e,isSubscribed:t,isSubscribing:n,subscribe:r,unsubscribe:a}=aIe();return w.jsxs(Do,{title:"Notification settings",children:[w.jsx("p",{children:"Here you can manage your notifications"}),w.jsx(P0,{error:e}),w.jsx("button",{className:"btn",disabled:n||t,onClick:()=>r(),children:"Subscribe"}),w.jsx("button",{disabled:!t,className:"btn",onClick:()=>a(),children:"Unsubscribe"})]})}const oIe=(e,t)=>{e.textEditorModule&&localStorage.setItem("app_textEditorModule_address",e.textEditorModule)},sIe=e=>[{label:e.simpleTextEditor,value:"bare"},{label:e.tinymceeditor,value:"tinymce"}];function lIe({}){const{config:e,patchConfig:t}=R.useContext(ph),n=At(),{formik:r}=$r({}),a=(l,u)=>{l.textEditorModule&&(t({textEditorModule:l.textEditorModule}),oIe(l))};R.useEffect(()=>{var l;(l=r.current)==null||l.setValues({textEditorModule:e.textEditorModule})},[e.remote]);const i=sIe(n),o=zs(i);return w.jsxs(Do,{title:n.generalSettings.richTextEditor.title,children:[w.jsx("p",{children:n.generalSettings.richTextEditor.description}),w.jsx(ls,{innerRef:l=>{l&&(r.current=l)},initialValues:{},onSubmit:a,children:l=>w.jsxs("form",{className:"richtext-editor-config-form",onSubmit:u=>u.preventDefault(),children:[w.jsx(P0,{errors:l.errors}),w.jsx(da,{formEffect:{form:l,field:"textEditorModule",beforeSet(u){return u.value}},keyExtractor:u=>u.value,querySource:o,errorMessage:l.errors.textEditorModule,label:n.settings.textEditorModule,hint:n.settings.textEditorModuleHint}),w.jsx(Ws,{disabled:l.values.textEditorModule===""||l.values.textEditorModule===e.textEditorModule,label:n.settings.apply,onClick:()=>l.submitForm()})]})})]})}const uIe=(e,t)=>{if(e.theme){localStorage.setItem("ui_theme",e.theme);const n=document.getElementsByTagName("body")[0].classList;for(const r of n.value.split(" "))r.endsWith("-theme")&&n.remove(r);e.theme.split(" ").forEach(r=>{n.add(r)})}},cIe=[{label:"MacOSX Automatic",value:"mac-theme"},{label:"MacOSX Light",value:"mac-theme light-theme"},{label:"MacOSX Dark",value:"mac-theme dark-theme"}];function dIe({}){const{config:e,patchConfig:t}=R.useContext(ph),n=At(),{formik:r}=$r({}),a=(o,l)=>{o.theme&&(t({theme:o.theme}),uIe(o))};R.useEffect(()=>{var o;(o=r.current)==null||o.setValues({theme:e.theme})},[e.remote]);const i=zs(cIe);return w.jsxs(Do,{title:n.generalSettings.theme.title,children:[w.jsx("p",{children:n.generalSettings.theme.description}),w.jsx(ls,{innerRef:o=>{o&&(r.current=o)},initialValues:{},onSubmit:a,children:o=>w.jsxs("form",{className:"richtext-editor-config-form",onSubmit:l=>l.preventDefault(),children:[w.jsx(P0,{errors:o.errors}),w.jsx(da,{keyExtractor:l=>l.value,formEffect:{form:o,field:"theme",beforeSet(l){return l.value}},errorMessage:o.errors.theme,querySource:i,label:n.settings.theme,hint:n.settings.themeHint}),w.jsx(Ws,{disabled:o.values.theme===""||o.values.theme===e.theme,label:n.settings.apply,onClick:()=>o.submitForm()})]})})]})}function fIe({}){const e=At();return gh(e.menu.settings),w.jsxs("div",{children:[w.jsx(iIe,{}),kr.FORCED_LOCALE?null:w.jsx(nIe,{}),w.jsx(lIe,{}),w.jsx(QMe,{}),kr.FORCE_APP_THEME!=="true"?w.jsx(dIe,{}):null,w.jsx(eIe,{})]})}const pIe={setupTotpDescription:'In order to complete account registeration, you need to scan the following code using "Microsoft authenticator" or "Google Authenticator". After that, you need to enter the 6 digit code from the app here.',welcomeBackDescription:"Select any option to continue to access your account.",google:"Google",selectWorkspace:"You have multiple workspaces associated with your account. Select one to continue.",completeYourAccount:"Complete your account",completeYourAccountDescription:"Complete the information below to complete your signup",registerationNotPossibleLine1:"In this project there are no workspace types that can be used publicly to create account.",enterPassword:"Enter Password",welcomeBack:"Welcome back",emailMethod:"Email",phoneMethod:"Phone number",noAuthenticationMethod:"Authentication Currently Unavailable",firstName:"First name",registerationNotPossible:"Registeration not possible.",setupDualFactor:"Setup Dual Factor",cancelStep:"Cancel and try another way.",enterOtp:"Enter OTP",skipTotpInfo:"You can setup this any time later, by visiting your account security section.",continueWithEmailDescription:"Enter your email address to continue.",enterOtpDescription:"We have sent you an one time password, please enter to continue.",continueWithEmail:"Continue with Email",continueWithPhone:"Continue with Phone",registerationNotPossibleLine2:"Contact the service administrator to create your account for you.",useOneTimePassword:"Use one time password instead",changePassword:{pass1Label:"Password",pass2Label:"Repeat password",submit:"Change Password",title:"Change password",description:"In order to change your password, enter new password twice same in the fields"},continueWithPhoneDescription:"Enter your phone number to continue.",lastName:"Last name",password:"Password",continue:"Continue",anotherAccount:"Choose another account",noAuthenticationMethodDescription:"Sign-in and registration are not available in your region at this time. If you believe this is an error or need access, please contact the administrator.",home:{title:"Account & Profile",description:"Manage your account, emails, passwords and more",passports:"Passports",passportsTitle:"Passports",passportsDescription:"View emails, phone numbers associated with your account."},enterTotp:"Enter Totp Code",enterTotpDescription:"Open your authenticator app and enter the 6 digits.",setupTotp:"Setup Dual Factor",skipTotpButton:"Skip for now",userPassports:{title:"Passports",description:"You can see a list of passports that you can use to authenticate into the system here.",add:"Add new passport",remove:"Remove passport"},selectWorkspaceTitle:"Select workspace",chooseAnotherMethod:"Choose another method",enterPasswordDescription:"Enter your password to continue authorizing your account."},hIe={registerationNotPossibleLine2:"Skontaktuj się z administratorem usługi, aby utworzył konto dla Ciebie.",chooseAnotherMethod:"Wybierz inną metodę",continue:"Kontynuuj",continueWithPhone:"Kontynuuj za pomocą numeru telefonu",enterPassword:"Wprowadź hasło",noAuthenticationMethod:"Uwierzytelnianie obecnie niedostępne",completeYourAccountDescription:"Uzupełnij poniższe informacje, aby zakończyć rejestrację",registerationNotPossible:"Rejestracja niemożliwa.",selectWorkspace:"Masz wiele przestrzeni roboczych powiązanych z Twoim kontem. Wybierz jedną, aby kontynuować.",welcomeBack:"Witamy ponownie",enterOtp:"Wprowadź jednorazowy kod",enterPasswordDescription:"Wprowadź swoje hasło, aby kontynuować autoryzację konta.",userPassports:{add:"Dodaj nowy paszport",description:"Tutaj możesz zobaczyć listę paszportów, które możesz wykorzystać do uwierzytelniania w systemie.",remove:"Usuń paszport",title:"Paszporty"},registerationNotPossibleLine1:"W tym projekcie nie ma dostępnych typów przestrzeni roboczych do publicznego tworzenia konta.",cancelStep:"Anuluj i spróbuj innej metody.",continueWithEmail:"Kontynuuj za pomocą e-maila",continueWithPhoneDescription:"Wprowadź swój numer telefonu, aby kontynuować.",emailMethod:"E-mail",enterTotp:"Wprowadź kod TOTP",noAuthenticationMethodDescription:"Logowanie i rejestracja są obecnie niedostępne w Twoim regionie. Jeśli uważasz, że to błąd lub potrzebujesz dostępu, skontaktuj się z administratorem.",password:"Hasło",anotherAccount:"Wybierz inne konto",enterTotpDescription:"Otwórz aplikację uwierzytelniającą i wprowadź 6-cyfrowy kod.",firstName:"Imię",phoneMethod:"Numer telefonu",setupDualFactor:"Skonfiguruj uwierzytelnianie dwuskładnikowe",setupTotp:"Skonfiguruj uwierzytelnianie dwuskładnikowe",skipTotpInfo:"Możesz skonfigurować to później, odwiedzając sekcję bezpieczeństwa konta.",welcomeBackDescription:"Wybierz dowolną opcję, aby kontynuować dostęp do swojego konta.",changePassword:{pass1Label:"Hasło",pass2Label:"Powtórz hasło",submit:"Zmień hasło",title:"Zmień hasło",description:"Aby zmienić hasło, wprowadź nowe hasło dwukrotnie w polach poniżej"},lastName:"Nazwisko",useOneTimePassword:"Użyj jednorazowego hasła zamiast tego",completeYourAccount:"Uzupełnij swoje konto",continueWithEmailDescription:"Wprowadź swój adres e-mail, aby kontynuować.",enterOtpDescription:"Wysłaliśmy jednorazowy kod, wprowadź go, aby kontynuować.",google:"Google",home:{description:"Zarządzaj swoim kontem, e-mailami, hasłami i innymi",passports:"Paszporty",passportsDescription:"Zobacz e-maile i numery telefonów powiązane z Twoim kontem.",passportsTitle:"Paszporty",title:"Konto i profil"},selectWorkspaceTitle:"Wybierz przestrzeń roboczą",setupTotpDescription:"Aby zakończyć rejestrację konta, zeskanuj poniższy kod za pomocą aplikacji „Microsoft Authenticator” lub „Google Authenticator”. Następnie wprowadź tutaj 6-cyfrowy kod z aplikacji.",skipTotpButton:"Pomiń na razie"},xa={...pIe,$pl:hIe};function k3(e,t){const n={};for(const[r,a]of Object.entries(t))typeof a=="string"?n[r]=`${e}.${a}`:typeof a=="object"&&a!==null&&(n[r]=a);return n}var Va,up,cp,dp,fp,pp,hp,mp,gp,vp,yp,bp,wp,Sp,Ep,Tp,Cp,kp,xp,vk,yk,_p,Op,Rp,uc,bk,Pp,Ap,Np,Mp,Ip,Dp,$p,Lp,wk;function Xe(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var mIe=0;function Rn(e){return"__private_"+mIe+++"_"+e}var jm=Rn("apiVersion"),Um=Rn("context"),Bm=Rn("id"),Wm=Rn("method"),zm=Rn("params"),dd=Rn("data"),fd=Rn("error"),EA=Rn("isJsonAppliable"),I1=Rn("lateInitFields");class Io{get apiVersion(){return Xe(this,jm)[jm]}set apiVersion(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,jm)[jm]=n?t:String(t)}setApiVersion(t){return this.apiVersion=t,this}get context(){return Xe(this,Um)[Um]}set context(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Um)[Um]=n?t:String(t)}setContext(t){return this.context=t,this}get id(){return Xe(this,Bm)[Bm]}set id(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Bm)[Bm]=n?t:String(t)}setId(t){return this.id=t,this}get method(){return Xe(this,Wm)[Wm]}set method(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Wm)[Wm]=n?t:String(t)}setMethod(t){return this.method=t,this}get params(){return Xe(this,zm)[zm]}set params(t){Xe(this,zm)[zm]=t}setParams(t){return this.params=t,this}get data(){return Xe(this,dd)[dd]}set data(t){t instanceof Io.Data?Xe(this,dd)[dd]=t:Xe(this,dd)[dd]=new Io.Data(t)}setData(t){return this.data=t,this}get error(){return Xe(this,fd)[fd]}set error(t){t instanceof Io.Error?Xe(this,fd)[fd]=t:Xe(this,fd)[fd]=new Io.Error(t)}setError(t){return this.error=t,this}constructor(t=void 0){if(Object.defineProperty(this,I1,{value:vIe}),Object.defineProperty(this,EA,{value:gIe}),Object.defineProperty(this,jm,{writable:!0,value:void 0}),Object.defineProperty(this,Um,{writable:!0,value:void 0}),Object.defineProperty(this,Bm,{writable:!0,value:void 0}),Object.defineProperty(this,Wm,{writable:!0,value:void 0}),Object.defineProperty(this,zm,{writable:!0,value:null}),Object.defineProperty(this,dd,{writable:!0,value:void 0}),Object.defineProperty(this,fd,{writable:!0,value:void 0}),t==null){Xe(this,I1)[I1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,EA)[EA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.apiVersion!==void 0&&(this.apiVersion=n.apiVersion),n.context!==void 0&&(this.context=n.context),n.id!==void 0&&(this.id=n.id),n.method!==void 0&&(this.method=n.method),n.params!==void 0&&(this.params=n.params),n.data!==void 0&&(this.data=n.data),n.error!==void 0&&(this.error=n.error),Xe(this,I1)[I1](t)}toJSON(){return{apiVersion:Xe(this,jm)[jm],context:Xe(this,Um)[Um],id:Xe(this,Bm)[Bm],method:Xe(this,Wm)[Wm],params:Xe(this,zm)[zm],data:Xe(this,dd)[dd],error:Xe(this,fd)[fd]}}toString(){return JSON.stringify(this)}static get Fields(){return{apiVersion:"apiVersion",context:"context",id:"id",method:"method",params:"params",data$:"data",get data(){return k3("data",Io.Data.Fields)},error$:"error",get error(){return k3("error",Io.Error.Fields)}}}static from(t){return new Io(t)}static with(t){return new Io(t)}copyWith(t){return new Io({...this.toJSON(),...t})}clone(){return new Io(this.toJSON())}}Va=Io;function gIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function vIe(e={}){const t=e;t.data instanceof Va.Data||(this.data=new Va.Data(t.data||{})),t.error instanceof Va.Error||(this.error=new Va.Error(t.error||{}))}Io.Data=(up=Rn("item"),cp=Rn("items"),dp=Rn("editLink"),fp=Rn("selfLink"),pp=Rn("kind"),hp=Rn("fields"),mp=Rn("etag"),gp=Rn("cursor"),vp=Rn("id"),yp=Rn("lang"),bp=Rn("updated"),wp=Rn("currentItemCount"),Sp=Rn("itemsPerPage"),Ep=Rn("startIndex"),Tp=Rn("totalItems"),Cp=Rn("totalAvailableItems"),kp=Rn("pageIndex"),xp=Rn("totalPages"),vk=Rn("isJsonAppliable"),class{get item(){return Xe(this,up)[up]}set item(t){Xe(this,up)[up]=t}setItem(t){return this.item=t,this}get items(){return Xe(this,cp)[cp]}set items(t){Xe(this,cp)[cp]=t}setItems(t){return this.items=t,this}get editLink(){return Xe(this,dp)[dp]}set editLink(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,dp)[dp]=n?t:String(t)}setEditLink(t){return this.editLink=t,this}get selfLink(){return Xe(this,fp)[fp]}set selfLink(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,fp)[fp]=n?t:String(t)}setSelfLink(t){return this.selfLink=t,this}get kind(){return Xe(this,pp)[pp]}set kind(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,pp)[pp]=n?t:String(t)}setKind(t){return this.kind=t,this}get fields(){return Xe(this,hp)[hp]}set fields(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,hp)[hp]=n?t:String(t)}setFields(t){return this.fields=t,this}get etag(){return Xe(this,mp)[mp]}set etag(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,mp)[mp]=n?t:String(t)}setEtag(t){return this.etag=t,this}get cursor(){return Xe(this,gp)[gp]}set cursor(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,gp)[gp]=n?t:String(t)}setCursor(t){return this.cursor=t,this}get id(){return Xe(this,vp)[vp]}set id(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,vp)[vp]=n?t:String(t)}setId(t){return this.id=t,this}get lang(){return Xe(this,yp)[yp]}set lang(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,yp)[yp]=n?t:String(t)}setLang(t){return this.lang=t,this}get updated(){return Xe(this,bp)[bp]}set updated(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,bp)[bp]=n?t:String(t)}setUpdated(t){return this.updated=t,this}get currentItemCount(){return Xe(this,wp)[wp]}set currentItemCount(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,wp)[wp]=r)}setCurrentItemCount(t){return this.currentItemCount=t,this}get itemsPerPage(){return Xe(this,Sp)[Sp]}set itemsPerPage(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Sp)[Sp]=r)}setItemsPerPage(t){return this.itemsPerPage=t,this}get startIndex(){return Xe(this,Ep)[Ep]}set startIndex(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Ep)[Ep]=r)}setStartIndex(t){return this.startIndex=t,this}get totalItems(){return Xe(this,Tp)[Tp]}set totalItems(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Tp)[Tp]=r)}setTotalItems(t){return this.totalItems=t,this}get totalAvailableItems(){return Xe(this,Cp)[Cp]}set totalAvailableItems(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,Cp)[Cp]=r)}setTotalAvailableItems(t){return this.totalAvailableItems=t,this}get pageIndex(){return Xe(this,kp)[kp]}set pageIndex(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,kp)[kp]=r)}setPageIndex(t){return this.pageIndex=t,this}get totalPages(){return Xe(this,xp)[xp]}set totalPages(t){const r=typeof t=="number"||t===void 0||t===null?t:Number(t);Number.isNaN(r)||(Xe(this,xp)[xp]=r)}setTotalPages(t){return this.totalPages=t,this}constructor(t=void 0){if(Object.defineProperty(this,vk,{value:yIe}),Object.defineProperty(this,up,{writable:!0,value:null}),Object.defineProperty(this,cp,{writable:!0,value:null}),Object.defineProperty(this,dp,{writable:!0,value:void 0}),Object.defineProperty(this,fp,{writable:!0,value:void 0}),Object.defineProperty(this,pp,{writable:!0,value:void 0}),Object.defineProperty(this,hp,{writable:!0,value:void 0}),Object.defineProperty(this,mp,{writable:!0,value:void 0}),Object.defineProperty(this,gp,{writable:!0,value:void 0}),Object.defineProperty(this,vp,{writable:!0,value:void 0}),Object.defineProperty(this,yp,{writable:!0,value:void 0}),Object.defineProperty(this,bp,{writable:!0,value:void 0}),Object.defineProperty(this,wp,{writable:!0,value:void 0}),Object.defineProperty(this,Sp,{writable:!0,value:void 0}),Object.defineProperty(this,Ep,{writable:!0,value:void 0}),Object.defineProperty(this,Tp,{writable:!0,value:void 0}),Object.defineProperty(this,Cp,{writable:!0,value:void 0}),Object.defineProperty(this,kp,{writable:!0,value:void 0}),Object.defineProperty(this,xp,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,vk)[vk](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.item!==void 0&&(this.item=n.item),n.items!==void 0&&(this.items=n.items),n.editLink!==void 0&&(this.editLink=n.editLink),n.selfLink!==void 0&&(this.selfLink=n.selfLink),n.kind!==void 0&&(this.kind=n.kind),n.fields!==void 0&&(this.fields=n.fields),n.etag!==void 0&&(this.etag=n.etag),n.cursor!==void 0&&(this.cursor=n.cursor),n.id!==void 0&&(this.id=n.id),n.lang!==void 0&&(this.lang=n.lang),n.updated!==void 0&&(this.updated=n.updated),n.currentItemCount!==void 0&&(this.currentItemCount=n.currentItemCount),n.itemsPerPage!==void 0&&(this.itemsPerPage=n.itemsPerPage),n.startIndex!==void 0&&(this.startIndex=n.startIndex),n.totalItems!==void 0&&(this.totalItems=n.totalItems),n.totalAvailableItems!==void 0&&(this.totalAvailableItems=n.totalAvailableItems),n.pageIndex!==void 0&&(this.pageIndex=n.pageIndex),n.totalPages!==void 0&&(this.totalPages=n.totalPages)}toJSON(){return{item:Xe(this,up)[up],items:Xe(this,cp)[cp],editLink:Xe(this,dp)[dp],selfLink:Xe(this,fp)[fp],kind:Xe(this,pp)[pp],fields:Xe(this,hp)[hp],etag:Xe(this,mp)[mp],cursor:Xe(this,gp)[gp],id:Xe(this,vp)[vp],lang:Xe(this,yp)[yp],updated:Xe(this,bp)[bp],currentItemCount:Xe(this,wp)[wp],itemsPerPage:Xe(this,Sp)[Sp],startIndex:Xe(this,Ep)[Ep],totalItems:Xe(this,Tp)[Tp],totalAvailableItems:Xe(this,Cp)[Cp],pageIndex:Xe(this,kp)[kp],totalPages:Xe(this,xp)[xp]}}toString(){return JSON.stringify(this)}static get Fields(){return{item:"item",items:"items",editLink:"editLink",selfLink:"selfLink",kind:"kind",fields:"fields",etag:"etag",cursor:"cursor",id:"id",lang:"lang",updated:"updated",currentItemCount:"currentItemCount",itemsPerPage:"itemsPerPage",startIndex:"startIndex",totalItems:"totalItems",totalAvailableItems:"totalAvailableItems",pageIndex:"pageIndex",totalPages:"totalPages"}}static from(t){return new Va.Data(t)}static with(t){return new Va.Data(t)}copyWith(t){return new Va.Data({...this.toJSON(),...t})}clone(){return new Va.Data(this.toJSON())}});function yIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}Io.Error=(_p=Rn("code"),Op=Rn("message"),Rp=Rn("messageTranslated"),uc=Rn("errors"),bk=Rn("isJsonAppliable"),yk=class Mne{get code(){return Xe(this,_p)[_p]}set code(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Xe(this,_p)[_p]=r)}setCode(t){return this.code=t,this}get message(){return Xe(this,Op)[Op]}set message(t){Xe(this,Op)[Op]=String(t)}setMessage(t){return this.message=t,this}get messageTranslated(){return Xe(this,Rp)[Rp]}set messageTranslated(t){Xe(this,Rp)[Rp]=String(t)}setMessageTranslated(t){return this.messageTranslated=t,this}get errors(){return Xe(this,uc)[uc]}set errors(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof Va.Error.Errors?Xe(this,uc)[uc]=t:Xe(this,uc)[uc]=t.map(n=>new Va.Error.Errors(n)))}setErrors(t){return this.errors=t,this}constructor(t=void 0){if(Object.defineProperty(this,bk,{value:wIe}),Object.defineProperty(this,_p,{writable:!0,value:0}),Object.defineProperty(this,Op,{writable:!0,value:""}),Object.defineProperty(this,Rp,{writable:!0,value:""}),Object.defineProperty(this,uc,{writable:!0,value:[]}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,bk)[bk](t))this.applyFromObject(t);else throw new Mne("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.code!==void 0&&(this.code=n.code),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.errors!==void 0&&(this.errors=n.errors)}toJSON(){return{code:Xe(this,_p)[_p],message:Xe(this,Op)[Op],messageTranslated:Xe(this,Rp)[Rp],errors:Xe(this,uc)[uc]}}toString(){return JSON.stringify(this)}static get Fields(){return{code:"code",message:"message",messageTranslated:"messageTranslated",errors$:"errors",get errors(){return k3("error.errors[:i]",Va.Error.Errors.Fields)}}}static from(t){return new Va.Error(t)}static with(t){return new Va.Error(t)}copyWith(t){return new Va.Error({...this.toJSON(),...t})}clone(){return new Va.Error(this.toJSON())}},yk.Errors=(Pp=Rn("domain"),Ap=Rn("reason"),Np=Rn("message"),Mp=Rn("messageTranslated"),Ip=Rn("location"),Dp=Rn("locationType"),$p=Rn("extendedHelp"),Lp=Rn("sendReport"),wk=Rn("isJsonAppliable"),class{get domain(){return Xe(this,Pp)[Pp]}set domain(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Pp)[Pp]=n?t:String(t)}setDomain(t){return this.domain=t,this}get reason(){return Xe(this,Ap)[Ap]}set reason(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Ap)[Ap]=n?t:String(t)}setReason(t){return this.reason=t,this}get message(){return Xe(this,Np)[Np]}set message(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Np)[Np]=n?t:String(t)}setMessage(t){return this.message=t,this}get messageTranslated(){return Xe(this,Mp)[Mp]}set messageTranslated(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Mp)[Mp]=n?t:String(t)}setMessageTranslated(t){return this.messageTranslated=t,this}get location(){return Xe(this,Ip)[Ip]}set location(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Ip)[Ip]=n?t:String(t)}setLocation(t){return this.location=t,this}get locationType(){return Xe(this,Dp)[Dp]}set locationType(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Dp)[Dp]=n?t:String(t)}setLocationType(t){return this.locationType=t,this}get extendedHelp(){return Xe(this,$p)[$p]}set extendedHelp(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,$p)[$p]=n?t:String(t)}setExtendedHelp(t){return this.extendedHelp=t,this}get sendReport(){return Xe(this,Lp)[Lp]}set sendReport(t){const n=typeof t=="string"||t===void 0||t===null;Xe(this,Lp)[Lp]=n?t:String(t)}setSendReport(t){return this.sendReport=t,this}constructor(t=void 0){if(Object.defineProperty(this,wk,{value:bIe}),Object.defineProperty(this,Pp,{writable:!0,value:void 0}),Object.defineProperty(this,Ap,{writable:!0,value:void 0}),Object.defineProperty(this,Np,{writable:!0,value:void 0}),Object.defineProperty(this,Mp,{writable:!0,value:void 0}),Object.defineProperty(this,Ip,{writable:!0,value:void 0}),Object.defineProperty(this,Dp,{writable:!0,value:void 0}),Object.defineProperty(this,$p,{writable:!0,value:void 0}),Object.defineProperty(this,Lp,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xe(this,wk)[wk](t))this.applyFromObject(t);else throw new yk("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.domain!==void 0&&(this.domain=n.domain),n.reason!==void 0&&(this.reason=n.reason),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.location!==void 0&&(this.location=n.location),n.locationType!==void 0&&(this.locationType=n.locationType),n.extendedHelp!==void 0&&(this.extendedHelp=n.extendedHelp),n.sendReport!==void 0&&(this.sendReport=n.sendReport)}toJSON(){return{domain:Xe(this,Pp)[Pp],reason:Xe(this,Ap)[Ap],message:Xe(this,Np)[Np],messageTranslated:Xe(this,Mp)[Mp],location:Xe(this,Ip)[Ip],locationType:Xe(this,Dp)[Dp],extendedHelp:Xe(this,$p)[$p],sendReport:Xe(this,Lp)[Lp]}}toString(){return JSON.stringify(this)}static get Fields(){return{domain:"domain",reason:"reason",message:"message",messageTranslated:"messageTranslated",location:"location",locationType:"locationType",extendedHelp:"extendedHelp",sendReport:"sendReport"}}static from(t){return new Va.Error.Errors(t)}static with(t){return new Va.Error.Errors(t)}copyWith(t){return new Va.Error.Errors({...this.toJSON(),...t})}clone(){return new Va.Error.Errors(this.toJSON())}}),yk);function bIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function wIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}class us extends Io{constructor(t){super(t),this.creator=void 0}setCreator(t){return this.creator=t,this}inject(t){var n,r,a,i,o,l,u,d;return this.applyFromObject(t),t!=null&&t.data&&(this.data||this.setData({}),Array.isArray(t==null?void 0:t.data.items)&&typeof this.creator<"u"&&this.creator!==null?(a=this.data)==null||a.setItems((r=(n=t==null?void 0:t.data)==null?void 0:n.items)==null?void 0:r.map(f=>{var g;return(g=this.creator)==null?void 0:g.call(this,f)})):typeof((i=t==null?void 0:t.data)==null?void 0:i.item)=="object"&&typeof this.creator<"u"&&this.creator!==null?(l=this.data)==null||l.setItem(this.creator((o=t==null?void 0:t.data)==null?void 0:o.item)):(d=this.data)==null||d.setItem((u=t==null?void 0:t.data)==null?void 0:u.item)),this}}function Vs(e,t,n){if(n&&n instanceof URLSearchParams)e+=`?${n.toString()}`;else if(n&&Object.keys(n).length){const r=new URLSearchParams(Object.entries(n).map(([a,i])=>[a,String(i)])).toString();e+=`?${r}`}return e}const Ine=R.createContext(null),SIe=Ine.Provider;function Gs(){return R.useContext(Ine)}var dE;function Rs(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var EIe=0;function KE(e){return"__private_"+EIe+++"_"+e}const TIe=e=>{const t=Gs(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),Hd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[Hd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class Hd{}dE=Hd;Hd.URL="/user/passports";Hd.NewUrl=e=>Vs(dE.URL,void 0,e);Hd.Method="get";Hd.Fetch$=async(e,t,n,r)=>qs(r??dE.NewUrl(e),{method:dE.Method,...n||{}},t);Hd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new dv(o)})=>{t=t||(l=>new dv(l));const o=await dE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Hd.Definition={name:"UserPassports",url:"/user/passports",method:"get",description:"Returns list of passports belongs to an specific user.",out:{envelope:"GResponse",fields:[{name:"value",description:"The passport value, such as email address or phone number",type:"string"},{name:"uniqueId",description:"Unique identifier of the passport to operate some action on top of it",type:"string"},{name:"type",description:"The type of the passport, such as email, phone number",type:"string"},{name:"totpConfirmed",description:"Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login.",type:"bool"}]}};var qm=KE("value"),Hm=KE("uniqueId"),Vm=KE("type"),Gm=KE("totpConfirmed"),TA=KE("isJsonAppliable");class dv{get value(){return Rs(this,qm)[qm]}set value(t){Rs(this,qm)[qm]=String(t)}setValue(t){return this.value=t,this}get uniqueId(){return Rs(this,Hm)[Hm]}set uniqueId(t){Rs(this,Hm)[Hm]=String(t)}setUniqueId(t){return this.uniqueId=t,this}get type(){return Rs(this,Vm)[Vm]}set type(t){Rs(this,Vm)[Vm]=String(t)}setType(t){return this.type=t,this}get totpConfirmed(){return Rs(this,Gm)[Gm]}set totpConfirmed(t){Rs(this,Gm)[Gm]=!!t}setTotpConfirmed(t){return this.totpConfirmed=t,this}constructor(t=void 0){if(Object.defineProperty(this,TA,{value:CIe}),Object.defineProperty(this,qm,{writable:!0,value:""}),Object.defineProperty(this,Hm,{writable:!0,value:""}),Object.defineProperty(this,Vm,{writable:!0,value:""}),Object.defineProperty(this,Gm,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Rs(this,TA)[TA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.type!==void 0&&(this.type=n.type),n.totpConfirmed!==void 0&&(this.totpConfirmed=n.totpConfirmed)}toJSON(){return{value:Rs(this,qm)[qm],uniqueId:Rs(this,Hm)[Hm],type:Rs(this,Vm)[Vm],totpConfirmed:Rs(this,Gm)[Gm]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",uniqueId:"uniqueId",type:"type",totpConfirmed:"totpConfirmed"}}static from(t){return new dv(t)}static with(t){return new dv(t)}copyWith(t){return new dv({...this.toJSON(),...t})}clone(){return new dv(this.toJSON())}}function CIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const kIe=()=>{const e=Kt(xa),{goBack:t}=xr(),n=TIe({}),{signout:r}=R.useContext(rt);return{goBack:t,signout:r,query:n,s:e}},xIe=({})=>{var a,i;const{query:e,s:t,signout:n}=kIe(),r=((i=(a=e==null?void 0:e.data)==null?void 0:a.data)==null?void 0:i.items)||[];return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:t.userPassports.title}),w.jsx("p",{children:t.userPassports.description}),w.jsx(Il,{query:e}),w.jsx(_Ie,{passports:r}),w.jsx("button",{className:"btn btn-danger mt-3 w-100",onClick:n,children:"Signout"})]})},_Ie=({passports:e})=>{const t=Kt(xa);return w.jsx("div",{className:"d-flex ",children:e.map(n=>w.jsxs("div",{className:"card p-3 w-100",children:[w.jsx("h3",{className:"card-title",children:n.type.toUpperCase()}),w.jsx("p",{className:"card-text",children:n.value}),w.jsxs("p",{className:"text-muted",children:["TOTP: ",n.totpConfirmed?"Yes":"No"]}),w.jsx(Yb,{href:`../change-password/${n.uniqueId}`,children:w.jsx("button",{className:"btn btn-primary",children:t.changePassword.submit})})]},n.uniqueId))})};var fE;function bu(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var OIe=0;function XE(e){return"__private_"+OIe+++"_"+e}const RIe=e=>{const n=Gs()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),wh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class wh{}fE=wh;wh.URL="/passport/change-password";wh.NewUrl=e=>Vs(fE.URL,void 0,e);wh.Method="post";wh.Fetch$=async(e,t,n,r)=>qs(r??fE.NewUrl(e),{method:fE.Method,...n||{}},t);wh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new pv(o)})=>{t=t||(l=>new pv(l));const o=await fE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};wh.Definition={name:"ChangePassword",cliName:"cp",url:"/passport/change-password",method:"post",description:"Change the password for a given passport of the user. User needs to be authenticated in order to be able to change the password for a given account.",in:{fields:[{name:"password",description:"New password meeting the security requirements.",type:"string",tags:{validate:"required"}},{name:"uniqueId",description:"The passport uniqueId (not the email or phone number) which password would be applied to. Don't confuse with value.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"changed",type:"bool"}]}};var Ym=XE("password"),Km=XE("uniqueId"),CA=XE("isJsonAppliable");class fv{get password(){return bu(this,Ym)[Ym]}set password(t){bu(this,Ym)[Ym]=String(t)}setPassword(t){return this.password=t,this}get uniqueId(){return bu(this,Km)[Km]}set uniqueId(t){bu(this,Km)[Km]=String(t)}setUniqueId(t){return this.uniqueId=t,this}constructor(t=void 0){if(Object.defineProperty(this,CA,{value:PIe}),Object.defineProperty(this,Ym,{writable:!0,value:""}),Object.defineProperty(this,Km,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(bu(this,CA)[CA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.password!==void 0&&(this.password=n.password),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId)}toJSON(){return{password:bu(this,Ym)[Ym],uniqueId:bu(this,Km)[Km]}}toString(){return JSON.stringify(this)}static get Fields(){return{password:"password",uniqueId:"uniqueId"}}static from(t){return new fv(t)}static with(t){return new fv(t)}copyWith(t){return new fv({...this.toJSON(),...t})}clone(){return new fv(this.toJSON())}}function PIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var Xm=XE("changed"),kA=XE("isJsonAppliable");class pv{get changed(){return bu(this,Xm)[Xm]}set changed(t){bu(this,Xm)[Xm]=!!t}setChanged(t){return this.changed=t,this}constructor(t=void 0){if(Object.defineProperty(this,kA,{value:AIe}),Object.defineProperty(this,Xm,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(bu(this,kA)[kA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.changed!==void 0&&(this.changed=n.changed)}toJSON(){return{changed:bu(this,Xm)[Xm]}}toString(){return JSON.stringify(this)}static get Fields(){return{changed:"changed"}}static from(t){return new pv(t)}static with(t){return new pv(t)}copyWith(t){return new pv({...this.toJSON(),...t})}clone(){return new pv(this.toJSON())}}function AIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const NIe=()=>{const e=Kt(xa),{goBack:t,state:n,replace:r,push:a,query:i}=xr(),o=RIe(),l=i==null?void 0:i.uniqueId,u=()=>{o.mutateAsync(new fv(d.values)).then(f=>{t()})},d=tf({initialValues:{},onSubmit:u});return R.useEffect(()=>{!l||!d||d.setFieldValue(fv.Fields.uniqueId,l)},[l]),{mutation:o,form:d,submit:u,goBack:t,s:e}},MIe=({})=>{const{mutation:e,form:t,s:n}=NIe();return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:n.changePassword.title}),w.jsx("p",{children:n.changePassword.description}),w.jsx(Il,{query:e}),w.jsx(IIe,{form:t,mutation:e})]})},IIe=({form:e,mutation:t})=>{const n=Kt(xa),{password2:r,password:a}=e.values,i=a!==r||((a==null?void 0:a.length)||0)<6;return w.jsxs("form",{onSubmit:o=>{o.preventDefault(),e.submitForm()},children:[w.jsx(In,{type:"password",value:e.values.password,label:n.changePassword.pass1Label,id:"password-input",errorMessage:e.errors.password,onChange:o=>e.setFieldValue("password",o,!1)}),w.jsx(In,{type:"password",value:e.values.password2,label:n.changePassword.pass2Label,id:"password-input-2",errorMessage:e.errors.password,onChange:o=>e.setFieldValue("password2",o,!1)}),w.jsx(Ws,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:i,children:n.continue})]})};function DIe(e={}){const{nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}=e,[a,i]=R.useState(!1),o=R.useRef(n);o.current=n;const l=R.useRef(r);return l.current=r,R.useEffect(()=>{const u=document.createElement("script");return u.src="https://accounts.google.com/gsi/client",u.async=!0,u.defer=!0,u.nonce=t,u.onload=()=>{var d;i(!0),(d=o.current)===null||d===void 0||d.call(o)},u.onerror=()=>{var d;i(!1),(d=l.current)===null||d===void 0||d.call(l)},document.body.appendChild(u),()=>{document.body.removeChild(u)}},[t]),a}const Dne=R.createContext(null);function $Ie({clientId:e,nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r,children:a}){const i=DIe({nonce:t,onScriptLoadSuccess:n,onScriptLoadError:r}),o=R.useMemo(()=>({clientId:e,scriptLoadedSuccessfully:i}),[e,i]);return ze.createElement(Dne.Provider,{value:o},a)}function LIe(){const e=R.useContext(Dne);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function FIe({flow:e="implicit",scope:t="",onSuccess:n,onError:r,onNonOAuthError:a,overrideScope:i,state:o,...l}){const{clientId:u,scriptLoadedSuccessfully:d}=LIe(),f=R.useRef(),g=R.useRef(n);g.current=n;const y=R.useRef(r);y.current=r;const h=R.useRef(a);h.current=a,R.useEffect(()=>{var T,C;if(!d)return;const k=e==="implicit"?"initTokenClient":"initCodeClient",_=(C=(T=window==null?void 0:window.google)===null||T===void 0?void 0:T.accounts)===null||C===void 0?void 0:C.oauth2[k]({client_id:u,scope:i?t:`openid profile email ${t}`,callback:A=>{var P,N;if(A.error)return(P=y.current)===null||P===void 0?void 0:P.call(y,A);(N=g.current)===null||N===void 0||N.call(g,A)},error_callback:A=>{var P;(P=h.current)===null||P===void 0||P.call(h,A)},state:o,...l});f.current=_},[u,d,e,t,o]);const v=R.useCallback(T=>{var C;return(C=f.current)===null||C===void 0?void 0:C.requestAccessToken(T)},[]),E=R.useCallback(()=>{var T;return(T=f.current)===null||T===void 0?void 0:T.requestCode()},[]);return e==="implicit"?v:E}const $ne=()=>w.jsxs("div",{className:"loader",id:"loader-4",children:[w.jsx("span",{}),w.jsx("span",{}),w.jsx("span",{})]});var pE;function Ui(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var jIe=0;function Vv(e){return"__private_"+jIe+++"_"+e}const UIe=e=>{const t=Gs(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Sh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result))),...e||{}}),isCompleted:r,response:i}};class Sh{}pE=Sh;Sh.URL="/passport/via-oauth";Sh.NewUrl=e=>Vs(pE.URL,void 0,e);Sh.Method="post";Sh.Fetch$=async(e,t,n,r)=>qs(r??pE.NewUrl(e),{method:pE.Method,...n||{}},t);Sh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new hv(o)})=>{t=t||(l=>new hv(l));const o=await pE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Sh.Definition={name:"OauthAuthenticate",url:"/passport/via-oauth",method:"post",description:"When a token is got from a oauth service such as google, we send the token here to authenticate the user. To me seems this doesn't need to have 2FA or anything, so we return the session directly, or maybe there needs to be next step.",in:{fields:[{name:"token",description:"The token that Auth2 provider returned to the front-end, which will be used to validate the backend",type:"string"},{name:"service",description:"The service name, such as 'google' which later backend will use to authorize the token and create the user.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"},{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"}]}};var Qm=Vv("token"),Jm=Vv("service"),xA=Vv("isJsonAppliable");class Ub{get token(){return Ui(this,Qm)[Qm]}set token(t){Ui(this,Qm)[Qm]=String(t)}setToken(t){return this.token=t,this}get service(){return Ui(this,Jm)[Jm]}set service(t){Ui(this,Jm)[Jm]=String(t)}setService(t){return this.service=t,this}constructor(t=void 0){if(Object.defineProperty(this,xA,{value:BIe}),Object.defineProperty(this,Qm,{writable:!0,value:""}),Object.defineProperty(this,Jm,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Ui(this,xA)[xA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.token!==void 0&&(this.token=n.token),n.service!==void 0&&(this.service=n.service)}toJSON(){return{token:Ui(this,Qm)[Qm],service:Ui(this,Jm)[Jm]}}toString(){return JSON.stringify(this)}static get Fields(){return{token:"token",service:"service"}}static from(t){return new Ub(t)}static with(t){return new Ub(t)}copyWith(t){return new Ub({...this.toJSON(),...t})}clone(){return new Ub(this.toJSON())}}function BIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var pd=Vv("session"),Zm=Vv("next"),_A=Vv("isJsonAppliable"),D1=Vv("lateInitFields");class hv{get session(){return Ui(this,pd)[pd]}set session(t){t instanceof Dr?Ui(this,pd)[pd]=t:Ui(this,pd)[pd]=new Dr(t)}setSession(t){return this.session=t,this}get next(){return Ui(this,Zm)[Zm]}set next(t){Ui(this,Zm)[Zm]=t}setNext(t){return this.next=t,this}constructor(t=void 0){if(Object.defineProperty(this,D1,{value:zIe}),Object.defineProperty(this,_A,{value:WIe}),Object.defineProperty(this,pd,{writable:!0,value:void 0}),Object.defineProperty(this,Zm,{writable:!0,value:[]}),t==null){Ui(this,D1)[D1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Ui(this,_A)[_A](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),n.next!==void 0&&(this.next=n.next),Ui(this,D1)[D1](t)}toJSON(){return{session:Ui(this,pd)[pd],next:Ui(this,Zm)[Zm]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Wd("session",Dr.Fields)},next$:"next",get next(){return"next[:i]"}}}static from(t){return new hv(t)}static with(t){return new hv(t)}copyWith(t){return new hv({...this.toJSON(),...t})}clone(){return new hv(this.toJSON())}}function WIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function zIe(e={}){const t=e;t.session instanceof Dr||(this.session=new Dr(t.session||{}))}var Ds=(e=>(e.Email="email",e.Phone="phone",e.Google="google",e.Facebook="facebook",e))(Ds||{});const QE=()=>{const{setSession:e,selectUrw:t,selectedUrw:n}=R.useContext(rt),{locale:r}=sr(),{replace:a}=xr();return{onComplete:o=>{var g,y;e(o.data.item.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify(o.data));const u=new URLSearchParams(window.location.search).get("redirect"),d=sessionStorage.getItem("redirect_temporary");if(!((y=(g=o.data)==null?void 0:g.item.session)==null?void 0:y.token)){alert("Authentication has failed.");return}if(sessionStorage.removeItem("redirect_temporary"),sessionStorage.removeItem("workspace_type_id"),d)window.location.href=d;else if(u){const h=new URL(u);h.searchParams.set("session",JSON.stringify(o.data.item.session)),window.location.href=h.toString()}else{const h="/{locale}/dashboard".replace("{locale}",r||"en");a(h,h)}}}},qIe=e=>{R.useEffect(()=>{const t=new URLSearchParams(window.location.search),n=window.location.hash.indexOf("?"),r=n!==-1?new URLSearchParams(window.location.hash.slice(n)):new URLSearchParams;e.forEach(a=>{const i=t.get(a)||r.get(a);i&&sessionStorage.setItem(a,i)})},[e.join(",")])},HIe=({continueWithResult:e,facebookAppId:t})=>{Kt(xa),R.useEffect(()=>{if(window.FB)return;const r=document.createElement("script");r.src="https://connect.facebook.net/en_US/sdk.js",r.async=!0,r.onload=()=>{window.FB.init({appId:t,cookie:!0,xfbml:!1,version:"v19.0"})},document.body.appendChild(r)},[]);const n=()=>{const r=window.FB;if(!r){alert("Facebook SDK not loaded");return}r.login(a=>{var i;console.log("Facebook:",a),(i=a.authResponse)!=null&&i.accessToken?e(a.authResponse.accessToken):alert("Facebook login failed")},{scope:"email,public_profile"})};return w.jsxs("button",{id:"using-facebook",type:"button",onClick:n,children:[w.jsx("img",{className:"button-icon",src:Fs("/common/facebook.png")}),"Facebook"]})};var hE;function Gr(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var VIe=0;function of(e){return"__private_"+VIe+++"_"+e}const Lne=e=>{const t=Gs(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),Vd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[Vd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class Vd{}hE=Vd;Vd.URL="/passports/available-methods";Vd.NewUrl=e=>Vs(hE.URL,void 0,e);Vd.Method="get";Vd.Fetch$=async(e,t,n,r)=>qs(r??hE.NewUrl(e),{method:hE.Method,...n||{}},t);Vd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Qp(o)})=>{t=t||(l=>new Qp(l));const o=await hE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Vd.Definition={name:"CheckPassportMethods",cliName:"check-passport-methods",url:"/passports/available-methods",method:"get",description:"Publicly available information to create the authentication form, and show users how they can signin or signup to the system. Based on the PassportMethod entities, it will compute the available methods for the user, considering their region (IP for example)",out:{envelope:"GResponse",fields:[{name:"email",type:"bool",default:!1},{name:"phone",type:"bool",default:!1},{name:"google",type:"bool",default:!1},{name:"facebook",type:"bool",default:!1},{name:"googleOAuthClientKey",type:"string"},{name:"facebookAppId",type:"string"},{name:"enabledRecaptcha2",type:"bool",default:!1},{name:"recaptcha2ClientKey",type:"string"}]}};var eg=of("email"),tg=of("phone"),ng=of("google"),rg=of("facebook"),ag=of("googleOAuthClientKey"),ig=of("facebookAppId"),og=of("enabledRecaptcha2"),sg=of("recaptcha2ClientKey"),OA=of("isJsonAppliable");class Qp{get email(){return Gr(this,eg)[eg]}set email(t){Gr(this,eg)[eg]=!!t}setEmail(t){return this.email=t,this}get phone(){return Gr(this,tg)[tg]}set phone(t){Gr(this,tg)[tg]=!!t}setPhone(t){return this.phone=t,this}get google(){return Gr(this,ng)[ng]}set google(t){Gr(this,ng)[ng]=!!t}setGoogle(t){return this.google=t,this}get facebook(){return Gr(this,rg)[rg]}set facebook(t){Gr(this,rg)[rg]=!!t}setFacebook(t){return this.facebook=t,this}get googleOAuthClientKey(){return Gr(this,ag)[ag]}set googleOAuthClientKey(t){Gr(this,ag)[ag]=String(t)}setGoogleOAuthClientKey(t){return this.googleOAuthClientKey=t,this}get facebookAppId(){return Gr(this,ig)[ig]}set facebookAppId(t){Gr(this,ig)[ig]=String(t)}setFacebookAppId(t){return this.facebookAppId=t,this}get enabledRecaptcha2(){return Gr(this,og)[og]}set enabledRecaptcha2(t){Gr(this,og)[og]=!!t}setEnabledRecaptcha2(t){return this.enabledRecaptcha2=t,this}get recaptcha2ClientKey(){return Gr(this,sg)[sg]}set recaptcha2ClientKey(t){Gr(this,sg)[sg]=String(t)}setRecaptcha2ClientKey(t){return this.recaptcha2ClientKey=t,this}constructor(t=void 0){if(Object.defineProperty(this,OA,{value:GIe}),Object.defineProperty(this,eg,{writable:!0,value:!1}),Object.defineProperty(this,tg,{writable:!0,value:!1}),Object.defineProperty(this,ng,{writable:!0,value:!1}),Object.defineProperty(this,rg,{writable:!0,value:!1}),Object.defineProperty(this,ag,{writable:!0,value:""}),Object.defineProperty(this,ig,{writable:!0,value:""}),Object.defineProperty(this,og,{writable:!0,value:!1}),Object.defineProperty(this,sg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Gr(this,OA)[OA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.email!==void 0&&(this.email=n.email),n.phone!==void 0&&(this.phone=n.phone),n.google!==void 0&&(this.google=n.google),n.facebook!==void 0&&(this.facebook=n.facebook),n.googleOAuthClientKey!==void 0&&(this.googleOAuthClientKey=n.googleOAuthClientKey),n.facebookAppId!==void 0&&(this.facebookAppId=n.facebookAppId),n.enabledRecaptcha2!==void 0&&(this.enabledRecaptcha2=n.enabledRecaptcha2),n.recaptcha2ClientKey!==void 0&&(this.recaptcha2ClientKey=n.recaptcha2ClientKey)}toJSON(){return{email:Gr(this,eg)[eg],phone:Gr(this,tg)[tg],google:Gr(this,ng)[ng],facebook:Gr(this,rg)[rg],googleOAuthClientKey:Gr(this,ag)[ag],facebookAppId:Gr(this,ig)[ig],enabledRecaptcha2:Gr(this,og)[og],recaptcha2ClientKey:Gr(this,sg)[sg]}}toString(){return JSON.stringify(this)}static get Fields(){return{email:"email",phone:"phone",google:"google",facebook:"facebook",googleOAuthClientKey:"googleOAuthClientKey",facebookAppId:"facebookAppId",enabledRecaptcha2:"enabledRecaptcha2",recaptcha2ClientKey:"recaptcha2ClientKey"}}static from(t){return new Qp(t)}static with(t){return new Qp(t)}copyWith(t){return new Qp({...this.toJSON(),...t})}clone(){return new Qp(this.toJSON())}}function GIe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const YIe=()=>{var f,g;const e=At(),{locale:t}=sr(),{push:n}=xr(),r=R.useRef(),a=Lne({});qIe(["redirect_temporary","workspace_type_id"]);const[i,o]=R.useState(void 0),l=i?Object.values(i).filter(Boolean).length:void 0,u=(g=(f=a.data)==null?void 0:f.data)==null?void 0:g.item,d=(y,h=!0)=>{switch(y){case Ds.Email:n(`/${t}/selfservice/email`,void 0,{canGoBack:h});break;case Ds.Phone:n(`/${t}/selfservice/phone`,void 0,{canGoBack:h});break}};return R.useEffect(()=>{if(!u)return;const y={email:u.email,google:u.google,facebook:u.facebook,phone:u.phone,googleOAuthClientKey:u.googleOAuthClientKey,facebookAppId:u.facebookAppId};Object.values(y).filter(Boolean).length===1&&(y.email&&d(Ds.Email,!1),y.phone&&d(Ds.Phone,!1),y.google&&d(Ds.Google,!1),y.facebook&&d(Ds.Facebook,!1)),o(y)},[u]),{t:e,formik:r,onSelect:d,availableOptions:i,passportMethodsQuery:a,isLoadingMethods:a.isLoading,totalAvailableMethods:l}},KIe=()=>{const{onSelect:e,availableOptions:t,totalAvailableMethods:n,isLoadingMethods:r,passportMethodsQuery:a}=YIe(),i=tf({initialValues:{},onSubmit:()=>{}});return a.isError||a.error?w.jsx("div",{className:"signin-form-container",children:w.jsx(Il,{query:a})}):n===void 0||r?w.jsx("div",{className:"signin-form-container",children:w.jsx($ne,{})}):n===0?w.jsx("div",{className:"signin-form-container",children:w.jsx(QIe,{})}):w.jsx("div",{className:"signin-form-container",children:t.googleOAuthClientKey?w.jsx($Ie,{clientId:t.googleOAuthClientKey,children:w.jsx(pz,{availableOptions:t,onSelect:e,form:i})}):w.jsx(pz,{availableOptions:t,onSelect:e,form:i})})},pz=({form:e,onSelect:t,availableOptions:n})=>{const{mutateAsync:r}=UIe({}),{setSession:a}=R.useContext(rt),{locale:i}=sr(),{replace:o}=xr(),l=(d,f)=>{r(new Ub({service:f,token:d})).then(g=>{var y,h,v;a((h=(y=g.data)==null?void 0:y.item)==null?void 0:h.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify((v=g.data)==null?void 0:v.item));{const E=kr.DEFAULT_ROUTE.replace("{locale}",i||"en");o(E,E)}}).catch(g=>{alert(g)})},u=Kt(xa);return w.jsxs("form",{onSubmit:d=>{d.preventDefault(),e.submitForm()},children:[w.jsx("h1",{children:u.welcomeBack}),w.jsxs("p",{children:[u.welcomeBackDescription," "]}),w.jsxs("div",{role:"group","aria-label":"Login method",className:"flex gap-2 login-option-buttons",children:[n.email?w.jsx("button",{id:"using-email",type:"button",onClick:()=>t(Ds.Email),children:u.emailMethod}):null,n.phone?w.jsx("button",{id:"using-phone",type:"button",onClick:()=>t(Ds.Phone),children:u.phoneMethod}):null,n.facebook?w.jsx(HIe,{facebookAppId:n.facebookAppId,continueWithResult:d=>l(d,"facebook")}):null,n.google?w.jsx(XIe,{continueWithResult:d=>l(d,"google")}):null]})]})},XIe=({continueWithResult:e})=>{const t=Kt(xa),n=FIe({onSuccess:r=>{e(r.access_token)},scope:["https://www.googleapis.com/auth/userinfo.profile"].join(" ")});return w.jsx(w.Fragment,{children:w.jsxs("button",{id:"using-google",type:"button",onClick:()=>n(),children:[w.jsx("img",{className:"button-icon",src:Fs("/common/google.png")}),t.google]})})},QIe=()=>{const e=Kt(xa);return w.jsxs(w.Fragment,{children:[w.jsx("h1",{children:e.noAuthenticationMethod}),w.jsx("p",{children:e.noAuthenticationMethodDescription})]})};var JIe=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function x3(){return x3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function Sk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eDe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_3(e,t)}function _3(e,t){return _3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},_3(e,t)}var L_=(function(e){eDe(t,e);function t(){var r;return r=e.call(this)||this,r.handleExpired=r.handleExpired.bind(Sk(r)),r.handleErrored=r.handleErrored.bind(Sk(r)),r.handleChange=r.handleChange.bind(Sk(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(Sk(r)),r}var n=t.prototype;return n.getCaptchaFunction=function(a){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[a]:this.props.grecaptcha[a]:null},n.getValue=function(){var a=this.getCaptchaFunction("getResponse");return a&&this._widgetId!==void 0?a(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var a=this.getCaptchaFunction("execute");if(a&&this._widgetId!==void 0)return a(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var a=this;return new Promise(function(i,o){a.executionResolve=i,a.executionReject=o,a.execute()})},n.reset=function(){var a=this.getCaptchaFunction("reset");a&&this._widgetId!==void 0&&a(this._widgetId)},n.forceReset=function(){var a=this.getCaptchaFunction("reset");a&&a()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(a){this.props.onChange&&this.props.onChange(a),this.executionResolve&&(this.executionResolve(a),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var a=this.getCaptchaFunction("render");if(a&&this._widgetId===void 0){var i=document.createElement("div");this._widgetId=a(i,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(i)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(a){this.captcha=a},n.render=function(){var a=this.props;a.sitekey,a.onChange,a.theme,a.type,a.tabindex,a.onExpired,a.onErrored,a.size,a.stoken,a.grecaptcha,a.badge,a.hl,a.isolated;var i=ZIe(a,JIe);return R.createElement("div",x3({},i,{ref:this.handleRecaptchaRef}))},t})(R.Component);L_.displayName="ReCAPTCHA";L_.propTypes={sitekey:Ye.string.isRequired,onChange:Ye.func,grecaptcha:Ye.object,theme:Ye.oneOf(["dark","light"]),type:Ye.oneOf(["image","audio"]),tabindex:Ye.number,onExpired:Ye.func,onErrored:Ye.func,size:Ye.oneOf(["compact","normal","invisible"]),stoken:Ye.string,hl:Ye.string,badge:Ye.oneOf(["bottomright","bottomleft","inline"]),isolated:Ye.bool};L_.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};function O3(){return O3=Object.assign||function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function nDe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var hu={},rDe=0;function aDe(e,t){return t=t||{},function(r){var a=r.displayName||r.name||"Component",i=(function(l){nDe(u,l);function u(f,g){var y;return y=l.call(this,f,g)||this,y.state={},y.__scriptURL="",y}var d=u.prototype;return d.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+rDe++),this.__scriptLoaderID},d.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},d.asyncScriptLoaderHandleLoad=function(g){var y=this;this.setState(g,function(){return y.props.asyncScriptOnLoad&&y.props.asyncScriptOnLoad(y.state)})},d.asyncScriptLoaderTriggerOnScriptLoaded=function(){var g=hu[this.__scriptURL];if(!g||!g.loaded)throw new Error("Script is not loaded.");for(var y in g.observers)g.observers[y](g);delete window[t.callbackName]},d.componentDidMount=function(){var g=this,y=this.setupScriptURL(),h=this.asyncScriptLoaderGetScriptLoaderID(),v=t,E=v.globalName,T=v.callbackName,C=v.scriptId;if(E&&typeof window[E]<"u"&&(hu[y]={loaded:!0,observers:{}}),hu[y]){var k=hu[y];if(k&&(k.loaded||k.errored)){this.asyncScriptLoaderHandleLoad(k);return}k.observers[h]=function(I){return g.asyncScriptLoaderHandleLoad(I)};return}var _={};_[h]=function(I){return g.asyncScriptLoaderHandleLoad(I)},hu[y]={loaded:!1,observers:_};var A=document.createElement("script");A.src=y,A.async=!0;for(var P in t.attributes)A.setAttribute(P,t.attributes[P]);C&&(A.id=C);var N=function(L){if(hu[y]){var j=hu[y],z=j.observers;for(var Q in z)L(z[Q])&&delete z[Q]}};T&&typeof window<"u"&&(window[T]=function(){return g.asyncScriptLoaderTriggerOnScriptLoaded()}),A.onload=function(){var I=hu[y];I&&(I.loaded=!0,N(function(L){return T?!1:(L(I),!0)}))},A.onerror=function(){var I=hu[y];I&&(I.errored=!0,N(function(L){return L(I),!0}))},document.body.appendChild(A)},d.componentWillUnmount=function(){var g=this.__scriptURL;if(t.removeOnUnmount===!0)for(var y=document.getElementsByTagName("script"),h=0;h-1&&y[h].parentNode&&y[h].parentNode.removeChild(y[h]);var v=hu[g];v&&(delete v.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete hu[g])},d.render=function(){var g=t.globalName,y=this.props;y.asyncScriptOnLoad;var h=y.forwardedRef,v=tDe(y,["asyncScriptOnLoad","forwardedRef"]);return g&&typeof window<"u"&&(v[g]=typeof window[g]<"u"?window[g]:void 0),v.ref=h,R.createElement(r,v)},u})(R.Component),o=R.forwardRef(function(l,u){return R.createElement(i,O3({},l,{forwardedRef:u}))});return o.displayName="AsyncScriptLoader("+a+")",o.propTypes={asyncScriptOnLoad:Ye.func},cfe(o,r)}}var R3="onloadcallback",iDe="grecaptcha";function P3(){return typeof window<"u"&&window.recaptchaOptions||{}}function oDe(){var e=P3(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+R3+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+R3+"&render=explicit"}const sDe=aDe(oDe,{callbackName:R3,globalName:iDe,attributes:P3().nonce?{nonce:P3().nonce}:{}})(L_),lDe=({sitekey:e,enabled:t,invisible:n})=>{n=n===void 0?!0:n;const[r,a]=R.useState(),[i,o]=R.useState(!1),l=R.createRef(),u=R.useRef("");return R.useEffect(()=>{var g,y;t&&l.current&&((g=l.current)==null||g.execute(),(y=l.current)==null||y.reset())},[t,l.current]),R.useEffect(()=>{setTimeout(()=>{u.current||o(!0)},2e3)},[]),{value:r,Component:()=>!t||!e?null:w.jsx(w.Fragment,{children:w.jsx(sDe,{sitekey:e,size:n&&!i?"invisible":void 0,ref:l,onChange:g=>{a(g),u.current=g}})}),LegalNotice:()=>!n||!t?null:w.jsxs("div",{className:"mt-5 recaptcha-closure",children:["This site is protected by reCAPTCHA and the Google",w.jsxs("a",{target:"_blank",href:"https://policies.google.com/privacy",children:[" ","Privacy Policy"," "]})," ","and",w.jsxs("a",{target:"_blank",href:"https://policies.google.com/terms",children:[" ","Terms of Service"," "]})," ","apply."]})}};var mE,yS,Fp,jp,Up,Bp,Ek;function wr(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var uDe=0;function xl(e){return"__private_"+uDe+++"_"+e}const cDe=e=>{const n=Gs()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Eh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Eh{}mE=Eh;Eh.URL="/workspace/passport/check";Eh.NewUrl=e=>Vs(mE.URL,void 0,e);Eh.Method="post";Eh.Fetch$=async(e,t,n,r)=>qs(r??mE.NewUrl(e),{method:mE.Method,...n||{}},t);Eh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Cl(o)})=>{t=t||(l=>new Cl(l));const o=await mE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Eh.Definition={name:"CheckClassicPassport",cliName:"ccp",url:"/workspace/passport/check",method:"post",description:"Checks if a classic passport (email, phone) exists or not, used in multi step authentication",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"securityToken",description:"This can be the value of ReCaptcha2, ReCaptcha3, or generate security image or voice for verification. Will be used based on the configuration.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"flags",description:"Extra information that can be useful actually when doing onboarding. Make sure sensitive information doesn't go out.",type:"slice",primitive:"string"},{name:"otpInfo",description:"If the endpoint automatically triggers a send otp, then it would be holding that information, Also the otp information can become available.",type:"object?",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}]}};var lg=xl("value"),ug=xl("securityToken"),RA=xl("isJsonAppliable");class mv{get value(){return wr(this,lg)[lg]}set value(t){wr(this,lg)[lg]=String(t)}setValue(t){return this.value=t,this}get securityToken(){return wr(this,ug)[ug]}set securityToken(t){wr(this,ug)[ug]=String(t)}setSecurityToken(t){return this.securityToken=t,this}constructor(t=void 0){if(Object.defineProperty(this,RA,{value:dDe}),Object.defineProperty(this,lg,{writable:!0,value:""}),Object.defineProperty(this,ug,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(wr(this,RA)[RA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.securityToken!==void 0&&(this.securityToken=n.securityToken)}toJSON(){return{value:wr(this,lg)[lg],securityToken:wr(this,ug)[ug]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",securityToken:"securityToken"}}static from(t){return new mv(t)}static with(t){return new mv(t)}copyWith(t){return new mv({...this.toJSON(),...t})}clone(){return new mv(this.toJSON())}}function dDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var cg=xl("next"),dg=xl("flags"),hd=xl("otpInfo"),PA=xl("isJsonAppliable");class Cl{get next(){return wr(this,cg)[cg]}set next(t){wr(this,cg)[cg]=t}setNext(t){return this.next=t,this}get flags(){return wr(this,dg)[dg]}set flags(t){wr(this,dg)[dg]=t}setFlags(t){return this.flags=t,this}get otpInfo(){return wr(this,hd)[hd]}set otpInfo(t){t instanceof Cl.OtpInfo?wr(this,hd)[hd]=t:wr(this,hd)[hd]=new Cl.OtpInfo(t)}setOtpInfo(t){return this.otpInfo=t,this}constructor(t=void 0){if(Object.defineProperty(this,PA,{value:fDe}),Object.defineProperty(this,cg,{writable:!0,value:[]}),Object.defineProperty(this,dg,{writable:!0,value:[]}),Object.defineProperty(this,hd,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(wr(this,PA)[PA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.next!==void 0&&(this.next=n.next),n.flags!==void 0&&(this.flags=n.flags),n.otpInfo!==void 0&&(this.otpInfo=n.otpInfo)}toJSON(){return{next:wr(this,cg)[cg],flags:wr(this,dg)[dg],otpInfo:wr(this,hd)[hd]}}toString(){return JSON.stringify(this)}static get Fields(){return{next$:"next",get next(){return"next[:i]"},flags$:"flags",get flags(){return"flags[:i]"},otpInfo$:"otpInfo",get otpInfo(){return Wd("otpInfo",Cl.OtpInfo.Fields)}}}static from(t){return new Cl(t)}static with(t){return new Cl(t)}copyWith(t){return new Cl({...this.toJSON(),...t})}clone(){return new Cl(this.toJSON())}}yS=Cl;function fDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}Cl.OtpInfo=(Fp=xl("suspendUntil"),jp=xl("validUntil"),Up=xl("blockedUntil"),Bp=xl("secondsToUnblock"),Ek=xl("isJsonAppliable"),class{get suspendUntil(){return wr(this,Fp)[Fp]}set suspendUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,Fp)[Fp]=r)}setSuspendUntil(t){return this.suspendUntil=t,this}get validUntil(){return wr(this,jp)[jp]}set validUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,jp)[jp]=r)}setValidUntil(t){return this.validUntil=t,this}get blockedUntil(){return wr(this,Up)[Up]}set blockedUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,Up)[Up]=r)}setBlockedUntil(t){return this.blockedUntil=t,this}get secondsToUnblock(){return wr(this,Bp)[Bp]}set secondsToUnblock(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(wr(this,Bp)[Bp]=r)}setSecondsToUnblock(t){return this.secondsToUnblock=t,this}constructor(t=void 0){if(Object.defineProperty(this,Ek,{value:pDe}),Object.defineProperty(this,Fp,{writable:!0,value:0}),Object.defineProperty(this,jp,{writable:!0,value:0}),Object.defineProperty(this,Up,{writable:!0,value:0}),Object.defineProperty(this,Bp,{writable:!0,value:0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(wr(this,Ek)[Ek](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:wr(this,Fp)[Fp],validUntil:wr(this,jp)[jp],blockedUntil:wr(this,Up)[Up],secondsToUnblock:wr(this,Bp)[Bp]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(t){return new yS.OtpInfo(t)}static with(t){return new yS.OtpInfo(t)}copyWith(t){return new yS.OtpInfo({...this.toJSON(),...t})}clone(){return new yS.OtpInfo(this.toJSON())}});function pDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const hDe=({method:e})=>{var k,_,A;const t=Kt(xa),{goBack:n,push:r,state:a}=xr(),{locale:i}=sr(),o=cDe(),l=(a==null?void 0:a.canGoBack)!==!1;let u=!1,d="";const{data:f}=Lne({});f instanceof us&&f.data.item instanceof Qp&&(u=(k=f==null?void 0:f.data)==null?void 0:k.item.enabledRecaptcha2,d=(A=(_=f==null?void 0:f.data)==null?void 0:_.item)==null?void 0:A.recaptcha2ClientKey);const g=P=>{o.mutateAsync(new mv(P)).then(N=>{var j;const{next:I,flags:L}=(j=N==null?void 0:N.data)==null?void 0:j.item;I.includes("otp")&&I.length===1?r(`/${i}/selfservice/otp`,void 0,{value:P.value,type:e}):I.includes("signin-with-password")?r(`/${i}/selfservice/password`,void 0,{value:P.value,next:I,canContinueOnOtp:I==null?void 0:I.includes("otp"),flags:L}):I.includes("create-with-password")&&r(`/${i}/selfservice/complete`,void 0,{value:P.value,type:e,next:I,flags:L})}).catch(N=>{y==null||y.setErrors(S0(N))})},y=tf({initialValues:{},onSubmit:g});let h=t.continueWithEmail,v=t.continueWithEmailDescription;e==="phone"&&(h=t.continueWithPhone,v=t.continueWithPhoneDescription);const{Component:E,LegalNotice:T,value:C}=lDe({enabled:u,sitekey:d});return R.useEffect(()=>{!u||!C||y.setFieldValue(mv.Fields.securityToken,C)},[C]),{title:h,mutation:o,canGoBack:l,form:y,enabledRecaptcha2:u,recaptcha2ClientKey:d,description:v,Recaptcha:E,LegalNotice:T,s:t,submit:g,goBack:n}};var gE;function Or(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var mDe=0;function Pu(e){return"__private_"+mDe+++"_"+e}const Fne=e=>{const n=Gs()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Th.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Th{}gE=Th;Th.URL="/passports/signin/classic";Th.NewUrl=e=>Vs(gE.URL,void 0,e);Th.Method="post";Th.Fetch$=async(e,t,n,r)=>qs(r??gE.NewUrl(e),{method:gE.Method,...n||{}},t);Th.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new gv(o)})=>{t=t||(l=>new gv(l));const o=await gE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Th.Definition={name:"ClassicSignin",cliName:"in",url:"/passports/signin/classic",method:"post",description:"Signin publicly to and account using class passports (email, password)",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"Accepts login with totp code. If enabled, first login would return a success response with next[enter-totp] value and ui can understand that user needs to be navigated into the screen other screen.",type:"string"},{name:"sessionSecret",description:"Session secret when logging in to the application requires more steps to complete.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"},{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"totpUrl",description:"In case the account doesn't have totp, but enforced by installation, this value will contain the link",type:"string"},{name:"sessionSecret",description:"Returns a secret session if the authentication requires more steps.",type:"string"}]}};var fg=Pu("value"),pg=Pu("password"),hg=Pu("totpCode"),mg=Pu("sessionSecret"),AA=Pu("isJsonAppliable");class Su{get value(){return Or(this,fg)[fg]}set value(t){Or(this,fg)[fg]=String(t)}setValue(t){return this.value=t,this}get password(){return Or(this,pg)[pg]}set password(t){Or(this,pg)[pg]=String(t)}setPassword(t){return this.password=t,this}get totpCode(){return Or(this,hg)[hg]}set totpCode(t){Or(this,hg)[hg]=String(t)}setTotpCode(t){return this.totpCode=t,this}get sessionSecret(){return Or(this,mg)[mg]}set sessionSecret(t){Or(this,mg)[mg]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}constructor(t=void 0){if(Object.defineProperty(this,AA,{value:gDe}),Object.defineProperty(this,fg,{writable:!0,value:""}),Object.defineProperty(this,pg,{writable:!0,value:""}),Object.defineProperty(this,hg,{writable:!0,value:""}),Object.defineProperty(this,mg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Or(this,AA)[AA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret)}toJSON(){return{value:Or(this,fg)[fg],password:Or(this,pg)[pg],totpCode:Or(this,hg)[hg],sessionSecret:Or(this,mg)[mg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode",sessionSecret:"sessionSecret"}}static from(t){return new Su(t)}static with(t){return new Su(t)}copyWith(t){return new Su({...this.toJSON(),...t})}clone(){return new Su(this.toJSON())}}function gDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var md=Pu("session"),gg=Pu("next"),vg=Pu("totpUrl"),yg=Pu("sessionSecret"),NA=Pu("isJsonAppliable"),$1=Pu("lateInitFields");class gv{get session(){return Or(this,md)[md]}set session(t){t instanceof Dr?Or(this,md)[md]=t:Or(this,md)[md]=new Dr(t)}setSession(t){return this.session=t,this}get next(){return Or(this,gg)[gg]}set next(t){Or(this,gg)[gg]=t}setNext(t){return this.next=t,this}get totpUrl(){return Or(this,vg)[vg]}set totpUrl(t){Or(this,vg)[vg]=String(t)}setTotpUrl(t){return this.totpUrl=t,this}get sessionSecret(){return Or(this,yg)[yg]}set sessionSecret(t){Or(this,yg)[yg]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}constructor(t=void 0){if(Object.defineProperty(this,$1,{value:yDe}),Object.defineProperty(this,NA,{value:vDe}),Object.defineProperty(this,md,{writable:!0,value:void 0}),Object.defineProperty(this,gg,{writable:!0,value:[]}),Object.defineProperty(this,vg,{writable:!0,value:""}),Object.defineProperty(this,yg,{writable:!0,value:""}),t==null){Or(this,$1)[$1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Or(this,NA)[NA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),n.next!==void 0&&(this.next=n.next),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),Or(this,$1)[$1](t)}toJSON(){return{session:Or(this,md)[md],next:Or(this,gg)[gg],totpUrl:Or(this,vg)[vg],sessionSecret:Or(this,yg)[yg]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Wd("session",Dr.Fields)},next$:"next",get next(){return"next[:i]"},totpUrl:"totpUrl",sessionSecret:"sessionSecret"}}static from(t){return new gv(t)}static with(t){return new gv(t)}copyWith(t){return new gv({...this.toJSON(),...t})}clone(){return new gv(this.toJSON())}}function vDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function yDe(e={}){const t=e;t.session instanceof Dr||(this.session=new Dr(t.session||{}))}const hz=({method:e})=>{const{description:t,title:n,goBack:r,mutation:a,form:i,canGoBack:o,LegalNotice:l,Recaptcha:u,s:d}=hDe({method:e});return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:n}),w.jsx("p",{children:t}),w.jsx(Il,{query:a}),w.jsx(wDe,{form:i,method:e,mutation:a}),w.jsx(u,{}),o?w.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:r,children:d.chooseAnotherMethod}):null,w.jsx(l,{})]})},bDe=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),wDe=({form:e,mutation:t,method:n})=>{var o,l,u;let r="email";n===Ds.Phone&&(r="phonenumber");let a=!((o=e==null?void 0:e.values)!=null&&o.value);Ds.Email===n&&(a=!bDe((l=e==null?void 0:e.values)==null?void 0:l.value));const i=Kt(xa);return w.jsxs("form",{onSubmit:d=>{d.preventDefault(),e.submitForm()},children:[w.jsx(In,{autoFocus:!0,type:r,id:"value-input",dir:"ltr",value:(u=e==null?void 0:e.values)==null?void 0:u.value,errorMessage:e==null?void 0:e.errors.value,onChange:d=>e.setFieldValue(Su.Fields.value,d,!1)}),w.jsx(Ws,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:a,children:i.continue})]})};var SDe=Object.defineProperty,Wx=Object.getOwnPropertySymbols,jne=Object.prototype.hasOwnProperty,Une=Object.prototype.propertyIsEnumerable,mz=(e,t,n)=>t in e?SDe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A3=(e,t)=>{for(var n in t||(t={}))jne.call(t,n)&&mz(e,n,t[n]);if(Wx)for(var n of Wx(t))Une.call(t,n)&&mz(e,n,t[n]);return e},N3=(e,t)=>{var n={};for(var r in e)jne.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Wx)for(var r of Wx(e))t.indexOf(r)<0&&Une.call(e,r)&&(n[r]=e[r]);return n};/** * @license QR Code generator library (TypeScript) * Copyright (c) Project Nayuki. * SPDX-License-Identifier: MIT - */var Rv;(e=>{const t=class Vn{constructor(u,d,f,g){if(this.version=u,this.errorCorrectionLevel=d,this.modules=[],this.isFunction=[],uVn.MAX_VERSION)throw new RangeError("Version value out of range");if(g<-1||g>7)throw new RangeError("Mask value out of range");this.size=u*4+17;let y=[];for(let v=0;v7)throw new RangeError("Invalid value");let v,E;for(v=f;;v++){const _=Vn.getNumDataCodewords(v,d)*8,A=o.getTotalBits(u,v);if(A<=_){E=A;break}if(v>=g)throw new RangeError("Data too long")}for(const _ of[Vn.Ecc.MEDIUM,Vn.Ecc.QUARTILE,Vn.Ecc.HIGH])h&&E<=Vn.getNumDataCodewords(v,_)*8&&(d=_);let T=[];for(const _ of u){n(_.mode.modeBits,4,T),n(_.numChars,_.mode.numCharCountBits(v),T);for(const A of _.getData())T.push(A)}a(T.length==E);const C=Vn.getNumDataCodewords(v,d)*8;a(T.length<=C),n(0,Math.min(4,C-T.length),T),n(0,(8-T.length%8)%8,T),a(T.length%8==0);for(let _=236;T.lengthk[A>>>3]|=_<<7-(A&7)),new Vn(v,d,k,y)}getModule(u,d){return 0<=u&&u>>9)*1335;const g=(d<<10|f)^21522;a(g>>>15==0);for(let y=0;y<=5;y++)this.setFunctionModule(8,y,r(g,y));this.setFunctionModule(8,7,r(g,6)),this.setFunctionModule(8,8,r(g,7)),this.setFunctionModule(7,8,r(g,8));for(let y=9;y<15;y++)this.setFunctionModule(14-y,8,r(g,y));for(let y=0;y<8;y++)this.setFunctionModule(this.size-1-y,8,r(g,y));for(let y=8;y<15;y++)this.setFunctionModule(8,this.size-15+y,r(g,y));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let u=this.version;for(let f=0;f<12;f++)u=u<<1^(u>>>11)*7973;const d=this.version<<12|u;a(d>>>18==0);for(let f=0;f<18;f++){const g=r(d,f),y=this.size-11+f%3,h=Math.floor(f/3);this.setFunctionModule(y,h,g),this.setFunctionModule(h,y,g)}}drawFinderPattern(u,d){for(let f=-4;f<=4;f++)for(let g=-4;g<=4;g++){const y=Math.max(Math.abs(g),Math.abs(f)),h=u+g,v=d+f;0<=h&&h{(_!=E-y||P>=v)&&k.push(A[_])});return a(k.length==h),k}drawCodewords(u){if(u.length!=Math.floor(Vn.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let d=0;for(let f=this.size-1;f>=1;f-=2){f==6&&(f=5);for(let g=0;g>>3],7-(d&7)),d++)}}a(d==u.length*8)}applyMask(u){if(u<0||u>7)throw new RangeError("Mask value out of range");for(let d=0;d5&&u++):(this.finderPenaltyAddHistory(v,E),h||(u+=this.finderPenaltyCountPatterns(E)*Vn.PENALTY_N3),h=this.modules[y][T],v=1);u+=this.finderPenaltyTerminateAndCount(h,v,E)*Vn.PENALTY_N3}for(let y=0;y5&&u++):(this.finderPenaltyAddHistory(v,E),h||(u+=this.finderPenaltyCountPatterns(E)*Vn.PENALTY_N3),h=this.modules[T][y],v=1);u+=this.finderPenaltyTerminateAndCount(h,v,E)*Vn.PENALTY_N3}for(let y=0;yh+(v?1:0),d);const f=this.size*this.size,g=Math.ceil(Math.abs(d*20-f*10)/f)-1;return a(0<=g&&g<=9),u+=g*Vn.PENALTY_N4,a(0<=u&&u<=2568888),u}getAlignmentPatternPositions(){if(this.version==1)return[];{const u=Math.floor(this.version/7)+2,d=this.version==32?26:Math.ceil((this.version*4+4)/(u*2-2))*2;let f=[6];for(let g=this.size-7;f.lengthVn.MAX_VERSION)throw new RangeError("Version number out of range");let d=(16*u+128)*u+64;if(u>=2){const f=Math.floor(u/7)+2;d-=(25*f-10)*f-55,u>=7&&(d-=36)}return a(208<=d&&d<=29648),d}static getNumDataCodewords(u,d){return Math.floor(Vn.getNumRawDataModules(u)/8)-Vn.ECC_CODEWORDS_PER_BLOCK[d.ordinal][u]*Vn.NUM_ERROR_CORRECTION_BLOCKS[d.ordinal][u]}static reedSolomonComputeDivisor(u){if(u<1||u>255)throw new RangeError("Degree out of range");let d=[];for(let g=0;g0);for(const g of u){const y=g^f.shift();f.push(0),d.forEach((h,v)=>f[v]^=Vn.reedSolomonMultiply(h,y))}return f}static reedSolomonMultiply(u,d){if(u>>>8||d>>>8)throw new RangeError("Byte out of range");let f=0;for(let g=7;g>=0;g--)f=f<<1^(f>>>7)*285,f^=(d>>>g&1)*u;return a(f>>>8==0),f}finderPenaltyCountPatterns(u){const d=u[1];a(d<=this.size*3);const f=d>0&&u[2]==d&&u[3]==d*3&&u[4]==d&&u[5]==d;return(f&&u[0]>=d*4&&u[6]>=d?1:0)+(f&&u[6]>=d*4&&u[0]>=d?1:0)}finderPenaltyTerminateAndCount(u,d,f){return u&&(this.finderPenaltyAddHistory(d,f),d=0),d+=this.size,this.finderPenaltyAddHistory(d,f),this.finderPenaltyCountPatterns(f)}finderPenaltyAddHistory(u,d){d[0]==0&&(u+=this.size),d.pop(),d.unshift(u)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(l,u,d){if(u<0||u>31||l>>>u)throw new RangeError("Value out of range");for(let f=u-1;f>=0;f--)d.push(l>>>f&1)}function r(l,u){return(l>>>u&1)!=0}function a(l){if(!l)throw new Error("Assertion error")}const i=class ba{constructor(u,d,f){if(this.mode=u,this.numChars=d,this.bitData=f,d<0)throw new RangeError("Invalid argument");this.bitData=f.slice()}static makeBytes(u){let d=[];for(const f of u)n(f,8,d);return new ba(ba.Mode.BYTE,u.length,d)}static makeNumeric(u){if(!ba.isNumeric(u))throw new RangeError("String contains non-numeric characters");let d=[];for(let f=0;f=1<{(t=>{const n=class{constructor(a,i){this.ordinal=a,this.formatBits=i}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(Rv||(Rv={}));(e=>{(t=>{const n=class{constructor(a,i){this.modeBits=a,this.numBitsCharCount=i}numCharCountBits(a){return this.numBitsCharCount[Math.floor((a+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(Rv||(Rv={}));var Nb=Rv;/** + */var $v;(e=>{const t=class Vn{constructor(u,d,f,g){if(this.version=u,this.errorCorrectionLevel=d,this.modules=[],this.isFunction=[],uVn.MAX_VERSION)throw new RangeError("Version value out of range");if(g<-1||g>7)throw new RangeError("Mask value out of range");this.size=u*4+17;let y=[];for(let v=0;v7)throw new RangeError("Invalid value");let v,E;for(v=f;;v++){const _=Vn.getNumDataCodewords(v,d)*8,A=o.getTotalBits(u,v);if(A<=_){E=A;break}if(v>=g)throw new RangeError("Data too long")}for(const _ of[Vn.Ecc.MEDIUM,Vn.Ecc.QUARTILE,Vn.Ecc.HIGH])h&&E<=Vn.getNumDataCodewords(v,_)*8&&(d=_);let T=[];for(const _ of u){n(_.mode.modeBits,4,T),n(_.numChars,_.mode.numCharCountBits(v),T);for(const A of _.getData())T.push(A)}a(T.length==E);const C=Vn.getNumDataCodewords(v,d)*8;a(T.length<=C),n(0,Math.min(4,C-T.length),T),n(0,(8-T.length%8)%8,T),a(T.length%8==0);for(let _=236;T.lengthk[A>>>3]|=_<<7-(A&7)),new Vn(v,d,k,y)}getModule(u,d){return 0<=u&&u>>9)*1335;const g=(d<<10|f)^21522;a(g>>>15==0);for(let y=0;y<=5;y++)this.setFunctionModule(8,y,r(g,y));this.setFunctionModule(8,7,r(g,6)),this.setFunctionModule(8,8,r(g,7)),this.setFunctionModule(7,8,r(g,8));for(let y=9;y<15;y++)this.setFunctionModule(14-y,8,r(g,y));for(let y=0;y<8;y++)this.setFunctionModule(this.size-1-y,8,r(g,y));for(let y=8;y<15;y++)this.setFunctionModule(8,this.size-15+y,r(g,y));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let u=this.version;for(let f=0;f<12;f++)u=u<<1^(u>>>11)*7973;const d=this.version<<12|u;a(d>>>18==0);for(let f=0;f<18;f++){const g=r(d,f),y=this.size-11+f%3,h=Math.floor(f/3);this.setFunctionModule(y,h,g),this.setFunctionModule(h,y,g)}}drawFinderPattern(u,d){for(let f=-4;f<=4;f++)for(let g=-4;g<=4;g++){const y=Math.max(Math.abs(g),Math.abs(f)),h=u+g,v=d+f;0<=h&&h{(_!=E-y||P>=v)&&k.push(A[_])});return a(k.length==h),k}drawCodewords(u){if(u.length!=Math.floor(Vn.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let d=0;for(let f=this.size-1;f>=1;f-=2){f==6&&(f=5);for(let g=0;g>>3],7-(d&7)),d++)}}a(d==u.length*8)}applyMask(u){if(u<0||u>7)throw new RangeError("Mask value out of range");for(let d=0;d5&&u++):(this.finderPenaltyAddHistory(v,E),h||(u+=this.finderPenaltyCountPatterns(E)*Vn.PENALTY_N3),h=this.modules[y][T],v=1);u+=this.finderPenaltyTerminateAndCount(h,v,E)*Vn.PENALTY_N3}for(let y=0;y5&&u++):(this.finderPenaltyAddHistory(v,E),h||(u+=this.finderPenaltyCountPatterns(E)*Vn.PENALTY_N3),h=this.modules[T][y],v=1);u+=this.finderPenaltyTerminateAndCount(h,v,E)*Vn.PENALTY_N3}for(let y=0;yh+(v?1:0),d);const f=this.size*this.size,g=Math.ceil(Math.abs(d*20-f*10)/f)-1;return a(0<=g&&g<=9),u+=g*Vn.PENALTY_N4,a(0<=u&&u<=2568888),u}getAlignmentPatternPositions(){if(this.version==1)return[];{const u=Math.floor(this.version/7)+2,d=this.version==32?26:Math.ceil((this.version*4+4)/(u*2-2))*2;let f=[6];for(let g=this.size-7;f.lengthVn.MAX_VERSION)throw new RangeError("Version number out of range");let d=(16*u+128)*u+64;if(u>=2){const f=Math.floor(u/7)+2;d-=(25*f-10)*f-55,u>=7&&(d-=36)}return a(208<=d&&d<=29648),d}static getNumDataCodewords(u,d){return Math.floor(Vn.getNumRawDataModules(u)/8)-Vn.ECC_CODEWORDS_PER_BLOCK[d.ordinal][u]*Vn.NUM_ERROR_CORRECTION_BLOCKS[d.ordinal][u]}static reedSolomonComputeDivisor(u){if(u<1||u>255)throw new RangeError("Degree out of range");let d=[];for(let g=0;g0);for(const g of u){const y=g^f.shift();f.push(0),d.forEach((h,v)=>f[v]^=Vn.reedSolomonMultiply(h,y))}return f}static reedSolomonMultiply(u,d){if(u>>>8||d>>>8)throw new RangeError("Byte out of range");let f=0;for(let g=7;g>=0;g--)f=f<<1^(f>>>7)*285,f^=(d>>>g&1)*u;return a(f>>>8==0),f}finderPenaltyCountPatterns(u){const d=u[1];a(d<=this.size*3);const f=d>0&&u[2]==d&&u[3]==d*3&&u[4]==d&&u[5]==d;return(f&&u[0]>=d*4&&u[6]>=d?1:0)+(f&&u[6]>=d*4&&u[0]>=d?1:0)}finderPenaltyTerminateAndCount(u,d,f){return u&&(this.finderPenaltyAddHistory(d,f),d=0),d+=this.size,this.finderPenaltyAddHistory(d,f),this.finderPenaltyCountPatterns(f)}finderPenaltyAddHistory(u,d){d[0]==0&&(u+=this.size),d.pop(),d.unshift(u)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(l,u,d){if(u<0||u>31||l>>>u)throw new RangeError("Value out of range");for(let f=u-1;f>=0;f--)d.push(l>>>f&1)}function r(l,u){return(l>>>u&1)!=0}function a(l){if(!l)throw new Error("Assertion error")}const i=class wa{constructor(u,d,f){if(this.mode=u,this.numChars=d,this.bitData=f,d<0)throw new RangeError("Invalid argument");this.bitData=f.slice()}static makeBytes(u){let d=[];for(const f of u)n(f,8,d);return new wa(wa.Mode.BYTE,u.length,d)}static makeNumeric(u){if(!wa.isNumeric(u))throw new RangeError("String contains non-numeric characters");let d=[];for(let f=0;f=1<{(t=>{const n=class{constructor(a,i){this.ordinal=a,this.formatBits=i}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})($v||($v={}));(e=>{(t=>{const n=class{constructor(a,i){this.modeBits=a,this.numBitsCharCount=i}numCharCountBits(a){return this.numBitsCharCount[Math.floor((a+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})($v||($v={}));var Bb=$v;/** * @license qrcode.react * Copyright (c) Paul O'Shannessy * SPDX-License-Identifier: ISC - */var iDe={L:Nb.QrCode.Ecc.LOW,M:Nb.QrCode.Ecc.MEDIUM,Q:Nb.QrCode.Ecc.QUARTILE,H:Nb.QrCode.Ecc.HIGH},One=128,Rne="L",Pne="#FFFFFF",Ane="#000000",Nne=!1,Mne=1,oDe=4,sDe=0,lDe=.1;function Ine(e,t=0){const n=[];return e.forEach(function(r,a){let i=null;r.forEach(function(o,l){if(!o&&i!==null){n.push(`M${i+t} ${a+t}h${l-i}v1H${i+t}z`),i=null;return}if(l===r.length-1){if(!o)return;i===null?n.push(`M${l+t},${a+t} h1v1H${l+t}z`):n.push(`M${i+t},${a+t} h${l+1-i}v1H${i+t}z`);return}o&&i===null&&(i=l)})}),n.join("")}function Dne(e,t){return e.slice().map((n,r)=>r=t.y+t.h?n:n.map((a,i)=>i=t.x+t.w?a:!1))}function uDe(e,t,n,r){if(r==null)return null;const a=e.length+n*2,i=Math.floor(t*lDe),o=a/t,l=(r.width||i)*o,u=(r.height||i)*o,d=r.x==null?e.length/2-l/2:r.x*o,f=r.y==null?e.length/2-u/2:r.y*o,g=r.opacity==null?1:r.opacity;let y=null;if(r.excavate){let v=Math.floor(d),E=Math.floor(f),T=Math.ceil(l+d-v),C=Math.ceil(u+f-E);y={x:v,y:E,w:T,h:C}}const h=r.crossOrigin;return{x:d,y:f,h:u,w:l,excavation:y,opacity:g,crossOrigin:h}}function cDe(e,t){return t!=null?Math.max(Math.floor(t),0):e?oDe:sDe}function $ne({value:e,level:t,minVersion:n,includeMargin:r,marginSize:a,imageSettings:i,size:o,boostLevel:l}){let u=ze.useMemo(()=>{const v=(Array.isArray(e)?e:[e]).reduce((E,T)=>(E.push(...Nb.QrSegment.makeSegments(T)),E),[]);return Nb.QrCode.encodeSegments(v,iDe[t],n,void 0,void 0,l)},[e,t,n,l]);const{cells:d,margin:f,numCells:g,calculatedImageSettings:y}=ze.useMemo(()=>{let h=u.getModules();const v=cDe(r,a),E=h.length+v*2,T=uDe(h,o,v,i);return{cells:h,margin:v,numCells:E,calculatedImageSettings:T}},[u,o,i,r,a]);return{qrcode:u,margin:f,cells:d,numCells:g,calculatedImageSettings:y}}var dDe=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),fDe=ze.forwardRef(function(t,n){const r=t,{value:a,size:i=One,level:o=Rne,bgColor:l=Pne,fgColor:u=Ane,includeMargin:d=Nne,minVersion:f=Mne,boostLevel:g,marginSize:y,imageSettings:h}=r,E=b3(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:T}=E,C=b3(E,["style"]),k=h==null?void 0:h.src,_=ze.useRef(null),A=ze.useRef(null),P=ze.useCallback(ge=>{_.current=ge,typeof n=="function"?n(ge):n&&(n.current=ge)},[n]),[N,I]=ze.useState(!1),{margin:L,cells:j,numCells:z,calculatedImageSettings:Q}=$ne({value:a,level:o,minVersion:f,boostLevel:g,includeMargin:d,marginSize:y,imageSettings:h,size:i});ze.useEffect(()=>{if(_.current!=null){const ge=_.current,me=ge.getContext("2d");if(!me)return;let W=j;const G=A.current,q=Q!=null&&G!==null&&G.complete&&G.naturalHeight!==0&&G.naturalWidth!==0;q&&Q.excavation!=null&&(W=Dne(j,Q.excavation));const ce=window.devicePixelRatio||1;ge.height=ge.width=i*ce;const H=i/z*ce;me.scale(H,H),me.fillStyle=l,me.fillRect(0,0,z,z),me.fillStyle=u,dDe?me.fill(new Path2D(Ine(W,L))):j.forEach(function(Y,ie){Y.forEach(function(J,ee){J&&me.fillRect(ee+L,ie+L,1,1)})}),Q&&(me.globalAlpha=Q.opacity),q&&me.drawImage(G,Q.x+L,Q.y+L,Q.w,Q.h)}}),ze.useEffect(()=>{I(!1)},[k]);const le=y3({height:i,width:i},T);let re=null;return k!=null&&(re=ze.createElement("img",{src:k,key:k,style:{display:"none"},onLoad:()=>{I(!0)},ref:A,crossOrigin:Q==null?void 0:Q.crossOrigin})),ze.createElement(ze.Fragment,null,ze.createElement("canvas",y3({style:le,height:i,width:i,ref:P,role:"img"},C)),re)});fDe.displayName="QRCodeCanvas";var Lne=ze.forwardRef(function(t,n){const r=t,{value:a,size:i=One,level:o=Rne,bgColor:l=Pne,fgColor:u=Ane,includeMargin:d=Nne,minVersion:f=Mne,boostLevel:g,title:y,marginSize:h,imageSettings:v}=r,E=b3(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:T,cells:C,numCells:k,calculatedImageSettings:_}=$ne({value:a,level:o,minVersion:f,boostLevel:g,includeMargin:d,marginSize:h,imageSettings:v,size:i});let A=C,P=null;v!=null&&_!=null&&(_.excavation!=null&&(A=Dne(C,_.excavation)),P=ze.createElement("image",{href:v.src,height:_.h,width:_.w,x:_.x+T,y:_.y+T,preserveAspectRatio:"none",opacity:_.opacity,crossOrigin:_.crossOrigin}));const N=Ine(A,T);return ze.createElement("svg",y3({height:i,width:i,viewBox:`0 0 ${k} ${k}`,ref:n,role:"img"},E),!!y&&ze.createElement("title",null,y),ze.createElement("path",{fill:l,d:`M0,0 h${k}v${k}H0z`,shapeRendering:"crispEdges"}),ze.createElement("path",{fill:u,d:N,shapeRendering:"crispEdges"}),P)});Lne.displayName="QRCodeSVG";const _1={backspace:8,left:37,up:38,right:39,down:40};class BE extends R.Component{constructor(t){super(t),this.__clearvalues__=()=>{const{fields:o}=this.props;this.setState({values:Array(o).fill("")}),this.iRefs[0].current.focus()},this.triggerChange=(o=this.state.values)=>{const{onChange:l,onComplete:u,fields:d}=this.props,f=o.join("");l&&l(f),u&&f.length>=d&&u(f)},this.onChange=o=>{const l=parseInt(o.target.dataset.id);if(this.props.type==="number"&&(o.target.value=o.target.value.replace(/[^\d]/gi,"")),o.target.value===""||this.props.type==="number"&&!o.target.validity.valid)return;const{fields:u}=this.props;let d;const f=o.target.value;let{values:g}=this.state;if(g=Object.assign([],g),f.length>1){let y=f.length+l-1;y>=u&&(y=u-1),d=this.iRefs[y],f.split("").forEach((v,E)=>{const T=l+E;T{const l=parseInt(o.target.dataset.id),u=l-1,d=l+1,f=this.iRefs[u],g=this.iRefs[d];switch(o.keyCode){case _1.backspace:o.preventDefault();const y=[...this.state.values];this.state.values[l]?(y[l]="",this.setState({values:y}),this.triggerChange(y)):f&&(y[u]="",f.current.focus(),this.setState({values:y}),this.triggerChange(y));break;case _1.left:o.preventDefault(),f&&f.current.focus();break;case _1.right:o.preventDefault(),g&&g.current.focus();break;case _1.up:case _1.down:o.preventDefault();break}},this.onFocus=o=>{o.target.select(o)};const{fields:n,values:r}=t;let a,i=0;if(r&&r.length){a=[];for(let o=0;o=n?0:r.length}else a=Array(n).fill("");this.state={values:a,autoFocusIndex:i},this.iRefs=[];for(let o=0;ow.jsx("input",{type:f==="number"?"tel":f,pattern:f==="number"?"[0-9]*":null,autoFocus:u&&E===n,style:g,"data-id":E,value:v,id:this.props.id?`${this.props.id}-${E}`:null,ref:this.iRefs[E],onChange:this.onChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,disabled:this.props.disabled,required:this.props.required,placeholder:this.props.placeholder[E]},`${this.id}-${E}`))}),r&&w.jsxs("div",{className:"rc-loading",style:h,children:[w.jsx("div",{className:"rc-blur"}),w.jsx("svg",{className:"rc-spin",viewBox:"0 0 1024 1024","data-icon":"loading",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:w.jsx("path",{fill:"#006fff",d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"})})]})]})}}BE.propTypes={type:Ye.oneOf(["text","number"]),onChange:Ye.func,onComplete:Ye.func,fields:Ye.number,loading:Ye.bool,title:Ye.string,fieldWidth:Ye.number,id:Ye.string,fieldHeight:Ye.number,autoFocus:Ye.bool,className:Ye.string,values:Ye.arrayOf(Ye.string),disabled:Ye.bool,required:Ye.bool,placeholder:Ye.arrayOf(Ye.string)};BE.defaultProps={type:"number",fields:6,fieldWidth:58,fieldHeight:54,autoFocus:!0,disabled:!1,required:!1,placeholder:[]};var oE;function Ui(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var pDe=0;function jv(e){return"__private_"+pDe+++"_"+e}const hDe=e=>{const n=Ml()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Sh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Sh{}oE=Sh;Sh.URL="/passport/totp/confirm";Sh.NewUrl=e=>Nl(oE.URL,void 0,e);Sh.Method="post";Sh.Fetch$=async(e,t,n,r)=>Rl(r??oE.NewUrl(e),{method:oE.Method,...n||{}},t);Sh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new cv(o)})=>{t=t||(l=>new cv(l));const o=await oE.Fetch$(n,r,e,i);return Pl(o,l=>{const u=new Ws;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Sh.Definition={name:"ConfirmClassicPassportTotp",url:"/passport/totp/confirm",method:"post",description:"When user requires to setup the totp for an specifc passport, they can use this endpoint to confirm it.",in:{fields:[{name:"value",description:"Passport value, email or phone number which is already successfully registered.",type:"string",tags:{validate:"required"}},{name:"password",description:"Password related to the passport. Totp is only available for passports with a password. Basically totp is protecting passport, not otp over email or sms.",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"The totp code generated by authenticator such as google or microsft apps.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"}]}};var pg=jv("value"),hg=jv("password"),mg=jv("totpCode"),wA=jv("isJsonAppliable");class Kp{get value(){return Ui(this,pg)[pg]}set value(t){Ui(this,pg)[pg]=String(t)}setValue(t){return this.value=t,this}get password(){return Ui(this,hg)[hg]}set password(t){Ui(this,hg)[hg]=String(t)}setPassword(t){return this.password=t,this}get totpCode(){return Ui(this,mg)[mg]}set totpCode(t){Ui(this,mg)[mg]=String(t)}setTotpCode(t){return this.totpCode=t,this}constructor(t=void 0){if(Object.defineProperty(this,wA,{value:mDe}),Object.defineProperty(this,pg,{writable:!0,value:""}),Object.defineProperty(this,hg,{writable:!0,value:""}),Object.defineProperty(this,mg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Ui(this,wA)[wA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode)}toJSON(){return{value:Ui(this,pg)[pg],password:Ui(this,hg)[hg],totpCode:Ui(this,mg)[mg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode"}}static from(t){return new Kp(t)}static with(t){return new Kp(t)}copyWith(t){return new Kp({...this.toJSON(),...t})}clone(){return new Kp(this.toJSON())}}function mDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var hd=jv("session"),SA=jv("isJsonAppliable"),O1=jv("lateInitFields");class cv{get session(){return Ui(this,hd)[hd]}set session(t){t instanceof Ta?Ui(this,hd)[hd]=t:Ui(this,hd)[hd]=new Ta(t)}setSession(t){return this.session=t,this}constructor(t=void 0){if(Object.defineProperty(this,O1,{value:vDe}),Object.defineProperty(this,SA,{value:gDe}),Object.defineProperty(this,hd,{writable:!0,value:void 0}),t==null){Ui(this,O1)[O1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Ui(this,SA)[SA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),Ui(this,O1)[O1](t)}toJSON(){return{session:Ui(this,hd)[hd]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return ah("session",Ta.Fields)}}}static from(t){return new cv(t)}static with(t){return new cv(t)}copyWith(t){return new cv({...this.toJSON(),...t})}clone(){return new cv(this.toJSON())}}function gDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function vDe(e={}){const t=e;t.session instanceof Ta||(this.session=new Ta(t.session||{}))}const yDe=()=>{const{goBack:e,state:t}=xr(),n=hDe(),{onComplete:r}=UE(),a=t==null?void 0:t.totpUrl,i=t==null?void 0:t.forcedTotp,o=t==null?void 0:t.password,l=t==null?void 0:t.value,u=g=>{n.mutateAsync(new Kp({...g,password:o,value:l})).then(f).catch(y=>{d==null||d.setErrors(f0(y))})},d=Jd({initialValues:{},onSubmit:u}),f=g=>{var y,h;(h=(y=g.data)==null?void 0:y.item)!=null&&h.session&&r(g)};return{mutation:n,totpUrl:a,forcedTotp:i,form:d,submit:u,goBack:e}},bDe=({})=>{const{goBack:e,mutation:t,form:n,totpUrl:r,forcedTotp:a}=yDe(),i=Kt(xa);return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:i.setupTotp}),w.jsx("p",{children:i.setupTotpDescription}),w.jsx(Al,{query:t}),w.jsx(wDe,{form:n,totpUrl:r,mutation:t,forcedTotp:a}),w.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:e,children:"Try another account"})]})},wDe=({form:e,mutation:t,forcedTotp:n,totpUrl:r})=>{var o;const a=Kt(xa),i=!e.values.totpCode||e.values.totpCode.length!=6;return w.jsxs("form",{onSubmit:l=>{l.preventDefault(),e.submitForm()},children:[w.jsx("center",{children:w.jsx(Lne,{value:r,width:200,height:200})}),w.jsx(BE,{values:(o=e.values.totpCode)==null?void 0:o.split(""),onChange:l=>e.setFieldValue(Kp.Fields.totpCode,l,!1),className:"otp-react-code-input"}),w.jsx(Us,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:i,children:a.continue}),n!==!0&&w.jsxs(w.Fragment,{children:[w.jsx("p",{className:"mt-4",children:a.skipTotpInfo}),w.jsx("button",{className:"btn btn-warning w-100 d-block mb-2",children:a.skipTotpButton})]})]})},SDe=()=>{const{goBack:e,state:t,replace:n,push:r}=xr(),a=kne(),{onComplete:i}=UE(),o=t==null?void 0:t.totpUrl,l=t==null?void 0:t.forcedTotp,u=t==null?void 0:t.password,d=t==null?void 0:t.value,f=h=>{a.mutateAsync(new wu({...h,password:u,value:d})).then(y).catch(v=>{g==null||g.setErrors(f0(v))})},g=Jd({initialValues:{},onSubmit:(h,v)=>{a.mutateAsync(new wu(h))}}),y=h=>{var v,E;(E=(v=h.data)==null?void 0:v.item)!=null&&E.session&&i(h)};return{mutation:a,totpUrl:o,forcedTotp:l,form:g,submit:f,goBack:e}},EDe=({})=>{const{goBack:e,mutation:t,form:n}=SDe(),r=Kt(xa);return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:r.enterTotp}),w.jsx("p",{children:r.enterTotpDescription}),w.jsx(Al,{query:t}),w.jsx(TDe,{form:n,mutation:t}),w.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:e,children:r.anotherAccount})]})},TDe=({form:e,mutation:t})=>{var a;const n=!e.values.totpCode||e.values.totpCode.length!=6,r=Kt(xa);return w.jsxs("form",{onSubmit:i=>{i.preventDefault(),e.submitForm()},children:[w.jsx(BE,{values:(a=e.values.totpCode)==null?void 0:a.split(""),onChange:i=>e.setFieldValue(Kp.Fields.totpCode,i,!1),className:"otp-react-code-input"}),w.jsx(Us,{className:"btn btn-success w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:n,children:r.continue})]})};var sE;function Cn(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var CDe=0;function oo(e){return"__private_"+CDe+++"_"+e}const kDe=e=>{const n=Ml()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Eh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Eh{}sE=Eh;Eh.URL="/passports/signup/classic";Eh.NewUrl=e=>Nl(sE.URL,void 0,e);Eh.Method="post";Eh.Fetch$=async(e,t,n,r)=>Rl(r??sE.NewUrl(e),{method:sE.Method,...n||{}},t);Eh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new dv(o)})=>{t=t||(l=>new dv(l));const o=await sE.Fetch$(n,r,e,i);return Pl(o,l=>{const u=new Ws;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Eh.Definition={name:"ClassicSignup",cliName:"up",url:"/passports/signup/classic",method:"post",description:"Signup a user into system via public access (aka website visitors) using either email or phone number.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"sessionSecret",description:"Required when the account creation requires recaptcha, or otp approval first. If such requirements are there, you first need to follow the otp apis, get the session secret and pass it here to complete the setup.",type:"string"},{name:"type",type:"enum",of:[{k:"phonenumber"},{k:"email"}],tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"firstName",type:"string",tags:{validate:"required"}},{name:"lastName",type:"string",tags:{validate:"required"}},{name:"inviteId",type:"string?"},{name:"publicJoinKeyId",type:"string?"},{name:"workspaceTypeId",type:"string?",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Returns the user session in case that signup is completely successful.",type:"one",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"continueToTotp",description:"Returns true and session will be empty if, the totp is required by the installation. In such scenario, you need to forward user to setup totp screen.",type:"bool"},{name:"forcedTotp",description:"Determines if user must complete totp in order to continue based on workspace or installation",type:"bool"}]}};var gg=oo("value"),vg=oo("sessionSecret"),yg=oo("type"),bg=oo("password"),wg=oo("firstName"),Sg=oo("lastName"),Eg=oo("inviteId"),Tg=oo("publicJoinKeyId"),Cg=oo("workspaceTypeId"),EA=oo("isJsonAppliable");class bc{get value(){return Cn(this,gg)[gg]}set value(t){Cn(this,gg)[gg]=String(t)}setValue(t){return this.value=t,this}get sessionSecret(){return Cn(this,vg)[vg]}set sessionSecret(t){Cn(this,vg)[vg]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}get type(){return Cn(this,yg)[yg]}set type(t){Cn(this,yg)[yg]=t}setType(t){return this.type=t,this}get password(){return Cn(this,bg)[bg]}set password(t){Cn(this,bg)[bg]=String(t)}setPassword(t){return this.password=t,this}get firstName(){return Cn(this,wg)[wg]}set firstName(t){Cn(this,wg)[wg]=String(t)}setFirstName(t){return this.firstName=t,this}get lastName(){return Cn(this,Sg)[Sg]}set lastName(t){Cn(this,Sg)[Sg]=String(t)}setLastName(t){return this.lastName=t,this}get inviteId(){return Cn(this,Eg)[Eg]}set inviteId(t){const n=typeof t=="string"||t===void 0||t===null;Cn(this,Eg)[Eg]=n?t:String(t)}setInviteId(t){return this.inviteId=t,this}get publicJoinKeyId(){return Cn(this,Tg)[Tg]}set publicJoinKeyId(t){const n=typeof t=="string"||t===void 0||t===null;Cn(this,Tg)[Tg]=n?t:String(t)}setPublicJoinKeyId(t){return this.publicJoinKeyId=t,this}get workspaceTypeId(){return Cn(this,Cg)[Cg]}set workspaceTypeId(t){const n=typeof t=="string"||t===void 0||t===null;Cn(this,Cg)[Cg]=n?t:String(t)}setWorkspaceTypeId(t){return this.workspaceTypeId=t,this}constructor(t=void 0){if(Object.defineProperty(this,EA,{value:xDe}),Object.defineProperty(this,gg,{writable:!0,value:""}),Object.defineProperty(this,vg,{writable:!0,value:""}),Object.defineProperty(this,yg,{writable:!0,value:void 0}),Object.defineProperty(this,bg,{writable:!0,value:""}),Object.defineProperty(this,wg,{writable:!0,value:""}),Object.defineProperty(this,Sg,{writable:!0,value:""}),Object.defineProperty(this,Eg,{writable:!0,value:void 0}),Object.defineProperty(this,Tg,{writable:!0,value:void 0}),Object.defineProperty(this,Cg,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Cn(this,EA)[EA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.type!==void 0&&(this.type=n.type),n.password!==void 0&&(this.password=n.password),n.firstName!==void 0&&(this.firstName=n.firstName),n.lastName!==void 0&&(this.lastName=n.lastName),n.inviteId!==void 0&&(this.inviteId=n.inviteId),n.publicJoinKeyId!==void 0&&(this.publicJoinKeyId=n.publicJoinKeyId),n.workspaceTypeId!==void 0&&(this.workspaceTypeId=n.workspaceTypeId)}toJSON(){return{value:Cn(this,gg)[gg],sessionSecret:Cn(this,vg)[vg],type:Cn(this,yg)[yg],password:Cn(this,bg)[bg],firstName:Cn(this,wg)[wg],lastName:Cn(this,Sg)[Sg],inviteId:Cn(this,Eg)[Eg],publicJoinKeyId:Cn(this,Tg)[Tg],workspaceTypeId:Cn(this,Cg)[Cg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",sessionSecret:"sessionSecret",type:"type",password:"password",firstName:"firstName",lastName:"lastName",inviteId:"inviteId",publicJoinKeyId:"publicJoinKeyId",workspaceTypeId:"workspaceTypeId"}}static from(t){return new bc(t)}static with(t){return new bc(t)}copyWith(t){return new bc({...this.toJSON(),...t})}clone(){return new bc(this.toJSON())}}function xDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var md=oo("session"),kg=oo("totpUrl"),xg=oo("continueToTotp"),_g=oo("forcedTotp"),TA=oo("isJsonAppliable"),R1=oo("lateInitFields");class dv{get session(){return Cn(this,md)[md]}set session(t){t instanceof Ta?Cn(this,md)[md]=t:Cn(this,md)[md]=new Ta(t)}setSession(t){return this.session=t,this}get totpUrl(){return Cn(this,kg)[kg]}set totpUrl(t){Cn(this,kg)[kg]=String(t)}setTotpUrl(t){return this.totpUrl=t,this}get continueToTotp(){return Cn(this,xg)[xg]}set continueToTotp(t){Cn(this,xg)[xg]=!!t}setContinueToTotp(t){return this.continueToTotp=t,this}get forcedTotp(){return Cn(this,_g)[_g]}set forcedTotp(t){Cn(this,_g)[_g]=!!t}setForcedTotp(t){return this.forcedTotp=t,this}constructor(t=void 0){if(Object.defineProperty(this,R1,{value:ODe}),Object.defineProperty(this,TA,{value:_De}),Object.defineProperty(this,md,{writable:!0,value:void 0}),Object.defineProperty(this,kg,{writable:!0,value:""}),Object.defineProperty(this,xg,{writable:!0,value:void 0}),Object.defineProperty(this,_g,{writable:!0,value:void 0}),t==null){Cn(this,R1)[R1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Cn(this,TA)[TA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.continueToTotp!==void 0&&(this.continueToTotp=n.continueToTotp),n.forcedTotp!==void 0&&(this.forcedTotp=n.forcedTotp),Cn(this,R1)[R1](t)}toJSON(){return{session:Cn(this,md)[md],totpUrl:Cn(this,kg)[kg],continueToTotp:Cn(this,xg)[xg],forcedTotp:Cn(this,_g)[_g]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return ah("session",Ta.Fields)},totpUrl:"totpUrl",continueToTotp:"continueToTotp",forcedTotp:"forcedTotp"}}static from(t){return new dv(t)}static with(t){return new dv(t)}copyWith(t){return new dv({...this.toJSON(),...t})}clone(){return new dv(this.toJSON())}}function _De(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function ODe(e={}){const t=e;t.session instanceof Ta||(this.session=new Ta(t.session||{}))}var lE;function Os(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var RDe=0;function WE(e){return"__private_"+RDe+++"_"+e}const PDe=e=>{const t=Ml(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),qd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[qd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class qd{}lE=qd;qd.URL="/workspace/public/types";qd.NewUrl=e=>Nl(lE.URL,void 0,e);qd.Method="get";qd.Fetch$=async(e,t,n,r)=>Rl(r??lE.NewUrl(e),{method:lE.Method,...n||{}},t);qd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new fv(o)})=>{t=t||(l=>new fv(l));const o=await lE.Fetch$(n,r,e,i);return Pl(o,l=>{const u=new Ws;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};qd.Definition={name:"QueryWorkspaceTypesPublicly",cliName:"public-types",url:"/workspace/public/types",method:"get",description:"Returns the workspaces types available in the project publicly without authentication, and the value could be used upon signup to go different route.",out:{envelope:"GResponse",fields:[{name:"title",type:"string"},{name:"description",type:"string"},{name:"uniqueId",type:"string"},{name:"slug",type:"string"}]}};var Og=WE("title"),Rg=WE("description"),Pg=WE("uniqueId"),Ag=WE("slug"),CA=WE("isJsonAppliable");class fv{get title(){return Os(this,Og)[Og]}set title(t){Os(this,Og)[Og]=String(t)}setTitle(t){return this.title=t,this}get description(){return Os(this,Rg)[Rg]}set description(t){Os(this,Rg)[Rg]=String(t)}setDescription(t){return this.description=t,this}get uniqueId(){return Os(this,Pg)[Pg]}set uniqueId(t){Os(this,Pg)[Pg]=String(t)}setUniqueId(t){return this.uniqueId=t,this}get slug(){return Os(this,Ag)[Ag]}set slug(t){Os(this,Ag)[Ag]=String(t)}setSlug(t){return this.slug=t,this}constructor(t=void 0){if(Object.defineProperty(this,CA,{value:ADe}),Object.defineProperty(this,Og,{writable:!0,value:""}),Object.defineProperty(this,Rg,{writable:!0,value:""}),Object.defineProperty(this,Pg,{writable:!0,value:""}),Object.defineProperty(this,Ag,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Os(this,CA)[CA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.title!==void 0&&(this.title=n.title),n.description!==void 0&&(this.description=n.description),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.slug!==void 0&&(this.slug=n.slug)}toJSON(){return{title:Os(this,Og)[Og],description:Os(this,Rg)[Rg],uniqueId:Os(this,Pg)[Pg],slug:Os(this,Ag)[Ag]}}toString(){return JSON.stringify(this)}static get Fields(){return{title:"title",description:"description",uniqueId:"uniqueId",slug:"slug"}}static from(t){return new fv(t)}static with(t){return new fv(t)}copyWith(t){return new fv({...this.toJSON(),...t})}clone(){return new fv(this.toJSON())}}function ADe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const NDe=()=>{var k;const{goBack:e,state:t,push:n}=xr(),{locale:r}=sr(),{onComplete:a}=UE(),i=kDe(),o=t==null?void 0:t.totpUrl,{data:l,isLoading:u}=PDe({}),d=((k=l==null?void 0:l.data)==null?void 0:k.items)||[],f=Kt(xa),g=sessionStorage.getItem("workspace_type_id"),y=_=>{i.mutateAsync(new bc({..._,value:t==null?void 0:t.value,workspaceTypeId:C,type:t==null?void 0:t.type,sessionSecret:t==null?void 0:t.sessionSecret})).then(v).catch(A=>{h==null||h.setErrors(f0(A))})},h=Jd({initialValues:{},onSubmit:y});R.useEffect(()=>{h==null||h.setFieldValue(bc.Fields.value,t==null?void 0:t.value)},[t==null?void 0:t.value]);const v=_=>{_.data.item.session?a(_):_.data.item.continueToTotp&&n(`/${r}/selfservice/totp-setup`,void 0,{totpUrl:_.data.item.totpUrl||o,forcedTotp:_.data.item.forcedTotp,password:h.values.password,value:t==null?void 0:t.value})},[E,T]=R.useState("");let C=d.length===1?d[0].uniqueId:E;return g&&(C=g),{mutation:i,isLoading:u,form:h,setSelectedWorkspaceType:T,totpUrl:o,workspaceTypeId:C,submit:y,goBack:e,s:f,workspaceTypes:d,state:t}},MDe=({})=>{const{goBack:e,mutation:t,form:n,workspaceTypes:r,workspaceTypeId:a,isLoading:i,setSelectedWorkspaceType:o,s:l}=NDe();return i?w.jsx("div",{className:"signin-form-container",children:w.jsx(Tne,{})}):r.length===0?w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:l.registerationNotPossible}),w.jsx("p",{children:l.registerationNotPossibleLine1}),w.jsx("p",{children:l.registerationNotPossibleLine2})]}):r.length>=2&&!a?w.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[w.jsx("h1",{children:l.completeYourAccount}),w.jsx("p",{children:l.completeYourAccountDescription}),w.jsx("div",{className:" ",children:r.map(u=>w.jsxs("div",{className:"mt-3",children:[w.jsx("h2",{children:u.title}),w.jsx("p",{children:u.description}),w.jsx("button",{className:"btn btn-outline-primary w-100",onClick:()=>{o(u.uniqueId)},children:"Select"},u.uniqueId)]},u.uniqueId))})]}):w.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[w.jsx("h1",{children:l.completeYourAccount}),w.jsx("p",{children:l.completeYourAccountDescription}),w.jsx(Al,{query:t}),w.jsx(IDe,{form:n,mutation:t}),w.jsx("button",{id:"go-step-back",onClick:e,className:"bg-transparent border-0",children:l.cancelStep})]})},IDe=({form:e,mutation:t})=>{const n=Kt(xa),r=!e.values.firstName||!e.values.lastName||!e.values.password||e.values.password.length<6;return w.jsxs("form",{onSubmit:a=>{a.preventDefault(),e.submitForm()},children:[w.jsx(In,{value:e.values.firstName,label:n.firstName,id:"first-name-input",autoFocus:!0,errorMessage:e.errors.firstName,onChange:a=>e.setFieldValue(bc.Fields.firstName,a,!1)}),w.jsx(In,{value:e.values.lastName,label:n.lastName,id:"last-name-input",errorMessage:e.errors.lastName,onChange:a=>e.setFieldValue(bc.Fields.lastName,a,!1)}),w.jsx(In,{type:"password",value:e.values.password,label:n.password,id:"password-input",errorMessage:e.errors.password,onChange:a=>e.setFieldValue(bc.Fields.password,a,!1)}),w.jsx(Us,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:r,children:n.continue})]})};var uE;function Li(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var DDe=0;function Uv(e){return"__private_"+DDe+++"_"+e}const $De=e=>{const n=Ml()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Th.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Th{}uE=Th;Th.URL="/workspace/passport/request-otp";Th.NewUrl=e=>Nl(uE.URL,void 0,e);Th.Method="post";Th.Fetch$=async(e,t,n,r)=>Rl(r??uE.NewUrl(e),{method:uE.Method,...n||{}},t);Th.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new pv(o)})=>{t=t||(l=>new pv(l));const o=await uE.Fetch$(n,r,e,i);return Pl(o,l=>{const u=new Ws;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Th.Definition={name:"ClassicPassportRequestOtp",cliName:"otp-request",url:"/workspace/passport/request-otp",method:"post",description:"Triggers an otp request, and will send an sms or email to the passport. This endpoint is not used for login, but rather makes a request at initial step. Later you can call classicPassportOtp to get in.",in:{fields:[{name:"value",description:"Passport value (email, phone number) which would be receiving the otp code.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}};var Ng=Uv("value"),kA=Uv("isJsonAppliable");class Mb{get value(){return Li(this,Ng)[Ng]}set value(t){Li(this,Ng)[Ng]=String(t)}setValue(t){return this.value=t,this}constructor(t=void 0){if(Object.defineProperty(this,kA,{value:LDe}),Object.defineProperty(this,Ng,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Li(this,kA)[kA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value)}toJSON(){return{value:Li(this,Ng)[Ng]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value"}}static from(t){return new Mb(t)}static with(t){return new Mb(t)}copyWith(t){return new Mb({...this.toJSON(),...t})}clone(){return new Mb(this.toJSON())}}function LDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var Mg=Uv("suspendUntil"),Ig=Uv("validUntil"),Dg=Uv("blockedUntil"),$g=Uv("secondsToUnblock"),xA=Uv("isJsonAppliable");class pv{get suspendUntil(){return Li(this,Mg)[Mg]}set suspendUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Li(this,Mg)[Mg]=r)}setSuspendUntil(t){return this.suspendUntil=t,this}get validUntil(){return Li(this,Ig)[Ig]}set validUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Li(this,Ig)[Ig]=r)}setValidUntil(t){return this.validUntil=t,this}get blockedUntil(){return Li(this,Dg)[Dg]}set blockedUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Li(this,Dg)[Dg]=r)}setBlockedUntil(t){return this.blockedUntil=t,this}get secondsToUnblock(){return Li(this,$g)[$g]}set secondsToUnblock(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Li(this,$g)[$g]=r)}setSecondsToUnblock(t){return this.secondsToUnblock=t,this}constructor(t=void 0){if(Object.defineProperty(this,xA,{value:FDe}),Object.defineProperty(this,Mg,{writable:!0,value:0}),Object.defineProperty(this,Ig,{writable:!0,value:0}),Object.defineProperty(this,Dg,{writable:!0,value:0}),Object.defineProperty(this,$g,{writable:!0,value:0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Li(this,xA)[xA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:Li(this,Mg)[Mg],validUntil:Li(this,Ig)[Ig],blockedUntil:Li(this,Dg)[Dg],secondsToUnblock:Li(this,$g)[$g]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(t){return new pv(t)}static with(t){return new pv(t)}copyWith(t){return new pv({...this.toJSON(),...t})}clone(){return new pv(this.toJSON())}}function FDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const jDe=()=>{const e=Kt(xa),{goBack:t,state:n,push:r}=xr(),{locale:a}=sr(),{onComplete:i}=UE(),o=kne(),l=n==null?void 0:n.canContinueOnOtp,u=$De(),d=h=>{o.mutateAsync(new wu({value:h.value,password:h.password})).then(y).catch(v=>{f==null||f.setErrors(f0(v))})},f=Jd({initialValues:{},onSubmit:d}),g=()=>{u.mutateAsync(new Mb({value:f.values.value})).then(h=>{r("../otp",void 0,{value:f.values.value})}).catch(h=>{h.error.message==="OtaRequestBlockedUntil"&&r("../otp",void 0,{value:f.values.value})})};R.useEffect(()=>{n!=null&&n.value&&f.setFieldValue(wu.Fields.value,n.value)},[n==null?void 0:n.value]);const y=h=>{var v,E;h.data.item.session?i(h):(v=h.data.item.next)!=null&&v.includes("enter-totp")?r(`/${a}/selfservice/totp-enter`,void 0,{value:f.values.value,password:f.values.password}):(E=h.data.item.next)!=null&&E.includes("setup-totp")&&r(`/${a}/selfservice/totp-setup`,void 0,{totpUrl:h.data.item.totpUrl,forcedTotp:!0,password:f.values.password,value:n==null?void 0:n.value})};return{mutation:o,otpEnabled:l,continueWithOtp:g,form:f,submit:d,goBack:t,s:e}},UDe=({})=>{const{goBack:e,mutation:t,form:n,continueWithOtp:r,otpEnabled:a,s:i}=jDe();return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:i.enterPassword}),w.jsx("p",{children:i.enterPasswordDescription}),w.jsx(Al,{query:t}),w.jsx(BDe,{form:n,mutation:t,continueWithOtp:r,otpEnabled:a}),w.jsx("button",{id:"go-back-button",onClick:e,className:"btn bg-transparent w-100 mt-4",children:i.anotherAccount})]})},BDe=({form:e,mutation:t,otpEnabled:n,continueWithOtp:r})=>{const a=Kt(xa),i=!e.values.value||!e.values.password;return w.jsxs("form",{onSubmit:o=>{o.preventDefault(),e.submitForm()},children:[w.jsx(In,{type:"password",value:e.values.password,label:a.password,id:"password-input",autoFocus:!0,errorMessage:e.errors.password,onChange:o=>e.setFieldValue(wu.Fields.password,o,!1)}),w.jsx(Us,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:i,children:a.continue}),n&&w.jsx("button",{onClick:r,className:"bg-transparent border-0 mt-3 mb-3",children:a.useOneTimePassword})]})};var cE;function Fa(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var WDe=0;function Ch(e){return"__private_"+WDe+++"_"+e}const zDe=e=>{const t=Ml(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),kh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result))),...e||{}}),isCompleted:r,response:i}};class kh{}cE=kh;kh.URL="/workspace/passport/otp";kh.NewUrl=e=>Nl(cE.URL,void 0,e);kh.Method="post";kh.Fetch$=async(e,t,n,r)=>Rl(r??cE.NewUrl(e),{method:cE.Method,...n||{}},t);kh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new mv(o)})=>{t=t||(l=>new mv(l));const o=await cE.Fetch$(n,r,e,i);return Pl(o,l=>{const u=new Ws;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};kh.Definition={name:"ClassicPassportOtp",cliName:"otp",url:"/workspace/passport/otp",method:"post",description:"Authenticate the user publicly for classic methods using communication service, such as sms, call, or email. You need to call classicPassportRequestOtp beforehand to send a otp code, and then validate it with this API. Also checkClassicPassport action might already sent the otp, so make sure you don't send it twice.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"otp",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Upon successful authentication, there will be a session dto generated, which is a ground information of authorized user and can be stored in front-end.",type:"one?",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"sessionSecret",description:"The session secret will be used to call complete user registration api.",type:"string"},{name:"continueWithCreation",description:"If return true, means the OTP is correct and user needs to be created before continue the authentication process.",type:"bool"}]}};var Lg=Ch("value"),Fg=Ch("otp"),_A=Ch("isJsonAppliable");class hv{get value(){return Fa(this,Lg)[Lg]}set value(t){Fa(this,Lg)[Lg]=String(t)}setValue(t){return this.value=t,this}get otp(){return Fa(this,Fg)[Fg]}set otp(t){Fa(this,Fg)[Fg]=String(t)}setOtp(t){return this.otp=t,this}constructor(t=void 0){if(Object.defineProperty(this,_A,{value:qDe}),Object.defineProperty(this,Lg,{writable:!0,value:""}),Object.defineProperty(this,Fg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Fa(this,_A)[_A](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.otp!==void 0&&(this.otp=n.otp)}toJSON(){return{value:Fa(this,Lg)[Lg],otp:Fa(this,Fg)[Fg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",otp:"otp"}}static from(t){return new hv(t)}static with(t){return new hv(t)}copyWith(t){return new hv({...this.toJSON(),...t})}clone(){return new hv(this.toJSON())}}function qDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var gd=Ch("session"),jg=Ch("totpUrl"),Ug=Ch("sessionSecret"),Bg=Ch("continueWithCreation"),OA=Ch("isJsonAppliable");class mv{get session(){return Fa(this,gd)[gd]}set session(t){t instanceof Ta?Fa(this,gd)[gd]=t:Fa(this,gd)[gd]=new Ta(t)}setSession(t){return this.session=t,this}get totpUrl(){return Fa(this,jg)[jg]}set totpUrl(t){Fa(this,jg)[jg]=String(t)}setTotpUrl(t){return this.totpUrl=t,this}get sessionSecret(){return Fa(this,Ug)[Ug]}set sessionSecret(t){Fa(this,Ug)[Ug]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}get continueWithCreation(){return Fa(this,Bg)[Bg]}set continueWithCreation(t){Fa(this,Bg)[Bg]=!!t}setContinueWithCreation(t){return this.continueWithCreation=t,this}constructor(t=void 0){if(Object.defineProperty(this,OA,{value:HDe}),Object.defineProperty(this,gd,{writable:!0,value:void 0}),Object.defineProperty(this,jg,{writable:!0,value:""}),Object.defineProperty(this,Ug,{writable:!0,value:""}),Object.defineProperty(this,Bg,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Fa(this,OA)[OA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.continueWithCreation!==void 0&&(this.continueWithCreation=n.continueWithCreation)}toJSON(){return{session:Fa(this,gd)[gd],totpUrl:Fa(this,jg)[jg],sessionSecret:Fa(this,Ug)[Ug],continueWithCreation:Fa(this,Bg)[Bg]}}toString(){return JSON.stringify(this)}static get Fields(){return{session:"session",totpUrl:"totpUrl",sessionSecret:"sessionSecret",continueWithCreation:"continueWithCreation"}}static from(t){return new mv(t)}static with(t){return new mv(t)}copyWith(t){return new mv({...this.toJSON(),...t})}clone(){return new mv(this.toJSON())}}function HDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const VDe=()=>{const{goBack:e,state:t,replace:n,push:r}=xr(),{locale:a}=sr(),i=Kt(xa),o=zDe({}),{onComplete:l}=UE(),u=g=>{o.mutateAsync(new hv({...g,value:t.value})).then(f).catch(y=>{d==null||d.setErrors(f0(y))})},d=Jd({initialValues:{},onSubmit:u}),f=g=>{var y,h,v,E,T;(y=g.data)!=null&&y.item.session?l(g):(v=(h=g.data)==null?void 0:h.item)!=null&&v.continueWithCreation&&r(`/${a}/selfservice/complete`,void 0,{value:t.value,type:t.type,sessionSecret:(E=g.data.item)==null?void 0:E.sessionSecret,totpUrl:(T=g.data.item)==null?void 0:T.totpUrl})};return{mutation:o,form:d,s:i,submit:u,goBack:e}},GDe=({})=>{const{goBack:e,mutation:t,form:n,s:r}=VDe();return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:r.enterOtp}),w.jsx("p",{children:r.enterOtpDescription}),w.jsx(Al,{query:t}),w.jsx(YDe,{form:n,mutation:t}),w.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:e,children:r.anotherAccount})]})},YDe=({form:e,mutation:t})=>{var a;const n=!e.values.otp,r=Kt(xa);return w.jsxs("form",{onSubmit:i=>{i.preventDefault(),e.submitForm()},children:[w.jsx(BE,{values:(a=e.values.otp)==null?void 0:a.split(""),onChange:i=>e.setFieldValue(hv.Fields.otp,i,!1),className:"otp-react-code-input"}),w.jsx(Us,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:n,children:r.continue})]})};class Is extends wn{constructor(...t){super(...t),this.children=void 0,this.role=void 0,this.roleId=void 0,this.workspace=void 0}}Is.Navigation={edit(e,t){return`${t?"/"+t:".."}/public-join-key/edit/${e}`},create(e){return`${e?"/"+e:".."}/public-join-key/new`},single(e,t){return`${t?"/"+t:".."}/public-join-key/${e}`},query(e={},t){return`${t?"/"+t:".."}/public-join-keys`},Redit:"public-join-key/edit/:uniqueId",Rcreate:"public-join-key/new",Rsingle:"public-join-key/:uniqueId",Rquery:"public-join-keys"};Is.definition={rpc:{query:{}},name:"publicJoinKey",features:{},gormMap:{},fields:[{name:"role",type:"one",target:"RoleEntity",computedType:"RoleEntity",gormMap:{}},{name:"workspace",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}}],description:"Joining to different workspaces using a public link directly"};Is.Fields={...wn.Fields,roleId:"roleId",role$:"role",role:ri.Fields,workspace$:"workspace",workspace:yi.Fields};function Fne({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/public-join-key/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.PublicJoinKeyEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function KDe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/public-join-key".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.PublicJoinKeyEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function XDe(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/public-join-key".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.PublicJoinKeyEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const QDe=({form:e,isEditing:t})=>{const{values:n,setValues:r,setFieldValue:a,errors:i}=e,{options:o}=R.useContext(nt),l=At();return w.jsx(w.Fragment,{children:w.jsx(ca,{formEffect:{field:Is.Fields.role$,form:e},querySource:tf,label:l.wokspaces.invite.role,errorMessage:i.roleId,fnLabelFormat:u=>u.name,hint:l.wokspaces.invite.roleHint})})},rz=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,t:a}=Dr({data:e}),i=Fne({query:{uniqueId:n}}),o=XDe({queryClient:r}),l=KDe({queryClient:r});return w.jsx(Uo,{postHook:o,getSingleHook:i,patchHook:l,onCancel:()=>{t.goBackOrDefault(Is.Navigation.query())},onFinishUriResolver:(u,d)=>{var f;return Is.Navigation.single((f=u.data)==null?void 0:f.uniqueId)},Form:QDe,onEditTitle:a.fb.editPublicJoinKey,onCreateTitle:a.fb.newPublicJoinKey,data:e})},JDe=()=>{var i,o;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Fne({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return w.jsx(w.Fragment,{children:w.jsx(ao,{editEntityHandler:()=>{e.push(Is.Navigation.edit(n))},getSingleHook:r,children:w.jsx(io,{entity:a,fields:[{label:t.role.name,elem:(o=a==null?void 0:a.role)==null?void 0:o.name}]})})})};function ZDe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(nt),o=t?t(a):i?i(a):St(a);let u=`${"/public-join-key".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.PublicJoinKeyEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.PublicJoinKeyEntity"),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function jne({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/public-join-keys".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.PublicJoinKeyEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}jne.UKEY="*abac.PublicJoinKeyEntity";const e$e={roleName:"Role name",uniqueId:"Unique Id"},t$e={roleName:"Nazwa roli",uniqueId:"Unikalny identyfikator"},n$e={...e$e,$pl:t$e},r$e=e=>[{name:"uniqueId",title:e.uniqueId,width:200},{name:"role",title:e.roleName,width:200,getCellValue:t=>{var n;return(n=t.role)==null?void 0:n.name}}],a$e=()=>{const e=Kt(n$e);return w.jsx(w.Fragment,{children:w.jsx(jo,{columns:r$e(e),queryHook:jne,uniqueIdHrefHandler:t=>Is.Navigation.single(t),deleteHook:ZDe})})},i$e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Fo,{pageTitle:e.fbMenu.publicJoinKey,newEntityHandler:({locale:t,router:n})=>{n.push(Is.Navigation.create())},children:w.jsx(a$e,{})})})};function o$e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(rz,{}),path:Is.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(JDe,{}),path:Is.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(rz,{}),path:Is.Navigation.Redit}),w.jsx(mt,{element:w.jsx(i$e,{}),path:Is.Navigation.Rquery})]})}function Une({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/role/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.RoleEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function s$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/role".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.RoleEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function l$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/role".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.RoleEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function u$e({value:e,onChange:t,...n}){const r=R.useRef();return R.useEffect(()=>{r.current.indeterminate=e==="indeterminate"},[r,e]),w.jsx("input",{...n,type:"checkbox",ref:r,onChange:a=>{t("checked")},checked:e==="checked",className:"form-check-input"})}function hu(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var c$e=0;function __(e){return"__private_"+c$e+++"_"+e}var Wg=__("uniqueId"),zg=__("name"),vd=__("children"),RA=__("isJsonAppliable");class rs{get uniqueId(){return hu(this,Wg)[Wg]}set uniqueId(t){hu(this,Wg)[Wg]=String(t)}setUniqueId(t){return this.uniqueId=t,this}get name(){return hu(this,zg)[zg]}set name(t){hu(this,zg)[zg]=String(t)}setName(t){return this.name=t,this}get children(){return hu(this,vd)[vd]}set children(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof rs?hu(this,vd)[vd]=t:hu(this,vd)[vd]=t.map(n=>new rs(n)))}setChildren(t){return this.children=t,this}constructor(t=void 0){if(Object.defineProperty(this,RA,{value:d$e}),Object.defineProperty(this,Wg,{writable:!0,value:""}),Object.defineProperty(this,zg,{writable:!0,value:""}),Object.defineProperty(this,vd,{writable:!0,value:[]}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(hu(this,RA)[RA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.name!==void 0&&(this.name=n.name),n.children!==void 0&&(this.children=n.children)}toJSON(){return{uniqueId:hu(this,Wg)[Wg],name:hu(this,zg)[zg],children:hu(this,vd)[vd]}}toString(){return JSON.stringify(this)}static get Fields(){return{uniqueId:"uniqueId",name:"name",children$:"children",get children(){return ah("children[:i]",rs.Fields)}}}static from(t){return new rs(t)}static with(t){return new rs(t)}copyWith(t){return new rs({...this.toJSON(),...t})}clone(){return new rs(this.toJSON())}}function d$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var dE;function yd(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var f$e=0;function Pj(e){return"__private_"+f$e+++"_"+e}const p$e=e=>{const t=Ml(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),Hd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[Hd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class Hd{}dE=Hd;Hd.URL="/capabilitiesTree";Hd.NewUrl=e=>Nl(dE.URL,void 0,e);Hd.Method="get";Hd.Fetch$=async(e,t,n,r)=>Rl(r??dE.NewUrl(e),{method:dE.Method,...n||{}},t);Hd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new gv(o)})=>{t=t||(l=>new gv(l));const o=await dE.Fetch$(n,r,e,i);return Pl(o,l=>{const u=new Ws;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Hd.Definition={name:"CapabilitiesTree",cliName:"treex",url:"/capabilitiesTree",method:"get",description:"dLists all of the capabilities in database as a array of string as root access",out:{envelope:"GResponse",fields:[{name:"capabilities",type:"collection",target:"CapabilityInfoDto"},{name:"nested",type:"collection",target:"CapabilityInfoDto"}]}};var bd=Pj("capabilities"),wd=Pj("nested"),PA=Pj("isJsonAppliable");class gv{get capabilities(){return yd(this,bd)[bd]}set capabilities(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof rs?yd(this,bd)[bd]=t:yd(this,bd)[bd]=t.map(n=>new rs(n)))}setCapabilities(t){return this.capabilities=t,this}get nested(){return yd(this,wd)[wd]}set nested(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof rs?yd(this,wd)[wd]=t:yd(this,wd)[wd]=t.map(n=>new rs(n)))}setNested(t){return this.nested=t,this}constructor(t=void 0){if(Object.defineProperty(this,PA,{value:h$e}),Object.defineProperty(this,bd,{writable:!0,value:[]}),Object.defineProperty(this,wd,{writable:!0,value:[]}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(yd(this,PA)[PA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.capabilities!==void 0&&(this.capabilities=n.capabilities),n.nested!==void 0&&(this.nested=n.nested)}toJSON(){return{capabilities:yd(this,bd)[bd],nested:yd(this,wd)[wd]}}toString(){return JSON.stringify(this)}static get Fields(){return{capabilities$:"capabilities",get capabilities(){return ah("capabilities[:i]",rs.Fields)},nested$:"nested",get nested(){return ah("nested[:i]",rs.Fields)}}}static from(t){return new gv(t)}static with(t){return new gv(t)}copyWith(t){return new gv({...this.toJSON(),...t})}clone(){return new gv(this.toJSON())}}function h$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function Bne({onChange:e,value:t,prefix:n}){var l,u;const{data:r,error:a}=p$e({}),i=((u=(l=r==null?void 0:r.data)==null?void 0:l.item)==null?void 0:u.nested)||[],o=(d,f)=>{let g=[...t||[]];f==="checked"&&g.push(d),f==="unchecked"&&(g=g.filter(y=>y!==d)),e&&e(g)};return w.jsxs("nav",{className:"tree-nav",children:[w.jsx(S0,{error:a}),w.jsx("ul",{className:"list",children:w.jsx(Wne,{items:i,onNodeChange:o,value:t,prefix:n})})]})}function Wne({items:e,onNodeChange:t,value:n,prefix:r,autoChecked:a}){const i=r?r+".":"";return w.jsx(w.Fragment,{children:e.map(o=>{var d;const l=`${i}${o.uniqueId}${(d=o.children)!=null&&d.length?".*":""}`,u=(n||[]).includes(l)?"checked":"unchecked";return w.jsxs("li",{children:[w.jsx("span",{children:w.jsxs("label",{className:a?"auto-checked":"",children:[w.jsx(u$e,{value:u,onChange:f=>{t(l,u==="checked"?"unchecked":"checked")}}),o.uniqueId]})}),o.children&&w.jsx("ul",{children:w.jsx(Wne,{autoChecked:a||u==="checked",onNodeChange:t,value:n,items:o.children,prefix:i+o.uniqueId})})]},o.uniqueId)})})}const m$e=(e,t)=>e!=null&&e.length&&!(t!=null&&t.length)?e.map(n=>n.uniqueId):t||[],g$e=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a}=e,i=At();return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:n.name,onChange:o=>r(ri.Fields.name,o,!1),errorMessage:a.name,label:i.wokspaces.invite.role,autoFocus:!t,hint:i.wokspaces.invite.roleHint}),w.jsx(Bne,{onChange:o=>r(ri.Fields.capabilitiesListId,o,!1),value:m$e(n.capabilities,n.capabilitiesListId)})]})},az=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a}=Dr({data:e}),i=At(),o=Une({query:{uniqueId:n},queryOptions:{enabled:!!n}}),l=l$e({queryClient:r}),u=s$e({queryClient:r});return w.jsx(Uo,{postHook:l,getSingleHook:o,patchHook:u,beforeSubmit:d=>{var f;return((f=d.capabilities)==null?void 0:f.length)>0&&d.capabilitiesListId===null?{...d,capabilitiesListId:d.capabilities.map(g=>g.uniqueId)}:d},onCancel:()=>{t.goBackOrDefault(ri.Navigation.query(void 0,a))},onFinishUriResolver:(d,f)=>{var g;return ri.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:g$e,onEditTitle:i.fb.editRole,onCreateTitle:i.fb.newRole,data:e})},v$e=()=>{var l;const e=xr();js();const t=e.query.uniqueId,n=At();sr();const[r,a]=R.useState([]),i=Une({query:{uniqueId:t,deep:!0}});var o=(l=i.query.data)==null?void 0:l.data;return S_((o==null?void 0:o.name)||""),R.useEffect(()=>{var u;a((u=o==null?void 0:o.capabilities)==null?void 0:u.map(d=>d.uniqueId||""))},[o==null?void 0:o.capabilities]),w.jsx(w.Fragment,{children:w.jsxs(ao,{editEntityHandler:()=>{e.push(ri.Navigation.edit(t))},getSingleHook:i,children:[w.jsx(io,{entity:o,fields:[{label:n.role.name,elem:o==null?void 0:o.name}]}),w.jsx(Io,{title:n.role.permissions,className:"mt-3",children:w.jsx(Bne,{value:r})})]})})},y$e=e=>[{name:ri.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:ri.Fields.name,title:e.role.name,width:200}];function b$e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(nt),o=t?t(a):i?i(a):St(a);let u=`${"/role".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.RoleEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.RoleEntity"),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const w$e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{columns:y$e(e),queryHook:tf,uniqueIdHrefHandler:t=>ri.Navigation.single(t),deleteHook:b$e})})},S$e=()=>{const e=At();return vhe(),w.jsx(w.Fragment,{children:w.jsx(Fo,{newEntityHandler:({locale:t,router:n})=>n.push(ri.Navigation.create()),pageTitle:e.fbMenu.roles,children:w.jsx(w$e,{})})})};function E$e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(az,{}),path:ri.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(v$e,{}),path:ri.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(az,{}),path:ri.Navigation.Redit}),w.jsx(mt,{element:w.jsx(S$e,{}),path:ri.Navigation.Rquery})]})}({...wn.Fields});function zne({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/users/invitations".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.UserInvitationsQueryColumns",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}zne.UKEY="*abac.UserInvitationsQueryColumns";const T$e={confirmRejectTitle:"Reject invite",reject:"Reject",workspaceName:"Workspace Name",passport:"Passport",confirmAcceptDescription:"Are you sure that you are confirming to join?",confirmRejectDescription:"Are you sure to reject this invitation? You need to be reinvited by admins again.",acceptBtn:null,accept:"Accept",roleName:"Role name",method:"Method",actions:"Actions",confirmAcceptTitle:"Confirm invitation"},C$e={actions:"Akcje",confirmRejectTitle:"Odrzuć zaproszenie",method:"Metoda",roleName:"Nazwa roli",accept:"Akceptuj",confirmAcceptDescription:"Czy na pewno chcesz dołączyć?",confirmAcceptTitle:"Potwierdź zaproszenie",confirmRejectDescription:"Czy na pewno chcesz odrzucić to zaproszenie? Aby dołączyć ponownie, musisz zostać ponownie zaproszony przez administratorów.",passport:"Paszport",reject:"Odrzuć",workspaceName:"Nazwa przestrzeni roboczej",acceptBtn:"Tak"},k$e={...T$e,$pl:C$e},x$e=(e,t,n)=>[{name:"roleName",title:e.roleName,width:100},{name:"workspaceName",title:e.workspaceName,width:100},{name:"method",title:e.method,width:100,getCellValue:r=>r.type},{name:"value",title:e.passport,width:100,getCellValue:r=>r.value},{name:"actions",title:e.actions,width:100,getCellValue:r=>w.jsxs(w.Fragment,{children:[w.jsx("button",{className:"btn btn-sm btn-success",style:{marginRight:"2px"},onClick:a=>{t(r)},children:e.accept}),w.jsx("button",{onClick:a=>{n(r)},className:"btn btn-sm btn-danger",children:e.reject})]})}];var fE;function Xp(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var _$e=0;function O_(e){return"__private_"+_$e+++"_"+e}const O$e=e=>{const n=Ml()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),xh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class xh{}fE=xh;xh.URL="/user/invitation/accept";xh.NewUrl=e=>Nl(fE.URL,void 0,e);xh.Method="post";xh.Fetch$=async(e,t,n,r)=>Rl(r??fE.NewUrl(e),{method:fE.Method,...n||{}},t);xh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new vv(o)})=>{t=t||(l=>new vv(l));const o=await fE.Fetch$(n,r,e,i);return Pl(o,l=>{const u=new Ws;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};xh.Definition={name:"AcceptInvite",url:"/user/invitation/accept",method:"post",description:"Use it when user accepts an invitation, and it will complete the joining process",in:{fields:[{name:"invitationUniqueId",description:"The invitation id which will be used to process",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"accepted",type:"bool"}]}};var qg=O_("invitationUniqueId"),AA=O_("isJsonAppliable");class Ib{get invitationUniqueId(){return Xp(this,qg)[qg]}set invitationUniqueId(t){Xp(this,qg)[qg]=String(t)}setInvitationUniqueId(t){return this.invitationUniqueId=t,this}constructor(t=void 0){if(Object.defineProperty(this,AA,{value:R$e}),Object.defineProperty(this,qg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xp(this,AA)[AA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.invitationUniqueId!==void 0&&(this.invitationUniqueId=n.invitationUniqueId)}toJSON(){return{invitationUniqueId:Xp(this,qg)[qg]}}toString(){return JSON.stringify(this)}static get Fields(){return{invitationUniqueId:"invitationUniqueId"}}static from(t){return new Ib(t)}static with(t){return new Ib(t)}copyWith(t){return new Ib({...this.toJSON(),...t})}clone(){return new Ib(this.toJSON())}}function R$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var Hg=O_("accepted"),NA=O_("isJsonAppliable");class vv{get accepted(){return Xp(this,Hg)[Hg]}set accepted(t){Xp(this,Hg)[Hg]=!!t}setAccepted(t){return this.accepted=t,this}constructor(t=void 0){if(Object.defineProperty(this,NA,{value:P$e}),Object.defineProperty(this,Hg,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Xp(this,NA)[NA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.accepted!==void 0&&(this.accepted=n.accepted)}toJSON(){return{accepted:Xp(this,Hg)[Hg]}}toString(){return JSON.stringify(this)}static get Fields(){return{accepted:"accepted"}}static from(t){return new vv(t)}static with(t){return new vv(t)}copyWith(t){return new vv({...this.toJSON(),...t})}clone(){return new vv(this.toJSON())}}function P$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const A$e=()=>{const e=Kt(k$e),t=R.useContext(l_),n=O$e(),r=i=>{t.openModal({title:e.confirmAcceptTitle,confirmButtonLabel:e.acceptBtn,component:()=>w.jsx("div",{children:e.confirmAcceptDescription}),onSubmit:async()=>n.mutateAsync(new Ib({invitationUniqueId:i.uniqueId})).then(o=>{alert("Successful.")})})},a=i=>{t.openModal({title:e.confirmRejectTitle,confirmButtonLabel:e.acceptBtn,component:()=>w.jsx("div",{children:e.confirmRejectDescription}),onSubmit:async()=>!0})};return w.jsx(w.Fragment,{children:w.jsx(jo,{selectable:!1,columns:x$e(e,r,a),queryHook:zne})})},N$e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Fo,{pageTitle:e.fbMenu.myInvitations,children:w.jsx(A$e,{})})})};function M$e(){return w.jsx(w.Fragment,{children:w.jsx(mt,{element:w.jsx(N$e,{}),path:"user-invitations"})})}class Ya extends wn{constructor(...t){super(...t),this.children=void 0,this.publicKey=void 0,this.coverLetter=void 0,this.targetUserLocale=void 0,this.email=void 0,this.phonenumber=void 0,this.workspace=void 0,this.firstName=void 0,this.lastName=void 0,this.forceEmailAddress=void 0,this.forcePhoneNumber=void 0,this.role=void 0,this.roleId=void 0}}Ya.Navigation={edit(e,t){return`${t?"/"+t:".."}/workspace-invite/edit/${e}`},create(e){return`${e?"/"+e:".."}/workspace-invite/new`},single(e,t){return`${t?"/"+t:".."}/workspace-invite/${e}`},query(e={},t){return`${t?"/"+t:".."}/workspace-invites`},Redit:"workspace-invite/edit/:uniqueId",Rcreate:"workspace-invite/new",Rsingle:"workspace-invite/:uniqueId",Rquery:"workspace-invites"};Ya.definition={rpc:{query:{}},name:"workspaceInvite",features:{},gormMap:{},fields:[{name:"publicKey",description:"A long hash to get the user into the confirm or signup page without sending the email or phone number, for example if an administrator wants to copy the link.",type:"string",computedType:"string",gormMap:{}},{name:"coverLetter",description:"The content that user will receive to understand the reason of the letter.",type:"string",computedType:"string",gormMap:{}},{name:"targetUserLocale",description:"If the invited person has a different language, then you can define that so the interface for him will be automatically translated.",type:"string",computedType:"string",gormMap:{}},{name:"email",description:"The email address of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"phonenumber",description:"The phone number of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"workspace",description:"Workspace which user is being invite to.",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}},{name:"firstName",description:"First name of the person which is invited",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"lastName",description:"Last name of the person which is invited.",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"forceEmailAddress",description:"If forced, the email address cannot be changed by the user which has been invited.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePhoneNumber",description:"If forced, user cannot change the phone number and needs to complete signup.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"role",description:"The role which invitee get if they accept the request.",type:"one",target:"RoleEntity",validate:"required",computedType:"RoleEntity",gormMap:{}}],cliShort:"invite",description:"Active invitations for non-users or already users to join an specific workspace, created by administration of the workspace"};Ya.Fields={...wn.Fields,publicKey:"publicKey",coverLetter:"coverLetter",targetUserLocale:"targetUserLocale",email:"email",phonenumber:"phonenumber",workspace$:"workspace",workspace:yi.Fields,firstName:"firstName",lastName:"lastName",forceEmailAddress:"forceEmailAddress",forcePhoneNumber:"forcePhoneNumber",roleId:"roleId",role$:"role",role:ri.Fields};function qne({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(nt),l=t?t(i):o?o(i):St(i);let d=`${"/workspace-invite/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.WorkspaceInviteEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function I$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceInviteEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}function D$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(nt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace/invite".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.WorkspaceInviteEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const $$e={targetLocaleHint:"If the user has a different language available, the initial interface will be on th selected value.",forcedEmailAddress:"Force Email Address",forcedEmailAddressHint:"If checked, user can only make the invitation using this email address, and won't be able to change it. If account exists, they need to accept invitation there.",forcedPhone:"Force Phone Number",forcedPhoneHint:"If checked, user only can create or join using this phone number",coverLetter:"Cover letter",coverLetterHint:"The invitation text that user would get over sms or email, you can modify it here.",targetLocale:"Target Locale"},L$e={targetLocaleHint:"Jeśli użytkownik ma dostępny inny język, interfejs początkowy będzie ustawiony na wybraną wartość.",coverLetter:"List motywacyjny",coverLetterHint:"Treść zaproszenia, którą użytkownik otrzyma przez SMS lub e-mail – możesz ją tutaj edytować.",forcedEmailAddress:"Wymuszony adres e-mail",forcedEmailAddressHint:"Jeśli zaznaczone, użytkownik może wysłać zaproszenie tylko na ten adres e-mail i nie będzie mógł go zmienić. Jeśli konto już istnieje, użytkownik musi zaakceptować zaproszenie na tym koncie.",forcedPhone:"Wymuszony numer telefonu",forcedPhoneHint:"Jeśli zaznaczone, użytkownik może utworzyć konto lub dołączyć tylko przy użyciu tego numeru telefonu",targetLocale:"Docelowy język"},Hne={...$$e,$pl:L$e},F$e=({form:e,isEditing:t})=>{const n=At(),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(Hne),u=bne(n),d=Bs(u);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"row",children:[w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.firstName,onChange:f=>i(Ya.Fields.firstName,f,!1),errorMessage:o.firstName,label:n.wokspaces.invite.firstName,autoFocus:!t,hint:n.wokspaces.invite.firstNameHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.lastName,onChange:f=>i(Ya.Fields.lastName,f,!1),errorMessage:o.lastName,label:n.wokspaces.invite.lastName,hint:n.wokspaces.invite.lastNameHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(ca,{keyExtractor:f=>f.value,formEffect:{form:e,field:Ya.Fields.targetUserLocale,beforeSet(f){return f.value}},errorMessage:e.errors.targetUserLocale,querySource:d,label:l.targetLocale,hint:l.targetLocaleHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(qF,{value:r.coverLetter,onChange:f=>i(Ya.Fields.coverLetter,f,!1),forceBasic:!0,errorMessage:o.coverLetter,label:l.coverLetter,placeholder:l.coverLetterHint,hint:l.coverLetterHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(ca,{formEffect:{field:Ya.Fields.role$,form:e},querySource:tf,label:n.wokspaces.invite.role,errorMessage:o.roleId,fnLabelFormat:f=>f.name,hint:n.wokspaces.invite.roleHint})})]}),w.jsxs("div",{className:"row",children:[w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.email,onChange:f=>i(Ya.Fields.email,f,!1),errorMessage:o.email,label:n.wokspaces.invite.email,hint:n.wokspaces.invite.emailHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(vl,{value:r.forceEmailAddress,onChange:f=>i(Ya.Fields.forceEmailAddress,f),errorMessage:o.forceEmailAddress,label:l.forcedEmailAddress,hint:l.forcedEmailAddressHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.phonenumber,onChange:f=>i(Ya.Fields.phonenumber,f,!1),errorMessage:o.phonenumber,type:"phonenumber",label:n.wokspaces.invite.phoneNumber,hint:n.wokspaces.invite.phoneNumberHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(vl,{value:r.forcePhoneNumber,onChange:f=>i(Ya.Fields.forcePhoneNumber,f),errorMessage:o.forcePhoneNumber,label:l.forcedPhone,hint:l.forcedPhoneHint})})]})]})},iz=({data:e})=>{const t=At(),{router:n,uniqueId:r,queryClient:a,locale:i}=Dr({data:e}),o=qne({query:{uniqueId:r},queryClient:a}),l=D$e({queryClient:a}),u=I$e({queryClient:a});return w.jsx(Uo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{n.goBackOrDefault(`/${i}/workspace-invites`)},onFinishUriResolver:(d,f)=>`/${f}/workspace-invites`,Form:F$e,onEditTitle:t.wokspaces.invite.editInvitation,onCreateTitle:t.wokspaces.invite.createInvitation,data:e})},j$e=()=>{var o;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Kt(Hne),a=qne({query:{uniqueId:n}});var i=(o=a.query.data)==null?void 0:o.data;return S_((i==null?void 0:i.firstName)+" "+(i==null?void 0:i.lastName)||""),w.jsx(w.Fragment,{children:w.jsx(ao,{getSingleHook:a,editEntityHandler:()=>e.push(Ya.Navigation.edit(n)),children:w.jsx(io,{entity:i,fields:[{label:t.wokspaces.invite.firstName,elem:i==null?void 0:i.firstName},{label:t.wokspaces.invite.lastName,elem:i==null?void 0:i.lastName},{label:t.wokspaces.invite.email,elem:i==null?void 0:i.email},{label:t.wokspaces.invite.phoneNumber,elem:i==null?void 0:i.phonenumber},{label:r.forcedEmailAddress,elem:i==null?void 0:i.forceEmailAddress},{label:r.forcedPhone,elem:i==null?void 0:i.forcePhoneNumber},{label:r.targetLocale,elem:i==null?void 0:i.targetUserLocale}]})})})},U$e=e=>[{name:Ya.Fields.uniqueId,title:e.table.uniqueId,width:100},{name:"firstName",title:e.wokspaces.invite.firstName,width:100},{name:"lastName",title:e.wokspaces.invite.lastName,width:100},{name:"phoneNumber",title:e.wokspaces.invite.phoneNumber,width:100},{name:"email",title:e.wokspaces.invite.email,width:100},{name:"role_id",title:e.wokspaces.invite.role,width:100,getCellValue:t=>{var n;return(n=t==null?void 0:t.role)==null?void 0:n.name}}];function Vne({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(nt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/workspace-invites".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.WorkspaceInviteEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Vne.UKEY="*abac.WorkspaceInviteEntity";function B$e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(nt),o=t?t(a):i?i(a):St(a);let u=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.WorkspaceInviteEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.WorkspaceInviteEntity"),E(C)},onError(C){v==null||v.setErrors(_n(C)),T(C)}})}),fnUpdater:g}}const W$e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{columns:U$e(e),queryHook:Vne,uniqueIdHrefHandler:t=>Ya.Navigation.single(t),deleteHook:B$e})})},z$e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Fo,{pageTitle:e.fbMenu.workspaceInvites,newEntityHandler:({locale:t,router:n})=>{n.push(Ya.Navigation.create())},children:w.jsx(W$e,{})})})};function q$e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(iz,{}),path:Ya.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(iz,{}),path:Ya.Navigation.Redit}),w.jsx(mt,{element:w.jsx(j$e,{}),path:Ya.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(z$e,{}),path:Ya.Navigation.Rquery})]})}const H$e=()=>{const e=Kt(xa);return w.jsxs(w.Fragment,{children:[w.jsx(Io,{title:e.home.title,description:e.home.description}),w.jsx("h2",{children:w.jsx(j$,{to:"passports",children:e.home.passportsTitle})}),w.jsx("p",{children:e.home.passportsDescription}),w.jsx(j$,{to:"passports",className:"btn btn-success btn-sm",children:e.home.passportsTitle})]})},V$e=()=>{const e=Kt(xa),{goBack:t,query:n}=xr();return{goBack:t,s:e}},G$e=()=>{var i,o;const{s:e}=V$e(),{query:t}=CE({queryOptions:{cacheTime:50},query:{}}),n=((o=(i=t.data)==null?void 0:i.data)==null?void 0:o.items)||[],{selectedUrw:r,selectUrw:a}=R.useContext(nt);return w.jsxs("div",{className:"signin-form-container",children:[w.jsxs("div",{className:"mb-4",children:[w.jsx("h1",{className:"h3",children:e.selectWorkspaceTitle}),w.jsx("p",{className:"text-muted",children:e.selectWorkspace})]}),n.map(l=>w.jsxs("div",{className:"mb-4",children:[w.jsx("h2",{className:"h5",children:l.name}),w.jsx("div",{className:"d-flex flex-wrap gap-2 mt-2",children:l.roles.map(u=>w.jsxs("button",{className:"btn btn-outline-primary w-100",onClick:()=>a({workspaceId:l.uniqueId,roleId:u.uniqueId}),children:["Select (",u.name,")"]},u.uniqueId))})]},l.uniqueId))]})};function Y$e(){return w.jsxs(w.Fragment,{children:[w.jsxs(mt,{path:"selfservice",children:[w.jsx(mt,{path:"welcome",element:w.jsx(NIe,{})}),w.jsx(mt,{path:"email",element:w.jsx(tz,{method:Ms.Email})}),w.jsx(mt,{path:"phone",element:w.jsx(tz,{method:Ms.Phone})}),w.jsx(mt,{path:"totp-setup",element:w.jsx(bDe,{})}),w.jsx(mt,{path:"totp-enter",element:w.jsx(EDe,{})}),w.jsx(mt,{path:"complete",element:w.jsx(MDe,{})}),w.jsx(mt,{path:"password",element:w.jsx(UDe,{})}),w.jsx(mt,{path:"otp",element:w.jsx(GDe,{})})]}),w.jsx(mt,{path:"*",element:w.jsx(B3,{to:"/en/selfservice/welcome",replace:!0})})]})}function K$e(){const e=o$e(),t=E$e(),n=M$e(),r=q$e();return w.jsxs(mt,{path:"selfservice",children:[w.jsx(mt,{path:"passports",element:w.jsx(pIe,{})}),w.jsx(mt,{path:"change-password/:uniqueId",element:w.jsx(wIe,{})}),e,t,n,r,w.jsx(mt,{path:"",element:w.jsx(Oj,{children:w.jsx(H$e,{})})})]})}function X$e({children:e,routerId:t}){const n=At();cfe();const{locale:r}=sr(),{config:a}=R.useContext(dh),i=nJ(),o=K$e(),l=qRe(),u=AMe();return w.jsx(Mhe,{affix:n.productName,children:w.jsxs(xX,{children:[w.jsx(mt,{path:"/",element:w.jsx(B3,{to:kr.DEFAULT_ROUTE.replace("{locale}",a.interfaceLanguage||r||"en"),replace:!0})}),w.jsxs(mt,{path:":locale",element:w.jsx(oge,{routerId:t,sidebarMenu:i}),children:[w.jsx(mt,{path:"settings",element:w.jsx(Oj,{children:w.jsx(ZMe,{})})}),o,l,u,e,w.jsx(mt,{path:"*",element:w.jsx(zU,{})})]}),w.jsx(mt,{path:"*",element:w.jsx(zU,{})})]})})}const Gne=e=>{sr();const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,errorMessage:u,type:d,focused:f=!1,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(ef,{focused:h,onClick:T,...e,children:w.jsx("input",{type:"date",className:"form-control",value:e.value,onChange:C=>e.onChange&&e.onChange(C.target.value),...e.inputProps})})};function Aj(e,t){const[n,r]=R.useState(()=>{try{const a=localStorage.getItem(e);return a===null?t:JSON.parse(a)}catch(a){return console.error(`Error parsing localStorage key "${e}":`,a),t}});return R.useEffect(()=>{try{localStorage.setItem(e,JSON.stringify(n))}catch(a){console.error(`Error saving to localStorage key "${e}":`,a)}},[e,n]),[n,r]}function oz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Db(e){for(var t=1;t=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var MA={};function J$e(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return MA[t]||(MA[t]=Q$e(e)),MA[t]}function Z$e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(i){return i!=="token"}),a=J$e(r);return a.reduce(function(i,o){return Db(Db({},i),n[o])},t)}function sz(e){return e.join(" ")}function eLe(e,t){var n=0;return function(r){return n+=1,r.map(function(a,i){return Yne({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(i)})})}}function Yne(e){var t=e.node,n=e.stylesheet,r=e.style,a=r===void 0?{}:r,i=e.useInlineStyles,o=e.key,l=t.properties,u=t.type,d=t.tagName,f=t.value;if(u==="text")return f;if(d){var g=eLe(n,i),y;if(!i)y=Db(Db({},l),{},{className:sz(l.className)});else{var h=Object.keys(n).reduce(function(C,k){return k.split(".").forEach(function(_){C.includes(_)||C.push(_)}),C},[]),v=l.className&&l.className.includes("token")?["token"]:[],E=l.className&&v.concat(l.className.filter(function(C){return!h.includes(C)}));y=Db(Db({},l),{},{className:sz(E)||void 0,style:Z$e(l.className,Object.assign({},l.style,a),n)})}var T=g(t.children);return ze.createElement(d,vt({key:o},y),T)}}const tLe=(function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1});var nLe=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function lz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Qp(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r2&&arguments[2]!==void 0?arguments[2]:[];return jk({children:P,lineNumber:N,lineNumberStyle:l,largestLineNumber:o,showInlineLineNumbers:a,lineProps:n,className:I,showLineNumbers:r,wrapLongLines:u,wrapLines:t})}function E(P,N){if(r&&N&&a){var I=Xne(l,N,o);P.unshift(Kne(N,I))}return P}function T(P,N){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||I.length>0?v(P,N,I):E(P,N)}for(var C=function(){var N=f[h],I=N.children[0].value,L=aLe(I);if(L){var j=I.split(` + */var EDe={L:Bb.QrCode.Ecc.LOW,M:Bb.QrCode.Ecc.MEDIUM,Q:Bb.QrCode.Ecc.QUARTILE,H:Bb.QrCode.Ecc.HIGH},Bne=128,Wne="L",zne="#FFFFFF",qne="#000000",Hne=!1,Vne=1,TDe=4,CDe=0,kDe=.1;function Gne(e,t=0){const n=[];return e.forEach(function(r,a){let i=null;r.forEach(function(o,l){if(!o&&i!==null){n.push(`M${i+t} ${a+t}h${l-i}v1H${i+t}z`),i=null;return}if(l===r.length-1){if(!o)return;i===null?n.push(`M${l+t},${a+t} h1v1H${l+t}z`):n.push(`M${i+t},${a+t} h${l+1-i}v1H${i+t}z`);return}o&&i===null&&(i=l)})}),n.join("")}function Yne(e,t){return e.slice().map((n,r)=>r=t.y+t.h?n:n.map((a,i)=>i=t.x+t.w?a:!1))}function xDe(e,t,n,r){if(r==null)return null;const a=e.length+n*2,i=Math.floor(t*kDe),o=a/t,l=(r.width||i)*o,u=(r.height||i)*o,d=r.x==null?e.length/2-l/2:r.x*o,f=r.y==null?e.length/2-u/2:r.y*o,g=r.opacity==null?1:r.opacity;let y=null;if(r.excavate){let v=Math.floor(d),E=Math.floor(f),T=Math.ceil(l+d-v),C=Math.ceil(u+f-E);y={x:v,y:E,w:T,h:C}}const h=r.crossOrigin;return{x:d,y:f,h:u,w:l,excavation:y,opacity:g,crossOrigin:h}}function _De(e,t){return t!=null?Math.max(Math.floor(t),0):e?TDe:CDe}function Kne({value:e,level:t,minVersion:n,includeMargin:r,marginSize:a,imageSettings:i,size:o,boostLevel:l}){let u=ze.useMemo(()=>{const v=(Array.isArray(e)?e:[e]).reduce((E,T)=>(E.push(...Bb.QrSegment.makeSegments(T)),E),[]);return Bb.QrCode.encodeSegments(v,EDe[t],n,void 0,void 0,l)},[e,t,n,l]);const{cells:d,margin:f,numCells:g,calculatedImageSettings:y}=ze.useMemo(()=>{let h=u.getModules();const v=_De(r,a),E=h.length+v*2,T=xDe(h,o,v,i);return{cells:h,margin:v,numCells:E,calculatedImageSettings:T}},[u,o,i,r,a]);return{qrcode:u,margin:f,cells:d,numCells:g,calculatedImageSettings:y}}var ODe=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),RDe=ze.forwardRef(function(t,n){const r=t,{value:a,size:i=Bne,level:o=Wne,bgColor:l=zne,fgColor:u=qne,includeMargin:d=Hne,minVersion:f=Vne,boostLevel:g,marginSize:y,imageSettings:h}=r,E=N3(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:T}=E,C=N3(E,["style"]),k=h==null?void 0:h.src,_=ze.useRef(null),A=ze.useRef(null),P=ze.useCallback(ge=>{_.current=ge,typeof n=="function"?n(ge):n&&(n.current=ge)},[n]),[N,I]=ze.useState(!1),{margin:L,cells:j,numCells:z,calculatedImageSettings:Q}=Kne({value:a,level:o,minVersion:f,boostLevel:g,includeMargin:d,marginSize:y,imageSettings:h,size:i});ze.useEffect(()=>{if(_.current!=null){const ge=_.current,me=ge.getContext("2d");if(!me)return;let W=j;const G=A.current,q=Q!=null&&G!==null&&G.complete&&G.naturalHeight!==0&&G.naturalWidth!==0;q&&Q.excavation!=null&&(W=Yne(j,Q.excavation));const ce=window.devicePixelRatio||1;ge.height=ge.width=i*ce;const H=i/z*ce;me.scale(H,H),me.fillStyle=l,me.fillRect(0,0,z,z),me.fillStyle=u,ODe?me.fill(new Path2D(Gne(W,L))):j.forEach(function(Y,ie){Y.forEach(function(J,ee){J&&me.fillRect(ee+L,ie+L,1,1)})}),Q&&(me.globalAlpha=Q.opacity),q&&me.drawImage(G,Q.x+L,Q.y+L,Q.w,Q.h)}}),ze.useEffect(()=>{I(!1)},[k]);const le=A3({height:i,width:i},T);let re=null;return k!=null&&(re=ze.createElement("img",{src:k,key:k,style:{display:"none"},onLoad:()=>{I(!0)},ref:A,crossOrigin:Q==null?void 0:Q.crossOrigin})),ze.createElement(ze.Fragment,null,ze.createElement("canvas",A3({style:le,height:i,width:i,ref:P,role:"img"},C)),re)});RDe.displayName="QRCodeCanvas";var Xne=ze.forwardRef(function(t,n){const r=t,{value:a,size:i=Bne,level:o=Wne,bgColor:l=zne,fgColor:u=qne,includeMargin:d=Hne,minVersion:f=Vne,boostLevel:g,title:y,marginSize:h,imageSettings:v}=r,E=N3(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:T,cells:C,numCells:k,calculatedImageSettings:_}=Kne({value:a,level:o,minVersion:f,boostLevel:g,includeMargin:d,marginSize:h,imageSettings:v,size:i});let A=C,P=null;v!=null&&_!=null&&(_.excavation!=null&&(A=Yne(C,_.excavation)),P=ze.createElement("image",{href:v.src,height:_.h,width:_.w,x:_.x+T,y:_.y+T,preserveAspectRatio:"none",opacity:_.opacity,crossOrigin:_.crossOrigin}));const N=Gne(A,T);return ze.createElement("svg",A3({height:i,width:i,viewBox:`0 0 ${k} ${k}`,ref:n,role:"img"},E),!!y&&ze.createElement("title",null,y),ze.createElement("path",{fill:l,d:`M0,0 h${k}v${k}H0z`,shapeRendering:"crispEdges"}),ze.createElement("path",{fill:u,d:N,shapeRendering:"crispEdges"}),P)});Xne.displayName="QRCodeSVG";const L1={backspace:8,left:37,up:38,right:39,down:40};class JE extends R.Component{constructor(t){super(t),this.__clearvalues__=()=>{const{fields:o}=this.props;this.setState({values:Array(o).fill("")}),this.iRefs[0].current.focus()},this.triggerChange=(o=this.state.values)=>{const{onChange:l,onComplete:u,fields:d}=this.props,f=o.join("");l&&l(f),u&&f.length>=d&&u(f)},this.onChange=o=>{const l=parseInt(o.target.dataset.id);if(this.props.type==="number"&&(o.target.value=o.target.value.replace(/[^\d]/gi,"")),o.target.value===""||this.props.type==="number"&&!o.target.validity.valid)return;const{fields:u}=this.props;let d;const f=o.target.value;let{values:g}=this.state;if(g=Object.assign([],g),f.length>1){let y=f.length+l-1;y>=u&&(y=u-1),d=this.iRefs[y],f.split("").forEach((v,E)=>{const T=l+E;T{const l=parseInt(o.target.dataset.id),u=l-1,d=l+1,f=this.iRefs[u],g=this.iRefs[d];switch(o.keyCode){case L1.backspace:o.preventDefault();const y=[...this.state.values];this.state.values[l]?(y[l]="",this.setState({values:y}),this.triggerChange(y)):f&&(y[u]="",f.current.focus(),this.setState({values:y}),this.triggerChange(y));break;case L1.left:o.preventDefault(),f&&f.current.focus();break;case L1.right:o.preventDefault(),g&&g.current.focus();break;case L1.up:case L1.down:o.preventDefault();break}},this.onFocus=o=>{o.target.select(o)};const{fields:n,values:r}=t;let a,i=0;if(r&&r.length){a=[];for(let o=0;o=n?0:r.length}else a=Array(n).fill("");this.state={values:a,autoFocusIndex:i},this.iRefs=[];for(let o=0;ow.jsx("input",{type:f==="number"?"tel":f,pattern:f==="number"?"[0-9]*":null,autoFocus:u&&E===n,style:g,"data-id":E,value:v,id:this.props.id?`${this.props.id}-${E}`:null,ref:this.iRefs[E],onChange:this.onChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,disabled:this.props.disabled,required:this.props.required,placeholder:this.props.placeholder[E]},`${this.id}-${E}`))}),r&&w.jsxs("div",{className:"rc-loading",style:h,children:[w.jsx("div",{className:"rc-blur"}),w.jsx("svg",{className:"rc-spin",viewBox:"0 0 1024 1024","data-icon":"loading",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:w.jsx("path",{fill:"#006fff",d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"})})]})]})}}JE.propTypes={type:Ye.oneOf(["text","number"]),onChange:Ye.func,onComplete:Ye.func,fields:Ye.number,loading:Ye.bool,title:Ye.string,fieldWidth:Ye.number,id:Ye.string,fieldHeight:Ye.number,autoFocus:Ye.bool,className:Ye.string,values:Ye.arrayOf(Ye.string),disabled:Ye.bool,required:Ye.bool,placeholder:Ye.arrayOf(Ye.string)};JE.defaultProps={type:"number",fields:6,fieldWidth:58,fieldHeight:54,autoFocus:!0,disabled:!1,required:!1,placeholder:[]};var vE;function Bi(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var PDe=0;function Gv(e){return"__private_"+PDe+++"_"+e}const ADe=e=>{const n=Gs()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Ch.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Ch{}vE=Ch;Ch.URL="/passport/totp/confirm";Ch.NewUrl=e=>Vs(vE.URL,void 0,e);Ch.Method="post";Ch.Fetch$=async(e,t,n,r)=>qs(r??vE.NewUrl(e),{method:vE.Method,...n||{}},t);Ch.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new vv(o)})=>{t=t||(l=>new vv(l));const o=await vE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Ch.Definition={name:"ConfirmClassicPassportTotp",url:"/passport/totp/confirm",method:"post",description:"When user requires to setup the totp for an specifc passport, they can use this endpoint to confirm it.",in:{fields:[{name:"value",description:"Passport value, email or phone number which is already successfully registered.",type:"string",tags:{validate:"required"}},{name:"password",description:"Password related to the passport. Totp is only available for passports with a password. Basically totp is protecting passport, not otp over email or sms.",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"The totp code generated by authenticator such as google or microsft apps.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"}]}};var bg=Gv("value"),wg=Gv("password"),Sg=Gv("totpCode"),MA=Gv("isJsonAppliable");class Jp{get value(){return Bi(this,bg)[bg]}set value(t){Bi(this,bg)[bg]=String(t)}setValue(t){return this.value=t,this}get password(){return Bi(this,wg)[wg]}set password(t){Bi(this,wg)[wg]=String(t)}setPassword(t){return this.password=t,this}get totpCode(){return Bi(this,Sg)[Sg]}set totpCode(t){Bi(this,Sg)[Sg]=String(t)}setTotpCode(t){return this.totpCode=t,this}constructor(t=void 0){if(Object.defineProperty(this,MA,{value:NDe}),Object.defineProperty(this,bg,{writable:!0,value:""}),Object.defineProperty(this,wg,{writable:!0,value:""}),Object.defineProperty(this,Sg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Bi(this,MA)[MA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode)}toJSON(){return{value:Bi(this,bg)[bg],password:Bi(this,wg)[wg],totpCode:Bi(this,Sg)[Sg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode"}}static from(t){return new Jp(t)}static with(t){return new Jp(t)}copyWith(t){return new Jp({...this.toJSON(),...t})}clone(){return new Jp(this.toJSON())}}function NDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var gd=Gv("session"),IA=Gv("isJsonAppliable"),F1=Gv("lateInitFields");class vv{get session(){return Bi(this,gd)[gd]}set session(t){t instanceof Dr?Bi(this,gd)[gd]=t:Bi(this,gd)[gd]=new Dr(t)}setSession(t){return this.session=t,this}constructor(t=void 0){if(Object.defineProperty(this,F1,{value:IDe}),Object.defineProperty(this,IA,{value:MDe}),Object.defineProperty(this,gd,{writable:!0,value:void 0}),t==null){Bi(this,F1)[F1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Bi(this,IA)[IA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),Bi(this,F1)[F1](t)}toJSON(){return{session:Bi(this,gd)[gd]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Wd("session",Dr.Fields)}}}static from(t){return new vv(t)}static with(t){return new vv(t)}copyWith(t){return new vv({...this.toJSON(),...t})}clone(){return new vv(this.toJSON())}}function MDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function IDe(e={}){const t=e;t.session instanceof Dr||(this.session=new Dr(t.session||{}))}const DDe=()=>{const{goBack:e,state:t}=xr(),n=ADe(),{onComplete:r}=QE(),a=t==null?void 0:t.totpUrl,i=t==null?void 0:t.forcedTotp,o=t==null?void 0:t.password,l=t==null?void 0:t.value,u=g=>{n.mutateAsync(new Jp({...g,password:o,value:l})).then(f).catch(y=>{d==null||d.setErrors(S0(y))})},d=tf({initialValues:{},onSubmit:u}),f=g=>{var y,h;(h=(y=g.data)==null?void 0:y.item)!=null&&h.session&&r(g)};return{mutation:n,totpUrl:a,forcedTotp:i,form:d,submit:u,goBack:e}},$De=({})=>{const{goBack:e,mutation:t,form:n,totpUrl:r,forcedTotp:a}=DDe(),i=Kt(xa);return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:i.setupTotp}),w.jsx("p",{children:i.setupTotpDescription}),w.jsx(Il,{query:t}),w.jsx(LDe,{form:n,totpUrl:r,mutation:t,forcedTotp:a}),w.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:e,children:"Try another account"})]})},LDe=({form:e,mutation:t,forcedTotp:n,totpUrl:r})=>{var o;const a=Kt(xa),i=!e.values.totpCode||e.values.totpCode.length!=6;return w.jsxs("form",{onSubmit:l=>{l.preventDefault(),e.submitForm()},children:[w.jsx("center",{children:w.jsx(Xne,{value:r,width:200,height:200})}),w.jsx(JE,{values:(o=e.values.totpCode)==null?void 0:o.split(""),onChange:l=>e.setFieldValue(Jp.Fields.totpCode,l,!1),className:"otp-react-code-input"}),w.jsx(Ws,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:i,children:a.continue}),n!==!0&&w.jsxs(w.Fragment,{children:[w.jsx("p",{className:"mt-4",children:a.skipTotpInfo}),w.jsx("button",{className:"btn btn-warning w-100 d-block mb-2",children:a.skipTotpButton})]})]})},FDe=()=>{const{goBack:e,state:t,replace:n,push:r}=xr(),a=Fne(),{onComplete:i}=QE(),o=t==null?void 0:t.totpUrl,l=t==null?void 0:t.forcedTotp,u=t==null?void 0:t.password,d=t==null?void 0:t.value,f=h=>{a.mutateAsync(new Su({...h,password:u,value:d})).then(y).catch(v=>{g==null||g.setErrors(S0(v))})},g=tf({initialValues:{},onSubmit:(h,v)=>{a.mutateAsync(new Su(h))}}),y=h=>{var v,E;(E=(v=h.data)==null?void 0:v.item)!=null&&E.session&&i(h)};return{mutation:a,totpUrl:o,forcedTotp:l,form:g,submit:f,goBack:e}},jDe=({})=>{const{goBack:e,mutation:t,form:n}=FDe(),r=Kt(xa);return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:r.enterTotp}),w.jsx("p",{children:r.enterTotpDescription}),w.jsx(Il,{query:t}),w.jsx(UDe,{form:n,mutation:t}),w.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:e,children:r.anotherAccount})]})},UDe=({form:e,mutation:t})=>{var a;const n=!e.values.totpCode||e.values.totpCode.length!=6,r=Kt(xa);return w.jsxs("form",{onSubmit:i=>{i.preventDefault(),e.submitForm()},children:[w.jsx(JE,{values:(a=e.values.totpCode)==null?void 0:a.split(""),onChange:i=>e.setFieldValue(Jp.Fields.totpCode,i,!1),className:"otp-react-code-input"}),w.jsx(Ws,{className:"btn btn-success w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:n,children:r.continue})]})};var yE;function Cn(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var BDe=0;function so(e){return"__private_"+BDe+++"_"+e}const WDe=e=>{const n=Gs()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),kh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class kh{}yE=kh;kh.URL="/passports/signup/classic";kh.NewUrl=e=>Vs(yE.URL,void 0,e);kh.Method="post";kh.Fetch$=async(e,t,n,r)=>qs(r??yE.NewUrl(e),{method:yE.Method,...n||{}},t);kh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new yv(o)})=>{t=t||(l=>new yv(l));const o=await yE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};kh.Definition={name:"ClassicSignup",cliName:"up",url:"/passports/signup/classic",method:"post",description:"Signup a user into system via public access (aka website visitors) using either email or phone number.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"sessionSecret",description:"Required when the account creation requires recaptcha, or otp approval first. If such requirements are there, you first need to follow the otp apis, get the session secret and pass it here to complete the setup.",type:"string"},{name:"type",type:"enum",of:[{k:"phonenumber"},{k:"email"}],tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"firstName",type:"string",tags:{validate:"required"}},{name:"lastName",type:"string",tags:{validate:"required"}},{name:"inviteId",type:"string?"},{name:"publicJoinKeyId",type:"string?"},{name:"workspaceTypeId",type:"string?",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Returns the user session in case that signup is completely successful.",type:"one",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"continueToTotp",description:"Returns true and session will be empty if, the totp is required by the installation. In such scenario, you need to forward user to setup totp screen.",type:"bool"},{name:"forcedTotp",description:"Determines if user must complete totp in order to continue based on workspace or installation",type:"bool"}]}};var Eg=so("value"),Tg=so("sessionSecret"),Cg=so("type"),kg=so("password"),xg=so("firstName"),_g=so("lastName"),Og=so("inviteId"),Rg=so("publicJoinKeyId"),Pg=so("workspaceTypeId"),DA=so("isJsonAppliable");class wc{get value(){return Cn(this,Eg)[Eg]}set value(t){Cn(this,Eg)[Eg]=String(t)}setValue(t){return this.value=t,this}get sessionSecret(){return Cn(this,Tg)[Tg]}set sessionSecret(t){Cn(this,Tg)[Tg]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}get type(){return Cn(this,Cg)[Cg]}set type(t){Cn(this,Cg)[Cg]=t}setType(t){return this.type=t,this}get password(){return Cn(this,kg)[kg]}set password(t){Cn(this,kg)[kg]=String(t)}setPassword(t){return this.password=t,this}get firstName(){return Cn(this,xg)[xg]}set firstName(t){Cn(this,xg)[xg]=String(t)}setFirstName(t){return this.firstName=t,this}get lastName(){return Cn(this,_g)[_g]}set lastName(t){Cn(this,_g)[_g]=String(t)}setLastName(t){return this.lastName=t,this}get inviteId(){return Cn(this,Og)[Og]}set inviteId(t){const n=typeof t=="string"||t===void 0||t===null;Cn(this,Og)[Og]=n?t:String(t)}setInviteId(t){return this.inviteId=t,this}get publicJoinKeyId(){return Cn(this,Rg)[Rg]}set publicJoinKeyId(t){const n=typeof t=="string"||t===void 0||t===null;Cn(this,Rg)[Rg]=n?t:String(t)}setPublicJoinKeyId(t){return this.publicJoinKeyId=t,this}get workspaceTypeId(){return Cn(this,Pg)[Pg]}set workspaceTypeId(t){const n=typeof t=="string"||t===void 0||t===null;Cn(this,Pg)[Pg]=n?t:String(t)}setWorkspaceTypeId(t){return this.workspaceTypeId=t,this}constructor(t=void 0){if(Object.defineProperty(this,DA,{value:zDe}),Object.defineProperty(this,Eg,{writable:!0,value:""}),Object.defineProperty(this,Tg,{writable:!0,value:""}),Object.defineProperty(this,Cg,{writable:!0,value:void 0}),Object.defineProperty(this,kg,{writable:!0,value:""}),Object.defineProperty(this,xg,{writable:!0,value:""}),Object.defineProperty(this,_g,{writable:!0,value:""}),Object.defineProperty(this,Og,{writable:!0,value:void 0}),Object.defineProperty(this,Rg,{writable:!0,value:void 0}),Object.defineProperty(this,Pg,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Cn(this,DA)[DA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.type!==void 0&&(this.type=n.type),n.password!==void 0&&(this.password=n.password),n.firstName!==void 0&&(this.firstName=n.firstName),n.lastName!==void 0&&(this.lastName=n.lastName),n.inviteId!==void 0&&(this.inviteId=n.inviteId),n.publicJoinKeyId!==void 0&&(this.publicJoinKeyId=n.publicJoinKeyId),n.workspaceTypeId!==void 0&&(this.workspaceTypeId=n.workspaceTypeId)}toJSON(){return{value:Cn(this,Eg)[Eg],sessionSecret:Cn(this,Tg)[Tg],type:Cn(this,Cg)[Cg],password:Cn(this,kg)[kg],firstName:Cn(this,xg)[xg],lastName:Cn(this,_g)[_g],inviteId:Cn(this,Og)[Og],publicJoinKeyId:Cn(this,Rg)[Rg],workspaceTypeId:Cn(this,Pg)[Pg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",sessionSecret:"sessionSecret",type:"type",password:"password",firstName:"firstName",lastName:"lastName",inviteId:"inviteId",publicJoinKeyId:"publicJoinKeyId",workspaceTypeId:"workspaceTypeId"}}static from(t){return new wc(t)}static with(t){return new wc(t)}copyWith(t){return new wc({...this.toJSON(),...t})}clone(){return new wc(this.toJSON())}}function zDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var vd=so("session"),Ag=so("totpUrl"),Ng=so("continueToTotp"),Mg=so("forcedTotp"),$A=so("isJsonAppliable"),j1=so("lateInitFields");class yv{get session(){return Cn(this,vd)[vd]}set session(t){t instanceof Dr?Cn(this,vd)[vd]=t:Cn(this,vd)[vd]=new Dr(t)}setSession(t){return this.session=t,this}get totpUrl(){return Cn(this,Ag)[Ag]}set totpUrl(t){Cn(this,Ag)[Ag]=String(t)}setTotpUrl(t){return this.totpUrl=t,this}get continueToTotp(){return Cn(this,Ng)[Ng]}set continueToTotp(t){Cn(this,Ng)[Ng]=!!t}setContinueToTotp(t){return this.continueToTotp=t,this}get forcedTotp(){return Cn(this,Mg)[Mg]}set forcedTotp(t){Cn(this,Mg)[Mg]=!!t}setForcedTotp(t){return this.forcedTotp=t,this}constructor(t=void 0){if(Object.defineProperty(this,j1,{value:HDe}),Object.defineProperty(this,$A,{value:qDe}),Object.defineProperty(this,vd,{writable:!0,value:void 0}),Object.defineProperty(this,Ag,{writable:!0,value:""}),Object.defineProperty(this,Ng,{writable:!0,value:void 0}),Object.defineProperty(this,Mg,{writable:!0,value:void 0}),t==null){Cn(this,j1)[j1]();return}if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Cn(this,$A)[$A](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.continueToTotp!==void 0&&(this.continueToTotp=n.continueToTotp),n.forcedTotp!==void 0&&(this.forcedTotp=n.forcedTotp),Cn(this,j1)[j1](t)}toJSON(){return{session:Cn(this,vd)[vd],totpUrl:Cn(this,Ag)[Ag],continueToTotp:Cn(this,Ng)[Ng],forcedTotp:Cn(this,Mg)[Mg]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Wd("session",Dr.Fields)},totpUrl:"totpUrl",continueToTotp:"continueToTotp",forcedTotp:"forcedTotp"}}static from(t){return new yv(t)}static with(t){return new yv(t)}copyWith(t){return new yv({...this.toJSON(),...t})}clone(){return new yv(this.toJSON())}}function qDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function HDe(e={}){const t=e;t.session instanceof Dr||(this.session=new Dr(t.session||{}))}var bE;function Ps(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var VDe=0;function ZE(e){return"__private_"+VDe+++"_"+e}const GDe=e=>{const t=Gs(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),Gd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[Gd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class Gd{}bE=Gd;Gd.URL="/workspace/public/types";Gd.NewUrl=e=>Vs(bE.URL,void 0,e);Gd.Method="get";Gd.Fetch$=async(e,t,n,r)=>qs(r??bE.NewUrl(e),{method:bE.Method,...n||{}},t);Gd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new bv(o)})=>{t=t||(l=>new bv(l));const o=await bE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Gd.Definition={name:"QueryWorkspaceTypesPublicly",cliName:"public-types",url:"/workspace/public/types",method:"get",description:"Returns the workspaces types available in the project publicly without authentication, and the value could be used upon signup to go different route.",out:{envelope:"GResponse",fields:[{name:"title",type:"string"},{name:"description",type:"string"},{name:"uniqueId",type:"string"},{name:"slug",type:"string"}]}};var Ig=ZE("title"),Dg=ZE("description"),$g=ZE("uniqueId"),Lg=ZE("slug"),LA=ZE("isJsonAppliable");class bv{get title(){return Ps(this,Ig)[Ig]}set title(t){Ps(this,Ig)[Ig]=String(t)}setTitle(t){return this.title=t,this}get description(){return Ps(this,Dg)[Dg]}set description(t){Ps(this,Dg)[Dg]=String(t)}setDescription(t){return this.description=t,this}get uniqueId(){return Ps(this,$g)[$g]}set uniqueId(t){Ps(this,$g)[$g]=String(t)}setUniqueId(t){return this.uniqueId=t,this}get slug(){return Ps(this,Lg)[Lg]}set slug(t){Ps(this,Lg)[Lg]=String(t)}setSlug(t){return this.slug=t,this}constructor(t=void 0){if(Object.defineProperty(this,LA,{value:YDe}),Object.defineProperty(this,Ig,{writable:!0,value:""}),Object.defineProperty(this,Dg,{writable:!0,value:""}),Object.defineProperty(this,$g,{writable:!0,value:""}),Object.defineProperty(this,Lg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Ps(this,LA)[LA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.title!==void 0&&(this.title=n.title),n.description!==void 0&&(this.description=n.description),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.slug!==void 0&&(this.slug=n.slug)}toJSON(){return{title:Ps(this,Ig)[Ig],description:Ps(this,Dg)[Dg],uniqueId:Ps(this,$g)[$g],slug:Ps(this,Lg)[Lg]}}toString(){return JSON.stringify(this)}static get Fields(){return{title:"title",description:"description",uniqueId:"uniqueId",slug:"slug"}}static from(t){return new bv(t)}static with(t){return new bv(t)}copyWith(t){return new bv({...this.toJSON(),...t})}clone(){return new bv(this.toJSON())}}function YDe(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const KDe=()=>{var k;const{goBack:e,state:t,push:n}=xr(),{locale:r}=sr(),{onComplete:a}=QE(),i=WDe(),o=t==null?void 0:t.totpUrl,{data:l,isLoading:u}=GDe({}),d=((k=l==null?void 0:l.data)==null?void 0:k.items)||[],f=Kt(xa),g=sessionStorage.getItem("workspace_type_id"),y=_=>{i.mutateAsync(new wc({..._,value:t==null?void 0:t.value,workspaceTypeId:C,type:t==null?void 0:t.type,sessionSecret:t==null?void 0:t.sessionSecret})).then(v).catch(A=>{h==null||h.setErrors(S0(A))})},h=tf({initialValues:{},onSubmit:y});R.useEffect(()=>{h==null||h.setFieldValue(wc.Fields.value,t==null?void 0:t.value)},[t==null?void 0:t.value]);const v=_=>{_.data.item.session?a(_):_.data.item.continueToTotp&&n(`/${r}/selfservice/totp-setup`,void 0,{totpUrl:_.data.item.totpUrl||o,forcedTotp:_.data.item.forcedTotp,password:h.values.password,value:t==null?void 0:t.value})},[E,T]=R.useState("");let C=d.length===1?d[0].uniqueId:E;return g&&(C=g),{mutation:i,isLoading:u,form:h,setSelectedWorkspaceType:T,totpUrl:o,workspaceTypeId:C,submit:y,goBack:e,s:f,workspaceTypes:d,state:t}},XDe=({})=>{const{goBack:e,mutation:t,form:n,workspaceTypes:r,workspaceTypeId:a,isLoading:i,setSelectedWorkspaceType:o,s:l}=KDe();return i?w.jsx("div",{className:"signin-form-container",children:w.jsx($ne,{})}):r.length===0?w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:l.registerationNotPossible}),w.jsx("p",{children:l.registerationNotPossibleLine1}),w.jsx("p",{children:l.registerationNotPossibleLine2})]}):r.length>=2&&!a?w.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[w.jsx("h1",{children:l.completeYourAccount}),w.jsx("p",{children:l.completeYourAccountDescription}),w.jsx("div",{className:" ",children:r.map(u=>w.jsxs("div",{className:"mt-3",children:[w.jsx("h2",{children:u.title}),w.jsx("p",{children:u.description}),w.jsx("button",{className:"btn btn-outline-primary w-100",onClick:()=>{o(u.uniqueId)},children:"Select"},u.uniqueId)]},u.uniqueId))})]}):w.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[w.jsx("h1",{children:l.completeYourAccount}),w.jsx("p",{children:l.completeYourAccountDescription}),w.jsx(Il,{query:t}),w.jsx(QDe,{form:n,mutation:t}),w.jsx("button",{id:"go-step-back",onClick:e,className:"bg-transparent border-0",children:l.cancelStep})]})},QDe=({form:e,mutation:t})=>{const n=Kt(xa),r=!e.values.firstName||!e.values.lastName||!e.values.password||e.values.password.length<6;return w.jsxs("form",{onSubmit:a=>{a.preventDefault(),e.submitForm()},children:[w.jsx(In,{value:e.values.firstName,label:n.firstName,id:"first-name-input",autoFocus:!0,errorMessage:e.errors.firstName,onChange:a=>e.setFieldValue(wc.Fields.firstName,a,!1)}),w.jsx(In,{value:e.values.lastName,label:n.lastName,id:"last-name-input",errorMessage:e.errors.lastName,onChange:a=>e.setFieldValue(wc.Fields.lastName,a,!1)}),w.jsx(In,{type:"password",value:e.values.password,label:n.password,id:"password-input",errorMessage:e.errors.password,onChange:a=>e.setFieldValue(wc.Fields.password,a,!1)}),w.jsx(Ws,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:r,children:n.continue})]})};var wE;function Li(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var JDe=0;function Yv(e){return"__private_"+JDe+++"_"+e}const ZDe=e=>{const n=Gs()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),xh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class xh{}wE=xh;xh.URL="/workspace/passport/request-otp";xh.NewUrl=e=>Vs(wE.URL,void 0,e);xh.Method="post";xh.Fetch$=async(e,t,n,r)=>qs(r??wE.NewUrl(e),{method:wE.Method,...n||{}},t);xh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new wv(o)})=>{t=t||(l=>new wv(l));const o=await wE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};xh.Definition={name:"ClassicPassportRequestOtp",cliName:"otp-request",url:"/workspace/passport/request-otp",method:"post",description:"Triggers an otp request, and will send an sms or email to the passport. This endpoint is not used for login, but rather makes a request at initial step. Later you can call classicPassportOtp to get in.",in:{fields:[{name:"value",description:"Passport value (email, phone number) which would be receiving the otp code.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}};var Fg=Yv("value"),FA=Yv("isJsonAppliable");class Wb{get value(){return Li(this,Fg)[Fg]}set value(t){Li(this,Fg)[Fg]=String(t)}setValue(t){return this.value=t,this}constructor(t=void 0){if(Object.defineProperty(this,FA,{value:e$e}),Object.defineProperty(this,Fg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Li(this,FA)[FA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value)}toJSON(){return{value:Li(this,Fg)[Fg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value"}}static from(t){return new Wb(t)}static with(t){return new Wb(t)}copyWith(t){return new Wb({...this.toJSON(),...t})}clone(){return new Wb(this.toJSON())}}function e$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var jg=Yv("suspendUntil"),Ug=Yv("validUntil"),Bg=Yv("blockedUntil"),Wg=Yv("secondsToUnblock"),jA=Yv("isJsonAppliable");class wv{get suspendUntil(){return Li(this,jg)[jg]}set suspendUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Li(this,jg)[jg]=r)}setSuspendUntil(t){return this.suspendUntil=t,this}get validUntil(){return Li(this,Ug)[Ug]}set validUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Li(this,Ug)[Ug]=r)}setValidUntil(t){return this.validUntil=t,this}get blockedUntil(){return Li(this,Bg)[Bg]}set blockedUntil(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Li(this,Bg)[Bg]=r)}setBlockedUntil(t){return this.blockedUntil=t,this}get secondsToUnblock(){return Li(this,Wg)[Wg]}set secondsToUnblock(t){const r=typeof t=="number"?t:Number(t);Number.isNaN(r)||(Li(this,Wg)[Wg]=r)}setSecondsToUnblock(t){return this.secondsToUnblock=t,this}constructor(t=void 0){if(Object.defineProperty(this,jA,{value:t$e}),Object.defineProperty(this,jg,{writable:!0,value:0}),Object.defineProperty(this,Ug,{writable:!0,value:0}),Object.defineProperty(this,Bg,{writable:!0,value:0}),Object.defineProperty(this,Wg,{writable:!0,value:0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Li(this,jA)[jA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:Li(this,jg)[jg],validUntil:Li(this,Ug)[Ug],blockedUntil:Li(this,Bg)[Bg],secondsToUnblock:Li(this,Wg)[Wg]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(t){return new wv(t)}static with(t){return new wv(t)}copyWith(t){return new wv({...this.toJSON(),...t})}clone(){return new wv(this.toJSON())}}function t$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const n$e=()=>{const e=Kt(xa),{goBack:t,state:n,push:r}=xr(),{locale:a}=sr(),{onComplete:i}=QE(),o=Fne(),l=n==null?void 0:n.canContinueOnOtp,u=ZDe(),d=h=>{o.mutateAsync(new Su({value:h.value,password:h.password})).then(y).catch(v=>{f==null||f.setErrors(S0(v))})},f=tf({initialValues:{},onSubmit:d}),g=()=>{u.mutateAsync(new Wb({value:f.values.value})).then(h=>{r("../otp",void 0,{value:f.values.value})}).catch(h=>{h.error.message==="OtaRequestBlockedUntil"&&r("../otp",void 0,{value:f.values.value})})};R.useEffect(()=>{n!=null&&n.value&&f.setFieldValue(Su.Fields.value,n.value)},[n==null?void 0:n.value]);const y=h=>{var v,E;h.data.item.session?i(h):(v=h.data.item.next)!=null&&v.includes("enter-totp")?r(`/${a}/selfservice/totp-enter`,void 0,{value:f.values.value,password:f.values.password}):(E=h.data.item.next)!=null&&E.includes("setup-totp")&&r(`/${a}/selfservice/totp-setup`,void 0,{totpUrl:h.data.item.totpUrl,forcedTotp:!0,password:f.values.password,value:n==null?void 0:n.value})};return{mutation:o,otpEnabled:l,continueWithOtp:g,form:f,submit:d,goBack:t,s:e}},r$e=({})=>{const{goBack:e,mutation:t,form:n,continueWithOtp:r,otpEnabled:a,s:i}=n$e();return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:i.enterPassword}),w.jsx("p",{children:i.enterPasswordDescription}),w.jsx(Il,{query:t}),w.jsx(a$e,{form:n,mutation:t,continueWithOtp:r,otpEnabled:a}),w.jsx("button",{id:"go-back-button",onClick:e,className:"btn bg-transparent w-100 mt-4",children:i.anotherAccount})]})},a$e=({form:e,mutation:t,otpEnabled:n,continueWithOtp:r})=>{const a=Kt(xa),i=!e.values.value||!e.values.password;return w.jsxs("form",{onSubmit:o=>{o.preventDefault(),e.submitForm()},children:[w.jsx(In,{type:"password",value:e.values.password,label:a.password,id:"password-input",autoFocus:!0,errorMessage:e.errors.password,onChange:o=>e.setFieldValue(Su.Fields.password,o,!1)}),w.jsx(Ws,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:i,children:a.continue}),n&&w.jsx("button",{onClick:r,className:"bg-transparent border-0 mt-3 mb-3",children:a.useOneTimePassword})]})};var SE;function Fa(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var i$e=0;function _h(e){return"__private_"+i$e+++"_"+e}const o$e=e=>{const t=Gs(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Oh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result))),...e||{}}),isCompleted:r,response:i}};class Oh{}SE=Oh;Oh.URL="/workspace/passport/otp";Oh.NewUrl=e=>Vs(SE.URL,void 0,e);Oh.Method="post";Oh.Fetch$=async(e,t,n,r)=>qs(r??SE.NewUrl(e),{method:SE.Method,...n||{}},t);Oh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Ev(o)})=>{t=t||(l=>new Ev(l));const o=await SE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Oh.Definition={name:"ClassicPassportOtp",cliName:"otp",url:"/workspace/passport/otp",method:"post",description:"Authenticate the user publicly for classic methods using communication service, such as sms, call, or email. You need to call classicPassportRequestOtp beforehand to send a otp code, and then validate it with this API. Also checkClassicPassport action might already sent the otp, so make sure you don't send it twice.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"otp",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Upon successful authentication, there will be a session dto generated, which is a ground information of authorized user and can be stored in front-end.",type:"one?",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"sessionSecret",description:"The session secret will be used to call complete user registration api.",type:"string"},{name:"continueWithCreation",description:"If return true, means the OTP is correct and user needs to be created before continue the authentication process.",type:"bool"}]}};var zg=_h("value"),qg=_h("otp"),UA=_h("isJsonAppliable");class Sv{get value(){return Fa(this,zg)[zg]}set value(t){Fa(this,zg)[zg]=String(t)}setValue(t){return this.value=t,this}get otp(){return Fa(this,qg)[qg]}set otp(t){Fa(this,qg)[qg]=String(t)}setOtp(t){return this.otp=t,this}constructor(t=void 0){if(Object.defineProperty(this,UA,{value:s$e}),Object.defineProperty(this,zg,{writable:!0,value:""}),Object.defineProperty(this,qg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Fa(this,UA)[UA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.value!==void 0&&(this.value=n.value),n.otp!==void 0&&(this.otp=n.otp)}toJSON(){return{value:Fa(this,zg)[zg],otp:Fa(this,qg)[qg]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",otp:"otp"}}static from(t){return new Sv(t)}static with(t){return new Sv(t)}copyWith(t){return new Sv({...this.toJSON(),...t})}clone(){return new Sv(this.toJSON())}}function s$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var yd=_h("session"),Hg=_h("totpUrl"),Vg=_h("sessionSecret"),Gg=_h("continueWithCreation"),BA=_h("isJsonAppliable");class Ev{get session(){return Fa(this,yd)[yd]}set session(t){t instanceof Dr?Fa(this,yd)[yd]=t:Fa(this,yd)[yd]=new Dr(t)}setSession(t){return this.session=t,this}get totpUrl(){return Fa(this,Hg)[Hg]}set totpUrl(t){Fa(this,Hg)[Hg]=String(t)}setTotpUrl(t){return this.totpUrl=t,this}get sessionSecret(){return Fa(this,Vg)[Vg]}set sessionSecret(t){Fa(this,Vg)[Vg]=String(t)}setSessionSecret(t){return this.sessionSecret=t,this}get continueWithCreation(){return Fa(this,Gg)[Gg]}set continueWithCreation(t){Fa(this,Gg)[Gg]=!!t}setContinueWithCreation(t){return this.continueWithCreation=t,this}constructor(t=void 0){if(Object.defineProperty(this,BA,{value:l$e}),Object.defineProperty(this,yd,{writable:!0,value:void 0}),Object.defineProperty(this,Hg,{writable:!0,value:""}),Object.defineProperty(this,Vg,{writable:!0,value:""}),Object.defineProperty(this,Gg,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Fa(this,BA)[BA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.continueWithCreation!==void 0&&(this.continueWithCreation=n.continueWithCreation)}toJSON(){return{session:Fa(this,yd)[yd],totpUrl:Fa(this,Hg)[Hg],sessionSecret:Fa(this,Vg)[Vg],continueWithCreation:Fa(this,Gg)[Gg]}}toString(){return JSON.stringify(this)}static get Fields(){return{session:"session",totpUrl:"totpUrl",sessionSecret:"sessionSecret",continueWithCreation:"continueWithCreation"}}static from(t){return new Ev(t)}static with(t){return new Ev(t)}copyWith(t){return new Ev({...this.toJSON(),...t})}clone(){return new Ev(this.toJSON())}}function l$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const u$e=()=>{const{goBack:e,state:t,replace:n,push:r}=xr(),{locale:a}=sr(),i=Kt(xa),o=o$e({}),{onComplete:l}=QE(),u=g=>{o.mutateAsync(new Sv({...g,value:t.value})).then(f).catch(y=>{d==null||d.setErrors(S0(y))})},d=tf({initialValues:{},onSubmit:u}),f=g=>{var y,h,v,E,T;(y=g.data)!=null&&y.item.session?l(g):(v=(h=g.data)==null?void 0:h.item)!=null&&v.continueWithCreation&&r(`/${a}/selfservice/complete`,void 0,{value:t.value,type:t.type,sessionSecret:(E=g.data.item)==null?void 0:E.sessionSecret,totpUrl:(T=g.data.item)==null?void 0:T.totpUrl})};return{mutation:o,form:d,s:i,submit:u,goBack:e}},c$e=({})=>{const{goBack:e,mutation:t,form:n,s:r}=u$e();return w.jsxs("div",{className:"signin-form-container",children:[w.jsx("h1",{children:r.enterOtp}),w.jsx("p",{children:r.enterOtpDescription}),w.jsx(Il,{query:t}),w.jsx(d$e,{form:n,mutation:t}),w.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:e,children:r.anotherAccount})]})},d$e=({form:e,mutation:t})=>{var a;const n=!e.values.otp,r=Kt(xa);return w.jsxs("form",{onSubmit:i=>{i.preventDefault(),e.submitForm()},children:[w.jsx(JE,{values:(a=e.values.otp)==null?void 0:a.split(""),onChange:i=>e.setFieldValue(Sv.Fields.otp,i,!1),className:"otp-react-code-input"}),w.jsx(Ws,{className:"btn btn-primary w-100 d-block mb-2",mutation:t,id:"submit-form",disabled:n,children:r.continue})]})};class $s extends wn{constructor(...t){super(...t),this.children=void 0,this.role=void 0,this.roleId=void 0,this.workspace=void 0}}$s.Navigation={edit(e,t){return`${t?"/"+t:".."}/public-join-key/edit/${e}`},create(e){return`${e?"/"+e:".."}/public-join-key/new`},single(e,t){return`${t?"/"+t:".."}/public-join-key/${e}`},query(e={},t){return`${t?"/"+t:".."}/public-join-keys`},Redit:"public-join-key/edit/:uniqueId",Rcreate:"public-join-key/new",Rsingle:"public-join-key/:uniqueId",Rquery:"public-join-keys"};$s.definition={rpc:{query:{}},name:"publicJoinKey",features:{},gormMap:{},fields:[{name:"role",type:"one",target:"RoleEntity",computedType:"RoleEntity",gormMap:{}},{name:"workspace",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}}],description:"Joining to different workspaces using a public link directly"};$s.Fields={...wn.Fields,roleId:"roleId",role$:"role",role:ri.Fields,workspace$:"workspace",workspace:yi.Fields};function Qne({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/public-join-key/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.PublicJoinKeyEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function f$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/public-join-key".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.PublicJoinKeyEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function p$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/public-join-key".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.PublicJoinKeyEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const h$e=({form:e,isEditing:t})=>{const{values:n,setValues:r,setFieldValue:a,errors:i}=e,{options:o}=R.useContext(rt),l=At();return w.jsx(w.Fragment,{children:w.jsx(da,{formEffect:{field:$s.Fields.role$,form:e},querySource:af,label:l.wokspaces.invite.role,errorMessage:i.roleId,fnLabelFormat:u=>u.name,hint:l.wokspaces.invite.roleHint})})},gz=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,t:a}=$r({data:e}),i=Qne({query:{uniqueId:n}}),o=p$e({queryClient:r}),l=f$e({queryClient:r});return w.jsx(Bo,{postHook:o,getSingleHook:i,patchHook:l,onCancel:()=>{t.goBackOrDefault($s.Navigation.query())},onFinishUriResolver:(u,d)=>{var f;return $s.Navigation.single((f=u.data)==null?void 0:f.uniqueId)},Form:h$e,onEditTitle:a.fb.editPublicJoinKey,onCreateTitle:a.fb.newPublicJoinKey,data:e})},m$e=()=>{var i,o;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Qne({query:{uniqueId:n}});var a=(i=r.query.data)==null?void 0:i.data;return w.jsx(w.Fragment,{children:w.jsx(io,{editEntityHandler:()=>{e.push($s.Navigation.edit(n))},getSingleHook:r,children:w.jsx(oo,{entity:a,fields:[{label:t.role.name,elem:(o=a==null?void 0:a.role)==null?void 0:o.name}]})})})};function g$e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/public-join-key".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.PublicJoinKeyEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.PublicJoinKeyEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function Jne({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/public-join-keys".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.PublicJoinKeyEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}Jne.UKEY="*abac.PublicJoinKeyEntity";const v$e={roleName:"Role name",uniqueId:"Unique Id"},y$e={roleName:"Nazwa roli",uniqueId:"Unikalny identyfikator"},b$e={...v$e,$pl:y$e},w$e=e=>[{name:"uniqueId",title:e.uniqueId,width:200},{name:"role",title:e.roleName,width:200,getCellValue:t=>{var n;return(n=t.role)==null?void 0:n.name}}],S$e=()=>{const e=Kt(b$e);return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:w$e(e),queryHook:Jne,uniqueIdHrefHandler:t=>$s.Navigation.single(t),deleteHook:g$e})})},E$e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{pageTitle:e.fbMenu.publicJoinKey,newEntityHandler:({locale:t,router:n})=>{n.push($s.Navigation.create())},children:w.jsx(S$e,{})})})};function T$e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(gz,{}),path:$s.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(m$e,{}),path:$s.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(gz,{}),path:$s.Navigation.Redit}),w.jsx(mt,{element:w.jsx(E$e,{}),path:$s.Navigation.Rquery})]})}function Zne({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/role/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.RoleEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function C$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/role".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.RoleEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function k$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/role".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.RoleEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function x$e({value:e,onChange:t,...n}){const r=R.useRef();return R.useEffect(()=>{r.current.indeterminate=e==="indeterminate"},[r,e]),w.jsx("input",{...n,type:"checkbox",ref:r,onChange:a=>{t("checked")},checked:e==="checked",className:"form-check-input"})}function mu(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var _$e=0;function F_(e){return"__private_"+_$e+++"_"+e}var Yg=F_("uniqueId"),Kg=F_("name"),bd=F_("children"),WA=F_("isJsonAppliable");class as{get uniqueId(){return mu(this,Yg)[Yg]}set uniqueId(t){mu(this,Yg)[Yg]=String(t)}setUniqueId(t){return this.uniqueId=t,this}get name(){return mu(this,Kg)[Kg]}set name(t){mu(this,Kg)[Kg]=String(t)}setName(t){return this.name=t,this}get children(){return mu(this,bd)[bd]}set children(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof as?mu(this,bd)[bd]=t:mu(this,bd)[bd]=t.map(n=>new as(n)))}setChildren(t){return this.children=t,this}constructor(t=void 0){if(Object.defineProperty(this,WA,{value:O$e}),Object.defineProperty(this,Yg,{writable:!0,value:""}),Object.defineProperty(this,Kg,{writable:!0,value:""}),Object.defineProperty(this,bd,{writable:!0,value:[]}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(mu(this,WA)[WA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.name!==void 0&&(this.name=n.name),n.children!==void 0&&(this.children=n.children)}toJSON(){return{uniqueId:mu(this,Yg)[Yg],name:mu(this,Kg)[Kg],children:mu(this,bd)[bd]}}toString(){return JSON.stringify(this)}static get Fields(){return{uniqueId:"uniqueId",name:"name",children$:"children",get children(){return Wd("children[:i]",as.Fields)}}}static from(t){return new as(t)}static with(t){return new as(t)}copyWith(t){return new as({...this.toJSON(),...t})}clone(){return new as(this.toJSON())}}function O$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var EE;function wd(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var R$e=0;function zj(e){return"__private_"+R$e+++"_"+e}const P$e=e=>{const t=Gs(),n=(e==null?void 0:e.ctx)??t??void 0,[r,a]=R.useState(!1),[i,o]=R.useState(),l=()=>(a(!1),Yd.Fetch({headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(d=>(d.done.then(()=>{a(!0)}),o(d.response),d.response.result)));return{...jn({queryKey:[Yd.NewUrl(e==null?void 0:e.qs)],queryFn:l,...e||{}}),isCompleted:r,response:i}};class Yd{}EE=Yd;Yd.URL="/capabilitiesTree";Yd.NewUrl=e=>Vs(EE.URL,void 0,e);Yd.Method="get";Yd.Fetch$=async(e,t,n,r)=>qs(r??EE.NewUrl(e),{method:EE.Method,...n||{}},t);Yd.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Tv(o)})=>{t=t||(l=>new Tv(l));const o=await EE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Yd.Definition={name:"CapabilitiesTree",cliName:"treex",url:"/capabilitiesTree",method:"get",description:"dLists all of the capabilities in database as a array of string as root access",out:{envelope:"GResponse",fields:[{name:"capabilities",type:"collection",target:"CapabilityInfoDto"},{name:"nested",type:"collection",target:"CapabilityInfoDto"}]}};var Sd=zj("capabilities"),Ed=zj("nested"),zA=zj("isJsonAppliable");class Tv{get capabilities(){return wd(this,Sd)[Sd]}set capabilities(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof as?wd(this,Sd)[Sd]=t:wd(this,Sd)[Sd]=t.map(n=>new as(n)))}setCapabilities(t){return this.capabilities=t,this}get nested(){return wd(this,Ed)[Ed]}set nested(t){Array.isArray(t)&&(t.length>0&&t[0]instanceof as?wd(this,Ed)[Ed]=t:wd(this,Ed)[Ed]=t.map(n=>new as(n)))}setNested(t){return this.nested=t,this}constructor(t=void 0){if(Object.defineProperty(this,zA,{value:A$e}),Object.defineProperty(this,Sd,{writable:!0,value:[]}),Object.defineProperty(this,Ed,{writable:!0,value:[]}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(wd(this,zA)[zA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.capabilities!==void 0&&(this.capabilities=n.capabilities),n.nested!==void 0&&(this.nested=n.nested)}toJSON(){return{capabilities:wd(this,Sd)[Sd],nested:wd(this,Ed)[Ed]}}toString(){return JSON.stringify(this)}static get Fields(){return{capabilities$:"capabilities",get capabilities(){return Wd("capabilities[:i]",as.Fields)},nested$:"nested",get nested(){return Wd("nested[:i]",as.Fields)}}}static from(t){return new Tv(t)}static with(t){return new Tv(t)}copyWith(t){return new Tv({...this.toJSON(),...t})}clone(){return new Tv(this.toJSON())}}function A$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}function ere({onChange:e,value:t,prefix:n}){var l,u;const{data:r,error:a}=P$e({}),i=((u=(l=r==null?void 0:r.data)==null?void 0:l.item)==null?void 0:u.nested)||[],o=(d,f)=>{let g=[...t||[]];f==="checked"&&g.push(d),f==="unchecked"&&(g=g.filter(y=>y!==d)),e&&e(g)};return w.jsxs("nav",{className:"tree-nav",children:[w.jsx(P0,{error:a}),w.jsx("ul",{className:"list",children:w.jsx(tre,{items:i,onNodeChange:o,value:t,prefix:n})})]})}function tre({items:e,onNodeChange:t,value:n,prefix:r,autoChecked:a}){const i=r?r+".":"";return w.jsx(w.Fragment,{children:e.map(o=>{var d;const l=`${i}${o.uniqueId}${(d=o.children)!=null&&d.length?".*":""}`,u=(n||[]).includes(l)?"checked":"unchecked";return w.jsxs("li",{children:[w.jsx("span",{children:w.jsxs("label",{className:a?"auto-checked":"",children:[w.jsx(x$e,{value:u,onChange:f=>{t(l,u==="checked"?"unchecked":"checked")}}),o.uniqueId]})}),o.children&&w.jsx("ul",{children:w.jsx(tre,{autoChecked:a||u==="checked",onNodeChange:t,value:n,items:o.children,prefix:i+o.uniqueId})})]},o.uniqueId)})})}const N$e=(e,t)=>e!=null&&e.length&&!(t!=null&&t.length)?e.map(n=>n.uniqueId):t||[],M$e=({form:e,isEditing:t})=>{const{values:n,setFieldValue:r,errors:a}=e,i=At();return w.jsxs(w.Fragment,{children:[w.jsx(In,{value:n.name,onChange:o=>r(ri.Fields.name,o,!1),errorMessage:a.name,label:i.wokspaces.invite.role,autoFocus:!t,hint:i.wokspaces.invite.roleHint}),w.jsx(ere,{onChange:o=>r(ri.Fields.capabilitiesListId,o,!1),value:N$e(n.capabilities,n.capabilitiesListId)})]})},vz=({data:e})=>{const{router:t,uniqueId:n,queryClient:r,locale:a}=$r({data:e}),i=At(),o=Zne({query:{uniqueId:n},queryOptions:{enabled:!!n}}),l=k$e({queryClient:r}),u=C$e({queryClient:r});return w.jsx(Bo,{postHook:l,getSingleHook:o,patchHook:u,beforeSubmit:d=>{var f;return((f=d.capabilities)==null?void 0:f.length)>0&&d.capabilitiesListId===null?{...d,capabilitiesListId:d.capabilities.map(g=>g.uniqueId)}:d},onCancel:()=>{t.goBackOrDefault(ri.Navigation.query(void 0,a))},onFinishUriResolver:(d,f)=>{var g;return ri.Navigation.single((g=d.data)==null?void 0:g.uniqueId,f)},Form:M$e,onEditTitle:i.fb.editRole,onCreateTitle:i.fb.newRole,data:e})},I$e=()=>{var l;const e=xr();Bs();const t=e.query.uniqueId,n=At();sr();const[r,a]=R.useState([]),i=Zne({query:{uniqueId:t,deep:!0}});var o=(l=i.query.data)==null?void 0:l.data;return N_((o==null?void 0:o.name)||""),R.useEffect(()=>{var u;a((u=o==null?void 0:o.capabilities)==null?void 0:u.map(d=>d.uniqueId||""))},[o==null?void 0:o.capabilities]),w.jsx(w.Fragment,{children:w.jsxs(io,{editEntityHandler:()=>{e.push(ri.Navigation.edit(t))},getSingleHook:i,children:[w.jsx(oo,{entity:o,fields:[{label:n.role.name,elem:o==null?void 0:o.name}]}),w.jsx(Do,{title:n.role.permissions,className:"mt-3",children:w.jsx(ere,{value:r})})]})})},D$e=e=>[{name:ri.Fields.uniqueId,title:e.table.uniqueId,width:200},{name:ri.Fields.name,title:e.role.name,width:200}];function $$e(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/role".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.RoleEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.RoleEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const L$e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:D$e(e),queryHook:af,uniqueIdHrefHandler:t=>ri.Navigation.single(t),deleteHook:$$e})})},F$e=()=>{const e=At();return xhe(),w.jsx(w.Fragment,{children:w.jsx(jo,{newEntityHandler:({locale:t,router:n})=>n.push(ri.Navigation.create()),pageTitle:e.fbMenu.roles,children:w.jsx(L$e,{})})})};function j$e(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(vz,{}),path:ri.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(I$e,{}),path:ri.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(vz,{}),path:ri.Navigation.Redit}),w.jsx(mt,{element:w.jsx(F$e,{}),path:ri.Navigation.Rquery})]})}({...wn.Fields});function nre({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/users/invitations".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.UserInvitationsQueryColumns",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}nre.UKEY="*abac.UserInvitationsQueryColumns";const U$e={confirmRejectTitle:"Reject invite",reject:"Reject",workspaceName:"Workspace Name",passport:"Passport",confirmAcceptDescription:"Are you sure that you are confirming to join?",confirmRejectDescription:"Are you sure to reject this invitation? You need to be reinvited by admins again.",acceptBtn:null,accept:"Accept",roleName:"Role name",method:"Method",actions:"Actions",confirmAcceptTitle:"Confirm invitation"},B$e={actions:"Akcje",confirmRejectTitle:"Odrzuć zaproszenie",method:"Metoda",roleName:"Nazwa roli",accept:"Akceptuj",confirmAcceptDescription:"Czy na pewno chcesz dołączyć?",confirmAcceptTitle:"Potwierdź zaproszenie",confirmRejectDescription:"Czy na pewno chcesz odrzucić to zaproszenie? Aby dołączyć ponownie, musisz zostać ponownie zaproszony przez administratorów.",passport:"Paszport",reject:"Odrzuć",workspaceName:"Nazwa przestrzeni roboczej",acceptBtn:"Tak"},W$e={...U$e,$pl:B$e},z$e=(e,t,n)=>[{name:"roleName",title:e.roleName,width:100},{name:"workspaceName",title:e.workspaceName,width:100},{name:"method",title:e.method,width:100,getCellValue:r=>r.type},{name:"value",title:e.passport,width:100,getCellValue:r=>r.value},{name:"actions",title:e.actions,width:100,getCellValue:r=>w.jsxs(w.Fragment,{children:[w.jsx("button",{className:"btn btn-sm btn-success",style:{marginRight:"2px"},onClick:a=>{t(r)},children:e.accept}),w.jsx("button",{onClick:a=>{n(r)},className:"btn btn-sm btn-danger",children:e.reject})]})}];var TE;function Zp(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var q$e=0;function j_(e){return"__private_"+q$e+++"_"+e}const H$e=e=>{const n=Gs()??void 0,[r,a]=R.useState(!1),[i,o]=R.useState();return{...un({mutationFn:d=>(a(!1),Rh.Fetch({body:d,headers:e==null?void 0:e.headers},{creatorFn:e==null?void 0:e.creatorFn,qs:e==null?void 0:e.qs,ctx:n,onMessage:e==null?void 0:e.onMessage,overrideUrl:e==null?void 0:e.overrideUrl}).then(f=>(f.done.then(()=>{a(!0)}),o(f.response),f.response.result)))}),isCompleted:r,response:i}};class Rh{}TE=Rh;Rh.URL="/user/invitation/accept";Rh.NewUrl=e=>Vs(TE.URL,void 0,e);Rh.Method="post";Rh.Fetch$=async(e,t,n,r)=>qs(r??TE.NewUrl(e),{method:TE.Method,...n||{}},t);Rh.Fetch=async(e,{creatorFn:t,qs:n,ctx:r,onMessage:a,overrideUrl:i}={creatorFn:o=>new Cv(o)})=>{t=t||(l=>new Cv(l));const o=await TE.Fetch$(n,r,e,i);return Hs(o,l=>{const u=new us;return t&&u.setCreator(t),u.inject(l),u},a,e==null?void 0:e.signal)};Rh.Definition={name:"AcceptInvite",url:"/user/invitation/accept",method:"post",description:"Use it when user accepts an invitation, and it will complete the joining process",in:{fields:[{name:"invitationUniqueId",description:"The invitation id which will be used to process",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"accepted",type:"bool"}]}};var Xg=j_("invitationUniqueId"),qA=j_("isJsonAppliable");class zb{get invitationUniqueId(){return Zp(this,Xg)[Xg]}set invitationUniqueId(t){Zp(this,Xg)[Xg]=String(t)}setInvitationUniqueId(t){return this.invitationUniqueId=t,this}constructor(t=void 0){if(Object.defineProperty(this,qA,{value:V$e}),Object.defineProperty(this,Xg,{writable:!0,value:""}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Zp(this,qA)[qA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.invitationUniqueId!==void 0&&(this.invitationUniqueId=n.invitationUniqueId)}toJSON(){return{invitationUniqueId:Zp(this,Xg)[Xg]}}toString(){return JSON.stringify(this)}static get Fields(){return{invitationUniqueId:"invitationUniqueId"}}static from(t){return new zb(t)}static with(t){return new zb(t)}copyWith(t){return new zb({...this.toJSON(),...t})}clone(){return new zb(this.toJSON())}}function V$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}var Qg=j_("accepted"),HA=j_("isJsonAppliable");class Cv{get accepted(){return Zp(this,Qg)[Qg]}set accepted(t){Zp(this,Qg)[Qg]=!!t}setAccepted(t){return this.accepted=t,this}constructor(t=void 0){if(Object.defineProperty(this,HA,{value:G$e}),Object.defineProperty(this,Qg,{writable:!0,value:void 0}),t!=null)if(typeof t=="string")this.applyFromObject(JSON.parse(t));else if(Zp(this,HA)[HA](t))this.applyFromObject(t);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof t)}applyFromObject(t={}){const n=t;n.accepted!==void 0&&(this.accepted=n.accepted)}toJSON(){return{accepted:Zp(this,Qg)[Qg]}}toString(){return JSON.stringify(this)}static get Fields(){return{accepted:"accepted"}}static from(t){return new Cv(t)}static with(t){return new Cv(t)}copyWith(t){return new Cv({...this.toJSON(),...t})}clone(){return new Cv(this.toJSON())}}function G$e(e){const t=globalThis,n=typeof t.Buffer<"u"&&typeof t.Buffer.isBuffer=="function"&&t.Buffer.isBuffer(e),r=typeof t.Blob<"u"&&e instanceof t.Blob;return e&&typeof e=="object"&&!Array.isArray(e)&&!n&&!(e instanceof ArrayBuffer)&&!r}const Y$e=()=>{const e=Kt(W$e),t=R.useContext(b_),n=H$e(),r=i=>{t.openModal({title:e.confirmAcceptTitle,confirmButtonLabel:e.acceptBtn,component:()=>w.jsx("div",{children:e.confirmAcceptDescription}),onSubmit:async()=>n.mutateAsync(new zb({invitationUniqueId:i.uniqueId})).then(o=>{alert("Successful.")})})},a=i=>{t.openModal({title:e.confirmRejectTitle,confirmButtonLabel:e.acceptBtn,component:()=>w.jsx("div",{children:e.confirmRejectDescription}),onSubmit:async()=>!0})};return w.jsx(w.Fragment,{children:w.jsx(Uo,{selectable:!1,columns:z$e(e,r,a),queryHook:nre})})},K$e=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{pageTitle:e.fbMenu.myInvitations,children:w.jsx(Y$e,{})})})};function X$e(){return w.jsx(w.Fragment,{children:w.jsx(mt,{element:w.jsx(K$e,{}),path:"user-invitations"})})}class Ya extends wn{constructor(...t){super(...t),this.children=void 0,this.publicKey=void 0,this.coverLetter=void 0,this.targetUserLocale=void 0,this.email=void 0,this.phonenumber=void 0,this.workspace=void 0,this.firstName=void 0,this.lastName=void 0,this.forceEmailAddress=void 0,this.forcePhoneNumber=void 0,this.role=void 0,this.roleId=void 0}}Ya.Navigation={edit(e,t){return`${t?"/"+t:".."}/workspace-invite/edit/${e}`},create(e){return`${e?"/"+e:".."}/workspace-invite/new`},single(e,t){return`${t?"/"+t:".."}/workspace-invite/${e}`},query(e={},t){return`${t?"/"+t:".."}/workspace-invites`},Redit:"workspace-invite/edit/:uniqueId",Rcreate:"workspace-invite/new",Rsingle:"workspace-invite/:uniqueId",Rquery:"workspace-invites"};Ya.definition={rpc:{query:{}},name:"workspaceInvite",features:{},gormMap:{},fields:[{name:"publicKey",description:"A long hash to get the user into the confirm or signup page without sending the email or phone number, for example if an administrator wants to copy the link.",type:"string",computedType:"string",gormMap:{}},{name:"coverLetter",description:"The content that user will receive to understand the reason of the letter.",type:"string",computedType:"string",gormMap:{}},{name:"targetUserLocale",description:"If the invited person has a different language, then you can define that so the interface for him will be automatically translated.",type:"string",computedType:"string",gormMap:{}},{name:"email",description:"The email address of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"phonenumber",description:"The phone number of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"workspace",description:"Workspace which user is being invite to.",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}},{name:"firstName",description:"First name of the person which is invited",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"lastName",description:"Last name of the person which is invited.",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"forceEmailAddress",description:"If forced, the email address cannot be changed by the user which has been invited.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePhoneNumber",description:"If forced, user cannot change the phone number and needs to complete signup.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"role",description:"The role which invitee get if they accept the request.",type:"one",target:"RoleEntity",validate:"required",computedType:"RoleEntity",gormMap:{}}],cliShort:"invite",description:"Active invitations for non-users or already users to join an specific workspace, created by administration of the workspace"};Ya.Fields={...wn.Fields,publicKey:"publicKey",coverLetter:"coverLetter",targetUserLocale:"targetUserLocale",email:"email",phonenumber:"phonenumber",workspace$:"workspace",workspace:yi.Fields,firstName:"firstName",lastName:"lastName",forceEmailAddress:"forceEmailAddress",forcePhoneNumber:"forcePhoneNumber",roleId:"roleId",role$:"role",role:ri.Fields};function rre({queryOptions:e,execFnOverride:t,query:n,queryClient:r,unauthorized:a}){var T;const{options:i,execFn:o}=R.useContext(rt),l=t?t(i):o?o(i):St(i);let d=`${"/workspace-invite/:uniqueId".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`,f=!0;d=d.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(f=!1);const g=()=>l("GET",d),y=(T=i==null?void 0:i.headers)==null?void 0:T.authorization,h=y!="undefined"&&y!=null&&y!=null&&y!="null"&&!!y;let v=!0;return f?!h&&!a&&(v=!1):v=!1,{query:jn([i,n,"*abac.WorkspaceInviteEntity"],g,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:v,...e||{}})}}function Q$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("PATCH",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueriesData("*abac.WorkspaceInviteEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}function J$e(e){let{queryClient:t,query:n,execFnOverride:r}=e||{};n=n||{};const{options:a,execFn:i}=R.useContext(rt),o=r?r(a):i?i(a):St(a);let u=`${"/workspace/invite".substr(1)}?${new URLSearchParams(Gt(n)).toString()}`;const f=un(h=>o("POST",u,h)),g=(h,v)=>{var E;return h?(h.data&&(v!=null&&v.data)&&(h.data.items=[v.data,...((E=h==null?void 0:h.data)==null?void 0:E.items)||[]]),h):{data:{items:[]}}};return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){t==null||t.setQueryData("*abac.WorkspaceInviteEntity",k=>g(k,C)),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const Z$e={targetLocaleHint:"If the user has a different language available, the initial interface will be on th selected value.",forcedEmailAddress:"Force Email Address",forcedEmailAddressHint:"If checked, user can only make the invitation using this email address, and won't be able to change it. If account exists, they need to accept invitation there.",forcedPhone:"Force Phone Number",forcedPhoneHint:"If checked, user only can create or join using this phone number",coverLetter:"Cover letter",coverLetterHint:"The invitation text that user would get over sms or email, you can modify it here.",targetLocale:"Target Locale"},eLe={targetLocaleHint:"Jeśli użytkownik ma dostępny inny język, interfejs początkowy będzie ustawiony na wybraną wartość.",coverLetter:"List motywacyjny",coverLetterHint:"Treść zaproszenia, którą użytkownik otrzyma przez SMS lub e-mail – możesz ją tutaj edytować.",forcedEmailAddress:"Wymuszony adres e-mail",forcedEmailAddressHint:"Jeśli zaznaczone, użytkownik może wysłać zaproszenie tylko na ten adres e-mail i nie będzie mógł go zmienić. Jeśli konto już istnieje, użytkownik musi zaakceptować zaproszenie na tym koncie.",forcedPhone:"Wymuszony numer telefonu",forcedPhoneHint:"Jeśli zaznaczone, użytkownik może utworzyć konto lub dołączyć tylko przy użyciu tego numeru telefonu",targetLocale:"Docelowy język"},are={...Z$e,$pl:eLe},tLe=({form:e,isEditing:t})=>{const n=At(),{values:r,setValues:a,setFieldValue:i,errors:o}=e,l=Kt(are),u=Nne(n),d=zs(u);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"row",children:[w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.firstName,onChange:f=>i(Ya.Fields.firstName,f,!1),errorMessage:o.firstName,label:n.wokspaces.invite.firstName,autoFocus:!t,hint:n.wokspaces.invite.firstNameHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.lastName,onChange:f=>i(Ya.Fields.lastName,f,!1),errorMessage:o.lastName,label:n.wokspaces.invite.lastName,hint:n.wokspaces.invite.lastNameHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(da,{keyExtractor:f=>f.value,formEffect:{form:e,field:Ya.Fields.targetUserLocale,beforeSet(f){return f.value}},errorMessage:e.errors.targetUserLocale,querySource:d,label:l.targetLocale,hint:l.targetLocaleHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(rj,{value:r.coverLetter,onChange:f=>i(Ya.Fields.coverLetter,f,!1),forceBasic:!0,errorMessage:o.coverLetter,label:l.coverLetter,placeholder:l.coverLetterHint,hint:l.coverLetterHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(da,{formEffect:{field:Ya.Fields.role$,form:e},querySource:af,label:n.wokspaces.invite.role,errorMessage:o.roleId,fnLabelFormat:f=>f.name,hint:n.wokspaces.invite.roleHint})})]}),w.jsxs("div",{className:"row",children:[w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.email,onChange:f=>i(Ya.Fields.email,f,!1),errorMessage:o.email,label:n.wokspaces.invite.email,hint:n.wokspaces.invite.emailHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(El,{value:r.forceEmailAddress,onChange:f=>i(Ya.Fields.forceEmailAddress,f),errorMessage:o.forceEmailAddress,label:l.forcedEmailAddress,hint:l.forcedEmailAddressHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(In,{value:r.phonenumber,onChange:f=>i(Ya.Fields.phonenumber,f,!1),errorMessage:o.phonenumber,type:"phonenumber",label:n.wokspaces.invite.phoneNumber,hint:n.wokspaces.invite.phoneNumberHint})}),w.jsx("div",{className:"col-md-12",children:w.jsx(El,{value:r.forcePhoneNumber,onChange:f=>i(Ya.Fields.forcePhoneNumber,f),errorMessage:o.forcePhoneNumber,label:l.forcedPhone,hint:l.forcedPhoneHint})})]})]})},yz=({data:e})=>{const t=At(),{router:n,uniqueId:r,queryClient:a,locale:i}=$r({data:e}),o=rre({query:{uniqueId:r},queryClient:a}),l=J$e({queryClient:a}),u=Q$e({queryClient:a});return w.jsx(Bo,{postHook:l,getSingleHook:o,patchHook:u,onCancel:()=>{n.goBackOrDefault(`/${i}/workspace-invites`)},onFinishUriResolver:(d,f)=>`/${f}/workspace-invites`,Form:tLe,onEditTitle:t.wokspaces.invite.editInvitation,onCreateTitle:t.wokspaces.invite.createInvitation,data:e})},nLe=()=>{var o;const e=xr(),t=At(),n=e.query.uniqueId;sr();const r=Kt(are),a=rre({query:{uniqueId:n}});var i=(o=a.query.data)==null?void 0:o.data;return N_((i==null?void 0:i.firstName)+" "+(i==null?void 0:i.lastName)||""),w.jsx(w.Fragment,{children:w.jsx(io,{getSingleHook:a,editEntityHandler:()=>e.push(Ya.Navigation.edit(n)),children:w.jsx(oo,{entity:i,fields:[{label:t.wokspaces.invite.firstName,elem:i==null?void 0:i.firstName},{label:t.wokspaces.invite.lastName,elem:i==null?void 0:i.lastName},{label:t.wokspaces.invite.email,elem:i==null?void 0:i.email},{label:t.wokspaces.invite.phoneNumber,elem:i==null?void 0:i.phonenumber},{label:r.forcedEmailAddress,elem:i==null?void 0:i.forceEmailAddress},{label:r.forcedPhone,elem:i==null?void 0:i.forcePhoneNumber},{label:r.targetLocale,elem:i==null?void 0:i.targetUserLocale}]})})})},rLe=e=>[{name:Ya.Fields.uniqueId,title:e.table.uniqueId,width:100},{name:"firstName",title:e.wokspaces.invite.firstName,width:100},{name:"lastName",title:e.wokspaces.invite.lastName,width:100},{name:"phoneNumber",title:e.wokspaces.invite.phoneNumber,width:100},{name:"email",title:e.wokspaces.invite.email,width:100},{name:"role_id",title:e.wokspaces.invite.role,width:100,getCellValue:t=>{var n;return(n=t==null?void 0:t.role)==null?void 0:n.name}}];function ire({queryOptions:e,query:t,queryClient:n,execFnOverride:r,unauthorized:a,optionFn:i}){var k,_,A;const{options:o,execFn:l}=R.useContext(rt),u=i?i(o):o,d=r?r(u):l?l(u):St(u);let g=`${"/workspace-invites".substr(1)}?${qa.stringify(t)}`;const y=()=>d("GET",g),h=(k=u==null?void 0:u.headers)==null?void 0:k.authorization,v=h!="undefined"&&h!=null&&h!=null&&h!="null"&&!!h;let E=!0;!v&&!a&&(E=!1);const T=jn(["*abac.WorkspaceInviteEntity",u,t],y,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...e||{}}),C=((A=(_=T.data)==null?void 0:_.data)==null?void 0:A.items)||[];return{query:T,items:C,keyExtractor:P=>P.uniqueId}}ire.UKEY="*abac.WorkspaceInviteEntity";function aLe(e){const{execFnOverride:t,queryClient:n,query:r}=e||{},{options:a,execFn:i}=R.useContext(rt),o=t?t(a):i?i(a):St(a);let u=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Gt(r)).toString()}`;const f=un(h=>o("DELETE",u,h)),g=(h,v)=>h;return{mutation:f,submit:(h,v)=>new Promise((E,T)=>{f.mutate(h,{onSuccess(C){n==null||n.setQueryData("*abac.WorkspaceInviteEntity",k=>g(k)),n==null||n.invalidateQueries("*abac.WorkspaceInviteEntity"),E(C)},onError(C){v==null||v.setErrors(Pn(C)),T(C)}})}),fnUpdater:g}}const iLe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(Uo,{columns:rLe(e),queryHook:ire,uniqueIdHrefHandler:t=>Ya.Navigation.single(t),deleteHook:aLe})})},oLe=()=>{const e=At();return w.jsx(w.Fragment,{children:w.jsx(jo,{pageTitle:e.fbMenu.workspaceInvites,newEntityHandler:({locale:t,router:n})=>{n.push(Ya.Navigation.create())},children:w.jsx(iLe,{})})})};function sLe(){return w.jsxs(w.Fragment,{children:[w.jsx(mt,{element:w.jsx(yz,{}),path:Ya.Navigation.Rcreate}),w.jsx(mt,{element:w.jsx(yz,{}),path:Ya.Navigation.Redit}),w.jsx(mt,{element:w.jsx(nLe,{}),path:Ya.Navigation.Rsingle}),w.jsx(mt,{element:w.jsx(oLe,{}),path:Ya.Navigation.Rquery})]})}const lLe=()=>{const e=Kt(xa);return w.jsxs(w.Fragment,{children:[w.jsx(Do,{title:e.home.title,description:e.home.description}),w.jsx("h2",{children:w.jsx(J$,{to:"passports",children:e.home.passportsTitle})}),w.jsx("p",{children:e.home.passportsDescription}),w.jsx(J$,{to:"passports",className:"btn btn-success btn-sm",children:e.home.passportsTitle})]})},uLe=()=>{const e=Kt(xa),{goBack:t,query:n}=xr();return{goBack:t,s:e}},cLe=()=>{var i,o;const{s:e}=uLe(),{query:t}=DE({queryOptions:{cacheTime:50},query:{}}),n=((o=(i=t.data)==null?void 0:i.data)==null?void 0:o.items)||[],{selectedUrw:r,selectUrw:a}=R.useContext(rt);return w.jsxs("div",{className:"signin-form-container",children:[w.jsxs("div",{className:"mb-4",children:[w.jsx("h1",{className:"h3",children:e.selectWorkspaceTitle}),w.jsx("p",{className:"text-muted",children:e.selectWorkspace})]}),n.map(l=>w.jsxs("div",{className:"mb-4",children:[w.jsx("h2",{className:"h5",children:l.name}),w.jsx("div",{className:"d-flex flex-wrap gap-2 mt-2",children:l.roles.map(u=>w.jsxs("button",{className:"btn btn-outline-primary w-100",onClick:()=>a({workspaceId:l.uniqueId,roleId:u.uniqueId}),children:["Select (",u.name,")"]},u.uniqueId))})]},l.uniqueId))]})};function dLe(){return w.jsxs(w.Fragment,{children:[w.jsxs(mt,{path:"selfservice",children:[w.jsx(mt,{path:"welcome",element:w.jsx(KIe,{})}),w.jsx(mt,{path:"email",element:w.jsx(hz,{method:Ds.Email})}),w.jsx(mt,{path:"phone",element:w.jsx(hz,{method:Ds.Phone})}),w.jsx(mt,{path:"totp-setup",element:w.jsx($De,{})}),w.jsx(mt,{path:"totp-enter",element:w.jsx(jDe,{})}),w.jsx(mt,{path:"complete",element:w.jsx(XDe,{})}),w.jsx(mt,{path:"password",element:w.jsx(r$e,{})}),w.jsx(mt,{path:"otp",element:w.jsx(c$e,{})})]}),w.jsx(mt,{path:"*",element:w.jsx(eF,{to:"/en/selfservice/welcome",replace:!0})})]})}function fLe(){const e=T$e(),t=j$e(),n=X$e(),r=sLe();return w.jsxs(mt,{path:"selfservice",children:[w.jsx(mt,{path:"passports",element:w.jsx(xIe,{})}),w.jsx(mt,{path:"change-password/:uniqueId",element:w.jsx(MIe,{})}),e,t,n,r,w.jsx(mt,{path:"",element:w.jsx(Bj,{children:w.jsx(lLe,{})})})]})}function pLe({children:e,routerId:t}){const n=At();Tfe();const{locale:r}=sr(),{config:a}=R.useContext(ph),i=mJ(),o=fLe(),l=rPe(),u=qMe();return w.jsx(Whe,{affix:n.productName,children:w.jsxs(jX,{children:[w.jsx(mt,{path:"/",element:w.jsx(eF,{to:kr.DEFAULT_ROUTE.replace("{locale}",a.interfaceLanguage||r||"en"),replace:!0})}),w.jsxs(mt,{path:":locale",element:w.jsx(mge,{routerId:t,sidebarMenu:i}),children:[w.jsx(mt,{path:"settings",element:w.jsx(Bj,{children:w.jsx(fIe,{})})}),o,l,u,e,w.jsx(mt,{path:"*",element:w.jsx(n6,{})})]}),w.jsx(mt,{path:"*",element:w.jsx(n6,{})})]})})}const ore=e=>{sr();const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,errorMessage:u,type:d,focused:f=!1,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(rf,{focused:h,onClick:T,...e,children:w.jsx("input",{type:"date",className:"form-control",value:e.value,onChange:C=>e.onChange&&e.onChange(C.target.value),...e.inputProps})})};function qj(e,t){const[n,r]=R.useState(()=>{try{const a=localStorage.getItem(e);return a===null?t:JSON.parse(a)}catch(a){return console.error(`Error parsing localStorage key "${e}":`,a),t}});return R.useEffect(()=>{try{localStorage.setItem(e,JSON.stringify(n))}catch(a){console.error(`Error saving to localStorage key "${e}":`,a)}},[e,n]),[n,r]}function bz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qb(e){for(var t=1;t=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var VA={};function mLe(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return VA[t]||(VA[t]=hLe(e)),VA[t]}function gLe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(i){return i!=="token"}),a=mLe(r);return a.reduce(function(i,o){return qb(qb({},i),n[o])},t)}function wz(e){return e.join(" ")}function vLe(e,t){var n=0;return function(r){return n+=1,r.map(function(a,i){return sre({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(i)})})}}function sre(e){var t=e.node,n=e.stylesheet,r=e.style,a=r===void 0?{}:r,i=e.useInlineStyles,o=e.key,l=t.properties,u=t.type,d=t.tagName,f=t.value;if(u==="text")return f;if(d){var g=vLe(n,i),y;if(!i)y=qb(qb({},l),{},{className:wz(l.className)});else{var h=Object.keys(n).reduce(function(C,k){return k.split(".").forEach(function(_){C.includes(_)||C.push(_)}),C},[]),v=l.className&&l.className.includes("token")?["token"]:[],E=l.className&&v.concat(l.className.filter(function(C){return!h.includes(C)}));y=qb(qb({},l),{},{className:wz(E)||void 0,style:gLe(l.className,Object.assign({},l.style,a),n)})}var T=g(t.children);return ze.createElement(d,vt({key:o},y),T)}}const yLe=(function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1});var bLe=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Sz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function eh(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r2&&arguments[2]!==void 0?arguments[2]:[];return Xk({children:P,lineNumber:N,lineNumberStyle:l,largestLineNumber:o,showInlineLineNumbers:a,lineProps:n,className:I,showLineNumbers:r,wrapLongLines:u,wrapLines:t})}function E(P,N){if(r&&N&&a){var I=ure(l,N,o);P.unshift(lre(N,I))}return P}function T(P,N){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||I.length>0?v(P,N,I):E(P,N)}for(var C=function(){var N=f[h],I=N.children[0].value,L=SLe(I);if(L){var j=I.split(` `);j.forEach(function(z,Q){var le=r&&g.length+i,re={type:"text",value:"".concat(z,` -`)};if(Q===0){var ge=f.slice(y+1,h).concat(jk({children:[re],className:N.properties.className})),me=T(ge,le);g.push(me)}else if(Q===j.length-1){var W=f[h+1]&&f[h+1].children&&f[h+1].children[0],G={type:"text",value:"".concat(z)};if(W){var q=jk({children:[G],className:N.properties.className});f.splice(h+1,0,q)}else{var ce=[G],H=T(ce,le,N.properties.className);g.push(H)}}else{var Y=[re],ie=T(Y,le,N.properties.className);g.push(ie)}}),y=h}h++};h4&&v.slice(0,4)===r&&a.test(h)&&(h.charAt(4)==="-"?E=u(h):h=d(h),T=t),new T(E,h))}function u(y){var h=y.slice(5).replace(i,g);return r+h.charAt(0).toUpperCase()+h.slice(1)}function d(y){var h=y.slice(4);return i.test(h)?y:(h=h.replace(o,f),h.charAt(0)!=="-"&&(h="-"+h),r+h)}function f(y){return"-"+y.toLowerCase()}function g(y){return y.charAt(1).toUpperCase()}return KA}var XA,xz;function TLe(){if(xz)return XA;xz=1,XA=t;var e=/[#.]/g;function t(n,r){for(var a=n||"",i=r||"div",o={},l=0,u,d,f;l=48&&n<=57}return eN}var tN,Mz;function RFe(){if(Mz)return tN;Mz=1,tN=e;function e(t){var n=typeof t=="string"?t.charCodeAt(0):t;return n>=97&&n<=102||n>=65&&n<=70||n>=48&&n<=57}return tN}var nN,Iz;function PFe(){if(Iz)return nN;Iz=1,nN=e;function e(t){var n=typeof t=="string"?t.charCodeAt(0):t;return n>=97&&n<=122||n>=65&&n<=90}return nN}var rN,Dz;function AFe(){if(Dz)return rN;Dz=1;var e=PFe(),t=rre();rN=n;function n(r){return e(r)||t(r)}return rN}var aN,$z;function NFe(){if($z)return aN;$z=1;var e,t=59;aN=n;function n(r){var a="&"+r+";",i;return e=e||document.createElement("i"),e.innerHTML=a,i=e.textContent,i.charCodeAt(i.length-1)===t&&r!=="semi"||i===a?!1:i}return aN}var iN,Lz;function MFe(){if(Lz)return iN;Lz=1;var e=_Fe,t=OFe,n=rre(),r=RFe(),a=AFe(),i=NFe();iN=ce;var o={}.hasOwnProperty,l=String.fromCharCode,u=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f=9,g=10,y=12,h=32,v=38,E=59,T=60,C=61,k=35,_=88,A=120,P=65533,N="named",I="hexadecimal",L="decimal",j={};j[I]=16,j[L]=10;var z={};z[N]=a,z[L]=n,z[I]=r;var Q=1,le=2,re=3,ge=4,me=5,W=6,G=7,q={};q[Q]="Named character references must be terminated by a semicolon",q[le]="Numeric character references must be terminated by a semicolon",q[re]="Named character references cannot be empty",q[ge]="Numeric character references cannot be empty",q[me]="Named character references must be known",q[W]="Numeric character references cannot be disallowed",q[G]="Numeric character references cannot be outside the permissible Unicode range";function ce(J,ee){var Z={},ue,ke;ee||(ee={});for(ke in d)ue=ee[ke],Z[ke]=ue??d[ke];return(Z.position.indent||Z.position.start)&&(Z.indent=Z.position.indent||[],Z.position=Z.position.start),H(J,Z)}function H(J,ee){var Z=ee.additional,ue=ee.nonTerminated,ke=ee.text,fe=ee.reference,xe=ee.warning,Ie=ee.textContext,qe=ee.referenceContext,tt=ee.warningContext,Ge=ee.position,at=ee.indent||[],Et=J.length,kt=0,xt=-1,Rt=Ge.column||1,cn=Ge.line||1,qt="",Wt=[],Oe,dt,ft,ut,Nt,U,D,F,ae,Te,Fe,We,Tt,Mt,be,Ee,gt,Lt,_t;for(typeof Z=="string"&&(Z=Z.charCodeAt(0)),Ee=Ut(),F=xe?On:u,kt--,Et++;++kt65535&&(U-=65536,Te+=l(U>>>10|55296),U=56320|U&1023),U=Te+l(U))):Mt!==N&&F(ge,Lt)),U?(gn(),Ee=Ut(),kt=_t-1,Rt+=_t-Tt+1,Wt.push(U),gt=Ut(),gt.offset++,fe&&fe.call(qe,U,{start:Ee,end:gt},J.slice(Tt-1,_t)),Ee=gt):(ut=J.slice(Tt-1,_t),qt+=ut,Rt+=ut.length,kt=_t-1)}else Nt===10&&(cn++,xt++,Rt=0),Nt===Nt?(qt+=l(Nt),Rt++):gn();return Wt.join("");function Ut(){return{line:cn,column:Rt,offset:kt+(Ge.offset||0)}}function On(ln,Bn){var oa=Ut();oa.column+=Bn,oa.offset+=Bn,xe.call(tt,q[ln],oa,ln)}function gn(){qt&&(Wt.push(qt),ke&&ke.call(Ie,qt,{start:Ee,end:Ut()}),qt="")}}function Y(J){return J>=55296&&J<=57343||J>1114111}function ie(J){return J>=1&&J<=8||J===11||J>=13&&J<=31||J>=127&&J<=159||J>=64976&&J<=65007||(J&65535)===65535||(J&65535)===65534}return iN}var oN={exports:{}},Fz;function IFe(){return Fz||(Fz=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +`)};if(Q===0){var ge=f.slice(y+1,h).concat(Xk({children:[re],className:N.properties.className})),me=T(ge,le);g.push(me)}else if(Q===j.length-1){var W=f[h+1]&&f[h+1].children&&f[h+1].children[0],G={type:"text",value:"".concat(z)};if(W){var q=Xk({children:[G],className:N.properties.className});f.splice(h+1,0,q)}else{var ce=[G],H=T(ce,le,N.properties.className);g.push(H)}}else{var Y=[re],ie=T(Y,le,N.properties.className);g.push(ie)}}),y=h}h++};h4&&v.slice(0,4)===r&&a.test(h)&&(h.charAt(4)==="-"?E=u(h):h=d(h),T=t),new T(E,h))}function u(y){var h=y.slice(5).replace(i,g);return r+h.charAt(0).toUpperCase()+h.slice(1)}function d(y){var h=y.slice(4);return i.test(h)?y:(h=h.replace(o,f),h.charAt(0)!=="-"&&(h="-"+h),r+h)}function f(y){return"-"+y.toLowerCase()}function g(y){return y.charAt(1).toUpperCase()}return lN}var uN,jz;function ULe(){if(jz)return uN;jz=1,uN=t;var e=/[#.]/g;function t(n,r){for(var a=n||"",i=r||"div",o={},l=0,u,d,f;l=48&&n<=57}return pN}var hN,Vz;function VFe(){if(Vz)return hN;Vz=1,hN=e;function e(t){var n=typeof t=="string"?t.charCodeAt(0):t;return n>=97&&n<=102||n>=65&&n<=70||n>=48&&n<=57}return hN}var mN,Gz;function GFe(){if(Gz)return mN;Gz=1,mN=e;function e(t){var n=typeof t=="string"?t.charCodeAt(0):t;return n>=97&&n<=122||n>=65&&n<=90}return mN}var gN,Yz;function YFe(){if(Yz)return gN;Yz=1;var e=GFe(),t=gre();gN=n;function n(r){return e(r)||t(r)}return gN}var vN,Kz;function KFe(){if(Kz)return vN;Kz=1;var e,t=59;vN=n;function n(r){var a="&"+r+";",i;return e=e||document.createElement("i"),e.innerHTML=a,i=e.textContent,i.charCodeAt(i.length-1)===t&&r!=="semi"||i===a?!1:i}return vN}var yN,Xz;function XFe(){if(Xz)return yN;Xz=1;var e=qFe,t=HFe,n=gre(),r=VFe(),a=YFe(),i=KFe();yN=ce;var o={}.hasOwnProperty,l=String.fromCharCode,u=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f=9,g=10,y=12,h=32,v=38,E=59,T=60,C=61,k=35,_=88,A=120,P=65533,N="named",I="hexadecimal",L="decimal",j={};j[I]=16,j[L]=10;var z={};z[N]=a,z[L]=n,z[I]=r;var Q=1,le=2,re=3,ge=4,me=5,W=6,G=7,q={};q[Q]="Named character references must be terminated by a semicolon",q[le]="Numeric character references must be terminated by a semicolon",q[re]="Named character references cannot be empty",q[ge]="Numeric character references cannot be empty",q[me]="Named character references must be known",q[W]="Numeric character references cannot be disallowed",q[G]="Numeric character references cannot be outside the permissible Unicode range";function ce(J,ee){var Z={},ue,ke;ee||(ee={});for(ke in d)ue=ee[ke],Z[ke]=ue??d[ke];return(Z.position.indent||Z.position.start)&&(Z.indent=Z.position.indent||[],Z.position=Z.position.start),H(J,Z)}function H(J,ee){var Z=ee.additional,ue=ee.nonTerminated,ke=ee.text,fe=ee.reference,xe=ee.warning,Ie=ee.textContext,qe=ee.referenceContext,tt=ee.warningContext,Ge=ee.position,at=ee.indent||[],Et=J.length,kt=0,xt=-1,Rt=Ge.column||1,cn=Ge.line||1,qt="",Wt=[],Oe,dt,ft,ut,Nt,U,D,F,ae,Te,Fe,We,Tt,Mt,be,Ee,gt,Lt,_t;for(typeof Z=="string"&&(Z=Z.charCodeAt(0)),Ee=Ut(),F=xe?_n:u,kt--,Et++;++kt65535&&(U-=65536,Te+=l(U>>>10|55296),U=56320|U&1023),U=Te+l(U))):Mt!==N&&F(ge,Lt)),U?(gn(),Ee=Ut(),kt=_t-1,Rt+=_t-Tt+1,Wt.push(U),gt=Ut(),gt.offset++,fe&&fe.call(qe,U,{start:Ee,end:gt},J.slice(Tt-1,_t)),Ee=gt):(ut=J.slice(Tt-1,_t),qt+=ut,Rt+=ut.length,kt=_t-1)}else Nt===10&&(cn++,xt++,Rt=0),Nt===Nt?(qt+=l(Nt),Rt++):gn();return Wt.join("");function Ut(){return{line:cn,column:Rt,offset:kt+(Ge.offset||0)}}function _n(ln,Bn){var sa=Ut();sa.column+=Bn,sa.offset+=Bn,xe.call(tt,q[ln],sa,ln)}function gn(){qt&&(Wt.push(qt),ke&&ke.call(Ie,qt,{start:Ee,end:Ut()}),qt="")}}function Y(J){return J>=55296&&J<=57343||J>1114111}function ie(J){return J>=1&&J<=8||J===11||J>=13&&J<=31||J>=127&&J<=159||J>=64976&&J<=65007||(J&65535)===65535||(J&65535)===65534}return yN}var bN={exports:{}},Qz;function QFe(){return Qz||(Qz=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT * @author Lea Verou * @namespace * @public - */var n=(function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},l={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function k(_){return _ instanceof u?new u(_.type,k(_.content),_.alias):Array.isArray(_)?_.map(k):_.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(P){var k=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(P.stack)||[])[1];if(k){var _=document.getElementsByTagName("script");for(var A in _)if(_[A].src==k)return _[A]}return null}},isActive:function(k,_,A){for(var P="no-"+_;k;){var N=k.classList;if(N.contains(_))return!0;if(N.contains(P))return!1;k=k.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(k,_){var A=l.util.clone(l.languages[k]);for(var P in _)A[P]=_[P];return A},insertBefore:function(k,_,A,P){P=P||l.languages;var N=P[k],I={};for(var L in N)if(N.hasOwnProperty(L)){if(L==_)for(var j in A)A.hasOwnProperty(j)&&(I[j]=A[j]);A.hasOwnProperty(L)||(I[L]=N[L])}var z=P[k];return P[k]=I,l.languages.DFS(l.languages,function(Q,le){le===z&&Q!=k&&(this[Q]=I)}),I},DFS:function k(_,A,P,N){N=N||{};var I=l.util.objId;for(var L in _)if(_.hasOwnProperty(L)){A.call(_,L,_[L],P||L);var j=_[L],z=l.util.type(j);z==="Object"&&!N[I(j)]?(N[I(j)]=!0,k(j,A,null,N)):z==="Array"&&!N[I(j)]&&(N[I(j)]=!0,k(j,A,L,N))}}},plugins:{},highlightAll:function(k,_){l.highlightAllUnder(document,k,_)},highlightAllUnder:function(k,_,A){var P={callback:A,container:k,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",P),P.elements=Array.prototype.slice.apply(P.container.querySelectorAll(P.selector)),l.hooks.run("before-all-elements-highlight",P);for(var N=0,I;I=P.elements[N++];)l.highlightElement(I,_===!0,P.callback)},highlightElement:function(k,_,A){var P=l.util.getLanguage(k),N=l.languages[P];l.util.setLanguage(k,P);var I=k.parentElement;I&&I.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(I,P);var L=k.textContent,j={element:k,language:P,grammar:N,code:L};function z(le){j.highlightedCode=le,l.hooks.run("before-insert",j),j.element.innerHTML=j.highlightedCode,l.hooks.run("after-highlight",j),l.hooks.run("complete",j),A&&A.call(j.element)}if(l.hooks.run("before-sanity-check",j),I=j.element.parentElement,I&&I.nodeName.toLowerCase()==="pre"&&!I.hasAttribute("tabindex")&&I.setAttribute("tabindex","0"),!j.code){l.hooks.run("complete",j),A&&A.call(j.element);return}if(l.hooks.run("before-highlight",j),!j.grammar){z(l.util.encode(j.code));return}if(_&&r.Worker){var Q=new Worker(l.filename);Q.onmessage=function(le){z(le.data)},Q.postMessage(JSON.stringify({language:j.language,code:j.code,immediateClose:!0}))}else z(l.highlight(j.code,j.grammar,j.language))},highlight:function(k,_,A){var P={code:k,grammar:_,language:A};if(l.hooks.run("before-tokenize",P),!P.grammar)throw new Error('The language "'+P.language+'" has no grammar.');return P.tokens=l.tokenize(P.code,P.grammar),l.hooks.run("after-tokenize",P),u.stringify(l.util.encode(P.tokens),P.language)},tokenize:function(k,_){var A=_.rest;if(A){for(var P in A)_[P]=A[P];delete _.rest}var N=new g;return y(N,N.head,k),f(k,N,_,N.head,0),v(N)},hooks:{all:{},add:function(k,_){var A=l.hooks.all;A[k]=A[k]||[],A[k].push(_)},run:function(k,_){var A=l.hooks.all[k];if(!(!A||!A.length))for(var P=0,N;N=A[P++];)N(_)}},Token:u};r.Prism=l;function u(k,_,A,P){this.type=k,this.content=_,this.alias=A,this.length=(P||"").length|0}u.stringify=function k(_,A){if(typeof _=="string")return _;if(Array.isArray(_)){var P="";return _.forEach(function(z){P+=k(z,A)}),P}var N={type:_.type,content:k(_.content,A),tag:"span",classes:["token",_.type],attributes:{},language:A},I=_.alias;I&&(Array.isArray(I)?Array.prototype.push.apply(N.classes,I):N.classes.push(I)),l.hooks.run("wrap",N);var L="";for(var j in N.attributes)L+=" "+j+'="'+(N.attributes[j]||"").replace(/"/g,""")+'"';return"<"+N.tag+' class="'+N.classes.join(" ")+'"'+L+">"+N.content+""};function d(k,_,A,P){k.lastIndex=_;var N=k.exec(A);if(N&&P&&N[1]){var I=N[1].length;N.index+=I,N[0]=N[0].slice(I)}return N}function f(k,_,A,P,N,I){for(var L in A)if(!(!A.hasOwnProperty(L)||!A[L])){var j=A[L];j=Array.isArray(j)?j:[j];for(var z=0;z=I.reach);ce+=q.value.length,q=q.next){var H=q.value;if(_.length>k.length)return;if(!(H instanceof u)){var Y=1,ie;if(ge){if(ie=d(G,ce,k,re),!ie||ie.index>=k.length)break;var ue=ie.index,J=ie.index+ie[0].length,ee=ce;for(ee+=q.value.length;ue>=ee;)q=q.next,ee+=q.value.length;if(ee-=q.value.length,ce=ee,q.value instanceof u)continue;for(var Z=q;Z!==_.tail&&(eeI.reach&&(I.reach=Ie);var qe=q.prev;fe&&(qe=y(_,qe,fe),ce+=fe.length),h(_,qe,Y);var tt=new u(L,le?l.tokenize(ke,le):ke,me,ke);if(q=y(_,qe,tt),xe&&y(_,q,xe),Y>1){var Ge={cause:L+","+z,reach:Ie};f(k,_,A,q.prev,ce,Ge),I&&Ge.reach>I.reach&&(I.reach=Ge.reach)}}}}}}function g(){var k={value:null,prev:null,next:null},_={value:null,prev:k,next:null};k.next=_,this.head=k,this.tail=_,this.length=0}function y(k,_,A){var P=_.next,N={value:A,prev:_,next:P};return _.next=N,P.prev=N,k.length++,N}function h(k,_,A){for(var P=_.next,N=0;N/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.value.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(r,a){var i={};i["language-"+a]={pattern:/(^$)/i,lookbehind:!0,inside:t.languages[a]},i.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:i}};o["language-"+a]={pattern:/[\s\S]+/,inside:t.languages[a]};var l={};l[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml}return sN}var lN,Uz;function $Fe(){if(Uz)return lN;Uz=1,lN=e,e.displayName="css",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var a=n.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))})(t)}return lN}var uN,Bz;function LFe(){if(Bz)return uN;Bz=1,uN=e,e.displayName="clike",e.aliases=[];function e(t){t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}return uN}var cN,Wz;function FFe(){if(Wz)return cN;Wz=1,cN=e,e.displayName="javascript",e.aliases=["js"];function e(t){t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript}return cN}var dN,zz;function jFe(){if(zz)return dN;zz=1;var e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof El=="object"?El:{},t=P();e.Prism={manual:!0,disableWorkerMessageHandler:!0};var n=OLe(),r=MFe(),a=IFe(),i=DFe(),o=$Fe(),l=LFe(),u=FFe();t();var d={}.hasOwnProperty;function f(){}f.prototype=a;var g=new f;dN=g,g.highlight=v,g.register=y,g.alias=h,g.registered=E,g.listLanguages=T,y(i),y(o),y(l),y(u),g.util.encode=_,g.Token.stringify=C;function y(N){if(typeof N!="function"||!N.displayName)throw new Error("Expected `function` for `grammar`, got `"+N+"`");g.languages[N.displayName]===void 0&&N(g)}function h(N,I){var L=g.languages,j=N,z,Q,le,re;I&&(j={},j[N]=I);for(z in j)for(Q=j[z],Q=typeof Q=="string"?[Q]:Q,le=Q.length,re=-1;++re code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var fN,qz;function BFe(){if(qz)return fN;qz=1,fN=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return fN}var pN,Hz;function WFe(){if(Hz)return pN;Hz=1,pN=e,e.displayName="abnf",e.aliases=[];function e(t){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return pN}var hN,Vz;function zFe(){if(Vz)return hN;Vz=1,hN=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return hN}var mN,Gz;function qFe(){if(Gz)return mN;Gz=1,mN=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return mN}var gN,Yz;function HFe(){if(Yz)return gN;Yz=1,gN=e,e.displayName="agda",e.aliases=[];function e(t){(function(n){n.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return gN}var vN,Kz;function VFe(){if(Kz)return vN;Kz=1,vN=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return vN}var yN,Xz;function GFe(){if(Xz)return yN;Xz=1,yN=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return yN}var bN,Qz;function YFe(){if(Qz)return bN;Qz=1,bN=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return bN}var wN,Jz;function Ij(){if(Jz)return wN;Jz=1,wN=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return wN}var SN,Zz;function KFe(){if(Zz)return SN;Zz=1;var e=Ij();SN=t,t.displayName="apex",t.aliases=[];function t(n){n.register(e),(function(r){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,i=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return a.source});function o(u){return RegExp(u.replace(//g,function(){return i}),"i")}var l={keyword:a,punctuation:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:o(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:l},{pattern:o(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:l},{pattern:o(/(?=\s*\w+\s*[;=,(){:])/.source),inside:l}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}})(n)}return SN}var EN,eq;function XFe(){if(eq)return EN;eq=1,EN=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return EN}var TN,tq;function QFe(){if(tq)return TN;tq=1,TN=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return TN}var CN,nq;function JFe(){if(nq)return CN;nq=1,CN=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return CN}var kN,rq;function Bv(){if(rq)return kN;rq=1,kN=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return kN}var xN,aq;function Dj(){if(aq)return xN;aq=1;var e=Bv();xN=t,t.displayName="cpp",t.aliases=[];function t(n){n.register(e),(function(r){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,i=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return a.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return i})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])})(n)}return xN}var _N,iq;function ZFe(){if(iq)return _N;iq=1;var e=Dj();_N=t,t.displayName="arduino",t.aliases=["ino"];function t(n){n.register(e),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}return _N}var ON,oq;function eje(){if(oq)return ON;oq=1,ON=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return ON}var RN,sq;function tje(){if(sq)return RN;sq=1,RN=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(n){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=n.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(o){o=o.split(" ");for(var l={},u=0,d=o.length;u>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return AN}var NN,cq;function R_(){if(cq)return NN;cq=1,NN=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(n){function r(Y,ie){return Y.replace(/<<(\d+)>>/g,function(J,ee){return"(?:"+ie[+ee]+")"})}function a(Y,ie,J){return RegExp(r(Y,ie),"")}function i(Y,ie){for(var J=0;J>/g,function(){return"(?:"+Y+")"});return Y.replace(/<>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function l(Y){return"\\b(?:"+Y.trim().replace(/ /g,"|")+")\\b"}var u=l(o.typeDeclaration),d=RegExp(l(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),f=l(o.typeDeclaration+" "+o.contextual+" "+o.other),g=l(o.type+" "+o.typeDeclaration+" "+o.other),y=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=i(/\((?:[^()]|<>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,E=r(/<<0>>(?:\s*<<1>>)?/.source,[v,y]),T=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,E]),C=/\[\s*(?:,\s*)*\]/.source,k=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[T,C]),_=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[y,h,C]),A=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[_]),P=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,T,C]),N={keyword:d,punctuation:/[<>()?,.:[\]]/},I=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,L=/"(?:\\.|[^\\"\r\n])*"/.source,j=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[j]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[L]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[T]),lookbehind:!0,inside:N},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,P]),lookbehind:!0,inside:N},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[u,E]),lookbehind:!0,inside:N},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[T]),lookbehind:!0,inside:N},{pattern:a(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[k]),lookbehind:!0,inside:N},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[P,g,v]),inside:N}],keyword:d,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:N},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[P,T]),inside:N,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[P]),lookbehind:!0,inside:N,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,y]),inside:{function:a(/^<<0>>/.source,[v]),generic:{pattern:RegExp(y),alias:"class-name",inside:N}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,E,v,P,d.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[E,h]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:d,"class-name":{pattern:RegExp(P),greedy:!0,inside:N},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var z=L+"|"+I,Q=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[z]),le=i(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[Q]),2),re=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ge=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[T,le]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[re,ge]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[re]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[le]),inside:n.languages.csharp},"class-name":{pattern:RegExp(T),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var me=/:[^}\r\n]+/.source,W=i(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[Q]),2),G=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,me]),q=i(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[z]),2),ce=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,me]);function H(Y,ie){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[Y]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ie,me]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[G]),lookbehind:!0,greedy:!0,inside:H(G,W)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ce]),lookbehind:!0,greedy:!0,inside:H(ce,q)}],char:{pattern:RegExp(I),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(t)}return NN}var MN,dq;function aje(){if(dq)return MN;dq=1;var e=R_();MN=t,t.displayName="aspnet",t.aliases=[];function t(n){n.register(e),n.languages.aspnet=n.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return MN}var IN,fq;function ije(){if(fq)return IN;fq=1,IN=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return IN}var DN,pq;function oje(){if(pq)return DN;pq=1,DN=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return DN}var $N,hq;function sje(){if(hq)return $N;hq=1,$N=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(n){function r(f,g){return f.replace(/<<(\d+)>>/g,function(y,h){return g[+h]})}function a(f,g,y){return RegExp(r(f,g),y)}var i=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),l=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),u=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),d=[o,l,u].join("|");n.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[d],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(t)}return $N}var LN,mq;function lje(){if(mq)return LN;mq=1,LN=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return LN}var FN,gq;function are(){if(gq)return FN;gq=1,FN=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(n){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:a,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=n.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],l=i.variable[1].inside,u=0;u?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return jN}var UN,yq;function uje(){if(yq)return UN;yq=1,UN=e,e.displayName="batch",e.aliases=[];function e(t){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;n.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:a,variable:r,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:a,variable:r,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:a,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return UN}var BN,bq;function cje(){if(bq)return BN;bq=1,BN=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return BN}var WN,wq;function dje(){if(wq)return WN;wq=1,WN=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return WN}var zN,Sq;function fje(){if(Sq)return zN;Sq=1,zN=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return zN}var qN,Eq;function pje(){if(Eq)return qN;Eq=1;var e=Bv();qN=t,t.displayName="bison",t.aliases=[];function t(n){n.register(e),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return qN}var HN,Tq;function hje(){if(Tq)return HN;Tq=1,HN=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return HN}var VN,Cq;function mje(){if(Cq)return VN;Cq=1,VN=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return VN}var GN,kq;function gje(){if(kq)return GN;kq=1,GN=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return GN}var YN,xq;function vje(){if(xq)return YN;xq=1,YN=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return YN}var KN,_q;function yje(){if(_q)return KN;_q=1,KN=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return KN}var XN,Oq;function bje(){if(Oq)return XN;Oq=1,XN=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return XN}var QN,Rq;function wje(){if(Rq)return QN;Rq=1;var e=Dj();QN=t,t.displayName="chaiscript",t.aliases=[];function t(n){n.register(e),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return QN}var JN,Pq;function Sje(){if(Pq)return JN;Pq=1,JN=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return JN}var ZN,Aq;function Eje(){if(Aq)return ZN;Aq=1,ZN=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return ZN}var e2,Nq;function Tje(){if(Nq)return e2;Nq=1,e2=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return e2}var t2,Mq;function Cje(){if(Mq)return t2;Mq=1,t2=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return t2}var n2,Iq;function kje(){if(Iq)return n2;Iq=1,n2=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(n){var r=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:a}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(t)}return n2}var r2,Dq;function xje(){if(Dq)return r2;Dq=1,r2=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return r2}var a2,$q;function _je(){if($q)return a2;$q=1,a2=e,e.displayName="coq",e.aliases=[];function e(t){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return a2}var i2,Lq;function P_(){if(Lq)return i2;Lq=1,i2=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(n){n.languages.ruby=n.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),n.languages.rb=n.languages.ruby})(t)}return i2}var o2,Fq;function Oje(){if(Fq)return o2;Fq=1;var e=P_();o2=t,t.displayName="crystal",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.crystal=r.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})})(n)}return o2}var s2,jq;function Rje(){if(jq)return s2;jq=1;var e=R_();s2=t,t.displayName="cshtml",t.aliases=["razor"];function t(n){n.register(e),(function(r){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(T,C){for(var k=0;k/g,function(){return"(?:"+T+")"});return T.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+i+")").replace(//g,"(?:"+a+")")}var l=o(/\((?:[^()'"@/]|||)*\)/.source,2),u=o(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),d=o(/\{(?:[^{}'"@/]|||)*\}/.source,2),f=o(/<(?:[^<>'"@/]|||)*>/.source,2),g=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,y=/(?!\d)[^\s>\/=$<%]+/.source+g+/\s*\/?>/.source,h=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+g+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+y+"|"+o(/<\1/.source+g+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+y+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=a,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})})(t)}return u2}var c2,Wq;function Nje(){if(Wq)return c2;Wq=1,c2=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return c2}var d2,zq;function Mje(){if(zq)return d2;zq=1,d2=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return d2}var f2,qq;function Ije(){if(qq)return f2;qq=1,f2=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return f2}var p2,Hq;function Dje(){if(Hq)return p2;Hq=1,p2=e,e.displayName="dart",e.aliases=[];function e(t){(function(n){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return p2}var h2,Vq;function $je(){if(Vq)return h2;Vq=1,h2=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(n){n.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return h2}var m2,Gq;function Lje(){if(Gq)return m2;Gq=1,m2=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return m2}var g2,Yq;function Fje(){if(Yq)return g2;Yq=1,g2=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return g2}var v2,Kq;function jje(){if(Kq)return v2;Kq=1,v2=e,e.displayName="diff",e.aliases=[];function e(t){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(a){var i=r[a],o=[];/^\w+$/.test(a)||o.push(/\w+/.exec(a)[0]),a==="diff"&&o.push("bold"),n.languages.diff[a]={pattern:RegExp("^(?:["+i+`].*(?:\r + */var n=(function(r){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},l={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function k(_){return _ instanceof u?new u(_.type,k(_.content),_.alias):Array.isArray(_)?_.map(k):_.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(P){var k=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(P.stack)||[])[1];if(k){var _=document.getElementsByTagName("script");for(var A in _)if(_[A].src==k)return _[A]}return null}},isActive:function(k,_,A){for(var P="no-"+_;k;){var N=k.classList;if(N.contains(_))return!0;if(N.contains(P))return!1;k=k.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(k,_){var A=l.util.clone(l.languages[k]);for(var P in _)A[P]=_[P];return A},insertBefore:function(k,_,A,P){P=P||l.languages;var N=P[k],I={};for(var L in N)if(N.hasOwnProperty(L)){if(L==_)for(var j in A)A.hasOwnProperty(j)&&(I[j]=A[j]);A.hasOwnProperty(L)||(I[L]=N[L])}var z=P[k];return P[k]=I,l.languages.DFS(l.languages,function(Q,le){le===z&&Q!=k&&(this[Q]=I)}),I},DFS:function k(_,A,P,N){N=N||{};var I=l.util.objId;for(var L in _)if(_.hasOwnProperty(L)){A.call(_,L,_[L],P||L);var j=_[L],z=l.util.type(j);z==="Object"&&!N[I(j)]?(N[I(j)]=!0,k(j,A,null,N)):z==="Array"&&!N[I(j)]&&(N[I(j)]=!0,k(j,A,L,N))}}},plugins:{},highlightAll:function(k,_){l.highlightAllUnder(document,k,_)},highlightAllUnder:function(k,_,A){var P={callback:A,container:k,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",P),P.elements=Array.prototype.slice.apply(P.container.querySelectorAll(P.selector)),l.hooks.run("before-all-elements-highlight",P);for(var N=0,I;I=P.elements[N++];)l.highlightElement(I,_===!0,P.callback)},highlightElement:function(k,_,A){var P=l.util.getLanguage(k),N=l.languages[P];l.util.setLanguage(k,P);var I=k.parentElement;I&&I.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(I,P);var L=k.textContent,j={element:k,language:P,grammar:N,code:L};function z(le){j.highlightedCode=le,l.hooks.run("before-insert",j),j.element.innerHTML=j.highlightedCode,l.hooks.run("after-highlight",j),l.hooks.run("complete",j),A&&A.call(j.element)}if(l.hooks.run("before-sanity-check",j),I=j.element.parentElement,I&&I.nodeName.toLowerCase()==="pre"&&!I.hasAttribute("tabindex")&&I.setAttribute("tabindex","0"),!j.code){l.hooks.run("complete",j),A&&A.call(j.element);return}if(l.hooks.run("before-highlight",j),!j.grammar){z(l.util.encode(j.code));return}if(_&&r.Worker){var Q=new Worker(l.filename);Q.onmessage=function(le){z(le.data)},Q.postMessage(JSON.stringify({language:j.language,code:j.code,immediateClose:!0}))}else z(l.highlight(j.code,j.grammar,j.language))},highlight:function(k,_,A){var P={code:k,grammar:_,language:A};if(l.hooks.run("before-tokenize",P),!P.grammar)throw new Error('The language "'+P.language+'" has no grammar.');return P.tokens=l.tokenize(P.code,P.grammar),l.hooks.run("after-tokenize",P),u.stringify(l.util.encode(P.tokens),P.language)},tokenize:function(k,_){var A=_.rest;if(A){for(var P in A)_[P]=A[P];delete _.rest}var N=new g;return y(N,N.head,k),f(k,N,_,N.head,0),v(N)},hooks:{all:{},add:function(k,_){var A=l.hooks.all;A[k]=A[k]||[],A[k].push(_)},run:function(k,_){var A=l.hooks.all[k];if(!(!A||!A.length))for(var P=0,N;N=A[P++];)N(_)}},Token:u};r.Prism=l;function u(k,_,A,P){this.type=k,this.content=_,this.alias=A,this.length=(P||"").length|0}u.stringify=function k(_,A){if(typeof _=="string")return _;if(Array.isArray(_)){var P="";return _.forEach(function(z){P+=k(z,A)}),P}var N={type:_.type,content:k(_.content,A),tag:"span",classes:["token",_.type],attributes:{},language:A},I=_.alias;I&&(Array.isArray(I)?Array.prototype.push.apply(N.classes,I):N.classes.push(I)),l.hooks.run("wrap",N);var L="";for(var j in N.attributes)L+=" "+j+'="'+(N.attributes[j]||"").replace(/"/g,""")+'"';return"<"+N.tag+' class="'+N.classes.join(" ")+'"'+L+">"+N.content+""};function d(k,_,A,P){k.lastIndex=_;var N=k.exec(A);if(N&&P&&N[1]){var I=N[1].length;N.index+=I,N[0]=N[0].slice(I)}return N}function f(k,_,A,P,N,I){for(var L in A)if(!(!A.hasOwnProperty(L)||!A[L])){var j=A[L];j=Array.isArray(j)?j:[j];for(var z=0;z=I.reach);ce+=q.value.length,q=q.next){var H=q.value;if(_.length>k.length)return;if(!(H instanceof u)){var Y=1,ie;if(ge){if(ie=d(G,ce,k,re),!ie||ie.index>=k.length)break;var ue=ie.index,J=ie.index+ie[0].length,ee=ce;for(ee+=q.value.length;ue>=ee;)q=q.next,ee+=q.value.length;if(ee-=q.value.length,ce=ee,q.value instanceof u)continue;for(var Z=q;Z!==_.tail&&(eeI.reach&&(I.reach=Ie);var qe=q.prev;fe&&(qe=y(_,qe,fe),ce+=fe.length),h(_,qe,Y);var tt=new u(L,le?l.tokenize(ke,le):ke,me,ke);if(q=y(_,qe,tt),xe&&y(_,q,xe),Y>1){var Ge={cause:L+","+z,reach:Ie};f(k,_,A,q.prev,ce,Ge),I&&Ge.reach>I.reach&&(I.reach=Ge.reach)}}}}}}function g(){var k={value:null,prev:null,next:null},_={value:null,prev:k,next:null};k.next=_,this.head=k,this.tail=_,this.length=0}function y(k,_,A){var P=_.next,N={value:A,prev:_,next:P};return _.next=N,P.prev=N,k.length++,N}function h(k,_,A){for(var P=_.next,N=0;N/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.value.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(r,a){var i={};i["language-"+a]={pattern:/(^$)/i,lookbehind:!0,inside:t.languages[a]},i.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:i}};o["language-"+a]={pattern:/[\s\S]+/,inside:t.languages[a]};var l={};l[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml}return wN}var SN,Zz;function ZFe(){if(Zz)return SN;Zz=1,SN=e,e.displayName="css",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var a=n.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))})(t)}return SN}var EN,eq;function eje(){if(eq)return EN;eq=1,EN=e,e.displayName="clike",e.aliases=[];function e(t){t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}return EN}var TN,tq;function tje(){if(tq)return TN;tq=1,TN=e,e.displayName="javascript",e.aliases=["js"];function e(t){t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript}return TN}var CN,nq;function nje(){if(nq)return CN;nq=1;var e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof _l=="object"?_l:{},t=P();e.Prism={manual:!0,disableWorkerMessageHandler:!0};var n=HLe(),r=XFe(),a=QFe(),i=JFe(),o=ZFe(),l=eje(),u=tje();t();var d={}.hasOwnProperty;function f(){}f.prototype=a;var g=new f;CN=g,g.highlight=v,g.register=y,g.alias=h,g.registered=E,g.listLanguages=T,y(i),y(o),y(l),y(u),g.util.encode=_,g.Token.stringify=C;function y(N){if(typeof N!="function"||!N.displayName)throw new Error("Expected `function` for `grammar`, got `"+N+"`");g.languages[N.displayName]===void 0&&N(g)}function h(N,I){var L=g.languages,j=N,z,Q,le,re;I&&(j={},j[N]=I);for(z in j)for(Q=j[z],Q=typeof Q=="string"?[Q]:Q,le=Q.length,re=-1;++re code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var kN,rq;function aje(){if(rq)return kN;rq=1,kN=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return kN}var xN,aq;function ije(){if(aq)return xN;aq=1,xN=e,e.displayName="abnf",e.aliases=[];function e(t){(function(n){var r="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+r+"|<"+r+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return xN}var _N,iq;function oje(){if(iq)return _N;iq=1,_N=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return _N}var ON,oq;function sje(){if(oq)return ON;oq=1,ON=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return ON}var RN,sq;function lje(){if(sq)return RN;sq=1,RN=e,e.displayName="agda",e.aliases=[];function e(t){(function(n){n.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return RN}var PN,lq;function uje(){if(lq)return PN;lq=1,PN=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return PN}var AN,uq;function cje(){if(uq)return AN;uq=1,AN=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return AN}var NN,cq;function dje(){if(cq)return NN;cq=1,NN=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return NN}var MN,dq;function Gj(){if(dq)return MN;dq=1,MN=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return MN}var IN,fq;function fje(){if(fq)return IN;fq=1;var e=Gj();IN=t,t.displayName="apex",t.aliases=[];function t(n){n.register(e),(function(r){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,i=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return a.source});function o(u){return RegExp(u.replace(//g,function(){return i}),"i")}var l={keyword:a,punctuation:/[()\[\]{};,:.<>]/};r.languages.apex={comment:r.languages.clike.comment,string:r.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:r.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:o(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:l},{pattern:o(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:l},{pattern:o(/(?=\s*\w+\s*[;=,(){:])/.source),inside:l}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}})(n)}return IN}var DN,pq;function pje(){if(pq)return DN;pq=1,DN=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return DN}var $N,hq;function hje(){if(hq)return $N;hq=1,$N=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return $N}var LN,mq;function mje(){if(mq)return LN;mq=1,LN=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return LN}var FN,gq;function Kv(){if(gq)return FN;gq=1,FN=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return FN}var jN,vq;function Yj(){if(vq)return jN;vq=1;var e=Kv();jN=t,t.displayName="cpp",t.aliases=[];function t(n){n.register(e),(function(r){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,i=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return a.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),r.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return i})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])})(n)}return jN}var UN,yq;function gje(){if(yq)return UN;yq=1;var e=Yj();UN=t,t.displayName="arduino",t.aliases=["ino"];function t(n){n.register(e),n.languages.arduino=n.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),n.languages.ino=n.languages.arduino}return UN}var BN,bq;function vje(){if(bq)return BN;bq=1,BN=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return BN}var WN,wq;function yje(){if(wq)return WN;wq=1,WN=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(n){var r={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=n.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:r,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:r.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:r,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(o){o=o.split(" ");for(var l={},u=0,d=o.length;u>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return qN}var HN,Tq;function U_(){if(Tq)return HN;Tq=1,HN=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(n){function r(Y,ie){return Y.replace(/<<(\d+)>>/g,function(J,ee){return"(?:"+ie[+ee]+")"})}function a(Y,ie,J){return RegExp(r(Y,ie),"")}function i(Y,ie){for(var J=0;J>/g,function(){return"(?:"+Y+")"});return Y.replace(/<>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function l(Y){return"\\b(?:"+Y.trim().replace(/ /g,"|")+")\\b"}var u=l(o.typeDeclaration),d=RegExp(l(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),f=l(o.typeDeclaration+" "+o.contextual+" "+o.other),g=l(o.type+" "+o.typeDeclaration+" "+o.other),y=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=i(/\((?:[^()]|<>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,E=r(/<<0>>(?:\s*<<1>>)?/.source,[v,y]),T=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,E]),C=/\[\s*(?:,\s*)*\]/.source,k=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[T,C]),_=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[y,h,C]),A=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[_]),P=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,T,C]),N={keyword:d,punctuation:/[<>()?,.:[\]]/},I=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,L=/"(?:\\.|[^\\"\r\n])*"/.source,j=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;n.languages.csharp=n.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[j]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[L]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[T]),lookbehind:!0,inside:N},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,P]),lookbehind:!0,inside:N},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[u,E]),lookbehind:!0,inside:N},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[T]),lookbehind:!0,inside:N},{pattern:a(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[k]),lookbehind:!0,inside:N},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[P,g,v]),inside:N}],keyword:d,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:N},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[P,T]),inside:N,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[P]),lookbehind:!0,inside:N,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,y]),inside:{function:a(/^<<0>>/.source,[v]),generic:{pattern:RegExp(y),alias:"class-name",inside:N}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,E,v,P,d.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[E,h]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:d,"class-name":{pattern:RegExp(P),greedy:!0,inside:N},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var z=L+"|"+I,Q=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[z]),le=i(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[Q]),2),re=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,ge=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[T,le]);n.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[re,ge]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[re]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[le]),inside:n.languages.csharp},"class-name":{pattern:RegExp(T),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var me=/:[^}\r\n]+/.source,W=i(r(/[^"'/()]|<<0>>|\(<>*\)/.source,[Q]),2),G=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,me]),q=i(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[z]),2),ce=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,me]);function H(Y,ie){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[Y]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ie,me]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[G]),lookbehind:!0,greedy:!0,inside:H(G,W)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ce]),lookbehind:!0,greedy:!0,inside:H(ce,q)}],char:{pattern:RegExp(I),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp})(t)}return HN}var VN,Cq;function Sje(){if(Cq)return VN;Cq=1;var e=U_();VN=t,t.displayName="aspnet",t.aliases=[];function t(n){n.register(e),n.languages.aspnet=n.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:n.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:n.languages.csharp}}}),n.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.insertBefore("inside","punctuation",{directive:n.languages.aspnet.directive},n.languages.aspnet.tag.inside["attr-value"]),n.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),n.languages.insertBefore("aspnet",n.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:n.languages.csharp||{}}})}return VN}var GN,kq;function Eje(){if(kq)return GN;kq=1,GN=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return GN}var YN,xq;function Tje(){if(xq)return YN;xq=1,YN=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return YN}var KN,_q;function Cje(){if(_q)return KN;_q=1,KN=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(n){function r(f,g){return f.replace(/<<(\d+)>>/g,function(y,h){return g[+h]})}function a(f,g,y){return RegExp(r(f,g),y)}var i=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),l=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),u=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),d=[o,l,u].join("|");n.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[d],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},n.languages.avs=n.languages.avisynth})(t)}return KN}var XN,Oq;function kje(){if(Oq)return XN;Oq=1,XN=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return XN}var QN,Rq;function vre(){if(Rq)return QN;Rq=1,QN=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(n){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:a,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=n.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],l=i.variable[1].inside,u=0;u?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return JN}var ZN,Aq;function xje(){if(Aq)return ZN;Aq=1,ZN=e,e.displayName="batch",e.aliases=[];function e(t){(function(n){var r=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;n.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:a,variable:r,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:a,variable:r,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:a,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return ZN}var e2,Nq;function _je(){if(Nq)return e2;Nq=1,e2=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return e2}var t2,Mq;function Oje(){if(Mq)return t2;Mq=1,t2=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return t2}var n2,Iq;function Rje(){if(Iq)return n2;Iq=1,n2=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return n2}var r2,Dq;function Pje(){if(Dq)return r2;Dq=1;var e=Kv();r2=t,t.displayName="bison",t.aliases=[];function t(n){n.register(e),n.languages.bison=n.languages.extend("c",{}),n.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:n.languages.c}},comment:n.languages.c.comment,string:n.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return r2}var a2,$q;function Aje(){if($q)return a2;$q=1,a2=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return a2}var i2,Lq;function Nje(){if(Lq)return i2;Lq=1,i2=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return i2}var o2,Fq;function Mje(){if(Fq)return o2;Fq=1,o2=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return o2}var s2,jq;function Ije(){if(jq)return s2;jq=1,s2=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return s2}var l2,Uq;function Dje(){if(Uq)return l2;Uq=1,l2=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return l2}var u2,Bq;function $je(){if(Bq)return u2;Bq=1,u2=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return u2}var c2,Wq;function Lje(){if(Wq)return c2;Wq=1;var e=Yj();c2=t,t.displayName="chaiscript",t.aliases=[];function t(n){n.register(e),n.languages.chaiscript=n.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[n.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),n.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),n.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return c2}var d2,zq;function Fje(){if(zq)return d2;zq=1,d2=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return d2}var f2,qq;function jje(){if(qq)return f2;qq=1,f2=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return f2}var p2,Hq;function Uje(){if(Hq)return p2;Hq=1,p2=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return p2}var h2,Vq;function Bje(){if(Vq)return h2;Vq=1,h2=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return h2}var m2,Gq;function Wje(){if(Gq)return m2;Gq=1,m2=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(n){var r=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:a}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript})(t)}return m2}var g2,Yq;function zje(){if(Yq)return g2;Yq=1,g2=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return g2}var v2,Kq;function qje(){if(Kq)return v2;Kq=1,v2=e,e.displayName="coq",e.aliases=[];function e(t){(function(n){for(var r=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,"[]"),n.languages.coq={comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return r})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(r),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return v2}var y2,Xq;function B_(){if(Xq)return y2;Xq=1,y2=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(n){n.languages.ruby=n.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),n.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:n.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete n.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;n.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),n.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete n.languages.ruby.string,n.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),n.languages.rb=n.languages.ruby})(t)}return y2}var b2,Qq;function Hje(){if(Qq)return b2;Qq=1;var e=B_();b2=t,t.displayName="crystal",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.crystal=r.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,r.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),r.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:r.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:r.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})})(n)}return b2}var w2,Jq;function Vje(){if(Jq)return w2;Jq=1;var e=U_();w2=t,t.displayName="cshtml",t.aliases=["razor"];function t(n){n.register(e),(function(r){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(T,C){for(var k=0;k/g,function(){return"(?:"+T+")"});return T.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+i+")").replace(//g,"(?:"+a+")")}var l=o(/\((?:[^()'"@/]|||)*\)/.source,2),u=o(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),d=o(/\{(?:[^{}'"@/]|||)*\}/.source,2),f=o(/<(?:[^<>'"@/]|||)*>/.source,2),g=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,y=/(?!\d)[^\s>\/=$<%]+/.source+g+/\s*\/?>/.source,h=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+g+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+y+"|"+o(/<\1/.source+g+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+y+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=a,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})})(t)}return E2}var T2,t9;function Kje(){if(t9)return T2;t9=1,T2=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return T2}var C2,n9;function Xje(){if(n9)return C2;n9=1,C2=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return C2}var k2,r9;function Qje(){if(r9)return k2;r9=1,k2=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return k2}var x2,a9;function Jje(){if(a9)return x2;a9=1,x2=e,e.displayName="dart",e.aliases=[];function e(t){(function(n){var r=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};n.languages.dart=n.languages.extend("clike",{"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),n.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.dart}}},string:/[\s\S]+/}},string:void 0}),n.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),n.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return x2}var _2,i9;function Zje(){if(i9)return _2;i9=1,_2=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(n){n.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return _2}var O2,o9;function e4e(){if(o9)return O2;o9=1,O2=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return O2}var R2,s9;function t4e(){if(s9)return R2;s9=1,R2=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return R2}var P2,l9;function n4e(){if(l9)return P2;l9=1,P2=e,e.displayName="diff",e.aliases=[];function e(t){(function(n){n.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(a){var i=r[a],o=[];/^\w+$/.test(a)||o.push(/\w+/.exec(a)[0]),a==="diff"&&o.push("bold"),n.languages.diff[a]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:r})})(t)}return v2}var y2,Xq;function ls(){if(Xq)return y2;Xq=1,y2=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(n){function r(a,i){return"___"+a.toUpperCase()+i+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,i,o,l){if(a.language===i){var u=a.tokenStack=[];a.code=a.code.replace(o,function(d){if(typeof l=="function"&&!l(d))return d;for(var f=u.length,g;a.code.indexOf(g=r(i,f))!==-1;)++f;return u[f]=d,g}),a.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(a,i){if(a.language!==i||!a.tokenStack)return;a.grammar=n.languages[i];var o=0,l=Object.keys(a.tokenStack);function u(d){for(var f=0;f=l.length);f++){var g=d[f];if(typeof g=="string"||g.content&&typeof g.content=="string"){var y=l[o],h=a.tokenStack[y],v=typeof g=="string"?g:g.content,E=r(i,y),T=v.indexOf(E);if(T>-1){++o;var C=v.substring(0,T),k=new n.Token(i,n.tokenize(h,a.grammar),"language-"+i,h),_=v.substring(T+E.length),A=[];C&&A.push.apply(A,u([C])),A.push(k),_&&A.push.apply(A,u([_])),typeof g=="string"?d.splice.apply(d,[f,1].concat(A)):g.content=A}}else g.content&&u(g.content)}return d}u(a.tokens)}}})})(t)}return y2}var b2,Qq;function Uje(){if(Qq)return b2;Qq=1;var e=ls();b2=t,t.displayName="django",t.aliases=["jinja2"];function t(n){n.register(e),(function(r){r.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,i=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"django",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"jinja2",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"jinja2")})})(n)}return b2}var w2,Jq;function Bje(){if(Jq)return w2;Jq=1,w2=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return w2}var S2,Zq;function Wje(){if(Zq)return S2;Zq=1,S2=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return r}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),l={pattern:RegExp(i),greedy:!0},u={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function d(f,g){return f=f.replace(//g,function(){return o}).replace(//g,function(){return a}),RegExp(f,g)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:d(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[l,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:d(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:d(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:d(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:u,string:l,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:u},n.languages.dockerfile=n.languages.docker})(t)}return S2}var E2,e9;function zje(){if(e9)return E2;e9=1,E2=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(n){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function i(o,l){return RegExp(o.replace(//g,function(){return r}),l)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(t)}return E2}var T2,t9;function qje(){if(t9)return T2;t9=1,T2=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return T2}var C2,n9;function Hje(){if(n9)return C2;n9=1,C2=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return C2}var k2,r9;function Vje(){if(r9)return k2;r9=1,k2=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return k2}var x2,a9;function Gje(){if(a9)return x2;a9=1;var e=ls();x2=t,t.displayName="ejs",t.aliases=["eta"];function t(n){n.register(e),(function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(a){var i=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(a,"ejs",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),r.languages.eta=r.languages.ejs})(n)}return x2}var _2,i9;function Yje(){if(i9)return _2;i9=1,_2=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return _2}var O2,o9;function Kje(){if(o9)return O2;o9=1,O2=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return O2}var R2,s9;function Xje(){if(s9)return R2;s9=1;var e=P_(),t=ls();R2=n,n.displayName="erb",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(i){var o=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"erb",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"erb")})})(r)}return R2}var P2,l9;function Qje(){if(l9)return P2;l9=1,P2=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return P2}var A2,u9;function ore(){if(u9)return A2;u9=1,A2=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return A2}var N2,c9;function Jje(){if(c9)return N2;c9=1;var e=ore(),t=ls();N2=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(i){var o=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"etlua",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"etlua")})})(r)}return N2}var M2,d9;function Zje(){if(d9)return M2;d9=1,M2=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return M2}var I2,f9;function e4e(){if(f9)return I2;f9=1,I2=e,e.displayName="factor",e.aliases=[];function e(t){(function(n){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},o=function(f){return(f+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},l=function(f){return new RegExp("(^|\\s)(?:"+f.map(o).join("|")+")(?=\\s|$)")},u={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(u).forEach(function(f){i[f].pattern=l(u[f])});var d=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=l(d),n.languages.factor=i})(t)}return I2}var D2,p9;function t4e(){if(p9)return D2;p9=1,D2=e,e.displayName="$false",e.aliases=[];function e(t){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return $2}var L2,m9;function r4e(){if(m9)return L2;m9=1,L2=e,e.displayName="flow",e.aliases=[];function e(t){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return L2}var F2,g9;function a4e(){if(g9)return F2;g9=1,F2=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return F2}var j2,v9;function i4e(){if(v9)return j2;v9=1,j2=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return j2}var U2,y9;function o4e(){if(y9)return U2;y9=1;var e=ls();U2=t,t.displayName="ftl",t.aliases=[];function t(n){n.register(e),(function(r){for(var a=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)a=a.replace(//g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,r.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},r.hooks.add("before-tokenize",function(l){var u=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");r.languages["markup-templating"].buildPlaceholders(l,"ftl",u)}),r.hooks.add("after-tokenize",function(l){r.languages["markup-templating"].tokenizePlaceholders(l,"ftl")})})(n)}return U2}var B2,b9;function s4e(){if(b9)return B2;b9=1,B2=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return B2}var W2,w9;function l4e(){if(w9)return W2;w9=1,W2=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return W2}var z2,S9;function u4e(){if(S9)return z2;S9=1,z2=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return z2}var q2,E9;function c4e(){if(E9)return q2;E9=1,q2=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return q2}var H2,T9;function d4e(){if(T9)return H2;T9=1,H2=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return H2}var V2,C9;function f4e(){if(C9)return V2;C9=1,V2=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return V2}var G2,k9;function p4e(){if(k9)return G2;k9=1;var e=Bv();G2=t,t.displayName="glsl",t.aliases=[];function t(n){n.register(e),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return G2}var Y2,x9;function h4e(){if(x9)return Y2;x9=1,Y2=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return Y2}var K2,_9;function m4e(){if(_9)return K2;_9=1,K2=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return K2}var X2,O9;function g4e(){if(O9)return X2;O9=1,X2=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return X2}var Q2,R9;function v4e(){if(R9)return Q2;R9=1,Q2=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return Q2}var J2,P9;function y4e(){if(P9)return J2;P9=1,J2=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var a=r.tokens.filter(function(C){return typeof C!="string"&&C.type!=="comment"&&C.type!=="scalar"}),i=0;function o(C){return a[i+C]}function l(C,k){k=k||0;for(var _=0;_0)){var v=u(/^\{$/,/^\}$/);if(v===-1)continue;for(var E=i;E=0&&d(T,"variable-input")}}}}})}return J2}var Z2,A9;function b4e(){if(A9)return Z2;A9=1,Z2=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/</g,"<").replace(/&/g,"&"),n.content=t.highlight(n.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return Z2}var eM,N9;function w4e(){if(N9)return eM;N9=1;var e=P_();eM=t,t.displayName="haml",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",i=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],o={},l=0,u=i.length;l@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},r.hooks.add("before-tokenize",function(a){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(a,"handlebars",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),r.languages.hbs=r.languages.handlebars})(n)}return tM}var nM,I9;function $j(){if(I9)return nM;I9=1,nM=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return nM}var rM,D9;function E4e(){if(D9)return rM;D9=1,rM=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return rM}var aM,$9;function T4e(){if($9)return aM;$9=1,aM=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return aM}var iM,L9;function C4e(){if(L9)return iM;L9=1;var e=Bv();iM=t,t.displayName="hlsl",t.aliases=[];function t(n){n.register(e),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return iM}var oM,F9;function k4e(){if(F9)return oM;F9=1,oM=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return oM}var sM,j9;function x4e(){if(j9)return sM;j9=1,sM=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return sM}var lM,U9;function _4e(){if(U9)return lM;U9=1,lM=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return lM}var uM,B9;function O4e(){if(B9)return uM;B9=1,uM=e,e.displayName="http",e.aliases=[];function e(t){(function(n){function r(g){return RegExp("(^(?:"+g+"):[ ]*(?![ ]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=n.languages,i={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},o={"application/json":!0,"application/xml":!0};function l(g){var y=g.replace(/^[a-z]+\//,""),h="\\w+/(?:[\\w.-]+\\+)+"+y+"(?![+\\w.-])";return"(?:"+g+"|"+h+")"}var u;for(var d in i)if(i[d]){u=u||{};var f=o[d]?l(d):d;u[d.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+f+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[d]}}u&&n.languages.insertBefore("http","header",u)})(t)}return uM}var cM,W9;function R4e(){if(W9)return cM;W9=1,cM=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return cM}var dM,z9;function P4e(){if(z9)return dM;z9=1,dM=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return dM}var fM,q9;function A4e(){if(q9)return fM;q9=1,fM=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(n){function r(d,f){return f<=0?/[]/.source:d.replace(//g,function(){return r(d,f-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:a,greedy:!0,inside:{escape:i}},l=r(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return a.source}),8),u={pattern:RegExp(l),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(l),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":u,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":u,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},u.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(t)}return fM}var pM,H9;function N4e(){if(H9)return pM;H9=1;var e=$j();pM=t,t.displayName="idris",t.aliases=["idr"];function t(n){n.register(e),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return pM}var hM,V9;function M4e(){if(V9)return hM;V9=1,hM=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return hM}var mM,G9;function I4e(){if(G9)return mM;G9=1,mM=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(t)}return mM}var gM,Y9;function D4e(){if(Y9)return gM;Y9=1,gM=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return gM}var vM,K9;function $4e(){if(K9)return vM;K9=1,vM=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return vM}var yM,X9;function L4e(){if(X9)return yM;X9=1,yM=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return bM}var wM,J9;function Lj(){if(J9)return wM;J9=1,wM=e,e.displayName="java",e.aliases=[];function e(t){(function(n){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return wM}var SM,Z9;function A_(){if(Z9)return SM;Z9=1,SM=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(n){var r=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(o,l){var u="doc-comment",d=n.languages[o];if(d){var f=d[u];if(!f){var g={};g[u]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},d=n.languages.insertBefore(o,"comment",g),f=d[u]}if(f instanceof RegExp&&(f=d[u]={pattern:f}),Array.isArray(f))for(var y=0,h=f.length;y)?|/.source.replace(//g,function(){return o});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+l+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:i,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:i,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)})(r)}return EM}var TM,tH;function U4e(){if(tH)return TM;tH=1,TM=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return TM}var CM,nH;function B4e(){if(nH)return CM;nH=1,CM=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return CM}var kM,rH;function W4e(){if(rH)return kM;rH=1,kM=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return kM}var xM,aH;function z4e(){if(aH)return xM;aH=1,xM=e,e.displayName="jq",e.aliases=[];function e(t){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:a,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=o})(t)}return xM}var _M,iH;function q4e(){if(iH)return _M;iH=1,_M=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(d,f){return RegExp(d.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),f)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],i=0;i=I.length)return;var Q=j[z];if(typeof Q=="string"||typeof Q.content=="string"){var le=I[_],re=typeof Q=="string"?Q:Q.content,ge=re.indexOf(le);if(ge!==-1){++_;var me=re.substring(0,ge),W=g(A[le]),G=re.substring(ge+le.length),q=[];if(me&&q.push(me),q.push(W),G){var ce=[G];L(ce),q.push.apply(q,ce)}typeof Q=="string"?(j.splice.apply(j,[z,1].concat(q)),z+=q.length-1):Q.content=q}}else{var H=Q.content;Array.isArray(H)?L(H):L([H])}}}return L(N),new n.Token(C,N,"language-"+C,E)}var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(E){if(!(E.language in h))return;function T(C){for(var k=0,_=C.length;k<_;k++){var A=C[k];if(typeof A!="string"){var P=A.content;if(!Array.isArray(P)){typeof P!="string"&&T([P]);continue}if(A.type==="template-string"){var N=P[1];if(P.length===3&&typeof N!="string"&&N.type==="embedded-code"){var I=v(N),L=N.alias,j=Array.isArray(L)?L[0]:L,z=n.languages[j];if(!z)continue;P[1]=y(I,z,j)}}else T(P)}}}T(E.tokens)});function v(E){return typeof E=="string"?E:Array.isArray(E)?E.map(v).join(""):v(E.content)}})(t)}return OM}var RM,sH;function Fj(){if(sH)return RM;sH=1,RM=e,e.displayName="typescript",e.aliases=["ts"];function e(t){(function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),n.languages.ts=n.languages.typescript})(t)}return RM}var PM,lH;function V4e(){if(lH)return PM;lH=1;var e=A_(),t=Fj();PM=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){var i=a.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,l="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(l+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(l+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:i,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),lookbehind:!0,inside:{string:i.string,number:i.number,boolean:i.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:i,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)})(r)}return PM}var AM,uH;function jj(){if(uH)return AM;uH=1,AM=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return AM}var NM,cH;function G4e(){if(cH)return NM;cH=1;var e=jj();NM=t,t.displayName="json5",t.aliases=[];function t(n){n.register(e),(function(r){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})})(n)}return NM}var MM,dH;function Y4e(){if(dH)return MM;dH=1;var e=jj();MM=t,t.displayName="jsonp",t.aliases=[];function t(n){n.register(e),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return MM}var IM,fH;function K4e(){if(fH)return IM;fH=1,IM=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return IM}var DM,pH;function sre(){if(pH)return DM;pH=1,DM=e,e.displayName="jsx",e.aliases=[];function e(t){(function(n){var r=n.util.clone(n.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function l(f,g){return f=f.replace(//g,function(){return a}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(f,g)}o=l(o).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=l(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:l(//.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:l(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var u=function(f){return f?typeof f=="string"?f:typeof f.content=="string"?f.content:f.content.map(u).join(""):""},d=function(f){for(var g=[],y=0;y0&&g[g.length-1].tagName===u(h.content[0].content[1])&&g.pop():h.content[h.content.length-1].content==="/>"||g.push({tagName:u(h.content[0].content[1]),openedBraces:0}):g.length>0&&h.type==="punctuation"&&h.content==="{"?g[g.length-1].openedBraces++:g.length>0&&g[g.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?g[g.length-1].openedBraces--:v=!0),(v||typeof h=="string")&&g.length>0&&g[g.length-1].openedBraces===0){var E=u(h);y0&&(typeof f[y-1]=="string"||f[y-1].type==="plain-text")&&(E=u(f[y-1])+E,f.splice(y-1,1),y--),f[y]=new n.Token("plain-text",E,null,E)}h.content&&typeof h.content!="string"&&d(h.content)}};n.hooks.add("after-tokenize",function(f){f.language!=="jsx"&&f.language!=="tsx"||d(f.tokens)})})(t)}return DM}var $M,hH;function X4e(){if(hH)return $M;hH=1,$M=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return $M}var LM,mH;function Q4e(){if(mH)return LM;mH=1,LM=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return LM}var FM,gH;function J4e(){if(gH)return FM;gH=1,FM=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return FM}var jM,vH;function Z4e(){if(vH)return jM;vH=1,jM=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(t)}return jM}var UM,yH;function eUe(){if(yH)return UM;yH=1,UM=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(i,o){return RegExp(i.replace(//g,r),o)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(t)}return UM}var BM,bH;function tUe(){if(bH)return BM;bH=1,BM=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return BM}var WM,wH;function nUe(){if(wH)return WM;wH=1,WM=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:r,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(t)}return WM}var zM,SH;function N_(){if(SH)return zM;SH=1;var e=ls();zM=t,t.displayName="php",t.aliases=[];function t(n){n.register(e),(function(r){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,l=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,u=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:l,punctuation:u};var d={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},f=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:d}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:d}}];r.languages.insertBefore("php","variable",{string:f,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:f,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,number:o,operator:l,punctuation:u}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(g){if(/<\?/.test(g.code)){var y=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(g,"php",y)}}),r.hooks.add("after-tokenize",function(g){r.languages["markup-templating"].tokenizePlaceholders(g,"php")})})(n)}return zM}var qM,EH;function rUe(){if(EH)return qM;EH=1;var e=ls(),t=N_();qM=n,n.displayName="latte",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var i=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},i.tag),a.hooks.add("before-tokenize",function(o){if(o.language==="latte"){var l=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(o,"latte",l),o.grammar=i}}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"latte")})})(r)}return qM}var HM,TH;function aUe(){if(TH)return HM;TH=1,HM=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return HM}var VM,CH;function Uj(){if(CH)return VM;CH=1,VM=e,e.displayName="scheme",e.aliases=[];function e(t){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(a){for(var i in a)a[i]=a[i].replace(/<[\w\s]+>/g,function(o){return"(?:"+a[o].trim()+")"});return a[i]}})(t)}return VM}var GM,kH;function iUe(){if(kH)return GM;kH=1;var e=Uj();GM=t,t.displayName="lilypond",t.aliases=[];function t(n){n.register(e),(function(r){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,i=5,o=0;o/g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var l=r.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:r.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};l["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=l,r.languages.ly=l})(n)}return GM}var YM,xH;function oUe(){if(xH)return YM;xH=1;var e=ls();YM=t,t.displayName="liquid",t.aliases=[];function t(n){n.register(e),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(r){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;n.languages["markup-templating"].buildPlaceholders(r,"liquid",a,function(o){var l=/^\{%-?\s*(\w+)/.exec(o);if(l){var u=l[1];if(u==="raw"&&!i)return i=!0,!0;if(u==="endraw")return i=!1,!0}return!i})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return YM}var KM,_H;function sUe(){if(_H)return KM;_H=1,KM=e,e.displayName="lisp",e.aliases=[];function e(t){(function(n){function r(E){return RegExp(/(\()/.source+"(?:"+E+")"+/(?=[\s\)])/.source)}function a(E){return RegExp(/([\s([])/.source+"(?:"+E+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,l="(\\()",u="(?=\\))",d="(?=\\s)",f=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,g={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(l+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+d),lookbehind:!0},{pattern:RegExp(l+"(?:append|by|collect|concat|do|finally|for|in|return)"+d),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(l+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(l+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+f+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(l+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(l+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},y={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+f+/\)/.source),inside:g},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:g},h="\\S+(?:\\s+\\S+)*",v={pattern:RegExp(l+f+u),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+h),inside:y},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+h),inside:y},keys:{pattern:RegExp("&key\\s+"+h+"(?:\\s+&allow-other-keys)?"),inside:y},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};g.lambda.inside.arguments=v,g.defun.inside.arguments=n.util.clone(v),g.defun.inside.arguments.inside.sublist=v,n.languages.lisp=g,n.languages.elisp=g,n.languages.emacs=g,n.languages["emacs-lisp"]=g})(t)}return KM}var XM,OH;function lUe(){if(OH)return XM;OH=1,XM=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return XM}var QM,RH;function uUe(){if(RH)return QM;RH=1,QM=e,e.displayName="llvm",e.aliases=[];function e(t){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return QM}var JM,PH;function cUe(){if(PH)return JM;PH=1,JM=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return JM}var ZM,AH;function dUe(){if(AH)return ZM;AH=1,ZM=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return ZM}var eI,NH;function fUe(){if(NH)return eI;NH=1,eI=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return eI}var tI,MH;function pUe(){if(MH)return tI;MH=1,tI=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return tI}var nI,IH;function hUe(){if(IH)return nI;IH=1,nI=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(y){return y=y.replace(//g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+y+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),l=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+l+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+l+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+l+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(y){["url","bold","italic","strike","code-snippet"].forEach(function(h){y!==h&&(n.languages.markdown[y].inside.content.inside[h]=n.languages.markdown[h])})}),n.hooks.add("after-tokenize",function(y){if(y.language!=="markdown"&&y.language!=="md")return;function h(v){if(!(!v||typeof v=="string"))for(var E=0,T=v.length;E",quot:'"'},f=String.fromCodePoint||String.fromCharCode;function g(y){var h=y.replace(u,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(v,E){if(E=E.toLowerCase(),E[0]==="#"){var T;return E[1]==="x"?T=parseInt(E.slice(2),16):T=Number(E.slice(1)),f(T)}else{var C=d[E];return C||v}}),h}n.languages.md=n.languages.markdown})(t)}return nI}var rI,DH;function mUe(){if(DH)return rI;DH=1,rI=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return rI}var aI,$H;function gUe(){if($H)return aI;$H=1,aI=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(n){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return aI}var iI,LH;function vUe(){if(LH)return iI;LH=1,iI=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return iI}var oI,FH;function yUe(){if(FH)return oI;FH=1,oI=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return oI}var sI,jH;function bUe(){if(jH)return sI;jH=1,sI=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return sI}var lI,UH;function wUe(){if(UH)return lI;UH=1,lI=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(n){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(o){return o.replace("$","\\$")});var i="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return lI}var uI,BH;function SUe(){if(BH)return uI;BH=1,uI=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return uI}var cI,WH;function EUe(){if(WH)return cI;WH=1,cI=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return cI}var dI,zH;function TUe(){if(zH)return dI;zH=1,dI=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return dI}var fI,qH;function CUe(){if(qH)return fI;qH=1,fI=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return fI}var pI,HH;function kUe(){if(HH)return pI;HH=1,pI=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return pI}var hI,VH;function xUe(){if(VH)return hI;VH=1,hI=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(l){var u=l.tokens;u.forEach(function(d){if(typeof d!="string"&&d.type==="generic-text"){var f=o(d);i(f)||(d.type="bad-line",d.content=f)}})});function i(l){for(var u="[]{}",d=[],f=0;f=&|$!]/}}return mI}var gI,YH;function OUe(){if(YH)return gI;YH=1,gI=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return gI}var vI,KH;function RUe(){if(KH)return vI;KH=1,vI=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return vI}var yI,XH;function PUe(){if(XH)return yI;XH=1,yI=e,e.displayName="nginx",e.aliases=[];function e(t){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(t)}return yI}var bI,QH;function AUe(){if(QH)return bI;QH=1,bI=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return bI}var wI,JH;function NUe(){if(JH)return wI;JH=1,wI=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return wI}var SI,ZH;function MUe(){if(ZH)return SI;ZH=1,SI=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return SI}var EI,e7;function IUe(){if(e7)return EI;e7=1;var e=Bv();EI=t,t.displayName="objectivec",t.aliases=["objc"];function t(n){n.register(e),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return EI}var TI,t7;function DUe(){if(t7)return TI;t7=1,TI=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return TI}var CI,n7;function $Ue(){if(n7)return CI;n7=1;var e=Bv();CI=t,t.displayName="opencl",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.opencl=r.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),r.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};r.languages.insertBefore("c","keyword",a),r.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},r.languages.insertBefore("cpp","keyword",a))})(n)}return CI}var kI,r7;function LUe(){if(r7)return kI;r7=1,kI=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return kI}var xI,a7;function FUe(){if(a7)return xI;a7=1,xI=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return xI}var _I,i7;function jUe(){if(i7)return _I;i7=1,_I=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:(function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")})(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return _I}var OI,o7;function UUe(){if(o7)return OI;o7=1,OI=e,e.displayName="parser",e.aliases=[];function e(t){(function(n){var r=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(t)}return OI}var RI,s7;function BUe(){if(s7)return RI;s7=1,RI=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return RI}var PI,l7;function WUe(){if(l7)return PI;l7=1,PI=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return r}),i=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(l,u){return l[u]=i[u],l},{});i["class-name"].forEach(function(l){l.inside=o})})(t)}return PI}var AI,u7;function zUe(){if(u7)return AI;u7=1,AI=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return AI}var NI,c7;function qUe(){if(c7)return NI;c7=1,NI=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return NI}var MI,d7;function HUe(){if(d7)return MI;d7=1,MI=e,e.displayName="perl",e.aliases=[];function e(t){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return MI}var II,f7;function VUe(){if(f7)return II;f7=1;var e=N_();II=t,t.displayName="phpExtras",t.aliases=[];function t(n){n.register(e),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return II}var DI,p7;function GUe(){if(p7)return DI;p7=1;var e=N_(),t=A_();DI=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){var i=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+i+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+i),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)})(r)}return DI}var $I,h7;function YUe(){if(h7)return $I;h7=1;var e=Ij();$I=t,t.displayName="plsql",t.aliases=[];function t(n){n.register(e),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return $I}var LI,m7;function KUe(){if(m7)return LI;m7=1,LI=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return LI}var FI,g7;function XUe(){if(g7)return FI;g7=1,FI=e,e.displayName="powershell",e.aliases=[];function e(t){(function(n){var r=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(t)}return FI}var jI,v7;function QUe(){if(v7)return jI;v7=1,jI=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return jI}var UI,y7;function JUe(){if(y7)return UI;y7=1,UI=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return UI}var BI,b7;function ZUe(){if(b7)return BI;b7=1,BI=e,e.displayName="promql",e.aliases=[];function e(t){(function(n){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],i=["offset"],o=r.concat(a,i);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return BI}var WI,w7;function e6e(){if(w7)return WI;w7=1,WI=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return WI}var zI,S7;function t6e(){if(S7)return zI;S7=1,zI=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return zI}var qI,E7;function n6e(){if(E7)return qI;E7=1,qI=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return qI}var HI,T7;function r6e(){if(T7)return HI;T7=1,HI=e,e.displayName="pug",e.aliases=[];function e(t){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},o=0,l=a.length;o",function(){return u.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[u.language,"language-"+u.language],inside:n.languages[u.language]}}})}n.languages.insertBefore("pug","filter",i)})(t)}return HI}var VI,C7;function a6e(){if(C7)return VI;C7=1,VI=e,e.displayName="puppet",e.aliases=[];function e(t){(function(n){n.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(t)}return VI}var GI,k7;function i6e(){if(k7)return GI;k7=1,GI=e,e.displayName="pure",e.aliases=[];function e(t){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),n.languages[o]){var l={};l["inline-lang-"+o]={pattern:RegExp(a.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},l["inline-lang-"+o].inside.rest=n.util.clone(n.languages[o]),n.languages.insertBefore("pure","inline-lang",l)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(t)}return GI}var YI,x7;function o6e(){if(x7)return YI;x7=1,YI=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return YI}var KI,_7;function s6e(){if(_7)return KI;_7=1;var e=$j();KI=t,t.displayName="purescript",t.aliases=["purs"];function t(n){n.register(e),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return KI}var XI,O7;function l6e(){if(O7)return XI;O7=1,XI=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return XI}var QI,R7;function u6e(){if(R7)return QI;R7=1,QI=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return QI}var JI,P7;function c6e(){if(P7)return JI;P7=1,JI=e,e.displayName="qml",e.aliases=[];function e(t){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return r}).replace(//g,function(){return a}),o=0;o<2;o++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return JI}var ZI,A7;function d6e(){if(A7)return ZI;A7=1,ZI=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return ZI}var eD,N7;function f6e(){if(N7)return eD;N7=1,eD=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(n){function r(v,E){return v.replace(/<<(\d+)>>/g,function(T,C){return"(?:"+E[+C]+")"})}function a(v,E,T){return RegExp(r(v,E),"")}function i(v,E){for(var T=0;T>/g,function(){return"(?:"+v+")"});return v.replace(/<>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function l(v){return"\\b(?:"+v.trim().replace(/ /g,"|")+")\\b"}var u=RegExp(l(o.type+" "+o.other)),d=/\b[A-Za-z_]\w*\b/.source,f=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[d]),g={keyword:u,punctuation:/[<>()?,.:[\]]/},y=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[y]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[f]),lookbehind:!0,inside:g},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[f]),lookbehind:!0,inside:g}],keyword:u,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var h=i(r(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[y]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[h]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[h]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return eD}var tD,M7;function p6e(){if(M7)return tD;M7=1,tD=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return tD}var nD,I7;function h6e(){if(I7)return nD;I7=1;var e=Uj();nD=t,t.displayName="racket",t.aliases=["rkt"];function t(n){n.register(e),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return nD}var rD,D7;function m6e(){if(D7)return rD;D7=1,rD=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return rD}var aD,$7;function g6e(){if($7)return aD;$7=1,aD=e,e.displayName="regex",e.aliases=[];function e(t){(function(n){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},l="(?:[^\\\\-]|"+a.source+")",u=RegExp(l+"-"+l),d={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:u,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":o,escape:a}},"special-escape":r,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":d}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return iD}var oD,F7;function y6e(){if(F7)return oD;F7=1,oD=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return oD}var sD,j7;function b6e(){if(j7)return sD;j7=1,sD=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return sD}var lD,U7;function w6e(){if(U7)return lD;U7=1,lD=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return lD}var uD,B7;function S6e(){if(B7)return uD;B7=1,uD=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return uD}var cD,W7;function E6e(){if(W7)return cD;W7=1,cD=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(d,f){var g={};g["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var y in f)g[y]=f[y];return g.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},g.variable=a,g.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return d}),"im"),alias:"section",inside:g}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},l={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},u={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};n.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":l,documentation:o,property:u}),keywords:i("Keywords",{"keyword-name":l,documentation:o,property:u}),tasks:i("Tasks",{"task-name":l,documentation:o,property:u}),comment:r},n.languages.robot=n.languages.robotframework})(t)}return cD}var dD,z7;function T6e(){if(z7)return dD;z7=1,dD=e,e.displayName="rust",e.aliases=[];function e(t){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(t)}return dD}var fD,q7;function C6e(){if(q7)return fD;q7=1,fD=e,e.displayName="sas",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(r+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},l={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},u={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},d=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],f={pattern:RegExp(r),greedy:!0},g=/[$%@.(){}\[\];,\\]/,y={pattern:/%?\b\w+(?=\()/,alias:"keyword"},h={function:y,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":i,punctuation:g,string:f},v={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},E={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},T={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},C={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},k=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,_={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return k}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return k}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:d,function:y,"arg-value":h["arg-value"],operator:h.operator,argument:h.arg,number:a,"numeric-constant":i,punctuation:g,string:f}},A={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return r}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":T,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:A,"submit-statement":C,"global-statements":T,number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:A,"submit-statement":C,"global-statements":T,number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:h}},"cas-actions":_,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:h},step:u,keyword:A,function:y,format:v,altformat:E,"global-statements":T,number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,inside:h},"macro-keyword":l,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":l,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:g}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:d,number:a,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:h},"cas-actions":_,comment:d,function:y,format:v,altformat:E,"numeric-constant":i,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:f,step:u,keyword:A,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:g}})(t)}return fD}var pD,H7;function k6e(){if(H7)return pD;H7=1,pD=e,e.displayName="sass",e.aliases=[];function e(t){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:a,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return pD}var hD,V7;function x6e(){if(V7)return hD;V7=1;var e=Lj();hD=t,t.displayName="scala",t.aliases=[];function t(n){n.register(e),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return hD}var mD,G7;function _6e(){if(G7)return mD;G7=1,mD=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return mD}var gD,Y7;function O6e(){if(Y7)return gD;Y7=1;var e=are();gD=t,t.displayName="shellSession",t.aliases=[];function t(n){n.register(e),(function(r){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]})(n)}return gD}var vD,K7;function R6e(){if(K7)return vD;K7=1,vD=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return vD}var yD,X7;function P6e(){if(X7)return yD;X7=1,yD=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return yD}var bD,Q7;function A6e(){if(Q7)return bD;Q7=1;var e=ls();bD=t,t.displayName="smarty",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:r.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,i=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return a.source}),"g");r.hooks.add("before-tokenize",function(o){var l="{literal}",u="{/literal}",d=!1;r.languages["markup-templating"].buildPlaceholders(o,"smarty",i,function(f){return f===u&&(d=!1),d?!1:(f===l&&(d=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})})(n)}return bD}var wD,J7;function N6e(){if(J7)return wD;J7=1,wD=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(n){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(t)}return wD}var SD,Z7;function M6e(){if(Z7)return SD;Z7=1,SD=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return SD}var ED,eV;function I6e(){if(eV)return ED;eV=1,ED=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(t)}return ED}var TD,tV;function D6e(){if(tV)return TD;tV=1;var e=ls();TD=t,t.displayName="soy",t.aliases=[];function t(n){n.register(e),(function(r){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:i,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:i,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(o){var l=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,u="{literal}",d="{/literal}",f=!1;r.languages["markup-templating"].buildPlaceholders(o,"soy",l,function(g){return g===d&&(f=!1),f?!1:(g===u&&(f=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"soy")})})(n)}return TD}var CD,nV;function lre(){if(nV)return CD;nV=1,CD=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return CD}var kD,rV;function $6e(){if(rV)return kD;rV=1;var e=lre();kD=t,t.displayName="sparql",t.aliases=["rq"];function t(n){n.register(e),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return kD}var xD,aV;function L6e(){if(aV)return xD;aV=1,xD=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return xD}var _D,iV;function F6e(){if(iV)return _D;iV=1,_D=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return _D}var OD,oV;function j6e(){if(oV)return OD;oV=1,OD=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return OD}var RD,sV;function U6e(){if(sV)return RD;sV=1,RD=e,e.displayName="stan",e.aliases=[];function e(t){(function(n){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(t)}return RD}var PD,lV;function B6e(){if(lV)return PD;lV=1,PD=e,e.displayName="stylus",e.aliases=[];function e(t){(function(n){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return PD}var AD,uV;function W6e(){if(uV)return AD;uV=1,AD=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=t.languages.swift})}return AD}var ND,cV;function z6e(){if(cV)return ND;cV=1,ND=e,e.displayName="systemd",e.aliases=[];function e(t){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return ND}var MD,dV;function Bj(){if(dV)return MD;dV=1,MD=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(i,o,l){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:l}}}}function a(i){var o=n.languages[i],l="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",o,l),"class-feature":r("\\+",o,l),standard:r("",o,l)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return MD}var ID,fV;function q6e(){if(fV)return ID;fV=1;var e=Bj(),t=R_();ID=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return ID}var DD,pV;function ure(){if(pV)return DD;pV=1;var e=ire();DD=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return DD}var $D,hV;function H6e(){if(hV)return $D;hV=1;var e=Bj(),t=ure();$D=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return $D}var LD,mV;function cre(){if(mV)return LD;mV=1,LD=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+a.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(d,f){f=(f||"").replace(/m/g,"")+"m";var g=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return d});return RegExp(g,f)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+o+"|"+l+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(l),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return LD}var FD,gV;function V6e(){if(gV)return FD;gV=1;var e=cre();FD=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return FD}var jD,vV;function G6e(){if(vV)return jD;vV=1,jD=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return jD}var UD,yV;function Y6e(){if(yV)return UD;yV=1,UD=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(y,h){return RegExp(y.replace(//g,function(){return"(?:"+r+")"}).replace(//g,function(){return"(?:"+a+")"}),h||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},l=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),u=l.phrase.inside,d={inline:u.inline,link:u.link,image:u.image,footnote:u.footnote,acronym:u.acronym,mark:u.mark};l.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var f=u.inline.inside;f.bold.inside=d,f.italic.inside=d,f.inserted.inside=d,f.deleted.inside=d,f.span.inside=d;var g=u.table.inside;g.inline=d.inline,g.link=d.link,g.image=d.image,g.footnote=d.footnote,g.acronym=d.acronym,g.mark=d.mark})(t)}return UD}var BD,bV;function K6e(){if(bV)return BD;bV=1,BD=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return BD}var WD,wV;function X6e(){if(wV)return WD;wV=1,WD=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return WD}var zD,SV;function Q6e(){if(SV)return zD;SV=1;var e=sre(),t=Fj();zD=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){var i=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var o=a.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0})(r)}return zD}var qD,EV;function J6e(){if(EV)return qD;EV=1;var e=ls();qD=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})})(n)}return qD}var HD,TV;function Z6e(){if(TV)return HD;TV=1;var e=ls();HD=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return HD}var VD,CV;function eBe(){if(CV)return VD;CV=1,VD=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return VD}var GD,kV;function tBe(){if(kV)return GD;kV=1,GD=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return GD}var YD,xV;function nBe(){if(xV)return YD;xV=1,YD=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return YD}var KD,_V;function rBe(){if(_V)return KD;_V=1,KD=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return KD}var XD,OV;function aBe(){if(OV)return XD;OV=1,XD=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return XD}var QD,RV;function iBe(){if(RV)return QD;RV=1,QD=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return QD}var JD,PV;function oBe(){if(PV)return JD;PV=1,JD=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return JD}var ZD,AV;function sBe(){if(AV)return ZD;AV=1,ZD=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return ZD}var e$,NV;function lBe(){if(NV)return e$;NV=1,e$=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return e$}var t$,MV;function uBe(){if(MV)return t$;MV=1,t$=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return t$}var n$,IV;function cBe(){if(IV)return n$;IV=1,n$=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return n$}var r$,DV;function dBe(){if(DV)return r$;DV=1,r$=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return r$}var a$,$V;function fBe(){if($V)return a$;$V=1,a$=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return a$}var i$,LV;function pBe(){if(LV)return i$;LV=1,i$=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in n.languages["web-idl"])o!=="class-name"&&(i[o]=n.languages["web-idl"][o]);n.languages.webidl=n.languages["web-idl"]})(t)}return i$}var o$,FV;function hBe(){if(FV)return o$;FV=1,o$=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return o$}var s$,jV;function mBe(){if(jV)return s$;jV=1,s$=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return s$}var l$,UV;function gBe(){if(UV)return l$;UV=1,l$=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return l$}var u$,BV;function vBe(){if(BV)return u$;BV=1,u$=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return u$}var c$,WV;function yBe(){if(WV)return c$;WV=1,c$=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(l,u){n.languages[l]&&n.languages.insertBefore(l,"comment",{"doc-comment":u})}var a=n.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",i),r("fsharp",i),r("vbnet",o)})(t)}return c$}var d$,zV;function bBe(){if(zV)return d$;zV=1,d$=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return d$}var f$,qV;function wBe(){if(qV)return f$;qV=1,f$=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(r).join("")},a=function(i){for(var o=[],l=0;l0&&o[o.length-1].tagName===r(u.content[0].content[1])&&o.pop():u.content[u.content.length-1].content==="/>"||o.push({tagName:r(u.content[0].content[1]),openedBraces:0}):o.length>0&&u.type==="punctuation"&&u.content==="{"&&(!i[l+1]||i[l+1].type!=="punctuation"||i[l+1].content!=="{")&&(!i[l-1]||i[l-1].type!=="plain-text"||i[l-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&u.type==="punctuation"&&u.content==="}"?o[o.length-1].openedBraces--:u.type!=="comment"&&(d=!0)),(d||typeof u=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var f=r(u);l0&&(typeof i[l-1]=="string"||i[l-1].type==="plain-text")&&(f=r(i[l-1])+f,i.splice(l-1,1),l--),/^\s+$/.test(f)?i[l]=f:i[l]=new n.Token("plain-text",f,null,f)}u.content&&typeof u.content!="string"&&a(u.content)}};n.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(t)}return f$}var p$,HV;function SBe(){if(HV)return p$;HV=1,p$=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return p$}var h$,VV;function EBe(){if(VV)return h$;VV=1,h$=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(f){return function(){return f}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+a.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,l=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,r(o)),u=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,r(i)),d="(?!\\s)(?:!?\\s*(?:"+l+"\\s*)*"+u+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,r(d)).replace(//g,r(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,r(d)).replace(//g,r(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(f){f.inside===null&&(f.inside=n.languages.zig)})})(t)}return h$}var m$,GV;function TBe(){if(GV)return m$;GV=1;var e=jFe();return m$=e,e.register(BFe()),e.register(WFe()),e.register(zFe()),e.register(qFe()),e.register(HFe()),e.register(VFe()),e.register(GFe()),e.register(YFe()),e.register(KFe()),e.register(XFe()),e.register(QFe()),e.register(JFe()),e.register(ZFe()),e.register(eje()),e.register(tje()),e.register(nje()),e.register(rje()),e.register(aje()),e.register(ije()),e.register(oje()),e.register(sje()),e.register(lje()),e.register(are()),e.register(ire()),e.register(uje()),e.register(cje()),e.register(dje()),e.register(fje()),e.register(pje()),e.register(hje()),e.register(mje()),e.register(gje()),e.register(vje()),e.register(yje()),e.register(Bv()),e.register(bje()),e.register(wje()),e.register(Sje()),e.register(Eje()),e.register(Tje()),e.register(Cje()),e.register(kje()),e.register(xje()),e.register(_je()),e.register(Dj()),e.register(Oje()),e.register(R_()),e.register(Rje()),e.register(Pje()),e.register(Aje()),e.register(Nje()),e.register(Mje()),e.register(Ije()),e.register(Dje()),e.register($je()),e.register(Lje()),e.register(Fje()),e.register(jje()),e.register(Uje()),e.register(Bje()),e.register(Wje()),e.register(zje()),e.register(qje()),e.register(Hje()),e.register(Vje()),e.register(Gje()),e.register(Yje()),e.register(Kje()),e.register(Xje()),e.register(Qje()),e.register(Jje()),e.register(Zje()),e.register(e4e()),e.register(t4e()),e.register(n4e()),e.register(r4e()),e.register(a4e()),e.register(i4e()),e.register(o4e()),e.register(s4e()),e.register(l4e()),e.register(u4e()),e.register(c4e()),e.register(d4e()),e.register(f4e()),e.register(p4e()),e.register(h4e()),e.register(m4e()),e.register(g4e()),e.register(v4e()),e.register(y4e()),e.register(b4e()),e.register(w4e()),e.register(S4e()),e.register($j()),e.register(E4e()),e.register(T4e()),e.register(C4e()),e.register(k4e()),e.register(x4e()),e.register(_4e()),e.register(O4e()),e.register(R4e()),e.register(P4e()),e.register(A4e()),e.register(N4e()),e.register(M4e()),e.register(I4e()),e.register(D4e()),e.register($4e()),e.register(L4e()),e.register(F4e()),e.register(Lj()),e.register(j4e()),e.register(A_()),e.register(U4e()),e.register(B4e()),e.register(W4e()),e.register(z4e()),e.register(q4e()),e.register(H4e()),e.register(V4e()),e.register(jj()),e.register(G4e()),e.register(Y4e()),e.register(K4e()),e.register(sre()),e.register(X4e()),e.register(Q4e()),e.register(J4e()),e.register(Z4e()),e.register(eUe()),e.register(tUe()),e.register(nUe()),e.register(rUe()),e.register(aUe()),e.register(iUe()),e.register(oUe()),e.register(sUe()),e.register(lUe()),e.register(uUe()),e.register(cUe()),e.register(dUe()),e.register(ore()),e.register(fUe()),e.register(pUe()),e.register(hUe()),e.register(ls()),e.register(mUe()),e.register(gUe()),e.register(vUe()),e.register(yUe()),e.register(bUe()),e.register(wUe()),e.register(SUe()),e.register(EUe()),e.register(TUe()),e.register(CUe()),e.register(kUe()),e.register(xUe()),e.register(_Ue()),e.register(OUe()),e.register(RUe()),e.register(PUe()),e.register(AUe()),e.register(NUe()),e.register(MUe()),e.register(IUe()),e.register(DUe()),e.register($Ue()),e.register(LUe()),e.register(FUe()),e.register(jUe()),e.register(UUe()),e.register(BUe()),e.register(WUe()),e.register(zUe()),e.register(qUe()),e.register(HUe()),e.register(VUe()),e.register(N_()),e.register(GUe()),e.register(YUe()),e.register(KUe()),e.register(XUe()),e.register(QUe()),e.register(JUe()),e.register(ZUe()),e.register(e6e()),e.register(t6e()),e.register(n6e()),e.register(r6e()),e.register(a6e()),e.register(i6e()),e.register(o6e()),e.register(s6e()),e.register(l6e()),e.register(u6e()),e.register(c6e()),e.register(d6e()),e.register(f6e()),e.register(p6e()),e.register(h6e()),e.register(m6e()),e.register(g6e()),e.register(v6e()),e.register(y6e()),e.register(b6e()),e.register(w6e()),e.register(S6e()),e.register(E6e()),e.register(P_()),e.register(T6e()),e.register(C6e()),e.register(k6e()),e.register(x6e()),e.register(Uj()),e.register(_6e()),e.register(O6e()),e.register(R6e()),e.register(P6e()),e.register(A6e()),e.register(N6e()),e.register(M6e()),e.register(I6e()),e.register(D6e()),e.register($6e()),e.register(L6e()),e.register(F6e()),e.register(Ij()),e.register(j6e()),e.register(U6e()),e.register(B6e()),e.register(W6e()),e.register(z6e()),e.register(q6e()),e.register(Bj()),e.register(H6e()),e.register(V6e()),e.register(G6e()),e.register(Y6e()),e.register(K6e()),e.register(X6e()),e.register(Q6e()),e.register(J6e()),e.register(lre()),e.register(Z6e()),e.register(Fj()),e.register(eBe()),e.register(tBe()),e.register(nBe()),e.register(rBe()),e.register(aBe()),e.register(iBe()),e.register(ure()),e.register(oBe()),e.register(sBe()),e.register(lBe()),e.register(uBe()),e.register(cBe()),e.register(dBe()),e.register(fBe()),e.register(pBe()),e.register(hBe()),e.register(mBe()),e.register(gBe()),e.register(vBe()),e.register(yBe()),e.register(bBe()),e.register(wBe()),e.register(cre()),e.register(SBe()),e.register(EBe()),m$}var CBe=TBe();const kBe=Rc(CBe);var dre=dLe(kBe,UFe);dre.supportedLanguages=fLe;const xBe={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#b6ad9a"},prolog:{color:"#b6ad9a"},doctype:{color:"#b6ad9a"},cdata:{color:"#b6ad9a"},punctuation:{color:"#b6ad9a"},namespace:{Opacity:".7"},tag:{color:"#063289"},operator:{color:"#063289"},number:{color:"#063289"},property:{color:"#b29762"},function:{color:"#b29762"},"tag-id":{color:"#2d2006"},selector:{color:"#2d2006"},"atrule-id":{color:"#2d2006"},"code.language-javascript":{color:"#896724"},"attr-name":{color:"#896724"},"code.language-css":{color:"#728fcb"},"code.language-scss":{color:"#728fcb"},boolean:{color:"#728fcb"},string:{color:"#728fcb"},entity:{color:"#728fcb",cursor:"help"},url:{color:"#728fcb"},".language-css .token.string":{color:"#728fcb"},".language-scss .token.string":{color:"#728fcb"},".style .token.string":{color:"#728fcb"},"attr-value":{color:"#728fcb"},keyword:{color:"#728fcb"},control:{color:"#728fcb"},directive:{color:"#728fcb"},unit:{color:"#728fcb"},statement:{color:"#728fcb"},regex:{color:"#728fcb"},atrule:{color:"#728fcb"},placeholder:{color:"#93abdc"},variable:{color:"#93abdc"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #2d2006",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#896724"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #896724",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#ece8de"},".line-numbers .line-numbers-rows > span:before":{color:"#cdc4b1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(45, 32, 6, 0.2) 70%, rgba(45, 32, 6, 0))"}},_Be={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},na=({codeString:e})=>{var i;const t=(i=document==null?void 0:document.body)==null?void 0:i.classList.contains("dark-theme"),[n,r]=R.useState(!1),a=()=>{navigator.clipboard.writeText(e).then(()=>{r(!0),setTimeout(()=>r(!1),1500)})};return w.jsxs("div",{className:"code-viewer-container",children:[w.jsx("button",{className:"copy-button",onClick:a,children:n?"Copied!":"Copy"}),w.jsx(dre,{language:"tsx",style:t?_Be:xBe,children:e})]})},Ed={Example1:`const Example1 = () => { +|(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(n.languages.diff,"PREFIXES",{value:r})})(t)}return P2}var A2,u9;function cs(){if(u9)return A2;u9=1,A2=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(n){function r(a,i){return"___"+a.toUpperCase()+i+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,i,o,l){if(a.language===i){var u=a.tokenStack=[];a.code=a.code.replace(o,function(d){if(typeof l=="function"&&!l(d))return d;for(var f=u.length,g;a.code.indexOf(g=r(i,f))!==-1;)++f;return u[f]=d,g}),a.grammar=n.languages.markup}}},tokenizePlaceholders:{value:function(a,i){if(a.language!==i||!a.tokenStack)return;a.grammar=n.languages[i];var o=0,l=Object.keys(a.tokenStack);function u(d){for(var f=0;f=l.length);f++){var g=d[f];if(typeof g=="string"||g.content&&typeof g.content=="string"){var y=l[o],h=a.tokenStack[y],v=typeof g=="string"?g:g.content,E=r(i,y),T=v.indexOf(E);if(T>-1){++o;var C=v.substring(0,T),k=new n.Token(i,n.tokenize(h,a.grammar),"language-"+i,h),_=v.substring(T+E.length),A=[];C&&A.push.apply(A,u([C])),A.push(k),_&&A.push.apply(A,u([_])),typeof g=="string"?d.splice.apply(d,[f,1].concat(A)):g.content=A}}else g.content&&u(g.content)}return d}u(a.tokens)}}})})(t)}return A2}var N2,c9;function r4e(){if(c9)return N2;c9=1;var e=cs();N2=t,t.displayName="django",t.aliases=["jinja2"];function t(n){n.register(e),(function(r){r.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,i=r.languages["markup-templating"];r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"django",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"django")}),r.languages.jinja2=r.languages.django,r.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"jinja2",a)}),r.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"jinja2")})})(n)}return N2}var M2,d9;function a4e(){if(d9)return M2;d9=1,M2=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return M2}var I2,f9;function i4e(){if(f9)return I2;f9=1,I2=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(n){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return r}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),l={pattern:RegExp(i),greedy:!0},u={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function d(f,g){return f=f.replace(//g,function(){return o}).replace(//g,function(){return a}),RegExp(f,g)}n.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:d(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[l,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:d(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:d(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:d(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:u,string:l,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:u},n.languages.dockerfile=n.languages.docker})(t)}return I2}var D2,p9;function o4e(){if(p9)return D2;p9=1,D2=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(n){var r="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:n.languages.markup}};function i(o,l){return RegExp(o.replace(//g,function(){return r}),l)}n.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},n.languages.gv=n.languages.dot})(t)}return D2}var $2,h9;function s4e(){if(h9)return $2;h9=1,$2=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return $2}var L2,m9;function l4e(){if(m9)return L2;m9=1,L2=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return L2}var F2,g9;function u4e(){if(g9)return F2;g9=1,F2=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return F2}var j2,v9;function c4e(){if(v9)return j2;v9=1;var e=cs();j2=t,t.displayName="ejs",t.aliases=["eta"];function t(n){n.register(e),(function(r){r.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:r.languages.javascript}},r.hooks.add("before-tokenize",function(a){var i=/<%(?!%)[\s\S]+?%>/g;r.languages["markup-templating"].buildPlaceholders(a,"ejs",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),r.languages.eta=r.languages.ejs})(n)}return j2}var U2,y9;function d4e(){if(y9)return U2;y9=1,U2=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return U2}var B2,b9;function f4e(){if(b9)return B2;b9=1,B2=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return B2}var W2,w9;function p4e(){if(w9)return W2;w9=1;var e=B_(),t=cs();W2=n,n.displayName="erb",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(i){var o=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"erb",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"erb")})})(r)}return W2}var z2,S9;function h4e(){if(S9)return z2;S9=1,z2=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return z2}var q2,E9;function bre(){if(E9)return q2;E9=1,q2=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return q2}var H2,T9;function m4e(){if(T9)return H2;T9=1;var e=bre(),t=cs();H2=n,n.displayName="etlua",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(i){var o=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"etlua",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"etlua")})})(r)}return H2}var V2,C9;function g4e(){if(C9)return V2;C9=1,V2=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return V2}var G2,k9;function v4e(){if(k9)return G2;k9=1,G2=e,e.displayName="factor",e.aliases=[];function e(t){(function(n){var r={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:r},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:r}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},o=function(f){return(f+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},l=function(f){return new RegExp("(^|\\s)(?:"+f.map(o).join("|")+")(?=\\s|$)")},u={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(u).forEach(function(f){i[f].pattern=l(u[f])});var d=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=l(d),n.languages.factor=i})(t)}return G2}var Y2,x9;function y4e(){if(x9)return Y2;x9=1,Y2=e,e.displayName="$false",e.aliases=[];function e(t){(function(n){n.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return K2}var X2,O9;function w4e(){if(O9)return X2;O9=1,X2=e,e.displayName="flow",e.aliases=[];function e(t){(function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return X2}var Q2,R9;function S4e(){if(R9)return Q2;R9=1,Q2=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return Q2}var J2,P9;function E4e(){if(P9)return J2;P9=1,J2=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return J2}var Z2,A9;function T4e(){if(A9)return Z2;A9=1;var e=cs();Z2=t,t.displayName="ftl",t.aliases=[];function t(n){n.register(e),(function(r){for(var a=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)a=a.replace(//g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,r.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},r.hooks.add("before-tokenize",function(l){var u=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");r.languages["markup-templating"].buildPlaceholders(l,"ftl",u)}),r.hooks.add("after-tokenize",function(l){r.languages["markup-templating"].tokenizePlaceholders(l,"ftl")})})(n)}return Z2}var eM,N9;function C4e(){if(N9)return eM;N9=1,eM=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return eM}var tM,M9;function k4e(){if(M9)return tM;M9=1,tM=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return tM}var nM,I9;function x4e(){if(I9)return nM;I9=1,nM=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return nM}var rM,D9;function _4e(){if(D9)return rM;D9=1,rM=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return rM}var aM,$9;function O4e(){if($9)return aM;$9=1,aM=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(n){var r=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;n.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+r+")(?:"+r+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(r),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return aM}var iM,L9;function R4e(){if(L9)return iM;L9=1,iM=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return iM}var oM,F9;function P4e(){if(F9)return oM;F9=1;var e=Kv();oM=t,t.displayName="glsl",t.aliases=[];function t(n){n.register(e),n.languages.glsl=n.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return oM}var sM,j9;function A4e(){if(j9)return sM;j9=1,sM=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return sM}var lM,U9;function N4e(){if(U9)return lM;U9=1,lM=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return lM}var uM,B9;function M4e(){if(B9)return uM;B9=1,uM=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return uM}var cM,W9;function I4e(){if(W9)return cM;W9=1,cM=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return cM}var dM,z9;function D4e(){if(z9)return dM;z9=1,dM=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(r){if(r.language!=="graphql")return;var a=r.tokens.filter(function(C){return typeof C!="string"&&C.type!=="comment"&&C.type!=="scalar"}),i=0;function o(C){return a[i+C]}function l(C,k){k=k||0;for(var _=0;_0)){var v=u(/^\{$/,/^\}$/);if(v===-1)continue;for(var E=i;E=0&&d(T,"variable-input")}}}}})}return dM}var fM,q9;function $4e(){if(q9)return fM;q9=1,fM=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(n){if(n.language==="groovy"&&n.type==="string"){var r=n.content.value[0];if(r!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;r==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),n.content.value=n.content.value.replace(/</g,"<").replace(/&/g,"&"),n.content=t.highlight(n.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),n.classes.push(r==="/"?"regex":"gstring")}}})}return fM}var pM,H9;function L4e(){if(H9)return pM;H9=1;var e=B_();pM=t,t.displayName="haml",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:r.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:r.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:r.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:r.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:r.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:r.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",i=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],o={},l=0,u=i.length;l@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},r.hooks.add("before-tokenize",function(a){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;r.languages["markup-templating"].buildPlaceholders(a,"handlebars",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),r.languages.hbs=r.languages.handlebars})(n)}return hM}var mM,G9;function Kj(){if(G9)return mM;G9=1,mM=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return mM}var gM,Y9;function j4e(){if(Y9)return gM;Y9=1,gM=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return gM}var vM,K9;function U4e(){if(K9)return vM;K9=1,vM=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return vM}var yM,X9;function B4e(){if(X9)return yM;X9=1;var e=Kv();yM=t,t.displayName="hlsl",t.aliases=[];function t(n){n.register(e),n.languages.hlsl=n.languages.extend("c",{"class-name":[n.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return yM}var bM,Q9;function W4e(){if(Q9)return bM;Q9=1,bM=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return bM}var wM,J9;function z4e(){if(J9)return wM;J9=1,wM=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return wM}var SM,Z9;function q4e(){if(Z9)return SM;Z9=1,SM=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return SM}var EM,eH;function H4e(){if(eH)return EM;eH=1,EM=e,e.displayName="http",e.aliases=[];function e(t){(function(n){function r(g){return RegExp("(^(?:"+g+"):[ ]*(?![ ]))[^]+","i")}n.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:n.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:r(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:n.languages.csp},{pattern:r(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:n.languages.hpkp},{pattern:r(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:n.languages.hsts},{pattern:r(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=n.languages,i={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},o={"application/json":!0,"application/xml":!0};function l(g){var y=g.replace(/^[a-z]+\//,""),h="\\w+/(?:[\\w.-]+\\+)+"+y+"(?![+\\w.-])";return"(?:"+g+"|"+h+")"}var u;for(var d in i)if(i[d]){u=u||{};var f=o[d]?l(d):d;u[d.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+f+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[d]}}u&&n.languages.insertBefore("http","header",u)})(t)}return EM}var TM,tH;function V4e(){if(tH)return TM;tH=1,TM=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return TM}var CM,nH;function G4e(){if(nH)return CM;nH=1,CM=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return CM}var kM,rH;function Y4e(){if(rH)return kM;rH=1,kM=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(n){function r(d,f){return f<=0?/[]/.source:d.replace(//g,function(){return r(d,f-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:a,greedy:!0,inside:{escape:i}},l=r(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return a.source}),8),u={pattern:RegExp(l),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};n.languages["icu-message-format"]={argument:{pattern:RegExp(l),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":u,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":u,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+r(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},u.inside.message.inside=n.languages["icu-message-format"],n.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=n.languages["icu-message-format"]})(t)}return kM}var xM,aH;function K4e(){if(aH)return xM;aH=1;var e=Kj();xM=t,t.displayName="idris",t.aliases=["idr"];function t(n){n.register(e),n.languages.idris=n.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),n.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.idr=n.languages.idris}return xM}var _M,iH;function X4e(){if(iH)return _M;iH=1,_M=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return _M}var OM,oH;function Q4e(){if(oH)return OM;oH=1,OM=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore})(t)}return OM}var RM,sH;function J4e(){if(sH)return RM;sH=1,RM=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return RM}var PM,lH;function Z4e(){if(lH)return PM;lH=1,PM=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return PM}var AM,uH;function eUe(){if(uH)return AM;uH=1,AM=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return NM}var MM,dH;function Xj(){if(dH)return MM;dH=1,MM=e,e.displayName="java",e.aliases=[];function e(t){(function(n){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:r,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return MM}var IM,fH;function W_(){if(fH)return IM;fH=1,IM=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(n){var r=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(o,l){var u="doc-comment",d=n.languages[o];if(d){var f=d[u];if(!f){var g={};g[u]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},d=n.languages.insertBefore(o,"comment",g),f=d[u]}if(f instanceof RegExp&&(f=d[u]={pattern:f}),Array.isArray(f))for(var y=0,h=f.length;y)?|/.source.replace(//g,function(){return o});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+l+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:i,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:i,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)})(r)}return DM}var $M,hH;function rUe(){if(hH)return $M;hH=1,$M=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return $M}var LM,mH;function aUe(){if(mH)return LM;mH=1,LM=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return LM}var FM,gH;function iUe(){if(gH)return FM;gH=1,FM=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return FM}var jM,vH;function oUe(){if(vH)return jM;vH=1,jM=e,e.displayName="jq",e.aliases=[];function e(t){(function(n){var r=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return r})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+r),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=n.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:a,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=o})(t)}return jM}var UM,yH;function sUe(){if(yH)return UM;yH=1,UM=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function r(d,f){return RegExp(d.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),f)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],i=0;i=I.length)return;var Q=j[z];if(typeof Q=="string"||typeof Q.content=="string"){var le=I[_],re=typeof Q=="string"?Q:Q.content,ge=re.indexOf(le);if(ge!==-1){++_;var me=re.substring(0,ge),W=g(A[le]),G=re.substring(ge+le.length),q=[];if(me&&q.push(me),q.push(W),G){var ce=[G];L(ce),q.push.apply(q,ce)}typeof Q=="string"?(j.splice.apply(j,[z,1].concat(q)),z+=q.length-1):Q.content=q}}else{var H=Q.content;Array.isArray(H)?L(H):L([H])}}}return L(N),new n.Token(C,N,"language-"+C,E)}var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};n.hooks.add("after-tokenize",function(E){if(!(E.language in h))return;function T(C){for(var k=0,_=C.length;k<_;k++){var A=C[k];if(typeof A!="string"){var P=A.content;if(!Array.isArray(P)){typeof P!="string"&&T([P]);continue}if(A.type==="template-string"){var N=P[1];if(P.length===3&&typeof N!="string"&&N.type==="embedded-code"){var I=v(N),L=N.alias,j=Array.isArray(L)?L[0]:L,z=n.languages[j];if(!z)continue;P[1]=y(I,z,j)}}else T(P)}}}T(E.tokens)});function v(E){return typeof E=="string"?E:Array.isArray(E)?E.map(v).join(""):v(E.content)}})(t)}return BM}var WM,wH;function Qj(){if(wH)return WM;wH=1,WM=e,e.displayName="typescript",e.aliases=["ts"];function e(t){(function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var r=n.languages.extend("typescript",{});delete r["class-name"],n.languages.typescript["class-name"].inside=r,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),n.languages.ts=n.languages.typescript})(t)}return WM}var zM,SH;function uUe(){if(SH)return zM;SH=1;var e=W_(),t=Qj();zM=n,n.displayName="jsdoc",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){var i=a.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,l="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(l+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(l+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:i,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),lookbehind:!0,inside:{string:i.string,number:i.number,boolean:i.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:i,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)})(r)}return zM}var qM,EH;function Jj(){if(EH)return qM;EH=1,qM=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return qM}var HM,TH;function cUe(){if(TH)return HM;TH=1;var e=Jj();HM=t,t.displayName="json5",t.aliases=[];function t(n){n.register(e),(function(r){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;r.languages.json5=r.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})})(n)}return HM}var VM,CH;function dUe(){if(CH)return VM;CH=1;var e=Jj();VM=t,t.displayName="jsonp",t.aliases=[];function t(n){n.register(e),n.languages.jsonp=n.languages.extend("json",{punctuation:/[{}[\]();,.]/}),n.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return VM}var GM,kH;function fUe(){if(kH)return GM;kH=1,GM=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return GM}var YM,xH;function wre(){if(xH)return YM;xH=1,YM=e,e.displayName="jsx",e.aliases=[];function e(t){(function(n){var r=n.util.clone(n.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function l(f,g){return f=f.replace(//g,function(){return a}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(f,g)}o=l(o).source,n.languages.jsx=n.languages.extend("markup",r),n.languages.jsx.tag.pattern=l(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=r.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:l(//.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:l(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var u=function(f){return f?typeof f=="string"?f:typeof f.content=="string"?f.content:f.content.map(u).join(""):""},d=function(f){for(var g=[],y=0;y0&&g[g.length-1].tagName===u(h.content[0].content[1])&&g.pop():h.content[h.content.length-1].content==="/>"||g.push({tagName:u(h.content[0].content[1]),openedBraces:0}):g.length>0&&h.type==="punctuation"&&h.content==="{"?g[g.length-1].openedBraces++:g.length>0&&g[g.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?g[g.length-1].openedBraces--:v=!0),(v||typeof h=="string")&&g.length>0&&g[g.length-1].openedBraces===0){var E=u(h);y0&&(typeof f[y-1]=="string"||f[y-1].type==="plain-text")&&(E=u(f[y-1])+E,f.splice(y-1,1),y--),f[y]=new n.Token("plain-text",E,null,E)}h.content&&typeof h.content!="string"&&d(h.content)}};n.hooks.add("after-tokenize",function(f){f.language!=="jsx"&&f.language!=="tsx"||d(f.tokens)})})(t)}return YM}var KM,_H;function pUe(){if(_H)return KM;_H=1,KM=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return KM}var XM,OH;function hUe(){if(OH)return XM;OH=1,XM=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return XM}var QM,RH;function mUe(){if(RH)return QM;RH=1,QM=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return QM}var JM,PH;function gUe(){if(PH)return JM;PH=1,JM=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin})(t)}return JM}var ZM,AH;function vUe(){if(AH)return ZM;AH=1,ZM=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(n){var r=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(i,o){return RegExp(i.replace(//g,r),o)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir})(t)}return ZM}var eI,NH;function yUe(){if(NH)return eI;NH=1,eI=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return eI}var tI,MH;function bUe(){if(MH)return tI;MH=1,tI=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(n){var r=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:r,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:r,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex})(t)}return tI}var nI,IH;function z_(){if(IH)return nI;IH=1;var e=cs();nI=t,t.displayName="php",t.aliases=[];function t(n){n.register(e),(function(r){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,l=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,u=/[{}\[\](),:;]/;r.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:l,punctuation:u};var d={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:r.languages.php},f=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:d}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:d}}];r.languages.insertBefore("php","variable",{string:f,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:f,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,number:o,operator:l,punctuation:u}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),r.hooks.add("before-tokenize",function(g){if(/<\?/.test(g.code)){var y=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;r.languages["markup-templating"].buildPlaceholders(g,"php",y)}}),r.hooks.add("after-tokenize",function(g){r.languages["markup-templating"].tokenizePlaceholders(g,"php")})})(n)}return nI}var rI,DH;function wUe(){if(DH)return rI;DH=1;var e=cs(),t=z_();rI=n,n.displayName="latte",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var i=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},i.tag),a.hooks.add("before-tokenize",function(o){if(o.language==="latte"){var l=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(o,"latte",l),o.grammar=i}}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"latte")})})(r)}return rI}var aI,$H;function SUe(){if($H)return aI;$H=1,aI=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return aI}var iI,LH;function Zj(){if(LH)return iI;LH=1,iI=e,e.displayName="scheme",e.aliases=[];function e(t){(function(n){n.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(r({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function r(a){for(var i in a)a[i]=a[i].replace(/<[\w\s]+>/g,function(o){return"(?:"+a[o].trim()+")"});return a[i]}})(t)}return iI}var oI,FH;function EUe(){if(FH)return oI;FH=1;var e=Zj();oI=t,t.displayName="lilypond",t.aliases=[];function t(n){n.register(e),(function(r){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,i=5,o=0;o/g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var l=r.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:r.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};l["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=l,r.languages.ly=l})(n)}return oI}var sI,jH;function TUe(){if(jH)return sI;jH=1;var e=cs();sI=t,t.displayName="liquid",t.aliases=[];function t(n){n.register(e),n.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},n.hooks.add("before-tokenize",function(r){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;n.languages["markup-templating"].buildPlaceholders(r,"liquid",a,function(o){var l=/^\{%-?\s*(\w+)/.exec(o);if(l){var u=l[1];if(u==="raw"&&!i)return i=!0,!0;if(u==="endraw")return i=!1,!0}return!i})}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"liquid")})}return sI}var lI,UH;function CUe(){if(UH)return lI;UH=1,lI=e,e.displayName="lisp",e.aliases=[];function e(t){(function(n){function r(E){return RegExp(/(\()/.source+"(?:"+E+")"+/(?=[\s\)])/.source)}function a(E){return RegExp(/([\s([])/.source+"(?:"+E+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,l="(\\()",u="(?=\\))",d="(?=\\s)",f=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,g={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(l+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+d),lookbehind:!0},{pattern:RegExp(l+"(?:append|by|collect|concat|do|finally|for|in|return)"+d),lookbehind:!0}],declare:{pattern:r(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:r(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(l+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(l+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+f+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(l+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(l+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},y={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+f+/\)/.source),inside:g},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:g},h="\\S+(?:\\s+\\S+)*",v={pattern:RegExp(l+f+u),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+h),inside:y},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+h),inside:y},keys:{pattern:RegExp("&key\\s+"+h+"(?:\\s+&allow-other-keys)?"),inside:y},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};g.lambda.inside.arguments=v,g.defun.inside.arguments=n.util.clone(v),g.defun.inside.arguments.inside.sublist=v,n.languages.lisp=g,n.languages.elisp=g,n.languages.emacs=g,n.languages["emacs-lisp"]=g})(t)}return lI}var uI,BH;function kUe(){if(BH)return uI;BH=1,uI=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return uI}var cI,WH;function xUe(){if(WH)return cI;WH=1,cI=e,e.displayName="llvm",e.aliases=[];function e(t){(function(n){n.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return cI}var dI,zH;function _Ue(){if(zH)return dI;zH=1,dI=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return dI}var fI,qH;function OUe(){if(qH)return fI;qH=1,fI=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return fI}var pI,HH;function RUe(){if(HH)return pI;HH=1,pI=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return pI}var hI,VH;function PUe(){if(VH)return hI;VH=1,hI=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return hI}var mI,GH;function AUe(){if(GH)return mI;GH=1,mI=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(n){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(y){return y=y.replace(//g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+y+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),l=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+l+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+l+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+l+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(y){["url","bold","italic","strike","code-snippet"].forEach(function(h){y!==h&&(n.languages.markdown[y].inside.content.inside[h]=n.languages.markdown[h])})}),n.hooks.add("after-tokenize",function(y){if(y.language!=="markdown"&&y.language!=="md")return;function h(v){if(!(!v||typeof v=="string"))for(var E=0,T=v.length;E",quot:'"'},f=String.fromCodePoint||String.fromCharCode;function g(y){var h=y.replace(u,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(v,E){if(E=E.toLowerCase(),E[0]==="#"){var T;return E[1]==="x"?T=parseInt(E.slice(2),16):T=Number(E.slice(1)),f(T)}else{var C=d[E];return C||v}}),h}n.languages.md=n.languages.markdown})(t)}return mI}var gI,YH;function NUe(){if(YH)return gI;YH=1,gI=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return gI}var vI,KH;function MUe(){if(KH)return vI;KH=1,vI=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(n){var r=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;n.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+r.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+r.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:r,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return vI}var yI,XH;function IUe(){if(XH)return yI;XH=1,yI=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return yI}var bI,QH;function DUe(){if(QH)return bI;QH=1,bI=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return bI}var wI,JH;function $Ue(){if(JH)return wI;JH=1,wI=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return wI}var SI,ZH;function LUe(){if(ZH)return SI;ZH=1,SI=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(n){var r=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];r=r.map(function(o){return o.replace("$","\\$")});var i="(?:"+r.join("|")+")\\b";n.languages.mongodb=n.languages.extend("javascript",{}),n.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),n.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},n.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return SI}var EI,e7;function FUe(){if(e7)return EI;e7=1,EI=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return EI}var TI,t7;function jUe(){if(t7)return TI;t7=1,TI=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return TI}var CI,n7;function UUe(){if(n7)return CI;n7=1,CI=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return CI}var kI,r7;function BUe(){if(r7)return kI;r7=1,kI=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return kI}var xI,a7;function WUe(){if(a7)return xI;a7=1,xI=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return xI}var _I,i7;function zUe(){if(i7)return _I;i7=1,_I=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(n){var r=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:r,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};n.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:r,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:r,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},n.languages.nani=n.languages.naniscript,n.hooks.add("after-tokenize",function(l){var u=l.tokens;u.forEach(function(d){if(typeof d!="string"&&d.type==="generic-text"){var f=o(d);i(f)||(d.type="bad-line",d.content=f)}})});function i(l){for(var u="[]{}",d=[],f=0;f=&|$!]/}}return OI}var RI,s7;function HUe(){if(s7)return RI;s7=1,RI=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return RI}var PI,l7;function VUe(){if(l7)return PI;l7=1,PI=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return PI}var AI,u7;function GUe(){if(u7)return AI;u7=1,AI=e,e.displayName="nginx",e.aliases=[];function e(t){(function(n){var r=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;n.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:r}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:r}},punctuation:/[{};]/}})(t)}return AI}var NI,c7;function YUe(){if(c7)return NI;c7=1,NI=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return NI}var MI,d7;function KUe(){if(d7)return MI;d7=1,MI=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return MI}var II,f7;function XUe(){if(f7)return II;f7=1,II=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return II}var DI,p7;function QUe(){if(p7)return DI;p7=1;var e=Kv();DI=t,t.displayName="objectivec",t.aliases=["objc"];function t(n){n.register(e),n.languages.objectivec=n.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete n.languages.objectivec["class-name"],n.languages.objc=n.languages.objectivec}return DI}var $I,h7;function JUe(){if(h7)return $I;h7=1,$I=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return $I}var LI,m7;function ZUe(){if(m7)return LI;m7=1;var e=Kv();LI=t,t.displayName="opencl",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.opencl=r.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),r.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};r.languages.insertBefore("c","keyword",a),r.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},r.languages.insertBefore("cpp","keyword",a))})(n)}return LI}var FI,g7;function e6e(){if(g7)return FI;g7=1,FI=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return FI}var jI,v7;function t6e(){if(v7)return jI;v7=1,jI=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return jI}var UI,y7;function n6e(){if(y7)return UI;y7=1,UI=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:(function(){var n=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return n=n.map(function(r){return r.split("").join(" *")}).join("|"),RegExp("\\b(?:"+n+")\\b")})(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return UI}var BI,b7;function r6e(){if(b7)return BI;b7=1,BI=e,e.displayName="parser",e.aliases=[];function e(t){(function(n){var r=n.languages.parser=n.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});r=n.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:r.keyword,variable:r.variable,function:r.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:r.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:r.punctuation}}}),n.languages.insertBefore("inside","punctuation",{expression:r.expression,keyword:r.keyword,variable:r.variable,function:r.function,escape:r.escape,"parser-punctuation":{pattern:r.punctuation,alias:"punctuation"}},r.tag.inside["attr-value"])})(t)}return BI}var WI,w7;function a6e(){if(w7)return WI;w7=1,WI=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return WI}var zI,S7;function i6e(){if(S7)return zI;S7=1,zI=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(n){var r=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return r}),i=n.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(l,u){return l[u]=i[u],l},{});i["class-name"].forEach(function(l){l.inside=o})})(t)}return zI}var qI,E7;function o6e(){if(E7)return qI;E7=1,qI=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return qI}var HI,T7;function s6e(){if(T7)return HI;T7=1,HI=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return HI}var VI,C7;function l6e(){if(C7)return VI;C7=1,VI=e,e.displayName="perl",e.aliases=[];function e(t){(function(n){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;n.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return VI}var GI,k7;function u6e(){if(k7)return GI;k7=1;var e=z_();GI=t,t.displayName="phpExtras",t.aliases=[];function t(n){n.register(e),n.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return GI}var YI,x7;function c6e(){if(x7)return YI;x7=1;var e=z_(),t=W_();YI=n,n.displayName="phpdoc",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){var i=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+i+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+i),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)})(r)}return YI}var KI,_7;function d6e(){if(_7)return KI;_7=1;var e=Gj();KI=t,t.displayName="plsql",t.aliases=[];function t(n){n.register(e),n.languages.plsql=n.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),n.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return KI}var XI,O7;function f6e(){if(O7)return XI;O7=1,XI=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return XI}var QI,R7;function p6e(){if(R7)return QI;R7=1,QI=e,e.displayName="powershell",e.aliases=[];function e(t){(function(n){var r=n.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};r.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:r},boolean:r.boolean,variable:r.variable}})(t)}return QI}var JI,P7;function h6e(){if(P7)return JI;P7=1,JI=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return JI}var ZI,A7;function m6e(){if(A7)return ZI;A7=1,ZI=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return ZI}var eD,N7;function g6e(){if(N7)return eD;N7=1,eD=e,e.displayName="promql",e.aliases=[];function e(t){(function(n){var r=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],i=["offset"],o=r.concat(a,i);n.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return eD}var tD,M7;function v6e(){if(M7)return tD;M7=1,tD=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return tD}var nD,I7;function y6e(){if(I7)return nD;I7=1,nD=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(n){var r=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:r}},builtin:r,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return nD}var rD,D7;function b6e(){if(D7)return rD;D7=1,rD=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return rD}var aD,$7;function w6e(){if($7)return aD;$7=1,aD=e,e.displayName="pug",e.aliases=[];function e(t){(function(n){n.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:n.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:n.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:n.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:n.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:n.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:n.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:n.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},o=0,l=a.length;o",function(){return u.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[u.language,"language-"+u.language],inside:n.languages[u.language]}}})}n.languages.insertBefore("pug","filter",i)})(t)}return aD}var iD,L7;function S6e(){if(L7)return iD;L7=1,iD=e,e.displayName="puppet",e.aliases=[];function e(t){(function(n){n.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var r=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:n.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];n.languages.puppet.heredoc[0].inside.interpolation=r,n.languages.puppet.string.inside["double-quoted"].inside.interpolation=r})(t)}return iD}var oD,F7;function E6e(){if(F7)return oD;F7=1,oD=e,e.displayName="pure",e.aliases=[];function e(t){(function(n){n.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var r=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;r.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),n.languages[o]){var l={};l["inline-lang-"+o]={pattern:RegExp(a.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:n.util.clone(n.languages.pure["inline-lang"].inside)},l["inline-lang-"+o].inside.rest=n.util.clone(n.languages[o]),n.languages.insertBefore("pure","inline-lang",l)}}),n.languages.c&&(n.languages.pure["inline-lang"].inside.rest=n.util.clone(n.languages.c))})(t)}return oD}var sD,j7;function T6e(){if(j7)return sD;j7=1,sD=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return sD}var lD,U7;function C6e(){if(U7)return lD;U7=1;var e=Kj();lD=t,t.displayName="purescript",t.aliases=["purs"];function t(n){n.register(e),n.languages.purescript=n.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[n.languages.haskell.operator[0],n.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),n.languages.purs=n.languages.purescript}return lD}var uD,B7;function k6e(){if(B7)return uD;B7=1,uD=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return uD}var cD,W7;function x6e(){if(W7)return cD;W7=1,cD=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return cD}var dD,z7;function _6e(){if(z7)return dD;z7=1,dD=e,e.displayName="qml",e.aliases=[];function e(t){(function(n){for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return r}).replace(//g,function(){return a}),o=0;o<2;o++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),n.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:n.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return dD}var fD,q7;function O6e(){if(q7)return fD;q7=1,fD=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return fD}var pD,H7;function R6e(){if(H7)return pD;H7=1,pD=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(n){function r(v,E){return v.replace(/<<(\d+)>>/g,function(T,C){return"(?:"+E[+C]+")"})}function a(v,E,T){return RegExp(r(v,E),"")}function i(v,E){for(var T=0;T>/g,function(){return"(?:"+v+")"});return v.replace(/<>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function l(v){return"\\b(?:"+v.trim().replace(/ /g,"|")+")\\b"}var u=RegExp(l(o.type+" "+o.other)),d=/\b[A-Za-z_]\w*\b/.source,f=r(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[d]),g={keyword:u,punctuation:/[<>()?,.:[\]]/},y=/"(?:\\.|[^\\"])*"/.source;n.languages.qsharp=n.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[y]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[f]),lookbehind:!0,inside:g},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[f]),lookbehind:!0,inside:g}],keyword:u,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),n.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var h=i(r(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[y]),2);n.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[h]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[h]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:n.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return pD}var hD,V7;function P6e(){if(V7)return hD;V7=1,hD=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return hD}var mD,G7;function A6e(){if(G7)return mD;G7=1;var e=Zj();mD=t,t.displayName="racket",t.aliases=["rkt"];function t(n){n.register(e),n.languages.racket=n.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),n.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),n.languages.rkt=n.languages.racket}return mD}var gD,Y7;function N6e(){if(Y7)return gD;Y7=1,gD=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return gD}var vD,K7;function M6e(){if(K7)return vD;K7=1,vD=e,e.displayName="regex",e.aliases=[];function e(t){(function(n){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},l="(?:[^\\\\-]|"+a.source+")",u=RegExp(l+"-"+l),d={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:u,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":o,escape:a}},"special-escape":r,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":d}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return yD}var bD,Q7;function D6e(){if(Q7)return bD;Q7=1,bD=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return bD}var wD,J7;function $6e(){if(J7)return wD;J7=1,wD=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return wD}var SD,Z7;function L6e(){if(Z7)return SD;Z7=1,SD=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return SD}var ED,eV;function F6e(){if(eV)return ED;eV=1,ED=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return ED}var TD,tV;function j6e(){if(tV)return TD;tV=1,TD=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(n){var r={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(d,f){var g={};g["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var y in f)g[y]=f[y];return g.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},g.variable=a,g.comment=r,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return d}),"im"),alias:"section",inside:g}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},l={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},u={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};n.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":l,documentation:o,property:u}),keywords:i("Keywords",{"keyword-name":l,documentation:o,property:u}),tasks:i("Tasks",{"task-name":l,documentation:o,property:u}),comment:r},n.languages.robot=n.languages.robotframework})(t)}return TD}var CD,nV;function U6e(){if(nV)return CD;nV=1,CD=e,e.displayName="rust",e.aliases=[];function e(t){(function(n){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)r=r.replace(//g,function(){return r});r=r.replace(//g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string})(t)}return CD}var kD,rV;function B6e(){if(rV)return kD;rV=1,kD=e,e.displayName="sas",e.aliases=[];function e(t){(function(n){var r=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(r+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},l={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},u={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},d=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],f={pattern:RegExp(r),greedy:!0},g=/[$%@.(){}\[\];,\\]/,y={pattern:/%?\b\w+(?=\()/,alias:"keyword"},h={function:y,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":i,punctuation:g,string:f},v={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},E={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},T={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},C={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},k=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,_={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return k}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return k}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:d,function:y,"arg-value":h["arg-value"],operator:h.operator,argument:h.arg,number:a,"numeric-constant":i,punctuation:g,string:f}},A={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};n.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return r}),"im"),alias:"language-sql",inside:n.languages.sql},"global-statements":T,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-groovy",inside:n.languages.groovy},keyword:A,"submit-statement":C,"global-statements":T,number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,alias:"language-lua",inside:n.languages.lua},keyword:A,"submit-statement":C,"global-statements":T,number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:d,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:h}},"cas-actions":_,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:h},step:u,keyword:A,function:y,format:v,altformat:E,"global-statements":T,number:a,"numeric-constant":i,punctuation:g,string:f}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return r}),"im"),lookbehind:!0,inside:h},"macro-keyword":l,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":l,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:g}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:d,number:a,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:h},"cas-actions":_,comment:d,function:y,format:v,altformat:E,"numeric-constant":i,datetime:{pattern:RegExp(r+"(?:dt?|t)"),alias:"number"},string:f,step:u,keyword:A,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:g}})(t)}return kD}var xD,aV;function W6e(){if(aV)return xD;aV=1,xD=e,e.displayName="sass",e.aliases=[];function e(t){(function(n){n.languages.sass=n.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),n.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete n.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];n.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:a,important:n.languages.sass.important}}}),delete n.languages.sass.property,delete n.languages.sass.important,n.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return xD}var _D,iV;function z6e(){if(iV)return _D;iV=1;var e=Xj();_D=t,t.displayName="scala",t.aliases=[];function t(n){n.register(e),n.languages.scala=n.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),n.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.scala}}},string:/[\s\S]+/}}}),delete n.languages.scala["class-name"],delete n.languages.scala.function}return _D}var OD,oV;function q6e(){if(oV)return OD;oV=1,OD=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return OD}var RD,sV;function H6e(){if(sV)return RD;sV=1;var e=vre();RD=t,t.displayName="shellSession",t.aliases=[];function t(n){n.register(e),(function(r){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");r.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:r.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},r.languages["sh-session"]=r.languages.shellsession=r.languages["shell-session"]})(n)}return RD}var PD,lV;function V6e(){if(lV)return PD;lV=1,PD=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return PD}var AD,uV;function G6e(){if(uV)return AD;uV=1,AD=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return AD}var ND,cV;function Y6e(){if(cV)return ND;cV=1;var e=cs();ND=t,t.displayName="smarty",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:r.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},r.languages.smarty["embedded-php"].inside.smarty.inside=r.languages.smarty,r.languages.smarty.string[0].inside.interpolation.inside.expression.inside=r.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,i=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return a.source}),"g");r.hooks.add("before-tokenize",function(o){var l="{literal}",u="{/literal}",d=!1;r.languages["markup-templating"].buildPlaceholders(o,"smarty",i,function(f){return f===u&&(d=!1),d?!1:(f===l&&(d=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})})(n)}return ND}var MD,dV;function K6e(){if(dV)return MD;dV=1,MD=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(n){var r=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;n.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return r.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:r,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},n.languages.sml["class-name"][0].inside=n.languages.sml,n.languages.smlnj=n.languages.sml})(t)}return MD}var ID,fV;function X6e(){if(fV)return ID;fV=1,ID=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return ID}var DD,pV;function Q6e(){if(pV)return DD;pV=1,DD=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(n){var r={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:r}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:r}},guid:r,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]})(t)}return DD}var $D,hV;function J6e(){if(hV)return $D;hV=1;var e=cs();$D=t,t.displayName="soy",t.aliases=[];function t(n){n.register(e),(function(r){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;r.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:i,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:i,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},r.hooks.add("before-tokenize",function(o){var l=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,u="{literal}",d="{/literal}",f=!1;r.languages["markup-templating"].buildPlaceholders(o,"soy",l,function(g){return g===d&&(f=!1),f?!1:(g===u&&(f=!0),!0)})}),r.hooks.add("after-tokenize",function(o){r.languages["markup-templating"].tokenizePlaceholders(o,"soy")})})(n)}return $D}var LD,mV;function Sre(){if(mV)return LD;mV=1,LD=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return LD}var FD,gV;function Z6e(){if(gV)return FD;gV=1;var e=Sre();FD=t,t.displayName="sparql",t.aliases=["rq"];function t(n){n.register(e),n.languages.sparql=n.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),n.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),n.languages.rq=n.languages.sparql}return FD}var jD,vV;function eBe(){if(vV)return jD;vV=1,jD=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return jD}var UD,yV;function tBe(){if(yV)return UD;yV=1,UD=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return UD}var BD,bV;function nBe(){if(bV)return BD;bV=1,BD=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return BD}var WD,wV;function rBe(){if(wV)return WD;wV=1,WD=e,e.displayName="stan",e.aliases=[];function e(t){(function(n){var r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;n.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},n.languages.stan.constraint.inside.expression.inside=n.languages.stan})(t)}return WD}var zD,SV;function aBe(){if(SV)return zD;SV=1,zD=e,e.displayName="stylus",e.aliases=[];function e(t){(function(n){var r={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},n.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return zD}var qD,EV;function iBe(){if(EV)return qD;EV=1,qD=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=t.languages.swift})}return qD}var HD,TV;function oBe(){if(TV)return HD;TV=1,HD=e,e.displayName="systemd",e.aliases=[];function e(t){(function(n){var r={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;n.languages.systemd={comment:r,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return HD}var VD,CV;function e4(){if(CV)return VD;CV=1,VD=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(n){function r(i,o,l){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:l}}}}function a(i){var o=n.languages[i],l="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:r("=",o,l),"class-feature":r("\\+",o,l),standard:r("",o,l)}}}}n.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return VD}var GD,kV;function sBe(){if(kV)return GD;kV=1;var e=e4(),t=U_();GD=n,n.displayName="t4Cs",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages.t4=r.languages["t4-cs"]=r.languages["t4-templating"].createT4("csharp")}return GD}var YD,xV;function Ere(){if(xV)return YD;xV=1;var e=yre();YD=t,t.displayName="vbnet",t.aliases=[];function t(n){n.register(e),n.languages.vbnet=n.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return YD}var KD,_V;function lBe(){if(_V)return KD;_V=1;var e=e4(),t=Ere();KD=n,n.displayName="t4Vb",n.aliases=[];function n(r){r.register(e),r.register(t),r.languages["t4-vb"]=r.languages["t4-templating"].createT4("vbnet")}return KD}var XD,OV;function Tre(){if(OV)return XD;OV=1,XD=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(n){var r=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+a.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(d,f){f=(f||"").replace(/m/g,"")+"m";var g=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return d});return RegExp(g,f)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+o+"|"+l+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(l),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(t)}return XD}var QD,RV;function uBe(){if(RV)return QD;RV=1;var e=Tre();QD=t,t.displayName="tap",t.aliases=[];function t(n){n.register(e),n.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:n.languages.yaml,alias:"language-yaml"}}}return QD}var JD,PV;function cBe(){if(PV)return JD;PV=1,JD=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return JD}var ZD,AV;function dBe(){if(AV)return ZD;AV=1,ZD=e,e.displayName="textile",e.aliases=[];function e(t){(function(n){var r=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(y,h){return RegExp(y.replace(//g,function(){return"(?:"+r+")"}).replace(//g,function(){return"(?:"+a+")"}),h||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:n.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},l=n.languages.textile=n.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),u=l.phrase.inside,d={inline:u.inline,link:u.link,image:u.image,footnote:u.footnote,acronym:u.acronym,mark:u.mark};l.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var f=u.inline.inside;f.bold.inside=d,f.italic.inside=d,f.inserted.inside=d,f.deleted.inside=d,f.span.inside=d;var g=u.table.inside;g.inline=d.inline,g.link=d.link,g.image=d.image,g.footnote=d.footnote,g.acronym=d.acronym,g.mark=d.mark})(t)}return ZD}var e$,NV;function fBe(){if(NV)return e$;NV=1,e$=e,e.displayName="toml",e.aliases=[];function e(t){(function(n){var r=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return r})}n.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return e$}var t$,MV;function pBe(){if(MV)return t$;MV=1,t$=e,e.displayName="tremor",e.aliases=[];function e(t){(function(n){n.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var r=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;n.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+r+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+r+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(r),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:n.languages.tremor}}},string:/[\s\S]+/}},n.languages.troy=n.languages.tremor,n.languages.trickle=n.languages.tremor})(t)}return t$}var n$,IV;function hBe(){if(IV)return n$;IV=1;var e=wre(),t=Qj();n$=n,n.displayName="tsx",n.aliases=[];function n(r){r.register(e),r.register(t),(function(a){var i=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var o=a.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0})(r)}return n$}var r$,DV;function mBe(){if(DV)return r$;DV=1;var e=cs();r$=t,t.displayName="tt2",t.aliases=[];function t(n){n.register(e),(function(r){r.languages.tt2=r.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),r.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),r.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),r.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete r.languages.tt2.string,r.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;r.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),r.hooks.add("after-tokenize",function(a){r.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})})(n)}return r$}var a$,$V;function gBe(){if($V)return a$;$V=1;var e=cs();a$=t,t.displayName="twig",t.aliases=[];function t(n){n.register(e),n.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},n.hooks.add("before-tokenize",function(r){if(r.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;n.languages["markup-templating"].buildPlaceholders(r,"twig",a)}}),n.hooks.add("after-tokenize",function(r){n.languages["markup-templating"].tokenizePlaceholders(r,"twig")})}return a$}var i$,LV;function vBe(){if(LV)return i$;LV=1,i$=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(n){var r=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;n.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:r}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:r,number:/^\d+$/,punctuation:/[,|:]/}},keyword:r,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},n.languages.tsconfig=n.languages.typoscript})(t)}return i$}var o$,FV;function yBe(){if(FV)return o$;FV=1,o$=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return o$}var s$,jV;function bBe(){if(jV)return s$;jV=1,s$=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return s$}var l$,UV;function wBe(){if(UV)return l$;UV=1,l$=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return l$}var u$,BV;function SBe(){if(BV)return u$;BV=1,u$=e,e.displayName="v",e.aliases=[];function e(t){(function(n){var r={pattern:/[\s\S]+/,inside:null};n.languages.v=n.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":r}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),r.inside=n.languages.v,n.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),n.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),n.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:n.languages.v.generic.inside}}}})})(t)}return u$}var c$,WV;function EBe(){if(WV)return c$;WV=1,c$=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return c$}var d$,zV;function TBe(){if(zV)return d$;zV=1,d$=e,e.displayName="velocity",e.aliases=[];function e(t){(function(n){n.languages.velocity=n.languages.extend("markup",{});var r={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};r.variable.inside={string:r.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:r.number,boolean:r.boolean,punctuation:r.punctuation},n.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:r}},variable:r.variable}),n.languages.velocity.tag.inside["attr-value"].inside.rest=n.languages.velocity})(t)}return d$}var f$,qV;function CBe(){if(qV)return f$;qV=1,f$=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return f$}var p$,HV;function kBe(){if(HV)return p$;HV=1,p$=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return p$}var h$,VV;function xBe(){if(VV)return h$;VV=1,h$=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return h$}var m$,GV;function _Be(){if(GV)return m$;GV=1,m$=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return m$}var g$,YV;function OBe(){if(YV)return g$;YV=1,g$=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return g$}var v$,KV;function RBe(){if(KV)return v$;KV=1,v$=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return v$}var y$,XV;function PBe(){if(XV)return y$;XV=1,y$=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(n){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};n.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in n.languages["web-idl"])o!=="class-name"&&(i[o]=n.languages["web-idl"][o]);n.languages.webidl=n.languages["web-idl"]})(t)}return y$}var b$,QV;function ABe(){if(QV)return b$;QV=1,b$=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return b$}var w$,JV;function NBe(){if(JV)return w$;JV=1,w$=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return w$}var S$,ZV;function MBe(){if(ZV)return S$;ZV=1,S$=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return S$}var E$,eG;function IBe(){if(eG)return E$;eG=1,E$=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(n){n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora})(t)}return E$}var T$,tG;function DBe(){if(tG)return T$;tG=1,T$=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(n){function r(l,u){n.languages[l]&&n.languages.insertBefore(l,"comment",{"doc-comment":u})}var a=n.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};r("csharp",i),r("fsharp",i),r("vbnet",o)})(t)}return T$}var C$,nG;function $Be(){if(nG)return C$;nG=1,C$=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return C$}var k$,rG;function LBe(){if(rG)return k$;rG=1,k$=e,e.displayName="xquery",e.aliases=[];function e(t){(function(n){n.languages.xquery=n.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),n.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,n.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,n.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,n.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:n.languages.xquery,alias:"language-xquery"};var r=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(r).join("")},a=function(i){for(var o=[],l=0;l0&&o[o.length-1].tagName===r(u.content[0].content[1])&&o.pop():u.content[u.content.length-1].content==="/>"||o.push({tagName:r(u.content[0].content[1]),openedBraces:0}):o.length>0&&u.type==="punctuation"&&u.content==="{"&&(!i[l+1]||i[l+1].type!=="punctuation"||i[l+1].content!=="{")&&(!i[l-1]||i[l-1].type!=="plain-text"||i[l-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&u.type==="punctuation"&&u.content==="}"?o[o.length-1].openedBraces--:u.type!=="comment"&&(d=!0)),(d||typeof u=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var f=r(u);l0&&(typeof i[l-1]=="string"||i[l-1].type==="plain-text")&&(f=r(i[l-1])+f,i.splice(l-1,1),l--),/^\s+$/.test(f)?i[l]=f:i[l]=new n.Token("plain-text",f,null,f)}u.content&&typeof u.content!="string"&&a(u.content)}};n.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(t)}return k$}var x$,aG;function FBe(){if(aG)return x$;aG=1,x$=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return x$}var _$,iG;function jBe(){if(iG)return _$;iG=1,_$=e,e.displayName="zig",e.aliases=[];function e(t){(function(n){function r(f){return function(){return f}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+a.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,l=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,r(o)),u=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,r(i)),d="(?!\\s)(?:!?\\s*(?:"+l+"\\s*)*"+u+")+";n.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,r(d)).replace(//g,r(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,r(d)).replace(//g,r(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},n.languages.zig["class-name"].forEach(function(f){f.inside===null&&(f.inside=n.languages.zig)})})(t)}return _$}var O$,oG;function UBe(){if(oG)return O$;oG=1;var e=nje();return O$=e,e.register(aje()),e.register(ije()),e.register(oje()),e.register(sje()),e.register(lje()),e.register(uje()),e.register(cje()),e.register(dje()),e.register(fje()),e.register(pje()),e.register(hje()),e.register(mje()),e.register(gje()),e.register(vje()),e.register(yje()),e.register(bje()),e.register(wje()),e.register(Sje()),e.register(Eje()),e.register(Tje()),e.register(Cje()),e.register(kje()),e.register(vre()),e.register(yre()),e.register(xje()),e.register(_je()),e.register(Oje()),e.register(Rje()),e.register(Pje()),e.register(Aje()),e.register(Nje()),e.register(Mje()),e.register(Ije()),e.register(Dje()),e.register(Kv()),e.register($je()),e.register(Lje()),e.register(Fje()),e.register(jje()),e.register(Uje()),e.register(Bje()),e.register(Wje()),e.register(zje()),e.register(qje()),e.register(Yj()),e.register(Hje()),e.register(U_()),e.register(Vje()),e.register(Gje()),e.register(Yje()),e.register(Kje()),e.register(Xje()),e.register(Qje()),e.register(Jje()),e.register(Zje()),e.register(e4e()),e.register(t4e()),e.register(n4e()),e.register(r4e()),e.register(a4e()),e.register(i4e()),e.register(o4e()),e.register(s4e()),e.register(l4e()),e.register(u4e()),e.register(c4e()),e.register(d4e()),e.register(f4e()),e.register(p4e()),e.register(h4e()),e.register(m4e()),e.register(g4e()),e.register(v4e()),e.register(y4e()),e.register(b4e()),e.register(w4e()),e.register(S4e()),e.register(E4e()),e.register(T4e()),e.register(C4e()),e.register(k4e()),e.register(x4e()),e.register(_4e()),e.register(O4e()),e.register(R4e()),e.register(P4e()),e.register(A4e()),e.register(N4e()),e.register(M4e()),e.register(I4e()),e.register(D4e()),e.register($4e()),e.register(L4e()),e.register(F4e()),e.register(Kj()),e.register(j4e()),e.register(U4e()),e.register(B4e()),e.register(W4e()),e.register(z4e()),e.register(q4e()),e.register(H4e()),e.register(V4e()),e.register(G4e()),e.register(Y4e()),e.register(K4e()),e.register(X4e()),e.register(Q4e()),e.register(J4e()),e.register(Z4e()),e.register(eUe()),e.register(tUe()),e.register(Xj()),e.register(nUe()),e.register(W_()),e.register(rUe()),e.register(aUe()),e.register(iUe()),e.register(oUe()),e.register(sUe()),e.register(lUe()),e.register(uUe()),e.register(Jj()),e.register(cUe()),e.register(dUe()),e.register(fUe()),e.register(wre()),e.register(pUe()),e.register(hUe()),e.register(mUe()),e.register(gUe()),e.register(vUe()),e.register(yUe()),e.register(bUe()),e.register(wUe()),e.register(SUe()),e.register(EUe()),e.register(TUe()),e.register(CUe()),e.register(kUe()),e.register(xUe()),e.register(_Ue()),e.register(OUe()),e.register(bre()),e.register(RUe()),e.register(PUe()),e.register(AUe()),e.register(cs()),e.register(NUe()),e.register(MUe()),e.register(IUe()),e.register(DUe()),e.register($Ue()),e.register(LUe()),e.register(FUe()),e.register(jUe()),e.register(UUe()),e.register(BUe()),e.register(WUe()),e.register(zUe()),e.register(qUe()),e.register(HUe()),e.register(VUe()),e.register(GUe()),e.register(YUe()),e.register(KUe()),e.register(XUe()),e.register(QUe()),e.register(JUe()),e.register(ZUe()),e.register(e6e()),e.register(t6e()),e.register(n6e()),e.register(r6e()),e.register(a6e()),e.register(i6e()),e.register(o6e()),e.register(s6e()),e.register(l6e()),e.register(u6e()),e.register(z_()),e.register(c6e()),e.register(d6e()),e.register(f6e()),e.register(p6e()),e.register(h6e()),e.register(m6e()),e.register(g6e()),e.register(v6e()),e.register(y6e()),e.register(b6e()),e.register(w6e()),e.register(S6e()),e.register(E6e()),e.register(T6e()),e.register(C6e()),e.register(k6e()),e.register(x6e()),e.register(_6e()),e.register(O6e()),e.register(R6e()),e.register(P6e()),e.register(A6e()),e.register(N6e()),e.register(M6e()),e.register(I6e()),e.register(D6e()),e.register($6e()),e.register(L6e()),e.register(F6e()),e.register(j6e()),e.register(B_()),e.register(U6e()),e.register(B6e()),e.register(W6e()),e.register(z6e()),e.register(Zj()),e.register(q6e()),e.register(H6e()),e.register(V6e()),e.register(G6e()),e.register(Y6e()),e.register(K6e()),e.register(X6e()),e.register(Q6e()),e.register(J6e()),e.register(Z6e()),e.register(eBe()),e.register(tBe()),e.register(Gj()),e.register(nBe()),e.register(rBe()),e.register(aBe()),e.register(iBe()),e.register(oBe()),e.register(sBe()),e.register(e4()),e.register(lBe()),e.register(uBe()),e.register(cBe()),e.register(dBe()),e.register(fBe()),e.register(pBe()),e.register(hBe()),e.register(mBe()),e.register(Sre()),e.register(gBe()),e.register(Qj()),e.register(vBe()),e.register(yBe()),e.register(bBe()),e.register(wBe()),e.register(SBe()),e.register(EBe()),e.register(Ere()),e.register(TBe()),e.register(CBe()),e.register(kBe()),e.register(xBe()),e.register(_Be()),e.register(OBe()),e.register(RBe()),e.register(PBe()),e.register(ABe()),e.register(NBe()),e.register(MBe()),e.register(IBe()),e.register(DBe()),e.register($Be()),e.register(LBe()),e.register(Tre()),e.register(FBe()),e.register(jBe()),O$}var BBe=UBe();const WBe=Pc(BBe);var Cre=OLe(WBe,rje);Cre.supportedLanguages=RLe;const zBe={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#b6ad9a"},prolog:{color:"#b6ad9a"},doctype:{color:"#b6ad9a"},cdata:{color:"#b6ad9a"},punctuation:{color:"#b6ad9a"},namespace:{Opacity:".7"},tag:{color:"#063289"},operator:{color:"#063289"},number:{color:"#063289"},property:{color:"#b29762"},function:{color:"#b29762"},"tag-id":{color:"#2d2006"},selector:{color:"#2d2006"},"atrule-id":{color:"#2d2006"},"code.language-javascript":{color:"#896724"},"attr-name":{color:"#896724"},"code.language-css":{color:"#728fcb"},"code.language-scss":{color:"#728fcb"},boolean:{color:"#728fcb"},string:{color:"#728fcb"},entity:{color:"#728fcb",cursor:"help"},url:{color:"#728fcb"},".language-css .token.string":{color:"#728fcb"},".language-scss .token.string":{color:"#728fcb"},".style .token.string":{color:"#728fcb"},"attr-value":{color:"#728fcb"},keyword:{color:"#728fcb"},control:{color:"#728fcb"},directive:{color:"#728fcb"},unit:{color:"#728fcb"},statement:{color:"#728fcb"},regex:{color:"#728fcb"},atrule:{color:"#728fcb"},placeholder:{color:"#93abdc"},variable:{color:"#93abdc"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #2d2006",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#896724"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #896724",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#ece8de"},".line-numbers .line-numbers-rows > span:before":{color:"#cdc4b1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(45, 32, 6, 0.2) 70%, rgba(45, 32, 6, 0))"}},qBe={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},ra=({codeString:e})=>{var i;const t=(i=document==null?void 0:document.body)==null?void 0:i.classList.contains("dark-theme"),[n,r]=R.useState(!1),a=()=>{navigator.clipboard.writeText(e).then(()=>{r(!0),setTimeout(()=>r(!1),1500)})};return w.jsxs("div",{className:"code-viewer-container",children:[w.jsx("button",{className:"copy-button",onClick:a,children:n?"Copied!":"Copy"}),w.jsx(Cre,{language:"tsx",style:t?qBe:zBe,children:e})]})},Cd={Example1:`const Example1 = () => { const users = useMemo(() => generateUsers(100000), []); const querySource = createQuerySource(users); const [selectedValue, setValue] = usePresistentState<{ @@ -796,7 +796,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ); -}`};function OBe(){return w.jsxs("div",{children:[w.jsx("h2",{children:"FormSelect"}),w.jsx("p",{children:"Selecting items are one of the most important aspect of any application. You want always give the user the option to select, search, deselect items and assign that selection in some part of an DTO or entity."}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(RBe,{}),w.jsx(na,{codeString:Ed.Example1})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(PBe,{}),w.jsx(na,{codeString:Ed.Example2})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(ABe,{}),w.jsx(na,{codeString:Ed.Example3})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(NBe,{}),w.jsx(na,{codeString:Ed.Example4})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(MBe,{}),w.jsx(na,{codeString:Ed.Example5})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(IBe,{}),w.jsx(na,{codeString:Ed.Example6})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(DBe,{}),w.jsx(na,{codeString:Ed.Example9})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx($Be,{}),w.jsx(na,{codeString:Ed.Example8})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(LBe,{}),w.jsx(na,{codeString:Ed.Example7})]})]})}const YV=` +}`};function HBe(){return w.jsxs("div",{children:[w.jsx("h2",{children:"FormSelect"}),w.jsx("p",{children:"Selecting items are one of the most important aspect of any application. You want always give the user the option to select, search, deselect items and assign that selection in some part of an DTO or entity."}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(VBe,{}),w.jsx(ra,{codeString:Cd.Example1})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(GBe,{}),w.jsx(ra,{codeString:Cd.Example2})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(YBe,{}),w.jsx(ra,{codeString:Cd.Example3})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(KBe,{}),w.jsx(ra,{codeString:Cd.Example4})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(XBe,{}),w.jsx(ra,{codeString:Cd.Example5})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(QBe,{}),w.jsx(ra,{codeString:Cd.Example6})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(JBe,{}),w.jsx(ra,{codeString:Cd.Example9})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(ZBe,{}),w.jsx(ra,{codeString:Cd.Example8})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(e8e,{}),w.jsx(ra,{codeString:Cd.Example7})]})]})}const sG=` Ali Reza Negar Sina Parisa Mehdi Hamed Kiana Bahram Nima Farzad Samira Shahram Yasmin Dariush Elham Kamran Roya Shirin Behnaz Omid Nasrin Saeed Shahab Zohreh Babak Ladan Fariba Mohsen Mojgan Amir Hossein Farhad Leila @@ -804,7 +804,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Forough Parsa Sara Kourosh Fereshteh Niloofar Mehrazin Matin Armin Samin Pouya Anahita Shapour Laleh Dariya Navid Elnaz Siamak Shadi Behzad Rozita Hassan Tarannom Baharak Pejman Mansour Parsa Mobin Yasna Yashar Mahdieh - `.split(/\s+/),KV=` + `.split(/\s+/),lG=` Torabi Moghaddam Khosravi Jafari Gholami Ahmadi Shams Karimi Hashemi Zand Rajabi Shariatmadari Tavakoli Hedayati Amini Behnam Farhadi Yazdani Mirzaei Eskandari Shafiei Motamedi Monfared Eslami Rashidi Daneshgar Kianian @@ -812,7 +812,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Keshavarz Rezazadeh Kaviani Namdar Baniameri Kamali Moradi Azimi Sotoudeh Amiri Nikpour Fakhimi Karamat Taheri Javid Salimi Saidi Yousefi Rostami Najafi Ranjbar Darvishi Fallahian Ghanbari Panahi Hosseinzadeh Fattahi Rahbar - Sousa Oliveira Gomez Rodriguez`.split(/\s+/);function fre(e){return Array.from({length:e},(t,n)=>({name:`${YV[Math.floor(Math.random()*YV.length)]} ${KV[Math.floor(Math.random()*KV.length)]}`,id:n+1}))}const RBe=()=>{const e=R.useMemo(()=>fre(1e5),[]),t=Bs(e),[n,r]=Aj("samplefromstaticjson",e[0]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting from static array"}),w.jsx("p",{children:"In many cases, you already have an array your app hard coded, then you want to allow user to select from them, and you store them into a form or a react state. In this example we create large list of users, and preselect the first one."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(n,null,2)]}),w.jsx(ca,{value:n,label:"User",keyExtractor:a=>a.id,fnLabelFormat:a=>a.name,querySource:t,onChange:a=>{r(a)}}),w.jsx("div",{children:"Code:"})]})},PBe=()=>{const e=R.useMemo(()=>fre(1e4),[]),t=Bs(e),[n,r]=R.useState([e[0],e[1],e[2]]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting multiple from static array"}),w.jsx("p",{children:"In this example, we use a large list of users array from a static json, and then user can make multiple selection, and we keep that into a react state."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(n,null,2)]}),w.jsx(UF,{value:n,label:"Multiple users",keyExtractor:a=>a.id,fnLabelFormat:a=>a.name,querySource:t,onChange:a=>r(a)})]})},ABe=()=>{const[e,t]=R.useState();return w.jsxs("div",{children:[w.jsx("h2",{children:"Select multiple entities from Fireback generated code"}),w.jsx("p",{children:"As all of the entities generated via Fireback are searchable through the generated sdk, by using react-query, in this example we are selecting a role and storing it into a react state. There are samples to store that on formik form using formEffect later in this document."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(e,null,2)]}),w.jsx(UF,{value:e,label:"Multiple users",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:tf,onChange:n=>t(n)})]})},NBe=()=>{const[e,t]=Aj("Example4",void 0);return w.jsxs("div",{children:[w.jsx("h2",{children:"Select single entity (role) from backend"}),w.jsx("p",{children:"In this scenario we allow user to select a single entity and assign it to the react usestate."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(e,null,2)]}),w.jsx(ca,{value:e,label:"Select single role",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:tf,onChange:n=>t(n)})]})},MBe=()=>{class e{constructor(){this.user=void 0}}return e.Fields={user$:"user",user:{role:"user.role",roleId:"user.roleId"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting role with formEffect property"}),w.jsxs("p",{children:["A lot of time we are working with formik forms. In order to avoid value, onChange settings for each field, FormSelect and FormMultipleSelect allow for ",w.jsx("strong",{children:"formEffect"}),"property, which would automatically operate on the form values and modify them."]}),w.jsx(ss,{initialValues:{user:{}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(ca,{value:t.values.user.role,label:"Select single role",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:tf,formEffect:{field:e.Fields.user.role,form:t}})]})})]})},IBe=()=>{class e{constructor(){this.user=void 0}}return e.Fields={user$:"user",user:{roles:"user.roles"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting multiple role with formEffect"}),w.jsx("p",{children:"In this example, we allow a user to fill an array in the formik form, by selecting multiple roles and assign them to the user."}),w.jsx(ss,{initialValues:{user:{}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(UF,{value:t.values.user.roles,label:"Select multiple roles",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:tf,formEffect:{field:e.Fields.user.roles,form:t}})]})})]})},DBe=()=>{const[e,t]=Aj("samplePrimitivenumeric",3),n=Bs([{sisters:1},{sisters:2},{sisters:3}]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting and changing only pure primitives"}),w.jsx("p",{children:"There are reasons that you want to set a primitive such as string or number when working with input select. In fact, by default a lot of components out there in react community let you do this, and you need to build FormSelect and FormMultipleSelect yourself."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(e,null,2)]}),w.jsx(ca,{value:e,label:"Select a number",onChange:r=>t(r.sisters),keyExtractor:r=>r.sisters,fnLabelFormat:r=>r.sisters+" Sisters",querySource:n})]})},$Be=()=>{class e{constructor(){this.user=void 0}}e.Fields={user$:"user",user:{sisters:"user.sisters"}};const t=Bs([{sisters:1},{sisters:2},{sisters:3}]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting primitives with form effect"}),w.jsxs("p",{children:["Direct change, and read primitives such as string and number are available also as formeffect, just take a deeper look on the"," ",w.jsx("strong",{children:"beforeSet"})," function in this case. You need to take out the value you want in this callback."]}),w.jsx(ss,{initialValues:{user:{sisters:2}},onSubmit:n=>{alert(JSON.stringify(n,null,2))},children:n=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(n.values,null,2)]}),w.jsx(ca,{value:n.values.user.sisters,label:"Select how many sisters user has",keyExtractor:r=>r.sisters,fnLabelFormat:r=>r.sisters+" sisters!",querySource:t,formEffect:{field:e.Fields.user.sisters,form:n,beforeSet(r){return r.sisters}}})]})})]})},LBe=()=>{class e{constructor(){this.date=void 0}}return e.Fields={date:"date"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form Date demo"}),w.jsx("p",{children:"In many examples you want to select only a date string, nothing more. This input does that clearly."}),w.jsx(ss,{initialValues:{date:"2020-10-10"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(Gne,{value:t.values.date,label:"When did you born?",onChange:n=>t.setFieldValue(e.Fields.date,n)})]})})]})};function FBe(){return w.jsxs("div",{children:[w.jsx("h1",{children:"Demo screen"}),w.jsx("p",{children:"Here I put some demo and example of fireback components for react.js"}),w.jsx("div",{children:w.jsx(kl,{href:"/demo/modals",children:"Check modals"})}),w.jsx("div",{children:w.jsx(kl,{href:"/demo/form-select",children:"Check Selects"})}),w.jsx("div",{children:w.jsx(kl,{href:"/demo/form-date",children:"Check Date Inputs"})}),w.jsx("hr",{})]})}const uc={example1:`const example1 = () => { + Sousa Oliveira Gomez Rodriguez`.split(/\s+/);function kre(e){return Array.from({length:e},(t,n)=>({name:`${sG[Math.floor(Math.random()*sG.length)]} ${lG[Math.floor(Math.random()*lG.length)]}`,id:n+1}))}const VBe=()=>{const e=R.useMemo(()=>kre(1e5),[]),t=zs(e),[n,r]=qj("samplefromstaticjson",e[0]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting from static array"}),w.jsx("p",{children:"In many cases, you already have an array your app hard coded, then you want to allow user to select from them, and you store them into a form or a react state. In this example we create large list of users, and preselect the first one."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(n,null,2)]}),w.jsx(da,{value:n,label:"User",keyExtractor:a=>a.id,fnLabelFormat:a=>a.name,querySource:t,onChange:a=>{r(a)}}),w.jsx("div",{children:"Code:"})]})},GBe=()=>{const e=R.useMemo(()=>kre(1e4),[]),t=zs(e),[n,r]=R.useState([e[0],e[1],e[2]]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting multiple from static array"}),w.jsx("p",{children:"In this example, we use a large list of users array from a static json, and then user can make multiple selection, and we keep that into a react state."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(n,null,2)]}),w.jsx(JF,{value:n,label:"Multiple users",keyExtractor:a=>a.id,fnLabelFormat:a=>a.name,querySource:t,onChange:a=>r(a)})]})},YBe=()=>{const[e,t]=R.useState();return w.jsxs("div",{children:[w.jsx("h2",{children:"Select multiple entities from Fireback generated code"}),w.jsx("p",{children:"As all of the entities generated via Fireback are searchable through the generated sdk, by using react-query, in this example we are selecting a role and storing it into a react state. There are samples to store that on formik form using formEffect later in this document."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(e,null,2)]}),w.jsx(JF,{value:e,label:"Multiple users",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:af,onChange:n=>t(n)})]})},KBe=()=>{const[e,t]=qj("Example4",void 0);return w.jsxs("div",{children:[w.jsx("h2",{children:"Select single entity (role) from backend"}),w.jsx("p",{children:"In this scenario we allow user to select a single entity and assign it to the react usestate."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(e,null,2)]}),w.jsx(da,{value:e,label:"Select single role",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:af,onChange:n=>t(n)})]})},XBe=()=>{class e{constructor(){this.user=void 0}}return e.Fields={user$:"user",user:{role:"user.role",roleId:"user.roleId"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting role with formEffect property"}),w.jsxs("p",{children:["A lot of time we are working with formik forms. In order to avoid value, onChange settings for each field, FormSelect and FormMultipleSelect allow for ",w.jsx("strong",{children:"formEffect"}),"property, which would automatically operate on the form values and modify them."]}),w.jsx(ls,{initialValues:{user:{}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(da,{value:t.values.user.role,label:"Select single role",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:af,formEffect:{field:e.Fields.user.role,form:t}})]})})]})},QBe=()=>{class e{constructor(){this.user=void 0}}return e.Fields={user$:"user",user:{roles:"user.roles"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting multiple role with formEffect"}),w.jsx("p",{children:"In this example, we allow a user to fill an array in the formik form, by selecting multiple roles and assign them to the user."}),w.jsx(ls,{initialValues:{user:{}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(JF,{value:t.values.user.roles,label:"Select multiple roles",keyExtractor:n=>n.uniqueId,fnLabelFormat:n=>n.name,querySource:af,formEffect:{field:e.Fields.user.roles,form:t}})]})})]})},JBe=()=>{const[e,t]=qj("samplePrimitivenumeric",3),n=zs([{sisters:1},{sisters:2},{sisters:3}]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting and changing only pure primitives"}),w.jsx("p",{children:"There are reasons that you want to set a primitive such as string or number when working with input select. In fact, by default a lot of components out there in react community let you do this, and you need to build FormSelect and FormMultipleSelect yourself."}),w.jsxs("pre",{children:["Value: ",JSON.stringify(e,null,2)]}),w.jsx(da,{value:e,label:"Select a number",onChange:r=>t(r.sisters),keyExtractor:r=>r.sisters,fnLabelFormat:r=>r.sisters+" Sisters",querySource:n})]})},ZBe=()=>{class e{constructor(){this.user=void 0}}e.Fields={user$:"user",user:{sisters:"user.sisters"}};const t=zs([{sisters:1},{sisters:2},{sisters:3}]);return w.jsxs("div",{children:[w.jsx("h2",{children:"Selecting primitives with form effect"}),w.jsxs("p",{children:["Direct change, and read primitives such as string and number are available also as formeffect, just take a deeper look on the"," ",w.jsx("strong",{children:"beforeSet"})," function in this case. You need to take out the value you want in this callback."]}),w.jsx(ls,{initialValues:{user:{sisters:2}},onSubmit:n=>{alert(JSON.stringify(n,null,2))},children:n=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(n.values,null,2)]}),w.jsx(da,{value:n.values.user.sisters,label:"Select how many sisters user has",keyExtractor:r=>r.sisters,fnLabelFormat:r=>r.sisters+" sisters!",querySource:t,formEffect:{field:e.Fields.user.sisters,form:n,beforeSet(r){return r.sisters}}})]})})]})},e8e=()=>{class e{constructor(){this.date=void 0}}return e.Fields={date:"date"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form Date demo"}),w.jsx("p",{children:"In many examples you want to select only a date string, nothing more. This input does that clearly."}),w.jsx(ls,{initialValues:{date:"2020-10-10"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(ore,{value:t.values.date,label:"When did you born?",onChange:n=>t.setFieldValue(e.Fields.date,n)})]})})]})};function t8e(){return w.jsxs("div",{children:[w.jsx("h1",{children:"Demo screen"}),w.jsx("p",{children:"Here I put some demo and example of fireback components for react.js"}),w.jsx("div",{children:w.jsx(Pl,{href:"/demo/modals",children:"Check modals"})}),w.jsx("div",{children:w.jsx(Pl,{href:"/demo/form-select",children:"Check Selects"})}),w.jsx("div",{children:w.jsx(Pl,{href:"/demo/form-date",children:"Check Date Inputs"})}),w.jsx("hr",{})]})}const cc={example1:`const example1 = () => { return openDrawer(() =>
Hi, this is opened in a drawer
); }`,example2:`const example2 = () => { openDrawer( @@ -918,17 +918,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho promise.finally(() => { clearInterval(id); }); - }`},cc=({children:e})=>w.jsx("div",{style:{marginBottom:"70px"},children:e});function jBe(){const{openDrawer:e,openModal:t}=sF(),{confirmDrawer:n,confirmModal:r}=CJ(),a=()=>e(()=>w.jsx("div",{children:"Hi, this is opened in a drawer"})),i=()=>{e(()=>w.jsx("div",{children:"Hi, this is opened in a drawer, with a larger area and from left"}),{direction:"left",size:"40%"})},o=()=>{t(({resolve:E})=>{const[T,C]=R.useState("");return w.jsxs("form",{onSubmit:k=>k.preventDefault(),children:[w.jsxs("span",{children:["If you enter ",w.jsx("strong",{children:"ali"})," in the box, you'll see the example1 opening"]}),w.jsx(In,{autoFocus:!0,value:T,onChange:k=>C(k)}),w.jsx(Us,{onClick:()=>E(T),children:"Okay"})]})}).promise.then(({data:E})=>{if(E==="ali")return a();alert(E)})},l=()=>{a(),a(),i(),i()},u=()=>{t(({close:E})=>(R.useEffect(()=>{setTimeout(()=>{E()},3e3)},[]),w.jsx("span",{children:"I will disappear :)))))"})))},d=()=>{const{close:E,id:T}=t(()=>w.jsx("span",{children:"I will disappear by outside :)))))"}));setTimeout(()=>{alert(T),E()},2e3)},f=()=>{t(({setOnBeforeClose:E})=>{const[T,C]=R.useState(!1);return R.useEffect(()=>{E==null||E(()=>T?window.confirm("You have unsaved changes. Close anyway?"):!0)},[T]),w.jsxs("span",{children:["If you write anything here, it will be dirty and asks for quite.",w.jsx("input",{onChange:()=>C(!0)}),T?"Will ask":"Not dirty yet"]})})},g=()=>{n({title:"Confirm",description:"Are you to confirm? You still can cancel",confirmLabel:"Confirm",cancelLabel:"Cancel"}).promise.then(E=>{console.log(10,E)})},y=()=>{r({title:"Confirm",description:"Are you to confirm? You still can cancel",confirmLabel:"Confirm",cancelLabel:"Cancel"}).promise.then(E=>{console.log(10,E)})},h=R.useRef(0),v=()=>{const{updateData:E,promise:T}=e(({data:k})=>w.jsxs("span",{children:["Params: ",JSON.stringify(k)]})),C=setInterval(()=>{E({c:++h.current})},100);T.finally(()=>{clearInterval(C)})};return w.jsxs("div",{children:[w.jsx("h1",{children:"Demo Modals"}),w.jsx("p",{children:"Modals, Drawers are a major solved issue in the Fireback react.js. In here we make some examples. The core system is called `overlay`, can be used to show portals such as modal, drawer, alerts..."}),w.jsx("hr",{}),w.jsxs(cc,{children:[w.jsx("h2",{children:"Opening a drawer"}),w.jsx("p",{children:"Every component can be shown as modal, or in a drawer in Fireback."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>a(),children:"Open a text in drawer"}),w.jsx(na,{codeString:uc.example1})]}),w.jsxs(cc,{children:[w.jsx("h2",{children:"Opening a drawer, from left"}),w.jsx("p",{children:"Shows a drawer from left, also larger"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>i(),children:"Open a text in drawer"}),w.jsx(na,{codeString:uc.example2})]}),w.jsxs(cc,{children:[w.jsx("h2",{children:"Opening a modal, and get result"}),w.jsx("p",{children:"You can open a modal or drawer, and make some operation in it, and send back the result as a promise."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>o(),children:"Open a text in drawer"}),w.jsx(na,{codeString:uc.example3})]}),w.jsxs(cc,{children:[w.jsx("h2",{children:"Opening multiple"}),w.jsx("p",{children:"You can open multiple modals, or drawers, doesn't matter."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>l(),children:"Open 2 modal, and open 2 drawer"}),w.jsx(na,{codeString:uc.example4})]}),w.jsxs(cc,{children:[w.jsx("h2",{children:"Auto disappearing"}),w.jsx("p",{children:"A modal which disappears after 5 seconds"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>u(),children:"Run"}),w.jsx(na,{codeString:uc.example5})]}),w.jsxs(cc,{children:[w.jsx("h2",{children:"Control from outside"}),w.jsx("p",{children:"Sometimes you want to open a drawer, and then from outside component close it."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>d(),children:"Open but close from outside"}),w.jsx(na,{codeString:uc.example6})]}),w.jsxs(cc,{children:[w.jsx("h2",{children:"Prevent close"}),w.jsx("p",{children:"When a drawer or modal is open, you can prevent the close."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>f(),children:"Open but ask before close"}),w.jsx(na,{codeString:uc.example7})]}),w.jsxs(cc,{children:[w.jsx("h2",{children:"Confirm Dialog (drawer)"}),w.jsx("p",{children:"There is a set of ready to use dialogs, such as confirm"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>g(),children:"Open the confirm"}),w.jsx(na,{codeString:uc.example8})]}),w.jsxs(cc,{children:[w.jsx("h2",{children:"Confirm Dialog (modal)"}),w.jsx("p",{children:"There is a set of ready to use dialogs, such as confirm"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>y(),children:"Open the confirm"}),w.jsx(na,{codeString:uc.example9})]}),w.jsxs(cc,{children:[w.jsx("h2",{children:"Update params from outside"}),w.jsx("p",{children:"In rare cases, you might want to update the params from the outside."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>v(),children:"Open & Update name"}),w.jsx(na,{codeString:uc.example10})]}),w.jsx("br",{}),w.jsx("br",{}),w.jsx("br",{})]})}var g$={},P1={},A1={},Vg={};function yt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function he(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Re(e){he(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||ro(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function _c(e,t){he(2,arguments);var n=Re(e),r=yt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function qE(e,t){he(2,arguments);var n=Re(e),r=yt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),a),n)}function Eb(e,t){if(he(2,arguments),!t||ro(t)!=="object")return new Date(NaN);var n=t.years?yt(t.years):0,r=t.months?yt(t.months):0,a=t.weeks?yt(t.weeks):0,i=t.days?yt(t.days):0,o=t.hours?yt(t.hours):0,l=t.minutes?yt(t.minutes):0,u=t.seconds?yt(t.seconds):0,d=Re(e),f=r||n?qE(d,r+n*12):d,g=i||a?_c(f,i+a*7):f,y=l+o*60,h=u+y*60,v=h*1e3,E=new Date(g.getTime()+v);return E}function Hb(e){he(1,arguments);var t=Re(e),n=t.getDay();return n===0||n===6}function Wj(e){return he(1,arguments),Re(e).getDay()===0}function pre(e){return he(1,arguments),Re(e).getDay()===6}function hre(e,t){he(2,arguments);var n=Re(e),r=Hb(n),a=yt(t);if(isNaN(a))return new Date(NaN);var i=n.getHours(),o=a<0?-1:1,l=yt(a/5);n.setDate(n.getDate()+l*7);for(var u=Math.abs(a%5);u>0;)n.setDate(n.getDate()+o),Hb(n)||(u-=1);return r&&Hb(n)&&a!==0&&(pre(n)&&n.setDate(n.getDate()+(o<0?2:-1)),Wj(n)&&n.setDate(n.getDate()+(o<0?1:-2))),n.setHours(i),n}function HE(e,t){he(2,arguments);var n=Re(e).getTime(),r=yt(t);return new Date(n+r)}var UBe=36e5;function zj(e,t){he(2,arguments);var n=yt(t);return HE(e,n*UBe)}var mre={};function Xa(){return mre}function BBe(e){mre=e}function Ol(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Re(e),h=y.getDay(),v=(h=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function lh(e){he(1,arguments);var t=Pv(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=Vd(n);return r}function Lo(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function i0(e){he(1,arguments);var t=Re(e);return t.setHours(0,0,0,0),t}var WBe=864e5;function kc(e,t){he(2,arguments);var n=i0(e),r=i0(t),a=n.getTime()-Lo(n),i=r.getTime()-Lo(r);return Math.round((a-i)/WBe)}function gre(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=kc(n,lh(n)),i=new Date(0);return i.setFullYear(r,0,4),i.setHours(0,0,0,0),n=lh(i),n.setDate(n.getDate()+a),n}function vre(e,t){he(2,arguments);var n=yt(t);return gre(e,Pv(e)+n)}var zBe=6e4;function qj(e,t){he(2,arguments);var n=yt(t);return HE(e,n*zBe)}function Hj(e,t){he(2,arguments);var n=yt(t),r=n*3;return qE(e,r)}function yre(e,t){he(2,arguments);var n=yt(t);return HE(e,n*1e3)}function M_(e,t){he(2,arguments);var n=yt(t),r=n*7;return _c(e,r)}function bre(e,t){he(2,arguments);var n=yt(t);return qE(e,n*12)}function qBe(e,t,n){he(2,arguments);var r=Re(e==null?void 0:e.start).getTime(),a=Re(e==null?void 0:e.end).getTime(),i=Re(t==null?void 0:t.start).getTime(),o=Re(t==null?void 0:t.end).getTime();if(!(r<=a&&i<=o))throw new RangeError("Invalid interval");return n!=null&&n.inclusive?r<=o&&i<=a:ra||isNaN(a.getDate()))&&(n=a)}),n||new Date(NaN)}function HBe(e,t){var n=t.start,r=t.end;return he(2,arguments),Sre([wre([e,n]),r])}function VBe(e,t){he(2,arguments);var n=Re(e);if(isNaN(Number(n)))return NaN;var r=n.getTime(),a;t==null?a=[]:typeof t.forEach=="function"?a=t:a=Array.prototype.slice.call(t);var i,o;return a.forEach(function(l,u){var d=Re(l);if(isNaN(Number(d))){i=NaN,o=NaN;return}var f=Math.abs(r-d.getTime());(i==null||f0?1:a}function YBe(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=n.getTime()-r.getTime();return a>0?-1:a<0?1:a}var Vj=7,Ere=365.2425,Tre=Math.pow(10,8)*24*60*60*1e3,Wv=6e4,zv=36e5,I_=1e3,KBe=-Tre,Gj=60,Yj=3,Kj=12,Xj=4,VE=3600,D_=60,$_=VE*24,Cre=$_*7,Qj=$_*Ere,Jj=Qj/12,kre=Jj*3;function XBe(e){he(1,arguments);var t=e/Vj;return Math.floor(t)}function GE(e,t){he(2,arguments);var n=i0(e),r=i0(t);return n.getTime()===r.getTime()}function xre(e){return he(1,arguments),e instanceof Date||ro(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Gd(e){if(he(1,arguments),!xre(e)&&typeof e!="number")return!1;var t=Re(e);return!isNaN(Number(t))}function QBe(e,t){he(2,arguments);var n=Re(e),r=Re(t);if(!Gd(n)||!Gd(r))return NaN;var a=kc(n,r),i=a<0?-1:1,o=yt(a/7),l=o*5;for(r=_c(r,o*7);!GE(n,r);)l+=Hb(r)?0:i,r=_c(r,i);return l===0?0:l}function _re(e,t){return he(2,arguments),Pv(e)-Pv(t)}var JBe=6048e5;function ZBe(e,t){he(2,arguments);var n=Vd(e),r=Vd(t),a=n.getTime()-Lo(n),i=r.getTime()-Lo(r);return Math.round((a-i)/JBe)}function Nx(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return a*12+i}function w3(e){he(1,arguments);var t=Re(e),n=Math.floor(t.getMonth()/3)+1;return n}function Uk(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=n.getFullYear()-r.getFullYear(),i=w3(n)-w3(r);return a*4+i}var e8e=6048e5;function Mx(e,t,n){he(2,arguments);var r=Ol(e,n),a=Ol(t,n),i=r.getTime()-Lo(r),o=a.getTime()-Lo(a);return Math.round((i-o)/e8e)}function TS(e,t){he(2,arguments);var n=Re(e),r=Re(t);return n.getFullYear()-r.getFullYear()}function XV(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function Zj(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=XV(n,r),i=Math.abs(kc(n,r));n.setDate(n.getDate()-a*i);var o=+(XV(n,r)===-a),l=a*(i-o);return l===0?0:l}function L_(e,t){return he(2,arguments),Re(e).getTime()-Re(t).getTime()}var QV={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},t8e="trunc";function E0(e){return e?QV[e]:QV[t8e]}function Ix(e,t,n){he(2,arguments);var r=L_(e,t)/zv;return E0(n==null?void 0:n.roundingMethod)(r)}function Ore(e,t){he(2,arguments);var n=yt(t);return vre(e,-n)}function n8e(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=Tu(n,r),i=Math.abs(_re(n,r));n=Ore(n,a*i);var o=+(Tu(n,r)===-a),l=a*(i-o);return l===0?0:l}function Dx(e,t,n){he(2,arguments);var r=L_(e,t)/Wv;return E0(n==null?void 0:n.roundingMethod)(r)}function e4(e){he(1,arguments);var t=Re(e);return t.setHours(23,59,59,999),t}function t4(e){he(1,arguments);var t=Re(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Rre(e){he(1,arguments);var t=Re(e);return e4(t).getTime()===t4(t).getTime()}function F_(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=Tu(n,r),i=Math.abs(Nx(n,r)),o;if(i<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-a*i);var l=Tu(n,r)===-a;Rre(Re(e))&&i===1&&Tu(e,r)===1&&(l=!1),o=a*(i-Number(l))}return o===0?0:o}function r8e(e,t,n){he(2,arguments);var r=F_(e,t)/3;return E0(n==null?void 0:n.roundingMethod)(r)}function Vb(e,t,n){he(2,arguments);var r=L_(e,t)/1e3;return E0(n==null?void 0:n.roundingMethod)(r)}function a8e(e,t,n){he(2,arguments);var r=Zj(e,t)/7;return E0(n==null?void 0:n.roundingMethod)(r)}function Pre(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=Tu(n,r),i=Math.abs(TS(n,r));n.setFullYear(1584),r.setFullYear(1584);var o=Tu(n,r)===-a,l=a*(i-Number(o));return l===0?0:l}function Are(e,t){var n;he(1,arguments);var r=e||{},a=Re(r.start),i=Re(r.end),o=i.getTime();if(!(a.getTime()<=o))throw new RangeError("Invalid interval");var l=[],u=a;u.setHours(0,0,0,0);var d=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(d<1||isNaN(d))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=o;)l.push(Re(u)),u.setDate(u.getDate()+d),u.setHours(0,0,0,0);return l}function i8e(e,t){var n;he(1,arguments);var r=e||{},a=Re(r.start),i=Re(r.end),o=a.getTime(),l=i.getTime();if(!(o<=l))throw new RangeError("Invalid interval");var u=[],d=a;d.setMinutes(0,0,0);var f=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(f<1||isNaN(f))throw new RangeError("`options.step` must be a number greater than 1");for(;d.getTime()<=l;)u.push(Re(d)),d=zj(d,f);return u}function $x(e){he(1,arguments);var t=Re(e);return t.setSeconds(0,0),t}function o8e(e,t){var n;he(1,arguments);var r=$x(Re(e.start)),a=Re(e.end),i=r.getTime(),o=a.getTime();if(i>=o)throw new RangeError("Invalid interval");var l=[],u=r,d=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(d<1||isNaN(d))throw new RangeError("`options.step` must be a number equal to or greater than 1");for(;u.getTime()<=o;)l.push(Re(u)),u=qj(u,d);return l}function s8e(e){he(1,arguments);var t=e||{},n=Re(t.start),r=Re(t.end),a=r.getTime(),i=[];if(!(n.getTime()<=a))throw new RangeError("Invalid interval");var o=n;for(o.setHours(0,0,0,0),o.setDate(1);o.getTime()<=a;)i.push(Re(o)),o.setMonth(o.getMonth()+1);return i}function pE(e){he(1,arguments);var t=Re(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function l8e(e){he(1,arguments);var t=e||{},n=Re(t.start),r=Re(t.end),a=r.getTime();if(!(n.getTime()<=a))throw new RangeError("Invalid interval");var i=pE(n),o=pE(r);a=o.getTime();for(var l=[],u=i;u.getTime()<=a;)l.push(Re(u)),u=Hj(u,1);return l}function u8e(e,t){he(1,arguments);var n=e||{},r=Re(n.start),a=Re(n.end),i=a.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var o=Ol(r,t),l=Ol(a,t);o.setHours(15),l.setHours(15),i=l.getTime();for(var u=[],d=o;d.getTime()<=i;)d.setHours(0),u.push(Re(d)),d=M_(d,1),d.setHours(15);return u}function n4(e){he(1,arguments);for(var t=Are(e),n=[],r=0;r=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Re(e),h=y.getDay(),v=(h=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function k8e(e){he(1,arguments);var t=Ire(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=s0(n);return r}var x8e=6048e5;function Dre(e){he(1,arguments);var t=Re(e),n=s0(t).getTime()-k8e(t).getTime();return Math.round(n/x8e)+1}function Yd(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Re(e),h=y.getUTCDay(),v=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(g+1,0,h),v.setUTCHours(0,0,0,0);var E=Yd(v,t),T=new Date(0);T.setUTCFullYear(g,0,h),T.setUTCHours(0,0,0,0);var C=Yd(T,t);return f.getTime()>=E.getTime()?g+1:f.getTime()>=C.getTime()?g:g-1}function _8e(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),y=a4(e,t),h=new Date(0);h.setUTCFullYear(y,0,g),h.setUTCHours(0,0,0,0);var v=Yd(h,t);return v}var O8e=6048e5;function $re(e,t){he(1,arguments);var n=Re(e),r=Yd(n,t).getTime()-_8e(n,t).getTime();return Math.round(r/O8e)+1}function Zt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return Zt(n==="yy"?a%100:a,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Zt(r+1,2)},d:function(t,n){return Zt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Zt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Zt(t.getUTCHours(),n.length)},m:function(t,n){return Zt(t.getUTCMinutes(),n.length)},s:function(t,n){return Zt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,a=t.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Zt(i,n.length)}},pb={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},R8e={G:function(t,n,r){var a=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var a=t.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return Cd.y(t,n)},Y:function(t,n,r,a){var i=a4(t,a),o=i>0?i:1-i;if(n==="YY"){var l=o%100;return Zt(l,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):Zt(o,n.length)},R:function(t,n){var r=Ire(t);return Zt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Zt(r,n.length)},Q:function(t,n,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(a);case"QQ":return Zt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,n,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(a);case"qq":return Zt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,n,r){var a=t.getUTCMonth();switch(n){case"M":case"MM":return Cd.M(t,n);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(t,n,r){var a=t.getUTCMonth();switch(n){case"L":return String(a+1);case"LL":return Zt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(t,n,r,a){var i=$re(t,a);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):Zt(i,n.length)},I:function(t,n,r){var a=Dre(t);return n==="Io"?r.ordinalNumber(a,{unit:"week"}):Zt(a,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Cd.d(t,n)},D:function(t,n,r){var a=C8e(t);return n==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Zt(a,n.length)},E:function(t,n,r){var a=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(t,n,r,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return Zt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return Zt(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var a=t.getUTCDay(),i=a===0?7:a;switch(n){case"i":return String(i);case"ii":return Zt(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(t,n,r){var a=t.getUTCHours(),i=a/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var a=t.getUTCHours(),i;switch(a===12?i=pb.noon:a===0?i=pb.midnight:i=a/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var a=t.getUTCHours(),i;switch(a>=17?i=pb.evening:a>=12?i=pb.afternoon:a>=4?i=pb.morning:i=pb.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return Cd.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Cd.H(t,n)},K:function(t,n,r){var a=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Zt(a,n.length)},k:function(t,n,r){var a=t.getUTCHours();return a===0&&(a=24),n==="ko"?r.ordinalNumber(a,{unit:"hour"}):Zt(a,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Cd.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Cd.s(t,n)},S:function(t,n){return Cd.S(t,n)},X:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return ZV(o);case"XXXX":case"XX":return tv(o);case"XXXXX":case"XXX":default:return tv(o,":")}},x:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"x":return ZV(o);case"xxxx":case"xx":return tv(o);case"xxxxx":case"xxx":default:return tv(o,":")}},O:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+JV(o,":");case"OOOO":default:return"GMT"+tv(o,":")}},z:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+JV(o,":");case"zzzz":default:return"GMT"+tv(o,":")}},t:function(t,n,r,a){var i=a._originalDate||t,o=Math.floor(i.getTime()/1e3);return Zt(o,n.length)},T:function(t,n,r,a){var i=a._originalDate||t,o=i.getTime();return Zt(o,n.length)}};function JV(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;if(i===0)return n+String(a);var o=t;return n+String(a)+o+Zt(i,2)}function ZV(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Zt(Math.abs(e)/60,2)}return tv(e,t)}function tv(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e),i=Zt(Math.floor(a/60),2),o=Zt(a%60,2);return r+i+n+o}var eG=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Lre=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},P8e=function(t,n){var r=t.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return eG(t,n);var o;switch(a){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",eG(a,n)).replace("{{time}}",Lre(i,n))},S3={p:Lre,P:P8e},A8e=["D","DD"],N8e=["YY","YYYY"];function Fre(e){return A8e.indexOf(e)!==-1}function jre(e){return N8e.indexOf(e)!==-1}function Lx(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var M8e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i4=function(t,n,r){var a,i=M8e[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};function Ne(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var I8e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},D8e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$8e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},L8e={date:Ne({formats:I8e,defaultWidth:"full"}),time:Ne({formats:D8e,defaultWidth:"full"}),dateTime:Ne({formats:$8e,defaultWidth:"full"})},F8e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},U_=function(t,n,r,a){return F8e[t]};function oe(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",a;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var l=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[u]||e.values[l]}var d=e.argumentCallback?e.argumentCallback(t):t;return a[d]}}var j8e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},U8e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},B8e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},W8e={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},z8e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},q8e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},H8e=function(t,n){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},B_={ordinalNumber:H8e,era:oe({values:j8e,defaultWidth:"wide"}),quarter:oe({values:U8e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:B8e,defaultWidth:"wide"}),day:oe({values:W8e,defaultWidth:"wide"}),dayPeriod:oe({values:z8e,defaultWidth:"wide",formattingValues:q8e,defaultFormattingWidth:"wide"})};function se(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?G8e(l,function(g){return g.test(o)}):V8e(l,function(g){return g.test(o)}),d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;var f=t.slice(o.length);return{value:d,rest:f}}}function V8e(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function G8e(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var l=t.slice(a.length);return{value:o,rest:l}}}var Y8e=/^(\d+)(th|st|nd|rd)?/i,K8e=/\d+/i,X8e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Q8e={any:[/^b/i,/^(a|c)/i]},J8e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Z8e={any:[/1/i,/2/i,/3/i,/4/i]},e5e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},t5e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},n5e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},r5e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},a5e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},i5e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},W_={ordinalNumber:Xt({matchPattern:Y8e,parsePattern:K8e,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:X8e,defaultMatchWidth:"wide",parsePatterns:Q8e,defaultParseWidth:"any"}),quarter:se({matchPatterns:J8e,defaultMatchWidth:"wide",parsePatterns:Z8e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:e5e,defaultMatchWidth:"wide",parsePatterns:t5e,defaultParseWidth:"any"}),day:se({matchPatterns:n5e,defaultMatchWidth:"wide",parsePatterns:r5e,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:a5e,defaultMatchWidth:"any",parsePatterns:i5e,defaultParseWidth:"any"})},qv={code:"en-US",formatDistance:i4,formatLong:L8e,formatRelative:U_,localize:B_,match:W_,options:{weekStartsOn:0,firstWeekContainsDate:1}};const o5e=Object.freeze(Object.defineProperty({__proto__:null,default:qv},Symbol.toStringTag,{value:"Module"}));var s5e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,l5e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,u5e=/^'([^]*?)'?$/,c5e=/''/g,d5e=/[a-zA-Z]/;function Ure(e,t,n){var r,a,i,o,l,u,d,f,g,y,h,v,E,T,C,k,_,A;he(2,arguments);var P=String(t),N=Xa(),I=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:N.locale)!==null&&r!==void 0?r:qv,L=yt((i=(o=(l=(u=n==null?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:n==null||(d=n.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&l!==void 0?l:N.firstWeekContainsDate)!==null&&o!==void 0?o:(g=N.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=yt((h=(v=(E=(T=n==null?void 0:n.weekStartsOn)!==null&&T!==void 0?T:n==null||(C=n.locale)===null||C===void 0||(k=C.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&E!==void 0?E:N.weekStartsOn)!==null&&v!==void 0?v:(_=N.locale)===null||_===void 0||(A=_.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&h!==void 0?h:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var z=Re(e);if(!Gd(z))throw new RangeError("Invalid time value");var Q=Lo(z),le=o0(z,Q),re={firstWeekContainsDate:L,weekStartsOn:j,locale:I,_originalDate:z},ge=P.match(l5e).map(function(me){var W=me[0];if(W==="p"||W==="P"){var G=S3[W];return G(me,I.formatLong)}return me}).join("").match(s5e).map(function(me){if(me==="''")return"'";var W=me[0];if(W==="'")return f5e(me);var G=R8e[W];if(G)return!(n!=null&&n.useAdditionalWeekYearTokens)&&jre(me)&&Lx(me,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Fre(me)&&Lx(me,t,String(e)),G(le,me,I.localize,re);if(W.match(d5e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return me}).join("");return ge}function f5e(e){var t=e.match(u5e);return t?t[1].replace(c5e,"'"):e}function YE(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Bre(e){return YE({},e)}var tG=1440,p5e=2520,v$=43200,h5e=86400;function Wre(e,t,n){var r,a;he(2,arguments);var i=Xa(),o=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:i.locale)!==null&&r!==void 0?r:qv;if(!o.formatDistance)throw new RangeError("locale must contain formatDistance property");var l=Tu(e,t);if(isNaN(l))throw new RangeError("Invalid time value");var u=YE(Bre(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:l}),d,f;l>0?(d=Re(t),f=Re(e)):(d=Re(e),f=Re(t));var g=Vb(f,d),y=(Lo(f)-Lo(d))/1e3,h=Math.round((g-y)/60),v;if(h<2)return n!=null&&n.includeSeconds?g<5?o.formatDistance("lessThanXSeconds",5,u):g<10?o.formatDistance("lessThanXSeconds",10,u):g<20?o.formatDistance("lessThanXSeconds",20,u):g<40?o.formatDistance("halfAMinute",0,u):g<60?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",1,u):h===0?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",h,u);if(h<45)return o.formatDistance("xMinutes",h,u);if(h<90)return o.formatDistance("aboutXHours",1,u);if(h0?(f=Re(t),g=Re(e)):(f=Re(e),g=Re(t));var y=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),h;if(y==="floor")h=Math.floor;else if(y==="ceil")h=Math.ceil;else if(y==="round")h=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var v=g.getTime()-f.getTime(),E=v/nG,T=Lo(g)-Lo(f),C=(v-T)/nG,k=n==null?void 0:n.unit,_;if(k?_=String(k):E<1?_="second":E<60?_="minute":E=0&&a<=3))throw new RangeError("fractionDigits must be between 0 and 3 inclusively");var i=Zt(r.getDate(),2),o=Zt(r.getMonth()+1,2),l=r.getFullYear(),u=Zt(r.getHours(),2),d=Zt(r.getMinutes(),2),f=Zt(r.getSeconds(),2),g="";if(a>0){var y=r.getMilliseconds(),h=Math.floor(y*Math.pow(10,a-3));g="."+Zt(h,a)}var v="",E=r.getTimezoneOffset();if(E!==0){var T=Math.abs(E),C=Zt(yt(T/60),2),k=Zt(T%60,2),_=E<0?"+":"-";v="".concat(_).concat(C,":").concat(k)}else v="Z";return"".concat(l,"-").concat(o,"-").concat(i,"T").concat(u,":").concat(d,":").concat(f).concat(g).concat(v)}var T5e=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],C5e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k5e(e){if(arguments.length<1)throw new TypeError("1 arguments required, but only ".concat(arguments.length," present"));var t=Re(e);if(!Gd(t))throw new RangeError("Invalid time value");var n=T5e[t.getUTCDay()],r=Zt(t.getUTCDate(),2),a=C5e[t.getUTCMonth()],i=t.getUTCFullYear(),o=Zt(t.getUTCHours(),2),l=Zt(t.getUTCMinutes(),2),u=Zt(t.getUTCSeconds(),2);return"".concat(n,", ").concat(r," ").concat(a," ").concat(i," ").concat(o,":").concat(l,":").concat(u," GMT")}function x5e(e,t,n){var r,a,i,o,l,u,d,f,g,y;he(2,arguments);var h=Re(e),v=Re(t),E=Xa(),T=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:E.locale)!==null&&r!==void 0?r:qv,C=yt((i=(o=(l=(u=n==null?void 0:n.weekStartsOn)!==null&&u!==void 0?u:n==null||(d=n.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&l!==void 0?l:E.weekStartsOn)!==null&&o!==void 0?o:(g=E.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&i!==void 0?i:0);if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");if(!T.formatRelative)throw new RangeError("locale must contain formatRelative property");var k=kc(h,v);if(isNaN(k))throw new RangeError("Invalid time value");var _;k<-6?_="other":k<-1?_="lastWeek":k<0?_="yesterday":k<1?_="today":k<2?_="tomorrow":k<7?_="nextWeek":_="other";var A=o0(h,Lo(h)),P=o0(v,Lo(v)),N=T.formatRelative(_,A,P,{locale:T,weekStartsOn:C});return Ure(h,N,{locale:T,weekStartsOn:C})}function _5e(e){he(1,arguments);var t=yt(e);return Re(t*1e3)}function qre(e){he(1,arguments);var t=Re(e),n=t.getDate();return n}function z_(e){he(1,arguments);var t=Re(e),n=t.getDay();return n}function O5e(e){he(1,arguments);var t=Re(e),n=kc(t,r4(t)),r=n+1;return r}function Hre(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=t.getMonth(),a=new Date(0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}function Vre(e){he(1,arguments);var t=Re(e),n=t.getFullYear();return n%400===0||n%4===0&&n%100!==0}function R5e(e){he(1,arguments);var t=Re(e);return String(new Date(t))==="Invalid Date"?NaN:Vre(t)?366:365}function P5e(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=Math.floor(n/10)*10;return r}function A5e(){return YE({},Xa())}function N5e(e){he(1,arguments);var t=Re(e),n=t.getHours();return n}function Gre(e){he(1,arguments);var t=Re(e),n=t.getDay();return n===0&&(n=7),n}var M5e=6048e5;function Yre(e){he(1,arguments);var t=Re(e),n=Vd(t).getTime()-lh(t).getTime();return Math.round(n/M5e)+1}var I5e=6048e5;function D5e(e){he(1,arguments);var t=lh(e),n=lh(M_(t,60)),r=n.valueOf()-t.valueOf();return Math.round(r/I5e)}function $5e(e){he(1,arguments);var t=Re(e),n=t.getMilliseconds();return n}function L5e(e){he(1,arguments);var t=Re(e),n=t.getMinutes();return n}function F5e(e){he(1,arguments);var t=Re(e),n=t.getMonth();return n}var j5e=1440*60*1e3;function U5e(e,t){he(2,arguments);var n=e||{},r=t||{},a=Re(n.start).getTime(),i=Re(n.end).getTime(),o=Re(r.start).getTime(),l=Re(r.end).getTime();if(!(a<=i&&o<=l))throw new RangeError("Invalid interval");var u=ai?i:l,g=f-d;return Math.ceil(g/j5e)}function B5e(e){he(1,arguments);var t=Re(e),n=t.getSeconds();return n}function Kre(e){he(1,arguments);var t=Re(e),n=t.getTime();return n}function W5e(e){return he(1,arguments),Math.floor(Kre(e)/1e3)}function Xre(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Re(e),g=f.getFullYear(),y=Xa(),h=yt((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:y.firstWeekContainsDate)!==null&&r!==void 0?r:(u=y.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setFullYear(g+1,0,h),v.setHours(0,0,0,0);var E=Ol(v,t),T=new Date(0);T.setFullYear(g,0,h),T.setHours(0,0,0,0);var C=Ol(T,t);return f.getTime()>=E.getTime()?g+1:f.getTime()>=C.getTime()?g:g-1}function jx(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),y=Xre(e,t),h=new Date(0);h.setFullYear(y,0,g),h.setHours(0,0,0,0);var v=Ol(h,t);return v}var z5e=6048e5;function Qre(e,t){he(1,arguments);var n=Re(e),r=Ol(n,t).getTime()-jx(n,t).getTime();return Math.round(r/z5e)+1}function q5e(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=qre(e);if(isNaN(y))return NaN;var h=z_(j_(e)),v=g-h;v<=0&&(v+=7);var E=y-v;return Math.ceil(E/7)+1}function Jre(e){he(1,arguments);var t=Re(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function H5e(e,t){return he(1,arguments),Mx(Jre(e),j_(e),t)+1}function V5e(e){return he(1,arguments),Re(e).getFullYear()}function G5e(e){return he(1,arguments),Math.floor(e*zv)}function Y5e(e){return he(1,arguments),Math.floor(e*Gj)}function K5e(e){return he(1,arguments),Math.floor(e*VE)}function X5e(e){he(1,arguments);var t=Re(e.start),n=Re(e.end);if(isNaN(t.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(n.getTime()))throw new RangeError("End Date is invalid");var r={};r.years=Math.abs(Pre(n,t));var a=Tu(n,t),i=Eb(t,{years:a*r.years});r.months=Math.abs(F_(n,i));var o=Eb(i,{months:a*r.months});r.days=Math.abs(Zj(n,o));var l=Eb(o,{days:a*r.days});r.hours=Math.abs(Ix(n,l));var u=Eb(l,{hours:a*r.hours});r.minutes=Math.abs(Dx(n,u));var d=Eb(u,{minutes:a*r.minutes});return r.seconds=Math.abs(Vb(n,d)),r}function Q5e(e,t,n){var r;he(1,arguments);var a;return J5e(t)?a=t:n=t,new Intl.DateTimeFormat((r=n)===null||r===void 0?void 0:r.locale,a).format(e)}function J5e(e){return e!==void 0&&!("locale"in e)}function Z5e(e,t,n){he(2,arguments);var r=0,a,i=Re(e),o=Re(t);if(n!=null&&n.unit)a=n==null?void 0:n.unit,a==="second"?r=Vb(i,o):a==="minute"?r=Dx(i,o):a==="hour"?r=Ix(i,o):a==="day"?r=kc(i,o):a==="week"?r=Mx(i,o):a==="month"?r=Nx(i,o):a==="quarter"?r=Uk(i,o):a==="year"&&(r=TS(i,o));else{var l=Vb(i,o);Math.abs(l)r.getTime()}function tWe(e,t){he(2,arguments);var n=Re(e),r=Re(t);return n.getTime()Date.now()}function iG(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=RF(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,l;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return i=d.done,d},e:function(d){o=!0,l=d},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}}}var sWe=10,Zre=(function(){function e(){Xn(this,e),wt(this,"priority",void 0),wt(this,"subPriority",0)}return Qn(e,[{key:"validate",value:function(n,r){return!0}}]),e})(),lWe=(function(e){tr(n,e);var t=nr(n);function n(r,a,i,o,l){var u;return Xn(this,n),u=t.call(this),u.value=r,u.validateValue=a,u.setValue=i,u.priority=o,l&&(u.subPriority=l),u}return Qn(n,[{key:"validate",value:function(a,i){return this.validateValue(a,this.value,i)}},{key:"set",value:function(a,i,o){return this.setValue(a,i,this.value,o)}}]),n})(Zre),uWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0,r=n?t:1-t,a;if(r<=50)a=e||100;else{var i=r+50,o=Math.floor(i/100)*100,l=e>=i%100;a=e+o-(l?100:0)}return n?a:1-a}function nae(e){return e%400===0||e%4===0&&e%100!==0}var dWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var l=a.getUTCFullYear();if(o.isTwoDigitYear){var u=tae(o.year,l);return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}var d=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(d,0,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),fWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,l){var u=a4(a,l);if(o.isTwoDigitYear){var d=tae(o.year,u);return a.setUTCFullYear(d,0,l.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Yd(a,l)}var f=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(f,0,l.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Yd(a,l)}}]),n})(Sr),pWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),gWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),vWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),yWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr);function bWe(e,t,n){he(2,arguments);var r=Re(e),a=yt(t),i=$re(r,n)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var wWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,l){return Yd(bWe(a,o,l),l)}}]),n})(Sr);function SWe(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=Dre(n)-r;return n.setUTCDate(n.getUTCDate()-a*7),n}var EWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return s0(SWe(a,o))}}]),n})(Sr),TWe=[31,28,31,30,31,30,31,31,30,31,30,31],CWe=[31,29,31,30,31,30,31,31,30,31,30,31],kWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=CWe[u]:i>=1&&i<=TWe[u]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),xWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),n})(Sr);function s4(e,t,n){var r,a,i,o,l,u,d,f;he(2,arguments);var g=Xa(),y=yt((r=(a=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:g.weekStartsOn)!==null&&a!==void 0?a:(d=g.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Re(e),v=yt(t),E=h.getUTCDay(),T=v%7,C=(T+7)%7,k=(C=0&&i<=6}},{key:"set",value:function(a,i,o,l){return a=s4(a,o,l),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),OWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,l){return a=s4(a,o,l),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),RWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,l){return a=s4(a,o,l),a.setUTCHours(0,0,0,0),a}}]),n})(Sr);function PWe(e,t){he(2,arguments);var n=yt(t);n%7===0&&(n=n-7);var r=1,a=Re(e),i=a.getUTCDay(),o=n%7,l=(o+7)%7,u=(l=1&&i<=7}},{key:"set",value:function(a,i,o){return a=PWe(a,o),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),NWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var l=a.getUTCHours()>=12;return l&&o<12?a.setUTCHours(o+12,0,0,0):!l&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),n})(Sr),$We=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),n})(Sr),LWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var l=a.getUTCHours()>=12;return l&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),n})(Sr),FWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var l=o<=24?o%24:o;return a.setUTCHours(l,0,0,0),a}}]),n})(Sr),jWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),n})(Sr),UWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),n})(Sr),BWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Q=yt((v=(E=(T=(C=r==null?void 0:r.weekStartsOn)!==null&&C!==void 0?C:r==null||(k=r.locale)===null||k===void 0||(_=k.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&T!==void 0?T:L.weekStartsOn)!==null&&E!==void 0?E:(A=L.locale)===null||A===void 0||(P=A.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&v!==void 0?v:0);if(!(Q>=0&&Q<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(I==="")return N===""?Re(n):new Date(NaN);var le={firstWeekContainsDate:z,weekStartsOn:Q,locale:j},re=[new uWe],ge=I.match(YWe).map(function(fe){var xe=fe[0];if(xe in S3){var Ie=S3[xe];return Ie(fe,j.formatLong)}return fe}).join("").match(GWe),me=[],W=iG(ge),G;try{var q=function(){var xe=G.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&jre(xe)&&Lx(xe,I,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Fre(xe)&&Lx(xe,I,e);var Ie=xe[0],qe=VWe[Ie];if(qe){var tt=qe.incompatibleTokens;if(Array.isArray(tt)){var Ge=me.find(function(Et){return tt.includes(Et.token)||Et.token===Ie});if(Ge)throw new RangeError("The format string mustn't contain `".concat(Ge.fullToken,"` and `").concat(xe,"` at the same time"))}else if(qe.incompatibleTokens==="*"&&me.length>0)throw new RangeError("The format string mustn't contain `".concat(xe,"` and any other token at the same time"));me.push({token:Ie,fullToken:xe});var at=qe.run(N,xe,j.match,le);if(!at)return{v:new Date(NaN)};re.push(at.setter),N=at.rest}else{if(Ie.match(JWe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ie+"`");if(xe==="''"?xe="'":Ie==="'"&&(xe=ZWe(xe)),N.indexOf(xe)===0)N=N.slice(xe.length);else return{v:new Date(NaN)}}};for(W.s();!(G=W.n()).done;){var ce=q();if(ro(ce)==="object")return ce.v}}catch(fe){W.e(fe)}finally{W.f()}if(N.length>0&&QWe.test(N))return new Date(NaN);var H=re.map(function(fe){return fe.priority}).sort(function(fe,xe){return xe-fe}).filter(function(fe,xe,Ie){return Ie.indexOf(fe)===xe}).map(function(fe){return re.filter(function(xe){return xe.priority===fe}).sort(function(xe,Ie){return Ie.subPriority-xe.subPriority})}).map(function(fe){return fe[0]}),Y=Re(n);if(isNaN(Y.getTime()))return new Date(NaN);var ie=o0(Y,Lo(Y)),J={},ee=iG(H),Z;try{for(ee.s();!(Z=ee.n()).done;){var ue=Z.value;if(!ue.validate(ie,le))return new Date(NaN);var ke=ue.set(ie,J,le);Array.isArray(ke)?(ie=ke[0],YE(J,ke[1])):ie=ke}}catch(fe){ee.e(fe)}finally{ee.f()}return ie}function ZWe(e){return e.match(KWe)[1].replace(XWe,"'")}function eze(e,t,n){return he(2,arguments),Gd(rae(e,t,new Date,n))}function tze(e){return he(1,arguments),Re(e).getDay()===1}function nze(e){return he(1,arguments),Re(e).getTime()=r&&n<=a}function q_(e,t){he(2,arguments);var n=yt(t);return _c(e,-n)}function yze(e){return he(1,arguments),GE(e,q_(Date.now(),1))}function bze(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=9+Math.floor(n/10)*10;return t.setFullYear(r+1,0,0),t.setHours(0,0,0,0),t}function dae(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var y=Re(e),h=y.getDay(),v=(h2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],hk.timeZoneDelimiter.test(t.date)&&(t.date=e.split(hk.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var a=hk.timezone.exec(r);a?(t.time=r.replace(a[1],""),t.timezone=a[1]):t.time=r}return t}function Qze(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function Jze(e,t){if(t===null)return new Date(NaN);var n=e.match(Gze);if(!n)return new Date(NaN);var r=!!n[4],a=N1(n[1]),i=N1(n[2])-1,o=N1(n[3]),l=N1(n[4]),u=N1(n[5])-1;if(r)return iqe(t,l,u)?tqe(t,l,u):new Date(NaN);var d=new Date(0);return!rqe(t,i,o)||!aqe(t,a)?new Date(NaN):(d.setUTCFullYear(t,i,Math.max(a,o)),d)}function N1(e){return e?parseInt(e):1}function Zze(e){var t=e.match(Yze);if(!t)return NaN;var n=y$(t[1]),r=y$(t[2]),a=y$(t[3]);return oqe(n,r,a)?n*zv+r*Wv+a*1e3:NaN}function y$(e){return e&&parseFloat(e.replace(",","."))||0}function eqe(e){if(e==="Z")return 0;var t=e.match(Kze);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return sqe(r,a)?n*(r*zv+a*Wv):NaN}function tqe(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,i=(t-1)*7+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var nqe=[31,null,31,30,31,30,31,31,30,31,30,31];function fae(e){return e%400===0||e%4===0&&e%100!==0}function rqe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(nqe[t]||(fae(e)?29:28))}function aqe(e,t){return t>=1&&t<=(fae(e)?366:365)}function iqe(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function oqe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function sqe(e,t){return t>=0&&t<=59}function lqe(e){if(he(1,arguments),typeof e=="string"){var t=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return t?new Date(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4]-(+t[9]||0)*(t[8]=="-"?-1:1),+t[5]-(+t[10]||0)*(t[8]=="-"?-1:1),+t[6],+((t[7]||"0")+"00").substring(0,3))):new Date(NaN)}return Re(e)}function Oh(e,t){he(2,arguments);var n=z_(e)-t;return n<=0&&(n+=7),q_(e,n)}function uqe(e){return he(1,arguments),Oh(e,5)}function cqe(e){return he(1,arguments),Oh(e,1)}function dqe(e){return he(1,arguments),Oh(e,6)}function fqe(e){return he(1,arguments),Oh(e,0)}function pqe(e){return he(1,arguments),Oh(e,4)}function hqe(e){return he(1,arguments),Oh(e,2)}function mqe(e){return he(1,arguments),Oh(e,3)}function gqe(e){return he(1,arguments),Math.floor(e*Yj)}function vqe(e){he(1,arguments);var t=e/Xj;return Math.floor(t)}function yqe(e,t){var n;if(arguments.length<1)throw new TypeError("1 argument required, but only none provided present");var r=yt((n=t==null?void 0:t.nearestTo)!==null&&n!==void 0?n:1);if(r<1||r>30)throw new RangeError("`options.nearestTo` must be between 1 and 30");var a=Re(e),i=a.getSeconds(),o=a.getMinutes()+i/60,l=E0(t==null?void 0:t.roundingMethod),u=l(o/r)*r,d=o%r,f=Math.round(d/r)*r;return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),u+f)}function bqe(e){he(1,arguments);var t=e/VE;return Math.floor(t)}function wqe(e){return he(1,arguments),e*I_}function Sqe(e){he(1,arguments);var t=e/D_;return Math.floor(t)}function u4(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=n.getFullYear(),i=n.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var l=Hre(o);return n.setMonth(r,Math.min(i,l)),n}function Eqe(e,t){if(he(2,arguments),ro(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=Re(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=u4(n,t.month)),t.date!=null&&n.setDate(yt(t.date)),t.hours!=null&&n.setHours(yt(t.hours)),t.minutes!=null&&n.setMinutes(yt(t.minutes)),t.seconds!=null&&n.setSeconds(yt(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(yt(t.milliseconds)),n)}function Tqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setDate(r),n}function Cqe(e,t,n){var r,a,i,o,l,u,d,f;he(2,arguments);var g=Xa(),y=yt((r=(a=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:g.weekStartsOn)!==null&&a!==void 0?a:(d=g.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Re(e),v=yt(t),E=h.getDay(),T=v%7,C=(T+7)%7,k=7-y,_=v<0||v>6?v-(E+k)%7:(C+k)%7-(E+k)%7;return _c(h,_)}function kqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setMonth(0),n.setDate(r),n}function xqe(e){he(1,arguments);var t={},n=Xa();for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(e[a]===void 0?delete t[a]:t[a]=e[a]);BBe(t)}function _qe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setHours(r),n}function Oqe(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=Gre(n),i=r-a;return _c(n,i)}function Rqe(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=Yre(n)-r;return n.setDate(n.getDate()-a*7),n}function Pqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setMilliseconds(r),n}function Aqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setMinutes(r),n}function Nqe(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=Math.floor(n.getMonth()/3)+1,i=r-a;return u4(n,n.getMonth()+i*3)}function Mqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setSeconds(r),n}function Iqe(e,t,n){he(2,arguments);var r=Re(e),a=yt(t),i=Qre(r,n)-a;return r.setDate(r.getDate()-i*7),r}function Dqe(e,t,n){var r,a,i,o,l,u,d,f;he(2,arguments);var g=Xa(),y=yt((r=(a=(i=(o=n==null?void 0:n.firstWeekContainsDate)!==null&&o!==void 0?o:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&i!==void 0?i:g.firstWeekContainsDate)!==null&&a!==void 0?a:(d=g.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&r!==void 0?r:1),h=Re(e),v=yt(t),E=kc(h,jx(h,n)),T=new Date(0);return T.setFullYear(v,0,y),T.setHours(0,0,0,0),h=jx(T,n),h.setDate(h.getDate()+E),h}function $qe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function Lqe(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=Math.floor(n/10)*10;return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}function Fqe(){return i0(Date.now())}function jqe(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),a=new Date(0);return a.setFullYear(t,n,r+1),a.setHours(0,0,0,0),a}function Uqe(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),a=new Date(0);return a.setFullYear(t,n,r-1),a.setHours(0,0,0,0),a}function pae(e,t){he(2,arguments);var n=yt(t);return qE(e,-n)}function Bqe(e,t){if(he(2,arguments),!t||ro(t)!=="object")return new Date(NaN);var n=t.years?yt(t.years):0,r=t.months?yt(t.months):0,a=t.weeks?yt(t.weeks):0,i=t.days?yt(t.days):0,o=t.hours?yt(t.hours):0,l=t.minutes?yt(t.minutes):0,u=t.seconds?yt(t.seconds):0,d=pae(e,r+n*12),f=q_(d,i+a*7),g=l+o*60,y=u+g*60,h=y*1e3,v=new Date(f.getTime()-h);return v}function Wqe(e,t){he(2,arguments);var n=yt(t);return hre(e,-n)}function zqe(e,t){he(2,arguments);var n=yt(t);return zj(e,-n)}function qqe(e,t){he(2,arguments);var n=yt(t);return qj(e,-n)}function Hqe(e,t){he(2,arguments);var n=yt(t);return Hj(e,-n)}function Vqe(e,t){he(2,arguments);var n=yt(t);return yre(e,-n)}function Gqe(e,t){he(2,arguments);var n=yt(t);return M_(e,-n)}function Yqe(e,t){he(2,arguments);var n=yt(t);return bre(e,-n)}function Kqe(e){return he(1,arguments),Math.floor(e*Vj)}function Xqe(e){return he(1,arguments),Math.floor(e*Kj)}function Qqe(e){return he(1,arguments),Math.floor(e*Xj)}const Jqe=Object.freeze(Object.defineProperty({__proto__:null,add:Eb,addBusinessDays:hre,addDays:_c,addHours:zj,addISOWeekYears:vre,addMilliseconds:HE,addMinutes:qj,addMonths:qE,addQuarters:Hj,addSeconds:yre,addWeeks:M_,addYears:bre,areIntervalsOverlapping:qBe,clamp:HBe,closestIndexTo:VBe,closestTo:GBe,compareAsc:Tu,compareDesc:YBe,daysInWeek:Vj,daysInYear:Ere,daysToWeeks:XBe,differenceInBusinessDays:QBe,differenceInCalendarDays:kc,differenceInCalendarISOWeekYears:_re,differenceInCalendarISOWeeks:ZBe,differenceInCalendarMonths:Nx,differenceInCalendarQuarters:Uk,differenceInCalendarWeeks:Mx,differenceInCalendarYears:TS,differenceInDays:Zj,differenceInHours:Ix,differenceInISOWeekYears:n8e,differenceInMilliseconds:L_,differenceInMinutes:Dx,differenceInMonths:F_,differenceInQuarters:r8e,differenceInSeconds:Vb,differenceInWeeks:a8e,differenceInYears:Pre,eachDayOfInterval:Are,eachHourOfInterval:i8e,eachMinuteOfInterval:o8e,eachMonthOfInterval:s8e,eachQuarterOfInterval:l8e,eachWeekOfInterval:u8e,eachWeekendOfInterval:n4,eachWeekendOfMonth:c8e,eachWeekendOfYear:d8e,eachYearOfInterval:f8e,endOfDay:e4,endOfDecade:p8e,endOfHour:h8e,endOfISOWeek:m8e,endOfISOWeekYear:g8e,endOfMinute:v8e,endOfMonth:t4,endOfQuarter:y8e,endOfSecond:b8e,endOfToday:w8e,endOfTomorrow:S8e,endOfWeek:Mre,endOfYear:Nre,endOfYesterday:E8e,format:Ure,formatDistance:Wre,formatDistanceStrict:zre,formatDistanceToNow:m5e,formatDistanceToNowStrict:g5e,formatDuration:y5e,formatISO:b5e,formatISO9075:w5e,formatISODuration:S5e,formatRFC3339:E5e,formatRFC7231:k5e,formatRelative:x5e,fromUnixTime:_5e,getDate:qre,getDay:z_,getDayOfYear:O5e,getDaysInMonth:Hre,getDaysInYear:R5e,getDecade:P5e,getDefaultOptions:A5e,getHours:N5e,getISODay:Gre,getISOWeek:Yre,getISOWeekYear:Pv,getISOWeeksInYear:D5e,getMilliseconds:$5e,getMinutes:L5e,getMonth:F5e,getOverlappingDaysInIntervals:U5e,getQuarter:w3,getSeconds:B5e,getTime:Kre,getUnixTime:W5e,getWeek:Qre,getWeekOfMonth:q5e,getWeekYear:Xre,getWeeksInMonth:H5e,getYear:V5e,hoursToMilliseconds:G5e,hoursToMinutes:Y5e,hoursToSeconds:K5e,intervalToDuration:X5e,intlFormat:Q5e,intlFormatDistance:Z5e,isAfter:eWe,isBefore:tWe,isDate:xre,isEqual:nWe,isExists:rWe,isFirstDayOfMonth:aWe,isFriday:iWe,isFuture:oWe,isLastDayOfMonth:Rre,isLeapYear:Vre,isMatch:eze,isMonday:tze,isPast:nze,isSameDay:GE,isSameHour:aae,isSameISOWeek:iae,isSameISOWeekYear:rze,isSameMinute:oae,isSameMonth:sae,isSameQuarter:lae,isSameSecond:uae,isSameWeek:l4,isSameYear:cae,isSaturday:pre,isSunday:Wj,isThisHour:aze,isThisISOWeek:ize,isThisMinute:oze,isThisMonth:sze,isThisQuarter:lze,isThisSecond:uze,isThisWeek:cze,isThisYear:dze,isThursday:fze,isToday:pze,isTomorrow:hze,isTuesday:mze,isValid:Gd,isWednesday:gze,isWeekend:Hb,isWithinInterval:vze,isYesterday:yze,lastDayOfDecade:bze,lastDayOfISOWeek:wze,lastDayOfISOWeekYear:Sze,lastDayOfMonth:Jre,lastDayOfQuarter:Eze,lastDayOfWeek:dae,lastDayOfYear:Tze,lightFormat:Oze,max:wre,maxTime:Tre,milliseconds:Pze,millisecondsInHour:zv,millisecondsInMinute:Wv,millisecondsInSecond:I_,millisecondsToHours:Aze,millisecondsToMinutes:Nze,millisecondsToSeconds:Mze,min:Sre,minTime:KBe,minutesInHour:Gj,minutesToHours:Ize,minutesToMilliseconds:Dze,minutesToSeconds:$ze,monthsInQuarter:Yj,monthsInYear:Kj,monthsToQuarters:Lze,monthsToYears:Fze,nextDay:_h,nextFriday:jze,nextMonday:Uze,nextSaturday:Bze,nextSunday:Wze,nextThursday:zze,nextTuesday:qze,nextWednesday:Hze,parse:rae,parseISO:Vze,parseJSON:lqe,previousDay:Oh,previousFriday:uqe,previousMonday:cqe,previousSaturday:dqe,previousSunday:fqe,previousThursday:pqe,previousTuesday:hqe,previousWednesday:mqe,quartersInYear:Xj,quartersToMonths:gqe,quartersToYears:vqe,roundToNearestMinutes:yqe,secondsInDay:$_,secondsInHour:VE,secondsInMinute:D_,secondsInMonth:Jj,secondsInQuarter:kre,secondsInWeek:Cre,secondsInYear:Qj,secondsToHours:bqe,secondsToMilliseconds:wqe,secondsToMinutes:Sqe,set:Eqe,setDate:Tqe,setDay:Cqe,setDayOfYear:kqe,setDefaultOptions:xqe,setHours:_qe,setISODay:Oqe,setISOWeek:Rqe,setISOWeekYear:gre,setMilliseconds:Pqe,setMinutes:Aqe,setMonth:u4,setQuarter:Nqe,setSeconds:Mqe,setWeek:Iqe,setWeekYear:Dqe,setYear:$qe,startOfDay:i0,startOfDecade:Lqe,startOfHour:E3,startOfISOWeek:Vd,startOfISOWeekYear:lh,startOfMinute:$x,startOfMonth:j_,startOfQuarter:pE,startOfSecond:T3,startOfToday:Fqe,startOfTomorrow:jqe,startOfWeek:Ol,startOfWeekYear:jx,startOfYear:r4,startOfYesterday:Uqe,sub:Bqe,subBusinessDays:Wqe,subDays:q_,subHours:zqe,subISOWeekYears:Ore,subMilliseconds:o0,subMinutes:qqe,subMonths:pae,subQuarters:Hqe,subSeconds:Vqe,subWeeks:Gqe,subYears:Yqe,toDate:Re,weeksToDays:Kqe,yearsToMonths:Xqe,yearsToQuarters:Qqe},Symbol.toStringTag,{value:"Module"})),Hv=jt(Jqe);var sG;function H_(){if(sG)return Vg;sG=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.rangeShape=Vg.default=void 0;var e=o(Fs()),t=a(Nc()),n=a(ph()),r=Hv;function a(h){return h&&h.__esModule?h:{default:h}}function i(h){if(typeof WeakMap!="function")return null;var v=new WeakMap,E=new WeakMap;return(i=function(T){return T?E:v})(h)}function o(h,v){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var E=i(v);if(E&&E.has(h))return E.get(h);var T={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in h)if(k!=="default"&&Object.prototype.hasOwnProperty.call(h,k)){var _=C?Object.getOwnPropertyDescriptor(h,k):null;_&&(_.get||_.set)?Object.defineProperty(T,k,_):T[k]=h[k]}return T.default=h,E&&E.set(h,T),T}function l(){return l=Object.assign?Object.assign.bind():function(h){for(var v=1;v{const{day:C,onMouseDown:k,onMouseUp:_}=this.props;[13,32].includes(T.keyCode)&&(T.type==="keydown"?k(C):_(C))}),u(this,"handleMouseEvent",T=>{const{day:C,disabled:k,onPreviewChange:_,onMouseEnter:A,onMouseDown:P,onMouseUp:N}=this.props,I={};if(k){_();return}switch(T.type){case"mouseenter":A(C),_(C),I.hover=!0;break;case"blur":case"mouseleave":I.hover=!1;break;case"mousedown":I.active=!0,P(C);break;case"mouseup":T.stopPropagation(),I.active=!1,N(C);break;case"focus":_(C);break}Object.keys(I).length&&this.setState(I)}),u(this,"getClassNames",()=>{const{isPassive:T,isToday:C,isWeekend:k,isStartOfWeek:_,isEndOfWeek:A,isStartOfMonth:P,isEndOfMonth:N,disabled:I,styles:L}=this.props;return(0,n.default)(L.day,{[L.dayPassive]:T,[L.dayDisabled]:I,[L.dayToday]:C,[L.dayWeekend]:k,[L.dayStartOfWeek]:_,[L.dayEndOfWeek]:A,[L.dayStartOfMonth]:P,[L.dayEndOfMonth]:N,[L.dayHovered]:this.state.hover,[L.dayActive]:this.state.active})}),u(this,"renderPreviewPlaceholder",()=>{const{preview:T,day:C,styles:k}=this.props;if(!T)return null;const _=T.startDate?(0,r.endOfDay)(T.startDate):null,A=T.endDate?(0,r.startOfDay)(T.endDate):null,P=(!_||(0,r.isAfter)(C,_))&&(!A||(0,r.isBefore)(C,A)),N=!P&&(0,r.isSameDay)(C,_),I=!P&&(0,r.isSameDay)(C,A);return e.default.createElement("span",{className:(0,n.default)({[k.dayStartPreview]:N,[k.dayInPreview]:P,[k.dayEndPreview]:I}),style:{color:T.color}})}),u(this,"renderSelectionPlaceholders",()=>{const{styles:T,ranges:C,day:k}=this.props;return this.props.displayMode==="date"?(0,r.isSameDay)(this.props.day,this.props.date)?e.default.createElement("span",{className:T.selected,style:{color:this.props.color}}):null:C.reduce((A,P)=>{let N=P.startDate,I=P.endDate;N&&I&&(0,r.isBefore)(I,N)&&([N,I]=[I,N]),N=N?(0,r.endOfDay)(N):null,I=I?(0,r.startOfDay)(I):null;const L=(!N||(0,r.isAfter)(k,N))&&(!I||(0,r.isBefore)(k,I)),j=!L&&(0,r.isSameDay)(k,N),z=!L&&(0,r.isSameDay)(k,I);return L||j||z?[...A,{isStartEdge:j,isEndEdge:z,isInRange:L,...P}]:A},[]).map((A,P)=>e.default.createElement("span",{key:P,className:(0,n.default)({[T.startEdge]:A.isStartEdge,[T.endEdge]:A.isEndEdge,[T.inRange]:A.isInRange}),style:{color:A.color||this.props.color}}))}),this.state={hover:!1,active:!1}}render(){const{dayContentRenderer:v}=this.props;return e.default.createElement("button",l({type:"button",onMouseEnter:this.handleMouseEvent,onMouseLeave:this.handleMouseEvent,onFocus:this.handleMouseEvent,onMouseDown:this.handleMouseEvent,onMouseUp:this.handleMouseEvent,onBlur:this.handleMouseEvent,onPauseCapture:this.handleMouseEvent,onKeyDown:this.handleKeyEvent,onKeyUp:this.handleKeyEvent,className:this.getClassNames(this.props.styles)},this.props.disabled||this.props.isPassive?{tabIndex:-1}:{},{style:{color:this.props.color}}),this.renderSelectionPlaceholders(),this.renderPreviewPlaceholder(),e.default.createElement("span",{className:this.props.styles.dayNumber},(v==null?void 0:v(this.props.day))||e.default.createElement("span",null,(0,r.format)(this.props.day,this.props.dayDisplayFormat))))}};g.defaultProps={};const y=Vg.rangeShape=t.default.shape({startDate:t.default.object,endDate:t.default.object,color:t.default.string,key:t.default.string,autoFocus:t.default.bool,disabled:t.default.bool,showDateDisplay:t.default.bool});return g.propTypes={day:t.default.object.isRequired,dayDisplayFormat:t.default.string,date:t.default.object,ranges:t.default.arrayOf(y),preview:t.default.shape({startDate:t.default.object,endDate:t.default.object,color:t.default.string}),onPreviewChange:t.default.func,previewColor:t.default.string,disabled:t.default.bool,isPassive:t.default.bool,isToday:t.default.bool,isWeekend:t.default.bool,isStartOfWeek:t.default.bool,isEndOfWeek:t.default.bool,isStartOfMonth:t.default.bool,isEndOfMonth:t.default.bool,color:t.default.string,displayMode:t.default.oneOf(["dateRange","date"]),styles:t.default.object,onMouseDown:t.default.func,onMouseUp:t.default.func,onMouseEnter:t.default.func,dayContentRenderer:t.default.func},Vg.default=g,Vg}var M1={},Gg={},lG;function V_(){if(lG)return Gg;lG=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.calcFocusDate=r,Gg.findNextRangeIndex=a,Gg.generateStyles=o,Gg.getMonthDisplayRange=i;var e=n(ph()),t=Hv;function n(l){return l&&l.__esModule?l:{default:l}}function r(l,u){const{shownDate:d,date:f,months:g,ranges:y,focusedRange:h,displayMode:v}=u;let E;if(v==="dateRange"){const C=y[h[0]]||{};E={start:C.startDate,end:C.endDate}}else E={start:f,end:f};E.start=(0,t.startOfMonth)(E.start||new Date),E.end=(0,t.endOfMonth)(E.end||E.start);const T=E.start||E.end||d||new Date;return l?(0,t.differenceInCalendarMonths)(E.start,E.end)>g?l:T:d||T}function a(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;const d=l.findIndex((f,g)=>g>u&&f.autoFocus!==!1&&!f.disabled);return d!==-1?d:l.findIndex(f=>f.autoFocus!==!1&&!f.disabled)}function i(l,u,d){const f=(0,t.startOfMonth)(l,u),g=(0,t.endOfMonth)(l,u),y=(0,t.startOfWeek)(f,u);let h=(0,t.endOfWeek)(g,u);return d&&(0,t.differenceInCalendarDays)(h,y)<=34&&(h=(0,t.addDays)(h,7)),{start:y,end:h,startDateOfMonth:f,endDateOfMonth:g}}function o(l){return l.length?l.filter(d=>!!d).reduce((d,f)=>(Object.keys(f).forEach(g=>{d[g]=(0,e.default)(d[g],f[g])}),d),{}):{}}return Gg}var uG;function Zqe(){if(uG)return M1;uG=1,Object.defineProperty(M1,"__esModule",{value:!0}),M1.default=void 0;var e=l(Fs()),t=i(Nc()),n=l(H_()),r=Hv,a=V_();function i(g){return g&&g.__esModule?g:{default:g}}function o(g){if(typeof WeakMap!="function")return null;var y=new WeakMap,h=new WeakMap;return(o=function(v){return v?h:y})(g)}function l(g,y){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var h=o(y);if(h&&h.has(g))return h.get(g);var v={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in g)if(T!=="default"&&Object.prototype.hasOwnProperty.call(g,T)){var C=E?Object.getOwnPropertyDescriptor(g,T):null;C&&(C.get||C.set)?Object.defineProperty(v,T,C):v[T]=g[T]}return v.default=g,h&&h.set(g,v),v}function u(){return u=Object.assign?Object.assign.bind():function(g){for(var y=1;ye.default.createElement("span",{className:g.weekDay,key:T},(0,r.format)(E,h,y))))}let f=class extends e.PureComponent{render(){const y=new Date,{displayMode:h,focusedRange:v,drag:E,styles:T,disabledDates:C,disabledDay:k}=this.props,_=this.props.minDate&&(0,r.startOfDay)(this.props.minDate),A=this.props.maxDate&&(0,r.endOfDay)(this.props.maxDate),P=(0,a.getMonthDisplayRange)(this.props.month,this.props.dateOptions,this.props.fixedHeight);let N=this.props.ranges;if(h==="dateRange"&&E.status){let{startDate:L,endDate:j}=E.range;N=N.map((z,Q)=>Q!==v[0]?z:{...z,startDate:L,endDate:j})}const I=this.props.showPreview&&!E.disablePreview;return e.default.createElement("div",{className:T.month,style:this.props.style},this.props.showMonthName?e.default.createElement("div",{className:T.monthName},(0,r.format)(this.props.month,this.props.monthDisplayFormat,this.props.dateOptions)):null,this.props.showWeekDays&&d(T,this.props.dateOptions,this.props.weekdayDisplayFormat),e.default.createElement("div",{className:T.days,onMouseLeave:this.props.onMouseLeave},(0,r.eachDayOfInterval)({start:P.start,end:P.end}).map((L,j)=>{const z=(0,r.isSameDay)(L,P.startDateOfMonth),Q=(0,r.isSameDay)(L,P.endDateOfMonth),le=_&&(0,r.isBefore)(L,_)||A&&(0,r.isAfter)(L,A),re=C.some(me=>(0,r.isSameDay)(me,L)),ge=k(L);return e.default.createElement(n.default,u({},this.props,{ranges:N,day:L,preview:I?this.props.preview:null,isWeekend:(0,r.isWeekend)(L,this.props.dateOptions),isToday:(0,r.isSameDay)(L,y),isStartOfWeek:(0,r.isSameDay)(L,(0,r.startOfWeek)(L,this.props.dateOptions)),isEndOfWeek:(0,r.isSameDay)(L,(0,r.endOfWeek)(L,this.props.dateOptions)),isStartOfMonth:z,isEndOfMonth:Q,key:j,disabled:le||re||ge,isPassive:!(0,r.isWithinInterval)(L,{start:P.startDateOfMonth,end:P.endDateOfMonth}),styles:T,onMouseDown:this.props.onDragSelectionStart,onMouseUp:this.props.onDragSelectionEnd,onMouseEnter:this.props.onDragSelectionMove,dragRange:E.range,drag:E.status}))})))}};return f.defaultProps={},f.propTypes={style:t.default.object,styles:t.default.object,month:t.default.object,drag:t.default.object,dateOptions:t.default.object,disabledDates:t.default.array,disabledDay:t.default.func,preview:t.default.shape({startDate:t.default.object,endDate:t.default.object}),showPreview:t.default.bool,displayMode:t.default.oneOf(["dateRange","date"]),minDate:t.default.object,maxDate:t.default.object,ranges:t.default.arrayOf(n.rangeShape),focusedRange:t.default.arrayOf(t.default.number),onDragSelectionStart:t.default.func,onDragSelectionEnd:t.default.func,onDragSelectionMove:t.default.func,onMouseLeave:t.default.func,monthDisplayFormat:t.default.string,weekdayDisplayFormat:t.default.string,dayDisplayFormat:t.default.string,showWeekDays:t.default.bool,showMonthName:t.default.bool,fixedHeight:t.default.bool},M1.default=f,M1}var I1={},cG;function e9e(){if(cG)return I1;cG=1,Object.defineProperty(I1,"__esModule",{value:!0}),I1.default=void 0;var e=o(Fs()),t=a(Nc()),n=a(ph()),r=Hv;function a(g){return g&&g.__esModule?g:{default:g}}function i(g){if(typeof WeakMap!="function")return null;var y=new WeakMap,h=new WeakMap;return(i=function(v){return v?h:y})(g)}function o(g,y){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var h=i(y);if(h&&h.has(g))return h.get(g);var v={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in g)if(T!=="default"&&Object.prototype.hasOwnProperty.call(g,T)){var C=E?Object.getOwnPropertyDescriptor(g,T):null;C&&(C.get||C.set)?Object.defineProperty(v,T,C):v[T]=g[T]}return v.default=g,h&&h.set(g,v),v}function l(g,y,h){return y=u(y),y in g?Object.defineProperty(g,y,{value:h,enumerable:!0,configurable:!0,writable:!0}):g[y]=h,g}function u(g){var y=d(g,"string");return typeof y=="symbol"?y:String(y)}function d(g,y){if(typeof g!="object"||!g)return g;var h=g[Symbol.toPrimitive];if(h!==void 0){var v=h.call(g,y);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(g)}let f=class extends e.PureComponent{constructor(y,h){super(y,h),l(this,"onKeyDown",v=>{const{value:E}=this.state;v.key==="Enter"&&this.update(E)}),l(this,"onChange",v=>{this.setState({value:v.target.value,changed:!0,invalid:!1})}),l(this,"onBlur",()=>{const{value:v}=this.state;this.update(v)}),this.state={invalid:!1,changed:!1,value:this.formatDate(y)}}componentDidUpdate(y){const{value:h}=y;(0,r.isEqual)(h,this.props.value)||this.setState({value:this.formatDate(this.props)})}formatDate(y){let{value:h,dateDisplayFormat:v,dateOptions:E}=y;return h&&(0,r.isValid)(h)?(0,r.format)(h,v,E):""}update(y){const{invalid:h,changed:v}=this.state;if(h||!v||!y)return;const{onChange:E,dateDisplayFormat:T,dateOptions:C}=this.props,k=(0,r.parse)(y,T,new Date,C);(0,r.isValid)(k)?this.setState({changed:!1},()=>E(k)):this.setState({invalid:!0})}render(){const{className:y,readOnly:h,placeholder:v,ariaLabel:E,disabled:T,onFocus:C}=this.props,{value:k,invalid:_}=this.state;return e.default.createElement("span",{className:(0,n.default)("rdrDateInput",y)},e.default.createElement("input",{readOnly:h,disabled:T,value:k,placeholder:v,"aria-label":E,onKeyDown:this.onKeyDown,onChange:this.onChange,onBlur:this.onBlur,onFocus:C}),_&&e.default.createElement("span",{className:"rdrWarning"},"⚠"))}};return f.propTypes={value:t.default.object,placeholder:t.default.string,disabled:t.default.bool,readOnly:t.default.bool,dateOptions:t.default.object,dateDisplayFormat:t.default.string,ariaLabel:t.default.string,className:t.default.string,onFocus:t.default.func.isRequired,onChange:t.default.func.isRequired},f.defaultProps={readOnly:!0,disabled:!1,dateDisplayFormat:"MMM D, YYYY"},I1.default=f,I1}var mk={},dG;function t9e(){return dG||(dG=1,(function(e){(function(t,n){n(e,Fs(),hX())})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:mk,function(t,n,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;function a(ie){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},a(ie)}function i(ie,J){if(!(ie instanceof J))throw new TypeError("Cannot call a class as a function")}function o(ie,J){for(var ee=0;ee"u")return!1;var ie=!1;try{document.createElement("div").addEventListener("test",re,{get passive(){return ie=!0,!1}})}catch{}return ie})()?{passive:!0}:!1,me="ReactList failed to reach a stable state.",W=40,G=function(J,ee){for(var Z in ee)if(J[Z]!==ee[Z])return!1;return!0},q=function(J){for(var ee=J.props.axis,Z=J.getEl(),ue=j[ee];Z=Z.parentElement;)switch(window.getComputedStyle(Z)[ue]){case"auto":case"scroll":case"overlay":return Z}return window},ce=function(J){var ee=J.props.axis,Z=J.scrollParent;return Z===window?window[N[ee]]:Z[A[ee]]},H=function(J,ee){var Z=J.length,ue=J.minSize,ke=J.type,fe=ee.from,xe=ee.size,Ie=ee.itemsPerRow;xe=Math.max(xe,ue);var qe=xe%Ie;return qe&&(xe+=Ie-qe),xe>Z&&(xe=Z),fe=ke==="simple"||!fe?0:Math.max(Math.min(fe,Z-xe),0),(qe=fe%Ie)&&(fe-=qe,xe+=qe),fe===ee.from&&xe===ee.size?ee:T(T({},ee),{},{from:fe,size:xe})},Y=t.default=(function(ie){function J(ee){var Z;return i(this,J),Z=u(this,J,[ee]),Z.state=H(ee,{itemsPerRow:1,from:ee.initialIndex,size:0}),Z.cache={},Z.cachedScrollPosition=null,Z.prevPrevState={},Z.unstable=!1,Z.updateCounter=0,Z}return h(J,ie),l(J,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(Z){var ue=this;if(this.props.axis!==Z.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>W)return this.unstable=!0,console.error(me);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout(function(){ue.updateCounter=0,delete ue.updateCounterTimeoutId},0)),this.updateFrame()}}},{key:"maybeSetState",value:function(Z,ue){if(G(this.state,Z))return ue();this.setState(Z,ue)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,ge),this.scrollParent.removeEventListener("mousewheel",re,ge)}},{key:"getOffset",value:function(Z){var ue=this.props.axis,ke=Z[P[ue]]||0,fe=L[ue];do ke+=Z[fe]||0;while(Z=Z.offsetParent);return ke}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if(typeof this.cachedScrollPosition=="number")return this.cachedScrollPosition;var Z=this.scrollParent,ue=this.props.axis,ke=Q[ue],fe=Z===window?document.body[ke]||document.documentElement[ke]:Z[ke],xe=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),Ie=Math.max(0,Math.min(fe,xe)),qe=this.getEl();return this.cachedScrollPosition=this.getOffset(Z)+Ie-this.getOffset(qe),this.cachedScrollPosition}},{key:"setScroll",value:function(Z){var ue=this.scrollParent,ke=this.props.axis;if(Z+=this.getOffset(this.getEl()),ue===window)return window.scrollTo(0,Z);Z-=this.getOffset(this.scrollParent),ue[Q[ke]]=Z}},{key:"getScrollSize",value:function(){var Z=this.scrollParent,ue=document,ke=ue.body,fe=ue.documentElement,xe=z[this.props.axis];return Z===window?Math.max(ke[xe],fe[xe]):Z[xe]}},{key:"hasDeterminateSize",value:function(){var Z=this.props,ue=Z.itemSizeGetter,ke=Z.type;return ke==="uniform"||ue}},{key:"getStartAndEnd",value:function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.threshold,ue=this.getScrollPosition(),ke=Math.max(0,ue-Z),fe=ue+this.props.scrollParentViewportSizeGetter(this)+Z;return this.hasDeterminateSize()&&(fe=Math.min(fe,this.getSpaceBefore(this.props.length))),{start:ke,end:fe}}},{key:"getItemSizeAndItemsPerRow",value:function(){var Z=this.props,ue=Z.axis,ke=Z.useStaticSize,fe=this.state,xe=fe.itemSize,Ie=fe.itemsPerRow;if(ke&&xe&&Ie)return{itemSize:xe,itemsPerRow:Ie};var qe=this.items.children;if(!qe.length)return{};var tt=qe[0],Ge=tt[I[ue]],at=Math.abs(Ge-xe);if((isNaN(at)||at>=1)&&(xe=Ge),!xe)return{};var Et=L[ue],kt=tt[Et];Ie=1;for(var xt=qe[Ie];xt&&xt[Et]===kt;xt=qe[Ie])++Ie;return{itemSize:xe,itemsPerRow:Ie}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(Z){return this.clearSizeCache(),this.updateFrame(Z)}},{key:"updateFrame",value:function(Z){switch(this.updateScrollParent(),typeof Z!="function"&&(Z=re),this.props.type){case"simple":return this.updateSimpleFrame(Z);case"variable":return this.updateVariableFrame(Z);case"uniform":return this.updateUniformFrame(Z)}}},{key:"updateScrollParent",value:function(){var Z=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),Z!==this.scrollParent&&(Z&&(Z.removeEventListener("scroll",this.updateFrameAndClearCache),Z.removeEventListener("mousewheel",re)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,ge),this.scrollParent.addEventListener("mousewheel",re,ge))}},{key:"updateSimpleFrame",value:function(Z){var ue=this.getStartAndEnd(),ke=ue.end,fe=this.items.children,xe=0;if(fe.length){var Ie=this.props.axis,qe=fe[0],tt=fe[fe.length-1];xe=this.getOffset(tt)+tt[I[Ie]]-this.getOffset(qe)}if(xe>ke)return Z();var Ge=this.props,at=Ge.pageSize,Et=Ge.length,kt=Math.min(this.state.size+at,Et);this.maybeSetState({size:kt},Z)}},{key:"updateVariableFrame",value:function(Z){this.props.itemSizeGetter||this.cacheSizes();for(var ue=this.getStartAndEnd(),ke=ue.start,fe=ue.end,xe=this.props,Ie=xe.length,qe=xe.pageSize,tt=0,Ge=0,at=0,Et=Ie-1;Geke)break;tt+=kt,++Ge}for(var xt=Ie-Ge;at1&&arguments[1]!==void 0?arguments[1]:{};if(ue[Z]!=null)return ue[Z];var ke=this.state,fe=ke.itemSize,xe=ke.itemsPerRow;if(fe)return ue[Z]=Math.floor(Z/xe)*fe;for(var Ie=Z;Ie>0&&ue[--Ie]==null;);for(var qe=ue[Ie]||0,tt=Ie;tt=at&&ZIe)return this.setScroll(Ie)}},{key:"getVisibleRange",value:function(){for(var Z=this.state,ue=Z.from,ke=Z.size,fe=this.getStartAndEnd(0),xe=fe.start,Ie=fe.end,qe={},tt,Ge,at=ue;atxe&&(tt=at),tt!=null&&Et1&&arguments[1]!==void 0?arguments[1]:L.props,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!z.scroll.enabled){if(Q&&z.preventSnapRefocus){const ge=(0,d.differenceInCalendarMonths)(j,L.state.focusedDate),me=z.calendarFocus==="forwards"&&ge>=0,W=z.calendarFocus==="backwards"&&ge<=0;if((me||W)&&Math.abs(ge)0&&arguments[0]!==void 0?arguments[0]:L.props;const z=j.scroll.enabled?{...j,months:L.list.getVisibleRange().length}:j,Q=(0,i.calcFocusDate)(L.state.focusedDate,z);L.focusToDate(Q,z)}),C(this,"updatePreview",j=>{if(!j){this.setState({preview:null});return}const z={startDate:j,endDate:j,color:this.props.color};this.setState({preview:z})}),C(this,"changeShownDate",function(j){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set";const{focusedDate:Q}=L.state,{onShownDateChange:le,minDate:re,maxDate:ge}=L.props,me={monthOffset:()=>(0,d.addMonths)(Q,j),setMonth:()=>(0,d.setMonth)(Q,j),setYear:()=>(0,d.setYear)(Q,j),set:()=>j},W=(0,d.min)([(0,d.max)([me[z](),re]),ge]);L.focusToDate(W,L.props,!1),le&&le(W)}),C(this,"handleRangeFocusChange",(j,z)=>{this.props.onRangeFocusChange&&this.props.onRangeFocusChange([j,z])}),C(this,"handleScroll",()=>{const{onShownDateChange:j,minDate:z}=this.props,{focusedDate:Q}=this.state,{isFirstRender:le}=this,re=this.list.getVisibleRange();if(re[0]===void 0)return;const ge=(0,d.addMonths)(z,re[0]||0);!(0,d.isSameMonth)(ge,Q)&&!le&&(this.setState({focusedDate:ge}),j&&j(ge)),this.isFirstRender=!1}),C(this,"renderMonthAndYear",(j,z,Q)=>{const{showMonthArrow:le,minDate:re,maxDate:ge,showMonthAndYearPickers:me,ariaLabels:W}=Q,G=(ge||C3.defaultProps.maxDate).getFullYear(),q=(re||C3.defaultProps.minDate).getFullYear(),ce=this.styles;return e.default.createElement("div",{onMouseUp:H=>H.stopPropagation(),className:ce.monthAndYearWrapper},le?e.default.createElement("button",{type:"button",className:(0,o.default)(ce.nextPrevButton,ce.prevButton),onClick:()=>z(-1,"monthOffset"),"aria-label":W.prevButton},e.default.createElement("i",null)):null,me?e.default.createElement("span",{className:ce.monthAndYearPickers},e.default.createElement("span",{className:ce.monthPicker},e.default.createElement("select",{value:j.getMonth(),onChange:H=>z(H.target.value,"setMonth"),"aria-label":W.monthPicker},this.state.monthNames.map((H,Y)=>e.default.createElement("option",{key:Y,value:Y},H)))),e.default.createElement("span",{className:ce.monthAndYearDivider}),e.default.createElement("span",{className:ce.yearPicker},e.default.createElement("select",{value:j.getFullYear(),onChange:H=>z(H.target.value,"setYear"),"aria-label":W.yearPicker},new Array(G-q+1).fill(G).map((H,Y)=>{const ie=H-Y;return e.default.createElement("option",{key:ie,value:ie},ie)})))):e.default.createElement("span",{className:ce.monthAndYearPickers},this.state.monthNames[j.getMonth()]," ",j.getFullYear()),le?e.default.createElement("button",{type:"button",className:(0,o.default)(ce.nextPrevButton,ce.nextButton),onClick:()=>z(1,"monthOffset"),"aria-label":W.nextButton},e.default.createElement("i",null)):null)}),C(this,"renderDateDisplay",()=>{const{focusedRange:j,color:z,ranges:Q,rangeColors:le,dateDisplayFormat:re,editableDateInputs:ge,startDatePlaceholder:me,endDatePlaceholder:W,ariaLabels:G}=this.props,q=le[j[0]]||z,ce=this.styles;return e.default.createElement("div",{className:ce.dateDisplayWrapper},Q.map((H,Y)=>H.showDateDisplay===!1||H.disabled&&!H.showDateDisplay?null:e.default.createElement("div",{className:ce.dateDisplay,key:Y,style:{color:H.color||q}},e.default.createElement(a.default,{className:(0,o.default)(ce.dateDisplayItem,{[ce.dateDisplayItemActive]:j[0]===Y&&j[1]===0}),readOnly:!ge,disabled:H.disabled,value:H.startDate,placeholder:me,dateOptions:this.dateOptions,dateDisplayFormat:re,ariaLabel:G.dateInput&&G.dateInput[H.key]&&G.dateInput[H.key].startDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(Y,0)}),e.default.createElement(a.default,{className:(0,o.default)(ce.dateDisplayItem,{[ce.dateDisplayItemActive]:j[0]===Y&&j[1]===1}),readOnly:!ge,disabled:H.disabled,value:H.endDate,placeholder:W,dateOptions:this.dateOptions,dateDisplayFormat:re,ariaLabel:G.dateInput&&G.dateInput[H.key]&&G.dateInput[H.key].endDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(Y,1)}))))}),C(this,"onDragSelectionStart",j=>{const{onChange:z,dragSelectionEnabled:Q}=this.props;Q?this.setState({drag:{status:!0,range:{startDate:j,endDate:j},disablePreview:!0}}):z&&z(j)}),C(this,"onDragSelectionEnd",j=>{const{updateRange:z,displayMode:Q,onChange:le,dragSelectionEnabled:re}=this.props;if(!re)return;if(Q==="date"||!this.state.drag.status){le&&le(j);return}const ge={startDate:this.state.drag.range.startDate,endDate:j};Q!=="dateRange"||(0,d.isSameDay)(ge.startDate,j)?this.setState({drag:{status:!1,range:{}}},()=>le&&le(j)):this.setState({drag:{status:!1,range:{}}},()=>{z&&z(ge)})}),C(this,"onDragSelectionMove",j=>{const{drag:z}=this.state;!z.status||!this.props.dragSelectionEnabled||this.setState({drag:{status:z.status,range:{startDate:z.range.startDate,endDate:j},disablePreview:!0}})}),C(this,"estimateMonthSize",(j,z)=>{const{direction:Q,minDate:le}=this.props,{scrollArea:re}=this.state;if(z&&(this.listSizeCache=z,z[j]))return z[j];if(Q==="horizontal")return re.monthWidth;const ge=(0,d.addMonths)(le,j),{start:me,end:W}=(0,i.getMonthDisplayRange)(ge,this.dateOptions);return(0,d.differenceInDays)(W,me,this.dateOptions)+1>35?re.longMonthHeight:re.monthHeight}),this.dateOptions={locale:N.locale},N.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=N.weekStartsOn),this.styles=(0,i.generateStyles)([g.default,N.classNames]),this.listSizeCache={},this.isFirstRender=!0,this.state={monthNames:this.getMonthNames(),focusedDate:(0,i.calcFocusDate)(null,N),drag:{status:!1,range:{startDate:null,endDate:null},disablePreview:!1},scrollArea:this.calcScrollArea(N)}}getMonthNames(){return[...Array(12).keys()].map(N=>this.props.locale.localize.month(N))}calcScrollArea(N){const{direction:I,months:L,scroll:j}=N;if(!j.enabled)return{enabled:!1};const z=j.longMonthHeight||j.monthHeight;return I==="vertical"?{enabled:!0,monthHeight:j.monthHeight||220,longMonthHeight:z||260,calendarWidth:"auto",calendarHeight:(j.calendarHeight||z||240)*L}:{enabled:!0,monthWidth:j.monthWidth||332,calendarWidth:(j.calendarWidth||j.monthWidth||332)*L,monthHeight:z||300,calendarHeight:z||300}}componentDidMount(){this.props.scroll.enabled&&setTimeout(()=>this.focusToDate(this.state.focusedDate))}componentDidUpdate(N){const L={dateRange:"ranges",date:"date"}[this.props.displayMode];this.props[L]!==N[L]&&this.updateShownDate(this.props),(N.locale!==this.props.locale||N.weekStartsOn!==this.props.weekStartsOn)&&(this.dateOptions={locale:this.props.locale},this.props.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=this.props.weekStartsOn),this.setState({monthNames:this.getMonthNames()})),(0,u.shallowEqualObjects)(N.scroll,this.props.scroll)||this.setState({scrollArea:this.calcScrollArea(this.props)})}renderWeekdays(){const N=new Date;return e.default.createElement("div",{className:this.styles.weekDays},(0,d.eachDayOfInterval)({start:(0,d.startOfWeek)(N,this.dateOptions),end:(0,d.endOfWeek)(N,this.dateOptions)}).map((I,L)=>e.default.createElement("span",{className:this.styles.weekDay,key:L},(0,d.format)(I,this.props.weekdayDisplayFormat,this.dateOptions))))}render(){const{showDateDisplay:N,onPreviewChange:I,scroll:L,direction:j,disabledDates:z,disabledDay:Q,maxDate:le,minDate:re,rangeColors:ge,color:me,navigatorRenderer:W,className:G,preview:q}=this.props,{scrollArea:ce,focusedDate:H}=this.state,Y=j==="vertical",ie=W||this.renderMonthAndYear,J=this.props.ranges.map((ee,Z)=>({...ee,color:ee.color||ge[Z]||me}));return e.default.createElement("div",{className:(0,o.default)(this.styles.calendarWrapper,G),onMouseUp:()=>this.setState({drag:{status:!1,range:{}}}),onMouseLeave:()=>{this.setState({drag:{status:!1,range:{}}})}},N&&this.renderDateDisplay(),ie(H,this.changeShownDate,this.props),L.enabled?e.default.createElement("div",null,Y&&this.renderWeekdays(this.dateOptions),e.default.createElement("div",{className:(0,o.default)(this.styles.infiniteMonths,Y?this.styles.monthsVertical:this.styles.monthsHorizontal),onMouseLeave:()=>I&&I(),style:{width:ce.calendarWidth+11,height:ce.calendarHeight+11},onScroll:this.handleScroll},e.default.createElement(l.default,{length:(0,d.differenceInCalendarMonths)((0,d.endOfMonth)(le),(0,d.addDays)((0,d.startOfMonth)(re),-1),this.dateOptions),treshold:500,type:"variable",ref:ee=>this.list=ee,itemSizeEstimator:this.estimateMonthSize,axis:Y?"y":"x",itemRenderer:(ee,Z)=>{const ue=(0,d.addMonths)(re,ee);return e.default.createElement(r.default,T({},this.props,{onPreviewChange:I||this.updatePreview,preview:q||this.state.preview,ranges:J,key:Z,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:z,disabledDay:Q,month:ue,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>I&&I(),styles:this.styles,style:Y?{height:this.estimateMonthSize(ee)}:{height:ce.monthHeight,width:this.estimateMonthSize(ee)},showMonthName:!0,showWeekDays:!Y}))}}))):e.default.createElement("div",{className:(0,o.default)(this.styles.months,Y?this.styles.monthsVertical:this.styles.monthsHorizontal)},new Array(this.props.months).fill(null).map((ee,Z)=>{let ue=(0,d.addMonths)(this.state.focusedDate,Z);return this.props.calendarFocus==="backwards"&&(ue=(0,d.subMonths)(this.state.focusedDate,this.props.months-1-Z)),e.default.createElement(r.default,T({},this.props,{onPreviewChange:I||this.updatePreview,preview:q||this.state.preview,ranges:J,key:Z,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:z,disabledDay:Q,month:ue,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>I&&I(),styles:this.styles,showWeekDays:!Y||Z===0,showMonthName:!Y||Z>0}))})))}};return A.defaultProps={showMonthArrow:!0,showMonthAndYearPickers:!0,disabledDates:[],disabledDay:()=>{},classNames:{},locale:f.enUS,ranges:[],focusedRange:[0,0],dateDisplayFormat:"MMM d, yyyy",monthDisplayFormat:"MMM yyyy",weekdayDisplayFormat:"E",dayDisplayFormat:"d",showDateDisplay:!0,showPreview:!0,displayMode:"date",months:1,color:"#3d91ff",scroll:{enabled:!1},direction:"vertical",maxDate:(0,d.addYears)(new Date,20),minDate:(0,d.addYears)(new Date,-100),rangeColors:["#3d91ff","#3ecf8e","#fed14c"],startDatePlaceholder:"Early",endDatePlaceholder:"Continuous",editableDateInputs:!1,dragSelectionEnabled:!0,fixedHeight:!1,calendarFocus:"forwards",preventSnapRefocus:!1,ariaLabels:{}},A.propTypes={showMonthArrow:t.default.bool,showMonthAndYearPickers:t.default.bool,disabledDates:t.default.array,disabledDay:t.default.func,minDate:t.default.object,maxDate:t.default.object,date:t.default.object,onChange:t.default.func,onPreviewChange:t.default.func,onRangeFocusChange:t.default.func,classNames:t.default.object,locale:t.default.object,shownDate:t.default.object,onShownDateChange:t.default.func,ranges:t.default.arrayOf(n.rangeShape),preview:t.default.shape({startDate:t.default.object,endDate:t.default.object,color:t.default.string}),dateDisplayFormat:t.default.string,monthDisplayFormat:t.default.string,weekdayDisplayFormat:t.default.string,weekStartsOn:t.default.number,dayDisplayFormat:t.default.string,focusedRange:t.default.arrayOf(t.default.number),initialFocusedRange:t.default.arrayOf(t.default.number),months:t.default.number,className:t.default.string,showDateDisplay:t.default.bool,showPreview:t.default.bool,displayMode:t.default.oneOf(["dateRange","date"]),color:t.default.string,updateRange:t.default.func,scroll:t.default.shape({enabled:t.default.bool,monthHeight:t.default.number,longMonthHeight:t.default.number,monthWidth:t.default.number,calendarWidth:t.default.number,calendarHeight:t.default.number}),direction:t.default.oneOf(["vertical","horizontal"]),startDatePlaceholder:t.default.string,endDatePlaceholder:t.default.string,navigatorRenderer:t.default.func,rangeColors:t.default.arrayOf(t.default.string),editableDateInputs:t.default.bool,dragSelectionEnabled:t.default.bool,fixedHeight:t.default.bool,calendarFocus:t.default.string,preventSnapRefocus:t.default.bool,ariaLabels:y.ariaLabelsShape},A1.default=A,A1}var mG;function gae(){if(mG)return P1;mG=1,Object.defineProperty(P1,"__esModule",{value:!0}),P1.default=void 0;var e=f(Fs()),t=u(Nc()),n=u(mae()),r=H_(),a=V_(),i=Hv,o=u(ph()),l=u(G_());function u(T){return T&&T.__esModule?T:{default:T}}function d(T){if(typeof WeakMap!="function")return null;var C=new WeakMap,k=new WeakMap;return(d=function(_){return _?k:C})(T)}function f(T,C){if(T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var k=d(C);if(k&&k.has(T))return k.get(T);var _={__proto__:null},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in T)if(P!=="default"&&Object.prototype.hasOwnProperty.call(T,P)){var N=A?Object.getOwnPropertyDescriptor(T,P):null;N&&(N.get||N.set)?Object.defineProperty(_,P,N):_[P]=T[P]}return _.default=T,k&&k.set(T,_),_}function g(){return g=Object.assign?Object.assign.bind():function(T){for(var C=1;C1&&arguments[1]!==void 0?arguments[1]:!0;const N=_.props.focusedRange||_.state.focusedRange,{ranges:I,onChange:L,maxDate:j,moveRangeOnFirstSelection:z,retainEndDateOnFirstSelection:Q,disabledDates:le}=_.props,re=N[0],ge=I[re];if(!ge||!L)return{};let{startDate:me,endDate:W}=ge;const G=new Date;let q;if(!P)me=A.startDate,W=A.endDate;else if(N[1]===0){const Y=(0,i.differenceInCalendarDays)(W||G,me),ie=()=>z?(0,i.addDays)(A,Y):Q?!W||(0,i.isBefore)(A,W)?W:A:A||G;me=A,W=ie(),j&&(W=(0,i.min)([W,j])),q=[N[0],1]}else W=A;let ce=N[1]===0;(0,i.isBefore)(W,me)&&(ce=!ce,[me,W]=[W,me]);const H=le.filter(Y=>(0,i.isWithinInterval)(Y,{start:me,end:W}));return H.length>0&&(ce?me=(0,i.addDays)((0,i.max)(H),1):W=(0,i.addDays)((0,i.min)(H),-1)),q||(q=[(0,a.findNextRangeIndex)(_.props.ranges,N[0]),0]),{wasValid:!(H.length>0),range:{startDate:me,endDate:W},nextFocusRange:q}}),y(this,"setSelection",(A,P)=>{const{onChange:N,ranges:I,onRangeFocusChange:L}=this.props,z=(this.props.focusedRange||this.state.focusedRange)[0],Q=I[z];if(!Q)return;const le=this.calcNewSelection(A,P);N({[Q.key||`range${z+1}`]:{...Q,...le.range}}),this.setState({focusedRange:le.nextFocusRange,preview:null}),L&&L(le.nextFocusRange)}),y(this,"handleRangeFocusChange",A=>{this.setState({focusedRange:A}),this.props.onRangeFocusChange&&this.props.onRangeFocusChange(A)}),y(this,"updatePreview",A=>{var j;if(!A){this.setState({preview:null});return}const{rangeColors:P,ranges:N}=this.props,I=this.props.focusedRange||this.state.focusedRange,L=((j=N[I[0]])==null?void 0:j.color)||P[I[0]]||L;this.setState({preview:{...A.range,color:L}})}),this.state={focusedRange:C.initialFocusedRange||[(0,a.findNextRangeIndex)(C.ranges),0],preview:null},this.styles=(0,a.generateStyles)([l.default,C.classNames])}render(){return e.default.createElement(n.default,g({focusedRange:this.state.focusedRange,onRangeFocusChange:this.handleRangeFocusChange,preview:this.state.preview,onPreviewChange:C=>{this.updatePreview(C?this.calcNewSelection(C):null)}},this.props,{displayMode:"dateRange",className:(0,o.default)(this.styles.dateRangeWrapper,this.props.className),onChange:this.setSelection,updateRange:C=>this.setSelection(C,!1),ref:C=>{this.calendar=C}}))}};return E.defaultProps={classNames:{},ranges:[],moveRangeOnFirstSelection:!1,retainEndDateOnFirstSelection:!1,rangeColors:["#3d91ff","#3ecf8e","#fed14c"],disabledDates:[]},E.propTypes={...n.default.propTypes,onChange:t.default.func,onRangeFocusChange:t.default.func,className:t.default.string,ranges:t.default.arrayOf(r.rangeShape),moveRangeOnFirstSelection:t.default.bool,retainEndDateOnFirstSelection:t.default.bool},P1.default=E,P1}var L1={},F1={},jp={},gG;function vae(){if(gG)return jp;gG=1,Object.defineProperty(jp,"__esModule",{value:!0}),jp.createStaticRanges=r,jp.defaultStaticRanges=jp.defaultInputRanges=void 0;var e=Hv;const t={startOfWeek:(0,e.startOfWeek)(new Date),endOfWeek:(0,e.endOfWeek)(new Date),startOfLastWeek:(0,e.startOfWeek)((0,e.addDays)(new Date,-7)),endOfLastWeek:(0,e.endOfWeek)((0,e.addDays)(new Date,-7)),startOfToday:(0,e.startOfDay)(new Date),endOfToday:(0,e.endOfDay)(new Date),startOfYesterday:(0,e.startOfDay)((0,e.addDays)(new Date,-1)),endOfYesterday:(0,e.endOfDay)((0,e.addDays)(new Date,-1)),startOfMonth:(0,e.startOfMonth)(new Date),endOfMonth:(0,e.endOfMonth)(new Date),startOfLastMonth:(0,e.startOfMonth)((0,e.addMonths)(new Date,-1)),endOfLastMonth:(0,e.endOfMonth)((0,e.addMonths)(new Date,-1))},n={range:{},isSelected(a){const i=this.range();return(0,e.isSameDay)(a.startDate,i.startDate)&&(0,e.isSameDay)(a.endDate,i.endDate)}};function r(a){return a.map(i=>({...n,...i}))}return jp.defaultStaticRanges=r([{label:"Today",range:()=>({startDate:t.startOfToday,endDate:t.endOfToday})},{label:"Yesterday",range:()=>({startDate:t.startOfYesterday,endDate:t.endOfYesterday})},{label:"This Week",range:()=>({startDate:t.startOfWeek,endDate:t.endOfWeek})},{label:"Last Week",range:()=>({startDate:t.startOfLastWeek,endDate:t.endOfLastWeek})},{label:"This Month",range:()=>({startDate:t.startOfMonth,endDate:t.endOfMonth})},{label:"Last Month",range:()=>({startDate:t.startOfLastMonth,endDate:t.endOfLastMonth})}]),jp.defaultInputRanges=[{label:"days up to today",range(a){return{startDate:(0,e.addDays)(t.startOfToday,(Math.max(Number(a),1)-1)*-1),endDate:t.endOfToday}},getCurrentValue(a){return(0,e.isSameDay)(a.endDate,t.endOfToday)?a.startDate?(0,e.differenceInCalendarDays)(t.endOfToday,a.startDate)+1:"∞":"-"}},{label:"days starting today",range(a){const i=new Date;return{startDate:i,endDate:(0,e.addDays)(i,Math.max(Number(a),1)-1)}},getCurrentValue(a){return(0,e.isSameDay)(a.startDate,t.startOfToday)?a.endDate?(0,e.differenceInCalendarDays)(a.endDate,t.startOfToday)+1:"∞":"-"}}],jp}var j1={},vG;function s9e(){if(vG)return j1;vG=1,Object.defineProperty(j1,"__esModule",{value:!0}),j1.default=void 0;var e=a(Fs()),t=n(Nc());function n(g){return g&&g.__esModule?g:{default:g}}function r(g){if(typeof WeakMap!="function")return null;var y=new WeakMap,h=new WeakMap;return(r=function(v){return v?h:y})(g)}function a(g,y){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var h=r(y);if(h&&h.has(g))return h.get(g);var v={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in g)if(T!=="default"&&Object.prototype.hasOwnProperty.call(g,T)){var C=E?Object.getOwnPropertyDescriptor(g,T):null;C&&(C.get||C.set)?Object.defineProperty(v,T,C):v[T]=g[T]}return v.default=g,h&&h.set(g,v),v}function i(g,y,h){return y=o(y),y in g?Object.defineProperty(g,y,{value:h,enumerable:!0,configurable:!0,writable:!0}):g[y]=h,g}function o(g){var y=l(g,"string");return typeof y=="symbol"?y:String(y)}function l(g,y){if(typeof g!="object"||!g)return g;var h=g[Symbol.toPrimitive];if(h!==void 0){var v=h.call(g,y);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(g)}const u=0,d=99999;let f=class extends e.Component{constructor(y,h){super(y,h),i(this,"onChange",v=>{const{onChange:E}=this.props;let T=parseInt(v.target.value,10);T=isNaN(T)?0:Math.max(Math.min(d,T),u),E(T)})}shouldComponentUpdate(y){const{value:h,label:v,placeholder:E}=this.props;return h!==y.value||v!==y.label||E!==y.placeholder}render(){const{label:y,placeholder:h,value:v,styles:E,onBlur:T,onFocus:C}=this.props;return e.default.createElement("div",{className:E.inputRange},e.default.createElement("input",{className:E.inputRangeInput,placeholder:h,value:v,min:u,max:d,onChange:this.onChange,onFocus:C,onBlur:T}),e.default.createElement("span",{className:E.inputRangeLabel},y))}};return f.propTypes={value:t.default.oneOfType([t.default.string,t.default.number]),label:t.default.oneOfType([t.default.element,t.default.node]).isRequired,placeholder:t.default.string,styles:t.default.shape({inputRange:t.default.string,inputRangeInput:t.default.string,inputRangeLabel:t.default.string}).isRequired,onBlur:t.default.func.isRequired,onFocus:t.default.func.isRequired,onChange:t.default.func.isRequired},f.defaultProps={value:"",placeholder:"-"},j1.default=f,j1}var yG;function yae(){if(yG)return F1;yG=1,Object.defineProperty(F1,"__esModule",{value:!0}),F1.default=void 0;var e=d(Fs()),t=l(Nc()),n=l(G_()),r=vae(),a=H_(),i=l(s9e()),o=l(ph());function l(v){return v&&v.__esModule?v:{default:v}}function u(v){if(typeof WeakMap!="function")return null;var E=new WeakMap,T=new WeakMap;return(u=function(C){return C?T:E})(v)}function d(v,E){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var T=u(E);if(T&&T.has(v))return T.get(v);var C={__proto__:null},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in v)if(_!=="default"&&Object.prototype.hasOwnProperty.call(v,_)){var A=k?Object.getOwnPropertyDescriptor(v,_):null;A&&(A.get||A.set)?Object.defineProperty(C,_,A):C[_]=v[_]}return C.default=v,T&&T.set(v,C),C}function f(v,E,T){return E=g(E),E in v?Object.defineProperty(v,E,{value:T,enumerable:!0,configurable:!0,writable:!0}):v[E]=T,v}function g(v){var E=y(v,"string");return typeof E=="symbol"?E:String(E)}function y(v,E){if(typeof v!="object"||!v)return v;var T=v[Symbol.toPrimitive];if(T!==void 0){var C=T.call(v,E);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(v)}let h=class extends e.Component{constructor(E){super(E),f(this,"handleRangeChange",T=>{const{onChange:C,ranges:k,focusedRange:_}=this.props,A=k[_[0]];!C||!A||C({[A.key||`range${_[0]+1}`]:{...A,...T}})}),this.state={rangeOffset:0,focusedInput:-1}}getRangeOptionValue(E){const{ranges:T=[],focusedRange:C=[]}=this.props;if(typeof E.getCurrentValue!="function")return"";const k=T[C[0]]||{};return E.getCurrentValue(k)||""}getSelectedRange(E,T){const C=E.findIndex(_=>!_.startDate||!_.endDate||_.disabled?!1:T.isSelected(_));return{selectedRange:E[C],focusedRangeIndex:C}}render(){const{headerContent:E,footerContent:T,onPreviewChange:C,inputRanges:k,staticRanges:_,ranges:A,renderStaticRangeLabel:P,rangeColors:N,className:I}=this.props;return e.default.createElement("div",{className:(0,o.default)(n.default.definedRangesWrapper,I)},E,e.default.createElement("div",{className:n.default.staticRanges},_.map((L,j)=>{const{selectedRange:z,focusedRangeIndex:Q}=this.getSelectedRange(A,L);let le;return L.hasCustomRendering?le=P(L):le=L.label,e.default.createElement("button",{type:"button",className:(0,o.default)(n.default.staticRange,{[n.default.staticRangeSelected]:!!z}),style:{color:z?z.color||N[Q]:null},key:j,onClick:()=>this.handleRangeChange(L.range(this.props)),onFocus:()=>C&&C(L.range(this.props)),onMouseOver:()=>C&&C(L.range(this.props)),onMouseLeave:()=>{C&&C()}},e.default.createElement("span",{tabIndex:-1,className:n.default.staticRangeLabel},le))})),e.default.createElement("div",{className:n.default.inputRanges},k.map((L,j)=>e.default.createElement(i.default,{key:j,styles:n.default,label:L.label,onFocus:()=>this.setState({focusedInput:j,rangeOffset:0}),onBlur:()=>this.setState({rangeOffset:0}),onChange:z=>this.handleRangeChange(L.range(z,this.props)),value:this.getRangeOptionValue(L)}))),T)}};return h.propTypes={inputRanges:t.default.array,staticRanges:t.default.array,ranges:t.default.arrayOf(a.rangeShape),focusedRange:t.default.arrayOf(t.default.number),onPreviewChange:t.default.func,onChange:t.default.func,footerContent:t.default.any,headerContent:t.default.any,rangeColors:t.default.arrayOf(t.default.string),className:t.default.string,renderStaticRangeLabel:t.default.func},h.defaultProps={inputRanges:r.defaultInputRanges,staticRanges:r.defaultStaticRanges,ranges:[],rangeColors:["#3d91ff","#3ecf8e","#fed14c"],focusedRange:[0,0]},F1.default=h,F1}var bG;function l9e(){if(bG)return L1;bG=1,Object.defineProperty(L1,"__esModule",{value:!0}),L1.default=void 0;var e=d(Fs()),t=l(Nc()),n=l(gae()),r=l(yae()),a=V_(),i=l(ph()),o=l(G_());function l(y){return y&&y.__esModule?y:{default:y}}function u(y){if(typeof WeakMap!="function")return null;var h=new WeakMap,v=new WeakMap;return(u=function(E){return E?v:h})(y)}function d(y,h){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var v=u(h);if(v&&v.has(y))return v.get(y);var E={__proto__:null},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in y)if(C!=="default"&&Object.prototype.hasOwnProperty.call(y,C)){var k=T?Object.getOwnPropertyDescriptor(y,C):null;k&&(k.get||k.set)?Object.defineProperty(E,C,k):E[C]=y[C]}return E.default=y,v&&v.set(y,E),E}function f(){return f=Object.assign?Object.assign.bind():function(y){for(var h=1;hthis.dateRange.updatePreview(v?this.dateRange.calcNewSelection(v,typeof v=="string"):null)},this.props,{range:this.props.ranges[h[0]],className:void 0})),e.default.createElement(n.default,f({onRangeFocusChange:v=>this.setState({focusedRange:v}),focusedRange:h},this.props,{ref:v=>this.dateRange=v,className:void 0})))}};return g.defaultProps={},g.propTypes={...n.default.propTypes,...r.default.propTypes,className:t.default.string},L1.default=g,L1}var wG;function u9e(){return wG||(wG=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Calendar",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"DateRange",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"DateRangePicker",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"DefinedRange",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStaticRanges",{enumerable:!0,get:function(){return i.createStaticRanges}}),Object.defineProperty(e,"defaultInputRanges",{enumerable:!0,get:function(){return i.defaultInputRanges}}),Object.defineProperty(e,"defaultStaticRanges",{enumerable:!0,get:function(){return i.defaultStaticRanges}});var t=o(gae()),n=o(mae()),r=o(l9e()),a=o(yae()),i=vae();function o(l){return l&&l.__esModule?l:{default:l}}})(g$)),g$}var c9e=u9e(),b$={},d9e={lessThanXSeconds:{one:"minder as 'n sekonde",other:"minder as {{count}} sekondes"},xSeconds:{one:"1 sekonde",other:"{{count}} sekondes"},halfAMinute:"'n halwe minuut",lessThanXMinutes:{one:"minder as 'n minuut",other:"minder as {{count}} minute"},xMinutes:{one:"'n minuut",other:"{{count}} minute"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} ure"},xHours:{one:"1 uur",other:"{{count}} ure"},xDays:{one:"1 dag",other:"{{count}} dae"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weke"},xWeeks:{one:"1 week",other:"{{count}} weke"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maande"},xMonths:{one:"1 maand",other:"{{count}} maande"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer as 1 jaar",other:"meer as {{count}} jaar"},almostXYears:{one:"byna 1 jaar",other:"byna {{count}} jaar"}},f9e=function(t,n,r){var a,i=d9e[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"oor "+a:a+" gelede":a},p9e={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"yyyy/MM/dd"},h9e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},m9e={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},g9e={date:Ne({formats:p9e,defaultWidth:"full"}),time:Ne({formats:h9e,defaultWidth:"full"}),dateTime:Ne({formats:m9e,defaultWidth:"full"})},v9e={lastWeek:"'verlede' eeee 'om' p",yesterday:"'gister om' p",today:"'vandag om' p",tomorrow:"'môre om' p",nextWeek:"eeee 'om' p",other:"P"},y9e=function(t,n,r,a){return v9e[t]},b9e={narrow:["vC","nC"],abbreviated:["vC","nC"],wide:["voor Christus","na Christus"]},w9e={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1ste kwartaal","2de kwartaal","3de kwartaal","4de kwartaal"]},S9e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],wide:["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"]},E9e={narrow:["S","M","D","W","D","V","S"],short:["So","Ma","Di","Wo","Do","Vr","Sa"],abbreviated:["Son","Maa","Din","Woe","Don","Vry","Sat"],wide:["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"]},T9e={narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"}},C9e={narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"}},k9e=function(t){var n=Number(t),r=n%100;if(r<20)switch(r){case 1:case 8:return n+"ste";default:return n+"de"}return n+"ste"},x9e={ordinalNumber:k9e,era:oe({values:b9e,defaultWidth:"wide"}),quarter:oe({values:w9e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:S9e,defaultWidth:"wide"}),day:oe({values:E9e,defaultWidth:"wide"}),dayPeriod:oe({values:T9e,defaultWidth:"wide",formattingValues:C9e,defaultFormattingWidth:"wide"})},_9e=/^(\d+)(ste|de)?/i,O9e=/\d+/i,R9e={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?C\.?)/,wide:/^((voor|na) Christus)/},P9e={any:[/^v/,/^n/]},A9e={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](st|d)e kwartaal/i},N9e={any:[/1/i,/2/i,/3/i,/4/i]},M9e={narrow:/^[jfmasond]/i,abbreviated:/^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i,wide:/^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i},I9e={narrow:[/^J/i,/^F/i,/^M/i,/^A/i,/^M/i,/^J/i,/^J/i,/^A/i,/^S/i,/^O/i,/^N/i,/^D/i],any:[/^Jan/i,/^Feb/i,/^Mrt/i,/^Apr/i,/^Mei/i,/^Jun/i,/^Jul/i,/^Aug/i,/^Sep/i,/^Okt/i,/^Nov/i,/^Dec/i]},D9e={narrow:/^[smdwv]/i,short:/^(So|Ma|Di|Wo|Do|Vr|Sa)/i,abbreviated:/^(Son|Maa|Din|Woe|Don|Vry|Sat)/i,wide:/^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i},$9e={narrow:[/^S/i,/^M/i,/^D/i,/^W/i,/^D/i,/^V/i,/^S/i],any:[/^So/i,/^Ma/i,/^Di/i,/^Wo/i,/^Do/i,/^Vr/i,/^Sa/i]},L9e={any:/^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i},F9e={any:{am:/^vm/i,pm:/^nm/i,midnight:/^middernag/i,noon:/^middaguur/i,morning:/oggend/i,afternoon:/middag/i,evening:/laat middag/i,night:/aand/i}},j9e={ordinalNumber:Xt({matchPattern:_9e,parsePattern:O9e,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:R9e,defaultMatchWidth:"wide",parsePatterns:P9e,defaultParseWidth:"any"}),quarter:se({matchPatterns:A9e,defaultMatchWidth:"wide",parsePatterns:N9e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:M9e,defaultMatchWidth:"wide",parsePatterns:I9e,defaultParseWidth:"any"}),day:se({matchPatterns:D9e,defaultMatchWidth:"wide",parsePatterns:$9e,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:L9e,defaultMatchWidth:"any",parsePatterns:F9e,defaultParseWidth:"any"})},U9e={code:"af",formatDistance:f9e,formatLong:g9e,formatRelative:y9e,localize:x9e,match:j9e,options:{weekStartsOn:0,firstWeekContainsDate:1}};const B9e=Object.freeze(Object.defineProperty({__proto__:null,default:U9e},Symbol.toStringTag,{value:"Module"})),W9e=jt(B9e);var z9e={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},q9e=function(t,n,r){r=r||{};var a=z9e[t],i;return typeof a=="string"?i=a:n===1?i=a.one:n===2?i=a.two:n<=10?i=a.threeToTen.replace("{{count}}",String(n)):i=a.other.replace("{{count}}",String(n)),r.addSuffix?r.comparison&&r.comparison>0?"في خلال "+i:"منذ "+i:i},H9e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},V9e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},G9e={full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Y9e={date:Ne({formats:H9e,defaultWidth:"full"}),time:Ne({formats:V9e,defaultWidth:"full"}),dateTime:Ne({formats:G9e,defaultWidth:"full"})},K9e={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},X9e=function(t,n,r,a){return K9e[t]},Q9e={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},J9e={narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},Z9e={narrow:["ج","ف","م","أ","م","ج","ج","أ","س","أ","ن","د"],abbreviated:["جانـ","فيفـ","مارس","أفريل","مايـ","جوانـ","جويـ","أوت","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},eHe={narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},tHe={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},nHe={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},rHe=function(t){return String(t)},aHe={ordinalNumber:rHe,era:oe({values:Q9e,defaultWidth:"wide"}),quarter:oe({values:J9e,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:Z9e,defaultWidth:"wide"}),day:oe({values:eHe,defaultWidth:"wide"}),dayPeriod:oe({values:tHe,defaultWidth:"wide",formattingValues:nHe,defaultFormattingWidth:"wide"})},iHe=/^(\d+)(th|st|nd|rd)?/i,oHe=/\d+/i,sHe={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},lHe={any:[/^قبل/i,/^بعد/i]},uHe={narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},cHe={any:[/1/i,/2/i,/3/i,/4/i]},dHe={narrow:/^[جفمأسند]/i,abbreviated:/^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i,wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i},fHe={narrow:[/^ج/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ج/i,/^ج/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^جان/i,/^فيف/i,/^مار/i,/^أفر/i,/^ماي/i,/^جوا/i,/^جوي/i,/^أوت/i,/^سبت/i,/^أكت/i,/^نوف/i,/^ديس/i]},pHe={narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},hHe={narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},mHe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},gHe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},vHe={ordinalNumber:Xt({matchPattern:iHe,parsePattern:oHe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:sHe,defaultMatchWidth:"wide",parsePatterns:lHe,defaultParseWidth:"any"}),quarter:se({matchPatterns:uHe,defaultMatchWidth:"wide",parsePatterns:cHe,defaultParseWidth:"any",valueCallback:function(t){return Number(t)+1}}),month:se({matchPatterns:dHe,defaultMatchWidth:"wide",parsePatterns:fHe,defaultParseWidth:"any"}),day:se({matchPatterns:pHe,defaultMatchWidth:"wide",parsePatterns:hHe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:mHe,defaultMatchWidth:"any",parsePatterns:gHe,defaultParseWidth:"any"})},yHe={code:"ar-DZ",formatDistance:q9e,formatLong:Y9e,formatRelative:X9e,localize:aHe,match:vHe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const bHe=Object.freeze(Object.defineProperty({__proto__:null,default:yHe},Symbol.toStringTag,{value:"Module"})),wHe=jt(bHe);var SHe={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},EHe=function(t,n,r){var a,i=SHe[t];return typeof i=="string"?a=i:n===1?a=i.one:n===2?a=i.two:n<=10?a=i.threeToTen.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"في خلال "+a:"منذ "+a:a},THe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},CHe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},kHe={full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xHe={date:Ne({formats:THe,defaultWidth:"full"}),time:Ne({formats:CHe,defaultWidth:"full"}),dateTime:Ne({formats:kHe,defaultWidth:"full"})},_He={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},OHe=function(t,n,r,a){return _He[t]},RHe={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},PHe={narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},AHe={narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},NHe={narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},MHe={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},IHe={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},DHe=function(t){return String(t)},$He={ordinalNumber:DHe,era:oe({values:RHe,defaultWidth:"wide"}),quarter:oe({values:PHe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:AHe,defaultWidth:"wide"}),day:oe({values:NHe,defaultWidth:"wide"}),dayPeriod:oe({values:MHe,defaultWidth:"wide",formattingValues:IHe,defaultFormattingWidth:"wide"})},LHe=/^(\d+)(th|st|nd|rd)?/i,FHe=/\d+/i,jHe={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},UHe={any:[/^قبل/i,/^بعد/i]},BHe={narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},WHe={any:[/1/i,/2/i,/3/i,/4/i]},zHe={narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i},qHe={narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^ف/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^أغ/i,/^س/i,/^أك/i,/^ن/i,/^د/i]},HHe={narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},VHe={narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},GHe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},YHe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},KHe={ordinalNumber:Xt({matchPattern:LHe,parsePattern:FHe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:jHe,defaultMatchWidth:"wide",parsePatterns:UHe,defaultParseWidth:"any"}),quarter:se({matchPatterns:BHe,defaultMatchWidth:"wide",parsePatterns:WHe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:zHe,defaultMatchWidth:"wide",parsePatterns:qHe,defaultParseWidth:"any"}),day:se({matchPatterns:HHe,defaultMatchWidth:"wide",parsePatterns:VHe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:GHe,defaultMatchWidth:"any",parsePatterns:YHe,defaultParseWidth:"any"})},XHe={code:"ar-SA",formatDistance:EHe,formatLong:xHe,formatRelative:OHe,localize:$He,match:KHe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const QHe=Object.freeze(Object.defineProperty({__proto__:null,default:XHe},Symbol.toStringTag,{value:"Module"})),JHe=jt(QHe);function U1(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function Oo(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?U1(e.future,t):"праз "+U1(e.regular,t):e.past?U1(e.past,t):U1(e.regular,t)+" таму":U1(e.regular,t)}}var ZHe=function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?"праз паўхвіліны":"паўхвіліны таму":"паўхвіліны"},e7e={lessThanXSeconds:Oo({regular:{one:"менш за секунду",singularNominative:"менш за {{count}} секунду",singularGenitive:"менш за {{count}} секунды",pluralGenitive:"менш за {{count}} секунд"},future:{one:"менш, чым праз секунду",singularNominative:"менш, чым праз {{count}} секунду",singularGenitive:"менш, чым праз {{count}} секунды",pluralGenitive:"менш, чым праз {{count}} секунд"}}),xSeconds:Oo({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду таму",singularGenitive:"{{count}} секунды таму",pluralGenitive:"{{count}} секунд таму"},future:{singularNominative:"праз {{count}} секунду",singularGenitive:"праз {{count}} секунды",pluralGenitive:"праз {{count}} секунд"}}),halfAMinute:ZHe,lessThanXMinutes:Oo({regular:{one:"менш за хвіліну",singularNominative:"менш за {{count}} хвіліну",singularGenitive:"менш за {{count}} хвіліны",pluralGenitive:"менш за {{count}} хвілін"},future:{one:"менш, чым праз хвіліну",singularNominative:"менш, чым праз {{count}} хвіліну",singularGenitive:"менш, чым праз {{count}} хвіліны",pluralGenitive:"менш, чым праз {{count}} хвілін"}}),xMinutes:Oo({regular:{singularNominative:"{{count}} хвіліна",singularGenitive:"{{count}} хвіліны",pluralGenitive:"{{count}} хвілін"},past:{singularNominative:"{{count}} хвіліну таму",singularGenitive:"{{count}} хвіліны таму",pluralGenitive:"{{count}} хвілін таму"},future:{singularNominative:"праз {{count}} хвіліну",singularGenitive:"праз {{count}} хвіліны",pluralGenitive:"праз {{count}} хвілін"}}),aboutXHours:Oo({regular:{singularNominative:"каля {{count}} гадзіны",singularGenitive:"каля {{count}} гадзін",pluralGenitive:"каля {{count}} гадзін"},future:{singularNominative:"прыблізна праз {{count}} гадзіну",singularGenitive:"прыблізна праз {{count}} гадзіны",pluralGenitive:"прыблізна праз {{count}} гадзін"}}),xHours:Oo({regular:{singularNominative:"{{count}} гадзіна",singularGenitive:"{{count}} гадзіны",pluralGenitive:"{{count}} гадзін"},past:{singularNominative:"{{count}} гадзіну таму",singularGenitive:"{{count}} гадзіны таму",pluralGenitive:"{{count}} гадзін таму"},future:{singularNominative:"праз {{count}} гадзіну",singularGenitive:"праз {{count}} гадзіны",pluralGenitive:"праз {{count}} гадзін"}}),xDays:Oo({regular:{singularNominative:"{{count}} дзень",singularGenitive:"{{count}} дні",pluralGenitive:"{{count}} дзён"}}),aboutXWeeks:Oo({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xWeeks:Oo({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXMonths:Oo({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xMonths:Oo({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXYears:Oo({regular:{singularNominative:"каля {{count}} года",singularGenitive:"каля {{count}} гадоў",pluralGenitive:"каля {{count}} гадоў"},future:{singularNominative:"прыблізна праз {{count}} год",singularGenitive:"прыблізна праз {{count}} гады",pluralGenitive:"прыблізна праз {{count}} гадоў"}}),xYears:Oo({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} гады",pluralGenitive:"{{count}} гадоў"}}),overXYears:Oo({regular:{singularNominative:"больш за {{count}} год",singularGenitive:"больш за {{count}} гады",pluralGenitive:"больш за {{count}} гадоў"},future:{singularNominative:"больш, чым праз {{count}} год",singularGenitive:"больш, чым праз {{count}} гады",pluralGenitive:"больш, чым праз {{count}} гадоў"}}),almostXYears:Oo({regular:{singularNominative:"амаль {{count}} год",singularGenitive:"амаль {{count}} гады",pluralGenitive:"амаль {{count}} гадоў"},future:{singularNominative:"амаль праз {{count}} год",singularGenitive:"амаль праз {{count}} гады",pluralGenitive:"амаль праз {{count}} гадоў"}})},t7e=function(t,n,r){return r=r||{},e7e[t](n,r)},n7e={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},r7e={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},a7e={any:"{{date}}, {{time}}"},i7e={date:Ne({formats:n7e,defaultWidth:"full"}),time:Ne({formats:r7e,defaultWidth:"full"}),dateTime:Ne({formats:a7e,defaultWidth:"any"})};function wi(e,t,n){he(2,arguments);var r=Yd(e,n),a=Yd(t,n);return r.getTime()===a.getTime()}var c4=["нядзелю","панядзелак","аўторак","сераду","чацвер","пятніцу","суботу"];function o7e(e){var t=c4[e];switch(e){case 0:case 3:case 5:case 6:return"'у мінулую "+t+" а' p";case 1:case 2:case 4:return"'у мінулы "+t+" а' p"}}function bae(e){var t=c4[e];return"'у "+t+" а' p"}function s7e(e){var t=c4[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступную "+t+" а' p";case 1:case 2:case 4:return"'у наступны "+t+" а' p"}}var l7e=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?bae(i):o7e(i)},u7e=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?bae(i):s7e(i)},c7e={lastWeek:l7e,yesterday:"'учора а' p",today:"'сёння а' p",tomorrow:"'заўтра а' p",nextWeek:u7e,other:"P"},d7e=function(t,n,r,a){var i=c7e[t];return typeof i=="function"?i(n,r,a):i},f7e={narrow:["да н.э.","н.э."],abbreviated:["да н. э.","н. э."],wide:["да нашай эры","нашай эры"]},p7e={narrow:["1","2","3","4"],abbreviated:["1-ы кв.","2-і кв.","3-і кв.","4-ы кв."],wide:["1-ы квартал","2-і квартал","3-і квартал","4-ы квартал"]},h7e={narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","май","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзень","люты","сакавік","красавік","май","чэрвень","ліпень","жнівень","верасень","кастрычнік","лістапад","снежань"]},m7e={narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","мая","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзеня","лютага","сакавіка","красавіка","мая","чэрвеня","ліпеня","жніўня","верасня","кастрычніка","лістапада","снежня"]},g7e={narrow:["Н","П","А","С","Ч","П","С"],short:["нд","пн","аў","ср","чц","пт","сб"],abbreviated:["нядз","пан","аўт","сер","чац","пят","суб"],wide:["нядзеля","панядзелак","аўторак","серада","чацвер","пятніца","субота"]},v7e={narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніца",afternoon:"дзень",evening:"вечар",night:"ноч"}},y7e={narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніцы",afternoon:"дня",evening:"вечара",night:"ночы"}},b7e=function(t,n){var r=String(n==null?void 0:n.unit),a=Number(t),i;return r==="date"?i="-га":r==="hour"||r==="minute"||r==="second"?i="-я":i=(a%10===2||a%10===3)&&a%100!==12&&a%100!==13?"-і":"-ы",a+i},w7e={ordinalNumber:b7e,era:oe({values:f7e,defaultWidth:"wide"}),quarter:oe({values:p7e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:h7e,defaultWidth:"wide",formattingValues:m7e,defaultFormattingWidth:"wide"}),day:oe({values:g7e,defaultWidth:"wide"}),dayPeriod:oe({values:v7e,defaultWidth:"any",formattingValues:y7e,defaultFormattingWidth:"wide"})},S7e=/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i,E7e=/\d+/i,T7e={narrow:/^((да )?н\.?\s?э\.?)/i,abbreviated:/^((да )?н\.?\s?э\.?)/i,wide:/^(да нашай эры|нашай эры|наша эра)/i},C7e={any:[/^д/i,/^н/i]},k7e={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыі]?)? кв.?/i,wide:/^[1234](-?[ыі]?)? квартал/i},x7e={any:[/1/i,/2/i,/3/i,/4/i]},_7e={narrow:/^[слкмчжв]/i,abbreviated:/^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i,wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i},O7e={narrow:[/^с/i,/^л/i,/^с/i,/^к/i,/^м/i,/^ч/i,/^л/i,/^ж/i,/^в/i,/^к/i,/^л/i,/^с/i],any:[/^ст/i,/^лю/i,/^са/i,/^кр/i,/^ма/i,/^ч/i,/^ліп/i,/^ж/i,/^в/i,/^ка/i,/^ліс/i,/^сн/i]},R7e={narrow:/^[нпасч]/i,short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i,wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i},P7e={narrow:[/^н/i,/^п/i,/^а/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[ан]/i,/^а/i,/^с[ер]/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},A7e={narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i},N7e={any:{am:/^дп/i,pm:/^пп/i,midnight:/^поўн/i,noon:/^поўд/i,morning:/^р/i,afternoon:/^д[зн]/i,evening:/^в/i,night:/^н/i}},M7e={ordinalNumber:Xt({matchPattern:S7e,parsePattern:E7e,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:T7e,defaultMatchWidth:"wide",parsePatterns:C7e,defaultParseWidth:"any"}),quarter:se({matchPatterns:k7e,defaultMatchWidth:"wide",parsePatterns:x7e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:_7e,defaultMatchWidth:"wide",parsePatterns:O7e,defaultParseWidth:"any"}),day:se({matchPatterns:R7e,defaultMatchWidth:"wide",parsePatterns:P7e,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:A7e,defaultMatchWidth:"wide",parsePatterns:N7e,defaultParseWidth:"any"})},I7e={code:"be",formatDistance:t7e,formatLong:i7e,formatRelative:d7e,localize:w7e,match:M7e,options:{weekStartsOn:1,firstWeekContainsDate:1}};const D7e=Object.freeze(Object.defineProperty({__proto__:null,default:I7e},Symbol.toStringTag,{value:"Module"})),$7e=jt(D7e);var L7e={lessThanXSeconds:{one:"по-малко от секунда",other:"по-малко от {{count}} секунди"},xSeconds:{one:"1 секунда",other:"{{count}} секунди"},halfAMinute:"половин минута",lessThanXMinutes:{one:"по-малко от минута",other:"по-малко от {{count}} минути"},xMinutes:{one:"1 минута",other:"{{count}} минути"},aboutXHours:{one:"около час",other:"около {{count}} часа"},xHours:{one:"1 час",other:"{{count}} часа"},xDays:{one:"1 ден",other:"{{count}} дни"},aboutXWeeks:{one:"около седмица",other:"около {{count}} седмици"},xWeeks:{one:"1 седмица",other:"{{count}} седмици"},aboutXMonths:{one:"около месец",other:"около {{count}} месеца"},xMonths:{one:"1 месец",other:"{{count}} месеца"},aboutXYears:{one:"около година",other:"около {{count}} години"},xYears:{one:"1 година",other:"{{count}} години"},overXYears:{one:"над година",other:"над {{count}} години"},almostXYears:{one:"почти година",other:"почти {{count}} години"}},F7e=function(t,n,r){var a,i=L7e[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"след "+a:"преди "+a:a},j7e={full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},U7e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},B7e={any:"{{date}} {{time}}"},W7e={date:Ne({formats:j7e,defaultWidth:"full"}),time:Ne({formats:U7e,defaultWidth:"full"}),dateTime:Ne({formats:B7e,defaultWidth:"any"})},d4=["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"];function z7e(e){var t=d4[e];switch(e){case 0:case 3:case 6:return"'миналата "+t+" в' p";case 1:case 2:case 4:case 5:return"'миналия "+t+" в' p"}}function wae(e){var t=d4[e];return e===2?"'във "+t+" в' p":"'в "+t+" в' p"}function q7e(e){var t=d4[e];switch(e){case 0:case 3:case 6:return"'следващата "+t+" в' p";case 1:case 2:case 4:case 5:return"'следващия "+t+" в' p"}}var H7e=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?wae(i):z7e(i)},V7e=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?wae(i):q7e(i)},G7e={lastWeek:H7e,yesterday:"'вчера в' p",today:"'днес в' p",tomorrow:"'утре в' p",nextWeek:V7e,other:"P"},Y7e=function(t,n,r,a){var i=G7e[t];return typeof i=="function"?i(n,r,a):i},K7e={narrow:["пр.н.е.","н.е."],abbreviated:["преди н. е.","н. е."],wide:["преди новата ера","новата ера"]},X7e={narrow:["1","2","3","4"],abbreviated:["1-во тримес.","2-ро тримес.","3-то тримес.","4-то тримес."],wide:["1-во тримесечие","2-ро тримесечие","3-то тримесечие","4-то тримесечие"]},Q7e={abbreviated:["яну","фев","мар","апр","май","юни","юли","авг","сеп","окт","ное","дек"],wide:["януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември"]},J7e={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вто","сря","чет","пет","съб"],wide:["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"]},Z7e={wide:{am:"преди обяд",pm:"след обяд",midnight:"в полунощ",noon:"на обяд",morning:"сутринта",afternoon:"следобед",evening:"вечерта",night:"през нощта"}};function eVe(e){return e==="year"||e==="week"||e==="minute"||e==="second"}function tVe(e){return e==="quarter"}function Yg(e,t,n,r,a){var i=tVe(t)?a:eVe(t)?r:n;return e+"-"+i}var nVe=function(t,n){var r=Number(t),a=n==null?void 0:n.unit;if(r===0)return Yg(0,a,"ев","ева","ево");if(r%1e3===0)return Yg(r,a,"ен","на","но");if(r%100===0)return Yg(r,a,"тен","тна","тно");var i=r%100;if(i>20||i<10)switch(i%10){case 1:return Yg(r,a,"ви","ва","во");case 2:return Yg(r,a,"ри","ра","ро");case 7:case 8:return Yg(r,a,"ми","ма","мо")}return Yg(r,a,"ти","та","то")},rVe={ordinalNumber:nVe,era:oe({values:K7e,defaultWidth:"wide"}),quarter:oe({values:X7e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Q7e,defaultWidth:"wide"}),day:oe({values:J7e,defaultWidth:"wide"}),dayPeriod:oe({values:Z7e,defaultWidth:"wide"})},aVe=/^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i,iVe=/\d+/i,oVe={narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(преди новата ера|новата ера|нова ера)/i},sVe={any:[/^п/i,/^н/i]},lVe={narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?o?)? тримес.?/i,wide:/^[1234](-?[врт]?о?)? тримесечие/i},uVe={any:[/1/i,/2/i,/3/i,/4/i]},cVe={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)/i,abbreviated:/^(нед|пон|вто|сря|чет|пет|съб)/i,wide:/^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i},dVe={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[ъб]/i]},fVe={abbreviated:/^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i,wide:/^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i},pVe={any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^юн/i,/^юл/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},hVe={any:/^(преди о|след о|в по|на о|през|веч|сут|следо)/i},mVe={any:{am:/^преди о/i,pm:/^след о/i,midnight:/^в пол/i,noon:/^на об/i,morning:/^сут/i,afternoon:/^следо/i,evening:/^веч/i,night:/^през н/i}},gVe={ordinalNumber:Xt({matchPattern:aVe,parsePattern:iVe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:oVe,defaultMatchWidth:"wide",parsePatterns:sVe,defaultParseWidth:"any"}),quarter:se({matchPatterns:lVe,defaultMatchWidth:"wide",parsePatterns:uVe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:fVe,defaultMatchWidth:"wide",parsePatterns:pVe,defaultParseWidth:"any"}),day:se({matchPatterns:cVe,defaultMatchWidth:"wide",parsePatterns:dVe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:hVe,defaultMatchWidth:"any",parsePatterns:mVe,defaultParseWidth:"any"})},vVe={code:"bg",formatDistance:F7e,formatLong:W7e,formatRelative:Y7e,localize:rVe,match:gVe,options:{weekStartsOn:1,firstWeekContainsDate:1}};const yVe=Object.freeze(Object.defineProperty({__proto__:null,default:vVe},Symbol.toStringTag,{value:"Module"})),bVe=jt(yVe);var wVe={locale:{1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"}},SVe={narrow:["খ্রিঃপূঃ","খ্রিঃ"],abbreviated:["খ্রিঃপূর্ব","খ্রিঃ"],wide:["খ্রিস্টপূর্ব","খ্রিস্টাব্দ"]},EVe={narrow:["১","২","৩","৪"],abbreviated:["১ত্রৈ","২ত্রৈ","৩ত্রৈ","৪ত্রৈ"],wide:["১ম ত্রৈমাসিক","২য় ত্রৈমাসিক","৩য় ত্রৈমাসিক","৪র্থ ত্রৈমাসিক"]},TVe={narrow:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],abbreviated:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],wide:["জানুয়ারি","ফেব্রুয়ারি","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর"]},CVe={narrow:["র","সো","ম","বু","বৃ","শু","শ"],short:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],abbreviated:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],wide:["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার ","শুক্রবার","শনিবার"]},kVe={narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}},xVe={narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}};function _Ve(e,t){if(e>18&&e<=31)return t+"শে";switch(e){case 1:return t+"লা";case 2:case 3:return t+"রা";case 4:return t+"ঠা";default:return t+"ই"}}var OVe=function(t,n){var r=Number(t),a=Sae(r),i=n==null?void 0:n.unit;if(i==="date")return _Ve(r,a);if(r>10||r===0)return a+"তম";var o=r%10;switch(o){case 2:case 3:return a+"য়";case 4:return a+"র্থ";case 6:return a+"ষ্ঠ";default:return a+"ম"}};function Sae(e){return e.toString().replace(/\d/g,function(t){return wVe.locale[t]})}var RVe={ordinalNumber:OVe,era:oe({values:SVe,defaultWidth:"wide"}),quarter:oe({values:EVe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:TVe,defaultWidth:"wide"}),day:oe({values:CVe,defaultWidth:"wide"}),dayPeriod:oe({values:kVe,defaultWidth:"wide",formattingValues:xVe,defaultFormattingWidth:"wide"})},PVe={lessThanXSeconds:{one:"প্রায় ১ সেকেন্ড",other:"প্রায় {{count}} সেকেন্ড"},xSeconds:{one:"১ সেকেন্ড",other:"{{count}} সেকেন্ড"},halfAMinute:"আধ মিনিট",lessThanXMinutes:{one:"প্রায় ১ মিনিট",other:"প্রায় {{count}} মিনিট"},xMinutes:{one:"১ মিনিট",other:"{{count}} মিনিট"},aboutXHours:{one:"প্রায় ১ ঘন্টা",other:"প্রায় {{count}} ঘন্টা"},xHours:{one:"১ ঘন্টা",other:"{{count}} ঘন্টা"},xDays:{one:"১ দিন",other:"{{count}} দিন"},aboutXWeeks:{one:"প্রায় ১ সপ্তাহ",other:"প্রায় {{count}} সপ্তাহ"},xWeeks:{one:"১ সপ্তাহ",other:"{{count}} সপ্তাহ"},aboutXMonths:{one:"প্রায় ১ মাস",other:"প্রায় {{count}} মাস"},xMonths:{one:"১ মাস",other:"{{count}} মাস"},aboutXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"},xYears:{one:"১ বছর",other:"{{count}} বছর"},overXYears:{one:"১ বছরের বেশি",other:"{{count}} বছরের বেশি"},almostXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"}},AVe=function(t,n,r){var a,i=PVe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",Sae(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" এর মধ্যে":a+" আগে":a},NVe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},MVe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},IVe={full:"{{date}} {{time}} 'সময়'",long:"{{date}} {{time}} 'সময়'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},DVe={date:Ne({formats:NVe,defaultWidth:"full"}),time:Ne({formats:MVe,defaultWidth:"full"}),dateTime:Ne({formats:IVe,defaultWidth:"full"})},$Ve={lastWeek:"'গত' eeee 'সময়' p",yesterday:"'গতকাল' 'সময়' p",today:"'আজ' 'সময়' p",tomorrow:"'আগামীকাল' 'সময়' p",nextWeek:"eeee 'সময়' p",other:"P"},LVe=function(t,n,r,a){return $Ve[t]},FVe=/^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i,jVe=/\d+/i,UVe={narrow:/^(খ্রিঃপূঃ|খ্রিঃ)/i,abbreviated:/^(খ্রিঃপূর্ব|খ্রিঃ)/i,wide:/^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i},BVe={narrow:[/^খ্রিঃপূঃ/i,/^খ্রিঃ/i],abbreviated:[/^খ্রিঃপূর্ব/i,/^খ্রিঃ/i],wide:[/^খ্রিস্টপূর্ব/i,/^খ্রিস্টাব্দ/i]},WVe={narrow:/^[১২৩৪]/i,abbreviated:/^[১২৩৪]ত্রৈ/i,wide:/^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i},zVe={any:[/১/i,/২/i,/৩/i,/৪/i]},qVe={narrow:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,abbreviated:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,wide:/^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i},HVe={any:[/^জানু/i,/^ফেব্রু/i,/^মার্চ/i,/^এপ্রিল/i,/^মে/i,/^জুন/i,/^জুলাই/i,/^আগস্ট/i,/^সেপ্ট/i,/^অক্টো/i,/^নভে/i,/^ডিসে/i]},VVe={narrow:/^(র|সো|ম|বু|বৃ|শু|শ)+/i,short:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,abbreviated:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,wide:/^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i},GVe={narrow:[/^র/i,/^সো/i,/^ম/i,/^বু/i,/^বৃ/i,/^শু/i,/^শ/i],short:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],abbreviated:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],wide:[/^রবিবার/i,/^সোমবার/i,/^মঙ্গলবার/i,/^বুধবার/i,/^বৃহস্পতিবার /i,/^শুক্রবার/i,/^শনিবার/i]},YVe={narrow:/^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,abbreviated:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,wide:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i},KVe={any:{am:/^পূ/i,pm:/^অপ/i,midnight:/^মধ্যরাত/i,noon:/^মধ্যাহ্ন/i,morning:/সকাল/i,afternoon:/বিকাল/i,evening:/সন্ধ্যা/i,night:/রাত/i}},XVe={ordinalNumber:Xt({matchPattern:FVe,parsePattern:jVe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:UVe,defaultMatchWidth:"wide",parsePatterns:BVe,defaultParseWidth:"wide"}),quarter:se({matchPatterns:WVe,defaultMatchWidth:"wide",parsePatterns:zVe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:qVe,defaultMatchWidth:"wide",parsePatterns:HVe,defaultParseWidth:"any"}),day:se({matchPatterns:VVe,defaultMatchWidth:"wide",parsePatterns:GVe,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:YVe,defaultMatchWidth:"wide",parsePatterns:KVe,defaultParseWidth:"any"})},QVe={code:"bn",formatDistance:AVe,formatLong:DVe,formatRelative:LVe,localize:RVe,match:XVe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const JVe=Object.freeze(Object.defineProperty({__proto__:null,default:QVe},Symbol.toStringTag,{value:"Module"})),ZVe=jt(JVe);var eGe={lessThanXSeconds:{one:"menys d'un segon",eleven:"menys d'onze segons",other:"menys de {{count}} segons"},xSeconds:{one:"1 segon",other:"{{count}} segons"},halfAMinute:"mig minut",lessThanXMinutes:{one:"menys d'un minut",eleven:"menys d'onze minuts",other:"menys de {{count}} minuts"},xMinutes:{one:"1 minut",other:"{{count}} minuts"},aboutXHours:{one:"aproximadament una hora",other:"aproximadament {{count}} hores"},xHours:{one:"1 hora",other:"{{count}} hores"},xDays:{one:"1 dia",other:"{{count}} dies"},aboutXWeeks:{one:"aproximadament una setmana",other:"aproximadament {{count}} setmanes"},xWeeks:{one:"1 setmana",other:"{{count}} setmanes"},aboutXMonths:{one:"aproximadament un mes",other:"aproximadament {{count}} mesos"},xMonths:{one:"1 mes",other:"{{count}} mesos"},aboutXYears:{one:"aproximadament un any",other:"aproximadament {{count}} anys"},xYears:{one:"1 any",other:"{{count}} anys"},overXYears:{one:"més d'un any",eleven:"més d'onze anys",other:"més de {{count}} anys"},almostXYears:{one:"gairebé un any",other:"gairebé {{count}} anys"}},tGe=function(t,n,r){var a,i=eGe[t];return typeof i=="string"?a=i:n===1?a=i.one:n===11&&i.eleven?a=i.eleven:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+a:"fa "+a:a},nGe={full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},rGe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},aGe={full:"{{date}} 'a les' {{time}}",long:"{{date}} 'a les' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iGe={date:Ne({formats:nGe,defaultWidth:"full"}),time:Ne({formats:rGe,defaultWidth:"full"}),dateTime:Ne({formats:aGe,defaultWidth:"full"})},oGe={lastWeek:"'el' eeee 'passat a la' LT",yesterday:"'ahir a la' p",today:"'avui a la' p",tomorrow:"'demà a la' p",nextWeek:"eeee 'a la' p",other:"P"},sGe={lastWeek:"'el' eeee 'passat a les' p",yesterday:"'ahir a les' p",today:"'avui a les' p",tomorrow:"'demà a les' p",nextWeek:"eeee 'a les' p",other:"P"},lGe=function(t,n,r,a){return n.getUTCHours()!==1?sGe[t]:oGe[t]},uGe={narrow:["aC","dC"],abbreviated:["a. de C.","d. de C."],wide:["abans de Crist","després de Crist"]},cGe={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1r trimestre","2n trimestre","3r trimestre","4t trimestre"]},dGe={narrow:["GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS"],abbreviated:["gen.","febr.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],wide:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"]},fGe={narrow:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],short:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],wide:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"]},pGe={narrow:{am:"am",pm:"pm",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"}},hGe={narrow:{am:"am",pm:"pm",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},abbreviated:{am:"AM",pm:"PM",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"}},mGe=function(t,n){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"r";case 2:return r+"n";case 3:return r+"r";case 4:return r+"t"}return r+"è"},gGe={ordinalNumber:mGe,era:oe({values:uGe,defaultWidth:"wide"}),quarter:oe({values:cGe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:dGe,defaultWidth:"wide"}),day:oe({values:fGe,defaultWidth:"wide"}),dayPeriod:oe({values:pGe,defaultWidth:"wide",formattingValues:hGe,defaultFormattingWidth:"wide"})},vGe=/^(\d+)(è|r|n|r|t)?/i,yGe=/\d+/i,bGe={narrow:/^(aC|dC)/i,abbreviated:/^(a. de C.|d. de C.)/i,wide:/^(abans de Crist|despr[eé]s de Crist)/i},wGe={narrow:[/^aC/i,/^dC/i],abbreviated:[/^(a. de C.)/i,/^(d. de C.)/i],wide:[/^(abans de Crist)/i,/^(despr[eé]s de Crist)/i]},SGe={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](è|r|n|r|t)? trimestre/i},EGe={any:[/1/i,/2/i,/3/i,/4/i]},TGe={narrow:/^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i,abbreviated:/^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i,wide:/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i},CGe={narrow:[/^GN/i,/^FB/i,/^MÇ/i,/^AB/i,/^MG/i,/^JN/i,/^JL/i,/^AG/i,/^ST/i,/^OC/i,/^NV/i,/^DS/i],abbreviated:[/^gen./i,/^febr./i,/^març/i,/^abr./i,/^maig/i,/^juny/i,/^jul./i,/^ag./i,/^set./i,/^oct./i,/^nov./i,/^des./i],wide:[/^gener/i,/^febrer/i,/^març/i,/^abril/i,/^maig/i,/^juny/i,/^juliol/i,/^agost/i,/^setembre/i,/^octubre/i,/^novembre/i,/^desembre/i]},kGe={narrow:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,short:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,abbreviated:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,wide:/^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i},xGe={narrow:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],abbreviated:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],wide:[/^diumenge/i,/^dilluns/i,/^dimarts/i,/^dimecres/i,/^dijous/i,/^divendres/i,/^disssabte/i]},_Ge={narrow:/^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i,abbreviated:/^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i,wide:/^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i},OGe={any:{am:/^a/i,pm:/^p/i,midnight:/^mitjanit/i,noon:/^migdia/i,morning:/matí/i,afternoon:/tarda/i,evening:/vespre/i,night:/nit/i}},RGe={ordinalNumber:Xt({matchPattern:vGe,parsePattern:yGe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:bGe,defaultMatchWidth:"wide",parsePatterns:wGe,defaultParseWidth:"wide"}),quarter:se({matchPatterns:SGe,defaultMatchWidth:"wide",parsePatterns:EGe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:TGe,defaultMatchWidth:"wide",parsePatterns:CGe,defaultParseWidth:"wide"}),day:se({matchPatterns:kGe,defaultMatchWidth:"wide",parsePatterns:xGe,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:_Ge,defaultMatchWidth:"wide",parsePatterns:OGe,defaultParseWidth:"any"})},PGe={code:"ca",formatDistance:tGe,formatLong:iGe,formatRelative:lGe,localize:gGe,match:RGe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const AGe=Object.freeze(Object.defineProperty({__proto__:null,default:PGe},Symbol.toStringTag,{value:"Module"})),NGe=jt(AGe);var MGe={lessThanXSeconds:{one:{regular:"méně než sekunda",past:"před méně než sekundou",future:"za méně než sekundu"},few:{regular:"méně než {{count}} sekundy",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekundy"},many:{regular:"méně než {{count}} sekund",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekund"}},xSeconds:{one:{regular:"sekunda",past:"před sekundou",future:"za sekundu"},few:{regular:"{{count}} sekundy",past:"před {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"před {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"půl minuty",past:"před půl minutou",future:"za půl minuty"}},lessThanXMinutes:{one:{regular:"méně než minuta",past:"před méně než minutou",future:"za méně než minutu"},few:{regular:"méně než {{count}} minuty",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minuty"},many:{regular:"méně než {{count}} minut",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minut"}},xMinutes:{one:{regular:"minuta",past:"před minutou",future:"za minutu"},few:{regular:"{{count}} minuty",past:"před {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"před {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"přibližně hodina",past:"přibližně před hodinou",future:"přibližně za hodinu"},few:{regular:"přibližně {{count}} hodiny",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodiny"},many:{regular:"přibližně {{count}} hodin",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodin"}},xHours:{one:{regular:"hodina",past:"před hodinou",future:"za hodinu"},few:{regular:"{{count}} hodiny",past:"před {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"před {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"den",past:"před dnem",future:"za den"},few:{regular:"{{count}} dny",past:"před {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dní",past:"před {{count}} dny",future:"za {{count}} dní"}},aboutXWeeks:{one:{regular:"přibližně týden",past:"přibližně před týdnem",future:"přibližně za týden"},few:{regular:"přibližně {{count}} týdny",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdny"},many:{regular:"přibližně {{count}} týdnů",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdnů"}},xWeeks:{one:{regular:"týden",past:"před týdnem",future:"za týden"},few:{regular:"{{count}} týdny",past:"před {{count}} týdny",future:"za {{count}} týdny"},many:{regular:"{{count}} týdnů",past:"před {{count}} týdny",future:"za {{count}} týdnů"}},aboutXMonths:{one:{regular:"přibližně měsíc",past:"přibližně před měsícem",future:"přibližně za měsíc"},few:{regular:"přibližně {{count}} měsíce",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíce"},many:{regular:"přibližně {{count}} měsíců",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíců"}},xMonths:{one:{regular:"měsíc",past:"před měsícem",future:"za měsíc"},few:{regular:"{{count}} měsíce",past:"před {{count}} měsíci",future:"za {{count}} měsíce"},many:{regular:"{{count}} měsíců",past:"před {{count}} měsíci",future:"za {{count}} měsíců"}},aboutXYears:{one:{regular:"přibližně rok",past:"přibližně před rokem",future:"přibližně za rok"},few:{regular:"přibližně {{count}} roky",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roky"},many:{regular:"přibližně {{count}} roků",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roků"}},xYears:{one:{regular:"rok",past:"před rokem",future:"za rok"},few:{regular:"{{count}} roky",past:"před {{count}} roky",future:"za {{count}} roky"},many:{regular:"{{count}} roků",past:"před {{count}} roky",future:"za {{count}} roků"}},overXYears:{one:{regular:"více než rok",past:"před více než rokem",future:"za více než rok"},few:{regular:"více než {{count}} roky",past:"před více než {{count}} roky",future:"za více než {{count}} roky"},many:{regular:"více než {{count}} roků",past:"před více než {{count}} roky",future:"za více než {{count}} roků"}},almostXYears:{one:{regular:"skoro rok",past:"skoro před rokem",future:"skoro za rok"},few:{regular:"skoro {{count}} roky",past:"skoro před {{count}} roky",future:"skoro za {{count}} roky"},many:{regular:"skoro {{count}} roků",past:"skoro před {{count}} roky",future:"skoro za {{count}} roků"}}},IGe=function(t,n,r){var a,i=MGe[t];i.type==="other"?a=i.other:n===1?a=i.one:n>1&&n<5?a=i.few:a=i.many;var o=(r==null?void 0:r.addSuffix)===!0,l=r==null?void 0:r.comparison,u;return o&&l===-1?u=a.past:o&&l===1?u=a.future:u=a.regular,u.replace("{{count}}",String(n))},DGe={full:"EEEE, d. MMMM yyyy",long:"d. MMMM yyyy",medium:"d. M. yyyy",short:"dd.MM.yyyy"},$Ge={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},LGe={full:"{{date}} 'v' {{time}}",long:"{{date}} 'v' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},FGe={date:Ne({formats:DGe,defaultWidth:"full"}),time:Ne({formats:$Ge,defaultWidth:"full"}),dateTime:Ne({formats:LGe,defaultWidth:"full"})},jGe=["neděli","pondělí","úterý","středu","čtvrtek","pátek","sobotu"],UGe={lastWeek:"'poslední' eeee 've' p",yesterday:"'včera v' p",today:"'dnes v' p",tomorrow:"'zítra v' p",nextWeek:function(t){var n=t.getUTCDay();return"'v "+jGe[n]+" o' p"},other:"P"},BGe=function(t,n){var r=UGe[t];return typeof r=="function"?r(n):r},WGe={narrow:["př. n. l.","n. l."],abbreviated:["př. n. l.","n. l."],wide:["před naším letopočtem","našeho letopočtu"]},zGe={narrow:["1","2","3","4"],abbreviated:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"],wide:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"]},qGe={narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"]},HGe={narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"]},VGe={narrow:["ne","po","út","st","čt","pá","so"],short:["ne","po","út","st","čt","pá","so"],abbreviated:["ned","pon","úte","stř","čtv","pát","sob"],wide:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"]},GGe={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},YGe={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},KGe=function(t,n){var r=Number(t);return r+"."},XGe={ordinalNumber:KGe,era:oe({values:WGe,defaultWidth:"wide"}),quarter:oe({values:zGe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:qGe,defaultWidth:"wide",formattingValues:HGe,defaultFormattingWidth:"wide"}),day:oe({values:VGe,defaultWidth:"wide"}),dayPeriod:oe({values:GGe,defaultWidth:"wide",formattingValues:YGe,defaultFormattingWidth:"wide"})},QGe=/^(\d+)\.?/i,JGe=/\d+/i,ZGe={narrow:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i},eYe={any:[/^p[řr]/i,/^(po|n)/i]},tYe={narrow:/^[1234]/i,abbreviated:/^[1234]\. [čc]tvrtlet[íi]/i,wide:/^[1234]\. [čc]tvrtlet[íi]/i},nYe={any:[/1/i,/2/i,/3/i,/4/i]},rYe={narrow:/^[lúubdkčcszřrlp]/i,abbreviated:/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,wide:/^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i},aYe={narrow:[/^l/i,/^[úu]/i,/^b/i,/^d/i,/^k/i,/^[čc]/i,/^[čc]/i,/^s/i,/^z/i,/^[řr]/i,/^l/i,/^p/i],any:[/^led/i,/^[úu]n/i,/^b[řr]e/i,/^dub/i,/^kv[ěe]/i,/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,/^[čc]vc|[čc]erven(ec|ce)/i,/^srp/i,/^z[áa][řr]/i,/^[řr][íi]j/i,/^lis/i,/^pro/i]},iYe={narrow:/^[npuúsčps]/i,short:/^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,abbreviated:/^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,wide:/^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i},oYe={narrow:[/^n/i,/^p/i,/^[úu]/i,/^s/i,/^[čc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[úu]t/i,/^st/i,/^[čc]t/i,/^p[áa]/i,/^so/i]},sYe={any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i},lYe={any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[ůu]lnoc/i,noon:/^poledne/i,morning:/r[áa]no/i,afternoon:/odpoledne/i,evening:/ve[čc]er/i,night:/noc/i}},uYe={ordinalNumber:Xt({matchPattern:QGe,parsePattern:JGe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:ZGe,defaultMatchWidth:"wide",parsePatterns:eYe,defaultParseWidth:"any"}),quarter:se({matchPatterns:tYe,defaultMatchWidth:"wide",parsePatterns:nYe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:rYe,defaultMatchWidth:"wide",parsePatterns:aYe,defaultParseWidth:"any"}),day:se({matchPatterns:iYe,defaultMatchWidth:"wide",parsePatterns:oYe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:sYe,defaultMatchWidth:"any",parsePatterns:lYe,defaultParseWidth:"any"})},cYe={code:"cs",formatDistance:IGe,formatLong:FGe,formatRelative:BGe,localize:XGe,match:uYe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const dYe=Object.freeze(Object.defineProperty({__proto__:null,default:cYe},Symbol.toStringTag,{value:"Module"})),fYe=jt(dYe);var pYe={lessThanXSeconds:{one:"llai na eiliad",other:"llai na {{count}} eiliad"},xSeconds:{one:"1 eiliad",other:"{{count}} eiliad"},halfAMinute:"hanner munud",lessThanXMinutes:{one:"llai na munud",two:"llai na 2 funud",other:"llai na {{count}} munud"},xMinutes:{one:"1 munud",two:"2 funud",other:"{{count}} munud"},aboutXHours:{one:"tua 1 awr",other:"tua {{count}} awr"},xHours:{one:"1 awr",other:"{{count}} awr"},xDays:{one:"1 diwrnod",two:"2 ddiwrnod",other:"{{count}} diwrnod"},aboutXWeeks:{one:"tua 1 wythnos",two:"tua pythefnos",other:"tua {{count}} wythnos"},xWeeks:{one:"1 wythnos",two:"pythefnos",other:"{{count}} wythnos"},aboutXMonths:{one:"tua 1 mis",two:"tua 2 fis",other:"tua {{count}} mis"},xMonths:{one:"1 mis",two:"2 fis",other:"{{count}} mis"},aboutXYears:{one:"tua 1 flwyddyn",two:"tua 2 flynedd",other:"tua {{count}} mlynedd"},xYears:{one:"1 flwyddyn",two:"2 flynedd",other:"{{count}} mlynedd"},overXYears:{one:"dros 1 flwyddyn",two:"dros 2 flynedd",other:"dros {{count}} mlynedd"},almostXYears:{one:"bron 1 flwyddyn",two:"bron 2 flynedd",other:"bron {{count}} mlynedd"}},hYe=function(t,n,r){var a,i=pYe[t];return typeof i=="string"?a=i:n===1?a=i.one:n===2&&i.two?a=i.two:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"mewn "+a:a+" yn ôl":a},mYe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},gYe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vYe={full:"{{date}} 'am' {{time}}",long:"{{date}} 'am' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yYe={date:Ne({formats:mYe,defaultWidth:"full"}),time:Ne({formats:gYe,defaultWidth:"full"}),dateTime:Ne({formats:vYe,defaultWidth:"full"})},bYe={lastWeek:"eeee 'diwethaf am' p",yesterday:"'ddoe am' p",today:"'heddiw am' p",tomorrow:"'yfory am' p",nextWeek:"eeee 'am' p",other:"P"},wYe=function(t,n,r,a){return bYe[t]},SYe={narrow:["C","O"],abbreviated:["CC","OC"],wide:["Cyn Crist","Ar ôl Crist"]},EYe={narrow:["1","2","3","4"],abbreviated:["Ch1","Ch2","Ch3","Ch4"],wide:["Chwarter 1af","2ail chwarter","3ydd chwarter","4ydd chwarter"]},TYe={narrow:["I","Ch","Ma","E","Mi","Me","G","A","Md","H","T","Rh"],abbreviated:["Ion","Chwe","Maw","Ebr","Mai","Meh","Gor","Aws","Med","Hyd","Tach","Rhag"],wide:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},CYe={narrow:["S","Ll","M","M","I","G","S"],short:["Su","Ll","Ma","Me","Ia","Gw","Sa"],abbreviated:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],wide:["dydd Sul","dydd Llun","dydd Mawrth","dydd Mercher","dydd Iau","dydd Gwener","dydd Sadwrn"]},kYe={narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"}},xYe={narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"}},_Ye=function(t,n){var r=Number(t);if(r<20)switch(r){case 0:return r+"fed";case 1:return r+"af";case 2:return r+"ail";case 3:case 4:return r+"ydd";case 5:case 6:return r+"ed";case 7:case 8:case 9:case 10:case 12:case 15:case 18:return r+"fed";case 11:case 13:case 14:case 16:case 17:case 19:return r+"eg"}else if(r>=50&&r<=60||r===80||r>=100)return r+"fed";return r+"ain"},OYe={ordinalNumber:_Ye,era:oe({values:SYe,defaultWidth:"wide"}),quarter:oe({values:EYe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:TYe,defaultWidth:"wide"}),day:oe({values:CYe,defaultWidth:"wide"}),dayPeriod:oe({values:kYe,defaultWidth:"wide",formattingValues:xYe,defaultFormattingWidth:"wide"})},RYe=/^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i,PYe=/\d+/i,AYe={narrow:/^(c|o)/i,abbreviated:/^(c\.?\s?c\.?|o\.?\s?c\.?)/i,wide:/^(cyn christ|ar ôl crist|ar ol crist)/i},NYe={wide:[/^c/i,/^(ar ôl crist|ar ol crist)/i],any:[/^c/i,/^o/i]},MYe={narrow:/^[1234]/i,abbreviated:/^ch[1234]/i,wide:/^(chwarter 1af)|([234](ail|ydd)? chwarter)/i},IYe={any:[/1/i,/2/i,/3/i,/4/i]},DYe={narrow:/^(i|ch|m|e|g|a|h|t|rh)/i,abbreviated:/^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i,wide:/^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i},$Ye={narrow:[/^i/i,/^ch/i,/^m/i,/^e/i,/^m/i,/^m/i,/^g/i,/^a/i,/^m/i,/^h/i,/^t/i,/^rh/i],any:[/^io/i,/^ch/i,/^maw/i,/^e/i,/^mai/i,/^meh/i,/^g/i,/^a/i,/^med/i,/^h/i,/^t/i,/^rh/i]},LYe={narrow:/^(s|ll|m|i|g)/i,short:/^(su|ll|ma|me|ia|gw|sa)/i,abbreviated:/^(sul|llun|maw|mer|iau|gwe|sad)/i,wide:/^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i},FYe={narrow:[/^s/i,/^ll/i,/^m/i,/^m/i,/^i/i,/^g/i,/^s/i],wide:[/^dydd su/i,/^dydd ll/i,/^dydd ma/i,/^dydd me/i,/^dydd i/i,/^dydd g/i,/^dydd sa/i],any:[/^su/i,/^ll/i,/^ma/i,/^me/i,/^i/i,/^g/i,/^sa/i]},jYe={narrow:/^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i,any:/^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i},UYe={any:{am:/^b|(y\.?\s?b\.?)/i,pm:/^h|(y\.?\s?h\.?)|(yr hwyr)/i,midnight:/^hn|hanner nos/i,noon:/^hd|hanner dydd/i,morning:/bore/i,afternoon:/prynhawn/i,evening:/^gyda'r nos$/i,night:/blah/i}},BYe={ordinalNumber:Xt({matchPattern:RYe,parsePattern:PYe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:AYe,defaultMatchWidth:"wide",parsePatterns:NYe,defaultParseWidth:"any"}),quarter:se({matchPatterns:MYe,defaultMatchWidth:"wide",parsePatterns:IYe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:DYe,defaultMatchWidth:"wide",parsePatterns:$Ye,defaultParseWidth:"any"}),day:se({matchPatterns:LYe,defaultMatchWidth:"wide",parsePatterns:FYe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:jYe,defaultMatchWidth:"any",parsePatterns:UYe,defaultParseWidth:"any"})},WYe={code:"cy",formatDistance:hYe,formatLong:yYe,formatRelative:wYe,localize:OYe,match:BYe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const zYe=Object.freeze(Object.defineProperty({__proto__:null,default:WYe},Symbol.toStringTag,{value:"Module"})),qYe=jt(zYe);var HYe={lessThanXSeconds:{one:"mindre end ét sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"ét halvt minut",lessThanXMinutes:{one:"mindre end ét minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 måned",other:"cirka {{count}} måneder"},xMonths:{one:"1 måned",other:"{{count}} måneder"},aboutXYears:{one:"cirka 1 år",other:"cirka {{count}} år"},xYears:{one:"1 år",other:"{{count}} år"},overXYears:{one:"over 1 år",other:"over {{count}} år"},almostXYears:{one:"næsten 1 år",other:"næsten {{count}} år"}},VYe=function(t,n,r){var a,i=HYe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" siden":a},GYe={full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},YYe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},KYe={full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},XYe={date:Ne({formats:GYe,defaultWidth:"full"}),time:Ne({formats:YYe,defaultWidth:"full"}),dateTime:Ne({formats:KYe,defaultWidth:"full"})},QYe={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'på' eeee 'kl.' p",other:"P"},JYe=function(t,n,r,a){return QYe[t]},ZYe={narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["før vesterlandsk tidsregning","vesterlandsk tidsregning"]},eKe={narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},tKe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},nKe={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn.","man.","tir.","ons.","tor.","fre.","lør."],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},rKe={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},aKe={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},iKe=function(t,n){var r=Number(t);return r+"."},oKe={ordinalNumber:iKe,era:oe({values:ZYe,defaultWidth:"wide"}),quarter:oe({values:eKe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:tKe,defaultWidth:"wide"}),day:oe({values:nKe,defaultWidth:"wide"}),dayPeriod:oe({values:rKe,defaultWidth:"wide",formattingValues:aKe,defaultFormattingWidth:"wide"})},sKe=/^(\d+)(\.)?/i,lKe=/\d+/i,uKe={narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},cKe={any:[/^f/i,/^(v|e)/i]},dKe={narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},fKe={any:[/1/i,/2/i,/3/i,/4/i]},pKe={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},hKe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mKe={narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},gKe={narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},vKe={narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},yKe={any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},bKe={ordinalNumber:Xt({matchPattern:sKe,parsePattern:lKe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:uKe,defaultMatchWidth:"wide",parsePatterns:cKe,defaultParseWidth:"any"}),quarter:se({matchPatterns:dKe,defaultMatchWidth:"wide",parsePatterns:fKe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:pKe,defaultMatchWidth:"wide",parsePatterns:hKe,defaultParseWidth:"any"}),day:se({matchPatterns:mKe,defaultMatchWidth:"wide",parsePatterns:gKe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:vKe,defaultMatchWidth:"any",parsePatterns:yKe,defaultParseWidth:"any"})},wKe={code:"da",formatDistance:VYe,formatLong:XYe,formatRelative:JYe,localize:oKe,match:bKe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const SKe=Object.freeze(Object.defineProperty({__proto__:null,default:wKe},Symbol.toStringTag,{value:"Module"})),EKe=jt(SKe);var SG={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},TKe=function(t,n,r){var a,i=r!=null&&r.addSuffix?SG[t].withPreposition:SG[t].standalone;return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:"vor "+a:a},CKe={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},kKe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},xKe={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},_Ke={date:Ne({formats:CKe,defaultWidth:"full"}),time:Ne({formats:kKe,defaultWidth:"full"}),dateTime:Ne({formats:xKe,defaultWidth:"full"})},OKe={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},RKe=function(t,n,r,a){return OKe[t]},PKe={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},AKe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},k3={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},NKe={narrow:k3.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:k3.wide},MKe={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},IKe={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},DKe={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},$Ke=function(t){var n=Number(t);return n+"."},LKe={ordinalNumber:$Ke,era:oe({values:PKe,defaultWidth:"wide"}),quarter:oe({values:AKe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:k3,formattingValues:NKe,defaultWidth:"wide"}),day:oe({values:MKe,defaultWidth:"wide"}),dayPeriod:oe({values:IKe,defaultWidth:"wide",formattingValues:DKe,defaultFormattingWidth:"wide"})},FKe=/^(\d+)(\.)?/i,jKe=/\d+/i,UKe={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},BKe={any:[/^v/i,/^n/i]},WKe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},zKe={any:[/1/i,/2/i,/3/i,/4/i]},qKe={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},HKe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},VKe={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},GKe={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},YKe={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},KKe={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},XKe={ordinalNumber:Xt({matchPattern:FKe,parsePattern:jKe,valueCallback:function(t){return parseInt(t)}}),era:se({matchPatterns:UKe,defaultMatchWidth:"wide",parsePatterns:BKe,defaultParseWidth:"any"}),quarter:se({matchPatterns:WKe,defaultMatchWidth:"wide",parsePatterns:zKe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:qKe,defaultMatchWidth:"wide",parsePatterns:HKe,defaultParseWidth:"any"}),day:se({matchPatterns:VKe,defaultMatchWidth:"wide",parsePatterns:GKe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:YKe,defaultMatchWidth:"wide",parsePatterns:KKe,defaultParseWidth:"any"})},QKe={code:"de",formatDistance:TKe,formatLong:_Ke,formatRelative:RKe,localize:LKe,match:XKe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const JKe=Object.freeze(Object.defineProperty({__proto__:null,default:QKe},Symbol.toStringTag,{value:"Module"})),ZKe=jt(JKe);var eXe={lessThanXSeconds:{one:"λιγότερο από ένα δευτερόλεπτο",other:"λιγότερο από {{count}} δευτερόλεπτα"},xSeconds:{one:"1 δευτερόλεπτο",other:"{{count}} δευτερόλεπτα"},halfAMinute:"μισό λεπτό",lessThanXMinutes:{one:"λιγότερο από ένα λεπτό",other:"λιγότερο από {{count}} λεπτά"},xMinutes:{one:"1 λεπτό",other:"{{count}} λεπτά"},aboutXHours:{one:"περίπου 1 ώρα",other:"περίπου {{count}} ώρες"},xHours:{one:"1 ώρα",other:"{{count}} ώρες"},xDays:{one:"1 ημέρα",other:"{{count}} ημέρες"},aboutXWeeks:{one:"περίπου 1 εβδομάδα",other:"περίπου {{count}} εβδομάδες"},xWeeks:{one:"1 εβδομάδα",other:"{{count}} εβδομάδες"},aboutXMonths:{one:"περίπου 1 μήνας",other:"περίπου {{count}} μήνες"},xMonths:{one:"1 μήνας",other:"{{count}} μήνες"},aboutXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"},xYears:{one:"1 χρόνο",other:"{{count}} χρόνια"},overXYears:{one:"πάνω από 1 χρόνο",other:"πάνω από {{count}} χρόνια"},almostXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"}},tXe=function(t,n,r){var a,i=eXe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"σε "+a:a+" πριν":a},nXe={full:"EEEE, d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"d/M/yy"},rXe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},aXe={full:"{{date}} - {{time}}",long:"{{date}} - {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iXe={date:Ne({formats:nXe,defaultWidth:"full"}),time:Ne({formats:rXe,defaultWidth:"full"}),dateTime:Ne({formats:aXe,defaultWidth:"full"})},oXe={lastWeek:function(t){switch(t.getUTCDay()){case 6:return"'το προηγούμενο' eeee 'στις' p";default:return"'την προηγούμενη' eeee 'στις' p"}},yesterday:"'χθες στις' p",today:"'σήμερα στις' p",tomorrow:"'αύριο στις' p",nextWeek:"eeee 'στις' p",other:"P"},sXe=function(t,n){var r=oXe[t];return typeof r=="function"?r(n):r},lXe={narrow:["πΧ","μΧ"],abbreviated:["π.Χ.","μ.Χ."],wide:["προ Χριστού","μετά Χριστόν"]},uXe={narrow:["1","2","3","4"],abbreviated:["Τ1","Τ2","Τ3","Τ4"],wide:["1ο τρίμηνο","2ο τρίμηνο","3ο τρίμηνο","4ο τρίμηνο"]},cXe={narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],wide:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]},dXe={narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],wide:["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"]},fXe={narrow:["Κ","Δ","T","Τ","Π","Π","Σ"],short:["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],abbreviated:["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],wide:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},pXe={narrow:{am:"πμ",pm:"μμ",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},abbreviated:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},wide:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"}},hXe=function(t,n){var r=Number(t),a=n==null?void 0:n.unit,i;return a==="year"||a==="month"?i="ος":a==="week"||a==="dayOfYear"||a==="day"||a==="hour"||a==="date"?i="η":i="ο",r+i},mXe={ordinalNumber:hXe,era:oe({values:lXe,defaultWidth:"wide"}),quarter:oe({values:uXe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:cXe,defaultWidth:"wide",formattingValues:dXe,defaultFormattingWidth:"wide"}),day:oe({values:fXe,defaultWidth:"wide"}),dayPeriod:oe({values:pXe,defaultWidth:"wide"})},gXe=/^(\d+)(ος|η|ο)?/i,vXe=/\d+/i,yXe={narrow:/^(πΧ|μΧ)/i,abbreviated:/^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i,wide:/^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i},bXe={any:[/^π/i,/^(μ|κ)/i]},wXe={narrow:/^[1234]/i,abbreviated:/^τ[1234]/i,wide:/^[1234]ο? τρ(ί|ι)μηνο/i},SXe={any:[/1/i,/2/i,/3/i,/4/i]},EXe={narrow:/^[ιφμαμιιασονδ]/i,abbreviated:/^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i,wide:/^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i},TXe={narrow:[/^ι/i,/^φ/i,/^μ/i,/^α/i,/^μ/i,/^ι/i,/^ι/i,/^α/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i],any:[/^ια/i,/^φ/i,/^μ[άα]ρ/i,/^απ/i,/^μ[άα][ιΐ]/i,/^ιο[ύυ]ν/i,/^ιο[ύυ]λ/i,/^α[ύυ]/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i]},CXe={narrow:/^[κδτπσ]/i,short:/^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i,abbreviated:/^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i,wide:/^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i},kXe={narrow:[/^κ/i,/^δ/i,/^τ/i,/^τ/i,/^π/i,/^π/i,/^σ/i],any:[/^κ/i,/^δ/i,/^τρ/i,/^τε/i,/^π[εέ]/i,/^π[αά]/i,/^σ/i]},xXe={narrow:/^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i,any:/^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i},_Xe={any:{am:/^πμ|π\.\s?μ\./i,pm:/^μμ|μ\.\s?μ\./i,midnight:/^μεσάν/i,noon:/^μεσημ(έ|ε)/i,morning:/πρω(ί|ι)/i,afternoon:/απ(ό|ο)γευμα/i,evening:/βρ(ά|α)δυ/i,night:/ν(ύ|υ)χτα/i}},OXe={ordinalNumber:Xt({matchPattern:gXe,parsePattern:vXe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:yXe,defaultMatchWidth:"wide",parsePatterns:bXe,defaultParseWidth:"any"}),quarter:se({matchPatterns:wXe,defaultMatchWidth:"wide",parsePatterns:SXe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:EXe,defaultMatchWidth:"wide",parsePatterns:TXe,defaultParseWidth:"any"}),day:se({matchPatterns:CXe,defaultMatchWidth:"wide",parsePatterns:kXe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:xXe,defaultMatchWidth:"any",parsePatterns:_Xe,defaultParseWidth:"any"})},RXe={code:"el",formatDistance:tXe,formatLong:iXe,formatRelative:sXe,localize:mXe,match:OXe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const PXe=Object.freeze(Object.defineProperty({__proto__:null,default:RXe},Symbol.toStringTag,{value:"Module"})),AXe=jt(PXe);var NXe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},MXe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},IXe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},DXe={date:Ne({formats:NXe,defaultWidth:"full"}),time:Ne({formats:MXe,defaultWidth:"full"}),dateTime:Ne({formats:IXe,defaultWidth:"full"})},$Xe={code:"en-AU",formatDistance:i4,formatLong:DXe,formatRelative:U_,localize:B_,match:W_,options:{weekStartsOn:1,firstWeekContainsDate:4}};const LXe=Object.freeze(Object.defineProperty({__proto__:null,default:$Xe},Symbol.toStringTag,{value:"Module"})),FXe=jt(LXe);var jXe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"a second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"a minute",other:"{{count}} minutes"},aboutXHours:{one:"about an hour",other:"about {{count}} hours"},xHours:{one:"an hour",other:"{{count}} hours"},xDays:{one:"a day",other:"{{count}} days"},aboutXWeeks:{one:"about a week",other:"about {{count}} weeks"},xWeeks:{one:"a week",other:"{{count}} weeks"},aboutXMonths:{one:"about a month",other:"about {{count}} months"},xMonths:{one:"a month",other:"{{count}} months"},aboutXYears:{one:"about a year",other:"about {{count}} years"},xYears:{one:"a year",other:"{{count}} years"},overXYears:{one:"over a year",other:"over {{count}} years"},almostXYears:{one:"almost a year",other:"almost {{count}} years"}},UXe=function(t,n,r){var a,i=jXe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a},BXe={full:"EEEE, MMMM do, yyyy",long:"MMMM do, yyyy",medium:"MMM d, yyyy",short:"yyyy-MM-dd"},WXe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zXe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qXe={date:Ne({formats:BXe,defaultWidth:"full"}),time:Ne({formats:WXe,defaultWidth:"full"}),dateTime:Ne({formats:zXe,defaultWidth:"full"})},HXe={code:"en-CA",formatDistance:UXe,formatLong:qXe,formatRelative:U_,localize:B_,match:W_,options:{weekStartsOn:0,firstWeekContainsDate:1}};const VXe=Object.freeze(Object.defineProperty({__proto__:null,default:HXe},Symbol.toStringTag,{value:"Module"})),GXe=jt(VXe);var YXe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},KXe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},XXe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},QXe={date:Ne({formats:YXe,defaultWidth:"full"}),time:Ne({formats:KXe,defaultWidth:"full"}),dateTime:Ne({formats:XXe,defaultWidth:"full"})},JXe={code:"en-GB",formatDistance:i4,formatLong:QXe,formatRelative:U_,localize:B_,match:W_,options:{weekStartsOn:1,firstWeekContainsDate:4}};const ZXe=Object.freeze(Object.defineProperty({__proto__:null,default:JXe},Symbol.toStringTag,{value:"Module"})),eQe=jt(ZXe);var tQe={lessThanXSeconds:{one:"malpli ol sekundo",other:"malpli ol {{count}} sekundoj"},xSeconds:{one:"1 sekundo",other:"{{count}} sekundoj"},halfAMinute:"duonminuto",lessThanXMinutes:{one:"malpli ol minuto",other:"malpli ol {{count}} minutoj"},xMinutes:{one:"1 minuto",other:"{{count}} minutoj"},aboutXHours:{one:"proksimume 1 horo",other:"proksimume {{count}} horoj"},xHours:{one:"1 horo",other:"{{count}} horoj"},xDays:{one:"1 tago",other:"{{count}} tagoj"},aboutXMonths:{one:"proksimume 1 monato",other:"proksimume {{count}} monatoj"},xWeeks:{one:"1 semajno",other:"{{count}} semajnoj"},aboutXWeeks:{one:"proksimume 1 semajno",other:"proksimume {{count}} semajnoj"},xMonths:{one:"1 monato",other:"{{count}} monatoj"},aboutXYears:{one:"proksimume 1 jaro",other:"proksimume {{count}} jaroj"},xYears:{one:"1 jaro",other:"{{count}} jaroj"},overXYears:{one:"pli ol 1 jaro",other:"pli ol {{count}} jaroj"},almostXYears:{one:"preskaŭ 1 jaro",other:"preskaŭ {{count}} jaroj"}},nQe=function(t,n,r){var a,i=tQe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r!=null&&r.comparison&&r.comparison>0?"post "+a:"antaŭ "+a:a},rQe={full:"EEEE, do 'de' MMMM y",long:"y-MMMM-dd",medium:"y-MMM-dd",short:"yyyy-MM-dd"},aQe={full:"Ho 'horo kaj' m:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},iQe={any:"{{date}} {{time}}"},oQe={date:Ne({formats:rQe,defaultWidth:"full"}),time:Ne({formats:aQe,defaultWidth:"full"}),dateTime:Ne({formats:iQe,defaultWidth:"any"})},sQe={lastWeek:"'pasinta' eeee 'je' p",yesterday:"'hieraŭ je' p",today:"'hodiaŭ je' p",tomorrow:"'morgaŭ je' p",nextWeek:"eeee 'je' p",other:"P"},lQe=function(t,n,r,a){return sQe[t]},uQe={narrow:["aK","pK"],abbreviated:["a.K.E.","p.K.E."],wide:["antaŭ Komuna Erao","Komuna Erao"]},cQe={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1-a kvaronjaro","2-a kvaronjaro","3-a kvaronjaro","4-a kvaronjaro"]},dQe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan","feb","mar","apr","maj","jun","jul","aŭg","sep","okt","nov","dec"],wide:["januaro","februaro","marto","aprilo","majo","junio","julio","aŭgusto","septembro","oktobro","novembro","decembro"]},fQe={narrow:["D","L","M","M","Ĵ","V","S"],short:["di","lu","ma","me","ĵa","ve","sa"],abbreviated:["dim","lun","mar","mer","ĵaŭ","ven","sab"],wide:["dimanĉo","lundo","mardo","merkredo","ĵaŭdo","vendredo","sabato"]},pQe={narrow:{am:"a",pm:"p",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},abbreviated:{am:"a.t.m.",pm:"p.t.m.",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},wide:{am:"antaŭtagmeze",pm:"posttagmeze",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"}},hQe=function(t){var n=Number(t);return n+"-a"},mQe={ordinalNumber:hQe,era:oe({values:uQe,defaultWidth:"wide"}),quarter:oe({values:cQe,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:dQe,defaultWidth:"wide"}),day:oe({values:fQe,defaultWidth:"wide"}),dayPeriod:oe({values:pQe,defaultWidth:"wide"})},gQe=/^(\d+)(-?a)?/i,vQe=/\d+/i,yQe={narrow:/^([ap]k)/i,abbreviated:/^([ap]\.?\s?k\.?\s?e\.?)/i,wide:/^((antaǔ |post )?komuna erao)/i},bQe={any:[/^a/i,/^[kp]/i]},wQe={narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](-?a)? kvaronjaro/i},SQe={any:[/1/i,/2/i,/3/i,/4/i]},EQe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i,wide:/^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i},TQe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^a(u|ŭ)/i,/^s/i,/^o/i,/^n/i,/^d/i]},CQe={narrow:/^[dlmĵjvs]/i,short:/^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i,wide:/^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i},kQe={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^(j|ĵ)/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^(j|ĵ)/i,/^v/i,/^s/i]},xQe={narrow:/^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,abbreviated:/^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,wide:/^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i},_Qe={any:{am:/^a/i,pm:/^p/i,midnight:/^noktom/i,noon:/^t/i,morning:/^m/i,afternoon:/^posttagmeze/i,evening:/^v/i,night:/^n/i}},OQe={ordinalNumber:Xt({matchPattern:gQe,parsePattern:vQe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:yQe,defaultMatchWidth:"wide",parsePatterns:bQe,defaultParseWidth:"any"}),quarter:se({matchPatterns:wQe,defaultMatchWidth:"wide",parsePatterns:SQe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:EQe,defaultMatchWidth:"wide",parsePatterns:TQe,defaultParseWidth:"any"}),day:se({matchPatterns:CQe,defaultMatchWidth:"wide",parsePatterns:kQe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:xQe,defaultMatchWidth:"wide",parsePatterns:_Qe,defaultParseWidth:"any"})},RQe={code:"eo",formatDistance:nQe,formatLong:oQe,formatRelative:lQe,localize:mQe,match:OQe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const PQe=Object.freeze(Object.defineProperty({__proto__:null,default:RQe},Symbol.toStringTag,{value:"Module"})),AQe=jt(PQe);var NQe={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},MQe=function(t,n,r){var a,i=NQe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+a:"hace "+a:a},IQe={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},DQe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},$Qe={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},LQe={date:Ne({formats:IQe,defaultWidth:"full"}),time:Ne({formats:DQe,defaultWidth:"full"}),dateTime:Ne({formats:$Qe,defaultWidth:"full"})},FQe={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},jQe={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},UQe=function(t,n,r,a){return n.getUTCHours()!==1?jQe[t]:FQe[t]},BQe={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},WQe={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},zQe={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},qQe={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},HQe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},VQe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},GQe=function(t,n){var r=Number(t);return r+"º"},YQe={ordinalNumber:GQe,era:oe({values:BQe,defaultWidth:"wide"}),quarter:oe({values:WQe,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:zQe,defaultWidth:"wide"}),day:oe({values:qQe,defaultWidth:"wide"}),dayPeriod:oe({values:HQe,defaultWidth:"wide",formattingValues:VQe,defaultFormattingWidth:"wide"})},KQe=/^(\d+)(º)?/i,XQe=/\d+/i,QQe={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},JQe={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},ZQe={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},eJe={any:[/1/i,/2/i,/3/i,/4/i]},tJe={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},nJe={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},rJe={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},aJe={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},iJe={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},oJe={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},sJe={ordinalNumber:Xt({matchPattern:KQe,parsePattern:XQe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:QQe,defaultMatchWidth:"wide",parsePatterns:JQe,defaultParseWidth:"any"}),quarter:se({matchPatterns:ZQe,defaultMatchWidth:"wide",parsePatterns:eJe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:tJe,defaultMatchWidth:"wide",parsePatterns:nJe,defaultParseWidth:"any"}),day:se({matchPatterns:rJe,defaultMatchWidth:"wide",parsePatterns:aJe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:iJe,defaultMatchWidth:"any",parsePatterns:oJe,defaultParseWidth:"any"})},lJe={code:"es",formatDistance:MQe,formatLong:LQe,formatRelative:UQe,localize:YQe,match:sJe,options:{weekStartsOn:1,firstWeekContainsDate:1}};const uJe=Object.freeze(Object.defineProperty({__proto__:null,default:lJe},Symbol.toStringTag,{value:"Module"})),cJe=jt(uJe);var EG={lessThanXSeconds:{standalone:{one:"vähem kui üks sekund",other:"vähem kui {{count}} sekundit"},withPreposition:{one:"vähem kui ühe sekundi",other:"vähem kui {{count}} sekundi"}},xSeconds:{standalone:{one:"üks sekund",other:"{{count}} sekundit"},withPreposition:{one:"ühe sekundi",other:"{{count}} sekundi"}},halfAMinute:{standalone:"pool minutit",withPreposition:"poole minuti"},lessThanXMinutes:{standalone:{one:"vähem kui üks minut",other:"vähem kui {{count}} minutit"},withPreposition:{one:"vähem kui ühe minuti",other:"vähem kui {{count}} minuti"}},xMinutes:{standalone:{one:"üks minut",other:"{{count}} minutit"},withPreposition:{one:"ühe minuti",other:"{{count}} minuti"}},aboutXHours:{standalone:{one:"umbes üks tund",other:"umbes {{count}} tundi"},withPreposition:{one:"umbes ühe tunni",other:"umbes {{count}} tunni"}},xHours:{standalone:{one:"üks tund",other:"{{count}} tundi"},withPreposition:{one:"ühe tunni",other:"{{count}} tunni"}},xDays:{standalone:{one:"üks päev",other:"{{count}} päeva"},withPreposition:{one:"ühe päeva",other:"{{count}} päeva"}},aboutXWeeks:{standalone:{one:"umbes üks nädal",other:"umbes {{count}} nädalat"},withPreposition:{one:"umbes ühe nädala",other:"umbes {{count}} nädala"}},xWeeks:{standalone:{one:"üks nädal",other:"{{count}} nädalat"},withPreposition:{one:"ühe nädala",other:"{{count}} nädala"}},aboutXMonths:{standalone:{one:"umbes üks kuu",other:"umbes {{count}} kuud"},withPreposition:{one:"umbes ühe kuu",other:"umbes {{count}} kuu"}},xMonths:{standalone:{one:"üks kuu",other:"{{count}} kuud"},withPreposition:{one:"ühe kuu",other:"{{count}} kuu"}},aboutXYears:{standalone:{one:"umbes üks aasta",other:"umbes {{count}} aastat"},withPreposition:{one:"umbes ühe aasta",other:"umbes {{count}} aasta"}},xYears:{standalone:{one:"üks aasta",other:"{{count}} aastat"},withPreposition:{one:"ühe aasta",other:"{{count}} aasta"}},overXYears:{standalone:{one:"rohkem kui üks aasta",other:"rohkem kui {{count}} aastat"},withPreposition:{one:"rohkem kui ühe aasta",other:"rohkem kui {{count}} aasta"}},almostXYears:{standalone:{one:"peaaegu üks aasta",other:"peaaegu {{count}} aastat"},withPreposition:{one:"peaaegu ühe aasta",other:"peaaegu {{count}} aasta"}}},dJe=function(t,n,r){var a=r!=null&&r.addSuffix?EG[t].withPreposition:EG[t].standalone,i;return typeof a=="string"?i=a:n===1?i=a.one:i=a.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?i+" pärast":i+" eest":i},fJe={full:"EEEE, d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},pJe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},hJe={full:"{{date}} 'kell' {{time}}",long:"{{date}} 'kell' {{time}}",medium:"{{date}}. {{time}}",short:"{{date}}. {{time}}"},mJe={date:Ne({formats:fJe,defaultWidth:"full"}),time:Ne({formats:pJe,defaultWidth:"full"}),dateTime:Ne({formats:hJe,defaultWidth:"full"})},gJe={lastWeek:"'eelmine' eeee 'kell' p",yesterday:"'eile kell' p",today:"'täna kell' p",tomorrow:"'homme kell' p",nextWeek:"'järgmine' eeee 'kell' p",other:"P"},vJe=function(t,n,r,a){return gJe[t]},yJe={narrow:["e.m.a","m.a.j"],abbreviated:["e.m.a","m.a.j"],wide:["enne meie ajaarvamist","meie ajaarvamise järgi"]},bJe={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},TG={narrow:["J","V","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jaan","veebr","märts","apr","mai","juuni","juuli","aug","sept","okt","nov","dets"],wide:["jaanuar","veebruar","märts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember"]},CG={narrow:["P","E","T","K","N","R","L"],short:["P","E","T","K","N","R","L"],abbreviated:["pühap.","esmasp.","teisip.","kolmap.","neljap.","reede.","laup."],wide:["pühapäev","esmaspäev","teisipäev","kolmapäev","neljapäev","reede","laupäev"]},wJe={narrow:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"},abbreviated:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"},wide:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"}},SJe={narrow:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"},abbreviated:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"},wide:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"}},EJe=function(t,n){var r=Number(t);return r+"."},TJe={ordinalNumber:EJe,era:oe({values:yJe,defaultWidth:"wide"}),quarter:oe({values:bJe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:TG,defaultWidth:"wide",formattingValues:TG,defaultFormattingWidth:"wide"}),day:oe({values:CG,defaultWidth:"wide",formattingValues:CG,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:wJe,defaultWidth:"wide",formattingValues:SJe,defaultFormattingWidth:"wide"})},CJe=/^\d+\./i,kJe=/\d+/i,xJe={narrow:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,abbreviated:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,wide:/^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i},_Je={any:[/^e/i,/^(m|p)/i]},OJe={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](\.)? kvartal/i},RJe={any:[/1/i,/2/i,/3/i,/4/i]},PJe={narrow:/^[jvmasond]/i,abbreviated:/^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i,wide:/^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i},AJe={narrow:[/^j/i,/^v/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^v/i,/^mär/i,/^ap/i,/^mai/i,/^juun/i,/^juul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},NJe={narrow:/^[petknrl]/i,short:/^[petknrl]/i,abbreviated:/^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i,wide:/^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i},MJe={any:[/^p/i,/^e/i,/^t/i,/^k/i,/^n/i,/^r/i,/^l/i]},IJe={any:/^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i},DJe={any:{am:/^a/i,pm:/^p/i,midnight:/^keskö/i,noon:/^keskp/i,morning:/hommik/i,afternoon:/pärastlõuna/i,evening:/õhtu/i,night:/öö/i}},$Je={ordinalNumber:Xt({matchPattern:CJe,parsePattern:kJe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:xJe,defaultMatchWidth:"wide",parsePatterns:_Je,defaultParseWidth:"any"}),quarter:se({matchPatterns:OJe,defaultMatchWidth:"wide",parsePatterns:RJe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:PJe,defaultMatchWidth:"wide",parsePatterns:AJe,defaultParseWidth:"any"}),day:se({matchPatterns:NJe,defaultMatchWidth:"wide",parsePatterns:MJe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:IJe,defaultMatchWidth:"any",parsePatterns:DJe,defaultParseWidth:"any"})},LJe={code:"et",formatDistance:dJe,formatLong:mJe,formatRelative:vJe,localize:TJe,match:$Je,options:{weekStartsOn:1,firstWeekContainsDate:4}};const FJe=Object.freeze(Object.defineProperty({__proto__:null,default:LJe},Symbol.toStringTag,{value:"Module"})),jJe=jt(FJe);var UJe={lessThanXSeconds:{one:"کمتر از یک ثانیه",other:"کمتر از {{count}} ثانیه"},xSeconds:{one:"1 ثانیه",other:"{{count}} ثانیه"},halfAMinute:"نیم دقیقه",lessThanXMinutes:{one:"کمتر از یک دقیقه",other:"کمتر از {{count}} دقیقه"},xMinutes:{one:"1 دقیقه",other:"{{count}} دقیقه"},aboutXHours:{one:"حدود 1 ساعت",other:"حدود {{count}} ساعت"},xHours:{one:"1 ساعت",other:"{{count}} ساعت"},xDays:{one:"1 روز",other:"{{count}} روز"},aboutXWeeks:{one:"حدود 1 هفته",other:"حدود {{count}} هفته"},xWeeks:{one:"1 هفته",other:"{{count}} هفته"},aboutXMonths:{one:"حدود 1 ماه",other:"حدود {{count}} ماه"},xMonths:{one:"1 ماه",other:"{{count}} ماه"},aboutXYears:{one:"حدود 1 سال",other:"حدود {{count}} سال"},xYears:{one:"1 سال",other:"{{count}} سال"},overXYears:{one:"بیشتر از 1 سال",other:"بیشتر از {{count}} سال"},almostXYears:{one:"نزدیک 1 سال",other:"نزدیک {{count}} سال"}},BJe=function(t,n,r){var a,i=UJe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"در "+a:a+" قبل":a},WJe={full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},zJe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},qJe={full:"{{date}} 'در' {{time}}",long:"{{date}} 'در' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},HJe={date:Ne({formats:WJe,defaultWidth:"full"}),time:Ne({formats:zJe,defaultWidth:"full"}),dateTime:Ne({formats:qJe,defaultWidth:"full"})},VJe={lastWeek:"eeee 'گذشته در' p",yesterday:"'دیروز در' p",today:"'امروز در' p",tomorrow:"'فردا در' p",nextWeek:"eeee 'در' p",other:"P"},GJe=function(t,n,r,a){return VJe[t]},YJe={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل از میلاد","بعد از میلاد"]},KJe={narrow:["1","2","3","4"],abbreviated:["س‌م1","س‌م2","س‌م3","س‌م4"],wide:["سه‌ماهه 1","سه‌ماهه 2","سه‌ماهه 3","سه‌ماهه 4"]},XJe={narrow:["ژ","ف","م","آ","م","ج","ج","آ","س","ا","ن","د"],abbreviated:["ژانـ","فور","مارس","آپر","می","جون","جولـ","آگو","سپتـ","اکتـ","نوامـ","دسامـ"],wide:["ژانویه","فوریه","مارس","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},QJe={narrow:["ی","د","س","چ","پ","ج","ش"],short:["1ش","2ش","3ش","4ش","5ش","ج","ش"],abbreviated:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],wide:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},JJe={narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},ZJe={narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},eZe=function(t,n){return String(t)},tZe={ordinalNumber:eZe,era:oe({values:YJe,defaultWidth:"wide"}),quarter:oe({values:KJe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:XJe,defaultWidth:"wide"}),day:oe({values:QJe,defaultWidth:"wide"}),dayPeriod:oe({values:JJe,defaultWidth:"wide",formattingValues:ZJe,defaultFormattingWidth:"wide"})},nZe=/^(\d+)(th|st|nd|rd)?/i,rZe=/\d+/i,aZe={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},iZe={any:[/^قبل/i,/^بعد/i]},oZe={narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},sZe={any:[/1/i,/2/i,/3/i,/4/i]},lZe={narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},uZe={narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},cZe={narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},dZe={narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},fZe={narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},pZe={any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},hZe={ordinalNumber:Xt({matchPattern:nZe,parsePattern:rZe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:aZe,defaultMatchWidth:"wide",parsePatterns:iZe,defaultParseWidth:"any"}),quarter:se({matchPatterns:oZe,defaultMatchWidth:"wide",parsePatterns:sZe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:lZe,defaultMatchWidth:"wide",parsePatterns:uZe,defaultParseWidth:"any"}),day:se({matchPatterns:cZe,defaultMatchWidth:"wide",parsePatterns:dZe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:fZe,defaultMatchWidth:"wide",parsePatterns:pZe,defaultParseWidth:"any"})},mZe={code:"fa-IR",formatDistance:BJe,formatLong:HJe,formatRelative:GJe,localize:tZe,match:hZe,options:{weekStartsOn:6,firstWeekContainsDate:1}};const gZe=Object.freeze(Object.defineProperty({__proto__:null,default:mZe},Symbol.toStringTag,{value:"Module"})),vZe=jt(gZe);function kG(e){return e.replace(/sekuntia?/,"sekunnin")}function xG(e){return e.replace(/minuuttia?/,"minuutin")}function _G(e){return e.replace(/tuntia?/,"tunnin")}function yZe(e){return e.replace(/päivää?/,"päivän")}function OG(e){return e.replace(/(viikko|viikkoa)/,"viikon")}function RG(e){return e.replace(/(kuukausi|kuukautta)/,"kuukauden")}function gk(e){return e.replace(/(vuosi|vuotta)/,"vuoden")}var bZe={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:kG},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:kG},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:function(t){return"puolen minuutin"}},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:xG},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:xG},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:_G},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:_G},xDays:{one:"päivä",other:"{{count}} päivää",futureTense:yZe},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:OG},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:OG},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:RG},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:RG},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:gk},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:gk},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:gk},almostXYears:{one:"lähes vuosi",other:"lähes {{count}} vuotta",futureTense:gk}},wZe=function(t,n,r){var a=bZe[t],i=n===1?a.one:a.other.replace("{{count}}",String(n));return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a.futureTense(i)+" kuluttua":i+" sitten":i},SZe={full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},EZe={full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},TZe={full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},CZe={date:Ne({formats:SZe,defaultWidth:"full"}),time:Ne({formats:EZe,defaultWidth:"full"}),dateTime:Ne({formats:TZe,defaultWidth:"full"})},kZe={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'tänään klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},xZe=function(t,n,r,a){return kZe[t]},_Ze={narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","jälkeen ajanlaskun alun"]},OZe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},x3={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},RZe={narrow:x3.narrow,abbreviated:x3.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},Bk={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},PZe={narrow:Bk.narrow,short:Bk.short,abbreviated:Bk.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},AZe={narrow:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},wide:{am:"ap",pm:"ip",midnight:"keskiyöllä",noon:"keskipäivällä",morning:"aamupäivällä",afternoon:"iltapäivällä",evening:"illalla",night:"yöllä"}},NZe=function(t,n){var r=Number(t);return r+"."},MZe={ordinalNumber:NZe,era:oe({values:_Ze,defaultWidth:"wide"}),quarter:oe({values:OZe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:x3,defaultWidth:"wide",formattingValues:RZe,defaultFormattingWidth:"wide"}),day:oe({values:Bk,defaultWidth:"wide",formattingValues:PZe,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:AZe,defaultWidth:"wide"})},IZe=/^(\d+)(\.)/i,DZe=/\d+/i,$Ze={narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},LZe={any:[/^e/i,/^j/i]},FZe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},jZe={any:[/1/i,/2/i,/3/i,/4/i]},UZe={narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},BZe={narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},WZe={narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},zZe={narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},qZe={narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},HZe={any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},VZe={ordinalNumber:Xt({matchPattern:IZe,parsePattern:DZe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:$Ze,defaultMatchWidth:"wide",parsePatterns:LZe,defaultParseWidth:"any"}),quarter:se({matchPatterns:FZe,defaultMatchWidth:"wide",parsePatterns:jZe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:UZe,defaultMatchWidth:"wide",parsePatterns:BZe,defaultParseWidth:"any"}),day:se({matchPatterns:WZe,defaultMatchWidth:"wide",parsePatterns:zZe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:qZe,defaultMatchWidth:"any",parsePatterns:HZe,defaultParseWidth:"any"})},GZe={code:"fi",formatDistance:wZe,formatLong:CZe,formatRelative:xZe,localize:MZe,match:VZe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const YZe=Object.freeze(Object.defineProperty({__proto__:null,default:GZe},Symbol.toStringTag,{value:"Module"})),KZe=jt(YZe);var XZe={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},Eae=function(t,n,r){var a,i=XZe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dans "+a:"il y a "+a:a},QZe={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},JZe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ZZe={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},eet={date:Ne({formats:QZe,defaultWidth:"full"}),time:Ne({formats:JZe,defaultWidth:"full"}),dateTime:Ne({formats:ZZe,defaultWidth:"full"})},tet={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},Tae=function(t,n,r,a){return tet[t]},net={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},ret={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},aet={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},iet={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},oet={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},set=function(t,n){var r=Number(t),a=n==null?void 0:n.unit;if(r===0)return"0";var i=["year","week","hour","minute","second"],o;return r===1?o=a&&i.includes(a)?"ère":"er":o="ème",r+o},Cae={ordinalNumber:set,era:oe({values:net,defaultWidth:"wide"}),quarter:oe({values:ret,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:aet,defaultWidth:"wide"}),day:oe({values:iet,defaultWidth:"wide"}),dayPeriod:oe({values:oet,defaultWidth:"wide"})},uet=/^(\d+)(ième|ère|ème|er|e)?/i,cet=/\d+/i,det={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},fet={any:[/^av/i,/^ap/i]},pet={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},het={any:[/1/i,/2/i,/3/i,/4/i]},met={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},get={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},vet={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},yet={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},bet={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},wet={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},kae={ordinalNumber:Xt({matchPattern:uet,parsePattern:cet,valueCallback:function(t){return parseInt(t)}}),era:se({matchPatterns:det,defaultMatchWidth:"wide",parsePatterns:fet,defaultParseWidth:"any"}),quarter:se({matchPatterns:pet,defaultMatchWidth:"wide",parsePatterns:het,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:met,defaultMatchWidth:"wide",parsePatterns:get,defaultParseWidth:"any"}),day:se({matchPatterns:vet,defaultMatchWidth:"wide",parsePatterns:yet,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:bet,defaultMatchWidth:"any",parsePatterns:wet,defaultParseWidth:"any"})},Eet={code:"fr",formatDistance:Eae,formatLong:eet,formatRelative:Tae,localize:Cae,match:kae,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Tet=Object.freeze(Object.defineProperty({__proto__:null,default:Eet},Symbol.toStringTag,{value:"Module"})),Cet=jt(Tet);var ket={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"yy-MM-dd"},xet={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},_et={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Oet={date:Ne({formats:ket,defaultWidth:"full"}),time:Ne({formats:xet,defaultWidth:"full"}),dateTime:Ne({formats:_et,defaultWidth:"full"})},Ret={code:"fr-CA",formatDistance:Eae,formatLong:Oet,formatRelative:Tae,localize:Cae,match:kae,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Pet=Object.freeze(Object.defineProperty({__proto__:null,default:Ret},Symbol.toStringTag,{value:"Module"})),Aet=jt(Pet);var Net={lessThanXSeconds:{one:"menos dun segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos dun minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"arredor dunha hora",other:"arredor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"arredor dunha semana",other:"arredor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"arredor de 1 mes",other:"arredor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"arredor dun ano",other:"arredor de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"máis dun ano",other:"máis de {{count}} anos"},almostXYears:{one:"case un ano",other:"case {{count}} anos"}},Met=function(t,n,r){var a,i=Net[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+a:"hai "+a:a},Iet={full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},Det={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},$et={full:"{{date}} 'ás' {{time}}",long:"{{date}} 'ás' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Let={date:Ne({formats:Iet,defaultWidth:"full"}),time:Ne({formats:Det,defaultWidth:"full"}),dateTime:Ne({formats:$et,defaultWidth:"full"})},Fet={lastWeek:"'o' eeee 'pasado á' LT",yesterday:"'onte á' p",today:"'hoxe á' p",tomorrow:"'mañá á' p",nextWeek:"eeee 'á' p",other:"P"},jet={lastWeek:"'o' eeee 'pasado ás' p",yesterday:"'onte ás' p",today:"'hoxe ás' p",tomorrow:"'mañá ás' p",nextWeek:"eeee 'ás' p",other:"P"},Uet=function(t,n,r,a){return n.getUTCHours()!==1?jet[t]:Fet[t]},Bet={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despois de cristo"]},Wet={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},zet={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["xan","feb","mar","abr","mai","xun","xul","ago","set","out","nov","dec"],wide:["xaneiro","febreiro","marzo","abril","maio","xuño","xullo","agosto","setembro","outubro","novembro","decembro"]},qet={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","me","xo","ve","sa"],abbreviated:["dom","lun","mar","mer","xov","ven","sab"],wide:["domingo","luns","martes","mércores","xoves","venres","sábado"]},Het={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañá",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediodía",morning:"mañá",afternoon:"tarde",evening:"tardiña",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediodía",morning:"mañá",afternoon:"tarde",evening:"tardiña",night:"noite"}},Vet={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediodía",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediodía",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"}},Get=function(t,n){var r=Number(t);return r+"º"},Yet={ordinalNumber:Get,era:oe({values:Bet,defaultWidth:"wide"}),quarter:oe({values:Wet,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:zet,defaultWidth:"wide"}),day:oe({values:qet,defaultWidth:"wide"}),dayPeriod:oe({values:Het,defaultWidth:"wide",formattingValues:Vet,defaultFormattingWidth:"wide"})},Ket=/^(\d+)(º)?/i,Xet=/\d+/i,Qet={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i},Jet={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era com[uú]n)/i,/^(despois de cristo|era com[uú]n)/i]},Zet={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},ett={any:[/1/i,/2/i,/3/i,/4/i]},ttt={narrow:/^[xfmasond]/i,abbreviated:/^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i,wide:/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i},ntt={narrow:[/^x/i,/^f/i,/^m/i,/^a/i,/^m/i,/^x/i,/^x/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^xan/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^xun/i,/^xul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dec/i]},rtt={narrow:/^[dlmxvs]/i,short:/^(do|lu|ma|me|xo|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|xov|ven|sab)/i,wide:/^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i},att={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^x/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^me/i,/^xo/i,/^ve/i,/^sa/i]},itt={narrow:/^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i},ott={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañ[aá]/i,afternoon:/tarde/i,evening:/tardiña/i,night:/noite/i}},stt={ordinalNumber:Xt({matchPattern:Ket,parsePattern:Xet,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Qet,defaultMatchWidth:"wide",parsePatterns:Jet,defaultParseWidth:"any"}),quarter:se({matchPatterns:Zet,defaultMatchWidth:"wide",parsePatterns:ett,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:ttt,defaultMatchWidth:"wide",parsePatterns:ntt,defaultParseWidth:"any"}),day:se({matchPatterns:rtt,defaultMatchWidth:"wide",parsePatterns:att,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:itt,defaultMatchWidth:"any",parsePatterns:ott,defaultParseWidth:"any"})},ltt={code:"gl",formatDistance:Met,formatLong:Let,formatRelative:Uet,localize:Yet,match:stt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const utt=Object.freeze(Object.defineProperty({__proto__:null,default:ltt},Symbol.toStringTag,{value:"Module"})),ctt=jt(utt);var dtt={lessThanXSeconds:{one:"હમણાં",other:"​આશરે {{count}} સેકંડ"},xSeconds:{one:"1 સેકંડ",other:"{{count}} સેકંડ"},halfAMinute:"અડધી મિનિટ",lessThanXMinutes:{one:"આ મિનિટ",other:"​આશરે {{count}} મિનિટ"},xMinutes:{one:"1 મિનિટ",other:"{{count}} મિનિટ"},aboutXHours:{one:"​આશરે 1 કલાક",other:"​આશરે {{count}} કલાક"},xHours:{one:"1 કલાક",other:"{{count}} કલાક"},xDays:{one:"1 દિવસ",other:"{{count}} દિવસ"},aboutXWeeks:{one:"આશરે 1 અઠવાડિયું",other:"આશરે {{count}} અઠવાડિયા"},xWeeks:{one:"1 અઠવાડિયું",other:"{{count}} અઠવાડિયા"},aboutXMonths:{one:"આશરે 1 મહિનો",other:"આશરે {{count}} મહિના"},xMonths:{one:"1 મહિનો",other:"{{count}} મહિના"},aboutXYears:{one:"આશરે 1 વર્ષ",other:"આશરે {{count}} વર્ષ"},xYears:{one:"1 વર્ષ",other:"{{count}} વર્ષ"},overXYears:{one:"1 વર્ષથી વધુ",other:"{{count}} વર્ષથી વધુ"},almostXYears:{one:"લગભગ 1 વર્ષ",other:"લગભગ {{count}} વર્ષ"}},ftt=function(t,n,r){var a,i=dtt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"માં":a+" પહેલાં":a},ptt={full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},htt={full:"hh:mm:ss a zzzz",long:"hh:mm:ss a z",medium:"hh:mm:ss a",short:"hh:mm a"},mtt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},gtt={date:Ne({formats:ptt,defaultWidth:"full"}),time:Ne({formats:htt,defaultWidth:"full"}),dateTime:Ne({formats:mtt,defaultWidth:"full"})},vtt={lastWeek:"'પાછલા' eeee p",yesterday:"'ગઈકાલે' p",today:"'આજે' p",tomorrow:"'આવતીકાલે' p",nextWeek:"eeee p",other:"P"},ytt=function(t,n,r,a){return vtt[t]},btt={narrow:["ઈસપૂ","ઈસ"],abbreviated:["ઈ.સ.પૂર્વે","ઈ.સ."],wide:["ઈસવીસન પૂર્વે","ઈસવીસન"]},wtt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1લો ત્રિમાસ","2જો ત્રિમાસ","3જો ત્રિમાસ","4થો ત્રિમાસ"]},Stt={narrow:["જા","ફે","મા","એ","મે","જૂ","જુ","ઓ","સ","ઓ","ન","ડિ"],abbreviated:["જાન્યુ","ફેબ્રુ","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટે","ઓક્ટો","નવે","ડિસે"],wide:["જાન્યુઆરી","ફેબ્રુઆરી","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઇ","ઓગસ્ટ","સપ્ટેમ્બર","ઓક્ટોબર","નવેમ્બર","ડિસેમ્બર"]},Ett={narrow:["ર","સો","મં","બુ","ગુ","શુ","શ"],short:["ર","સો","મં","બુ","ગુ","શુ","શ"],abbreviated:["રવિ","સોમ","મંગળ","બુધ","ગુરુ","શુક્ર","શનિ"],wide:["રવિવાર","સોમવાર","મંગળવાર","બુધવાર","ગુરુવાર","શુક્રવાર","શનિવાર"]},Ttt={narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બ.",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},Ctt={narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},ktt=function(t,n){return String(t)},xtt={ordinalNumber:ktt,era:oe({values:btt,defaultWidth:"wide"}),quarter:oe({values:wtt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Stt,defaultWidth:"wide"}),day:oe({values:Ett,defaultWidth:"wide"}),dayPeriod:oe({values:Ttt,defaultWidth:"wide",formattingValues:Ctt,defaultFormattingWidth:"wide"})},_tt=/^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i,Ott=/\d+/i,Rtt={narrow:/^(ઈસપૂ|ઈસ)/i,abbreviated:/^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i,wide:/^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i},Ptt={any:[/^ઈસપૂ/i,/^ઈસ/i]},Att={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](લો|જો|થો)? ત્રિમાસ/i},Ntt={any:[/1/i,/2/i,/3/i,/4/i]},Mtt={narrow:/^[જાફેમાએમેજૂજુઓસઓનડિ]/i,abbreviated:/^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i,wide:/^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i},Itt={narrow:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i],any:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i]},Dtt={narrow:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,short:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,abbreviated:/^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i,wide:/^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i},$tt={narrow:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i],any:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i]},Ltt={narrow:/^(a|p|મ\.?|સ|બ|સાં|રા)/i,any:/^(a|p|મ\.?|સ|બ|સાં|રા)/i},Ftt={any:{am:/^a/i,pm:/^p/i,midnight:/^મ\.?/i,noon:/^બ/i,morning:/સ/i,afternoon:/બ/i,evening:/સાં/i,night:/રા/i}},jtt={ordinalNumber:Xt({matchPattern:_tt,parsePattern:Ott,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Rtt,defaultMatchWidth:"wide",parsePatterns:Ptt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Att,defaultMatchWidth:"wide",parsePatterns:Ntt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Mtt,defaultMatchWidth:"wide",parsePatterns:Itt,defaultParseWidth:"any"}),day:se({matchPatterns:Dtt,defaultMatchWidth:"wide",parsePatterns:$tt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Ltt,defaultMatchWidth:"any",parsePatterns:Ftt,defaultParseWidth:"any"})},Utt={code:"gu",formatDistance:ftt,formatLong:gtt,formatRelative:ytt,localize:xtt,match:jtt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Btt=Object.freeze(Object.defineProperty({__proto__:null,default:Utt},Symbol.toStringTag,{value:"Module"})),Wtt=jt(Btt);var ztt={lessThanXSeconds:{one:"פחות משנייה",two:"פחות משתי שניות",other:"פחות מ־{{count}} שניות"},xSeconds:{one:"שנייה",two:"שתי שניות",other:"{{count}} שניות"},halfAMinute:"חצי דקה",lessThanXMinutes:{one:"פחות מדקה",two:"פחות משתי דקות",other:"פחות מ־{{count}} דקות"},xMinutes:{one:"דקה",two:"שתי דקות",other:"{{count}} דקות"},aboutXHours:{one:"כשעה",two:"כשעתיים",other:"כ־{{count}} שעות"},xHours:{one:"שעה",two:"שעתיים",other:"{{count}} שעות"},xDays:{one:"יום",two:"יומיים",other:"{{count}} ימים"},aboutXWeeks:{one:"כשבוע",two:"כשבועיים",other:"כ־{{count}} שבועות"},xWeeks:{one:"שבוע",two:"שבועיים",other:"{{count}} שבועות"},aboutXMonths:{one:"כחודש",two:"כחודשיים",other:"כ־{{count}} חודשים"},xMonths:{one:"חודש",two:"חודשיים",other:"{{count}} חודשים"},aboutXYears:{one:"כשנה",two:"כשנתיים",other:"כ־{{count}} שנים"},xYears:{one:"שנה",two:"שנתיים",other:"{{count}} שנים"},overXYears:{one:"יותר משנה",two:"יותר משנתיים",other:"יותר מ־{{count}} שנים"},almostXYears:{one:"כמעט שנה",two:"כמעט שנתיים",other:"כמעט {{count}} שנים"}},qtt=function(t,n,r){if(t==="xDays"&&r!==null&&r!==void 0&&r.addSuffix&&n<=2)return r.comparison&&r.comparison>0?n===1?"מחר":"מחרתיים":n===1?"אתמול":"שלשום";var a,i=ztt[t];return typeof i=="string"?a=i:n===1?a=i.one:n===2?a=i.two:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"בעוד "+a:"לפני "+a:a},Htt={full:"EEEE, d בMMMM y",long:"d בMMMM y",medium:"d בMMM y",short:"d.M.y"},Vtt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Gtt={full:"{{date}} 'בשעה' {{time}}",long:"{{date}} 'בשעה' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ytt={date:Ne({formats:Htt,defaultWidth:"full"}),time:Ne({formats:Vtt,defaultWidth:"full"}),dateTime:Ne({formats:Gtt,defaultWidth:"full"})},Ktt={lastWeek:"eeee 'שעבר בשעה' p",yesterday:"'אתמול בשעה' p",today:"'היום בשעה' p",tomorrow:"'מחר בשעה' p",nextWeek:"eeee 'בשעה' p",other:"P"},Xtt=function(t,n,r,a){return Ktt[t]},Qtt={narrow:["לפנה״ס","לספירה"],abbreviated:["לפנה״ס","לספירה"],wide:["לפני הספירה","לספירה"]},Jtt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["רבעון 1","רבעון 2","רבעון 3","רבעון 4"]},Ztt={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],wide:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},ent={narrow:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],short:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],abbreviated:["יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת"],wide:["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"]},tnt={narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"}},nnt={narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"בצהריים",evening:"בערב",night:"בלילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"}},rnt=function(t,n){var r=Number(t);if(r<=0||r>10)return String(r);var a=String(n==null?void 0:n.unit),i=["year","hour","minute","second"].indexOf(a)>=0,o=["ראשון","שני","שלישי","רביעי","חמישי","שישי","שביעי","שמיני","תשיעי","עשירי"],l=["ראשונה","שנייה","שלישית","רביעית","חמישית","שישית","שביעית","שמינית","תשיעית","עשירית"],u=r-1;return i?l[u]:o[u]},ant={ordinalNumber:rnt,era:oe({values:Qtt,defaultWidth:"wide"}),quarter:oe({values:Jtt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Ztt,defaultWidth:"wide"}),day:oe({values:ent,defaultWidth:"wide"}),dayPeriod:oe({values:tnt,defaultWidth:"wide",formattingValues:nnt,defaultFormattingWidth:"wide"})},int=/^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i,ont=/^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i,snt={narrow:/^ל(ספירה|פנה״ס)/i,abbreviated:/^ל(ספירה|פנה״ס)/i,wide:/^ל(פני ה)?ספירה/i},lnt={any:[/^לפ/i,/^לס/i]},unt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^רבעון [1234]/i},cnt={any:[/1/i,/2/i,/3/i,/4/i]},dnt={narrow:/^\d+/i,abbreviated:/^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i,wide:/^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i},fnt={narrow:[/^1$/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ינ/i,/^פ/i,/^מר/i,/^אפ/i,/^מא/i,/^יונ/i,/^יול/i,/^אוג/i,/^ס/i,/^אוק/i,/^נ/i,/^ד/i]},pnt={narrow:/^[אבגדהוש]׳/i,short:/^[אבגדהוש]׳/i,abbreviated:/^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i,wide:/^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i},hnt={abbreviated:[/א׳$/i,/ב׳$/i,/ג׳$/i,/ד׳$/i,/ה׳$/i,/ו׳$/i,/^ש/i],wide:[/ן$/i,/ני$/i,/לישי$/i,/עי$/i,/מישי$/i,/שישי$/i,/ת$/i],any:[/^א/i,/^ב/i,/^ג/i,/^ד/i,/^ה/i,/^ו/i,/^ש/i]},mnt={any:/^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i},gnt={any:{am:/^לפ/i,pm:/^אחה/i,midnight:/^ח/i,noon:/^צ/i,morning:/בוקר/i,afternoon:/בצ|אחר/i,evening:/ערב/i,night:/לילה/i}},vnt=["רא","שנ","של","רב","ח","שי","שב","שמ","ת","ע"],ynt={ordinalNumber:Xt({matchPattern:int,parsePattern:ont,valueCallback:function(t){var n=parseInt(t,10);return isNaN(n)?vnt.indexOf(t)+1:n}}),era:se({matchPatterns:snt,defaultMatchWidth:"wide",parsePatterns:lnt,defaultParseWidth:"any"}),quarter:se({matchPatterns:unt,defaultMatchWidth:"wide",parsePatterns:cnt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:dnt,defaultMatchWidth:"wide",parsePatterns:fnt,defaultParseWidth:"any"}),day:se({matchPatterns:pnt,defaultMatchWidth:"wide",parsePatterns:hnt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:mnt,defaultMatchWidth:"any",parsePatterns:gnt,defaultParseWidth:"any"})},bnt={code:"he",formatDistance:qtt,formatLong:Ytt,formatRelative:Xtt,localize:ant,match:ynt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const wnt=Object.freeze(Object.defineProperty({__proto__:null,default:bnt},Symbol.toStringTag,{value:"Module"})),Snt=jt(wnt);var xae={locale:{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},number:{"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"}},Ent={narrow:["ईसा-पूर्व","ईस्वी"],abbreviated:["ईसा-पूर्व","ईस्वी"],wide:["ईसा-पूर्व","ईसवी सन"]},Tnt={narrow:["1","2","3","4"],abbreviated:["ति1","ति2","ति3","ति4"],wide:["पहली तिमाही","दूसरी तिमाही","तीसरी तिमाही","चौथी तिमाही"]},Cnt={narrow:["ज","फ़","मा","अ","मई","जू","जु","अग","सि","अक्टू","न","दि"],abbreviated:["जन","फ़र","मार्च","अप्रैल","मई","जून","जुल","अग","सित","अक्टू","नव","दिस"],wide:["जनवरी","फ़रवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},knt={narrow:["र","सो","मं","बु","गु","शु","श"],short:["र","सो","मं","बु","गु","शु","श"],abbreviated:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],wide:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"]},xnt={narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},_nt={narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},Ont=function(t,n){var r=Number(t);return _ae(r)};function Rnt(e){var t=e.toString().replace(/[१२३४५६७८९०]/g,function(n){return xae.number[n]});return Number(t)}function _ae(e){return e.toString().replace(/\d/g,function(t){return xae.locale[t]})}var Pnt={ordinalNumber:Ont,era:oe({values:Ent,defaultWidth:"wide"}),quarter:oe({values:Tnt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Cnt,defaultWidth:"wide"}),day:oe({values:knt,defaultWidth:"wide"}),dayPeriod:oe({values:xnt,defaultWidth:"wide",formattingValues:_nt,defaultFormattingWidth:"wide"})},Ant={lessThanXSeconds:{one:"१ सेकंड से कम",other:"{{count}} सेकंड से कम"},xSeconds:{one:"१ सेकंड",other:"{{count}} सेकंड"},halfAMinute:"आधा मिनट",lessThanXMinutes:{one:"१ मिनट से कम",other:"{{count}} मिनट से कम"},xMinutes:{one:"१ मिनट",other:"{{count}} मिनट"},aboutXHours:{one:"लगभग १ घंटा",other:"लगभग {{count}} घंटे"},xHours:{one:"१ घंटा",other:"{{count}} घंटे"},xDays:{one:"१ दिन",other:"{{count}} दिन"},aboutXWeeks:{one:"लगभग १ सप्ताह",other:"लगभग {{count}} सप्ताह"},xWeeks:{one:"१ सप्ताह",other:"{{count}} सप्ताह"},aboutXMonths:{one:"लगभग १ महीना",other:"लगभग {{count}} महीने"},xMonths:{one:"१ महीना",other:"{{count}} महीने"},aboutXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"},xYears:{one:"१ वर्ष",other:"{{count}} वर्ष"},overXYears:{one:"१ वर्ष से अधिक",other:"{{count}} वर्ष से अधिक"},almostXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"}},Nnt=function(t,n,r){var a,i=Ant[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",_ae(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"मे ":a+" पहले":a},Mnt={full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},Int={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Dnt={full:"{{date}} 'को' {{time}}",long:"{{date}} 'को' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$nt={date:Ne({formats:Mnt,defaultWidth:"full"}),time:Ne({formats:Int,defaultWidth:"full"}),dateTime:Ne({formats:Dnt,defaultWidth:"full"})},Lnt={lastWeek:"'पिछले' eeee p",yesterday:"'कल' p",today:"'आज' p",tomorrow:"'कल' p",nextWeek:"eeee 'को' p",other:"P"},Fnt=function(t,n,r,a){return Lnt[t]},jnt=/^[०१२३४५६७८९]+/i,Unt=/^[०१२३४५६७८९]+/i,Bnt={narrow:/^(ईसा-पूर्व|ईस्वी)/i,abbreviated:/^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i,wide:/^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i},Wnt={any:[/^b/i,/^(a|c)/i]},znt={narrow:/^[1234]/i,abbreviated:/^ति[1234]/i,wide:/^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i},qnt={any:[/1/i,/2/i,/3/i,/4/i]},Hnt={narrow:/^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i,abbreviated:/^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i,wide:/^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i},Vnt={narrow:[/^ज/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^न/i,/^दि/i],any:[/^जन/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^नव/i,/^दिस/i]},Gnt={narrow:/^[रविसोममंगलबुधगुरुशुक्रशनि]/i,short:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,abbreviated:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,wide:/^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i},Ynt={narrow:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i],any:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i]},Knt={narrow:/^(पू|अ|म|द.\?|सु|दो|शा|रा)/i,any:/^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i},Xnt={any:{am:/^पूर्वाह्न/i,pm:/^अपराह्न/i,midnight:/^मध्य/i,noon:/^दो/i,morning:/सु/i,afternoon:/दो/i,evening:/शा/i,night:/रा/i}},Qnt={ordinalNumber:Xt({matchPattern:jnt,parsePattern:Unt,valueCallback:Rnt}),era:se({matchPatterns:Bnt,defaultMatchWidth:"wide",parsePatterns:Wnt,defaultParseWidth:"any"}),quarter:se({matchPatterns:znt,defaultMatchWidth:"wide",parsePatterns:qnt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Hnt,defaultMatchWidth:"wide",parsePatterns:Vnt,defaultParseWidth:"any"}),day:se({matchPatterns:Gnt,defaultMatchWidth:"wide",parsePatterns:Ynt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Knt,defaultMatchWidth:"any",parsePatterns:Xnt,defaultParseWidth:"any"})},Jnt={code:"hi",formatDistance:Nnt,formatLong:$nt,formatRelative:Fnt,localize:Pnt,match:Qnt,options:{weekStartsOn:0,firstWeekContainsDate:4}};const Znt=Object.freeze(Object.defineProperty({__proto__:null,default:Jnt},Symbol.toStringTag,{value:"Module"})),ert=jt(Znt);var trt={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 tjedan",withPrepositionAgo:"oko 1 tjedan",withPrepositionIn:"oko 1 tjedan"},dual:"oko {{count}} tjedna",other:"oko {{count}} tjedana"},xWeeks:{one:{standalone:"1 tjedan",withPrepositionAgo:"1 tjedan",withPrepositionIn:"1 tjedan"},dual:"{{count}} tjedna",other:"{{count}} tjedana"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},nrt=function(t,n,r){var a,i=trt[t];return typeof i=="string"?a=i:n===1?r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a=i.one.withPrepositionIn:a=i.one.withPrepositionAgo:a=i.one.standalone:n%10>1&&n%10<5&&String(n).substr(-2,1)!=="1"?a=i.dual.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"za "+a:"prije "+a:a},rrt={full:"EEEE, d. MMMM y.",long:"d. MMMM y.",medium:"d. MMM y.",short:"dd. MM. y."},art={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},irt={full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},ort={date:Ne({formats:rrt,defaultWidth:"full"}),time:Ne({formats:art,defaultWidth:"full"}),dateTime:Ne({formats:irt,defaultWidth:"full"})},srt={lastWeek:function(t){switch(t.getUTCDay()){case 0:return"'prošlu nedjelju u' p";case 3:return"'prošlu srijedu u' p";case 6:return"'prošlu subotu u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'jučer u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:function(t){switch(t.getUTCDay()){case 0:return"'iduću nedjelju u' p";case 3:return"'iduću srijedu u' p";case 6:return"'iduću subotu u' p";default:return"'prošli' EEEE 'u' p"}},other:"P"},lrt=function(t,n,r,a){var i=srt[t];return typeof i=="function"?i(n):i},urt={narrow:["pr.n.e.","AD"],abbreviated:["pr. Kr.","po. Kr."],wide:["Prije Krista","Poslije Krista"]},crt={narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},drt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"]},frt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječnja","veljače","ožujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenog","prosinca"]},prt={narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sri","čet","pet","sub"],abbreviated:["ned","pon","uto","sri","čet","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"]},hrt={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},mrt={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},grt=function(t,n){var r=Number(t);return r+"."},vrt={ordinalNumber:grt,era:oe({values:urt,defaultWidth:"wide"}),quarter:oe({values:crt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:drt,defaultWidth:"wide",formattingValues:frt,defaultFormattingWidth:"wide"}),day:oe({values:prt,defaultWidth:"wide"}),dayPeriod:oe({values:mrt,defaultWidth:"wide",formattingValues:hrt,defaultFormattingWidth:"wide"})},yrt=/^(\d+)\./i,brt=/\d+/i,wrt={narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Kr\.|po\.\s?Kr\.)/i,wide:/^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i},Srt={any:[/^pr/i,/^(po|nova)/i]},Ert={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},Trt={any:[/1/i,/2/i,/3/i,/4/i]},Crt={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i,wide:/^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i},krt={narrow:[/1/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i,/8/i,/9/i,/10/i,/11/i,/12/i],abbreviated:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i],wide:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i]},xrt={narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},_rt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ort={any:/^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i},Rrt={any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(navece|naveče)/i,night:/(nocu|noću)/i}},Prt={ordinalNumber:Xt({matchPattern:yrt,parsePattern:brt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:wrt,defaultMatchWidth:"wide",parsePatterns:Srt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Ert,defaultMatchWidth:"wide",parsePatterns:Trt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Crt,defaultMatchWidth:"wide",parsePatterns:krt,defaultParseWidth:"wide"}),day:se({matchPatterns:xrt,defaultMatchWidth:"wide",parsePatterns:_rt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Ort,defaultMatchWidth:"any",parsePatterns:Rrt,defaultParseWidth:"any"})},Art={code:"hr",formatDistance:nrt,formatLong:ort,formatRelative:lrt,localize:vrt,match:Prt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Nrt=Object.freeze(Object.defineProperty({__proto__:null,default:Art},Symbol.toStringTag,{value:"Module"})),Mrt=jt(Nrt);var Irt={about:"körülbelül",over:"több mint",almost:"majdnem",lessthan:"kevesebb mint"},Drt={xseconds:" másodperc",halfaminute:"fél perc",xminutes:" perc",xhours:" óra",xdays:" nap",xweeks:" hét",xmonths:" hónap",xyears:" év"},$rt={xseconds:{"-1":" másodperccel ezelőtt",1:" másodperc múlva",0:" másodperce"},halfaminute:{"-1":"fél perccel ezelőtt",1:"fél perc múlva",0:"fél perce"},xminutes:{"-1":" perccel ezelőtt",1:" perc múlva",0:" perce"},xhours:{"-1":" órával ezelőtt",1:" óra múlva",0:" órája"},xdays:{"-1":" nappal ezelőtt",1:" nap múlva",0:" napja"},xweeks:{"-1":" héttel ezelőtt",1:" hét múlva",0:" hete"},xmonths:{"-1":" hónappal ezelőtt",1:" hónap múlva",0:" hónapja"},xyears:{"-1":" évvel ezelőtt",1:" év múlva",0:" éve"}},Lrt=function(t,n,r){var a=t.match(/about|over|almost|lessthan/i),i=a?t.replace(a[0],""):t,o=(r==null?void 0:r.addSuffix)===!0,l=i.toLowerCase(),u=(r==null?void 0:r.comparison)||0,d=o?$rt[l][u]:Drt[l],f=l==="halfaminute"?d:n+d;if(a){var g=a[0].toLowerCase();f=Irt[g]+" "+f}return f},Frt={full:"y. MMMM d., EEEE",long:"y. MMMM d.",medium:"y. MMM d.",short:"y. MM. dd."},jrt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Urt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Brt={date:Ne({formats:Frt,defaultWidth:"full"}),time:Ne({formats:jrt,defaultWidth:"full"}),dateTime:Ne({formats:Urt,defaultWidth:"full"})},Wrt=["vasárnap","hétfőn","kedden","szerdán","csütörtökön","pénteken","szombaton"];function PG(e){return function(t){var n=Wrt[t.getUTCDay()],r=e?"":"'múlt' ";return"".concat(r,"'").concat(n,"' p'-kor'")}}var zrt={lastWeek:PG(!1),yesterday:"'tegnap' p'-kor'",today:"'ma' p'-kor'",tomorrow:"'holnap' p'-kor'",nextWeek:PG(!0),other:"P"},qrt=function(t,n){var r=zrt[t];return typeof r=="function"?r(n):r},Hrt={narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus előtt","időszámításunk szerint"]},Vrt={narrow:["1.","2.","3.","4."],abbreviated:["1. n.év","2. n.év","3. n.év","4. n.év"],wide:["1. negyedév","2. negyedév","3. negyedév","4. negyedév"]},Grt={narrow:["I.","II.","III.","IV."],abbreviated:["I. n.év","II. n.év","III. n.év","IV. n.év"],wide:["I. negyedév","II. negyedév","III. negyedév","IV. negyedév"]},Yrt={narrow:["J","F","M","Á","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],wide:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]},Krt={narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},Xrt={narrow:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},abbreviated:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},wide:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"délután",evening:"este",night:"éjjel"}},Qrt=function(t,n){var r=Number(t);return r+"."},Jrt={ordinalNumber:Qrt,era:oe({values:Hrt,defaultWidth:"wide"}),quarter:oe({values:Vrt,defaultWidth:"wide",argumentCallback:function(t){return t-1},formattingValues:Grt,defaultFormattingWidth:"wide"}),month:oe({values:Yrt,defaultWidth:"wide"}),day:oe({values:Krt,defaultWidth:"wide"}),dayPeriod:oe({values:Xrt,defaultWidth:"wide"})},Zrt=/^(\d+)\.?/i,eat=/\d+/i,tat={narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i},nat={narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/előtt/i,/(szerint|i. sz.)/i]},rat={narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.év/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyedév/i},aat={any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},iat={narrow:/^[jfmaásond]|sz/i,abbreviated:/^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i},oat={narrow:[/^j/i,/^f/i,/^m/i,/^a|á/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^már/i,/^áp/i,/^máj/i,/^jún/i,/^júl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sat={narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i},lat={narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},uat={any:/^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i},cat={any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^éjf/i,noon:/^dé/i,morning:/reg/i,afternoon:/^délu\.?/i,evening:/es/i,night:/éjj/i}},dat={ordinalNumber:Xt({matchPattern:Zrt,parsePattern:eat,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:tat,defaultMatchWidth:"wide",parsePatterns:nat,defaultParseWidth:"any"}),quarter:se({matchPatterns:rat,defaultMatchWidth:"wide",parsePatterns:aat,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:iat,defaultMatchWidth:"wide",parsePatterns:oat,defaultParseWidth:"any"}),day:se({matchPatterns:sat,defaultMatchWidth:"wide",parsePatterns:lat,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:uat,defaultMatchWidth:"any",parsePatterns:cat,defaultParseWidth:"any"})},fat={code:"hu",formatDistance:Lrt,formatLong:Brt,formatRelative:qrt,localize:Jrt,match:dat,options:{weekStartsOn:1,firstWeekContainsDate:4}};const pat=Object.freeze(Object.defineProperty({__proto__:null,default:fat},Symbol.toStringTag,{value:"Module"})),hat=jt(pat);var mat={lessThanXSeconds:{one:"ավելի քիչ քան 1 վայրկյան",other:"ավելի քիչ քան {{count}} վայրկյան"},xSeconds:{one:"1 վայրկյան",other:"{{count}} վայրկյան"},halfAMinute:"կես րոպե",lessThanXMinutes:{one:"ավելի քիչ քան 1 րոպե",other:"ավելի քիչ քան {{count}} րոպե"},xMinutes:{one:"1 րոպե",other:"{{count}} րոպե"},aboutXHours:{one:"մոտ 1 ժամ",other:"մոտ {{count}} ժամ"},xHours:{one:"1 ժամ",other:"{{count}} ժամ"},xDays:{one:"1 օր",other:"{{count}} օր"},aboutXWeeks:{one:"մոտ 1 շաբաթ",other:"մոտ {{count}} շաբաթ"},xWeeks:{one:"1 շաբաթ",other:"{{count}} շաբաթ"},aboutXMonths:{one:"մոտ 1 ամիս",other:"մոտ {{count}} ամիս"},xMonths:{one:"1 ամիս",other:"{{count}} ամիս"},aboutXYears:{one:"մոտ 1 տարի",other:"մոտ {{count}} տարի"},xYears:{one:"1 տարի",other:"{{count}} տարի"},overXYears:{one:"ավելի քան 1 տարի",other:"ավելի քան {{count}} տարի"},almostXYears:{one:"համարյա 1 տարի",other:"համարյա {{count}} տարի"}},gat=function(t,n,r){var a,i=mat[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" հետո":a+" առաջ":a},vat={full:"d MMMM, y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd.MM.yyyy"},yat={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},bat={full:"{{date}} 'ժ․'{{time}}",long:"{{date}} 'ժ․'{{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wat={date:Ne({formats:vat,defaultWidth:"full"}),time:Ne({formats:yat,defaultWidth:"full"}),dateTime:Ne({formats:bat,defaultWidth:"full"})},Sat={lastWeek:"'նախորդ' eeee p'֊ին'",yesterday:"'երեկ' p'֊ին'",today:"'այսօր' p'֊ին'",tomorrow:"'վաղը' p'֊ին'",nextWeek:"'հաջորդ' eeee p'֊ին'",other:"P"},Eat=function(t,n,r,a){return Sat[t]},Tat={narrow:["Ք","Մ"],abbreviated:["ՔԱ","ՄԹ"],wide:["Քրիստոսից առաջ","Մեր թվարկության"]},Cat={narrow:["1","2","3","4"],abbreviated:["Ք1","Ք2","Ք3","Ք4"],wide:["1֊ին քառորդ","2֊րդ քառորդ","3֊րդ քառորդ","4֊րդ քառորդ"]},kat={narrow:["Հ","Փ","Մ","Ա","Մ","Հ","Հ","Օ","Ս","Հ","Ն","Դ"],abbreviated:["հուն","փետ","մար","ապր","մայ","հուն","հուլ","օգս","սեպ","հոկ","նոյ","դեկ"],wide:["հունվար","փետրվար","մարտ","ապրիլ","մայիս","հունիս","հուլիս","օգոստոս","սեպտեմբեր","հոկտեմբեր","նոյեմբեր","դեկտեմբեր"]},xat={narrow:["Կ","Ե","Ե","Չ","Հ","Ո","Շ"],short:["կր","եր","եք","չք","հգ","ուր","շբ"],abbreviated:["կիր","երկ","երք","չոր","հնգ","ուրբ","շաբ"],wide:["կիրակի","երկուշաբթի","երեքշաբթի","չորեքշաբթի","հինգշաբթի","ուրբաթ","շաբաթ"]},_at={narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"}},Oat={narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"}},Rat=function(t,n){var r=Number(t),a=r%100;return a<10&&a%10===1?r+"֊ին":r+"֊րդ"},Pat={ordinalNumber:Rat,era:oe({values:Tat,defaultWidth:"wide"}),quarter:oe({values:Cat,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:kat,defaultWidth:"wide"}),day:oe({values:xat,defaultWidth:"wide"}),dayPeriod:oe({values:_at,defaultWidth:"wide",formattingValues:Oat,defaultFormattingWidth:"wide"})},Aat=/^(\d+)((-|֊)?(ին|րդ))?/i,Nat=/\d+/i,Mat={narrow:/^(Ք|Մ)/i,abbreviated:/^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i,wide:/^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i},Iat={any:[/^ք/i,/^մ/i]},Dat={narrow:/^[1234]/i,abbreviated:/^ք[1234]/i,wide:/^[1234]((-|֊)?(ին|րդ)) քառորդ/i},$at={any:[/1/i,/2/i,/3/i,/4/i]},Lat={narrow:/^[հփմաօսնդ]/i,abbreviated:/^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i,wide:/^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i},Fat={narrow:[/^հ/i,/^փ/i,/^մ/i,/^ա/i,/^մ/i,/^հ/i,/^հ/i,/^օ/i,/^ս/i,/^հ/i,/^ն/i,/^դ/i],any:[/^հու/i,/^փ/i,/^մար/i,/^ա/i,/^մայ/i,/^հուն/i,/^հուլ/i,/^օ/i,/^ս/i,/^հոկ/i,/^ն/i,/^դ/i]},jat={narrow:/^[եչհոշկ]/i,short:/^(կր|եր|եք|չք|հգ|ուր|շբ)/i,abbreviated:/^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i,wide:/^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i},Uat={narrow:[/^կ/i,/^ե/i,/^ե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],short:[/^կ/i,/^եր/i,/^եք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],abbreviated:[/^կ/i,/^երկ/i,/^երք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],wide:[/^կ/i,/^երկ/i,/^երե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i]},Bat={narrow:/^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i,any:/^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i},Wat={any:{am:/^a/i,pm:/^p/i,midnight:/կեսգիշեր/i,noon:/կեսօր/i,morning:/առավոտ/i,afternoon:/ցերեկ/i,evening:/երեկո/i,night:/գիշեր/i}},zat={ordinalNumber:Xt({matchPattern:Aat,parsePattern:Nat,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Mat,defaultMatchWidth:"wide",parsePatterns:Iat,defaultParseWidth:"any"}),quarter:se({matchPatterns:Dat,defaultMatchWidth:"wide",parsePatterns:$at,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Lat,defaultMatchWidth:"wide",parsePatterns:Fat,defaultParseWidth:"any"}),day:se({matchPatterns:jat,defaultMatchWidth:"wide",parsePatterns:Uat,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:Bat,defaultMatchWidth:"any",parsePatterns:Wat,defaultParseWidth:"any"})},qat={code:"hy",formatDistance:gat,formatLong:wat,formatRelative:Eat,localize:Pat,match:zat,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Hat=Object.freeze(Object.defineProperty({__proto__:null,default:qat},Symbol.toStringTag,{value:"Module"})),Vat=jt(Hat);var Gat={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},Yat=function(t,n,r){var a,i=Gat[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dalam waktu "+a:a+" yang lalu":a},Kat={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},Xat={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},Qat={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jat={date:Ne({formats:Kat,defaultWidth:"full"}),time:Ne({formats:Xat,defaultWidth:"full"}),dateTime:Ne({formats:Qat,defaultWidth:"full"})},Zat={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},eit=function(t,n,r,a){return Zat[t]},tit={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},nit={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},rit={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},ait={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},iit={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},oit={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},sit=function(t,n){var r=Number(t);return"ke-"+r},lit={ordinalNumber:sit,era:oe({values:tit,defaultWidth:"wide"}),quarter:oe({values:nit,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:rit,defaultWidth:"wide"}),day:oe({values:ait,defaultWidth:"wide"}),dayPeriod:oe({values:iit,defaultWidth:"wide",formattingValues:oit,defaultFormattingWidth:"wide"})},uit=/^ke-(\d+)?/i,cit=/\d+/i,dit={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},fit={any:[/^s/i,/^(m|e)/i]},pit={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},hit={any:[/1/i,/2/i,/3/i,/4/i]},mit={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},git={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},vit={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},yit={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},bit={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},wit={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},Sit={ordinalNumber:Xt({matchPattern:uit,parsePattern:cit,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:dit,defaultMatchWidth:"wide",parsePatterns:fit,defaultParseWidth:"any"}),quarter:se({matchPatterns:pit,defaultMatchWidth:"wide",parsePatterns:hit,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:mit,defaultMatchWidth:"wide",parsePatterns:git,defaultParseWidth:"any"}),day:se({matchPatterns:vit,defaultMatchWidth:"wide",parsePatterns:yit,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:bit,defaultMatchWidth:"any",parsePatterns:wit,defaultParseWidth:"any"})},Eit={code:"id",formatDistance:Yat,formatLong:Jat,formatRelative:eit,localize:lit,match:Sit,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Tit=Object.freeze(Object.defineProperty({__proto__:null,default:Eit},Symbol.toStringTag,{value:"Module"})),Cit=jt(Tit);var kit={lessThanXSeconds:{one:"minna en 1 sekúnda",other:"minna en {{count}} sekúndur"},xSeconds:{one:"1 sekúnda",other:"{{count}} sekúndur"},halfAMinute:"hálf mínúta",lessThanXMinutes:{one:"minna en 1 mínúta",other:"minna en {{count}} mínútur"},xMinutes:{one:"1 mínúta",other:"{{count}} mínútur"},aboutXHours:{one:"u.þ.b. 1 klukkustund",other:"u.þ.b. {{count}} klukkustundir"},xHours:{one:"1 klukkustund",other:"{{count}} klukkustundir"},xDays:{one:"1 dagur",other:"{{count}} dagar"},aboutXWeeks:{one:"um viku",other:"um {{count}} vikur"},xWeeks:{one:"1 viku",other:"{{count}} vikur"},aboutXMonths:{one:"u.þ.b. 1 mánuður",other:"u.þ.b. {{count}} mánuðir"},xMonths:{one:"1 mánuður",other:"{{count}} mánuðir"},aboutXYears:{one:"u.þ.b. 1 ár",other:"u.þ.b. {{count}} ár"},xYears:{one:"1 ár",other:"{{count}} ár"},overXYears:{one:"meira en 1 ár",other:"meira en {{count}} ár"},almostXYears:{one:"næstum 1 ár",other:"næstum {{count}} ár"}},xit=function(t,n,r){var a,i=kit[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"í "+a:a+" síðan":a},_it={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"d.MM.y"},Oit={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Rit={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Pit={date:Ne({formats:_it,defaultWidth:"full"}),time:Ne({formats:Oit,defaultWidth:"full"}),dateTime:Ne({formats:Rit,defaultWidth:"full"})},Ait={lastWeek:"'síðasta' dddd 'kl.' p",yesterday:"'í gær kl.' p",today:"'í dag kl.' p",tomorrow:"'á morgun kl.' p",nextWeek:"dddd 'kl.' p",other:"P"},Nit=function(t,n,r,a){return Ait[t]},Mit={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["fyrir Krist","eftir Krist"]},Iit={narrow:["1","2","3","4"],abbreviated:["1F","2F","3F","4F"],wide:["1. fjórðungur","2. fjórðungur","3. fjórðungur","4. fjórðungur"]},Dit={narrow:["J","F","M","A","M","J","J","Á","S","Ó","N","D"],abbreviated:["jan.","feb.","mars","apríl","maí","júní","júlí","ágúst","sept.","okt.","nóv.","des."],wide:["janúar","febrúar","mars","apríl","maí","júní","júlí","ágúst","september","október","nóvember","desember"]},$it={narrow:["S","M","Þ","M","F","F","L"],short:["Su","Má","Þr","Mi","Fi","Fö","La"],abbreviated:["sun.","mán.","þri.","mið.","fim.","fös.","lau."],wide:["sunnudagur","mánudagur","þriðjudagur","miðvikudagur","fimmtudagur","föstudagur","laugardagur"]},Lit={narrow:{am:"f",pm:"e",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"},wide:{am:"fyrir hádegi",pm:"eftir hádegi",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"}},Fit={narrow:{am:"f",pm:"e",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"},wide:{am:"fyrir hádegi",pm:"eftir hádegi",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"}},jit=function(t,n){var r=Number(t);return r+"."},Uit={ordinalNumber:jit,era:oe({values:Mit,defaultWidth:"wide"}),quarter:oe({values:Iit,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Dit,defaultWidth:"wide"}),day:oe({values:$it,defaultWidth:"wide"}),dayPeriod:oe({values:Lit,defaultWidth:"wide",formattingValues:Fit,defaultFormattingWidth:"wide"})},Bit=/^(\d+)(\.)?/i,Wit=/\d+(\.)?/i,zit={narrow:/^(f\.Kr\.|e\.Kr\.)/i,abbreviated:/^(f\.Kr\.|e\.Kr\.)/i,wide:/^(fyrir Krist|eftir Krist)/i},qit={any:[/^(f\.Kr\.)/i,/^(e\.Kr\.)/i]},Hit={narrow:/^[1234]\.?/i,abbreviated:/^q[1234]\.?/i,wide:/^[1234]\.? fjórðungur/i},Vit={any:[/1\.?/i,/2\.?/i,/3\.?/i,/4\.?/i]},Git={narrow:/^[jfmásónd]/i,abbreviated:/^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i,wide:/^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i},Yit={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^á/i,/^s/i,/^ó/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maí/i,/^jún/i,/^júl/i,/^áu/i,/^s/i,/^ó/i,/^n/i,/^d/i]},Kit={narrow:/^[smtwf]/i,short:/^(su|má|þr|mi|fi|fö|la)/i,abbreviated:/^(sun|mán|þri|mið|fim|fös|lau)\.?/i,wide:/^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i},Xit={narrow:[/^s/i,/^m/i,/^þ/i,/^m/i,/^f/i,/^f/i,/^l/i],any:[/^su/i,/^má/i,/^þr/i,/^mi/i,/^fi/i,/^fö/i,/^la/i]},Qit={narrow:/^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i,any:/^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i},Jit={any:{am:/^f/i,pm:/^e/i,midnight:/^mi/i,noon:/^há/i,morning:/morgunn/i,afternoon:/síðdegi/i,evening:/kvöld/i,night:/nótt/i}},Zit={ordinalNumber:Xt({matchPattern:Bit,parsePattern:Wit,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:zit,defaultMatchWidth:"wide",parsePatterns:qit,defaultParseWidth:"any"}),quarter:se({matchPatterns:Hit,defaultMatchWidth:"wide",parsePatterns:Vit,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Git,defaultMatchWidth:"wide",parsePatterns:Yit,defaultParseWidth:"any"}),day:se({matchPatterns:Kit,defaultMatchWidth:"wide",parsePatterns:Xit,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Qit,defaultMatchWidth:"any",parsePatterns:Jit,defaultParseWidth:"any"})},eot={code:"is",formatDistance:xit,formatLong:Pit,formatRelative:Nit,localize:Uit,match:Zit,options:{weekStartsOn:1,firstWeekContainsDate:4}};const tot=Object.freeze(Object.defineProperty({__proto__:null,default:eot},Symbol.toStringTag,{value:"Module"})),not=jt(tot);var rot={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},aot=function(t,n,r){var a,i=rot[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"tra "+a:a+" fa":a},iot={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},oot={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},sot={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},lot={date:Ne({formats:iot,defaultWidth:"full"}),time:Ne({formats:oot,defaultWidth:"full"}),dateTime:Ne({formats:sot,defaultWidth:"full"})},f4=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function uot(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+f4[e]+" scorso alle' p"}}function AG(e){return"'"+f4[e]+" alle' p"}function cot(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+f4[e]+" prossimo alle' p"}}var dot={lastWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?AG(a):uot(a)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?AG(a):cot(a)},other:"P"},fot=function(t,n,r,a){var i=dot[t];return typeof i=="function"?i(n,r,a):i},pot={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},hot={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},mot={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},got={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},vot={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},yot={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},bot=function(t,n){var r=Number(t);return String(r)},wot={ordinalNumber:bot,era:oe({values:pot,defaultWidth:"wide"}),quarter:oe({values:hot,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:mot,defaultWidth:"wide"}),day:oe({values:got,defaultWidth:"wide"}),dayPeriod:oe({values:vot,defaultWidth:"wide",formattingValues:yot,defaultFormattingWidth:"wide"})},Sot=/^(\d+)(º)?/i,Eot=/\d+/i,Tot={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},Cot={any:[/^a/i,/^(d|e)/i]},kot={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},xot={any:[/1/i,/2/i,/3/i,/4/i]},_ot={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},Oot={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},Rot={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},Pot={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},Aot={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},Not={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},Mot={ordinalNumber:Xt({matchPattern:Sot,parsePattern:Eot,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Tot,defaultMatchWidth:"wide",parsePatterns:Cot,defaultParseWidth:"any"}),quarter:se({matchPatterns:kot,defaultMatchWidth:"wide",parsePatterns:xot,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:_ot,defaultMatchWidth:"wide",parsePatterns:Oot,defaultParseWidth:"any"}),day:se({matchPatterns:Rot,defaultMatchWidth:"wide",parsePatterns:Pot,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Aot,defaultMatchWidth:"any",parsePatterns:Not,defaultParseWidth:"any"})},Iot={code:"it",formatDistance:aot,formatLong:lot,formatRelative:fot,localize:wot,match:Mot,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Dot=Object.freeze(Object.defineProperty({__proto__:null,default:Iot},Symbol.toStringTag,{value:"Module"})),$ot=jt(Dot);var Lot={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},Fot=function(t,n,r){r=r||{};var a,i=Lot[t];return typeof i=="string"?a=i:n===1?r.addSuffix&&i.oneWithSuffix?a=i.oneWithSuffix:a=i.one:r.addSuffix&&i.otherWithSuffix?a=i.otherWithSuffix.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r.addSuffix?r.comparison&&r.comparison>0?a+"後":a+"前":a},jot={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},Uot={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Bot={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Wot={date:Ne({formats:jot,defaultWidth:"full"}),time:Ne({formats:Uot,defaultWidth:"full"}),dateTime:Ne({formats:Bot,defaultWidth:"full"})},zot={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},qot=function(t,n,r,a){return zot[t]},Hot={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},Vot={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},Got={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},Yot={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},Kot={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},Xot={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},Qot=function(t,n){var r=Number(t),a=String(n==null?void 0:n.unit);switch(a){case"year":return"".concat(r,"年");case"quarter":return"第".concat(r,"四半期");case"month":return"".concat(r,"月");case"week":return"第".concat(r,"週");case"date":return"".concat(r,"日");case"hour":return"".concat(r,"時");case"minute":return"".concat(r,"分");case"second":return"".concat(r,"秒");default:return"".concat(r)}},Jot={ordinalNumber:Qot,era:oe({values:Hot,defaultWidth:"wide"}),quarter:oe({values:Vot,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:Got,defaultWidth:"wide"}),day:oe({values:Yot,defaultWidth:"wide"}),dayPeriod:oe({values:Kot,defaultWidth:"wide",formattingValues:Xot,defaultFormattingWidth:"wide"})},Zot=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,est=/\d+/i,tst={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},nst={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},rst={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},ast={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},ist={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},ost={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},sst={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},lst={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},ust={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},cst={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},dst={ordinalNumber:Xt({matchPattern:Zot,parsePattern:est,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:tst,defaultMatchWidth:"wide",parsePatterns:nst,defaultParseWidth:"any"}),quarter:se({matchPatterns:rst,defaultMatchWidth:"wide",parsePatterns:ast,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:ist,defaultMatchWidth:"wide",parsePatterns:ost,defaultParseWidth:"any"}),day:se({matchPatterns:sst,defaultMatchWidth:"wide",parsePatterns:lst,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:ust,defaultMatchWidth:"any",parsePatterns:cst,defaultParseWidth:"any"})},fst={code:"ja",formatDistance:Fot,formatLong:Wot,formatRelative:qot,localize:Jot,match:dst,options:{weekStartsOn:0,firstWeekContainsDate:1}};const pst=Object.freeze(Object.defineProperty({__proto__:null,default:fst},Symbol.toStringTag,{value:"Module"})),hst=jt(pst);var mst={lessThanXSeconds:{past:"{{count}} წამზე ნაკლები ხნის წინ",present:"{{count}} წამზე ნაკლები",future:"{{count}} წამზე ნაკლებში"},xSeconds:{past:"{{count}} წამის წინ",present:"{{count}} წამი",future:"{{count}} წამში"},halfAMinute:{past:"ნახევარი წუთის წინ",present:"ნახევარი წუთი",future:"ნახევარი წუთში"},lessThanXMinutes:{past:"{{count}} წუთზე ნაკლები ხნის წინ",present:"{{count}} წუთზე ნაკლები",future:"{{count}} წუთზე ნაკლებში"},xMinutes:{past:"{{count}} წუთის წინ",present:"{{count}} წუთი",future:"{{count}} წუთში"},aboutXHours:{past:"დაახლოებით {{count}} საათის წინ",present:"დაახლოებით {{count}} საათი",future:"დაახლოებით {{count}} საათში"},xHours:{past:"{{count}} საათის წინ",present:"{{count}} საათი",future:"{{count}} საათში"},xDays:{past:"{{count}} დღის წინ",present:"{{count}} დღე",future:"{{count}} დღეში"},aboutXWeeks:{past:"დაახლოებით {{count}} კვირას წინ",present:"დაახლოებით {{count}} კვირა",future:"დაახლოებით {{count}} კვირაში"},xWeeks:{past:"{{count}} კვირას კვირა",present:"{{count}} კვირა",future:"{{count}} კვირაში"},aboutXMonths:{past:"დაახლოებით {{count}} თვის წინ",present:"დაახლოებით {{count}} თვე",future:"დაახლოებით {{count}} თვეში"},xMonths:{past:"{{count}} თვის წინ",present:"{{count}} თვე",future:"{{count}} თვეში"},aboutXYears:{past:"დაახლოებით {{count}} წლის წინ",present:"დაახლოებით {{count}} წელი",future:"დაახლოებით {{count}} წელში"},xYears:{past:"{{count}} წლის წინ",present:"{{count}} წელი",future:"{{count}} წელში"},overXYears:{past:"{{count}} წელზე მეტი ხნის წინ",present:"{{count}} წელზე მეტი",future:"{{count}} წელზე მეტი ხნის შემდეგ"},almostXYears:{past:"თითქმის {{count}} წლის წინ",present:"თითქმის {{count}} წელი",future:"თითქმის {{count}} წელში"}},gst=function(t,n,r){var a,i=mst[t];return typeof i=="string"?a=i:r!=null&&r.addSuffix&&r.comparison&&r.comparison>0?a=i.future.replace("{{count}}",String(n)):r!=null&&r.addSuffix?a=i.past.replace("{{count}}",String(n)):a=i.present.replace("{{count}}",String(n)),a},vst={full:"EEEE, do MMMM, y",long:"do, MMMM, y",medium:"d, MMM, y",short:"dd/MM/yyyy"},yst={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},bst={full:"{{date}} {{time}}'-ზე'",long:"{{date}} {{time}}'-ზე'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wst={date:Ne({formats:vst,defaultWidth:"full"}),time:Ne({formats:yst,defaultWidth:"full"}),dateTime:Ne({formats:bst,defaultWidth:"full"})},Sst={lastWeek:"'წინა' eeee p'-ზე'",yesterday:"'გუშინ' p'-ზე'",today:"'დღეს' p'-ზე'",tomorrow:"'ხვალ' p'-ზე'",nextWeek:"'შემდეგი' eeee p'-ზე'",other:"P"},Est=function(t,n,r,a){return Sst[t]},Tst={narrow:["ჩ.წ-მდე","ჩ.წ"],abbreviated:["ჩვ.წ-მდე","ჩვ.წ"],wide:["ჩვენს წელთაღრიცხვამდე","ჩვენი წელთაღრიცხვით"]},Cst={narrow:["1","2","3","4"],abbreviated:["1-ლი კვ","2-ე კვ","3-ე კვ","4-ე კვ"],wide:["1-ლი კვარტალი","2-ე კვარტალი","3-ე კვარტალი","4-ე კვარტალი"]},kst={narrow:["ია","თე","მა","აპ","მს","ვნ","ვლ","აგ","სე","ოქ","ნო","დე"],abbreviated:["იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ"],wide:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"]},xst={narrow:["კვ","ორ","სა","ოთ","ხუ","პა","შა"],short:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],abbreviated:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],wide:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]},_st={narrow:{am:"a",pm:"p",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"}},Ost={narrow:{am:"a",pm:"p",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"}},Rst=function(t){var n=Number(t);return n===1?n+"-ლი":n+"-ე"},Pst={ordinalNumber:Rst,era:oe({values:Tst,defaultWidth:"wide"}),quarter:oe({values:Cst,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:kst,defaultWidth:"wide"}),day:oe({values:xst,defaultWidth:"wide"}),dayPeriod:oe({values:_st,defaultWidth:"wide",formattingValues:Ost,defaultFormattingWidth:"wide"})},Ast=/^(\d+)(-ლი|-ე)?/i,Nst=/\d+/i,Mst={narrow:/^(ჩვ?\.წ)/i,abbreviated:/^(ჩვ?\.წ)/i,wide:/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i},Ist={any:[/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i,/^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i]},Dst={narrow:/^[1234]/i,abbreviated:/^[1234]-(ლი|ე)? კვ/i,wide:/^[1234]-(ლი|ე)? კვარტალი/i},$st={any:[/1/i,/2/i,/3/i,/4/i]},Lst={any:/^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i},Fst={any:[/^ია/i,/^თ/i,/^მარ/i,/^აპ/i,/^მაი/i,/^ი?ვნ/i,/^ი?ვლ/i,/^აგ/i,/^ს/i,/^ო/i,/^ნ/i,/^დ/i]},jst={narrow:/^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i,short:/^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i,wide:/^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i},Ust={any:[/^კვ/i,/^ორ/i,/^სა/i,/^ოთ/i,/^ხუ/i,/^პა/i,/^შა/i]},Bst={any:/^([ap]\.?\s?m\.?|შუაღ|დილ)/i},Wst={any:{am:/^a/i,pm:/^p/i,midnight:/^შუაღ/i,noon:/^შუადღ/i,morning:/^დილ/i,afternoon:/ნაშუადღევს/i,evening:/საღამო/i,night:/ღამ/i}},zst={ordinalNumber:Xt({matchPattern:Ast,parsePattern:Nst,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Mst,defaultMatchWidth:"wide",parsePatterns:Ist,defaultParseWidth:"any"}),quarter:se({matchPatterns:Dst,defaultMatchWidth:"wide",parsePatterns:$st,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Lst,defaultMatchWidth:"any",parsePatterns:Fst,defaultParseWidth:"any"}),day:se({matchPatterns:jst,defaultMatchWidth:"wide",parsePatterns:Ust,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Bst,defaultMatchWidth:"any",parsePatterns:Wst,defaultParseWidth:"any"})},qst={code:"ka",formatDistance:gst,formatLong:wst,formatRelative:Est,localize:Pst,match:zst,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Hst=Object.freeze(Object.defineProperty({__proto__:null,default:qst},Symbol.toStringTag,{value:"Module"})),Vst=jt(Hst);var Gst={lessThanXSeconds:{regular:{one:"1 секундтан аз",singularNominative:"{{count}} секундтан аз",singularGenitive:"{{count}} секундтан аз",pluralGenitive:"{{count}} секундтан аз"},future:{one:"бір секундтан кейін",singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},xSeconds:{regular:{singularNominative:"{{count}} секунд",singularGenitive:"{{count}} секунд",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунд бұрын",singularGenitive:"{{count}} секунд бұрын",pluralGenitive:"{{count}} секунд бұрын"},future:{singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},halfAMinute:function(t){return t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"жарты минут ішінде":"жарты минут бұрын":"жарты минут"},lessThanXMinutes:{regular:{one:"1 минуттан аз",singularNominative:"{{count}} минуттан аз",singularGenitive:"{{count}} минуттан аз",pluralGenitive:"{{count}} минуттан аз"},future:{one:"минуттан кем ",singularNominative:"{{count}} минуттан кем",singularGenitive:"{{count}} минуттан кем",pluralGenitive:"{{count}} минуттан кем"}},xMinutes:{regular:{singularNominative:"{{count}} минут",singularGenitive:"{{count}} минут",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минут бұрын",singularGenitive:"{{count}} минут бұрын",pluralGenitive:"{{count}} минут бұрын"},future:{singularNominative:"{{count}} минуттан кейін",singularGenitive:"{{count}} минуттан кейін",pluralGenitive:"{{count}} минуттан кейін"}},aboutXHours:{regular:{singularNominative:"шамамен {{count}} сағат",singularGenitive:"шамамен {{count}} сағат",pluralGenitive:"шамамен {{count}} сағат"},future:{singularNominative:"шамамен {{count}} сағаттан кейін",singularGenitive:"шамамен {{count}} сағаттан кейін",pluralGenitive:"шамамен {{count}} сағаттан кейін"}},xHours:{regular:{singularNominative:"{{count}} сағат",singularGenitive:"{{count}} сағат",pluralGenitive:"{{count}} сағат"}},xDays:{regular:{singularNominative:"{{count}} күн",singularGenitive:"{{count}} күн",pluralGenitive:"{{count}} күн"},future:{singularNominative:"{{count}} күннен кейін",singularGenitive:"{{count}} күннен кейін",pluralGenitive:"{{count}} күннен кейін"}},aboutXWeeks:{type:"weeks",one:"шамамен 1 апта",other:"шамамен {{count}} апта"},xWeeks:{type:"weeks",one:"1 апта",other:"{{count}} апта"},aboutXMonths:{regular:{singularNominative:"шамамен {{count}} ай",singularGenitive:"шамамен {{count}} ай",pluralGenitive:"шамамен {{count}} ай"},future:{singularNominative:"шамамен {{count}} айдан кейін",singularGenitive:"шамамен {{count}} айдан кейін",pluralGenitive:"шамамен {{count}} айдан кейін"}},xMonths:{regular:{singularNominative:"{{count}} ай",singularGenitive:"{{count}} ай",pluralGenitive:"{{count}} ай"}},aboutXYears:{regular:{singularNominative:"шамамен {{count}} жыл",singularGenitive:"шамамен {{count}} жыл",pluralGenitive:"шамамен {{count}} жыл"},future:{singularNominative:"шамамен {{count}} жылдан кейін",singularGenitive:"шамамен {{count}} жылдан кейін",pluralGenitive:"шамамен {{count}} жылдан кейін"}},xYears:{regular:{singularNominative:"{{count}} жыл",singularGenitive:"{{count}} жыл",pluralGenitive:"{{count}} жыл"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}},overXYears:{regular:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"},future:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"}},almostXYears:{regular:{singularNominative:"{{count}} жылға жақын",singularGenitive:"{{count}} жылға жақын",pluralGenitive:"{{count}} жылға жақын"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}}};function B1(e,t){if(e.one&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}var Yst=function(t,n,r){var a=Gst[t];return typeof a=="function"?a(r):a.type==="weeks"?n===1?a.one:a.other.replace("{{count}}",String(n)):r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a.future?B1(a.future,n):B1(a.regular,n)+" кейін":a.past?B1(a.past,n):B1(a.regular,n)+" бұрын":B1(a.regular,n)},Kst={full:"EEEE, do MMMM y 'ж.'",long:"do MMMM y 'ж.'",medium:"d MMM y 'ж.'",short:"dd.MM.yyyy"},Xst={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Qst={any:"{{date}}, {{time}}"},Jst={date:Ne({formats:Kst,defaultWidth:"full"}),time:Ne({formats:Xst,defaultWidth:"full"}),dateTime:Ne({formats:Qst,defaultWidth:"any"})},p4=["жексенбіде","дүйсенбіде","сейсенбіде","сәрсенбіде","бейсенбіде","жұмада","сенбіде"];function Zst(e){var t=p4[e];return"'өткен "+t+" сағат' p'-де'"}function NG(e){var t=p4[e];return"'"+t+" сағат' p'-де'"}function elt(e){var t=p4[e];return"'келесі "+t+" сағат' p'-де'"}var tlt={lastWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?NG(a):Zst(a)},yesterday:"'кеше сағат' p'-де'",today:"'бүгін сағат' p'-де'",tomorrow:"'ертең сағат' p'-де'",nextWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?NG(a):elt(a)},other:"P"},nlt=function(t,n,r,a){var i=tlt[t];return typeof i=="function"?i(n,r,a):i},rlt={narrow:["б.з.д.","б.з."],abbreviated:["б.з.д.","б.з."],wide:["біздің заманымызға дейін","біздің заманымыз"]},alt={narrow:["1","2","3","4"],abbreviated:["1-ші тоқ.","2-ші тоқ.","3-ші тоқ.","4-ші тоқ."],wide:["1-ші тоқсан","2-ші тоқсан","3-ші тоқсан","4-ші тоқсан"]},ilt={narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},olt={narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},slt={narrow:["Ж","Д","С","С","Б","Ж","С"],short:["жс","дс","сс","ср","бс","жм","сб"],abbreviated:["жс","дс","сс","ср","бс","жм","сб"],wide:["жексенбі","дүйсенбі","сейсенбі","сәрсенбі","бейсенбі","жұма","сенбі"]},llt={narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"}},ult={narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түс",morning:"таң",afternoon:"күн",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түсте",morning:"таңертең",afternoon:"күндіз",evening:"кеште",night:"түнде"}},w$={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},clt=function(t,n){var r=Number(t),a=r%10,i=r>=100?100:null,o=w$[r]||w$[a]||i&&w$[i]||"";return r+o},dlt={ordinalNumber:clt,era:oe({values:rlt,defaultWidth:"wide"}),quarter:oe({values:alt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:ilt,defaultWidth:"wide",formattingValues:olt,defaultFormattingWidth:"wide"}),day:oe({values:slt,defaultWidth:"wide"}),dayPeriod:oe({values:llt,defaultWidth:"any",formattingValues:ult,defaultFormattingWidth:"wide"})},flt=/^(\d+)(-?(ші|шы))?/i,plt=/\d+/i,hlt={narrow:/^((б )?з\.?\s?д\.?)/i,abbreviated:/^((б )?з\.?\s?д\.?)/i,wide:/^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i},mlt={any:[/^б/i,/^з/i]},glt={narrow:/^[1234]/i,abbreviated:/^[1234](-?ші)? тоқ.?/i,wide:/^[1234](-?ші)? тоқсан/i},vlt={any:[/1/i,/2/i,/3/i,/4/i]},ylt={narrow:/^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i,abbreviated:/^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i,wide:/^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i},blt={narrow:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i],abbreviated:[/^қаң/i,/^ақп/i,/^нау/i,/^сәу/i,/^мам/i,/^мау/i,/^шіл/i,/^там/i,/^қыр/i,/^қаз/i,/^қар/i,/^жел/i],any:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i]},wlt={narrow:/^(ж|д|с|с|б|ж|с)/i,short:/^(жс|дс|сс|ср|бс|жм|сб)/i,wide:/^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i},Slt={narrow:[/^ж/i,/^д/i,/^с/i,/^с/i,/^б/i,/^ж/i,/^с/i],short:[/^жс/i,/^дс/i,/^сс/i,/^ср/i,/^бс/i,/^жм/i,/^сб/i],any:[/^ж[ек]/i,/^д[үй]/i,/^сe[й]/i,/^сә[р]/i,/^б[ей]/i,/^ж[ұм]/i,/^се[н]/i]},Elt={narrow:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,wide:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,any:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i},Tlt={any:{am:/^ТД/i,pm:/^ТК/i,midnight:/^түн орта/i,noon:/^күндіз/i,morning:/таң/i,afternoon:/түс/i,evening:/кеш/i,night:/түн/i}},Clt={ordinalNumber:Xt({matchPattern:flt,parsePattern:plt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:hlt,defaultMatchWidth:"wide",parsePatterns:mlt,defaultParseWidth:"any"}),quarter:se({matchPatterns:glt,defaultMatchWidth:"wide",parsePatterns:vlt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:ylt,defaultMatchWidth:"wide",parsePatterns:blt,defaultParseWidth:"any"}),day:se({matchPatterns:wlt,defaultMatchWidth:"wide",parsePatterns:Slt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Elt,defaultMatchWidth:"wide",parsePatterns:Tlt,defaultParseWidth:"any"})},klt={code:"kk",formatDistance:Yst,formatLong:Jst,formatRelative:nlt,localize:dlt,match:Clt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const xlt=Object.freeze(Object.defineProperty({__proto__:null,default:klt},Symbol.toStringTag,{value:"Module"})),_lt=jt(xlt);var Olt={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},Rlt=function(t,n,r){var a,i=Olt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" 후":a+" 전":a},Plt={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},Alt={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Nlt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Mlt={date:Ne({formats:Plt,defaultWidth:"full"}),time:Ne({formats:Alt,defaultWidth:"full"}),dateTime:Ne({formats:Nlt,defaultWidth:"full"})},Ilt={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},Dlt=function(t,n,r,a){return Ilt[t]},$lt={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},Llt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},Flt={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},jlt={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},Ult={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},Blt={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},Wlt=function(t,n){var r=Number(t),a=String(n==null?void 0:n.unit);switch(a){case"minute":case"second":return String(r);case"date":return r+"일";default:return r+"번째"}},zlt={ordinalNumber:Wlt,era:oe({values:$lt,defaultWidth:"wide"}),quarter:oe({values:Llt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Flt,defaultWidth:"wide"}),day:oe({values:jlt,defaultWidth:"wide"}),dayPeriod:oe({values:Ult,defaultWidth:"wide",formattingValues:Blt,defaultFormattingWidth:"wide"})},qlt=/^(\d+)(일|번째)?/i,Hlt=/\d+/i,Vlt={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},Glt={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},Ylt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},Klt={any:[/1/i,/2/i,/3/i,/4/i]},Xlt={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},Qlt={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},Jlt={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},Zlt={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},eut={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},tut={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},nut={ordinalNumber:Xt({matchPattern:qlt,parsePattern:Hlt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Vlt,defaultMatchWidth:"wide",parsePatterns:Glt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Ylt,defaultMatchWidth:"wide",parsePatterns:Klt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Xlt,defaultMatchWidth:"wide",parsePatterns:Qlt,defaultParseWidth:"any"}),day:se({matchPatterns:Jlt,defaultMatchWidth:"wide",parsePatterns:Zlt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:eut,defaultMatchWidth:"any",parsePatterns:tut,defaultParseWidth:"any"})},rut={code:"ko",formatDistance:Rlt,formatLong:Mlt,formatRelative:Dlt,localize:zlt,match:nut,options:{weekStartsOn:0,firstWeekContainsDate:1}};const aut=Object.freeze(Object.defineProperty({__proto__:null,default:rut},Symbol.toStringTag,{value:"Module"})),iut=jt(aut);var Oae={xseconds_other:"sekundė_sekundžių_sekundes",xminutes_one:"minutė_minutės_minutę",xminutes_other:"minutės_minučių_minutes",xhours_one:"valanda_valandos_valandą",xhours_other:"valandos_valandų_valandas",xdays_one:"diena_dienos_dieną",xdays_other:"dienos_dienų_dienas",xweeks_one:"savaitė_savaitės_savaitę",xweeks_other:"savaitės_savaičių_savaites",xmonths_one:"mėnuo_mėnesio_mėnesį",xmonths_other:"mėnesiai_mėnesių_mėnesius",xyears_one:"metai_metų_metus",xyears_other:"metai_metų_metus",about:"apie",over:"daugiau nei",almost:"beveik",lessthan:"mažiau nei"},MG=function(t,n,r,a){return n?a?"kelių sekundžių":"kelias sekundes":"kelios sekundės"},ts=function(t,n,r,a){return n?a?qp(r)[1]:qp(r)[2]:qp(r)[0]},Ro=function(t,n,r,a){var i=t+" ";return t===1?i+ts(t,n,r,a):n?a?i+qp(r)[1]:i+(IG(t)?qp(r)[1]:qp(r)[2]):i+(IG(t)?qp(r)[1]:qp(r)[0])};function IG(e){return e%10===0||e>10&&e<20}function qp(e){return Oae[e].split("_")}var out={lessThanXSeconds:{one:MG,other:Ro},xSeconds:{one:MG,other:Ro},halfAMinute:"pusė minutės",lessThanXMinutes:{one:ts,other:Ro},xMinutes:{one:ts,other:Ro},aboutXHours:{one:ts,other:Ro},xHours:{one:ts,other:Ro},xDays:{one:ts,other:Ro},aboutXWeeks:{one:ts,other:Ro},xWeeks:{one:ts,other:Ro},aboutXMonths:{one:ts,other:Ro},xMonths:{one:ts,other:Ro},aboutXYears:{one:ts,other:Ro},xYears:{one:ts,other:Ro},overXYears:{one:ts,other:Ro},almostXYears:{one:ts,other:Ro}},sut=function(t,n,r){var a=t.match(/about|over|almost|lessthan/i),i=a?t.replace(a[0],""):t,o=(r==null?void 0:r.comparison)!==void 0&&r.comparison>0,l,u=out[t];if(typeof u=="string"?l=u:n===1?l=u.one(n,(r==null?void 0:r.addSuffix)===!0,i.toLowerCase()+"_one",o):l=u.other(n,(r==null?void 0:r.addSuffix)===!0,i.toLowerCase()+"_other",o),a){var d=a[0].toLowerCase();l=Oae[d]+" "+l}return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"po "+l:"prieš "+l:l},lut={full:"y 'm'. MMMM d 'd'., EEEE",long:"y 'm'. MMMM d 'd'.",medium:"y-MM-dd",short:"y-MM-dd"},uut={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},cut={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},dut={date:Ne({formats:lut,defaultWidth:"full"}),time:Ne({formats:uut,defaultWidth:"full"}),dateTime:Ne({formats:cut,defaultWidth:"full"})},fut={lastWeek:"'Praėjusį' eeee p",yesterday:"'Vakar' p",today:"'Šiandien' p",tomorrow:"'Rytoj' p",nextWeek:"eeee p",other:"P"},put=function(t,n,r,a){return fut[t]},hut={narrow:["pr. Kr.","po Kr."],abbreviated:["pr. Kr.","po Kr."],wide:["prieš Kristų","po Kristaus"]},mut={narrow:["1","2","3","4"],abbreviated:["I ketv.","II ketv.","III ketv.","IV ketv."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},gut={narrow:["1","2","3","4"],abbreviated:["I k.","II k.","III k.","IV k."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},vut={narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausis","vasaris","kovas","balandis","gegužė","birželis","liepa","rugpjūtis","rugsėjis","spalis","lapkritis","gruodis"]},yut={narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausio","vasario","kovo","balandžio","gegužės","birželio","liepos","rugpjūčio","rugsėjo","spalio","lapkričio","gruodžio"]},but={narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"]},wut={narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienį","pirmadienį","antradienį","trečiadienį","ketvirtadienį","penktadienį","šeštadienį"]},Sut={narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"}},Eut={narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"}},Tut=function(t,n){var r=Number(t);return r+"-oji"},Cut={ordinalNumber:Tut,era:oe({values:hut,defaultWidth:"wide"}),quarter:oe({values:mut,defaultWidth:"wide",formattingValues:gut,defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:vut,defaultWidth:"wide",formattingValues:yut,defaultFormattingWidth:"wide"}),day:oe({values:but,defaultWidth:"wide",formattingValues:wut,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:Sut,defaultWidth:"wide",formattingValues:Eut,defaultFormattingWidth:"wide"})},kut=/^(\d+)(-oji)?/i,xut=/\d+/i,_ut={narrow:/^p(r|o)\.?\s?(kr\.?|me)/i,abbreviated:/^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i,wide:/^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i},Out={wide:[/prieš/i,/(po|mūsų)/i],any:[/^pr/i,/^(po|m)/i]},Rut={narrow:/^([1234])/i,abbreviated:/^(I|II|III|IV)\s?ketv?\.?/i,wide:/^(I|II|III|IV)\s?ketvirtis/i},Put={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/I$/i,/II$/i,/III/i,/IV/i]},Aut={narrow:/^[svkbglr]/i,abbreviated:/^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i,wide:/^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i},Nut={narrow:[/^s/i,/^v/i,/^k/i,/^b/i,/^g/i,/^b/i,/^l/i,/^r/i,/^r/i,/^s/i,/^l/i,/^g/i],any:[/^saus/i,/^vas/i,/^kov/i,/^bal/i,/^geg/i,/^birž/i,/^liep/i,/^rugp/i,/^rugs/i,/^spal/i,/^lapkr/i,/^gruod/i]},Mut={narrow:/^[spatkš]/i,short:/^(sk|pr|an|tr|kt|pn|št)/i,abbreviated:/^(sk|pr|an|tr|kt|pn|št)/i,wide:/^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i},Iut={narrow:[/^s/i,/^p/i,/^a/i,/^t/i,/^k/i,/^p/i,/^š/i],wide:[/^se/i,/^pi/i,/^an/i,/^tr/i,/^ke/i,/^pe/i,/^še/i],any:[/^sk/i,/^pr/i,/^an/i,/^tr/i,/^kt/i,/^pn/i,/^št/i]},Dut={narrow:/^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i,any:/^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i},$ut={narrow:{am:/^pr/i,pm:/^pop./i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i},any:{am:/^pr/i,pm:/^popiet$/i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i}},Lut={ordinalNumber:Xt({matchPattern:kut,parsePattern:xut,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:_ut,defaultMatchWidth:"wide",parsePatterns:Out,defaultParseWidth:"any"}),quarter:se({matchPatterns:Rut,defaultMatchWidth:"wide",parsePatterns:Put,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Aut,defaultMatchWidth:"wide",parsePatterns:Nut,defaultParseWidth:"any"}),day:se({matchPatterns:Mut,defaultMatchWidth:"wide",parsePatterns:Iut,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Dut,defaultMatchWidth:"any",parsePatterns:$ut,defaultParseWidth:"any"})},Fut={code:"lt",formatDistance:sut,formatLong:dut,formatRelative:put,localize:Cut,match:Lut,options:{weekStartsOn:1,firstWeekContainsDate:4}};const jut=Object.freeze(Object.defineProperty({__proto__:null,default:Fut},Symbol.toStringTag,{value:"Module"})),Uut=jt(jut);function Po(e){return function(t,n){if(t===1)return n!=null&&n.addSuffix?e.one[0].replace("{{time}}",e.one[2]):e.one[0].replace("{{time}}",e.one[1]);var r=t%10===1&&t%100!==11;return n!=null&&n.addSuffix?e.other[0].replace("{{time}}",r?e.other[3]:e.other[4]).replace("{{count}}",String(t)):e.other[0].replace("{{time}}",r?e.other[1]:e.other[2]).replace("{{count}}",String(t))}}var But={lessThanXSeconds:Po({one:["mazāk par {{time}}","sekundi","sekundi"],other:["mazāk nekā {{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),xSeconds:Po({one:["1 {{time}}","sekunde","sekundes"],other:["{{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),halfAMinute:function(t,n){return n!=null&&n.addSuffix?"pusminūtes":"pusminūte"},lessThanXMinutes:Po({one:["mazāk par {{time}}","minūti","minūti"],other:["mazāk nekā {{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),xMinutes:Po({one:["1 {{time}}","minūte","minūtes"],other:["{{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),aboutXHours:Po({one:["apmēram 1 {{time}}","stunda","stundas"],other:["apmēram {{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xHours:Po({one:["1 {{time}}","stunda","stundas"],other:["{{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xDays:Po({one:["1 {{time}}","diena","dienas"],other:["{{count}} {{time}}","diena","dienas","dienas","dienām"]}),aboutXWeeks:Po({one:["apmēram 1 {{time}}","nedēļa","nedēļas"],other:["apmēram {{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),xWeeks:Po({one:["1 {{time}}","nedēļa","nedēļas"],other:["{{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),aboutXMonths:Po({one:["apmēram 1 {{time}}","mēnesis","mēneša"],other:["apmēram {{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),xMonths:Po({one:["1 {{time}}","mēnesis","mēneša"],other:["{{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),aboutXYears:Po({one:["apmēram 1 {{time}}","gads","gada"],other:["apmēram {{count}} {{time}}","gads","gadi","gada","gadiem"]}),xYears:Po({one:["1 {{time}}","gads","gada"],other:["{{count}} {{time}}","gads","gadi","gada","gadiem"]}),overXYears:Po({one:["ilgāk par 1 {{time}}","gadu","gadu"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]}),almostXYears:Po({one:["gandrīz 1 {{time}}","gads","gada"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]})},Wut=function(t,n,r){var a=But[t](n,r);return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"pēc "+a:"pirms "+a:a},zut={full:"EEEE, y. 'gada' d. MMMM",long:"y. 'gada' d. MMMM",medium:"dd.MM.y.",short:"dd.MM.y."},qut={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Hut={full:"{{date}} 'plkst.' {{time}}",long:"{{date}} 'plkst.' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Vut={date:Ne({formats:zut,defaultWidth:"full"}),time:Ne({formats:qut,defaultWidth:"full"}),dateTime:Ne({formats:Hut,defaultWidth:"full"})},DG=["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"],Gut={lastWeek:function(t,n,r){if(wi(t,n,r))return"eeee 'plkst.' p";var a=DG[t.getUTCDay()];return"'Pagājušā "+a+" plkst.' p"},yesterday:"'Vakar plkst.' p",today:"'Šodien plkst.' p",tomorrow:"'Rīt plkst.' p",nextWeek:function(t,n,r){if(wi(t,n,r))return"eeee 'plkst.' p";var a=DG[t.getUTCDay()];return"'Nākamajā "+a+" plkst.' p"},other:"P"},Yut=function(t,n,r,a){var i=Gut[t];return typeof i=="function"?i(n,r,a):i},Kut={narrow:["p.m.ē","m.ē"],abbreviated:["p. m. ē.","m. ē."],wide:["pirms mūsu ēras","mūsu ērā"]},Xut={narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmais ceturksnis","otrais ceturksnis","trešais ceturksnis","ceturtais ceturksnis"]},Qut={narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmajā ceturksnī","otrajā ceturksnī","trešajā ceturksnī","ceturtajā ceturksnī"]},Jut={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","marts","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvāris","februāris","marts","aprīlis","maijs","jūnijs","jūlijs","augusts","septembris","oktobris","novembris","decembris"]},Zut={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","martā","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvārī","februārī","martā","aprīlī","maijā","jūnijā","jūlijā","augustā","septembrī","oktobrī","novembrī","decembrī"]},ect={narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"]},tct={narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"]},nct={narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"diena",evening:"vakars",night:"nakts"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"pēcpusd.",evening:"vakars",night:"nakts"},wide:{am:"am",pm:"pm",midnight:"pusnakts",noon:"pusdienlaiks",morning:"rīts",afternoon:"pēcpusdiena",evening:"vakars",night:"nakts"}},rct={narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"dienā",evening:"vakarā",night:"naktī"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"pēcpusd.",evening:"vakarā",night:"naktī"},wide:{am:"am",pm:"pm",midnight:"pusnaktī",noon:"pusdienlaikā",morning:"rītā",afternoon:"pēcpusdienā",evening:"vakarā",night:"naktī"}},act=function(t,n){var r=Number(t);return r+"."},ict={ordinalNumber:act,era:oe({values:Kut,defaultWidth:"wide"}),quarter:oe({values:Xut,defaultWidth:"wide",formattingValues:Qut,defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Jut,defaultWidth:"wide",formattingValues:Zut,defaultFormattingWidth:"wide"}),day:oe({values:ect,defaultWidth:"wide",formattingValues:tct,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:nct,defaultWidth:"wide",formattingValues:rct,defaultFormattingWidth:"wide"})},oct=/^(\d+)\./i,sct=/\d+/i,lct={narrow:/^(p\.m\.ē|m\.ē)/i,abbreviated:/^(p\. m\. ē\.|m\. ē\.)/i,wide:/^(pirms mūsu ēras|mūsu ērā)/i},uct={any:[/^p/i,/^m/i]},cct={narrow:/^[1234]/i,abbreviated:/^[1234](\. cet\.)/i,wide:/^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i},dct={narrow:[/^1/i,/^2/i,/^3/i,/^4/i],abbreviated:[/^1/i,/^2/i,/^3/i,/^4/i],wide:[/^p/i,/^o/i,/^t/i,/^c/i]},fct={narrow:/^[jfmasond]/i,abbreviated:/^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i,wide:/^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i},pct={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jūn/i,/^jūl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},hct={narrow:/^[spotc]/i,short:/^(sv|pi|o|t|c|pk|s)/i,abbreviated:/^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i,wide:/^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i},mct={narrow:[/^s/i,/^p/i,/^o/i,/^t/i,/^c/i,/^p/i,/^s/i],any:[/^sv/i,/^pi/i,/^o/i,/^t/i,/^c/i,/^p/i,/^se/i]},gct={narrow:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/,abbreviated:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/,wide:/^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i},vct={any:{am:/^am/i,pm:/^pm/i,midnight:/^pusn/i,noon:/^pusd/i,morning:/^r/i,afternoon:/^(d|pēc)/i,evening:/^v/i,night:/^n/i}},yct={ordinalNumber:Xt({matchPattern:oct,parsePattern:sct,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:lct,defaultMatchWidth:"wide",parsePatterns:uct,defaultParseWidth:"any"}),quarter:se({matchPatterns:cct,defaultMatchWidth:"wide",parsePatterns:dct,defaultParseWidth:"wide",valueCallback:function(t){return t+1}}),month:se({matchPatterns:fct,defaultMatchWidth:"wide",parsePatterns:pct,defaultParseWidth:"any"}),day:se({matchPatterns:hct,defaultMatchWidth:"wide",parsePatterns:mct,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:gct,defaultMatchWidth:"wide",parsePatterns:vct,defaultParseWidth:"any"})},bct={code:"lv",formatDistance:Wut,formatLong:Vut,formatRelative:Yut,localize:ict,match:yct,options:{weekStartsOn:1,firstWeekContainsDate:4}};const wct=Object.freeze(Object.defineProperty({__proto__:null,default:bct},Symbol.toStringTag,{value:"Module"})),Sct=jt(wct);var Ect={lessThanXSeconds:{one:"kurang dari 1 saat",other:"kurang dari {{count}} saat"},xSeconds:{one:"1 saat",other:"{{count}} saat"},halfAMinute:"setengah minit",lessThanXMinutes:{one:"kurang dari 1 minit",other:"kurang dari {{count}} minit"},xMinutes:{one:"1 minit",other:"{{count}} minit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},Tct=function(t,n,r){var a,i=Ect[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dalam masa "+a:a+" yang lalu":a},Cct={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},kct={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},xct={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_ct={date:Ne({formats:Cct,defaultWidth:"full"}),time:Ne({formats:kct,defaultWidth:"full"}),dateTime:Ne({formats:xct,defaultWidth:"full"})},Oct={lastWeek:"eeee 'lepas pada jam' p",yesterday:"'Semalam pada jam' p",today:"'Hari ini pada jam' p",tomorrow:"'Esok pada jam' p",nextWeek:"eeee 'pada jam' p",other:"P"},Rct=function(t,n,r,a){return Oct[t]},Pct={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masihi","Masihi"]},Act={narrow:["1","2","3","4"],abbreviated:["S1","S2","S3","S4"],wide:["Suku pertama","Suku kedua","Suku ketiga","Suku keempat"]},Nct={narrow:["J","F","M","A","M","J","J","O","S","O","N","D"],abbreviated:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],wide:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},Mct={narrow:["A","I","S","R","K","J","S"],short:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],abbreviated:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],wide:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},Ict={narrow:{am:"am",pm:"pm",midnight:"tgh malam",noon:"tgh hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},Dct={narrow:{am:"am",pm:"pm",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},$ct=function(t,n){return"ke-"+Number(t)},Lct={ordinalNumber:$ct,era:oe({values:Pct,defaultWidth:"wide"}),quarter:oe({values:Act,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Nct,defaultWidth:"wide"}),day:oe({values:Mct,defaultWidth:"wide"}),dayPeriod:oe({values:Ict,defaultWidth:"wide",formattingValues:Dct,defaultFormattingWidth:"wide"})},Fct=/^ke-(\d+)?/i,jct=/petama|\d+/i,Uct={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|m\.?)/i,wide:/^(sebelum masihi|masihi)/i},Bct={any:[/^s/i,/^(m)/i]},Wct={narrow:/^[1234]/i,abbreviated:/^S[1234]/i,wide:/Suku (pertama|kedua|ketiga|keempat)/i},zct={any:[/pertama|1/i,/kedua|2/i,/ketiga|3/i,/keempat|4/i]},qct={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i,wide:/^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i},Hct={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^og/i,/^s/i,/^ok/i,/^n/i,/^d/i]},Vct={narrow:/^[aisrkj]/i,short:/^(ahd|isn|sel|rab|kha|jum|sab)/i,abbreviated:/^(ahd|isn|sel|rab|kha|jum|sab)/i,wide:/^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i},Gct={narrow:[/^a/i,/^i/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^a/i,/^i/i,/^se/i,/^r/i,/^k/i,/^j/i,/^sa/i]},Yct={narrow:/^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i},Kct={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pa/i,afternoon:/tengah h/i,evening:/pe/i,night:/m/i}},Xct={ordinalNumber:Xt({matchPattern:Fct,parsePattern:jct,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Uct,defaultMatchWidth:"wide",parsePatterns:Bct,defaultParseWidth:"any"}),quarter:se({matchPatterns:Wct,defaultMatchWidth:"wide",parsePatterns:zct,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:qct,defaultMatchWidth:"wide",parsePatterns:Hct,defaultParseWidth:"any"}),day:se({matchPatterns:Vct,defaultMatchWidth:"wide",parsePatterns:Gct,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Yct,defaultMatchWidth:"any",parsePatterns:Kct,defaultParseWidth:"any"})},Qct={code:"ms",formatDistance:Tct,formatLong:_ct,formatRelative:Rct,localize:Lct,match:Xct,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Jct=Object.freeze(Object.defineProperty({__proto__:null,default:Qct},Symbol.toStringTag,{value:"Module"})),Zct=jt(Jct);var edt={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en måned",other:"omtrent {{count}} måneder"},xMonths:{one:"en måned",other:"{{count}} måneder"},aboutXYears:{one:"omtrent ett år",other:"omtrent {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"over ett år",other:"over {{count}} år"},almostXYears:{one:"nesten ett år",other:"nesten {{count}} år"}},tdt=function(t,n,r){var a,i=edt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" siden":a},ndt={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},rdt={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},adt={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},idt={date:Ne({formats:ndt,defaultWidth:"full"}),time:Ne({formats:rdt,defaultWidth:"full"}),dateTime:Ne({formats:adt,defaultWidth:"full"})},odt={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},sdt=function(t,n,r,a){return odt[t]},ldt={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},udt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},cdt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},ddt={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn","man","tir","ons","tor","fre","lør"],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},fdt={narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgenen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natten"}},pdt=function(t,n){var r=Number(t);return r+"."},hdt={ordinalNumber:pdt,era:oe({values:ldt,defaultWidth:"wide"}),quarter:oe({values:udt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:cdt,defaultWidth:"wide"}),day:oe({values:ddt,defaultWidth:"wide"}),dayPeriod:oe({values:fdt,defaultWidth:"wide"})},mdt=/^(\d+)\.?/i,gdt=/\d+/i,vdt={narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},ydt={any:[/^f/i,/^e/i]},bdt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},wdt={any:[/1/i,/2/i,/3/i,/4/i]},Sdt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},Edt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},Tdt={narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},Cdt={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},kdt={narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},xdt={any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},_dt={ordinalNumber:Xt({matchPattern:mdt,parsePattern:gdt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:vdt,defaultMatchWidth:"wide",parsePatterns:ydt,defaultParseWidth:"any"}),quarter:se({matchPatterns:bdt,defaultMatchWidth:"wide",parsePatterns:wdt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Sdt,defaultMatchWidth:"wide",parsePatterns:Edt,defaultParseWidth:"any"}),day:se({matchPatterns:Tdt,defaultMatchWidth:"wide",parsePatterns:Cdt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:kdt,defaultMatchWidth:"any",parsePatterns:xdt,defaultParseWidth:"any"})},Odt={code:"nb",formatDistance:tdt,formatLong:idt,formatRelative:sdt,localize:hdt,match:_dt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Rdt=Object.freeze(Object.defineProperty({__proto__:null,default:Odt},Symbol.toStringTag,{value:"Module"})),Pdt=jt(Rdt);var Adt={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},Ndt=function(t,n,r){var a,i=Adt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"over "+a:a+" geleden":a},Mdt={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},Idt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Ddt={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$dt={date:Ne({formats:Mdt,defaultWidth:"full"}),time:Ne({formats:Idt,defaultWidth:"full"}),dateTime:Ne({formats:Ddt,defaultWidth:"full"})},Ldt={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},Fdt=function(t,n,r,a){return Ldt[t]},jdt={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},Udt={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},Bdt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},Wdt={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},zdt={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},qdt=function(t,n){var r=Number(t);return r+"e"},Hdt={ordinalNumber:qdt,era:oe({values:jdt,defaultWidth:"wide"}),quarter:oe({values:Udt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Bdt,defaultWidth:"wide"}),day:oe({values:Wdt,defaultWidth:"wide"}),dayPeriod:oe({values:zdt,defaultWidth:"wide"})},Vdt=/^(\d+)e?/i,Gdt=/\d+/i,Ydt={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},Kdt={any:[/^v/,/^n/]},Xdt={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},Qdt={any:[/1/i,/2/i,/3/i,/4/i]},Jdt={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},Zdt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},eft={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},tft={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},nft={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},rft={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},aft={ordinalNumber:Xt({matchPattern:Vdt,parsePattern:Gdt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Ydt,defaultMatchWidth:"wide",parsePatterns:Kdt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Xdt,defaultMatchWidth:"wide",parsePatterns:Qdt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Jdt,defaultMatchWidth:"wide",parsePatterns:Zdt,defaultParseWidth:"any"}),day:se({matchPatterns:eft,defaultMatchWidth:"wide",parsePatterns:tft,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:nft,defaultMatchWidth:"any",parsePatterns:rft,defaultParseWidth:"any"})},ift={code:"nl",formatDistance:Ndt,formatLong:$dt,formatRelative:Fdt,localize:Hdt,match:aft,options:{weekStartsOn:1,firstWeekContainsDate:4}};const oft=Object.freeze(Object.defineProperty({__proto__:null,default:ift},Symbol.toStringTag,{value:"Module"})),sft=jt(oft);var lft={lessThanXSeconds:{one:"mindre enn eitt sekund",other:"mindre enn {{count}} sekund"},xSeconds:{one:"eitt sekund",other:"{{count}} sekund"},halfAMinute:"eit halvt minutt",lessThanXMinutes:{one:"mindre enn eitt minutt",other:"mindre enn {{count}} minutt"},xMinutes:{one:"eitt minutt",other:"{{count}} minutt"},aboutXHours:{one:"omtrent ein time",other:"omtrent {{count}} timar"},xHours:{one:"ein time",other:"{{count}} timar"},xDays:{one:"ein dag",other:"{{count}} dagar"},aboutXWeeks:{one:"omtrent ei veke",other:"omtrent {{count}} veker"},xWeeks:{one:"ei veke",other:"{{count}} veker"},aboutXMonths:{one:"omtrent ein månad",other:"omtrent {{count}} månader"},xMonths:{one:"ein månad",other:"{{count}} månader"},aboutXYears:{one:"omtrent eitt år",other:"omtrent {{count}} år"},xYears:{one:"eitt år",other:"{{count}} år"},overXYears:{one:"over eitt år",other:"over {{count}} år"},almostXYears:{one:"nesten eitt år",other:"nesten {{count}} år"}},uft=["null","ein","to","tre","fire","fem","seks","sju","åtte","ni","ti","elleve","tolv"],cft=function(t,n,r){var a,i=lft[t];return typeof i=="string"?a=i:n===1?a=i.one:r&&r.onlyNumeric?a=i.other.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",n<13?uft[n]:String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" sidan":a},dft={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},fft={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},pft={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},hft={date:Ne({formats:dft,defaultWidth:"full"}),time:Ne({formats:fft,defaultWidth:"full"}),dateTime:Ne({formats:pft,defaultWidth:"full"})},mft={lastWeek:"'førre' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},gft=function(t,n,r,a){return mft[t]},vft={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},yft={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},bft={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},wft={narrow:["S","M","T","O","T","F","L"],short:["su","må","ty","on","to","fr","lau"],abbreviated:["sun","mån","tys","ons","tor","fre","laur"],wide:["sundag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"]},Sft={narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natta"}},Eft=function(t,n){var r=Number(t);return r+"."},Tft={ordinalNumber:Eft,era:oe({values:vft,defaultWidth:"wide"}),quarter:oe({values:yft,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:bft,defaultWidth:"wide"}),day:oe({values:wft,defaultWidth:"wide"}),dayPeriod:oe({values:Sft,defaultWidth:"wide"})},Cft=/^(\d+)\.?/i,kft=/\d+/i,xft={narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},_ft={any:[/^f/i,/^e/i]},Oft={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},Rft={any:[/1/i,/2/i,/3/i,/4/i]},Pft={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},Aft={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},Nft={narrow:/^[smtofl]/i,short:/^(su|må|ty|on|to|fr|la)/i,abbreviated:/^(sun|mån|tys|ons|tor|fre|laur)/i,wide:/^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i},Mft={any:[/^s/i,/^m/i,/^ty/i,/^o/i,/^to/i,/^f/i,/^l/i]},Ift={narrow:/^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i},Dft={any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},$ft={ordinalNumber:Xt({matchPattern:Cft,parsePattern:kft,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:xft,defaultMatchWidth:"wide",parsePatterns:_ft,defaultParseWidth:"any"}),quarter:se({matchPatterns:Oft,defaultMatchWidth:"wide",parsePatterns:Rft,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Pft,defaultMatchWidth:"wide",parsePatterns:Aft,defaultParseWidth:"any"}),day:se({matchPatterns:Nft,defaultMatchWidth:"wide",parsePatterns:Mft,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Ift,defaultMatchWidth:"any",parsePatterns:Dft,defaultParseWidth:"any"})},Lft={code:"nn",formatDistance:cft,formatLong:hft,formatRelative:gft,localize:Tft,match:$ft,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Fft=Object.freeze(Object.defineProperty({__proto__:null,default:Lft},Symbol.toStringTag,{value:"Module"})),jft=jt(Fft);var Uft={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godziny",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"około tygodnia",twoFour:"około {{count}} tygodni",other:"około {{count}} tygodni"},xWeeks:{one:"tydzień",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function Bft(e,t){if(t===1)return e.one;var n=t%100;if(n<=20&&n>10)return e.other;var r=n%10;return r>=2&&r<=4?e.twoFour:e.other}function S$(e,t,n){var r=Bft(e,t),a=typeof r=="string"?r:r[n];return a.replace("{{count}}",String(t))}var Wft=function(t,n,r){var a=Uft[t];return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"za "+S$(a,n,"future"):S$(a,n,"past")+" temu":S$(a,n,"regular")},zft={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},qft={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Hft={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Vft={date:Ne({formats:zft,defaultWidth:"full"}),time:Ne({formats:qft,defaultWidth:"full"}),dateTime:Ne({formats:Hft,defaultWidth:"full"})},Gft={masculine:"ostatni",feminine:"ostatnia"},Yft={masculine:"ten",feminine:"ta"},Kft={masculine:"następny",feminine:"następna"},Xft={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function $G(e,t,n,r){var a;if(wi(t,n,r))a=Yft;else if(e==="lastWeek")a=Gft;else if(e==="nextWeek")a=Kft;else throw new Error("Cannot determine adjectives for token ".concat(e));var i=t.getUTCDay(),o=Xft[i],l=a[o];return"'".concat(l,"' eeee 'o' p")}var Qft={lastWeek:$G,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:$G,other:"P"},Jft=function(t,n,r,a){var i=Qft[t];return typeof i=="function"?i(t,n,r,a):i},Zft={narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszą erą","naszej ery"]},ept={narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwartał","II kwartał","III kwartał","IV kwartał"]},tpt={narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},npt={narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]},rpt={narrow:["N","P","W","Ś","C","P","S"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},apt={narrow:["n","p","w","ś","c","p","s"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},ipt={narrow:{am:"a",pm:"p",midnight:"półn.",noon:"poł",morning:"rano",afternoon:"popoł.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"}},opt={narrow:{am:"a",pm:"p",midnight:"o półn.",noon:"w poł.",morning:"rano",afternoon:"po poł.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"}},spt=function(t,n){return String(t)},lpt={ordinalNumber:spt,era:oe({values:Zft,defaultWidth:"wide"}),quarter:oe({values:ept,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:tpt,defaultWidth:"wide",formattingValues:npt,defaultFormattingWidth:"wide"}),day:oe({values:rpt,defaultWidth:"wide",formattingValues:apt,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:ipt,defaultWidth:"wide",formattingValues:opt,defaultFormattingWidth:"wide"})},upt=/^(\d+)?/i,cpt=/\d+/i,dpt={narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},fpt={any:[/^p/i,/^n/i]},ppt={narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},hpt={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},mpt={narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},gpt={narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},vpt={narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},ypt={narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},bpt={narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},wpt={narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},Spt={ordinalNumber:Xt({matchPattern:upt,parsePattern:cpt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:dpt,defaultMatchWidth:"wide",parsePatterns:fpt,defaultParseWidth:"any"}),quarter:se({matchPatterns:ppt,defaultMatchWidth:"wide",parsePatterns:hpt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:mpt,defaultMatchWidth:"wide",parsePatterns:gpt,defaultParseWidth:"any"}),day:se({matchPatterns:vpt,defaultMatchWidth:"wide",parsePatterns:ypt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:bpt,defaultMatchWidth:"any",parsePatterns:wpt,defaultParseWidth:"any"})},Ept={code:"pl",formatDistance:Wft,formatLong:Vft,formatRelative:Jft,localize:lpt,match:Spt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Tpt=Object.freeze(Object.defineProperty({__proto__:null,default:Ept},Symbol.toStringTag,{value:"Module"})),Cpt=jt(Tpt);var kpt={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},xpt=function(t,n,r){var a,i=kpt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"daqui a "+a:"há "+a:a},_pt={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},Opt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Rpt={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ppt={date:Ne({formats:_pt,defaultWidth:"full"}),time:Ne({formats:Opt,defaultWidth:"full"}),dateTime:Ne({formats:Rpt,defaultWidth:"full"})},Apt={lastWeek:function(t){var n=t.getUTCDay(),r=n===0||n===6?"último":"última";return"'"+r+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},Npt=function(t,n,r,a){var i=Apt[t];return typeof i=="function"?i(n):i},Mpt={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},Ipt={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Dpt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},$pt={narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},Lpt={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},Fpt={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},jpt=function(t,n){var r=Number(t);return r+"º"},Upt={ordinalNumber:jpt,era:oe({values:Mpt,defaultWidth:"wide"}),quarter:oe({values:Ipt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Dpt,defaultWidth:"wide"}),day:oe({values:$pt,defaultWidth:"wide"}),dayPeriod:oe({values:Lpt,defaultWidth:"wide",formattingValues:Fpt,defaultFormattingWidth:"wide"})},Bpt=/^(\d+)(º|ª)?/i,Wpt=/\d+/i,zpt={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},qpt={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},Hpt={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},Vpt={any:[/1/i,/2/i,/3/i,/4/i]},Gpt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},Ypt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},Kpt={narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},Xpt={narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},Qpt={narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},Jpt={any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},Zpt={ordinalNumber:Xt({matchPattern:Bpt,parsePattern:Wpt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:zpt,defaultMatchWidth:"wide",parsePatterns:qpt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Hpt,defaultMatchWidth:"wide",parsePatterns:Vpt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Gpt,defaultMatchWidth:"wide",parsePatterns:Ypt,defaultParseWidth:"any"}),day:se({matchPatterns:Kpt,defaultMatchWidth:"wide",parsePatterns:Xpt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Qpt,defaultMatchWidth:"any",parsePatterns:Jpt,defaultParseWidth:"any"})},eht={code:"pt",formatDistance:xpt,formatLong:Ppt,formatRelative:Npt,localize:Upt,match:Zpt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const tht=Object.freeze(Object.defineProperty({__proto__:null,default:eht},Symbol.toStringTag,{value:"Module"})),nht=jt(tht);var rht={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},aht=function(t,n,r){var a,i=rht[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"em "+a:"há "+a:a},iht={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},oht={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},sht={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lht={date:Ne({formats:iht,defaultWidth:"full"}),time:Ne({formats:oht,defaultWidth:"full"}),dateTime:Ne({formats:sht,defaultWidth:"full"})},uht={lastWeek:function(t){var n=t.getUTCDay(),r=n===0||n===6?"último":"última";return"'"+r+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},cht=function(t,n,r,a){var i=uht[t];return typeof i=="function"?i(n):i},dht={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},fht={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},pht={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},hht={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},mht={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},ght={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},vht=function(t,n){var r=Number(t);return(n==null?void 0:n.unit)==="week"?r+"ª":r+"º"},yht={ordinalNumber:vht,era:oe({values:dht,defaultWidth:"wide"}),quarter:oe({values:fht,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:pht,defaultWidth:"wide"}),day:oe({values:hht,defaultWidth:"wide"}),dayPeriod:oe({values:mht,defaultWidth:"wide",formattingValues:ght,defaultFormattingWidth:"wide"})},bht=/^(\d+)[ºªo]?/i,wht=/\d+/i,Sht={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},Eht={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},Tht={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Cht={any:[/1/i,/2/i,/3/i,/4/i]},kht={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},xht={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},_ht={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},Oht={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},Rht={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},Pht={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},Aht={ordinalNumber:Xt({matchPattern:bht,parsePattern:wht,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Sht,defaultMatchWidth:"wide",parsePatterns:Eht,defaultParseWidth:"any"}),quarter:se({matchPatterns:Tht,defaultMatchWidth:"wide",parsePatterns:Cht,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:kht,defaultMatchWidth:"wide",parsePatterns:xht,defaultParseWidth:"any"}),day:se({matchPatterns:_ht,defaultMatchWidth:"wide",parsePatterns:Oht,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Rht,defaultMatchWidth:"any",parsePatterns:Pht,defaultParseWidth:"any"})},Nht={code:"pt-BR",formatDistance:aht,formatLong:lht,formatRelative:cht,localize:yht,match:Aht,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Mht=Object.freeze(Object.defineProperty({__proto__:null,default:Nht},Symbol.toStringTag,{value:"Module"})),Iht=jt(Mht);var Dht={lessThanXSeconds:{one:"mai puțin de o secundă",other:"mai puțin de {{count}} secunde"},xSeconds:{one:"1 secundă",other:"{{count}} secunde"},halfAMinute:"jumătate de minut",lessThanXMinutes:{one:"mai puțin de un minut",other:"mai puțin de {{count}} minute"},xMinutes:{one:"1 minut",other:"{{count}} minute"},aboutXHours:{one:"circa 1 oră",other:"circa {{count}} ore"},xHours:{one:"1 oră",other:"{{count}} ore"},xDays:{one:"1 zi",other:"{{count}} zile"},aboutXWeeks:{one:"circa o săptămână",other:"circa {{count}} săptămâni"},xWeeks:{one:"1 săptămână",other:"{{count}} săptămâni"},aboutXMonths:{one:"circa 1 lună",other:"circa {{count}} luni"},xMonths:{one:"1 lună",other:"{{count}} luni"},aboutXYears:{one:"circa 1 an",other:"circa {{count}} ani"},xYears:{one:"1 an",other:"{{count}} ani"},overXYears:{one:"peste 1 an",other:"peste {{count}} ani"},almostXYears:{one:"aproape 1 an",other:"aproape {{count}} ani"}},$ht=function(t,n,r){var a,i=Dht[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"în "+a:a+" în urmă":a},Lht={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd.MM.yyyy"},Fht={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},jht={full:"{{date}} 'la' {{time}}",long:"{{date}} 'la' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Uht={date:Ne({formats:Lht,defaultWidth:"full"}),time:Ne({formats:Fht,defaultWidth:"full"}),dateTime:Ne({formats:jht,defaultWidth:"full"})},Bht={lastWeek:"eeee 'trecută la' p",yesterday:"'ieri la' p",today:"'astăzi la' p",tomorrow:"'mâine la' p",nextWeek:"eeee 'viitoare la' p",other:"P"},Wht=function(t,n,r,a){return Bht[t]},zht={narrow:["Î","D"],abbreviated:["Î.d.C.","D.C."],wide:["Înainte de Cristos","După Cristos"]},qht={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["primul trimestru","al doilea trimestru","al treilea trimestru","al patrulea trimestru"]},Hht={narrow:["I","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["ian","feb","mar","apr","mai","iun","iul","aug","sep","oct","noi","dec"],wide:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},Vht={narrow:["d","l","m","m","j","v","s"],short:["du","lu","ma","mi","jo","vi","sâ"],abbreviated:["dum","lun","mar","mie","joi","vin","sâm"],wide:["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"]},Ght={narrow:{am:"a",pm:"p",midnight:"mn",noon:"ami",morning:"dim",afternoon:"da",evening:"s",night:"n"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},Yht={narrow:{am:"a",pm:"p",midnight:"mn",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},Kht=function(t,n){return String(t)},Xht={ordinalNumber:Kht,era:oe({values:zht,defaultWidth:"wide"}),quarter:oe({values:qht,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Hht,defaultWidth:"wide"}),day:oe({values:Vht,defaultWidth:"wide"}),dayPeriod:oe({values:Ght,defaultWidth:"wide",formattingValues:Yht,defaultFormattingWidth:"wide"})},Qht=/^(\d+)?/i,Jht=/\d+/i,Zht={narrow:/^(Î|D)/i,abbreviated:/^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i},emt={any:[/^ÎC/i,/^DC/i],wide:[/^(Înainte de Cristos|Înaintea erei noastre)/i,/^(După Cristos|Era noastră)/i]},tmt={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},nmt={any:[/1/i,/2/i,/3/i,/4/i]},rmt={narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},amt={narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},imt={narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|sâ)/i,wide:/^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i},omt={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},smt={narrow:/^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i},lmt={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/dimineaţa/i,afternoon:/după-amiaza/i,evening:/seara/i,night:/noaptea/i}},umt={ordinalNumber:Xt({matchPattern:Qht,parsePattern:Jht,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Zht,defaultMatchWidth:"wide",parsePatterns:emt,defaultParseWidth:"any"}),quarter:se({matchPatterns:tmt,defaultMatchWidth:"wide",parsePatterns:nmt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:rmt,defaultMatchWidth:"wide",parsePatterns:amt,defaultParseWidth:"any"}),day:se({matchPatterns:imt,defaultMatchWidth:"wide",parsePatterns:omt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:smt,defaultMatchWidth:"any",parsePatterns:lmt,defaultParseWidth:"any"})},cmt={code:"ro",formatDistance:$ht,formatLong:Uht,formatRelative:Wht,localize:Xht,match:umt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const dmt=Object.freeze(Object.defineProperty({__proto__:null,default:cmt},Symbol.toStringTag,{value:"Module"})),fmt=jt(dmt);function W1(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function Ao(e){return function(t,n){return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?e.future?W1(e.future,t):"через "+W1(e.regular,t):e.past?W1(e.past,t):W1(e.regular,t)+" назад":W1(e.regular,t)}}var pmt={lessThanXSeconds:Ao({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:Ao({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:function(t,n){return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"через полминуты":"полминуты назад":"полминуты"},lessThanXMinutes:Ao({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:Ao({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:Ao({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:Ao({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:Ao({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:Ao({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:Ao({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:Ao({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:Ao({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:Ao({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:Ao({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:Ao({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:Ao({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},hmt=function(t,n,r){return pmt[t](n,r)},mmt={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},gmt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},vmt={any:"{{date}}, {{time}}"},ymt={date:Ne({formats:mmt,defaultWidth:"full"}),time:Ne({formats:gmt,defaultWidth:"full"}),dateTime:Ne({formats:vmt,defaultWidth:"any"})},h4=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function bmt(e){var t=h4[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function LG(e){var t=h4[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function wmt(e){var t=h4[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}var Smt={lastWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?LG(a):bmt(a)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?LG(a):wmt(a)},other:"P"},Emt=function(t,n,r,a){var i=Smt[t];return typeof i=="function"?i(n,r,a):i},Tmt={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},Cmt={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},kmt={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},xmt={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},_mt={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},Omt={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},Rmt={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},Pmt=function(t,n){var r=Number(t),a=n==null?void 0:n.unit,i;return a==="date"?i="-е":a==="week"||a==="minute"||a==="second"?i="-я":i="-й",r+i},Amt={ordinalNumber:Pmt,era:oe({values:Tmt,defaultWidth:"wide"}),quarter:oe({values:Cmt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:kmt,defaultWidth:"wide",formattingValues:xmt,defaultFormattingWidth:"wide"}),day:oe({values:_mt,defaultWidth:"wide"}),dayPeriod:oe({values:Omt,defaultWidth:"any",formattingValues:Rmt,defaultFormattingWidth:"wide"})},Nmt=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,Mmt=/\d+/i,Imt={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},Dmt={any:[/^д/i,/^н/i]},$mt={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},Lmt={any:[/1/i,/2/i,/3/i,/4/i]},Fmt={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},jmt={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},Umt={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},Bmt={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},Wmt={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},zmt={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},qmt={ordinalNumber:Xt({matchPattern:Nmt,parsePattern:Mmt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Imt,defaultMatchWidth:"wide",parsePatterns:Dmt,defaultParseWidth:"any"}),quarter:se({matchPatterns:$mt,defaultMatchWidth:"wide",parsePatterns:Lmt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Fmt,defaultMatchWidth:"wide",parsePatterns:jmt,defaultParseWidth:"any"}),day:se({matchPatterns:Umt,defaultMatchWidth:"wide",parsePatterns:Bmt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Wmt,defaultMatchWidth:"wide",parsePatterns:zmt,defaultParseWidth:"any"})},Hmt={code:"ru",formatDistance:hmt,formatLong:ymt,formatRelative:Emt,localize:Amt,match:qmt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Vmt=Object.freeze(Object.defineProperty({__proto__:null,default:Hmt},Symbol.toStringTag,{value:"Module"})),Gmt=jt(Vmt);function Ymt(e,t){return t===1&&e.one?e.one:t>=2&&t<=4&&e.twoFour?e.twoFour:e.other}function E$(e,t,n){var r=Ymt(e,t),a=r[n];return a.replace("{{count}}",String(t))}function Kmt(e){var t=["lessThan","about","over","almost"].filter(function(n){return!!e.match(new RegExp("^"+n))});return t[0]}function T$(e){var t="";return e==="almost"&&(t="takmer"),e==="about"&&(t="približne"),t.length>0?t+" ":""}function C$(e){var t="";return e==="lessThan"&&(t="menej než"),e==="over"&&(t="viac než"),t.length>0?t+" ":""}function Xmt(e){return e.charAt(0).toLowerCase()+e.slice(1)}var Qmt={xSeconds:{one:{present:"sekunda",past:"sekundou",future:"sekundu"},twoFour:{present:"{{count}} sekundy",past:"{{count}} sekundami",future:"{{count}} sekundy"},other:{present:"{{count}} sekúnd",past:"{{count}} sekundami",future:"{{count}} sekúnd"}},halfAMinute:{other:{present:"pol minúty",past:"pol minútou",future:"pol minúty"}},xMinutes:{one:{present:"minúta",past:"minútou",future:"minútu"},twoFour:{present:"{{count}} minúty",past:"{{count}} minútami",future:"{{count}} minúty"},other:{present:"{{count}} minút",past:"{{count}} minútami",future:"{{count}} minút"}},xHours:{one:{present:"hodina",past:"hodinou",future:"hodinu"},twoFour:{present:"{{count}} hodiny",past:"{{count}} hodinami",future:"{{count}} hodiny"},other:{present:"{{count}} hodín",past:"{{count}} hodinami",future:"{{count}} hodín"}},xDays:{one:{present:"deň",past:"dňom",future:"deň"},twoFour:{present:"{{count}} dni",past:"{{count}} dňami",future:"{{count}} dni"},other:{present:"{{count}} dní",past:"{{count}} dňami",future:"{{count}} dní"}},xWeeks:{one:{present:"týždeň",past:"týždňom",future:"týždeň"},twoFour:{present:"{{count}} týždne",past:"{{count}} týždňami",future:"{{count}} týždne"},other:{present:"{{count}} týždňov",past:"{{count}} týždňami",future:"{{count}} týždňov"}},xMonths:{one:{present:"mesiac",past:"mesiacom",future:"mesiac"},twoFour:{present:"{{count}} mesiace",past:"{{count}} mesiacmi",future:"{{count}} mesiace"},other:{present:"{{count}} mesiacov",past:"{{count}} mesiacmi",future:"{{count}} mesiacov"}},xYears:{one:{present:"rok",past:"rokom",future:"rok"},twoFour:{present:"{{count}} roky",past:"{{count}} rokmi",future:"{{count}} roky"},other:{present:"{{count}} rokov",past:"{{count}} rokmi",future:"{{count}} rokov"}}},Jmt=function(t,n,r){var a=Kmt(t)||"",i=Xmt(t.substring(a.length)),o=Qmt[i];return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?T$(a)+"o "+C$(a)+E$(o,n,"future"):T$(a)+"pred "+C$(a)+E$(o,n,"past"):T$(a)+C$(a)+E$(o,n,"present")},Zmt={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. M. y",short:"d. M. y"},egt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},tgt={full:"{{date}}, {{time}}",long:"{{date}}, {{time}}",medium:"{{date}}, {{time}}",short:"{{date}} {{time}}"},ngt={date:Ne({formats:Zmt,defaultWidth:"full"}),time:Ne({formats:egt,defaultWidth:"full"}),dateTime:Ne({formats:tgt,defaultWidth:"full"})},m4=["nedeľu","pondelok","utorok","stredu","štvrtok","piatok","sobotu"];function rgt(e){var t=m4[e];switch(e){case 0:case 3:case 6:return"'minulú "+t+" o' p";default:return"'minulý' eeee 'o' p"}}function FG(e){var t=m4[e];return e===4?"'vo' eeee 'o' p":"'v "+t+" o' p"}function agt(e){var t=m4[e];switch(e){case 0:case 4:case 6:return"'budúcu "+t+" o' p";default:return"'budúci' eeee 'o' p"}}var igt={lastWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?FG(a):rgt(a)},yesterday:"'včera o' p",today:"'dnes o' p",tomorrow:"'zajtra o' p",nextWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?FG(a):agt(a)},other:"P"},ogt=function(t,n,r,a){var i=igt[t];return typeof i=="function"?i(n,r,a):i},sgt={narrow:["pred Kr.","po Kr."],abbreviated:["pred Kr.","po Kr."],wide:["pred Kristom","po Kristovi"]},lgt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. štvrťrok","2. štvrťrok","3. štvrťrok","4. štvrťrok"]},ugt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"]},cgt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra"]},dgt={narrow:["n","p","u","s","š","p","s"],short:["ne","po","ut","st","št","pi","so"],abbreviated:["ne","po","ut","st","št","pi","so"],wide:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"]},fgt={narrow:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"polnoc",noon:"poludnie",morning:"ráno",afternoon:"popoludnie",evening:"večer",night:"noc"}},pgt={narrow:{am:"AM",pm:"PM",midnight:"o poln.",noon:"nap.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"v n."},abbreviated:{am:"AM",pm:"PM",midnight:"o poln.",noon:"napol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"v noci"},wide:{am:"AM",pm:"PM",midnight:"o polnoci",noon:"napoludnie",morning:"ráno",afternoon:"popoludní",evening:"večer",night:"v noci"}},hgt=function(t,n){var r=Number(t);return r+"."},mgt={ordinalNumber:hgt,era:oe({values:sgt,defaultWidth:"wide"}),quarter:oe({values:lgt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:ugt,defaultWidth:"wide",formattingValues:cgt,defaultFormattingWidth:"wide"}),day:oe({values:dgt,defaultWidth:"wide"}),dayPeriod:oe({values:fgt,defaultWidth:"wide",formattingValues:pgt,defaultFormattingWidth:"wide"})},ggt=/^(\d+)\.?/i,vgt=/\d+/i,ygt={narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},bgt={any:[/^pr/i,/^(po|n)/i]},wgt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},Sgt={any:[/1/i,/2/i,/3/i,/4/i]},Egt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},Tgt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Cgt={narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},kgt={narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},xgt={narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},_gt={any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},Ogt={ordinalNumber:Xt({matchPattern:ggt,parsePattern:vgt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:ygt,defaultMatchWidth:"wide",parsePatterns:bgt,defaultParseWidth:"any"}),quarter:se({matchPatterns:wgt,defaultMatchWidth:"wide",parsePatterns:Sgt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Egt,defaultMatchWidth:"wide",parsePatterns:Tgt,defaultParseWidth:"any"}),day:se({matchPatterns:Cgt,defaultMatchWidth:"wide",parsePatterns:kgt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:xgt,defaultMatchWidth:"any",parsePatterns:_gt,defaultParseWidth:"any"})},Rgt={code:"sk",formatDistance:Jmt,formatLong:ngt,formatRelative:ogt,localize:mgt,match:Ogt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Pgt=Object.freeze(Object.defineProperty({__proto__:null,default:Rgt},Symbol.toStringTag,{value:"Module"})),Agt=jt(Pgt);function Ngt(e){return e.one!==void 0}var Mgt={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"približno {{count}} ura",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"},past:{one:"približno {{count}} uro",two:"približno {{count}} urama",few:"približno {{count}} urami",other:"približno {{count}} urami"},future:{one:"približno {{count}} uro",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"približno {{count}} teden",two:"približno {{count}} tedna",few:"približno {{count}} tedne",other:"približno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"},past:{one:"približno {{count}} mesecem",two:"približno {{count}} mesecema",few:"približno {{count}} meseci",other:"približno {{count}} meseci"},future:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"}},xMonths:{present:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} meseci",other:"{{count}} mesecev"},past:{one:"{{count}} mesecem",two:"{{count}} mesecema",few:"{{count}} meseci",other:"{{count}} meseci"},future:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} mesece",other:"{{count}} mesecev"}},aboutXYears:{present:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"},past:{one:"približno {{count}} letom",two:"približno {{count}} letoma",few:"približno {{count}} leti",other:"približno {{count}} leti"},future:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"}},xYears:{present:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"},past:{one:"{{count}} letom",two:"{{count}} letoma",few:"{{count}} leti",other:"{{count}} leti"},future:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"}},overXYears:{present:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"},past:{one:"več kot {{count}} letom",two:"več kot {{count}} letoma",few:"več kot {{count}} leti",other:"več kot {{count}} leti"},future:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"}},almostXYears:{present:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"},past:{one:"skoraj {{count}} letom",two:"skoraj {{count}} letoma",few:"skoraj {{count}} leti",other:"skoraj {{count}} leti"},future:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"}}};function Igt(e){switch(e%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}var Dgt=function(t,n,r){var a="",i="present";r!=null&&r.addSuffix&&(r.comparison&&r.comparison>0?(i="future",a="čez "):(i="past",a="pred "));var o=Mgt[t];if(typeof o=="string")a+=o;else{var l=Igt(n);Ngt(o)?a+=o[l].replace("{{count}}",String(n)):a+=o[i][l].replace("{{count}}",String(n))}return a},$gt={full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},Lgt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Fgt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},jgt={date:Ne({formats:$gt,defaultWidth:"full"}),time:Ne({formats:Lgt,defaultWidth:"full"}),dateTime:Ne({formats:Fgt,defaultWidth:"full"})},Ugt={lastWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'prejšnjo nedeljo ob' p";case 3:return"'prejšnjo sredo ob' p";case 6:return"'prejšnjo soboto ob' p";default:return"'prejšnji' EEEE 'ob' p"}},yesterday:"'včeraj ob' p",today:"'danes ob' p",tomorrow:"'jutri ob' p",nextWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'naslednjo nedeljo ob' p";case 3:return"'naslednjo sredo ob' p";case 6:return"'naslednjo soboto ob' p";default:return"'naslednji' EEEE 'ob' p"}},other:"P"},Bgt=function(t,n,r,a){var i=Ugt[t];return typeof i=="function"?i(n):i},Wgt={narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},zgt={narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},qgt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},Hgt={narrow:["n","p","t","s","č","p","s"],short:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"]},Vgt={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"j",afternoon:"p",evening:"v",night:"n"},abbreviated:{am:"dop.",pm:"pop.",midnight:"poln.",noon:"pold.",morning:"jut.",afternoon:"pop.",evening:"več.",night:"noč"},wide:{am:"dop.",pm:"pop.",midnight:"polnoč",noon:"poldne",morning:"jutro",afternoon:"popoldne",evening:"večer",night:"noč"}},Ggt={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"zj",afternoon:"p",evening:"zv",night:"po"},abbreviated:{am:"dop.",pm:"pop.",midnight:"opoln.",noon:"opold.",morning:"zjut.",afternoon:"pop.",evening:"zveč.",night:"ponoči"},wide:{am:"dop.",pm:"pop.",midnight:"opolnoči",noon:"opoldne",morning:"zjutraj",afternoon:"popoldan",evening:"zvečer",night:"ponoči"}},Ygt=function(t,n){var r=Number(t);return r+"."},Kgt={ordinalNumber:Ygt,era:oe({values:Wgt,defaultWidth:"wide"}),quarter:oe({values:zgt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:qgt,defaultWidth:"wide"}),day:oe({values:Hgt,defaultWidth:"wide"}),dayPeriod:oe({values:Vgt,defaultWidth:"wide",formattingValues:Ggt,defaultFormattingWidth:"wide"})},Xgt=/^(\d+)\./i,Qgt=/\d+/i,Jgt={abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},Zgt={any:[/^pr/i,/^(po|na[sš]em)/i]},evt={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},tvt={any:[/1/i,/2/i,/3/i,/4/i]},nvt={narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},rvt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},avt={narrow:/^[nptsčc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i},ivt={narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[cč]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[cč]/i,/^pe/i,/^so/i]},ovt={narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},svt={narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},lvt={ordinalNumber:Xt({matchPattern:Xgt,parsePattern:Qgt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Jgt,defaultMatchWidth:"wide",parsePatterns:Zgt,defaultParseWidth:"any"}),quarter:se({matchPatterns:evt,defaultMatchWidth:"wide",parsePatterns:tvt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:nvt,defaultMatchWidth:"wide",parsePatterns:rvt,defaultParseWidth:"wide"}),day:se({matchPatterns:avt,defaultMatchWidth:"wide",parsePatterns:ivt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:ovt,defaultMatchWidth:"any",parsePatterns:svt,defaultParseWidth:"any"})},uvt={code:"sl",formatDistance:Dgt,formatLong:jgt,formatRelative:Bgt,localize:Kgt,match:lvt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const cvt=Object.freeze(Object.defineProperty({__proto__:null,default:uvt},Symbol.toStringTag,{value:"Module"})),dvt=jt(cvt);var fvt={lessThanXSeconds:{one:{standalone:"мање од 1 секунде",withPrepositionAgo:"мање од 1 секунде",withPrepositionIn:"мање од 1 секунду"},dual:"мање од {{count}} секунде",other:"мање од {{count}} секунди"},xSeconds:{one:{standalone:"1 секунда",withPrepositionAgo:"1 секунде",withPrepositionIn:"1 секунду"},dual:"{{count}} секунде",other:"{{count}} секунди"},halfAMinute:"пола минуте",lessThanXMinutes:{one:{standalone:"мање од 1 минуте",withPrepositionAgo:"мање од 1 минуте",withPrepositionIn:"мање од 1 минуту"},dual:"мање од {{count}} минуте",other:"мање од {{count}} минута"},xMinutes:{one:{standalone:"1 минута",withPrepositionAgo:"1 минуте",withPrepositionIn:"1 минуту"},dual:"{{count}} минуте",other:"{{count}} минута"},aboutXHours:{one:{standalone:"око 1 сат",withPrepositionAgo:"око 1 сат",withPrepositionIn:"око 1 сат"},dual:"око {{count}} сата",other:"око {{count}} сати"},xHours:{one:{standalone:"1 сат",withPrepositionAgo:"1 сат",withPrepositionIn:"1 сат"},dual:"{{count}} сата",other:"{{count}} сати"},xDays:{one:{standalone:"1 дан",withPrepositionAgo:"1 дан",withPrepositionIn:"1 дан"},dual:"{{count}} дана",other:"{{count}} дана"},aboutXWeeks:{one:{standalone:"око 1 недељу",withPrepositionAgo:"око 1 недељу",withPrepositionIn:"око 1 недељу"},dual:"око {{count}} недеље",other:"око {{count}} недеље"},xWeeks:{one:{standalone:"1 недељу",withPrepositionAgo:"1 недељу",withPrepositionIn:"1 недељу"},dual:"{{count}} недеље",other:"{{count}} недеље"},aboutXMonths:{one:{standalone:"око 1 месец",withPrepositionAgo:"око 1 месец",withPrepositionIn:"око 1 месец"},dual:"око {{count}} месеца",other:"око {{count}} месеци"},xMonths:{one:{standalone:"1 месец",withPrepositionAgo:"1 месец",withPrepositionIn:"1 месец"},dual:"{{count}} месеца",other:"{{count}} месеци"},aboutXYears:{one:{standalone:"око 1 годину",withPrepositionAgo:"око 1 годину",withPrepositionIn:"око 1 годину"},dual:"око {{count}} године",other:"око {{count}} година"},xYears:{one:{standalone:"1 година",withPrepositionAgo:"1 године",withPrepositionIn:"1 годину"},dual:"{{count}} године",other:"{{count}} година"},overXYears:{one:{standalone:"преко 1 годину",withPrepositionAgo:"преко 1 годину",withPrepositionIn:"преко 1 годину"},dual:"преко {{count}} године",other:"преко {{count}} година"},almostXYears:{one:{standalone:"готово 1 годину",withPrepositionAgo:"готово 1 годину",withPrepositionIn:"готово 1 годину"},dual:"готово {{count}} године",other:"готово {{count}} година"}},pvt=function(t,n,r){var a,i=fvt[t];return typeof i=="string"?a=i:n===1?r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a=i.one.withPrepositionIn:a=i.one.withPrepositionAgo:a=i.one.standalone:n%10>1&&n%10<5&&String(n).substr(-2,1)!=="1"?a=i.dual.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"за "+a:"пре "+a:a},hvt={full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},mvt={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},gvt={full:"{{date}} 'у' {{time}}",long:"{{date}} 'у' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},vvt={date:Ne({formats:hvt,defaultWidth:"full"}),time:Ne({formats:mvt,defaultWidth:"full"}),dateTime:Ne({formats:gvt,defaultWidth:"full"})},yvt={lastWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'прошле недеље у' p";case 3:return"'прошле среде у' p";case 6:return"'прошле суботе у' p";default:return"'прошли' EEEE 'у' p"}},yesterday:"'јуче у' p",today:"'данас у' p",tomorrow:"'сутра у' p",nextWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'следеће недеље у' p";case 3:return"'следећу среду у' p";case 6:return"'следећу суботу у' p";default:return"'следећи' EEEE 'у' p"}},other:"P"},bvt=function(t,n,r,a){var i=yvt[t];return typeof i=="function"?i(n):i},wvt={narrow:["пр.н.е.","АД"],abbreviated:["пр. Хр.","по. Хр."],wide:["Пре Христа","После Христа"]},Svt={narrow:["1.","2.","3.","4."],abbreviated:["1. кв.","2. кв.","3. кв.","4. кв."],wide:["1. квартал","2. квартал","3. квартал","4. квартал"]},Evt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},Tvt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},Cvt={narrow:["Н","П","У","С","Ч","П","С"],short:["нед","пон","уто","сре","чет","пет","суб"],abbreviated:["нед","пон","уто","сре","чет","пет","суб"],wide:["недеља","понедељак","уторак","среда","четвртак","петак","субота"]},kvt={narrow:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},xvt={narrow:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},_vt=function(t,n){var r=Number(t);return r+"."},Ovt={ordinalNumber:_vt,era:oe({values:wvt,defaultWidth:"wide"}),quarter:oe({values:Svt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Evt,defaultWidth:"wide",formattingValues:Tvt,defaultFormattingWidth:"wide"}),day:oe({values:Cvt,defaultWidth:"wide"}),dayPeriod:oe({values:xvt,defaultWidth:"wide",formattingValues:kvt,defaultFormattingWidth:"wide"})},Rvt=/^(\d+)\./i,Pvt=/\d+/i,Avt={narrow:/^(пр\.н\.е\.|АД)/i,abbreviated:/^(пр\.\s?Хр\.|по\.\s?Хр\.)/i,wide:/^(Пре Христа|пре нове ере|После Христа|нова ера)/i},Nvt={any:[/^пр/i,/^(по|нова)/i]},Mvt={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?кв\.?/i,wide:/^[1234]\. квартал/i},Ivt={any:[/1/i,/2/i,/3/i,/4/i]},Dvt={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i,wide:/^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i},$vt={narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ја/i,/^ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^авг/i,/^с/i,/^о/i,/^н/i,/^д/i]},Lvt={narrow:/^[пусчн]/i,short:/^(нед|пон|уто|сре|чет|пет|суб)/i,abbreviated:/^(нед|пон|уто|сре|чет|пет|суб)/i,wide:/^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i},Fvt={narrow:[/^п/i,/^у/i,/^с/i,/^ч/i,/^п/i,/^с/i,/^н/i],any:[/^нед/i,/^пон/i,/^уто/i,/^сре/i,/^чет/i,/^пет/i,/^суб/i]},jvt={any:/^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i},Uvt={any:{am:/^a/i,pm:/^p/i,midnight:/^поно/i,noon:/^под/i,morning:/ујутру/i,afternoon:/(после\s|по)+подне/i,evening:/(увече)/i,night:/(ноћу)/i}},Bvt={ordinalNumber:Xt({matchPattern:Rvt,parsePattern:Pvt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Avt,defaultMatchWidth:"wide",parsePatterns:Nvt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Mvt,defaultMatchWidth:"wide",parsePatterns:Ivt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Dvt,defaultMatchWidth:"wide",parsePatterns:$vt,defaultParseWidth:"any"}),day:se({matchPatterns:Lvt,defaultMatchWidth:"wide",parsePatterns:Fvt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:jvt,defaultMatchWidth:"any",parsePatterns:Uvt,defaultParseWidth:"any"})},Wvt={code:"sr",formatDistance:pvt,formatLong:vvt,formatRelative:bvt,localize:Ovt,match:Bvt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const zvt=Object.freeze(Object.defineProperty({__proto__:null,default:Wvt},Symbol.toStringTag,{value:"Module"})),qvt=jt(zvt);var Hvt={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 nedelju",withPrepositionAgo:"oko 1 nedelju",withPrepositionIn:"oko 1 nedelju"},dual:"oko {{count}} nedelje",other:"oko {{count}} nedelje"},xWeeks:{one:{standalone:"1 nedelju",withPrepositionAgo:"1 nedelju",withPrepositionIn:"1 nedelju"},dual:"{{count}} nedelje",other:"{{count}} nedelje"},aboutXMonths:{one:{standalone:"oko 1 mesec",withPrepositionAgo:"oko 1 mesec",withPrepositionIn:"oko 1 mesec"},dual:"oko {{count}} meseca",other:"oko {{count}} meseci"},xMonths:{one:{standalone:"1 mesec",withPrepositionAgo:"1 mesec",withPrepositionIn:"1 mesec"},dual:"{{count}} meseca",other:"{{count}} meseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},Vvt=function(t,n,r){var a,i=Hvt[t];return typeof i=="string"?a=i:n===1?r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a=i.one.withPrepositionIn:a=i.one.withPrepositionAgo:a=i.one.standalone:n%10>1&&n%10<5&&String(n).substr(-2,1)!=="1"?a=i.dual.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"za "+a:"pre "+a:a},Gvt={full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},Yvt={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Kvt={full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Xvt={date:Ne({formats:Gvt,defaultWidth:"full"}),time:Ne({formats:Yvt,defaultWidth:"full"}),dateTime:Ne({formats:Kvt,defaultWidth:"full"})},Qvt={lastWeek:function(t){switch(t.getUTCDay()){case 0:return"'prošle nedelje u' p";case 3:return"'prošle srede u' p";case 6:return"'prošle subote u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'juče u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:function(t){switch(t.getUTCDay()){case 0:return"'sledeće nedelje u' p";case 3:return"'sledeću sredu u' p";case 6:return"'sledeću subotu u' p";default:return"'sledeći' EEEE 'u' p"}},other:"P"},Jvt=function(t,n,r,a){var i=Qvt[t];return typeof i=="function"?i(n):i},Zvt={narrow:["pr.n.e.","AD"],abbreviated:["pr. Hr.","po. Hr."],wide:["Pre Hrista","Posle Hrista"]},eyt={narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},tyt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},nyt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},ryt={narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sre","čet","pet","sub"],abbreviated:["ned","pon","uto","sre","čet","pet","sub"],wide:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"]},ayt={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},iyt={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},oyt=function(t,n){var r=Number(t);return r+"."},syt={ordinalNumber:oyt,era:oe({values:Zvt,defaultWidth:"wide"}),quarter:oe({values:eyt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:tyt,defaultWidth:"wide",formattingValues:nyt,defaultFormattingWidth:"wide"}),day:oe({values:ryt,defaultWidth:"wide"}),dayPeriod:oe({values:iyt,defaultWidth:"wide",formattingValues:ayt,defaultFormattingWidth:"wide"})},lyt=/^(\d+)\./i,uyt=/\d+/i,cyt={narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i},dyt={any:[/^pr/i,/^(po|nova)/i]},fyt={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},pyt={any:[/1/i,/2/i,/3/i,/4/i]},hyt={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},myt={narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},gyt={narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i},vyt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},yyt={any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i},byt={any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(posle\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},wyt={ordinalNumber:Xt({matchPattern:lyt,parsePattern:uyt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:cyt,defaultMatchWidth:"wide",parsePatterns:dyt,defaultParseWidth:"any"}),quarter:se({matchPatterns:fyt,defaultMatchWidth:"wide",parsePatterns:pyt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:hyt,defaultMatchWidth:"wide",parsePatterns:myt,defaultParseWidth:"any"}),day:se({matchPatterns:gyt,defaultMatchWidth:"wide",parsePatterns:vyt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:yyt,defaultMatchWidth:"any",parsePatterns:byt,defaultParseWidth:"any"})},Syt={code:"sr-Latn",formatDistance:Vvt,formatLong:Xvt,formatRelative:Jvt,localize:syt,match:wyt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Eyt=Object.freeze(Object.defineProperty({__proto__:null,default:Syt},Symbol.toStringTag,{value:"Module"})),Tyt=jt(Eyt);var Cyt={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} vecka"},xWeeks:{one:"en vecka",other:"{{count}} vecka"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},kyt=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],xyt=function(t,n,r){var a,i=Cyt[t];return typeof i=="string"?a=i:n===1?a=i.one:r&&r.onlyNumeric?a=i.other.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",n<13?kyt[n]:String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" sedan":a},_yt={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},Oyt={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Ryt={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Pyt={date:Ne({formats:_yt,defaultWidth:"full"}),time:Ne({formats:Oyt,defaultWidth:"full"}),dateTime:Ne({formats:Ryt,defaultWidth:"full"})},Ayt={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},Nyt=function(t,n,r,a){return Ayt[t]},Myt={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},Iyt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},Dyt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},$yt={narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},Lyt={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},Fyt={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},jyt=function(t,n){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:case 2:return r+":a"}return r+":e"},Uyt={ordinalNumber:jyt,era:oe({values:Myt,defaultWidth:"wide"}),quarter:oe({values:Iyt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Dyt,defaultWidth:"wide"}),day:oe({values:$yt,defaultWidth:"wide"}),dayPeriod:oe({values:Lyt,defaultWidth:"wide",formattingValues:Fyt,defaultFormattingWidth:"wide"})},Byt=/^(\d+)(:a|:e)?/i,Wyt=/\d+/i,zyt={narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},qyt={any:[/^f/i,/^[ev]/i]},Hyt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},Vyt={any:[/1/i,/2/i,/3/i,/4/i]},Gyt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},Yyt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Kyt={narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},Xyt={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},Qyt={any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},Jyt={any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},Zyt={ordinalNumber:Xt({matchPattern:Byt,parsePattern:Wyt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:zyt,defaultMatchWidth:"wide",parsePatterns:qyt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Hyt,defaultMatchWidth:"wide",parsePatterns:Vyt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Gyt,defaultMatchWidth:"wide",parsePatterns:Yyt,defaultParseWidth:"any"}),day:se({matchPatterns:Kyt,defaultMatchWidth:"wide",parsePatterns:Xyt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Qyt,defaultMatchWidth:"any",parsePatterns:Jyt,defaultParseWidth:"any"})},ebt={code:"sv",formatDistance:xyt,formatLong:Pyt,formatRelative:Nyt,localize:Uyt,match:Zyt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const tbt=Object.freeze(Object.defineProperty({__proto__:null,default:ebt},Symbol.toStringTag,{value:"Module"})),nbt=jt(tbt);function rbt(e){return e.one!==void 0}var abt={lessThanXSeconds:{one:{default:"ஒரு வினாடிக்கு குறைவாக",in:"ஒரு வினாடிக்குள்",ago:"ஒரு வினாடிக்கு முன்பு"},other:{default:"{{count}} வினாடிகளுக்கு குறைவாக",in:"{{count}} வினாடிகளுக்குள்",ago:"{{count}} வினாடிகளுக்கு முன்பு"}},xSeconds:{one:{default:"1 வினாடி",in:"1 வினாடியில்",ago:"1 வினாடி முன்பு"},other:{default:"{{count}} விநாடிகள்",in:"{{count}} வினாடிகளில்",ago:"{{count}} விநாடிகளுக்கு முன்பு"}},halfAMinute:{default:"அரை நிமிடம்",in:"அரை நிமிடத்தில்",ago:"அரை நிமிடம் முன்பு"},lessThanXMinutes:{one:{default:"ஒரு நிமிடத்திற்கும் குறைவாக",in:"ஒரு நிமிடத்திற்குள்",ago:"ஒரு நிமிடத்திற்கு முன்பு"},other:{default:"{{count}} நிமிடங்களுக்கும் குறைவாக",in:"{{count}} நிமிடங்களுக்குள்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},xMinutes:{one:{default:"1 நிமிடம்",in:"1 நிமிடத்தில்",ago:"1 நிமிடம் முன்பு"},other:{default:"{{count}} நிமிடங்கள்",in:"{{count}} நிமிடங்களில்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},aboutXHours:{one:{default:"சுமார் 1 மணி நேரம்",in:"சுமார் 1 மணி நேரத்தில்",ago:"சுமார் 1 மணி நேரத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மணி நேரம்",in:"சுமார் {{count}} மணி நேரத்திற்கு முன்பு",ago:"சுமார் {{count}} மணி நேரத்தில்"}},xHours:{one:{default:"1 மணி நேரம்",in:"1 மணி நேரத்தில்",ago:"1 மணி நேரத்திற்கு முன்பு"},other:{default:"{{count}} மணி நேரம்",in:"{{count}} மணி நேரத்தில்",ago:"{{count}} மணி நேரத்திற்கு முன்பு"}},xDays:{one:{default:"1 நாள்",in:"1 நாளில்",ago:"1 நாள் முன்பு"},other:{default:"{{count}} நாட்கள்",in:"{{count}} நாட்களில்",ago:"{{count}} நாட்களுக்கு முன்பு"}},aboutXWeeks:{one:{default:"சுமார் 1 வாரம்",in:"சுமார் 1 வாரத்தில்",ago:"சுமார் 1 வாரம் முன்பு"},other:{default:"சுமார் {{count}} வாரங்கள்",in:"சுமார் {{count}} வாரங்களில்",ago:"சுமார் {{count}} வாரங்களுக்கு முன்பு"}},xWeeks:{one:{default:"1 வாரம்",in:"1 வாரத்தில்",ago:"1 வாரம் முன்பு"},other:{default:"{{count}} வாரங்கள்",in:"{{count}} வாரங்களில்",ago:"{{count}} வாரங்களுக்கு முன்பு"}},aboutXMonths:{one:{default:"சுமார் 1 மாதம்",in:"சுமார் 1 மாதத்தில்",ago:"சுமார் 1 மாதத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மாதங்கள்",in:"சுமார் {{count}} மாதங்களில்",ago:"சுமார் {{count}} மாதங்களுக்கு முன்பு"}},xMonths:{one:{default:"1 மாதம்",in:"1 மாதத்தில்",ago:"1 மாதம் முன்பு"},other:{default:"{{count}} மாதங்கள்",in:"{{count}} மாதங்களில்",ago:"{{count}} மாதங்களுக்கு முன்பு"}},aboutXYears:{one:{default:"சுமார் 1 வருடம்",in:"சுமார் 1 ஆண்டில்",ago:"சுமார் 1 வருடம் முன்பு"},other:{default:"சுமார் {{count}} ஆண்டுகள்",in:"சுமார் {{count}} ஆண்டுகளில்",ago:"சுமார் {{count}} ஆண்டுகளுக்கு முன்பு"}},xYears:{one:{default:"1 வருடம்",in:"1 ஆண்டில்",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகள்",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},overXYears:{one:{default:"1 வருடத்திற்கு மேல்",in:"1 வருடத்திற்கும் மேலாக",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகளுக்கும் மேலாக",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},almostXYears:{one:{default:"கிட்டத்தட்ட 1 வருடம்",in:"கிட்டத்தட்ட 1 ஆண்டில்",ago:"கிட்டத்தட்ட 1 வருடம் முன்பு"},other:{default:"கிட்டத்தட்ட {{count}} ஆண்டுகள்",in:"கிட்டத்தட்ட {{count}} ஆண்டுகளில்",ago:"கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு"}}},ibt=function(t,n,r){var a=r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in":"ago":"default",i=abt[t];return rbt(i)?n===1?i.one[a]:i.other[a].replace("{{count}}",String(n)):i[a]},obt={full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},sbt={full:"a h:mm:ss zzzz",long:"a h:mm:ss z",medium:"a h:mm:ss",short:"a h:mm"},lbt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ubt={date:Ne({formats:obt,defaultWidth:"full"}),time:Ne({formats:sbt,defaultWidth:"full"}),dateTime:Ne({formats:lbt,defaultWidth:"full"})},cbt={lastWeek:"'கடந்த' eeee p 'மணிக்கு'",yesterday:"'நேற்று ' p 'மணிக்கு'",today:"'இன்று ' p 'மணிக்கு'",tomorrow:"'நாளை ' p 'மணிக்கு'",nextWeek:"eeee p 'மணிக்கு'",other:"P"},dbt=function(t,n,r,a){return cbt[t]},fbt={narrow:["கி.மு.","கி.பி."],abbreviated:["கி.மு.","கி.பி."],wide:["கிறிஸ்துவுக்கு முன்","அன்னோ டோமினி"]},pbt={narrow:["1","2","3","4"],abbreviated:["காலா.1","காலா.2","காலா.3","காலா.4"],wide:["ஒன்றாம் காலாண்டு","இரண்டாம் காலாண்டு","மூன்றாம் காலாண்டு","நான்காம் காலாண்டு"]},hbt={narrow:["ஜ","பி","மா","ஏ","மே","ஜூ","ஜூ","ஆ","செ","அ","ந","டி"],abbreviated:["ஜன.","பிப்.","மார்.","ஏப்.","மே","ஜூன்","ஜூலை","ஆக.","செப்.","அக்.","நவ.","டிச."],wide:["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்"]},mbt={narrow:["ஞா","தி","செ","பு","வி","வெ","ச"],short:["ஞா","தி","செ","பு","வி","வெ","ச"],abbreviated:["ஞாயி.","திங்.","செவ்.","புத.","வியா.","வெள்.","சனி"],wide:["ஞாயிறு","திங்கள்","செவ்வாய்","புதன்","வியாழன்","வெள்ளி","சனி"]},gbt={narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},vbt={narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},ybt=function(t,n){return String(t)},bbt={ordinalNumber:ybt,era:oe({values:fbt,defaultWidth:"wide"}),quarter:oe({values:pbt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:hbt,defaultWidth:"wide"}),day:oe({values:mbt,defaultWidth:"wide"}),dayPeriod:oe({values:gbt,defaultWidth:"wide",formattingValues:vbt,defaultFormattingWidth:"wide"})},wbt=/^(\d+)(வது)?/i,Sbt=/\d+/i,Ebt={narrow:/^(கி.மு.|கி.பி.)/i,abbreviated:/^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/,wide:/^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i},Tbt={any:[/கி\.?\s?மு\.?/,/கி\.?\s?பி\.?/]},Cbt={narrow:/^[1234]/i,abbreviated:/^காலா.[1234]/i,wide:/^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i},kbt={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/(1|காலா.1|ஒன்றாம்)/i,/(2|காலா.2|இரண்டாம்)/i,/(3|காலா.3|மூன்றாம்)/i,/(4|காலா.4|நான்காம்)/i]},xbt={narrow:/^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i,abbreviated:/^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i,wide:/^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i},_bt={narrow:[/^ஜ$/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூ/i,/^ஜூ/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i],any:[/^ஜன/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூன்/i,/^ஜூலை/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i]},Obt={narrow:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,short:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,abbreviated:/^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i,wide:/^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i},Rbt={narrow:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i],any:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i]},Pbt={narrow:/^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i,any:/^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i},Abt={any:{am:/^மு/i,pm:/^பி/i,midnight:/^நள்/i,noon:/^நண்/i,morning:/காலை/i,afternoon:/மதியம்/i,evening:/மாலை/i,night:/இரவு/i}},Nbt={ordinalNumber:Xt({matchPattern:wbt,parsePattern:Sbt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Ebt,defaultMatchWidth:"wide",parsePatterns:Tbt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Cbt,defaultMatchWidth:"wide",parsePatterns:kbt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:xbt,defaultMatchWidth:"wide",parsePatterns:_bt,defaultParseWidth:"any"}),day:se({matchPatterns:Obt,defaultMatchWidth:"wide",parsePatterns:Rbt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Pbt,defaultMatchWidth:"any",parsePatterns:Abt,defaultParseWidth:"any"})},Mbt={code:"ta",formatDistance:ibt,formatLong:ubt,formatRelative:dbt,localize:bbt,match:Nbt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Ibt=Object.freeze(Object.defineProperty({__proto__:null,default:Mbt},Symbol.toStringTag,{value:"Module"})),Dbt=jt(Ibt);var jG={lessThanXSeconds:{standalone:{one:"సెకను కన్నా తక్కువ",other:"{{count}} సెకన్ల కన్నా తక్కువ"},withPreposition:{one:"సెకను",other:"{{count}} సెకన్ల"}},xSeconds:{standalone:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"},withPreposition:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"}},halfAMinute:{standalone:"అర నిమిషం",withPreposition:"అర నిమిషం"},lessThanXMinutes:{standalone:{one:"ఒక నిమిషం కన్నా తక్కువ",other:"{{count}} నిమిషాల కన్నా తక్కువ"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},xMinutes:{standalone:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాలు"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},aboutXHours:{standalone:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటలు"},withPreposition:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటల"}},xHours:{standalone:{one:"ఒక గంట",other:"{{count}} గంటలు"},withPreposition:{one:"ఒక గంట",other:"{{count}} గంటల"}},xDays:{standalone:{one:"ఒక రోజు",other:"{{count}} రోజులు"},withPreposition:{one:"ఒక రోజు",other:"{{count}} రోజుల"}},aboutXWeeks:{standalone:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలు"},withPreposition:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలల"}},xWeeks:{standalone:{one:"ఒక వారం",other:"{{count}} వారాలు"},withPreposition:{one:"ఒక వారం",other:"{{count}} వారాలల"}},aboutXMonths:{standalone:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలలు"},withPreposition:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలల"}},xMonths:{standalone:{one:"ఒక నెల",other:"{{count}} నెలలు"},withPreposition:{one:"ఒక నెల",other:"{{count}} నెలల"}},aboutXYears:{standalone:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాలు"},withPreposition:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాల"}},xYears:{standalone:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాలు"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},overXYears:{standalone:{one:"ఒక సంవత్సరం పైగా",other:"{{count}} సంవత్సరాలకు పైగా"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},almostXYears:{standalone:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాలు"},withPreposition:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాల"}}},$bt=function(t,n,r){var a,i=r!=null&&r.addSuffix?jG[t].withPreposition:jG[t].standalone;return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"లో":a+" క్రితం":a},Lbt={full:"d, MMMM y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd-MM-yy"},Fbt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},jbt={full:"{{date}} {{time}}'కి'",long:"{{date}} {{time}}'కి'",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Ubt={date:Ne({formats:Lbt,defaultWidth:"full"}),time:Ne({formats:Fbt,defaultWidth:"full"}),dateTime:Ne({formats:jbt,defaultWidth:"full"})},Bbt={lastWeek:"'గత' eeee p",yesterday:"'నిన్న' p",today:"'ఈ రోజు' p",tomorrow:"'రేపు' p",nextWeek:"'తదుపరి' eeee p",other:"P"},Wbt=function(t,n,r,a){return Bbt[t]},zbt={narrow:["క్రీ.పూ.","క్రీ.శ."],abbreviated:["క్రీ.పూ.","క్రీ.శ."],wide:["క్రీస్తు పూర్వం","క్రీస్తుశకం"]},qbt={narrow:["1","2","3","4"],abbreviated:["త్రై1","త్రై2","త్రై3","త్రై4"],wide:["1వ త్రైమాసికం","2వ త్రైమాసికం","3వ త్రైమాసికం","4వ త్రైమాసికం"]},Hbt={narrow:["జ","ఫి","మా","ఏ","మే","జూ","జు","ఆ","సె","అ","న","డి"],abbreviated:["జన","ఫిబ్ర","మార్చి","ఏప్రి","మే","జూన్","జులై","ఆగ","సెప్టెం","అక్టో","నవం","డిసెం"],wide:["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జులై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్"]},Vbt={narrow:["ఆ","సో","మ","బు","గు","శు","శ"],short:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],abbreviated:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],wide:["ఆదివారం","సోమవారం","మంగళవారం","బుధవారం","గురువారం","శుక్రవారం","శనివారం"]},Gbt={narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},Ybt={narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},Kbt=function(t,n){var r=Number(t);return r+"వ"},Xbt={ordinalNumber:Kbt,era:oe({values:zbt,defaultWidth:"wide"}),quarter:oe({values:qbt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Hbt,defaultWidth:"wide"}),day:oe({values:Vbt,defaultWidth:"wide"}),dayPeriod:oe({values:Gbt,defaultWidth:"wide",formattingValues:Ybt,defaultFormattingWidth:"wide"})},Qbt=/^(\d+)(వ)?/i,Jbt=/\d+/i,Zbt={narrow:/^(క్రీ\.పూ\.|క్రీ\.శ\.)/i,abbreviated:/^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i,wide:/^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i},e0t={any:[/^(పూ|శ)/i,/^సా/i]},t0t={narrow:/^[1234]/i,abbreviated:/^త్రై[1234]/i,wide:/^[1234](వ)? త్రైమాసికం/i},n0t={any:[/1/i,/2/i,/3/i,/4/i]},r0t={narrow:/^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i,abbreviated:/^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i,wide:/^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i},a0t={narrow:[/^జ/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూ/i,/^జు/i,/^ఆ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i],any:[/^జన/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూన్/i,/^జులై/i,/^ఆగ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i]},i0t={narrow:/^(ఆ|సో|మ|బు|గు|శు|శ)/i,short:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,abbreviated:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,wide:/^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i},o0t={narrow:[/^ఆ/i,/^సో/i,/^మ/i,/^బు/i,/^గు/i,/^శు/i,/^శ/i],any:[/^ఆది/i,/^సోమ/i,/^మం/i,/^బుధ/i,/^గురు/i,/^శుక్ర/i,/^శని/i]},s0t={narrow:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i,any:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i},l0t={any:{am:/^పూర్వాహ్నం/i,pm:/^అపరాహ్నం/i,midnight:/^అర్ధ/i,noon:/^మిట్ట/i,morning:/ఉదయం/i,afternoon:/మధ్యాహ్నం/i,evening:/సాయంత్రం/i,night:/రాత్రి/i}},u0t={ordinalNumber:Xt({matchPattern:Qbt,parsePattern:Jbt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Zbt,defaultMatchWidth:"wide",parsePatterns:e0t,defaultParseWidth:"any"}),quarter:se({matchPatterns:t0t,defaultMatchWidth:"wide",parsePatterns:n0t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:r0t,defaultMatchWidth:"wide",parsePatterns:a0t,defaultParseWidth:"any"}),day:se({matchPatterns:i0t,defaultMatchWidth:"wide",parsePatterns:o0t,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:s0t,defaultMatchWidth:"any",parsePatterns:l0t,defaultParseWidth:"any"})},c0t={code:"te",formatDistance:$bt,formatLong:Ubt,formatRelative:Wbt,localize:Xbt,match:u0t,options:{weekStartsOn:0,firstWeekContainsDate:1}};const d0t=Object.freeze(Object.defineProperty({__proto__:null,default:c0t},Symbol.toStringTag,{value:"Module"})),f0t=jt(d0t);var p0t={lessThanXSeconds:{one:"น้อยกว่า 1 วินาที",other:"น้อยกว่า {{count}} วินาที"},xSeconds:{one:"1 วินาที",other:"{{count}} วินาที"},halfAMinute:"ครึ่งนาที",lessThanXMinutes:{one:"น้อยกว่า 1 นาที",other:"น้อยกว่า {{count}} นาที"},xMinutes:{one:"1 นาที",other:"{{count}} นาที"},aboutXHours:{one:"ประมาณ 1 ชั่วโมง",other:"ประมาณ {{count}} ชั่วโมง"},xHours:{one:"1 ชั่วโมง",other:"{{count}} ชั่วโมง"},xDays:{one:"1 วัน",other:"{{count}} วัน"},aboutXWeeks:{one:"ประมาณ 1 สัปดาห์",other:"ประมาณ {{count}} สัปดาห์"},xWeeks:{one:"1 สัปดาห์",other:"{{count}} สัปดาห์"},aboutXMonths:{one:"ประมาณ 1 เดือน",other:"ประมาณ {{count}} เดือน"},xMonths:{one:"1 เดือน",other:"{{count}} เดือน"},aboutXYears:{one:"ประมาณ 1 ปี",other:"ประมาณ {{count}} ปี"},xYears:{one:"1 ปี",other:"{{count}} ปี"},overXYears:{one:"มากกว่า 1 ปี",other:"มากกว่า {{count}} ปี"},almostXYears:{one:"เกือบ 1 ปี",other:"เกือบ {{count}} ปี"}},h0t=function(t,n,r){var a,i=p0t[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?t==="halfAMinute"?"ใน"+a:"ใน "+a:a+"ที่ผ่านมา":a},m0t={full:"วันEEEEที่ do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},g0t={full:"H:mm:ss น. zzzz",long:"H:mm:ss น. z",medium:"H:mm:ss น.",short:"H:mm น."},v0t={full:"{{date}} 'เวลา' {{time}}",long:"{{date}} 'เวลา' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},y0t={date:Ne({formats:m0t,defaultWidth:"full"}),time:Ne({formats:g0t,defaultWidth:"medium"}),dateTime:Ne({formats:v0t,defaultWidth:"full"})},b0t={lastWeek:"eeee'ที่แล้วเวลา' p",yesterday:"'เมื่อวานนี้เวลา' p",today:"'วันนี้เวลา' p",tomorrow:"'พรุ่งนี้เวลา' p",nextWeek:"eeee 'เวลา' p",other:"P"},w0t=function(t,n,r,a){return b0t[t]},S0t={narrow:["B","คศ"],abbreviated:["BC","ค.ศ."],wide:["ปีก่อนคริสตกาล","คริสต์ศักราช"]},E0t={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ไตรมาสแรก","ไตรมาสที่สอง","ไตรมาสที่สาม","ไตรมาสที่สี่"]},T0t={narrow:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],short:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],abbreviated:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],wide:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"]},C0t={narrow:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],abbreviated:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],wide:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},k0t={narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"}},x0t={narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"}},_0t=function(t,n){return String(t)},O0t={ordinalNumber:_0t,era:oe({values:S0t,defaultWidth:"wide"}),quarter:oe({values:E0t,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:C0t,defaultWidth:"wide"}),day:oe({values:T0t,defaultWidth:"wide"}),dayPeriod:oe({values:k0t,defaultWidth:"wide",formattingValues:x0t,defaultFormattingWidth:"wide"})},R0t=/^\d+/i,P0t=/\d+/i,A0t={narrow:/^([bB]|[aA]|คศ)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i,wide:/^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i},N0t={any:[/^[bB]/i,/^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i]},M0t={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^ไตรมาส(ที่)? ?[1234]/i},I0t={any:[/(1|แรก|หนึ่ง)/i,/(2|สอง)/i,/(3|สาม)/i,/(4|สี่)/i]},D0t={narrow:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i,abbreviated:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i,wide:/^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i},$0t={wide:[/^มก/i,/^กุม/i,/^มี/i,/^เม/i,/^พฤษ/i,/^มิ/i,/^กรก/i,/^ส/i,/^กัน/i,/^ต/i,/^พฤศ/i,/^ธ/i],any:[/^ม\.?ค\.?/i,/^ก\.?พ\.?/i,/^มี\.?ค\.?/i,/^เม\.?ย\.?/i,/^พ\.?ค\.?/i,/^มิ\.?ย\.?/i,/^ก\.?ค\.?/i,/^ส\.?ค\.?/i,/^ก\.?ย\.?/i,/^ต\.?ค\.?/i,/^พ\.?ย\.?/i,/^ธ\.?ค\.?/i]},L0t={narrow:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,short:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,abbreviated:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,wide:/^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i},F0t={wide:[/^อา/i,/^จั/i,/^อั/i,/^พุธ/i,/^พฤ/i,/^ศ/i,/^เส/i],any:[/^อา/i,/^จ/i,/^อ/i,/^พ(?!ฤ)/i,/^พฤ/i,/^ศ/i,/^ส/i]},j0t={any:/^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i},U0t={any:{am:/^ก่อนเที่ยง/i,pm:/^หลังเที่ยง/i,midnight:/^เที่ยงคืน/i,noon:/^เที่ยง/i,morning:/เช้า/i,afternoon:/บ่าย/i,evening:/เย็น/i,night:/กลางคืน/i}},B0t={ordinalNumber:Xt({matchPattern:R0t,parsePattern:P0t,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:A0t,defaultMatchWidth:"wide",parsePatterns:N0t,defaultParseWidth:"any"}),quarter:se({matchPatterns:M0t,defaultMatchWidth:"wide",parsePatterns:I0t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:D0t,defaultMatchWidth:"wide",parsePatterns:$0t,defaultParseWidth:"any"}),day:se({matchPatterns:L0t,defaultMatchWidth:"wide",parsePatterns:F0t,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:j0t,defaultMatchWidth:"any",parsePatterns:U0t,defaultParseWidth:"any"})},W0t={code:"th",formatDistance:h0t,formatLong:y0t,formatRelative:w0t,localize:O0t,match:B0t,options:{weekStartsOn:0,firstWeekContainsDate:1}};const z0t=Object.freeze(Object.defineProperty({__proto__:null,default:W0t},Symbol.toStringTag,{value:"Module"})),q0t=jt(z0t);var H0t={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},V0t=function(t,n,r){var a,i=H0t[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" sonra":a+" önce":a},G0t={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},Y0t={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},K0t={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},X0t={date:Ne({formats:G0t,defaultWidth:"full"}),time:Ne({formats:Y0t,defaultWidth:"full"}),dateTime:Ne({formats:K0t,defaultWidth:"full"})},Q0t={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},J0t=function(t,n,r,a){return Q0t[t]},Z0t={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},ewt={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},twt={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},nwt={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},rwt={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},awt={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},iwt=function(t,n){var r=Number(t);return r+"."},owt={ordinalNumber:iwt,era:oe({values:Z0t,defaultWidth:"wide"}),quarter:oe({values:ewt,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:twt,defaultWidth:"wide"}),day:oe({values:nwt,defaultWidth:"wide"}),dayPeriod:oe({values:rwt,defaultWidth:"wide",formattingValues:awt,defaultFormattingWidth:"wide"})},swt=/^(\d+)(\.)?/i,lwt=/\d+/i,uwt={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},cwt={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},dwt={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},fwt={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},pwt={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},hwt={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},mwt={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},gwt={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},vwt={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},ywt={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},bwt={ordinalNumber:Xt({matchPattern:swt,parsePattern:lwt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:uwt,defaultMatchWidth:"wide",parsePatterns:cwt,defaultParseWidth:"any"}),quarter:se({matchPatterns:dwt,defaultMatchWidth:"wide",parsePatterns:fwt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:pwt,defaultMatchWidth:"wide",parsePatterns:hwt,defaultParseWidth:"any"}),day:se({matchPatterns:mwt,defaultMatchWidth:"wide",parsePatterns:gwt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:vwt,defaultMatchWidth:"any",parsePatterns:ywt,defaultParseWidth:"any"})},wwt={code:"tr",formatDistance:V0t,formatLong:X0t,formatRelative:J0t,localize:owt,match:bwt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Swt=Object.freeze(Object.defineProperty({__proto__:null,default:wwt},Symbol.toStringTag,{value:"Module"})),Ewt=jt(Swt);var Twt={lessThanXSeconds:{one:"بىر سىكۇنت ئىچىدە",other:"سىكۇنت ئىچىدە {{count}}"},xSeconds:{one:"بىر سىكۇنت",other:"سىكۇنت {{count}}"},halfAMinute:"يىرىم مىنۇت",lessThanXMinutes:{one:"بىر مىنۇت ئىچىدە",other:"مىنۇت ئىچىدە {{count}}"},xMinutes:{one:"بىر مىنۇت",other:"مىنۇت {{count}}"},aboutXHours:{one:"تەخمىنەن بىر سائەت",other:"سائەت {{count}} تەخمىنەن"},xHours:{one:"بىر سائەت",other:"سائەت {{count}}"},xDays:{one:"بىر كۈن",other:"كۈن {{count}}"},aboutXWeeks:{one:"تەخمىنەن بىرھەپتە",other:"ھەپتە {{count}} تەخمىنەن"},xWeeks:{one:"بىرھەپتە",other:"ھەپتە {{count}}"},aboutXMonths:{one:"تەخمىنەن بىر ئاي",other:"ئاي {{count}} تەخمىنەن"},xMonths:{one:"بىر ئاي",other:"ئاي {{count}}"},aboutXYears:{one:"تەخمىنەن بىر يىل",other:"يىل {{count}} تەخمىنەن"},xYears:{one:"بىر يىل",other:"يىل {{count}}"},overXYears:{one:"بىر يىلدىن ئارتۇق",other:"يىلدىن ئارتۇق {{count}}"},almostXYears:{one:"ئاساسەن بىر يىل",other:"يىل {{count}} ئاساسەن"}},Cwt=function(t,n,r){var a,i=Twt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a:a+" بولدى":a},kwt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xwt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_wt={full:"{{date}} 'دە' {{time}}",long:"{{date}} 'دە' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Owt={date:Ne({formats:kwt,defaultWidth:"full"}),time:Ne({formats:xwt,defaultWidth:"full"}),dateTime:Ne({formats:_wt,defaultWidth:"full"})},Rwt={lastWeek:"'ئ‍ۆتكەن' eeee 'دە' p",yesterday:"'تۈنۈگۈن دە' p",today:"'بۈگۈن دە' p",tomorrow:"'ئەتە دە' p",nextWeek:"eeee 'دە' p",other:"P"},Pwt=function(t,n,r,a){return Rwt[t]},Awt={narrow:["ب","ك"],abbreviated:["ب","ك"],wide:["مىيلادىدىن بۇرۇن","مىيلادىدىن كىيىن"]},Nwt={narrow:["1","2","3","4"],abbreviated:["1","2","3","4"],wide:["بىرىنجى چارەك","ئىككىنجى چارەك","ئۈچىنجى چارەك","تۆتىنجى چارەك"]},Mwt={narrow:["ي","ف","م","ا","م","ى","ى","ا","س","ۆ","ن","د"],abbreviated:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"],wide:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"]},Iwt={narrow:["ي","د","س","چ","پ","ج","ش"],short:["ي","د","س","چ","پ","ج","ش"],abbreviated:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"],wide:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},Dwt={narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"}},$wt={narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"}},Lwt=function(t,n){return String(t)},Fwt={ordinalNumber:Lwt,era:oe({values:Awt,defaultWidth:"wide"}),quarter:oe({values:Nwt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Mwt,defaultWidth:"wide"}),day:oe({values:Iwt,defaultWidth:"wide"}),dayPeriod:oe({values:Dwt,defaultWidth:"wide",formattingValues:$wt,defaultFormattingWidth:"wide"})},jwt=/^(\d+)(th|st|nd|rd)?/i,Uwt=/\d+/i,Bwt={narrow:/^(ب|ك)/i,wide:/^(مىيلادىدىن بۇرۇن|مىيلادىدىن كىيىن)/i},Wwt={any:[/^بۇرۇن/i,/^كىيىن/i]},zwt={narrow:/^[1234]/i,abbreviated:/^چ[1234]/i,wide:/^چارەك [1234]/i},qwt={any:[/1/i,/2/i,/3/i,/4/i]},Hwt={narrow:/^[يفمئامئ‍ئاسۆند]/i,abbreviated:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i,wide:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i},Vwt={narrow:[/^ي/i,/^ف/i,/^م/i,/^ا/i,/^م/i,/^ى‍/i,/^ى‍/i,/^ا‍/i,/^س/i,/^ۆ/i,/^ن/i,/^د/i],any:[/^يان/i,/^فېۋ/i,/^مار/i,/^ئاپ/i,/^ماي/i,/^ئىيۇن/i,/^ئىيول/i,/^ئاۋ/i,/^سىن/i,/^ئۆك/i,/^نوي/i,/^دىك/i]},Gwt={narrow:/^[دسچپجشي]/i,short:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,abbreviated:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,wide:/^(يەكشەنبە|دۈشەنبە|سەيشەنبە|چارشەنبە|پەيشەنبە|جۈمە|شەنبە)/i},Ywt={narrow:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i]},Kwt={narrow:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i,any:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i},Xwt={any:{am:/^ئە/i,pm:/^چ/i,midnight:/^ك/i,noon:/^چ/i,morning:/ئەتىگەن/i,afternoon:/چۈشتىن كىيىن/i,evening:/ئاخشىم/i,night:/كىچە/i}},Qwt={ordinalNumber:Xt({matchPattern:jwt,parsePattern:Uwt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Bwt,defaultMatchWidth:"wide",parsePatterns:Wwt,defaultParseWidth:"any"}),quarter:se({matchPatterns:zwt,defaultMatchWidth:"wide",parsePatterns:qwt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Hwt,defaultMatchWidth:"wide",parsePatterns:Vwt,defaultParseWidth:"any"}),day:se({matchPatterns:Gwt,defaultMatchWidth:"wide",parsePatterns:Ywt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Kwt,defaultMatchWidth:"any",parsePatterns:Xwt,defaultParseWidth:"any"})},Jwt={code:"ug",formatDistance:Cwt,formatLong:Owt,formatRelative:Pwt,localize:Fwt,match:Qwt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Zwt=Object.freeze(Object.defineProperty({__proto__:null,default:Jwt},Symbol.toStringTag,{value:"Module"})),e1t=jt(Zwt);function z1(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function No(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?z1(e.future,t):"за "+z1(e.regular,t):e.past?z1(e.past,t):z1(e.regular,t)+" тому":z1(e.regular,t)}}var t1t=function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?"за півхвилини":"півхвилини тому":"півхвилини"},n1t={lessThanXSeconds:No({regular:{one:"менше секунди",singularNominative:"менше {{count}} секунди",singularGenitive:"менше {{count}} секунд",pluralGenitive:"менше {{count}} секунд"},future:{one:"менше, ніж за секунду",singularNominative:"менше, ніж за {{count}} секунду",singularGenitive:"менше, ніж за {{count}} секунди",pluralGenitive:"менше, ніж за {{count}} секунд"}}),xSeconds:No({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунди",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду тому",singularGenitive:"{{count}} секунди тому",pluralGenitive:"{{count}} секунд тому"},future:{singularNominative:"за {{count}} секунду",singularGenitive:"за {{count}} секунди",pluralGenitive:"за {{count}} секунд"}}),halfAMinute:t1t,lessThanXMinutes:No({regular:{one:"менше хвилини",singularNominative:"менше {{count}} хвилини",singularGenitive:"менше {{count}} хвилин",pluralGenitive:"менше {{count}} хвилин"},future:{one:"менше, ніж за хвилину",singularNominative:"менше, ніж за {{count}} хвилину",singularGenitive:"менше, ніж за {{count}} хвилини",pluralGenitive:"менше, ніж за {{count}} хвилин"}}),xMinutes:No({regular:{singularNominative:"{{count}} хвилина",singularGenitive:"{{count}} хвилини",pluralGenitive:"{{count}} хвилин"},past:{singularNominative:"{{count}} хвилину тому",singularGenitive:"{{count}} хвилини тому",pluralGenitive:"{{count}} хвилин тому"},future:{singularNominative:"за {{count}} хвилину",singularGenitive:"за {{count}} хвилини",pluralGenitive:"за {{count}} хвилин"}}),aboutXHours:No({regular:{singularNominative:"близько {{count}} години",singularGenitive:"близько {{count}} годин",pluralGenitive:"близько {{count}} годин"},future:{singularNominative:"приблизно за {{count}} годину",singularGenitive:"приблизно за {{count}} години",pluralGenitive:"приблизно за {{count}} годин"}}),xHours:No({regular:{singularNominative:"{{count}} годину",singularGenitive:"{{count}} години",pluralGenitive:"{{count}} годин"}}),xDays:No({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} днi",pluralGenitive:"{{count}} днів"}}),aboutXWeeks:No({regular:{singularNominative:"близько {{count}} тижня",singularGenitive:"близько {{count}} тижнів",pluralGenitive:"близько {{count}} тижнів"},future:{singularNominative:"приблизно за {{count}} тиждень",singularGenitive:"приблизно за {{count}} тижні",pluralGenitive:"приблизно за {{count}} тижнів"}}),xWeeks:No({regular:{singularNominative:"{{count}} тиждень",singularGenitive:"{{count}} тижні",pluralGenitive:"{{count}} тижнів"}}),aboutXMonths:No({regular:{singularNominative:"близько {{count}} місяця",singularGenitive:"близько {{count}} місяців",pluralGenitive:"близько {{count}} місяців"},future:{singularNominative:"приблизно за {{count}} місяць",singularGenitive:"приблизно за {{count}} місяці",pluralGenitive:"приблизно за {{count}} місяців"}}),xMonths:No({regular:{singularNominative:"{{count}} місяць",singularGenitive:"{{count}} місяці",pluralGenitive:"{{count}} місяців"}}),aboutXYears:No({regular:{singularNominative:"близько {{count}} року",singularGenitive:"близько {{count}} років",pluralGenitive:"близько {{count}} років"},future:{singularNominative:"приблизно за {{count}} рік",singularGenitive:"приблизно за {{count}} роки",pluralGenitive:"приблизно за {{count}} років"}}),xYears:No({regular:{singularNominative:"{{count}} рік",singularGenitive:"{{count}} роки",pluralGenitive:"{{count}} років"}}),overXYears:No({regular:{singularNominative:"більше {{count}} року",singularGenitive:"більше {{count}} років",pluralGenitive:"більше {{count}} років"},future:{singularNominative:"більше, ніж за {{count}} рік",singularGenitive:"більше, ніж за {{count}} роки",pluralGenitive:"більше, ніж за {{count}} років"}}),almostXYears:No({regular:{singularNominative:"майже {{count}} рік",singularGenitive:"майже {{count}} роки",pluralGenitive:"майже {{count}} років"},future:{singularNominative:"майже за {{count}} рік",singularGenitive:"майже за {{count}} роки",pluralGenitive:"майже за {{count}} років"}})},r1t=function(t,n,r){return r=r||{},n1t[t](n,r)},a1t={full:"EEEE, do MMMM y 'р.'",long:"do MMMM y 'р.'",medium:"d MMM y 'р.'",short:"dd.MM.y"},i1t={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},o1t={full:"{{date}} 'о' {{time}}",long:"{{date}} 'о' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s1t={date:Ne({formats:a1t,defaultWidth:"full"}),time:Ne({formats:i1t,defaultWidth:"full"}),dateTime:Ne({formats:o1t,defaultWidth:"full"})},g4=["неділю","понеділок","вівторок","середу","четвер","п’ятницю","суботу"];function l1t(e){var t=g4[e];switch(e){case 0:case 3:case 5:case 6:return"'у минулу "+t+" о' p";case 1:case 2:case 4:return"'у минулий "+t+" о' p"}}function Rae(e){var t=g4[e];return"'у "+t+" о' p"}function u1t(e){var t=g4[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступну "+t+" о' p";case 1:case 2:case 4:return"'у наступний "+t+" о' p"}}var c1t=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?Rae(i):l1t(i)},d1t=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?Rae(i):u1t(i)},f1t={lastWeek:c1t,yesterday:"'вчора о' p",today:"'сьогодні о' p",tomorrow:"'завтра о' p",nextWeek:d1t,other:"P"},p1t=function(t,n,r,a){var i=f1t[t];return typeof i=="function"?i(n,r,a):i},h1t={narrow:["до н.е.","н.е."],abbreviated:["до н. е.","н. е."],wide:["до нашої ери","нашої ери"]},m1t={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},g1t={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},v1t={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]},y1t={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вів","сер","чтв","птн","суб"],wide:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"]},b1t={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранок",afternoon:"день",evening:"вечір",night:"ніч"}},w1t={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"}},S1t=function(t,n){var r=String(n==null?void 0:n.unit),a=Number(t),i;return r==="date"?a===3||a===23?i="-є":i="-е":r==="minute"||r==="second"||r==="hour"?i="-а":i="-й",a+i},E1t={ordinalNumber:S1t,era:oe({values:h1t,defaultWidth:"wide"}),quarter:oe({values:m1t,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:g1t,defaultWidth:"wide",formattingValues:v1t,defaultFormattingWidth:"wide"}),day:oe({values:y1t,defaultWidth:"wide"}),dayPeriod:oe({values:b1t,defaultWidth:"any",formattingValues:w1t,defaultFormattingWidth:"wide"})},T1t=/^(\d+)(-?(е|й|є|а|я))?/i,C1t=/\d+/i,k1t={narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},x1t={any:[/^д/i,/^н/i]},_1t={narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},O1t={any:[/1/i,/2/i,/3/i,/4/i]},R1t={narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},P1t={narrow:[/^с/i,/^л/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^с/i,/^в/i,/^ж/i,/^л/i,/^г/i],any:[/^сі/i,/^лю/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^лип/i,/^се/i,/^в/i,/^ж/i,/^лис/i,/^г/i]},A1t={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},N1t={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},M1t={narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},I1t={any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},D1t={ordinalNumber:Xt({matchPattern:T1t,parsePattern:C1t,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:k1t,defaultMatchWidth:"wide",parsePatterns:x1t,defaultParseWidth:"any"}),quarter:se({matchPatterns:_1t,defaultMatchWidth:"wide",parsePatterns:O1t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:R1t,defaultMatchWidth:"wide",parsePatterns:P1t,defaultParseWidth:"any"}),day:se({matchPatterns:A1t,defaultMatchWidth:"wide",parsePatterns:N1t,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:M1t,defaultMatchWidth:"wide",parsePatterns:I1t,defaultParseWidth:"any"})},$1t={code:"uk",formatDistance:r1t,formatLong:s1t,formatRelative:p1t,localize:E1t,match:D1t,options:{weekStartsOn:1,firstWeekContainsDate:1}};const L1t=Object.freeze(Object.defineProperty({__proto__:null,default:$1t},Symbol.toStringTag,{value:"Module"})),F1t=jt(L1t);var j1t={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},U1t=function(t,n,r){var a,i=j1t[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" nữa":a+" trước":a},B1t={full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},W1t={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},z1t={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},q1t={date:Ne({formats:B1t,defaultWidth:"full"}),time:Ne({formats:W1t,defaultWidth:"full"}),dateTime:Ne({formats:z1t,defaultWidth:"full"})},H1t={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},V1t=function(t,n,r,a){return H1t[t]},G1t={narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},Y1t={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},K1t={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},X1t={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},Q1t={narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},J1t={narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},Z1t={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},eSt={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},tSt=function(t,n){var r=Number(t),a=n==null?void 0:n.unit;if(a==="quarter")switch(r){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if(a==="day")switch(r){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if(a==="week")return r===1?"thứ nhất":"thứ "+r;if(a==="dayOfYear")return r===1?"đầu tiên":"thứ "+r}return String(r)},nSt={ordinalNumber:tSt,era:oe({values:G1t,defaultWidth:"wide"}),quarter:oe({values:Y1t,defaultWidth:"wide",formattingValues:K1t,defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:X1t,defaultWidth:"wide",formattingValues:Q1t,defaultFormattingWidth:"wide"}),day:oe({values:J1t,defaultWidth:"wide"}),dayPeriod:oe({values:Z1t,defaultWidth:"wide",formattingValues:eSt,defaultFormattingWidth:"wide"})},rSt=/^(\d+)/i,aSt=/\d+/i,iSt={narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},oSt={any:[/^t/i,/^s/i]},sSt={narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},lSt={any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},uSt={narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},cSt={narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},dSt={narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},fSt={narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},pSt={narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},hSt={any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},mSt={ordinalNumber:Xt({matchPattern:rSt,parsePattern:aSt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:iSt,defaultMatchWidth:"wide",parsePatterns:oSt,defaultParseWidth:"any"}),quarter:se({matchPatterns:sSt,defaultMatchWidth:"wide",parsePatterns:lSt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:uSt,defaultMatchWidth:"wide",parsePatterns:cSt,defaultParseWidth:"wide"}),day:se({matchPatterns:dSt,defaultMatchWidth:"wide",parsePatterns:fSt,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:pSt,defaultMatchWidth:"wide",parsePatterns:hSt,defaultParseWidth:"any"})},gSt={code:"vi",formatDistance:U1t,formatLong:q1t,formatRelative:V1t,localize:nSt,match:mSt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const vSt=Object.freeze(Object.defineProperty({__proto__:null,default:gSt},Symbol.toStringTag,{value:"Module"})),ySt=jt(vSt);var bSt={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},wSt=function(t,n,r){var a,i=bSt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a},SSt={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},ESt={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},TSt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},CSt={date:Ne({formats:SSt,defaultWidth:"full"}),time:Ne({formats:ESt,defaultWidth:"full"}),dateTime:Ne({formats:TSt,defaultWidth:"full"})};function UG(e,t,n){var r="eeee p";return wi(e,t,n)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}var kSt={lastWeek:UG,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:UG,other:"PP p"},xSt=function(t,n,r,a){var i=kSt[t];return typeof i=="function"?i(n,r,a):i},_St={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},OSt={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},RSt={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},PSt={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},ASt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},NSt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},MSt=function(t,n){var r=Number(t);switch(n==null?void 0:n.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},ISt={ordinalNumber:MSt,era:oe({values:_St,defaultWidth:"wide"}),quarter:oe({values:OSt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:RSt,defaultWidth:"wide"}),day:oe({values:PSt,defaultWidth:"wide"}),dayPeriod:oe({values:ASt,defaultWidth:"wide",formattingValues:NSt,defaultFormattingWidth:"wide"})},DSt=/^(第\s*)?\d+(日|时|分|秒)?/i,$St=/\d+/i,LSt={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},FSt={any:[/^(前)/i,/^(公元)/i]},jSt={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},USt={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},BSt={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},WSt={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},zSt={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},qSt={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},HSt={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},VSt={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},GSt={ordinalNumber:Xt({matchPattern:DSt,parsePattern:$St,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:LSt,defaultMatchWidth:"wide",parsePatterns:FSt,defaultParseWidth:"any"}),quarter:se({matchPatterns:jSt,defaultMatchWidth:"wide",parsePatterns:USt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:BSt,defaultMatchWidth:"wide",parsePatterns:WSt,defaultParseWidth:"any"}),day:se({matchPatterns:zSt,defaultMatchWidth:"wide",parsePatterns:qSt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:HSt,defaultMatchWidth:"any",parsePatterns:VSt,defaultParseWidth:"any"})},YSt={code:"zh-CN",formatDistance:wSt,formatLong:CSt,formatRelative:xSt,localize:ISt,match:GSt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const KSt=Object.freeze(Object.defineProperty({__proto__:null,default:YSt},Symbol.toStringTag,{value:"Module"})),XSt=jt(KSt);var QSt={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},JSt=function(t,n,r){var a,i=QSt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"內":a+"前":a},ZSt={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},eEt={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},tEt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},nEt={date:Ne({formats:ZSt,defaultWidth:"full"}),time:Ne({formats:eEt,defaultWidth:"full"}),dateTime:Ne({formats:tEt,defaultWidth:"full"})},rEt={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},aEt=function(t,n,r,a){return rEt[t]},iEt={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},oEt={narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻鐘","第二刻鐘","第三刻鐘","第四刻鐘"]},sEt={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},lEt={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},uEt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},cEt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},dEt=function(t,n){var r=Number(t);switch(n==null?void 0:n.unit){case"date":return r+"日";case"hour":return r+"時";case"minute":return r+"分";case"second":return r+"秒";default:return"第 "+r}},fEt={ordinalNumber:dEt,era:oe({values:iEt,defaultWidth:"wide"}),quarter:oe({values:oEt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:sEt,defaultWidth:"wide"}),day:oe({values:lEt,defaultWidth:"wide"}),dayPeriod:oe({values:uEt,defaultWidth:"wide",formattingValues:cEt,defaultFormattingWidth:"wide"})},pEt=/^(第\s*)?\d+(日|時|分|秒)?/i,hEt=/\d+/i,mEt={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},gEt={any:[/^(前)/i,/^(公元)/i]},vEt={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},yEt={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},bEt={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},wEt={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},SEt={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},EEt={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},TEt={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},CEt={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},kEt={ordinalNumber:Xt({matchPattern:pEt,parsePattern:hEt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:mEt,defaultMatchWidth:"wide",parsePatterns:gEt,defaultParseWidth:"any"}),quarter:se({matchPatterns:vEt,defaultMatchWidth:"wide",parsePatterns:yEt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:bEt,defaultMatchWidth:"wide",parsePatterns:wEt,defaultParseWidth:"any"}),day:se({matchPatterns:SEt,defaultMatchWidth:"wide",parsePatterns:EEt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:TEt,defaultMatchWidth:"any",parsePatterns:CEt,defaultParseWidth:"any"})},xEt={code:"zh-TW",formatDistance:JSt,formatLong:nEt,formatRelative:aEt,localize:fEt,match:kEt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const _Et=Object.freeze(Object.defineProperty({__proto__:null,default:xEt},Symbol.toStringTag,{value:"Module"})),OEt=jt(_Et);var BG;function REt(){return BG||(BG=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"af",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"arDZ",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"arSA",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"be",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"bg",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"bn",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"ca",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"cs",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"cy",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"da",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"de",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"el",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"enAU",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"enCA",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"enGB",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"enUS",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"eo",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"es",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"et",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"faIR",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"fi",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"fr",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"frCA",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"gl",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"gu",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"he",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"hi",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"hr",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(e,"hu",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(e,"hy",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(e,"is",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"it",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"ja",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"ka",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(e,"kk",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"ko",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(e,"lv",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"ms",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(e,"nb",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(e,"nl",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(e,"nn",{enumerable:!0,get:function(){return ke.default}}),Object.defineProperty(e,"pl",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(e,"pt",{enumerable:!0,get:function(){return xe.default}}),Object.defineProperty(e,"ptBR",{enumerable:!0,get:function(){return Ie.default}}),Object.defineProperty(e,"ro",{enumerable:!0,get:function(){return qe.default}}),Object.defineProperty(e,"ru",{enumerable:!0,get:function(){return tt.default}}),Object.defineProperty(e,"sk",{enumerable:!0,get:function(){return Ge.default}}),Object.defineProperty(e,"sl",{enumerable:!0,get:function(){return at.default}}),Object.defineProperty(e,"sr",{enumerable:!0,get:function(){return Et.default}}),Object.defineProperty(e,"srLatn",{enumerable:!0,get:function(){return kt.default}}),Object.defineProperty(e,"sv",{enumerable:!0,get:function(){return xt.default}}),Object.defineProperty(e,"ta",{enumerable:!0,get:function(){return Rt.default}}),Object.defineProperty(e,"te",{enumerable:!0,get:function(){return cn.default}}),Object.defineProperty(e,"th",{enumerable:!0,get:function(){return qt.default}}),Object.defineProperty(e,"tr",{enumerable:!0,get:function(){return Wt.default}}),Object.defineProperty(e,"ug",{enumerable:!0,get:function(){return Oe.default}}),Object.defineProperty(e,"uk",{enumerable:!0,get:function(){return dt.default}}),Object.defineProperty(e,"vi",{enumerable:!0,get:function(){return ft.default}}),Object.defineProperty(e,"zhCN",{enumerable:!0,get:function(){return ut.default}}),Object.defineProperty(e,"zhTW",{enumerable:!0,get:function(){return Nt.default}});var t=U(W9e),n=U(wHe),r=U(JHe),a=U($7e),i=U(bVe),o=U(ZVe),l=U(NGe),u=U(fYe),d=U(qYe),f=U(EKe),g=U(ZKe),y=U(AXe),h=U(FXe),v=U(GXe),E=U(eQe),T=U(hae),C=U(AQe),k=U(cJe),_=U(jJe),A=U(vZe),P=U(KZe),N=U(Cet),I=U(Aet),L=U(ctt),j=U(Wtt),z=U(Snt),Q=U(ert),le=U(Mrt),re=U(hat),ge=U(Vat),me=U(Cit),W=U(not),G=U($ot),q=U(hst),ce=U(Vst),H=U(_lt),Y=U(iut),ie=U(Uut),J=U(Sct),ee=U(Zct),Z=U(Pdt),ue=U(sft),ke=U(jft),fe=U(Cpt),xe=U(nht),Ie=U(Iht),qe=U(fmt),tt=U(Gmt),Ge=U(Agt),at=U(dvt),Et=U(qvt),kt=U(Tyt),xt=U(nbt),Rt=U(Dbt),cn=U(f0t),qt=U(q0t),Wt=U(Ewt),Oe=U(e1t),dt=U(F1t),ft=U(ySt),ut=U(XSt),Nt=U(OEt);function U(D){return D&&D.__esModule?D:{default:D}}})(b$)),b$}var PEt=REt();const Pae=e=>{const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,errorMessage:l,type:u,focused:d=!1,autoFocus:f,...g}=e,[y,h]=R.useState(!1),v=R.useRef(),E=R.useCallback(()=>{var T;(T=v.current)==null||T.focus()},[v.current]);return w.jsx(ef,{focused:y,onClick:E,...e,children:w.jsx("div",{children:w.jsx(c9e.DateRangePicker,{locale:PEt.enUS,date:e.value,months:2,showSelectionPreview:!0,direction:"horizontal",moveRangeOnFirstSelection:!1,ranges:[{...e.value||{},key:"selection"}],onChange:T=>{var C;(C=e.onChange)==null||C.call(e,T.selection)}})})})},AEt=e=>{var a,i;const t=o=>o?new Date(o.getFullYear(),o.getMonth(),o.getDate()):void 0,n={startDate:t(new Date((a=e.value)==null?void 0:a.startDate)),endDate:t(new Date((i=e.value)==null?void 0:i.endDate))},r=o=>{e.onChange({startDate:t(o.startDate),endDate:t(o.endDate)})};return w.jsx(Pae,{...e,value:n,onChange:r})};//! moment.js + }`},dc=({children:e})=>w.jsx("div",{style:{marginBottom:"70px"},children:e});function n8e(){const{openDrawer:e,openModal:t}=bF(),{confirmDrawer:n,confirmModal:r}=LJ(),a=()=>e(()=>w.jsx("div",{children:"Hi, this is opened in a drawer"})),i=()=>{e(()=>w.jsx("div",{children:"Hi, this is opened in a drawer, with a larger area and from left"}),{direction:"left",size:"40%"})},o=()=>{t(({resolve:E})=>{const[T,C]=R.useState("");return w.jsxs("form",{onSubmit:k=>k.preventDefault(),children:[w.jsxs("span",{children:["If you enter ",w.jsx("strong",{children:"ali"})," in the box, you'll see the example1 opening"]}),w.jsx(In,{autoFocus:!0,value:T,onChange:k=>C(k)}),w.jsx(Ws,{onClick:()=>E(T),children:"Okay"})]})}).promise.then(({data:E})=>{if(E==="ali")return a();alert(E)})},l=()=>{a(),a(),i(),i()},u=()=>{t(({close:E})=>(R.useEffect(()=>{setTimeout(()=>{E()},3e3)},[]),w.jsx("span",{children:"I will disappear :)))))"})))},d=()=>{const{close:E,id:T}=t(()=>w.jsx("span",{children:"I will disappear by outside :)))))"}));setTimeout(()=>{alert(T),E()},2e3)},f=()=>{t(({setOnBeforeClose:E})=>{const[T,C]=R.useState(!1);return R.useEffect(()=>{E==null||E(()=>T?window.confirm("You have unsaved changes. Close anyway?"):!0)},[T]),w.jsxs("span",{children:["If you write anything here, it will be dirty and asks for quite.",w.jsx("input",{onChange:()=>C(!0)}),T?"Will ask":"Not dirty yet"]})})},g=()=>{n({title:"Confirm",description:"Are you to confirm? You still can cancel",confirmLabel:"Confirm",cancelLabel:"Cancel"}).promise.then(E=>{console.log(10,E)})},y=()=>{r({title:"Confirm",description:"Are you to confirm? You still can cancel",confirmLabel:"Confirm",cancelLabel:"Cancel"}).promise.then(E=>{console.log(10,E)})},h=R.useRef(0),v=()=>{const{updateData:E,promise:T}=e(({data:k})=>w.jsxs("span",{children:["Params: ",JSON.stringify(k)]})),C=setInterval(()=>{E({c:++h.current})},100);T.finally(()=>{clearInterval(C)})};return w.jsxs("div",{children:[w.jsx("h1",{children:"Demo Modals"}),w.jsx("p",{children:"Modals, Drawers are a major solved issue in the Fireback react.js. In here we make some examples. The core system is called `overlay`, can be used to show portals such as modal, drawer, alerts..."}),w.jsx("hr",{}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Opening a drawer"}),w.jsx("p",{children:"Every component can be shown as modal, or in a drawer in Fireback."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>a(),children:"Open a text in drawer"}),w.jsx(ra,{codeString:cc.example1})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Opening a drawer, from left"}),w.jsx("p",{children:"Shows a drawer from left, also larger"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>i(),children:"Open a text in drawer"}),w.jsx(ra,{codeString:cc.example2})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Opening a modal, and get result"}),w.jsx("p",{children:"You can open a modal or drawer, and make some operation in it, and send back the result as a promise."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>o(),children:"Open a text in drawer"}),w.jsx(ra,{codeString:cc.example3})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Opening multiple"}),w.jsx("p",{children:"You can open multiple modals, or drawers, doesn't matter."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>l(),children:"Open 2 modal, and open 2 drawer"}),w.jsx(ra,{codeString:cc.example4})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Auto disappearing"}),w.jsx("p",{children:"A modal which disappears after 5 seconds"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>u(),children:"Run"}),w.jsx(ra,{codeString:cc.example5})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Control from outside"}),w.jsx("p",{children:"Sometimes you want to open a drawer, and then from outside component close it."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>d(),children:"Open but close from outside"}),w.jsx(ra,{codeString:cc.example6})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Prevent close"}),w.jsx("p",{children:"When a drawer or modal is open, you can prevent the close."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>f(),children:"Open but ask before close"}),w.jsx(ra,{codeString:cc.example7})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Confirm Dialog (drawer)"}),w.jsx("p",{children:"There is a set of ready to use dialogs, such as confirm"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>g(),children:"Open the confirm"}),w.jsx(ra,{codeString:cc.example8})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Confirm Dialog (modal)"}),w.jsx("p",{children:"There is a set of ready to use dialogs, such as confirm"}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>y(),children:"Open the confirm"}),w.jsx(ra,{codeString:cc.example9})]}),w.jsxs(dc,{children:[w.jsx("h2",{children:"Update params from outside"}),w.jsx("p",{children:"In rare cases, you might want to update the params from the outside."}),w.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>v(),children:"Open & Update name"}),w.jsx(ra,{codeString:cc.example10})]}),w.jsx("br",{}),w.jsx("br",{}),w.jsx("br",{})]})}var R$={},U1={},B1={},Jg={};function yt(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function he(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Re(e){he(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||ao(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Oc(e,t){he(2,arguments);var n=Re(e),r=yt(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function tT(e,t){he(2,arguments);var n=Re(e),r=yt(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var a=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),a),n)}function Pb(e,t){if(he(2,arguments),!t||ao(t)!=="object")return new Date(NaN);var n=t.years?yt(t.years):0,r=t.months?yt(t.months):0,a=t.weeks?yt(t.weeks):0,i=t.days?yt(t.days):0,o=t.hours?yt(t.hours):0,l=t.minutes?yt(t.minutes):0,u=t.seconds?yt(t.seconds):0,d=Re(e),f=r||n?tT(d,r+n*12):d,g=i||a?Oc(f,i+a*7):f,y=l+o*60,h=u+y*60,v=h*1e3,E=new Date(g.getTime()+v);return E}function e0(e){he(1,arguments);var t=Re(e),n=t.getDay();return n===0||n===6}function t4(e){return he(1,arguments),Re(e).getDay()===0}function xre(e){return he(1,arguments),Re(e).getDay()===6}function _re(e,t){he(2,arguments);var n=Re(e),r=e0(n),a=yt(t);if(isNaN(a))return new Date(NaN);var i=n.getHours(),o=a<0?-1:1,l=yt(a/5);n.setDate(n.getDate()+l*7);for(var u=Math.abs(a%5);u>0;)n.setDate(n.getDate()+o),e0(n)||(u-=1);return r&&e0(n)&&a!==0&&(xre(n)&&n.setDate(n.getDate()+(o<0?2:-1)),t4(n)&&n.setDate(n.getDate()+(o<0?1:-2))),n.setHours(i),n}function nT(e,t){he(2,arguments);var n=Re(e).getTime(),r=yt(t);return new Date(n+r)}var r8e=36e5;function n4(e,t){he(2,arguments);var n=yt(t);return nT(e,n*r8e)}var Ore={};function Xa(){return Ore}function a8e(e){Ore=e}function Ml(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Re(e),h=y.getDay(),v=(h=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function ch(e){he(1,arguments);var t=Lv(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=Kd(n);return r}function Fo(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function h0(e){he(1,arguments);var t=Re(e);return t.setHours(0,0,0,0),t}var i8e=864e5;function xc(e,t){he(2,arguments);var n=h0(e),r=h0(t),a=n.getTime()-Fo(n),i=r.getTime()-Fo(r);return Math.round((a-i)/i8e)}function Rre(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=xc(n,ch(n)),i=new Date(0);return i.setFullYear(r,0,4),i.setHours(0,0,0,0),n=ch(i),n.setDate(n.getDate()+a),n}function Pre(e,t){he(2,arguments);var n=yt(t);return Rre(e,Lv(e)+n)}var o8e=6e4;function r4(e,t){he(2,arguments);var n=yt(t);return nT(e,n*o8e)}function a4(e,t){he(2,arguments);var n=yt(t),r=n*3;return tT(e,r)}function Are(e,t){he(2,arguments);var n=yt(t);return nT(e,n*1e3)}function q_(e,t){he(2,arguments);var n=yt(t),r=n*7;return Oc(e,r)}function Nre(e,t){he(2,arguments);var n=yt(t);return tT(e,n*12)}function s8e(e,t,n){he(2,arguments);var r=Re(e==null?void 0:e.start).getTime(),a=Re(e==null?void 0:e.end).getTime(),i=Re(t==null?void 0:t.start).getTime(),o=Re(t==null?void 0:t.end).getTime();if(!(r<=a&&i<=o))throw new RangeError("Invalid interval");return n!=null&&n.inclusive?r<=o&&i<=a:ra||isNaN(a.getDate()))&&(n=a)}),n||new Date(NaN)}function l8e(e,t){var n=t.start,r=t.end;return he(2,arguments),Ire([Mre([e,n]),r])}function u8e(e,t){he(2,arguments);var n=Re(e);if(isNaN(Number(n)))return NaN;var r=n.getTime(),a;t==null?a=[]:typeof t.forEach=="function"?a=t:a=Array.prototype.slice.call(t);var i,o;return a.forEach(function(l,u){var d=Re(l);if(isNaN(Number(d))){i=NaN,o=NaN;return}var f=Math.abs(r-d.getTime());(i==null||f0?1:a}function d8e(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=n.getTime()-r.getTime();return a>0?-1:a<0?1:a}var i4=7,Dre=365.2425,$re=Math.pow(10,8)*24*60*60*1e3,Xv=6e4,Qv=36e5,H_=1e3,f8e=-$re,o4=60,s4=3,l4=12,u4=4,rT=3600,V_=60,G_=rT*24,Lre=G_*7,c4=G_*Dre,d4=c4/12,Fre=d4*3;function p8e(e){he(1,arguments);var t=e/i4;return Math.floor(t)}function aT(e,t){he(2,arguments);var n=h0(e),r=h0(t);return n.getTime()===r.getTime()}function jre(e){return he(1,arguments),e instanceof Date||ao(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Xd(e){if(he(1,arguments),!jre(e)&&typeof e!="number")return!1;var t=Re(e);return!isNaN(Number(t))}function h8e(e,t){he(2,arguments);var n=Re(e),r=Re(t);if(!Xd(n)||!Xd(r))return NaN;var a=xc(n,r),i=a<0?-1:1,o=yt(a/7),l=o*5;for(r=Oc(r,o*7);!aT(n,r);)l+=e0(r)?0:i,r=Oc(r,i);return l===0?0:l}function Ure(e,t){return he(2,arguments),Lv(e)-Lv(t)}var m8e=6048e5;function g8e(e,t){he(2,arguments);var n=Kd(e),r=Kd(t),a=n.getTime()-Fo(n),i=r.getTime()-Fo(r);return Math.round((a-i)/m8e)}function zx(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return a*12+i}function M3(e){he(1,arguments);var t=Re(e),n=Math.floor(t.getMonth()/3)+1;return n}function Qk(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=n.getFullYear()-r.getFullYear(),i=M3(n)-M3(r);return a*4+i}var v8e=6048e5;function qx(e,t,n){he(2,arguments);var r=Ml(e,n),a=Ml(t,n),i=r.getTime()-Fo(r),o=a.getTime()-Fo(a);return Math.round((i-o)/v8e)}function MS(e,t){he(2,arguments);var n=Re(e),r=Re(t);return n.getFullYear()-r.getFullYear()}function uG(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function f4(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=uG(n,r),i=Math.abs(xc(n,r));n.setDate(n.getDate()-a*i);var o=+(uG(n,r)===-a),l=a*(i-o);return l===0?0:l}function Y_(e,t){return he(2,arguments),Re(e).getTime()-Re(t).getTime()}var cG={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},y8e="trunc";function A0(e){return e?cG[e]:cG[y8e]}function Hx(e,t,n){he(2,arguments);var r=Y_(e,t)/Qv;return A0(n==null?void 0:n.roundingMethod)(r)}function Bre(e,t){he(2,arguments);var n=yt(t);return Pre(e,-n)}function b8e(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=Cu(n,r),i=Math.abs(Ure(n,r));n=Bre(n,a*i);var o=+(Cu(n,r)===-a),l=a*(i-o);return l===0?0:l}function Vx(e,t,n){he(2,arguments);var r=Y_(e,t)/Xv;return A0(n==null?void 0:n.roundingMethod)(r)}function p4(e){he(1,arguments);var t=Re(e);return t.setHours(23,59,59,999),t}function h4(e){he(1,arguments);var t=Re(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Wre(e){he(1,arguments);var t=Re(e);return p4(t).getTime()===h4(t).getTime()}function K_(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=Cu(n,r),i=Math.abs(zx(n,r)),o;if(i<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-a*i);var l=Cu(n,r)===-a;Wre(Re(e))&&i===1&&Cu(e,r)===1&&(l=!1),o=a*(i-Number(l))}return o===0?0:o}function w8e(e,t,n){he(2,arguments);var r=K_(e,t)/3;return A0(n==null?void 0:n.roundingMethod)(r)}function t0(e,t,n){he(2,arguments);var r=Y_(e,t)/1e3;return A0(n==null?void 0:n.roundingMethod)(r)}function S8e(e,t,n){he(2,arguments);var r=f4(e,t)/7;return A0(n==null?void 0:n.roundingMethod)(r)}function zre(e,t){he(2,arguments);var n=Re(e),r=Re(t),a=Cu(n,r),i=Math.abs(MS(n,r));n.setFullYear(1584),r.setFullYear(1584);var o=Cu(n,r)===-a,l=a*(i-Number(o));return l===0?0:l}function qre(e,t){var n;he(1,arguments);var r=e||{},a=Re(r.start),i=Re(r.end),o=i.getTime();if(!(a.getTime()<=o))throw new RangeError("Invalid interval");var l=[],u=a;u.setHours(0,0,0,0);var d=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(d<1||isNaN(d))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=o;)l.push(Re(u)),u.setDate(u.getDate()+d),u.setHours(0,0,0,0);return l}function E8e(e,t){var n;he(1,arguments);var r=e||{},a=Re(r.start),i=Re(r.end),o=a.getTime(),l=i.getTime();if(!(o<=l))throw new RangeError("Invalid interval");var u=[],d=a;d.setMinutes(0,0,0);var f=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(f<1||isNaN(f))throw new RangeError("`options.step` must be a number greater than 1");for(;d.getTime()<=l;)u.push(Re(d)),d=n4(d,f);return u}function Gx(e){he(1,arguments);var t=Re(e);return t.setSeconds(0,0),t}function T8e(e,t){var n;he(1,arguments);var r=Gx(Re(e.start)),a=Re(e.end),i=r.getTime(),o=a.getTime();if(i>=o)throw new RangeError("Invalid interval");var l=[],u=r,d=Number((n=t==null?void 0:t.step)!==null&&n!==void 0?n:1);if(d<1||isNaN(d))throw new RangeError("`options.step` must be a number equal to or greater than 1");for(;u.getTime()<=o;)l.push(Re(u)),u=r4(u,d);return l}function C8e(e){he(1,arguments);var t=e||{},n=Re(t.start),r=Re(t.end),a=r.getTime(),i=[];if(!(n.getTime()<=a))throw new RangeError("Invalid interval");var o=n;for(o.setHours(0,0,0,0),o.setDate(1);o.getTime()<=a;)i.push(Re(o)),o.setMonth(o.getMonth()+1);return i}function CE(e){he(1,arguments);var t=Re(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function k8e(e){he(1,arguments);var t=e||{},n=Re(t.start),r=Re(t.end),a=r.getTime();if(!(n.getTime()<=a))throw new RangeError("Invalid interval");var i=CE(n),o=CE(r);a=o.getTime();for(var l=[],u=i;u.getTime()<=a;)l.push(Re(u)),u=a4(u,1);return l}function x8e(e,t){he(1,arguments);var n=e||{},r=Re(n.start),a=Re(n.end),i=a.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var o=Ml(r,t),l=Ml(a,t);o.setHours(15),l.setHours(15),i=l.getTime();for(var u=[],d=o;d.getTime()<=i;)d.setHours(0),u.push(Re(d)),d=q_(d,1),d.setHours(15);return u}function m4(e){he(1,arguments);for(var t=qre(e),n=[],r=0;r=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Re(e),h=y.getDay(),v=(h=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function W8e(e){he(1,arguments);var t=Gre(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=g0(n);return r}var z8e=6048e5;function Yre(e){he(1,arguments);var t=Re(e),n=g0(t).getTime()-W8e(t).getTime();return Math.round(n/z8e)+1}function Qd(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Re(e),h=y.getUTCDay(),v=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(g+1,0,h),v.setUTCHours(0,0,0,0);var E=Qd(v,t),T=new Date(0);T.setUTCFullYear(g,0,h),T.setUTCHours(0,0,0,0);var C=Qd(T,t);return f.getTime()>=E.getTime()?g+1:f.getTime()>=C.getTime()?g:g-1}function q8e(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),y=v4(e,t),h=new Date(0);h.setUTCFullYear(y,0,g),h.setUTCHours(0,0,0,0);var v=Qd(h,t);return v}var H8e=6048e5;function Kre(e,t){he(1,arguments);var n=Re(e),r=Qd(n,t).getTime()-q8e(n,t).getTime();return Math.round(r/H8e)+1}function Zt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return Zt(n==="yy"?a%100:a,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Zt(r+1,2)},d:function(t,n){return Zt(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Zt(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Zt(t.getUTCHours(),n.length)},m:function(t,n){return Zt(t.getUTCMinutes(),n.length)},s:function(t,n){return Zt(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,a=t.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Zt(i,n.length)}},Sb={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},V8e={G:function(t,n,r){var a=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var a=t.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return xd.y(t,n)},Y:function(t,n,r,a){var i=v4(t,a),o=i>0?i:1-i;if(n==="YY"){var l=o%100;return Zt(l,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):Zt(o,n.length)},R:function(t,n){var r=Gre(t);return Zt(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Zt(r,n.length)},Q:function(t,n,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(a);case"QQ":return Zt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,n,r){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(a);case"qq":return Zt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,n,r){var a=t.getUTCMonth();switch(n){case"M":case"MM":return xd.M(t,n);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(t,n,r){var a=t.getUTCMonth();switch(n){case"L":return String(a+1);case"LL":return Zt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(t,n,r,a){var i=Kre(t,a);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):Zt(i,n.length)},I:function(t,n,r){var a=Yre(t);return n==="Io"?r.ordinalNumber(a,{unit:"week"}):Zt(a,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):xd.d(t,n)},D:function(t,n,r){var a=B8e(t);return n==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Zt(a,n.length)},E:function(t,n,r){var a=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(t,n,r,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return Zt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,a){var i=t.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return Zt(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var a=t.getUTCDay(),i=a===0?7:a;switch(n){case"i":return String(i);case"ii":return Zt(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(t,n,r){var a=t.getUTCHours(),i=a/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var a=t.getUTCHours(),i;switch(a===12?i=Sb.noon:a===0?i=Sb.midnight:i=a/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var a=t.getUTCHours(),i;switch(a>=17?i=Sb.evening:a>=12?i=Sb.afternoon:a>=4?i=Sb.morning:i=Sb.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return xd.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):xd.H(t,n)},K:function(t,n,r){var a=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Zt(a,n.length)},k:function(t,n,r){var a=t.getUTCHours();return a===0&&(a=24),n==="ko"?r.ordinalNumber(a,{unit:"hour"}):Zt(a,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):xd.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):xd.s(t,n)},S:function(t,n){return xd.S(t,n)},X:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return fG(o);case"XXXX":case"XX":return sv(o);case"XXXXX":case"XXX":default:return sv(o,":")}},x:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"x":return fG(o);case"xxxx":case"xx":return sv(o);case"xxxxx":case"xxx":default:return sv(o,":")}},O:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+dG(o,":");case"OOOO":default:return"GMT"+sv(o,":")}},z:function(t,n,r,a){var i=a._originalDate||t,o=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+dG(o,":");case"zzzz":default:return"GMT"+sv(o,":")}},t:function(t,n,r,a){var i=a._originalDate||t,o=Math.floor(i.getTime()/1e3);return Zt(o,n.length)},T:function(t,n,r,a){var i=a._originalDate||t,o=i.getTime();return Zt(o,n.length)}};function dG(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),i=r%60;if(i===0)return n+String(a);var o=t;return n+String(a)+o+Zt(i,2)}function fG(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Zt(Math.abs(e)/60,2)}return sv(e,t)}function sv(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e),i=Zt(Math.floor(a/60),2),o=Zt(a%60,2);return r+i+n+o}var pG=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Xre=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},G8e=function(t,n){var r=t.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return pG(t,n);var o;switch(a){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",pG(a,n)).replace("{{time}}",Xre(i,n))},I3={p:Xre,P:G8e},Y8e=["D","DD"],K8e=["YY","YYYY"];function Qre(e){return Y8e.indexOf(e)!==-1}function Jre(e){return K8e.indexOf(e)!==-1}function Yx(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var X8e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},y4=function(t,n,r){var a,i=X8e[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};function Ne(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Q8e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},J8e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Z8e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},e5e={date:Ne({formats:Q8e,defaultWidth:"full"}),time:Ne({formats:J8e,defaultWidth:"full"}),dateTime:Ne({formats:Z8e,defaultWidth:"full"})},t5e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Q_=function(t,n,r,a){return t5e[t]};function oe(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",a;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var l=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[u]||e.values[l]}var d=e.argumentCallback?e.argumentCallback(t):t;return a[d]}}var n5e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},r5e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},a5e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},i5e={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o5e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},s5e={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},l5e=function(t,n){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},J_={ordinalNumber:l5e,era:oe({values:n5e,defaultWidth:"wide"}),quarter:oe({values:r5e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:a5e,defaultWidth:"wide"}),day:oe({values:i5e,defaultWidth:"wide"}),dayPeriod:oe({values:o5e,defaultWidth:"wide",formattingValues:s5e,defaultFormattingWidth:"wide"})};function se(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?c5e(l,function(g){return g.test(o)}):u5e(l,function(g){return g.test(o)}),d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;var f=t.slice(o.length);return{value:d,rest:f}}}function u5e(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function c5e(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var l=t.slice(a.length);return{value:o,rest:l}}}var d5e=/^(\d+)(th|st|nd|rd)?/i,f5e=/\d+/i,p5e={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},h5e={any:[/^b/i,/^(a|c)/i]},m5e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},g5e={any:[/1/i,/2/i,/3/i,/4/i]},v5e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},y5e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},b5e={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},w5e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},S5e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},E5e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Z_={ordinalNumber:Xt({matchPattern:d5e,parsePattern:f5e,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:p5e,defaultMatchWidth:"wide",parsePatterns:h5e,defaultParseWidth:"any"}),quarter:se({matchPatterns:m5e,defaultMatchWidth:"wide",parsePatterns:g5e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:v5e,defaultMatchWidth:"wide",parsePatterns:y5e,defaultParseWidth:"any"}),day:se({matchPatterns:b5e,defaultMatchWidth:"wide",parsePatterns:w5e,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:S5e,defaultMatchWidth:"any",parsePatterns:E5e,defaultParseWidth:"any"})},Jv={code:"en-US",formatDistance:y4,formatLong:e5e,formatRelative:Q_,localize:J_,match:Z_,options:{weekStartsOn:0,firstWeekContainsDate:1}};const T5e=Object.freeze(Object.defineProperty({__proto__:null,default:Jv},Symbol.toStringTag,{value:"Module"}));var C5e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,k5e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,x5e=/^'([^]*?)'?$/,_5e=/''/g,O5e=/[a-zA-Z]/;function Zre(e,t,n){var r,a,i,o,l,u,d,f,g,y,h,v,E,T,C,k,_,A;he(2,arguments);var P=String(t),N=Xa(),I=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:N.locale)!==null&&r!==void 0?r:Jv,L=yt((i=(o=(l=(u=n==null?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:n==null||(d=n.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&l!==void 0?l:N.firstWeekContainsDate)!==null&&o!==void 0?o:(g=N.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(L>=1&&L<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var j=yt((h=(v=(E=(T=n==null?void 0:n.weekStartsOn)!==null&&T!==void 0?T:n==null||(C=n.locale)===null||C===void 0||(k=C.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&E!==void 0?E:N.weekStartsOn)!==null&&v!==void 0?v:(_=N.locale)===null||_===void 0||(A=_.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&h!==void 0?h:0);if(!(j>=0&&j<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var z=Re(e);if(!Xd(z))throw new RangeError("Invalid time value");var Q=Fo(z),le=m0(z,Q),re={firstWeekContainsDate:L,weekStartsOn:j,locale:I,_originalDate:z},ge=P.match(k5e).map(function(me){var W=me[0];if(W==="p"||W==="P"){var G=I3[W];return G(me,I.formatLong)}return me}).join("").match(C5e).map(function(me){if(me==="''")return"'";var W=me[0];if(W==="'")return R5e(me);var G=V8e[W];if(G)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Jre(me)&&Yx(me,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Qre(me)&&Yx(me,t,String(e)),G(le,me,I.localize,re);if(W.match(O5e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return me}).join("");return ge}function R5e(e){var t=e.match(x5e);return t?t[1].replace(_5e,"'"):e}function iT(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function eae(e){return iT({},e)}var hG=1440,P5e=2520,P$=43200,A5e=86400;function tae(e,t,n){var r,a;he(2,arguments);var i=Xa(),o=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:i.locale)!==null&&r!==void 0?r:Jv;if(!o.formatDistance)throw new RangeError("locale must contain formatDistance property");var l=Cu(e,t);if(isNaN(l))throw new RangeError("Invalid time value");var u=iT(eae(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:l}),d,f;l>0?(d=Re(t),f=Re(e)):(d=Re(e),f=Re(t));var g=t0(f,d),y=(Fo(f)-Fo(d))/1e3,h=Math.round((g-y)/60),v;if(h<2)return n!=null&&n.includeSeconds?g<5?o.formatDistance("lessThanXSeconds",5,u):g<10?o.formatDistance("lessThanXSeconds",10,u):g<20?o.formatDistance("lessThanXSeconds",20,u):g<40?o.formatDistance("halfAMinute",0,u):g<60?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",1,u):h===0?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",h,u);if(h<45)return o.formatDistance("xMinutes",h,u);if(h<90)return o.formatDistance("aboutXHours",1,u);if(h0?(f=Re(t),g=Re(e)):(f=Re(e),g=Re(t));var y=String((i=n==null?void 0:n.roundingMethod)!==null&&i!==void 0?i:"round"),h;if(y==="floor")h=Math.floor;else if(y==="ceil")h=Math.ceil;else if(y==="round")h=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var v=g.getTime()-f.getTime(),E=v/mG,T=Fo(g)-Fo(f),C=(v-T)/mG,k=n==null?void 0:n.unit,_;if(k?_=String(k):E<1?_="second":E<60?_="minute":E=0&&a<=3))throw new RangeError("fractionDigits must be between 0 and 3 inclusively");var i=Zt(r.getDate(),2),o=Zt(r.getMonth()+1,2),l=r.getFullYear(),u=Zt(r.getHours(),2),d=Zt(r.getMinutes(),2),f=Zt(r.getSeconds(),2),g="";if(a>0){var y=r.getMilliseconds(),h=Math.floor(y*Math.pow(10,a-3));g="."+Zt(h,a)}var v="",E=r.getTimezoneOffset();if(E!==0){var T=Math.abs(E),C=Zt(yt(T/60),2),k=Zt(T%60,2),_=E<0?"+":"-";v="".concat(_).concat(C,":").concat(k)}else v="Z";return"".concat(l,"-").concat(o,"-").concat(i,"T").concat(u,":").concat(d,":").concat(f).concat(g).concat(v)}var U5e=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],B5e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function W5e(e){if(arguments.length<1)throw new TypeError("1 arguments required, but only ".concat(arguments.length," present"));var t=Re(e);if(!Xd(t))throw new RangeError("Invalid time value");var n=U5e[t.getUTCDay()],r=Zt(t.getUTCDate(),2),a=B5e[t.getUTCMonth()],i=t.getUTCFullYear(),o=Zt(t.getUTCHours(),2),l=Zt(t.getUTCMinutes(),2),u=Zt(t.getUTCSeconds(),2);return"".concat(n,", ").concat(r," ").concat(a," ").concat(i," ").concat(o,":").concat(l,":").concat(u," GMT")}function z5e(e,t,n){var r,a,i,o,l,u,d,f,g,y;he(2,arguments);var h=Re(e),v=Re(t),E=Xa(),T=(r=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:E.locale)!==null&&r!==void 0?r:Jv,C=yt((i=(o=(l=(u=n==null?void 0:n.weekStartsOn)!==null&&u!==void 0?u:n==null||(d=n.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&l!==void 0?l:E.weekStartsOn)!==null&&o!==void 0?o:(g=E.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&i!==void 0?i:0);if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");if(!T.formatRelative)throw new RangeError("locale must contain formatRelative property");var k=xc(h,v);if(isNaN(k))throw new RangeError("Invalid time value");var _;k<-6?_="other":k<-1?_="lastWeek":k<0?_="yesterday":k<1?_="today":k<2?_="tomorrow":k<7?_="nextWeek":_="other";var A=m0(h,Fo(h)),P=m0(v,Fo(v)),N=T.formatRelative(_,A,P,{locale:T,weekStartsOn:C});return Zre(h,N,{locale:T,weekStartsOn:C})}function q5e(e){he(1,arguments);var t=yt(e);return Re(t*1e3)}function rae(e){he(1,arguments);var t=Re(e),n=t.getDate();return n}function eO(e){he(1,arguments);var t=Re(e),n=t.getDay();return n}function H5e(e){he(1,arguments);var t=Re(e),n=xc(t,g4(t)),r=n+1;return r}function aae(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=t.getMonth(),a=new Date(0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}function iae(e){he(1,arguments);var t=Re(e),n=t.getFullYear();return n%400===0||n%4===0&&n%100!==0}function V5e(e){he(1,arguments);var t=Re(e);return String(new Date(t))==="Invalid Date"?NaN:iae(t)?366:365}function G5e(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=Math.floor(n/10)*10;return r}function Y5e(){return iT({},Xa())}function K5e(e){he(1,arguments);var t=Re(e),n=t.getHours();return n}function oae(e){he(1,arguments);var t=Re(e),n=t.getDay();return n===0&&(n=7),n}var X5e=6048e5;function sae(e){he(1,arguments);var t=Re(e),n=Kd(t).getTime()-ch(t).getTime();return Math.round(n/X5e)+1}var Q5e=6048e5;function J5e(e){he(1,arguments);var t=ch(e),n=ch(q_(t,60)),r=n.valueOf()-t.valueOf();return Math.round(r/Q5e)}function Z5e(e){he(1,arguments);var t=Re(e),n=t.getMilliseconds();return n}function eWe(e){he(1,arguments);var t=Re(e),n=t.getMinutes();return n}function tWe(e){he(1,arguments);var t=Re(e),n=t.getMonth();return n}var nWe=1440*60*1e3;function rWe(e,t){he(2,arguments);var n=e||{},r=t||{},a=Re(n.start).getTime(),i=Re(n.end).getTime(),o=Re(r.start).getTime(),l=Re(r.end).getTime();if(!(a<=i&&o<=l))throw new RangeError("Invalid interval");var u=ai?i:l,g=f-d;return Math.ceil(g/nWe)}function aWe(e){he(1,arguments);var t=Re(e),n=t.getSeconds();return n}function lae(e){he(1,arguments);var t=Re(e),n=t.getTime();return n}function iWe(e){return he(1,arguments),Math.floor(lae(e)/1e3)}function uae(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Re(e),g=f.getFullYear(),y=Xa(),h=yt((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:y.firstWeekContainsDate)!==null&&r!==void 0?r:(u=y.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setFullYear(g+1,0,h),v.setHours(0,0,0,0);var E=Ml(v,t),T=new Date(0);T.setFullYear(g,0,h),T.setHours(0,0,0,0);var C=Ml(T,t);return f.getTime()>=E.getTime()?g+1:f.getTime()>=C.getTime()?g:g-1}function Xx(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&n!==void 0?n:1),y=uae(e,t),h=new Date(0);h.setFullYear(y,0,g),h.setHours(0,0,0,0);var v=Ml(h,t);return v}var oWe=6048e5;function cae(e,t){he(1,arguments);var n=Re(e),r=Ml(n,t).getTime()-Xx(n,t).getTime();return Math.round(r/oWe)+1}function sWe(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=rae(e);if(isNaN(y))return NaN;var h=eO(X_(e)),v=g-h;v<=0&&(v+=7);var E=y-v;return Math.ceil(E/7)+1}function dae(e){he(1,arguments);var t=Re(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function lWe(e,t){return he(1,arguments),qx(dae(e),X_(e),t)+1}function uWe(e){return he(1,arguments),Re(e).getFullYear()}function cWe(e){return he(1,arguments),Math.floor(e*Qv)}function dWe(e){return he(1,arguments),Math.floor(e*o4)}function fWe(e){return he(1,arguments),Math.floor(e*rT)}function pWe(e){he(1,arguments);var t=Re(e.start),n=Re(e.end);if(isNaN(t.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(n.getTime()))throw new RangeError("End Date is invalid");var r={};r.years=Math.abs(zre(n,t));var a=Cu(n,t),i=Pb(t,{years:a*r.years});r.months=Math.abs(K_(n,i));var o=Pb(i,{months:a*r.months});r.days=Math.abs(f4(n,o));var l=Pb(o,{days:a*r.days});r.hours=Math.abs(Hx(n,l));var u=Pb(l,{hours:a*r.hours});r.minutes=Math.abs(Vx(n,u));var d=Pb(u,{minutes:a*r.minutes});return r.seconds=Math.abs(t0(n,d)),r}function hWe(e,t,n){var r;he(1,arguments);var a;return mWe(t)?a=t:n=t,new Intl.DateTimeFormat((r=n)===null||r===void 0?void 0:r.locale,a).format(e)}function mWe(e){return e!==void 0&&!("locale"in e)}function gWe(e,t,n){he(2,arguments);var r=0,a,i=Re(e),o=Re(t);if(n!=null&&n.unit)a=n==null?void 0:n.unit,a==="second"?r=t0(i,o):a==="minute"?r=Vx(i,o):a==="hour"?r=Hx(i,o):a==="day"?r=xc(i,o):a==="week"?r=qx(i,o):a==="month"?r=zx(i,o):a==="quarter"?r=Qk(i,o):a==="year"&&(r=MS(i,o));else{var l=t0(i,o);Math.abs(l)r.getTime()}function yWe(e,t){he(2,arguments);var n=Re(e),r=Re(t);return n.getTime()Date.now()}function yG(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=BF(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,l;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return i=d.done,d},e:function(d){o=!0,l=d},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw l}}}}var CWe=10,fae=(function(){function e(){Xn(this,e),wt(this,"priority",void 0),wt(this,"subPriority",0)}return Qn(e,[{key:"validate",value:function(n,r){return!0}}]),e})(),kWe=(function(e){tr(n,e);var t=nr(n);function n(r,a,i,o,l){var u;return Xn(this,n),u=t.call(this),u.value=r,u.validateValue=a,u.setValue=i,u.priority=o,l&&(u.subPriority=l),u}return Qn(n,[{key:"validate",value:function(a,i){return this.validateValue(a,this.value,i)}},{key:"set",value:function(a,i,o){return this.setValue(a,i,this.value,o)}}]),n})(fae),xWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0,r=n?t:1-t,a;if(r<=50)a=e||100;else{var i=r+50,o=Math.floor(i/100)*100,l=e>=i%100;a=e+o-(l?100:0)}return n?a:1-a}function mae(e){return e%400===0||e%4===0&&e%100!==0}var OWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var l=a.getUTCFullYear();if(o.isTwoDigitYear){var u=hae(o.year,l);return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}var d=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(d,0,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),RWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,l){var u=v4(a,l);if(o.isTwoDigitYear){var d=hae(o.year,u);return a.setUTCFullYear(d,0,l.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Qd(a,l)}var f=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(f,0,l.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Qd(a,l)}}]),n})(Sr),PWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),MWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),IWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),DWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),n})(Sr);function $We(e,t,n){he(2,arguments);var r=Re(e),a=yt(t),i=Kre(r,n)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var LWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,l){return Qd($We(a,o,l),l)}}]),n})(Sr);function FWe(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=Yre(n)-r;return n.setUTCDate(n.getUTCDate()-a*7),n}var jWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return g0(FWe(a,o))}}]),n})(Sr),UWe=[31,28,31,30,31,30,31,31,30,31,30,31],BWe=[31,29,31,30,31,30,31,31,30,31,30,31],WWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=BWe[u]:i>=1&&i<=UWe[u]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),zWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),n})(Sr);function w4(e,t,n){var r,a,i,o,l,u,d,f;he(2,arguments);var g=Xa(),y=yt((r=(a=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:g.weekStartsOn)!==null&&a!==void 0?a:(d=g.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Re(e),v=yt(t),E=h.getUTCDay(),T=v%7,C=(T+7)%7,k=(C=0&&i<=6}},{key:"set",value:function(a,i,o,l){return a=w4(a,o,l),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),HWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,l){return a=w4(a,o,l),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),VWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,l){return a=w4(a,o,l),a.setUTCHours(0,0,0,0),a}}]),n})(Sr);function GWe(e,t){he(2,arguments);var n=yt(t);n%7===0&&(n=n-7);var r=1,a=Re(e),i=a.getUTCDay(),o=n%7,l=(o+7)%7,u=(l=1&&i<=7}},{key:"set",value:function(a,i,o){return a=GWe(a,o),a.setUTCHours(0,0,0,0),a}}]),n})(Sr),KWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var l=a.getUTCHours()>=12;return l&&o<12?a.setUTCHours(o+12,0,0,0):!l&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),n})(Sr),ZWe=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),n})(Sr),eze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var l=a.getUTCHours()>=12;return l&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),n})(Sr),tze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var l=o<=24?o%24:o;return a.setUTCHours(l,0,0,0),a}}]),n})(Sr),nze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),n})(Sr),rze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),n})(Sr),aze=(function(e){tr(n,e);var t=nr(n);function n(){var r;Xn(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Q=yt((v=(E=(T=(C=r==null?void 0:r.weekStartsOn)!==null&&C!==void 0?C:r==null||(k=r.locale)===null||k===void 0||(_=k.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&T!==void 0?T:L.weekStartsOn)!==null&&E!==void 0?E:(A=L.locale)===null||A===void 0||(P=A.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&v!==void 0?v:0);if(!(Q>=0&&Q<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(I==="")return N===""?Re(n):new Date(NaN);var le={firstWeekContainsDate:z,weekStartsOn:Q,locale:j},re=[new xWe],ge=I.match(dze).map(function(fe){var xe=fe[0];if(xe in I3){var Ie=I3[xe];return Ie(fe,j.formatLong)}return fe}).join("").match(cze),me=[],W=yG(ge),G;try{var q=function(){var xe=G.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Jre(xe)&&Yx(xe,I,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Qre(xe)&&Yx(xe,I,e);var Ie=xe[0],qe=uze[Ie];if(qe){var tt=qe.incompatibleTokens;if(Array.isArray(tt)){var Ge=me.find(function(Et){return tt.includes(Et.token)||Et.token===Ie});if(Ge)throw new RangeError("The format string mustn't contain `".concat(Ge.fullToken,"` and `").concat(xe,"` at the same time"))}else if(qe.incompatibleTokens==="*"&&me.length>0)throw new RangeError("The format string mustn't contain `".concat(xe,"` and any other token at the same time"));me.push({token:Ie,fullToken:xe});var at=qe.run(N,xe,j.match,le);if(!at)return{v:new Date(NaN)};re.push(at.setter),N=at.rest}else{if(Ie.match(mze))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ie+"`");if(xe==="''"?xe="'":Ie==="'"&&(xe=gze(xe)),N.indexOf(xe)===0)N=N.slice(xe.length);else return{v:new Date(NaN)}}};for(W.s();!(G=W.n()).done;){var ce=q();if(ao(ce)==="object")return ce.v}}catch(fe){W.e(fe)}finally{W.f()}if(N.length>0&&hze.test(N))return new Date(NaN);var H=re.map(function(fe){return fe.priority}).sort(function(fe,xe){return xe-fe}).filter(function(fe,xe,Ie){return Ie.indexOf(fe)===xe}).map(function(fe){return re.filter(function(xe){return xe.priority===fe}).sort(function(xe,Ie){return Ie.subPriority-xe.subPriority})}).map(function(fe){return fe[0]}),Y=Re(n);if(isNaN(Y.getTime()))return new Date(NaN);var ie=m0(Y,Fo(Y)),J={},ee=yG(H),Z;try{for(ee.s();!(Z=ee.n()).done;){var ue=Z.value;if(!ue.validate(ie,le))return new Date(NaN);var ke=ue.set(ie,J,le);Array.isArray(ke)?(ie=ke[0],iT(J,ke[1])):ie=ke}}catch(fe){ee.e(fe)}finally{ee.f()}return ie}function gze(e){return e.match(fze)[1].replace(pze,"'")}function vze(e,t,n){return he(2,arguments),Xd(gae(e,t,new Date,n))}function yze(e){return he(1,arguments),Re(e).getDay()===1}function bze(e){return he(1,arguments),Re(e).getTime()=r&&n<=a}function tO(e,t){he(2,arguments);var n=yt(t);return Oc(e,-n)}function Dze(e){return he(1,arguments),aT(e,tO(Date.now(),1))}function $ze(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=9+Math.floor(n/10)*10;return t.setFullYear(r+1,0,0),t.setHours(0,0,0,0),t}function Cae(e,t){var n,r,a,i,o,l,u,d;he(1,arguments);var f=Xa(),g=yt((n=(r=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&r!==void 0?r:(u=f.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var y=Re(e),h=y.getDay(),v=(h2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],kk.timeZoneDelimiter.test(t.date)&&(t.date=e.split(kk.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var a=kk.timezone.exec(r);a?(t.time=r.replace(a[1],""),t.timezone=a[1]):t.time=r}return t}function hqe(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function mqe(e,t){if(t===null)return new Date(NaN);var n=e.match(cqe);if(!n)return new Date(NaN);var r=!!n[4],a=W1(n[1]),i=W1(n[2])-1,o=W1(n[3]),l=W1(n[4]),u=W1(n[5])-1;if(r)return Eqe(t,l,u)?yqe(t,l,u):new Date(NaN);var d=new Date(0);return!wqe(t,i,o)||!Sqe(t,a)?new Date(NaN):(d.setUTCFullYear(t,i,Math.max(a,o)),d)}function W1(e){return e?parseInt(e):1}function gqe(e){var t=e.match(dqe);if(!t)return NaN;var n=A$(t[1]),r=A$(t[2]),a=A$(t[3]);return Tqe(n,r,a)?n*Qv+r*Xv+a*1e3:NaN}function A$(e){return e&&parseFloat(e.replace(",","."))||0}function vqe(e){if(e==="Z")return 0;var t=e.match(fqe);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return Cqe(r,a)?n*(r*Qv+a*Xv):NaN}function yqe(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,i=(t-1)*7+n+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var bqe=[31,null,31,30,31,30,31,31,30,31,30,31];function kae(e){return e%400===0||e%4===0&&e%100!==0}function wqe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(bqe[t]||(kae(e)?29:28))}function Sqe(e,t){return t>=1&&t<=(kae(e)?366:365)}function Eqe(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Tqe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Cqe(e,t){return t>=0&&t<=59}function kqe(e){if(he(1,arguments),typeof e=="string"){var t=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return t?new Date(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4]-(+t[9]||0)*(t[8]=="-"?-1:1),+t[5]-(+t[10]||0)*(t[8]=="-"?-1:1),+t[6],+((t[7]||"0")+"00").substring(0,3))):new Date(NaN)}return Re(e)}function Ah(e,t){he(2,arguments);var n=eO(e)-t;return n<=0&&(n+=7),tO(e,n)}function xqe(e){return he(1,arguments),Ah(e,5)}function _qe(e){return he(1,arguments),Ah(e,1)}function Oqe(e){return he(1,arguments),Ah(e,6)}function Rqe(e){return he(1,arguments),Ah(e,0)}function Pqe(e){return he(1,arguments),Ah(e,4)}function Aqe(e){return he(1,arguments),Ah(e,2)}function Nqe(e){return he(1,arguments),Ah(e,3)}function Mqe(e){return he(1,arguments),Math.floor(e*s4)}function Iqe(e){he(1,arguments);var t=e/u4;return Math.floor(t)}function Dqe(e,t){var n;if(arguments.length<1)throw new TypeError("1 argument required, but only none provided present");var r=yt((n=t==null?void 0:t.nearestTo)!==null&&n!==void 0?n:1);if(r<1||r>30)throw new RangeError("`options.nearestTo` must be between 1 and 30");var a=Re(e),i=a.getSeconds(),o=a.getMinutes()+i/60,l=A0(t==null?void 0:t.roundingMethod),u=l(o/r)*r,d=o%r,f=Math.round(d/r)*r;return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),u+f)}function $qe(e){he(1,arguments);var t=e/rT;return Math.floor(t)}function Lqe(e){return he(1,arguments),e*H_}function Fqe(e){he(1,arguments);var t=e/V_;return Math.floor(t)}function E4(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=n.getFullYear(),i=n.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var l=aae(o);return n.setMonth(r,Math.min(i,l)),n}function jqe(e,t){if(he(2,arguments),ao(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=Re(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=E4(n,t.month)),t.date!=null&&n.setDate(yt(t.date)),t.hours!=null&&n.setHours(yt(t.hours)),t.minutes!=null&&n.setMinutes(yt(t.minutes)),t.seconds!=null&&n.setSeconds(yt(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(yt(t.milliseconds)),n)}function Uqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setDate(r),n}function Bqe(e,t,n){var r,a,i,o,l,u,d,f;he(2,arguments);var g=Xa(),y=yt((r=(a=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:g.weekStartsOn)!==null&&a!==void 0?a:(d=g.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Re(e),v=yt(t),E=h.getDay(),T=v%7,C=(T+7)%7,k=7-y,_=v<0||v>6?v-(E+k)%7:(C+k)%7-(E+k)%7;return Oc(h,_)}function Wqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setMonth(0),n.setDate(r),n}function zqe(e){he(1,arguments);var t={},n=Xa();for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(e[a]===void 0?delete t[a]:t[a]=e[a]);a8e(t)}function qqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setHours(r),n}function Hqe(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=oae(n),i=r-a;return Oc(n,i)}function Vqe(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=sae(n)-r;return n.setDate(n.getDate()-a*7),n}function Gqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setMilliseconds(r),n}function Yqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setMinutes(r),n}function Kqe(e,t){he(2,arguments);var n=Re(e),r=yt(t),a=Math.floor(n.getMonth()/3)+1,i=r-a;return E4(n,n.getMonth()+i*3)}function Xqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return n.setSeconds(r),n}function Qqe(e,t,n){he(2,arguments);var r=Re(e),a=yt(t),i=cae(r,n)-a;return r.setDate(r.getDate()-i*7),r}function Jqe(e,t,n){var r,a,i,o,l,u,d,f;he(2,arguments);var g=Xa(),y=yt((r=(a=(i=(o=n==null?void 0:n.firstWeekContainsDate)!==null&&o!==void 0?o:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&i!==void 0?i:g.firstWeekContainsDate)!==null&&a!==void 0?a:(d=g.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&r!==void 0?r:1),h=Re(e),v=yt(t),E=xc(h,Xx(h,n)),T=new Date(0);return T.setFullYear(v,0,y),T.setHours(0,0,0,0),h=Xx(T,n),h.setDate(h.getDate()+E),h}function Zqe(e,t){he(2,arguments);var n=Re(e),r=yt(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function e9e(e){he(1,arguments);var t=Re(e),n=t.getFullYear(),r=Math.floor(n/10)*10;return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}function t9e(){return h0(Date.now())}function n9e(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),a=new Date(0);return a.setFullYear(t,n,r+1),a.setHours(0,0,0,0),a}function r9e(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),a=new Date(0);return a.setFullYear(t,n,r-1),a.setHours(0,0,0,0),a}function xae(e,t){he(2,arguments);var n=yt(t);return tT(e,-n)}function a9e(e,t){if(he(2,arguments),!t||ao(t)!=="object")return new Date(NaN);var n=t.years?yt(t.years):0,r=t.months?yt(t.months):0,a=t.weeks?yt(t.weeks):0,i=t.days?yt(t.days):0,o=t.hours?yt(t.hours):0,l=t.minutes?yt(t.minutes):0,u=t.seconds?yt(t.seconds):0,d=xae(e,r+n*12),f=tO(d,i+a*7),g=l+o*60,y=u+g*60,h=y*1e3,v=new Date(f.getTime()-h);return v}function i9e(e,t){he(2,arguments);var n=yt(t);return _re(e,-n)}function o9e(e,t){he(2,arguments);var n=yt(t);return n4(e,-n)}function s9e(e,t){he(2,arguments);var n=yt(t);return r4(e,-n)}function l9e(e,t){he(2,arguments);var n=yt(t);return a4(e,-n)}function u9e(e,t){he(2,arguments);var n=yt(t);return Are(e,-n)}function c9e(e,t){he(2,arguments);var n=yt(t);return q_(e,-n)}function d9e(e,t){he(2,arguments);var n=yt(t);return Nre(e,-n)}function f9e(e){return he(1,arguments),Math.floor(e*i4)}function p9e(e){return he(1,arguments),Math.floor(e*l4)}function h9e(e){return he(1,arguments),Math.floor(e*u4)}const m9e=Object.freeze(Object.defineProperty({__proto__:null,add:Pb,addBusinessDays:_re,addDays:Oc,addHours:n4,addISOWeekYears:Pre,addMilliseconds:nT,addMinutes:r4,addMonths:tT,addQuarters:a4,addSeconds:Are,addWeeks:q_,addYears:Nre,areIntervalsOverlapping:s8e,clamp:l8e,closestIndexTo:u8e,closestTo:c8e,compareAsc:Cu,compareDesc:d8e,daysInWeek:i4,daysInYear:Dre,daysToWeeks:p8e,differenceInBusinessDays:h8e,differenceInCalendarDays:xc,differenceInCalendarISOWeekYears:Ure,differenceInCalendarISOWeeks:g8e,differenceInCalendarMonths:zx,differenceInCalendarQuarters:Qk,differenceInCalendarWeeks:qx,differenceInCalendarYears:MS,differenceInDays:f4,differenceInHours:Hx,differenceInISOWeekYears:b8e,differenceInMilliseconds:Y_,differenceInMinutes:Vx,differenceInMonths:K_,differenceInQuarters:w8e,differenceInSeconds:t0,differenceInWeeks:S8e,differenceInYears:zre,eachDayOfInterval:qre,eachHourOfInterval:E8e,eachMinuteOfInterval:T8e,eachMonthOfInterval:C8e,eachQuarterOfInterval:k8e,eachWeekOfInterval:x8e,eachWeekendOfInterval:m4,eachWeekendOfMonth:_8e,eachWeekendOfYear:O8e,eachYearOfInterval:R8e,endOfDay:p4,endOfDecade:P8e,endOfHour:A8e,endOfISOWeek:N8e,endOfISOWeekYear:M8e,endOfMinute:I8e,endOfMonth:h4,endOfQuarter:D8e,endOfSecond:$8e,endOfToday:L8e,endOfTomorrow:F8e,endOfWeek:Vre,endOfYear:Hre,endOfYesterday:j8e,format:Zre,formatDistance:tae,formatDistanceStrict:nae,formatDistanceToNow:N5e,formatDistanceToNowStrict:M5e,formatDuration:D5e,formatISO:$5e,formatISO9075:L5e,formatISODuration:F5e,formatRFC3339:j5e,formatRFC7231:W5e,formatRelative:z5e,fromUnixTime:q5e,getDate:rae,getDay:eO,getDayOfYear:H5e,getDaysInMonth:aae,getDaysInYear:V5e,getDecade:G5e,getDefaultOptions:Y5e,getHours:K5e,getISODay:oae,getISOWeek:sae,getISOWeekYear:Lv,getISOWeeksInYear:J5e,getMilliseconds:Z5e,getMinutes:eWe,getMonth:tWe,getOverlappingDaysInIntervals:rWe,getQuarter:M3,getSeconds:aWe,getTime:lae,getUnixTime:iWe,getWeek:cae,getWeekOfMonth:sWe,getWeekYear:uae,getWeeksInMonth:lWe,getYear:uWe,hoursToMilliseconds:cWe,hoursToMinutes:dWe,hoursToSeconds:fWe,intervalToDuration:pWe,intlFormat:hWe,intlFormatDistance:gWe,isAfter:vWe,isBefore:yWe,isDate:jre,isEqual:bWe,isExists:wWe,isFirstDayOfMonth:SWe,isFriday:EWe,isFuture:TWe,isLastDayOfMonth:Wre,isLeapYear:iae,isMatch:vze,isMonday:yze,isPast:bze,isSameDay:aT,isSameHour:vae,isSameISOWeek:yae,isSameISOWeekYear:wze,isSameMinute:bae,isSameMonth:wae,isSameQuarter:Sae,isSameSecond:Eae,isSameWeek:S4,isSameYear:Tae,isSaturday:xre,isSunday:t4,isThisHour:Sze,isThisISOWeek:Eze,isThisMinute:Tze,isThisMonth:Cze,isThisQuarter:kze,isThisSecond:xze,isThisWeek:_ze,isThisYear:Oze,isThursday:Rze,isToday:Pze,isTomorrow:Aze,isTuesday:Nze,isValid:Xd,isWednesday:Mze,isWeekend:e0,isWithinInterval:Ize,isYesterday:Dze,lastDayOfDecade:$ze,lastDayOfISOWeek:Lze,lastDayOfISOWeekYear:Fze,lastDayOfMonth:dae,lastDayOfQuarter:jze,lastDayOfWeek:Cae,lastDayOfYear:Uze,lightFormat:Hze,max:Mre,maxTime:$re,milliseconds:Gze,millisecondsInHour:Qv,millisecondsInMinute:Xv,millisecondsInSecond:H_,millisecondsToHours:Yze,millisecondsToMinutes:Kze,millisecondsToSeconds:Xze,min:Ire,minTime:f8e,minutesInHour:o4,minutesToHours:Qze,minutesToMilliseconds:Jze,minutesToSeconds:Zze,monthsInQuarter:s4,monthsInYear:l4,monthsToQuarters:eqe,monthsToYears:tqe,nextDay:Ph,nextFriday:nqe,nextMonday:rqe,nextSaturday:aqe,nextSunday:iqe,nextThursday:oqe,nextTuesday:sqe,nextWednesday:lqe,parse:gae,parseISO:uqe,parseJSON:kqe,previousDay:Ah,previousFriday:xqe,previousMonday:_qe,previousSaturday:Oqe,previousSunday:Rqe,previousThursday:Pqe,previousTuesday:Aqe,previousWednesday:Nqe,quartersInYear:u4,quartersToMonths:Mqe,quartersToYears:Iqe,roundToNearestMinutes:Dqe,secondsInDay:G_,secondsInHour:rT,secondsInMinute:V_,secondsInMonth:d4,secondsInQuarter:Fre,secondsInWeek:Lre,secondsInYear:c4,secondsToHours:$qe,secondsToMilliseconds:Lqe,secondsToMinutes:Fqe,set:jqe,setDate:Uqe,setDay:Bqe,setDayOfYear:Wqe,setDefaultOptions:zqe,setHours:qqe,setISODay:Hqe,setISOWeek:Vqe,setISOWeekYear:Rre,setMilliseconds:Gqe,setMinutes:Yqe,setMonth:E4,setQuarter:Kqe,setSeconds:Xqe,setWeek:Qqe,setWeekYear:Jqe,setYear:Zqe,startOfDay:h0,startOfDecade:e9e,startOfHour:D3,startOfISOWeek:Kd,startOfISOWeekYear:ch,startOfMinute:Gx,startOfMonth:X_,startOfQuarter:CE,startOfSecond:$3,startOfToday:t9e,startOfTomorrow:n9e,startOfWeek:Ml,startOfWeekYear:Xx,startOfYear:g4,startOfYesterday:r9e,sub:a9e,subBusinessDays:i9e,subDays:tO,subHours:o9e,subISOWeekYears:Bre,subMilliseconds:m0,subMinutes:s9e,subMonths:xae,subQuarters:l9e,subSeconds:u9e,subWeeks:c9e,subYears:d9e,toDate:Re,weeksToDays:f9e,yearsToMonths:p9e,yearsToQuarters:h9e},Symbol.toStringTag,{value:"Module"})),Zv=jt(m9e);var wG;function nO(){if(wG)return Jg;wG=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.rangeShape=Jg.default=void 0;var e=o(Us()),t=a(Mc()),n=a(mh()),r=Zv;function a(h){return h&&h.__esModule?h:{default:h}}function i(h){if(typeof WeakMap!="function")return null;var v=new WeakMap,E=new WeakMap;return(i=function(T){return T?E:v})(h)}function o(h,v){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var E=i(v);if(E&&E.has(h))return E.get(h);var T={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in h)if(k!=="default"&&Object.prototype.hasOwnProperty.call(h,k)){var _=C?Object.getOwnPropertyDescriptor(h,k):null;_&&(_.get||_.set)?Object.defineProperty(T,k,_):T[k]=h[k]}return T.default=h,E&&E.set(h,T),T}function l(){return l=Object.assign?Object.assign.bind():function(h){for(var v=1;v{const{day:C,onMouseDown:k,onMouseUp:_}=this.props;[13,32].includes(T.keyCode)&&(T.type==="keydown"?k(C):_(C))}),u(this,"handleMouseEvent",T=>{const{day:C,disabled:k,onPreviewChange:_,onMouseEnter:A,onMouseDown:P,onMouseUp:N}=this.props,I={};if(k){_();return}switch(T.type){case"mouseenter":A(C),_(C),I.hover=!0;break;case"blur":case"mouseleave":I.hover=!1;break;case"mousedown":I.active=!0,P(C);break;case"mouseup":T.stopPropagation(),I.active=!1,N(C);break;case"focus":_(C);break}Object.keys(I).length&&this.setState(I)}),u(this,"getClassNames",()=>{const{isPassive:T,isToday:C,isWeekend:k,isStartOfWeek:_,isEndOfWeek:A,isStartOfMonth:P,isEndOfMonth:N,disabled:I,styles:L}=this.props;return(0,n.default)(L.day,{[L.dayPassive]:T,[L.dayDisabled]:I,[L.dayToday]:C,[L.dayWeekend]:k,[L.dayStartOfWeek]:_,[L.dayEndOfWeek]:A,[L.dayStartOfMonth]:P,[L.dayEndOfMonth]:N,[L.dayHovered]:this.state.hover,[L.dayActive]:this.state.active})}),u(this,"renderPreviewPlaceholder",()=>{const{preview:T,day:C,styles:k}=this.props;if(!T)return null;const _=T.startDate?(0,r.endOfDay)(T.startDate):null,A=T.endDate?(0,r.startOfDay)(T.endDate):null,P=(!_||(0,r.isAfter)(C,_))&&(!A||(0,r.isBefore)(C,A)),N=!P&&(0,r.isSameDay)(C,_),I=!P&&(0,r.isSameDay)(C,A);return e.default.createElement("span",{className:(0,n.default)({[k.dayStartPreview]:N,[k.dayInPreview]:P,[k.dayEndPreview]:I}),style:{color:T.color}})}),u(this,"renderSelectionPlaceholders",()=>{const{styles:T,ranges:C,day:k}=this.props;return this.props.displayMode==="date"?(0,r.isSameDay)(this.props.day,this.props.date)?e.default.createElement("span",{className:T.selected,style:{color:this.props.color}}):null:C.reduce((A,P)=>{let N=P.startDate,I=P.endDate;N&&I&&(0,r.isBefore)(I,N)&&([N,I]=[I,N]),N=N?(0,r.endOfDay)(N):null,I=I?(0,r.startOfDay)(I):null;const L=(!N||(0,r.isAfter)(k,N))&&(!I||(0,r.isBefore)(k,I)),j=!L&&(0,r.isSameDay)(k,N),z=!L&&(0,r.isSameDay)(k,I);return L||j||z?[...A,{isStartEdge:j,isEndEdge:z,isInRange:L,...P}]:A},[]).map((A,P)=>e.default.createElement("span",{key:P,className:(0,n.default)({[T.startEdge]:A.isStartEdge,[T.endEdge]:A.isEndEdge,[T.inRange]:A.isInRange}),style:{color:A.color||this.props.color}}))}),this.state={hover:!1,active:!1}}render(){const{dayContentRenderer:v}=this.props;return e.default.createElement("button",l({type:"button",onMouseEnter:this.handleMouseEvent,onMouseLeave:this.handleMouseEvent,onFocus:this.handleMouseEvent,onMouseDown:this.handleMouseEvent,onMouseUp:this.handleMouseEvent,onBlur:this.handleMouseEvent,onPauseCapture:this.handleMouseEvent,onKeyDown:this.handleKeyEvent,onKeyUp:this.handleKeyEvent,className:this.getClassNames(this.props.styles)},this.props.disabled||this.props.isPassive?{tabIndex:-1}:{},{style:{color:this.props.color}}),this.renderSelectionPlaceholders(),this.renderPreviewPlaceholder(),e.default.createElement("span",{className:this.props.styles.dayNumber},(v==null?void 0:v(this.props.day))||e.default.createElement("span",null,(0,r.format)(this.props.day,this.props.dayDisplayFormat))))}};g.defaultProps={};const y=Jg.rangeShape=t.default.shape({startDate:t.default.object,endDate:t.default.object,color:t.default.string,key:t.default.string,autoFocus:t.default.bool,disabled:t.default.bool,showDateDisplay:t.default.bool});return g.propTypes={day:t.default.object.isRequired,dayDisplayFormat:t.default.string,date:t.default.object,ranges:t.default.arrayOf(y),preview:t.default.shape({startDate:t.default.object,endDate:t.default.object,color:t.default.string}),onPreviewChange:t.default.func,previewColor:t.default.string,disabled:t.default.bool,isPassive:t.default.bool,isToday:t.default.bool,isWeekend:t.default.bool,isStartOfWeek:t.default.bool,isEndOfWeek:t.default.bool,isStartOfMonth:t.default.bool,isEndOfMonth:t.default.bool,color:t.default.string,displayMode:t.default.oneOf(["dateRange","date"]),styles:t.default.object,onMouseDown:t.default.func,onMouseUp:t.default.func,onMouseEnter:t.default.func,dayContentRenderer:t.default.func},Jg.default=g,Jg}var z1={},Zg={},SG;function rO(){if(SG)return Zg;SG=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.calcFocusDate=r,Zg.findNextRangeIndex=a,Zg.generateStyles=o,Zg.getMonthDisplayRange=i;var e=n(mh()),t=Zv;function n(l){return l&&l.__esModule?l:{default:l}}function r(l,u){const{shownDate:d,date:f,months:g,ranges:y,focusedRange:h,displayMode:v}=u;let E;if(v==="dateRange"){const C=y[h[0]]||{};E={start:C.startDate,end:C.endDate}}else E={start:f,end:f};E.start=(0,t.startOfMonth)(E.start||new Date),E.end=(0,t.endOfMonth)(E.end||E.start);const T=E.start||E.end||d||new Date;return l?(0,t.differenceInCalendarMonths)(E.start,E.end)>g?l:T:d||T}function a(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;const d=l.findIndex((f,g)=>g>u&&f.autoFocus!==!1&&!f.disabled);return d!==-1?d:l.findIndex(f=>f.autoFocus!==!1&&!f.disabled)}function i(l,u,d){const f=(0,t.startOfMonth)(l,u),g=(0,t.endOfMonth)(l,u),y=(0,t.startOfWeek)(f,u);let h=(0,t.endOfWeek)(g,u);return d&&(0,t.differenceInCalendarDays)(h,y)<=34&&(h=(0,t.addDays)(h,7)),{start:y,end:h,startDateOfMonth:f,endDateOfMonth:g}}function o(l){return l.length?l.filter(d=>!!d).reduce((d,f)=>(Object.keys(f).forEach(g=>{d[g]=(0,e.default)(d[g],f[g])}),d),{}):{}}return Zg}var EG;function g9e(){if(EG)return z1;EG=1,Object.defineProperty(z1,"__esModule",{value:!0}),z1.default=void 0;var e=l(Us()),t=i(Mc()),n=l(nO()),r=Zv,a=rO();function i(g){return g&&g.__esModule?g:{default:g}}function o(g){if(typeof WeakMap!="function")return null;var y=new WeakMap,h=new WeakMap;return(o=function(v){return v?h:y})(g)}function l(g,y){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var h=o(y);if(h&&h.has(g))return h.get(g);var v={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in g)if(T!=="default"&&Object.prototype.hasOwnProperty.call(g,T)){var C=E?Object.getOwnPropertyDescriptor(g,T):null;C&&(C.get||C.set)?Object.defineProperty(v,T,C):v[T]=g[T]}return v.default=g,h&&h.set(g,v),v}function u(){return u=Object.assign?Object.assign.bind():function(g){for(var y=1;ye.default.createElement("span",{className:g.weekDay,key:T},(0,r.format)(E,h,y))))}let f=class extends e.PureComponent{render(){const y=new Date,{displayMode:h,focusedRange:v,drag:E,styles:T,disabledDates:C,disabledDay:k}=this.props,_=this.props.minDate&&(0,r.startOfDay)(this.props.minDate),A=this.props.maxDate&&(0,r.endOfDay)(this.props.maxDate),P=(0,a.getMonthDisplayRange)(this.props.month,this.props.dateOptions,this.props.fixedHeight);let N=this.props.ranges;if(h==="dateRange"&&E.status){let{startDate:L,endDate:j}=E.range;N=N.map((z,Q)=>Q!==v[0]?z:{...z,startDate:L,endDate:j})}const I=this.props.showPreview&&!E.disablePreview;return e.default.createElement("div",{className:T.month,style:this.props.style},this.props.showMonthName?e.default.createElement("div",{className:T.monthName},(0,r.format)(this.props.month,this.props.monthDisplayFormat,this.props.dateOptions)):null,this.props.showWeekDays&&d(T,this.props.dateOptions,this.props.weekdayDisplayFormat),e.default.createElement("div",{className:T.days,onMouseLeave:this.props.onMouseLeave},(0,r.eachDayOfInterval)({start:P.start,end:P.end}).map((L,j)=>{const z=(0,r.isSameDay)(L,P.startDateOfMonth),Q=(0,r.isSameDay)(L,P.endDateOfMonth),le=_&&(0,r.isBefore)(L,_)||A&&(0,r.isAfter)(L,A),re=C.some(me=>(0,r.isSameDay)(me,L)),ge=k(L);return e.default.createElement(n.default,u({},this.props,{ranges:N,day:L,preview:I?this.props.preview:null,isWeekend:(0,r.isWeekend)(L,this.props.dateOptions),isToday:(0,r.isSameDay)(L,y),isStartOfWeek:(0,r.isSameDay)(L,(0,r.startOfWeek)(L,this.props.dateOptions)),isEndOfWeek:(0,r.isSameDay)(L,(0,r.endOfWeek)(L,this.props.dateOptions)),isStartOfMonth:z,isEndOfMonth:Q,key:j,disabled:le||re||ge,isPassive:!(0,r.isWithinInterval)(L,{start:P.startDateOfMonth,end:P.endDateOfMonth}),styles:T,onMouseDown:this.props.onDragSelectionStart,onMouseUp:this.props.onDragSelectionEnd,onMouseEnter:this.props.onDragSelectionMove,dragRange:E.range,drag:E.status}))})))}};return f.defaultProps={},f.propTypes={style:t.default.object,styles:t.default.object,month:t.default.object,drag:t.default.object,dateOptions:t.default.object,disabledDates:t.default.array,disabledDay:t.default.func,preview:t.default.shape({startDate:t.default.object,endDate:t.default.object}),showPreview:t.default.bool,displayMode:t.default.oneOf(["dateRange","date"]),minDate:t.default.object,maxDate:t.default.object,ranges:t.default.arrayOf(n.rangeShape),focusedRange:t.default.arrayOf(t.default.number),onDragSelectionStart:t.default.func,onDragSelectionEnd:t.default.func,onDragSelectionMove:t.default.func,onMouseLeave:t.default.func,monthDisplayFormat:t.default.string,weekdayDisplayFormat:t.default.string,dayDisplayFormat:t.default.string,showWeekDays:t.default.bool,showMonthName:t.default.bool,fixedHeight:t.default.bool},z1.default=f,z1}var q1={},TG;function v9e(){if(TG)return q1;TG=1,Object.defineProperty(q1,"__esModule",{value:!0}),q1.default=void 0;var e=o(Us()),t=a(Mc()),n=a(mh()),r=Zv;function a(g){return g&&g.__esModule?g:{default:g}}function i(g){if(typeof WeakMap!="function")return null;var y=new WeakMap,h=new WeakMap;return(i=function(v){return v?h:y})(g)}function o(g,y){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var h=i(y);if(h&&h.has(g))return h.get(g);var v={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in g)if(T!=="default"&&Object.prototype.hasOwnProperty.call(g,T)){var C=E?Object.getOwnPropertyDescriptor(g,T):null;C&&(C.get||C.set)?Object.defineProperty(v,T,C):v[T]=g[T]}return v.default=g,h&&h.set(g,v),v}function l(g,y,h){return y=u(y),y in g?Object.defineProperty(g,y,{value:h,enumerable:!0,configurable:!0,writable:!0}):g[y]=h,g}function u(g){var y=d(g,"string");return typeof y=="symbol"?y:String(y)}function d(g,y){if(typeof g!="object"||!g)return g;var h=g[Symbol.toPrimitive];if(h!==void 0){var v=h.call(g,y);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(g)}let f=class extends e.PureComponent{constructor(y,h){super(y,h),l(this,"onKeyDown",v=>{const{value:E}=this.state;v.key==="Enter"&&this.update(E)}),l(this,"onChange",v=>{this.setState({value:v.target.value,changed:!0,invalid:!1})}),l(this,"onBlur",()=>{const{value:v}=this.state;this.update(v)}),this.state={invalid:!1,changed:!1,value:this.formatDate(y)}}componentDidUpdate(y){const{value:h}=y;(0,r.isEqual)(h,this.props.value)||this.setState({value:this.formatDate(this.props)})}formatDate(y){let{value:h,dateDisplayFormat:v,dateOptions:E}=y;return h&&(0,r.isValid)(h)?(0,r.format)(h,v,E):""}update(y){const{invalid:h,changed:v}=this.state;if(h||!v||!y)return;const{onChange:E,dateDisplayFormat:T,dateOptions:C}=this.props,k=(0,r.parse)(y,T,new Date,C);(0,r.isValid)(k)?this.setState({changed:!1},()=>E(k)):this.setState({invalid:!0})}render(){const{className:y,readOnly:h,placeholder:v,ariaLabel:E,disabled:T,onFocus:C}=this.props,{value:k,invalid:_}=this.state;return e.default.createElement("span",{className:(0,n.default)("rdrDateInput",y)},e.default.createElement("input",{readOnly:h,disabled:T,value:k,placeholder:v,"aria-label":E,onKeyDown:this.onKeyDown,onChange:this.onChange,onBlur:this.onBlur,onFocus:C}),_&&e.default.createElement("span",{className:"rdrWarning"},"⚠"))}};return f.propTypes={value:t.default.object,placeholder:t.default.string,disabled:t.default.bool,readOnly:t.default.bool,dateOptions:t.default.object,dateDisplayFormat:t.default.string,ariaLabel:t.default.string,className:t.default.string,onFocus:t.default.func.isRequired,onChange:t.default.func.isRequired},f.defaultProps={readOnly:!0,disabled:!1,dateDisplayFormat:"MMM D, YYYY"},q1.default=f,q1}var xk={},CG;function y9e(){return CG||(CG=1,(function(e){(function(t,n){n(e,Us(),_X())})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:xk,function(t,n,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;function a(ie){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},a(ie)}function i(ie,J){if(!(ie instanceof J))throw new TypeError("Cannot call a class as a function")}function o(ie,J){for(var ee=0;ee"u")return!1;var ie=!1;try{document.createElement("div").addEventListener("test",re,{get passive(){return ie=!0,!1}})}catch{}return ie})()?{passive:!0}:!1,me="ReactList failed to reach a stable state.",W=40,G=function(J,ee){for(var Z in ee)if(J[Z]!==ee[Z])return!1;return!0},q=function(J){for(var ee=J.props.axis,Z=J.getEl(),ue=j[ee];Z=Z.parentElement;)switch(window.getComputedStyle(Z)[ue]){case"auto":case"scroll":case"overlay":return Z}return window},ce=function(J){var ee=J.props.axis,Z=J.scrollParent;return Z===window?window[N[ee]]:Z[A[ee]]},H=function(J,ee){var Z=J.length,ue=J.minSize,ke=J.type,fe=ee.from,xe=ee.size,Ie=ee.itemsPerRow;xe=Math.max(xe,ue);var qe=xe%Ie;return qe&&(xe+=Ie-qe),xe>Z&&(xe=Z),fe=ke==="simple"||!fe?0:Math.max(Math.min(fe,Z-xe),0),(qe=fe%Ie)&&(fe-=qe,xe+=qe),fe===ee.from&&xe===ee.size?ee:T(T({},ee),{},{from:fe,size:xe})},Y=t.default=(function(ie){function J(ee){var Z;return i(this,J),Z=u(this,J,[ee]),Z.state=H(ee,{itemsPerRow:1,from:ee.initialIndex,size:0}),Z.cache={},Z.cachedScrollPosition=null,Z.prevPrevState={},Z.unstable=!1,Z.updateCounter=0,Z}return h(J,ie),l(J,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(Z){var ue=this;if(this.props.axis!==Z.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>W)return this.unstable=!0,console.error(me);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout(function(){ue.updateCounter=0,delete ue.updateCounterTimeoutId},0)),this.updateFrame()}}},{key:"maybeSetState",value:function(Z,ue){if(G(this.state,Z))return ue();this.setState(Z,ue)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,ge),this.scrollParent.removeEventListener("mousewheel",re,ge)}},{key:"getOffset",value:function(Z){var ue=this.props.axis,ke=Z[P[ue]]||0,fe=L[ue];do ke+=Z[fe]||0;while(Z=Z.offsetParent);return ke}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if(typeof this.cachedScrollPosition=="number")return this.cachedScrollPosition;var Z=this.scrollParent,ue=this.props.axis,ke=Q[ue],fe=Z===window?document.body[ke]||document.documentElement[ke]:Z[ke],xe=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),Ie=Math.max(0,Math.min(fe,xe)),qe=this.getEl();return this.cachedScrollPosition=this.getOffset(Z)+Ie-this.getOffset(qe),this.cachedScrollPosition}},{key:"setScroll",value:function(Z){var ue=this.scrollParent,ke=this.props.axis;if(Z+=this.getOffset(this.getEl()),ue===window)return window.scrollTo(0,Z);Z-=this.getOffset(this.scrollParent),ue[Q[ke]]=Z}},{key:"getScrollSize",value:function(){var Z=this.scrollParent,ue=document,ke=ue.body,fe=ue.documentElement,xe=z[this.props.axis];return Z===window?Math.max(ke[xe],fe[xe]):Z[xe]}},{key:"hasDeterminateSize",value:function(){var Z=this.props,ue=Z.itemSizeGetter,ke=Z.type;return ke==="uniform"||ue}},{key:"getStartAndEnd",value:function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.threshold,ue=this.getScrollPosition(),ke=Math.max(0,ue-Z),fe=ue+this.props.scrollParentViewportSizeGetter(this)+Z;return this.hasDeterminateSize()&&(fe=Math.min(fe,this.getSpaceBefore(this.props.length))),{start:ke,end:fe}}},{key:"getItemSizeAndItemsPerRow",value:function(){var Z=this.props,ue=Z.axis,ke=Z.useStaticSize,fe=this.state,xe=fe.itemSize,Ie=fe.itemsPerRow;if(ke&&xe&&Ie)return{itemSize:xe,itemsPerRow:Ie};var qe=this.items.children;if(!qe.length)return{};var tt=qe[0],Ge=tt[I[ue]],at=Math.abs(Ge-xe);if((isNaN(at)||at>=1)&&(xe=Ge),!xe)return{};var Et=L[ue],kt=tt[Et];Ie=1;for(var xt=qe[Ie];xt&&xt[Et]===kt;xt=qe[Ie])++Ie;return{itemSize:xe,itemsPerRow:Ie}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(Z){return this.clearSizeCache(),this.updateFrame(Z)}},{key:"updateFrame",value:function(Z){switch(this.updateScrollParent(),typeof Z!="function"&&(Z=re),this.props.type){case"simple":return this.updateSimpleFrame(Z);case"variable":return this.updateVariableFrame(Z);case"uniform":return this.updateUniformFrame(Z)}}},{key:"updateScrollParent",value:function(){var Z=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),Z!==this.scrollParent&&(Z&&(Z.removeEventListener("scroll",this.updateFrameAndClearCache),Z.removeEventListener("mousewheel",re)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,ge),this.scrollParent.addEventListener("mousewheel",re,ge))}},{key:"updateSimpleFrame",value:function(Z){var ue=this.getStartAndEnd(),ke=ue.end,fe=this.items.children,xe=0;if(fe.length){var Ie=this.props.axis,qe=fe[0],tt=fe[fe.length-1];xe=this.getOffset(tt)+tt[I[Ie]]-this.getOffset(qe)}if(xe>ke)return Z();var Ge=this.props,at=Ge.pageSize,Et=Ge.length,kt=Math.min(this.state.size+at,Et);this.maybeSetState({size:kt},Z)}},{key:"updateVariableFrame",value:function(Z){this.props.itemSizeGetter||this.cacheSizes();for(var ue=this.getStartAndEnd(),ke=ue.start,fe=ue.end,xe=this.props,Ie=xe.length,qe=xe.pageSize,tt=0,Ge=0,at=0,Et=Ie-1;Geke)break;tt+=kt,++Ge}for(var xt=Ie-Ge;at1&&arguments[1]!==void 0?arguments[1]:{};if(ue[Z]!=null)return ue[Z];var ke=this.state,fe=ke.itemSize,xe=ke.itemsPerRow;if(fe)return ue[Z]=Math.floor(Z/xe)*fe;for(var Ie=Z;Ie>0&&ue[--Ie]==null;);for(var qe=ue[Ie]||0,tt=Ie;tt=at&&ZIe)return this.setScroll(Ie)}},{key:"getVisibleRange",value:function(){for(var Z=this.state,ue=Z.from,ke=Z.size,fe=this.getStartAndEnd(0),xe=fe.start,Ie=fe.end,qe={},tt,Ge,at=ue;atxe&&(tt=at),tt!=null&&Et1&&arguments[1]!==void 0?arguments[1]:L.props,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!z.scroll.enabled){if(Q&&z.preventSnapRefocus){const ge=(0,d.differenceInCalendarMonths)(j,L.state.focusedDate),me=z.calendarFocus==="forwards"&&ge>=0,W=z.calendarFocus==="backwards"&&ge<=0;if((me||W)&&Math.abs(ge)0&&arguments[0]!==void 0?arguments[0]:L.props;const z=j.scroll.enabled?{...j,months:L.list.getVisibleRange().length}:j,Q=(0,i.calcFocusDate)(L.state.focusedDate,z);L.focusToDate(Q,z)}),C(this,"updatePreview",j=>{if(!j){this.setState({preview:null});return}const z={startDate:j,endDate:j,color:this.props.color};this.setState({preview:z})}),C(this,"changeShownDate",function(j){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set";const{focusedDate:Q}=L.state,{onShownDateChange:le,minDate:re,maxDate:ge}=L.props,me={monthOffset:()=>(0,d.addMonths)(Q,j),setMonth:()=>(0,d.setMonth)(Q,j),setYear:()=>(0,d.setYear)(Q,j),set:()=>j},W=(0,d.min)([(0,d.max)([me[z](),re]),ge]);L.focusToDate(W,L.props,!1),le&&le(W)}),C(this,"handleRangeFocusChange",(j,z)=>{this.props.onRangeFocusChange&&this.props.onRangeFocusChange([j,z])}),C(this,"handleScroll",()=>{const{onShownDateChange:j,minDate:z}=this.props,{focusedDate:Q}=this.state,{isFirstRender:le}=this,re=this.list.getVisibleRange();if(re[0]===void 0)return;const ge=(0,d.addMonths)(z,re[0]||0);!(0,d.isSameMonth)(ge,Q)&&!le&&(this.setState({focusedDate:ge}),j&&j(ge)),this.isFirstRender=!1}),C(this,"renderMonthAndYear",(j,z,Q)=>{const{showMonthArrow:le,minDate:re,maxDate:ge,showMonthAndYearPickers:me,ariaLabels:W}=Q,G=(ge||L3.defaultProps.maxDate).getFullYear(),q=(re||L3.defaultProps.minDate).getFullYear(),ce=this.styles;return e.default.createElement("div",{onMouseUp:H=>H.stopPropagation(),className:ce.monthAndYearWrapper},le?e.default.createElement("button",{type:"button",className:(0,o.default)(ce.nextPrevButton,ce.prevButton),onClick:()=>z(-1,"monthOffset"),"aria-label":W.prevButton},e.default.createElement("i",null)):null,me?e.default.createElement("span",{className:ce.monthAndYearPickers},e.default.createElement("span",{className:ce.monthPicker},e.default.createElement("select",{value:j.getMonth(),onChange:H=>z(H.target.value,"setMonth"),"aria-label":W.monthPicker},this.state.monthNames.map((H,Y)=>e.default.createElement("option",{key:Y,value:Y},H)))),e.default.createElement("span",{className:ce.monthAndYearDivider}),e.default.createElement("span",{className:ce.yearPicker},e.default.createElement("select",{value:j.getFullYear(),onChange:H=>z(H.target.value,"setYear"),"aria-label":W.yearPicker},new Array(G-q+1).fill(G).map((H,Y)=>{const ie=H-Y;return e.default.createElement("option",{key:ie,value:ie},ie)})))):e.default.createElement("span",{className:ce.monthAndYearPickers},this.state.monthNames[j.getMonth()]," ",j.getFullYear()),le?e.default.createElement("button",{type:"button",className:(0,o.default)(ce.nextPrevButton,ce.nextButton),onClick:()=>z(1,"monthOffset"),"aria-label":W.nextButton},e.default.createElement("i",null)):null)}),C(this,"renderDateDisplay",()=>{const{focusedRange:j,color:z,ranges:Q,rangeColors:le,dateDisplayFormat:re,editableDateInputs:ge,startDatePlaceholder:me,endDatePlaceholder:W,ariaLabels:G}=this.props,q=le[j[0]]||z,ce=this.styles;return e.default.createElement("div",{className:ce.dateDisplayWrapper},Q.map((H,Y)=>H.showDateDisplay===!1||H.disabled&&!H.showDateDisplay?null:e.default.createElement("div",{className:ce.dateDisplay,key:Y,style:{color:H.color||q}},e.default.createElement(a.default,{className:(0,o.default)(ce.dateDisplayItem,{[ce.dateDisplayItemActive]:j[0]===Y&&j[1]===0}),readOnly:!ge,disabled:H.disabled,value:H.startDate,placeholder:me,dateOptions:this.dateOptions,dateDisplayFormat:re,ariaLabel:G.dateInput&&G.dateInput[H.key]&&G.dateInput[H.key].startDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(Y,0)}),e.default.createElement(a.default,{className:(0,o.default)(ce.dateDisplayItem,{[ce.dateDisplayItemActive]:j[0]===Y&&j[1]===1}),readOnly:!ge,disabled:H.disabled,value:H.endDate,placeholder:W,dateOptions:this.dateOptions,dateDisplayFormat:re,ariaLabel:G.dateInput&&G.dateInput[H.key]&&G.dateInput[H.key].endDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(Y,1)}))))}),C(this,"onDragSelectionStart",j=>{const{onChange:z,dragSelectionEnabled:Q}=this.props;Q?this.setState({drag:{status:!0,range:{startDate:j,endDate:j},disablePreview:!0}}):z&&z(j)}),C(this,"onDragSelectionEnd",j=>{const{updateRange:z,displayMode:Q,onChange:le,dragSelectionEnabled:re}=this.props;if(!re)return;if(Q==="date"||!this.state.drag.status){le&&le(j);return}const ge={startDate:this.state.drag.range.startDate,endDate:j};Q!=="dateRange"||(0,d.isSameDay)(ge.startDate,j)?this.setState({drag:{status:!1,range:{}}},()=>le&&le(j)):this.setState({drag:{status:!1,range:{}}},()=>{z&&z(ge)})}),C(this,"onDragSelectionMove",j=>{const{drag:z}=this.state;!z.status||!this.props.dragSelectionEnabled||this.setState({drag:{status:z.status,range:{startDate:z.range.startDate,endDate:j},disablePreview:!0}})}),C(this,"estimateMonthSize",(j,z)=>{const{direction:Q,minDate:le}=this.props,{scrollArea:re}=this.state;if(z&&(this.listSizeCache=z,z[j]))return z[j];if(Q==="horizontal")return re.monthWidth;const ge=(0,d.addMonths)(le,j),{start:me,end:W}=(0,i.getMonthDisplayRange)(ge,this.dateOptions);return(0,d.differenceInDays)(W,me,this.dateOptions)+1>35?re.longMonthHeight:re.monthHeight}),this.dateOptions={locale:N.locale},N.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=N.weekStartsOn),this.styles=(0,i.generateStyles)([g.default,N.classNames]),this.listSizeCache={},this.isFirstRender=!0,this.state={monthNames:this.getMonthNames(),focusedDate:(0,i.calcFocusDate)(null,N),drag:{status:!1,range:{startDate:null,endDate:null},disablePreview:!1},scrollArea:this.calcScrollArea(N)}}getMonthNames(){return[...Array(12).keys()].map(N=>this.props.locale.localize.month(N))}calcScrollArea(N){const{direction:I,months:L,scroll:j}=N;if(!j.enabled)return{enabled:!1};const z=j.longMonthHeight||j.monthHeight;return I==="vertical"?{enabled:!0,monthHeight:j.monthHeight||220,longMonthHeight:z||260,calendarWidth:"auto",calendarHeight:(j.calendarHeight||z||240)*L}:{enabled:!0,monthWidth:j.monthWidth||332,calendarWidth:(j.calendarWidth||j.monthWidth||332)*L,monthHeight:z||300,calendarHeight:z||300}}componentDidMount(){this.props.scroll.enabled&&setTimeout(()=>this.focusToDate(this.state.focusedDate))}componentDidUpdate(N){const L={dateRange:"ranges",date:"date"}[this.props.displayMode];this.props[L]!==N[L]&&this.updateShownDate(this.props),(N.locale!==this.props.locale||N.weekStartsOn!==this.props.weekStartsOn)&&(this.dateOptions={locale:this.props.locale},this.props.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=this.props.weekStartsOn),this.setState({monthNames:this.getMonthNames()})),(0,u.shallowEqualObjects)(N.scroll,this.props.scroll)||this.setState({scrollArea:this.calcScrollArea(this.props)})}renderWeekdays(){const N=new Date;return e.default.createElement("div",{className:this.styles.weekDays},(0,d.eachDayOfInterval)({start:(0,d.startOfWeek)(N,this.dateOptions),end:(0,d.endOfWeek)(N,this.dateOptions)}).map((I,L)=>e.default.createElement("span",{className:this.styles.weekDay,key:L},(0,d.format)(I,this.props.weekdayDisplayFormat,this.dateOptions))))}render(){const{showDateDisplay:N,onPreviewChange:I,scroll:L,direction:j,disabledDates:z,disabledDay:Q,maxDate:le,minDate:re,rangeColors:ge,color:me,navigatorRenderer:W,className:G,preview:q}=this.props,{scrollArea:ce,focusedDate:H}=this.state,Y=j==="vertical",ie=W||this.renderMonthAndYear,J=this.props.ranges.map((ee,Z)=>({...ee,color:ee.color||ge[Z]||me}));return e.default.createElement("div",{className:(0,o.default)(this.styles.calendarWrapper,G),onMouseUp:()=>this.setState({drag:{status:!1,range:{}}}),onMouseLeave:()=>{this.setState({drag:{status:!1,range:{}}})}},N&&this.renderDateDisplay(),ie(H,this.changeShownDate,this.props),L.enabled?e.default.createElement("div",null,Y&&this.renderWeekdays(this.dateOptions),e.default.createElement("div",{className:(0,o.default)(this.styles.infiniteMonths,Y?this.styles.monthsVertical:this.styles.monthsHorizontal),onMouseLeave:()=>I&&I(),style:{width:ce.calendarWidth+11,height:ce.calendarHeight+11},onScroll:this.handleScroll},e.default.createElement(l.default,{length:(0,d.differenceInCalendarMonths)((0,d.endOfMonth)(le),(0,d.addDays)((0,d.startOfMonth)(re),-1),this.dateOptions),treshold:500,type:"variable",ref:ee=>this.list=ee,itemSizeEstimator:this.estimateMonthSize,axis:Y?"y":"x",itemRenderer:(ee,Z)=>{const ue=(0,d.addMonths)(re,ee);return e.default.createElement(r.default,T({},this.props,{onPreviewChange:I||this.updatePreview,preview:q||this.state.preview,ranges:J,key:Z,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:z,disabledDay:Q,month:ue,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>I&&I(),styles:this.styles,style:Y?{height:this.estimateMonthSize(ee)}:{height:ce.monthHeight,width:this.estimateMonthSize(ee)},showMonthName:!0,showWeekDays:!Y}))}}))):e.default.createElement("div",{className:(0,o.default)(this.styles.months,Y?this.styles.monthsVertical:this.styles.monthsHorizontal)},new Array(this.props.months).fill(null).map((ee,Z)=>{let ue=(0,d.addMonths)(this.state.focusedDate,Z);return this.props.calendarFocus==="backwards"&&(ue=(0,d.subMonths)(this.state.focusedDate,this.props.months-1-Z)),e.default.createElement(r.default,T({},this.props,{onPreviewChange:I||this.updatePreview,preview:q||this.state.preview,ranges:J,key:Z,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:z,disabledDay:Q,month:ue,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>I&&I(),styles:this.styles,showWeekDays:!Y||Z===0,showMonthName:!Y||Z>0}))})))}};return A.defaultProps={showMonthArrow:!0,showMonthAndYearPickers:!0,disabledDates:[],disabledDay:()=>{},classNames:{},locale:f.enUS,ranges:[],focusedRange:[0,0],dateDisplayFormat:"MMM d, yyyy",monthDisplayFormat:"MMM yyyy",weekdayDisplayFormat:"E",dayDisplayFormat:"d",showDateDisplay:!0,showPreview:!0,displayMode:"date",months:1,color:"#3d91ff",scroll:{enabled:!1},direction:"vertical",maxDate:(0,d.addYears)(new Date,20),minDate:(0,d.addYears)(new Date,-100),rangeColors:["#3d91ff","#3ecf8e","#fed14c"],startDatePlaceholder:"Early",endDatePlaceholder:"Continuous",editableDateInputs:!1,dragSelectionEnabled:!0,fixedHeight:!1,calendarFocus:"forwards",preventSnapRefocus:!1,ariaLabels:{}},A.propTypes={showMonthArrow:t.default.bool,showMonthAndYearPickers:t.default.bool,disabledDates:t.default.array,disabledDay:t.default.func,minDate:t.default.object,maxDate:t.default.object,date:t.default.object,onChange:t.default.func,onPreviewChange:t.default.func,onRangeFocusChange:t.default.func,classNames:t.default.object,locale:t.default.object,shownDate:t.default.object,onShownDateChange:t.default.func,ranges:t.default.arrayOf(n.rangeShape),preview:t.default.shape({startDate:t.default.object,endDate:t.default.object,color:t.default.string}),dateDisplayFormat:t.default.string,monthDisplayFormat:t.default.string,weekdayDisplayFormat:t.default.string,weekStartsOn:t.default.number,dayDisplayFormat:t.default.string,focusedRange:t.default.arrayOf(t.default.number),initialFocusedRange:t.default.arrayOf(t.default.number),months:t.default.number,className:t.default.string,showDateDisplay:t.default.bool,showPreview:t.default.bool,displayMode:t.default.oneOf(["dateRange","date"]),color:t.default.string,updateRange:t.default.func,scroll:t.default.shape({enabled:t.default.bool,monthHeight:t.default.number,longMonthHeight:t.default.number,monthWidth:t.default.number,calendarWidth:t.default.number,calendarHeight:t.default.number}),direction:t.default.oneOf(["vertical","horizontal"]),startDatePlaceholder:t.default.string,endDatePlaceholder:t.default.string,navigatorRenderer:t.default.func,rangeColors:t.default.arrayOf(t.default.string),editableDateInputs:t.default.bool,dragSelectionEnabled:t.default.bool,fixedHeight:t.default.bool,calendarFocus:t.default.string,preventSnapRefocus:t.default.bool,ariaLabels:y.ariaLabelsShape},B1.default=A,B1}var OG;function Rae(){if(OG)return U1;OG=1,Object.defineProperty(U1,"__esModule",{value:!0}),U1.default=void 0;var e=f(Us()),t=u(Mc()),n=u(Oae()),r=nO(),a=rO(),i=Zv,o=u(mh()),l=u(aO());function u(T){return T&&T.__esModule?T:{default:T}}function d(T){if(typeof WeakMap!="function")return null;var C=new WeakMap,k=new WeakMap;return(d=function(_){return _?k:C})(T)}function f(T,C){if(T&&T.__esModule)return T;if(T===null||typeof T!="object"&&typeof T!="function")return{default:T};var k=d(C);if(k&&k.has(T))return k.get(T);var _={__proto__:null},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in T)if(P!=="default"&&Object.prototype.hasOwnProperty.call(T,P)){var N=A?Object.getOwnPropertyDescriptor(T,P):null;N&&(N.get||N.set)?Object.defineProperty(_,P,N):_[P]=T[P]}return _.default=T,k&&k.set(T,_),_}function g(){return g=Object.assign?Object.assign.bind():function(T){for(var C=1;C1&&arguments[1]!==void 0?arguments[1]:!0;const N=_.props.focusedRange||_.state.focusedRange,{ranges:I,onChange:L,maxDate:j,moveRangeOnFirstSelection:z,retainEndDateOnFirstSelection:Q,disabledDates:le}=_.props,re=N[0],ge=I[re];if(!ge||!L)return{};let{startDate:me,endDate:W}=ge;const G=new Date;let q;if(!P)me=A.startDate,W=A.endDate;else if(N[1]===0){const Y=(0,i.differenceInCalendarDays)(W||G,me),ie=()=>z?(0,i.addDays)(A,Y):Q?!W||(0,i.isBefore)(A,W)?W:A:A||G;me=A,W=ie(),j&&(W=(0,i.min)([W,j])),q=[N[0],1]}else W=A;let ce=N[1]===0;(0,i.isBefore)(W,me)&&(ce=!ce,[me,W]=[W,me]);const H=le.filter(Y=>(0,i.isWithinInterval)(Y,{start:me,end:W}));return H.length>0&&(ce?me=(0,i.addDays)((0,i.max)(H),1):W=(0,i.addDays)((0,i.min)(H),-1)),q||(q=[(0,a.findNextRangeIndex)(_.props.ranges,N[0]),0]),{wasValid:!(H.length>0),range:{startDate:me,endDate:W},nextFocusRange:q}}),y(this,"setSelection",(A,P)=>{const{onChange:N,ranges:I,onRangeFocusChange:L}=this.props,z=(this.props.focusedRange||this.state.focusedRange)[0],Q=I[z];if(!Q)return;const le=this.calcNewSelection(A,P);N({[Q.key||`range${z+1}`]:{...Q,...le.range}}),this.setState({focusedRange:le.nextFocusRange,preview:null}),L&&L(le.nextFocusRange)}),y(this,"handleRangeFocusChange",A=>{this.setState({focusedRange:A}),this.props.onRangeFocusChange&&this.props.onRangeFocusChange(A)}),y(this,"updatePreview",A=>{var j;if(!A){this.setState({preview:null});return}const{rangeColors:P,ranges:N}=this.props,I=this.props.focusedRange||this.state.focusedRange,L=((j=N[I[0]])==null?void 0:j.color)||P[I[0]]||L;this.setState({preview:{...A.range,color:L}})}),this.state={focusedRange:C.initialFocusedRange||[(0,a.findNextRangeIndex)(C.ranges),0],preview:null},this.styles=(0,a.generateStyles)([l.default,C.classNames])}render(){return e.default.createElement(n.default,g({focusedRange:this.state.focusedRange,onRangeFocusChange:this.handleRangeFocusChange,preview:this.state.preview,onPreviewChange:C=>{this.updatePreview(C?this.calcNewSelection(C):null)}},this.props,{displayMode:"dateRange",className:(0,o.default)(this.styles.dateRangeWrapper,this.props.className),onChange:this.setSelection,updateRange:C=>this.setSelection(C,!1),ref:C=>{this.calendar=C}}))}};return E.defaultProps={classNames:{},ranges:[],moveRangeOnFirstSelection:!1,retainEndDateOnFirstSelection:!1,rangeColors:["#3d91ff","#3ecf8e","#fed14c"],disabledDates:[]},E.propTypes={...n.default.propTypes,onChange:t.default.func,onRangeFocusChange:t.default.func,className:t.default.string,ranges:t.default.arrayOf(r.rangeShape),moveRangeOnFirstSelection:t.default.bool,retainEndDateOnFirstSelection:t.default.bool},U1.default=E,U1}var G1={},Y1={},Wp={},RG;function Pae(){if(RG)return Wp;RG=1,Object.defineProperty(Wp,"__esModule",{value:!0}),Wp.createStaticRanges=r,Wp.defaultStaticRanges=Wp.defaultInputRanges=void 0;var e=Zv;const t={startOfWeek:(0,e.startOfWeek)(new Date),endOfWeek:(0,e.endOfWeek)(new Date),startOfLastWeek:(0,e.startOfWeek)((0,e.addDays)(new Date,-7)),endOfLastWeek:(0,e.endOfWeek)((0,e.addDays)(new Date,-7)),startOfToday:(0,e.startOfDay)(new Date),endOfToday:(0,e.endOfDay)(new Date),startOfYesterday:(0,e.startOfDay)((0,e.addDays)(new Date,-1)),endOfYesterday:(0,e.endOfDay)((0,e.addDays)(new Date,-1)),startOfMonth:(0,e.startOfMonth)(new Date),endOfMonth:(0,e.endOfMonth)(new Date),startOfLastMonth:(0,e.startOfMonth)((0,e.addMonths)(new Date,-1)),endOfLastMonth:(0,e.endOfMonth)((0,e.addMonths)(new Date,-1))},n={range:{},isSelected(a){const i=this.range();return(0,e.isSameDay)(a.startDate,i.startDate)&&(0,e.isSameDay)(a.endDate,i.endDate)}};function r(a){return a.map(i=>({...n,...i}))}return Wp.defaultStaticRanges=r([{label:"Today",range:()=>({startDate:t.startOfToday,endDate:t.endOfToday})},{label:"Yesterday",range:()=>({startDate:t.startOfYesterday,endDate:t.endOfYesterday})},{label:"This Week",range:()=>({startDate:t.startOfWeek,endDate:t.endOfWeek})},{label:"Last Week",range:()=>({startDate:t.startOfLastWeek,endDate:t.endOfLastWeek})},{label:"This Month",range:()=>({startDate:t.startOfMonth,endDate:t.endOfMonth})},{label:"Last Month",range:()=>({startDate:t.startOfLastMonth,endDate:t.endOfLastMonth})}]),Wp.defaultInputRanges=[{label:"days up to today",range(a){return{startDate:(0,e.addDays)(t.startOfToday,(Math.max(Number(a),1)-1)*-1),endDate:t.endOfToday}},getCurrentValue(a){return(0,e.isSameDay)(a.endDate,t.endOfToday)?a.startDate?(0,e.differenceInCalendarDays)(t.endOfToday,a.startDate)+1:"∞":"-"}},{label:"days starting today",range(a){const i=new Date;return{startDate:i,endDate:(0,e.addDays)(i,Math.max(Number(a),1)-1)}},getCurrentValue(a){return(0,e.isSameDay)(a.startDate,t.startOfToday)?a.endDate?(0,e.differenceInCalendarDays)(a.endDate,t.startOfToday)+1:"∞":"-"}}],Wp}var K1={},PG;function C9e(){if(PG)return K1;PG=1,Object.defineProperty(K1,"__esModule",{value:!0}),K1.default=void 0;var e=a(Us()),t=n(Mc());function n(g){return g&&g.__esModule?g:{default:g}}function r(g){if(typeof WeakMap!="function")return null;var y=new WeakMap,h=new WeakMap;return(r=function(v){return v?h:y})(g)}function a(g,y){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var h=r(y);if(h&&h.has(g))return h.get(g);var v={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in g)if(T!=="default"&&Object.prototype.hasOwnProperty.call(g,T)){var C=E?Object.getOwnPropertyDescriptor(g,T):null;C&&(C.get||C.set)?Object.defineProperty(v,T,C):v[T]=g[T]}return v.default=g,h&&h.set(g,v),v}function i(g,y,h){return y=o(y),y in g?Object.defineProperty(g,y,{value:h,enumerable:!0,configurable:!0,writable:!0}):g[y]=h,g}function o(g){var y=l(g,"string");return typeof y=="symbol"?y:String(y)}function l(g,y){if(typeof g!="object"||!g)return g;var h=g[Symbol.toPrimitive];if(h!==void 0){var v=h.call(g,y);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(g)}const u=0,d=99999;let f=class extends e.Component{constructor(y,h){super(y,h),i(this,"onChange",v=>{const{onChange:E}=this.props;let T=parseInt(v.target.value,10);T=isNaN(T)?0:Math.max(Math.min(d,T),u),E(T)})}shouldComponentUpdate(y){const{value:h,label:v,placeholder:E}=this.props;return h!==y.value||v!==y.label||E!==y.placeholder}render(){const{label:y,placeholder:h,value:v,styles:E,onBlur:T,onFocus:C}=this.props;return e.default.createElement("div",{className:E.inputRange},e.default.createElement("input",{className:E.inputRangeInput,placeholder:h,value:v,min:u,max:d,onChange:this.onChange,onFocus:C,onBlur:T}),e.default.createElement("span",{className:E.inputRangeLabel},y))}};return f.propTypes={value:t.default.oneOfType([t.default.string,t.default.number]),label:t.default.oneOfType([t.default.element,t.default.node]).isRequired,placeholder:t.default.string,styles:t.default.shape({inputRange:t.default.string,inputRangeInput:t.default.string,inputRangeLabel:t.default.string}).isRequired,onBlur:t.default.func.isRequired,onFocus:t.default.func.isRequired,onChange:t.default.func.isRequired},f.defaultProps={value:"",placeholder:"-"},K1.default=f,K1}var AG;function Aae(){if(AG)return Y1;AG=1,Object.defineProperty(Y1,"__esModule",{value:!0}),Y1.default=void 0;var e=d(Us()),t=l(Mc()),n=l(aO()),r=Pae(),a=nO(),i=l(C9e()),o=l(mh());function l(v){return v&&v.__esModule?v:{default:v}}function u(v){if(typeof WeakMap!="function")return null;var E=new WeakMap,T=new WeakMap;return(u=function(C){return C?T:E})(v)}function d(v,E){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var T=u(E);if(T&&T.has(v))return T.get(v);var C={__proto__:null},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in v)if(_!=="default"&&Object.prototype.hasOwnProperty.call(v,_)){var A=k?Object.getOwnPropertyDescriptor(v,_):null;A&&(A.get||A.set)?Object.defineProperty(C,_,A):C[_]=v[_]}return C.default=v,T&&T.set(v,C),C}function f(v,E,T){return E=g(E),E in v?Object.defineProperty(v,E,{value:T,enumerable:!0,configurable:!0,writable:!0}):v[E]=T,v}function g(v){var E=y(v,"string");return typeof E=="symbol"?E:String(E)}function y(v,E){if(typeof v!="object"||!v)return v;var T=v[Symbol.toPrimitive];if(T!==void 0){var C=T.call(v,E);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(v)}let h=class extends e.Component{constructor(E){super(E),f(this,"handleRangeChange",T=>{const{onChange:C,ranges:k,focusedRange:_}=this.props,A=k[_[0]];!C||!A||C({[A.key||`range${_[0]+1}`]:{...A,...T}})}),this.state={rangeOffset:0,focusedInput:-1}}getRangeOptionValue(E){const{ranges:T=[],focusedRange:C=[]}=this.props;if(typeof E.getCurrentValue!="function")return"";const k=T[C[0]]||{};return E.getCurrentValue(k)||""}getSelectedRange(E,T){const C=E.findIndex(_=>!_.startDate||!_.endDate||_.disabled?!1:T.isSelected(_));return{selectedRange:E[C],focusedRangeIndex:C}}render(){const{headerContent:E,footerContent:T,onPreviewChange:C,inputRanges:k,staticRanges:_,ranges:A,renderStaticRangeLabel:P,rangeColors:N,className:I}=this.props;return e.default.createElement("div",{className:(0,o.default)(n.default.definedRangesWrapper,I)},E,e.default.createElement("div",{className:n.default.staticRanges},_.map((L,j)=>{const{selectedRange:z,focusedRangeIndex:Q}=this.getSelectedRange(A,L);let le;return L.hasCustomRendering?le=P(L):le=L.label,e.default.createElement("button",{type:"button",className:(0,o.default)(n.default.staticRange,{[n.default.staticRangeSelected]:!!z}),style:{color:z?z.color||N[Q]:null},key:j,onClick:()=>this.handleRangeChange(L.range(this.props)),onFocus:()=>C&&C(L.range(this.props)),onMouseOver:()=>C&&C(L.range(this.props)),onMouseLeave:()=>{C&&C()}},e.default.createElement("span",{tabIndex:-1,className:n.default.staticRangeLabel},le))})),e.default.createElement("div",{className:n.default.inputRanges},k.map((L,j)=>e.default.createElement(i.default,{key:j,styles:n.default,label:L.label,onFocus:()=>this.setState({focusedInput:j,rangeOffset:0}),onBlur:()=>this.setState({rangeOffset:0}),onChange:z=>this.handleRangeChange(L.range(z,this.props)),value:this.getRangeOptionValue(L)}))),T)}};return h.propTypes={inputRanges:t.default.array,staticRanges:t.default.array,ranges:t.default.arrayOf(a.rangeShape),focusedRange:t.default.arrayOf(t.default.number),onPreviewChange:t.default.func,onChange:t.default.func,footerContent:t.default.any,headerContent:t.default.any,rangeColors:t.default.arrayOf(t.default.string),className:t.default.string,renderStaticRangeLabel:t.default.func},h.defaultProps={inputRanges:r.defaultInputRanges,staticRanges:r.defaultStaticRanges,ranges:[],rangeColors:["#3d91ff","#3ecf8e","#fed14c"],focusedRange:[0,0]},Y1.default=h,Y1}var NG;function k9e(){if(NG)return G1;NG=1,Object.defineProperty(G1,"__esModule",{value:!0}),G1.default=void 0;var e=d(Us()),t=l(Mc()),n=l(Rae()),r=l(Aae()),a=rO(),i=l(mh()),o=l(aO());function l(y){return y&&y.__esModule?y:{default:y}}function u(y){if(typeof WeakMap!="function")return null;var h=new WeakMap,v=new WeakMap;return(u=function(E){return E?v:h})(y)}function d(y,h){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var v=u(h);if(v&&v.has(y))return v.get(y);var E={__proto__:null},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in y)if(C!=="default"&&Object.prototype.hasOwnProperty.call(y,C)){var k=T?Object.getOwnPropertyDescriptor(y,C):null;k&&(k.get||k.set)?Object.defineProperty(E,C,k):E[C]=y[C]}return E.default=y,v&&v.set(y,E),E}function f(){return f=Object.assign?Object.assign.bind():function(y){for(var h=1;hthis.dateRange.updatePreview(v?this.dateRange.calcNewSelection(v,typeof v=="string"):null)},this.props,{range:this.props.ranges[h[0]],className:void 0})),e.default.createElement(n.default,f({onRangeFocusChange:v=>this.setState({focusedRange:v}),focusedRange:h},this.props,{ref:v=>this.dateRange=v,className:void 0})))}};return g.defaultProps={},g.propTypes={...n.default.propTypes,...r.default.propTypes,className:t.default.string},G1.default=g,G1}var MG;function x9e(){return MG||(MG=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Calendar",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"DateRange",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"DateRangePicker",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"DefinedRange",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStaticRanges",{enumerable:!0,get:function(){return i.createStaticRanges}}),Object.defineProperty(e,"defaultInputRanges",{enumerable:!0,get:function(){return i.defaultInputRanges}}),Object.defineProperty(e,"defaultStaticRanges",{enumerable:!0,get:function(){return i.defaultStaticRanges}});var t=o(Rae()),n=o(Oae()),r=o(k9e()),a=o(Aae()),i=Pae();function o(l){return l&&l.__esModule?l:{default:l}}})(R$)),R$}var _9e=x9e(),N$={},O9e={lessThanXSeconds:{one:"minder as 'n sekonde",other:"minder as {{count}} sekondes"},xSeconds:{one:"1 sekonde",other:"{{count}} sekondes"},halfAMinute:"'n halwe minuut",lessThanXMinutes:{one:"minder as 'n minuut",other:"minder as {{count}} minute"},xMinutes:{one:"'n minuut",other:"{{count}} minute"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} ure"},xHours:{one:"1 uur",other:"{{count}} ure"},xDays:{one:"1 dag",other:"{{count}} dae"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weke"},xWeeks:{one:"1 week",other:"{{count}} weke"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maande"},xMonths:{one:"1 maand",other:"{{count}} maande"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer as 1 jaar",other:"meer as {{count}} jaar"},almostXYears:{one:"byna 1 jaar",other:"byna {{count}} jaar"}},R9e=function(t,n,r){var a,i=O9e[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"oor "+a:a+" gelede":a},P9e={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"yyyy/MM/dd"},A9e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},N9e={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},M9e={date:Ne({formats:P9e,defaultWidth:"full"}),time:Ne({formats:A9e,defaultWidth:"full"}),dateTime:Ne({formats:N9e,defaultWidth:"full"})},I9e={lastWeek:"'verlede' eeee 'om' p",yesterday:"'gister om' p",today:"'vandag om' p",tomorrow:"'môre om' p",nextWeek:"eeee 'om' p",other:"P"},D9e=function(t,n,r,a){return I9e[t]},$9e={narrow:["vC","nC"],abbreviated:["vC","nC"],wide:["voor Christus","na Christus"]},L9e={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1ste kwartaal","2de kwartaal","3de kwartaal","4de kwartaal"]},F9e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],wide:["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"]},j9e={narrow:["S","M","D","W","D","V","S"],short:["So","Ma","Di","Wo","Do","Vr","Sa"],abbreviated:["Son","Maa","Din","Woe","Don","Vry","Sat"],wide:["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"]},U9e={narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"}},B9e={narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"}},W9e=function(t){var n=Number(t),r=n%100;if(r<20)switch(r){case 1:case 8:return n+"ste";default:return n+"de"}return n+"ste"},z9e={ordinalNumber:W9e,era:oe({values:$9e,defaultWidth:"wide"}),quarter:oe({values:L9e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:F9e,defaultWidth:"wide"}),day:oe({values:j9e,defaultWidth:"wide"}),dayPeriod:oe({values:U9e,defaultWidth:"wide",formattingValues:B9e,defaultFormattingWidth:"wide"})},q9e=/^(\d+)(ste|de)?/i,H9e=/\d+/i,V9e={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?C\.?)/,wide:/^((voor|na) Christus)/},G9e={any:[/^v/,/^n/]},Y9e={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](st|d)e kwartaal/i},K9e={any:[/1/i,/2/i,/3/i,/4/i]},X9e={narrow:/^[jfmasond]/i,abbreviated:/^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i,wide:/^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i},Q9e={narrow:[/^J/i,/^F/i,/^M/i,/^A/i,/^M/i,/^J/i,/^J/i,/^A/i,/^S/i,/^O/i,/^N/i,/^D/i],any:[/^Jan/i,/^Feb/i,/^Mrt/i,/^Apr/i,/^Mei/i,/^Jun/i,/^Jul/i,/^Aug/i,/^Sep/i,/^Okt/i,/^Nov/i,/^Dec/i]},J9e={narrow:/^[smdwv]/i,short:/^(So|Ma|Di|Wo|Do|Vr|Sa)/i,abbreviated:/^(Son|Maa|Din|Woe|Don|Vry|Sat)/i,wide:/^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i},Z9e={narrow:[/^S/i,/^M/i,/^D/i,/^W/i,/^D/i,/^V/i,/^S/i],any:[/^So/i,/^Ma/i,/^Di/i,/^Wo/i,/^Do/i,/^Vr/i,/^Sa/i]},eHe={any:/^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i},tHe={any:{am:/^vm/i,pm:/^nm/i,midnight:/^middernag/i,noon:/^middaguur/i,morning:/oggend/i,afternoon:/middag/i,evening:/laat middag/i,night:/aand/i}},nHe={ordinalNumber:Xt({matchPattern:q9e,parsePattern:H9e,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:V9e,defaultMatchWidth:"wide",parsePatterns:G9e,defaultParseWidth:"any"}),quarter:se({matchPatterns:Y9e,defaultMatchWidth:"wide",parsePatterns:K9e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:X9e,defaultMatchWidth:"wide",parsePatterns:Q9e,defaultParseWidth:"any"}),day:se({matchPatterns:J9e,defaultMatchWidth:"wide",parsePatterns:Z9e,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:eHe,defaultMatchWidth:"any",parsePatterns:tHe,defaultParseWidth:"any"})},rHe={code:"af",formatDistance:R9e,formatLong:M9e,formatRelative:D9e,localize:z9e,match:nHe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const aHe=Object.freeze(Object.defineProperty({__proto__:null,default:rHe},Symbol.toStringTag,{value:"Module"})),iHe=jt(aHe);var oHe={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},sHe=function(t,n,r){r=r||{};var a=oHe[t],i;return typeof a=="string"?i=a:n===1?i=a.one:n===2?i=a.two:n<=10?i=a.threeToTen.replace("{{count}}",String(n)):i=a.other.replace("{{count}}",String(n)),r.addSuffix?r.comparison&&r.comparison>0?"في خلال "+i:"منذ "+i:i},lHe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uHe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},cHe={full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dHe={date:Ne({formats:lHe,defaultWidth:"full"}),time:Ne({formats:uHe,defaultWidth:"full"}),dateTime:Ne({formats:cHe,defaultWidth:"full"})},fHe={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},pHe=function(t,n,r,a){return fHe[t]},hHe={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},mHe={narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},gHe={narrow:["ج","ف","م","أ","م","ج","ج","أ","س","أ","ن","د"],abbreviated:["جانـ","فيفـ","مارس","أفريل","مايـ","جوانـ","جويـ","أوت","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},vHe={narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},yHe={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},bHe={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},wHe=function(t){return String(t)},SHe={ordinalNumber:wHe,era:oe({values:hHe,defaultWidth:"wide"}),quarter:oe({values:mHe,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:gHe,defaultWidth:"wide"}),day:oe({values:vHe,defaultWidth:"wide"}),dayPeriod:oe({values:yHe,defaultWidth:"wide",formattingValues:bHe,defaultFormattingWidth:"wide"})},EHe=/^(\d+)(th|st|nd|rd)?/i,THe=/\d+/i,CHe={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},kHe={any:[/^قبل/i,/^بعد/i]},xHe={narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},_He={any:[/1/i,/2/i,/3/i,/4/i]},OHe={narrow:/^[جفمأسند]/i,abbreviated:/^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i,wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i},RHe={narrow:[/^ج/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ج/i,/^ج/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^جان/i,/^فيف/i,/^مار/i,/^أفر/i,/^ماي/i,/^جوا/i,/^جوي/i,/^أوت/i,/^سبت/i,/^أكت/i,/^نوف/i,/^ديس/i]},PHe={narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},AHe={narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},NHe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},MHe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},IHe={ordinalNumber:Xt({matchPattern:EHe,parsePattern:THe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:CHe,defaultMatchWidth:"wide",parsePatterns:kHe,defaultParseWidth:"any"}),quarter:se({matchPatterns:xHe,defaultMatchWidth:"wide",parsePatterns:_He,defaultParseWidth:"any",valueCallback:function(t){return Number(t)+1}}),month:se({matchPatterns:OHe,defaultMatchWidth:"wide",parsePatterns:RHe,defaultParseWidth:"any"}),day:se({matchPatterns:PHe,defaultMatchWidth:"wide",parsePatterns:AHe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:NHe,defaultMatchWidth:"any",parsePatterns:MHe,defaultParseWidth:"any"})},DHe={code:"ar-DZ",formatDistance:sHe,formatLong:dHe,formatRelative:pHe,localize:SHe,match:IHe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const $He=Object.freeze(Object.defineProperty({__proto__:null,default:DHe},Symbol.toStringTag,{value:"Module"})),LHe=jt($He);var FHe={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},jHe=function(t,n,r){var a,i=FHe[t];return typeof i=="string"?a=i:n===1?a=i.one:n===2?a=i.two:n<=10?a=i.threeToTen.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"في خلال "+a:"منذ "+a:a},UHe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},BHe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},WHe={full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},zHe={date:Ne({formats:UHe,defaultWidth:"full"}),time:Ne({formats:BHe,defaultWidth:"full"}),dateTime:Ne({formats:WHe,defaultWidth:"full"})},qHe={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},HHe=function(t,n,r,a){return qHe[t]},VHe={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},GHe={narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},YHe={narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},KHe={narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},XHe={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},QHe={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},JHe=function(t){return String(t)},ZHe={ordinalNumber:JHe,era:oe({values:VHe,defaultWidth:"wide"}),quarter:oe({values:GHe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:YHe,defaultWidth:"wide"}),day:oe({values:KHe,defaultWidth:"wide"}),dayPeriod:oe({values:XHe,defaultWidth:"wide",formattingValues:QHe,defaultFormattingWidth:"wide"})},e7e=/^(\d+)(th|st|nd|rd)?/i,t7e=/\d+/i,n7e={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},r7e={any:[/^قبل/i,/^بعد/i]},a7e={narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},i7e={any:[/1/i,/2/i,/3/i,/4/i]},o7e={narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i},s7e={narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^ف/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^أغ/i,/^س/i,/^أك/i,/^ن/i,/^د/i]},l7e={narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},u7e={narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},c7e={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},d7e={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},f7e={ordinalNumber:Xt({matchPattern:e7e,parsePattern:t7e,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:n7e,defaultMatchWidth:"wide",parsePatterns:r7e,defaultParseWidth:"any"}),quarter:se({matchPatterns:a7e,defaultMatchWidth:"wide",parsePatterns:i7e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:o7e,defaultMatchWidth:"wide",parsePatterns:s7e,defaultParseWidth:"any"}),day:se({matchPatterns:l7e,defaultMatchWidth:"wide",parsePatterns:u7e,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:c7e,defaultMatchWidth:"any",parsePatterns:d7e,defaultParseWidth:"any"})},p7e={code:"ar-SA",formatDistance:jHe,formatLong:zHe,formatRelative:HHe,localize:ZHe,match:f7e,options:{weekStartsOn:0,firstWeekContainsDate:1}};const h7e=Object.freeze(Object.defineProperty({__proto__:null,default:p7e},Symbol.toStringTag,{value:"Module"})),m7e=jt(h7e);function X1(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function Ro(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?X1(e.future,t):"праз "+X1(e.regular,t):e.past?X1(e.past,t):X1(e.regular,t)+" таму":X1(e.regular,t)}}var g7e=function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?"праз паўхвіліны":"паўхвіліны таму":"паўхвіліны"},v7e={lessThanXSeconds:Ro({regular:{one:"менш за секунду",singularNominative:"менш за {{count}} секунду",singularGenitive:"менш за {{count}} секунды",pluralGenitive:"менш за {{count}} секунд"},future:{one:"менш, чым праз секунду",singularNominative:"менш, чым праз {{count}} секунду",singularGenitive:"менш, чым праз {{count}} секунды",pluralGenitive:"менш, чым праз {{count}} секунд"}}),xSeconds:Ro({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду таму",singularGenitive:"{{count}} секунды таму",pluralGenitive:"{{count}} секунд таму"},future:{singularNominative:"праз {{count}} секунду",singularGenitive:"праз {{count}} секунды",pluralGenitive:"праз {{count}} секунд"}}),halfAMinute:g7e,lessThanXMinutes:Ro({regular:{one:"менш за хвіліну",singularNominative:"менш за {{count}} хвіліну",singularGenitive:"менш за {{count}} хвіліны",pluralGenitive:"менш за {{count}} хвілін"},future:{one:"менш, чым праз хвіліну",singularNominative:"менш, чым праз {{count}} хвіліну",singularGenitive:"менш, чым праз {{count}} хвіліны",pluralGenitive:"менш, чым праз {{count}} хвілін"}}),xMinutes:Ro({regular:{singularNominative:"{{count}} хвіліна",singularGenitive:"{{count}} хвіліны",pluralGenitive:"{{count}} хвілін"},past:{singularNominative:"{{count}} хвіліну таму",singularGenitive:"{{count}} хвіліны таму",pluralGenitive:"{{count}} хвілін таму"},future:{singularNominative:"праз {{count}} хвіліну",singularGenitive:"праз {{count}} хвіліны",pluralGenitive:"праз {{count}} хвілін"}}),aboutXHours:Ro({regular:{singularNominative:"каля {{count}} гадзіны",singularGenitive:"каля {{count}} гадзін",pluralGenitive:"каля {{count}} гадзін"},future:{singularNominative:"прыблізна праз {{count}} гадзіну",singularGenitive:"прыблізна праз {{count}} гадзіны",pluralGenitive:"прыблізна праз {{count}} гадзін"}}),xHours:Ro({regular:{singularNominative:"{{count}} гадзіна",singularGenitive:"{{count}} гадзіны",pluralGenitive:"{{count}} гадзін"},past:{singularNominative:"{{count}} гадзіну таму",singularGenitive:"{{count}} гадзіны таму",pluralGenitive:"{{count}} гадзін таму"},future:{singularNominative:"праз {{count}} гадзіну",singularGenitive:"праз {{count}} гадзіны",pluralGenitive:"праз {{count}} гадзін"}}),xDays:Ro({regular:{singularNominative:"{{count}} дзень",singularGenitive:"{{count}} дні",pluralGenitive:"{{count}} дзён"}}),aboutXWeeks:Ro({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xWeeks:Ro({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXMonths:Ro({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xMonths:Ro({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXYears:Ro({regular:{singularNominative:"каля {{count}} года",singularGenitive:"каля {{count}} гадоў",pluralGenitive:"каля {{count}} гадоў"},future:{singularNominative:"прыблізна праз {{count}} год",singularGenitive:"прыблізна праз {{count}} гады",pluralGenitive:"прыблізна праз {{count}} гадоў"}}),xYears:Ro({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} гады",pluralGenitive:"{{count}} гадоў"}}),overXYears:Ro({regular:{singularNominative:"больш за {{count}} год",singularGenitive:"больш за {{count}} гады",pluralGenitive:"больш за {{count}} гадоў"},future:{singularNominative:"больш, чым праз {{count}} год",singularGenitive:"больш, чым праз {{count}} гады",pluralGenitive:"больш, чым праз {{count}} гадоў"}}),almostXYears:Ro({regular:{singularNominative:"амаль {{count}} год",singularGenitive:"амаль {{count}} гады",pluralGenitive:"амаль {{count}} гадоў"},future:{singularNominative:"амаль праз {{count}} год",singularGenitive:"амаль праз {{count}} гады",pluralGenitive:"амаль праз {{count}} гадоў"}})},y7e=function(t,n,r){return r=r||{},v7e[t](n,r)},b7e={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},w7e={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},S7e={any:"{{date}}, {{time}}"},E7e={date:Ne({formats:b7e,defaultWidth:"full"}),time:Ne({formats:w7e,defaultWidth:"full"}),dateTime:Ne({formats:S7e,defaultWidth:"any"})};function wi(e,t,n){he(2,arguments);var r=Qd(e,n),a=Qd(t,n);return r.getTime()===a.getTime()}var T4=["нядзелю","панядзелак","аўторак","сераду","чацвер","пятніцу","суботу"];function T7e(e){var t=T4[e];switch(e){case 0:case 3:case 5:case 6:return"'у мінулую "+t+" а' p";case 1:case 2:case 4:return"'у мінулы "+t+" а' p"}}function Nae(e){var t=T4[e];return"'у "+t+" а' p"}function C7e(e){var t=T4[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступную "+t+" а' p";case 1:case 2:case 4:return"'у наступны "+t+" а' p"}}var k7e=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?Nae(i):T7e(i)},x7e=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?Nae(i):C7e(i)},_7e={lastWeek:k7e,yesterday:"'учора а' p",today:"'сёння а' p",tomorrow:"'заўтра а' p",nextWeek:x7e,other:"P"},O7e=function(t,n,r,a){var i=_7e[t];return typeof i=="function"?i(n,r,a):i},R7e={narrow:["да н.э.","н.э."],abbreviated:["да н. э.","н. э."],wide:["да нашай эры","нашай эры"]},P7e={narrow:["1","2","3","4"],abbreviated:["1-ы кв.","2-і кв.","3-і кв.","4-ы кв."],wide:["1-ы квартал","2-і квартал","3-і квартал","4-ы квартал"]},A7e={narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","май","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзень","люты","сакавік","красавік","май","чэрвень","ліпень","жнівень","верасень","кастрычнік","лістапад","снежань"]},N7e={narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","мая","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзеня","лютага","сакавіка","красавіка","мая","чэрвеня","ліпеня","жніўня","верасня","кастрычніка","лістапада","снежня"]},M7e={narrow:["Н","П","А","С","Ч","П","С"],short:["нд","пн","аў","ср","чц","пт","сб"],abbreviated:["нядз","пан","аўт","сер","чац","пят","суб"],wide:["нядзеля","панядзелак","аўторак","серада","чацвер","пятніца","субота"]},I7e={narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніца",afternoon:"дзень",evening:"вечар",night:"ноч"}},D7e={narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніцы",afternoon:"дня",evening:"вечара",night:"ночы"}},$7e=function(t,n){var r=String(n==null?void 0:n.unit),a=Number(t),i;return r==="date"?i="-га":r==="hour"||r==="minute"||r==="second"?i="-я":i=(a%10===2||a%10===3)&&a%100!==12&&a%100!==13?"-і":"-ы",a+i},L7e={ordinalNumber:$7e,era:oe({values:R7e,defaultWidth:"wide"}),quarter:oe({values:P7e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:A7e,defaultWidth:"wide",formattingValues:N7e,defaultFormattingWidth:"wide"}),day:oe({values:M7e,defaultWidth:"wide"}),dayPeriod:oe({values:I7e,defaultWidth:"any",formattingValues:D7e,defaultFormattingWidth:"wide"})},F7e=/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i,j7e=/\d+/i,U7e={narrow:/^((да )?н\.?\s?э\.?)/i,abbreviated:/^((да )?н\.?\s?э\.?)/i,wide:/^(да нашай эры|нашай эры|наша эра)/i},B7e={any:[/^д/i,/^н/i]},W7e={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыі]?)? кв.?/i,wide:/^[1234](-?[ыі]?)? квартал/i},z7e={any:[/1/i,/2/i,/3/i,/4/i]},q7e={narrow:/^[слкмчжв]/i,abbreviated:/^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i,wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i},H7e={narrow:[/^с/i,/^л/i,/^с/i,/^к/i,/^м/i,/^ч/i,/^л/i,/^ж/i,/^в/i,/^к/i,/^л/i,/^с/i],any:[/^ст/i,/^лю/i,/^са/i,/^кр/i,/^ма/i,/^ч/i,/^ліп/i,/^ж/i,/^в/i,/^ка/i,/^ліс/i,/^сн/i]},V7e={narrow:/^[нпасч]/i,short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i,wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i},G7e={narrow:[/^н/i,/^п/i,/^а/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[ан]/i,/^а/i,/^с[ер]/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},Y7e={narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i},K7e={any:{am:/^дп/i,pm:/^пп/i,midnight:/^поўн/i,noon:/^поўд/i,morning:/^р/i,afternoon:/^д[зн]/i,evening:/^в/i,night:/^н/i}},X7e={ordinalNumber:Xt({matchPattern:F7e,parsePattern:j7e,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:U7e,defaultMatchWidth:"wide",parsePatterns:B7e,defaultParseWidth:"any"}),quarter:se({matchPatterns:W7e,defaultMatchWidth:"wide",parsePatterns:z7e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:q7e,defaultMatchWidth:"wide",parsePatterns:H7e,defaultParseWidth:"any"}),day:se({matchPatterns:V7e,defaultMatchWidth:"wide",parsePatterns:G7e,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Y7e,defaultMatchWidth:"wide",parsePatterns:K7e,defaultParseWidth:"any"})},Q7e={code:"be",formatDistance:y7e,formatLong:E7e,formatRelative:O7e,localize:L7e,match:X7e,options:{weekStartsOn:1,firstWeekContainsDate:1}};const J7e=Object.freeze(Object.defineProperty({__proto__:null,default:Q7e},Symbol.toStringTag,{value:"Module"})),Z7e=jt(J7e);var eVe={lessThanXSeconds:{one:"по-малко от секунда",other:"по-малко от {{count}} секунди"},xSeconds:{one:"1 секунда",other:"{{count}} секунди"},halfAMinute:"половин минута",lessThanXMinutes:{one:"по-малко от минута",other:"по-малко от {{count}} минути"},xMinutes:{one:"1 минута",other:"{{count}} минути"},aboutXHours:{one:"около час",other:"около {{count}} часа"},xHours:{one:"1 час",other:"{{count}} часа"},xDays:{one:"1 ден",other:"{{count}} дни"},aboutXWeeks:{one:"около седмица",other:"около {{count}} седмици"},xWeeks:{one:"1 седмица",other:"{{count}} седмици"},aboutXMonths:{one:"около месец",other:"около {{count}} месеца"},xMonths:{one:"1 месец",other:"{{count}} месеца"},aboutXYears:{one:"около година",other:"около {{count}} години"},xYears:{one:"1 година",other:"{{count}} години"},overXYears:{one:"над година",other:"над {{count}} години"},almostXYears:{one:"почти година",other:"почти {{count}} години"}},tVe=function(t,n,r){var a,i=eVe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"след "+a:"преди "+a:a},nVe={full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},rVe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},aVe={any:"{{date}} {{time}}"},iVe={date:Ne({formats:nVe,defaultWidth:"full"}),time:Ne({formats:rVe,defaultWidth:"full"}),dateTime:Ne({formats:aVe,defaultWidth:"any"})},C4=["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"];function oVe(e){var t=C4[e];switch(e){case 0:case 3:case 6:return"'миналата "+t+" в' p";case 1:case 2:case 4:case 5:return"'миналия "+t+" в' p"}}function Mae(e){var t=C4[e];return e===2?"'във "+t+" в' p":"'в "+t+" в' p"}function sVe(e){var t=C4[e];switch(e){case 0:case 3:case 6:return"'следващата "+t+" в' p";case 1:case 2:case 4:case 5:return"'следващия "+t+" в' p"}}var lVe=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?Mae(i):oVe(i)},uVe=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?Mae(i):sVe(i)},cVe={lastWeek:lVe,yesterday:"'вчера в' p",today:"'днес в' p",tomorrow:"'утре в' p",nextWeek:uVe,other:"P"},dVe=function(t,n,r,a){var i=cVe[t];return typeof i=="function"?i(n,r,a):i},fVe={narrow:["пр.н.е.","н.е."],abbreviated:["преди н. е.","н. е."],wide:["преди новата ера","новата ера"]},pVe={narrow:["1","2","3","4"],abbreviated:["1-во тримес.","2-ро тримес.","3-то тримес.","4-то тримес."],wide:["1-во тримесечие","2-ро тримесечие","3-то тримесечие","4-то тримесечие"]},hVe={abbreviated:["яну","фев","мар","апр","май","юни","юли","авг","сеп","окт","ное","дек"],wide:["януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември"]},mVe={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вто","сря","чет","пет","съб"],wide:["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"]},gVe={wide:{am:"преди обяд",pm:"след обяд",midnight:"в полунощ",noon:"на обяд",morning:"сутринта",afternoon:"следобед",evening:"вечерта",night:"през нощта"}};function vVe(e){return e==="year"||e==="week"||e==="minute"||e==="second"}function yVe(e){return e==="quarter"}function ev(e,t,n,r,a){var i=yVe(t)?a:vVe(t)?r:n;return e+"-"+i}var bVe=function(t,n){var r=Number(t),a=n==null?void 0:n.unit;if(r===0)return ev(0,a,"ев","ева","ево");if(r%1e3===0)return ev(r,a,"ен","на","но");if(r%100===0)return ev(r,a,"тен","тна","тно");var i=r%100;if(i>20||i<10)switch(i%10){case 1:return ev(r,a,"ви","ва","во");case 2:return ev(r,a,"ри","ра","ро");case 7:case 8:return ev(r,a,"ми","ма","мо")}return ev(r,a,"ти","та","то")},wVe={ordinalNumber:bVe,era:oe({values:fVe,defaultWidth:"wide"}),quarter:oe({values:pVe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:hVe,defaultWidth:"wide"}),day:oe({values:mVe,defaultWidth:"wide"}),dayPeriod:oe({values:gVe,defaultWidth:"wide"})},SVe=/^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i,EVe=/\d+/i,TVe={narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(преди новата ера|новата ера|нова ера)/i},CVe={any:[/^п/i,/^н/i]},kVe={narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?o?)? тримес.?/i,wide:/^[1234](-?[врт]?о?)? тримесечие/i},xVe={any:[/1/i,/2/i,/3/i,/4/i]},_Ve={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)/i,abbreviated:/^(нед|пон|вто|сря|чет|пет|съб)/i,wide:/^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i},OVe={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[ъб]/i]},RVe={abbreviated:/^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i,wide:/^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i},PVe={any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^юн/i,/^юл/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},AVe={any:/^(преди о|след о|в по|на о|през|веч|сут|следо)/i},NVe={any:{am:/^преди о/i,pm:/^след о/i,midnight:/^в пол/i,noon:/^на об/i,morning:/^сут/i,afternoon:/^следо/i,evening:/^веч/i,night:/^през н/i}},MVe={ordinalNumber:Xt({matchPattern:SVe,parsePattern:EVe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:TVe,defaultMatchWidth:"wide",parsePatterns:CVe,defaultParseWidth:"any"}),quarter:se({matchPatterns:kVe,defaultMatchWidth:"wide",parsePatterns:xVe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:RVe,defaultMatchWidth:"wide",parsePatterns:PVe,defaultParseWidth:"any"}),day:se({matchPatterns:_Ve,defaultMatchWidth:"wide",parsePatterns:OVe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:AVe,defaultMatchWidth:"any",parsePatterns:NVe,defaultParseWidth:"any"})},IVe={code:"bg",formatDistance:tVe,formatLong:iVe,formatRelative:dVe,localize:wVe,match:MVe,options:{weekStartsOn:1,firstWeekContainsDate:1}};const DVe=Object.freeze(Object.defineProperty({__proto__:null,default:IVe},Symbol.toStringTag,{value:"Module"})),$Ve=jt(DVe);var LVe={locale:{1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"}},FVe={narrow:["খ্রিঃপূঃ","খ্রিঃ"],abbreviated:["খ্রিঃপূর্ব","খ্রিঃ"],wide:["খ্রিস্টপূর্ব","খ্রিস্টাব্দ"]},jVe={narrow:["১","২","৩","৪"],abbreviated:["১ত্রৈ","২ত্রৈ","৩ত্রৈ","৪ত্রৈ"],wide:["১ম ত্রৈমাসিক","২য় ত্রৈমাসিক","৩য় ত্রৈমাসিক","৪র্থ ত্রৈমাসিক"]},UVe={narrow:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],abbreviated:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],wide:["জানুয়ারি","ফেব্রুয়ারি","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর"]},BVe={narrow:["র","সো","ম","বু","বৃ","শু","শ"],short:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],abbreviated:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],wide:["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার ","শুক্রবার","শনিবার"]},WVe={narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}},zVe={narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}};function qVe(e,t){if(e>18&&e<=31)return t+"শে";switch(e){case 1:return t+"লা";case 2:case 3:return t+"রা";case 4:return t+"ঠা";default:return t+"ই"}}var HVe=function(t,n){var r=Number(t),a=Iae(r),i=n==null?void 0:n.unit;if(i==="date")return qVe(r,a);if(r>10||r===0)return a+"তম";var o=r%10;switch(o){case 2:case 3:return a+"য়";case 4:return a+"র্থ";case 6:return a+"ষ্ঠ";default:return a+"ম"}};function Iae(e){return e.toString().replace(/\d/g,function(t){return LVe.locale[t]})}var VVe={ordinalNumber:HVe,era:oe({values:FVe,defaultWidth:"wide"}),quarter:oe({values:jVe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:UVe,defaultWidth:"wide"}),day:oe({values:BVe,defaultWidth:"wide"}),dayPeriod:oe({values:WVe,defaultWidth:"wide",formattingValues:zVe,defaultFormattingWidth:"wide"})},GVe={lessThanXSeconds:{one:"প্রায় ১ সেকেন্ড",other:"প্রায় {{count}} সেকেন্ড"},xSeconds:{one:"১ সেকেন্ড",other:"{{count}} সেকেন্ড"},halfAMinute:"আধ মিনিট",lessThanXMinutes:{one:"প্রায় ১ মিনিট",other:"প্রায় {{count}} মিনিট"},xMinutes:{one:"১ মিনিট",other:"{{count}} মিনিট"},aboutXHours:{one:"প্রায় ১ ঘন্টা",other:"প্রায় {{count}} ঘন্টা"},xHours:{one:"১ ঘন্টা",other:"{{count}} ঘন্টা"},xDays:{one:"১ দিন",other:"{{count}} দিন"},aboutXWeeks:{one:"প্রায় ১ সপ্তাহ",other:"প্রায় {{count}} সপ্তাহ"},xWeeks:{one:"১ সপ্তাহ",other:"{{count}} সপ্তাহ"},aboutXMonths:{one:"প্রায় ১ মাস",other:"প্রায় {{count}} মাস"},xMonths:{one:"১ মাস",other:"{{count}} মাস"},aboutXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"},xYears:{one:"১ বছর",other:"{{count}} বছর"},overXYears:{one:"১ বছরের বেশি",other:"{{count}} বছরের বেশি"},almostXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"}},YVe=function(t,n,r){var a,i=GVe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",Iae(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" এর মধ্যে":a+" আগে":a},KVe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},XVe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},QVe={full:"{{date}} {{time}} 'সময়'",long:"{{date}} {{time}} 'সময়'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},JVe={date:Ne({formats:KVe,defaultWidth:"full"}),time:Ne({formats:XVe,defaultWidth:"full"}),dateTime:Ne({formats:QVe,defaultWidth:"full"})},ZVe={lastWeek:"'গত' eeee 'সময়' p",yesterday:"'গতকাল' 'সময়' p",today:"'আজ' 'সময়' p",tomorrow:"'আগামীকাল' 'সময়' p",nextWeek:"eeee 'সময়' p",other:"P"},eGe=function(t,n,r,a){return ZVe[t]},tGe=/^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i,nGe=/\d+/i,rGe={narrow:/^(খ্রিঃপূঃ|খ্রিঃ)/i,abbreviated:/^(খ্রিঃপূর্ব|খ্রিঃ)/i,wide:/^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i},aGe={narrow:[/^খ্রিঃপূঃ/i,/^খ্রিঃ/i],abbreviated:[/^খ্রিঃপূর্ব/i,/^খ্রিঃ/i],wide:[/^খ্রিস্টপূর্ব/i,/^খ্রিস্টাব্দ/i]},iGe={narrow:/^[১২৩৪]/i,abbreviated:/^[১২৩৪]ত্রৈ/i,wide:/^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i},oGe={any:[/১/i,/২/i,/৩/i,/৪/i]},sGe={narrow:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,abbreviated:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,wide:/^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i},lGe={any:[/^জানু/i,/^ফেব্রু/i,/^মার্চ/i,/^এপ্রিল/i,/^মে/i,/^জুন/i,/^জুলাই/i,/^আগস্ট/i,/^সেপ্ট/i,/^অক্টো/i,/^নভে/i,/^ডিসে/i]},uGe={narrow:/^(র|সো|ম|বু|বৃ|শু|শ)+/i,short:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,abbreviated:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,wide:/^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i},cGe={narrow:[/^র/i,/^সো/i,/^ম/i,/^বু/i,/^বৃ/i,/^শু/i,/^শ/i],short:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],abbreviated:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],wide:[/^রবিবার/i,/^সোমবার/i,/^মঙ্গলবার/i,/^বুধবার/i,/^বৃহস্পতিবার /i,/^শুক্রবার/i,/^শনিবার/i]},dGe={narrow:/^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,abbreviated:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,wide:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i},fGe={any:{am:/^পূ/i,pm:/^অপ/i,midnight:/^মধ্যরাত/i,noon:/^মধ্যাহ্ন/i,morning:/সকাল/i,afternoon:/বিকাল/i,evening:/সন্ধ্যা/i,night:/রাত/i}},pGe={ordinalNumber:Xt({matchPattern:tGe,parsePattern:nGe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:rGe,defaultMatchWidth:"wide",parsePatterns:aGe,defaultParseWidth:"wide"}),quarter:se({matchPatterns:iGe,defaultMatchWidth:"wide",parsePatterns:oGe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:sGe,defaultMatchWidth:"wide",parsePatterns:lGe,defaultParseWidth:"any"}),day:se({matchPatterns:uGe,defaultMatchWidth:"wide",parsePatterns:cGe,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:dGe,defaultMatchWidth:"wide",parsePatterns:fGe,defaultParseWidth:"any"})},hGe={code:"bn",formatDistance:YVe,formatLong:JVe,formatRelative:eGe,localize:VVe,match:pGe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const mGe=Object.freeze(Object.defineProperty({__proto__:null,default:hGe},Symbol.toStringTag,{value:"Module"})),gGe=jt(mGe);var vGe={lessThanXSeconds:{one:"menys d'un segon",eleven:"menys d'onze segons",other:"menys de {{count}} segons"},xSeconds:{one:"1 segon",other:"{{count}} segons"},halfAMinute:"mig minut",lessThanXMinutes:{one:"menys d'un minut",eleven:"menys d'onze minuts",other:"menys de {{count}} minuts"},xMinutes:{one:"1 minut",other:"{{count}} minuts"},aboutXHours:{one:"aproximadament una hora",other:"aproximadament {{count}} hores"},xHours:{one:"1 hora",other:"{{count}} hores"},xDays:{one:"1 dia",other:"{{count}} dies"},aboutXWeeks:{one:"aproximadament una setmana",other:"aproximadament {{count}} setmanes"},xWeeks:{one:"1 setmana",other:"{{count}} setmanes"},aboutXMonths:{one:"aproximadament un mes",other:"aproximadament {{count}} mesos"},xMonths:{one:"1 mes",other:"{{count}} mesos"},aboutXYears:{one:"aproximadament un any",other:"aproximadament {{count}} anys"},xYears:{one:"1 any",other:"{{count}} anys"},overXYears:{one:"més d'un any",eleven:"més d'onze anys",other:"més de {{count}} anys"},almostXYears:{one:"gairebé un any",other:"gairebé {{count}} anys"}},yGe=function(t,n,r){var a,i=vGe[t];return typeof i=="string"?a=i:n===1?a=i.one:n===11&&i.eleven?a=i.eleven:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+a:"fa "+a:a},bGe={full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},wGe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},SGe={full:"{{date}} 'a les' {{time}}",long:"{{date}} 'a les' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},EGe={date:Ne({formats:bGe,defaultWidth:"full"}),time:Ne({formats:wGe,defaultWidth:"full"}),dateTime:Ne({formats:SGe,defaultWidth:"full"})},TGe={lastWeek:"'el' eeee 'passat a la' LT",yesterday:"'ahir a la' p",today:"'avui a la' p",tomorrow:"'demà a la' p",nextWeek:"eeee 'a la' p",other:"P"},CGe={lastWeek:"'el' eeee 'passat a les' p",yesterday:"'ahir a les' p",today:"'avui a les' p",tomorrow:"'demà a les' p",nextWeek:"eeee 'a les' p",other:"P"},kGe=function(t,n,r,a){return n.getUTCHours()!==1?CGe[t]:TGe[t]},xGe={narrow:["aC","dC"],abbreviated:["a. de C.","d. de C."],wide:["abans de Crist","després de Crist"]},_Ge={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1r trimestre","2n trimestre","3r trimestre","4t trimestre"]},OGe={narrow:["GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS"],abbreviated:["gen.","febr.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],wide:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"]},RGe={narrow:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],short:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],wide:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"]},PGe={narrow:{am:"am",pm:"pm",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"}},AGe={narrow:{am:"am",pm:"pm",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},abbreviated:{am:"AM",pm:"PM",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"}},NGe=function(t,n){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"r";case 2:return r+"n";case 3:return r+"r";case 4:return r+"t"}return r+"è"},MGe={ordinalNumber:NGe,era:oe({values:xGe,defaultWidth:"wide"}),quarter:oe({values:_Ge,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:OGe,defaultWidth:"wide"}),day:oe({values:RGe,defaultWidth:"wide"}),dayPeriod:oe({values:PGe,defaultWidth:"wide",formattingValues:AGe,defaultFormattingWidth:"wide"})},IGe=/^(\d+)(è|r|n|r|t)?/i,DGe=/\d+/i,$Ge={narrow:/^(aC|dC)/i,abbreviated:/^(a. de C.|d. de C.)/i,wide:/^(abans de Crist|despr[eé]s de Crist)/i},LGe={narrow:[/^aC/i,/^dC/i],abbreviated:[/^(a. de C.)/i,/^(d. de C.)/i],wide:[/^(abans de Crist)/i,/^(despr[eé]s de Crist)/i]},FGe={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](è|r|n|r|t)? trimestre/i},jGe={any:[/1/i,/2/i,/3/i,/4/i]},UGe={narrow:/^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i,abbreviated:/^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i,wide:/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i},BGe={narrow:[/^GN/i,/^FB/i,/^MÇ/i,/^AB/i,/^MG/i,/^JN/i,/^JL/i,/^AG/i,/^ST/i,/^OC/i,/^NV/i,/^DS/i],abbreviated:[/^gen./i,/^febr./i,/^març/i,/^abr./i,/^maig/i,/^juny/i,/^jul./i,/^ag./i,/^set./i,/^oct./i,/^nov./i,/^des./i],wide:[/^gener/i,/^febrer/i,/^març/i,/^abril/i,/^maig/i,/^juny/i,/^juliol/i,/^agost/i,/^setembre/i,/^octubre/i,/^novembre/i,/^desembre/i]},WGe={narrow:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,short:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,abbreviated:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,wide:/^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i},zGe={narrow:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],abbreviated:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],wide:[/^diumenge/i,/^dilluns/i,/^dimarts/i,/^dimecres/i,/^dijous/i,/^divendres/i,/^disssabte/i]},qGe={narrow:/^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i,abbreviated:/^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i,wide:/^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i},HGe={any:{am:/^a/i,pm:/^p/i,midnight:/^mitjanit/i,noon:/^migdia/i,morning:/matí/i,afternoon:/tarda/i,evening:/vespre/i,night:/nit/i}},VGe={ordinalNumber:Xt({matchPattern:IGe,parsePattern:DGe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:$Ge,defaultMatchWidth:"wide",parsePatterns:LGe,defaultParseWidth:"wide"}),quarter:se({matchPatterns:FGe,defaultMatchWidth:"wide",parsePatterns:jGe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:UGe,defaultMatchWidth:"wide",parsePatterns:BGe,defaultParseWidth:"wide"}),day:se({matchPatterns:WGe,defaultMatchWidth:"wide",parsePatterns:zGe,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:qGe,defaultMatchWidth:"wide",parsePatterns:HGe,defaultParseWidth:"any"})},GGe={code:"ca",formatDistance:yGe,formatLong:EGe,formatRelative:kGe,localize:MGe,match:VGe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const YGe=Object.freeze(Object.defineProperty({__proto__:null,default:GGe},Symbol.toStringTag,{value:"Module"})),KGe=jt(YGe);var XGe={lessThanXSeconds:{one:{regular:"méně než sekunda",past:"před méně než sekundou",future:"za méně než sekundu"},few:{regular:"méně než {{count}} sekundy",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekundy"},many:{regular:"méně než {{count}} sekund",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekund"}},xSeconds:{one:{regular:"sekunda",past:"před sekundou",future:"za sekundu"},few:{regular:"{{count}} sekundy",past:"před {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"před {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"půl minuty",past:"před půl minutou",future:"za půl minuty"}},lessThanXMinutes:{one:{regular:"méně než minuta",past:"před méně než minutou",future:"za méně než minutu"},few:{regular:"méně než {{count}} minuty",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minuty"},many:{regular:"méně než {{count}} minut",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minut"}},xMinutes:{one:{regular:"minuta",past:"před minutou",future:"za minutu"},few:{regular:"{{count}} minuty",past:"před {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"před {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"přibližně hodina",past:"přibližně před hodinou",future:"přibližně za hodinu"},few:{regular:"přibližně {{count}} hodiny",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodiny"},many:{regular:"přibližně {{count}} hodin",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodin"}},xHours:{one:{regular:"hodina",past:"před hodinou",future:"za hodinu"},few:{regular:"{{count}} hodiny",past:"před {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"před {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"den",past:"před dnem",future:"za den"},few:{regular:"{{count}} dny",past:"před {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dní",past:"před {{count}} dny",future:"za {{count}} dní"}},aboutXWeeks:{one:{regular:"přibližně týden",past:"přibližně před týdnem",future:"přibližně za týden"},few:{regular:"přibližně {{count}} týdny",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdny"},many:{regular:"přibližně {{count}} týdnů",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdnů"}},xWeeks:{one:{regular:"týden",past:"před týdnem",future:"za týden"},few:{regular:"{{count}} týdny",past:"před {{count}} týdny",future:"za {{count}} týdny"},many:{regular:"{{count}} týdnů",past:"před {{count}} týdny",future:"za {{count}} týdnů"}},aboutXMonths:{one:{regular:"přibližně měsíc",past:"přibližně před měsícem",future:"přibližně za měsíc"},few:{regular:"přibližně {{count}} měsíce",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíce"},many:{regular:"přibližně {{count}} měsíců",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíců"}},xMonths:{one:{regular:"měsíc",past:"před měsícem",future:"za měsíc"},few:{regular:"{{count}} měsíce",past:"před {{count}} měsíci",future:"za {{count}} měsíce"},many:{regular:"{{count}} měsíců",past:"před {{count}} měsíci",future:"za {{count}} měsíců"}},aboutXYears:{one:{regular:"přibližně rok",past:"přibližně před rokem",future:"přibližně za rok"},few:{regular:"přibližně {{count}} roky",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roky"},many:{regular:"přibližně {{count}} roků",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roků"}},xYears:{one:{regular:"rok",past:"před rokem",future:"za rok"},few:{regular:"{{count}} roky",past:"před {{count}} roky",future:"za {{count}} roky"},many:{regular:"{{count}} roků",past:"před {{count}} roky",future:"za {{count}} roků"}},overXYears:{one:{regular:"více než rok",past:"před více než rokem",future:"za více než rok"},few:{regular:"více než {{count}} roky",past:"před více než {{count}} roky",future:"za více než {{count}} roky"},many:{regular:"více než {{count}} roků",past:"před více než {{count}} roky",future:"za více než {{count}} roků"}},almostXYears:{one:{regular:"skoro rok",past:"skoro před rokem",future:"skoro za rok"},few:{regular:"skoro {{count}} roky",past:"skoro před {{count}} roky",future:"skoro za {{count}} roky"},many:{regular:"skoro {{count}} roků",past:"skoro před {{count}} roky",future:"skoro za {{count}} roků"}}},QGe=function(t,n,r){var a,i=XGe[t];i.type==="other"?a=i.other:n===1?a=i.one:n>1&&n<5?a=i.few:a=i.many;var o=(r==null?void 0:r.addSuffix)===!0,l=r==null?void 0:r.comparison,u;return o&&l===-1?u=a.past:o&&l===1?u=a.future:u=a.regular,u.replace("{{count}}",String(n))},JGe={full:"EEEE, d. MMMM yyyy",long:"d. MMMM yyyy",medium:"d. M. yyyy",short:"dd.MM.yyyy"},ZGe={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},eYe={full:"{{date}} 'v' {{time}}",long:"{{date}} 'v' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},tYe={date:Ne({formats:JGe,defaultWidth:"full"}),time:Ne({formats:ZGe,defaultWidth:"full"}),dateTime:Ne({formats:eYe,defaultWidth:"full"})},nYe=["neděli","pondělí","úterý","středu","čtvrtek","pátek","sobotu"],rYe={lastWeek:"'poslední' eeee 've' p",yesterday:"'včera v' p",today:"'dnes v' p",tomorrow:"'zítra v' p",nextWeek:function(t){var n=t.getUTCDay();return"'v "+nYe[n]+" o' p"},other:"P"},aYe=function(t,n){var r=rYe[t];return typeof r=="function"?r(n):r},iYe={narrow:["př. n. l.","n. l."],abbreviated:["př. n. l.","n. l."],wide:["před naším letopočtem","našeho letopočtu"]},oYe={narrow:["1","2","3","4"],abbreviated:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"],wide:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"]},sYe={narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"]},lYe={narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"]},uYe={narrow:["ne","po","út","st","čt","pá","so"],short:["ne","po","út","st","čt","pá","so"],abbreviated:["ned","pon","úte","stř","čtv","pát","sob"],wide:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"]},cYe={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},dYe={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},fYe=function(t,n){var r=Number(t);return r+"."},pYe={ordinalNumber:fYe,era:oe({values:iYe,defaultWidth:"wide"}),quarter:oe({values:oYe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:sYe,defaultWidth:"wide",formattingValues:lYe,defaultFormattingWidth:"wide"}),day:oe({values:uYe,defaultWidth:"wide"}),dayPeriod:oe({values:cYe,defaultWidth:"wide",formattingValues:dYe,defaultFormattingWidth:"wide"})},hYe=/^(\d+)\.?/i,mYe=/\d+/i,gYe={narrow:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i},vYe={any:[/^p[řr]/i,/^(po|n)/i]},yYe={narrow:/^[1234]/i,abbreviated:/^[1234]\. [čc]tvrtlet[íi]/i,wide:/^[1234]\. [čc]tvrtlet[íi]/i},bYe={any:[/1/i,/2/i,/3/i,/4/i]},wYe={narrow:/^[lúubdkčcszřrlp]/i,abbreviated:/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,wide:/^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i},SYe={narrow:[/^l/i,/^[úu]/i,/^b/i,/^d/i,/^k/i,/^[čc]/i,/^[čc]/i,/^s/i,/^z/i,/^[řr]/i,/^l/i,/^p/i],any:[/^led/i,/^[úu]n/i,/^b[řr]e/i,/^dub/i,/^kv[ěe]/i,/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,/^[čc]vc|[čc]erven(ec|ce)/i,/^srp/i,/^z[áa][řr]/i,/^[řr][íi]j/i,/^lis/i,/^pro/i]},EYe={narrow:/^[npuúsčps]/i,short:/^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,abbreviated:/^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,wide:/^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i},TYe={narrow:[/^n/i,/^p/i,/^[úu]/i,/^s/i,/^[čc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[úu]t/i,/^st/i,/^[čc]t/i,/^p[áa]/i,/^so/i]},CYe={any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i},kYe={any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[ůu]lnoc/i,noon:/^poledne/i,morning:/r[áa]no/i,afternoon:/odpoledne/i,evening:/ve[čc]er/i,night:/noc/i}},xYe={ordinalNumber:Xt({matchPattern:hYe,parsePattern:mYe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:gYe,defaultMatchWidth:"wide",parsePatterns:vYe,defaultParseWidth:"any"}),quarter:se({matchPatterns:yYe,defaultMatchWidth:"wide",parsePatterns:bYe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:wYe,defaultMatchWidth:"wide",parsePatterns:SYe,defaultParseWidth:"any"}),day:se({matchPatterns:EYe,defaultMatchWidth:"wide",parsePatterns:TYe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:CYe,defaultMatchWidth:"any",parsePatterns:kYe,defaultParseWidth:"any"})},_Ye={code:"cs",formatDistance:QGe,formatLong:tYe,formatRelative:aYe,localize:pYe,match:xYe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const OYe=Object.freeze(Object.defineProperty({__proto__:null,default:_Ye},Symbol.toStringTag,{value:"Module"})),RYe=jt(OYe);var PYe={lessThanXSeconds:{one:"llai na eiliad",other:"llai na {{count}} eiliad"},xSeconds:{one:"1 eiliad",other:"{{count}} eiliad"},halfAMinute:"hanner munud",lessThanXMinutes:{one:"llai na munud",two:"llai na 2 funud",other:"llai na {{count}} munud"},xMinutes:{one:"1 munud",two:"2 funud",other:"{{count}} munud"},aboutXHours:{one:"tua 1 awr",other:"tua {{count}} awr"},xHours:{one:"1 awr",other:"{{count}} awr"},xDays:{one:"1 diwrnod",two:"2 ddiwrnod",other:"{{count}} diwrnod"},aboutXWeeks:{one:"tua 1 wythnos",two:"tua pythefnos",other:"tua {{count}} wythnos"},xWeeks:{one:"1 wythnos",two:"pythefnos",other:"{{count}} wythnos"},aboutXMonths:{one:"tua 1 mis",two:"tua 2 fis",other:"tua {{count}} mis"},xMonths:{one:"1 mis",two:"2 fis",other:"{{count}} mis"},aboutXYears:{one:"tua 1 flwyddyn",two:"tua 2 flynedd",other:"tua {{count}} mlynedd"},xYears:{one:"1 flwyddyn",two:"2 flynedd",other:"{{count}} mlynedd"},overXYears:{one:"dros 1 flwyddyn",two:"dros 2 flynedd",other:"dros {{count}} mlynedd"},almostXYears:{one:"bron 1 flwyddyn",two:"bron 2 flynedd",other:"bron {{count}} mlynedd"}},AYe=function(t,n,r){var a,i=PYe[t];return typeof i=="string"?a=i:n===1?a=i.one:n===2&&i.two?a=i.two:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"mewn "+a:a+" yn ôl":a},NYe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},MYe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},IYe={full:"{{date}} 'am' {{time}}",long:"{{date}} 'am' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},DYe={date:Ne({formats:NYe,defaultWidth:"full"}),time:Ne({formats:MYe,defaultWidth:"full"}),dateTime:Ne({formats:IYe,defaultWidth:"full"})},$Ye={lastWeek:"eeee 'diwethaf am' p",yesterday:"'ddoe am' p",today:"'heddiw am' p",tomorrow:"'yfory am' p",nextWeek:"eeee 'am' p",other:"P"},LYe=function(t,n,r,a){return $Ye[t]},FYe={narrow:["C","O"],abbreviated:["CC","OC"],wide:["Cyn Crist","Ar ôl Crist"]},jYe={narrow:["1","2","3","4"],abbreviated:["Ch1","Ch2","Ch3","Ch4"],wide:["Chwarter 1af","2ail chwarter","3ydd chwarter","4ydd chwarter"]},UYe={narrow:["I","Ch","Ma","E","Mi","Me","G","A","Md","H","T","Rh"],abbreviated:["Ion","Chwe","Maw","Ebr","Mai","Meh","Gor","Aws","Med","Hyd","Tach","Rhag"],wide:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},BYe={narrow:["S","Ll","M","M","I","G","S"],short:["Su","Ll","Ma","Me","Ia","Gw","Sa"],abbreviated:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],wide:["dydd Sul","dydd Llun","dydd Mawrth","dydd Mercher","dydd Iau","dydd Gwener","dydd Sadwrn"]},WYe={narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"}},zYe={narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"}},qYe=function(t,n){var r=Number(t);if(r<20)switch(r){case 0:return r+"fed";case 1:return r+"af";case 2:return r+"ail";case 3:case 4:return r+"ydd";case 5:case 6:return r+"ed";case 7:case 8:case 9:case 10:case 12:case 15:case 18:return r+"fed";case 11:case 13:case 14:case 16:case 17:case 19:return r+"eg"}else if(r>=50&&r<=60||r===80||r>=100)return r+"fed";return r+"ain"},HYe={ordinalNumber:qYe,era:oe({values:FYe,defaultWidth:"wide"}),quarter:oe({values:jYe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:UYe,defaultWidth:"wide"}),day:oe({values:BYe,defaultWidth:"wide"}),dayPeriod:oe({values:WYe,defaultWidth:"wide",formattingValues:zYe,defaultFormattingWidth:"wide"})},VYe=/^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i,GYe=/\d+/i,YYe={narrow:/^(c|o)/i,abbreviated:/^(c\.?\s?c\.?|o\.?\s?c\.?)/i,wide:/^(cyn christ|ar ôl crist|ar ol crist)/i},KYe={wide:[/^c/i,/^(ar ôl crist|ar ol crist)/i],any:[/^c/i,/^o/i]},XYe={narrow:/^[1234]/i,abbreviated:/^ch[1234]/i,wide:/^(chwarter 1af)|([234](ail|ydd)? chwarter)/i},QYe={any:[/1/i,/2/i,/3/i,/4/i]},JYe={narrow:/^(i|ch|m|e|g|a|h|t|rh)/i,abbreviated:/^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i,wide:/^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i},ZYe={narrow:[/^i/i,/^ch/i,/^m/i,/^e/i,/^m/i,/^m/i,/^g/i,/^a/i,/^m/i,/^h/i,/^t/i,/^rh/i],any:[/^io/i,/^ch/i,/^maw/i,/^e/i,/^mai/i,/^meh/i,/^g/i,/^a/i,/^med/i,/^h/i,/^t/i,/^rh/i]},eKe={narrow:/^(s|ll|m|i|g)/i,short:/^(su|ll|ma|me|ia|gw|sa)/i,abbreviated:/^(sul|llun|maw|mer|iau|gwe|sad)/i,wide:/^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i},tKe={narrow:[/^s/i,/^ll/i,/^m/i,/^m/i,/^i/i,/^g/i,/^s/i],wide:[/^dydd su/i,/^dydd ll/i,/^dydd ma/i,/^dydd me/i,/^dydd i/i,/^dydd g/i,/^dydd sa/i],any:[/^su/i,/^ll/i,/^ma/i,/^me/i,/^i/i,/^g/i,/^sa/i]},nKe={narrow:/^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i,any:/^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i},rKe={any:{am:/^b|(y\.?\s?b\.?)/i,pm:/^h|(y\.?\s?h\.?)|(yr hwyr)/i,midnight:/^hn|hanner nos/i,noon:/^hd|hanner dydd/i,morning:/bore/i,afternoon:/prynhawn/i,evening:/^gyda'r nos$/i,night:/blah/i}},aKe={ordinalNumber:Xt({matchPattern:VYe,parsePattern:GYe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:YYe,defaultMatchWidth:"wide",parsePatterns:KYe,defaultParseWidth:"any"}),quarter:se({matchPatterns:XYe,defaultMatchWidth:"wide",parsePatterns:QYe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:JYe,defaultMatchWidth:"wide",parsePatterns:ZYe,defaultParseWidth:"any"}),day:se({matchPatterns:eKe,defaultMatchWidth:"wide",parsePatterns:tKe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:nKe,defaultMatchWidth:"any",parsePatterns:rKe,defaultParseWidth:"any"})},iKe={code:"cy",formatDistance:AYe,formatLong:DYe,formatRelative:LYe,localize:HYe,match:aKe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const oKe=Object.freeze(Object.defineProperty({__proto__:null,default:iKe},Symbol.toStringTag,{value:"Module"})),sKe=jt(oKe);var lKe={lessThanXSeconds:{one:"mindre end ét sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"ét halvt minut",lessThanXMinutes:{one:"mindre end ét minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 måned",other:"cirka {{count}} måneder"},xMonths:{one:"1 måned",other:"{{count}} måneder"},aboutXYears:{one:"cirka 1 år",other:"cirka {{count}} år"},xYears:{one:"1 år",other:"{{count}} år"},overXYears:{one:"over 1 år",other:"over {{count}} år"},almostXYears:{one:"næsten 1 år",other:"næsten {{count}} år"}},uKe=function(t,n,r){var a,i=lKe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" siden":a},cKe={full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},dKe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fKe={full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},pKe={date:Ne({formats:cKe,defaultWidth:"full"}),time:Ne({formats:dKe,defaultWidth:"full"}),dateTime:Ne({formats:fKe,defaultWidth:"full"})},hKe={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'på' eeee 'kl.' p",other:"P"},mKe=function(t,n,r,a){return hKe[t]},gKe={narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["før vesterlandsk tidsregning","vesterlandsk tidsregning"]},vKe={narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},yKe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},bKe={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn.","man.","tir.","ons.","tor.","fre.","lør."],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},wKe={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},SKe={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},EKe=function(t,n){var r=Number(t);return r+"."},TKe={ordinalNumber:EKe,era:oe({values:gKe,defaultWidth:"wide"}),quarter:oe({values:vKe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:yKe,defaultWidth:"wide"}),day:oe({values:bKe,defaultWidth:"wide"}),dayPeriod:oe({values:wKe,defaultWidth:"wide",formattingValues:SKe,defaultFormattingWidth:"wide"})},CKe=/^(\d+)(\.)?/i,kKe=/\d+/i,xKe={narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},_Ke={any:[/^f/i,/^(v|e)/i]},OKe={narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},RKe={any:[/1/i,/2/i,/3/i,/4/i]},PKe={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},AKe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},NKe={narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},MKe={narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},IKe={narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},DKe={any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},$Ke={ordinalNumber:Xt({matchPattern:CKe,parsePattern:kKe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:xKe,defaultMatchWidth:"wide",parsePatterns:_Ke,defaultParseWidth:"any"}),quarter:se({matchPatterns:OKe,defaultMatchWidth:"wide",parsePatterns:RKe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:PKe,defaultMatchWidth:"wide",parsePatterns:AKe,defaultParseWidth:"any"}),day:se({matchPatterns:NKe,defaultMatchWidth:"wide",parsePatterns:MKe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:IKe,defaultMatchWidth:"any",parsePatterns:DKe,defaultParseWidth:"any"})},LKe={code:"da",formatDistance:uKe,formatLong:pKe,formatRelative:mKe,localize:TKe,match:$Ke,options:{weekStartsOn:1,firstWeekContainsDate:4}};const FKe=Object.freeze(Object.defineProperty({__proto__:null,default:LKe},Symbol.toStringTag,{value:"Module"})),jKe=jt(FKe);var IG={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},UKe=function(t,n,r){var a,i=r!=null&&r.addSuffix?IG[t].withPreposition:IG[t].standalone;return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:"vor "+a:a},BKe={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},WKe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},zKe={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},qKe={date:Ne({formats:BKe,defaultWidth:"full"}),time:Ne({formats:WKe,defaultWidth:"full"}),dateTime:Ne({formats:zKe,defaultWidth:"full"})},HKe={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},VKe=function(t,n,r,a){return HKe[t]},GKe={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},YKe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},F3={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},KKe={narrow:F3.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:F3.wide},XKe={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},QKe={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},JKe={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},ZKe=function(t){var n=Number(t);return n+"."},eXe={ordinalNumber:ZKe,era:oe({values:GKe,defaultWidth:"wide"}),quarter:oe({values:YKe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:F3,formattingValues:KKe,defaultWidth:"wide"}),day:oe({values:XKe,defaultWidth:"wide"}),dayPeriod:oe({values:QKe,defaultWidth:"wide",formattingValues:JKe,defaultFormattingWidth:"wide"})},tXe=/^(\d+)(\.)?/i,nXe=/\d+/i,rXe={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},aXe={any:[/^v/i,/^n/i]},iXe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},oXe={any:[/1/i,/2/i,/3/i,/4/i]},sXe={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},lXe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},uXe={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},cXe={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},dXe={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},fXe={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},pXe={ordinalNumber:Xt({matchPattern:tXe,parsePattern:nXe,valueCallback:function(t){return parseInt(t)}}),era:se({matchPatterns:rXe,defaultMatchWidth:"wide",parsePatterns:aXe,defaultParseWidth:"any"}),quarter:se({matchPatterns:iXe,defaultMatchWidth:"wide",parsePatterns:oXe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:sXe,defaultMatchWidth:"wide",parsePatterns:lXe,defaultParseWidth:"any"}),day:se({matchPatterns:uXe,defaultMatchWidth:"wide",parsePatterns:cXe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:dXe,defaultMatchWidth:"wide",parsePatterns:fXe,defaultParseWidth:"any"})},hXe={code:"de",formatDistance:UKe,formatLong:qKe,formatRelative:VKe,localize:eXe,match:pXe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const mXe=Object.freeze(Object.defineProperty({__proto__:null,default:hXe},Symbol.toStringTag,{value:"Module"})),gXe=jt(mXe);var vXe={lessThanXSeconds:{one:"λιγότερο από ένα δευτερόλεπτο",other:"λιγότερο από {{count}} δευτερόλεπτα"},xSeconds:{one:"1 δευτερόλεπτο",other:"{{count}} δευτερόλεπτα"},halfAMinute:"μισό λεπτό",lessThanXMinutes:{one:"λιγότερο από ένα λεπτό",other:"λιγότερο από {{count}} λεπτά"},xMinutes:{one:"1 λεπτό",other:"{{count}} λεπτά"},aboutXHours:{one:"περίπου 1 ώρα",other:"περίπου {{count}} ώρες"},xHours:{one:"1 ώρα",other:"{{count}} ώρες"},xDays:{one:"1 ημέρα",other:"{{count}} ημέρες"},aboutXWeeks:{one:"περίπου 1 εβδομάδα",other:"περίπου {{count}} εβδομάδες"},xWeeks:{one:"1 εβδομάδα",other:"{{count}} εβδομάδες"},aboutXMonths:{one:"περίπου 1 μήνας",other:"περίπου {{count}} μήνες"},xMonths:{one:"1 μήνας",other:"{{count}} μήνες"},aboutXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"},xYears:{one:"1 χρόνο",other:"{{count}} χρόνια"},overXYears:{one:"πάνω από 1 χρόνο",other:"πάνω από {{count}} χρόνια"},almostXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"}},yXe=function(t,n,r){var a,i=vXe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"σε "+a:a+" πριν":a},bXe={full:"EEEE, d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"d/M/yy"},wXe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},SXe={full:"{{date}} - {{time}}",long:"{{date}} - {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},EXe={date:Ne({formats:bXe,defaultWidth:"full"}),time:Ne({formats:wXe,defaultWidth:"full"}),dateTime:Ne({formats:SXe,defaultWidth:"full"})},TXe={lastWeek:function(t){switch(t.getUTCDay()){case 6:return"'το προηγούμενο' eeee 'στις' p";default:return"'την προηγούμενη' eeee 'στις' p"}},yesterday:"'χθες στις' p",today:"'σήμερα στις' p",tomorrow:"'αύριο στις' p",nextWeek:"eeee 'στις' p",other:"P"},CXe=function(t,n){var r=TXe[t];return typeof r=="function"?r(n):r},kXe={narrow:["πΧ","μΧ"],abbreviated:["π.Χ.","μ.Χ."],wide:["προ Χριστού","μετά Χριστόν"]},xXe={narrow:["1","2","3","4"],abbreviated:["Τ1","Τ2","Τ3","Τ4"],wide:["1ο τρίμηνο","2ο τρίμηνο","3ο τρίμηνο","4ο τρίμηνο"]},_Xe={narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],wide:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]},OXe={narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],wide:["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"]},RXe={narrow:["Κ","Δ","T","Τ","Π","Π","Σ"],short:["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],abbreviated:["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],wide:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},PXe={narrow:{am:"πμ",pm:"μμ",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},abbreviated:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},wide:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"}},AXe=function(t,n){var r=Number(t),a=n==null?void 0:n.unit,i;return a==="year"||a==="month"?i="ος":a==="week"||a==="dayOfYear"||a==="day"||a==="hour"||a==="date"?i="η":i="ο",r+i},NXe={ordinalNumber:AXe,era:oe({values:kXe,defaultWidth:"wide"}),quarter:oe({values:xXe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:_Xe,defaultWidth:"wide",formattingValues:OXe,defaultFormattingWidth:"wide"}),day:oe({values:RXe,defaultWidth:"wide"}),dayPeriod:oe({values:PXe,defaultWidth:"wide"})},MXe=/^(\d+)(ος|η|ο)?/i,IXe=/\d+/i,DXe={narrow:/^(πΧ|μΧ)/i,abbreviated:/^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i,wide:/^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i},$Xe={any:[/^π/i,/^(μ|κ)/i]},LXe={narrow:/^[1234]/i,abbreviated:/^τ[1234]/i,wide:/^[1234]ο? τρ(ί|ι)μηνο/i},FXe={any:[/1/i,/2/i,/3/i,/4/i]},jXe={narrow:/^[ιφμαμιιασονδ]/i,abbreviated:/^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i,wide:/^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i},UXe={narrow:[/^ι/i,/^φ/i,/^μ/i,/^α/i,/^μ/i,/^ι/i,/^ι/i,/^α/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i],any:[/^ια/i,/^φ/i,/^μ[άα]ρ/i,/^απ/i,/^μ[άα][ιΐ]/i,/^ιο[ύυ]ν/i,/^ιο[ύυ]λ/i,/^α[ύυ]/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i]},BXe={narrow:/^[κδτπσ]/i,short:/^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i,abbreviated:/^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i,wide:/^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i},WXe={narrow:[/^κ/i,/^δ/i,/^τ/i,/^τ/i,/^π/i,/^π/i,/^σ/i],any:[/^κ/i,/^δ/i,/^τρ/i,/^τε/i,/^π[εέ]/i,/^π[αά]/i,/^σ/i]},zXe={narrow:/^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i,any:/^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i},qXe={any:{am:/^πμ|π\.\s?μ\./i,pm:/^μμ|μ\.\s?μ\./i,midnight:/^μεσάν/i,noon:/^μεσημ(έ|ε)/i,morning:/πρω(ί|ι)/i,afternoon:/απ(ό|ο)γευμα/i,evening:/βρ(ά|α)δυ/i,night:/ν(ύ|υ)χτα/i}},HXe={ordinalNumber:Xt({matchPattern:MXe,parsePattern:IXe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:DXe,defaultMatchWidth:"wide",parsePatterns:$Xe,defaultParseWidth:"any"}),quarter:se({matchPatterns:LXe,defaultMatchWidth:"wide",parsePatterns:FXe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:jXe,defaultMatchWidth:"wide",parsePatterns:UXe,defaultParseWidth:"any"}),day:se({matchPatterns:BXe,defaultMatchWidth:"wide",parsePatterns:WXe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:zXe,defaultMatchWidth:"any",parsePatterns:qXe,defaultParseWidth:"any"})},VXe={code:"el",formatDistance:yXe,formatLong:EXe,formatRelative:CXe,localize:NXe,match:HXe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const GXe=Object.freeze(Object.defineProperty({__proto__:null,default:VXe},Symbol.toStringTag,{value:"Module"})),YXe=jt(GXe);var KXe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},XXe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},QXe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},JXe={date:Ne({formats:KXe,defaultWidth:"full"}),time:Ne({formats:XXe,defaultWidth:"full"}),dateTime:Ne({formats:QXe,defaultWidth:"full"})},ZXe={code:"en-AU",formatDistance:y4,formatLong:JXe,formatRelative:Q_,localize:J_,match:Z_,options:{weekStartsOn:1,firstWeekContainsDate:4}};const eQe=Object.freeze(Object.defineProperty({__proto__:null,default:ZXe},Symbol.toStringTag,{value:"Module"})),tQe=jt(eQe);var nQe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"a second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"a minute",other:"{{count}} minutes"},aboutXHours:{one:"about an hour",other:"about {{count}} hours"},xHours:{one:"an hour",other:"{{count}} hours"},xDays:{one:"a day",other:"{{count}} days"},aboutXWeeks:{one:"about a week",other:"about {{count}} weeks"},xWeeks:{one:"a week",other:"{{count}} weeks"},aboutXMonths:{one:"about a month",other:"about {{count}} months"},xMonths:{one:"a month",other:"{{count}} months"},aboutXYears:{one:"about a year",other:"about {{count}} years"},xYears:{one:"a year",other:"{{count}} years"},overXYears:{one:"over a year",other:"over {{count}} years"},almostXYears:{one:"almost a year",other:"almost {{count}} years"}},rQe=function(t,n,r){var a,i=nQe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a},aQe={full:"EEEE, MMMM do, yyyy",long:"MMMM do, yyyy",medium:"MMM d, yyyy",short:"yyyy-MM-dd"},iQe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},oQe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},sQe={date:Ne({formats:aQe,defaultWidth:"full"}),time:Ne({formats:iQe,defaultWidth:"full"}),dateTime:Ne({formats:oQe,defaultWidth:"full"})},lQe={code:"en-CA",formatDistance:rQe,formatLong:sQe,formatRelative:Q_,localize:J_,match:Z_,options:{weekStartsOn:0,firstWeekContainsDate:1}};const uQe=Object.freeze(Object.defineProperty({__proto__:null,default:lQe},Symbol.toStringTag,{value:"Module"})),cQe=jt(uQe);var dQe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},fQe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},pQe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hQe={date:Ne({formats:dQe,defaultWidth:"full"}),time:Ne({formats:fQe,defaultWidth:"full"}),dateTime:Ne({formats:pQe,defaultWidth:"full"})},mQe={code:"en-GB",formatDistance:y4,formatLong:hQe,formatRelative:Q_,localize:J_,match:Z_,options:{weekStartsOn:1,firstWeekContainsDate:4}};const gQe=Object.freeze(Object.defineProperty({__proto__:null,default:mQe},Symbol.toStringTag,{value:"Module"})),vQe=jt(gQe);var yQe={lessThanXSeconds:{one:"malpli ol sekundo",other:"malpli ol {{count}} sekundoj"},xSeconds:{one:"1 sekundo",other:"{{count}} sekundoj"},halfAMinute:"duonminuto",lessThanXMinutes:{one:"malpli ol minuto",other:"malpli ol {{count}} minutoj"},xMinutes:{one:"1 minuto",other:"{{count}} minutoj"},aboutXHours:{one:"proksimume 1 horo",other:"proksimume {{count}} horoj"},xHours:{one:"1 horo",other:"{{count}} horoj"},xDays:{one:"1 tago",other:"{{count}} tagoj"},aboutXMonths:{one:"proksimume 1 monato",other:"proksimume {{count}} monatoj"},xWeeks:{one:"1 semajno",other:"{{count}} semajnoj"},aboutXWeeks:{one:"proksimume 1 semajno",other:"proksimume {{count}} semajnoj"},xMonths:{one:"1 monato",other:"{{count}} monatoj"},aboutXYears:{one:"proksimume 1 jaro",other:"proksimume {{count}} jaroj"},xYears:{one:"1 jaro",other:"{{count}} jaroj"},overXYears:{one:"pli ol 1 jaro",other:"pli ol {{count}} jaroj"},almostXYears:{one:"preskaŭ 1 jaro",other:"preskaŭ {{count}} jaroj"}},bQe=function(t,n,r){var a,i=yQe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r!=null&&r.comparison&&r.comparison>0?"post "+a:"antaŭ "+a:a},wQe={full:"EEEE, do 'de' MMMM y",long:"y-MMMM-dd",medium:"y-MMM-dd",short:"yyyy-MM-dd"},SQe={full:"Ho 'horo kaj' m:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},EQe={any:"{{date}} {{time}}"},TQe={date:Ne({formats:wQe,defaultWidth:"full"}),time:Ne({formats:SQe,defaultWidth:"full"}),dateTime:Ne({formats:EQe,defaultWidth:"any"})},CQe={lastWeek:"'pasinta' eeee 'je' p",yesterday:"'hieraŭ je' p",today:"'hodiaŭ je' p",tomorrow:"'morgaŭ je' p",nextWeek:"eeee 'je' p",other:"P"},kQe=function(t,n,r,a){return CQe[t]},xQe={narrow:["aK","pK"],abbreviated:["a.K.E.","p.K.E."],wide:["antaŭ Komuna Erao","Komuna Erao"]},_Qe={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1-a kvaronjaro","2-a kvaronjaro","3-a kvaronjaro","4-a kvaronjaro"]},OQe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan","feb","mar","apr","maj","jun","jul","aŭg","sep","okt","nov","dec"],wide:["januaro","februaro","marto","aprilo","majo","junio","julio","aŭgusto","septembro","oktobro","novembro","decembro"]},RQe={narrow:["D","L","M","M","Ĵ","V","S"],short:["di","lu","ma","me","ĵa","ve","sa"],abbreviated:["dim","lun","mar","mer","ĵaŭ","ven","sab"],wide:["dimanĉo","lundo","mardo","merkredo","ĵaŭdo","vendredo","sabato"]},PQe={narrow:{am:"a",pm:"p",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},abbreviated:{am:"a.t.m.",pm:"p.t.m.",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},wide:{am:"antaŭtagmeze",pm:"posttagmeze",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"}},AQe=function(t){var n=Number(t);return n+"-a"},NQe={ordinalNumber:AQe,era:oe({values:xQe,defaultWidth:"wide"}),quarter:oe({values:_Qe,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:OQe,defaultWidth:"wide"}),day:oe({values:RQe,defaultWidth:"wide"}),dayPeriod:oe({values:PQe,defaultWidth:"wide"})},MQe=/^(\d+)(-?a)?/i,IQe=/\d+/i,DQe={narrow:/^([ap]k)/i,abbreviated:/^([ap]\.?\s?k\.?\s?e\.?)/i,wide:/^((antaǔ |post )?komuna erao)/i},$Qe={any:[/^a/i,/^[kp]/i]},LQe={narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](-?a)? kvaronjaro/i},FQe={any:[/1/i,/2/i,/3/i,/4/i]},jQe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i,wide:/^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i},UQe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^a(u|ŭ)/i,/^s/i,/^o/i,/^n/i,/^d/i]},BQe={narrow:/^[dlmĵjvs]/i,short:/^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i,wide:/^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i},WQe={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^(j|ĵ)/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^(j|ĵ)/i,/^v/i,/^s/i]},zQe={narrow:/^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,abbreviated:/^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,wide:/^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i},qQe={any:{am:/^a/i,pm:/^p/i,midnight:/^noktom/i,noon:/^t/i,morning:/^m/i,afternoon:/^posttagmeze/i,evening:/^v/i,night:/^n/i}},HQe={ordinalNumber:Xt({matchPattern:MQe,parsePattern:IQe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:DQe,defaultMatchWidth:"wide",parsePatterns:$Qe,defaultParseWidth:"any"}),quarter:se({matchPatterns:LQe,defaultMatchWidth:"wide",parsePatterns:FQe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:jQe,defaultMatchWidth:"wide",parsePatterns:UQe,defaultParseWidth:"any"}),day:se({matchPatterns:BQe,defaultMatchWidth:"wide",parsePatterns:WQe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:zQe,defaultMatchWidth:"wide",parsePatterns:qQe,defaultParseWidth:"any"})},VQe={code:"eo",formatDistance:bQe,formatLong:TQe,formatRelative:kQe,localize:NQe,match:HQe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const GQe=Object.freeze(Object.defineProperty({__proto__:null,default:VQe},Symbol.toStringTag,{value:"Module"})),YQe=jt(GQe);var KQe={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},XQe=function(t,n,r){var a,i=KQe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+a:"hace "+a:a},QQe={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},JQe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ZQe={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},eJe={date:Ne({formats:QQe,defaultWidth:"full"}),time:Ne({formats:JQe,defaultWidth:"full"}),dateTime:Ne({formats:ZQe,defaultWidth:"full"})},tJe={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},nJe={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},rJe=function(t,n,r,a){return n.getUTCHours()!==1?nJe[t]:tJe[t]},aJe={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},iJe={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},oJe={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},sJe={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},lJe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},uJe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},cJe=function(t,n){var r=Number(t);return r+"º"},dJe={ordinalNumber:cJe,era:oe({values:aJe,defaultWidth:"wide"}),quarter:oe({values:iJe,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:oJe,defaultWidth:"wide"}),day:oe({values:sJe,defaultWidth:"wide"}),dayPeriod:oe({values:lJe,defaultWidth:"wide",formattingValues:uJe,defaultFormattingWidth:"wide"})},fJe=/^(\d+)(º)?/i,pJe=/\d+/i,hJe={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},mJe={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},gJe={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},vJe={any:[/1/i,/2/i,/3/i,/4/i]},yJe={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},bJe={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},wJe={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},SJe={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},EJe={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},TJe={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},CJe={ordinalNumber:Xt({matchPattern:fJe,parsePattern:pJe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:hJe,defaultMatchWidth:"wide",parsePatterns:mJe,defaultParseWidth:"any"}),quarter:se({matchPatterns:gJe,defaultMatchWidth:"wide",parsePatterns:vJe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:yJe,defaultMatchWidth:"wide",parsePatterns:bJe,defaultParseWidth:"any"}),day:se({matchPatterns:wJe,defaultMatchWidth:"wide",parsePatterns:SJe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:EJe,defaultMatchWidth:"any",parsePatterns:TJe,defaultParseWidth:"any"})},kJe={code:"es",formatDistance:XQe,formatLong:eJe,formatRelative:rJe,localize:dJe,match:CJe,options:{weekStartsOn:1,firstWeekContainsDate:1}};const xJe=Object.freeze(Object.defineProperty({__proto__:null,default:kJe},Symbol.toStringTag,{value:"Module"})),_Je=jt(xJe);var DG={lessThanXSeconds:{standalone:{one:"vähem kui üks sekund",other:"vähem kui {{count}} sekundit"},withPreposition:{one:"vähem kui ühe sekundi",other:"vähem kui {{count}} sekundi"}},xSeconds:{standalone:{one:"üks sekund",other:"{{count}} sekundit"},withPreposition:{one:"ühe sekundi",other:"{{count}} sekundi"}},halfAMinute:{standalone:"pool minutit",withPreposition:"poole minuti"},lessThanXMinutes:{standalone:{one:"vähem kui üks minut",other:"vähem kui {{count}} minutit"},withPreposition:{one:"vähem kui ühe minuti",other:"vähem kui {{count}} minuti"}},xMinutes:{standalone:{one:"üks minut",other:"{{count}} minutit"},withPreposition:{one:"ühe minuti",other:"{{count}} minuti"}},aboutXHours:{standalone:{one:"umbes üks tund",other:"umbes {{count}} tundi"},withPreposition:{one:"umbes ühe tunni",other:"umbes {{count}} tunni"}},xHours:{standalone:{one:"üks tund",other:"{{count}} tundi"},withPreposition:{one:"ühe tunni",other:"{{count}} tunni"}},xDays:{standalone:{one:"üks päev",other:"{{count}} päeva"},withPreposition:{one:"ühe päeva",other:"{{count}} päeva"}},aboutXWeeks:{standalone:{one:"umbes üks nädal",other:"umbes {{count}} nädalat"},withPreposition:{one:"umbes ühe nädala",other:"umbes {{count}} nädala"}},xWeeks:{standalone:{one:"üks nädal",other:"{{count}} nädalat"},withPreposition:{one:"ühe nädala",other:"{{count}} nädala"}},aboutXMonths:{standalone:{one:"umbes üks kuu",other:"umbes {{count}} kuud"},withPreposition:{one:"umbes ühe kuu",other:"umbes {{count}} kuu"}},xMonths:{standalone:{one:"üks kuu",other:"{{count}} kuud"},withPreposition:{one:"ühe kuu",other:"{{count}} kuu"}},aboutXYears:{standalone:{one:"umbes üks aasta",other:"umbes {{count}} aastat"},withPreposition:{one:"umbes ühe aasta",other:"umbes {{count}} aasta"}},xYears:{standalone:{one:"üks aasta",other:"{{count}} aastat"},withPreposition:{one:"ühe aasta",other:"{{count}} aasta"}},overXYears:{standalone:{one:"rohkem kui üks aasta",other:"rohkem kui {{count}} aastat"},withPreposition:{one:"rohkem kui ühe aasta",other:"rohkem kui {{count}} aasta"}},almostXYears:{standalone:{one:"peaaegu üks aasta",other:"peaaegu {{count}} aastat"},withPreposition:{one:"peaaegu ühe aasta",other:"peaaegu {{count}} aasta"}}},OJe=function(t,n,r){var a=r!=null&&r.addSuffix?DG[t].withPreposition:DG[t].standalone,i;return typeof a=="string"?i=a:n===1?i=a.one:i=a.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?i+" pärast":i+" eest":i},RJe={full:"EEEE, d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},PJe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},AJe={full:"{{date}} 'kell' {{time}}",long:"{{date}} 'kell' {{time}}",medium:"{{date}}. {{time}}",short:"{{date}}. {{time}}"},NJe={date:Ne({formats:RJe,defaultWidth:"full"}),time:Ne({formats:PJe,defaultWidth:"full"}),dateTime:Ne({formats:AJe,defaultWidth:"full"})},MJe={lastWeek:"'eelmine' eeee 'kell' p",yesterday:"'eile kell' p",today:"'täna kell' p",tomorrow:"'homme kell' p",nextWeek:"'järgmine' eeee 'kell' p",other:"P"},IJe=function(t,n,r,a){return MJe[t]},DJe={narrow:["e.m.a","m.a.j"],abbreviated:["e.m.a","m.a.j"],wide:["enne meie ajaarvamist","meie ajaarvamise järgi"]},$Je={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},$G={narrow:["J","V","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jaan","veebr","märts","apr","mai","juuni","juuli","aug","sept","okt","nov","dets"],wide:["jaanuar","veebruar","märts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember"]},LG={narrow:["P","E","T","K","N","R","L"],short:["P","E","T","K","N","R","L"],abbreviated:["pühap.","esmasp.","teisip.","kolmap.","neljap.","reede.","laup."],wide:["pühapäev","esmaspäev","teisipäev","kolmapäev","neljapäev","reede","laupäev"]},LJe={narrow:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"},abbreviated:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"},wide:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"}},FJe={narrow:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"},abbreviated:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"},wide:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"}},jJe=function(t,n){var r=Number(t);return r+"."},UJe={ordinalNumber:jJe,era:oe({values:DJe,defaultWidth:"wide"}),quarter:oe({values:$Je,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:$G,defaultWidth:"wide",formattingValues:$G,defaultFormattingWidth:"wide"}),day:oe({values:LG,defaultWidth:"wide",formattingValues:LG,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:LJe,defaultWidth:"wide",formattingValues:FJe,defaultFormattingWidth:"wide"})},BJe=/^\d+\./i,WJe=/\d+/i,zJe={narrow:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,abbreviated:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,wide:/^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i},qJe={any:[/^e/i,/^(m|p)/i]},HJe={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](\.)? kvartal/i},VJe={any:[/1/i,/2/i,/3/i,/4/i]},GJe={narrow:/^[jvmasond]/i,abbreviated:/^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i,wide:/^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i},YJe={narrow:[/^j/i,/^v/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^v/i,/^mär/i,/^ap/i,/^mai/i,/^juun/i,/^juul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},KJe={narrow:/^[petknrl]/i,short:/^[petknrl]/i,abbreviated:/^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i,wide:/^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i},XJe={any:[/^p/i,/^e/i,/^t/i,/^k/i,/^n/i,/^r/i,/^l/i]},QJe={any:/^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i},JJe={any:{am:/^a/i,pm:/^p/i,midnight:/^keskö/i,noon:/^keskp/i,morning:/hommik/i,afternoon:/pärastlõuna/i,evening:/õhtu/i,night:/öö/i}},ZJe={ordinalNumber:Xt({matchPattern:BJe,parsePattern:WJe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:zJe,defaultMatchWidth:"wide",parsePatterns:qJe,defaultParseWidth:"any"}),quarter:se({matchPatterns:HJe,defaultMatchWidth:"wide",parsePatterns:VJe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:GJe,defaultMatchWidth:"wide",parsePatterns:YJe,defaultParseWidth:"any"}),day:se({matchPatterns:KJe,defaultMatchWidth:"wide",parsePatterns:XJe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:QJe,defaultMatchWidth:"any",parsePatterns:JJe,defaultParseWidth:"any"})},eZe={code:"et",formatDistance:OJe,formatLong:NJe,formatRelative:IJe,localize:UJe,match:ZJe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const tZe=Object.freeze(Object.defineProperty({__proto__:null,default:eZe},Symbol.toStringTag,{value:"Module"})),nZe=jt(tZe);var rZe={lessThanXSeconds:{one:"کمتر از یک ثانیه",other:"کمتر از {{count}} ثانیه"},xSeconds:{one:"1 ثانیه",other:"{{count}} ثانیه"},halfAMinute:"نیم دقیقه",lessThanXMinutes:{one:"کمتر از یک دقیقه",other:"کمتر از {{count}} دقیقه"},xMinutes:{one:"1 دقیقه",other:"{{count}} دقیقه"},aboutXHours:{one:"حدود 1 ساعت",other:"حدود {{count}} ساعت"},xHours:{one:"1 ساعت",other:"{{count}} ساعت"},xDays:{one:"1 روز",other:"{{count}} روز"},aboutXWeeks:{one:"حدود 1 هفته",other:"حدود {{count}} هفته"},xWeeks:{one:"1 هفته",other:"{{count}} هفته"},aboutXMonths:{one:"حدود 1 ماه",other:"حدود {{count}} ماه"},xMonths:{one:"1 ماه",other:"{{count}} ماه"},aboutXYears:{one:"حدود 1 سال",other:"حدود {{count}} سال"},xYears:{one:"1 سال",other:"{{count}} سال"},overXYears:{one:"بیشتر از 1 سال",other:"بیشتر از {{count}} سال"},almostXYears:{one:"نزدیک 1 سال",other:"نزدیک {{count}} سال"}},aZe=function(t,n,r){var a,i=rZe[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"در "+a:a+" قبل":a},iZe={full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},oZe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},sZe={full:"{{date}} 'در' {{time}}",long:"{{date}} 'در' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lZe={date:Ne({formats:iZe,defaultWidth:"full"}),time:Ne({formats:oZe,defaultWidth:"full"}),dateTime:Ne({formats:sZe,defaultWidth:"full"})},uZe={lastWeek:"eeee 'گذشته در' p",yesterday:"'دیروز در' p",today:"'امروز در' p",tomorrow:"'فردا در' p",nextWeek:"eeee 'در' p",other:"P"},cZe=function(t,n,r,a){return uZe[t]},dZe={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل از میلاد","بعد از میلاد"]},fZe={narrow:["1","2","3","4"],abbreviated:["س‌م1","س‌م2","س‌م3","س‌م4"],wide:["سه‌ماهه 1","سه‌ماهه 2","سه‌ماهه 3","سه‌ماهه 4"]},pZe={narrow:["ژ","ف","م","آ","م","ج","ج","آ","س","ا","ن","د"],abbreviated:["ژانـ","فور","مارس","آپر","می","جون","جولـ","آگو","سپتـ","اکتـ","نوامـ","دسامـ"],wide:["ژانویه","فوریه","مارس","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},hZe={narrow:["ی","د","س","چ","پ","ج","ش"],short:["1ش","2ش","3ش","4ش","5ش","ج","ش"],abbreviated:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],wide:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},mZe={narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},gZe={narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},vZe=function(t,n){return String(t)},yZe={ordinalNumber:vZe,era:oe({values:dZe,defaultWidth:"wide"}),quarter:oe({values:fZe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:pZe,defaultWidth:"wide"}),day:oe({values:hZe,defaultWidth:"wide"}),dayPeriod:oe({values:mZe,defaultWidth:"wide",formattingValues:gZe,defaultFormattingWidth:"wide"})},bZe=/^(\d+)(th|st|nd|rd)?/i,wZe=/\d+/i,SZe={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},EZe={any:[/^قبل/i,/^بعد/i]},TZe={narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},CZe={any:[/1/i,/2/i,/3/i,/4/i]},kZe={narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},xZe={narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},_Ze={narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},OZe={narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},RZe={narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},PZe={any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},AZe={ordinalNumber:Xt({matchPattern:bZe,parsePattern:wZe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:SZe,defaultMatchWidth:"wide",parsePatterns:EZe,defaultParseWidth:"any"}),quarter:se({matchPatterns:TZe,defaultMatchWidth:"wide",parsePatterns:CZe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:kZe,defaultMatchWidth:"wide",parsePatterns:xZe,defaultParseWidth:"any"}),day:se({matchPatterns:_Ze,defaultMatchWidth:"wide",parsePatterns:OZe,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:RZe,defaultMatchWidth:"wide",parsePatterns:PZe,defaultParseWidth:"any"})},NZe={code:"fa-IR",formatDistance:aZe,formatLong:lZe,formatRelative:cZe,localize:yZe,match:AZe,options:{weekStartsOn:6,firstWeekContainsDate:1}};const MZe=Object.freeze(Object.defineProperty({__proto__:null,default:NZe},Symbol.toStringTag,{value:"Module"})),IZe=jt(MZe);function FG(e){return e.replace(/sekuntia?/,"sekunnin")}function jG(e){return e.replace(/minuuttia?/,"minuutin")}function UG(e){return e.replace(/tuntia?/,"tunnin")}function DZe(e){return e.replace(/päivää?/,"päivän")}function BG(e){return e.replace(/(viikko|viikkoa)/,"viikon")}function WG(e){return e.replace(/(kuukausi|kuukautta)/,"kuukauden")}function _k(e){return e.replace(/(vuosi|vuotta)/,"vuoden")}var $Ze={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:FG},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:FG},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:function(t){return"puolen minuutin"}},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:jG},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:jG},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:UG},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:UG},xDays:{one:"päivä",other:"{{count}} päivää",futureTense:DZe},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:BG},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:BG},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:WG},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:WG},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:_k},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:_k},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:_k},almostXYears:{one:"lähes vuosi",other:"lähes {{count}} vuotta",futureTense:_k}},LZe=function(t,n,r){var a=$Ze[t],i=n===1?a.one:a.other.replace("{{count}}",String(n));return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a.futureTense(i)+" kuluttua":i+" sitten":i},FZe={full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},jZe={full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},UZe={full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},BZe={date:Ne({formats:FZe,defaultWidth:"full"}),time:Ne({formats:jZe,defaultWidth:"full"}),dateTime:Ne({formats:UZe,defaultWidth:"full"})},WZe={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'tänään klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},zZe=function(t,n,r,a){return WZe[t]},qZe={narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","jälkeen ajanlaskun alun"]},HZe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},j3={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},VZe={narrow:j3.narrow,abbreviated:j3.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},Jk={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},GZe={narrow:Jk.narrow,short:Jk.short,abbreviated:Jk.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},YZe={narrow:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},wide:{am:"ap",pm:"ip",midnight:"keskiyöllä",noon:"keskipäivällä",morning:"aamupäivällä",afternoon:"iltapäivällä",evening:"illalla",night:"yöllä"}},KZe=function(t,n){var r=Number(t);return r+"."},XZe={ordinalNumber:KZe,era:oe({values:qZe,defaultWidth:"wide"}),quarter:oe({values:HZe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:j3,defaultWidth:"wide",formattingValues:VZe,defaultFormattingWidth:"wide"}),day:oe({values:Jk,defaultWidth:"wide",formattingValues:GZe,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:YZe,defaultWidth:"wide"})},QZe=/^(\d+)(\.)/i,JZe=/\d+/i,ZZe={narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},eet={any:[/^e/i,/^j/i]},tet={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},net={any:[/1/i,/2/i,/3/i,/4/i]},ret={narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},aet={narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},iet={narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},oet={narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},set={narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},uet={any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},cet={ordinalNumber:Xt({matchPattern:QZe,parsePattern:JZe,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:ZZe,defaultMatchWidth:"wide",parsePatterns:eet,defaultParseWidth:"any"}),quarter:se({matchPatterns:tet,defaultMatchWidth:"wide",parsePatterns:net,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:ret,defaultMatchWidth:"wide",parsePatterns:aet,defaultParseWidth:"any"}),day:se({matchPatterns:iet,defaultMatchWidth:"wide",parsePatterns:oet,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:set,defaultMatchWidth:"any",parsePatterns:uet,defaultParseWidth:"any"})},det={code:"fi",formatDistance:LZe,formatLong:BZe,formatRelative:zZe,localize:XZe,match:cet,options:{weekStartsOn:1,firstWeekContainsDate:4}};const fet=Object.freeze(Object.defineProperty({__proto__:null,default:det},Symbol.toStringTag,{value:"Module"})),pet=jt(fet);var het={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},Dae=function(t,n,r){var a,i=het[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dans "+a:"il y a "+a:a},met={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},get={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},vet={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yet={date:Ne({formats:met,defaultWidth:"full"}),time:Ne({formats:get,defaultWidth:"full"}),dateTime:Ne({formats:vet,defaultWidth:"full"})},bet={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},$ae=function(t,n,r,a){return bet[t]},wet={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},Eet={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},Tet={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},Cet={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},ket={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},xet=function(t,n){var r=Number(t),a=n==null?void 0:n.unit;if(r===0)return"0";var i=["year","week","hour","minute","second"],o;return r===1?o=a&&i.includes(a)?"ère":"er":o="ème",r+o},Lae={ordinalNumber:xet,era:oe({values:wet,defaultWidth:"wide"}),quarter:oe({values:Eet,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Tet,defaultWidth:"wide"}),day:oe({values:Cet,defaultWidth:"wide"}),dayPeriod:oe({values:ket,defaultWidth:"wide"})},_et=/^(\d+)(ième|ère|ème|er|e)?/i,Oet=/\d+/i,Ret={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},Pet={any:[/^av/i,/^ap/i]},Aet={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},Net={any:[/1/i,/2/i,/3/i,/4/i]},Met={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},Iet={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},Det={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},$et={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},Let={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},Fet={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},Fae={ordinalNumber:Xt({matchPattern:_et,parsePattern:Oet,valueCallback:function(t){return parseInt(t)}}),era:se({matchPatterns:Ret,defaultMatchWidth:"wide",parsePatterns:Pet,defaultParseWidth:"any"}),quarter:se({matchPatterns:Aet,defaultMatchWidth:"wide",parsePatterns:Net,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Met,defaultMatchWidth:"wide",parsePatterns:Iet,defaultParseWidth:"any"}),day:se({matchPatterns:Det,defaultMatchWidth:"wide",parsePatterns:$et,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Let,defaultMatchWidth:"any",parsePatterns:Fet,defaultParseWidth:"any"})},jet={code:"fr",formatDistance:Dae,formatLong:yet,formatRelative:$ae,localize:Lae,match:Fae,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Uet=Object.freeze(Object.defineProperty({__proto__:null,default:jet},Symbol.toStringTag,{value:"Module"})),Bet=jt(Uet);var Wet={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"yy-MM-dd"},zet={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},qet={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Het={date:Ne({formats:Wet,defaultWidth:"full"}),time:Ne({formats:zet,defaultWidth:"full"}),dateTime:Ne({formats:qet,defaultWidth:"full"})},Vet={code:"fr-CA",formatDistance:Dae,formatLong:Het,formatRelative:$ae,localize:Lae,match:Fae,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Get=Object.freeze(Object.defineProperty({__proto__:null,default:Vet},Symbol.toStringTag,{value:"Module"})),Yet=jt(Get);var Ket={lessThanXSeconds:{one:"menos dun segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos dun minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"arredor dunha hora",other:"arredor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"arredor dunha semana",other:"arredor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"arredor de 1 mes",other:"arredor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"arredor dun ano",other:"arredor de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"máis dun ano",other:"máis de {{count}} anos"},almostXYears:{one:"case un ano",other:"case {{count}} anos"}},Xet=function(t,n,r){var a,i=Ket[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+a:"hai "+a:a},Qet={full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},Jet={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Zet={full:"{{date}} 'ás' {{time}}",long:"{{date}} 'ás' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ett={date:Ne({formats:Qet,defaultWidth:"full"}),time:Ne({formats:Jet,defaultWidth:"full"}),dateTime:Ne({formats:Zet,defaultWidth:"full"})},ttt={lastWeek:"'o' eeee 'pasado á' LT",yesterday:"'onte á' p",today:"'hoxe á' p",tomorrow:"'mañá á' p",nextWeek:"eeee 'á' p",other:"P"},ntt={lastWeek:"'o' eeee 'pasado ás' p",yesterday:"'onte ás' p",today:"'hoxe ás' p",tomorrow:"'mañá ás' p",nextWeek:"eeee 'ás' p",other:"P"},rtt=function(t,n,r,a){return n.getUTCHours()!==1?ntt[t]:ttt[t]},att={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despois de cristo"]},itt={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},ott={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["xan","feb","mar","abr","mai","xun","xul","ago","set","out","nov","dec"],wide:["xaneiro","febreiro","marzo","abril","maio","xuño","xullo","agosto","setembro","outubro","novembro","decembro"]},stt={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","me","xo","ve","sa"],abbreviated:["dom","lun","mar","mer","xov","ven","sab"],wide:["domingo","luns","martes","mércores","xoves","venres","sábado"]},ltt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañá",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediodía",morning:"mañá",afternoon:"tarde",evening:"tardiña",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediodía",morning:"mañá",afternoon:"tarde",evening:"tardiña",night:"noite"}},utt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediodía",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediodía",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"}},ctt=function(t,n){var r=Number(t);return r+"º"},dtt={ordinalNumber:ctt,era:oe({values:att,defaultWidth:"wide"}),quarter:oe({values:itt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:ott,defaultWidth:"wide"}),day:oe({values:stt,defaultWidth:"wide"}),dayPeriod:oe({values:ltt,defaultWidth:"wide",formattingValues:utt,defaultFormattingWidth:"wide"})},ftt=/^(\d+)(º)?/i,ptt=/\d+/i,htt={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i},mtt={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era com[uú]n)/i,/^(despois de cristo|era com[uú]n)/i]},gtt={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},vtt={any:[/1/i,/2/i,/3/i,/4/i]},ytt={narrow:/^[xfmasond]/i,abbreviated:/^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i,wide:/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i},btt={narrow:[/^x/i,/^f/i,/^m/i,/^a/i,/^m/i,/^x/i,/^x/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^xan/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^xun/i,/^xul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dec/i]},wtt={narrow:/^[dlmxvs]/i,short:/^(do|lu|ma|me|xo|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|xov|ven|sab)/i,wide:/^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i},Stt={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^x/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^me/i,/^xo/i,/^ve/i,/^sa/i]},Ett={narrow:/^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i},Ttt={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañ[aá]/i,afternoon:/tarde/i,evening:/tardiña/i,night:/noite/i}},Ctt={ordinalNumber:Xt({matchPattern:ftt,parsePattern:ptt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:htt,defaultMatchWidth:"wide",parsePatterns:mtt,defaultParseWidth:"any"}),quarter:se({matchPatterns:gtt,defaultMatchWidth:"wide",parsePatterns:vtt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:ytt,defaultMatchWidth:"wide",parsePatterns:btt,defaultParseWidth:"any"}),day:se({matchPatterns:wtt,defaultMatchWidth:"wide",parsePatterns:Stt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Ett,defaultMatchWidth:"any",parsePatterns:Ttt,defaultParseWidth:"any"})},ktt={code:"gl",formatDistance:Xet,formatLong:ett,formatRelative:rtt,localize:dtt,match:Ctt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const xtt=Object.freeze(Object.defineProperty({__proto__:null,default:ktt},Symbol.toStringTag,{value:"Module"})),_tt=jt(xtt);var Ott={lessThanXSeconds:{one:"હમણાં",other:"​આશરે {{count}} સેકંડ"},xSeconds:{one:"1 સેકંડ",other:"{{count}} સેકંડ"},halfAMinute:"અડધી મિનિટ",lessThanXMinutes:{one:"આ મિનિટ",other:"​આશરે {{count}} મિનિટ"},xMinutes:{one:"1 મિનિટ",other:"{{count}} મિનિટ"},aboutXHours:{one:"​આશરે 1 કલાક",other:"​આશરે {{count}} કલાક"},xHours:{one:"1 કલાક",other:"{{count}} કલાક"},xDays:{one:"1 દિવસ",other:"{{count}} દિવસ"},aboutXWeeks:{one:"આશરે 1 અઠવાડિયું",other:"આશરે {{count}} અઠવાડિયા"},xWeeks:{one:"1 અઠવાડિયું",other:"{{count}} અઠવાડિયા"},aboutXMonths:{one:"આશરે 1 મહિનો",other:"આશરે {{count}} મહિના"},xMonths:{one:"1 મહિનો",other:"{{count}} મહિના"},aboutXYears:{one:"આશરે 1 વર્ષ",other:"આશરે {{count}} વર્ષ"},xYears:{one:"1 વર્ષ",other:"{{count}} વર્ષ"},overXYears:{one:"1 વર્ષથી વધુ",other:"{{count}} વર્ષથી વધુ"},almostXYears:{one:"લગભગ 1 વર્ષ",other:"લગભગ {{count}} વર્ષ"}},Rtt=function(t,n,r){var a,i=Ott[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"માં":a+" પહેલાં":a},Ptt={full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},Att={full:"hh:mm:ss a zzzz",long:"hh:mm:ss a z",medium:"hh:mm:ss a",short:"hh:mm a"},Ntt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Mtt={date:Ne({formats:Ptt,defaultWidth:"full"}),time:Ne({formats:Att,defaultWidth:"full"}),dateTime:Ne({formats:Ntt,defaultWidth:"full"})},Itt={lastWeek:"'પાછલા' eeee p",yesterday:"'ગઈકાલે' p",today:"'આજે' p",tomorrow:"'આવતીકાલે' p",nextWeek:"eeee p",other:"P"},Dtt=function(t,n,r,a){return Itt[t]},$tt={narrow:["ઈસપૂ","ઈસ"],abbreviated:["ઈ.સ.પૂર્વે","ઈ.સ."],wide:["ઈસવીસન પૂર્વે","ઈસવીસન"]},Ltt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1લો ત્રિમાસ","2જો ત્રિમાસ","3જો ત્રિમાસ","4થો ત્રિમાસ"]},Ftt={narrow:["જા","ફે","મા","એ","મે","જૂ","જુ","ઓ","સ","ઓ","ન","ડિ"],abbreviated:["જાન્યુ","ફેબ્રુ","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટે","ઓક્ટો","નવે","ડિસે"],wide:["જાન્યુઆરી","ફેબ્રુઆરી","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઇ","ઓગસ્ટ","સપ્ટેમ્બર","ઓક્ટોબર","નવેમ્બર","ડિસેમ્બર"]},jtt={narrow:["ર","સો","મં","બુ","ગુ","શુ","શ"],short:["ર","સો","મં","બુ","ગુ","શુ","શ"],abbreviated:["રવિ","સોમ","મંગળ","બુધ","ગુરુ","શુક્ર","શનિ"],wide:["રવિવાર","સોમવાર","મંગળવાર","બુધવાર","ગુરુવાર","શુક્રવાર","શનિવાર"]},Utt={narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બ.",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},Btt={narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},Wtt=function(t,n){return String(t)},ztt={ordinalNumber:Wtt,era:oe({values:$tt,defaultWidth:"wide"}),quarter:oe({values:Ltt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Ftt,defaultWidth:"wide"}),day:oe({values:jtt,defaultWidth:"wide"}),dayPeriod:oe({values:Utt,defaultWidth:"wide",formattingValues:Btt,defaultFormattingWidth:"wide"})},qtt=/^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i,Htt=/\d+/i,Vtt={narrow:/^(ઈસપૂ|ઈસ)/i,abbreviated:/^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i,wide:/^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i},Gtt={any:[/^ઈસપૂ/i,/^ઈસ/i]},Ytt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](લો|જો|થો)? ત્રિમાસ/i},Ktt={any:[/1/i,/2/i,/3/i,/4/i]},Xtt={narrow:/^[જાફેમાએમેજૂજુઓસઓનડિ]/i,abbreviated:/^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i,wide:/^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i},Qtt={narrow:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i],any:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i]},Jtt={narrow:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,short:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,abbreviated:/^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i,wide:/^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i},Ztt={narrow:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i],any:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i]},ent={narrow:/^(a|p|મ\.?|સ|બ|સાં|રા)/i,any:/^(a|p|મ\.?|સ|બ|સાં|રા)/i},tnt={any:{am:/^a/i,pm:/^p/i,midnight:/^મ\.?/i,noon:/^બ/i,morning:/સ/i,afternoon:/બ/i,evening:/સાં/i,night:/રા/i}},nnt={ordinalNumber:Xt({matchPattern:qtt,parsePattern:Htt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Vtt,defaultMatchWidth:"wide",parsePatterns:Gtt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Ytt,defaultMatchWidth:"wide",parsePatterns:Ktt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Xtt,defaultMatchWidth:"wide",parsePatterns:Qtt,defaultParseWidth:"any"}),day:se({matchPatterns:Jtt,defaultMatchWidth:"wide",parsePatterns:Ztt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:ent,defaultMatchWidth:"any",parsePatterns:tnt,defaultParseWidth:"any"})},rnt={code:"gu",formatDistance:Rtt,formatLong:Mtt,formatRelative:Dtt,localize:ztt,match:nnt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const ant=Object.freeze(Object.defineProperty({__proto__:null,default:rnt},Symbol.toStringTag,{value:"Module"})),int=jt(ant);var ont={lessThanXSeconds:{one:"פחות משנייה",two:"פחות משתי שניות",other:"פחות מ־{{count}} שניות"},xSeconds:{one:"שנייה",two:"שתי שניות",other:"{{count}} שניות"},halfAMinute:"חצי דקה",lessThanXMinutes:{one:"פחות מדקה",two:"פחות משתי דקות",other:"פחות מ־{{count}} דקות"},xMinutes:{one:"דקה",two:"שתי דקות",other:"{{count}} דקות"},aboutXHours:{one:"כשעה",two:"כשעתיים",other:"כ־{{count}} שעות"},xHours:{one:"שעה",two:"שעתיים",other:"{{count}} שעות"},xDays:{one:"יום",two:"יומיים",other:"{{count}} ימים"},aboutXWeeks:{one:"כשבוע",two:"כשבועיים",other:"כ־{{count}} שבועות"},xWeeks:{one:"שבוע",two:"שבועיים",other:"{{count}} שבועות"},aboutXMonths:{one:"כחודש",two:"כחודשיים",other:"כ־{{count}} חודשים"},xMonths:{one:"חודש",two:"חודשיים",other:"{{count}} חודשים"},aboutXYears:{one:"כשנה",two:"כשנתיים",other:"כ־{{count}} שנים"},xYears:{one:"שנה",two:"שנתיים",other:"{{count}} שנים"},overXYears:{one:"יותר משנה",two:"יותר משנתיים",other:"יותר מ־{{count}} שנים"},almostXYears:{one:"כמעט שנה",two:"כמעט שנתיים",other:"כמעט {{count}} שנים"}},snt=function(t,n,r){if(t==="xDays"&&r!==null&&r!==void 0&&r.addSuffix&&n<=2)return r.comparison&&r.comparison>0?n===1?"מחר":"מחרתיים":n===1?"אתמול":"שלשום";var a,i=ont[t];return typeof i=="string"?a=i:n===1?a=i.one:n===2?a=i.two:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"בעוד "+a:"לפני "+a:a},lnt={full:"EEEE, d בMMMM y",long:"d בMMMM y",medium:"d בMMM y",short:"d.M.y"},unt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},cnt={full:"{{date}} 'בשעה' {{time}}",long:"{{date}} 'בשעה' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dnt={date:Ne({formats:lnt,defaultWidth:"full"}),time:Ne({formats:unt,defaultWidth:"full"}),dateTime:Ne({formats:cnt,defaultWidth:"full"})},fnt={lastWeek:"eeee 'שעבר בשעה' p",yesterday:"'אתמול בשעה' p",today:"'היום בשעה' p",tomorrow:"'מחר בשעה' p",nextWeek:"eeee 'בשעה' p",other:"P"},pnt=function(t,n,r,a){return fnt[t]},hnt={narrow:["לפנה״ס","לספירה"],abbreviated:["לפנה״ס","לספירה"],wide:["לפני הספירה","לספירה"]},mnt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["רבעון 1","רבעון 2","רבעון 3","רבעון 4"]},gnt={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],wide:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},vnt={narrow:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],short:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],abbreviated:["יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת"],wide:["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"]},ynt={narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"}},bnt={narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"בצהריים",evening:"בערב",night:"בלילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"}},wnt=function(t,n){var r=Number(t);if(r<=0||r>10)return String(r);var a=String(n==null?void 0:n.unit),i=["year","hour","minute","second"].indexOf(a)>=0,o=["ראשון","שני","שלישי","רביעי","חמישי","שישי","שביעי","שמיני","תשיעי","עשירי"],l=["ראשונה","שנייה","שלישית","רביעית","חמישית","שישית","שביעית","שמינית","תשיעית","עשירית"],u=r-1;return i?l[u]:o[u]},Snt={ordinalNumber:wnt,era:oe({values:hnt,defaultWidth:"wide"}),quarter:oe({values:mnt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:gnt,defaultWidth:"wide"}),day:oe({values:vnt,defaultWidth:"wide"}),dayPeriod:oe({values:ynt,defaultWidth:"wide",formattingValues:bnt,defaultFormattingWidth:"wide"})},Ent=/^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i,Tnt=/^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i,Cnt={narrow:/^ל(ספירה|פנה״ס)/i,abbreviated:/^ל(ספירה|פנה״ס)/i,wide:/^ל(פני ה)?ספירה/i},knt={any:[/^לפ/i,/^לס/i]},xnt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^רבעון [1234]/i},_nt={any:[/1/i,/2/i,/3/i,/4/i]},Ont={narrow:/^\d+/i,abbreviated:/^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i,wide:/^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i},Rnt={narrow:[/^1$/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ינ/i,/^פ/i,/^מר/i,/^אפ/i,/^מא/i,/^יונ/i,/^יול/i,/^אוג/i,/^ס/i,/^אוק/i,/^נ/i,/^ד/i]},Pnt={narrow:/^[אבגדהוש]׳/i,short:/^[אבגדהוש]׳/i,abbreviated:/^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i,wide:/^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i},Ant={abbreviated:[/א׳$/i,/ב׳$/i,/ג׳$/i,/ד׳$/i,/ה׳$/i,/ו׳$/i,/^ש/i],wide:[/ן$/i,/ני$/i,/לישי$/i,/עי$/i,/מישי$/i,/שישי$/i,/ת$/i],any:[/^א/i,/^ב/i,/^ג/i,/^ד/i,/^ה/i,/^ו/i,/^ש/i]},Nnt={any:/^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i},Mnt={any:{am:/^לפ/i,pm:/^אחה/i,midnight:/^ח/i,noon:/^צ/i,morning:/בוקר/i,afternoon:/בצ|אחר/i,evening:/ערב/i,night:/לילה/i}},Int=["רא","שנ","של","רב","ח","שי","שב","שמ","ת","ע"],Dnt={ordinalNumber:Xt({matchPattern:Ent,parsePattern:Tnt,valueCallback:function(t){var n=parseInt(t,10);return isNaN(n)?Int.indexOf(t)+1:n}}),era:se({matchPatterns:Cnt,defaultMatchWidth:"wide",parsePatterns:knt,defaultParseWidth:"any"}),quarter:se({matchPatterns:xnt,defaultMatchWidth:"wide",parsePatterns:_nt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Ont,defaultMatchWidth:"wide",parsePatterns:Rnt,defaultParseWidth:"any"}),day:se({matchPatterns:Pnt,defaultMatchWidth:"wide",parsePatterns:Ant,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Nnt,defaultMatchWidth:"any",parsePatterns:Mnt,defaultParseWidth:"any"})},$nt={code:"he",formatDistance:snt,formatLong:dnt,formatRelative:pnt,localize:Snt,match:Dnt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Lnt=Object.freeze(Object.defineProperty({__proto__:null,default:$nt},Symbol.toStringTag,{value:"Module"})),Fnt=jt(Lnt);var jae={locale:{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},number:{"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"}},jnt={narrow:["ईसा-पूर्व","ईस्वी"],abbreviated:["ईसा-पूर्व","ईस्वी"],wide:["ईसा-पूर्व","ईसवी सन"]},Unt={narrow:["1","2","3","4"],abbreviated:["ति1","ति2","ति3","ति4"],wide:["पहली तिमाही","दूसरी तिमाही","तीसरी तिमाही","चौथी तिमाही"]},Bnt={narrow:["ज","फ़","मा","अ","मई","जू","जु","अग","सि","अक्टू","न","दि"],abbreviated:["जन","फ़र","मार्च","अप्रैल","मई","जून","जुल","अग","सित","अक्टू","नव","दिस"],wide:["जनवरी","फ़रवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},Wnt={narrow:["र","सो","मं","बु","गु","शु","श"],short:["र","सो","मं","बु","गु","शु","श"],abbreviated:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],wide:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"]},znt={narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},qnt={narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},Hnt=function(t,n){var r=Number(t);return Uae(r)};function Vnt(e){var t=e.toString().replace(/[१२३४५६७८९०]/g,function(n){return jae.number[n]});return Number(t)}function Uae(e){return e.toString().replace(/\d/g,function(t){return jae.locale[t]})}var Gnt={ordinalNumber:Hnt,era:oe({values:jnt,defaultWidth:"wide"}),quarter:oe({values:Unt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Bnt,defaultWidth:"wide"}),day:oe({values:Wnt,defaultWidth:"wide"}),dayPeriod:oe({values:znt,defaultWidth:"wide",formattingValues:qnt,defaultFormattingWidth:"wide"})},Ynt={lessThanXSeconds:{one:"१ सेकंड से कम",other:"{{count}} सेकंड से कम"},xSeconds:{one:"१ सेकंड",other:"{{count}} सेकंड"},halfAMinute:"आधा मिनट",lessThanXMinutes:{one:"१ मिनट से कम",other:"{{count}} मिनट से कम"},xMinutes:{one:"१ मिनट",other:"{{count}} मिनट"},aboutXHours:{one:"लगभग १ घंटा",other:"लगभग {{count}} घंटे"},xHours:{one:"१ घंटा",other:"{{count}} घंटे"},xDays:{one:"१ दिन",other:"{{count}} दिन"},aboutXWeeks:{one:"लगभग १ सप्ताह",other:"लगभग {{count}} सप्ताह"},xWeeks:{one:"१ सप्ताह",other:"{{count}} सप्ताह"},aboutXMonths:{one:"लगभग १ महीना",other:"लगभग {{count}} महीने"},xMonths:{one:"१ महीना",other:"{{count}} महीने"},aboutXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"},xYears:{one:"१ वर्ष",other:"{{count}} वर्ष"},overXYears:{one:"१ वर्ष से अधिक",other:"{{count}} वर्ष से अधिक"},almostXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"}},Knt=function(t,n,r){var a,i=Ynt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",Uae(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"मे ":a+" पहले":a},Xnt={full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},Qnt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Jnt={full:"{{date}} 'को' {{time}}",long:"{{date}} 'को' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Znt={date:Ne({formats:Xnt,defaultWidth:"full"}),time:Ne({formats:Qnt,defaultWidth:"full"}),dateTime:Ne({formats:Jnt,defaultWidth:"full"})},ert={lastWeek:"'पिछले' eeee p",yesterday:"'कल' p",today:"'आज' p",tomorrow:"'कल' p",nextWeek:"eeee 'को' p",other:"P"},trt=function(t,n,r,a){return ert[t]},nrt=/^[०१२३४५६७८९]+/i,rrt=/^[०१२३४५६७८९]+/i,art={narrow:/^(ईसा-पूर्व|ईस्वी)/i,abbreviated:/^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i,wide:/^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i},irt={any:[/^b/i,/^(a|c)/i]},ort={narrow:/^[1234]/i,abbreviated:/^ति[1234]/i,wide:/^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i},srt={any:[/1/i,/2/i,/3/i,/4/i]},lrt={narrow:/^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i,abbreviated:/^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i,wide:/^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i},urt={narrow:[/^ज/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^न/i,/^दि/i],any:[/^जन/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^नव/i,/^दिस/i]},crt={narrow:/^[रविसोममंगलबुधगुरुशुक्रशनि]/i,short:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,abbreviated:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,wide:/^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i},drt={narrow:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i],any:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i]},frt={narrow:/^(पू|अ|म|द.\?|सु|दो|शा|रा)/i,any:/^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i},prt={any:{am:/^पूर्वाह्न/i,pm:/^अपराह्न/i,midnight:/^मध्य/i,noon:/^दो/i,morning:/सु/i,afternoon:/दो/i,evening:/शा/i,night:/रा/i}},hrt={ordinalNumber:Xt({matchPattern:nrt,parsePattern:rrt,valueCallback:Vnt}),era:se({matchPatterns:art,defaultMatchWidth:"wide",parsePatterns:irt,defaultParseWidth:"any"}),quarter:se({matchPatterns:ort,defaultMatchWidth:"wide",parsePatterns:srt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:lrt,defaultMatchWidth:"wide",parsePatterns:urt,defaultParseWidth:"any"}),day:se({matchPatterns:crt,defaultMatchWidth:"wide",parsePatterns:drt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:frt,defaultMatchWidth:"any",parsePatterns:prt,defaultParseWidth:"any"})},mrt={code:"hi",formatDistance:Knt,formatLong:Znt,formatRelative:trt,localize:Gnt,match:hrt,options:{weekStartsOn:0,firstWeekContainsDate:4}};const grt=Object.freeze(Object.defineProperty({__proto__:null,default:mrt},Symbol.toStringTag,{value:"Module"})),vrt=jt(grt);var yrt={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 tjedan",withPrepositionAgo:"oko 1 tjedan",withPrepositionIn:"oko 1 tjedan"},dual:"oko {{count}} tjedna",other:"oko {{count}} tjedana"},xWeeks:{one:{standalone:"1 tjedan",withPrepositionAgo:"1 tjedan",withPrepositionIn:"1 tjedan"},dual:"{{count}} tjedna",other:"{{count}} tjedana"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},brt=function(t,n,r){var a,i=yrt[t];return typeof i=="string"?a=i:n===1?r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a=i.one.withPrepositionIn:a=i.one.withPrepositionAgo:a=i.one.standalone:n%10>1&&n%10<5&&String(n).substr(-2,1)!=="1"?a=i.dual.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"za "+a:"prije "+a:a},wrt={full:"EEEE, d. MMMM y.",long:"d. MMMM y.",medium:"d. MMM y.",short:"dd. MM. y."},Srt={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Ert={full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Trt={date:Ne({formats:wrt,defaultWidth:"full"}),time:Ne({formats:Srt,defaultWidth:"full"}),dateTime:Ne({formats:Ert,defaultWidth:"full"})},Crt={lastWeek:function(t){switch(t.getUTCDay()){case 0:return"'prošlu nedjelju u' p";case 3:return"'prošlu srijedu u' p";case 6:return"'prošlu subotu u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'jučer u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:function(t){switch(t.getUTCDay()){case 0:return"'iduću nedjelju u' p";case 3:return"'iduću srijedu u' p";case 6:return"'iduću subotu u' p";default:return"'prošli' EEEE 'u' p"}},other:"P"},krt=function(t,n,r,a){var i=Crt[t];return typeof i=="function"?i(n):i},xrt={narrow:["pr.n.e.","AD"],abbreviated:["pr. Kr.","po. Kr."],wide:["Prije Krista","Poslije Krista"]},_rt={narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},Ort={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"]},Rrt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječnja","veljače","ožujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenog","prosinca"]},Prt={narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sri","čet","pet","sub"],abbreviated:["ned","pon","uto","sri","čet","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"]},Art={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},Nrt={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},Mrt=function(t,n){var r=Number(t);return r+"."},Irt={ordinalNumber:Mrt,era:oe({values:xrt,defaultWidth:"wide"}),quarter:oe({values:_rt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Ort,defaultWidth:"wide",formattingValues:Rrt,defaultFormattingWidth:"wide"}),day:oe({values:Prt,defaultWidth:"wide"}),dayPeriod:oe({values:Nrt,defaultWidth:"wide",formattingValues:Art,defaultFormattingWidth:"wide"})},Drt=/^(\d+)\./i,$rt=/\d+/i,Lrt={narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Kr\.|po\.\s?Kr\.)/i,wide:/^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i},Frt={any:[/^pr/i,/^(po|nova)/i]},jrt={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},Urt={any:[/1/i,/2/i,/3/i,/4/i]},Brt={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i,wide:/^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i},Wrt={narrow:[/1/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i,/8/i,/9/i,/10/i,/11/i,/12/i],abbreviated:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i],wide:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i]},zrt={narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},qrt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Hrt={any:/^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i},Vrt={any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(navece|naveče)/i,night:/(nocu|noću)/i}},Grt={ordinalNumber:Xt({matchPattern:Drt,parsePattern:$rt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Lrt,defaultMatchWidth:"wide",parsePatterns:Frt,defaultParseWidth:"any"}),quarter:se({matchPatterns:jrt,defaultMatchWidth:"wide",parsePatterns:Urt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Brt,defaultMatchWidth:"wide",parsePatterns:Wrt,defaultParseWidth:"wide"}),day:se({matchPatterns:zrt,defaultMatchWidth:"wide",parsePatterns:qrt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Hrt,defaultMatchWidth:"any",parsePatterns:Vrt,defaultParseWidth:"any"})},Yrt={code:"hr",formatDistance:brt,formatLong:Trt,formatRelative:krt,localize:Irt,match:Grt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Krt=Object.freeze(Object.defineProperty({__proto__:null,default:Yrt},Symbol.toStringTag,{value:"Module"})),Xrt=jt(Krt);var Qrt={about:"körülbelül",over:"több mint",almost:"majdnem",lessthan:"kevesebb mint"},Jrt={xseconds:" másodperc",halfaminute:"fél perc",xminutes:" perc",xhours:" óra",xdays:" nap",xweeks:" hét",xmonths:" hónap",xyears:" év"},Zrt={xseconds:{"-1":" másodperccel ezelőtt",1:" másodperc múlva",0:" másodperce"},halfaminute:{"-1":"fél perccel ezelőtt",1:"fél perc múlva",0:"fél perce"},xminutes:{"-1":" perccel ezelőtt",1:" perc múlva",0:" perce"},xhours:{"-1":" órával ezelőtt",1:" óra múlva",0:" órája"},xdays:{"-1":" nappal ezelőtt",1:" nap múlva",0:" napja"},xweeks:{"-1":" héttel ezelőtt",1:" hét múlva",0:" hete"},xmonths:{"-1":" hónappal ezelőtt",1:" hónap múlva",0:" hónapja"},xyears:{"-1":" évvel ezelőtt",1:" év múlva",0:" éve"}},eat=function(t,n,r){var a=t.match(/about|over|almost|lessthan/i),i=a?t.replace(a[0],""):t,o=(r==null?void 0:r.addSuffix)===!0,l=i.toLowerCase(),u=(r==null?void 0:r.comparison)||0,d=o?Zrt[l][u]:Jrt[l],f=l==="halfaminute"?d:n+d;if(a){var g=a[0].toLowerCase();f=Qrt[g]+" "+f}return f},tat={full:"y. MMMM d., EEEE",long:"y. MMMM d.",medium:"y. MMM d.",short:"y. MM. dd."},nat={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},rat={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},aat={date:Ne({formats:tat,defaultWidth:"full"}),time:Ne({formats:nat,defaultWidth:"full"}),dateTime:Ne({formats:rat,defaultWidth:"full"})},iat=["vasárnap","hétfőn","kedden","szerdán","csütörtökön","pénteken","szombaton"];function zG(e){return function(t){var n=iat[t.getUTCDay()],r=e?"":"'múlt' ";return"".concat(r,"'").concat(n,"' p'-kor'")}}var oat={lastWeek:zG(!1),yesterday:"'tegnap' p'-kor'",today:"'ma' p'-kor'",tomorrow:"'holnap' p'-kor'",nextWeek:zG(!0),other:"P"},sat=function(t,n){var r=oat[t];return typeof r=="function"?r(n):r},lat={narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus előtt","időszámításunk szerint"]},uat={narrow:["1.","2.","3.","4."],abbreviated:["1. n.év","2. n.év","3. n.év","4. n.év"],wide:["1. negyedév","2. negyedév","3. negyedév","4. negyedév"]},cat={narrow:["I.","II.","III.","IV."],abbreviated:["I. n.év","II. n.év","III. n.év","IV. n.év"],wide:["I. negyedév","II. negyedév","III. negyedév","IV. negyedév"]},dat={narrow:["J","F","M","Á","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],wide:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]},fat={narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},pat={narrow:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},abbreviated:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},wide:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"délután",evening:"este",night:"éjjel"}},hat=function(t,n){var r=Number(t);return r+"."},mat={ordinalNumber:hat,era:oe({values:lat,defaultWidth:"wide"}),quarter:oe({values:uat,defaultWidth:"wide",argumentCallback:function(t){return t-1},formattingValues:cat,defaultFormattingWidth:"wide"}),month:oe({values:dat,defaultWidth:"wide"}),day:oe({values:fat,defaultWidth:"wide"}),dayPeriod:oe({values:pat,defaultWidth:"wide"})},gat=/^(\d+)\.?/i,vat=/\d+/i,yat={narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i},bat={narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/előtt/i,/(szerint|i. sz.)/i]},wat={narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.év/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyedév/i},Sat={any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},Eat={narrow:/^[jfmaásond]|sz/i,abbreviated:/^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i},Tat={narrow:[/^j/i,/^f/i,/^m/i,/^a|á/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^már/i,/^áp/i,/^máj/i,/^jún/i,/^júl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Cat={narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i},kat={narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},xat={any:/^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i},_at={any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^éjf/i,noon:/^dé/i,morning:/reg/i,afternoon:/^délu\.?/i,evening:/es/i,night:/éjj/i}},Oat={ordinalNumber:Xt({matchPattern:gat,parsePattern:vat,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:yat,defaultMatchWidth:"wide",parsePatterns:bat,defaultParseWidth:"any"}),quarter:se({matchPatterns:wat,defaultMatchWidth:"wide",parsePatterns:Sat,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Eat,defaultMatchWidth:"wide",parsePatterns:Tat,defaultParseWidth:"any"}),day:se({matchPatterns:Cat,defaultMatchWidth:"wide",parsePatterns:kat,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:xat,defaultMatchWidth:"any",parsePatterns:_at,defaultParseWidth:"any"})},Rat={code:"hu",formatDistance:eat,formatLong:aat,formatRelative:sat,localize:mat,match:Oat,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Pat=Object.freeze(Object.defineProperty({__proto__:null,default:Rat},Symbol.toStringTag,{value:"Module"})),Aat=jt(Pat);var Nat={lessThanXSeconds:{one:"ավելի քիչ քան 1 վայրկյան",other:"ավելի քիչ քան {{count}} վայրկյան"},xSeconds:{one:"1 վայրկյան",other:"{{count}} վայրկյան"},halfAMinute:"կես րոպե",lessThanXMinutes:{one:"ավելի քիչ քան 1 րոպե",other:"ավելի քիչ քան {{count}} րոպե"},xMinutes:{one:"1 րոպե",other:"{{count}} րոպե"},aboutXHours:{one:"մոտ 1 ժամ",other:"մոտ {{count}} ժամ"},xHours:{one:"1 ժամ",other:"{{count}} ժամ"},xDays:{one:"1 օր",other:"{{count}} օր"},aboutXWeeks:{one:"մոտ 1 շաբաթ",other:"մոտ {{count}} շաբաթ"},xWeeks:{one:"1 շաբաթ",other:"{{count}} շաբաթ"},aboutXMonths:{one:"մոտ 1 ամիս",other:"մոտ {{count}} ամիս"},xMonths:{one:"1 ամիս",other:"{{count}} ամիս"},aboutXYears:{one:"մոտ 1 տարի",other:"մոտ {{count}} տարի"},xYears:{one:"1 տարի",other:"{{count}} տարի"},overXYears:{one:"ավելի քան 1 տարի",other:"ավելի քան {{count}} տարի"},almostXYears:{one:"համարյա 1 տարի",other:"համարյա {{count}} տարի"}},Mat=function(t,n,r){var a,i=Nat[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" հետո":a+" առաջ":a},Iat={full:"d MMMM, y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd.MM.yyyy"},Dat={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},$at={full:"{{date}} 'ժ․'{{time}}",long:"{{date}} 'ժ․'{{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lat={date:Ne({formats:Iat,defaultWidth:"full"}),time:Ne({formats:Dat,defaultWidth:"full"}),dateTime:Ne({formats:$at,defaultWidth:"full"})},Fat={lastWeek:"'նախորդ' eeee p'֊ին'",yesterday:"'երեկ' p'֊ին'",today:"'այսօր' p'֊ին'",tomorrow:"'վաղը' p'֊ին'",nextWeek:"'հաջորդ' eeee p'֊ին'",other:"P"},jat=function(t,n,r,a){return Fat[t]},Uat={narrow:["Ք","Մ"],abbreviated:["ՔԱ","ՄԹ"],wide:["Քրիստոսից առաջ","Մեր թվարկության"]},Bat={narrow:["1","2","3","4"],abbreviated:["Ք1","Ք2","Ք3","Ք4"],wide:["1֊ին քառորդ","2֊րդ քառորդ","3֊րդ քառորդ","4֊րդ քառորդ"]},Wat={narrow:["Հ","Փ","Մ","Ա","Մ","Հ","Հ","Օ","Ս","Հ","Ն","Դ"],abbreviated:["հուն","փետ","մար","ապր","մայ","հուն","հուլ","օգս","սեպ","հոկ","նոյ","դեկ"],wide:["հունվար","փետրվար","մարտ","ապրիլ","մայիս","հունիս","հուլիս","օգոստոս","սեպտեմբեր","հոկտեմբեր","նոյեմբեր","դեկտեմբեր"]},zat={narrow:["Կ","Ե","Ե","Չ","Հ","Ո","Շ"],short:["կր","եր","եք","չք","հգ","ուր","շբ"],abbreviated:["կիր","երկ","երք","չոր","հնգ","ուրբ","շաբ"],wide:["կիրակի","երկուշաբթի","երեքշաբթի","չորեքշաբթի","հինգշաբթի","ուրբաթ","շաբաթ"]},qat={narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"}},Hat={narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"}},Vat=function(t,n){var r=Number(t),a=r%100;return a<10&&a%10===1?r+"֊ին":r+"֊րդ"},Gat={ordinalNumber:Vat,era:oe({values:Uat,defaultWidth:"wide"}),quarter:oe({values:Bat,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Wat,defaultWidth:"wide"}),day:oe({values:zat,defaultWidth:"wide"}),dayPeriod:oe({values:qat,defaultWidth:"wide",formattingValues:Hat,defaultFormattingWidth:"wide"})},Yat=/^(\d+)((-|֊)?(ին|րդ))?/i,Kat=/\d+/i,Xat={narrow:/^(Ք|Մ)/i,abbreviated:/^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i,wide:/^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i},Qat={any:[/^ք/i,/^մ/i]},Jat={narrow:/^[1234]/i,abbreviated:/^ք[1234]/i,wide:/^[1234]((-|֊)?(ին|րդ)) քառորդ/i},Zat={any:[/1/i,/2/i,/3/i,/4/i]},eit={narrow:/^[հփմաօսնդ]/i,abbreviated:/^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i,wide:/^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i},tit={narrow:[/^հ/i,/^փ/i,/^մ/i,/^ա/i,/^մ/i,/^հ/i,/^հ/i,/^օ/i,/^ս/i,/^հ/i,/^ն/i,/^դ/i],any:[/^հու/i,/^փ/i,/^մար/i,/^ա/i,/^մայ/i,/^հուն/i,/^հուլ/i,/^օ/i,/^ս/i,/^հոկ/i,/^ն/i,/^դ/i]},nit={narrow:/^[եչհոշկ]/i,short:/^(կր|եր|եք|չք|հգ|ուր|շբ)/i,abbreviated:/^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i,wide:/^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i},rit={narrow:[/^կ/i,/^ե/i,/^ե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],short:[/^կ/i,/^եր/i,/^եք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],abbreviated:[/^կ/i,/^երկ/i,/^երք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],wide:[/^կ/i,/^երկ/i,/^երե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i]},ait={narrow:/^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i,any:/^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i},iit={any:{am:/^a/i,pm:/^p/i,midnight:/կեսգիշեր/i,noon:/կեսօր/i,morning:/առավոտ/i,afternoon:/ցերեկ/i,evening:/երեկո/i,night:/գիշեր/i}},oit={ordinalNumber:Xt({matchPattern:Yat,parsePattern:Kat,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Xat,defaultMatchWidth:"wide",parsePatterns:Qat,defaultParseWidth:"any"}),quarter:se({matchPatterns:Jat,defaultMatchWidth:"wide",parsePatterns:Zat,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:eit,defaultMatchWidth:"wide",parsePatterns:tit,defaultParseWidth:"any"}),day:se({matchPatterns:nit,defaultMatchWidth:"wide",parsePatterns:rit,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:ait,defaultMatchWidth:"any",parsePatterns:iit,defaultParseWidth:"any"})},sit={code:"hy",formatDistance:Mat,formatLong:Lat,formatRelative:jat,localize:Gat,match:oit,options:{weekStartsOn:1,firstWeekContainsDate:1}};const lit=Object.freeze(Object.defineProperty({__proto__:null,default:sit},Symbol.toStringTag,{value:"Module"})),uit=jt(lit);var cit={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},dit=function(t,n,r){var a,i=cit[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dalam waktu "+a:a+" yang lalu":a},fit={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},pit={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},hit={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},mit={date:Ne({formats:fit,defaultWidth:"full"}),time:Ne({formats:pit,defaultWidth:"full"}),dateTime:Ne({formats:hit,defaultWidth:"full"})},git={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},vit=function(t,n,r,a){return git[t]},yit={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},bit={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},wit={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},Sit={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},Eit={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},Tit={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},Cit=function(t,n){var r=Number(t);return"ke-"+r},kit={ordinalNumber:Cit,era:oe({values:yit,defaultWidth:"wide"}),quarter:oe({values:bit,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:wit,defaultWidth:"wide"}),day:oe({values:Sit,defaultWidth:"wide"}),dayPeriod:oe({values:Eit,defaultWidth:"wide",formattingValues:Tit,defaultFormattingWidth:"wide"})},xit=/^ke-(\d+)?/i,_it=/\d+/i,Oit={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},Rit={any:[/^s/i,/^(m|e)/i]},Pit={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},Ait={any:[/1/i,/2/i,/3/i,/4/i]},Nit={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},Mit={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},Iit={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},Dit={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},$it={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},Lit={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},Fit={ordinalNumber:Xt({matchPattern:xit,parsePattern:_it,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Oit,defaultMatchWidth:"wide",parsePatterns:Rit,defaultParseWidth:"any"}),quarter:se({matchPatterns:Pit,defaultMatchWidth:"wide",parsePatterns:Ait,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Nit,defaultMatchWidth:"wide",parsePatterns:Mit,defaultParseWidth:"any"}),day:se({matchPatterns:Iit,defaultMatchWidth:"wide",parsePatterns:Dit,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:$it,defaultMatchWidth:"any",parsePatterns:Lit,defaultParseWidth:"any"})},jit={code:"id",formatDistance:dit,formatLong:mit,formatRelative:vit,localize:kit,match:Fit,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Uit=Object.freeze(Object.defineProperty({__proto__:null,default:jit},Symbol.toStringTag,{value:"Module"})),Bit=jt(Uit);var Wit={lessThanXSeconds:{one:"minna en 1 sekúnda",other:"minna en {{count}} sekúndur"},xSeconds:{one:"1 sekúnda",other:"{{count}} sekúndur"},halfAMinute:"hálf mínúta",lessThanXMinutes:{one:"minna en 1 mínúta",other:"minna en {{count}} mínútur"},xMinutes:{one:"1 mínúta",other:"{{count}} mínútur"},aboutXHours:{one:"u.þ.b. 1 klukkustund",other:"u.þ.b. {{count}} klukkustundir"},xHours:{one:"1 klukkustund",other:"{{count}} klukkustundir"},xDays:{one:"1 dagur",other:"{{count}} dagar"},aboutXWeeks:{one:"um viku",other:"um {{count}} vikur"},xWeeks:{one:"1 viku",other:"{{count}} vikur"},aboutXMonths:{one:"u.þ.b. 1 mánuður",other:"u.þ.b. {{count}} mánuðir"},xMonths:{one:"1 mánuður",other:"{{count}} mánuðir"},aboutXYears:{one:"u.þ.b. 1 ár",other:"u.þ.b. {{count}} ár"},xYears:{one:"1 ár",other:"{{count}} ár"},overXYears:{one:"meira en 1 ár",other:"meira en {{count}} ár"},almostXYears:{one:"næstum 1 ár",other:"næstum {{count}} ár"}},zit=function(t,n,r){var a,i=Wit[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"í "+a:a+" síðan":a},qit={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"d.MM.y"},Hit={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Vit={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Git={date:Ne({formats:qit,defaultWidth:"full"}),time:Ne({formats:Hit,defaultWidth:"full"}),dateTime:Ne({formats:Vit,defaultWidth:"full"})},Yit={lastWeek:"'síðasta' dddd 'kl.' p",yesterday:"'í gær kl.' p",today:"'í dag kl.' p",tomorrow:"'á morgun kl.' p",nextWeek:"dddd 'kl.' p",other:"P"},Kit=function(t,n,r,a){return Yit[t]},Xit={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["fyrir Krist","eftir Krist"]},Qit={narrow:["1","2","3","4"],abbreviated:["1F","2F","3F","4F"],wide:["1. fjórðungur","2. fjórðungur","3. fjórðungur","4. fjórðungur"]},Jit={narrow:["J","F","M","A","M","J","J","Á","S","Ó","N","D"],abbreviated:["jan.","feb.","mars","apríl","maí","júní","júlí","ágúst","sept.","okt.","nóv.","des."],wide:["janúar","febrúar","mars","apríl","maí","júní","júlí","ágúst","september","október","nóvember","desember"]},Zit={narrow:["S","M","Þ","M","F","F","L"],short:["Su","Má","Þr","Mi","Fi","Fö","La"],abbreviated:["sun.","mán.","þri.","mið.","fim.","fös.","lau."],wide:["sunnudagur","mánudagur","þriðjudagur","miðvikudagur","fimmtudagur","föstudagur","laugardagur"]},eot={narrow:{am:"f",pm:"e",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"},wide:{am:"fyrir hádegi",pm:"eftir hádegi",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"}},tot={narrow:{am:"f",pm:"e",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"},wide:{am:"fyrir hádegi",pm:"eftir hádegi",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"}},not=function(t,n){var r=Number(t);return r+"."},rot={ordinalNumber:not,era:oe({values:Xit,defaultWidth:"wide"}),quarter:oe({values:Qit,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Jit,defaultWidth:"wide"}),day:oe({values:Zit,defaultWidth:"wide"}),dayPeriod:oe({values:eot,defaultWidth:"wide",formattingValues:tot,defaultFormattingWidth:"wide"})},aot=/^(\d+)(\.)?/i,iot=/\d+(\.)?/i,oot={narrow:/^(f\.Kr\.|e\.Kr\.)/i,abbreviated:/^(f\.Kr\.|e\.Kr\.)/i,wide:/^(fyrir Krist|eftir Krist)/i},sot={any:[/^(f\.Kr\.)/i,/^(e\.Kr\.)/i]},lot={narrow:/^[1234]\.?/i,abbreviated:/^q[1234]\.?/i,wide:/^[1234]\.? fjórðungur/i},uot={any:[/1\.?/i,/2\.?/i,/3\.?/i,/4\.?/i]},cot={narrow:/^[jfmásónd]/i,abbreviated:/^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i,wide:/^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i},dot={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^á/i,/^s/i,/^ó/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maí/i,/^jún/i,/^júl/i,/^áu/i,/^s/i,/^ó/i,/^n/i,/^d/i]},fot={narrow:/^[smtwf]/i,short:/^(su|má|þr|mi|fi|fö|la)/i,abbreviated:/^(sun|mán|þri|mið|fim|fös|lau)\.?/i,wide:/^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i},pot={narrow:[/^s/i,/^m/i,/^þ/i,/^m/i,/^f/i,/^f/i,/^l/i],any:[/^su/i,/^má/i,/^þr/i,/^mi/i,/^fi/i,/^fö/i,/^la/i]},hot={narrow:/^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i,any:/^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i},mot={any:{am:/^f/i,pm:/^e/i,midnight:/^mi/i,noon:/^há/i,morning:/morgunn/i,afternoon:/síðdegi/i,evening:/kvöld/i,night:/nótt/i}},got={ordinalNumber:Xt({matchPattern:aot,parsePattern:iot,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:oot,defaultMatchWidth:"wide",parsePatterns:sot,defaultParseWidth:"any"}),quarter:se({matchPatterns:lot,defaultMatchWidth:"wide",parsePatterns:uot,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:cot,defaultMatchWidth:"wide",parsePatterns:dot,defaultParseWidth:"any"}),day:se({matchPatterns:fot,defaultMatchWidth:"wide",parsePatterns:pot,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:hot,defaultMatchWidth:"any",parsePatterns:mot,defaultParseWidth:"any"})},vot={code:"is",formatDistance:zit,formatLong:Git,formatRelative:Kit,localize:rot,match:got,options:{weekStartsOn:1,firstWeekContainsDate:4}};const yot=Object.freeze(Object.defineProperty({__proto__:null,default:vot},Symbol.toStringTag,{value:"Module"})),bot=jt(yot);var wot={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},Sot=function(t,n,r){var a,i=wot[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"tra "+a:a+" fa":a},Eot={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},Tot={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Cot={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},kot={date:Ne({formats:Eot,defaultWidth:"full"}),time:Ne({formats:Tot,defaultWidth:"full"}),dateTime:Ne({formats:Cot,defaultWidth:"full"})},k4=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function xot(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+k4[e]+" scorso alle' p"}}function qG(e){return"'"+k4[e]+" alle' p"}function _ot(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+k4[e]+" prossimo alle' p"}}var Oot={lastWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?qG(a):xot(a)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?qG(a):_ot(a)},other:"P"},Rot=function(t,n,r,a){var i=Oot[t];return typeof i=="function"?i(n,r,a):i},Pot={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},Aot={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Not={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},Mot={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},Iot={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},Dot={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},$ot=function(t,n){var r=Number(t);return String(r)},Lot={ordinalNumber:$ot,era:oe({values:Pot,defaultWidth:"wide"}),quarter:oe({values:Aot,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Not,defaultWidth:"wide"}),day:oe({values:Mot,defaultWidth:"wide"}),dayPeriod:oe({values:Iot,defaultWidth:"wide",formattingValues:Dot,defaultFormattingWidth:"wide"})},Fot=/^(\d+)(º)?/i,jot=/\d+/i,Uot={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},Bot={any:[/^a/i,/^(d|e)/i]},Wot={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},zot={any:[/1/i,/2/i,/3/i,/4/i]},qot={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},Hot={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},Vot={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},Got={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},Yot={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},Kot={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},Xot={ordinalNumber:Xt({matchPattern:Fot,parsePattern:jot,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Uot,defaultMatchWidth:"wide",parsePatterns:Bot,defaultParseWidth:"any"}),quarter:se({matchPatterns:Wot,defaultMatchWidth:"wide",parsePatterns:zot,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:qot,defaultMatchWidth:"wide",parsePatterns:Hot,defaultParseWidth:"any"}),day:se({matchPatterns:Vot,defaultMatchWidth:"wide",parsePatterns:Got,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Yot,defaultMatchWidth:"any",parsePatterns:Kot,defaultParseWidth:"any"})},Qot={code:"it",formatDistance:Sot,formatLong:kot,formatRelative:Rot,localize:Lot,match:Xot,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Jot=Object.freeze(Object.defineProperty({__proto__:null,default:Qot},Symbol.toStringTag,{value:"Module"})),Zot=jt(Jot);var est={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},tst=function(t,n,r){r=r||{};var a,i=est[t];return typeof i=="string"?a=i:n===1?r.addSuffix&&i.oneWithSuffix?a=i.oneWithSuffix:a=i.one:r.addSuffix&&i.otherWithSuffix?a=i.otherWithSuffix.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r.addSuffix?r.comparison&&r.comparison>0?a+"後":a+"前":a},nst={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},rst={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},ast={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},ist={date:Ne({formats:nst,defaultWidth:"full"}),time:Ne({formats:rst,defaultWidth:"full"}),dateTime:Ne({formats:ast,defaultWidth:"full"})},ost={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},sst=function(t,n,r,a){return ost[t]},lst={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},ust={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},cst={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},dst={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},fst={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},pst={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},hst=function(t,n){var r=Number(t),a=String(n==null?void 0:n.unit);switch(a){case"year":return"".concat(r,"年");case"quarter":return"第".concat(r,"四半期");case"month":return"".concat(r,"月");case"week":return"第".concat(r,"週");case"date":return"".concat(r,"日");case"hour":return"".concat(r,"時");case"minute":return"".concat(r,"分");case"second":return"".concat(r,"秒");default:return"".concat(r)}},mst={ordinalNumber:hst,era:oe({values:lst,defaultWidth:"wide"}),quarter:oe({values:ust,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:cst,defaultWidth:"wide"}),day:oe({values:dst,defaultWidth:"wide"}),dayPeriod:oe({values:fst,defaultWidth:"wide",formattingValues:pst,defaultFormattingWidth:"wide"})},gst=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,vst=/\d+/i,yst={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},bst={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},wst={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},Sst={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},Est={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},Tst={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},Cst={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},kst={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},xst={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},_st={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},Ost={ordinalNumber:Xt({matchPattern:gst,parsePattern:vst,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:yst,defaultMatchWidth:"wide",parsePatterns:bst,defaultParseWidth:"any"}),quarter:se({matchPatterns:wst,defaultMatchWidth:"wide",parsePatterns:Sst,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Est,defaultMatchWidth:"wide",parsePatterns:Tst,defaultParseWidth:"any"}),day:se({matchPatterns:Cst,defaultMatchWidth:"wide",parsePatterns:kst,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:xst,defaultMatchWidth:"any",parsePatterns:_st,defaultParseWidth:"any"})},Rst={code:"ja",formatDistance:tst,formatLong:ist,formatRelative:sst,localize:mst,match:Ost,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Pst=Object.freeze(Object.defineProperty({__proto__:null,default:Rst},Symbol.toStringTag,{value:"Module"})),Ast=jt(Pst);var Nst={lessThanXSeconds:{past:"{{count}} წამზე ნაკლები ხნის წინ",present:"{{count}} წამზე ნაკლები",future:"{{count}} წამზე ნაკლებში"},xSeconds:{past:"{{count}} წამის წინ",present:"{{count}} წამი",future:"{{count}} წამში"},halfAMinute:{past:"ნახევარი წუთის წინ",present:"ნახევარი წუთი",future:"ნახევარი წუთში"},lessThanXMinutes:{past:"{{count}} წუთზე ნაკლები ხნის წინ",present:"{{count}} წუთზე ნაკლები",future:"{{count}} წუთზე ნაკლებში"},xMinutes:{past:"{{count}} წუთის წინ",present:"{{count}} წუთი",future:"{{count}} წუთში"},aboutXHours:{past:"დაახლოებით {{count}} საათის წინ",present:"დაახლოებით {{count}} საათი",future:"დაახლოებით {{count}} საათში"},xHours:{past:"{{count}} საათის წინ",present:"{{count}} საათი",future:"{{count}} საათში"},xDays:{past:"{{count}} დღის წინ",present:"{{count}} დღე",future:"{{count}} დღეში"},aboutXWeeks:{past:"დაახლოებით {{count}} კვირას წინ",present:"დაახლოებით {{count}} კვირა",future:"დაახლოებით {{count}} კვირაში"},xWeeks:{past:"{{count}} კვირას კვირა",present:"{{count}} კვირა",future:"{{count}} კვირაში"},aboutXMonths:{past:"დაახლოებით {{count}} თვის წინ",present:"დაახლოებით {{count}} თვე",future:"დაახლოებით {{count}} თვეში"},xMonths:{past:"{{count}} თვის წინ",present:"{{count}} თვე",future:"{{count}} თვეში"},aboutXYears:{past:"დაახლოებით {{count}} წლის წინ",present:"დაახლოებით {{count}} წელი",future:"დაახლოებით {{count}} წელში"},xYears:{past:"{{count}} წლის წინ",present:"{{count}} წელი",future:"{{count}} წელში"},overXYears:{past:"{{count}} წელზე მეტი ხნის წინ",present:"{{count}} წელზე მეტი",future:"{{count}} წელზე მეტი ხნის შემდეგ"},almostXYears:{past:"თითქმის {{count}} წლის წინ",present:"თითქმის {{count}} წელი",future:"თითქმის {{count}} წელში"}},Mst=function(t,n,r){var a,i=Nst[t];return typeof i=="string"?a=i:r!=null&&r.addSuffix&&r.comparison&&r.comparison>0?a=i.future.replace("{{count}}",String(n)):r!=null&&r.addSuffix?a=i.past.replace("{{count}}",String(n)):a=i.present.replace("{{count}}",String(n)),a},Ist={full:"EEEE, do MMMM, y",long:"do, MMMM, y",medium:"d, MMM, y",short:"dd/MM/yyyy"},Dst={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$st={full:"{{date}} {{time}}'-ზე'",long:"{{date}} {{time}}'-ზე'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lst={date:Ne({formats:Ist,defaultWidth:"full"}),time:Ne({formats:Dst,defaultWidth:"full"}),dateTime:Ne({formats:$st,defaultWidth:"full"})},Fst={lastWeek:"'წინა' eeee p'-ზე'",yesterday:"'გუშინ' p'-ზე'",today:"'დღეს' p'-ზე'",tomorrow:"'ხვალ' p'-ზე'",nextWeek:"'შემდეგი' eeee p'-ზე'",other:"P"},jst=function(t,n,r,a){return Fst[t]},Ust={narrow:["ჩ.წ-მდე","ჩ.წ"],abbreviated:["ჩვ.წ-მდე","ჩვ.წ"],wide:["ჩვენს წელთაღრიცხვამდე","ჩვენი წელთაღრიცხვით"]},Bst={narrow:["1","2","3","4"],abbreviated:["1-ლი კვ","2-ე კვ","3-ე კვ","4-ე კვ"],wide:["1-ლი კვარტალი","2-ე კვარტალი","3-ე კვარტალი","4-ე კვარტალი"]},Wst={narrow:["ია","თე","მა","აპ","მს","ვნ","ვლ","აგ","სე","ოქ","ნო","დე"],abbreviated:["იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ"],wide:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"]},zst={narrow:["კვ","ორ","სა","ოთ","ხუ","პა","შა"],short:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],abbreviated:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],wide:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]},qst={narrow:{am:"a",pm:"p",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"}},Hst={narrow:{am:"a",pm:"p",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"}},Vst=function(t){var n=Number(t);return n===1?n+"-ლი":n+"-ე"},Gst={ordinalNumber:Vst,era:oe({values:Ust,defaultWidth:"wide"}),quarter:oe({values:Bst,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Wst,defaultWidth:"wide"}),day:oe({values:zst,defaultWidth:"wide"}),dayPeriod:oe({values:qst,defaultWidth:"wide",formattingValues:Hst,defaultFormattingWidth:"wide"})},Yst=/^(\d+)(-ლი|-ე)?/i,Kst=/\d+/i,Xst={narrow:/^(ჩვ?\.წ)/i,abbreviated:/^(ჩვ?\.წ)/i,wide:/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i},Qst={any:[/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i,/^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i]},Jst={narrow:/^[1234]/i,abbreviated:/^[1234]-(ლი|ე)? კვ/i,wide:/^[1234]-(ლი|ე)? კვარტალი/i},Zst={any:[/1/i,/2/i,/3/i,/4/i]},elt={any:/^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i},tlt={any:[/^ია/i,/^თ/i,/^მარ/i,/^აპ/i,/^მაი/i,/^ი?ვნ/i,/^ი?ვლ/i,/^აგ/i,/^ს/i,/^ო/i,/^ნ/i,/^დ/i]},nlt={narrow:/^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i,short:/^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i,wide:/^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i},rlt={any:[/^კვ/i,/^ორ/i,/^სა/i,/^ოთ/i,/^ხუ/i,/^პა/i,/^შა/i]},alt={any:/^([ap]\.?\s?m\.?|შუაღ|დილ)/i},ilt={any:{am:/^a/i,pm:/^p/i,midnight:/^შუაღ/i,noon:/^შუადღ/i,morning:/^დილ/i,afternoon:/ნაშუადღევს/i,evening:/საღამო/i,night:/ღამ/i}},olt={ordinalNumber:Xt({matchPattern:Yst,parsePattern:Kst,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Xst,defaultMatchWidth:"wide",parsePatterns:Qst,defaultParseWidth:"any"}),quarter:se({matchPatterns:Jst,defaultMatchWidth:"wide",parsePatterns:Zst,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:elt,defaultMatchWidth:"any",parsePatterns:tlt,defaultParseWidth:"any"}),day:se({matchPatterns:nlt,defaultMatchWidth:"wide",parsePatterns:rlt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:alt,defaultMatchWidth:"any",parsePatterns:ilt,defaultParseWidth:"any"})},slt={code:"ka",formatDistance:Mst,formatLong:Lst,formatRelative:jst,localize:Gst,match:olt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const llt=Object.freeze(Object.defineProperty({__proto__:null,default:slt},Symbol.toStringTag,{value:"Module"})),ult=jt(llt);var clt={lessThanXSeconds:{regular:{one:"1 секундтан аз",singularNominative:"{{count}} секундтан аз",singularGenitive:"{{count}} секундтан аз",pluralGenitive:"{{count}} секундтан аз"},future:{one:"бір секундтан кейін",singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},xSeconds:{regular:{singularNominative:"{{count}} секунд",singularGenitive:"{{count}} секунд",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунд бұрын",singularGenitive:"{{count}} секунд бұрын",pluralGenitive:"{{count}} секунд бұрын"},future:{singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},halfAMinute:function(t){return t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"жарты минут ішінде":"жарты минут бұрын":"жарты минут"},lessThanXMinutes:{regular:{one:"1 минуттан аз",singularNominative:"{{count}} минуттан аз",singularGenitive:"{{count}} минуттан аз",pluralGenitive:"{{count}} минуттан аз"},future:{one:"минуттан кем ",singularNominative:"{{count}} минуттан кем",singularGenitive:"{{count}} минуттан кем",pluralGenitive:"{{count}} минуттан кем"}},xMinutes:{regular:{singularNominative:"{{count}} минут",singularGenitive:"{{count}} минут",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минут бұрын",singularGenitive:"{{count}} минут бұрын",pluralGenitive:"{{count}} минут бұрын"},future:{singularNominative:"{{count}} минуттан кейін",singularGenitive:"{{count}} минуттан кейін",pluralGenitive:"{{count}} минуттан кейін"}},aboutXHours:{regular:{singularNominative:"шамамен {{count}} сағат",singularGenitive:"шамамен {{count}} сағат",pluralGenitive:"шамамен {{count}} сағат"},future:{singularNominative:"шамамен {{count}} сағаттан кейін",singularGenitive:"шамамен {{count}} сағаттан кейін",pluralGenitive:"шамамен {{count}} сағаттан кейін"}},xHours:{regular:{singularNominative:"{{count}} сағат",singularGenitive:"{{count}} сағат",pluralGenitive:"{{count}} сағат"}},xDays:{regular:{singularNominative:"{{count}} күн",singularGenitive:"{{count}} күн",pluralGenitive:"{{count}} күн"},future:{singularNominative:"{{count}} күннен кейін",singularGenitive:"{{count}} күннен кейін",pluralGenitive:"{{count}} күннен кейін"}},aboutXWeeks:{type:"weeks",one:"шамамен 1 апта",other:"шамамен {{count}} апта"},xWeeks:{type:"weeks",one:"1 апта",other:"{{count}} апта"},aboutXMonths:{regular:{singularNominative:"шамамен {{count}} ай",singularGenitive:"шамамен {{count}} ай",pluralGenitive:"шамамен {{count}} ай"},future:{singularNominative:"шамамен {{count}} айдан кейін",singularGenitive:"шамамен {{count}} айдан кейін",pluralGenitive:"шамамен {{count}} айдан кейін"}},xMonths:{regular:{singularNominative:"{{count}} ай",singularGenitive:"{{count}} ай",pluralGenitive:"{{count}} ай"}},aboutXYears:{regular:{singularNominative:"шамамен {{count}} жыл",singularGenitive:"шамамен {{count}} жыл",pluralGenitive:"шамамен {{count}} жыл"},future:{singularNominative:"шамамен {{count}} жылдан кейін",singularGenitive:"шамамен {{count}} жылдан кейін",pluralGenitive:"шамамен {{count}} жылдан кейін"}},xYears:{regular:{singularNominative:"{{count}} жыл",singularGenitive:"{{count}} жыл",pluralGenitive:"{{count}} жыл"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}},overXYears:{regular:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"},future:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"}},almostXYears:{regular:{singularNominative:"{{count}} жылға жақын",singularGenitive:"{{count}} жылға жақын",pluralGenitive:"{{count}} жылға жақын"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}}};function Q1(e,t){if(e.one&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}var dlt=function(t,n,r){var a=clt[t];return typeof a=="function"?a(r):a.type==="weeks"?n===1?a.one:a.other.replace("{{count}}",String(n)):r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a.future?Q1(a.future,n):Q1(a.regular,n)+" кейін":a.past?Q1(a.past,n):Q1(a.regular,n)+" бұрын":Q1(a.regular,n)},flt={full:"EEEE, do MMMM y 'ж.'",long:"do MMMM y 'ж.'",medium:"d MMM y 'ж.'",short:"dd.MM.yyyy"},plt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},hlt={any:"{{date}}, {{time}}"},mlt={date:Ne({formats:flt,defaultWidth:"full"}),time:Ne({formats:plt,defaultWidth:"full"}),dateTime:Ne({formats:hlt,defaultWidth:"any"})},x4=["жексенбіде","дүйсенбіде","сейсенбіде","сәрсенбіде","бейсенбіде","жұмада","сенбіде"];function glt(e){var t=x4[e];return"'өткен "+t+" сағат' p'-де'"}function HG(e){var t=x4[e];return"'"+t+" сағат' p'-де'"}function vlt(e){var t=x4[e];return"'келесі "+t+" сағат' p'-де'"}var ylt={lastWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?HG(a):glt(a)},yesterday:"'кеше сағат' p'-де'",today:"'бүгін сағат' p'-де'",tomorrow:"'ертең сағат' p'-де'",nextWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?HG(a):vlt(a)},other:"P"},blt=function(t,n,r,a){var i=ylt[t];return typeof i=="function"?i(n,r,a):i},wlt={narrow:["б.з.д.","б.з."],abbreviated:["б.з.д.","б.з."],wide:["біздің заманымызға дейін","біздің заманымыз"]},Slt={narrow:["1","2","3","4"],abbreviated:["1-ші тоқ.","2-ші тоқ.","3-ші тоқ.","4-ші тоқ."],wide:["1-ші тоқсан","2-ші тоқсан","3-ші тоқсан","4-ші тоқсан"]},Elt={narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},Tlt={narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},Clt={narrow:["Ж","Д","С","С","Б","Ж","С"],short:["жс","дс","сс","ср","бс","жм","сб"],abbreviated:["жс","дс","сс","ср","бс","жм","сб"],wide:["жексенбі","дүйсенбі","сейсенбі","сәрсенбі","бейсенбі","жұма","сенбі"]},klt={narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"}},xlt={narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түс",morning:"таң",afternoon:"күн",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түсте",morning:"таңертең",afternoon:"күндіз",evening:"кеште",night:"түнде"}},M$={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},_lt=function(t,n){var r=Number(t),a=r%10,i=r>=100?100:null,o=M$[r]||M$[a]||i&&M$[i]||"";return r+o},Olt={ordinalNumber:_lt,era:oe({values:wlt,defaultWidth:"wide"}),quarter:oe({values:Slt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Elt,defaultWidth:"wide",formattingValues:Tlt,defaultFormattingWidth:"wide"}),day:oe({values:Clt,defaultWidth:"wide"}),dayPeriod:oe({values:klt,defaultWidth:"any",formattingValues:xlt,defaultFormattingWidth:"wide"})},Rlt=/^(\d+)(-?(ші|шы))?/i,Plt=/\d+/i,Alt={narrow:/^((б )?з\.?\s?д\.?)/i,abbreviated:/^((б )?з\.?\s?д\.?)/i,wide:/^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i},Nlt={any:[/^б/i,/^з/i]},Mlt={narrow:/^[1234]/i,abbreviated:/^[1234](-?ші)? тоқ.?/i,wide:/^[1234](-?ші)? тоқсан/i},Ilt={any:[/1/i,/2/i,/3/i,/4/i]},Dlt={narrow:/^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i,abbreviated:/^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i,wide:/^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i},$lt={narrow:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i],abbreviated:[/^қаң/i,/^ақп/i,/^нау/i,/^сәу/i,/^мам/i,/^мау/i,/^шіл/i,/^там/i,/^қыр/i,/^қаз/i,/^қар/i,/^жел/i],any:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i]},Llt={narrow:/^(ж|д|с|с|б|ж|с)/i,short:/^(жс|дс|сс|ср|бс|жм|сб)/i,wide:/^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i},Flt={narrow:[/^ж/i,/^д/i,/^с/i,/^с/i,/^б/i,/^ж/i,/^с/i],short:[/^жс/i,/^дс/i,/^сс/i,/^ср/i,/^бс/i,/^жм/i,/^сб/i],any:[/^ж[ек]/i,/^д[үй]/i,/^сe[й]/i,/^сә[р]/i,/^б[ей]/i,/^ж[ұм]/i,/^се[н]/i]},jlt={narrow:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,wide:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,any:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i},Ult={any:{am:/^ТД/i,pm:/^ТК/i,midnight:/^түн орта/i,noon:/^күндіз/i,morning:/таң/i,afternoon:/түс/i,evening:/кеш/i,night:/түн/i}},Blt={ordinalNumber:Xt({matchPattern:Rlt,parsePattern:Plt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Alt,defaultMatchWidth:"wide",parsePatterns:Nlt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Mlt,defaultMatchWidth:"wide",parsePatterns:Ilt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Dlt,defaultMatchWidth:"wide",parsePatterns:$lt,defaultParseWidth:"any"}),day:se({matchPatterns:Llt,defaultMatchWidth:"wide",parsePatterns:Flt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:jlt,defaultMatchWidth:"wide",parsePatterns:Ult,defaultParseWidth:"any"})},Wlt={code:"kk",formatDistance:dlt,formatLong:mlt,formatRelative:blt,localize:Olt,match:Blt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const zlt=Object.freeze(Object.defineProperty({__proto__:null,default:Wlt},Symbol.toStringTag,{value:"Module"})),qlt=jt(zlt);var Hlt={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},Vlt=function(t,n,r){var a,i=Hlt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" 후":a+" 전":a},Glt={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},Ylt={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Klt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Xlt={date:Ne({formats:Glt,defaultWidth:"full"}),time:Ne({formats:Ylt,defaultWidth:"full"}),dateTime:Ne({formats:Klt,defaultWidth:"full"})},Qlt={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},Jlt=function(t,n,r,a){return Qlt[t]},Zlt={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},eut={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},tut={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},nut={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},rut={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},aut={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},iut=function(t,n){var r=Number(t),a=String(n==null?void 0:n.unit);switch(a){case"minute":case"second":return String(r);case"date":return r+"일";default:return r+"번째"}},out={ordinalNumber:iut,era:oe({values:Zlt,defaultWidth:"wide"}),quarter:oe({values:eut,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:tut,defaultWidth:"wide"}),day:oe({values:nut,defaultWidth:"wide"}),dayPeriod:oe({values:rut,defaultWidth:"wide",formattingValues:aut,defaultFormattingWidth:"wide"})},sut=/^(\d+)(일|번째)?/i,lut=/\d+/i,uut={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},cut={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},dut={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},fut={any:[/1/i,/2/i,/3/i,/4/i]},put={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},hut={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},mut={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},gut={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},vut={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},yut={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},but={ordinalNumber:Xt({matchPattern:sut,parsePattern:lut,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:uut,defaultMatchWidth:"wide",parsePatterns:cut,defaultParseWidth:"any"}),quarter:se({matchPatterns:dut,defaultMatchWidth:"wide",parsePatterns:fut,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:put,defaultMatchWidth:"wide",parsePatterns:hut,defaultParseWidth:"any"}),day:se({matchPatterns:mut,defaultMatchWidth:"wide",parsePatterns:gut,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:vut,defaultMatchWidth:"any",parsePatterns:yut,defaultParseWidth:"any"})},wut={code:"ko",formatDistance:Vlt,formatLong:Xlt,formatRelative:Jlt,localize:out,match:but,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Sut=Object.freeze(Object.defineProperty({__proto__:null,default:wut},Symbol.toStringTag,{value:"Module"})),Eut=jt(Sut);var Bae={xseconds_other:"sekundė_sekundžių_sekundes",xminutes_one:"minutė_minutės_minutę",xminutes_other:"minutės_minučių_minutes",xhours_one:"valanda_valandos_valandą",xhours_other:"valandos_valandų_valandas",xdays_one:"diena_dienos_dieną",xdays_other:"dienos_dienų_dienas",xweeks_one:"savaitė_savaitės_savaitę",xweeks_other:"savaitės_savaičių_savaites",xmonths_one:"mėnuo_mėnesio_mėnesį",xmonths_other:"mėnesiai_mėnesių_mėnesius",xyears_one:"metai_metų_metus",xyears_other:"metai_metų_metus",about:"apie",over:"daugiau nei",almost:"beveik",lessthan:"mažiau nei"},VG=function(t,n,r,a){return n?a?"kelių sekundžių":"kelias sekundes":"kelios sekundės"},ns=function(t,n,r,a){return n?a?Gp(r)[1]:Gp(r)[2]:Gp(r)[0]},Po=function(t,n,r,a){var i=t+" ";return t===1?i+ns(t,n,r,a):n?a?i+Gp(r)[1]:i+(GG(t)?Gp(r)[1]:Gp(r)[2]):i+(GG(t)?Gp(r)[1]:Gp(r)[0])};function GG(e){return e%10===0||e>10&&e<20}function Gp(e){return Bae[e].split("_")}var Tut={lessThanXSeconds:{one:VG,other:Po},xSeconds:{one:VG,other:Po},halfAMinute:"pusė minutės",lessThanXMinutes:{one:ns,other:Po},xMinutes:{one:ns,other:Po},aboutXHours:{one:ns,other:Po},xHours:{one:ns,other:Po},xDays:{one:ns,other:Po},aboutXWeeks:{one:ns,other:Po},xWeeks:{one:ns,other:Po},aboutXMonths:{one:ns,other:Po},xMonths:{one:ns,other:Po},aboutXYears:{one:ns,other:Po},xYears:{one:ns,other:Po},overXYears:{one:ns,other:Po},almostXYears:{one:ns,other:Po}},Cut=function(t,n,r){var a=t.match(/about|over|almost|lessthan/i),i=a?t.replace(a[0],""):t,o=(r==null?void 0:r.comparison)!==void 0&&r.comparison>0,l,u=Tut[t];if(typeof u=="string"?l=u:n===1?l=u.one(n,(r==null?void 0:r.addSuffix)===!0,i.toLowerCase()+"_one",o):l=u.other(n,(r==null?void 0:r.addSuffix)===!0,i.toLowerCase()+"_other",o),a){var d=a[0].toLowerCase();l=Bae[d]+" "+l}return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"po "+l:"prieš "+l:l},kut={full:"y 'm'. MMMM d 'd'., EEEE",long:"y 'm'. MMMM d 'd'.",medium:"y-MM-dd",short:"y-MM-dd"},xut={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},_ut={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Out={date:Ne({formats:kut,defaultWidth:"full"}),time:Ne({formats:xut,defaultWidth:"full"}),dateTime:Ne({formats:_ut,defaultWidth:"full"})},Rut={lastWeek:"'Praėjusį' eeee p",yesterday:"'Vakar' p",today:"'Šiandien' p",tomorrow:"'Rytoj' p",nextWeek:"eeee p",other:"P"},Put=function(t,n,r,a){return Rut[t]},Aut={narrow:["pr. Kr.","po Kr."],abbreviated:["pr. Kr.","po Kr."],wide:["prieš Kristų","po Kristaus"]},Nut={narrow:["1","2","3","4"],abbreviated:["I ketv.","II ketv.","III ketv.","IV ketv."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},Mut={narrow:["1","2","3","4"],abbreviated:["I k.","II k.","III k.","IV k."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},Iut={narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausis","vasaris","kovas","balandis","gegužė","birželis","liepa","rugpjūtis","rugsėjis","spalis","lapkritis","gruodis"]},Dut={narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausio","vasario","kovo","balandžio","gegužės","birželio","liepos","rugpjūčio","rugsėjo","spalio","lapkričio","gruodžio"]},$ut={narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"]},Lut={narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienį","pirmadienį","antradienį","trečiadienį","ketvirtadienį","penktadienį","šeštadienį"]},Fut={narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"}},jut={narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"}},Uut=function(t,n){var r=Number(t);return r+"-oji"},But={ordinalNumber:Uut,era:oe({values:Aut,defaultWidth:"wide"}),quarter:oe({values:Nut,defaultWidth:"wide",formattingValues:Mut,defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Iut,defaultWidth:"wide",formattingValues:Dut,defaultFormattingWidth:"wide"}),day:oe({values:$ut,defaultWidth:"wide",formattingValues:Lut,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:Fut,defaultWidth:"wide",formattingValues:jut,defaultFormattingWidth:"wide"})},Wut=/^(\d+)(-oji)?/i,zut=/\d+/i,qut={narrow:/^p(r|o)\.?\s?(kr\.?|me)/i,abbreviated:/^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i,wide:/^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i},Hut={wide:[/prieš/i,/(po|mūsų)/i],any:[/^pr/i,/^(po|m)/i]},Vut={narrow:/^([1234])/i,abbreviated:/^(I|II|III|IV)\s?ketv?\.?/i,wide:/^(I|II|III|IV)\s?ketvirtis/i},Gut={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/I$/i,/II$/i,/III/i,/IV/i]},Yut={narrow:/^[svkbglr]/i,abbreviated:/^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i,wide:/^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i},Kut={narrow:[/^s/i,/^v/i,/^k/i,/^b/i,/^g/i,/^b/i,/^l/i,/^r/i,/^r/i,/^s/i,/^l/i,/^g/i],any:[/^saus/i,/^vas/i,/^kov/i,/^bal/i,/^geg/i,/^birž/i,/^liep/i,/^rugp/i,/^rugs/i,/^spal/i,/^lapkr/i,/^gruod/i]},Xut={narrow:/^[spatkš]/i,short:/^(sk|pr|an|tr|kt|pn|št)/i,abbreviated:/^(sk|pr|an|tr|kt|pn|št)/i,wide:/^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i},Qut={narrow:[/^s/i,/^p/i,/^a/i,/^t/i,/^k/i,/^p/i,/^š/i],wide:[/^se/i,/^pi/i,/^an/i,/^tr/i,/^ke/i,/^pe/i,/^še/i],any:[/^sk/i,/^pr/i,/^an/i,/^tr/i,/^kt/i,/^pn/i,/^št/i]},Jut={narrow:/^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i,any:/^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i},Zut={narrow:{am:/^pr/i,pm:/^pop./i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i},any:{am:/^pr/i,pm:/^popiet$/i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i}},ect={ordinalNumber:Xt({matchPattern:Wut,parsePattern:zut,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:qut,defaultMatchWidth:"wide",parsePatterns:Hut,defaultParseWidth:"any"}),quarter:se({matchPatterns:Vut,defaultMatchWidth:"wide",parsePatterns:Gut,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Yut,defaultMatchWidth:"wide",parsePatterns:Kut,defaultParseWidth:"any"}),day:se({matchPatterns:Xut,defaultMatchWidth:"wide",parsePatterns:Qut,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Jut,defaultMatchWidth:"any",parsePatterns:Zut,defaultParseWidth:"any"})},tct={code:"lt",formatDistance:Cut,formatLong:Out,formatRelative:Put,localize:But,match:ect,options:{weekStartsOn:1,firstWeekContainsDate:4}};const nct=Object.freeze(Object.defineProperty({__proto__:null,default:tct},Symbol.toStringTag,{value:"Module"})),rct=jt(nct);function Ao(e){return function(t,n){if(t===1)return n!=null&&n.addSuffix?e.one[0].replace("{{time}}",e.one[2]):e.one[0].replace("{{time}}",e.one[1]);var r=t%10===1&&t%100!==11;return n!=null&&n.addSuffix?e.other[0].replace("{{time}}",r?e.other[3]:e.other[4]).replace("{{count}}",String(t)):e.other[0].replace("{{time}}",r?e.other[1]:e.other[2]).replace("{{count}}",String(t))}}var act={lessThanXSeconds:Ao({one:["mazāk par {{time}}","sekundi","sekundi"],other:["mazāk nekā {{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),xSeconds:Ao({one:["1 {{time}}","sekunde","sekundes"],other:["{{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),halfAMinute:function(t,n){return n!=null&&n.addSuffix?"pusminūtes":"pusminūte"},lessThanXMinutes:Ao({one:["mazāk par {{time}}","minūti","minūti"],other:["mazāk nekā {{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),xMinutes:Ao({one:["1 {{time}}","minūte","minūtes"],other:["{{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),aboutXHours:Ao({one:["apmēram 1 {{time}}","stunda","stundas"],other:["apmēram {{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xHours:Ao({one:["1 {{time}}","stunda","stundas"],other:["{{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xDays:Ao({one:["1 {{time}}","diena","dienas"],other:["{{count}} {{time}}","diena","dienas","dienas","dienām"]}),aboutXWeeks:Ao({one:["apmēram 1 {{time}}","nedēļa","nedēļas"],other:["apmēram {{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),xWeeks:Ao({one:["1 {{time}}","nedēļa","nedēļas"],other:["{{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),aboutXMonths:Ao({one:["apmēram 1 {{time}}","mēnesis","mēneša"],other:["apmēram {{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),xMonths:Ao({one:["1 {{time}}","mēnesis","mēneša"],other:["{{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),aboutXYears:Ao({one:["apmēram 1 {{time}}","gads","gada"],other:["apmēram {{count}} {{time}}","gads","gadi","gada","gadiem"]}),xYears:Ao({one:["1 {{time}}","gads","gada"],other:["{{count}} {{time}}","gads","gadi","gada","gadiem"]}),overXYears:Ao({one:["ilgāk par 1 {{time}}","gadu","gadu"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]}),almostXYears:Ao({one:["gandrīz 1 {{time}}","gads","gada"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]})},ict=function(t,n,r){var a=act[t](n,r);return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"pēc "+a:"pirms "+a:a},oct={full:"EEEE, y. 'gada' d. MMMM",long:"y. 'gada' d. MMMM",medium:"dd.MM.y.",short:"dd.MM.y."},sct={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},lct={full:"{{date}} 'plkst.' {{time}}",long:"{{date}} 'plkst.' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},uct={date:Ne({formats:oct,defaultWidth:"full"}),time:Ne({formats:sct,defaultWidth:"full"}),dateTime:Ne({formats:lct,defaultWidth:"full"})},YG=["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"],cct={lastWeek:function(t,n,r){if(wi(t,n,r))return"eeee 'plkst.' p";var a=YG[t.getUTCDay()];return"'Pagājušā "+a+" plkst.' p"},yesterday:"'Vakar plkst.' p",today:"'Šodien plkst.' p",tomorrow:"'Rīt plkst.' p",nextWeek:function(t,n,r){if(wi(t,n,r))return"eeee 'plkst.' p";var a=YG[t.getUTCDay()];return"'Nākamajā "+a+" plkst.' p"},other:"P"},dct=function(t,n,r,a){var i=cct[t];return typeof i=="function"?i(n,r,a):i},fct={narrow:["p.m.ē","m.ē"],abbreviated:["p. m. ē.","m. ē."],wide:["pirms mūsu ēras","mūsu ērā"]},pct={narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmais ceturksnis","otrais ceturksnis","trešais ceturksnis","ceturtais ceturksnis"]},hct={narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmajā ceturksnī","otrajā ceturksnī","trešajā ceturksnī","ceturtajā ceturksnī"]},mct={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","marts","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvāris","februāris","marts","aprīlis","maijs","jūnijs","jūlijs","augusts","septembris","oktobris","novembris","decembris"]},gct={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","martā","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvārī","februārī","martā","aprīlī","maijā","jūnijā","jūlijā","augustā","septembrī","oktobrī","novembrī","decembrī"]},vct={narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"]},yct={narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"]},bct={narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"diena",evening:"vakars",night:"nakts"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"pēcpusd.",evening:"vakars",night:"nakts"},wide:{am:"am",pm:"pm",midnight:"pusnakts",noon:"pusdienlaiks",morning:"rīts",afternoon:"pēcpusdiena",evening:"vakars",night:"nakts"}},wct={narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"dienā",evening:"vakarā",night:"naktī"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"pēcpusd.",evening:"vakarā",night:"naktī"},wide:{am:"am",pm:"pm",midnight:"pusnaktī",noon:"pusdienlaikā",morning:"rītā",afternoon:"pēcpusdienā",evening:"vakarā",night:"naktī"}},Sct=function(t,n){var r=Number(t);return r+"."},Ect={ordinalNumber:Sct,era:oe({values:fct,defaultWidth:"wide"}),quarter:oe({values:pct,defaultWidth:"wide",formattingValues:hct,defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:mct,defaultWidth:"wide",formattingValues:gct,defaultFormattingWidth:"wide"}),day:oe({values:vct,defaultWidth:"wide",formattingValues:yct,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:bct,defaultWidth:"wide",formattingValues:wct,defaultFormattingWidth:"wide"})},Tct=/^(\d+)\./i,Cct=/\d+/i,kct={narrow:/^(p\.m\.ē|m\.ē)/i,abbreviated:/^(p\. m\. ē\.|m\. ē\.)/i,wide:/^(pirms mūsu ēras|mūsu ērā)/i},xct={any:[/^p/i,/^m/i]},_ct={narrow:/^[1234]/i,abbreviated:/^[1234](\. cet\.)/i,wide:/^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i},Oct={narrow:[/^1/i,/^2/i,/^3/i,/^4/i],abbreviated:[/^1/i,/^2/i,/^3/i,/^4/i],wide:[/^p/i,/^o/i,/^t/i,/^c/i]},Rct={narrow:/^[jfmasond]/i,abbreviated:/^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i,wide:/^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i},Pct={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jūn/i,/^jūl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Act={narrow:/^[spotc]/i,short:/^(sv|pi|o|t|c|pk|s)/i,abbreviated:/^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i,wide:/^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i},Nct={narrow:[/^s/i,/^p/i,/^o/i,/^t/i,/^c/i,/^p/i,/^s/i],any:[/^sv/i,/^pi/i,/^o/i,/^t/i,/^c/i,/^p/i,/^se/i]},Mct={narrow:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/,abbreviated:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/,wide:/^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i},Ict={any:{am:/^am/i,pm:/^pm/i,midnight:/^pusn/i,noon:/^pusd/i,morning:/^r/i,afternoon:/^(d|pēc)/i,evening:/^v/i,night:/^n/i}},Dct={ordinalNumber:Xt({matchPattern:Tct,parsePattern:Cct,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:kct,defaultMatchWidth:"wide",parsePatterns:xct,defaultParseWidth:"any"}),quarter:se({matchPatterns:_ct,defaultMatchWidth:"wide",parsePatterns:Oct,defaultParseWidth:"wide",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Rct,defaultMatchWidth:"wide",parsePatterns:Pct,defaultParseWidth:"any"}),day:se({matchPatterns:Act,defaultMatchWidth:"wide",parsePatterns:Nct,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Mct,defaultMatchWidth:"wide",parsePatterns:Ict,defaultParseWidth:"any"})},$ct={code:"lv",formatDistance:ict,formatLong:uct,formatRelative:dct,localize:Ect,match:Dct,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Lct=Object.freeze(Object.defineProperty({__proto__:null,default:$ct},Symbol.toStringTag,{value:"Module"})),Fct=jt(Lct);var jct={lessThanXSeconds:{one:"kurang dari 1 saat",other:"kurang dari {{count}} saat"},xSeconds:{one:"1 saat",other:"{{count}} saat"},halfAMinute:"setengah minit",lessThanXMinutes:{one:"kurang dari 1 minit",other:"kurang dari {{count}} minit"},xMinutes:{one:"1 minit",other:"{{count}} minit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},Uct=function(t,n,r){var a,i=jct[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dalam masa "+a:a+" yang lalu":a},Bct={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},Wct={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},zct={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qct={date:Ne({formats:Bct,defaultWidth:"full"}),time:Ne({formats:Wct,defaultWidth:"full"}),dateTime:Ne({formats:zct,defaultWidth:"full"})},Hct={lastWeek:"eeee 'lepas pada jam' p",yesterday:"'Semalam pada jam' p",today:"'Hari ini pada jam' p",tomorrow:"'Esok pada jam' p",nextWeek:"eeee 'pada jam' p",other:"P"},Vct=function(t,n,r,a){return Hct[t]},Gct={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masihi","Masihi"]},Yct={narrow:["1","2","3","4"],abbreviated:["S1","S2","S3","S4"],wide:["Suku pertama","Suku kedua","Suku ketiga","Suku keempat"]},Kct={narrow:["J","F","M","A","M","J","J","O","S","O","N","D"],abbreviated:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],wide:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},Xct={narrow:["A","I","S","R","K","J","S"],short:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],abbreviated:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],wide:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},Qct={narrow:{am:"am",pm:"pm",midnight:"tgh malam",noon:"tgh hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},Jct={narrow:{am:"am",pm:"pm",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},Zct=function(t,n){return"ke-"+Number(t)},edt={ordinalNumber:Zct,era:oe({values:Gct,defaultWidth:"wide"}),quarter:oe({values:Yct,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Kct,defaultWidth:"wide"}),day:oe({values:Xct,defaultWidth:"wide"}),dayPeriod:oe({values:Qct,defaultWidth:"wide",formattingValues:Jct,defaultFormattingWidth:"wide"})},tdt=/^ke-(\d+)?/i,ndt=/petama|\d+/i,rdt={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|m\.?)/i,wide:/^(sebelum masihi|masihi)/i},adt={any:[/^s/i,/^(m)/i]},idt={narrow:/^[1234]/i,abbreviated:/^S[1234]/i,wide:/Suku (pertama|kedua|ketiga|keempat)/i},odt={any:[/pertama|1/i,/kedua|2/i,/ketiga|3/i,/keempat|4/i]},sdt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i,wide:/^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i},ldt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^og/i,/^s/i,/^ok/i,/^n/i,/^d/i]},udt={narrow:/^[aisrkj]/i,short:/^(ahd|isn|sel|rab|kha|jum|sab)/i,abbreviated:/^(ahd|isn|sel|rab|kha|jum|sab)/i,wide:/^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i},cdt={narrow:[/^a/i,/^i/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^a/i,/^i/i,/^se/i,/^r/i,/^k/i,/^j/i,/^sa/i]},ddt={narrow:/^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i},fdt={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pa/i,afternoon:/tengah h/i,evening:/pe/i,night:/m/i}},pdt={ordinalNumber:Xt({matchPattern:tdt,parsePattern:ndt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:rdt,defaultMatchWidth:"wide",parsePatterns:adt,defaultParseWidth:"any"}),quarter:se({matchPatterns:idt,defaultMatchWidth:"wide",parsePatterns:odt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:sdt,defaultMatchWidth:"wide",parsePatterns:ldt,defaultParseWidth:"any"}),day:se({matchPatterns:udt,defaultMatchWidth:"wide",parsePatterns:cdt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:ddt,defaultMatchWidth:"any",parsePatterns:fdt,defaultParseWidth:"any"})},hdt={code:"ms",formatDistance:Uct,formatLong:qct,formatRelative:Vct,localize:edt,match:pdt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const mdt=Object.freeze(Object.defineProperty({__proto__:null,default:hdt},Symbol.toStringTag,{value:"Module"})),gdt=jt(mdt);var vdt={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en måned",other:"omtrent {{count}} måneder"},xMonths:{one:"en måned",other:"{{count}} måneder"},aboutXYears:{one:"omtrent ett år",other:"omtrent {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"over ett år",other:"over {{count}} år"},almostXYears:{one:"nesten ett år",other:"nesten {{count}} år"}},ydt=function(t,n,r){var a,i=vdt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" siden":a},bdt={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},wdt={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Sdt={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Edt={date:Ne({formats:bdt,defaultWidth:"full"}),time:Ne({formats:wdt,defaultWidth:"full"}),dateTime:Ne({formats:Sdt,defaultWidth:"full"})},Tdt={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},Cdt=function(t,n,r,a){return Tdt[t]},kdt={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},xdt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},_dt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},Odt={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn","man","tir","ons","tor","fre","lør"],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},Rdt={narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgenen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natten"}},Pdt=function(t,n){var r=Number(t);return r+"."},Adt={ordinalNumber:Pdt,era:oe({values:kdt,defaultWidth:"wide"}),quarter:oe({values:xdt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:_dt,defaultWidth:"wide"}),day:oe({values:Odt,defaultWidth:"wide"}),dayPeriod:oe({values:Rdt,defaultWidth:"wide"})},Ndt=/^(\d+)\.?/i,Mdt=/\d+/i,Idt={narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},Ddt={any:[/^f/i,/^e/i]},$dt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},Ldt={any:[/1/i,/2/i,/3/i,/4/i]},Fdt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},jdt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},Udt={narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},Bdt={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},Wdt={narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},zdt={any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},qdt={ordinalNumber:Xt({matchPattern:Ndt,parsePattern:Mdt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Idt,defaultMatchWidth:"wide",parsePatterns:Ddt,defaultParseWidth:"any"}),quarter:se({matchPatterns:$dt,defaultMatchWidth:"wide",parsePatterns:Ldt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Fdt,defaultMatchWidth:"wide",parsePatterns:jdt,defaultParseWidth:"any"}),day:se({matchPatterns:Udt,defaultMatchWidth:"wide",parsePatterns:Bdt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Wdt,defaultMatchWidth:"any",parsePatterns:zdt,defaultParseWidth:"any"})},Hdt={code:"nb",formatDistance:ydt,formatLong:Edt,formatRelative:Cdt,localize:Adt,match:qdt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Vdt=Object.freeze(Object.defineProperty({__proto__:null,default:Hdt},Symbol.toStringTag,{value:"Module"})),Gdt=jt(Vdt);var Ydt={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},Kdt=function(t,n,r){var a,i=Ydt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"over "+a:a+" geleden":a},Xdt={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},Qdt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Jdt={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Zdt={date:Ne({formats:Xdt,defaultWidth:"full"}),time:Ne({formats:Qdt,defaultWidth:"full"}),dateTime:Ne({formats:Jdt,defaultWidth:"full"})},eft={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},tft=function(t,n,r,a){return eft[t]},nft={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},rft={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},aft={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},ift={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},oft={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},sft=function(t,n){var r=Number(t);return r+"e"},lft={ordinalNumber:sft,era:oe({values:nft,defaultWidth:"wide"}),quarter:oe({values:rft,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:aft,defaultWidth:"wide"}),day:oe({values:ift,defaultWidth:"wide"}),dayPeriod:oe({values:oft,defaultWidth:"wide"})},uft=/^(\d+)e?/i,cft=/\d+/i,dft={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},fft={any:[/^v/,/^n/]},pft={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},hft={any:[/1/i,/2/i,/3/i,/4/i]},mft={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},gft={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},vft={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},yft={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},bft={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},wft={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},Sft={ordinalNumber:Xt({matchPattern:uft,parsePattern:cft,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:dft,defaultMatchWidth:"wide",parsePatterns:fft,defaultParseWidth:"any"}),quarter:se({matchPatterns:pft,defaultMatchWidth:"wide",parsePatterns:hft,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:mft,defaultMatchWidth:"wide",parsePatterns:gft,defaultParseWidth:"any"}),day:se({matchPatterns:vft,defaultMatchWidth:"wide",parsePatterns:yft,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:bft,defaultMatchWidth:"any",parsePatterns:wft,defaultParseWidth:"any"})},Eft={code:"nl",formatDistance:Kdt,formatLong:Zdt,formatRelative:tft,localize:lft,match:Sft,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Tft=Object.freeze(Object.defineProperty({__proto__:null,default:Eft},Symbol.toStringTag,{value:"Module"})),Cft=jt(Tft);var kft={lessThanXSeconds:{one:"mindre enn eitt sekund",other:"mindre enn {{count}} sekund"},xSeconds:{one:"eitt sekund",other:"{{count}} sekund"},halfAMinute:"eit halvt minutt",lessThanXMinutes:{one:"mindre enn eitt minutt",other:"mindre enn {{count}} minutt"},xMinutes:{one:"eitt minutt",other:"{{count}} minutt"},aboutXHours:{one:"omtrent ein time",other:"omtrent {{count}} timar"},xHours:{one:"ein time",other:"{{count}} timar"},xDays:{one:"ein dag",other:"{{count}} dagar"},aboutXWeeks:{one:"omtrent ei veke",other:"omtrent {{count}} veker"},xWeeks:{one:"ei veke",other:"{{count}} veker"},aboutXMonths:{one:"omtrent ein månad",other:"omtrent {{count}} månader"},xMonths:{one:"ein månad",other:"{{count}} månader"},aboutXYears:{one:"omtrent eitt år",other:"omtrent {{count}} år"},xYears:{one:"eitt år",other:"{{count}} år"},overXYears:{one:"over eitt år",other:"over {{count}} år"},almostXYears:{one:"nesten eitt år",other:"nesten {{count}} år"}},xft=["null","ein","to","tre","fire","fem","seks","sju","åtte","ni","ti","elleve","tolv"],_ft=function(t,n,r){var a,i=kft[t];return typeof i=="string"?a=i:n===1?a=i.one:r&&r.onlyNumeric?a=i.other.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",n<13?xft[n]:String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" sidan":a},Oft={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},Rft={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Pft={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Aft={date:Ne({formats:Oft,defaultWidth:"full"}),time:Ne({formats:Rft,defaultWidth:"full"}),dateTime:Ne({formats:Pft,defaultWidth:"full"})},Nft={lastWeek:"'førre' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},Mft=function(t,n,r,a){return Nft[t]},Ift={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},Dft={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},$ft={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},Lft={narrow:["S","M","T","O","T","F","L"],short:["su","må","ty","on","to","fr","lau"],abbreviated:["sun","mån","tys","ons","tor","fre","laur"],wide:["sundag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"]},Fft={narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natta"}},jft=function(t,n){var r=Number(t);return r+"."},Uft={ordinalNumber:jft,era:oe({values:Ift,defaultWidth:"wide"}),quarter:oe({values:Dft,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:$ft,defaultWidth:"wide"}),day:oe({values:Lft,defaultWidth:"wide"}),dayPeriod:oe({values:Fft,defaultWidth:"wide"})},Bft=/^(\d+)\.?/i,Wft=/\d+/i,zft={narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},qft={any:[/^f/i,/^e/i]},Hft={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},Vft={any:[/1/i,/2/i,/3/i,/4/i]},Gft={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},Yft={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},Kft={narrow:/^[smtofl]/i,short:/^(su|må|ty|on|to|fr|la)/i,abbreviated:/^(sun|mån|tys|ons|tor|fre|laur)/i,wide:/^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i},Xft={any:[/^s/i,/^m/i,/^ty/i,/^o/i,/^to/i,/^f/i,/^l/i]},Qft={narrow:/^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i},Jft={any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},Zft={ordinalNumber:Xt({matchPattern:Bft,parsePattern:Wft,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:zft,defaultMatchWidth:"wide",parsePatterns:qft,defaultParseWidth:"any"}),quarter:se({matchPatterns:Hft,defaultMatchWidth:"wide",parsePatterns:Vft,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Gft,defaultMatchWidth:"wide",parsePatterns:Yft,defaultParseWidth:"any"}),day:se({matchPatterns:Kft,defaultMatchWidth:"wide",parsePatterns:Xft,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Qft,defaultMatchWidth:"any",parsePatterns:Jft,defaultParseWidth:"any"})},ept={code:"nn",formatDistance:_ft,formatLong:Aft,formatRelative:Mft,localize:Uft,match:Zft,options:{weekStartsOn:1,firstWeekContainsDate:4}};const tpt=Object.freeze(Object.defineProperty({__proto__:null,default:ept},Symbol.toStringTag,{value:"Module"})),npt=jt(tpt);var rpt={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godziny",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"około tygodnia",twoFour:"około {{count}} tygodni",other:"około {{count}} tygodni"},xWeeks:{one:"tydzień",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function apt(e,t){if(t===1)return e.one;var n=t%100;if(n<=20&&n>10)return e.other;var r=n%10;return r>=2&&r<=4?e.twoFour:e.other}function I$(e,t,n){var r=apt(e,t),a=typeof r=="string"?r:r[n];return a.replace("{{count}}",String(t))}var ipt=function(t,n,r){var a=rpt[t];return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"za "+I$(a,n,"future"):I$(a,n,"past")+" temu":I$(a,n,"regular")},opt={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},spt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},lpt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},upt={date:Ne({formats:opt,defaultWidth:"full"}),time:Ne({formats:spt,defaultWidth:"full"}),dateTime:Ne({formats:lpt,defaultWidth:"full"})},cpt={masculine:"ostatni",feminine:"ostatnia"},dpt={masculine:"ten",feminine:"ta"},fpt={masculine:"następny",feminine:"następna"},ppt={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function KG(e,t,n,r){var a;if(wi(t,n,r))a=dpt;else if(e==="lastWeek")a=cpt;else if(e==="nextWeek")a=fpt;else throw new Error("Cannot determine adjectives for token ".concat(e));var i=t.getUTCDay(),o=ppt[i],l=a[o];return"'".concat(l,"' eeee 'o' p")}var hpt={lastWeek:KG,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:KG,other:"P"},mpt=function(t,n,r,a){var i=hpt[t];return typeof i=="function"?i(t,n,r,a):i},gpt={narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszą erą","naszej ery"]},vpt={narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwartał","II kwartał","III kwartał","IV kwartał"]},ypt={narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},bpt={narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]},wpt={narrow:["N","P","W","Ś","C","P","S"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},Spt={narrow:["n","p","w","ś","c","p","s"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},Ept={narrow:{am:"a",pm:"p",midnight:"półn.",noon:"poł",morning:"rano",afternoon:"popoł.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"}},Tpt={narrow:{am:"a",pm:"p",midnight:"o półn.",noon:"w poł.",morning:"rano",afternoon:"po poł.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"}},Cpt=function(t,n){return String(t)},kpt={ordinalNumber:Cpt,era:oe({values:gpt,defaultWidth:"wide"}),quarter:oe({values:vpt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:ypt,defaultWidth:"wide",formattingValues:bpt,defaultFormattingWidth:"wide"}),day:oe({values:wpt,defaultWidth:"wide",formattingValues:Spt,defaultFormattingWidth:"wide"}),dayPeriod:oe({values:Ept,defaultWidth:"wide",formattingValues:Tpt,defaultFormattingWidth:"wide"})},xpt=/^(\d+)?/i,_pt=/\d+/i,Opt={narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},Rpt={any:[/^p/i,/^n/i]},Ppt={narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},Apt={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},Npt={narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},Mpt={narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},Ipt={narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},Dpt={narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},$pt={narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},Lpt={narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},Fpt={ordinalNumber:Xt({matchPattern:xpt,parsePattern:_pt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Opt,defaultMatchWidth:"wide",parsePatterns:Rpt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Ppt,defaultMatchWidth:"wide",parsePatterns:Apt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Npt,defaultMatchWidth:"wide",parsePatterns:Mpt,defaultParseWidth:"any"}),day:se({matchPatterns:Ipt,defaultMatchWidth:"wide",parsePatterns:Dpt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:$pt,defaultMatchWidth:"any",parsePatterns:Lpt,defaultParseWidth:"any"})},jpt={code:"pl",formatDistance:ipt,formatLong:upt,formatRelative:mpt,localize:kpt,match:Fpt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Upt=Object.freeze(Object.defineProperty({__proto__:null,default:jpt},Symbol.toStringTag,{value:"Module"})),Bpt=jt(Upt);var Wpt={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},zpt=function(t,n,r){var a,i=Wpt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"daqui a "+a:"há "+a:a},qpt={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},Hpt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Vpt={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Gpt={date:Ne({formats:qpt,defaultWidth:"full"}),time:Ne({formats:Hpt,defaultWidth:"full"}),dateTime:Ne({formats:Vpt,defaultWidth:"full"})},Ypt={lastWeek:function(t){var n=t.getUTCDay(),r=n===0||n===6?"último":"última";return"'"+r+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},Kpt=function(t,n,r,a){var i=Ypt[t];return typeof i=="function"?i(n):i},Xpt={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},Qpt={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Jpt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},Zpt={narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},eht={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},tht={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},nht=function(t,n){var r=Number(t);return r+"º"},rht={ordinalNumber:nht,era:oe({values:Xpt,defaultWidth:"wide"}),quarter:oe({values:Qpt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Jpt,defaultWidth:"wide"}),day:oe({values:Zpt,defaultWidth:"wide"}),dayPeriod:oe({values:eht,defaultWidth:"wide",formattingValues:tht,defaultFormattingWidth:"wide"})},aht=/^(\d+)(º|ª)?/i,iht=/\d+/i,oht={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},sht={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},lht={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},uht={any:[/1/i,/2/i,/3/i,/4/i]},cht={narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},dht={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},fht={narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},pht={narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},hht={narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},mht={any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},ght={ordinalNumber:Xt({matchPattern:aht,parsePattern:iht,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:oht,defaultMatchWidth:"wide",parsePatterns:sht,defaultParseWidth:"any"}),quarter:se({matchPatterns:lht,defaultMatchWidth:"wide",parsePatterns:uht,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:cht,defaultMatchWidth:"wide",parsePatterns:dht,defaultParseWidth:"any"}),day:se({matchPatterns:fht,defaultMatchWidth:"wide",parsePatterns:pht,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:hht,defaultMatchWidth:"any",parsePatterns:mht,defaultParseWidth:"any"})},vht={code:"pt",formatDistance:zpt,formatLong:Gpt,formatRelative:Kpt,localize:rht,match:ght,options:{weekStartsOn:1,firstWeekContainsDate:4}};const yht=Object.freeze(Object.defineProperty({__proto__:null,default:vht},Symbol.toStringTag,{value:"Module"})),bht=jt(yht);var wht={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Sht=function(t,n,r){var a,i=wht[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"em "+a:"há "+a:a},Eht={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},Tht={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Cht={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kht={date:Ne({formats:Eht,defaultWidth:"full"}),time:Ne({formats:Tht,defaultWidth:"full"}),dateTime:Ne({formats:Cht,defaultWidth:"full"})},xht={lastWeek:function(t){var n=t.getUTCDay(),r=n===0||n===6?"último":"última";return"'"+r+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},_ht=function(t,n,r,a){var i=xht[t];return typeof i=="function"?i(n):i},Oht={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},Rht={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Pht={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},Aht={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},Nht={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},Mht={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},Iht=function(t,n){var r=Number(t);return(n==null?void 0:n.unit)==="week"?r+"ª":r+"º"},Dht={ordinalNumber:Iht,era:oe({values:Oht,defaultWidth:"wide"}),quarter:oe({values:Rht,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Pht,defaultWidth:"wide"}),day:oe({values:Aht,defaultWidth:"wide"}),dayPeriod:oe({values:Nht,defaultWidth:"wide",formattingValues:Mht,defaultFormattingWidth:"wide"})},$ht=/^(\d+)[ºªo]?/i,Lht=/\d+/i,Fht={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},jht={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},Uht={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Bht={any:[/1/i,/2/i,/3/i,/4/i]},Wht={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},zht={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},qht={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},Hht={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},Vht={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},Ght={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},Yht={ordinalNumber:Xt({matchPattern:$ht,parsePattern:Lht,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Fht,defaultMatchWidth:"wide",parsePatterns:jht,defaultParseWidth:"any"}),quarter:se({matchPatterns:Uht,defaultMatchWidth:"wide",parsePatterns:Bht,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Wht,defaultMatchWidth:"wide",parsePatterns:zht,defaultParseWidth:"any"}),day:se({matchPatterns:qht,defaultMatchWidth:"wide",parsePatterns:Hht,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Vht,defaultMatchWidth:"any",parsePatterns:Ght,defaultParseWidth:"any"})},Kht={code:"pt-BR",formatDistance:Sht,formatLong:kht,formatRelative:_ht,localize:Dht,match:Yht,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Xht=Object.freeze(Object.defineProperty({__proto__:null,default:Kht},Symbol.toStringTag,{value:"Module"})),Qht=jt(Xht);var Jht={lessThanXSeconds:{one:"mai puțin de o secundă",other:"mai puțin de {{count}} secunde"},xSeconds:{one:"1 secundă",other:"{{count}} secunde"},halfAMinute:"jumătate de minut",lessThanXMinutes:{one:"mai puțin de un minut",other:"mai puțin de {{count}} minute"},xMinutes:{one:"1 minut",other:"{{count}} minute"},aboutXHours:{one:"circa 1 oră",other:"circa {{count}} ore"},xHours:{one:"1 oră",other:"{{count}} ore"},xDays:{one:"1 zi",other:"{{count}} zile"},aboutXWeeks:{one:"circa o săptămână",other:"circa {{count}} săptămâni"},xWeeks:{one:"1 săptămână",other:"{{count}} săptămâni"},aboutXMonths:{one:"circa 1 lună",other:"circa {{count}} luni"},xMonths:{one:"1 lună",other:"{{count}} luni"},aboutXYears:{one:"circa 1 an",other:"circa {{count}} ani"},xYears:{one:"1 an",other:"{{count}} ani"},overXYears:{one:"peste 1 an",other:"peste {{count}} ani"},almostXYears:{one:"aproape 1 an",other:"aproape {{count}} ani"}},Zht=function(t,n,r){var a,i=Jht[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"în "+a:a+" în urmă":a},emt={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd.MM.yyyy"},tmt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},nmt={full:"{{date}} 'la' {{time}}",long:"{{date}} 'la' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},rmt={date:Ne({formats:emt,defaultWidth:"full"}),time:Ne({formats:tmt,defaultWidth:"full"}),dateTime:Ne({formats:nmt,defaultWidth:"full"})},amt={lastWeek:"eeee 'trecută la' p",yesterday:"'ieri la' p",today:"'astăzi la' p",tomorrow:"'mâine la' p",nextWeek:"eeee 'viitoare la' p",other:"P"},imt=function(t,n,r,a){return amt[t]},omt={narrow:["Î","D"],abbreviated:["Î.d.C.","D.C."],wide:["Înainte de Cristos","După Cristos"]},smt={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["primul trimestru","al doilea trimestru","al treilea trimestru","al patrulea trimestru"]},lmt={narrow:["I","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["ian","feb","mar","apr","mai","iun","iul","aug","sep","oct","noi","dec"],wide:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},umt={narrow:["d","l","m","m","j","v","s"],short:["du","lu","ma","mi","jo","vi","sâ"],abbreviated:["dum","lun","mar","mie","joi","vin","sâm"],wide:["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"]},cmt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"ami",morning:"dim",afternoon:"da",evening:"s",night:"n"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},dmt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},fmt=function(t,n){return String(t)},pmt={ordinalNumber:fmt,era:oe({values:omt,defaultWidth:"wide"}),quarter:oe({values:smt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:lmt,defaultWidth:"wide"}),day:oe({values:umt,defaultWidth:"wide"}),dayPeriod:oe({values:cmt,defaultWidth:"wide",formattingValues:dmt,defaultFormattingWidth:"wide"})},hmt=/^(\d+)?/i,mmt=/\d+/i,gmt={narrow:/^(Î|D)/i,abbreviated:/^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i},vmt={any:[/^ÎC/i,/^DC/i],wide:[/^(Înainte de Cristos|Înaintea erei noastre)/i,/^(După Cristos|Era noastră)/i]},ymt={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},bmt={any:[/1/i,/2/i,/3/i,/4/i]},wmt={narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},Smt={narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Emt={narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|sâ)/i,wide:/^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i},Tmt={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},Cmt={narrow:/^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i},kmt={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/dimineaţa/i,afternoon:/după-amiaza/i,evening:/seara/i,night:/noaptea/i}},xmt={ordinalNumber:Xt({matchPattern:hmt,parsePattern:mmt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:gmt,defaultMatchWidth:"wide",parsePatterns:vmt,defaultParseWidth:"any"}),quarter:se({matchPatterns:ymt,defaultMatchWidth:"wide",parsePatterns:bmt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:wmt,defaultMatchWidth:"wide",parsePatterns:Smt,defaultParseWidth:"any"}),day:se({matchPatterns:Emt,defaultMatchWidth:"wide",parsePatterns:Tmt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Cmt,defaultMatchWidth:"any",parsePatterns:kmt,defaultParseWidth:"any"})},_mt={code:"ro",formatDistance:Zht,formatLong:rmt,formatRelative:imt,localize:pmt,match:xmt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Omt=Object.freeze(Object.defineProperty({__proto__:null,default:_mt},Symbol.toStringTag,{value:"Module"})),Rmt=jt(Omt);function J1(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function No(e){return function(t,n){return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?e.future?J1(e.future,t):"через "+J1(e.regular,t):e.past?J1(e.past,t):J1(e.regular,t)+" назад":J1(e.regular,t)}}var Pmt={lessThanXSeconds:No({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:No({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:function(t,n){return n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"через полминуты":"полминуты назад":"полминуты"},lessThanXMinutes:No({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:No({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:No({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:No({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:No({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:No({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:No({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:No({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:No({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:No({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:No({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:No({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:No({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},Amt=function(t,n,r){return Pmt[t](n,r)},Nmt={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},Mmt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Imt={any:"{{date}}, {{time}}"},Dmt={date:Ne({formats:Nmt,defaultWidth:"full"}),time:Ne({formats:Mmt,defaultWidth:"full"}),dateTime:Ne({formats:Imt,defaultWidth:"any"})},_4=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function $mt(e){var t=_4[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function XG(e){var t=_4[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function Lmt(e){var t=_4[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}var Fmt={lastWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?XG(a):$mt(a)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?XG(a):Lmt(a)},other:"P"},jmt=function(t,n,r,a){var i=Fmt[t];return typeof i=="function"?i(n,r,a):i},Umt={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},Bmt={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},Wmt={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},zmt={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},qmt={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},Hmt={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},Vmt={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},Gmt=function(t,n){var r=Number(t),a=n==null?void 0:n.unit,i;return a==="date"?i="-е":a==="week"||a==="minute"||a==="second"?i="-я":i="-й",r+i},Ymt={ordinalNumber:Gmt,era:oe({values:Umt,defaultWidth:"wide"}),quarter:oe({values:Bmt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Wmt,defaultWidth:"wide",formattingValues:zmt,defaultFormattingWidth:"wide"}),day:oe({values:qmt,defaultWidth:"wide"}),dayPeriod:oe({values:Hmt,defaultWidth:"any",formattingValues:Vmt,defaultFormattingWidth:"wide"})},Kmt=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,Xmt=/\d+/i,Qmt={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},Jmt={any:[/^д/i,/^н/i]},Zmt={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},egt={any:[/1/i,/2/i,/3/i,/4/i]},tgt={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},ngt={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},rgt={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},agt={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},igt={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},ogt={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},sgt={ordinalNumber:Xt({matchPattern:Kmt,parsePattern:Xmt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Qmt,defaultMatchWidth:"wide",parsePatterns:Jmt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Zmt,defaultMatchWidth:"wide",parsePatterns:egt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:tgt,defaultMatchWidth:"wide",parsePatterns:ngt,defaultParseWidth:"any"}),day:se({matchPatterns:rgt,defaultMatchWidth:"wide",parsePatterns:agt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:igt,defaultMatchWidth:"wide",parsePatterns:ogt,defaultParseWidth:"any"})},lgt={code:"ru",formatDistance:Amt,formatLong:Dmt,formatRelative:jmt,localize:Ymt,match:sgt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const ugt=Object.freeze(Object.defineProperty({__proto__:null,default:lgt},Symbol.toStringTag,{value:"Module"})),cgt=jt(ugt);function dgt(e,t){return t===1&&e.one?e.one:t>=2&&t<=4&&e.twoFour?e.twoFour:e.other}function D$(e,t,n){var r=dgt(e,t),a=r[n];return a.replace("{{count}}",String(t))}function fgt(e){var t=["lessThan","about","over","almost"].filter(function(n){return!!e.match(new RegExp("^"+n))});return t[0]}function $$(e){var t="";return e==="almost"&&(t="takmer"),e==="about"&&(t="približne"),t.length>0?t+" ":""}function L$(e){var t="";return e==="lessThan"&&(t="menej než"),e==="over"&&(t="viac než"),t.length>0?t+" ":""}function pgt(e){return e.charAt(0).toLowerCase()+e.slice(1)}var hgt={xSeconds:{one:{present:"sekunda",past:"sekundou",future:"sekundu"},twoFour:{present:"{{count}} sekundy",past:"{{count}} sekundami",future:"{{count}} sekundy"},other:{present:"{{count}} sekúnd",past:"{{count}} sekundami",future:"{{count}} sekúnd"}},halfAMinute:{other:{present:"pol minúty",past:"pol minútou",future:"pol minúty"}},xMinutes:{one:{present:"minúta",past:"minútou",future:"minútu"},twoFour:{present:"{{count}} minúty",past:"{{count}} minútami",future:"{{count}} minúty"},other:{present:"{{count}} minút",past:"{{count}} minútami",future:"{{count}} minút"}},xHours:{one:{present:"hodina",past:"hodinou",future:"hodinu"},twoFour:{present:"{{count}} hodiny",past:"{{count}} hodinami",future:"{{count}} hodiny"},other:{present:"{{count}} hodín",past:"{{count}} hodinami",future:"{{count}} hodín"}},xDays:{one:{present:"deň",past:"dňom",future:"deň"},twoFour:{present:"{{count}} dni",past:"{{count}} dňami",future:"{{count}} dni"},other:{present:"{{count}} dní",past:"{{count}} dňami",future:"{{count}} dní"}},xWeeks:{one:{present:"týždeň",past:"týždňom",future:"týždeň"},twoFour:{present:"{{count}} týždne",past:"{{count}} týždňami",future:"{{count}} týždne"},other:{present:"{{count}} týždňov",past:"{{count}} týždňami",future:"{{count}} týždňov"}},xMonths:{one:{present:"mesiac",past:"mesiacom",future:"mesiac"},twoFour:{present:"{{count}} mesiace",past:"{{count}} mesiacmi",future:"{{count}} mesiace"},other:{present:"{{count}} mesiacov",past:"{{count}} mesiacmi",future:"{{count}} mesiacov"}},xYears:{one:{present:"rok",past:"rokom",future:"rok"},twoFour:{present:"{{count}} roky",past:"{{count}} rokmi",future:"{{count}} roky"},other:{present:"{{count}} rokov",past:"{{count}} rokmi",future:"{{count}} rokov"}}},mgt=function(t,n,r){var a=fgt(t)||"",i=pgt(t.substring(a.length)),o=hgt[i];return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?$$(a)+"o "+L$(a)+D$(o,n,"future"):$$(a)+"pred "+L$(a)+D$(o,n,"past"):$$(a)+L$(a)+D$(o,n,"present")},ggt={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. M. y",short:"d. M. y"},vgt={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},ygt={full:"{{date}}, {{time}}",long:"{{date}}, {{time}}",medium:"{{date}}, {{time}}",short:"{{date}} {{time}}"},bgt={date:Ne({formats:ggt,defaultWidth:"full"}),time:Ne({formats:vgt,defaultWidth:"full"}),dateTime:Ne({formats:ygt,defaultWidth:"full"})},O4=["nedeľu","pondelok","utorok","stredu","štvrtok","piatok","sobotu"];function wgt(e){var t=O4[e];switch(e){case 0:case 3:case 6:return"'minulú "+t+" o' p";default:return"'minulý' eeee 'o' p"}}function QG(e){var t=O4[e];return e===4?"'vo' eeee 'o' p":"'v "+t+" o' p"}function Sgt(e){var t=O4[e];switch(e){case 0:case 4:case 6:return"'budúcu "+t+" o' p";default:return"'budúci' eeee 'o' p"}}var Egt={lastWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?QG(a):wgt(a)},yesterday:"'včera o' p",today:"'dnes o' p",tomorrow:"'zajtra o' p",nextWeek:function(t,n,r){var a=t.getUTCDay();return wi(t,n,r)?QG(a):Sgt(a)},other:"P"},Tgt=function(t,n,r,a){var i=Egt[t];return typeof i=="function"?i(n,r,a):i},Cgt={narrow:["pred Kr.","po Kr."],abbreviated:["pred Kr.","po Kr."],wide:["pred Kristom","po Kristovi"]},kgt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. štvrťrok","2. štvrťrok","3. štvrťrok","4. štvrťrok"]},xgt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"]},_gt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra"]},Ogt={narrow:["n","p","u","s","š","p","s"],short:["ne","po","ut","st","št","pi","so"],abbreviated:["ne","po","ut","st","št","pi","so"],wide:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"]},Rgt={narrow:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"polnoc",noon:"poludnie",morning:"ráno",afternoon:"popoludnie",evening:"večer",night:"noc"}},Pgt={narrow:{am:"AM",pm:"PM",midnight:"o poln.",noon:"nap.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"v n."},abbreviated:{am:"AM",pm:"PM",midnight:"o poln.",noon:"napol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"v noci"},wide:{am:"AM",pm:"PM",midnight:"o polnoci",noon:"napoludnie",morning:"ráno",afternoon:"popoludní",evening:"večer",night:"v noci"}},Agt=function(t,n){var r=Number(t);return r+"."},Ngt={ordinalNumber:Agt,era:oe({values:Cgt,defaultWidth:"wide"}),quarter:oe({values:kgt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:xgt,defaultWidth:"wide",formattingValues:_gt,defaultFormattingWidth:"wide"}),day:oe({values:Ogt,defaultWidth:"wide"}),dayPeriod:oe({values:Rgt,defaultWidth:"wide",formattingValues:Pgt,defaultFormattingWidth:"wide"})},Mgt=/^(\d+)\.?/i,Igt=/\d+/i,Dgt={narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},$gt={any:[/^pr/i,/^(po|n)/i]},Lgt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},Fgt={any:[/1/i,/2/i,/3/i,/4/i]},jgt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},Ugt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Bgt={narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},Wgt={narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},zgt={narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},qgt={any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},Hgt={ordinalNumber:Xt({matchPattern:Mgt,parsePattern:Igt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Dgt,defaultMatchWidth:"wide",parsePatterns:$gt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Lgt,defaultMatchWidth:"wide",parsePatterns:Fgt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:jgt,defaultMatchWidth:"wide",parsePatterns:Ugt,defaultParseWidth:"any"}),day:se({matchPatterns:Bgt,defaultMatchWidth:"wide",parsePatterns:Wgt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:zgt,defaultMatchWidth:"any",parsePatterns:qgt,defaultParseWidth:"any"})},Vgt={code:"sk",formatDistance:mgt,formatLong:bgt,formatRelative:Tgt,localize:Ngt,match:Hgt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Ggt=Object.freeze(Object.defineProperty({__proto__:null,default:Vgt},Symbol.toStringTag,{value:"Module"})),Ygt=jt(Ggt);function Kgt(e){return e.one!==void 0}var Xgt={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"približno {{count}} ura",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"},past:{one:"približno {{count}} uro",two:"približno {{count}} urama",few:"približno {{count}} urami",other:"približno {{count}} urami"},future:{one:"približno {{count}} uro",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"približno {{count}} teden",two:"približno {{count}} tedna",few:"približno {{count}} tedne",other:"približno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"},past:{one:"približno {{count}} mesecem",two:"približno {{count}} mesecema",few:"približno {{count}} meseci",other:"približno {{count}} meseci"},future:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"}},xMonths:{present:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} meseci",other:"{{count}} mesecev"},past:{one:"{{count}} mesecem",two:"{{count}} mesecema",few:"{{count}} meseci",other:"{{count}} meseci"},future:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} mesece",other:"{{count}} mesecev"}},aboutXYears:{present:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"},past:{one:"približno {{count}} letom",two:"približno {{count}} letoma",few:"približno {{count}} leti",other:"približno {{count}} leti"},future:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"}},xYears:{present:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"},past:{one:"{{count}} letom",two:"{{count}} letoma",few:"{{count}} leti",other:"{{count}} leti"},future:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"}},overXYears:{present:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"},past:{one:"več kot {{count}} letom",two:"več kot {{count}} letoma",few:"več kot {{count}} leti",other:"več kot {{count}} leti"},future:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"}},almostXYears:{present:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"},past:{one:"skoraj {{count}} letom",two:"skoraj {{count}} letoma",few:"skoraj {{count}} leti",other:"skoraj {{count}} leti"},future:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"}}};function Qgt(e){switch(e%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}var Jgt=function(t,n,r){var a="",i="present";r!=null&&r.addSuffix&&(r.comparison&&r.comparison>0?(i="future",a="čez "):(i="past",a="pred "));var o=Xgt[t];if(typeof o=="string")a+=o;else{var l=Qgt(n);Kgt(o)?a+=o[l].replace("{{count}}",String(n)):a+=o[i][l].replace("{{count}}",String(n))}return a},Zgt={full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},evt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},tvt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},nvt={date:Ne({formats:Zgt,defaultWidth:"full"}),time:Ne({formats:evt,defaultWidth:"full"}),dateTime:Ne({formats:tvt,defaultWidth:"full"})},rvt={lastWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'prejšnjo nedeljo ob' p";case 3:return"'prejšnjo sredo ob' p";case 6:return"'prejšnjo soboto ob' p";default:return"'prejšnji' EEEE 'ob' p"}},yesterday:"'včeraj ob' p",today:"'danes ob' p",tomorrow:"'jutri ob' p",nextWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'naslednjo nedeljo ob' p";case 3:return"'naslednjo sredo ob' p";case 6:return"'naslednjo soboto ob' p";default:return"'naslednji' EEEE 'ob' p"}},other:"P"},avt=function(t,n,r,a){var i=rvt[t];return typeof i=="function"?i(n):i},ivt={narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},ovt={narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},svt={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},lvt={narrow:["n","p","t","s","č","p","s"],short:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"]},uvt={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"j",afternoon:"p",evening:"v",night:"n"},abbreviated:{am:"dop.",pm:"pop.",midnight:"poln.",noon:"pold.",morning:"jut.",afternoon:"pop.",evening:"več.",night:"noč"},wide:{am:"dop.",pm:"pop.",midnight:"polnoč",noon:"poldne",morning:"jutro",afternoon:"popoldne",evening:"večer",night:"noč"}},cvt={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"zj",afternoon:"p",evening:"zv",night:"po"},abbreviated:{am:"dop.",pm:"pop.",midnight:"opoln.",noon:"opold.",morning:"zjut.",afternoon:"pop.",evening:"zveč.",night:"ponoči"},wide:{am:"dop.",pm:"pop.",midnight:"opolnoči",noon:"opoldne",morning:"zjutraj",afternoon:"popoldan",evening:"zvečer",night:"ponoči"}},dvt=function(t,n){var r=Number(t);return r+"."},fvt={ordinalNumber:dvt,era:oe({values:ivt,defaultWidth:"wide"}),quarter:oe({values:ovt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:svt,defaultWidth:"wide"}),day:oe({values:lvt,defaultWidth:"wide"}),dayPeriod:oe({values:uvt,defaultWidth:"wide",formattingValues:cvt,defaultFormattingWidth:"wide"})},pvt=/^(\d+)\./i,hvt=/\d+/i,mvt={abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},gvt={any:[/^pr/i,/^(po|na[sš]em)/i]},vvt={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},yvt={any:[/1/i,/2/i,/3/i,/4/i]},bvt={narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},wvt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},Svt={narrow:/^[nptsčc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i},Evt={narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[cč]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[cč]/i,/^pe/i,/^so/i]},Tvt={narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},Cvt={narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},kvt={ordinalNumber:Xt({matchPattern:pvt,parsePattern:hvt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:mvt,defaultMatchWidth:"wide",parsePatterns:gvt,defaultParseWidth:"any"}),quarter:se({matchPatterns:vvt,defaultMatchWidth:"wide",parsePatterns:yvt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:bvt,defaultMatchWidth:"wide",parsePatterns:wvt,defaultParseWidth:"wide"}),day:se({matchPatterns:Svt,defaultMatchWidth:"wide",parsePatterns:Evt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Tvt,defaultMatchWidth:"any",parsePatterns:Cvt,defaultParseWidth:"any"})},xvt={code:"sl",formatDistance:Jgt,formatLong:nvt,formatRelative:avt,localize:fvt,match:kvt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const _vt=Object.freeze(Object.defineProperty({__proto__:null,default:xvt},Symbol.toStringTag,{value:"Module"})),Ovt=jt(_vt);var Rvt={lessThanXSeconds:{one:{standalone:"мање од 1 секунде",withPrepositionAgo:"мање од 1 секунде",withPrepositionIn:"мање од 1 секунду"},dual:"мање од {{count}} секунде",other:"мање од {{count}} секунди"},xSeconds:{one:{standalone:"1 секунда",withPrepositionAgo:"1 секунде",withPrepositionIn:"1 секунду"},dual:"{{count}} секунде",other:"{{count}} секунди"},halfAMinute:"пола минуте",lessThanXMinutes:{one:{standalone:"мање од 1 минуте",withPrepositionAgo:"мање од 1 минуте",withPrepositionIn:"мање од 1 минуту"},dual:"мање од {{count}} минуте",other:"мање од {{count}} минута"},xMinutes:{one:{standalone:"1 минута",withPrepositionAgo:"1 минуте",withPrepositionIn:"1 минуту"},dual:"{{count}} минуте",other:"{{count}} минута"},aboutXHours:{one:{standalone:"око 1 сат",withPrepositionAgo:"око 1 сат",withPrepositionIn:"око 1 сат"},dual:"око {{count}} сата",other:"око {{count}} сати"},xHours:{one:{standalone:"1 сат",withPrepositionAgo:"1 сат",withPrepositionIn:"1 сат"},dual:"{{count}} сата",other:"{{count}} сати"},xDays:{one:{standalone:"1 дан",withPrepositionAgo:"1 дан",withPrepositionIn:"1 дан"},dual:"{{count}} дана",other:"{{count}} дана"},aboutXWeeks:{one:{standalone:"око 1 недељу",withPrepositionAgo:"око 1 недељу",withPrepositionIn:"око 1 недељу"},dual:"око {{count}} недеље",other:"око {{count}} недеље"},xWeeks:{one:{standalone:"1 недељу",withPrepositionAgo:"1 недељу",withPrepositionIn:"1 недељу"},dual:"{{count}} недеље",other:"{{count}} недеље"},aboutXMonths:{one:{standalone:"око 1 месец",withPrepositionAgo:"око 1 месец",withPrepositionIn:"око 1 месец"},dual:"око {{count}} месеца",other:"око {{count}} месеци"},xMonths:{one:{standalone:"1 месец",withPrepositionAgo:"1 месец",withPrepositionIn:"1 месец"},dual:"{{count}} месеца",other:"{{count}} месеци"},aboutXYears:{one:{standalone:"око 1 годину",withPrepositionAgo:"око 1 годину",withPrepositionIn:"око 1 годину"},dual:"око {{count}} године",other:"око {{count}} година"},xYears:{one:{standalone:"1 година",withPrepositionAgo:"1 године",withPrepositionIn:"1 годину"},dual:"{{count}} године",other:"{{count}} година"},overXYears:{one:{standalone:"преко 1 годину",withPrepositionAgo:"преко 1 годину",withPrepositionIn:"преко 1 годину"},dual:"преко {{count}} године",other:"преко {{count}} година"},almostXYears:{one:{standalone:"готово 1 годину",withPrepositionAgo:"готово 1 годину",withPrepositionIn:"готово 1 годину"},dual:"готово {{count}} године",other:"готово {{count}} година"}},Pvt=function(t,n,r){var a,i=Rvt[t];return typeof i=="string"?a=i:n===1?r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a=i.one.withPrepositionIn:a=i.one.withPrepositionAgo:a=i.one.standalone:n%10>1&&n%10<5&&String(n).substr(-2,1)!=="1"?a=i.dual.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"за "+a:"пре "+a:a},Avt={full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},Nvt={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Mvt={full:"{{date}} 'у' {{time}}",long:"{{date}} 'у' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Ivt={date:Ne({formats:Avt,defaultWidth:"full"}),time:Ne({formats:Nvt,defaultWidth:"full"}),dateTime:Ne({formats:Mvt,defaultWidth:"full"})},Dvt={lastWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'прошле недеље у' p";case 3:return"'прошле среде у' p";case 6:return"'прошле суботе у' p";default:return"'прошли' EEEE 'у' p"}},yesterday:"'јуче у' p",today:"'данас у' p",tomorrow:"'сутра у' p",nextWeek:function(t){var n=t.getUTCDay();switch(n){case 0:return"'следеће недеље у' p";case 3:return"'следећу среду у' p";case 6:return"'следећу суботу у' p";default:return"'следећи' EEEE 'у' p"}},other:"P"},$vt=function(t,n,r,a){var i=Dvt[t];return typeof i=="function"?i(n):i},Lvt={narrow:["пр.н.е.","АД"],abbreviated:["пр. Хр.","по. Хр."],wide:["Пре Христа","После Христа"]},Fvt={narrow:["1.","2.","3.","4."],abbreviated:["1. кв.","2. кв.","3. кв.","4. кв."],wide:["1. квартал","2. квартал","3. квартал","4. квартал"]},jvt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},Uvt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},Bvt={narrow:["Н","П","У","С","Ч","П","С"],short:["нед","пон","уто","сре","чет","пет","суб"],abbreviated:["нед","пон","уто","сре","чет","пет","суб"],wide:["недеља","понедељак","уторак","среда","четвртак","петак","субота"]},Wvt={narrow:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},zvt={narrow:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},qvt=function(t,n){var r=Number(t);return r+"."},Hvt={ordinalNumber:qvt,era:oe({values:Lvt,defaultWidth:"wide"}),quarter:oe({values:Fvt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:jvt,defaultWidth:"wide",formattingValues:Uvt,defaultFormattingWidth:"wide"}),day:oe({values:Bvt,defaultWidth:"wide"}),dayPeriod:oe({values:zvt,defaultWidth:"wide",formattingValues:Wvt,defaultFormattingWidth:"wide"})},Vvt=/^(\d+)\./i,Gvt=/\d+/i,Yvt={narrow:/^(пр\.н\.е\.|АД)/i,abbreviated:/^(пр\.\s?Хр\.|по\.\s?Хр\.)/i,wide:/^(Пре Христа|пре нове ере|После Христа|нова ера)/i},Kvt={any:[/^пр/i,/^(по|нова)/i]},Xvt={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?кв\.?/i,wide:/^[1234]\. квартал/i},Qvt={any:[/1/i,/2/i,/3/i,/4/i]},Jvt={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i,wide:/^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i},Zvt={narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ја/i,/^ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^авг/i,/^с/i,/^о/i,/^н/i,/^д/i]},eyt={narrow:/^[пусчн]/i,short:/^(нед|пон|уто|сре|чет|пет|суб)/i,abbreviated:/^(нед|пон|уто|сре|чет|пет|суб)/i,wide:/^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i},tyt={narrow:[/^п/i,/^у/i,/^с/i,/^ч/i,/^п/i,/^с/i,/^н/i],any:[/^нед/i,/^пон/i,/^уто/i,/^сре/i,/^чет/i,/^пет/i,/^суб/i]},nyt={any:/^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i},ryt={any:{am:/^a/i,pm:/^p/i,midnight:/^поно/i,noon:/^под/i,morning:/ујутру/i,afternoon:/(после\s|по)+подне/i,evening:/(увече)/i,night:/(ноћу)/i}},ayt={ordinalNumber:Xt({matchPattern:Vvt,parsePattern:Gvt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Yvt,defaultMatchWidth:"wide",parsePatterns:Kvt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Xvt,defaultMatchWidth:"wide",parsePatterns:Qvt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Jvt,defaultMatchWidth:"wide",parsePatterns:Zvt,defaultParseWidth:"any"}),day:se({matchPatterns:eyt,defaultMatchWidth:"wide",parsePatterns:tyt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:nyt,defaultMatchWidth:"any",parsePatterns:ryt,defaultParseWidth:"any"})},iyt={code:"sr",formatDistance:Pvt,formatLong:Ivt,formatRelative:$vt,localize:Hvt,match:ayt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const oyt=Object.freeze(Object.defineProperty({__proto__:null,default:iyt},Symbol.toStringTag,{value:"Module"})),syt=jt(oyt);var lyt={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 nedelju",withPrepositionAgo:"oko 1 nedelju",withPrepositionIn:"oko 1 nedelju"},dual:"oko {{count}} nedelje",other:"oko {{count}} nedelje"},xWeeks:{one:{standalone:"1 nedelju",withPrepositionAgo:"1 nedelju",withPrepositionIn:"1 nedelju"},dual:"{{count}} nedelje",other:"{{count}} nedelje"},aboutXMonths:{one:{standalone:"oko 1 mesec",withPrepositionAgo:"oko 1 mesec",withPrepositionIn:"oko 1 mesec"},dual:"oko {{count}} meseca",other:"oko {{count}} meseci"},xMonths:{one:{standalone:"1 mesec",withPrepositionAgo:"1 mesec",withPrepositionIn:"1 mesec"},dual:"{{count}} meseca",other:"{{count}} meseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},uyt=function(t,n,r){var a,i=lyt[t];return typeof i=="string"?a=i:n===1?r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a=i.one.withPrepositionIn:a=i.one.withPrepositionAgo:a=i.one.standalone:n%10>1&&n%10<5&&String(n).substr(-2,1)!=="1"?a=i.dual.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"za "+a:"pre "+a:a},cyt={full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},dyt={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fyt={full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},pyt={date:Ne({formats:cyt,defaultWidth:"full"}),time:Ne({formats:dyt,defaultWidth:"full"}),dateTime:Ne({formats:fyt,defaultWidth:"full"})},hyt={lastWeek:function(t){switch(t.getUTCDay()){case 0:return"'prošle nedelje u' p";case 3:return"'prošle srede u' p";case 6:return"'prošle subote u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'juče u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:function(t){switch(t.getUTCDay()){case 0:return"'sledeće nedelje u' p";case 3:return"'sledeću sredu u' p";case 6:return"'sledeću subotu u' p";default:return"'sledeći' EEEE 'u' p"}},other:"P"},myt=function(t,n,r,a){var i=hyt[t];return typeof i=="function"?i(n):i},gyt={narrow:["pr.n.e.","AD"],abbreviated:["pr. Hr.","po. Hr."],wide:["Pre Hrista","Posle Hrista"]},vyt={narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},yyt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},byt={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},wyt={narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sre","čet","pet","sub"],abbreviated:["ned","pon","uto","sre","čet","pet","sub"],wide:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"]},Syt={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},Eyt={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},Tyt=function(t,n){var r=Number(t);return r+"."},Cyt={ordinalNumber:Tyt,era:oe({values:gyt,defaultWidth:"wide"}),quarter:oe({values:vyt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:yyt,defaultWidth:"wide",formattingValues:byt,defaultFormattingWidth:"wide"}),day:oe({values:wyt,defaultWidth:"wide"}),dayPeriod:oe({values:Eyt,defaultWidth:"wide",formattingValues:Syt,defaultFormattingWidth:"wide"})},kyt=/^(\d+)\./i,xyt=/\d+/i,_yt={narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i},Oyt={any:[/^pr/i,/^(po|nova)/i]},Ryt={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},Pyt={any:[/1/i,/2/i,/3/i,/4/i]},Ayt={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},Nyt={narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},Myt={narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i},Iyt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Dyt={any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i},$yt={any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(posle\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},Lyt={ordinalNumber:Xt({matchPattern:kyt,parsePattern:xyt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:_yt,defaultMatchWidth:"wide",parsePatterns:Oyt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Ryt,defaultMatchWidth:"wide",parsePatterns:Pyt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Ayt,defaultMatchWidth:"wide",parsePatterns:Nyt,defaultParseWidth:"any"}),day:se({matchPatterns:Myt,defaultMatchWidth:"wide",parsePatterns:Iyt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Dyt,defaultMatchWidth:"any",parsePatterns:$yt,defaultParseWidth:"any"})},Fyt={code:"sr-Latn",formatDistance:uyt,formatLong:pyt,formatRelative:myt,localize:Cyt,match:Lyt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const jyt=Object.freeze(Object.defineProperty({__proto__:null,default:Fyt},Symbol.toStringTag,{value:"Module"})),Uyt=jt(jyt);var Byt={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} vecka"},xWeeks:{one:"en vecka",other:"{{count}} vecka"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},Wyt=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],zyt=function(t,n,r){var a,i=Byt[t];return typeof i=="string"?a=i:n===1?a=i.one:r&&r.onlyNumeric?a=i.other.replace("{{count}}",String(n)):a=i.other.replace("{{count}}",n<13?Wyt[n]:String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+a:a+" sedan":a},qyt={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},Hyt={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Vyt={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Gyt={date:Ne({formats:qyt,defaultWidth:"full"}),time:Ne({formats:Hyt,defaultWidth:"full"}),dateTime:Ne({formats:Vyt,defaultWidth:"full"})},Yyt={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},Kyt=function(t,n,r,a){return Yyt[t]},Xyt={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},Qyt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},Jyt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},Zyt={narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},ebt={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},tbt={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},nbt=function(t,n){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:case 2:return r+":a"}return r+":e"},rbt={ordinalNumber:nbt,era:oe({values:Xyt,defaultWidth:"wide"}),quarter:oe({values:Qyt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Jyt,defaultWidth:"wide"}),day:oe({values:Zyt,defaultWidth:"wide"}),dayPeriod:oe({values:ebt,defaultWidth:"wide",formattingValues:tbt,defaultFormattingWidth:"wide"})},abt=/^(\d+)(:a|:e)?/i,ibt=/\d+/i,obt={narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},sbt={any:[/^f/i,/^[ev]/i]},lbt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},ubt={any:[/1/i,/2/i,/3/i,/4/i]},cbt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},dbt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},fbt={narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},pbt={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},hbt={any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},mbt={any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},gbt={ordinalNumber:Xt({matchPattern:abt,parsePattern:ibt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:obt,defaultMatchWidth:"wide",parsePatterns:sbt,defaultParseWidth:"any"}),quarter:se({matchPatterns:lbt,defaultMatchWidth:"wide",parsePatterns:ubt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:cbt,defaultMatchWidth:"wide",parsePatterns:dbt,defaultParseWidth:"any"}),day:se({matchPatterns:fbt,defaultMatchWidth:"wide",parsePatterns:pbt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:hbt,defaultMatchWidth:"any",parsePatterns:mbt,defaultParseWidth:"any"})},vbt={code:"sv",formatDistance:zyt,formatLong:Gyt,formatRelative:Kyt,localize:rbt,match:gbt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const ybt=Object.freeze(Object.defineProperty({__proto__:null,default:vbt},Symbol.toStringTag,{value:"Module"})),bbt=jt(ybt);function wbt(e){return e.one!==void 0}var Sbt={lessThanXSeconds:{one:{default:"ஒரு வினாடிக்கு குறைவாக",in:"ஒரு வினாடிக்குள்",ago:"ஒரு வினாடிக்கு முன்பு"},other:{default:"{{count}} வினாடிகளுக்கு குறைவாக",in:"{{count}} வினாடிகளுக்குள்",ago:"{{count}} வினாடிகளுக்கு முன்பு"}},xSeconds:{one:{default:"1 வினாடி",in:"1 வினாடியில்",ago:"1 வினாடி முன்பு"},other:{default:"{{count}} விநாடிகள்",in:"{{count}} வினாடிகளில்",ago:"{{count}} விநாடிகளுக்கு முன்பு"}},halfAMinute:{default:"அரை நிமிடம்",in:"அரை நிமிடத்தில்",ago:"அரை நிமிடம் முன்பு"},lessThanXMinutes:{one:{default:"ஒரு நிமிடத்திற்கும் குறைவாக",in:"ஒரு நிமிடத்திற்குள்",ago:"ஒரு நிமிடத்திற்கு முன்பு"},other:{default:"{{count}} நிமிடங்களுக்கும் குறைவாக",in:"{{count}} நிமிடங்களுக்குள்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},xMinutes:{one:{default:"1 நிமிடம்",in:"1 நிமிடத்தில்",ago:"1 நிமிடம் முன்பு"},other:{default:"{{count}} நிமிடங்கள்",in:"{{count}} நிமிடங்களில்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},aboutXHours:{one:{default:"சுமார் 1 மணி நேரம்",in:"சுமார் 1 மணி நேரத்தில்",ago:"சுமார் 1 மணி நேரத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மணி நேரம்",in:"சுமார் {{count}} மணி நேரத்திற்கு முன்பு",ago:"சுமார் {{count}} மணி நேரத்தில்"}},xHours:{one:{default:"1 மணி நேரம்",in:"1 மணி நேரத்தில்",ago:"1 மணி நேரத்திற்கு முன்பு"},other:{default:"{{count}} மணி நேரம்",in:"{{count}} மணி நேரத்தில்",ago:"{{count}} மணி நேரத்திற்கு முன்பு"}},xDays:{one:{default:"1 நாள்",in:"1 நாளில்",ago:"1 நாள் முன்பு"},other:{default:"{{count}} நாட்கள்",in:"{{count}} நாட்களில்",ago:"{{count}} நாட்களுக்கு முன்பு"}},aboutXWeeks:{one:{default:"சுமார் 1 வாரம்",in:"சுமார் 1 வாரத்தில்",ago:"சுமார் 1 வாரம் முன்பு"},other:{default:"சுமார் {{count}} வாரங்கள்",in:"சுமார் {{count}} வாரங்களில்",ago:"சுமார் {{count}} வாரங்களுக்கு முன்பு"}},xWeeks:{one:{default:"1 வாரம்",in:"1 வாரத்தில்",ago:"1 வாரம் முன்பு"},other:{default:"{{count}} வாரங்கள்",in:"{{count}} வாரங்களில்",ago:"{{count}} வாரங்களுக்கு முன்பு"}},aboutXMonths:{one:{default:"சுமார் 1 மாதம்",in:"சுமார் 1 மாதத்தில்",ago:"சுமார் 1 மாதத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மாதங்கள்",in:"சுமார் {{count}} மாதங்களில்",ago:"சுமார் {{count}} மாதங்களுக்கு முன்பு"}},xMonths:{one:{default:"1 மாதம்",in:"1 மாதத்தில்",ago:"1 மாதம் முன்பு"},other:{default:"{{count}} மாதங்கள்",in:"{{count}} மாதங்களில்",ago:"{{count}} மாதங்களுக்கு முன்பு"}},aboutXYears:{one:{default:"சுமார் 1 வருடம்",in:"சுமார் 1 ஆண்டில்",ago:"சுமார் 1 வருடம் முன்பு"},other:{default:"சுமார் {{count}} ஆண்டுகள்",in:"சுமார் {{count}} ஆண்டுகளில்",ago:"சுமார் {{count}} ஆண்டுகளுக்கு முன்பு"}},xYears:{one:{default:"1 வருடம்",in:"1 ஆண்டில்",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகள்",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},overXYears:{one:{default:"1 வருடத்திற்கு மேல்",in:"1 வருடத்திற்கும் மேலாக",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகளுக்கும் மேலாக",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},almostXYears:{one:{default:"கிட்டத்தட்ட 1 வருடம்",in:"கிட்டத்தட்ட 1 ஆண்டில்",ago:"கிட்டத்தட்ட 1 வருடம் முன்பு"},other:{default:"கிட்டத்தட்ட {{count}} ஆண்டுகள்",in:"கிட்டத்தட்ட {{count}} ஆண்டுகளில்",ago:"கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு"}}},Ebt=function(t,n,r){var a=r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in":"ago":"default",i=Sbt[t];return wbt(i)?n===1?i.one[a]:i.other[a].replace("{{count}}",String(n)):i[a]},Tbt={full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},Cbt={full:"a h:mm:ss zzzz",long:"a h:mm:ss z",medium:"a h:mm:ss",short:"a h:mm"},kbt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xbt={date:Ne({formats:Tbt,defaultWidth:"full"}),time:Ne({formats:Cbt,defaultWidth:"full"}),dateTime:Ne({formats:kbt,defaultWidth:"full"})},_bt={lastWeek:"'கடந்த' eeee p 'மணிக்கு'",yesterday:"'நேற்று ' p 'மணிக்கு'",today:"'இன்று ' p 'மணிக்கு'",tomorrow:"'நாளை ' p 'மணிக்கு'",nextWeek:"eeee p 'மணிக்கு'",other:"P"},Obt=function(t,n,r,a){return _bt[t]},Rbt={narrow:["கி.மு.","கி.பி."],abbreviated:["கி.மு.","கி.பி."],wide:["கிறிஸ்துவுக்கு முன்","அன்னோ டோமினி"]},Pbt={narrow:["1","2","3","4"],abbreviated:["காலா.1","காலா.2","காலா.3","காலா.4"],wide:["ஒன்றாம் காலாண்டு","இரண்டாம் காலாண்டு","மூன்றாம் காலாண்டு","நான்காம் காலாண்டு"]},Abt={narrow:["ஜ","பி","மா","ஏ","மே","ஜூ","ஜூ","ஆ","செ","அ","ந","டி"],abbreviated:["ஜன.","பிப்.","மார்.","ஏப்.","மே","ஜூன்","ஜூலை","ஆக.","செப்.","அக்.","நவ.","டிச."],wide:["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்"]},Nbt={narrow:["ஞா","தி","செ","பு","வி","வெ","ச"],short:["ஞா","தி","செ","பு","வி","வெ","ச"],abbreviated:["ஞாயி.","திங்.","செவ்.","புத.","வியா.","வெள்.","சனி"],wide:["ஞாயிறு","திங்கள்","செவ்வாய்","புதன்","வியாழன்","வெள்ளி","சனி"]},Mbt={narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},Ibt={narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},Dbt=function(t,n){return String(t)},$bt={ordinalNumber:Dbt,era:oe({values:Rbt,defaultWidth:"wide"}),quarter:oe({values:Pbt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Abt,defaultWidth:"wide"}),day:oe({values:Nbt,defaultWidth:"wide"}),dayPeriod:oe({values:Mbt,defaultWidth:"wide",formattingValues:Ibt,defaultFormattingWidth:"wide"})},Lbt=/^(\d+)(வது)?/i,Fbt=/\d+/i,jbt={narrow:/^(கி.மு.|கி.பி.)/i,abbreviated:/^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/,wide:/^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i},Ubt={any:[/கி\.?\s?மு\.?/,/கி\.?\s?பி\.?/]},Bbt={narrow:/^[1234]/i,abbreviated:/^காலா.[1234]/i,wide:/^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i},Wbt={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/(1|காலா.1|ஒன்றாம்)/i,/(2|காலா.2|இரண்டாம்)/i,/(3|காலா.3|மூன்றாம்)/i,/(4|காலா.4|நான்காம்)/i]},zbt={narrow:/^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i,abbreviated:/^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i,wide:/^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i},qbt={narrow:[/^ஜ$/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூ/i,/^ஜூ/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i],any:[/^ஜன/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூன்/i,/^ஜூலை/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i]},Hbt={narrow:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,short:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,abbreviated:/^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i,wide:/^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i},Vbt={narrow:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i],any:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i]},Gbt={narrow:/^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i,any:/^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i},Ybt={any:{am:/^மு/i,pm:/^பி/i,midnight:/^நள்/i,noon:/^நண்/i,morning:/காலை/i,afternoon:/மதியம்/i,evening:/மாலை/i,night:/இரவு/i}},Kbt={ordinalNumber:Xt({matchPattern:Lbt,parsePattern:Fbt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:jbt,defaultMatchWidth:"wide",parsePatterns:Ubt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Bbt,defaultMatchWidth:"wide",parsePatterns:Wbt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:zbt,defaultMatchWidth:"wide",parsePatterns:qbt,defaultParseWidth:"any"}),day:se({matchPatterns:Hbt,defaultMatchWidth:"wide",parsePatterns:Vbt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Gbt,defaultMatchWidth:"any",parsePatterns:Ybt,defaultParseWidth:"any"})},Xbt={code:"ta",formatDistance:Ebt,formatLong:xbt,formatRelative:Obt,localize:$bt,match:Kbt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Qbt=Object.freeze(Object.defineProperty({__proto__:null,default:Xbt},Symbol.toStringTag,{value:"Module"})),Jbt=jt(Qbt);var JG={lessThanXSeconds:{standalone:{one:"సెకను కన్నా తక్కువ",other:"{{count}} సెకన్ల కన్నా తక్కువ"},withPreposition:{one:"సెకను",other:"{{count}} సెకన్ల"}},xSeconds:{standalone:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"},withPreposition:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"}},halfAMinute:{standalone:"అర నిమిషం",withPreposition:"అర నిమిషం"},lessThanXMinutes:{standalone:{one:"ఒక నిమిషం కన్నా తక్కువ",other:"{{count}} నిమిషాల కన్నా తక్కువ"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},xMinutes:{standalone:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాలు"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},aboutXHours:{standalone:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటలు"},withPreposition:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటల"}},xHours:{standalone:{one:"ఒక గంట",other:"{{count}} గంటలు"},withPreposition:{one:"ఒక గంట",other:"{{count}} గంటల"}},xDays:{standalone:{one:"ఒక రోజు",other:"{{count}} రోజులు"},withPreposition:{one:"ఒక రోజు",other:"{{count}} రోజుల"}},aboutXWeeks:{standalone:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలు"},withPreposition:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలల"}},xWeeks:{standalone:{one:"ఒక వారం",other:"{{count}} వారాలు"},withPreposition:{one:"ఒక వారం",other:"{{count}} వారాలల"}},aboutXMonths:{standalone:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలలు"},withPreposition:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలల"}},xMonths:{standalone:{one:"ఒక నెల",other:"{{count}} నెలలు"},withPreposition:{one:"ఒక నెల",other:"{{count}} నెలల"}},aboutXYears:{standalone:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాలు"},withPreposition:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాల"}},xYears:{standalone:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాలు"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},overXYears:{standalone:{one:"ఒక సంవత్సరం పైగా",other:"{{count}} సంవత్సరాలకు పైగా"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},almostXYears:{standalone:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాలు"},withPreposition:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాల"}}},Zbt=function(t,n,r){var a,i=r!=null&&r.addSuffix?JG[t].withPreposition:JG[t].standalone;return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"లో":a+" క్రితం":a},e0t={full:"d, MMMM y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd-MM-yy"},t0t={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},n0t={full:"{{date}} {{time}}'కి'",long:"{{date}} {{time}}'కి'",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},r0t={date:Ne({formats:e0t,defaultWidth:"full"}),time:Ne({formats:t0t,defaultWidth:"full"}),dateTime:Ne({formats:n0t,defaultWidth:"full"})},a0t={lastWeek:"'గత' eeee p",yesterday:"'నిన్న' p",today:"'ఈ రోజు' p",tomorrow:"'రేపు' p",nextWeek:"'తదుపరి' eeee p",other:"P"},i0t=function(t,n,r,a){return a0t[t]},o0t={narrow:["క్రీ.పూ.","క్రీ.శ."],abbreviated:["క్రీ.పూ.","క్రీ.శ."],wide:["క్రీస్తు పూర్వం","క్రీస్తుశకం"]},s0t={narrow:["1","2","3","4"],abbreviated:["త్రై1","త్రై2","త్రై3","త్రై4"],wide:["1వ త్రైమాసికం","2వ త్రైమాసికం","3వ త్రైమాసికం","4వ త్రైమాసికం"]},l0t={narrow:["జ","ఫి","మా","ఏ","మే","జూ","జు","ఆ","సె","అ","న","డి"],abbreviated:["జన","ఫిబ్ర","మార్చి","ఏప్రి","మే","జూన్","జులై","ఆగ","సెప్టెం","అక్టో","నవం","డిసెం"],wide:["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జులై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్"]},u0t={narrow:["ఆ","సో","మ","బు","గు","శు","శ"],short:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],abbreviated:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],wide:["ఆదివారం","సోమవారం","మంగళవారం","బుధవారం","గురువారం","శుక్రవారం","శనివారం"]},c0t={narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},d0t={narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},f0t=function(t,n){var r=Number(t);return r+"వ"},p0t={ordinalNumber:f0t,era:oe({values:o0t,defaultWidth:"wide"}),quarter:oe({values:s0t,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:l0t,defaultWidth:"wide"}),day:oe({values:u0t,defaultWidth:"wide"}),dayPeriod:oe({values:c0t,defaultWidth:"wide",formattingValues:d0t,defaultFormattingWidth:"wide"})},h0t=/^(\d+)(వ)?/i,m0t=/\d+/i,g0t={narrow:/^(క్రీ\.పూ\.|క్రీ\.శ\.)/i,abbreviated:/^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i,wide:/^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i},v0t={any:[/^(పూ|శ)/i,/^సా/i]},y0t={narrow:/^[1234]/i,abbreviated:/^త్రై[1234]/i,wide:/^[1234](వ)? త్రైమాసికం/i},b0t={any:[/1/i,/2/i,/3/i,/4/i]},w0t={narrow:/^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i,abbreviated:/^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i,wide:/^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i},S0t={narrow:[/^జ/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూ/i,/^జు/i,/^ఆ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i],any:[/^జన/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూన్/i,/^జులై/i,/^ఆగ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i]},E0t={narrow:/^(ఆ|సో|మ|బు|గు|శు|శ)/i,short:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,abbreviated:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,wide:/^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i},T0t={narrow:[/^ఆ/i,/^సో/i,/^మ/i,/^బు/i,/^గు/i,/^శు/i,/^శ/i],any:[/^ఆది/i,/^సోమ/i,/^మం/i,/^బుధ/i,/^గురు/i,/^శుక్ర/i,/^శని/i]},C0t={narrow:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i,any:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i},k0t={any:{am:/^పూర్వాహ్నం/i,pm:/^అపరాహ్నం/i,midnight:/^అర్ధ/i,noon:/^మిట్ట/i,morning:/ఉదయం/i,afternoon:/మధ్యాహ్నం/i,evening:/సాయంత్రం/i,night:/రాత్రి/i}},x0t={ordinalNumber:Xt({matchPattern:h0t,parsePattern:m0t,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:g0t,defaultMatchWidth:"wide",parsePatterns:v0t,defaultParseWidth:"any"}),quarter:se({matchPatterns:y0t,defaultMatchWidth:"wide",parsePatterns:b0t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:w0t,defaultMatchWidth:"wide",parsePatterns:S0t,defaultParseWidth:"any"}),day:se({matchPatterns:E0t,defaultMatchWidth:"wide",parsePatterns:T0t,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:C0t,defaultMatchWidth:"any",parsePatterns:k0t,defaultParseWidth:"any"})},_0t={code:"te",formatDistance:Zbt,formatLong:r0t,formatRelative:i0t,localize:p0t,match:x0t,options:{weekStartsOn:0,firstWeekContainsDate:1}};const O0t=Object.freeze(Object.defineProperty({__proto__:null,default:_0t},Symbol.toStringTag,{value:"Module"})),R0t=jt(O0t);var P0t={lessThanXSeconds:{one:"น้อยกว่า 1 วินาที",other:"น้อยกว่า {{count}} วินาที"},xSeconds:{one:"1 วินาที",other:"{{count}} วินาที"},halfAMinute:"ครึ่งนาที",lessThanXMinutes:{one:"น้อยกว่า 1 นาที",other:"น้อยกว่า {{count}} นาที"},xMinutes:{one:"1 นาที",other:"{{count}} นาที"},aboutXHours:{one:"ประมาณ 1 ชั่วโมง",other:"ประมาณ {{count}} ชั่วโมง"},xHours:{one:"1 ชั่วโมง",other:"{{count}} ชั่วโมง"},xDays:{one:"1 วัน",other:"{{count}} วัน"},aboutXWeeks:{one:"ประมาณ 1 สัปดาห์",other:"ประมาณ {{count}} สัปดาห์"},xWeeks:{one:"1 สัปดาห์",other:"{{count}} สัปดาห์"},aboutXMonths:{one:"ประมาณ 1 เดือน",other:"ประมาณ {{count}} เดือน"},xMonths:{one:"1 เดือน",other:"{{count}} เดือน"},aboutXYears:{one:"ประมาณ 1 ปี",other:"ประมาณ {{count}} ปี"},xYears:{one:"1 ปี",other:"{{count}} ปี"},overXYears:{one:"มากกว่า 1 ปี",other:"มากกว่า {{count}} ปี"},almostXYears:{one:"เกือบ 1 ปี",other:"เกือบ {{count}} ปี"}},A0t=function(t,n,r){var a,i=P0t[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?t==="halfAMinute"?"ใน"+a:"ใน "+a:a+"ที่ผ่านมา":a},N0t={full:"วันEEEEที่ do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},M0t={full:"H:mm:ss น. zzzz",long:"H:mm:ss น. z",medium:"H:mm:ss น.",short:"H:mm น."},I0t={full:"{{date}} 'เวลา' {{time}}",long:"{{date}} 'เวลา' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},D0t={date:Ne({formats:N0t,defaultWidth:"full"}),time:Ne({formats:M0t,defaultWidth:"medium"}),dateTime:Ne({formats:I0t,defaultWidth:"full"})},$0t={lastWeek:"eeee'ที่แล้วเวลา' p",yesterday:"'เมื่อวานนี้เวลา' p",today:"'วันนี้เวลา' p",tomorrow:"'พรุ่งนี้เวลา' p",nextWeek:"eeee 'เวลา' p",other:"P"},L0t=function(t,n,r,a){return $0t[t]},F0t={narrow:["B","คศ"],abbreviated:["BC","ค.ศ."],wide:["ปีก่อนคริสตกาล","คริสต์ศักราช"]},j0t={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ไตรมาสแรก","ไตรมาสที่สอง","ไตรมาสที่สาม","ไตรมาสที่สี่"]},U0t={narrow:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],short:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],abbreviated:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],wide:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"]},B0t={narrow:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],abbreviated:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],wide:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},W0t={narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"}},z0t={narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"}},q0t=function(t,n){return String(t)},H0t={ordinalNumber:q0t,era:oe({values:F0t,defaultWidth:"wide"}),quarter:oe({values:j0t,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:B0t,defaultWidth:"wide"}),day:oe({values:U0t,defaultWidth:"wide"}),dayPeriod:oe({values:W0t,defaultWidth:"wide",formattingValues:z0t,defaultFormattingWidth:"wide"})},V0t=/^\d+/i,G0t=/\d+/i,Y0t={narrow:/^([bB]|[aA]|คศ)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i,wide:/^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i},K0t={any:[/^[bB]/i,/^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i]},X0t={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^ไตรมาส(ที่)? ?[1234]/i},Q0t={any:[/(1|แรก|หนึ่ง)/i,/(2|สอง)/i,/(3|สาม)/i,/(4|สี่)/i]},J0t={narrow:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i,abbreviated:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i,wide:/^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i},Z0t={wide:[/^มก/i,/^กุม/i,/^มี/i,/^เม/i,/^พฤษ/i,/^มิ/i,/^กรก/i,/^ส/i,/^กัน/i,/^ต/i,/^พฤศ/i,/^ธ/i],any:[/^ม\.?ค\.?/i,/^ก\.?พ\.?/i,/^มี\.?ค\.?/i,/^เม\.?ย\.?/i,/^พ\.?ค\.?/i,/^มิ\.?ย\.?/i,/^ก\.?ค\.?/i,/^ส\.?ค\.?/i,/^ก\.?ย\.?/i,/^ต\.?ค\.?/i,/^พ\.?ย\.?/i,/^ธ\.?ค\.?/i]},ewt={narrow:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,short:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,abbreviated:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,wide:/^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i},twt={wide:[/^อา/i,/^จั/i,/^อั/i,/^พุธ/i,/^พฤ/i,/^ศ/i,/^เส/i],any:[/^อา/i,/^จ/i,/^อ/i,/^พ(?!ฤ)/i,/^พฤ/i,/^ศ/i,/^ส/i]},nwt={any:/^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i},rwt={any:{am:/^ก่อนเที่ยง/i,pm:/^หลังเที่ยง/i,midnight:/^เที่ยงคืน/i,noon:/^เที่ยง/i,morning:/เช้า/i,afternoon:/บ่าย/i,evening:/เย็น/i,night:/กลางคืน/i}},awt={ordinalNumber:Xt({matchPattern:V0t,parsePattern:G0t,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:Y0t,defaultMatchWidth:"wide",parsePatterns:K0t,defaultParseWidth:"any"}),quarter:se({matchPatterns:X0t,defaultMatchWidth:"wide",parsePatterns:Q0t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:J0t,defaultMatchWidth:"wide",parsePatterns:Z0t,defaultParseWidth:"any"}),day:se({matchPatterns:ewt,defaultMatchWidth:"wide",parsePatterns:twt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:nwt,defaultMatchWidth:"any",parsePatterns:rwt,defaultParseWidth:"any"})},iwt={code:"th",formatDistance:A0t,formatLong:D0t,formatRelative:L0t,localize:H0t,match:awt,options:{weekStartsOn:0,firstWeekContainsDate:1}};const owt=Object.freeze(Object.defineProperty({__proto__:null,default:iwt},Symbol.toStringTag,{value:"Module"})),swt=jt(owt);var lwt={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},uwt=function(t,n,r){var a,i=lwt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" sonra":a+" önce":a},cwt={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},dwt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},fwt={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pwt={date:Ne({formats:cwt,defaultWidth:"full"}),time:Ne({formats:dwt,defaultWidth:"full"}),dateTime:Ne({formats:fwt,defaultWidth:"full"})},hwt={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},mwt=function(t,n,r,a){return hwt[t]},gwt={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},vwt={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},ywt={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},bwt={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},wwt={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},Swt={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},Ewt=function(t,n){var r=Number(t);return r+"."},Twt={ordinalNumber:Ewt,era:oe({values:gwt,defaultWidth:"wide"}),quarter:oe({values:vwt,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:oe({values:ywt,defaultWidth:"wide"}),day:oe({values:bwt,defaultWidth:"wide"}),dayPeriod:oe({values:wwt,defaultWidth:"wide",formattingValues:Swt,defaultFormattingWidth:"wide"})},Cwt=/^(\d+)(\.)?/i,kwt=/\d+/i,xwt={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},_wt={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},Owt={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},Rwt={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},Pwt={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},Awt={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},Nwt={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},Mwt={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},Iwt={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},Dwt={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},$wt={ordinalNumber:Xt({matchPattern:Cwt,parsePattern:kwt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:xwt,defaultMatchWidth:"wide",parsePatterns:_wt,defaultParseWidth:"any"}),quarter:se({matchPatterns:Owt,defaultMatchWidth:"wide",parsePatterns:Rwt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:Pwt,defaultMatchWidth:"wide",parsePatterns:Awt,defaultParseWidth:"any"}),day:se({matchPatterns:Nwt,defaultMatchWidth:"wide",parsePatterns:Mwt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:Iwt,defaultMatchWidth:"any",parsePatterns:Dwt,defaultParseWidth:"any"})},Lwt={code:"tr",formatDistance:uwt,formatLong:pwt,formatRelative:mwt,localize:Twt,match:$wt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const Fwt=Object.freeze(Object.defineProperty({__proto__:null,default:Lwt},Symbol.toStringTag,{value:"Module"})),jwt=jt(Fwt);var Uwt={lessThanXSeconds:{one:"بىر سىكۇنت ئىچىدە",other:"سىكۇنت ئىچىدە {{count}}"},xSeconds:{one:"بىر سىكۇنت",other:"سىكۇنت {{count}}"},halfAMinute:"يىرىم مىنۇت",lessThanXMinutes:{one:"بىر مىنۇت ئىچىدە",other:"مىنۇت ئىچىدە {{count}}"},xMinutes:{one:"بىر مىنۇت",other:"مىنۇت {{count}}"},aboutXHours:{one:"تەخمىنەن بىر سائەت",other:"سائەت {{count}} تەخمىنەن"},xHours:{one:"بىر سائەت",other:"سائەت {{count}}"},xDays:{one:"بىر كۈن",other:"كۈن {{count}}"},aboutXWeeks:{one:"تەخمىنەن بىرھەپتە",other:"ھەپتە {{count}} تەخمىنەن"},xWeeks:{one:"بىرھەپتە",other:"ھەپتە {{count}}"},aboutXMonths:{one:"تەخمىنەن بىر ئاي",other:"ئاي {{count}} تەخمىنەن"},xMonths:{one:"بىر ئاي",other:"ئاي {{count}}"},aboutXYears:{one:"تەخمىنەن بىر يىل",other:"يىل {{count}} تەخمىنەن"},xYears:{one:"بىر يىل",other:"يىل {{count}}"},overXYears:{one:"بىر يىلدىن ئارتۇق",other:"يىلدىن ئارتۇق {{count}}"},almostXYears:{one:"ئاساسەن بىر يىل",other:"يىل {{count}} ئاساسەن"}},Bwt=function(t,n,r){var a,i=Uwt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a:a+" بولدى":a},Wwt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},zwt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},qwt={full:"{{date}} 'دە' {{time}}",long:"{{date}} 'دە' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hwt={date:Ne({formats:Wwt,defaultWidth:"full"}),time:Ne({formats:zwt,defaultWidth:"full"}),dateTime:Ne({formats:qwt,defaultWidth:"full"})},Vwt={lastWeek:"'ئ‍ۆتكەن' eeee 'دە' p",yesterday:"'تۈنۈگۈن دە' p",today:"'بۈگۈن دە' p",tomorrow:"'ئەتە دە' p",nextWeek:"eeee 'دە' p",other:"P"},Gwt=function(t,n,r,a){return Vwt[t]},Ywt={narrow:["ب","ك"],abbreviated:["ب","ك"],wide:["مىيلادىدىن بۇرۇن","مىيلادىدىن كىيىن"]},Kwt={narrow:["1","2","3","4"],abbreviated:["1","2","3","4"],wide:["بىرىنجى چارەك","ئىككىنجى چارەك","ئۈچىنجى چارەك","تۆتىنجى چارەك"]},Xwt={narrow:["ي","ف","م","ا","م","ى","ى","ا","س","ۆ","ن","د"],abbreviated:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"],wide:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"]},Qwt={narrow:["ي","د","س","چ","پ","ج","ش"],short:["ي","د","س","چ","پ","ج","ش"],abbreviated:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"],wide:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},Jwt={narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"}},Zwt={narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"}},e1t=function(t,n){return String(t)},t1t={ordinalNumber:e1t,era:oe({values:Ywt,defaultWidth:"wide"}),quarter:oe({values:Kwt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:Xwt,defaultWidth:"wide"}),day:oe({values:Qwt,defaultWidth:"wide"}),dayPeriod:oe({values:Jwt,defaultWidth:"wide",formattingValues:Zwt,defaultFormattingWidth:"wide"})},n1t=/^(\d+)(th|st|nd|rd)?/i,r1t=/\d+/i,a1t={narrow:/^(ب|ك)/i,wide:/^(مىيلادىدىن بۇرۇن|مىيلادىدىن كىيىن)/i},i1t={any:[/^بۇرۇن/i,/^كىيىن/i]},o1t={narrow:/^[1234]/i,abbreviated:/^چ[1234]/i,wide:/^چارەك [1234]/i},s1t={any:[/1/i,/2/i,/3/i,/4/i]},l1t={narrow:/^[يفمئامئ‍ئاسۆند]/i,abbreviated:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i,wide:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i},u1t={narrow:[/^ي/i,/^ف/i,/^م/i,/^ا/i,/^م/i,/^ى‍/i,/^ى‍/i,/^ا‍/i,/^س/i,/^ۆ/i,/^ن/i,/^د/i],any:[/^يان/i,/^فېۋ/i,/^مار/i,/^ئاپ/i,/^ماي/i,/^ئىيۇن/i,/^ئىيول/i,/^ئاۋ/i,/^سىن/i,/^ئۆك/i,/^نوي/i,/^دىك/i]},c1t={narrow:/^[دسچپجشي]/i,short:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,abbreviated:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,wide:/^(يەكشەنبە|دۈشەنبە|سەيشەنبە|چارشەنبە|پەيشەنبە|جۈمە|شەنبە)/i},d1t={narrow:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i]},f1t={narrow:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i,any:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i},p1t={any:{am:/^ئە/i,pm:/^چ/i,midnight:/^ك/i,noon:/^چ/i,morning:/ئەتىگەن/i,afternoon:/چۈشتىن كىيىن/i,evening:/ئاخشىم/i,night:/كىچە/i}},h1t={ordinalNumber:Xt({matchPattern:n1t,parsePattern:r1t,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:a1t,defaultMatchWidth:"wide",parsePatterns:i1t,defaultParseWidth:"any"}),quarter:se({matchPatterns:o1t,defaultMatchWidth:"wide",parsePatterns:s1t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:l1t,defaultMatchWidth:"wide",parsePatterns:u1t,defaultParseWidth:"any"}),day:se({matchPatterns:c1t,defaultMatchWidth:"wide",parsePatterns:d1t,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:f1t,defaultMatchWidth:"any",parsePatterns:p1t,defaultParseWidth:"any"})},m1t={code:"ug",formatDistance:Bwt,formatLong:Hwt,formatRelative:Gwt,localize:t1t,match:h1t,options:{weekStartsOn:0,firstWeekContainsDate:1}};const g1t=Object.freeze(Object.defineProperty({__proto__:null,default:m1t},Symbol.toStringTag,{value:"Module"})),v1t=jt(g1t);function Z1(e,t){if(e.one!==void 0&&t===1)return e.one;var n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function Mo(e){return function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?e.future?Z1(e.future,t):"за "+Z1(e.regular,t):e.past?Z1(e.past,t):Z1(e.regular,t)+" тому":Z1(e.regular,t)}}var y1t=function(t,n){return n&&n.addSuffix?n.comparison&&n.comparison>0?"за півхвилини":"півхвилини тому":"півхвилини"},b1t={lessThanXSeconds:Mo({regular:{one:"менше секунди",singularNominative:"менше {{count}} секунди",singularGenitive:"менше {{count}} секунд",pluralGenitive:"менше {{count}} секунд"},future:{one:"менше, ніж за секунду",singularNominative:"менше, ніж за {{count}} секунду",singularGenitive:"менше, ніж за {{count}} секунди",pluralGenitive:"менше, ніж за {{count}} секунд"}}),xSeconds:Mo({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунди",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду тому",singularGenitive:"{{count}} секунди тому",pluralGenitive:"{{count}} секунд тому"},future:{singularNominative:"за {{count}} секунду",singularGenitive:"за {{count}} секунди",pluralGenitive:"за {{count}} секунд"}}),halfAMinute:y1t,lessThanXMinutes:Mo({regular:{one:"менше хвилини",singularNominative:"менше {{count}} хвилини",singularGenitive:"менше {{count}} хвилин",pluralGenitive:"менше {{count}} хвилин"},future:{one:"менше, ніж за хвилину",singularNominative:"менше, ніж за {{count}} хвилину",singularGenitive:"менше, ніж за {{count}} хвилини",pluralGenitive:"менше, ніж за {{count}} хвилин"}}),xMinutes:Mo({regular:{singularNominative:"{{count}} хвилина",singularGenitive:"{{count}} хвилини",pluralGenitive:"{{count}} хвилин"},past:{singularNominative:"{{count}} хвилину тому",singularGenitive:"{{count}} хвилини тому",pluralGenitive:"{{count}} хвилин тому"},future:{singularNominative:"за {{count}} хвилину",singularGenitive:"за {{count}} хвилини",pluralGenitive:"за {{count}} хвилин"}}),aboutXHours:Mo({regular:{singularNominative:"близько {{count}} години",singularGenitive:"близько {{count}} годин",pluralGenitive:"близько {{count}} годин"},future:{singularNominative:"приблизно за {{count}} годину",singularGenitive:"приблизно за {{count}} години",pluralGenitive:"приблизно за {{count}} годин"}}),xHours:Mo({regular:{singularNominative:"{{count}} годину",singularGenitive:"{{count}} години",pluralGenitive:"{{count}} годин"}}),xDays:Mo({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} днi",pluralGenitive:"{{count}} днів"}}),aboutXWeeks:Mo({regular:{singularNominative:"близько {{count}} тижня",singularGenitive:"близько {{count}} тижнів",pluralGenitive:"близько {{count}} тижнів"},future:{singularNominative:"приблизно за {{count}} тиждень",singularGenitive:"приблизно за {{count}} тижні",pluralGenitive:"приблизно за {{count}} тижнів"}}),xWeeks:Mo({regular:{singularNominative:"{{count}} тиждень",singularGenitive:"{{count}} тижні",pluralGenitive:"{{count}} тижнів"}}),aboutXMonths:Mo({regular:{singularNominative:"близько {{count}} місяця",singularGenitive:"близько {{count}} місяців",pluralGenitive:"близько {{count}} місяців"},future:{singularNominative:"приблизно за {{count}} місяць",singularGenitive:"приблизно за {{count}} місяці",pluralGenitive:"приблизно за {{count}} місяців"}}),xMonths:Mo({regular:{singularNominative:"{{count}} місяць",singularGenitive:"{{count}} місяці",pluralGenitive:"{{count}} місяців"}}),aboutXYears:Mo({regular:{singularNominative:"близько {{count}} року",singularGenitive:"близько {{count}} років",pluralGenitive:"близько {{count}} років"},future:{singularNominative:"приблизно за {{count}} рік",singularGenitive:"приблизно за {{count}} роки",pluralGenitive:"приблизно за {{count}} років"}}),xYears:Mo({regular:{singularNominative:"{{count}} рік",singularGenitive:"{{count}} роки",pluralGenitive:"{{count}} років"}}),overXYears:Mo({regular:{singularNominative:"більше {{count}} року",singularGenitive:"більше {{count}} років",pluralGenitive:"більше {{count}} років"},future:{singularNominative:"більше, ніж за {{count}} рік",singularGenitive:"більше, ніж за {{count}} роки",pluralGenitive:"більше, ніж за {{count}} років"}}),almostXYears:Mo({regular:{singularNominative:"майже {{count}} рік",singularGenitive:"майже {{count}} роки",pluralGenitive:"майже {{count}} років"},future:{singularNominative:"майже за {{count}} рік",singularGenitive:"майже за {{count}} роки",pluralGenitive:"майже за {{count}} років"}})},w1t=function(t,n,r){return r=r||{},b1t[t](n,r)},S1t={full:"EEEE, do MMMM y 'р.'",long:"do MMMM y 'р.'",medium:"d MMM y 'р.'",short:"dd.MM.y"},E1t={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},T1t={full:"{{date}} 'о' {{time}}",long:"{{date}} 'о' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},C1t={date:Ne({formats:S1t,defaultWidth:"full"}),time:Ne({formats:E1t,defaultWidth:"full"}),dateTime:Ne({formats:T1t,defaultWidth:"full"})},R4=["неділю","понеділок","вівторок","середу","четвер","п’ятницю","суботу"];function k1t(e){var t=R4[e];switch(e){case 0:case 3:case 5:case 6:return"'у минулу "+t+" о' p";case 1:case 2:case 4:return"'у минулий "+t+" о' p"}}function Wae(e){var t=R4[e];return"'у "+t+" о' p"}function x1t(e){var t=R4[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступну "+t+" о' p";case 1:case 2:case 4:return"'у наступний "+t+" о' p"}}var _1t=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?Wae(i):k1t(i)},O1t=function(t,n,r){var a=Re(t),i=a.getUTCDay();return wi(a,n,r)?Wae(i):x1t(i)},R1t={lastWeek:_1t,yesterday:"'вчора о' p",today:"'сьогодні о' p",tomorrow:"'завтра о' p",nextWeek:O1t,other:"P"},P1t=function(t,n,r,a){var i=R1t[t];return typeof i=="function"?i(n,r,a):i},A1t={narrow:["до н.е.","н.е."],abbreviated:["до н. е.","н. е."],wide:["до нашої ери","нашої ери"]},N1t={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},M1t={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},I1t={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]},D1t={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вів","сер","чтв","птн","суб"],wide:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"]},$1t={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранок",afternoon:"день",evening:"вечір",night:"ніч"}},L1t={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"}},F1t=function(t,n){var r=String(n==null?void 0:n.unit),a=Number(t),i;return r==="date"?a===3||a===23?i="-є":i="-е":r==="minute"||r==="second"||r==="hour"?i="-а":i="-й",a+i},j1t={ordinalNumber:F1t,era:oe({values:A1t,defaultWidth:"wide"}),quarter:oe({values:N1t,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:M1t,defaultWidth:"wide",formattingValues:I1t,defaultFormattingWidth:"wide"}),day:oe({values:D1t,defaultWidth:"wide"}),dayPeriod:oe({values:$1t,defaultWidth:"any",formattingValues:L1t,defaultFormattingWidth:"wide"})},U1t=/^(\d+)(-?(е|й|є|а|я))?/i,B1t=/\d+/i,W1t={narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},z1t={any:[/^д/i,/^н/i]},q1t={narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},H1t={any:[/1/i,/2/i,/3/i,/4/i]},V1t={narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},G1t={narrow:[/^с/i,/^л/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^с/i,/^в/i,/^ж/i,/^л/i,/^г/i],any:[/^сі/i,/^лю/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^лип/i,/^се/i,/^в/i,/^ж/i,/^лис/i,/^г/i]},Y1t={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},K1t={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},X1t={narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},Q1t={any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},J1t={ordinalNumber:Xt({matchPattern:U1t,parsePattern:B1t,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:W1t,defaultMatchWidth:"wide",parsePatterns:z1t,defaultParseWidth:"any"}),quarter:se({matchPatterns:q1t,defaultMatchWidth:"wide",parsePatterns:H1t,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:V1t,defaultMatchWidth:"wide",parsePatterns:G1t,defaultParseWidth:"any"}),day:se({matchPatterns:Y1t,defaultMatchWidth:"wide",parsePatterns:K1t,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:X1t,defaultMatchWidth:"wide",parsePatterns:Q1t,defaultParseWidth:"any"})},Z1t={code:"uk",formatDistance:w1t,formatLong:C1t,formatRelative:P1t,localize:j1t,match:J1t,options:{weekStartsOn:1,firstWeekContainsDate:1}};const eSt=Object.freeze(Object.defineProperty({__proto__:null,default:Z1t},Symbol.toStringTag,{value:"Module"})),tSt=jt(eSt);var nSt={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},rSt=function(t,n,r){var a,i=nSt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" nữa":a+" trước":a},aSt={full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},iSt={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},oSt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},sSt={date:Ne({formats:aSt,defaultWidth:"full"}),time:Ne({formats:iSt,defaultWidth:"full"}),dateTime:Ne({formats:oSt,defaultWidth:"full"})},lSt={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},uSt=function(t,n,r,a){return lSt[t]},cSt={narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},dSt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},fSt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},pSt={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},hSt={narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},mSt={narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},gSt={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},vSt={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},ySt=function(t,n){var r=Number(t),a=n==null?void 0:n.unit;if(a==="quarter")switch(r){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if(a==="day")switch(r){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if(a==="week")return r===1?"thứ nhất":"thứ "+r;if(a==="dayOfYear")return r===1?"đầu tiên":"thứ "+r}return String(r)},bSt={ordinalNumber:ySt,era:oe({values:cSt,defaultWidth:"wide"}),quarter:oe({values:dSt,defaultWidth:"wide",formattingValues:fSt,defaultFormattingWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:pSt,defaultWidth:"wide",formattingValues:hSt,defaultFormattingWidth:"wide"}),day:oe({values:mSt,defaultWidth:"wide"}),dayPeriod:oe({values:gSt,defaultWidth:"wide",formattingValues:vSt,defaultFormattingWidth:"wide"})},wSt=/^(\d+)/i,SSt=/\d+/i,ESt={narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},TSt={any:[/^t/i,/^s/i]},CSt={narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},kSt={any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},xSt={narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},_St={narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},OSt={narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},RSt={narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},PSt={narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},ASt={any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},NSt={ordinalNumber:Xt({matchPattern:wSt,parsePattern:SSt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:ESt,defaultMatchWidth:"wide",parsePatterns:TSt,defaultParseWidth:"any"}),quarter:se({matchPatterns:CSt,defaultMatchWidth:"wide",parsePatterns:kSt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:xSt,defaultMatchWidth:"wide",parsePatterns:_St,defaultParseWidth:"wide"}),day:se({matchPatterns:OSt,defaultMatchWidth:"wide",parsePatterns:RSt,defaultParseWidth:"wide"}),dayPeriod:se({matchPatterns:PSt,defaultMatchWidth:"wide",parsePatterns:ASt,defaultParseWidth:"any"})},MSt={code:"vi",formatDistance:rSt,formatLong:sSt,formatRelative:uSt,localize:bSt,match:NSt,options:{weekStartsOn:1,firstWeekContainsDate:1}};const ISt=Object.freeze(Object.defineProperty({__proto__:null,default:MSt},Symbol.toStringTag,{value:"Module"})),DSt=jt(ISt);var $St={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},LSt=function(t,n,r){var a,i=$St[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a},FSt={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},jSt={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},USt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},BSt={date:Ne({formats:FSt,defaultWidth:"full"}),time:Ne({formats:jSt,defaultWidth:"full"}),dateTime:Ne({formats:USt,defaultWidth:"full"})};function ZG(e,t,n){var r="eeee p";return wi(e,t,n)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}var WSt={lastWeek:ZG,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:ZG,other:"PP p"},zSt=function(t,n,r,a){var i=WSt[t];return typeof i=="function"?i(n,r,a):i},qSt={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},HSt={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},VSt={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},GSt={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},YSt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},KSt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},XSt=function(t,n){var r=Number(t);switch(n==null?void 0:n.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},QSt={ordinalNumber:XSt,era:oe({values:qSt,defaultWidth:"wide"}),quarter:oe({values:HSt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:VSt,defaultWidth:"wide"}),day:oe({values:GSt,defaultWidth:"wide"}),dayPeriod:oe({values:YSt,defaultWidth:"wide",formattingValues:KSt,defaultFormattingWidth:"wide"})},JSt=/^(第\s*)?\d+(日|时|分|秒)?/i,ZSt=/\d+/i,eEt={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},tEt={any:[/^(前)/i,/^(公元)/i]},nEt={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},rEt={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},aEt={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},iEt={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},oEt={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},sEt={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},lEt={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},uEt={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},cEt={ordinalNumber:Xt({matchPattern:JSt,parsePattern:ZSt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:eEt,defaultMatchWidth:"wide",parsePatterns:tEt,defaultParseWidth:"any"}),quarter:se({matchPatterns:nEt,defaultMatchWidth:"wide",parsePatterns:rEt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:aEt,defaultMatchWidth:"wide",parsePatterns:iEt,defaultParseWidth:"any"}),day:se({matchPatterns:oEt,defaultMatchWidth:"wide",parsePatterns:sEt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:lEt,defaultMatchWidth:"any",parsePatterns:uEt,defaultParseWidth:"any"})},dEt={code:"zh-CN",formatDistance:LSt,formatLong:BSt,formatRelative:zSt,localize:QSt,match:cEt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const fEt=Object.freeze(Object.defineProperty({__proto__:null,default:dEt},Symbol.toStringTag,{value:"Module"})),pEt=jt(fEt);var hEt={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},mEt=function(t,n,r){var a,i=hEt[t];return typeof i=="string"?a=i:n===1?a=i.one:a=i.other.replace("{{count}}",String(n)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"內":a+"前":a},gEt={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},vEt={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},yEt={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},bEt={date:Ne({formats:gEt,defaultWidth:"full"}),time:Ne({formats:vEt,defaultWidth:"full"}),dateTime:Ne({formats:yEt,defaultWidth:"full"})},wEt={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},SEt=function(t,n,r,a){return wEt[t]},EEt={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},TEt={narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻鐘","第二刻鐘","第三刻鐘","第四刻鐘"]},CEt={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},kEt={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},xEt={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},_Et={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},OEt=function(t,n){var r=Number(t);switch(n==null?void 0:n.unit){case"date":return r+"日";case"hour":return r+"時";case"minute":return r+"分";case"second":return r+"秒";default:return"第 "+r}},REt={ordinalNumber:OEt,era:oe({values:EEt,defaultWidth:"wide"}),quarter:oe({values:TEt,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:oe({values:CEt,defaultWidth:"wide"}),day:oe({values:kEt,defaultWidth:"wide"}),dayPeriod:oe({values:xEt,defaultWidth:"wide",formattingValues:_Et,defaultFormattingWidth:"wide"})},PEt=/^(第\s*)?\d+(日|時|分|秒)?/i,AEt=/\d+/i,NEt={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},MEt={any:[/^(前)/i,/^(公元)/i]},IEt={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},DEt={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},$Et={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},LEt={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},FEt={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},jEt={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},UEt={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},BEt={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},WEt={ordinalNumber:Xt({matchPattern:PEt,parsePattern:AEt,valueCallback:function(t){return parseInt(t,10)}}),era:se({matchPatterns:NEt,defaultMatchWidth:"wide",parsePatterns:MEt,defaultParseWidth:"any"}),quarter:se({matchPatterns:IEt,defaultMatchWidth:"wide",parsePatterns:DEt,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:se({matchPatterns:$Et,defaultMatchWidth:"wide",parsePatterns:LEt,defaultParseWidth:"any"}),day:se({matchPatterns:FEt,defaultMatchWidth:"wide",parsePatterns:jEt,defaultParseWidth:"any"}),dayPeriod:se({matchPatterns:UEt,defaultMatchWidth:"any",parsePatterns:BEt,defaultParseWidth:"any"})},zEt={code:"zh-TW",formatDistance:mEt,formatLong:bEt,formatRelative:SEt,localize:REt,match:WEt,options:{weekStartsOn:1,firstWeekContainsDate:4}};const qEt=Object.freeze(Object.defineProperty({__proto__:null,default:zEt},Symbol.toStringTag,{value:"Module"})),HEt=jt(qEt);var eY;function VEt(){return eY||(eY=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"af",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"arDZ",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"arSA",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"be",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"bg",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"bn",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"ca",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"cs",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"cy",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"da",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"de",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"el",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"enAU",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"enCA",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"enGB",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"enUS",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"eo",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"es",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"et",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"faIR",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"fi",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"fr",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"frCA",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"gl",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"gu",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"he",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(e,"hi",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"hr",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(e,"hu",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(e,"hy",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(e,"is",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(e,"it",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"ja",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"ka",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(e,"kk",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"ko",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(e,"lv",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(e,"ms",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(e,"nb",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(e,"nl",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(e,"nn",{enumerable:!0,get:function(){return ke.default}}),Object.defineProperty(e,"pl",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(e,"pt",{enumerable:!0,get:function(){return xe.default}}),Object.defineProperty(e,"ptBR",{enumerable:!0,get:function(){return Ie.default}}),Object.defineProperty(e,"ro",{enumerable:!0,get:function(){return qe.default}}),Object.defineProperty(e,"ru",{enumerable:!0,get:function(){return tt.default}}),Object.defineProperty(e,"sk",{enumerable:!0,get:function(){return Ge.default}}),Object.defineProperty(e,"sl",{enumerable:!0,get:function(){return at.default}}),Object.defineProperty(e,"sr",{enumerable:!0,get:function(){return Et.default}}),Object.defineProperty(e,"srLatn",{enumerable:!0,get:function(){return kt.default}}),Object.defineProperty(e,"sv",{enumerable:!0,get:function(){return xt.default}}),Object.defineProperty(e,"ta",{enumerable:!0,get:function(){return Rt.default}}),Object.defineProperty(e,"te",{enumerable:!0,get:function(){return cn.default}}),Object.defineProperty(e,"th",{enumerable:!0,get:function(){return qt.default}}),Object.defineProperty(e,"tr",{enumerable:!0,get:function(){return Wt.default}}),Object.defineProperty(e,"ug",{enumerable:!0,get:function(){return Oe.default}}),Object.defineProperty(e,"uk",{enumerable:!0,get:function(){return dt.default}}),Object.defineProperty(e,"vi",{enumerable:!0,get:function(){return ft.default}}),Object.defineProperty(e,"zhCN",{enumerable:!0,get:function(){return ut.default}}),Object.defineProperty(e,"zhTW",{enumerable:!0,get:function(){return Nt.default}});var t=U(iHe),n=U(LHe),r=U(m7e),a=U(Z7e),i=U($Ve),o=U(gGe),l=U(KGe),u=U(RYe),d=U(sKe),f=U(jKe),g=U(gXe),y=U(YXe),h=U(tQe),v=U(cQe),E=U(vQe),T=U(_ae),C=U(YQe),k=U(_Je),_=U(nZe),A=U(IZe),P=U(pet),N=U(Bet),I=U(Yet),L=U(_tt),j=U(int),z=U(Fnt),Q=U(vrt),le=U(Xrt),re=U(Aat),ge=U(uit),me=U(Bit),W=U(bot),G=U(Zot),q=U(Ast),ce=U(ult),H=U(qlt),Y=U(Eut),ie=U(rct),J=U(Fct),ee=U(gdt),Z=U(Gdt),ue=U(Cft),ke=U(npt),fe=U(Bpt),xe=U(bht),Ie=U(Qht),qe=U(Rmt),tt=U(cgt),Ge=U(Ygt),at=U(Ovt),Et=U(syt),kt=U(Uyt),xt=U(bbt),Rt=U(Jbt),cn=U(R0t),qt=U(swt),Wt=U(jwt),Oe=U(v1t),dt=U(tSt),ft=U(DSt),ut=U(pEt),Nt=U(HEt);function U(D){return D&&D.__esModule?D:{default:D}}})(N$)),N$}var GEt=VEt();const zae=e=>{const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,errorMessage:l,type:u,focused:d=!1,autoFocus:f,...g}=e,[y,h]=R.useState(!1),v=R.useRef(),E=R.useCallback(()=>{var T;(T=v.current)==null||T.focus()},[v.current]);return w.jsx(rf,{focused:y,onClick:E,...e,children:w.jsx("div",{children:w.jsx(_9e.DateRangePicker,{locale:GEt.enUS,date:e.value,months:2,showSelectionPreview:!0,direction:"horizontal",moveRangeOnFirstSelection:!1,ranges:[{...e.value||{},key:"selection"}],onChange:T=>{var C;(C=e.onChange)==null||C.call(e,T.selection)}})})})},YEt=e=>{var a,i;const t=o=>o?new Date(o.getFullYear(),o.getMonth(),o.getDate()):void 0,n={startDate:t(new Date((a=e.value)==null?void 0:a.startDate)),endDate:t(new Date((i=e.value)==null?void 0:i.endDate))},r=o=>{e.onChange({startDate:t(o.startDate),endDate:t(o.endDate)})};return w.jsx(zae,{...e,value:n,onChange:r})};//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var Aae;function Ot(){return Aae.apply(null,arguments)}function NEt(e){Aae=e}function xu(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Tv(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function gr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function v4(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(gr(e,t))return!1;return!0}function ns(e){return e===void 0}function Kd(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function KE(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Nae(e,t){var n=[],r,a=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n>>0,r;for(r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var S4=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,vk=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,x$={},Gb={};function nn(e,t,n,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(Gb[e]=a),t&&(Gb[t[0]]=function(){return Oc(a.apply(this,arguments),t[1],t[2])}),n&&(Gb[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function LEt(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function FEt(e){var t=e.match(S4),n,r;for(n=0,r=t.length;n=0&&vk.test(e);)e=e.replace(vk,r),vk.lastIndex=0,n-=1;return e}var jEt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function UEt(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(S4).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var BEt="Invalid date";function WEt(){return this._invalidDate}var zEt="%d",qEt=/\d{1,2}/;function HEt(e){return this._ordinal.replace("%d",e)}var VEt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function GEt(e,t,n,r){var a=this._relativeTime[n];return Ic(a)?a(e,t,n,r):a.replace(/%d/i,e)}function YEt(e,t){var n=this._relativeTime[e>0?"future":"past"];return Ic(n)?n(t):n.replace(/%s/i,t)}var qG={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Dl(e){return typeof e=="string"?qG[e]||qG[e.toLowerCase()]:void 0}function E4(e){var t={},n,r;for(r in e)gr(e,r)&&(n=Dl(r),n&&(t[n]=e[r]));return t}var KEt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function XEt(e){var t=[],n;for(n in e)gr(e,n)&&t.push({unit:n,priority:KEt[n]});return t.sort(function(r,a){return r.priority-a.priority}),t}var $ae=/\d/,zs=/\d\d/,Lae=/\d{3}/,T4=/\d{4}/,K_=/[+-]?\d{6}/,Kr=/\d\d?/,Fae=/\d\d\d\d?/,jae=/\d\d\d\d\d\d?/,X_=/\d{1,3}/,C4=/\d{1,4}/,Q_=/[+-]?\d{1,6}/,T0=/\d+/,J_=/[+-]?\d+/,QEt=/Z|[+-]\d\d:?\d\d/gi,Z_=/Z|[+-]\d\d(?::?\d\d)?/gi,JEt=/[+-]?\d+(\.\d{1,3})?/,QE=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,C0=/^[1-9]\d?/,k4=/^([1-9]\d|\d)/,Bx;Bx={};function Ft(e,t,n){Bx[e]=Ic(t)?t:function(r,a){return r&&n?n:t}}function ZEt(e,t){return gr(Bx,e)?Bx[e](t._strict,t._locale):new RegExp(eTt(e))}function eTt(e){return Id(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,a,i){return n||r||a||i}))}function Id(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function wl(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Kn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=wl(t)),n}var P3={};function Mr(e,t){var n,r=t,a;for(typeof e=="string"&&(e=[e]),Kd(t)&&(r=function(i,o){o[t]=Kn(i)}),a=e.length,n=0;n68?1900:2e3)};var Uae=k0("FullYear",!0);function aTt(){return eO(this.year())}function k0(e,t){return function(n){return n!=null?(Bae(this,e,n),Ot.updateOffset(this,t),this):hE(this,e)}}function hE(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Bae(e,t,n){var r,a,i,o,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(a?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(a?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(a?r.setUTCHours(n):r.setHours(n));case"Date":return void(a?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,o=e.month(),l=e.date(),l=l===29&&o===1&&!eO(i)?28:l,a?r.setUTCFullYear(i,o,l):r.setFullYear(i,o,l)}}function iTt(e){return e=Dl(e),Ic(this[e])?this[e]():this}function oTt(e,t){if(typeof e=="object"){e=E4(e);var n=XEt(e),r,a=n.length;for(r=0;r=0?(l=new Date(e+400,t,n,r,a,i,o),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,a,i,o),l}function mE(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Wx(e,t,n){var r=7+t-n,a=(7+mE(e,0,r).getUTCDay()-t)%7;return-a+r-1}function Gae(e,t,n,r,a){var i=(7+n-r)%7,o=Wx(e,r,a),l=1+7*(t-1)+i+o,u,d;return l<=0?(u=e-1,d=CS(u)+l):l>CS(e)?(u=e+1,d=l-CS(e)):(u=e,d=l),{year:u,dayOfYear:d}}function gE(e,t,n){var r=Wx(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+Dd(o,t,n)):a>Dd(e.year(),t,n)?(i=a-Dd(e.year(),t,n),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function Dd(e,t,n){var r=Wx(e,t,n),a=Wx(e+1,t,n);return(CS(e)-r+a)/7}nn("w",["ww",2],"wo","week");nn("W",["WW",2],"Wo","isoWeek");Ft("w",Kr,C0);Ft("ww",Kr,zs);Ft("W",Kr,C0);Ft("WW",Kr,zs);JE(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Kn(e)});function bTt(e){return gE(e,this._week.dow,this._week.doy).week}var wTt={dow:0,doy:6};function STt(){return this._week.dow}function ETt(){return this._week.doy}function TTt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function CTt(e){var t=gE(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}nn("d",0,"do","day");nn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});nn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});nn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});nn("e",0,0,"weekday");nn("E",0,0,"isoWeekday");Ft("d",Kr);Ft("e",Kr);Ft("E",Kr);Ft("dd",function(e,t){return t.weekdaysMinRegex(e)});Ft("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ft("dddd",function(e,t){return t.weekdaysRegex(e)});JE(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);a!=null?t.d=a:Mn(n).invalidWeekday=e});JE(["d","e","E"],function(e,t,n,r){t[r]=Kn(e)});function kTt(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function xTt(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function _4(e,t){return e.slice(t,7).concat(e.slice(0,t))}var _Tt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Yae="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),OTt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),RTt=QE,PTt=QE,ATt=QE;function NTt(e,t){var n=xu(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?_4(n,this._week.dow):e?n[e.day()]:n}function MTt(e){return e===!0?_4(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function ITt(e){return e===!0?_4(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function DTt(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Mc([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(a=ja.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=ja.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=ja.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=ja.call(this._weekdaysParse,o),a!==-1||(a=ja.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=ja.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=ja.call(this._shortWeekdaysParse,o),a!==-1||(a=ja.call(this._weekdaysParse,o),a!==-1)?a:(a=ja.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=ja.call(this._minWeekdaysParse,o),a!==-1||(a=ja.call(this._weekdaysParse,o),a!==-1)?a:(a=ja.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function $Tt(e,t,n){var r,a,i;if(this._weekdaysParseExact)return DTt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=Mc([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function LTt(e){if(!this.isValid())return e!=null?this:NaN;var t=hE(this,"Day");return e!=null?(e=kTt(e,this.localeData()),this.add(e-t,"d")):t}function FTt(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function jTt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=xTt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function UTt(e){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||O4.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(gr(this,"_weekdaysRegex")||(this._weekdaysRegex=RTt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function BTt(e){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||O4.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(gr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=PTt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function WTt(e){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||O4.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(gr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ATt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function O4(){function e(f,g){return g.length-f.length}var t=[],n=[],r=[],a=[],i,o,l,u,d;for(i=0;i<7;i++)o=Mc([2e3,1]).day(i),l=Id(this.weekdaysMin(o,"")),u=Id(this.weekdaysShort(o,"")),d=Id(this.weekdays(o,"")),t.push(l),n.push(u),r.push(d),a.push(l),a.push(u),a.push(d);t.sort(e),n.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function R4(){return this.hours()%12||12}function zTt(){return this.hours()||24}nn("H",["HH",2],0,"hour");nn("h",["hh",2],0,R4);nn("k",["kk",2],0,zTt);nn("hmm",0,0,function(){return""+R4.apply(this)+Oc(this.minutes(),2)});nn("hmmss",0,0,function(){return""+R4.apply(this)+Oc(this.minutes(),2)+Oc(this.seconds(),2)});nn("Hmm",0,0,function(){return""+this.hours()+Oc(this.minutes(),2)});nn("Hmmss",0,0,function(){return""+this.hours()+Oc(this.minutes(),2)+Oc(this.seconds(),2)});function Kae(e,t){nn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Kae("a",!0);Kae("A",!1);function Xae(e,t){return t._meridiemParse}Ft("a",Xae);Ft("A",Xae);Ft("H",Kr,k4);Ft("h",Kr,C0);Ft("k",Kr,C0);Ft("HH",Kr,zs);Ft("hh",Kr,zs);Ft("kk",Kr,zs);Ft("hmm",Fae);Ft("hmmss",jae);Ft("Hmm",Fae);Ft("Hmmss",jae);Mr(["H","HH"],ai);Mr(["k","kk"],function(e,t,n){var r=Kn(e);t[ai]=r===24?0:r});Mr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Mr(["h","hh"],function(e,t,n){t[ai]=Kn(e),Mn(n).bigHour=!0});Mr("hmm",function(e,t,n){var r=e.length-2;t[ai]=Kn(e.substr(0,r)),t[Su]=Kn(e.substr(r)),Mn(n).bigHour=!0});Mr("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ai]=Kn(e.substr(0,r)),t[Su]=Kn(e.substr(r,2)),t[Nd]=Kn(e.substr(a)),Mn(n).bigHour=!0});Mr("Hmm",function(e,t,n){var r=e.length-2;t[ai]=Kn(e.substr(0,r)),t[Su]=Kn(e.substr(r))});Mr("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ai]=Kn(e.substr(0,r)),t[Su]=Kn(e.substr(r,2)),t[Nd]=Kn(e.substr(a))});function qTt(e){return(e+"").toLowerCase().charAt(0)==="p"}var HTt=/[ap]\.?m?\.?/i,VTt=k0("Hours",!0);function GTt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Qae={calendar:DEt,longDateFormat:jEt,invalidDate:BEt,ordinal:zEt,dayOfMonthOrdinalParse:qEt,relativeTime:VEt,months:lTt,monthsShort:Wae,week:wTt,weekdays:_Tt,weekdaysMin:OTt,weekdaysShort:Yae,meridiemParse:HTt},ta={},q1={},vE;function YTt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(a=tO(i.slice(0,n).join("-")),a)return a;if(r&&r.length>=n&&YTt(i,r)>=n-1)break;n--}t++}return vE}function XTt(e){return!!(e&&e.match("^[^/\\\\]*$"))}function tO(e){var t=null,n;if(ta[e]===void 0&&typeof to<"u"&&to&&to.exports&&XTt(e))try{t=vE._abbr,n=require,n("./locale/"+e),nh(t)}catch{ta[e]=null}return ta[e]}function nh(e,t){var n;return e&&(ns(t)?n=rf(e):n=P4(e,t),n?vE=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),vE._abbr}function P4(e,t){if(t!==null){var n,r=Qae;if(t.abbr=e,ta[e]!=null)Iae("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ta[e]._config;else if(t.parentLocale!=null)if(ta[t.parentLocale]!=null)r=ta[t.parentLocale]._config;else if(n=tO(t.parentLocale),n!=null)r=n._config;else return q1[t.parentLocale]||(q1[t.parentLocale]=[]),q1[t.parentLocale].push({name:e,config:t}),null;return ta[e]=new w4(O3(r,t)),q1[e]&&q1[e].forEach(function(a){P4(a.name,a.config)}),nh(e),ta[e]}else return delete ta[e],null}function QTt(e,t){if(t!=null){var n,r,a=Qae;ta[e]!=null&&ta[e].parentLocale!=null?ta[e].set(O3(ta[e]._config,t)):(r=tO(e),r!=null&&(a=r._config),t=O3(a,t),r==null&&(t.abbr=e),n=new w4(t),n.parentLocale=ta[e],ta[e]=n),nh(e)}else ta[e]!=null&&(ta[e].parentLocale!=null?(ta[e]=ta[e].parentLocale,e===nh()&&nh(e)):ta[e]!=null&&delete ta[e]);return ta[e]}function rf(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return vE;if(!xu(e)){if(t=tO(e),t)return t;e=[e]}return KTt(e)}function JTt(){return R3(ta)}function A4(e){var t,n=e._a;return n&&Mn(e).overflow===-2&&(t=n[Ad]<0||n[Ad]>11?Ad:n[vc]<1||n[vc]>x4(n[no],n[Ad])?vc:n[ai]<0||n[ai]>24||n[ai]===24&&(n[Su]!==0||n[Nd]!==0||n[yv]!==0)?ai:n[Su]<0||n[Su]>59?Su:n[Nd]<0||n[Nd]>59?Nd:n[yv]<0||n[yv]>999?yv:-1,Mn(e)._overflowDayOfYear&&(tvc)&&(t=vc),Mn(e)._overflowWeeks&&t===-1&&(t=nTt),Mn(e)._overflowWeekday&&t===-1&&(t=rTt),Mn(e).overflow=t),e}var ZTt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,eCt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tCt=/Z|[+-]\d\d(?::?\d\d)?/,yk=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_$=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],nCt=/^\/?Date\((-?\d+)/i,rCt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,aCt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Jae(e){var t,n,r=e._i,a=ZTt.exec(r)||eCt.exec(r),i,o,l,u,d=yk.length,f=_$.length;if(a){for(Mn(e).iso=!0,t=0,n=d;tCS(o)||e._dayOfYear===0)&&(Mn(e)._overflowDayOfYear=!0),n=mE(o,0,e._dayOfYear),e._a[Ad]=n.getUTCMonth(),e._a[vc]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ai]===24&&e._a[Su]===0&&e._a[Nd]===0&&e._a[yv]===0&&(e._nextDay=!0,e._a[ai]=0),e._d=(e._useUTC?mE:yTt).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ai]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Mn(e).weekdayMismatch=!0)}}function fCt(e){var t,n,r,a,i,o,l,u,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,n=Tb(t.GG,e._a[no],gE(Yr(),1,4).year),r=Tb(t.W,1),a=Tb(t.E,1),(a<1||a>7)&&(u=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,d=gE(Yr(),i,o),n=Tb(t.gg,e._a[no],d.year),r=Tb(t.w,d.week),t.d!=null?(a=t.d,(a<0||a>6)&&(u=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(u=!0)):a=i),r<1||r>Dd(n,i,o)?Mn(e)._overflowWeeks=!0:u!=null?Mn(e)._overflowWeekday=!0:(l=Gae(n,r,a,i,o),e._a[no]=l.year,e._dayOfYear=l.dayOfYear)}Ot.ISO_8601=function(){};Ot.RFC_2822=function(){};function M4(e){if(e._f===Ot.ISO_8601){Jae(e);return}if(e._f===Ot.RFC_2822){Zae(e);return}e._a=[],Mn(e).empty=!0;var t=""+e._i,n,r,a,i,o,l=t.length,u=0,d,f;for(a=Dae(e._f,e._locale).match(S4)||[],f=a.length,n=0;n0&&Mn(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),u+=r.length),Gb[i]?(r?Mn(e).empty=!1:Mn(e).unusedTokens.push(i),tTt(i,r,e)):e._strict&&!r&&Mn(e).unusedTokens.push(i);Mn(e).charsLeftOver=l-u,t.length>0&&Mn(e).unusedInput.push(t),e._a[ai]<=12&&Mn(e).bigHour===!0&&e._a[ai]>0&&(Mn(e).bigHour=void 0),Mn(e).parsedDateParts=e._a.slice(0),Mn(e).meridiem=e._meridiem,e._a[ai]=pCt(e._locale,e._a[ai],e._meridiem),d=Mn(e).era,d!==null&&(e._a[no]=e._locale.erasConvertYear(d,e._a[no])),N4(e),A4(e)}function pCt(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function hCt(e){var t,n,r,a,i,o,l=!1,u=e._f.length;if(u===0){Mn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;athis?this:e:Y_()});function nie(e,t){var n,r;if(t.length===1&&xu(t[0])&&(t=t[0]),!t.length)return Yr();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function DCt(){if(!ns(this._isDSTShifted))return this._isDSTShifted;var e={},t;return b4(e,this),e=eie(e),e._a?(t=e._isUTC?Mc(e._a):Yr(e._a),this._isDSTShifted=this.isValid()&&xCt(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $Ct(){return this.isValid()?!this._isUTC:!1}function LCt(){return this.isValid()?this._isUTC:!1}function aie(){return this.isValid()?this._isUTC&&this._offset===0:!1}var FCt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jCt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pu(e,t){var n=e,r=null,a,i,o;return zk(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Kd(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=FCt.exec(e))?(a=r[1]==="-"?-1:1,n={y:0,d:Kn(r[vc])*a,h:Kn(r[ai])*a,m:Kn(r[Su])*a,s:Kn(r[Nd])*a,ms:Kn(A3(r[yv]*1e3))*a}):(r=jCt.exec(e))?(a=r[1]==="-"?-1:1,n={y:Kg(r[2],a),M:Kg(r[3],a),w:Kg(r[4],a),d:Kg(r[5],a),h:Kg(r[6],a),m:Kg(r[7],a),s:Kg(r[8],a)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=UCt(Yr(n.from),Yr(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),i=new nO(n),zk(e)&&gr(e,"_locale")&&(i._locale=e._locale),zk(e)&&gr(e,"_isValid")&&(i._isValid=e._isValid),i}Pu.fn=nO.prototype;Pu.invalid=kCt;function Kg(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function VG(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function UCt(e,t){var n;return e.isValid()&&t.isValid()?(t=D4(t,e),e.isBefore(t)?n=VG(e,t):(n=VG(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function iie(e,t){return function(n,r){var a,i;return r!==null&&!isNaN(+r)&&(Iae(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),a=Pu(n,r),oie(this,a,e),this}}function oie(e,t,n,r){var a=t._milliseconds,i=A3(t._days),o=A3(t._months);e.isValid()&&(r=r??!0,o&&qae(e,hE(e,"Month")+o*n),i&&Bae(e,"Date",hE(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&Ot.updateOffset(e,i||o))}var BCt=iie(1,"add"),WCt=iie(-1,"subtract");function sie(e){return typeof e=="string"||e instanceof String}function zCt(e){return _u(e)||KE(e)||sie(e)||Kd(e)||HCt(e)||qCt(e)||e===null||e===void 0}function qCt(e){var t=Tv(e)&&!v4(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;an.valueOf():n.valueOf()9999?Wk(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ic(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Wk(n,"Z")):Wk(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ikt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+a+i)}function okt(e){e||(e=this.isUtc()?Ot.defaultFormatUtc:Ot.defaultFormat);var t=Wk(this,e);return this.localeData().postformat(t)}function skt(e,t){return this.isValid()&&(_u(e)&&e.isValid()||Yr(e).isValid())?Pu({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function lkt(e){return this.from(Yr(),e)}function ukt(e,t){return this.isValid()&&(_u(e)&&e.isValid()||Yr(e).isValid())?Pu({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ckt(e){return this.to(Yr(),e)}function lie(e){var t;return e===void 0?this._locale._abbr:(t=rf(e),t!=null&&(this._locale=t),this)}var uie=Il("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function cie(){return this._locale}var zx=1e3,Yb=60*zx,qx=60*Yb,die=(365*400+97)*24*qx;function Kb(e,t){return(e%t+t)%t}function fie(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-die:new Date(e,t,n).valueOf()}function pie(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-die:Date.UTC(e,t,n)}function dkt(e){var t,n;if(e=Dl(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?pie:fie,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Kb(t+(this._isUTC?0:this.utcOffset()*Yb),qx);break;case"minute":t=this._d.valueOf(),t-=Kb(t,Yb);break;case"second":t=this._d.valueOf(),t-=Kb(t,zx);break}return this._d.setTime(t),Ot.updateOffset(this,!0),this}function fkt(e){var t,n;if(e=Dl(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?pie:fie,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=qx-Kb(t+(this._isUTC?0:this.utcOffset()*Yb),qx)-1;break;case"minute":t=this._d.valueOf(),t+=Yb-Kb(t,Yb)-1;break;case"second":t=this._d.valueOf(),t+=zx-Kb(t,zx)-1;break}return this._d.setTime(t),Ot.updateOffset(this,!0),this}function pkt(){return this._d.valueOf()-(this._offset||0)*6e4}function hkt(){return Math.floor(this.valueOf()/1e3)}function mkt(){return new Date(this.valueOf())}function gkt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function vkt(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ykt(){return this.isValid()?this.toISOString():null}function bkt(){return y4(this)}function wkt(){return Jp({},Mn(this))}function Skt(){return Mn(this).overflow}function Ekt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}nn("N",0,0,"eraAbbr");nn("NN",0,0,"eraAbbr");nn("NNN",0,0,"eraAbbr");nn("NNNN",0,0,"eraName");nn("NNNNN",0,0,"eraNarrow");nn("y",["y",1],"yo","eraYear");nn("y",["yy",2],0,"eraYear");nn("y",["yyy",3],0,"eraYear");nn("y",["yyyy",4],0,"eraYear");Ft("N",$4);Ft("NN",$4);Ft("NNN",$4);Ft("NNNN",Mkt);Ft("NNNNN",Ikt);Mr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?Mn(n).era=a:Mn(n).invalidEra=e});Ft("y",T0);Ft("yy",T0);Ft("yyy",T0);Ft("yyyy",T0);Ft("yo",Dkt);Mr(["y","yy","yyy","yyyy"],no);Mr(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[no]=n._locale.eraYearOrdinalParse(e,a):t[no]=parseInt(e,10)});function Tkt(e,t){var n,r,a,i=this._eras||rf("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function kkt(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Ot(e.since).year():Ot(e.since).year()+(t-e.offset)*n}function xkt(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ei&&(t=i),Wkt.call(this,e,t,n,r,a))}function Wkt(e,t,n,r,a){var i=Gae(e,t,n,r,a),o=mE(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}nn("Q",0,"Qo","quarter");Ft("Q",$ae);Mr("Q",function(e,t){t[Ad]=(Kn(e)-1)*3});function zkt(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}nn("D",["DD",2],"Do","date");Ft("D",Kr,C0);Ft("DD",Kr,zs);Ft("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Mr(["D","DD"],vc);Mr("Do",function(e,t){t[vc]=Kn(e.match(Kr)[0])});var mie=k0("Date",!0);nn("DDD",["DDDD",3],"DDDo","dayOfYear");Ft("DDD",X_);Ft("DDDD",Lae);Mr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Kn(e)});function qkt(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}nn("m",["mm",2],0,"minute");Ft("m",Kr,k4);Ft("mm",Kr,zs);Mr(["m","mm"],Su);var Hkt=k0("Minutes",!1);nn("s",["ss",2],0,"second");Ft("s",Kr,k4);Ft("ss",Kr,zs);Mr(["s","ss"],Nd);var Vkt=k0("Seconds",!1);nn("S",0,0,function(){return~~(this.millisecond()/100)});nn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});nn(0,["SSS",3],0,"millisecond");nn(0,["SSSS",4],0,function(){return this.millisecond()*10});nn(0,["SSSSS",5],0,function(){return this.millisecond()*100});nn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});nn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});nn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});nn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ft("S",X_,$ae);Ft("SS",X_,zs);Ft("SSS",X_,Lae);var Zp,gie;for(Zp="SSSS";Zp.length<=9;Zp+="S")Ft(Zp,T0);function Gkt(e,t){t[yv]=Kn(("0."+e)*1e3)}for(Zp="S";Zp.length<=9;Zp+="S")Mr(Zp,Gkt);gie=k0("Milliseconds",!1);nn("z",0,0,"zoneAbbr");nn("zz",0,0,"zoneName");function Ykt(){return this._isUTC?"UTC":""}function Kkt(){return this._isUTC?"Coordinated Universal Time":""}var ht=XE.prototype;ht.add=BCt;ht.calendar=YCt;ht.clone=KCt;ht.diff=nkt;ht.endOf=fkt;ht.format=okt;ht.from=skt;ht.fromNow=lkt;ht.to=ukt;ht.toNow=ckt;ht.get=iTt;ht.invalidAt=Skt;ht.isAfter=XCt;ht.isBefore=QCt;ht.isBetween=JCt;ht.isSame=ZCt;ht.isSameOrAfter=ekt;ht.isSameOrBefore=tkt;ht.isValid=bkt;ht.lang=uie;ht.locale=lie;ht.localeData=cie;ht.max=bCt;ht.min=yCt;ht.parsingFlags=wkt;ht.set=oTt;ht.startOf=dkt;ht.subtract=WCt;ht.toArray=gkt;ht.toObject=vkt;ht.toDate=mkt;ht.toISOString=akt;ht.inspect=ikt;typeof Symbol<"u"&&Symbol.for!=null&&(ht[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ht.toJSON=ykt;ht.toString=rkt;ht.unix=hkt;ht.valueOf=pkt;ht.creationData=Ekt;ht.eraName=xkt;ht.eraNarrow=_kt;ht.eraAbbr=Okt;ht.eraYear=Rkt;ht.year=Uae;ht.isLeapYear=aTt;ht.weekYear=$kt;ht.isoWeekYear=Lkt;ht.quarter=ht.quarters=zkt;ht.month=Hae;ht.daysInMonth=mTt;ht.week=ht.weeks=TTt;ht.isoWeek=ht.isoWeeks=CTt;ht.weeksInYear=Ukt;ht.weeksInWeekYear=Bkt;ht.isoWeeksInYear=Fkt;ht.isoWeeksInISOWeekYear=jkt;ht.date=mie;ht.day=ht.days=LTt;ht.weekday=FTt;ht.isoWeekday=jTt;ht.dayOfYear=qkt;ht.hour=ht.hours=VTt;ht.minute=ht.minutes=Hkt;ht.second=ht.seconds=Vkt;ht.millisecond=ht.milliseconds=gie;ht.utcOffset=OCt;ht.utc=PCt;ht.local=ACt;ht.parseZone=NCt;ht.hasAlignedHourOffset=MCt;ht.isDST=ICt;ht.isLocal=$Ct;ht.isUtcOffset=LCt;ht.isUtc=aie;ht.isUTC=aie;ht.zoneAbbr=Ykt;ht.zoneName=Kkt;ht.dates=Il("dates accessor is deprecated. Use date instead.",mie);ht.months=Il("months accessor is deprecated. Use month instead",Hae);ht.years=Il("years accessor is deprecated. Use year instead",Uae);ht.zone=Il("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",RCt);ht.isDSTShifted=Il("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",DCt);function Xkt(e){return Yr(e*1e3)}function Qkt(){return Yr.apply(null,arguments).parseZone()}function vie(e){return e}var vr=w4.prototype;vr.calendar=$Et;vr.longDateFormat=UEt;vr.invalidDate=WEt;vr.ordinal=HEt;vr.preparse=vie;vr.postformat=vie;vr.relativeTime=GEt;vr.pastFuture=YEt;vr.set=IEt;vr.eras=Tkt;vr.erasParse=Ckt;vr.erasConvertYear=kkt;vr.erasAbbrRegex=Akt;vr.erasNameRegex=Pkt;vr.erasNarrowRegex=Nkt;vr.months=dTt;vr.monthsShort=fTt;vr.monthsParse=hTt;vr.monthsRegex=vTt;vr.monthsShortRegex=gTt;vr.week=bTt;vr.firstDayOfYear=ETt;vr.firstDayOfWeek=STt;vr.weekdays=NTt;vr.weekdaysMin=ITt;vr.weekdaysShort=MTt;vr.weekdaysParse=$Tt;vr.weekdaysRegex=UTt;vr.weekdaysShortRegex=BTt;vr.weekdaysMinRegex=WTt;vr.isPM=qTt;vr.meridiem=GTt;function Hx(e,t,n,r){var a=rf(),i=Mc().set(r,t);return a[n](i,e)}function yie(e,t,n){if(Kd(e)&&(t=e,e=void 0),e=e||"",t!=null)return Hx(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Hx(e,r,n,"month");return a}function F4(e,t,n,r){typeof e=="boolean"?(Kd(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Kd(t)&&(n=t,t=void 0),t=t||"");var a=rf(),i=e?a._week.dow:0,o,l=[];if(n!=null)return Hx(t,(n+i)%7,r,"day");for(o=0;o<7;o++)l[o]=Hx(t,(o+i)%7,r,"day");return l}function Jkt(e,t){return yie(e,t,"months")}function Zkt(e,t){return yie(e,t,"monthsShort")}function ext(e,t,n){return F4(e,t,n,"weekdays")}function txt(e,t,n){return F4(e,t,n,"weekdaysShort")}function nxt(e,t,n){return F4(e,t,n,"weekdaysMin")}nh("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Kn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Ot.lang=Il("moment.lang is deprecated. Use moment.locale instead.",nh);Ot.langData=Il("moment.langData is deprecated. Use moment.localeData instead.",rf);var Td=Math.abs;function rxt(){var e=this._data;return this._milliseconds=Td(this._milliseconds),this._days=Td(this._days),this._months=Td(this._months),e.milliseconds=Td(e.milliseconds),e.seconds=Td(e.seconds),e.minutes=Td(e.minutes),e.hours=Td(e.hours),e.months=Td(e.months),e.years=Td(e.years),this}function bie(e,t,n,r){var a=Pu(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function axt(e,t){return bie(this,e,t,1)}function ixt(e,t){return bie(this,e,t,-1)}function GG(e){return e<0?Math.floor(e):Math.ceil(e)}function oxt(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,a,i,o,l,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=GG(M3(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,a=wl(e/1e3),r.seconds=a%60,i=wl(a/60),r.minutes=i%60,o=wl(i/60),r.hours=o%24,t+=wl(o/24),u=wl(wie(t)),n+=u,t-=GG(M3(u)),l=wl(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function wie(e){return e*4800/146097}function M3(e){return e*146097/4800}function sxt(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Dl(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+wie(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(M3(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function af(e){return function(){return this.as(e)}}var Sie=af("ms"),lxt=af("s"),uxt=af("m"),cxt=af("h"),dxt=af("d"),fxt=af("w"),pxt=af("M"),hxt=af("Q"),mxt=af("y"),gxt=Sie;function vxt(){return Pu(this)}function yxt(e){return e=Dl(e),this.isValid()?this[e+"s"]():NaN}function Vv(e){return function(){return this.isValid()?this._data[e]:NaN}}var bxt=Vv("milliseconds"),wxt=Vv("seconds"),Sxt=Vv("minutes"),Ext=Vv("hours"),Txt=Vv("days"),Cxt=Vv("months"),kxt=Vv("years");function xxt(){return wl(this.days()/7)}var kd=Math.round,$b={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function _xt(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function Oxt(e,t,n,r){var a=Pu(e).abs(),i=kd(a.as("s")),o=kd(a.as("m")),l=kd(a.as("h")),u=kd(a.as("d")),d=kd(a.as("M")),f=kd(a.as("w")),g=kd(a.as("y")),y=i<=n.ss&&["s",i]||i0,y[4]=r,_xt.apply(null,y)}function Rxt(e){return e===void 0?kd:typeof e=="function"?(kd=e,!0):!1}function Pxt(e,t){return $b[e]===void 0?!1:t===void 0?$b[e]:($b[e]=t,e==="s"&&($b.ss=t-1),!0)}function Axt(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=$b,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},$b,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),i=Oxt(this,!n,r,a),n&&(i=a.pastFuture(+this,i)),a.postformat(i)}var O$=Math.abs;function hb(e){return(e>0)-(e<0)||+e}function aO(){if(!this.isValid())return this.localeData().invalidDate();var e=O$(this._milliseconds)/1e3,t=O$(this._days),n=O$(this._months),r,a,i,o,l=this.asSeconds(),u,d,f,g;return l?(r=wl(e/60),a=wl(r/60),e%=60,r%=60,i=wl(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",d=hb(this._months)!==hb(l)?"-":"",f=hb(this._days)!==hb(l)?"-":"",g=hb(this._milliseconds)!==hb(l)?"-":"",u+"P"+(i?d+i+"Y":"")+(n?d+n+"M":"")+(t?f+t+"D":"")+(a||r||e?"T":"")+(a?g+a+"H":"")+(r?g+r+"M":"")+(e?g+o+"S":"")):"P0D"}var rr=nO.prototype;rr.isValid=CCt;rr.abs=rxt;rr.add=axt;rr.subtract=ixt;rr.as=sxt;rr.asMilliseconds=Sie;rr.asSeconds=lxt;rr.asMinutes=uxt;rr.asHours=cxt;rr.asDays=dxt;rr.asWeeks=fxt;rr.asMonths=pxt;rr.asQuarters=hxt;rr.asYears=mxt;rr.valueOf=gxt;rr._bubble=oxt;rr.clone=vxt;rr.get=yxt;rr.milliseconds=bxt;rr.seconds=wxt;rr.minutes=Sxt;rr.hours=Ext;rr.days=Txt;rr.weeks=xxt;rr.months=Cxt;rr.years=kxt;rr.humanize=Axt;rr.toISOString=aO;rr.toString=aO;rr.toJSON=aO;rr.locale=lie;rr.localeData=cie;rr.toIsoString=Il("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",aO);rr.lang=uie;nn("X",0,0,"unix");nn("x",0,0,"valueOf");Ft("x",J_);Ft("X",JEt);Mr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Mr("x",function(e,t,n){n._d=new Date(Kn(e))});//! moment.js -Ot.version="2.30.1";NEt(Yr);Ot.fn=ht;Ot.min=wCt;Ot.max=SCt;Ot.now=ECt;Ot.utc=Mc;Ot.unix=Xkt;Ot.months=Jkt;Ot.isDate=KE;Ot.locale=nh;Ot.invalid=Y_;Ot.duration=Pu;Ot.isMoment=_u;Ot.weekdays=ext;Ot.parseZone=Qkt;Ot.localeData=rf;Ot.isDuration=zk;Ot.monthsShort=Zkt;Ot.weekdaysMin=nxt;Ot.defineLocale=P4;Ot.updateLocale=QTt;Ot.locales=JTt;Ot.weekdaysShort=txt;Ot.normalizeUnits=Dl;Ot.relativeTimeRounding=Rxt;Ot.relativeTimeThreshold=Pxt;Ot.calendarFormat=GCt;Ot.prototype=ht;Ot.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Nxt=Object.freeze(Object.defineProperty({__proto__:null,default:Ot},Symbol.toStringTag,{value:"Module"})),Mxt=jt(Nxt);var R$,YG;function Ixt(){return YG||(YG=1,R$=(function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(r,a,i){n.o(r,a)||Object.defineProperty(r,a,{enumerable:!0,get:i})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,a){if(1&a&&(r=n(r)),8&a||4&a&&typeof r=="object"&&r&&r.__esModule)return r;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:r}),2&a&&typeof r!="string")for(var o in r)n.d(i,o,(function(l){return r[l]}).bind(null,o));return i},n.n=function(r){var a=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(a,"a",a),a},n.o=function(r,a){return Object.prototype.hasOwnProperty.call(r,a)},n.p="",n(n.s=4)})([function(e,t){e.exports=Fs()},function(e,t){e.exports=Mxt},function(e,t){e.exports=D3()},function(e,t,n){e.exports=n(5)()},function(e,t,n){e.exports=n(7)},function(e,t,n){var r=n(6);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function o(d,f,g,y,h,v){if(v!==r){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}}function l(){return o}o.isRequired=o;var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:l,element:o,elementType:o,instanceOf:l,node:o,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:i,resetWarningCache:a};return u.PropTypes=u,u}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t);var r=n(3),a=n.n(r),i=n(1),o=n.n(i),l=n(0),u=n.n(l);function d(){return(d=Object.assign?Object.assign.bind():function(we){for(var ve=1;ve"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=k(we);if(ve){var Se=k(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return T(this,$e)}}function T(we,ve){if(ve&&(g(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C(we)}function C(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function k(we){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function _(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}var A=(function(we){(function(ne,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(Me&&Me.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),Me&&v(ne,Me)})(Se,we);var ve,$e,ye=E(Se);function Se(){var ne;y(this,Se);for(var Me=arguments.length,Qe=new Array(Me),ot=0;ot"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=re(we);if(ve){var Se=re(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return Q(this,$e)}}function Q(we,ve){if(ve&&(N(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return le(we)}function le(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function re(we){return(re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function ge(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}_(A,"defaultProps",{isValidDate:function(){return!0},renderDay:function(we,ve){return u.a.createElement("td",we,ve.date())}});var me=(function(we){(function(ne,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(Me&&Me.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),Me&&j(ne,Me)})(Se,we);var ve,$e,ye=z(Se);function Se(){var ne;I(this,Se);for(var Me=arguments.length,Qe=new Array(Me),ot=0;ot1;)if(Me(Qe.date(ot)))return!1;return!0}},{key:"getMonthText",value:function(ne){var Me,Qe=this.props.viewDate,ot=Qe.localeData().monthsShort(Qe.month(ne));return(Me=ot.substring(0,3)).charAt(0).toUpperCase()+Me.slice(1)}}])&&L(ve.prototype,$e),Object.defineProperty(ve,"prototype",{writable:!1}),Se})(u.a.Component);function W(we,ve){return ve<4?we[0]:ve<8?we[1]:we[2]}function G(we){return(G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(we)}function q(we,ve){if(!(we instanceof ve))throw new TypeError("Cannot call a class as a function")}function ce(we,ve){for(var $e=0;$e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=ee(we);if(ve){var Se=ee(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return ie(this,$e)}}function ie(we,ve){if(ve&&(G(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J(we)}function J(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function ee(we){return(ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function Z(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}var ue=(function(we){(function(ne,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(Me&&Me.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),Me&&H(ne,Me)})(Se,we);var ve,$e,ye=Y(Se);function Se(){var ne;q(this,Se);for(var Me=arguments.length,Qe=new Array(Me),ot=0;ot1;)if(Qe(ot.dayOfYear(Bt)))return Me[ne]=!1,!1;return Me[ne]=!0,!0}}])&&ce(ve.prototype,$e),Object.defineProperty(ve,"prototype",{writable:!1}),Se})(u.a.Component);function ke(we,ve){return ve<3?we[0]:ve<7?we[1]:we[2]}function fe(we){return(fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(we)}function xe(we,ve){for(var $e=0;$e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=Ge(we);if(ve){var Se=Ge(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return tt(this,$e)}}function tt(we,ve){if(ve&&(fe(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function($e){if($e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $e})(we)}function Ge(we){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function at(we,ve){var $e=Object.keys(we);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(we);ve&&(ye=ye.filter((function(Se){return Object.getOwnPropertyDescriptor(we,Se).enumerable}))),$e.push.apply($e,ye)}return $e}function Et(we){for(var ve=1;ve=12?ne-=12:ne+=12,this.props.setTime("hours",ne)}},{key:"increase",value:function(ne){var Me=this.constraints[ne],Qe=parseInt(this.state[ne],10)+Me.step;return Qe>Me.max&&(Qe=Me.min+(Qe-(Me.max+1))),cn(ne,Qe)}},{key:"decrease",value:function(ne){var Me=this.constraints[ne],Qe=parseInt(this.state[ne],10)-Me.step;return Qe=0||(lr[Rr]=Dn[Rr]);return lr})(yn,["excludeScrollbar"]);return we.prototype&&we.prototype.isReactComponent?an.ref=this.getRef:an.wrappedRef=this.getRef,an.disableOnClickOutside=this.disableOnClickOutside,an.enableOnClickOutside=this.enableOnClickOutside,Object(l.createElement)(we,an)},ot})(l.Component),$e.displayName="OnClickOutside("+Se+")",$e.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},$e.getClass=function(){return we.getClass?we.getClass():we},ye};function Fe(we){return(Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(we)}function We(we,ve){var $e=Object.keys(we);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(we);ve&&(ye=ye.filter((function(Se){return Object.getOwnPropertyDescriptor(we,Se).enumerable}))),$e.push.apply($e,ye)}return $e}function Tt(we){for(var ve=1;ve"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=gn(we);if(ve){var Se=gn(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return Ut(this,$e)}}function Ut(we,ve){if(ve&&(Fe(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return On(we)}function On(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function gn(we){return(gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function ln(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}n.d(t,"default",(function(){return Oa}));var Bn="years",oa="months",Qa="days",ha="time",vn=a.a,_a=function(){},Bo=vn.oneOfType([vn.instanceOf(o.a),vn.instanceOf(Date),vn.string]),Oa=(function(we){gt($e,we);var ve=_t($e);function $e(ye){var Se;return Mt(this,$e),ln(On(Se=ve.call(this,ye)),"_renderCalendar",(function(){var ne=Se.props,Me=Se.state,Qe={viewDate:Me.viewDate.clone(),selectedDate:Se.getSelectedDate(),isValidDate:ne.isValidDate,updateDate:Se._updateDate,navigate:Se._viewNavigate,moment:o.a,showView:Se._showView};switch(Me.currentView){case Bn:return Qe.renderYear=ne.renderYear,u.a.createElement(ue,Qe);case oa:return Qe.renderMonth=ne.renderMonth,u.a.createElement(me,Qe);case Qa:return Qe.renderDay=ne.renderDay,Qe.timeFormat=Se.getFormat("time"),u.a.createElement(A,Qe);default:return Qe.dateFormat=Se.getFormat("date"),Qe.timeFormat=Se.getFormat("time"),Qe.timeConstraints=ne.timeConstraints,Qe.setTime=Se._setTime,u.a.createElement(Rt,Qe)}})),ln(On(Se),"_showView",(function(ne,Me){var Qe=(Me||Se.state.viewDate).clone(),ot=Se.props.onBeforeNavigate(ne,Se.state.currentView,Qe);ot&&Se.state.currentView!==ot&&(Se.props.onNavigate(ot),Se.setState({currentView:ot}))})),ln(On(Se),"viewToMethod",{days:"date",months:"month",years:"year"}),ln(On(Se),"nextView",{days:"time",months:"days",years:"months"}),ln(On(Se),"_updateDate",(function(ne){var Me=Se.state.currentView,Qe=Se.getUpdateOn(Se.getFormat("date")),ot=Se.state.viewDate.clone();ot[Se.viewToMethod[Me]](parseInt(ne.target.getAttribute("data-value"),10)),Me==="days"&&(ot.month(parseInt(ne.target.getAttribute("data-month"),10)),ot.year(parseInt(ne.target.getAttribute("data-year"),10)));var Bt={viewDate:ot};Me===Qe?(Bt.selectedDate=ot.clone(),Bt.inputValue=ot.format(Se.getFormat("datetime")),Se.props.open===void 0&&Se.props.input&&Se.props.closeOnSelect&&Se._closeCalendar(),Se.props.onChange(ot.clone())):Se._showView(Se.nextView[Me],ot),Se.setState(Bt)})),ln(On(Se),"_viewNavigate",(function(ne,Me){var Qe=Se.state.viewDate.clone();Qe.add(ne,Me),ne>0?Se.props.onNavigateForward(ne,Me):Se.props.onNavigateBack(-ne,Me),Se.setState({viewDate:Qe})})),ln(On(Se),"_setTime",(function(ne,Me){var Qe=(Se.getSelectedDate()||Se.state.viewDate).clone();Qe[ne](Me),Se.props.value||Se.setState({selectedDate:Qe,viewDate:Qe.clone(),inputValue:Qe.format(Se.getFormat("datetime"))}),Se.props.onChange(Qe)})),ln(On(Se),"_openCalendar",(function(){Se.isOpen()||Se.setState({open:!0},Se.props.onOpen)})),ln(On(Se),"_closeCalendar",(function(){Se.isOpen()&&Se.setState({open:!1},(function(){Se.props.onClose(Se.state.selectedDate||Se.state.inputValue)}))})),ln(On(Se),"_handleClickOutside",(function(){var ne=Se.props;ne.input&&Se.state.open&&ne.open===void 0&&ne.closeOnClickOutside&&Se._closeCalendar()})),ln(On(Se),"_onInputFocus",(function(ne){Se.callHandler(Se.props.inputProps.onFocus,ne)&&Se._openCalendar()})),ln(On(Se),"_onInputChange",(function(ne){if(Se.callHandler(Se.props.inputProps.onChange,ne)){var Me=ne.target?ne.target.value:ne,Qe=Se.localMoment(Me,Se.getFormat("datetime")),ot={inputValue:Me};Qe.isValid()?(ot.selectedDate=Qe,ot.viewDate=Qe.clone().startOf("month")):ot.selectedDate=null,Se.setState(ot,(function(){Se.props.onChange(Qe.isValid()?Qe:Se.state.inputValue)}))}})),ln(On(Se),"_onInputKeyDown",(function(ne){Se.callHandler(Se.props.inputProps.onKeyDown,ne)&&ne.which===9&&Se.props.closeOnTab&&Se._closeCalendar()})),ln(On(Se),"_onInputClick",(function(ne){Se.callHandler(Se.props.inputProps.onClick,ne)&&Se._openCalendar()})),Se.state=Se.getInitialState(),Se}return Ee($e,[{key:"render",value:function(){return u.a.createElement(Wo,{className:this.getClassName(),onClickOut:this._handleClickOutside},this.renderInput(),u.a.createElement("div",{className:"rdtPicker"},this.renderView()))}},{key:"renderInput",value:function(){if(this.props.input){var ye=Tt(Tt({type:"text",className:"form-control",value:this.getInputValue()},this.props.inputProps),{},{onFocus:this._onInputFocus,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onClick:this._onInputClick});return this.props.renderInput?u.a.createElement("div",null,this.props.renderInput(ye,this._openCalendar,this._closeCalendar)):u.a.createElement("input",ye)}}},{key:"renderView",value:function(){return this.props.renderView(this.state.currentView,this._renderCalendar)}},{key:"getInitialState",value:function(){var ye=this.props,Se=this.getFormat("datetime"),ne=this.parseDate(ye.value||ye.initialValue,Se);return this.checkTZ(),{open:!ye.input,currentView:ye.initialViewMode||this.getInitialView(),viewDate:this.getInitialViewDate(ne),selectedDate:ne&&ne.isValid()?ne:void 0,inputValue:this.getInitialInputValue(ne)}}},{key:"getInitialViewDate",value:function(ye){var Se,ne=this.props.initialViewDate;if(ne){if((Se=this.parseDate(ne,this.getFormat("datetime")))&&Se.isValid())return Se;Ra('The initialViewDated given "'+ne+'" is not valid. Using current date instead.')}else if(ye&&ye.isValid())return ye.clone();return this.getInitialDate()}},{key:"getInitialDate",value:function(){var ye=this.localMoment();return ye.hour(0).minute(0).second(0).millisecond(0),ye}},{key:"getInitialView",value:function(){var ye=this.getFormat("date");return ye?this.getUpdateOn(ye):ha}},{key:"parseDate",value:function(ye,Se){var ne;return ye&&typeof ye=="string"?ne=this.localMoment(ye,Se):ye&&(ne=this.localMoment(ye)),ne&&!ne.isValid()&&(ne=null),ne}},{key:"getClassName",value:function(){var ye="rdt",Se=this.props,ne=Se.className;return Array.isArray(ne)?ye+=" "+ne.join(" "):ne&&(ye+=" "+ne),Se.input||(ye+=" rdtStatic"),this.isOpen()&&(ye+=" rdtOpen"),ye}},{key:"isOpen",value:function(){return!this.props.input||(this.props.open===void 0?this.state.open:this.props.open)}},{key:"getUpdateOn",value:function(ye){return this.props.updateOnView?this.props.updateOnView:ye.match(/[lLD]/)?Qa:ye.indexOf("M")!==-1?oa:ye.indexOf("Y")!==-1?Bn:Qa}},{key:"getLocaleData",value:function(){var ye=this.props;return this.localMoment(ye.value||ye.defaultValue||new Date).localeData()}},{key:"getDateFormat",value:function(){var ye=this.getLocaleData(),Se=this.props.dateFormat;return Se===!0?ye.longDateFormat("L"):Se||""}},{key:"getTimeFormat",value:function(){var ye=this.getLocaleData(),Se=this.props.timeFormat;return Se===!0?ye.longDateFormat("LT"):Se||""}},{key:"getFormat",value:function(ye){if(ye==="date")return this.getDateFormat();if(ye==="time")return this.getTimeFormat();var Se=this.getDateFormat(),ne=this.getTimeFormat();return Se&&ne?Se+" "+ne:Se||ne}},{key:"updateTime",value:function(ye,Se,ne,Me){var Qe={},ot=Me?"selectedDate":"viewDate";Qe[ot]=this.state[ot].clone()[ye](Se,ne),this.setState(Qe)}},{key:"localMoment",value:function(ye,Se,ne){var Me=null;return Me=(ne=ne||this.props).utc?o.a.utc(ye,Se,ne.strictParsing):ne.displayTimeZone?o.a.tz(ye,Se,ne.displayTimeZone):o()(ye,Se,ne.strictParsing),ne.locale&&Me.locale(ne.locale),Me}},{key:"checkTZ",value:function(){var ye=this.props.displayTimeZone;!ye||this.tzWarning||o.a.tz||(this.tzWarning=!0,Ra('displayTimeZone prop with value "'+ye+'" is used but moment.js timezone is not loaded.',"error"))}},{key:"componentDidUpdate",value:function(ye){if(ye!==this.props){var Se=!1,ne=this.props;["locale","utc","displayZone","dateFormat","timeFormat"].forEach((function(Me){ye[Me]!==ne[Me]&&(Se=!0)})),Se&&this.regenerateDates(),ne.value&&ne.value!==ye.value&&this.setViewDate(ne.value),this.checkTZ()}}},{key:"regenerateDates",value:function(){var ye=this.props,Se=this.state.viewDate.clone(),ne=this.state.selectedDate&&this.state.selectedDate.clone();ye.locale&&(Se.locale(ye.locale),ne&&ne.locale(ye.locale)),ye.utc?(Se.utc(),ne&&ne.utc()):ye.displayTimeZone?(Se.tz(ye.displayTimeZone),ne&&ne.tz(ye.displayTimeZone)):(Se.locale(),ne&&ne.locale());var Me={viewDate:Se,selectedDate:ne};ne&&ne.isValid()&&(Me.inputValue=ne.format(this.getFormat("datetime"))),this.setState(Me)}},{key:"getSelectedDate",value:function(){if(this.props.value===void 0)return this.state.selectedDate;var ye=this.parseDate(this.props.value,this.getFormat("datetime"));return!(!ye||!ye.isValid())&&ye}},{key:"getInitialInputValue",value:function(ye){var Se=this.props;return Se.inputProps.value?Se.inputProps.value:ye&&ye.isValid()?ye.format(this.getFormat("datetime")):Se.value&&typeof Se.value=="string"?Se.value:Se.initialValue&&typeof Se.initialValue=="string"?Se.initialValue:""}},{key:"getInputValue",value:function(){var ye=this.getSelectedDate();return ye?ye.format(this.getFormat("datetime")):this.state.inputValue}},{key:"setViewDate",value:function(ye){var Se,ne=function(){return Ra("Invalid date passed to the `setViewDate` method: "+ye)};return ye&&(Se=typeof ye=="string"?this.localMoment(ye,this.getFormat("datetime")):this.localMoment(ye))&&Se.isValid()?void this.setState({viewDate:Se}):ne()}},{key:"navigate",value:function(ye){this._showView(ye)}},{key:"callHandler",value:function(ye,Se){return!ye||ye(Se)!==!1}}]),$e})(u.a.Component);function Ra(we,ve){var $e=typeof window<"u"&&window.console;$e&&(ve||(ve="warn"),$e[ve]("***react-datetime:"+we))}ln(Oa,"propTypes",{value:Bo,initialValue:Bo,initialViewDate:Bo,initialViewMode:vn.oneOf([Bn,oa,Qa,ha]),onOpen:vn.func,onClose:vn.func,onChange:vn.func,onNavigate:vn.func,onBeforeNavigate:vn.func,onNavigateBack:vn.func,onNavigateForward:vn.func,updateOnView:vn.string,locale:vn.string,utc:vn.bool,displayTimeZone:vn.string,input:vn.bool,dateFormat:vn.oneOfType([vn.string,vn.bool]),timeFormat:vn.oneOfType([vn.string,vn.bool]),inputProps:vn.object,timeConstraints:vn.object,isValidDate:vn.func,open:vn.bool,strictParsing:vn.bool,closeOnSelect:vn.bool,closeOnTab:vn.bool,renderView:vn.func,renderInput:vn.func,renderDay:vn.func,renderMonth:vn.func,renderYear:vn.func}),ln(Oa,"defaultProps",{onOpen:_a,onClose:_a,onCalendarOpen:_a,onCalendarClose:_a,onChange:_a,onNavigate:_a,onBeforeNavigate:function(we){return we},onNavigateBack:_a,onNavigateForward:_a,dateFormat:!0,timeFormat:!0,utc:!1,className:"",input:!0,inputProps:{},timeConstraints:{},isValidDate:function(){return!0},strictParsing:!0,closeOnSelect:!1,closeOnTab:!0,closeOnClickOutside:!0,renderView:function(we,ve){return ve()}}),ln(Oa,"moment",o.a);var Wo=Te((function(we){gt($e,we);var ve=_t($e);function $e(){var ye;Mt(this,$e);for(var Se=arguments.length,ne=new Array(Se),Me=0;Me{sr();const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,errorMessage:u,type:d,focused:f=!1,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(ef,{focused:h,onClick:T,...e,children:w.jsx($xt,{value:Ot(e.value),onChange:C=>e.onChange&&e.onChange(C),...e.inputProps})})},Fxt=e=>{sr();const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,errorMessage:u,type:d,focused:f=!1,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(ef,{focused:h,onClick:T,...e,children:w.jsx("input",{type:"time",className:"form-control",value:e.value,onChange:C=>e.onChange&&e.onChange(C.target.value),...e.inputProps})})},V1={Example1:`const Example1 = () => { +`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var nY={};function Gae(e,t){Ot.deprecationHandler!=null&&Ot.deprecationHandler(e,t),nY[e]||(Vae(t),nY[e]=!0)}Ot.suppressDeprecationWarnings=!1;Ot.deprecationHandler=null;function Dc(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function QEt(e){var t,n;for(n in e)gr(e,n)&&(t=e[n],Dc(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function B3(e,t){var n=th({},e),r;for(r in t)gr(t,r)&&(Pv(e[r])&&Pv(t[r])?(n[r]={},th(n[r],e[r]),th(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)gr(e,r)&&!gr(t,r)&&Pv(e[r])&&(n[r]=th({},n[r]));return n}function M4(e){e!=null&&this.set(e)}var W3;Object.keys?W3=Object.keys:W3=function(e){var t,n=[];for(t in e)gr(e,t)&&n.push(t);return n};var JEt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ZEt(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Dc(r)?r.call(t,n):r}function Rc(e,t,n){var r=""+Math.abs(e),a=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var I4=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ok=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j$={},n0={};function nn(e,t,n,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(n0[e]=a),t&&(n0[t[0]]=function(){return Rc(a.apply(this,arguments),t[1],t[2])}),n&&(n0[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function eTt(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function tTt(e){var t=e.match(I4),n,r;for(n=0,r=t.length;n=0&&Ok.test(e);)e=e.replace(Ok,r),Ok.lastIndex=0,n-=1;return e}var nTt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function rTt(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(I4).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var aTt="Invalid date";function iTt(){return this._invalidDate}var oTt="%d",sTt=/\d{1,2}/;function lTt(e){return this._ordinal.replace("%d",e)}var uTt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function cTt(e,t,n,r){var a=this._relativeTime[n];return Dc(a)?a(e,t,n,r):a.replace(/%d/i,e)}function dTt(e,t){var n=this._relativeTime[e>0?"future":"past"];return Dc(n)?n(t):n.replace(/%s/i,t)}var rY={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function $l(e){return typeof e=="string"?rY[e]||rY[e.toLowerCase()]:void 0}function D4(e){var t={},n,r;for(r in e)gr(e,r)&&(n=$l(r),n&&(t[n]=e[r]));return t}var fTt={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function pTt(e){var t=[],n;for(n in e)gr(e,n)&&t.push({unit:n,priority:fTt[n]});return t.sort(function(r,a){return r.priority-a.priority}),t}var Kae=/\d/,Ys=/\d\d/,Xae=/\d{3}/,$4=/\d{4}/,oO=/[+-]?\d{6}/,Xr=/\d\d?/,Qae=/\d\d\d\d?/,Jae=/\d\d\d\d\d\d?/,sO=/\d{1,3}/,L4=/\d{1,4}/,lO=/[+-]?\d{1,6}/,N0=/\d+/,uO=/[+-]?\d+/,hTt=/Z|[+-]\d\d:?\d\d/gi,cO=/Z|[+-]\d\d(?::?\d\d)?/gi,mTt=/[+-]?\d+(\.\d{1,3})?/,lT=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,M0=/^[1-9]\d?/,F4=/^([1-9]\d|\d)/,Jx;Jx={};function Ft(e,t,n){Jx[e]=Dc(t)?t:function(r,a){return r&&n?n:t}}function gTt(e,t){return gr(Jx,e)?Jx[e](t._strict,t._locale):new RegExp(vTt(e))}function vTt(e){return $d(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,a,i){return n||r||a||i}))}function $d(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function kl(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Kn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=kl(t)),n}var z3={};function Mr(e,t){var n,r=t,a;for(typeof e=="string"&&(e=[e]),Jd(t)&&(r=function(i,o){o[t]=Kn(i)}),a=e.length,n=0;n68?1900:2e3)};var Zae=I0("FullYear",!0);function STt(){return dO(this.year())}function I0(e,t){return function(n){return n!=null?(eie(this,e,n),Ot.updateOffset(this,t),this):kE(this,e)}}function kE(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function eie(e,t,n){var r,a,i,o,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(a?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(a?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(a?r.setUTCHours(n):r.setHours(n));case"Date":return void(a?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,o=e.month(),l=e.date(),l=l===29&&o===1&&!dO(i)?28:l,a?r.setUTCFullYear(i,o,l):r.setFullYear(i,o,l)}}function ETt(e){return e=$l(e),Dc(this[e])?this[e]():this}function TTt(e,t){if(typeof e=="object"){e=D4(e);var n=pTt(e),r,a=n.length;for(r=0;r=0?(l=new Date(e+400,t,n,r,a,i,o),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,a,i,o),l}function xE(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Zx(e,t,n){var r=7+t-n,a=(7+xE(e,0,r).getUTCDay()-t)%7;return-a+r-1}function oie(e,t,n,r,a){var i=(7+n-r)%7,o=Zx(e,r,a),l=1+7*(t-1)+i+o,u,d;return l<=0?(u=e-1,d=IS(u)+l):l>IS(e)?(u=e+1,d=l-IS(e)):(u=e,d=l),{year:u,dayOfYear:d}}function _E(e,t,n){var r=Zx(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+Ld(o,t,n)):a>Ld(e.year(),t,n)?(i=a-Ld(e.year(),t,n),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function Ld(e,t,n){var r=Zx(e,t,n),a=Zx(e+1,t,n);return(IS(e)-r+a)/7}nn("w",["ww",2],"wo","week");nn("W",["WW",2],"Wo","isoWeek");Ft("w",Xr,M0);Ft("ww",Xr,Ys);Ft("W",Xr,M0);Ft("WW",Xr,Ys);uT(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Kn(e)});function $Tt(e){return _E(e,this._week.dow,this._week.doy).week}var LTt={dow:0,doy:6};function FTt(){return this._week.dow}function jTt(){return this._week.doy}function UTt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function BTt(e){var t=_E(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}nn("d",0,"do","day");nn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});nn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});nn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});nn("e",0,0,"weekday");nn("E",0,0,"isoWeekday");Ft("d",Xr);Ft("e",Xr);Ft("E",Xr);Ft("dd",function(e,t){return t.weekdaysMinRegex(e)});Ft("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ft("dddd",function(e,t){return t.weekdaysRegex(e)});uT(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);a!=null?t.d=a:Mn(n).invalidWeekday=e});uT(["d","e","E"],function(e,t,n,r){t[r]=Kn(e)});function WTt(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function zTt(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function U4(e,t){return e.slice(t,7).concat(e.slice(0,t))}var qTt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sie="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),HTt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),VTt=lT,GTt=lT,YTt=lT;function KTt(e,t){var n=_u(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?U4(n,this._week.dow):e?n[e.day()]:n}function XTt(e){return e===!0?U4(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function QTt(e){return e===!0?U4(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function JTt(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Ic([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(a=ja.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=ja.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=ja.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=ja.call(this._weekdaysParse,o),a!==-1||(a=ja.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=ja.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=ja.call(this._shortWeekdaysParse,o),a!==-1||(a=ja.call(this._weekdaysParse,o),a!==-1)?a:(a=ja.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=ja.call(this._minWeekdaysParse,o),a!==-1||(a=ja.call(this._weekdaysParse,o),a!==-1)?a:(a=ja.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function ZTt(e,t,n){var r,a,i;if(this._weekdaysParseExact)return JTt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=Ic([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function eCt(e){if(!this.isValid())return e!=null?this:NaN;var t=kE(this,"Day");return e!=null?(e=WTt(e,this.localeData()),this.add(e-t,"d")):t}function tCt(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function nCt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=zTt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function rCt(e){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||B4.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(gr(this,"_weekdaysRegex")||(this._weekdaysRegex=VTt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function aCt(e){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||B4.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(gr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=GTt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function iCt(e){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||B4.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(gr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=YTt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function B4(){function e(f,g){return g.length-f.length}var t=[],n=[],r=[],a=[],i,o,l,u,d;for(i=0;i<7;i++)o=Ic([2e3,1]).day(i),l=$d(this.weekdaysMin(o,"")),u=$d(this.weekdaysShort(o,"")),d=$d(this.weekdays(o,"")),t.push(l),n.push(u),r.push(d),a.push(l),a.push(u),a.push(d);t.sort(e),n.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function W4(){return this.hours()%12||12}function oCt(){return this.hours()||24}nn("H",["HH",2],0,"hour");nn("h",["hh",2],0,W4);nn("k",["kk",2],0,oCt);nn("hmm",0,0,function(){return""+W4.apply(this)+Rc(this.minutes(),2)});nn("hmmss",0,0,function(){return""+W4.apply(this)+Rc(this.minutes(),2)+Rc(this.seconds(),2)});nn("Hmm",0,0,function(){return""+this.hours()+Rc(this.minutes(),2)});nn("Hmmss",0,0,function(){return""+this.hours()+Rc(this.minutes(),2)+Rc(this.seconds(),2)});function lie(e,t){nn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}lie("a",!0);lie("A",!1);function uie(e,t){return t._meridiemParse}Ft("a",uie);Ft("A",uie);Ft("H",Xr,F4);Ft("h",Xr,M0);Ft("k",Xr,M0);Ft("HH",Xr,Ys);Ft("hh",Xr,Ys);Ft("kk",Xr,Ys);Ft("hmm",Qae);Ft("hmmss",Jae);Ft("Hmm",Qae);Ft("Hmmss",Jae);Mr(["H","HH"],ai);Mr(["k","kk"],function(e,t,n){var r=Kn(e);t[ai]=r===24?0:r});Mr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Mr(["h","hh"],function(e,t,n){t[ai]=Kn(e),Mn(n).bigHour=!0});Mr("hmm",function(e,t,n){var r=e.length-2;t[ai]=Kn(e.substr(0,r)),t[Eu]=Kn(e.substr(r)),Mn(n).bigHour=!0});Mr("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ai]=Kn(e.substr(0,r)),t[Eu]=Kn(e.substr(r,2)),t[Id]=Kn(e.substr(a)),Mn(n).bigHour=!0});Mr("Hmm",function(e,t,n){var r=e.length-2;t[ai]=Kn(e.substr(0,r)),t[Eu]=Kn(e.substr(r))});Mr("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ai]=Kn(e.substr(0,r)),t[Eu]=Kn(e.substr(r,2)),t[Id]=Kn(e.substr(a))});function sCt(e){return(e+"").toLowerCase().charAt(0)==="p"}var lCt=/[ap]\.?m?\.?/i,uCt=I0("Hours",!0);function cCt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var cie={calendar:JEt,longDateFormat:nTt,invalidDate:aTt,ordinal:oTt,dayOfMonthOrdinalParse:sTt,relativeTime:uTt,months:kTt,monthsShort:tie,week:LTt,weekdays:qTt,weekdaysMin:HTt,weekdaysShort:sie,meridiemParse:lCt},na={},eS={},OE;function dCt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(a=fO(i.slice(0,n).join("-")),a)return a;if(r&&r.length>=n&&dCt(i,r)>=n-1)break;n--}t++}return OE}function pCt(e){return!!(e&&e.match("^[^/\\\\]*$"))}function fO(e){var t=null,n;if(na[e]===void 0&&typeof no<"u"&&no&&no.exports&&pCt(e))try{t=OE._abbr,n=require,n("./locale/"+e),ih(t)}catch{na[e]=null}return na[e]}function ih(e,t){var n;return e&&(rs(t)?n=sf(e):n=z4(e,t),n?OE=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),OE._abbr}function z4(e,t){if(t!==null){var n,r=cie;if(t.abbr=e,na[e]!=null)Gae("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=na[e]._config;else if(t.parentLocale!=null)if(na[t.parentLocale]!=null)r=na[t.parentLocale]._config;else if(n=fO(t.parentLocale),n!=null)r=n._config;else return eS[t.parentLocale]||(eS[t.parentLocale]=[]),eS[t.parentLocale].push({name:e,config:t}),null;return na[e]=new M4(B3(r,t)),eS[e]&&eS[e].forEach(function(a){z4(a.name,a.config)}),ih(e),na[e]}else return delete na[e],null}function hCt(e,t){if(t!=null){var n,r,a=cie;na[e]!=null&&na[e].parentLocale!=null?na[e].set(B3(na[e]._config,t)):(r=fO(e),r!=null&&(a=r._config),t=B3(a,t),r==null&&(t.abbr=e),n=new M4(t),n.parentLocale=na[e],na[e]=n),ih(e)}else na[e]!=null&&(na[e].parentLocale!=null?(na[e]=na[e].parentLocale,e===ih()&&ih(e)):na[e]!=null&&delete na[e]);return na[e]}function sf(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return OE;if(!_u(e)){if(t=fO(e),t)return t;e=[e]}return fCt(e)}function mCt(){return W3(na)}function q4(e){var t,n=e._a;return n&&Mn(e).overflow===-2&&(t=n[Md]<0||n[Md]>11?Md:n[yc]<1||n[yc]>j4(n[ro],n[Md])?yc:n[ai]<0||n[ai]>24||n[ai]===24&&(n[Eu]!==0||n[Id]!==0||n[kv]!==0)?ai:n[Eu]<0||n[Eu]>59?Eu:n[Id]<0||n[Id]>59?Id:n[kv]<0||n[kv]>999?kv:-1,Mn(e)._overflowDayOfYear&&(tyc)&&(t=yc),Mn(e)._overflowWeeks&&t===-1&&(t=bTt),Mn(e)._overflowWeekday&&t===-1&&(t=wTt),Mn(e).overflow=t),e}var gCt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vCt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yCt=/Z|[+-]\d\d(?::?\d\d)?/,Rk=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],U$=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],bCt=/^\/?Date\((-?\d+)/i,wCt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,SCt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function die(e){var t,n,r=e._i,a=gCt.exec(r)||vCt.exec(r),i,o,l,u,d=Rk.length,f=U$.length;if(a){for(Mn(e).iso=!0,t=0,n=d;tIS(o)||e._dayOfYear===0)&&(Mn(e)._overflowDayOfYear=!0),n=xE(o,0,e._dayOfYear),e._a[Md]=n.getUTCMonth(),e._a[yc]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ai]===24&&e._a[Eu]===0&&e._a[Id]===0&&e._a[kv]===0&&(e._nextDay=!0,e._a[ai]=0),e._d=(e._useUTC?xE:DTt).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ai]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Mn(e).weekdayMismatch=!0)}}function RCt(e){var t,n,r,a,i,o,l,u,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,n=Ab(t.GG,e._a[ro],_E(Kr(),1,4).year),r=Ab(t.W,1),a=Ab(t.E,1),(a<1||a>7)&&(u=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,d=_E(Kr(),i,o),n=Ab(t.gg,e._a[ro],d.year),r=Ab(t.w,d.week),t.d!=null?(a=t.d,(a<0||a>6)&&(u=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(u=!0)):a=i),r<1||r>Ld(n,i,o)?Mn(e)._overflowWeeks=!0:u!=null?Mn(e)._overflowWeekday=!0:(l=oie(n,r,a,i,o),e._a[ro]=l.year,e._dayOfYear=l.dayOfYear)}Ot.ISO_8601=function(){};Ot.RFC_2822=function(){};function V4(e){if(e._f===Ot.ISO_8601){die(e);return}if(e._f===Ot.RFC_2822){fie(e);return}e._a=[],Mn(e).empty=!0;var t=""+e._i,n,r,a,i,o,l=t.length,u=0,d,f;for(a=Yae(e._f,e._locale).match(I4)||[],f=a.length,n=0;n0&&Mn(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),u+=r.length),n0[i]?(r?Mn(e).empty=!1:Mn(e).unusedTokens.push(i),yTt(i,r,e)):e._strict&&!r&&Mn(e).unusedTokens.push(i);Mn(e).charsLeftOver=l-u,t.length>0&&Mn(e).unusedInput.push(t),e._a[ai]<=12&&Mn(e).bigHour===!0&&e._a[ai]>0&&(Mn(e).bigHour=void 0),Mn(e).parsedDateParts=e._a.slice(0),Mn(e).meridiem=e._meridiem,e._a[ai]=PCt(e._locale,e._a[ai],e._meridiem),d=Mn(e).era,d!==null&&(e._a[ro]=e._locale.erasConvertYear(d,e._a[ro])),H4(e),q4(e)}function PCt(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function ACt(e){var t,n,r,a,i,o,l=!1,u=e._f.length;if(u===0){Mn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;athis?this:e:iO()});function mie(e,t){var n,r;if(t.length===1&&_u(t[0])&&(t=t[0]),!t.length)return Kr();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function JCt(){if(!rs(this._isDSTShifted))return this._isDSTShifted;var e={},t;return N4(e,this),e=pie(e),e._a?(t=e._isUTC?Ic(e._a):Kr(e._a),this._isDSTShifted=this.isValid()&&zCt(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ZCt(){return this.isValid()?!this._isUTC:!1}function ekt(){return this.isValid()?this._isUTC:!1}function vie(){return this.isValid()?this._isUTC&&this._offset===0:!1}var tkt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,nkt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Au(e,t){var n=e,r=null,a,i,o;return ex(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Jd(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=tkt.exec(e))?(a=r[1]==="-"?-1:1,n={y:0,d:Kn(r[yc])*a,h:Kn(r[ai])*a,m:Kn(r[Eu])*a,s:Kn(r[Id])*a,ms:Kn(q3(r[kv]*1e3))*a}):(r=nkt.exec(e))?(a=r[1]==="-"?-1:1,n={y:tv(r[2],a),M:tv(r[3],a),w:tv(r[4],a),d:tv(r[5],a),h:tv(r[6],a),m:tv(r[7],a),s:tv(r[8],a)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=rkt(Kr(n.from),Kr(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),i=new pO(n),ex(e)&&gr(e,"_locale")&&(i._locale=e._locale),ex(e)&&gr(e,"_isValid")&&(i._isValid=e._isValid),i}Au.fn=pO.prototype;Au.invalid=WCt;function tv(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function iY(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function rkt(e,t){var n;return e.isValid()&&t.isValid()?(t=Y4(t,e),e.isBefore(t)?n=iY(e,t):(n=iY(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function yie(e,t){return function(n,r){var a,i;return r!==null&&!isNaN(+r)&&(Gae(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),a=Au(n,r),bie(this,a,e),this}}function bie(e,t,n,r){var a=t._milliseconds,i=q3(t._days),o=q3(t._months);e.isValid()&&(r=r??!0,o&&rie(e,kE(e,"Month")+o*n),i&&eie(e,"Date",kE(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&Ot.updateOffset(e,i||o))}var akt=yie(1,"add"),ikt=yie(-1,"subtract");function wie(e){return typeof e=="string"||e instanceof String}function okt(e){return Ou(e)||oT(e)||wie(e)||Jd(e)||lkt(e)||skt(e)||e===null||e===void 0}function skt(e){var t=Pv(e)&&!P4(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;an.valueOf():n.valueOf()9999?Zk(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Dc(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Zk(n,"Z")):Zk(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Ekt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+a+i)}function Tkt(e){e||(e=this.isUtc()?Ot.defaultFormatUtc:Ot.defaultFormat);var t=Zk(this,e);return this.localeData().postformat(t)}function Ckt(e,t){return this.isValid()&&(Ou(e)&&e.isValid()||Kr(e).isValid())?Au({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function kkt(e){return this.from(Kr(),e)}function xkt(e,t){return this.isValid()&&(Ou(e)&&e.isValid()||Kr(e).isValid())?Au({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function _kt(e){return this.to(Kr(),e)}function Sie(e){var t;return e===void 0?this._locale._abbr:(t=sf(e),t!=null&&(this._locale=t),this)}var Eie=Dl("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Tie(){return this._locale}var e_=1e3,r0=60*e_,t_=60*r0,Cie=(365*400+97)*24*t_;function a0(e,t){return(e%t+t)%t}function kie(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Cie:new Date(e,t,n).valueOf()}function xie(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Cie:Date.UTC(e,t,n)}function Okt(e){var t,n;if(e=$l(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?xie:kie,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=a0(t+(this._isUTC?0:this.utcOffset()*r0),t_);break;case"minute":t=this._d.valueOf(),t-=a0(t,r0);break;case"second":t=this._d.valueOf(),t-=a0(t,e_);break}return this._d.setTime(t),Ot.updateOffset(this,!0),this}function Rkt(e){var t,n;if(e=$l(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?xie:kie,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=t_-a0(t+(this._isUTC?0:this.utcOffset()*r0),t_)-1;break;case"minute":t=this._d.valueOf(),t+=r0-a0(t,r0)-1;break;case"second":t=this._d.valueOf(),t+=e_-a0(t,e_)-1;break}return this._d.setTime(t),Ot.updateOffset(this,!0),this}function Pkt(){return this._d.valueOf()-(this._offset||0)*6e4}function Akt(){return Math.floor(this.valueOf()/1e3)}function Nkt(){return new Date(this.valueOf())}function Mkt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ikt(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Dkt(){return this.isValid()?this.toISOString():null}function $kt(){return A4(this)}function Lkt(){return th({},Mn(this))}function Fkt(){return Mn(this).overflow}function jkt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}nn("N",0,0,"eraAbbr");nn("NN",0,0,"eraAbbr");nn("NNN",0,0,"eraAbbr");nn("NNNN",0,0,"eraName");nn("NNNNN",0,0,"eraNarrow");nn("y",["y",1],"yo","eraYear");nn("y",["yy",2],0,"eraYear");nn("y",["yyy",3],0,"eraYear");nn("y",["yyyy",4],0,"eraYear");Ft("N",K4);Ft("NN",K4);Ft("NNN",K4);Ft("NNNN",Xkt);Ft("NNNNN",Qkt);Mr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?Mn(n).era=a:Mn(n).invalidEra=e});Ft("y",N0);Ft("yy",N0);Ft("yyy",N0);Ft("yyyy",N0);Ft("yo",Jkt);Mr(["y","yy","yyy","yyyy"],ro);Mr(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ro]=n._locale.eraYearOrdinalParse(e,a):t[ro]=parseInt(e,10)});function Ukt(e,t){var n,r,a,i=this._eras||sf("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function Wkt(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Ot(e.since).year():Ot(e.since).year()+(t-e.offset)*n}function zkt(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ei&&(t=i),ixt.call(this,e,t,n,r,a))}function ixt(e,t,n,r,a){var i=oie(e,t,n,r,a),o=xE(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}nn("Q",0,"Qo","quarter");Ft("Q",Kae);Mr("Q",function(e,t){t[Md]=(Kn(e)-1)*3});function oxt(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}nn("D",["DD",2],"Do","date");Ft("D",Xr,M0);Ft("DD",Xr,Ys);Ft("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Mr(["D","DD"],yc);Mr("Do",function(e,t){t[yc]=Kn(e.match(Xr)[0])});var Oie=I0("Date",!0);nn("DDD",["DDDD",3],"DDDo","dayOfYear");Ft("DDD",sO);Ft("DDDD",Xae);Mr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Kn(e)});function sxt(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}nn("m",["mm",2],0,"minute");Ft("m",Xr,F4);Ft("mm",Xr,Ys);Mr(["m","mm"],Eu);var lxt=I0("Minutes",!1);nn("s",["ss",2],0,"second");Ft("s",Xr,F4);Ft("ss",Xr,Ys);Mr(["s","ss"],Id);var uxt=I0("Seconds",!1);nn("S",0,0,function(){return~~(this.millisecond()/100)});nn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});nn(0,["SSS",3],0,"millisecond");nn(0,["SSSS",4],0,function(){return this.millisecond()*10});nn(0,["SSSSS",5],0,function(){return this.millisecond()*100});nn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});nn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});nn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});nn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ft("S",sO,Kae);Ft("SS",sO,Ys);Ft("SSS",sO,Xae);var nh,Rie;for(nh="SSSS";nh.length<=9;nh+="S")Ft(nh,N0);function cxt(e,t){t[kv]=Kn(("0."+e)*1e3)}for(nh="S";nh.length<=9;nh+="S")Mr(nh,cxt);Rie=I0("Milliseconds",!1);nn("z",0,0,"zoneAbbr");nn("zz",0,0,"zoneName");function dxt(){return this._isUTC?"UTC":""}function fxt(){return this._isUTC?"Coordinated Universal Time":""}var ht=sT.prototype;ht.add=akt;ht.calendar=dkt;ht.clone=fkt;ht.diff=bkt;ht.endOf=Rkt;ht.format=Tkt;ht.from=Ckt;ht.fromNow=kkt;ht.to=xkt;ht.toNow=_kt;ht.get=ETt;ht.invalidAt=Fkt;ht.isAfter=pkt;ht.isBefore=hkt;ht.isBetween=mkt;ht.isSame=gkt;ht.isSameOrAfter=vkt;ht.isSameOrBefore=ykt;ht.isValid=$kt;ht.lang=Eie;ht.locale=Sie;ht.localeData=Tie;ht.max=$Ct;ht.min=DCt;ht.parsingFlags=Lkt;ht.set=TTt;ht.startOf=Okt;ht.subtract=ikt;ht.toArray=Mkt;ht.toObject=Ikt;ht.toDate=Nkt;ht.toISOString=Skt;ht.inspect=Ekt;typeof Symbol<"u"&&Symbol.for!=null&&(ht[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ht.toJSON=Dkt;ht.toString=wkt;ht.unix=Akt;ht.valueOf=Pkt;ht.creationData=jkt;ht.eraName=zkt;ht.eraNarrow=qkt;ht.eraAbbr=Hkt;ht.eraYear=Vkt;ht.year=Zae;ht.isLeapYear=STt;ht.weekYear=Zkt;ht.isoWeekYear=ext;ht.quarter=ht.quarters=oxt;ht.month=aie;ht.daysInMonth=NTt;ht.week=ht.weeks=UTt;ht.isoWeek=ht.isoWeeks=BTt;ht.weeksInYear=rxt;ht.weeksInWeekYear=axt;ht.isoWeeksInYear=txt;ht.isoWeeksInISOWeekYear=nxt;ht.date=Oie;ht.day=ht.days=eCt;ht.weekday=tCt;ht.isoWeekday=nCt;ht.dayOfYear=sxt;ht.hour=ht.hours=uCt;ht.minute=ht.minutes=lxt;ht.second=ht.seconds=uxt;ht.millisecond=ht.milliseconds=Rie;ht.utcOffset=HCt;ht.utc=GCt;ht.local=YCt;ht.parseZone=KCt;ht.hasAlignedHourOffset=XCt;ht.isDST=QCt;ht.isLocal=ZCt;ht.isUtcOffset=ekt;ht.isUtc=vie;ht.isUTC=vie;ht.zoneAbbr=dxt;ht.zoneName=fxt;ht.dates=Dl("dates accessor is deprecated. Use date instead.",Oie);ht.months=Dl("months accessor is deprecated. Use month instead",aie);ht.years=Dl("years accessor is deprecated. Use year instead",Zae);ht.zone=Dl("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",VCt);ht.isDSTShifted=Dl("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",JCt);function pxt(e){return Kr(e*1e3)}function hxt(){return Kr.apply(null,arguments).parseZone()}function Pie(e){return e}var vr=M4.prototype;vr.calendar=ZEt;vr.longDateFormat=rTt;vr.invalidDate=iTt;vr.ordinal=lTt;vr.preparse=Pie;vr.postformat=Pie;vr.relativeTime=cTt;vr.pastFuture=dTt;vr.set=QEt;vr.eras=Ukt;vr.erasParse=Bkt;vr.erasConvertYear=Wkt;vr.erasAbbrRegex=Ykt;vr.erasNameRegex=Gkt;vr.erasNarrowRegex=Kkt;vr.months=OTt;vr.monthsShort=RTt;vr.monthsParse=ATt;vr.monthsRegex=ITt;vr.monthsShortRegex=MTt;vr.week=$Tt;vr.firstDayOfYear=jTt;vr.firstDayOfWeek=FTt;vr.weekdays=KTt;vr.weekdaysMin=QTt;vr.weekdaysShort=XTt;vr.weekdaysParse=ZTt;vr.weekdaysRegex=rCt;vr.weekdaysShortRegex=aCt;vr.weekdaysMinRegex=iCt;vr.isPM=sCt;vr.meridiem=cCt;function n_(e,t,n,r){var a=sf(),i=Ic().set(r,t);return a[n](i,e)}function Aie(e,t,n){if(Jd(e)&&(t=e,e=void 0),e=e||"",t!=null)return n_(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=n_(e,r,n,"month");return a}function Q4(e,t,n,r){typeof e=="boolean"?(Jd(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Jd(t)&&(n=t,t=void 0),t=t||"");var a=sf(),i=e?a._week.dow:0,o,l=[];if(n!=null)return n_(t,(n+i)%7,r,"day");for(o=0;o<7;o++)l[o]=n_(t,(o+i)%7,r,"day");return l}function mxt(e,t){return Aie(e,t,"months")}function gxt(e,t){return Aie(e,t,"monthsShort")}function vxt(e,t,n){return Q4(e,t,n,"weekdays")}function yxt(e,t,n){return Q4(e,t,n,"weekdaysShort")}function bxt(e,t,n){return Q4(e,t,n,"weekdaysMin")}ih("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Kn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Ot.lang=Dl("moment.lang is deprecated. Use moment.locale instead.",ih);Ot.langData=Dl("moment.langData is deprecated. Use moment.localeData instead.",sf);var kd=Math.abs;function wxt(){var e=this._data;return this._milliseconds=kd(this._milliseconds),this._days=kd(this._days),this._months=kd(this._months),e.milliseconds=kd(e.milliseconds),e.seconds=kd(e.seconds),e.minutes=kd(e.minutes),e.hours=kd(e.hours),e.months=kd(e.months),e.years=kd(e.years),this}function Nie(e,t,n,r){var a=Au(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Sxt(e,t){return Nie(this,e,t,1)}function Ext(e,t){return Nie(this,e,t,-1)}function oY(e){return e<0?Math.floor(e):Math.ceil(e)}function Txt(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,a,i,o,l,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=oY(V3(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,a=kl(e/1e3),r.seconds=a%60,i=kl(a/60),r.minutes=i%60,o=kl(i/60),r.hours=o%24,t+=kl(o/24),u=kl(Mie(t)),n+=u,t-=oY(V3(u)),l=kl(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function Mie(e){return e*4800/146097}function V3(e){return e*146097/4800}function Cxt(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=$l(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Mie(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(V3(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function lf(e){return function(){return this.as(e)}}var Iie=lf("ms"),kxt=lf("s"),xxt=lf("m"),_xt=lf("h"),Oxt=lf("d"),Rxt=lf("w"),Pxt=lf("M"),Axt=lf("Q"),Nxt=lf("y"),Mxt=Iie;function Ixt(){return Au(this)}function Dxt(e){return e=$l(e),this.isValid()?this[e+"s"]():NaN}function ey(e){return function(){return this.isValid()?this._data[e]:NaN}}var $xt=ey("milliseconds"),Lxt=ey("seconds"),Fxt=ey("minutes"),jxt=ey("hours"),Uxt=ey("days"),Bxt=ey("months"),Wxt=ey("years");function zxt(){return kl(this.days()/7)}var _d=Math.round,Hb={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function qxt(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function Hxt(e,t,n,r){var a=Au(e).abs(),i=_d(a.as("s")),o=_d(a.as("m")),l=_d(a.as("h")),u=_d(a.as("d")),d=_d(a.as("M")),f=_d(a.as("w")),g=_d(a.as("y")),y=i<=n.ss&&["s",i]||i0,y[4]=r,qxt.apply(null,y)}function Vxt(e){return e===void 0?_d:typeof e=="function"?(_d=e,!0):!1}function Gxt(e,t){return Hb[e]===void 0?!1:t===void 0?Hb[e]:(Hb[e]=t,e==="s"&&(Hb.ss=t-1),!0)}function Yxt(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Hb,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Hb,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),i=Hxt(this,!n,r,a),n&&(i=a.pastFuture(+this,i)),a.postformat(i)}var B$=Math.abs;function Eb(e){return(e>0)-(e<0)||+e}function mO(){if(!this.isValid())return this.localeData().invalidDate();var e=B$(this._milliseconds)/1e3,t=B$(this._days),n=B$(this._months),r,a,i,o,l=this.asSeconds(),u,d,f,g;return l?(r=kl(e/60),a=kl(r/60),e%=60,r%=60,i=kl(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=l<0?"-":"",d=Eb(this._months)!==Eb(l)?"-":"",f=Eb(this._days)!==Eb(l)?"-":"",g=Eb(this._milliseconds)!==Eb(l)?"-":"",u+"P"+(i?d+i+"Y":"")+(n?d+n+"M":"")+(t?f+t+"D":"")+(a||r||e?"T":"")+(a?g+a+"H":"")+(r?g+r+"M":"")+(e?g+o+"S":"")):"P0D"}var rr=pO.prototype;rr.isValid=BCt;rr.abs=wxt;rr.add=Sxt;rr.subtract=Ext;rr.as=Cxt;rr.asMilliseconds=Iie;rr.asSeconds=kxt;rr.asMinutes=xxt;rr.asHours=_xt;rr.asDays=Oxt;rr.asWeeks=Rxt;rr.asMonths=Pxt;rr.asQuarters=Axt;rr.asYears=Nxt;rr.valueOf=Mxt;rr._bubble=Txt;rr.clone=Ixt;rr.get=Dxt;rr.milliseconds=$xt;rr.seconds=Lxt;rr.minutes=Fxt;rr.hours=jxt;rr.days=Uxt;rr.weeks=zxt;rr.months=Bxt;rr.years=Wxt;rr.humanize=Yxt;rr.toISOString=mO;rr.toString=mO;rr.toJSON=mO;rr.locale=Sie;rr.localeData=Tie;rr.toIsoString=Dl("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",mO);rr.lang=Eie;nn("X",0,0,"unix");nn("x",0,0,"valueOf");Ft("x",uO);Ft("X",mTt);Mr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Mr("x",function(e,t,n){n._d=new Date(Kn(e))});//! moment.js +Ot.version="2.30.1";KEt(Kr);Ot.fn=ht;Ot.min=LCt;Ot.max=FCt;Ot.now=jCt;Ot.utc=Ic;Ot.unix=pxt;Ot.months=mxt;Ot.isDate=oT;Ot.locale=ih;Ot.invalid=iO;Ot.duration=Au;Ot.isMoment=Ou;Ot.weekdays=vxt;Ot.parseZone=hxt;Ot.localeData=sf;Ot.isDuration=ex;Ot.monthsShort=gxt;Ot.weekdaysMin=bxt;Ot.defineLocale=z4;Ot.updateLocale=hCt;Ot.locales=mCt;Ot.weekdaysShort=yxt;Ot.normalizeUnits=$l;Ot.relativeTimeRounding=Vxt;Ot.relativeTimeThreshold=Gxt;Ot.calendarFormat=ckt;Ot.prototype=ht;Ot.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Kxt=Object.freeze(Object.defineProperty({__proto__:null,default:Ot},Symbol.toStringTag,{value:"Module"})),Xxt=jt(Kxt);var W$,sY;function Qxt(){return sY||(sY=1,W$=(function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(r,a,i){n.o(r,a)||Object.defineProperty(r,a,{enumerable:!0,get:i})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,a){if(1&a&&(r=n(r)),8&a||4&a&&typeof r=="object"&&r&&r.__esModule)return r;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:r}),2&a&&typeof r!="string")for(var o in r)n.d(i,o,(function(l){return r[l]}).bind(null,o));return i},n.n=function(r){var a=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(a,"a",a),a},n.o=function(r,a){return Object.prototype.hasOwnProperty.call(r,a)},n.p="",n(n.s=4)})([function(e,t){e.exports=Us()},function(e,t){e.exports=Xxt},function(e,t){e.exports=Y3()},function(e,t,n){e.exports=n(5)()},function(e,t,n){e.exports=n(7)},function(e,t,n){var r=n(6);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function o(d,f,g,y,h,v){if(v!==r){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}}function l(){return o}o.isRequired=o;var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:l,element:o,elementType:o,instanceOf:l,node:o,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:i,resetWarningCache:a};return u.PropTypes=u,u}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t);var r=n(3),a=n.n(r),i=n(1),o=n.n(i),l=n(0),u=n.n(l);function d(){return(d=Object.assign?Object.assign.bind():function(we){for(var ve=1;ve"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=k(we);if(ve){var Se=k(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return T(this,$e)}}function T(we,ve){if(ve&&(g(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C(we)}function C(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function k(we){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function _(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}var A=(function(we){(function(ne,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(Me&&Me.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),Me&&v(ne,Me)})(Se,we);var ve,$e,ye=E(Se);function Se(){var ne;y(this,Se);for(var Me=arguments.length,Qe=new Array(Me),ot=0;ot"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=re(we);if(ve){var Se=re(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return Q(this,$e)}}function Q(we,ve){if(ve&&(N(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return le(we)}function le(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function re(we){return(re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function ge(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}_(A,"defaultProps",{isValidDate:function(){return!0},renderDay:function(we,ve){return u.a.createElement("td",we,ve.date())}});var me=(function(we){(function(ne,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(Me&&Me.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),Me&&j(ne,Me)})(Se,we);var ve,$e,ye=z(Se);function Se(){var ne;I(this,Se);for(var Me=arguments.length,Qe=new Array(Me),ot=0;ot1;)if(Me(Qe.date(ot)))return!1;return!0}},{key:"getMonthText",value:function(ne){var Me,Qe=this.props.viewDate,ot=Qe.localeData().monthsShort(Qe.month(ne));return(Me=ot.substring(0,3)).charAt(0).toUpperCase()+Me.slice(1)}}])&&L(ve.prototype,$e),Object.defineProperty(ve,"prototype",{writable:!1}),Se})(u.a.Component);function W(we,ve){return ve<4?we[0]:ve<8?we[1]:we[2]}function G(we){return(G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(we)}function q(we,ve){if(!(we instanceof ve))throw new TypeError("Cannot call a class as a function")}function ce(we,ve){for(var $e=0;$e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=ee(we);if(ve){var Se=ee(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return ie(this,$e)}}function ie(we,ve){if(ve&&(G(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J(we)}function J(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function ee(we){return(ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function Z(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}var ue=(function(we){(function(ne,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(Me&&Me.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),Me&&H(ne,Me)})(Se,we);var ve,$e,ye=Y(Se);function Se(){var ne;q(this,Se);for(var Me=arguments.length,Qe=new Array(Me),ot=0;ot1;)if(Qe(ot.dayOfYear(Bt)))return Me[ne]=!1,!1;return Me[ne]=!0,!0}}])&&ce(ve.prototype,$e),Object.defineProperty(ve,"prototype",{writable:!1}),Se})(u.a.Component);function ke(we,ve){return ve<3?we[0]:ve<7?we[1]:we[2]}function fe(we){return(fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(we)}function xe(we,ve){for(var $e=0;$e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=Ge(we);if(ve){var Se=Ge(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return tt(this,$e)}}function tt(we,ve){if(ve&&(fe(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function($e){if($e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $e})(we)}function Ge(we){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function at(we,ve){var $e=Object.keys(we);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(we);ve&&(ye=ye.filter((function(Se){return Object.getOwnPropertyDescriptor(we,Se).enumerable}))),$e.push.apply($e,ye)}return $e}function Et(we){for(var ve=1;ve=12?ne-=12:ne+=12,this.props.setTime("hours",ne)}},{key:"increase",value:function(ne){var Me=this.constraints[ne],Qe=parseInt(this.state[ne],10)+Me.step;return Qe>Me.max&&(Qe=Me.min+(Qe-(Me.max+1))),cn(ne,Qe)}},{key:"decrease",value:function(ne){var Me=this.constraints[ne],Qe=parseInt(this.state[ne],10)-Me.step;return Qe=0||(lr[Rr]=Dn[Rr]);return lr})(yn,["excludeScrollbar"]);return we.prototype&&we.prototype.isReactComponent?an.ref=this.getRef:an.wrappedRef=this.getRef,an.disableOnClickOutside=this.disableOnClickOutside,an.enableOnClickOutside=this.enableOnClickOutside,Object(l.createElement)(we,an)},ot})(l.Component),$e.displayName="OnClickOutside("+Se+")",$e.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},$e.getClass=function(){return we.getClass?we.getClass():we},ye};function Fe(we){return(Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(we)}function We(we,ve){var $e=Object.keys(we);if(Object.getOwnPropertySymbols){var ye=Object.getOwnPropertySymbols(we);ve&&(ye=ye.filter((function(Se){return Object.getOwnPropertyDescriptor(we,Se).enumerable}))),$e.push.apply($e,ye)}return $e}function Tt(we){for(var ve=1;ve"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var $e,ye=gn(we);if(ve){var Se=gn(this).constructor;$e=Reflect.construct(ye,arguments,Se)}else $e=ye.apply(this,arguments);return Ut(this,$e)}}function Ut(we,ve){if(ve&&(Fe(ve)==="object"||typeof ve=="function"))return ve;if(ve!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _n(we)}function _n(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function gn(we){return(gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(we)}function ln(we,ve,$e){return ve in we?Object.defineProperty(we,ve,{value:$e,enumerable:!0,configurable:!0,writable:!0}):we[ve]=$e,we}n.d(t,"default",(function(){return Oa}));var Bn="years",sa="months",Qa="days",ma="time",vn=a.a,_a=function(){},Wo=vn.oneOfType([vn.instanceOf(o.a),vn.instanceOf(Date),vn.string]),Oa=(function(we){gt($e,we);var ve=_t($e);function $e(ye){var Se;return Mt(this,$e),ln(_n(Se=ve.call(this,ye)),"_renderCalendar",(function(){var ne=Se.props,Me=Se.state,Qe={viewDate:Me.viewDate.clone(),selectedDate:Se.getSelectedDate(),isValidDate:ne.isValidDate,updateDate:Se._updateDate,navigate:Se._viewNavigate,moment:o.a,showView:Se._showView};switch(Me.currentView){case Bn:return Qe.renderYear=ne.renderYear,u.a.createElement(ue,Qe);case sa:return Qe.renderMonth=ne.renderMonth,u.a.createElement(me,Qe);case Qa:return Qe.renderDay=ne.renderDay,Qe.timeFormat=Se.getFormat("time"),u.a.createElement(A,Qe);default:return Qe.dateFormat=Se.getFormat("date"),Qe.timeFormat=Se.getFormat("time"),Qe.timeConstraints=ne.timeConstraints,Qe.setTime=Se._setTime,u.a.createElement(Rt,Qe)}})),ln(_n(Se),"_showView",(function(ne,Me){var Qe=(Me||Se.state.viewDate).clone(),ot=Se.props.onBeforeNavigate(ne,Se.state.currentView,Qe);ot&&Se.state.currentView!==ot&&(Se.props.onNavigate(ot),Se.setState({currentView:ot}))})),ln(_n(Se),"viewToMethod",{days:"date",months:"month",years:"year"}),ln(_n(Se),"nextView",{days:"time",months:"days",years:"months"}),ln(_n(Se),"_updateDate",(function(ne){var Me=Se.state.currentView,Qe=Se.getUpdateOn(Se.getFormat("date")),ot=Se.state.viewDate.clone();ot[Se.viewToMethod[Me]](parseInt(ne.target.getAttribute("data-value"),10)),Me==="days"&&(ot.month(parseInt(ne.target.getAttribute("data-month"),10)),ot.year(parseInt(ne.target.getAttribute("data-year"),10)));var Bt={viewDate:ot};Me===Qe?(Bt.selectedDate=ot.clone(),Bt.inputValue=ot.format(Se.getFormat("datetime")),Se.props.open===void 0&&Se.props.input&&Se.props.closeOnSelect&&Se._closeCalendar(),Se.props.onChange(ot.clone())):Se._showView(Se.nextView[Me],ot),Se.setState(Bt)})),ln(_n(Se),"_viewNavigate",(function(ne,Me){var Qe=Se.state.viewDate.clone();Qe.add(ne,Me),ne>0?Se.props.onNavigateForward(ne,Me):Se.props.onNavigateBack(-ne,Me),Se.setState({viewDate:Qe})})),ln(_n(Se),"_setTime",(function(ne,Me){var Qe=(Se.getSelectedDate()||Se.state.viewDate).clone();Qe[ne](Me),Se.props.value||Se.setState({selectedDate:Qe,viewDate:Qe.clone(),inputValue:Qe.format(Se.getFormat("datetime"))}),Se.props.onChange(Qe)})),ln(_n(Se),"_openCalendar",(function(){Se.isOpen()||Se.setState({open:!0},Se.props.onOpen)})),ln(_n(Se),"_closeCalendar",(function(){Se.isOpen()&&Se.setState({open:!1},(function(){Se.props.onClose(Se.state.selectedDate||Se.state.inputValue)}))})),ln(_n(Se),"_handleClickOutside",(function(){var ne=Se.props;ne.input&&Se.state.open&&ne.open===void 0&&ne.closeOnClickOutside&&Se._closeCalendar()})),ln(_n(Se),"_onInputFocus",(function(ne){Se.callHandler(Se.props.inputProps.onFocus,ne)&&Se._openCalendar()})),ln(_n(Se),"_onInputChange",(function(ne){if(Se.callHandler(Se.props.inputProps.onChange,ne)){var Me=ne.target?ne.target.value:ne,Qe=Se.localMoment(Me,Se.getFormat("datetime")),ot={inputValue:Me};Qe.isValid()?(ot.selectedDate=Qe,ot.viewDate=Qe.clone().startOf("month")):ot.selectedDate=null,Se.setState(ot,(function(){Se.props.onChange(Qe.isValid()?Qe:Se.state.inputValue)}))}})),ln(_n(Se),"_onInputKeyDown",(function(ne){Se.callHandler(Se.props.inputProps.onKeyDown,ne)&&ne.which===9&&Se.props.closeOnTab&&Se._closeCalendar()})),ln(_n(Se),"_onInputClick",(function(ne){Se.callHandler(Se.props.inputProps.onClick,ne)&&Se._openCalendar()})),Se.state=Se.getInitialState(),Se}return Ee($e,[{key:"render",value:function(){return u.a.createElement(zo,{className:this.getClassName(),onClickOut:this._handleClickOutside},this.renderInput(),u.a.createElement("div",{className:"rdtPicker"},this.renderView()))}},{key:"renderInput",value:function(){if(this.props.input){var ye=Tt(Tt({type:"text",className:"form-control",value:this.getInputValue()},this.props.inputProps),{},{onFocus:this._onInputFocus,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onClick:this._onInputClick});return this.props.renderInput?u.a.createElement("div",null,this.props.renderInput(ye,this._openCalendar,this._closeCalendar)):u.a.createElement("input",ye)}}},{key:"renderView",value:function(){return this.props.renderView(this.state.currentView,this._renderCalendar)}},{key:"getInitialState",value:function(){var ye=this.props,Se=this.getFormat("datetime"),ne=this.parseDate(ye.value||ye.initialValue,Se);return this.checkTZ(),{open:!ye.input,currentView:ye.initialViewMode||this.getInitialView(),viewDate:this.getInitialViewDate(ne),selectedDate:ne&&ne.isValid()?ne:void 0,inputValue:this.getInitialInputValue(ne)}}},{key:"getInitialViewDate",value:function(ye){var Se,ne=this.props.initialViewDate;if(ne){if((Se=this.parseDate(ne,this.getFormat("datetime")))&&Se.isValid())return Se;Ra('The initialViewDated given "'+ne+'" is not valid. Using current date instead.')}else if(ye&&ye.isValid())return ye.clone();return this.getInitialDate()}},{key:"getInitialDate",value:function(){var ye=this.localMoment();return ye.hour(0).minute(0).second(0).millisecond(0),ye}},{key:"getInitialView",value:function(){var ye=this.getFormat("date");return ye?this.getUpdateOn(ye):ma}},{key:"parseDate",value:function(ye,Se){var ne;return ye&&typeof ye=="string"?ne=this.localMoment(ye,Se):ye&&(ne=this.localMoment(ye)),ne&&!ne.isValid()&&(ne=null),ne}},{key:"getClassName",value:function(){var ye="rdt",Se=this.props,ne=Se.className;return Array.isArray(ne)?ye+=" "+ne.join(" "):ne&&(ye+=" "+ne),Se.input||(ye+=" rdtStatic"),this.isOpen()&&(ye+=" rdtOpen"),ye}},{key:"isOpen",value:function(){return!this.props.input||(this.props.open===void 0?this.state.open:this.props.open)}},{key:"getUpdateOn",value:function(ye){return this.props.updateOnView?this.props.updateOnView:ye.match(/[lLD]/)?Qa:ye.indexOf("M")!==-1?sa:ye.indexOf("Y")!==-1?Bn:Qa}},{key:"getLocaleData",value:function(){var ye=this.props;return this.localMoment(ye.value||ye.defaultValue||new Date).localeData()}},{key:"getDateFormat",value:function(){var ye=this.getLocaleData(),Se=this.props.dateFormat;return Se===!0?ye.longDateFormat("L"):Se||""}},{key:"getTimeFormat",value:function(){var ye=this.getLocaleData(),Se=this.props.timeFormat;return Se===!0?ye.longDateFormat("LT"):Se||""}},{key:"getFormat",value:function(ye){if(ye==="date")return this.getDateFormat();if(ye==="time")return this.getTimeFormat();var Se=this.getDateFormat(),ne=this.getTimeFormat();return Se&&ne?Se+" "+ne:Se||ne}},{key:"updateTime",value:function(ye,Se,ne,Me){var Qe={},ot=Me?"selectedDate":"viewDate";Qe[ot]=this.state[ot].clone()[ye](Se,ne),this.setState(Qe)}},{key:"localMoment",value:function(ye,Se,ne){var Me=null;return Me=(ne=ne||this.props).utc?o.a.utc(ye,Se,ne.strictParsing):ne.displayTimeZone?o.a.tz(ye,Se,ne.displayTimeZone):o()(ye,Se,ne.strictParsing),ne.locale&&Me.locale(ne.locale),Me}},{key:"checkTZ",value:function(){var ye=this.props.displayTimeZone;!ye||this.tzWarning||o.a.tz||(this.tzWarning=!0,Ra('displayTimeZone prop with value "'+ye+'" is used but moment.js timezone is not loaded.',"error"))}},{key:"componentDidUpdate",value:function(ye){if(ye!==this.props){var Se=!1,ne=this.props;["locale","utc","displayZone","dateFormat","timeFormat"].forEach((function(Me){ye[Me]!==ne[Me]&&(Se=!0)})),Se&&this.regenerateDates(),ne.value&&ne.value!==ye.value&&this.setViewDate(ne.value),this.checkTZ()}}},{key:"regenerateDates",value:function(){var ye=this.props,Se=this.state.viewDate.clone(),ne=this.state.selectedDate&&this.state.selectedDate.clone();ye.locale&&(Se.locale(ye.locale),ne&&ne.locale(ye.locale)),ye.utc?(Se.utc(),ne&&ne.utc()):ye.displayTimeZone?(Se.tz(ye.displayTimeZone),ne&&ne.tz(ye.displayTimeZone)):(Se.locale(),ne&&ne.locale());var Me={viewDate:Se,selectedDate:ne};ne&&ne.isValid()&&(Me.inputValue=ne.format(this.getFormat("datetime"))),this.setState(Me)}},{key:"getSelectedDate",value:function(){if(this.props.value===void 0)return this.state.selectedDate;var ye=this.parseDate(this.props.value,this.getFormat("datetime"));return!(!ye||!ye.isValid())&&ye}},{key:"getInitialInputValue",value:function(ye){var Se=this.props;return Se.inputProps.value?Se.inputProps.value:ye&&ye.isValid()?ye.format(this.getFormat("datetime")):Se.value&&typeof Se.value=="string"?Se.value:Se.initialValue&&typeof Se.initialValue=="string"?Se.initialValue:""}},{key:"getInputValue",value:function(){var ye=this.getSelectedDate();return ye?ye.format(this.getFormat("datetime")):this.state.inputValue}},{key:"setViewDate",value:function(ye){var Se,ne=function(){return Ra("Invalid date passed to the `setViewDate` method: "+ye)};return ye&&(Se=typeof ye=="string"?this.localMoment(ye,this.getFormat("datetime")):this.localMoment(ye))&&Se.isValid()?void this.setState({viewDate:Se}):ne()}},{key:"navigate",value:function(ye){this._showView(ye)}},{key:"callHandler",value:function(ye,Se){return!ye||ye(Se)!==!1}}]),$e})(u.a.Component);function Ra(we,ve){var $e=typeof window<"u"&&window.console;$e&&(ve||(ve="warn"),$e[ve]("***react-datetime:"+we))}ln(Oa,"propTypes",{value:Wo,initialValue:Wo,initialViewDate:Wo,initialViewMode:vn.oneOf([Bn,sa,Qa,ma]),onOpen:vn.func,onClose:vn.func,onChange:vn.func,onNavigate:vn.func,onBeforeNavigate:vn.func,onNavigateBack:vn.func,onNavigateForward:vn.func,updateOnView:vn.string,locale:vn.string,utc:vn.bool,displayTimeZone:vn.string,input:vn.bool,dateFormat:vn.oneOfType([vn.string,vn.bool]),timeFormat:vn.oneOfType([vn.string,vn.bool]),inputProps:vn.object,timeConstraints:vn.object,isValidDate:vn.func,open:vn.bool,strictParsing:vn.bool,closeOnSelect:vn.bool,closeOnTab:vn.bool,renderView:vn.func,renderInput:vn.func,renderDay:vn.func,renderMonth:vn.func,renderYear:vn.func}),ln(Oa,"defaultProps",{onOpen:_a,onClose:_a,onCalendarOpen:_a,onCalendarClose:_a,onChange:_a,onNavigate:_a,onBeforeNavigate:function(we){return we},onNavigateBack:_a,onNavigateForward:_a,dateFormat:!0,timeFormat:!0,utc:!1,className:"",input:!0,inputProps:{},timeConstraints:{},isValidDate:function(){return!0},strictParsing:!0,closeOnSelect:!1,closeOnTab:!0,closeOnClickOutside:!0,renderView:function(we,ve){return ve()}}),ln(Oa,"moment",o.a);var zo=Te((function(we){gt($e,we);var ve=_t($e);function $e(){var ye;Mt(this,$e);for(var Se=arguments.length,ne=new Array(Se),Me=0;Me{sr();const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,errorMessage:u,type:d,focused:f=!1,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(rf,{focused:h,onClick:T,...e,children:w.jsx(Zxt,{value:Ot(e.value),onChange:C=>e.onChange&&e.onChange(C),...e.inputProps})})},t_t=e=>{sr();const{placeholder:t,label:n,getInputRef:r,secureTextEntry:a,Icon:i,onChange:o,value:l,errorMessage:u,type:d,focused:f=!1,autoFocus:g,...y}=e,[h,v]=R.useState(!1),E=R.useRef(),T=R.useCallback(()=>{var C;(C=E.current)==null||C.focus()},[E.current]);return w.jsx(rf,{focused:h,onClick:T,...e,children:w.jsx("input",{type:"time",className:"form-control",value:e.value,onChange:C=>e.onChange&&e.onChange(C.target.value),...e.inputProps})})},nS={Example1:`const Example1 = () => { class FormDataSample { date: string; @@ -1143,4 +1143,4 @@ Ot.version="2.30.1";NEt(Yr);Ot.fn=ht;Ot.min=wCt;Ot.max=SCt;Ot.now=ECt;Ot.utc=Mc; ); -}`},jxt=()=>w.jsxs("div",{children:[w.jsx("h2",{children:"FormDate* component"}),w.jsx("p",{children:"Selecting date, time, datetime, daterange is an important aspect of many different apps and softwares. Fireback react comes with a different set of such components."}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(Uxt,{}),w.jsx(na,{codeString:V1.Example1})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(Bxt,{}),w.jsx(na,{codeString:V1.Example2})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(Wxt,{}),w.jsx(na,{codeString:V1.Example3})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(qxt,{}),w.jsx(na,{codeString:V1.Example4})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(zxt,{}),w.jsx(na,{codeString:V1.Example5})]})]}),Uxt=()=>{class e{constructor(){this.date=void 0}}return e.Fields={date:"date"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form Date demo"}),w.jsx("p",{children:"In many examples you want to select only a date string, nothing more. This input does that clearly."}),w.jsx(ss,{initialValues:{date:"2020-10-10"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(Gne,{value:t.values.date,label:"When did you born?",onChange:n=>t.setFieldValue(e.Fields.date,n)})]})})]})},Bxt=()=>{class e{constructor(){this.time=void 0}}return e.Fields={time:"time"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form Date demo"}),w.jsx("p",{children:"Sometimes we just need to store a time, without anything else. 5 characters 00:00"}),w.jsx(ss,{initialValues:{time:"22:10"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(Fxt,{value:t.values.time,label:"At which hour did you born?",onChange:n=>t.setFieldValue(e.Fields.time,n)})]})})]})},Wxt=()=>{class e{constructor(){this.datetime=void 0}}return e.Fields={datetime:"datetime"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form DateTime demo"}),w.jsx("p",{children:"In some cases, you want to store the datetime values with timezone in the database. this the component to use."}),w.jsx(ss,{initialValues:{datetime:"2025-05-02T10:06:00.000Z"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(Lxt,{value:t.values.datetime,label:"When did you born?",onChange:n=>t.setFieldValue(e.Fields.datetime,n)})]})})]})},zxt=()=>{class e{constructor(){this.daterange=void 0}}return e.Fields={daterange$:"daterange",daterange:{startDate:"startDate",endDate:"endDate"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Form DateRange demo"}),w.jsx("p",{children:"Choosing a date range also is an important thing in many applications, without timestamp."}),w.jsx(ss,{initialValues:{daterange:{endDate:new Date,startDate:new Date}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(AEt,{value:t.values.daterange,label:"How many days take to eggs become chicken?",onChange:n=>t.setFieldValue(e.Fields.daterange$,n)})]})})]})},qxt=()=>{class e{constructor(){this.daterange=void 0}}return e.Fields={daterange$:"daterange",daterange:{startDate:"startDate",endDate:"endDate"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Form DateTimeRange demo"}),w.jsx("p",{children:"Choosing a date range also is an important thing in many applications, a localised timezone."}),w.jsx(ss,{initialValues:{daterange:{endDate:new Date,startDate:new Date}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(Pae,{value:t.values.daterange,label:"Exactly what time egg came and gone??",onChange:n=>t.setFieldValue(e.Fields.daterange$,n)})]})})]})};function Hxt({routerId:e}){return w.jsxs(X$e,{routerId:e,children:[w.jsx(mt,{path:"demo/form-select",element:w.jsx(OBe,{})}),w.jsx(mt,{path:"demo/modals",element:w.jsx(jBe,{})}),w.jsx(mt,{path:"demo/form-date",element:w.jsx(jxt,{})}),w.jsx(mt,{path:"demo",element:w.jsx(FBe,{})})]})}function Vxt({children:e,queryClient:t,mockServer:n,config:r}){return e}var Xg={},Up={},mb={},KG;function Gxt(){if(KG)return mb;KG=1,mb.__esModule=!0,mb.getAllMatches=e,mb.escapeRegExp=t,mb.escapeSource=n;function e(r,a){for(var i=void 0,o=[];i=r.exec(a);)o.push(i);return o}function t(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function n(r){return t(r).replace(/\/+/g,"/+")}return mb}var dc={},XG;function Yxt(){if(XG)return dc;XG=1,dc.__esModule=!0,dc.string=e,dc.greedySplat=t,dc.splat=n,dc.any=r,dc.int=a,dc.uuid=i,dc.createRule=o;function e(){var l=arguments.length<=0||arguments[0]===void 0?{}:arguments[0],u=l.maxLength,d=l.minLength,f=l.length;return o({validate:function(y){return!(u&&y.length>u||d&&y.lengthu||d&&h=L.length)break;j=L[I++]}else{if(I=L.next(),I.done)break;j=I.value}var z=j[0],Q=j[1],le=void 0;Q?le=T[Q]||n.string():z=="**"?(le=n.greedySplat(),Q="splat"):z=="*"?(le=n.splat(),Q="splat"):z==="("?A+="(?:":z===")"?A+=")?":A+=t.escapeSource(z),Q&&(A+=le.regex,_.push({paramName:Q,rule:le})),k.push(z)}var re=k[k.length-1]!=="*",ge=re?"":"$";return A=new RegExp("^"+A+"/*"+ge,"i"),{tokens:k,regexpSource:A,params:_,paramNames:_.map(function(me){return me.paramName})}}function u(v,E){return v.every(function(T,C){return E[C].rule.validate(T)})}function d(v){return typeof v=="string"&&(v={pattern:v,rules:{}}),a.default(v.pattern,"you cannot use an empty route pattern"),v.rules=v.rules||{},v}function f(v){return v=d(v),i[v.pattern]||(i[v.pattern]=l(v)),i[v.pattern]}function g(v,E){E.charAt(0)!=="/"&&(E="/"+E);var T=f(v),C=T.regexpSource,k=T.params,_=T.paramNames,A=E.match(C);if(A!=null){var P=E.slice(A[0].length);if(!(P[0]=="/"||A[0][A[0].length])){var N=A.slice(1).map(function(I){return I!=null?decodeURIComponent(I):I});if(u(N,k))return N=N.map(function(I,L){return k[L].rule.convert(I)}),{remainingPathname:P,paramValues:N,paramNames:_}}}}function y(v,E){E=E||{};for(var T=f(v),C=T.tokens,k=0,_="",A=0,P=void 0,N=void 0,I=void 0,L=0,j=C.length;L0,'Missing splat #%s for path "%s"',A,v.pattern),I!=null&&(_+=encodeURI(I))):P==="("?k+=1:P===")"?k-=1:P.charAt(0)===":"?(N=P.substring(1),I=E[N],a.default(I!=null||k>0,'Missing "%s" parameter for path "%s"',N,v.pattern),I!=null&&(_+=encodeURIComponent(I))):_+=P;return _.replace(/\/+/g,"/")}function h(v,E){var T=g(v,E)||{},C=T.paramNames,k=T.paramValues,_=[];if(!C)return null;for(var A=0;At[n]||n).toLowerCase()}function e_t(e,t){const n=Eie(t);return e.filter(r=>Object.keys(n).every(a=>{let{operation:i,value:o}=n[a];o=wY(o||"");const l=wY(Ea.get(r,a)||"");if(!l)return!1;switch(i){case"contains":return l.includes(o);case"equals":return l===o;case"startsWith":return l.startsWith(o);case"endsWith":return l.endsWith(o);default:return!1}}))}class Rd{constructor(t){this.content=t}items(t){let n={};try{n=JSON.parse(t.jsonQuery)}catch{}return e_t(this.content,n).filter((a,i)=>!(it.startIndex+t.itemsPerPage-1))}total(){return this.content.length}create(t){const n={...t,uniqueId:AQ().substr(0,12)};return this.content.push(n),n}getOne(t){return this.content.find(n=>n.uniqueId===t)}deletes(t){return this.content=this.content.filter(n=>!t.includes(n.uniqueId)),!0}patchOne(t){return this.content=this.content.map(n=>n.uniqueId===t.uniqueId?{...n,...t}:n),t}}const Rh=e=>e.split(" or ").map(t=>t.split(" = ")[1].trim()),SY=new Rd([]);var EY,TY,Y1;function t_t(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let n_t=(EY=en("files"),TY=tn("get"),Y1=class{async getFiles(t){return{data:{items:SY.items(t),itemsPerPage:t.itemsPerPage,totalItems:SY.total()}}}},t_t(Y1.prototype,"getFiles",[EY,TY],Object.getOwnPropertyDescriptor(Y1.prototype,"getFiles"),Y1.prototype),Y1);const mr={emailProvider:new Rd([]),emailSender:new Rd([]),workspaceInvite:new Rd([]),publicJoinKey:new Rd([]),workspaces:new Rd([])};var CY,kY,xY,_Y,OY,RY,PY,AY,NY,MY,Pi;function K1(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let r_t=(CY=en("email-providers"),kY=tn("get"),xY=en("email-provider/:uniqueId"),_Y=tn("get"),OY=en("email-provider"),RY=tn("patch"),PY=en("email-provider"),AY=tn("post"),NY=en("email-provider"),MY=tn("delete"),Pi=class{async getEmailProviders(t){return{data:{items:mr.emailProvider.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.emailProvider.total()}}}async getEmailProviderByUniqueId(t){return{data:mr.emailProvider.getOne(t.paramValues[0])}}async patchEmailProviderByUniqueId(t){return{data:mr.emailProvider.patchOne(t.body)}}async postRole(t){return{data:mr.emailProvider.create(t.body)}}async deleteRole(t){return mr.emailProvider.deletes(Rh(t.body.query)),{data:{}}}},K1(Pi.prototype,"getEmailProviders",[CY,kY],Object.getOwnPropertyDescriptor(Pi.prototype,"getEmailProviders"),Pi.prototype),K1(Pi.prototype,"getEmailProviderByUniqueId",[xY,_Y],Object.getOwnPropertyDescriptor(Pi.prototype,"getEmailProviderByUniqueId"),Pi.prototype),K1(Pi.prototype,"patchEmailProviderByUniqueId",[OY,RY],Object.getOwnPropertyDescriptor(Pi.prototype,"patchEmailProviderByUniqueId"),Pi.prototype),K1(Pi.prototype,"postRole",[PY,AY],Object.getOwnPropertyDescriptor(Pi.prototype,"postRole"),Pi.prototype),K1(Pi.prototype,"deleteRole",[NY,MY],Object.getOwnPropertyDescriptor(Pi.prototype,"deleteRole"),Pi.prototype),Pi);var IY,DY,$Y,LY,FY,jY,UY,BY,WY,zY,Ai;function X1(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let a_t=(IY=en("email-senders"),DY=tn("get"),$Y=en("email-sender/:uniqueId"),LY=tn("get"),FY=en("email-sender"),jY=tn("patch"),UY=en("email-sender"),BY=tn("post"),WY=en("email-sender"),zY=tn("delete"),Ai=class{async getEmailSenders(t){return{data:{items:mr.emailSender.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.emailSender.total()}}}async getEmailSenderByUniqueId(t){return{data:mr.emailSender.getOne(t.paramValues[0])}}async patchEmailSenderByUniqueId(t){return{data:mr.emailSender.patchOne(t.body)}}async postRole(t){return{data:mr.emailSender.create(t.body)}}async deleteRole(t){return mr.emailSender.deletes(Rh(t.body.query)),{data:{}}}},X1(Ai.prototype,"getEmailSenders",[IY,DY],Object.getOwnPropertyDescriptor(Ai.prototype,"getEmailSenders"),Ai.prototype),X1(Ai.prototype,"getEmailSenderByUniqueId",[$Y,LY],Object.getOwnPropertyDescriptor(Ai.prototype,"getEmailSenderByUniqueId"),Ai.prototype),X1(Ai.prototype,"patchEmailSenderByUniqueId",[FY,jY],Object.getOwnPropertyDescriptor(Ai.prototype,"patchEmailSenderByUniqueId"),Ai.prototype),X1(Ai.prototype,"postRole",[UY,BY],Object.getOwnPropertyDescriptor(Ai.prototype,"postRole"),Ai.prototype),X1(Ai.prototype,"deleteRole",[WY,zY],Object.getOwnPropertyDescriptor(Ai.prototype,"deleteRole"),Ai.prototype),Ai);var qY,HY,VY,GY,YY,KY,XY,QY,JY,ZY,Ni;function Q1(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let i_t=(qY=en("public-join-keys"),HY=tn("get"),VY=en("public-join-key/:uniqueId"),GY=tn("get"),YY=en("public-join-key"),KY=tn("patch"),XY=en("public-join-key"),QY=tn("post"),JY=en("public-join-key"),ZY=tn("delete"),Ni=class{async getPublicJoinKeys(t){return{data:{items:mr.publicJoinKey.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.publicJoinKey.total()}}}async getPublicJoinKeyByUniqueId(t){return{data:mr.publicJoinKey.getOne(t.paramValues[0])}}async patchPublicJoinKeyByUniqueId(t){return{data:mr.publicJoinKey.patchOne(t.body)}}async postPublicJoinKey(t){return{data:mr.publicJoinKey.create(t.body)}}async deletePublicJoinKey(t){return mr.publicJoinKey.deletes(Rh(t.body.query)),{data:{}}}},Q1(Ni.prototype,"getPublicJoinKeys",[qY,HY],Object.getOwnPropertyDescriptor(Ni.prototype,"getPublicJoinKeys"),Ni.prototype),Q1(Ni.prototype,"getPublicJoinKeyByUniqueId",[VY,GY],Object.getOwnPropertyDescriptor(Ni.prototype,"getPublicJoinKeyByUniqueId"),Ni.prototype),Q1(Ni.prototype,"patchPublicJoinKeyByUniqueId",[YY,KY],Object.getOwnPropertyDescriptor(Ni.prototype,"patchPublicJoinKeyByUniqueId"),Ni.prototype),Q1(Ni.prototype,"postPublicJoinKey",[XY,QY],Object.getOwnPropertyDescriptor(Ni.prototype,"postPublicJoinKey"),Ni.prototype),Q1(Ni.prototype,"deletePublicJoinKey",[JY,ZY],Object.getOwnPropertyDescriptor(Ni.prototype,"deletePublicJoinKey"),Ni.prototype),Ni);const gb=new Rd([{name:"Administrator",uniqueId:"administrator"}]);var eK,tK,nK,rK,aK,iK,oK,sK,lK,uK,Mi;function J1(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let o_t=(eK=en("roles"),tK=tn("get"),nK=en("role/:uniqueId"),rK=tn("get"),aK=en("role"),iK=tn("patch"),oK=en("role"),sK=tn("delete"),lK=en("role"),uK=tn("post"),Mi=class{async getRoles(t){return{data:{items:gb.items(t),itemsPerPage:t.itemsPerPage,totalItems:gb.total()}}}async getRoleByUniqueId(t){return{data:gb.getOne(t.paramValues[0])}}async patchRoleByUniqueId(t){return{data:gb.patchOne(t.body)}}async deleteRole(t){return gb.deletes(Rh(t.body.query)),{data:{}}}async postRole(t){return{data:gb.create(t.body)}}},J1(Mi.prototype,"getRoles",[eK,tK],Object.getOwnPropertyDescriptor(Mi.prototype,"getRoles"),Mi.prototype),J1(Mi.prototype,"getRoleByUniqueId",[nK,rK],Object.getOwnPropertyDescriptor(Mi.prototype,"getRoleByUniqueId"),Mi.prototype),J1(Mi.prototype,"patchRoleByUniqueId",[aK,iK],Object.getOwnPropertyDescriptor(Mi.prototype,"patchRoleByUniqueId"),Mi.prototype),J1(Mi.prototype,"deleteRole",[oK,sK],Object.getOwnPropertyDescriptor(Mi.prototype,"deleteRole"),Mi.prototype),J1(Mi.prototype,"postRole",[lK,uK],Object.getOwnPropertyDescriptor(Mi.prototype,"postRole"),Mi.prototype),Mi);const s_t=[{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/workspace/invite(s)?",capability:null,capabilityId:null,created:1711043161316914e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/workspace-invites",icon:"common/workspaceinvite.svg",label:"Invites",parentId:"fireback",uniqueId:"invites",updated:1711043161316914e3,visibility:"A"},{activeMatcher:"publicjoinkey",capability:null,capabilityId:null,created:171104316131093e4,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/public-join-keys",icon:"common/joinkey.svg",label:"Public join keys",parentId:"fireback",uniqueId:"publicjoinkey",updated:171104316131093e4,visibility:"A"},{activeMatcher:"/role/",capability:null,capabilityId:null,created:1711043161314546e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/roles",icon:"common/role.svg",label:"Roles",parentId:"fireback",uniqueId:"roles",updated:1711043161314546e3,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Workspace",uniqueId:"fireback",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"drives",capability:null,capabilityId:null,created:1711043161320805e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/drives",icon:"common/drive.svg",label:"Drive & Files",parentId:"root",uniqueId:"drive_files",updated:1711043161320805e3,visibility:"A"},{activeMatcher:"email-provider",capability:null,capabilityId:null,created:1711043161309663e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-providers",icon:"common/emailprovider.svg",label:"Email Provider",parentId:"root",uniqueId:"email_provider",updated:1711043161309663e3,visibility:"A"},{activeMatcher:"email-sender",capability:null,capabilityId:null,created:171104316131211e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-senders",icon:"common/mail.svg",label:"Email Sender",parentId:"root",uniqueId:"email_sender",updated:171104316131211e4,visibility:"A"},{activeMatcher:"/user/",capability:null,capabilityId:null,created:1711043161318088e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/users",icon:"common/user.svg",label:"Users",parentId:"root",uniqueId:"users",updated:1711043161318088e3,visibility:"A"},{activeMatcher:"/workspace/config",capability:null,capabilityId:null,created:17110431613157e5,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-config",icon:"ios-theme/icons/settings.svg",label:"Workspace Config",parentId:"root",uniqueId:"workspace_config",updated:17110431613157e5,visibility:"A"},{activeMatcher:"workspace-type",capability:null,capabilityId:null,created:1711043161313308e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-types",icon:"ios-theme/icons/settings.svg",label:"Workspace Types",parentId:"root",uniqueId:"workspace_types",updated:1711043161313308e3,visibility:"A"},{activeMatcher:"/workspaces/|workspace/new",capability:null,capabilityId:null,created:171104316132216e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspaces",icon:"common/workspace.svg",label:"Workspaces",parentId:"root",uniqueId:"workspaces",updated:171104316132216e4,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Root",uniqueId:"root",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/invites/",capability:null,capabilityId:null,created:1711043161328479e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/user-invitations",icon:"common/workspaceinvite.svg",label:"My Invitations",parentId:"personal",uniqueId:"my_invitation",updated:1711043161328479e3,visibility:"A"},{activeMatcher:"/settings",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/settings",icon:"ios-theme/icons/settings.svg",label:"Settings",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"},{activeMatcher:"/selfservice",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice",icon:"ios-theme/icons/settings.svg",label:"Account & Profile",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"}],created:1711043161323813e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Personal",uniqueId:"personal",updated:1711043161323813e3,visibility:"A"}];var cK,dK,Z1;function l_t(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let u_t=(cK=en("cte-app-menus"),dK=tn("get"),Z1=class{async getAppMenu(t){return{data:{items:s_t}}}},l_t(Z1.prototype,"getAppMenu",[cK,dK],Object.getOwnPropertyDescriptor(Z1.prototype,"getAppMenu"),Z1.prototype),Z1);const c_t=()=>{if(Math.random()>.5)switch(Math.floor(Math.random()*3)){case 0:return`10.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 1:return`172.${Math.floor(16+Math.random()*16)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 2:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;default:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`}else return`${Math.floor(Math.random()*223)+1}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`},d_t=["Ali","Behnaz","Carlos","Daniela","Ethan","Fatima","Gustavo","Helena","Isla","Javad","Kamila","Leila","Mateo","Nasim","Omid","Parisa","Rania","Saeed","Tomas","Ursula","Vali","Wojtek","Zara","Alice","Bob","Charlie","Diana","George","Mohammed","Julia","Khalid","Lena","Mohammad","Nina","Oscar","Quentin","Rosa","Sam","Tina","Umar","Vera","Waleed","Xenia","Yara","Ziad","Maxim","Johann","Krzysztof","Baris","Mehmet"],f_t=["Smith","Johnson","Williams","Brown","Jones","Garcia","Miller","Davis","Rodriguez","Martinez","Hernandez","Lopez","Gonzalez","Wilson","Anderson","Thomas","Taylor","Moore","Jackson","Martin","Lee","Perez","Thompson","White","Harris","Sanchez","Clark","Ramirez","Lewis","Robinson","Walker","Young","Allen","King","Wright","Scott","Torres","Nguyen","Hill","Flores","Green","Adams","Nelson","Baker","Hall","Rivera","Campbell","Mitchell","Carter","Roberts","Kowalski","Nowak","Jankowski","Zieliński","Wiśniewski","Lewandowski","Kaczmarek","Bąk","Pereira","Altıntaş"],p_t=[{addressLine1:"123 Main St",addressLine2:"Apt 4",city:"Berlin",stateOrProvince:"Berlin",postalCode:"10115",countryCode:"DE"},{addressLine1:"456 Elm St",addressLine2:"Apt 23",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75001",countryCode:"FR"},{addressLine1:"789 Oak Dr",addressLine2:"Apt 9",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"01010",countryCode:"PL"},{addressLine1:"101 Maple Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"11365",countryCode:"IR"},{addressLine1:"202 Pine St",addressLine2:"Apt 7",city:"Madrid",stateOrProvince:"Community of Madrid",postalCode:"28001",countryCode:"ES"},{addressLine1:"456 Park Ave",addressLine2:"Suite 5",city:"New York",stateOrProvince:"NY",postalCode:"10001",countryCode:"US"},{addressLine1:"789 Sunset Blvd",addressLine2:"Unit 32",city:"Los Angeles",stateOrProvince:"CA",postalCode:"90001",countryCode:"US"},{addressLine1:"12 Hauptstrasse",addressLine2:"Apt 2",city:"Munich",stateOrProvince:"Bavaria",postalCode:"80331",countryCode:"DE"},{addressLine1:"75 Taksim Square",addressLine2:"Apt 12",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"321 Wierzbowa",addressLine2:"",city:"Kraków",stateOrProvince:"Małopolskie",postalCode:"31000",countryCode:"PL"},{addressLine1:"55 Rue de Rivoli",addressLine2:"Apt 10",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75004",countryCode:"FR"},{addressLine1:"1001 Tehran Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"14155",countryCode:"IR"},{addressLine1:"9 Calle de Alcalá",addressLine2:"Apt 6",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28009",countryCode:"ES"},{addressLine1:"222 King St",addressLine2:"Suite 1B",city:"London",stateOrProvince:"London",postalCode:"E1 6AN",countryCode:"GB"},{addressLine1:"15 St. Peters Rd",addressLine2:"",city:"Toronto",stateOrProvince:"Ontario",postalCode:"M5A 1A2",countryCode:"CA"},{addressLine1:"1340 Via Roma",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00100",countryCode:"IT"},{addressLine1:"42 Nevsky Prospekt",addressLine2:"Apt 1",city:"Saint Petersburg",stateOrProvince:"Leningradskaya",postalCode:"190000",countryCode:"RU"},{addressLine1:"3 Rüdesheimer Str.",addressLine2:"Apt 9",city:"Frankfurt",stateOrProvince:"Hessen",postalCode:"60326",countryCode:"DE"},{addressLine1:"271 Süleyman Demirel Bulvarı",addressLine2:"Apt 45",city:"Ankara",stateOrProvince:"Ankara",postalCode:"06100",countryCode:"TR"},{addressLine1:"7 Avenues des Champs-Élysées",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75008",countryCode:"FR"},{addressLine1:"125 E. 9th St.",addressLine2:"Apt 12",city:"Chicago",stateOrProvince:"IL",postalCode:"60606",countryCode:"US"},{addressLine1:"30 Rue de la Paix",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75002",countryCode:"FR"},{addressLine1:"16 Zlote Tarasy",addressLine2:"Apt 18",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-510",countryCode:"PL"},{addressLine1:"120 Váci utca",addressLine2:"",city:"Budapest",stateOrProvince:"Budapest",postalCode:"1056",countryCode:"HU"},{addressLine1:"22 Sukhbaatar Sq.",addressLine2:"",city:"Ulaanbaatar",stateOrProvince:"Central",postalCode:"14190",countryCode:"MN"},{addressLine1:"34 Princes Street",addressLine2:"Flat 1",city:"Edinburgh",stateOrProvince:"Scotland",postalCode:"EH2 4AY",countryCode:"GB"},{addressLine1:"310 Alzaibiyah",addressLine2:"",city:"Amman",stateOrProvince:"Amman",postalCode:"11183",countryCode:"JO"},{addressLine1:"401 Taksim Caddesi",addressLine2:"Apt 25",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"203 High Street",addressLine2:"Unit 3",city:"London",stateOrProvince:"London",postalCode:"W1T 2LQ",countryCode:"GB"},{addressLine1:"58 Via Nazionale",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00184",countryCode:"IT"},{addressLine1:"47 Gloucester Road",addressLine2:"",city:"London",stateOrProvince:"London",postalCode:"SW7 4QA",countryCode:"GB"},{addressLine1:"98 Calle de Bravo Murillo",addressLine2:"",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28039",countryCode:"ES"},{addressLine1:"57 Mirza Ghalib Street",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"15996",countryCode:"IR"},{addressLine1:"35 Królewska St",addressLine2:"",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-065",countryCode:"PL"},{addressLine1:"12 5th Ave",addressLine2:"",city:"New York",stateOrProvince:"NY",postalCode:"10128",countryCode:"US"}],h_t=()=>{const e=new Uint8Array(18);window.crypto.getRandomValues(e);const t=Array.from(e).map(r=>r.toString(36).padStart(2,"0")).join(""),n=Date.now().toString(36);return n+t.slice(0,30-n.length)},m_t=()=>({uniqueId:h_t(),firstName:Ea.sample(d_t),lastName:Ea.sample(f_t),photo:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,birthDate:new Date().getDate()+"/"+new Date().getMonth()+"/"+new Date().getFullYear(),gender:Math.random()>.5?1:0,title:Math.random()>.5?"Mr.":"Ms.",avatar:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,lastIpAddress:c_t(),primaryAddress:Ea.sample(p_t)}),vb=new Rd(Ea.times(1e4,()=>m_t()));var fK,pK,hK,mK,gK,vK,yK,bK,wK,SK,Ii;function eS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let g_t=(fK=en("users"),pK=tn("get"),hK=en("user"),mK=tn("delete"),gK=en("user/:uniqueId"),vK=tn("get"),yK=en("user"),bK=tn("patch"),wK=en("user"),SK=tn("post"),Ii=class{async getUsers(t){return{data:{items:vb.items(t),itemsPerPage:t.itemsPerPage,totalItems:vb.total()}}}async deleteUser(t){return vb.deletes(Rh(t.body.query)),{data:{}}}async getUserByUniqueId(t){return{data:vb.getOne(t.paramValues[0])}}async patchUserByUniqueId(t){return{data:vb.patchOne(t.body)}}async postUser(t){return{data:vb.create(t.body)}}},eS(Ii.prototype,"getUsers",[fK,pK],Object.getOwnPropertyDescriptor(Ii.prototype,"getUsers"),Ii.prototype),eS(Ii.prototype,"deleteUser",[hK,mK],Object.getOwnPropertyDescriptor(Ii.prototype,"deleteUser"),Ii.prototype),eS(Ii.prototype,"getUserByUniqueId",[gK,vK],Object.getOwnPropertyDescriptor(Ii.prototype,"getUserByUniqueId"),Ii.prototype),eS(Ii.prototype,"patchUserByUniqueId",[yK,bK],Object.getOwnPropertyDescriptor(Ii.prototype,"patchUserByUniqueId"),Ii.prototype),eS(Ii.prototype,"postUser",[wK,SK],Object.getOwnPropertyDescriptor(Ii.prototype,"postUser"),Ii.prototype),Ii);class v_t{}var EK,TK,CK,kK,xK,_K,OK,RK,PK,AK,Di;function tS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let y_t=(EK=en("workspace-invites"),TK=tn("get"),CK=en("workspace-invite/:uniqueId"),kK=tn("get"),xK=en("workspace-invite"),_K=tn("patch"),OK=en("workspace/invite"),RK=tn("post"),PK=en("workspace-invite"),AK=tn("delete"),Di=class{async getWorkspaceInvites(t){return{data:{items:mr.workspaceInvite.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.workspaceInvite.total()}}}async getWorkspaceInviteByUniqueId(t){return{data:mr.workspaceInvite.getOne(t.paramValues[0])}}async patchWorkspaceInviteByUniqueId(t){return{data:mr.workspaceInvite.patchOne(t.body)}}async postWorkspaceInvite(t){return{data:mr.workspaceInvite.create(t.body)}}async deleteWorkspaceInvite(t){return mr.workspaceInvite.deletes(Rh(t.body.query)),{data:{}}}},tS(Di.prototype,"getWorkspaceInvites",[EK,TK],Object.getOwnPropertyDescriptor(Di.prototype,"getWorkspaceInvites"),Di.prototype),tS(Di.prototype,"getWorkspaceInviteByUniqueId",[CK,kK],Object.getOwnPropertyDescriptor(Di.prototype,"getWorkspaceInviteByUniqueId"),Di.prototype),tS(Di.prototype,"patchWorkspaceInviteByUniqueId",[xK,_K],Object.getOwnPropertyDescriptor(Di.prototype,"patchWorkspaceInviteByUniqueId"),Di.prototype),tS(Di.prototype,"postWorkspaceInvite",[OK,RK],Object.getOwnPropertyDescriptor(Di.prototype,"postWorkspaceInvite"),Di.prototype),tS(Di.prototype,"deleteWorkspaceInvite",[PK,AK],Object.getOwnPropertyDescriptor(Di.prototype,"deleteWorkspaceInvite"),Di.prototype),Di);const yb=new Rd([{title:"Student workspace type",uniqueId:"1",slug:"/student"}]);var NK,MK,IK,DK,$K,LK,FK,jK,UK,BK,$i;function nS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let b_t=(NK=en("workspace-types"),MK=tn("get"),IK=en("workspace-type/:uniqueId"),DK=tn("get"),$K=en("workspace-type"),LK=tn("patch"),FK=en("workspace-type"),jK=tn("delete"),UK=en("workspace-type"),BK=tn("post"),$i=class{async getWorkspaceTypes(t){return{data:{items:yb.items(t),itemsPerPage:t.itemsPerPage,totalItems:yb.total()}}}async getWorkspaceTypeByUniqueId(t){return{data:yb.getOne(t.paramValues[0])}}async patchWorkspaceTypeByUniqueId(t){return{data:yb.patchOne(t.body)}}async deleteWorkspaceType(t){return yb.deletes(Rh(t.body.query)),{data:{}}}async postWorkspaceType(t){return{data:yb.create(t.body)}}},nS($i.prototype,"getWorkspaceTypes",[NK,MK],Object.getOwnPropertyDescriptor($i.prototype,"getWorkspaceTypes"),$i.prototype),nS($i.prototype,"getWorkspaceTypeByUniqueId",[IK,DK],Object.getOwnPropertyDescriptor($i.prototype,"getWorkspaceTypeByUniqueId"),$i.prototype),nS($i.prototype,"patchWorkspaceTypeByUniqueId",[$K,LK],Object.getOwnPropertyDescriptor($i.prototype,"patchWorkspaceTypeByUniqueId"),$i.prototype),nS($i.prototype,"deleteWorkspaceType",[FK,jK],Object.getOwnPropertyDescriptor($i.prototype,"deleteWorkspaceType"),$i.prototype),nS($i.prototype,"postWorkspaceType",[UK,BK],Object.getOwnPropertyDescriptor($i.prototype,"postWorkspaceType"),$i.prototype),$i);var WK,zK,qK,HK,VK,GK,YK,KK,XK,QK,JK,ZK,Ha;function bb(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let w_t=(WK=en("workspaces"),zK=tn("get"),qK=en("cte-workspaces"),HK=tn("get"),VK=en("workspace/:uniqueId"),GK=tn("get"),YK=en("workspace"),KK=tn("patch"),XK=en("workspace"),QK=tn("delete"),JK=en("workspace"),ZK=tn("post"),Ha=class{async getWorkspaces(t){return{data:{items:mr.workspaces.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.workspaces.total()}}}async getWorkspacesCte(t){return{data:{items:mr.workspaces.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.workspaces.total()}}}async getWorkspaceByUniqueId(t){return{data:mr.workspaces.getOne(t.paramValues[0])}}async patchWorkspaceByUniqueId(t){return{data:mr.workspaces.patchOne(t.body)}}async deleteWorkspace(t){return mr.workspaces.deletes(Rh(t.body.query)),{data:{}}}async postWorkspace(t){return{data:mr.workspaces.create(t.body)}}},bb(Ha.prototype,"getWorkspaces",[WK,zK],Object.getOwnPropertyDescriptor(Ha.prototype,"getWorkspaces"),Ha.prototype),bb(Ha.prototype,"getWorkspacesCte",[qK,HK],Object.getOwnPropertyDescriptor(Ha.prototype,"getWorkspacesCte"),Ha.prototype),bb(Ha.prototype,"getWorkspaceByUniqueId",[VK,GK],Object.getOwnPropertyDescriptor(Ha.prototype,"getWorkspaceByUniqueId"),Ha.prototype),bb(Ha.prototype,"patchWorkspaceByUniqueId",[YK,KK],Object.getOwnPropertyDescriptor(Ha.prototype,"patchWorkspaceByUniqueId"),Ha.prototype),bb(Ha.prototype,"deleteWorkspace",[XK,QK],Object.getOwnPropertyDescriptor(Ha.prototype,"deleteWorkspace"),Ha.prototype),bb(Ha.prototype,"postWorkspace",[JK,ZK],Object.getOwnPropertyDescriptor(Ha.prototype,"postWorkspace"),Ha.prototype),Ha);var eX,tX,nX,rX,Bp;function aX(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let S_t=(eX=en("workspace-config"),tX=tn("get"),nX=en("workspace-wconfig/distiwnct"),rX=tn("patch"),Bp=class{async getWorkspaceConfig(t){return{data:{enableOtp:!0,forcePasswordOnPhone:!0}}}async setWorkspaceConfig(t){return{data:t.body}}},aX(Bp.prototype,"getWorkspaceConfig",[eX,tX],Object.getOwnPropertyDescriptor(Bp.prototype,"getWorkspaceConfig"),Bp.prototype),aX(Bp.prototype,"setWorkspaceConfig",[nX,rX],Object.getOwnPropertyDescriptor(Bp.prototype,"setWorkspaceConfig"),Bp.prototype),Bp);const E_t=[new Zxt,new o_t,new u_t,new g_t,new b_t,new n_t,new r_t,new a_t,new y_t,new i_t,new v_t,new w_t,new S_t],T_t=R.createContext(null),A$={didCatch:!1,error:null};class C_t extends R.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=A$}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,a=arguments.length,i=new Array(a),o=0;o0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function x_t({error:e,resetErrorBoundary:t}){return w.jsxs("div",{role:"alert",children:[w.jsx("p",{children:"Something went wrong:"}),w.jsx("div",{style:{color:"red",padding:"30px"},children:e.message})]})}function __t(e){let t="en";const n=e.match(/\/(fa|en|ar|pl|de)\//);return n&&n[1]&&(t=n[1]),t}function O_t(){const[e,t]=R.useState(window.location.toString());return R.useEffect(()=>{const n=()=>{t(window.location.hash)};return window.addEventListener("popstate",n),window.addEventListener("pushState",n),window.addEventListener("replaceState",n),()=>{window.removeEventListener("popstate",n),window.removeEventListener("pushState",n),window.removeEventListener("replaceState",n)}},[]),{hash:e}}function R_t(){const{hash:e}=O_t();let t="en",n="us",r="ltr";return kr.FORCED_LOCALE?t=kr.FORCED_LOCALE:t=__t(e),t==="fa"&&(n="ir",r="rtl"),{locale:t,region:n,dir:r}}const iO=R.createContext(null);iO.displayName="PanelGroupContext";const Sa={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},j4=10,Cv=R.useLayoutEffect,iX=kS.useId,P_t=typeof iX=="function"?iX:()=>null;let A_t=0;function U4(e=null){const t=P_t(),n=R.useRef(e||t||null);return n.current===null&&(n.current=""+A_t++),e??n.current}function Tie({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:a,forwardedRef:i,id:o,maxSize:l,minSize:u,onCollapse:d,onExpand:f,onResize:g,order:y,style:h,tagName:v="div",...E}){const T=R.useContext(iO);if(T===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:C,expandPanel:k,getPanelSize:_,getPanelStyle:A,groupId:P,isPanelCollapsed:N,reevaluatePanelConstraints:I,registerPanel:L,resizePanel:j,unregisterPanel:z}=T,Q=U4(o),le=R.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:g},constraints:{collapsedSize:n,collapsible:r,defaultSize:a,maxSize:l,minSize:u},id:Q,idIsFromProps:o!==void 0,order:y});R.useRef({didLogMissingDefaultSizeWarning:!1}),Cv(()=>{const{callbacks:ge,constraints:me}=le.current,W={...me};le.current.id=Q,le.current.idIsFromProps=o!==void 0,le.current.order=y,ge.onCollapse=d,ge.onExpand=f,ge.onResize=g,me.collapsedSize=n,me.collapsible=r,me.defaultSize=a,me.maxSize=l,me.minSize=u,(W.collapsedSize!==me.collapsedSize||W.collapsible!==me.collapsible||W.maxSize!==me.maxSize||W.minSize!==me.minSize)&&I(le.current,W)}),Cv(()=>{const ge=le.current;return L(ge),()=>{z(ge)}},[y,Q,L,z]),R.useImperativeHandle(i,()=>({collapse:()=>{C(le.current)},expand:ge=>{k(le.current,ge)},getId(){return Q},getSize(){return _(le.current)},isCollapsed(){return N(le.current)},isExpanded(){return!N(le.current)},resize:ge=>{j(le.current,ge)}}),[C,k,_,N,Q,j]);const re=A(le.current,a);return R.createElement(v,{...E,children:e,className:t,id:Q,style:{...re,...h},[Sa.groupId]:P,[Sa.panel]:"",[Sa.panelCollapsible]:r||void 0,[Sa.panelId]:Q,[Sa.panelSize]:parseFloat(""+re.flexGrow).toFixed(1)})}const B4=R.forwardRef((e,t)=>R.createElement(Tie,{...e,forwardedRef:t}));Tie.displayName="Panel";B4.displayName="forwardRef(Panel)";let I3=null,Hk=-1,Hp=null;function N_t(e,t){if(t){const n=(t&Oie)!==0,r=(t&Rie)!==0,a=(t&Pie)!==0,i=(t&Aie)!==0;if(n)return a?"se-resize":i?"ne-resize":"e-resize";if(r)return a?"sw-resize":i?"nw-resize":"w-resize";if(a)return"s-resize";if(i)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function M_t(){Hp!==null&&(document.head.removeChild(Hp),I3=null,Hp=null,Hk=-1)}function N$(e,t){var n,r;const a=N_t(e,t);if(I3!==a){if(I3=a,Hp===null&&(Hp=document.createElement("style"),document.head.appendChild(Hp)),Hk>=0){var i;(i=Hp.sheet)===null||i===void 0||i.removeRule(Hk)}Hk=(n=(r=Hp.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${a} !important;}`))!==null&&n!==void 0?n:-1}}function Cie(e){return e.type==="keydown"}function kie(e){return e.type.startsWith("pointer")}function xie(e){return e.type.startsWith("mouse")}function oO(e){if(kie(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(xie(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function I_t(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function D_t(e,t,n){return e.xt.x&&e.yt.y}function $_t(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:lX(e),b:lX(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;Fn(r,"Stacking order can only be calculated for elements with a common ancestor");const a={a:sX(oX(n.a)),b:sX(oX(n.b))};if(a.a===a.b){const i=r.childNodes,o={a:n.a.at(-1),b:n.b.at(-1)};let l=i.length;for(;l--;){const u=i[l];if(u===o.a)return 1;if(u===o.b)return-1}}return Math.sign(a.a-a.b)}const L_t=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function F_t(e){var t;const n=getComputedStyle((t=_ie(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function j_t(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||F_t(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||L_t.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function oX(e){let t=e.length;for(;t--;){const n=e[t];if(Fn(n,"Missing node"),j_t(n))return n}return null}function sX(e){return e&&Number(getComputedStyle(e).zIndex)||0}function lX(e){const t=[];for(;e;)t.push(e),e=_ie(e);return t}function _ie(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const Oie=1,Rie=2,Pie=4,Aie=8,U_t=I_t()==="coarse";let Cu=[],Xb=!1,Vp=new Map,sO=new Map;const yE=new Set;function B_t(e,t,n,r,a){var i;const{ownerDocument:o}=t,l={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:a},u=(i=Vp.get(o))!==null&&i!==void 0?i:0;return Vp.set(o,u+1),yE.add(l),Vx(),function(){var f;sO.delete(e),yE.delete(l);const g=(f=Vp.get(o))!==null&&f!==void 0?f:1;if(Vp.set(o,g-1),Vx(),g===1&&Vp.delete(o),Cu.includes(l)){const y=Cu.indexOf(l);y>=0&&Cu.splice(y,1),z4(),a("up",!0,null)}}}function W_t(e){const{target:t}=e,{x:n,y:r}=oO(e);Xb=!0,W4({target:t,x:n,y:r}),Vx(),Cu.length>0&&(Gx("down",e),e.preventDefault(),Nie(t)||e.stopImmediatePropagation())}function M$(e){const{x:t,y:n}=oO(e);if(Xb&&e.buttons===0&&(Xb=!1,Gx("up",e)),!Xb){const{target:r}=e;W4({target:r,x:t,y:n})}Gx("move",e),z4(),Cu.length>0&&e.preventDefault()}function I$(e){const{target:t}=e,{x:n,y:r}=oO(e);sO.clear(),Xb=!1,Cu.length>0&&(e.preventDefault(),Nie(t)||e.stopImmediatePropagation()),Gx("up",e),W4({target:t,x:n,y:r}),z4(),Vx()}function Nie(e){let t=e;for(;t;){if(t.hasAttribute(Sa.resizeHandle))return!0;t=t.parentElement}return!1}function W4({target:e,x:t,y:n}){Cu.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),yE.forEach(a=>{const{element:i,hitAreaMargins:o}=a,l=i.getBoundingClientRect(),{bottom:u,left:d,right:f,top:g}=l,y=U_t?o.coarse:o.fine;if(t>=d-y&&t<=f+y&&n>=g-y&&n<=u+y){if(r!==null&&document.contains(r)&&i!==r&&!i.contains(r)&&!r.contains(i)&&$_t(r,i)>0){let v=r,E=!1;for(;v&&!v.contains(i);){if(D_t(v.getBoundingClientRect(),l)){E=!0;break}v=v.parentElement}if(E)return}Cu.push(a)}})}function D$(e,t){sO.set(e,t)}function z4(){let e=!1,t=!1;Cu.forEach(r=>{const{direction:a}=r;a==="horizontal"?e=!0:t=!0});let n=0;sO.forEach(r=>{n|=r}),e&&t?N$("intersection",n):e?N$("horizontal",n):t?N$("vertical",n):M_t()}let $$;function Vx(){var e;(e=$$)===null||e===void 0||e.abort(),$$=new AbortController;const t={capture:!0,signal:$$.signal};yE.size&&(Xb?(Cu.length>0&&Vp.forEach((n,r)=>{const{body:a}=r;n>0&&(a.addEventListener("contextmenu",I$,t),a.addEventListener("pointerleave",M$,t),a.addEventListener("pointermove",M$,t))}),Vp.forEach((n,r)=>{const{body:a}=r;a.addEventListener("pointerup",I$,t),a.addEventListener("pointercancel",I$,t)})):Vp.forEach((n,r)=>{const{body:a}=r;n>0&&(a.addEventListener("pointerdown",W_t,t),a.addEventListener("pointermove",M$,t))}))}function Gx(e,t){yE.forEach(n=>{const{setResizeHandlerState:r}=n,a=Cu.includes(n);r(e,a,t)})}function z_t(){const[e,t]=R.useState(0);return R.useCallback(()=>t(n=>n+1),[])}function Fn(e,t){if(!e)throw console.error(t),Error(t)}function Av(e,t,n=j4){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Pd(e,t,n=j4){return Av(e,t,n)===0}function Ns(e,t,n){return Av(e,t,n)===0}function q_t(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0&&(e=e<0?0-C:C)}}}{const g=e<0?l:u,y=n[g];Fn(y,`No panel constraints found for index ${g}`);const{collapsedSize:h=0,collapsible:v,minSize:E=0}=y;if(v){const T=t[g];if(Fn(T!=null,`Previous layout not found for panel index ${g}`),Ns(T,E)){const C=T-h;Av(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}}{const g=e<0?1:-1;let y=e<0?u:l,h=0;for(;;){const E=t[y];Fn(E!=null,`Previous layout not found for panel index ${y}`);const C=Lb({panelConstraints:n,panelIndex:y,size:100})-E;if(h+=C,y+=g,y<0||y>=n.length)break}const v=Math.min(Math.abs(e),Math.abs(h));e=e<0?0-v:v}{let y=e<0?l:u;for(;y>=0&&y=0))break;e<0?y--:y++}}if(q_t(a,o))return a;{const g=e<0?u:l,y=t[g];Fn(y!=null,`Previous layout not found for panel index ${g}`);const h=y+d,v=Lb({panelConstraints:n,panelIndex:g,size:h});if(o[g]=v,!Ns(v,h)){let E=h-v,C=e<0?u:l;for(;C>=0&&C0?C--:C++}}}const f=o.reduce((g,y)=>y+g,0);return Ns(f,100)?o:a}function H_t({layout:e,panelsArray:t,pivotIndices:n}){let r=0,a=100,i=0,o=0;const l=n[0];Fn(l!=null,"No pivot index found"),t.forEach((g,y)=>{const{constraints:h}=g,{maxSize:v=100,minSize:E=0}=h;y===l?(r=E,a=v):(i+=E,o+=v)});const u=Math.min(a,100-i),d=Math.max(r,100-o),f=e[l];return{valueMax:u,valueMin:d,valueNow:f}}function bE(e,t=document){return Array.from(t.querySelectorAll(`[${Sa.resizeHandleId}][data-panel-group-id="${e}"]`))}function Mie(e,t,n=document){const a=bE(e,n).findIndex(i=>i.getAttribute(Sa.resizeHandleId)===t);return a??null}function Iie(e,t,n){const r=Mie(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function V_t(e){return e instanceof HTMLElement?!0:typeof e=="object"&&e!==null&&"tagName"in e&&"getAttribute"in e}function Die(e,t=document){if(V_t(t)&&t.dataset.panelGroupId==e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function lO(e,t=document){const n=t.querySelector(`[${Sa.resizeHandleId}="${e}"]`);return n||null}function G_t(e,t,n,r=document){var a,i,o,l;const u=lO(t,r),d=bE(e,r),f=u?d.indexOf(u):-1,g=(a=(i=n[f])===null||i===void 0?void 0:i.id)!==null&&a!==void 0?a:null,y=(o=(l=n[f+1])===null||l===void 0?void 0:l.id)!==null&&o!==void 0?o:null;return[g,y]}function Y_t({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:a,panelGroupElement:i,setLayout:o}){R.useRef({didWarnAboutMissingResizeHandle:!1}),Cv(()=>{if(!i)return;const l=bE(n,i);for(let u=0;u{l.forEach((u,d)=>{u.removeAttribute("aria-controls"),u.removeAttribute("aria-valuemax"),u.removeAttribute("aria-valuemin"),u.removeAttribute("aria-valuenow")})}},[n,r,a,i]),R.useEffect(()=>{if(!i)return;const l=t.current;Fn(l,"Eager values not found");const{panelDataArray:u}=l,d=Die(n,i);Fn(d!=null,`No group found for id "${n}"`);const f=bE(n,i);Fn(f,`No resize handles found for group id "${n}"`);const g=f.map(y=>{const h=y.getAttribute(Sa.resizeHandleId);Fn(h,"Resize handle element has no handle id attribute");const[v,E]=G_t(n,h,u,i);if(v==null||E==null)return()=>{};const T=C=>{if(!C.defaultPrevented)switch(C.key){case"Enter":{C.preventDefault();const k=u.findIndex(_=>_.id===v);if(k>=0){const _=u[k];Fn(_,`No panel data found for index ${k}`);const A=r[k],{collapsedSize:P=0,collapsible:N,minSize:I=0}=_.constraints;if(A!=null&&N){const L=uS({delta:Ns(A,P)?I-P:P-A,initialLayout:r,panelConstraints:u.map(j=>j.constraints),pivotIndices:Iie(n,h,i),prevLayout:r,trigger:"keyboard"});r!==L&&o(L)}}break}}};return y.addEventListener("keydown",T),()=>{y.removeEventListener("keydown",T)}});return()=>{g.forEach(y=>y())}},[i,e,t,n,r,a,o])}function uX(e,t){if(e.length!==t.length)return!1;for(let n=0;ni.constraints);let r=0,a=100;for(let i=0;i{const i=e[a];Fn(i,`Panel data not found for index ${a}`);const{callbacks:o,constraints:l,id:u}=i,{collapsedSize:d=0,collapsible:f}=l,g=n[u];if(g==null||r!==g){n[u]=r;const{onCollapse:y,onExpand:h,onResize:v}=o;v&&v(r,g),f&&(y||h)&&(h&&(g==null||Pd(g,d))&&!Pd(r,d)&&h(),y&&(g==null||!Pd(g,d))&&Pd(r,d)&&y())}})}function bk(e,t){if(e.length!==t.length)return!1;for(let n=0;n{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...a)},t)}}function cX(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function Lie(e){return`react-resizable-panels:${e}`}function Fie(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:a,order:i}=t;return a?r:i?`${i}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function jie(e,t){try{const n=Lie(e),r=t.getItem(n);if(r){const a=JSON.parse(r);if(typeof a=="object"&&a!=null)return a}}catch{}return null}function eOt(e,t,n){var r,a;const i=(r=jie(e,n))!==null&&r!==void 0?r:{},o=Fie(t);return(a=i[o])!==null&&a!==void 0?a:null}function tOt(e,t,n,r,a){var i;const o=Lie(e),l=Fie(t),u=(i=jie(e,a))!==null&&i!==void 0?i:{};u[l]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{a.setItem(o,JSON.stringify(u))}catch(d){console.error(d)}}function dX({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((i,o)=>i+o,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(i=>`${i}%`).join(", ")}`);if(!Ns(r,100)&&n.length>0)for(let i=0;i(cX(cS),cS.getItem(e)),setItem:(e,t)=>{cX(cS),cS.setItem(e,t)}},fX={};function Uie({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:a,id:i=null,onLayout:o=null,keyboardResizeBy:l=null,storage:u=cS,style:d,tagName:f="div",...g}){const y=U4(i),h=R.useRef(null),[v,E]=R.useState(null),[T,C]=R.useState([]),k=z_t(),_=R.useRef({}),A=R.useRef(new Map),P=R.useRef(0),N=R.useRef({autoSaveId:e,direction:r,dragState:v,id:y,keyboardResizeBy:l,onLayout:o,storage:u}),I=R.useRef({layout:T,panelDataArray:[],panelDataArrayChanged:!1});R.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),R.useImperativeHandle(a,()=>({getId:()=>N.current.id,getLayout:()=>{const{layout:J}=I.current;return J},setLayout:J=>{const{onLayout:ee}=N.current,{layout:Z,panelDataArray:ue}=I.current,ke=dX({layout:J,panelConstraints:ue.map(fe=>fe.constraints)});uX(Z,ke)||(C(ke),I.current.layout=ke,ee&&ee(ke),wb(ue,ke,_.current))}}),[]),Cv(()=>{N.current.autoSaveId=e,N.current.direction=r,N.current.dragState=v,N.current.id=y,N.current.onLayout=o,N.current.storage=u}),Y_t({committedValuesRef:N,eagerValuesRef:I,groupId:y,layout:T,panelDataArray:I.current.panelDataArray,setLayout:C,panelGroupElement:h.current}),R.useEffect(()=>{const{panelDataArray:J}=I.current;if(e){if(T.length===0||T.length!==J.length)return;let ee=fX[e];ee==null&&(ee=Z_t(tOt,nOt),fX[e]=ee);const Z=[...J],ue=new Map(A.current);ee(e,Z,ue,T,u)}},[e,T,u]),R.useEffect(()=>{});const L=R.useCallback(J=>{const{onLayout:ee}=N.current,{layout:Z,panelDataArray:ue}=I.current;if(J.constraints.collapsible){const ke=ue.map(qe=>qe.constraints),{collapsedSize:fe=0,panelSize:xe,pivotIndices:Ie}=Qg(ue,J,Z);if(Fn(xe!=null,`Panel size not found for panel "${J.id}"`),!Pd(xe,fe)){A.current.set(J.id,xe);const tt=Cb(ue,J)===ue.length-1?xe-fe:fe-xe,Ge=uS({delta:tt,initialLayout:Z,panelConstraints:ke,pivotIndices:Ie,prevLayout:Z,trigger:"imperative-api"});bk(Z,Ge)||(C(Ge),I.current.layout=Ge,ee&&ee(Ge),wb(ue,Ge,_.current))}}},[]),j=R.useCallback((J,ee)=>{const{onLayout:Z}=N.current,{layout:ue,panelDataArray:ke}=I.current;if(J.constraints.collapsible){const fe=ke.map(at=>at.constraints),{collapsedSize:xe=0,panelSize:Ie=0,minSize:qe=0,pivotIndices:tt}=Qg(ke,J,ue),Ge=ee??qe;if(Pd(Ie,xe)){const at=A.current.get(J.id),Et=at!=null&&at>=Ge?at:Ge,xt=Cb(ke,J)===ke.length-1?Ie-Et:Et-Ie,Rt=uS({delta:xt,initialLayout:ue,panelConstraints:fe,pivotIndices:tt,prevLayout:ue,trigger:"imperative-api"});bk(ue,Rt)||(C(Rt),I.current.layout=Rt,Z&&Z(Rt),wb(ke,Rt,_.current))}}},[]),z=R.useCallback(J=>{const{layout:ee,panelDataArray:Z}=I.current,{panelSize:ue}=Qg(Z,J,ee);return Fn(ue!=null,`Panel size not found for panel "${J.id}"`),ue},[]),Q=R.useCallback((J,ee)=>{const{panelDataArray:Z}=I.current,ue=Cb(Z,J);return J_t({defaultSize:ee,dragState:v,layout:T,panelData:Z,panelIndex:ue})},[v,T]),le=R.useCallback(J=>{const{layout:ee,panelDataArray:Z}=I.current,{collapsedSize:ue=0,collapsible:ke,panelSize:fe}=Qg(Z,J,ee);return Fn(fe!=null,`Panel size not found for panel "${J.id}"`),ke===!0&&Pd(fe,ue)},[]),re=R.useCallback(J=>{const{layout:ee,panelDataArray:Z}=I.current,{collapsedSize:ue=0,collapsible:ke,panelSize:fe}=Qg(Z,J,ee);return Fn(fe!=null,`Panel size not found for panel "${J.id}"`),!ke||Av(fe,ue)>0},[]),ge=R.useCallback(J=>{const{panelDataArray:ee}=I.current;ee.push(J),ee.sort((Z,ue)=>{const ke=Z.order,fe=ue.order;return ke==null&&fe==null?0:ke==null?-1:fe==null?1:ke-fe}),I.current.panelDataArrayChanged=!0,k()},[k]);Cv(()=>{if(I.current.panelDataArrayChanged){I.current.panelDataArrayChanged=!1;const{autoSaveId:J,onLayout:ee,storage:Z}=N.current,{layout:ue,panelDataArray:ke}=I.current;let fe=null;if(J){const Ie=eOt(J,ke,Z);Ie&&(A.current=new Map(Object.entries(Ie.expandToSizes)),fe=Ie.layout)}fe==null&&(fe=Q_t({panelDataArray:ke}));const xe=dX({layout:fe,panelConstraints:ke.map(Ie=>Ie.constraints)});uX(ue,xe)||(C(xe),I.current.layout=xe,ee&&ee(xe),wb(ke,xe,_.current))}}),Cv(()=>{const J=I.current;return()=>{J.layout=[]}},[]);const me=R.useCallback(J=>{let ee=!1;const Z=h.current;return Z&&window.getComputedStyle(Z,null).getPropertyValue("direction")==="rtl"&&(ee=!0),function(ke){ke.preventDefault();const fe=h.current;if(!fe)return()=>null;const{direction:xe,dragState:Ie,id:qe,keyboardResizeBy:tt,onLayout:Ge}=N.current,{layout:at,panelDataArray:Et}=I.current,{initialLayout:kt}=Ie??{},xt=Iie(qe,J,fe);let Rt=X_t(ke,J,xe,Ie,tt,fe);const cn=xe==="horizontal";cn&&ee&&(Rt=-Rt);const qt=Et.map(dt=>dt.constraints),Wt=uS({delta:Rt,initialLayout:kt??at,panelConstraints:qt,pivotIndices:xt,prevLayout:at,trigger:Cie(ke)?"keyboard":"mouse-or-touch"}),Oe=!bk(at,Wt);(kie(ke)||xie(ke))&&P.current!=Rt&&(P.current=Rt,!Oe&&Rt!==0?cn?D$(J,Rt<0?Oie:Rie):D$(J,Rt<0?Pie:Aie):D$(J,0)),Oe&&(C(Wt),I.current.layout=Wt,Ge&&Ge(Wt),wb(Et,Wt,_.current))}},[]),W=R.useCallback((J,ee)=>{const{onLayout:Z}=N.current,{layout:ue,panelDataArray:ke}=I.current,fe=ke.map(at=>at.constraints),{panelSize:xe,pivotIndices:Ie}=Qg(ke,J,ue);Fn(xe!=null,`Panel size not found for panel "${J.id}"`);const tt=Cb(ke,J)===ke.length-1?xe-ee:ee-xe,Ge=uS({delta:tt,initialLayout:ue,panelConstraints:fe,pivotIndices:Ie,prevLayout:ue,trigger:"imperative-api"});bk(ue,Ge)||(C(Ge),I.current.layout=Ge,Z&&Z(Ge),wb(ke,Ge,_.current))},[]),G=R.useCallback((J,ee)=>{const{layout:Z,panelDataArray:ue}=I.current,{collapsedSize:ke=0,collapsible:fe}=ee,{collapsedSize:xe=0,collapsible:Ie,maxSize:qe=100,minSize:tt=0}=J.constraints,{panelSize:Ge}=Qg(ue,J,Z);Ge!=null&&(fe&&Ie&&Pd(Ge,ke)?Pd(ke,xe)||W(J,xe):Geqe&&W(J,qe))},[W]),q=R.useCallback((J,ee)=>{const{direction:Z}=N.current,{layout:ue}=I.current;if(!h.current)return;const ke=lO(J,h.current);Fn(ke,`Drag handle element not found for id "${J}"`);const fe=$ie(Z,ee);E({dragHandleId:J,dragHandleRect:ke.getBoundingClientRect(),initialCursorPosition:fe,initialLayout:ue})},[]),ce=R.useCallback(()=>{E(null)},[]),H=R.useCallback(J=>{const{panelDataArray:ee}=I.current,Z=Cb(ee,J);Z>=0&&(ee.splice(Z,1),delete _.current[J.id],I.current.panelDataArrayChanged=!0,k())},[k]),Y=R.useMemo(()=>({collapsePanel:L,direction:r,dragState:v,expandPanel:j,getPanelSize:z,getPanelStyle:Q,groupId:y,isPanelCollapsed:le,isPanelExpanded:re,reevaluatePanelConstraints:G,registerPanel:ge,registerResizeHandle:me,resizePanel:W,startDragging:q,stopDragging:ce,unregisterPanel:H,panelGroupElement:h.current}),[L,v,r,j,z,Q,y,le,re,G,ge,me,W,q,ce,H]),ie={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return R.createElement(iO.Provider,{value:Y},R.createElement(f,{...g,children:t,className:n,id:i,ref:h,style:{...ie,...d},[Sa.group]:"",[Sa.groupDirection]:r,[Sa.groupId]:y}))}const Bie=R.forwardRef((e,t)=>R.createElement(Uie,{...e,forwardedRef:t}));Uie.displayName="PanelGroup";Bie.displayName="forwardRef(PanelGroup)";function Cb(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function Qg(e,t,n){const r=Cb(e,t),i=r===e.length-1?[r-1,r]:[r,r+1],o=n[r];return{...t.constraints,panelSize:o,pivotIndices:i}}function rOt({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){R.useEffect(()=>{if(e||n==null||r==null)return;const a=lO(t,r);if(a==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),n(o);break}case"F6":{o.preventDefault();const l=a.getAttribute(Sa.groupId);Fn(l,`No group element found for id "${l}"`);const u=bE(l,r),d=Mie(l,t,r);Fn(d!==null,`No resize element found for id "${t}"`);const f=o.shiftKey?d>0?d-1:u.length-1:d+1{a.removeEventListener("keydown",i)}},[r,e,t,n])}function Wie({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:a,onBlur:i,onClick:o,onDragging:l,onFocus:u,onPointerDown:d,onPointerUp:f,style:g={},tabIndex:y=0,tagName:h="div",...v}){var E,T;const C=R.useRef(null),k=R.useRef({onClick:o,onDragging:l,onPointerDown:d,onPointerUp:f});R.useEffect(()=>{k.current.onClick=o,k.current.onDragging=l,k.current.onPointerDown=d,k.current.onPointerUp=f});const _=R.useContext(iO);if(_===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:A,groupId:P,registerResizeHandle:N,startDragging:I,stopDragging:L,panelGroupElement:j}=_,z=U4(a),[Q,le]=R.useState("inactive"),[re,ge]=R.useState(!1),[me,W]=R.useState(null),G=R.useRef({state:Q});Cv(()=>{G.current.state=Q}),R.useEffect(()=>{if(n)W(null);else{const Y=N(z);W(()=>Y)}},[n,z,N]);const q=(E=r==null?void 0:r.coarse)!==null&&E!==void 0?E:15,ce=(T=r==null?void 0:r.fine)!==null&&T!==void 0?T:5;R.useEffect(()=>{if(n||me==null)return;const Y=C.current;Fn(Y,"Element ref not attached");let ie=!1;return B_t(z,Y,A,{coarse:q,fine:ce},(ee,Z,ue)=>{if(!Z){le("inactive");return}switch(ee){case"down":{le("drag"),ie=!1,Fn(ue,'Expected event to be defined for "down" action'),I(z,ue);const{onDragging:ke,onPointerDown:fe}=k.current;ke==null||ke(!0),fe==null||fe();break}case"move":{const{state:ke}=G.current;ie=!0,ke!=="drag"&&le("hover"),Fn(ue,'Expected event to be defined for "move" action'),me(ue);break}case"up":{le("hover"),L();const{onClick:ke,onDragging:fe,onPointerUp:xe}=k.current;fe==null||fe(!1),xe==null||xe(),ie||ke==null||ke();break}}})},[q,A,n,ce,N,z,me,I,L]),rOt({disabled:n,handleId:z,resizeHandler:me,panelGroupElement:j});const H={touchAction:"none",userSelect:"none"};return R.createElement(h,{...v,children:e,className:t,id:a,onBlur:()=>{ge(!1),i==null||i()},onFocus:()=>{ge(!0),u==null||u()},ref:C,role:"separator",style:{...H,...g},tabIndex:y,[Sa.groupDirection]:A,[Sa.groupId]:P,[Sa.resizeHandle]:"",[Sa.resizeHandleActive]:Q==="drag"?"pointer":re?"keyboard":void 0,[Sa.resizeHandleEnabled]:!n,[Sa.resizeHandleId]:z,[Sa.resizeHandleState]:Q})}Wie.displayName="PanelResizeHandle";const aOt=[{to:"/dashboard",label:"Home",icon:$s("/common/home.svg")},{to:"/selfservice",label:"Profile",icon:$s("/common/user.svg")},{to:"/settings",label:"Settings",icon:$s(ku.settings)}],iOt=()=>w.jsx("nav",{className:"bottom-nav-tabbar",children:aOt.map(e=>w.jsx(Ub,{state:{animated:!0},href:e.to,className:({isActive:t})=>t?"nav-link active":"nav-link",children:w.jsxs("span",{className:"nav-link",children:[w.jsx("img",{className:"nav-img",src:e.icon}),e.label]})},e.to))}),oOt=({routerId:e,ApplicationRoutes:t,queryClient:n})=>w.jsx(OX,{initialConfig:{remote:kr.REMOTE_SERVICE},children:w.jsx(Ihe,{children:w.jsxs(hhe,{children:[w.jsx(Pve,{children:w.jsxs(vme,{children:[w.jsx(t,{routerId:e}),w.jsx(Rve,{})]})}),w.jsx(aL,{})]})})});function zie({className:e="",id:t,onDragComplete:n,minimal:r}){return w.jsx(Wie,{id:t,onDragging:a=>{a===!1&&(n==null||n())},className:ia("panel-resize-handle",r?"minimal":"")})}const sOt=()=>{if(ih().isMobileView)return 0;const e=localStorage.getItem("sidebarState"),t=e!==null?parseFloat(e):null;return t<=0?0:t*1.3},lOt=()=>{const{setSidebarRef:e,persistSidebarSize:t}=Lv(),n=R.useRef(null),r=a=>{n.current=a,e(n.current)};return w.jsxs(B4,{style:{position:"relative",overflowY:"hidden",height:"100vh"},minSize:0,defaultSize:sOt(),ref:r,children:[w.jsx(OX,{initialConfig:{remote:kr.REMOTE_SERVICE},children:w.jsx(oJ,{miniSize:!1})}),!ih().isMobileView&&w.jsx(zie,{onDragComplete:()=>{var a;t((a=n.current)==null?void 0:a.getSize())}})]})},uOt=({routerId:e,children:t,showHandle:n})=>w.jsxs(w.Fragment,{children:[w.jsx(lOt,{}),w.jsx(qie,{showHandle:n,routerId:e,children:t})]}),qie=({showHandle:e,routerId:t,children:n})=>{var o;const{routers:r,setFocusedRouter:a}=Lv(),{session:i}=R.useContext(nt);return w.jsxs(B4,{order:2,defaultSize:i?80/r.length:100,minSize:10,onClick:()=>{a(t)},style:{position:"relative",display:"flex",width:"100%"},children:[(o=r.find(l=>l.id===t))!=null&&o.focused&&r.length?w.jsx("div",{className:"focus-indicator"}):null,n,e?w.jsx(zie,{minimal:!0}):null]})},cOt=_X;function dOt({ApplicationRoutes:e,queryClient:t}){const{routers:n}=Lv(),r=n.map(a=>({...a,initialEntries:a!=null&&a.href?[{pathname:a==null?void 0:a.href}]:void 0,Wrapper:a.id==="url-router"?uOt:qie,Router:a.id==="url-router"?cOt:_se,showHandle:n.filter(i=>i.id!=="url-router").length>0}));return w.jsx(Bie,{direction:"horizontal",className:ia("application-panels",ih().isMobileView?"has-bottom-tab":void 0),children:r.map((a,i)=>w.jsxs(a.Router,{future:{v7_startTransition:!0},basename:void 0,initialEntries:a.initialEntries,children:[w.jsx(a.Wrapper,{showHandle:a.showHandle,routerId:a.id,children:w.jsx(oOt,{routerId:a.id,ApplicationRoutes:e,queryClient:t})}),ih().isMobileView?w.jsx(iOt,{}):void 0]},a.id))})}function fOt({children:e,queryClient:t,prefix:n,mockServer:r,config:a,locale:i}){return w.jsx(Zpe,{socket:!0,preferredAcceptLanguage:i||a.interfaceLanguage,identifier:"fireback",prefix:n,queryClient:t,remote:kr.REMOTE_SERVICE,defaultExecFn:void 0,children:w.jsx(pOt,{children:e,mockServer:r})})}const pOt=({children:e,mockServer:t})=>{var i;const{options:n,session:r}=R.useContext(nt),a=R.useRef(new nF((i=kr.REMOTE_SERVICE)==null?void 0:i.replace(/\/$/,"")));return a.current.defaultHeaders={authorization:r==null?void 0:r.token,"workspace-id":n==null?void 0:n.headers["workspace-id"]},w.jsx(lIe,{value:a.current,children:e})};function hOt(){const{session:e,checked:t}=R.useContext(nt),[n,r]=R.useState(!1),a=t&&!e,[i,o]=R.useState(!1);return R.useEffect(()=>{t&&e&&(o(!0),setTimeout(()=>{r(!0)},500))},[t,e]),{session:e,checked:t,needsAuthentication:a,loadComplete:n,setLoadComplete:r,isFading:i}}const pX=_X,mOt=({children:e})=>{var l;const{session:t,checked:n}=hOt(),r=Y$e(),{selectedUrw:a,selectUrw:i}=R.useContext(nt),{query:o}=CE({queryOptions:{cacheTime:50,enabled:!1},query:{}});return R.useEffect(()=>{var u;((u=t==null?void 0:t.userWorkspaces)==null?void 0:u.length)===1&&!a&&o.refetch().then(d=>{var g,y,h,v;const f=((y=(g=d==null?void 0:d.data)==null?void 0:g.data)==null?void 0:y.items)||[];f.length===1&&i({roleId:(v=(h=f[0].roles)==null?void 0:h[0])==null?void 0:v.uniqueId,workspaceId:f[0].uniqueId})})},[a,t]),!t&&n?w.jsx(pX,{future:{v7_startTransition:!0},children:w.jsxs(xX,{children:[w.jsx(mt,{path:":locale",children:r}),w.jsx(mt,{path:"*",element:w.jsx(B3,{to:"/en/selfservice/welcome",replace:!0})})]})}):!a&&((l=t==null?void 0:t.userWorkspaces)==null?void 0:l.length)>1?w.jsx(pX,{future:{v7_startTransition:!0},children:w.jsx(G$e,{})}):w.jsx(w.Fragment,{children:e})};function gOt({ApplicationRoutes:e,WithSdk:t,mockServer:n,apiPrefix:r}){const[a]=ze.useState(()=>new Zhe),{config:i}=R.useContext(dh);R.useEffect(()=>{"serviceWorker"in navigator&&"PushManager"in window&&navigator.serviceWorker.register("sw.js").then(l=>{})},[]);const{locale:o}=R_t();return w.jsx(ime,{client:a,children:w.jsx(Phe,{children:w.jsx(w_e,{children:w.jsx(C_t,{FallbackComponent:x_t,onReset:l=>{},children:w.jsx(fOt,{mockServer:n,config:i,prefix:r,queryClient:a,locale:o,children:w.jsx(t,{mockServer:n,prefix:r,config:i,queryClient:a,children:w.jsx(mOt,{children:w.jsx(dOt,{queryClient:a,ApplicationRoutes:e})})})})})})})})}function vOt(){const e=R.useRef(E_t);return w.jsx(gOt,{ApplicationRoutes:Hxt,mockServer:e,WithSdk:Vxt})}const yOt=Noe.createRoot(document.getElementById("root"));yOt.render(w.jsx(ze.StrictMode,{children:w.jsx(vOt,{})}))});export default bOt(); +}`},n_t=()=>w.jsxs("div",{children:[w.jsx("h2",{children:"FormDate* component"}),w.jsx("p",{children:"Selecting date, time, datetime, daterange is an important aspect of many different apps and softwares. Fireback react comes with a different set of such components."}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(r_t,{}),w.jsx(ra,{codeString:nS.Example1})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(a_t,{}),w.jsx(ra,{codeString:nS.Example2})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(i_t,{}),w.jsx(ra,{codeString:nS.Example3})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(s_t,{}),w.jsx(ra,{codeString:nS.Example4})]}),w.jsxs("div",{className:"mt-5 mb-5",children:[w.jsx(o_t,{}),w.jsx(ra,{codeString:nS.Example5})]})]}),r_t=()=>{class e{constructor(){this.date=void 0}}return e.Fields={date:"date"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form Date demo"}),w.jsx("p",{children:"In many examples you want to select only a date string, nothing more. This input does that clearly."}),w.jsx(ls,{initialValues:{date:"2020-10-10"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(ore,{value:t.values.date,label:"When did you born?",onChange:n=>t.setFieldValue(e.Fields.date,n)})]})})]})},a_t=()=>{class e{constructor(){this.time=void 0}}return e.Fields={time:"time"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form Date demo"}),w.jsx("p",{children:"Sometimes we just need to store a time, without anything else. 5 characters 00:00"}),w.jsx(ls,{initialValues:{time:"22:10"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(t_t,{value:t.values.time,label:"At which hour did you born?",onChange:n=>t.setFieldValue(e.Fields.time,n)})]})})]})},i_t=()=>{class e{constructor(){this.datetime=void 0}}return e.Fields={datetime:"datetime"},w.jsxs("div",{children:[w.jsx("h2",{children:"Form DateTime demo"}),w.jsx("p",{children:"In some cases, you want to store the datetime values with timezone in the database. this the component to use."}),w.jsx(ls,{initialValues:{datetime:"2025-05-02T10:06:00.000Z"},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(e_t,{value:t.values.datetime,label:"When did you born?",onChange:n=>t.setFieldValue(e.Fields.datetime,n)})]})})]})},o_t=()=>{class e{constructor(){this.daterange=void 0}}return e.Fields={daterange$:"daterange",daterange:{startDate:"startDate",endDate:"endDate"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Form DateRange demo"}),w.jsx("p",{children:"Choosing a date range also is an important thing in many applications, without timestamp."}),w.jsx(ls,{initialValues:{daterange:{endDate:new Date,startDate:new Date}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(YEt,{value:t.values.daterange,label:"How many days take to eggs become chicken?",onChange:n=>t.setFieldValue(e.Fields.daterange$,n)})]})})]})},s_t=()=>{class e{constructor(){this.daterange=void 0}}return e.Fields={daterange$:"daterange",daterange:{startDate:"startDate",endDate:"endDate"}},w.jsxs("div",{children:[w.jsx("h2",{children:"Form DateTimeRange demo"}),w.jsx("p",{children:"Choosing a date range also is an important thing in many applications, a localised timezone."}),w.jsx(ls,{initialValues:{daterange:{endDate:new Date,startDate:new Date}},onSubmit:t=>{alert(JSON.stringify(t,null,2))},children:t=>w.jsxs("div",{children:[w.jsxs("pre",{children:["Form: ",JSON.stringify(t.values,null,2)]}),w.jsx(zae,{value:t.values.daterange,label:"Exactly what time egg came and gone??",onChange:n=>t.setFieldValue(e.Fields.daterange$,n)})]})})]})};function l_t({routerId:e}){return w.jsxs(pLe,{routerId:e,children:[w.jsx(mt,{path:"demo/form-select",element:w.jsx(HBe,{})}),w.jsx(mt,{path:"demo/modals",element:w.jsx(n8e,{})}),w.jsx(mt,{path:"demo/form-date",element:w.jsx(n_t,{})}),w.jsx(mt,{path:"demo",element:w.jsx(t8e,{})})]})}function u_t({children:e,queryClient:t,mockServer:n,config:r}){return e}var nv={},zp={},Tb={},lY;function c_t(){if(lY)return Tb;lY=1,Tb.__esModule=!0,Tb.getAllMatches=e,Tb.escapeRegExp=t,Tb.escapeSource=n;function e(r,a){for(var i=void 0,o=[];i=r.exec(a);)o.push(i);return o}function t(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function n(r){return t(r).replace(/\/+/g,"/+")}return Tb}var fc={},uY;function d_t(){if(uY)return fc;uY=1,fc.__esModule=!0,fc.string=e,fc.greedySplat=t,fc.splat=n,fc.any=r,fc.int=a,fc.uuid=i,fc.createRule=o;function e(){var l=arguments.length<=0||arguments[0]===void 0?{}:arguments[0],u=l.maxLength,d=l.minLength,f=l.length;return o({validate:function(y){return!(u&&y.length>u||d&&y.lengthu||d&&h=L.length)break;j=L[I++]}else{if(I=L.next(),I.done)break;j=I.value}var z=j[0],Q=j[1],le=void 0;Q?le=T[Q]||n.string():z=="**"?(le=n.greedySplat(),Q="splat"):z=="*"?(le=n.splat(),Q="splat"):z==="("?A+="(?:":z===")"?A+=")?":A+=t.escapeSource(z),Q&&(A+=le.regex,_.push({paramName:Q,rule:le})),k.push(z)}var re=k[k.length-1]!=="*",ge=re?"":"$";return A=new RegExp("^"+A+"/*"+ge,"i"),{tokens:k,regexpSource:A,params:_,paramNames:_.map(function(me){return me.paramName})}}function u(v,E){return v.every(function(T,C){return E[C].rule.validate(T)})}function d(v){return typeof v=="string"&&(v={pattern:v,rules:{}}),a.default(v.pattern,"you cannot use an empty route pattern"),v.rules=v.rules||{},v}function f(v){return v=d(v),i[v.pattern]||(i[v.pattern]=l(v)),i[v.pattern]}function g(v,E){E.charAt(0)!=="/"&&(E="/"+E);var T=f(v),C=T.regexpSource,k=T.params,_=T.paramNames,A=E.match(C);if(A!=null){var P=E.slice(A[0].length);if(!(P[0]=="/"||A[0][A[0].length])){var N=A.slice(1).map(function(I){return I!=null?decodeURIComponent(I):I});if(u(N,k))return N=N.map(function(I,L){return k[L].rule.convert(I)}),{remainingPathname:P,paramValues:N,paramNames:_}}}}function y(v,E){E=E||{};for(var T=f(v),C=T.tokens,k=0,_="",A=0,P=void 0,N=void 0,I=void 0,L=0,j=C.length;L0,'Missing splat #%s for path "%s"',A,v.pattern),I!=null&&(_+=encodeURI(I))):P==="("?k+=1:P===")"?k-=1:P.charAt(0)===":"?(N=P.substring(1),I=E[N],a.default(I!=null||k>0,'Missing "%s" parameter for path "%s"',N,v.pattern),I!=null&&(_+=encodeURIComponent(I))):_+=P;return _.replace(/\/+/g,"/")}function h(v,E){var T=g(v,E)||{},C=T.paramNames,k=T.paramValues,_=[];if(!C)return null;for(var A=0;At[n]||n).toLowerCase()}function v_t(e,t){const n=Die(t);return e.filter(r=>Object.keys(n).every(a=>{let{operation:i,value:o}=n[a];o=MY(o||"");const l=MY(Ta.get(r,a)||"");if(!l)return!1;switch(i){case"contains":return l.includes(o);case"equals":return l===o;case"startsWith":return l.startsWith(o);case"endsWith":return l.endsWith(o);default:return!1}}))}class Ad{constructor(t){this.content=t}items(t){let n={};try{n=JSON.parse(t.jsonQuery)}catch{}return v_t(this.content,n).filter((a,i)=>!(it.startIndex+t.itemsPerPage-1))}total(){return this.content.length}create(t){const n={...t,uniqueId:qQ().substr(0,12)};return this.content.push(n),n}getOne(t){return this.content.find(n=>n.uniqueId===t)}deletes(t){return this.content=this.content.filter(n=>!t.includes(n.uniqueId)),!0}patchOne(t){return this.content=this.content.map(n=>n.uniqueId===t.uniqueId?{...n,...t}:n),t}}const Nh=e=>e.split(" or ").map(t=>t.split(" = ")[1].trim()),IY=new Ad([]);var DY,$Y,aS;function y_t(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let b_t=(DY=en("files"),$Y=tn("get"),aS=class{async getFiles(t){return{data:{items:IY.items(t),itemsPerPage:t.itemsPerPage,totalItems:IY.total()}}}},y_t(aS.prototype,"getFiles",[DY,$Y],Object.getOwnPropertyDescriptor(aS.prototype,"getFiles"),aS.prototype),aS);const mr={emailProvider:new Ad([]),emailSender:new Ad([]),workspaceInvite:new Ad([]),publicJoinKey:new Ad([]),workspaces:new Ad([])};var LY,FY,jY,UY,BY,WY,zY,qY,HY,VY,Pi;function iS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let w_t=(LY=en("email-providers"),FY=tn("get"),jY=en("email-provider/:uniqueId"),UY=tn("get"),BY=en("email-provider"),WY=tn("patch"),zY=en("email-provider"),qY=tn("post"),HY=en("email-provider"),VY=tn("delete"),Pi=class{async getEmailProviders(t){return{data:{items:mr.emailProvider.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.emailProvider.total()}}}async getEmailProviderByUniqueId(t){return{data:mr.emailProvider.getOne(t.paramValues[0])}}async patchEmailProviderByUniqueId(t){return{data:mr.emailProvider.patchOne(t.body)}}async postRole(t){return{data:mr.emailProvider.create(t.body)}}async deleteRole(t){return mr.emailProvider.deletes(Nh(t.body.query)),{data:{}}}},iS(Pi.prototype,"getEmailProviders",[LY,FY],Object.getOwnPropertyDescriptor(Pi.prototype,"getEmailProviders"),Pi.prototype),iS(Pi.prototype,"getEmailProviderByUniqueId",[jY,UY],Object.getOwnPropertyDescriptor(Pi.prototype,"getEmailProviderByUniqueId"),Pi.prototype),iS(Pi.prototype,"patchEmailProviderByUniqueId",[BY,WY],Object.getOwnPropertyDescriptor(Pi.prototype,"patchEmailProviderByUniqueId"),Pi.prototype),iS(Pi.prototype,"postRole",[zY,qY],Object.getOwnPropertyDescriptor(Pi.prototype,"postRole"),Pi.prototype),iS(Pi.prototype,"deleteRole",[HY,VY],Object.getOwnPropertyDescriptor(Pi.prototype,"deleteRole"),Pi.prototype),Pi);var GY,YY,KY,XY,QY,JY,ZY,eK,tK,nK,Ai;function oS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let S_t=(GY=en("email-senders"),YY=tn("get"),KY=en("email-sender/:uniqueId"),XY=tn("get"),QY=en("email-sender"),JY=tn("patch"),ZY=en("email-sender"),eK=tn("post"),tK=en("email-sender"),nK=tn("delete"),Ai=class{async getEmailSenders(t){return{data:{items:mr.emailSender.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.emailSender.total()}}}async getEmailSenderByUniqueId(t){return{data:mr.emailSender.getOne(t.paramValues[0])}}async patchEmailSenderByUniqueId(t){return{data:mr.emailSender.patchOne(t.body)}}async postRole(t){return{data:mr.emailSender.create(t.body)}}async deleteRole(t){return mr.emailSender.deletes(Nh(t.body.query)),{data:{}}}},oS(Ai.prototype,"getEmailSenders",[GY,YY],Object.getOwnPropertyDescriptor(Ai.prototype,"getEmailSenders"),Ai.prototype),oS(Ai.prototype,"getEmailSenderByUniqueId",[KY,XY],Object.getOwnPropertyDescriptor(Ai.prototype,"getEmailSenderByUniqueId"),Ai.prototype),oS(Ai.prototype,"patchEmailSenderByUniqueId",[QY,JY],Object.getOwnPropertyDescriptor(Ai.prototype,"patchEmailSenderByUniqueId"),Ai.prototype),oS(Ai.prototype,"postRole",[ZY,eK],Object.getOwnPropertyDescriptor(Ai.prototype,"postRole"),Ai.prototype),oS(Ai.prototype,"deleteRole",[tK,nK],Object.getOwnPropertyDescriptor(Ai.prototype,"deleteRole"),Ai.prototype),Ai);var rK,aK,iK,oK,sK,lK,uK,cK,dK,fK,Ni;function sS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let E_t=(rK=en("public-join-keys"),aK=tn("get"),iK=en("public-join-key/:uniqueId"),oK=tn("get"),sK=en("public-join-key"),lK=tn("patch"),uK=en("public-join-key"),cK=tn("post"),dK=en("public-join-key"),fK=tn("delete"),Ni=class{async getPublicJoinKeys(t){return{data:{items:mr.publicJoinKey.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.publicJoinKey.total()}}}async getPublicJoinKeyByUniqueId(t){return{data:mr.publicJoinKey.getOne(t.paramValues[0])}}async patchPublicJoinKeyByUniqueId(t){return{data:mr.publicJoinKey.patchOne(t.body)}}async postPublicJoinKey(t){return{data:mr.publicJoinKey.create(t.body)}}async deletePublicJoinKey(t){return mr.publicJoinKey.deletes(Nh(t.body.query)),{data:{}}}},sS(Ni.prototype,"getPublicJoinKeys",[rK,aK],Object.getOwnPropertyDescriptor(Ni.prototype,"getPublicJoinKeys"),Ni.prototype),sS(Ni.prototype,"getPublicJoinKeyByUniqueId",[iK,oK],Object.getOwnPropertyDescriptor(Ni.prototype,"getPublicJoinKeyByUniqueId"),Ni.prototype),sS(Ni.prototype,"patchPublicJoinKeyByUniqueId",[sK,lK],Object.getOwnPropertyDescriptor(Ni.prototype,"patchPublicJoinKeyByUniqueId"),Ni.prototype),sS(Ni.prototype,"postPublicJoinKey",[uK,cK],Object.getOwnPropertyDescriptor(Ni.prototype,"postPublicJoinKey"),Ni.prototype),sS(Ni.prototype,"deletePublicJoinKey",[dK,fK],Object.getOwnPropertyDescriptor(Ni.prototype,"deletePublicJoinKey"),Ni.prototype),Ni);const Cb=new Ad([{name:"Administrator",uniqueId:"administrator"}]);var pK,hK,mK,gK,vK,yK,bK,wK,SK,EK,Mi;function lS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let T_t=(pK=en("roles"),hK=tn("get"),mK=en("role/:uniqueId"),gK=tn("get"),vK=en("role"),yK=tn("patch"),bK=en("role"),wK=tn("delete"),SK=en("role"),EK=tn("post"),Mi=class{async getRoles(t){return{data:{items:Cb.items(t),itemsPerPage:t.itemsPerPage,totalItems:Cb.total()}}}async getRoleByUniqueId(t){return{data:Cb.getOne(t.paramValues[0])}}async patchRoleByUniqueId(t){return{data:Cb.patchOne(t.body)}}async deleteRole(t){return Cb.deletes(Nh(t.body.query)),{data:{}}}async postRole(t){return{data:Cb.create(t.body)}}},lS(Mi.prototype,"getRoles",[pK,hK],Object.getOwnPropertyDescriptor(Mi.prototype,"getRoles"),Mi.prototype),lS(Mi.prototype,"getRoleByUniqueId",[mK,gK],Object.getOwnPropertyDescriptor(Mi.prototype,"getRoleByUniqueId"),Mi.prototype),lS(Mi.prototype,"patchRoleByUniqueId",[vK,yK],Object.getOwnPropertyDescriptor(Mi.prototype,"patchRoleByUniqueId"),Mi.prototype),lS(Mi.prototype,"deleteRole",[bK,wK],Object.getOwnPropertyDescriptor(Mi.prototype,"deleteRole"),Mi.prototype),lS(Mi.prototype,"postRole",[SK,EK],Object.getOwnPropertyDescriptor(Mi.prototype,"postRole"),Mi.prototype),Mi);const C_t=[{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/workspace/invite(s)?",capability:null,capabilityId:null,created:1711043161316914e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/workspace-invites",icon:"common/workspaceinvite.svg",label:"Invites",parentId:"fireback",uniqueId:"invites",updated:1711043161316914e3,visibility:"A"},{activeMatcher:"publicjoinkey",capability:null,capabilityId:null,created:171104316131093e4,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/public-join-keys",icon:"common/joinkey.svg",label:"Public join keys",parentId:"fireback",uniqueId:"publicjoinkey",updated:171104316131093e4,visibility:"A"},{activeMatcher:"/role/",capability:null,capabilityId:null,created:1711043161314546e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/roles",icon:"common/role.svg",label:"Roles",parentId:"fireback",uniqueId:"roles",updated:1711043161314546e3,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Workspace",uniqueId:"fireback",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"drives",capability:null,capabilityId:null,created:1711043161320805e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/drives",icon:"common/drive.svg",label:"Drive & Files",parentId:"root",uniqueId:"drive_files",updated:1711043161320805e3,visibility:"A"},{activeMatcher:"email-provider",capability:null,capabilityId:null,created:1711043161309663e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-providers",icon:"common/emailprovider.svg",label:"Email Provider",parentId:"root",uniqueId:"email_provider",updated:1711043161309663e3,visibility:"A"},{activeMatcher:"email-sender",capability:null,capabilityId:null,created:171104316131211e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-senders",icon:"common/mail.svg",label:"Email Sender",parentId:"root",uniqueId:"email_sender",updated:171104316131211e4,visibility:"A"},{activeMatcher:"/user/",capability:null,capabilityId:null,created:1711043161318088e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/users",icon:"common/user.svg",label:"Users",parentId:"root",uniqueId:"users",updated:1711043161318088e3,visibility:"A"},{activeMatcher:"/workspace/config",capability:null,capabilityId:null,created:17110431613157e5,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-config",icon:"ios-theme/icons/settings.svg",label:"Workspace Config",parentId:"root",uniqueId:"workspace_config",updated:17110431613157e5,visibility:"A"},{activeMatcher:"workspace-type",capability:null,capabilityId:null,created:1711043161313308e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-types",icon:"ios-theme/icons/settings.svg",label:"Workspace Types",parentId:"root",uniqueId:"workspace_types",updated:1711043161313308e3,visibility:"A"},{activeMatcher:"/workspaces/|workspace/new",capability:null,capabilityId:null,created:171104316132216e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspaces",icon:"common/workspace.svg",label:"Workspaces",parentId:"root",uniqueId:"workspaces",updated:171104316132216e4,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Root",uniqueId:"root",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/invites/",capability:null,capabilityId:null,created:1711043161328479e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/user-invitations",icon:"common/workspaceinvite.svg",label:"My Invitations",parentId:"personal",uniqueId:"my_invitation",updated:1711043161328479e3,visibility:"A"},{activeMatcher:"/settings",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/settings",icon:"ios-theme/icons/settings.svg",label:"Settings",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"},{activeMatcher:"/selfservice",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice",icon:"ios-theme/icons/settings.svg",label:"Account & Profile",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"}],created:1711043161323813e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Personal",uniqueId:"personal",updated:1711043161323813e3,visibility:"A"}];var TK,CK,uS;function k_t(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let x_t=(TK=en("cte-app-menus"),CK=tn("get"),uS=class{async getAppMenu(t){return{data:{items:C_t}}}},k_t(uS.prototype,"getAppMenu",[TK,CK],Object.getOwnPropertyDescriptor(uS.prototype,"getAppMenu"),uS.prototype),uS);const __t=()=>{if(Math.random()>.5)switch(Math.floor(Math.random()*3)){case 0:return`10.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 1:return`172.${Math.floor(16+Math.random()*16)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 2:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;default:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`}else return`${Math.floor(Math.random()*223)+1}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`},O_t=["Ali","Behnaz","Carlos","Daniela","Ethan","Fatima","Gustavo","Helena","Isla","Javad","Kamila","Leila","Mateo","Nasim","Omid","Parisa","Rania","Saeed","Tomas","Ursula","Vali","Wojtek","Zara","Alice","Bob","Charlie","Diana","George","Mohammed","Julia","Khalid","Lena","Mohammad","Nina","Oscar","Quentin","Rosa","Sam","Tina","Umar","Vera","Waleed","Xenia","Yara","Ziad","Maxim","Johann","Krzysztof","Baris","Mehmet"],R_t=["Smith","Johnson","Williams","Brown","Jones","Garcia","Miller","Davis","Rodriguez","Martinez","Hernandez","Lopez","Gonzalez","Wilson","Anderson","Thomas","Taylor","Moore","Jackson","Martin","Lee","Perez","Thompson","White","Harris","Sanchez","Clark","Ramirez","Lewis","Robinson","Walker","Young","Allen","King","Wright","Scott","Torres","Nguyen","Hill","Flores","Green","Adams","Nelson","Baker","Hall","Rivera","Campbell","Mitchell","Carter","Roberts","Kowalski","Nowak","Jankowski","Zieliński","Wiśniewski","Lewandowski","Kaczmarek","Bąk","Pereira","Altıntaş"],P_t=[{addressLine1:"123 Main St",addressLine2:"Apt 4",city:"Berlin",stateOrProvince:"Berlin",postalCode:"10115",countryCode:"DE"},{addressLine1:"456 Elm St",addressLine2:"Apt 23",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75001",countryCode:"FR"},{addressLine1:"789 Oak Dr",addressLine2:"Apt 9",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"01010",countryCode:"PL"},{addressLine1:"101 Maple Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"11365",countryCode:"IR"},{addressLine1:"202 Pine St",addressLine2:"Apt 7",city:"Madrid",stateOrProvince:"Community of Madrid",postalCode:"28001",countryCode:"ES"},{addressLine1:"456 Park Ave",addressLine2:"Suite 5",city:"New York",stateOrProvince:"NY",postalCode:"10001",countryCode:"US"},{addressLine1:"789 Sunset Blvd",addressLine2:"Unit 32",city:"Los Angeles",stateOrProvince:"CA",postalCode:"90001",countryCode:"US"},{addressLine1:"12 Hauptstrasse",addressLine2:"Apt 2",city:"Munich",stateOrProvince:"Bavaria",postalCode:"80331",countryCode:"DE"},{addressLine1:"75 Taksim Square",addressLine2:"Apt 12",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"321 Wierzbowa",addressLine2:"",city:"Kraków",stateOrProvince:"Małopolskie",postalCode:"31000",countryCode:"PL"},{addressLine1:"55 Rue de Rivoli",addressLine2:"Apt 10",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75004",countryCode:"FR"},{addressLine1:"1001 Tehran Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"14155",countryCode:"IR"},{addressLine1:"9 Calle de Alcalá",addressLine2:"Apt 6",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28009",countryCode:"ES"},{addressLine1:"222 King St",addressLine2:"Suite 1B",city:"London",stateOrProvince:"London",postalCode:"E1 6AN",countryCode:"GB"},{addressLine1:"15 St. Peters Rd",addressLine2:"",city:"Toronto",stateOrProvince:"Ontario",postalCode:"M5A 1A2",countryCode:"CA"},{addressLine1:"1340 Via Roma",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00100",countryCode:"IT"},{addressLine1:"42 Nevsky Prospekt",addressLine2:"Apt 1",city:"Saint Petersburg",stateOrProvince:"Leningradskaya",postalCode:"190000",countryCode:"RU"},{addressLine1:"3 Rüdesheimer Str.",addressLine2:"Apt 9",city:"Frankfurt",stateOrProvince:"Hessen",postalCode:"60326",countryCode:"DE"},{addressLine1:"271 Süleyman Demirel Bulvarı",addressLine2:"Apt 45",city:"Ankara",stateOrProvince:"Ankara",postalCode:"06100",countryCode:"TR"},{addressLine1:"7 Avenues des Champs-Élysées",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75008",countryCode:"FR"},{addressLine1:"125 E. 9th St.",addressLine2:"Apt 12",city:"Chicago",stateOrProvince:"IL",postalCode:"60606",countryCode:"US"},{addressLine1:"30 Rue de la Paix",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75002",countryCode:"FR"},{addressLine1:"16 Zlote Tarasy",addressLine2:"Apt 18",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-510",countryCode:"PL"},{addressLine1:"120 Váci utca",addressLine2:"",city:"Budapest",stateOrProvince:"Budapest",postalCode:"1056",countryCode:"HU"},{addressLine1:"22 Sukhbaatar Sq.",addressLine2:"",city:"Ulaanbaatar",stateOrProvince:"Central",postalCode:"14190",countryCode:"MN"},{addressLine1:"34 Princes Street",addressLine2:"Flat 1",city:"Edinburgh",stateOrProvince:"Scotland",postalCode:"EH2 4AY",countryCode:"GB"},{addressLine1:"310 Alzaibiyah",addressLine2:"",city:"Amman",stateOrProvince:"Amman",postalCode:"11183",countryCode:"JO"},{addressLine1:"401 Taksim Caddesi",addressLine2:"Apt 25",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"203 High Street",addressLine2:"Unit 3",city:"London",stateOrProvince:"London",postalCode:"W1T 2LQ",countryCode:"GB"},{addressLine1:"58 Via Nazionale",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00184",countryCode:"IT"},{addressLine1:"47 Gloucester Road",addressLine2:"",city:"London",stateOrProvince:"London",postalCode:"SW7 4QA",countryCode:"GB"},{addressLine1:"98 Calle de Bravo Murillo",addressLine2:"",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28039",countryCode:"ES"},{addressLine1:"57 Mirza Ghalib Street",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"15996",countryCode:"IR"},{addressLine1:"35 Królewska St",addressLine2:"",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-065",countryCode:"PL"},{addressLine1:"12 5th Ave",addressLine2:"",city:"New York",stateOrProvince:"NY",postalCode:"10128",countryCode:"US"}],A_t=()=>{const e=new Uint8Array(18);window.crypto.getRandomValues(e);const t=Array.from(e).map(r=>r.toString(36).padStart(2,"0")).join(""),n=Date.now().toString(36);return n+t.slice(0,30-n.length)},N_t=()=>({uniqueId:A_t(),firstName:Ta.sample(O_t),lastName:Ta.sample(R_t),photo:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,birthDate:new Date().getDate()+"/"+new Date().getMonth()+"/"+new Date().getFullYear(),gender:Math.random()>.5?1:0,title:Math.random()>.5?"Mr.":"Ms.",avatar:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,lastIpAddress:__t(),primaryAddress:Ta.sample(P_t)}),kb=new Ad(Ta.times(1e4,()=>N_t()));var kK,xK,_K,OK,RK,PK,AK,NK,MK,IK,Ii;function cS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let M_t=(kK=en("users"),xK=tn("get"),_K=en("user"),OK=tn("delete"),RK=en("user/:uniqueId"),PK=tn("get"),AK=en("user"),NK=tn("patch"),MK=en("user"),IK=tn("post"),Ii=class{async getUsers(t){return{data:{items:kb.items(t),itemsPerPage:t.itemsPerPage,totalItems:kb.total()}}}async deleteUser(t){return kb.deletes(Nh(t.body.query)),{data:{}}}async getUserByUniqueId(t){return{data:kb.getOne(t.paramValues[0])}}async patchUserByUniqueId(t){return{data:kb.patchOne(t.body)}}async postUser(t){return{data:kb.create(t.body)}}},cS(Ii.prototype,"getUsers",[kK,xK],Object.getOwnPropertyDescriptor(Ii.prototype,"getUsers"),Ii.prototype),cS(Ii.prototype,"deleteUser",[_K,OK],Object.getOwnPropertyDescriptor(Ii.prototype,"deleteUser"),Ii.prototype),cS(Ii.prototype,"getUserByUniqueId",[RK,PK],Object.getOwnPropertyDescriptor(Ii.prototype,"getUserByUniqueId"),Ii.prototype),cS(Ii.prototype,"patchUserByUniqueId",[AK,NK],Object.getOwnPropertyDescriptor(Ii.prototype,"patchUserByUniqueId"),Ii.prototype),cS(Ii.prototype,"postUser",[MK,IK],Object.getOwnPropertyDescriptor(Ii.prototype,"postUser"),Ii.prototype),Ii);class I_t{}var DK,$K,LK,FK,jK,UK,BK,WK,zK,qK,Di;function dS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let D_t=(DK=en("workspace-invites"),$K=tn("get"),LK=en("workspace-invite/:uniqueId"),FK=tn("get"),jK=en("workspace-invite"),UK=tn("patch"),BK=en("workspace/invite"),WK=tn("post"),zK=en("workspace-invite"),qK=tn("delete"),Di=class{async getWorkspaceInvites(t){return{data:{items:mr.workspaceInvite.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.workspaceInvite.total()}}}async getWorkspaceInviteByUniqueId(t){return{data:mr.workspaceInvite.getOne(t.paramValues[0])}}async patchWorkspaceInviteByUniqueId(t){return{data:mr.workspaceInvite.patchOne(t.body)}}async postWorkspaceInvite(t){return{data:mr.workspaceInvite.create(t.body)}}async deleteWorkspaceInvite(t){return mr.workspaceInvite.deletes(Nh(t.body.query)),{data:{}}}},dS(Di.prototype,"getWorkspaceInvites",[DK,$K],Object.getOwnPropertyDescriptor(Di.prototype,"getWorkspaceInvites"),Di.prototype),dS(Di.prototype,"getWorkspaceInviteByUniqueId",[LK,FK],Object.getOwnPropertyDescriptor(Di.prototype,"getWorkspaceInviteByUniqueId"),Di.prototype),dS(Di.prototype,"patchWorkspaceInviteByUniqueId",[jK,UK],Object.getOwnPropertyDescriptor(Di.prototype,"patchWorkspaceInviteByUniqueId"),Di.prototype),dS(Di.prototype,"postWorkspaceInvite",[BK,WK],Object.getOwnPropertyDescriptor(Di.prototype,"postWorkspaceInvite"),Di.prototype),dS(Di.prototype,"deleteWorkspaceInvite",[zK,qK],Object.getOwnPropertyDescriptor(Di.prototype,"deleteWorkspaceInvite"),Di.prototype),Di);const xb=new Ad([{title:"Student workspace type",uniqueId:"1",slug:"/student"}]);var HK,VK,GK,YK,KK,XK,QK,JK,ZK,eX,$i;function fS(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let $_t=(HK=en("workspace-types"),VK=tn("get"),GK=en("workspace-type/:uniqueId"),YK=tn("get"),KK=en("workspace-type"),XK=tn("patch"),QK=en("workspace-type"),JK=tn("delete"),ZK=en("workspace-type"),eX=tn("post"),$i=class{async getWorkspaceTypes(t){return{data:{items:xb.items(t),itemsPerPage:t.itemsPerPage,totalItems:xb.total()}}}async getWorkspaceTypeByUniqueId(t){return{data:xb.getOne(t.paramValues[0])}}async patchWorkspaceTypeByUniqueId(t){return{data:xb.patchOne(t.body)}}async deleteWorkspaceType(t){return xb.deletes(Nh(t.body.query)),{data:{}}}async postWorkspaceType(t){return{data:xb.create(t.body)}}},fS($i.prototype,"getWorkspaceTypes",[HK,VK],Object.getOwnPropertyDescriptor($i.prototype,"getWorkspaceTypes"),$i.prototype),fS($i.prototype,"getWorkspaceTypeByUniqueId",[GK,YK],Object.getOwnPropertyDescriptor($i.prototype,"getWorkspaceTypeByUniqueId"),$i.prototype),fS($i.prototype,"patchWorkspaceTypeByUniqueId",[KK,XK],Object.getOwnPropertyDescriptor($i.prototype,"patchWorkspaceTypeByUniqueId"),$i.prototype),fS($i.prototype,"deleteWorkspaceType",[QK,JK],Object.getOwnPropertyDescriptor($i.prototype,"deleteWorkspaceType"),$i.prototype),fS($i.prototype,"postWorkspaceType",[ZK,eX],Object.getOwnPropertyDescriptor($i.prototype,"postWorkspaceType"),$i.prototype),$i);var tX,nX,rX,aX,iX,oX,sX,lX,uX,cX,dX,fX,Ha;function _b(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let L_t=(tX=en("workspaces"),nX=tn("get"),rX=en("cte-workspaces"),aX=tn("get"),iX=en("workspace/:uniqueId"),oX=tn("get"),sX=en("workspace"),lX=tn("patch"),uX=en("workspace"),cX=tn("delete"),dX=en("workspace"),fX=tn("post"),Ha=class{async getWorkspaces(t){return{data:{items:mr.workspaces.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.workspaces.total()}}}async getWorkspacesCte(t){return{data:{items:mr.workspaces.items(t),itemsPerPage:t.itemsPerPage,totalItems:mr.workspaces.total()}}}async getWorkspaceByUniqueId(t){return{data:mr.workspaces.getOne(t.paramValues[0])}}async patchWorkspaceByUniqueId(t){return{data:mr.workspaces.patchOne(t.body)}}async deleteWorkspace(t){return mr.workspaces.deletes(Nh(t.body.query)),{data:{}}}async postWorkspace(t){return{data:mr.workspaces.create(t.body)}}},_b(Ha.prototype,"getWorkspaces",[tX,nX],Object.getOwnPropertyDescriptor(Ha.prototype,"getWorkspaces"),Ha.prototype),_b(Ha.prototype,"getWorkspacesCte",[rX,aX],Object.getOwnPropertyDescriptor(Ha.prototype,"getWorkspacesCte"),Ha.prototype),_b(Ha.prototype,"getWorkspaceByUniqueId",[iX,oX],Object.getOwnPropertyDescriptor(Ha.prototype,"getWorkspaceByUniqueId"),Ha.prototype),_b(Ha.prototype,"patchWorkspaceByUniqueId",[sX,lX],Object.getOwnPropertyDescriptor(Ha.prototype,"patchWorkspaceByUniqueId"),Ha.prototype),_b(Ha.prototype,"deleteWorkspace",[uX,cX],Object.getOwnPropertyDescriptor(Ha.prototype,"deleteWorkspace"),Ha.prototype),_b(Ha.prototype,"postWorkspace",[dX,fX],Object.getOwnPropertyDescriptor(Ha.prototype,"postWorkspace"),Ha.prototype),Ha);var pX,hX,mX,gX,qp;function vX(e,t,n,r,a){var i={};return Object.keys(r).forEach(function(o){i[o]=r[o]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(o,l){return l(e,t,o)||o},i),a&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(a):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}let F_t=(pX=en("workspace-config"),hX=tn("get"),mX=en("workspace-wconfig/distiwnct"),gX=tn("patch"),qp=class{async getWorkspaceConfig(t){return{data:{enableOtp:!0,forcePasswordOnPhone:!0}}}async setWorkspaceConfig(t){return{data:t.body}}},vX(qp.prototype,"getWorkspaceConfig",[pX,hX],Object.getOwnPropertyDescriptor(qp.prototype,"getWorkspaceConfig"),qp.prototype),vX(qp.prototype,"setWorkspaceConfig",[mX,gX],Object.getOwnPropertyDescriptor(qp.prototype,"setWorkspaceConfig"),qp.prototype),qp);const j_t=[new g_t,new T_t,new x_t,new M_t,new $_t,new b_t,new w_t,new S_t,new D_t,new E_t,new I_t,new L_t,new F_t],U_t=R.createContext(null),q$={didCatch:!1,error:null};class B_t extends R.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=q$}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,a=arguments.length,i=new Array(a),o=0;o0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function z_t({error:e,resetErrorBoundary:t}){return w.jsxs("div",{role:"alert",children:[w.jsx("p",{children:"Something went wrong:"}),w.jsx("div",{style:{color:"red",padding:"30px"},children:e.message})]})}function q_t(e){let t="en";const n=e.match(/\/(fa|en|ar|pl|de)\//);return n&&n[1]&&(t=n[1]),t}function H_t(){const[e,t]=R.useState(window.location.toString());return R.useEffect(()=>{const n=()=>{t(window.location.hash)};return window.addEventListener("popstate",n),window.addEventListener("pushState",n),window.addEventListener("replaceState",n),()=>{window.removeEventListener("popstate",n),window.removeEventListener("pushState",n),window.removeEventListener("replaceState",n)}},[]),{hash:e}}function V_t(){const{hash:e}=H_t();let t="en",n="us",r="ltr";return kr.FORCED_LOCALE?t=kr.FORCED_LOCALE:t=q_t(e),t==="fa"&&(n="ir",r="rtl"),{locale:t,region:n,dir:r}}const gO=R.createContext(null);gO.displayName="PanelGroupContext";const Ea={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},J4=10,Av=R.useLayoutEffect,yX=DS.useId,G_t=typeof yX=="function"?yX:()=>null;let Y_t=0;function Z4(e=null){const t=G_t(),n=R.useRef(e||t||null);return n.current===null&&(n.current=""+Y_t++),e??n.current}function $ie({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:a,forwardedRef:i,id:o,maxSize:l,minSize:u,onCollapse:d,onExpand:f,onResize:g,order:y,style:h,tagName:v="div",...E}){const T=R.useContext(gO);if(T===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:C,expandPanel:k,getPanelSize:_,getPanelStyle:A,groupId:P,isPanelCollapsed:N,reevaluatePanelConstraints:I,registerPanel:L,resizePanel:j,unregisterPanel:z}=T,Q=Z4(o),le=R.useRef({callbacks:{onCollapse:d,onExpand:f,onResize:g},constraints:{collapsedSize:n,collapsible:r,defaultSize:a,maxSize:l,minSize:u},id:Q,idIsFromProps:o!==void 0,order:y});R.useRef({didLogMissingDefaultSizeWarning:!1}),Av(()=>{const{callbacks:ge,constraints:me}=le.current,W={...me};le.current.id=Q,le.current.idIsFromProps=o!==void 0,le.current.order=y,ge.onCollapse=d,ge.onExpand=f,ge.onResize=g,me.collapsedSize=n,me.collapsible=r,me.defaultSize=a,me.maxSize=l,me.minSize=u,(W.collapsedSize!==me.collapsedSize||W.collapsible!==me.collapsible||W.maxSize!==me.maxSize||W.minSize!==me.minSize)&&I(le.current,W)}),Av(()=>{const ge=le.current;return L(ge),()=>{z(ge)}},[y,Q,L,z]),R.useImperativeHandle(i,()=>({collapse:()=>{C(le.current)},expand:ge=>{k(le.current,ge)},getId(){return Q},getSize(){return _(le.current)},isCollapsed(){return N(le.current)},isExpanded(){return!N(le.current)},resize:ge=>{j(le.current,ge)}}),[C,k,_,N,Q,j]);const re=A(le.current,a);return R.createElement(v,{...E,children:e,className:t,id:Q,style:{...re,...h},[Ea.groupId]:P,[Ea.panel]:"",[Ea.panelCollapsible]:r||void 0,[Ea.panelId]:Q,[Ea.panelSize]:parseFloat(""+re.flexGrow).toFixed(1)})}const eU=R.forwardRef((e,t)=>R.createElement($ie,{...e,forwardedRef:t}));$ie.displayName="Panel";eU.displayName="forwardRef(Panel)";let G3=null,nx=-1,Yp=null;function K_t(e,t){if(t){const n=(t&Bie)!==0,r=(t&Wie)!==0,a=(t&zie)!==0,i=(t&qie)!==0;if(n)return a?"se-resize":i?"ne-resize":"e-resize";if(r)return a?"sw-resize":i?"nw-resize":"w-resize";if(a)return"s-resize";if(i)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function X_t(){Yp!==null&&(document.head.removeChild(Yp),G3=null,Yp=null,nx=-1)}function H$(e,t){var n,r;const a=K_t(e,t);if(G3!==a){if(G3=a,Yp===null&&(Yp=document.createElement("style"),document.head.appendChild(Yp)),nx>=0){var i;(i=Yp.sheet)===null||i===void 0||i.removeRule(nx)}nx=(n=(r=Yp.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${a} !important;}`))!==null&&n!==void 0?n:-1}}function Lie(e){return e.type==="keydown"}function Fie(e){return e.type.startsWith("pointer")}function jie(e){return e.type.startsWith("mouse")}function vO(e){if(Fie(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(jie(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function Q_t(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function J_t(e,t,n){return e.xt.x&&e.yt.y}function Z_t(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:SX(e),b:SX(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;Fn(r,"Stacking order can only be calculated for elements with a common ancestor");const a={a:wX(bX(n.a)),b:wX(bX(n.b))};if(a.a===a.b){const i=r.childNodes,o={a:n.a.at(-1),b:n.b.at(-1)};let l=i.length;for(;l--;){const u=i[l];if(u===o.a)return 1;if(u===o.b)return-1}}return Math.sign(a.a-a.b)}const eOt=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function tOt(e){var t;const n=getComputedStyle((t=Uie(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function nOt(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||tOt(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||eOt.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function bX(e){let t=e.length;for(;t--;){const n=e[t];if(Fn(n,"Missing node"),nOt(n))return n}return null}function wX(e){return e&&Number(getComputedStyle(e).zIndex)||0}function SX(e){const t=[];for(;e;)t.push(e),e=Uie(e);return t}function Uie(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const Bie=1,Wie=2,zie=4,qie=8,rOt=Q_t()==="coarse";let ku=[],i0=!1,Kp=new Map,yO=new Map;const RE=new Set;function aOt(e,t,n,r,a){var i;const{ownerDocument:o}=t,l={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:a},u=(i=Kp.get(o))!==null&&i!==void 0?i:0;return Kp.set(o,u+1),RE.add(l),r_(),function(){var f;yO.delete(e),RE.delete(l);const g=(f=Kp.get(o))!==null&&f!==void 0?f:1;if(Kp.set(o,g-1),r_(),g===1&&Kp.delete(o),ku.includes(l)){const y=ku.indexOf(l);y>=0&&ku.splice(y,1),nU(),a("up",!0,null)}}}function iOt(e){const{target:t}=e,{x:n,y:r}=vO(e);i0=!0,tU({target:t,x:n,y:r}),r_(),ku.length>0&&(a_("down",e),e.preventDefault(),Hie(t)||e.stopImmediatePropagation())}function V$(e){const{x:t,y:n}=vO(e);if(i0&&e.buttons===0&&(i0=!1,a_("up",e)),!i0){const{target:r}=e;tU({target:r,x:t,y:n})}a_("move",e),nU(),ku.length>0&&e.preventDefault()}function G$(e){const{target:t}=e,{x:n,y:r}=vO(e);yO.clear(),i0=!1,ku.length>0&&(e.preventDefault(),Hie(t)||e.stopImmediatePropagation()),a_("up",e),tU({target:t,x:n,y:r}),nU(),r_()}function Hie(e){let t=e;for(;t;){if(t.hasAttribute(Ea.resizeHandle))return!0;t=t.parentElement}return!1}function tU({target:e,x:t,y:n}){ku.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),RE.forEach(a=>{const{element:i,hitAreaMargins:o}=a,l=i.getBoundingClientRect(),{bottom:u,left:d,right:f,top:g}=l,y=rOt?o.coarse:o.fine;if(t>=d-y&&t<=f+y&&n>=g-y&&n<=u+y){if(r!==null&&document.contains(r)&&i!==r&&!i.contains(r)&&!r.contains(i)&&Z_t(r,i)>0){let v=r,E=!1;for(;v&&!v.contains(i);){if(J_t(v.getBoundingClientRect(),l)){E=!0;break}v=v.parentElement}if(E)return}ku.push(a)}})}function Y$(e,t){yO.set(e,t)}function nU(){let e=!1,t=!1;ku.forEach(r=>{const{direction:a}=r;a==="horizontal"?e=!0:t=!0});let n=0;yO.forEach(r=>{n|=r}),e&&t?H$("intersection",n):e?H$("horizontal",n):t?H$("vertical",n):X_t()}let K$;function r_(){var e;(e=K$)===null||e===void 0||e.abort(),K$=new AbortController;const t={capture:!0,signal:K$.signal};RE.size&&(i0?(ku.length>0&&Kp.forEach((n,r)=>{const{body:a}=r;n>0&&(a.addEventListener("contextmenu",G$,t),a.addEventListener("pointerleave",V$,t),a.addEventListener("pointermove",V$,t))}),Kp.forEach((n,r)=>{const{body:a}=r;a.addEventListener("pointerup",G$,t),a.addEventListener("pointercancel",G$,t)})):Kp.forEach((n,r)=>{const{body:a}=r;n>0&&(a.addEventListener("pointerdown",iOt,t),a.addEventListener("pointermove",V$,t))}))}function a_(e,t){RE.forEach(n=>{const{setResizeHandlerState:r}=n,a=ku.includes(n);r(e,a,t)})}function oOt(){const[e,t]=R.useState(0);return R.useCallback(()=>t(n=>n+1),[])}function Fn(e,t){if(!e)throw console.error(t),Error(t)}function Fv(e,t,n=J4){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Nd(e,t,n=J4){return Fv(e,t,n)===0}function Is(e,t,n){return Fv(e,t,n)===0}function sOt(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r0&&(e=e<0?0-C:C)}}}{const g=e<0?l:u,y=n[g];Fn(y,`No panel constraints found for index ${g}`);const{collapsedSize:h=0,collapsible:v,minSize:E=0}=y;if(v){const T=t[g];if(Fn(T!=null,`Previous layout not found for panel index ${g}`),Is(T,E)){const C=T-h;Fv(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}}{const g=e<0?1:-1;let y=e<0?u:l,h=0;for(;;){const E=t[y];Fn(E!=null,`Previous layout not found for panel index ${y}`);const C=Vb({panelConstraints:n,panelIndex:y,size:100})-E;if(h+=C,y+=g,y<0||y>=n.length)break}const v=Math.min(Math.abs(e),Math.abs(h));e=e<0?0-v:v}{let y=e<0?l:u;for(;y>=0&&y=0))break;e<0?y--:y++}}if(sOt(a,o))return a;{const g=e<0?u:l,y=t[g];Fn(y!=null,`Previous layout not found for panel index ${g}`);const h=y+d,v=Vb({panelConstraints:n,panelIndex:g,size:h});if(o[g]=v,!Is(v,h)){let E=h-v,C=e<0?u:l;for(;C>=0&&C0?C--:C++}}}const f=o.reduce((g,y)=>y+g,0);return Is(f,100)?o:a}function lOt({layout:e,panelsArray:t,pivotIndices:n}){let r=0,a=100,i=0,o=0;const l=n[0];Fn(l!=null,"No pivot index found"),t.forEach((g,y)=>{const{constraints:h}=g,{maxSize:v=100,minSize:E=0}=h;y===l?(r=E,a=v):(i+=E,o+=v)});const u=Math.min(a,100-i),d=Math.max(r,100-o),f=e[l];return{valueMax:u,valueMin:d,valueNow:f}}function PE(e,t=document){return Array.from(t.querySelectorAll(`[${Ea.resizeHandleId}][data-panel-group-id="${e}"]`))}function Vie(e,t,n=document){const a=PE(e,n).findIndex(i=>i.getAttribute(Ea.resizeHandleId)===t);return a??null}function Gie(e,t,n){const r=Vie(e,t,n);return r!=null?[r,r+1]:[-1,-1]}function uOt(e){return e instanceof HTMLElement?!0:typeof e=="object"&&e!==null&&"tagName"in e&&"getAttribute"in e}function Yie(e,t=document){if(uOt(t)&&t.dataset.panelGroupId==e)return t;const n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function bO(e,t=document){const n=t.querySelector(`[${Ea.resizeHandleId}="${e}"]`);return n||null}function cOt(e,t,n,r=document){var a,i,o,l;const u=bO(t,r),d=PE(e,r),f=u?d.indexOf(u):-1,g=(a=(i=n[f])===null||i===void 0?void 0:i.id)!==null&&a!==void 0?a:null,y=(o=(l=n[f+1])===null||l===void 0?void 0:l.id)!==null&&o!==void 0?o:null;return[g,y]}function dOt({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:a,panelGroupElement:i,setLayout:o}){R.useRef({didWarnAboutMissingResizeHandle:!1}),Av(()=>{if(!i)return;const l=PE(n,i);for(let u=0;u{l.forEach((u,d)=>{u.removeAttribute("aria-controls"),u.removeAttribute("aria-valuemax"),u.removeAttribute("aria-valuemin"),u.removeAttribute("aria-valuenow")})}},[n,r,a,i]),R.useEffect(()=>{if(!i)return;const l=t.current;Fn(l,"Eager values not found");const{panelDataArray:u}=l,d=Yie(n,i);Fn(d!=null,`No group found for id "${n}"`);const f=PE(n,i);Fn(f,`No resize handles found for group id "${n}"`);const g=f.map(y=>{const h=y.getAttribute(Ea.resizeHandleId);Fn(h,"Resize handle element has no handle id attribute");const[v,E]=cOt(n,h,u,i);if(v==null||E==null)return()=>{};const T=C=>{if(!C.defaultPrevented)switch(C.key){case"Enter":{C.preventDefault();const k=u.findIndex(_=>_.id===v);if(k>=0){const _=u[k];Fn(_,`No panel data found for index ${k}`);const A=r[k],{collapsedSize:P=0,collapsible:N,minSize:I=0}=_.constraints;if(A!=null&&N){const L=bS({delta:Is(A,P)?I-P:P-A,initialLayout:r,panelConstraints:u.map(j=>j.constraints),pivotIndices:Gie(n,h,i),prevLayout:r,trigger:"keyboard"});r!==L&&o(L)}}break}}};return y.addEventListener("keydown",T),()=>{y.removeEventListener("keydown",T)}});return()=>{g.forEach(y=>y())}},[i,e,t,n,r,a,o])}function EX(e,t){if(e.length!==t.length)return!1;for(let n=0;ni.constraints);let r=0,a=100;for(let i=0;i{const i=e[a];Fn(i,`Panel data not found for index ${a}`);const{callbacks:o,constraints:l,id:u}=i,{collapsedSize:d=0,collapsible:f}=l,g=n[u];if(g==null||r!==g){n[u]=r;const{onCollapse:y,onExpand:h,onResize:v}=o;v&&v(r,g),f&&(y||h)&&(h&&(g==null||Nd(g,d))&&!Nd(r,d)&&h(),y&&(g==null||!Nd(g,d))&&Nd(r,d)&&y())}})}function Pk(e,t){if(e.length!==t.length)return!1;for(let n=0;n{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...a)},t)}}function TX(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function Xie(e){return`react-resizable-panels:${e}`}function Qie(e){return e.map(t=>{const{constraints:n,id:r,idIsFromProps:a,order:i}=t;return a?r:i?`${i}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function Jie(e,t){try{const n=Xie(e),r=t.getItem(n);if(r){const a=JSON.parse(r);if(typeof a=="object"&&a!=null)return a}}catch{}return null}function vOt(e,t,n){var r,a;const i=(r=Jie(e,n))!==null&&r!==void 0?r:{},o=Qie(t);return(a=i[o])!==null&&a!==void 0?a:null}function yOt(e,t,n,r,a){var i;const o=Xie(e),l=Qie(t),u=(i=Jie(e,a))!==null&&i!==void 0?i:{};u[l]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{a.setItem(o,JSON.stringify(u))}catch(d){console.error(d)}}function CX({layout:e,panelConstraints:t}){const n=[...e],r=n.reduce((i,o)=>i+o,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(i=>`${i}%`).join(", ")}`);if(!Is(r,100)&&n.length>0)for(let i=0;i(TX(wS),wS.getItem(e)),setItem:(e,t)=>{TX(wS),wS.setItem(e,t)}},kX={};function Zie({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:a,id:i=null,onLayout:o=null,keyboardResizeBy:l=null,storage:u=wS,style:d,tagName:f="div",...g}){const y=Z4(i),h=R.useRef(null),[v,E]=R.useState(null),[T,C]=R.useState([]),k=oOt(),_=R.useRef({}),A=R.useRef(new Map),P=R.useRef(0),N=R.useRef({autoSaveId:e,direction:r,dragState:v,id:y,keyboardResizeBy:l,onLayout:o,storage:u}),I=R.useRef({layout:T,panelDataArray:[],panelDataArrayChanged:!1});R.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),R.useImperativeHandle(a,()=>({getId:()=>N.current.id,getLayout:()=>{const{layout:J}=I.current;return J},setLayout:J=>{const{onLayout:ee}=N.current,{layout:Z,panelDataArray:ue}=I.current,ke=CX({layout:J,panelConstraints:ue.map(fe=>fe.constraints)});EX(Z,ke)||(C(ke),I.current.layout=ke,ee&&ee(ke),Ob(ue,ke,_.current))}}),[]),Av(()=>{N.current.autoSaveId=e,N.current.direction=r,N.current.dragState=v,N.current.id=y,N.current.onLayout=o,N.current.storage=u}),dOt({committedValuesRef:N,eagerValuesRef:I,groupId:y,layout:T,panelDataArray:I.current.panelDataArray,setLayout:C,panelGroupElement:h.current}),R.useEffect(()=>{const{panelDataArray:J}=I.current;if(e){if(T.length===0||T.length!==J.length)return;let ee=kX[e];ee==null&&(ee=gOt(yOt,bOt),kX[e]=ee);const Z=[...J],ue=new Map(A.current);ee(e,Z,ue,T,u)}},[e,T,u]),R.useEffect(()=>{});const L=R.useCallback(J=>{const{onLayout:ee}=N.current,{layout:Z,panelDataArray:ue}=I.current;if(J.constraints.collapsible){const ke=ue.map(qe=>qe.constraints),{collapsedSize:fe=0,panelSize:xe,pivotIndices:Ie}=rv(ue,J,Z);if(Fn(xe!=null,`Panel size not found for panel "${J.id}"`),!Nd(xe,fe)){A.current.set(J.id,xe);const tt=Nb(ue,J)===ue.length-1?xe-fe:fe-xe,Ge=bS({delta:tt,initialLayout:Z,panelConstraints:ke,pivotIndices:Ie,prevLayout:Z,trigger:"imperative-api"});Pk(Z,Ge)||(C(Ge),I.current.layout=Ge,ee&&ee(Ge),Ob(ue,Ge,_.current))}}},[]),j=R.useCallback((J,ee)=>{const{onLayout:Z}=N.current,{layout:ue,panelDataArray:ke}=I.current;if(J.constraints.collapsible){const fe=ke.map(at=>at.constraints),{collapsedSize:xe=0,panelSize:Ie=0,minSize:qe=0,pivotIndices:tt}=rv(ke,J,ue),Ge=ee??qe;if(Nd(Ie,xe)){const at=A.current.get(J.id),Et=at!=null&&at>=Ge?at:Ge,xt=Nb(ke,J)===ke.length-1?Ie-Et:Et-Ie,Rt=bS({delta:xt,initialLayout:ue,panelConstraints:fe,pivotIndices:tt,prevLayout:ue,trigger:"imperative-api"});Pk(ue,Rt)||(C(Rt),I.current.layout=Rt,Z&&Z(Rt),Ob(ke,Rt,_.current))}}},[]),z=R.useCallback(J=>{const{layout:ee,panelDataArray:Z}=I.current,{panelSize:ue}=rv(Z,J,ee);return Fn(ue!=null,`Panel size not found for panel "${J.id}"`),ue},[]),Q=R.useCallback((J,ee)=>{const{panelDataArray:Z}=I.current,ue=Nb(Z,J);return mOt({defaultSize:ee,dragState:v,layout:T,panelData:Z,panelIndex:ue})},[v,T]),le=R.useCallback(J=>{const{layout:ee,panelDataArray:Z}=I.current,{collapsedSize:ue=0,collapsible:ke,panelSize:fe}=rv(Z,J,ee);return Fn(fe!=null,`Panel size not found for panel "${J.id}"`),ke===!0&&Nd(fe,ue)},[]),re=R.useCallback(J=>{const{layout:ee,panelDataArray:Z}=I.current,{collapsedSize:ue=0,collapsible:ke,panelSize:fe}=rv(Z,J,ee);return Fn(fe!=null,`Panel size not found for panel "${J.id}"`),!ke||Fv(fe,ue)>0},[]),ge=R.useCallback(J=>{const{panelDataArray:ee}=I.current;ee.push(J),ee.sort((Z,ue)=>{const ke=Z.order,fe=ue.order;return ke==null&&fe==null?0:ke==null?-1:fe==null?1:ke-fe}),I.current.panelDataArrayChanged=!0,k()},[k]);Av(()=>{if(I.current.panelDataArrayChanged){I.current.panelDataArrayChanged=!1;const{autoSaveId:J,onLayout:ee,storage:Z}=N.current,{layout:ue,panelDataArray:ke}=I.current;let fe=null;if(J){const Ie=vOt(J,ke,Z);Ie&&(A.current=new Map(Object.entries(Ie.expandToSizes)),fe=Ie.layout)}fe==null&&(fe=hOt({panelDataArray:ke}));const xe=CX({layout:fe,panelConstraints:ke.map(Ie=>Ie.constraints)});EX(ue,xe)||(C(xe),I.current.layout=xe,ee&&ee(xe),Ob(ke,xe,_.current))}}),Av(()=>{const J=I.current;return()=>{J.layout=[]}},[]);const me=R.useCallback(J=>{let ee=!1;const Z=h.current;return Z&&window.getComputedStyle(Z,null).getPropertyValue("direction")==="rtl"&&(ee=!0),function(ke){ke.preventDefault();const fe=h.current;if(!fe)return()=>null;const{direction:xe,dragState:Ie,id:qe,keyboardResizeBy:tt,onLayout:Ge}=N.current,{layout:at,panelDataArray:Et}=I.current,{initialLayout:kt}=Ie??{},xt=Gie(qe,J,fe);let Rt=pOt(ke,J,xe,Ie,tt,fe);const cn=xe==="horizontal";cn&&ee&&(Rt=-Rt);const qt=Et.map(dt=>dt.constraints),Wt=bS({delta:Rt,initialLayout:kt??at,panelConstraints:qt,pivotIndices:xt,prevLayout:at,trigger:Lie(ke)?"keyboard":"mouse-or-touch"}),Oe=!Pk(at,Wt);(Fie(ke)||jie(ke))&&P.current!=Rt&&(P.current=Rt,!Oe&&Rt!==0?cn?Y$(J,Rt<0?Bie:Wie):Y$(J,Rt<0?zie:qie):Y$(J,0)),Oe&&(C(Wt),I.current.layout=Wt,Ge&&Ge(Wt),Ob(Et,Wt,_.current))}},[]),W=R.useCallback((J,ee)=>{const{onLayout:Z}=N.current,{layout:ue,panelDataArray:ke}=I.current,fe=ke.map(at=>at.constraints),{panelSize:xe,pivotIndices:Ie}=rv(ke,J,ue);Fn(xe!=null,`Panel size not found for panel "${J.id}"`);const tt=Nb(ke,J)===ke.length-1?xe-ee:ee-xe,Ge=bS({delta:tt,initialLayout:ue,panelConstraints:fe,pivotIndices:Ie,prevLayout:ue,trigger:"imperative-api"});Pk(ue,Ge)||(C(Ge),I.current.layout=Ge,Z&&Z(Ge),Ob(ke,Ge,_.current))},[]),G=R.useCallback((J,ee)=>{const{layout:Z,panelDataArray:ue}=I.current,{collapsedSize:ke=0,collapsible:fe}=ee,{collapsedSize:xe=0,collapsible:Ie,maxSize:qe=100,minSize:tt=0}=J.constraints,{panelSize:Ge}=rv(ue,J,Z);Ge!=null&&(fe&&Ie&&Nd(Ge,ke)?Nd(ke,xe)||W(J,xe):Geqe&&W(J,qe))},[W]),q=R.useCallback((J,ee)=>{const{direction:Z}=N.current,{layout:ue}=I.current;if(!h.current)return;const ke=bO(J,h.current);Fn(ke,`Drag handle element not found for id "${J}"`);const fe=Kie(Z,ee);E({dragHandleId:J,dragHandleRect:ke.getBoundingClientRect(),initialCursorPosition:fe,initialLayout:ue})},[]),ce=R.useCallback(()=>{E(null)},[]),H=R.useCallback(J=>{const{panelDataArray:ee}=I.current,Z=Nb(ee,J);Z>=0&&(ee.splice(Z,1),delete _.current[J.id],I.current.panelDataArrayChanged=!0,k())},[k]),Y=R.useMemo(()=>({collapsePanel:L,direction:r,dragState:v,expandPanel:j,getPanelSize:z,getPanelStyle:Q,groupId:y,isPanelCollapsed:le,isPanelExpanded:re,reevaluatePanelConstraints:G,registerPanel:ge,registerResizeHandle:me,resizePanel:W,startDragging:q,stopDragging:ce,unregisterPanel:H,panelGroupElement:h.current}),[L,v,r,j,z,Q,y,le,re,G,ge,me,W,q,ce,H]),ie={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return R.createElement(gO.Provider,{value:Y},R.createElement(f,{...g,children:t,className:n,id:i,ref:h,style:{...ie,...d},[Ea.group]:"",[Ea.groupDirection]:r,[Ea.groupId]:y}))}const eoe=R.forwardRef((e,t)=>R.createElement(Zie,{...e,forwardedRef:t}));Zie.displayName="PanelGroup";eoe.displayName="forwardRef(PanelGroup)";function Nb(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function rv(e,t,n){const r=Nb(e,t),i=r===e.length-1?[r-1,r]:[r,r+1],o=n[r];return{...t.constraints,panelSize:o,pivotIndices:i}}function wOt({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){R.useEffect(()=>{if(e||n==null||r==null)return;const a=bO(t,r);if(a==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),n(o);break}case"F6":{o.preventDefault();const l=a.getAttribute(Ea.groupId);Fn(l,`No group element found for id "${l}"`);const u=PE(l,r),d=Vie(l,t,r);Fn(d!==null,`No resize element found for id "${t}"`);const f=o.shiftKey?d>0?d-1:u.length-1:d+1{a.removeEventListener("keydown",i)}},[r,e,t,n])}function toe({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:a,onBlur:i,onClick:o,onDragging:l,onFocus:u,onPointerDown:d,onPointerUp:f,style:g={},tabIndex:y=0,tagName:h="div",...v}){var E,T;const C=R.useRef(null),k=R.useRef({onClick:o,onDragging:l,onPointerDown:d,onPointerUp:f});R.useEffect(()=>{k.current.onClick=o,k.current.onDragging=l,k.current.onPointerDown=d,k.current.onPointerUp=f});const _=R.useContext(gO);if(_===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:A,groupId:P,registerResizeHandle:N,startDragging:I,stopDragging:L,panelGroupElement:j}=_,z=Z4(a),[Q,le]=R.useState("inactive"),[re,ge]=R.useState(!1),[me,W]=R.useState(null),G=R.useRef({state:Q});Av(()=>{G.current.state=Q}),R.useEffect(()=>{if(n)W(null);else{const Y=N(z);W(()=>Y)}},[n,z,N]);const q=(E=r==null?void 0:r.coarse)!==null&&E!==void 0?E:15,ce=(T=r==null?void 0:r.fine)!==null&&T!==void 0?T:5;R.useEffect(()=>{if(n||me==null)return;const Y=C.current;Fn(Y,"Element ref not attached");let ie=!1;return aOt(z,Y,A,{coarse:q,fine:ce},(ee,Z,ue)=>{if(!Z){le("inactive");return}switch(ee){case"down":{le("drag"),ie=!1,Fn(ue,'Expected event to be defined for "down" action'),I(z,ue);const{onDragging:ke,onPointerDown:fe}=k.current;ke==null||ke(!0),fe==null||fe();break}case"move":{const{state:ke}=G.current;ie=!0,ke!=="drag"&&le("hover"),Fn(ue,'Expected event to be defined for "move" action'),me(ue);break}case"up":{le("hover"),L();const{onClick:ke,onDragging:fe,onPointerUp:xe}=k.current;fe==null||fe(!1),xe==null||xe(),ie||ke==null||ke();break}}})},[q,A,n,ce,N,z,me,I,L]),wOt({disabled:n,handleId:z,resizeHandler:me,panelGroupElement:j});const H={touchAction:"none",userSelect:"none"};return R.createElement(h,{...v,children:e,className:t,id:a,onBlur:()=>{ge(!1),i==null||i()},onFocus:()=>{ge(!0),u==null||u()},ref:C,role:"separator",style:{...H,...g},tabIndex:y,[Ea.groupDirection]:A,[Ea.groupId]:P,[Ea.resizeHandle]:"",[Ea.resizeHandleActive]:Q==="drag"?"pointer":re?"keyboard":void 0,[Ea.resizeHandleEnabled]:!n,[Ea.resizeHandleId]:z,[Ea.resizeHandleState]:Q})}toe.displayName="PanelResizeHandle";const SOt=[{to:"/dashboard",label:"Home",icon:Fs("/common/home.svg")},{to:"/selfservice",label:"Profile",icon:Fs("/common/user.svg")},{to:"/settings",label:"Settings",icon:Fs(xu.settings)}],EOt=()=>w.jsx("nav",{className:"bottom-nav-tabbar",children:SOt.map(e=>w.jsx(Yb,{state:{animated:!0},href:e.to,className:({isActive:t})=>t?"nav-link active":"nav-link",children:w.jsxs("span",{className:"nav-link",children:[w.jsx("img",{className:"nav-img",src:e.icon}),e.label]})},e.to))}),TOt=({routerId:e,ApplicationRoutes:t,queryClient:n})=>w.jsx(BX,{initialConfig:{remote:kr.REMOTE_SERVICE},children:w.jsx(zhe,{children:w.jsxs(The,{children:[w.jsx(jve,{children:w.jsxs(xme,{children:[w.jsx(t,{routerId:e}),w.jsx(Fve,{})]})}),w.jsx(vL,{})]})})});function noe({className:e="",id:t,onDragComplete:n,minimal:r}){return w.jsx(toe,{id:t,onDragging:a=>{a===!1&&(n==null||n())},className:oa("panel-resize-handle",r?"minimal":"")})}const COt=()=>{if(sh().isMobileView)return 0;const e=localStorage.getItem("sidebarState"),t=e!==null?parseFloat(e):null;return t<=0?0:t*1.3},kOt=()=>{const{setSidebarRef:e,persistSidebarSize:t}=zv(),n=R.useRef(null),r=a=>{n.current=a,e(n.current)};return w.jsxs(eU,{style:{position:"relative",overflowY:"hidden",height:"100vh"},minSize:0,defaultSize:COt(),ref:r,children:[w.jsx(BX,{initialConfig:{remote:kr.REMOTE_SERVICE},children:w.jsx(bJ,{miniSize:!1})}),!sh().isMobileView&&w.jsx(noe,{onDragComplete:()=>{var a;t((a=n.current)==null?void 0:a.getSize())}})]})},xOt=({routerId:e,children:t,showHandle:n})=>w.jsxs(w.Fragment,{children:[w.jsx(kOt,{}),w.jsx(roe,{showHandle:n,routerId:e,children:t})]}),roe=({showHandle:e,routerId:t,children:n})=>{var o;const{routers:r,setFocusedRouter:a}=zv(),{session:i}=R.useContext(rt);return w.jsxs(eU,{order:2,defaultSize:i?80/r.length:100,minSize:10,onClick:()=>{a(t)},style:{position:"relative",display:"flex",width:"100%"},children:[(o=r.find(l=>l.id===t))!=null&&o.focused&&r.length?w.jsx("div",{className:"focus-indicator"}):null,n,e?w.jsx(noe,{minimal:!0}):null]})},_Ot=UX;function OOt({ApplicationRoutes:e,queryClient:t}){const{routers:n}=zv(),r=n.map(a=>({...a,initialEntries:a!=null&&a.href?[{pathname:a==null?void 0:a.href}]:void 0,Wrapper:a.id==="url-router"?xOt:roe,Router:a.id==="url-router"?_Ot:Use,showHandle:n.filter(i=>i.id!=="url-router").length>0}));return w.jsx(eoe,{direction:"horizontal",className:oa("application-panels",sh().isMobileView?"has-bottom-tab":void 0),children:r.map((a,i)=>w.jsxs(a.Router,{future:{v7_startTransition:!0},basename:void 0,initialEntries:a.initialEntries,children:[w.jsx(a.Wrapper,{showHandle:a.showHandle,routerId:a.id,children:w.jsx(TOt,{routerId:a.id,ApplicationRoutes:e,queryClient:t})}),sh().isMobileView?w.jsx(EOt,{}):void 0]},a.id))})}function ROt({children:e,queryClient:t,prefix:n,mockServer:r,config:a,locale:i}){return w.jsx(fhe,{socket:!0,preferredAcceptLanguage:i||a.interfaceLanguage,identifier:"fireback",prefix:n,queryClient:t,remote:kr.REMOTE_SERVICE,defaultExecFn:void 0,children:w.jsx(POt,{children:e,mockServer:r})})}const POt=({children:e,mockServer:t})=>{var i;const{options:n,session:r}=R.useContext(rt),a=R.useRef(new ZF((i=kr.REMOTE_SERVICE)==null?void 0:i.replace(/\/$/,"")));return a.current.defaultHeaders={authorization:r==null?void 0:r.token,"workspace-id":n==null?void 0:n.headers["workspace-id"]},w.jsx(SIe,{value:a.current,children:e})};function AOt(){const{session:e,checked:t}=R.useContext(rt),[n,r]=R.useState(!1),a=t&&!e,[i,o]=R.useState(!1);return R.useEffect(()=>{t&&e&&(o(!0),setTimeout(()=>{r(!0)},500))},[t,e]),{session:e,checked:t,needsAuthentication:a,loadComplete:n,setLoadComplete:r,isFading:i}}const xX=UX,NOt=({children:e})=>{var l;const{session:t,checked:n}=AOt(),r=dLe(),{selectedUrw:a,selectUrw:i}=R.useContext(rt),{query:o}=DE({queryOptions:{cacheTime:50,enabled:!1},query:{}});return R.useEffect(()=>{var u;((u=t==null?void 0:t.userWorkspaces)==null?void 0:u.length)===1&&!a&&o.refetch().then(d=>{var g,y,h,v;const f=((y=(g=d==null?void 0:d.data)==null?void 0:g.data)==null?void 0:y.items)||[];f.length===1&&i({roleId:(v=(h=f[0].roles)==null?void 0:h[0])==null?void 0:v.uniqueId,workspaceId:f[0].uniqueId})})},[a,t]),!t&&n?w.jsx(xX,{future:{v7_startTransition:!0},children:w.jsxs(jX,{children:[w.jsx(mt,{path:":locale",children:r}),w.jsx(mt,{path:"*",element:w.jsx(eF,{to:"/en/selfservice/welcome",replace:!0})})]})}):!a&&((l=t==null?void 0:t.userWorkspaces)==null?void 0:l.length)>1?w.jsx(xX,{future:{v7_startTransition:!0},children:w.jsx(cLe,{})}):w.jsx(w.Fragment,{children:e})};function MOt({ApplicationRoutes:e,WithSdk:t,mockServer:n,apiPrefix:r}){const[a]=ze.useState(()=>new lme),{config:i}=R.useContext(ph);R.useEffect(()=>{"serviceWorker"in navigator&&"PushManager"in window&&navigator.serviceWorker.register("sw.js").then(l=>{})},[]);const{locale:o}=V_t();return w.jsx(hme,{client:a,children:w.jsx(jhe,{children:w.jsx(M_e,{children:w.jsx(B_t,{FallbackComponent:z_t,onReset:l=>{},children:w.jsx(ROt,{mockServer:n,config:i,prefix:r,queryClient:a,locale:o,children:w.jsx(t,{mockServer:n,prefix:r,config:i,queryClient:a,children:w.jsx(NOt,{children:w.jsx(OOt,{queryClient:a,ApplicationRoutes:e})})})})})})})})}function IOt(){const e=R.useRef(j_t);return w.jsx(MOt,{ApplicationRoutes:l_t,mockServer:e,WithSdk:u_t})}const DOt=Hoe.createRoot(document.getElementById("root"));DOt.render(w.jsx(ze.StrictMode,{children:w.jsx(IOt,{})}))});export default $Ot(); diff --git a/modules/fireback/codegen/fireback-manage/index.html b/modules/fireback/codegen/fireback-manage/index.html index 2128990da..ac476caa7 100644 --- a/modules/fireback/codegen/fireback-manage/index.html +++ b/modules/fireback/codegen/fireback-manage/index.html @@ -5,7 +5,7 @@ Fireback - + diff --git a/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/AbacActionsDto.ts b/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/AbacActionsDto.ts index ee69fe664..6ec15832e 100644 --- a/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/AbacActionsDto.ts +++ b/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/AbacActionsDto.ts @@ -41,12 +41,6 @@ public static Fields = { }, } } -export class ImportUserActionReqDto { - public path?: string | null; -public static Fields = { - path: 'path', -} -} export class SendEmailActionReqDto { public toAddress?: string | null; public body?: string | null; diff --git a/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/usePostUserImport.ts b/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/usePostUserImport.ts deleted file mode 100644 index 97cd81dec..000000000 --- a/modules/fireback/codegen/react-new/src/modules/fireback/sdk/modules/abac/usePostUserImport.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* -* Generated by fireback 1.2.5 -* Written by Ali Torabi. -* The code is generated for react-query@v3.39.3 -* Checkout the repository for licenses and contribution: https://github.com/torabian/fireback -*/ -import { type FormikHelpers } from "formik"; -import { useContext, useState, useRef } from "react"; -import { useMutation } from "react-query"; -import { - execApiFn, - type IResponse, - mutationErrorsToFormik, - type IResponseList -} from "../../core/http-tools"; -import { - RemoteQueryContext, - type UseRemoteQuery, - queryBeforeSend, -} from "../../core/react-tools"; - import { - ImportUserActionReqDto, - } from "../abac/AbacActionsDto" - import { - OkayResponseDto, - } from "../abac/OkayResponseDto" -export function usePostUserImport( - props?: UseRemoteQuery & { - } -) { - let {queryClient, query, execFnOverride} = props || {}; - query = query || {} - const { options, execFn } = useContext(RemoteQueryContext); - // Calculare the function which will do the remote calls. - // We consider to use global override, this specific override, or default which - // comes with the sdk. - const rpcFn = execFnOverride - ? execFnOverride(options) - : execFn - ? execFn(options) - : execApiFn(options); - // Url of the remote affix. - const url = "/user/import".substr(1); - let computedUrl = `${url}?${new URLSearchParams( - queryBeforeSend(query) - ).toString()}`; - let completeRouteUrls = true; - // Attach the details of the request to the fn - const fn = (body: any) => rpcFn("POST", computedUrl, body); - const mutation = useMutation< - IResponse, - IResponse, - Partial - >(fn); - // Only entities are having a store in front-end - const fnUpdater = ( - data: IResponseList | undefined, - item: IResponse - ) => { - if (!data) { - return { - data: { items: [] }, - }; - } - // To me it seems this is not a good or any correct strategy to update the store. - // When we are posting, we want to add it there, that's it. Not updating it. - // We have patch, but also posting with ID is possible. - if (data.data && item?.data) { - data.data.items = [item.data, ...(data?.data?.items || [])]; - } - return data; - }; - const submit = ( - values: Partial, - formikProps?: FormikHelpers> - ): Promise> => { - return new Promise((resolve, reject) => { - mutation.mutate(values, { - onSuccess(response: IResponse) { - queryClient?.setQueryData>( - "*abac.OkayResponseDto", - (data) => fnUpdater(data, response) as any - ); - resolve(response); - }, - onError(error: any) { - formikProps?.setErrors(mutationErrorsToFormik(error)); - reject(error); - }, - }); - }); - }; - return { mutation, submit, fnUpdater }; -} diff --git a/modules/fireback/codegen/selfservice/assets/index-BBXZj-nV.js b/modules/fireback/codegen/selfservice/assets/index-hGksTATn.js similarity index 61% rename from modules/fireback/codegen/selfservice/assets/index-BBXZj-nV.js rename to modules/fireback/codegen/selfservice/assets/index-hGksTATn.js index 5acdd93ce..896915ff2 100644 --- a/modules/fireback/codegen/selfservice/assets/index-BBXZj-nV.js +++ b/modules/fireback/codegen/selfservice/assets/index-hGksTATn.js @@ -1,4 +1,4 @@ -var MD=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Nhe=MD((Za,eo)=>{function kD(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Sf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function If(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function DD(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var nC={exports:{}},t0={};/** +var WD=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Jhe=WD((to,no)=>{function KD(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Ef=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function YD(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var hC={exports:{}},c0={};/** * @license React * react-jsx-runtime.production.js * @@ -6,7 +6,7 @@ var MD=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Nhe=MD((Za,eo * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var YT;function FD(){if(YT)return t0;YT=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,o){var u=null;if(o!==void 0&&(u=""+o),i.key!==void 0&&(u=""+i.key),"key"in i){o={};for(var l in i)l!=="key"&&(o[l]=i[l])}else o=i;return i=o.ref,{$$typeof:t,type:r,key:u,ref:i!==void 0?i:null,props:o}}return t0.Fragment=e,t0.jsx=n,t0.jsxs=n,t0}var QT;function LD(){return QT||(QT=1,nC.exports=FD()),nC.exports}var N=LD(),rC={exports:{}},Lt={};/** + */var u4;function JD(){if(u4)return c0;u4=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,o){var u=null;if(o!==void 0&&(u=""+o),i.key!==void 0&&(u=""+i.key),"key"in i){o={};for(var l in i)l!=="key"&&(o[l]=i[l])}else o=i;return i=o.ref,{$$typeof:t,type:r,key:u,ref:i!==void 0?i:null,props:o}}return c0.Fragment=e,c0.jsx=n,c0.jsxs=n,c0}var l4;function QD(){return l4||(l4=1,hC.exports=JD()),hC.exports}var N=QD(),pC={exports:{}},Lt={};/** * @license React * react.production.js * @@ -14,7 +14,7 @@ var MD=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Nhe=MD((Za,eo * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var JT;function UD(){if(JT)return Lt;JT=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function w(G){return G===null||typeof G!="object"?null:(G=y&&G[y]||G["@@iterator"],typeof G=="function"?G:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,E={};function $(G,J,he){this.props=G,this.context=J,this.refs=E,this.updater=he||v}$.prototype.isReactComponent={},$.prototype.setState=function(G,J){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,J,"setState")},$.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function O(){}O.prototype=$.prototype;function _(G,J,he){this.props=G,this.context=J,this.refs=E,this.updater=he||v}var R=_.prototype=new O;R.constructor=_,C(R,$.prototype),R.isPureReactComponent=!0;var k=Array.isArray,P={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function F(G,J,he,$e,Ce,Be){return he=Be.ref,{$$typeof:t,type:G,key:J,ref:he!==void 0?he:null,props:Be}}function q(G,J){return F(G.type,J,void 0,void 0,void 0,G.props)}function Y(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function X(G){var J={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(he){return J[he]})}var ue=/\/+/g;function me(G,J){return typeof G=="object"&&G!==null&&G.key!=null?X(""+G.key):J.toString(36)}function te(){}function be(G){switch(G.status){case"fulfilled":return G.value;case"rejected":throw G.reason;default:switch(typeof G.status=="string"?G.then(te,te):(G.status="pending",G.then(function(J){G.status==="pending"&&(G.status="fulfilled",G.value=J)},function(J){G.status==="pending"&&(G.status="rejected",G.reason=J)})),G.status){case"fulfilled":return G.value;case"rejected":throw G.reason}}throw G}function we(G,J,he,$e,Ce){var Be=typeof G;(Be==="undefined"||Be==="boolean")&&(G=null);var Ie=!1;if(G===null)Ie=!0;else switch(Be){case"bigint":case"string":case"number":Ie=!0;break;case"object":switch(G.$$typeof){case t:case e:Ie=!0;break;case g:return Ie=G._init,we(Ie(G._payload),J,he,$e,Ce)}}if(Ie)return Ce=Ce(G),Ie=$e===""?"."+me(G,0):$e,k(Ce)?(he="",Ie!=null&&(he=Ie.replace(ue,"$&/")+"/"),we(Ce,J,he,"",function(Ke){return Ke})):Ce!=null&&(Y(Ce)&&(Ce=q(Ce,he+(Ce.key==null||G&&G.key===Ce.key?"":(""+Ce.key).replace(ue,"$&/")+"/")+Ie)),J.push(Ce)),1;Ie=0;var tt=$e===""?".":$e+":";if(k(G))for(var ke=0;ke()=>(e||t((e={exports:{}}).exports,e),e.exports);var Nhe=MD((Za,eo * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ZT;function jD(){return ZT||(ZT=1,(function(t){function e(B,V){var H=B.length;B.push(V);e:for(;0>>1,G=B[ie];if(0>>1;iei($e,H))Cei(Be,$e)?(B[ie]=Be,B[Ce]=H,ie=Ce):(B[ie]=$e,B[he]=H,ie=he);else if(Cei(Be,H))B[ie]=Be,B[Ce]=H,ie=Ce;else break e}}return V}function i(B,V){var H=B.sortIndex-V.sortIndex;return H!==0?H:B.id-V.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var u=Date,l=u.now();t.unstable_now=function(){return u.now()-l}}var d=[],h=[],g=1,y=null,w=3,v=!1,C=!1,E=!1,$=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function R(B){for(var V=n(h);V!==null;){if(V.callback===null)r(h);else if(V.startTime<=B)r(h),V.sortIndex=V.expirationTime,e(d,V);else break;V=n(h)}}function k(B){if(E=!1,R(B),!C)if(n(d)!==null)C=!0,be();else{var V=n(h);V!==null&&we(k,V.startTime-B)}}var P=!1,L=-1,F=5,q=-1;function Y(){return!(t.unstable_now()-qB&&Y());){var ie=y.callback;if(typeof ie=="function"){y.callback=null,w=y.priorityLevel;var G=ie(y.expirationTime<=B);if(B=t.unstable_now(),typeof G=="function"){y.callback=G,R(B),V=!0;break t}y===n(d)&&r(d),R(B)}else r(d);y=n(d)}if(y!==null)V=!0;else{var J=n(h);J!==null&&we(k,J.startTime-B),V=!1}}break e}finally{y=null,w=H,v=!1}V=void 0}}finally{V?ue():P=!1}}}var ue;if(typeof _=="function")ue=function(){_(X)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,te=me.port2;me.port1.onmessage=X,ue=function(){te.postMessage(null)}}else ue=function(){$(X,0)};function be(){P||(P=!0,ue())}function we(B,V){L=$(function(){B(t.unstable_now())},V)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(B){B.callback=null},t.unstable_continueExecution=function(){C||v||(C=!0,be())},t.unstable_forceFrameRate=function(B){0>B||125ie?(B.sortIndex=H,e(h,B),n(d)===null&&B===n(h)&&(E?(O(L),L=-1):E=!0,we(k,H-ie))):(B.sortIndex=G,e(d,B),C||v||(C=!0,be())),B},t.unstable_shouldYield=Y,t.unstable_wrapCallback=function(B){var V=w;return function(){var H=w;w=V;try{return B.apply(this,arguments)}finally{w=H}}}})(oC)),oC}var e4;function BD(){return e4||(e4=1,aC.exports=jD()),aC.exports}var sC={exports:{}},Pi={};/** + */var d4;function ZD(){return d4||(d4=1,(function(t){function e(B,V){var H=B.length;B.push(V);e:for(;0>>1,G=B[ie];if(0>>1;iei($e,H))Cei(Be,$e)?(B[ie]=Be,B[Ce]=H,ie=Ce):(B[ie]=$e,B[he]=H,ie=he);else if(Cei(Be,H))B[ie]=Be,B[Ce]=H,ie=Ce;else break e}}return V}function i(B,V){var H=B.sortIndex-V.sortIndex;return H!==0?H:B.id-V.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var u=Date,l=u.now();t.unstable_now=function(){return u.now()-l}}var d=[],h=[],g=1,y=null,w=3,v=!1,C=!1,E=!1,$=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function R(B){for(var V=n(h);V!==null;){if(V.callback===null)r(h);else if(V.startTime<=B)r(h),V.sortIndex=V.expirationTime,e(d,V);else break;V=n(h)}}function k(B){if(E=!1,R(B),!C)if(n(d)!==null)C=!0,be();else{var V=n(h);V!==null&&we(k,V.startTime-B)}}var P=!1,L=-1,F=5,q=-1;function Y(){return!(t.unstable_now()-qB&&Y());){var ie=y.callback;if(typeof ie=="function"){y.callback=null,w=y.priorityLevel;var G=ie(y.expirationTime<=B);if(B=t.unstable_now(),typeof G=="function"){y.callback=G,R(B),V=!0;break t}y===n(d)&&r(d),R(B)}else r(d);y=n(d)}if(y!==null)V=!0;else{var Q=n(h);Q!==null&&we(k,Q.startTime-B),V=!1}}break e}finally{y=null,w=H,v=!1}V=void 0}}finally{V?ue():P=!1}}}var ue;if(typeof _=="function")ue=function(){_(X)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,te=me.port2;me.port1.onmessage=X,ue=function(){te.postMessage(null)}}else ue=function(){$(X,0)};function be(){P||(P=!0,ue())}function we(B,V){L=$(function(){B(t.unstable_now())},V)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(B){B.callback=null},t.unstable_continueExecution=function(){C||v||(C=!0,be())},t.unstable_forceFrameRate=function(B){0>B||125ie?(B.sortIndex=H,e(h,B),n(d)===null&&B===n(h)&&(E?(O(L),L=-1):E=!0,we(k,H-ie))):(B.sortIndex=G,e(d,B),C||v||(C=!0,be())),B},t.unstable_shouldYield=Y,t.unstable_wrapCallback=function(B){var V=w;return function(){var H=w;w=V;try{return B.apply(this,arguments)}finally{w=H}}}})(yC)),yC}var h4;function eF(){return h4||(h4=1,gC.exports=ZD()),gC.exports}var vC={exports:{}},Ii={};/** * @license React * react-dom.production.js * @@ -30,7 +30,7 @@ var MD=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Nhe=MD((Za,eo * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var t4;function qD(){if(t4)return Pi;t4=1;var t=rO();function e(d){var h="https://react.dev/errors/"+d;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),sC.exports=qD(),sC.exports}/** + */var p4;function tF(){if(p4)return Ii;p4=1;var t=gO();function e(d){var h="https://react.dev/errors/"+d;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),vC.exports=tF(),vC.exports}/** * @license React * react-dom-client.production.js * @@ -38,31 +38,31 @@ var MD=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Nhe=MD((Za,eo * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r4;function HD(){if(r4)return n0;r4=1;var t=BD(),e=rO(),n=o9();function r(a){var s="https://react.dev/errors/"+a;if(1)":-1b||Z[m]!==se[b]){var _e=` `+Z[m].replace(" at new "," at ");return a.displayName&&_e.includes("")&&(_e=_e.replace("",a.displayName)),_e}while(1<=m&&0<=b);break}}}finally{be=!1,Error.prepareStackTrace=c}return(c=a?a.displayName||a.name:"")?te(c):""}function B(a){switch(a.tag){case 26:case 27:case 5:return te(a.type);case 16:return te("Lazy");case 13:return te("Suspense");case 19:return te("SuspenseList");case 0:case 15:return a=we(a.type,!1),a;case 11:return a=we(a.type.render,!1),a;case 1:return a=we(a.type,!0),a;default:return""}}function V(a){try{var s="";do s+=B(a),a=a.return;while(a);return s}catch(c){return` Error generating stack: `+c.message+` -`+c.stack}}function H(a){var s=a,c=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(c=s.return),a=s.return;while(a)}return s.tag===3?c:null}function ie(a){if(a.tag===13){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function G(a){if(H(a)!==a)throw Error(r(188))}function J(a){var s=a.alternate;if(!s){if(s=H(a),s===null)throw Error(r(188));return s!==a?null:a}for(var c=a,m=s;;){var b=c.return;if(b===null)break;var x=b.alternate;if(x===null){if(m=b.return,m!==null){c=m;continue}break}if(b.child===x.child){for(x=b.child;x;){if(x===c)return G(b),a;if(x===m)return G(b),s;x=x.sibling}throw Error(r(188))}if(c.return!==m.return)c=b,m=x;else{for(var D=!1,W=b.child;W;){if(W===c){D=!0,c=b,m=x;break}if(W===m){D=!0,m=b,c=x;break}W=W.sibling}if(!D){for(W=x.child;W;){if(W===c){D=!0,c=x,m=b;break}if(W===m){D=!0,m=x,c=b;break}W=W.sibling}if(!D)throw Error(r(189))}}if(c.alternate!==m)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?a:s}function he(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=he(a),s!==null)return s;a=a.sibling}return null}var $e=Array.isArray,Ce=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Be={pending:!1,data:null,method:null,action:null},Ie=[],tt=-1;function ke(a){return{current:a}}function Ke(a){0>tt||(a.current=Ie[tt],Ie[tt]=null,tt--)}function He(a,s){tt++,Ie[tt]=a.current,a.current=s}var ut=ke(null),pt=ke(null),bt=ke(null),gt=ke(null);function Ut(a,s){switch(He(bt,s),He(pt,a),He(ut,null),a=s.nodeType,a){case 9:case 11:s=(s=s.documentElement)&&(s=s.namespaceURI)?m2(s):0;break;default:if(a=a===8?s.parentNode:s,s=a.tagName,a=a.namespaceURI)a=m2(a),s=g2(a,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}Ke(ut),He(ut,s)}function Gt(){Ke(ut),Ke(pt),Ke(bt)}function Tt(a){a.memoizedState!==null&&He(gt,a);var s=ut.current,c=g2(s,a.type);s!==c&&(He(pt,a),He(ut,c))}function en(a){pt.current===a&&(Ke(ut),Ke(pt)),gt.current===a&&(Ke(gt),Vd._currentValue=Be)}var xn=Object.prototype.hasOwnProperty,Dt=t.unstable_scheduleCallback,Pt=t.unstable_cancelCallback,pe=t.unstable_shouldYield,ze=t.unstable_requestPaint,Ge=t.unstable_now,Qe=t.unstable_getCurrentPriorityLevel,ht=t.unstable_ImmediatePriority,j=t.unstable_UserBlockingPriority,A=t.unstable_NormalPriority,M=t.unstable_LowPriority,Q=t.unstable_IdlePriority,re=t.log,ge=t.unstable_setDisableYieldValue,Ee=null,rt=null;function Wt(a){if(rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Ee,a,void 0,(a.current.flags&128)===128)}catch{}}function ae(a){if(typeof re=="function"&&ge(a),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Ee,a)}catch{}}var ce=Math.clz32?Math.clz32:ln,nt=Math.log,Ht=Math.LN2;function ln(a){return a>>>=0,a===0?32:31-(nt(a)/Ht|0)|0}var wt=128,jr=4194304;function tn(a){var s=a&42;if(s!==0)return s;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function er(a,s){var c=a.pendingLanes;if(c===0)return 0;var m=0,b=a.suspendedLanes,x=a.pingedLanes,D=a.warmLanes;a=a.finishedLanes!==0;var W=c&134217727;return W!==0?(c=W&~b,c!==0?m=tn(c):(x&=W,x!==0?m=tn(x):a||(D=W&~D,D!==0&&(m=tn(D))))):(W=c&~b,W!==0?m=tn(W):x!==0?m=tn(x):a||(D=c&~D,D!==0&&(m=tn(D)))),m===0?0:s!==0&&s!==m&&(s&b)===0&&(b=m&-m,D=s&-s,b>=D||b===32&&(D&4194176)!==0)?s:m}function On(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}function Fi(a,s){switch(a){case 1:case 2:case 4:case 8:return s+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ca(){var a=wt;return wt<<=1,(wt&4194176)===0&&(wt=128),a}function Ar(){var a=jr;return jr<<=1,(jr&62914560)===0&&(jr=4194304),a}function Fs(a){for(var s=[],c=0;31>c;c++)s.push(a);return s}function ro(a,s){a.pendingLanes|=s,s!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Ls(a,s,c,m,b,x){var D=a.pendingLanes;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=c,a.entangledLanes&=c,a.errorRecoveryDisabledLanes&=c,a.shellSuspendCounter=0;var W=a.entanglements,Z=a.expirationTimes,se=a.hiddenUpdates;for(c=D&~c;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ll=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),em={},Jf={};function fy(a){return xn.call(Jf,a)?!0:xn.call(em,a)?!1:Ll.test(a)?Jf[a]=!0:(em[a]=!0,!1)}function Iu(a,s,c){if(fy(s))if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":a.removeAttribute(s);return;case"boolean":var m=s.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){a.removeAttribute(s);return}}a.setAttribute(s,""+c)}}function Oi(a,s,c){if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(s);return}a.setAttribute(s,""+c)}}function fa(a,s,c,m){if(m===null)a.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(c);return}a.setAttributeNS(s,c,""+m)}}function Zr(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ul(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Bs(a){var s=Ul(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,s),m=""+a[s];if(!a.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var b=c.get,x=c.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return b.call(this)},set:function(D){m=""+D,x.call(this,D)}}),Object.defineProperty(a,s,{enumerable:c.enumerable}),{getValue:function(){return m},setValue:function(D){m=""+D},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function oo(a){a._valueTracker||(a._valueTracker=Bs(a))}function so(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var c=s.getValue(),m="";return a&&(m=Ul(a)?a.checked?"true":"false":a.value),a=m,a!==c?(s.setValue(a),!0):!1}function Nu(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var dy=/[\n"\\]/g;function ei(a){return a.replace(dy,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function jl(a,s,c,m,b,x,D,W){a.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?a.type=D:a.removeAttribute("type"),s!=null?D==="number"?(s===0&&a.value===""||a.value!=s)&&(a.value=""+Zr(s)):a.value!==""+Zr(s)&&(a.value=""+Zr(s)):D!=="submit"&&D!=="reset"||a.removeAttribute("value"),s!=null?Xf(a,D,Zr(s)):c!=null?Xf(a,D,Zr(c)):m!=null&&a.removeAttribute("value"),b==null&&x!=null&&(a.defaultChecked=!!x),b!=null&&(a.checked=b&&typeof b!="function"&&typeof b!="symbol"),W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"?a.name=""+Zr(W):a.removeAttribute("name")}function Bl(a,s,c,m,b,x,D,W){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(a.type=x),s!=null||c!=null){if(!(x!=="submit"&&x!=="reset"||s!=null))return;c=c!=null?""+Zr(c):"",s=s!=null?""+Zr(s):c,W||s===a.value||(a.value=s),a.defaultValue=s}m=m??b,m=typeof m!="function"&&typeof m!="symbol"&&!!m,a.checked=W?a.checked:!!m,a.defaultChecked=!!m,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(a.name=D)}function Xf(a,s,c){s==="number"&&Nu(a.ownerDocument)===a||a.defaultValue===""+c||(a.defaultValue=""+c)}function Qo(a,s,c,m){if(a=a.options,s){s={};for(var b=0;b=Jl),lm=" ",yy=!1;function J1(a,s){switch(a){case"keyup":return Ql.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cm(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Vs=!1;function n3(a,s){switch(a){case"compositionend":return cm(s);case"keypress":return s.which!==32?null:(yy=!0,lm);case"textInput":return a=s.data,a===lm&&yy?null:a;default:return null}}function X1(a,s){if(Vs)return a==="compositionend"||!gy&&J1(a,s)?(a=rm(),uo=zs=Aa=null,Vs=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1=s)return{node:c,offset:s-a};a=m}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=ha(c)}}function ib(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?ib(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function ab(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var s=Nu(a.document);s instanceof a.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)a=s.contentWindow;else break;s=Nu(a.document)}return s}function wy(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}function o3(a,s){var c=ab(s);s=a.focusedElem;var m=a.selectionRange;if(c!==s&&s&&s.ownerDocument&&ib(s.ownerDocument.documentElement,s)){if(m!==null&&wy(s)){if(a=m.start,c=m.end,c===void 0&&(c=a),"selectionStart"in s)s.selectionStart=a,s.selectionEnd=Math.min(c,s.value.length);else if(c=(a=s.ownerDocument||document)&&a.defaultView||window,c.getSelection){c=c.getSelection();var b=s.textContent.length,x=Math.min(m.start,b);m=m.end===void 0?x:Math.min(m.end,b),!c.extend&&x>m&&(b=m,m=x,x=b),b=by(s,x);var D=by(s,m);b&&D&&(c.rangeCount!==1||c.anchorNode!==b.node||c.anchorOffset!==b.offset||c.focusNode!==D.node||c.focusOffset!==D.offset)&&(a=a.createRange(),a.setStart(b.node,b.offset),c.removeAllRanges(),x>m?(c.addRange(a),c.extend(D.node,D.offset)):(a.setEnd(D.node,D.offset),c.addRange(a)))}}for(a=[],c=s;c=c.parentNode;)c.nodeType===1&&a.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,Ra=null,le=null,xe=null,Se=!1;function Xe(a,s,c){var m=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Se||Ra==null||Ra!==Nu(m)||(m=Ra,"selectionStart"in m&&wy(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),xe&&fo(xe,m)||(xe=m,m=Jm(le,"onSelect"),0>=D,b-=D,ya=1<<32-ce(s)+b|c<vt?(un=st,st=null):un=st.sibling;var Zt=ve(de,st,ye[vt],Ne);if(Zt===null){st===null&&(st=un);break}a&&st&&Zt.alternate===null&&s(de,st),oe=x(Zt,oe,vt),jt===null?et=Zt:jt.sibling=Zt,jt=Zt,st=un}if(vt===ye.length)return c(de,st),$t&&rs(de,vt),et;if(st===null){for(;vtvt?(un=st,st=null):un=st.sibling;var yu=ve(de,st,Zt.value,Ne);if(yu===null){st===null&&(st=un);break}a&&st&&yu.alternate===null&&s(de,st),oe=x(yu,oe,vt),jt===null?et=yu:jt.sibling=yu,jt=yu,st=un}if(Zt.done)return c(de,st),$t&&rs(de,vt),et;if(st===null){for(;!Zt.done;vt++,Zt=ye.next())Zt=Le(de,Zt.value,Ne),Zt!==null&&(oe=x(Zt,oe,vt),jt===null?et=Zt:jt.sibling=Zt,jt=Zt);return $t&&rs(de,vt),et}for(st=m(st);!Zt.done;vt++,Zt=ye.next())Zt=Oe(st,de,vt,Zt.value,Ne),Zt!==null&&(a&&Zt.alternate!==null&&st.delete(Zt.key===null?vt:Zt.key),oe=x(Zt,oe,vt),jt===null?et=Zt:jt.sibling=Zt,jt=Zt);return a&&st.forEach(function(J3){return s(de,J3)}),$t&&rs(de,vt),et}function zn(de,oe,ye,Ne){if(typeof ye=="object"&&ye!==null&&ye.type===d&&ye.key===null&&(ye=ye.props.children),typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case u:e:{for(var et=ye.key;oe!==null;){if(oe.key===et){if(et=ye.type,et===d){if(oe.tag===7){c(de,oe.sibling),Ne=b(oe,ye.props.children),Ne.return=de,de=Ne;break e}}else if(oe.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===_&&ld(et)===oe.type){c(de,oe.sibling),Ne=b(oe,ye.props),z(Ne,ye),Ne.return=de,de=Ne;break e}c(de,oe);break}else s(de,oe);oe=oe.sibling}ye.type===d?(Ne=Ju(ye.props.children,de.mode,Ne,ye.key),Ne.return=de,de=Ne):(Ne=Id(ye.type,ye.key,ye.props,null,de.mode,Ne),z(Ne,ye),Ne.return=de,de=Ne)}return D(de);case l:e:{for(et=ye.key;oe!==null;){if(oe.key===et)if(oe.tag===4&&oe.stateNode.containerInfo===ye.containerInfo&&oe.stateNode.implementation===ye.implementation){c(de,oe.sibling),Ne=b(oe,ye.children||[]),Ne.return=de,de=Ne;break e}else{c(de,oe);break}else s(de,oe);oe=oe.sibling}Ne=pv(ye,de.mode,Ne),Ne.return=de,de=Ne}return D(de);case _:return et=ye._init,ye=et(ye._payload),zn(de,oe,ye,Ne)}if($e(ye))return at(de,oe,ye,Ne);if(L(ye)){if(et=L(ye),typeof et!="function")throw Error(r(150));return ye=et.call(ye),Et(de,oe,ye,Ne)}if(typeof ye.then=="function")return zn(de,oe,ud(ye),Ne);if(ye.$$typeof===v)return zn(de,oe,jm(de,ye),Ne);us(de,ye)}return typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint"?(ye=""+ye,oe!==null&&oe.tag===6?(c(de,oe.sibling),Ne=b(oe,ye),Ne.return=de,de=Ne):(c(de,oe),Ne=hv(ye,de.mode,Ne),Ne.return=de,de=Ne),D(de)):c(de,oe)}return function(de,oe,ye,Ne){try{ss=0;var et=zn(de,oe,ye,Ne);return os=null,et}catch(st){if(st===as)throw st;var jt=ea(29,st,null,de.mode);return jt.lanes=Ne,jt.return=de,jt}finally{}}}var At=Wi(!0),db=Wi(!1),ic=ke(null),Sm=ke(0);function Ys(a,s){a=bs,He(Sm,a),He(ic,s),bs=a|s.baseLanes}function xy(){He(Sm,bs),He(ic,ic.current)}function Oy(){bs=Sm.current,Ke(ic),Ke(Sm)}var ba=ke(null),vo=null;function Qs(a){var s=a.alternate;He(pr,pr.current&1),He(ba,a),vo===null&&(s===null||ic.current!==null||s.memoizedState!==null)&&(vo=a)}function bo(a){if(a.tag===22){if(He(pr,pr.current),He(ba,a),vo===null){var s=a.alternate;s!==null&&s.memoizedState!==null&&(vo=a)}}else Js()}function Js(){He(pr,pr.current),He(ba,ba.current)}function ls(a){Ke(ba),vo===a&&(vo=null),Ke(pr)}var pr=ke(0);function Cm(a){for(var s=a;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var l3=typeof AbortController<"u"?AbortController:function(){var a=[],s=this.signal={aborted:!1,addEventListener:function(c,m){a.push(m)}};this.abort=function(){s.aborted=!0,a.forEach(function(c){return c()})}},cs=t.unstable_scheduleCallback,c3=t.unstable_NormalPriority,mr={$$typeof:v,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ty(){return{controller:new l3,data:new Map,refCount:0}}function cd(a){a.refCount--,a.refCount===0&&cs(c3,function(){a.controller.abort()})}var fd=null,fs=0,ac=0,oc=null;function Na(a,s){if(fd===null){var c=fd=[];fs=0,ac=Pv(),oc={status:"pending",value:void 0,then:function(m){c.push(m)}}}return fs++,s.then(hb,hb),s}function hb(){if(--fs===0&&fd!==null){oc!==null&&(oc.status="fulfilled");var a=fd;fd=null,ac=0,oc=null;for(var s=0;sx?x:8;var D=Y.T,W={};Y.T=W,pc(a,!1,s,c);try{var Z=b(),se=Y.S;if(se!==null&&se(W,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var _e=f3(Z,m);vd(a,s,_e,na(a))}else vd(a,s,m,na(a))}catch(Le){vd(a,s,{then:function(){},status:"rejected",reason:Le},na())}finally{Ce.p=x,Y.T=D}}function h3(){}function yd(a,s,c,m){if(a.tag!==5)throw Error(r(476));var b=Mt(a).queue;Pm(a,b,s,Be,c===null?h3:function(){return Tb(a),c(m)})}function Mt(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:Be,baseState:Be,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:Be},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:c},next:null},a.memoizedState=s,a=a.alternate,a!==null&&(a.memoizedState=s),s}function Tb(a){var s=Mt(a).next.queue;vd(a,s,{},na())}function Hy(){return Gr(Vd)}function hc(){return nr().memoizedState}function zy(){return nr().memoizedState}function p3(a){for(var s=a.return;s!==null;){switch(s.tag){case 24:case 3:var c=na();a=Ua(c);var m=Qi(s,a,c);m!==null&&(Kr(m,s,c),lt(m,s,c)),s={cache:Ty()},a.payload=s;return}s=s.return}}function m3(a,s,c){var m=na();c={lane:m,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},mc(a)?Vy(s,c):(c=ho(a,s,c,m),c!==null&&(Kr(c,a,m),Gy(c,s,m)))}function Yi(a,s,c){var m=na();vd(a,s,c,m)}function vd(a,s,c,m){var b={lane:m,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(mc(a))Vy(s,b);else{var x=a.alternate;if(a.lanes===0&&(x===null||x.lanes===0)&&(x=s.lastRenderedReducer,x!==null))try{var D=s.lastRenderedState,W=x(D,c);if(b.hasEagerState=!0,b.eagerState=W,Vi(W,D))return Du(a,s,b,0),$n===null&&gm(),!1}catch{}finally{}if(c=ho(a,s,b,m),c!==null)return Kr(c,a,m),Gy(c,s,m),!0}return!1}function pc(a,s,c,m){if(m={lane:2,revertLane:Pv(),action:m,hasEagerState:!1,eagerState:null,next:null},mc(a)){if(s)throw Error(r(479))}else s=ho(a,c,m,2),s!==null&&Kr(s,a,2)}function mc(a){var s=a.alternate;return a===Ft||s!==null&&s===Ft}function Vy(a,s){sc=Vu=!0;var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}function Gy(a,s,c){if((c&4194176)!==0){var m=s.lanes;m&=a.pendingLanes,c|=m,s.lanes=c,Xr(a,c)}}var Kn={readContext:Gr,use:hd,useCallback:an,useContext:an,useEffect:an,useImperativeHandle:an,useLayoutEffect:an,useInsertionEffect:an,useMemo:an,useReducer:an,useRef:an,useState:an,useDebugValue:an,useDeferredValue:an,useTransition:an,useSyncExternalStore:an,useId:an};Kn.useCacheRefresh=an,Kn.useMemoCache=an,Kn.useHostTransitionStatus=an,Kn.useFormState=an,Kn.useActionState=an,Kn.useOptimistic=an;var _i={readContext:Gr,use:hd,useCallback:function(a,s){return Ti().memoizedState=[a,s===void 0?null:s],a},useContext:Gr,useEffect:Fy,useImperativeHandle:function(a,s,c){c=c!=null?c.concat([a]):null,dc(4194308,4,Ly.bind(null,s,a),c)},useLayoutEffect:function(a,s){return dc(4194308,4,a,s)},useInsertionEffect:function(a,s){dc(4,2,a,s)},useMemo:function(a,s){var c=Ti();s=s===void 0?null:s;var m=a();if(Zs){ae(!0);try{a()}finally{ae(!1)}}return c.memoizedState=[m,s],m},useReducer:function(a,s,c){var m=Ti();if(c!==void 0){var b=c(s);if(Zs){ae(!0);try{c(s)}finally{ae(!1)}}}else b=s;return m.memoizedState=m.baseState=b,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b},m.queue=a,a=a.dispatch=m3.bind(null,Ft,a),[m.memoizedState,a]},useRef:function(a){var s=Ti();return a={current:a},s.memoizedState=a},useState:function(a){a=Ny(a);var s=a.queue,c=Yi.bind(null,Ft,s);return s.dispatch=c,[a.memoizedState,c]},useDebugValue:jy,useDeferredValue:function(a,s){var c=Ti();return gd(c,a,s)},useTransition:function(){var a=Ny(!1);return a=Pm.bind(null,Ft,a.queue,!0,!1),Ti().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,s,c){var m=Ft,b=Ti();if($t){if(c===void 0)throw Error(r(407));c=c()}else{if(c=s(),$n===null)throw Error(r(349));(Xt&60)!==0||Tm(m,s,c)}b.memoizedState=c;var x={value:c,getSnapshot:s};return b.queue=x,Fy(gb.bind(null,m,x,a),[a]),m.flags|=2048,nu(9,mb.bind(null,m,x,c,s),{destroy:void 0},null),c},useId:function(){var a=Ti(),s=$n.identifierPrefix;if($t){var c=va,m=ya;c=(m&~(1<<32-ce(m)-1)).toString(32)+c,s=":"+s+"R"+c,c=$m++,0 title"))),Nr(x,m,c),x[Nn]=a,Mn(x),m=x;break e;case"link":var D=C2("link","href",b).get(m+(c.href||""));if(D){for(var W=0;W<\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof m.is=="string"?b.createElement("select",{is:m.is}):b.createElement("select"),m.multiple?a.multiple=!0:m.size&&(a.size=m.size);break;default:a=typeof m.is=="string"?b.createElement(c,{is:m.is}):b.createElement(c)}}a[Nn]=s,a[An]=m;e:for(b=s.child;b!==null;){if(b.tag===5||b.tag===6)a.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===s)break e;for(;b.sibling===null;){if(b.return===null||b.return===s)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}s.stateNode=a;e:switch(Nr(a,c,m),c){case"button":case"input":case"select":case"textarea":a=!!m.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ys(s)}}return Bn(s),s.flags&=-16777217,null;case 6:if(a&&s.stateNode!=null)a.memoizedProps!==m&&ys(s);else{if(typeof m!="string"&&s.stateNode===null)throw Error(r(166));if(a=bt.current,Hu(s)){if(a=s.stateNode,c=s.memoizedProps,m=null,b=ri,b!==null)switch(b.tag){case 27:case 5:m=b.memoizedProps}a[Nn]=s,a=!!(a.nodeValue===c||m!==null&&m.suppressHydrationWarning===!0||Ot(a.nodeValue,c)),a||qu(s)}else a=Zm(a).createTextNode(m),a[Nn]=s,s.stateNode=a}return Bn(s),null;case 13:if(m=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(b=Hu(s),m!==null&&m.dehydrated!==null){if(a===null){if(!b)throw Error(r(318));if(b=s.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[Nn]=s}else yo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Bn(s),b=!1}else Ia!==null&&(Ac(Ia),Ia=null),b=!0;if(!b)return s.flags&256?(ls(s),s):(ls(s),null)}if(ls(s),(s.flags&128)!==0)return s.lanes=c,s;if(c=m!==null,a=a!==null&&a.memoizedState!==null,c){m=s.child,b=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(b=m.alternate.memoizedState.cachePool.pool);var x=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(x=m.memoizedState.cachePool.pool),x!==b&&(m.flags|=2048)}return c!==a&&c&&(s.child.flags|=8192),oi(s,s.updateQueue),Bn(s),null;case 4:return Gt(),a===null&&Dv(s.stateNode.containerInfo),Bn(s),null;case 10:return So(s.type),Bn(s),null;case 19:if(Ke(pr),b=s.memoizedState,b===null)return Bn(s),null;if(m=(s.flags&128)!==0,x=b.rendering,x===null)if(m)Nd(b,!1);else{if(Qn!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(x=Cm(a),x!==null){for(s.flags|=128,Nd(b,!1),a=x.updateQueue,s.updateQueue=a,oi(s,a),s.subtreeFlags=0,a=c,c=s.child;c!==null;)Gb(c,a),c=c.sibling;return He(pr,pr.current&1|2),s.child}a=a.sibling}b.tail!==null&&Ge()>Vm&&(s.flags|=128,m=!0,Nd(b,!1),s.lanes=4194304)}else{if(!m)if(a=Cm(x),a!==null){if(s.flags|=128,m=!0,a=a.updateQueue,s.updateQueue=a,oi(s,a),Nd(b,!0),b.tail===null&&b.tailMode==="hidden"&&!x.alternate&&!$t)return Bn(s),null}else 2*Ge()-b.renderingStartTime>Vm&&c!==536870912&&(s.flags|=128,m=!0,Nd(b,!1),s.lanes=4194304);b.isBackwards?(x.sibling=s.child,s.child=x):(a=b.last,a!==null?a.sibling=x:s.child=x,b.last=x)}return b.tail!==null?(s=b.tail,b.rendering=s,b.tail=s.sibling,b.renderingStartTime=Ge(),s.sibling=null,a=pr.current,He(pr,m?a&1|2:a&1),s):(Bn(s),null);case 22:case 23:return ls(s),Oy(),m=s.memoizedState!==null,a!==null?a.memoizedState!==null!==m&&(s.flags|=8192):m&&(s.flags|=8192),m?(c&536870912)!==0&&(s.flags&128)===0&&(Bn(s),s.subtreeFlags&6&&(s.flags|=8192)):Bn(s),c=s.updateQueue,c!==null&&oi(s,c.retryQueue),c=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),m=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==c&&(s.flags|=2048),a!==null&&Ke(zu),null;case 24:return c=null,a!==null&&(c=a.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),So(mr),Bn(s),null;case 25:return null}throw Error(r(156,s.tag))}function Yb(a,s){switch(Ey(s),s.tag){case 1:return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return So(mr),Gt(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 26:case 27:case 5:return en(s),null;case 13:if(ls(s),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(r(340));yo()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return Ke(pr),null;case 4:return Gt(),null;case 10:return So(s.type),null;case 22:case 23:return ls(s),Oy(),a!==null&&Ke(zu),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 24:return So(mr),null;case 25:return null;default:return null}}function Qb(a,s){switch(Ey(s),s.tag){case 3:So(mr),Gt();break;case 26:case 27:case 5:en(s);break;case 4:Gt();break;case 13:ls(s);break;case 19:Ke(pr);break;case 10:So(s.type);break;case 22:case 23:ls(s),Oy(),a!==null&&Ke(zu);break;case 24:So(mr)}}var b3={getCacheForType:function(a){var s=Gr(mr),c=s.data.get(a);return c===void 0&&(c=a(),s.data.set(a,c)),c}},w3=typeof WeakMap=="function"?WeakMap:Map,qn=0,$n=null,qt=null,Xt=0,Pn=0,ta=null,vs=!1,Tc=!1,mv=!1,bs=0,Qn=0,fu=0,Xu=0,gv=0,Sa=0,_c=0,Md=null,Oo=null,yv=!1,vv=0,Vm=1/0,Gm=null,To=null,kd=!1,Zu=null,Dd=0,bv=0,wv=null,Fd=0,Sv=null;function na(){if((qn&2)!==0&&Xt!==0)return Xt&-Xt;if(Y.T!==null){var a=ac;return a!==0?a:Pv()}return Li()}function Jb(){Sa===0&&(Sa=(Xt&536870912)===0||$t?ca():536870912);var a=ba.current;return a!==null&&(a.flags|=32),Sa}function Kr(a,s,c){(a===$n&&Pn===2||a.cancelPendingCommit!==null)&&(Rc(a,0),ws(a,Xt,Sa,!1)),ro(a,c),((qn&2)===0||a!==$n)&&(a===$n&&((qn&2)===0&&(Xu|=c),Qn===4&&ws(a,Xt,Sa,!1)),qa(a))}function Xb(a,s,c){if((qn&6)!==0)throw Error(r(327));var m=!c&&(s&60)===0&&(s&a.expiredLanes)===0||On(a,s),b=m?$3(a,s):Ev(a,s,!0),x=m;do{if(b===0){Tc&&!m&&ws(a,s,0,!1);break}else if(b===6)ws(a,s,0,!vs);else{if(c=a.current.alternate,x&&!S3(c)){b=Ev(a,s,!1),x=!1;continue}if(b===2){if(x=s,a.errorRecoveryDisabledLanes&x)var D=0;else D=a.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){s=D;e:{var W=a;b=Md;var Z=W.current.memoizedState.isDehydrated;if(Z&&(Rc(W,D).flags|=256),D=Ev(W,D,!1),D!==2){if(mv&&!Z){W.errorRecoveryDisabledLanes|=x,Xu|=x,b=4;break e}x=Oo,Oo=b,x!==null&&Ac(x)}b=D}if(x=!1,b!==2)continue}}if(b===1){Rc(a,0),ws(a,s,0,!0);break}e:{switch(m=a,b){case 0:case 1:throw Error(r(345));case 4:if((s&4194176)===s){ws(m,s,Sa,!vs);break e}break;case 2:Oo=null;break;case 3:case 5:break;default:throw Error(r(329))}if(m.finishedWork=c,m.finishedLanes=s,(s&62914560)===s&&(x=vv+300-Ge(),10c?32:c,Y.T=null,Zu===null)var x=!1;else{c=wv,wv=null;var D=Zu,W=Dd;if(Zu=null,Dd=0,(qn&6)!==0)throw Error(r(331));var Z=qn;if(qn|=4,zb(D.current),Bb(D,D.current,W,c),qn=Z,nl(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Ee,D)}catch{}x=!0}return x}finally{Ce.p=b,Y.T=m,s2(a,s)}}return!1}function u2(a,s,c){s=ni(c,s),s=wd(a.stateNode,s,2),a=Qi(a,s,2),a!==null&&(ro(a,2),qa(a))}function Tn(a,s,c){if(a.tag===3)u2(a,a,c);else for(;s!==null;){if(s.tag===3){u2(s,a,c);break}else if(s.tag===1){var m=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(To===null||!To.has(m))){a=ni(c,a),c=Ab(2),m=Qi(s,c,2),m!==null&&(Rb(c,m,s,a),ro(m,2),qa(m));break}}s=s.return}}function xv(a,s,c){var m=a.pingCache;if(m===null){m=a.pingCache=new w3;var b=new Set;m.set(s,b)}else b=m.get(s),b===void 0&&(b=new Set,m.set(s,b));b.has(c)||(mv=!0,b.add(c),a=O3.bind(null,a,s,c),s.then(a,a))}function O3(a,s,c){var m=a.pingCache;m!==null&&m.delete(s),a.pingedLanes|=a.suspendedLanes&c,a.warmLanes&=~c,$n===a&&(Xt&c)===c&&(Qn===4||Qn===3&&(Xt&62914560)===Xt&&300>Ge()-vv?(qn&2)===0&&Rc(a,0):gv|=c,_c===Xt&&(_c=0)),qa(a)}function l2(a,s){s===0&&(s=Ar()),a=Pa(a,s),a!==null&&(ro(a,s),qa(a))}function T3(a){var s=a.memoizedState,c=0;s!==null&&(c=s.retryLane),l2(a,c)}function _3(a,s){var c=0;switch(a.tag){case 13:var m=a.stateNode,b=a.memoizedState;b!==null&&(c=b.retryLane);break;case 19:m=a.stateNode;break;case 22:m=a.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(s),l2(a,c)}function A3(a,s){return Dt(a,s)}var Km=null,Pc=null,Ov=!1,tl=!1,Tv=!1,du=0;function qa(a){a!==Pc&&a.next===null&&(Pc===null?Km=Pc=a:Pc=Pc.next=a),tl=!0,Ov||(Ov=!0,R3(c2))}function nl(a,s){if(!Tv&&tl){Tv=!0;do for(var c=!1,m=Km;m!==null;){if(a!==0){var b=m.pendingLanes;if(b===0)var x=0;else{var D=m.suspendedLanes,W=m.pingedLanes;x=(1<<31-ce(42|a)+1)-1,x&=b&~(D&~W),x=x&201326677?x&201326677|1:x?x|2:0}x!==0&&(c=!0,Rv(m,x))}else x=Xt,x=er(m,m===$n?x:0),(x&3)===0||On(m,x)||(c=!0,Rv(m,x));m=m.next}while(c);Tv=!1}}function c2(){tl=Ov=!1;var a=0;du!==0&&(Cs()&&(a=du),du=0);for(var s=Ge(),c=null,m=Km;m!==null;){var b=m.next,x=_v(m,s);x===0?(m.next=null,c===null?Km=b:c.next=b,b===null&&(Pc=c)):(c=m,(a!==0||(x&3)!==0)&&(tl=!0)),m=b}nl(a)}function _v(a,s){for(var c=a.suspendedLanes,m=a.pingedLanes,b=a.expirationTimes,x=a.pendingLanes&-62914561;0"u"?null:document;function b2(a,s,c){var m=za;if(m&&typeof s=="string"&&s){var b=ei(s);b='link[rel="'+a+'"][href="'+b+'"]',typeof c=="string"&&(b+='[crossorigin="'+c+'"]'),tg.has(b)||(tg.add(b),a={rel:a,crossOrigin:c,href:s},m.querySelector(b)===null&&(s=m.createElement("link"),Nr(s,"link",a),Mn(s),m.head.appendChild(s)))}}function D3(a){_o.D(a),b2("dns-prefetch",a,null)}function F3(a,s){_o.C(a,s),b2("preconnect",a,s)}function L3(a,s,c){_o.L(a,s,c);var m=za;if(m&&a&&s){var b='link[rel="preload"][as="'+ei(s)+'"]';s==="image"&&c&&c.imageSrcSet?(b+='[imagesrcset="'+ei(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(b+='[imagesizes="'+ei(c.imageSizes)+'"]')):b+='[href="'+ei(a)+'"]';var x=b;switch(s){case"style":x=Mr(a);break;case"script":x=Mc(a)}Yr.has(x)||(a=X({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:a,as:s},c),Yr.set(x,a),m.querySelector(b)!==null||s==="style"&&m.querySelector(Nc(x))||s==="script"&&m.querySelector(kc(x))||(s=m.createElement("link"),Nr(s,"link",a),Mn(s),m.head.appendChild(s)))}}function U3(a,s){_o.m(a,s);var c=za;if(c&&a){var m=s&&typeof s.as=="string"?s.as:"script",b='link[rel="modulepreload"][as="'+ei(m)+'"][href="'+ei(a)+'"]',x=b;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=Mc(a)}if(!Yr.has(x)&&(a=X({rel:"modulepreload",href:a},s),Yr.set(x,a),c.querySelector(b)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(kc(x)))return}m=c.createElement("link"),Nr(m,"link",a),Mn(m),c.head.appendChild(m)}}}function w2(a,s,c){_o.S(a,s,c);var m=za;if(m&&a){var b=js(m).hoistableStyles,x=Mr(a);s=s||"default";var D=b.get(x);if(!D){var W={loading:0,preload:null};if(D=m.querySelector(Nc(x)))W.loading=5;else{a=X({rel:"stylesheet",href:a,"data-precedence":s},c),(c=Yr.get(x))&&Gv(a,c);var Z=D=m.createElement("link");Mn(Z),Nr(Z,"link",a),Z._p=new Promise(function(se,_e){Z.onload=se,Z.onerror=_e}),Z.addEventListener("load",function(){W.loading|=1}),Z.addEventListener("error",function(){W.loading|=2}),W.loading|=4,ig(D,s,m)}D={type:"stylesheet",instance:D,count:1,state:W},b.set(x,D)}}}function $s(a,s){_o.X(a,s);var c=za;if(c&&a){var m=js(c).hoistableScripts,b=Mc(a),x=m.get(b);x||(x=c.querySelector(kc(b)),x||(a=X({src:a,async:!0},s),(s=Yr.get(b))&&Wv(a,s),x=c.createElement("script"),Mn(x),Nr(x,"link",a),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},m.set(b,x))}}function Nt(a,s){_o.M(a,s);var c=za;if(c&&a){var m=js(c).hoistableScripts,b=Mc(a),x=m.get(b);x||(x=c.querySelector(kc(b)),x||(a=X({src:a,async:!0,type:"module"},s),(s=Yr.get(b))&&Wv(a,s),x=c.createElement("script"),Mn(x),Nr(x,"link",a),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},m.set(b,x))}}function Vv(a,s,c,m){var b=(b=bt.current)?ng(b):null;if(!b)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=Mr(c.href),c=js(b).hoistableStyles,m=c.get(s),m||(m={type:"style",instance:null,count:0,state:null},c.set(s,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){a=Mr(c.href);var x=js(b).hoistableStyles,D=x.get(a);if(D||(b=b.ownerDocument||b,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(a,D),(x=b.querySelector(Nc(a)))&&!x._p&&(D.instance=x,D.state.loading=5),Yr.has(a)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Yr.set(a,c),x||hn(b,a,c,D.state))),s&&m===null)throw Error(r(528,""));return D}if(s&&m!==null)throw Error(r(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Mc(c),c=js(b).hoistableScripts,m=c.get(s),m||(m={type:"script",instance:null,count:0,state:null},c.set(s,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Mr(a){return'href="'+ei(a)+'"'}function Nc(a){return'link[rel="stylesheet"]['+a+"]"}function S2(a){return X({},a,{"data-precedence":a.precedence,precedence:null})}function hn(a,s,c,m){a.querySelector('link[rel="preload"][as="style"]['+s+"]")?m.loading=1:(s=a.createElement("link"),m.preload=s,s.addEventListener("load",function(){return m.loading|=1}),s.addEventListener("error",function(){return m.loading|=2}),Nr(s,"link",c),Mn(s),a.head.appendChild(s))}function Mc(a){return'[src="'+ei(a)+'"]'}function kc(a){return"script[async]"+a}function Hd(a,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var m=a.querySelector('style[data-href~="'+ei(c.href)+'"]');if(m)return s.instance=m,Mn(m),m;var b=X({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return m=(a.ownerDocument||a).createElement("style"),Mn(m),Nr(m,"style",b),ig(m,c.precedence,a),s.instance=m;case"stylesheet":b=Mr(c.href);var x=a.querySelector(Nc(b));if(x)return s.state.loading|=4,s.instance=x,Mn(x),x;m=S2(c),(b=Yr.get(b))&&Gv(m,b),x=(a.ownerDocument||a).createElement("link"),Mn(x);var D=x;return D._p=new Promise(function(W,Z){D.onload=W,D.onerror=Z}),Nr(x,"link",m),s.state.loading|=4,ig(x,c.precedence,a),s.instance=x;case"script":return x=Mc(c.src),(b=a.querySelector(kc(x)))?(s.instance=b,Mn(b),b):(m=c,(b=Yr.get(x))&&(m=X({},c),Wv(m,b)),a=a.ownerDocument||a,b=a.createElement("script"),Mn(b),Nr(b,"link",m),a.head.appendChild(b),s.instance=b);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(m=s.instance,s.state.loading|=4,ig(m,c.precedence,a));return s.instance}function ig(a,s,c){for(var m=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=m.length?m[m.length-1]:null,x=b,D=0;D title"):null)}function j3(a,s,c){if(c===1||s.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return a=s.disabled,typeof s.precedence=="string"&&a==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function E2(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}var zd=null;function B3(){}function q3(a,s,c){if(zd===null)throw Error(r(475));var m=zd;if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var b=Mr(c.href),x=a.querySelector(Nc(b));if(x){a=x._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(m.count++,m=og.bind(m),a.then(m,m)),s.state.loading|=4,s.instance=x,Mn(x);return}x=a.ownerDocument||a,c=S2(c),(b=Yr.get(b))&&Gv(c,b),x=x.createElement("link"),Mn(x);var D=x;D._p=new Promise(function(W,Z){D.onload=W,D.onerror=Z}),Nr(x,"link",c),s.instance=x}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(m.count++,s=og.bind(m),a.addEventListener("load",s),a.addEventListener("error",s))}}function H3(){if(zd===null)throw Error(r(475));var a=zd;return a.stylesheets&&a.count===0&&Kv(a,a.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),iC.exports=HD(),iC.exports}var VD=zD();const GD=If(VD),WD=Ae.createContext({patchConfig(){},config:{}});function KD(){const t=localStorage.getItem("app_config2");if(t){try{const e=JSON.parse(t);return e?{...e}:{}}catch{}return{}}}KD();function Ow(t,e){return Ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ow(t,e)}function zp(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ow(t,e)}var Jg=(function(){function t(){this.listeners=[]}var e=t.prototype;return e.subscribe=function(r){var i=this,o=r||function(){};return this.listeners.push(o),this.onSubscribe(),function(){i.listeners=i.listeners.filter(function(u){return u!==o}),i.onUnsubscribe()}},e.hasListeners=function(){return this.listeners.length>0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},t})();function Ve(){return Ve=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u";function yi(){}function YD(t,e){return typeof t=="function"?t(e):t}function SE(t){return typeof t=="number"&&t>=0&&t!==1/0}function _w(t){return Array.isArray(t)?t:[t]}function s9(t,e){return Math.max(t+(e||0)-Date.now(),0)}function sw(t,e,n){return _1(t)?typeof e=="function"?Ve({},n,{queryKey:t,queryFn:e}):Ve({},e,{queryKey:t}):t}function QD(t,e,n){return _1(t)?Ve({},e,{mutationKey:t}):typeof t=="function"?Ve({},e,{mutationFn:t}):Ve({},t)}function wf(t,e,n){return _1(t)?[Ve({},e,{queryKey:t}),n]:[t||{},e]}function JD(t,e){if(t===!0&&e===!0||t==null&&e==null)return"all";if(t===!1&&e===!1)return"none";var n=t??!e;return n?"active":"inactive"}function a4(t,e){var n=t.active,r=t.exact,i=t.fetching,o=t.inactive,u=t.predicate,l=t.queryKey,d=t.stale;if(_1(l)){if(r){if(e.queryHash!==iO(l,e.options))return!1}else if(!Aw(e.queryKey,l))return!1}var h=JD(n,o);if(h==="none")return!1;if(h!=="all"){var g=e.isActive();if(h==="active"&&!g||h==="inactive"&&g)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||typeof i=="boolean"&&e.isFetching()!==i||u&&!u(e))}function o4(t,e){var n=t.exact,r=t.fetching,i=t.predicate,o=t.mutationKey;if(_1(o)){if(!e.options.mutationKey)return!1;if(n){if(yp(e.options.mutationKey)!==yp(o))return!1}else if(!Aw(e.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&e.state.status==="loading"!==r||i&&!i(e))}function iO(t,e){var n=(e==null?void 0:e.queryKeyHashFn)||yp;return n(t)}function yp(t){var e=_w(t);return XD(e)}function XD(t){return JSON.stringify(t,function(e,n){return CE(n)?Object.keys(n).sort().reduce(function(r,i){return r[i]=n[i],r},{}):n})}function Aw(t,e){return u9(_w(t),_w(e))}function u9(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(function(n){return!u9(t[n],e[n])}):!1}function Rw(t,e){if(t===e)return t;var n=Array.isArray(t)&&Array.isArray(e);if(n||CE(t)&&CE(e)){for(var r=n?t.length:Object.keys(t).length,i=n?e:Object.keys(e),o=i.length,u=n?[]:{},l=0,d=0;d"u")return!0;var n=e.prototype;return!(!s4(n)||!n.hasOwnProperty("isPrototypeOf"))}function s4(t){return Object.prototype.toString.call(t)==="[object Object]"}function _1(t){return typeof t=="string"||Array.isArray(t)}function eF(t){return new Promise(function(e){setTimeout(e,t)})}function u4(t){Promise.resolve().then(t).catch(function(e){return setTimeout(function(){throw e})})}function l9(){if(typeof AbortController=="function")return new AbortController}var tF=(function(t){zp(e,t);function e(){var r;return r=t.call(this)||this,r.setup=function(i){var o;if(!Tw&&((o=window)!=null&&o.addEventListener)){var u=function(){return i()};return window.addEventListener("visibilitychange",u,!1),window.addEventListener("focus",u,!1),function(){window.removeEventListener("visibilitychange",u),window.removeEventListener("focus",u)}}},r}var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var o,u=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(l){typeof l=="boolean"?u.setFocused(l):u.onFocus()})},n.setFocused=function(i){this.focused=i,i&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(i){i()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},e})(Jg),P0=new tF,nF=(function(t){zp(e,t);function e(){var r;return r=t.call(this)||this,r.setup=function(i){var o;if(!Tw&&((o=window)!=null&&o.addEventListener)){var u=function(){return i()};return window.addEventListener("online",u,!1),window.addEventListener("offline",u,!1),function(){window.removeEventListener("online",u),window.removeEventListener("offline",u)}}},r}var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var o,u=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(l){typeof l=="boolean"?u.setOnline(l):u.onOnline()})},n.setOnline=function(i){this.online=i,i&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(i){i()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},e})(Jg),uw=new nF;function rF(t){return Math.min(1e3*Math.pow(2,t),3e4)}function Pw(t){return typeof(t==null?void 0:t.cancel)=="function"}var c9=function(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent};function lw(t){return t instanceof c9}var f9=function(e){var n=this,r=!1,i,o,u,l;this.abort=e.abort,this.cancel=function(w){return i==null?void 0:i(w)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return o==null?void 0:o()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(w,v){u=w,l=v});var d=function(v){n.isResolved||(n.isResolved=!0,e.onSuccess==null||e.onSuccess(v),o==null||o(),u(v))},h=function(v){n.isResolved||(n.isResolved=!0,e.onError==null||e.onError(v),o==null||o(),l(v))},g=function(){return new Promise(function(v){o=v,n.isPaused=!0,e.onPause==null||e.onPause()}).then(function(){o=void 0,n.isPaused=!1,e.onContinue==null||e.onContinue()})},y=function w(){if(!n.isResolved){var v;try{v=e.fn()}catch(C){v=Promise.reject(C)}i=function(E){if(!n.isResolved&&(h(new c9(E)),n.abort==null||n.abort(),Pw(v)))try{v.cancel()}catch{}},n.isTransportCancelable=Pw(v),Promise.resolve(v).then(d).catch(function(C){var E,$;if(!n.isResolved){var O=(E=e.retry)!=null?E:3,_=($=e.retryDelay)!=null?$:rF,R=typeof _=="function"?_(n.failureCount,C):_,k=O===!0||typeof O=="number"&&n.failureCount"u"&&(l.exact=!0),this.queries.find(function(d){return a4(l,d)})},n.findAll=function(i,o){var u=wf(i,o),l=u[0];return Object.keys(l).length>0?this.queries.filter(function(d){return a4(l,d)}):this.queries},n.notify=function(i){var o=this;Zn.batch(function(){o.listeners.forEach(function(u){u(i)})})},n.onFocus=function(){var i=this;Zn.batch(function(){i.queries.forEach(function(o){o.onFocus()})})},n.onOnline=function(){var i=this;Zn.batch(function(){i.queries.forEach(function(o){o.onOnline()})})},e})(Jg),uF=(function(){function t(n){this.options=Ve({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||h9(),this.meta=n.meta}var e=t.prototype;return e.setState=function(r){this.dispatch({type:"setState",state:r})},e.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},e.removeObserver=function(r){this.observers=this.observers.filter(function(i){return i!==r})},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(yi).catch(yi)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var r=this,i,o=this.state.status==="loading",u=Promise.resolve();return o||(this.dispatch({type:"loading",variables:this.options.variables}),u=u.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(l){l!==r.state.context&&r.dispatch({type:"loading",context:l,variables:r.state.variables})})),u.then(function(){return r.executeMutation()}).then(function(l){i=l,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(i,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(i,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(i,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:i}),i}).catch(function(l){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(l,r.state.variables,r.state.context,r),Iw().error(l),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(l,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,l,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:l}),l})})},e.executeMutation=function(){var r=this,i;return this.retryer=new f9({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(r){var i=this;this.state=lF(this.state,r),Zn.batch(function(){i.observers.forEach(function(o){o.onMutationUpdate(r)}),i.mutationCache.notify(i)})},t})();function h9(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function lF(t,e){switch(e.type){case"failed":return Ve({},t,{failureCount:t.failureCount+1});case"pause":return Ve({},t,{isPaused:!0});case"continue":return Ve({},t,{isPaused:!1});case"loading":return Ve({},t,{context:e.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:e.variables});case"success":return Ve({},t,{data:e.data,error:null,status:"success",isPaused:!1});case"error":return Ve({},t,{data:void 0,error:e.error,failureCount:t.failureCount+1,isPaused:!1,status:"error"});case"setState":return Ve({},t,e.state);default:return t}}var cF=(function(t){zp(e,t);function e(r){var i;return i=t.call(this)||this,i.config=r||{},i.mutations=[],i.mutationId=0,i}var n=e.prototype;return n.build=function(i,o,u){var l=new uF({mutationCache:this,mutationId:++this.mutationId,options:i.defaultMutationOptions(o),state:u,defaultOptions:o.mutationKey?i.getMutationDefaults(o.mutationKey):void 0,meta:o.meta});return this.add(l),l},n.add=function(i){this.mutations.push(i),this.notify(i)},n.remove=function(i){this.mutations=this.mutations.filter(function(o){return o!==i}),i.cancel(),this.notify(i)},n.clear=function(){var i=this;Zn.batch(function(){i.mutations.forEach(function(o){i.remove(o)})})},n.getAll=function(){return this.mutations},n.find=function(i){return typeof i.exact>"u"&&(i.exact=!0),this.mutations.find(function(o){return o4(i,o)})},n.findAll=function(i){return this.mutations.filter(function(o){return o4(i,o)})},n.notify=function(i){var o=this;Zn.batch(function(){o.listeners.forEach(function(u){u(i)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var i=this.mutations.filter(function(o){return o.state.isPaused});return Zn.batch(function(){return i.reduce(function(o,u){return o.then(function(){return u.continue().catch(yi)})},Promise.resolve())})},e})(Jg);function fF(){return{onFetch:function(e){e.fetchFn=function(){var n,r,i,o,u,l,d=(n=e.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,h=(i=e.fetchOptions)==null||(o=i.meta)==null?void 0:o.fetchMore,g=h==null?void 0:h.pageParam,y=(h==null?void 0:h.direction)==="forward",w=(h==null?void 0:h.direction)==="backward",v=((u=e.state.data)==null?void 0:u.pages)||[],C=((l=e.state.data)==null?void 0:l.pageParams)||[],E=l9(),$=E==null?void 0:E.signal,O=C,_=!1,R=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},k=function(be,we,B,V){return O=V?[we].concat(O):[].concat(O,[we]),V?[B].concat(be):[].concat(be,[B])},P=function(be,we,B,V){if(_)return Promise.reject("Cancelled");if(typeof B>"u"&&!we&&be.length)return Promise.resolve(be);var H={queryKey:e.queryKey,signal:$,pageParam:B,meta:e.meta},ie=R(H),G=Promise.resolve(ie).then(function(he){return k(be,B,he,V)});if(Pw(ie)){var J=G;J.cancel=ie.cancel}return G},L;if(!v.length)L=P([]);else if(y){var F=typeof g<"u",q=F?g:l4(e.options,v);L=P(v,F,q)}else if(w){var Y=typeof g<"u",X=Y?g:dF(e.options,v);L=P(v,Y,X,!0)}else(function(){O=[];var te=typeof e.options.getNextPageParam>"u",be=d&&v[0]?d(v[0],0,v):!0;L=be?P([],te,C[0]):Promise.resolve(k([],C[0],v[0]));for(var we=function(H){L=L.then(function(ie){var G=d&&v[H]?d(v[H],H,v):!0;if(G){var J=te?C[H]:l4(e.options,ie);return P(ie,te,J)}return Promise.resolve(k(ie,C[H],v[H]))})},B=1;B"u"&&(g.revert=!0);var y=Zn.batch(function(){return u.queryCache.findAll(d).map(function(w){return w.cancel(g)})});return Promise.all(y).then(yi).catch(yi)},e.invalidateQueries=function(r,i,o){var u,l,d,h=this,g=wf(r,i,o),y=g[0],w=g[1],v=Ve({},y,{active:(u=(l=y.refetchActive)!=null?l:y.active)!=null?u:!0,inactive:(d=y.refetchInactive)!=null?d:!1});return Zn.batch(function(){return h.queryCache.findAll(y).forEach(function(C){C.invalidate()}),h.refetchQueries(v,w)})},e.refetchQueries=function(r,i,o){var u=this,l=wf(r,i,o),d=l[0],h=l[1],g=Zn.batch(function(){return u.queryCache.findAll(d).map(function(w){return w.fetch(void 0,Ve({},h,{meta:{refetchPage:d==null?void 0:d.refetchPage}}))})}),y=Promise.all(g).then(yi);return h!=null&&h.throwOnError||(y=y.catch(yi)),y},e.fetchQuery=function(r,i,o){var u=sw(r,i,o),l=this.defaultQueryOptions(u);typeof l.retry>"u"&&(l.retry=!1);var d=this.queryCache.build(this,l);return d.isStaleByTime(l.staleTime)?d.fetch(l):Promise.resolve(d.state.data)},e.prefetchQuery=function(r,i,o){return this.fetchQuery(r,i,o).then(yi).catch(yi)},e.fetchInfiniteQuery=function(r,i,o){var u=sw(r,i,o);return u.behavior=fF(),this.fetchQuery(u)},e.prefetchInfiniteQuery=function(r,i,o){return this.fetchInfiniteQuery(r,i,o).then(yi).catch(yi)},e.cancelMutations=function(){var r=this,i=Zn.batch(function(){return r.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(i).then(yi).catch(yi)},e.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},e.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},e.getQueryCache=function(){return this.queryCache},e.getMutationCache=function(){return this.mutationCache},e.getDefaultOptions=function(){return this.defaultOptions},e.setDefaultOptions=function(r){this.defaultOptions=r},e.setQueryDefaults=function(r,i){var o=this.queryDefaults.find(function(u){return yp(r)===yp(u.queryKey)});o?o.defaultOptions=i:this.queryDefaults.push({queryKey:r,defaultOptions:i})},e.getQueryDefaults=function(r){var i;return r?(i=this.queryDefaults.find(function(o){return Aw(r,o.queryKey)}))==null?void 0:i.defaultOptions:void 0},e.setMutationDefaults=function(r,i){var o=this.mutationDefaults.find(function(u){return yp(r)===yp(u.mutationKey)});o?o.defaultOptions=i:this.mutationDefaults.push({mutationKey:r,defaultOptions:i})},e.getMutationDefaults=function(r){var i;return r?(i=this.mutationDefaults.find(function(o){return Aw(r,o.mutationKey)}))==null?void 0:i.defaultOptions:void 0},e.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var i=Ve({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=iO(i.queryKey,i)),i},e.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},e.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:Ve({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},e.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},t})(),pF=(function(t){zp(e,t);function e(r,i){var o;return o=t.call(this)||this,o.client=r,o.options=i,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(i),o}var n=e.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),c4(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return $E(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return $E(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(i,o){var u=this.options,l=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(i),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=u.queryKey),this.updateQuery();var d=this.hasListeners();d&&f4(this.currentQuery,l,this.options,u)&&this.executeFetch(),this.updateResult(o),d&&(this.currentQuery!==l||this.options.enabled!==u.enabled||this.options.staleTime!==u.staleTime)&&this.updateStaleTimeout();var h=this.computeRefetchInterval();d&&(this.currentQuery!==l||this.options.enabled!==u.enabled||h!==this.currentRefetchInterval)&&this.updateRefetchInterval(h)},n.getOptimisticResult=function(i){var o=this.client.defaultQueryObserverOptions(i),u=this.client.getQueryCache().build(this.client,o);return this.createResult(u,o)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(i,o){var u=this,l={},d=function(g){u.trackedProps.includes(g)||u.trackedProps.push(g)};return Object.keys(i).forEach(function(h){Object.defineProperty(l,h,{configurable:!1,enumerable:!0,get:function(){return d(h),i[h]}})}),(o.useErrorBoundary||o.suspense)&&d("error"),l},n.getNextResult=function(i){var o=this;return new Promise(function(u,l){var d=o.subscribe(function(h){h.isFetching||(d(),h.isError&&(i!=null&&i.throwOnError)?l(h.error):u(h))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(i){return this.fetch(Ve({},i,{meta:{refetchPage:i==null?void 0:i.refetchPage}}))},n.fetchOptimistic=function(i){var o=this,u=this.client.defaultQueryObserverOptions(i),l=this.client.getQueryCache().build(this.client,u);return l.fetch().then(function(){return o.createResult(l,u)})},n.fetch=function(i){var o=this;return this.executeFetch(i).then(function(){return o.updateResult(),o.currentResult})},n.executeFetch=function(i){this.updateQuery();var o=this.currentQuery.fetch(this.options,i);return i!=null&&i.throwOnError||(o=o.catch(yi)),o},n.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(Tw||this.currentResult.isStale||!SE(this.options.staleTime))){var o=s9(this.currentResult.dataUpdatedAt,this.options.staleTime),u=o+1;this.staleTimeoutId=setTimeout(function(){i.currentResult.isStale||i.updateResult()},u)}},n.computeRefetchInterval=function(){var i;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(i=this.options.refetchInterval)!=null?i:!1},n.updateRefetchInterval=function(i){var o=this;this.clearRefetchInterval(),this.currentRefetchInterval=i,!(Tw||this.options.enabled===!1||!SE(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||P0.isFocused())&&o.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(i,o){var u=this.currentQuery,l=this.options,d=this.currentResult,h=this.currentResultState,g=this.currentResultOptions,y=i!==u,w=y?i.state:this.currentQueryInitialState,v=y?this.currentResult:this.previousQueryResult,C=i.state,E=C.dataUpdatedAt,$=C.error,O=C.errorUpdatedAt,_=C.isFetching,R=C.status,k=!1,P=!1,L;if(o.optimisticResults){var F=this.hasListeners(),q=!F&&c4(i,o),Y=F&&f4(i,u,o,l);(q||Y)&&(_=!0,E||(R="loading"))}if(o.keepPreviousData&&!C.dataUpdateCount&&(v!=null&&v.isSuccess)&&R!=="error")L=v.data,E=v.dataUpdatedAt,R=v.status,k=!0;else if(o.select&&typeof C.data<"u")if(d&&C.data===(h==null?void 0:h.data)&&o.select===this.selectFn)L=this.selectResult;else try{this.selectFn=o.select,L=o.select(C.data),o.structuralSharing!==!1&&(L=Rw(d==null?void 0:d.data,L)),this.selectResult=L,this.selectError=null}catch(me){Iw().error(me),this.selectError=me}else L=C.data;if(typeof o.placeholderData<"u"&&typeof L>"u"&&(R==="loading"||R==="idle")){var X;if(d!=null&&d.isPlaceholderData&&o.placeholderData===(g==null?void 0:g.placeholderData))X=d.data;else if(X=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof X<"u")try{X=o.select(X),o.structuralSharing!==!1&&(X=Rw(d==null?void 0:d.data,X)),this.selectError=null}catch(me){Iw().error(me),this.selectError=me}typeof X<"u"&&(R="success",L=X,P=!0)}this.selectError&&($=this.selectError,L=this.selectResult,O=Date.now(),R="error");var ue={status:R,isLoading:R==="loading",isSuccess:R==="success",isError:R==="error",isIdle:R==="idle",data:L,dataUpdatedAt:E,error:$,errorUpdatedAt:O,failureCount:C.fetchFailureCount,errorUpdateCount:C.errorUpdateCount,isFetched:C.dataUpdateCount>0||C.errorUpdateCount>0,isFetchedAfterMount:C.dataUpdateCount>w.dataUpdateCount||C.errorUpdateCount>w.errorUpdateCount,isFetching:_,isRefetching:_&&R!=="loading",isLoadingError:R==="error"&&C.dataUpdatedAt===0,isPlaceholderData:P,isPreviousData:k,isRefetchError:R==="error"&&C.dataUpdatedAt!==0,isStale:aO(i,o),refetch:this.refetch,remove:this.remove};return ue},n.shouldNotifyListeners=function(i,o){if(!o)return!0;var u=this.options,l=u.notifyOnChangeProps,d=u.notifyOnChangePropsExclusions;if(!l&&!d||l==="tracked"&&!this.trackedProps.length)return!0;var h=l==="tracked"?this.trackedProps:l;return Object.keys(i).some(function(g){var y=g,w=i[y]!==o[y],v=h==null?void 0:h.some(function(E){return E===g}),C=d==null?void 0:d.some(function(E){return E===g});return w&&!C&&(!h||v)})},n.updateResult=function(i){var o=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!ZD(this.currentResult,o)){var u={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(u.listeners=!0),this.notify(Ve({},u,i))}},n.updateQuery=function(){var i=this.client.getQueryCache().build(this.client,this.options);if(i!==this.currentQuery){var o=this.currentQuery;this.currentQuery=i,this.currentQueryInitialState=i.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(o==null||o.removeObserver(this),i.addObserver(this))}},n.onQueryUpdate=function(i){var o={};i.type==="success"?o.onSuccess=!0:i.type==="error"&&!lw(i.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},n.notify=function(i){var o=this;Zn.batch(function(){i.onSuccess?(o.options.onSuccess==null||o.options.onSuccess(o.currentResult.data),o.options.onSettled==null||o.options.onSettled(o.currentResult.data,null)):i.onError&&(o.options.onError==null||o.options.onError(o.currentResult.error),o.options.onSettled==null||o.options.onSettled(void 0,o.currentResult.error)),i.listeners&&o.listeners.forEach(function(u){u(o.currentResult)}),i.cache&&o.client.getQueryCache().notify({query:o.currentQuery,type:"observerResultsUpdated"})})},e})(Jg);function mF(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function c4(t,e){return mF(t,e)||t.state.dataUpdatedAt>0&&$E(t,e,e.refetchOnMount)}function $E(t,e,n){if(e.enabled!==!1){var r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&aO(t,e)}return!1}function f4(t,e,n,r){return n.enabled!==!1&&(t!==e||r.enabled===!1)&&(!n.suspense||t.state.status!=="error")&&aO(t,n)}function aO(t,e){return t.isStaleByTime(e.staleTime)}var gF=(function(t){zp(e,t);function e(r,i){var o;return o=t.call(this)||this,o.client=r,o.setOptions(i),o.bindMethods(),o.updateResult(),o}var n=e.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(i){this.options=this.client.defaultMutationOptions(i)},n.onUnsubscribe=function(){if(!this.listeners.length){var i;(i=this.currentMutation)==null||i.removeObserver(this)}},n.onMutationUpdate=function(i){this.updateResult();var o={listeners:!0};i.type==="success"?o.onSuccess=!0:i.type==="error"&&(o.onError=!0),this.notify(o)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(i,o){return this.mutateOptions=o,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,Ve({},this.options,{variables:typeof i<"u"?i:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var i=this.currentMutation?this.currentMutation.state:h9(),o=Ve({},i,{isLoading:i.status==="loading",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=o},n.notify=function(i){var o=this;Zn.batch(function(){o.mutateOptions&&(i.onSuccess?(o.mutateOptions.onSuccess==null||o.mutateOptions.onSuccess(o.currentResult.data,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(o.currentResult.data,null,o.currentResult.variables,o.currentResult.context)):i.onError&&(o.mutateOptions.onError==null||o.mutateOptions.onError(o.currentResult.error,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(void 0,o.currentResult.error,o.currentResult.variables,o.currentResult.context))),i.listeners&&o.listeners.forEach(function(u){u(o.currentResult)})})},e})(Jg),xu=o9();const yF=If(xu);var vF=yF.unstable_batchedUpdates;Zn.setBatchNotifyFunction(vF);var bF=console;aF(bF);var d4=Ae.createContext(void 0),p9=Ae.createContext(!1);function m9(t){return t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=d4),window.ReactQueryClientContext):d4}var Nf=function(){var e=Ae.useContext(m9(Ae.useContext(p9)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},wF=function(e){var n=e.client,r=e.contextSharing,i=r===void 0?!1:r,o=e.children;Ae.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var u=m9(i);return Ae.createElement(p9.Provider,{value:i},Ae.createElement(u.Provider,{value:n},o))};function SF(){var t=!1;return{clearReset:function(){t=!1},reset:function(){t=!0},isReset:function(){return t}}}var CF=Ae.createContext(SF()),$F=function(){return Ae.useContext(CF)};function g9(t,e,n){return typeof e=="function"?e.apply(void 0,n):typeof e=="boolean"?e:!!t}function Fr(t,e,n){var r=Ae.useRef(!1),i=Ae.useState(0),o=i[1],u=QD(t,e),l=Nf(),d=Ae.useRef();d.current?d.current.setOptions(u):d.current=new gF(l,u);var h=d.current.getCurrentResult();Ae.useEffect(function(){r.current=!0;var y=d.current.subscribe(Zn.batchCalls(function(){r.current&&o(function(w){return w+1})}));return function(){r.current=!1,y()}},[]);var g=Ae.useCallback(function(y,w){d.current.mutate(y,w).catch(yi)},[]);if(h.error&&g9(void 0,d.current.options.useErrorBoundary,[h.error]))throw h.error;return Ve({},h,{mutate:g,mutateAsync:h.mutate})}function EF(t,e){var n=Ae.useRef(!1),r=Ae.useState(0),i=r[1],o=Nf(),u=$F(),l=o.defaultQueryObserverOptions(t);l.optimisticResults=!0,l.onError&&(l.onError=Zn.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=Zn.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=Zn.batchCalls(l.onSettled)),l.suspense&&(typeof l.staleTime!="number"&&(l.staleTime=1e3),l.cacheTime===0&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(u.isReset()||(l.retryOnMount=!1));var d=Ae.useState(function(){return new e(o,l)}),h=d[0],g=h.getOptimisticResult(l);if(Ae.useEffect(function(){n.current=!0,u.clearReset();var y=h.subscribe(Zn.batchCalls(function(){n.current&&i(function(w){return w+1})}));return h.updateResult(),function(){n.current=!1,y()}},[u,h]),Ae.useEffect(function(){h.setOptions(l,{listeners:!1})},[l,h]),l.suspense&&g.isLoading)throw h.fetchOptimistic(l).then(function(y){var w=y.data;l.onSuccess==null||l.onSuccess(w),l.onSettled==null||l.onSettled(w,null)}).catch(function(y){u.clearReset(),l.onError==null||l.onError(y),l.onSettled==null||l.onSettled(void 0,y)});if(g.isError&&!u.isReset()&&!g.isFetching&&g9(l.suspense,l.useErrorBoundary,[g.error,h.getCurrentQuery()]))throw g.error;return l.notifyOnChangeProps==="tracked"&&(g=h.trackResult(g,l)),g}function Bo(t,e,n){var r=sw(t,e,n);return EF(r,pF)}var x0={exports:{}};/** +`+c.stack}}function H(a){var s=a,c=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(c=s.return),a=s.return;while(a)}return s.tag===3?c:null}function ie(a){if(a.tag===13){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function G(a){if(H(a)!==a)throw Error(r(188))}function Q(a){var s=a.alternate;if(!s){if(s=H(a),s===null)throw Error(r(188));return s!==a?null:a}for(var c=a,m=s;;){var b=c.return;if(b===null)break;var x=b.alternate;if(x===null){if(m=b.return,m!==null){c=m;continue}break}if(b.child===x.child){for(x=b.child;x;){if(x===c)return G(b),a;if(x===m)return G(b),s;x=x.sibling}throw Error(r(188))}if(c.return!==m.return)c=b,m=x;else{for(var D=!1,W=b.child;W;){if(W===c){D=!0,c=b,m=x;break}if(W===m){D=!0,m=b,c=x;break}W=W.sibling}if(!D){for(W=x.child;W;){if(W===c){D=!0,c=x,m=b;break}if(W===m){D=!0,m=x,c=b;break}W=W.sibling}if(!D)throw Error(r(189))}}if(c.alternate!==m)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?a:s}function he(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=he(a),s!==null)return s;a=a.sibling}return null}var $e=Array.isArray,Ce=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Be={pending:!1,data:null,method:null,action:null},Ie=[],tt=-1;function ke(a){return{current:a}}function Ke(a){0>tt||(a.current=Ie[tt],Ie[tt]=null,tt--)}function He(a,s){tt++,Ie[tt]=a.current,a.current=s}var ut=ke(null),pt=ke(null),bt=ke(null),gt=ke(null);function Ut(a,s){switch(He(bt,s),He(pt,a),He(ut,null),a=s.nodeType,a){case 9:case 11:s=(s=s.documentElement)&&(s=s.namespaceURI)?O2(s):0;break;default:if(a=a===8?s.parentNode:s,s=a.tagName,a=a.namespaceURI)a=O2(a),s=T2(a,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}Ke(ut),He(ut,s)}function Gt(){Ke(ut),Ke(pt),Ke(bt)}function Tt(a){a.memoizedState!==null&&He(gt,a);var s=ut.current,c=T2(s,a.type);s!==c&&(He(pt,a),He(ut,c))}function en(a){pt.current===a&&(Ke(ut),Ke(pt)),gt.current===a&&(Ke(gt),Kd._currentValue=Be)}var xn=Object.prototype.hasOwnProperty,Dt=t.unstable_scheduleCallback,Pt=t.unstable_cancelCallback,pe=t.unstable_shouldYield,ze=t.unstable_requestPaint,Ge=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,ht=t.unstable_ImmediatePriority,j=t.unstable_UserBlockingPriority,A=t.unstable_NormalPriority,M=t.unstable_LowPriority,J=t.unstable_IdlePriority,re=t.log,ge=t.unstable_setDisableYieldValue,Ee=null,rt=null;function Wt(a){if(rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Ee,a,void 0,(a.current.flags&128)===128)}catch{}}function ae(a){if(typeof re=="function"&&ge(a),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Ee,a)}catch{}}var ce=Math.clz32?Math.clz32:ln,nt=Math.log,Ht=Math.LN2;function ln(a){return a>>>=0,a===0?32:31-(nt(a)/Ht|0)|0}var wt=128,Ur=4194304;function tn(a){var s=a&42;if(s!==0)return s;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function tr(a,s){var c=a.pendingLanes;if(c===0)return 0;var m=0,b=a.suspendedLanes,x=a.pingedLanes,D=a.warmLanes;a=a.finishedLanes!==0;var W=c&134217727;return W!==0?(c=W&~b,c!==0?m=tn(c):(x&=W,x!==0?m=tn(x):a||(D=W&~D,D!==0&&(m=tn(D))))):(W=c&~b,W!==0?m=tn(W):x!==0?m=tn(x):a||(D=c&~D,D!==0&&(m=tn(D)))),m===0?0:s!==0&&s!==m&&(s&b)===0&&(b=m&-m,D=s&-s,b>=D||b===32&&(D&4194176)!==0)?s:m}function On(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}function Li(a,s){switch(a){case 1:case 2:case 4:case 8:return s+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ca(){var a=wt;return wt<<=1,(wt&4194176)===0&&(wt=128),a}function Ar(){var a=Ur;return Ur<<=1,(Ur&62914560)===0&&(Ur=4194304),a}function Fs(a){for(var s=[],c=0;31>c;c++)s.push(a);return s}function uo(a,s){a.pendingLanes|=s,s!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Ls(a,s,c,m,b,x){var D=a.pendingLanes;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=c,a.entangledLanes&=c,a.errorRecoveryDisabledLanes&=c,a.shellSuspendCounter=0;var W=a.entanglements,Z=a.expirationTimes,se=a.hiddenUpdates;for(c=D&~c;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bl=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),um={},ed={};function wy(a){return xn.call(ed,a)?!0:xn.call(um,a)?!1:Bl.test(a)?ed[a]=!0:(um[a]=!0,!1)}function Nu(a,s,c){if(wy(s))if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":a.removeAttribute(s);return;case"boolean":var m=s.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){a.removeAttribute(s);return}}a.setAttribute(s,""+c)}}function Ti(a,s,c){if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(s);return}a.setAttribute(s,""+c)}}function fa(a,s,c,m){if(m===null)a.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(c);return}a.setAttributeNS(s,c,""+m)}}function Zr(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function ql(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Bs(a){var s=ql(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,s),m=""+a[s];if(!a.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var b=c.get,x=c.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return b.call(this)},set:function(D){m=""+D,x.call(this,D)}}),Object.defineProperty(a,s,{enumerable:c.enumerable}),{getValue:function(){return m},setValue:function(D){m=""+D},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function fo(a){a._valueTracker||(a._valueTracker=Bs(a))}function ho(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var c=s.getValue(),m="";return a&&(m=ql(a)?a.checked?"true":"false":a.value),a=m,a!==c?(s.setValue(a),!0):!1}function Mu(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var Sy=/[\n"\\]/g;function ei(a){return a.replace(Sy,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Hl(a,s,c,m,b,x,D,W){a.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?a.type=D:a.removeAttribute("type"),s!=null?D==="number"?(s===0&&a.value===""||a.value!=s)&&(a.value=""+Zr(s)):a.value!==""+Zr(s)&&(a.value=""+Zr(s)):D!=="submit"&&D!=="reset"||a.removeAttribute("value"),s!=null?td(a,D,Zr(s)):c!=null?td(a,D,Zr(c)):m!=null&&a.removeAttribute("value"),b==null&&x!=null&&(a.defaultChecked=!!x),b!=null&&(a.checked=b&&typeof b!="function"&&typeof b!="symbol"),W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"?a.name=""+Zr(W):a.removeAttribute("name")}function zl(a,s,c,m,b,x,D,W){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(a.type=x),s!=null||c!=null){if(!(x!=="submit"&&x!=="reset"||s!=null))return;c=c!=null?""+Zr(c):"",s=s!=null?""+Zr(s):c,W||s===a.value||(a.value=s),a.defaultValue=s}m=m??b,m=typeof m!="function"&&typeof m!="symbol"&&!!m,a.checked=W?a.checked:!!m,a.defaultChecked=!!m,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(a.name=D)}function td(a,s,c){s==="number"&&Mu(a.ownerDocument)===a||a.defaultValue===""+c||(a.defaultValue=""+c)}function Qo(a,s,c,m){if(a=a.options,s){s={};for(var b=0;b=ec),ym=" ",Oy=!1;function ub(a,s){switch(a){case"keyup":return Zl.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vm(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Vs=!1;function h3(a,s){switch(a){case"compositionend":return vm(s);case"keypress":return s.which!==32?null:(Oy=!0,ym);case"textInput":return a=s.data,a===ym&&Oy?null:a;default:return null}}function lb(a,s){if(Vs)return a==="compositionend"||!xy&&ub(a,s)?(a=fm(),po=zs=Pa=null,Vs=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1=s)return{node:c,offset:s-a};a=m}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=ha(c)}}function mb(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?mb(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function gb(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var s=Mu(a.document);s instanceof a.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)a=s.contentWindow;else break;s=Mu(a.document)}return s}function Ay(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}function y3(a,s){var c=gb(s);s=a.focusedElem;var m=a.selectionRange;if(c!==s&&s&&s.ownerDocument&&mb(s.ownerDocument.documentElement,s)){if(m!==null&&Ay(s)){if(a=m.start,c=m.end,c===void 0&&(c=a),"selectionStart"in s)s.selectionStart=a,s.selectionEnd=Math.min(c,s.value.length);else if(c=(a=s.ownerDocument||document)&&a.defaultView||window,c.getSelection){c=c.getSelection();var b=s.textContent.length,x=Math.min(m.start,b);m=m.end===void 0?x:Math.min(m.end,b),!c.extend&&x>m&&(b=m,m=x,x=b),b=_y(s,x);var D=_y(s,m);b&&D&&(c.rangeCount!==1||c.anchorNode!==b.node||c.anchorOffset!==b.offset||c.focusNode!==D.node||c.focusOffset!==D.offset)&&(a=a.createRange(),a.setStart(b.node,b.offset),c.removeAllRanges(),x>m?(c.addRange(a),c.extend(D.node,D.offset)):(a.setEnd(D.node,D.offset),c.addRange(a)))}}for(a=[],c=s;c=c.parentNode;)c.nodeType===1&&a.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,Ia=null,le=null,xe=null,Se=!1;function Xe(a,s,c){var m=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Se||Ia==null||Ia!==Mu(m)||(m=Ia,"selectionStart"in m&&Ay(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),xe&&yo(xe,m)||(xe=m,m=ag(le,"onSelect"),0>=D,b-=D,ya=1<<32-ce(s)+b|c<vt?(un=st,st=null):un=st.sibling;var Zt=ve(de,st,ye[vt],Ne);if(Zt===null){st===null&&(st=un);break}a&&st&&Zt.alternate===null&&s(de,st),oe=x(Zt,oe,vt),jt===null?et=Zt:jt.sibling=Zt,jt=Zt,st=un}if(vt===ye.length)return c(de,st),$t&&is(de,vt),et;if(st===null){for(;vtvt?(un=st,st=null):un=st.sibling;var yu=ve(de,st,Zt.value,Ne);if(yu===null){st===null&&(st=un);break}a&&st&&yu.alternate===null&&s(de,st),oe=x(yu,oe,vt),jt===null?et=yu:jt.sibling=yu,jt=yu,st=un}if(Zt.done)return c(de,st),$t&&is(de,vt),et;if(st===null){for(;!Zt.done;vt++,Zt=ye.next())Zt=Le(de,Zt.value,Ne),Zt!==null&&(oe=x(Zt,oe,vt),jt===null?et=Zt:jt.sibling=Zt,jt=Zt);return $t&&is(de,vt),et}for(st=m(st);!Zt.done;vt++,Zt=ye.next())Zt=Oe(st,de,vt,Zt.value,Ne),Zt!==null&&(a&&Zt.alternate!==null&&st.delete(Zt.key===null?vt:Zt.key),oe=x(Zt,oe,vt),jt===null?et=Zt:jt.sibling=Zt,jt=Zt);return a&&st.forEach(function(uC){return s(de,uC)}),$t&&is(de,vt),et}function Vn(de,oe,ye,Ne){if(typeof ye=="object"&&ye!==null&&ye.type===d&&ye.key===null&&(ye=ye.props.children),typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case u:e:{for(var et=ye.key;oe!==null;){if(oe.key===et){if(et=ye.type,et===d){if(oe.tag===7){c(de,oe.sibling),Ne=b(oe,ye.props.children),Ne.return=de,de=Ne;break e}}else if(oe.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===_&&dd(et)===oe.type){c(de,oe.sibling),Ne=b(oe,ye.props),z(Ne,ye),Ne.return=de,de=Ne;break e}c(de,oe);break}else s(de,oe);oe=oe.sibling}ye.type===d?(Ne=Xu(ye.props.children,de.mode,Ne,ye.key),Ne.return=de,de=Ne):(Ne=kd(ye.type,ye.key,ye.props,null,de.mode,Ne),z(Ne,ye),Ne.return=de,de=Ne)}return D(de);case l:e:{for(et=ye.key;oe!==null;){if(oe.key===et)if(oe.tag===4&&oe.stateNode.containerInfo===ye.containerInfo&&oe.stateNode.implementation===ye.implementation){c(de,oe.sibling),Ne=b(oe,ye.children||[]),Ne.return=de,de=Ne;break e}else{c(de,oe);break}else s(de,oe);oe=oe.sibling}Ne=$v(ye,de.mode,Ne),Ne.return=de,de=Ne}return D(de);case _:return et=ye._init,ye=et(ye._payload),Vn(de,oe,ye,Ne)}if($e(ye))return at(de,oe,ye,Ne);if(L(ye)){if(et=L(ye),typeof et!="function")throw Error(r(150));return ye=et.call(ye),Et(de,oe,ye,Ne)}if(typeof ye.then=="function")return Vn(de,oe,fd(ye),Ne);if(ye.$$typeof===v)return Vn(de,oe,Km(de,ye),Ne);ls(de,ye)}return typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint"?(ye=""+ye,oe!==null&&oe.tag===6?(c(de,oe.sibling),Ne=b(oe,ye),Ne.return=de,de=Ne):(c(de,oe),Ne=Cv(ye,de.mode,Ne),Ne.return=de,de=Ne),D(de)):c(de,oe)}return function(de,oe,ye,Ne){try{us=0;var et=Vn(de,oe,ye,Ne);return ss=null,et}catch(st){if(st===os)throw st;var jt=ta(29,st,null,de.mode);return jt.lanes=Ne,jt.return=de,jt}finally{}}}var At=Ki(!0),$b=Ki(!1),sc=ke(null),Am=ke(0);function Ys(a,s){a=ws,He(Am,a),He(sc,s),ws=a|s.baseLanes}function My(){He(Am,ws),He(sc,sc.current)}function ky(){ws=Am.current,Ke(sc),Ke(Am)}var ba=ke(null),$o=null;function Js(a){var s=a.alternate;He(pr,pr.current&1),He(ba,a),$o===null&&(s===null||sc.current!==null||s.memoizedState!==null)&&($o=a)}function Eo(a){if(a.tag===22){if(He(pr,pr.current),He(ba,a),$o===null){var s=a.alternate;s!==null&&s.memoizedState!==null&&($o=a)}}else Qs()}function Qs(){He(pr,pr.current),He(ba,ba.current)}function cs(a){Ke(ba),$o===a&&($o=null),Ke(pr)}var pr=ke(0);function Rm(a){for(var s=a;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var w3=typeof AbortController<"u"?AbortController:function(){var a=[],s=this.signal={aborted:!1,addEventListener:function(c,m){a.push(m)}};this.abort=function(){s.aborted=!0,a.forEach(function(c){return c()})}},fs=t.unstable_scheduleCallback,S3=t.unstable_NormalPriority,mr={$$typeof:v,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dy(){return{controller:new w3,data:new Map,refCount:0}}function hd(a){a.refCount--,a.refCount===0&&fs(S3,function(){a.controller.abort()})}var pd=null,ds=0,uc=0,lc=null;function ka(a,s){if(pd===null){var c=pd=[];ds=0,uc=jv(),lc={status:"pending",value:void 0,then:function(m){c.push(m)}}}return ds++,s.then(Eb,Eb),s}function Eb(){if(--ds===0&&pd!==null){lc!==null&&(lc.status="fulfilled");var a=pd;pd=null,uc=0,lc=null;for(var s=0;sx?x:8;var D=Y.T,W={};Y.T=W,yc(a,!1,s,c);try{var Z=b(),se=Y.S;if(se!==null&&se(W,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var _e=C3(Z,m);Sd(a,s,_e,ra(a))}else Sd(a,s,m,ra(a))}catch(Le){Sd(a,s,{then:function(){},status:"rejected",reason:Le},ra())}finally{Ce.p=x,Y.T=D}}function E3(){}function wd(a,s,c,m){if(a.tag!==5)throw Error(r(476));var b=Mt(a).queue;Um(a,b,s,Be,c===null?E3:function(){return Lb(a),c(m)})}function Mt(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:Be,baseState:Be,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:Be},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:c},next:null},a.memoizedState=s,a=a.alternate,a!==null&&(a.memoizedState=s),s}function Lb(a){var s=Mt(a).next.queue;Sd(a,s,{},ra())}function Xy(){return Vr(Kd)}function gc(){return rr().memoizedState}function Zy(){return rr().memoizedState}function x3(a){for(var s=a.return;s!==null;){switch(s.tag){case 24:case 3:var c=ra();a=Ba(c);var m=Qi(s,a,c);m!==null&&(Wr(m,s,c),lt(m,s,c)),s={cache:Dy()},a.payload=s;return}s=s.return}}function O3(a,s,c){var m=ra();c={lane:m,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},vc(a)?ev(s,c):(c=vo(a,s,c,m),c!==null&&(Wr(c,a,m),tv(c,s,m)))}function Ji(a,s,c){var m=ra();Sd(a,s,c,m)}function Sd(a,s,c,m){var b={lane:m,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(vc(a))ev(s,b);else{var x=a.alternate;if(a.lanes===0&&(x===null||x.lanes===0)&&(x=s.lastRenderedReducer,x!==null))try{var D=s.lastRenderedState,W=x(D,c);if(b.hasEagerState=!0,b.eagerState=W,Gi(W,D))return Fu(a,s,b,0),$n===null&&Em(),!1}catch{}finally{}if(c=vo(a,s,b,m),c!==null)return Wr(c,a,m),tv(c,s,m),!0}return!1}function yc(a,s,c,m){if(m={lane:2,revertLane:jv(),action:m,hasEagerState:!1,eagerState:null,next:null},vc(a)){if(s)throw Error(r(479))}else s=vo(a,c,m,2),s!==null&&Wr(s,a,2)}function vc(a){var s=a.alternate;return a===Ft||s!==null&&s===Ft}function ev(a,s){cc=Gu=!0;var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}function tv(a,s,c){if((c&4194176)!==0){var m=s.lanes;m&=a.pendingLanes,c|=m,s.lanes=c,Xr(a,c)}}var Yn={readContext:Vr,use:gd,useCallback:an,useContext:an,useEffect:an,useImperativeHandle:an,useLayoutEffect:an,useInsertionEffect:an,useMemo:an,useReducer:an,useRef:an,useState:an,useDebugValue:an,useDeferredValue:an,useTransition:an,useSyncExternalStore:an,useId:an};Yn.useCacheRefresh=an,Yn.useMemoCache=an,Yn.useHostTransitionStatus=an,Yn.useFormState=an,Yn.useActionState=an,Yn.useOptimistic=an;var Ai={readContext:Vr,use:gd,useCallback:function(a,s){return _i().memoizedState=[a,s===void 0?null:s],a},useContext:Vr,useEffect:Gy,useImperativeHandle:function(a,s,c){c=c!=null?c.concat([a]):null,mc(4194308,4,Wy.bind(null,s,a),c)},useLayoutEffect:function(a,s){return mc(4194308,4,a,s)},useInsertionEffect:function(a,s){mc(4,2,a,s)},useMemo:function(a,s){var c=_i();s=s===void 0?null:s;var m=a();if(Zs){ae(!0);try{a()}finally{ae(!1)}}return c.memoizedState=[m,s],m},useReducer:function(a,s,c){var m=_i();if(c!==void 0){var b=c(s);if(Zs){ae(!0);try{c(s)}finally{ae(!1)}}}else b=s;return m.memoizedState=m.baseState=b,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b},m.queue=a,a=a.dispatch=O3.bind(null,Ft,a),[m.memoizedState,a]},useRef:function(a){var s=_i();return a={current:a},s.memoizedState=a},useState:function(a){a=qy(a);var s=a.queue,c=Ji.bind(null,Ft,s);return s.dispatch=c,[a.memoizedState,c]},useDebugValue:Yy,useDeferredValue:function(a,s){var c=_i();return bd(c,a,s)},useTransition:function(){var a=qy(!1);return a=Um.bind(null,Ft,a.queue,!0,!1),_i().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,s,c){var m=Ft,b=_i();if($t){if(c===void 0)throw Error(r(407));c=c()}else{if(c=s(),$n===null)throw Error(r(349));(Xt&60)!==0||km(m,s,c)}b.memoizedState=c;var x={value:c,getSnapshot:s};return b.queue=x,Gy(Tb.bind(null,m,x,a),[a]),m.flags|=2048,nu(9,Ob.bind(null,m,x,c,s),{destroy:void 0},null),c},useId:function(){var a=_i(),s=$n.identifierPrefix;if($t){var c=va,m=ya;c=(m&~(1<<32-ce(m)-1)).toString(32)+c,s=":"+s+"R"+c,c=Pm++,0 title"))),Nr(x,m,c),x[Mn]=a,kn(x),m=x;break e;case"link":var D=N2("link","href",b).get(m+(c.href||""));if(D){for(var W=0;W<\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof m.is=="string"?b.createElement("select",{is:m.is}):b.createElement("select"),m.multiple?a.multiple=!0:m.size&&(a.size=m.size);break;default:a=typeof m.is=="string"?b.createElement(c,{is:m.is}):b.createElement(c)}}a[Mn]=s,a[An]=m;e:for(b=s.child;b!==null;){if(b.tag===5||b.tag===6)a.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===s)break e;for(;b.sibling===null;){if(b.return===null||b.return===s)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}s.stateNode=a;e:switch(Nr(a,c,m),c){case"button":case"input":case"select":case"textarea":a=!!m.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&vs(s)}}return qn(s),s.flags&=-16777217,null;case 6:if(a&&s.stateNode!=null)a.memoizedProps!==m&&vs(s);else{if(typeof m!="string"&&s.stateNode===null)throw Error(r(166));if(a=bt.current,zu(s)){if(a=s.stateNode,c=s.memoizedProps,m=null,b=ri,b!==null)switch(b.tag){case 27:case 5:m=b.memoizedProps}a[Mn]=s,a=!!(a.nodeValue===c||m!==null&&m.suppressHydrationWarning===!0||Ot(a.nodeValue,c)),a||Hu(s)}else a=sg(a).createTextNode(m),a[Mn]=s,s.stateNode=a}return qn(s),null;case 13:if(m=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(b=zu(s),m!==null&&m.dehydrated!==null){if(a===null){if(!b)throw Error(r(318));if(b=s.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[Mn]=s}else Co(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;qn(s),b=!1}else Ma!==null&&(Ic(Ma),Ma=null),b=!0;if(!b)return s.flags&256?(cs(s),s):(cs(s),null)}if(cs(s),(s.flags&128)!==0)return s.lanes=c,s;if(c=m!==null,a=a!==null&&a.memoizedState!==null,c){m=s.child,b=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(b=m.alternate.memoizedState.cachePool.pool);var x=null;m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(x=m.memoizedState.cachePool.pool),x!==b&&(m.flags|=2048)}return c!==a&&c&&(s.child.flags|=8192),oi(s,s.updateQueue),qn(s),null;case 4:return Gt(),a===null&&Vv(s.stateNode.containerInfo),qn(s),null;case 10:return Oo(s.type),qn(s),null;case 19:if(Ke(pr),b=s.memoizedState,b===null)return qn(s),null;if(m=(s.flags&128)!==0,x=b.rendering,x===null)if(m)Dd(b,!1);else{if(Qn!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(x=Rm(a),x!==null){for(s.flags|=128,Dd(b,!1),a=x.updateQueue,s.updateQueue=a,oi(s,a),s.subtreeFlags=0,a=c,c=s.child;c!==null;)r2(c,a),c=c.sibling;return He(pr,pr.current&1|2),s.child}a=a.sibling}b.tail!==null&&Ge()>Zm&&(s.flags|=128,m=!0,Dd(b,!1),s.lanes=4194304)}else{if(!m)if(a=Rm(x),a!==null){if(s.flags|=128,m=!0,a=a.updateQueue,s.updateQueue=a,oi(s,a),Dd(b,!0),b.tail===null&&b.tailMode==="hidden"&&!x.alternate&&!$t)return qn(s),null}else 2*Ge()-b.renderingStartTime>Zm&&c!==536870912&&(s.flags|=128,m=!0,Dd(b,!1),s.lanes=4194304);b.isBackwards?(x.sibling=s.child,s.child=x):(a=b.last,a!==null?a.sibling=x:s.child=x,b.last=x)}return b.tail!==null?(s=b.tail,b.rendering=s,b.tail=s.sibling,b.renderingStartTime=Ge(),s.sibling=null,a=pr.current,He(pr,m?a&1|2:a&1),s):(qn(s),null);case 22:case 23:return cs(s),ky(),m=s.memoizedState!==null,a!==null?a.memoizedState!==null!==m&&(s.flags|=8192):m&&(s.flags|=8192),m?(c&536870912)!==0&&(s.flags&128)===0&&(qn(s),s.subtreeFlags&6&&(s.flags|=8192)):qn(s),c=s.updateQueue,c!==null&&oi(s,c.retryQueue),c=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),m=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),m!==c&&(s.flags|=2048),a!==null&&Ke(Vu),null;case 24:return c=null,a!==null&&(c=a.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),Oo(mr),qn(s),null;case 25:return null}throw Error(r(156,s.tag))}function o2(a,s){switch(Ny(s),s.tag){case 1:return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return Oo(mr),Gt(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 26:case 27:case 5:return en(s),null;case 13:if(cs(s),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Co()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return Ke(pr),null;case 4:return Gt(),null;case 10:return Oo(s.type),null;case 22:case 23:return cs(s),ky(),a!==null&&Ke(Vu),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 24:return Oo(mr),null;case 25:return null;default:return null}}function s2(a,s){switch(Ny(s),s.tag){case 3:Oo(mr),Gt();break;case 26:case 27:case 5:en(s);break;case 4:Gt();break;case 13:cs(s);break;case 19:Ke(pr);break;case 10:Oo(s.type);break;case 22:case 23:cs(s),ky(),a!==null&&Ke(Vu);break;case 24:Oo(mr)}}var R3={getCacheForType:function(a){var s=Vr(mr),c=s.data.get(a);return c===void 0&&(c=a(),s.data.set(a,c)),c}},P3=typeof WeakMap=="function"?WeakMap:Map,Hn=0,$n=null,qt=null,Xt=0,Pn=0,na=null,bs=!1,Rc=!1,Ev=!1,ws=0,Qn=0,fu=0,Zu=0,xv=0,Sa=0,Pc=0,Fd=null,Po=null,Ov=!1,Tv=0,Zm=1/0,eg=null,Io=null,Ld=!1,el=null,Ud=0,_v=0,Av=null,jd=0,Rv=null;function ra(){if((Hn&2)!==0&&Xt!==0)return Xt&-Xt;if(Y.T!==null){var a=uc;return a!==0?a:jv()}return Ui()}function u2(){Sa===0&&(Sa=(Xt&536870912)===0||$t?ca():536870912);var a=ba.current;return a!==null&&(a.flags|=32),Sa}function Wr(a,s,c){(a===$n&&Pn===2||a.cancelPendingCommit!==null)&&(Nc(a,0),Ss(a,Xt,Sa,!1)),uo(a,c),((Hn&2)===0||a!==$n)&&(a===$n&&((Hn&2)===0&&(Zu|=c),Qn===4&&Ss(a,Xt,Sa,!1)),za(a))}function l2(a,s,c){if((Hn&6)!==0)throw Error(r(327));var m=!c&&(s&60)===0&&(s&a.expiredLanes)===0||On(a,s),b=m?M3(a,s):Nv(a,s,!0),x=m;do{if(b===0){Rc&&!m&&Ss(a,s,0,!1);break}else if(b===6)Ss(a,s,0,!bs);else{if(c=a.current.alternate,x&&!I3(c)){b=Nv(a,s,!1),x=!1;continue}if(b===2){if(x=s,a.errorRecoveryDisabledLanes&x)var D=0;else D=a.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){s=D;e:{var W=a;b=Fd;var Z=W.current.memoizedState.isDehydrated;if(Z&&(Nc(W,D).flags|=256),D=Nv(W,D,!1),D!==2){if(Ev&&!Z){W.errorRecoveryDisabledLanes|=x,Zu|=x,b=4;break e}x=Po,Po=b,x!==null&&Ic(x)}b=D}if(x=!1,b!==2)continue}}if(b===1){Nc(a,0),Ss(a,s,0,!0);break}e:{switch(m=a,b){case 0:case 1:throw Error(r(345));case 4:if((s&4194176)===s){Ss(m,s,Sa,!bs);break e}break;case 2:Po=null;break;case 3:case 5:break;default:throw Error(r(329))}if(m.finishedWork=c,m.finishedLanes=s,(s&62914560)===s&&(x=Tv+300-Ge(),10c?32:c,Y.T=null,el===null)var x=!1;else{c=Av,Av=null;var D=el,W=Ud;if(el=null,Ud=0,(Hn&6)!==0)throw Error(r(331));var Z=Hn;if(Hn|=4,t2(D.current),Xb(D,D.current,W,c),Hn=Z,rl(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Ee,D)}catch{}x=!0}return x}finally{Ce.p=b,Y.T=m,v2(a,s)}}return!1}function b2(a,s,c){s=ni(c,s),s=$d(a.stateNode,s,2),a=Qi(a,s,2),a!==null&&(uo(a,2),za(a))}function Tn(a,s,c){if(a.tag===3)b2(a,a,c);else for(;s!==null;){if(s.tag===3){b2(s,a,c);break}else if(s.tag===1){var m=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Io===null||!Io.has(m))){a=ni(c,a),c=jb(2),m=Qi(s,c,2),m!==null&&(Bb(c,m,s,a),uo(m,2),za(m));break}}s=s.return}}function Mv(a,s,c){var m=a.pingCache;if(m===null){m=a.pingCache=new P3;var b=new Set;m.set(s,b)}else b=m.get(s),b===void 0&&(b=new Set,m.set(s,b));b.has(c)||(Ev=!0,b.add(c),a=F3.bind(null,a,s,c),s.then(a,a))}function F3(a,s,c){var m=a.pingCache;m!==null&&m.delete(s),a.pingedLanes|=a.suspendedLanes&c,a.warmLanes&=~c,$n===a&&(Xt&c)===c&&(Qn===4||Qn===3&&(Xt&62914560)===Xt&&300>Ge()-Tv?(Hn&2)===0&&Nc(a,0):xv|=c,Pc===Xt&&(Pc=0)),za(a)}function w2(a,s){s===0&&(s=Ar()),a=Na(a,s),a!==null&&(uo(a,s),za(a))}function L3(a){var s=a.memoizedState,c=0;s!==null&&(c=s.retryLane),w2(a,c)}function U3(a,s){var c=0;switch(a.tag){case 13:var m=a.stateNode,b=a.memoizedState;b!==null&&(c=b.retryLane);break;case 19:m=a.stateNode;break;case 22:m=a.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(s),w2(a,c)}function j3(a,s){return Dt(a,s)}var ng=null,Mc=null,kv=!1,nl=!1,Dv=!1,du=0;function za(a){a!==Mc&&a.next===null&&(Mc===null?ng=Mc=a:Mc=Mc.next=a),nl=!0,kv||(kv=!0,B3(S2))}function rl(a,s){if(!Dv&&nl){Dv=!0;do for(var c=!1,m=ng;m!==null;){if(a!==0){var b=m.pendingLanes;if(b===0)var x=0;else{var D=m.suspendedLanes,W=m.pingedLanes;x=(1<<31-ce(42|a)+1)-1,x&=b&~(D&~W),x=x&201326677?x&201326677|1:x?x|2:0}x!==0&&(c=!0,Uv(m,x))}else x=Xt,x=tr(m,m===$n?x:0),(x&3)===0||On(m,x)||(c=!0,Uv(m,x));m=m.next}while(c);Dv=!1}}function S2(){nl=kv=!1;var a=0;du!==0&&($s()&&(a=du),du=0);for(var s=Ge(),c=null,m=ng;m!==null;){var b=m.next,x=Fv(m,s);x===0?(m.next=null,c===null?ng=b:c.next=b,b===null&&(Mc=c)):(c=m,(a!==0||(x&3)!==0)&&(nl=!0)),m=b}rl(a)}function Fv(a,s){for(var c=a.suspendedLanes,m=a.pingedLanes,b=a.expirationTimes,x=a.pendingLanes&-62914561;0"u"?null:document;function R2(a,s,c){var m=Ga;if(m&&typeof s=="string"&&s){var b=ei(s);b='link[rel="'+a+'"][href="'+b+'"]',typeof c=="string"&&(b+='[crossorigin="'+c+'"]'),lg.has(b)||(lg.add(b),a={rel:a,crossOrigin:c,href:s},m.querySelector(b)===null&&(s=m.createElement("link"),Nr(s,"link",a),kn(s),m.head.appendChild(s)))}}function W3(a){No.D(a),R2("dns-prefetch",a,null)}function K3(a,s){No.C(a,s),R2("preconnect",a,s)}function Y3(a,s,c){No.L(a,s,c);var m=Ga;if(m&&a&&s){var b='link[rel="preload"][as="'+ei(s)+'"]';s==="image"&&c&&c.imageSrcSet?(b+='[imagesrcset="'+ei(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(b+='[imagesizes="'+ei(c.imageSizes)+'"]')):b+='[href="'+ei(a)+'"]';var x=b;switch(s){case"style":x=Mr(a);break;case"script":x=Fc(a)}Kr.has(x)||(a=X({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:a,as:s},c),Kr.set(x,a),m.querySelector(b)!==null||s==="style"&&m.querySelector(Dc(x))||s==="script"&&m.querySelector(Lc(x))||(s=m.createElement("link"),Nr(s,"link",a),kn(s),m.head.appendChild(s)))}}function J3(a,s){No.m(a,s);var c=Ga;if(c&&a){var m=s&&typeof s.as=="string"?s.as:"script",b='link[rel="modulepreload"][as="'+ei(m)+'"][href="'+ei(a)+'"]',x=b;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=Fc(a)}if(!Kr.has(x)&&(a=X({rel:"modulepreload",href:a},s),Kr.set(x,a),c.querySelector(b)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Lc(x)))return}m=c.createElement("link"),Nr(m,"link",a),kn(m),c.head.appendChild(m)}}}function P2(a,s,c){No.S(a,s,c);var m=Ga;if(m&&a){var b=js(m).hoistableStyles,x=Mr(a);s=s||"default";var D=b.get(x);if(!D){var W={loading:0,preload:null};if(D=m.querySelector(Dc(x)))W.loading=5;else{a=X({rel:"stylesheet",href:a,"data-precedence":s},c),(c=Kr.get(x))&&t0(a,c);var Z=D=m.createElement("link");kn(Z),Nr(Z,"link",a),Z._p=new Promise(function(se,_e){Z.onload=se,Z.onerror=_e}),Z.addEventListener("load",function(){W.loading|=1}),Z.addEventListener("error",function(){W.loading|=2}),W.loading|=4,dg(D,s,m)}D={type:"stylesheet",instance:D,count:1,state:W},b.set(x,D)}}}function Es(a,s){No.X(a,s);var c=Ga;if(c&&a){var m=js(c).hoistableScripts,b=Fc(a),x=m.get(b);x||(x=c.querySelector(Lc(b)),x||(a=X({src:a,async:!0},s),(s=Kr.get(b))&&n0(a,s),x=c.createElement("script"),kn(x),Nr(x,"link",a),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},m.set(b,x))}}function Nt(a,s){No.M(a,s);var c=Ga;if(c&&a){var m=js(c).hoistableScripts,b=Fc(a),x=m.get(b);x||(x=c.querySelector(Lc(b)),x||(a=X({src:a,async:!0,type:"module"},s),(s=Kr.get(b))&&n0(a,s),x=c.createElement("script"),kn(x),Nr(x,"link",a),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},m.set(b,x))}}function e0(a,s,c,m){var b=(b=bt.current)?cg(b):null;if(!b)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=Mr(c.href),c=js(b).hoistableStyles,m=c.get(s),m||(m={type:"style",instance:null,count:0,state:null},c.set(s,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){a=Mr(c.href);var x=js(b).hoistableStyles,D=x.get(a);if(D||(b=b.ownerDocument||b,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(a,D),(x=b.querySelector(Dc(a)))&&!x._p&&(D.instance=x,D.state.loading=5),Kr.has(a)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Kr.set(a,c),x||hn(b,a,c,D.state))),s&&m===null)throw Error(r(528,""));return D}if(s&&m!==null)throw Error(r(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Fc(c),c=js(b).hoistableScripts,m=c.get(s),m||(m={type:"script",instance:null,count:0,state:null},c.set(s,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Mr(a){return'href="'+ei(a)+'"'}function Dc(a){return'link[rel="stylesheet"]['+a+"]"}function I2(a){return X({},a,{"data-precedence":a.precedence,precedence:null})}function hn(a,s,c,m){a.querySelector('link[rel="preload"][as="style"]['+s+"]")?m.loading=1:(s=a.createElement("link"),m.preload=s,s.addEventListener("load",function(){return m.loading|=1}),s.addEventListener("error",function(){return m.loading|=2}),Nr(s,"link",c),kn(s),a.head.appendChild(s))}function Fc(a){return'[src="'+ei(a)+'"]'}function Lc(a){return"script[async]"+a}function Gd(a,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var m=a.querySelector('style[data-href~="'+ei(c.href)+'"]');if(m)return s.instance=m,kn(m),m;var b=X({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return m=(a.ownerDocument||a).createElement("style"),kn(m),Nr(m,"style",b),dg(m,c.precedence,a),s.instance=m;case"stylesheet":b=Mr(c.href);var x=a.querySelector(Dc(b));if(x)return s.state.loading|=4,s.instance=x,kn(x),x;m=I2(c),(b=Kr.get(b))&&t0(m,b),x=(a.ownerDocument||a).createElement("link"),kn(x);var D=x;return D._p=new Promise(function(W,Z){D.onload=W,D.onerror=Z}),Nr(x,"link",m),s.state.loading|=4,dg(x,c.precedence,a),s.instance=x;case"script":return x=Fc(c.src),(b=a.querySelector(Lc(x)))?(s.instance=b,kn(b),b):(m=c,(b=Kr.get(x))&&(m=X({},c),n0(m,b)),a=a.ownerDocument||a,b=a.createElement("script"),kn(b),Nr(b,"link",m),a.head.appendChild(b),s.instance=b);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(m=s.instance,s.state.loading|=4,dg(m,c.precedence,a));return s.instance}function dg(a,s,c){for(var m=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=m.length?m[m.length-1]:null,x=b,D=0;D title"):null)}function Q3(a,s,c){if(c===1||s.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return a=s.disabled,typeof s.precedence=="string"&&a==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function k2(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}var Wd=null;function X3(){}function Z3(a,s,c){if(Wd===null)throw Error(r(475));var m=Wd;if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var b=Mr(c.href),x=a.querySelector(Dc(b));if(x){a=x._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(m.count++,m=pg.bind(m),a.then(m,m)),s.state.loading|=4,s.instance=x,kn(x);return}x=a.ownerDocument||a,c=I2(c),(b=Kr.get(b))&&t0(c,b),x=x.createElement("link"),kn(x);var D=x;D._p=new Promise(function(W,Z){D.onload=W,D.onerror=Z}),Nr(x,"link",c),s.instance=x}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(m.count++,s=pg.bind(m),a.addEventListener("load",s),a.addEventListener("error",s))}}function eC(){if(Wd===null)throw Error(r(475));var a=Wd;return a.stylesheets&&a.count===0&&r0(a,a.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),mC.exports=nF(),mC.exports}var iF=rF();const aF=Mf(iF),oF=Ae.createContext({patchConfig(){},config:{}});function sF(){const t=localStorage.getItem("app_config2");if(t){try{const e=JSON.parse(t);return e?{...e}:{}}catch{}return{}}}sF();function Fw(t,e){return Fw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Fw(t,e)}function Qp(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Fw(t,e)}var oy=(function(){function t(){this.listeners=[]}var e=t.prototype;return e.subscribe=function(r){var i=this,o=r||function(){};return this.listeners.push(o),this.onSubscribe(),function(){i.listeners=i.listeners.filter(function(u){return u!==o}),i.onUnsubscribe()}},e.hasListeners=function(){return this.listeners.length>0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},t})();function Ve(){return Ve=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u";function yi(){}function uF(t,e){return typeof t=="function"?t(e):t}function ME(t){return typeof t=="number"&&t>=0&&t!==1/0}function Uw(t){return Array.isArray(t)?t:[t]}function w9(t,e){return Math.max(t+(e||0)-Date.now(),0)}function vw(t,e,n){return U1(t)?typeof e=="function"?Ve({},n,{queryKey:t,queryFn:e}):Ve({},e,{queryKey:t}):t}function lF(t,e,n){return U1(t)?Ve({},e,{mutationKey:t}):typeof t=="function"?Ve({},e,{mutationFn:t}):Ve({},t)}function $f(t,e,n){return U1(t)?[Ve({},e,{queryKey:t}),n]:[t||{},e]}function cF(t,e){if(t===!0&&e===!0||t==null&&e==null)return"all";if(t===!1&&e===!1)return"none";var n=t??!e;return n?"active":"inactive"}function v4(t,e){var n=t.active,r=t.exact,i=t.fetching,o=t.inactive,u=t.predicate,l=t.queryKey,d=t.stale;if(U1(l)){if(r){if(e.queryHash!==yO(l,e.options))return!1}else if(!jw(e.queryKey,l))return!1}var h=cF(n,o);if(h==="none")return!1;if(h!=="all"){var g=e.isActive();if(h==="active"&&!g||h==="inactive"&&g)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||typeof i=="boolean"&&e.isFetching()!==i||u&&!u(e))}function b4(t,e){var n=t.exact,r=t.fetching,i=t.predicate,o=t.mutationKey;if(U1(o)){if(!e.options.mutationKey)return!1;if(n){if($p(e.options.mutationKey)!==$p(o))return!1}else if(!jw(e.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&e.state.status==="loading"!==r||i&&!i(e))}function yO(t,e){var n=(e==null?void 0:e.queryKeyHashFn)||$p;return n(t)}function $p(t){var e=Uw(t);return fF(e)}function fF(t){return JSON.stringify(t,function(e,n){return kE(n)?Object.keys(n).sort().reduce(function(r,i){return r[i]=n[i],r},{}):n})}function jw(t,e){return S9(Uw(t),Uw(e))}function S9(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?!Object.keys(e).some(function(n){return!S9(t[n],e[n])}):!1}function Bw(t,e){if(t===e)return t;var n=Array.isArray(t)&&Array.isArray(e);if(n||kE(t)&&kE(e)){for(var r=n?t.length:Object.keys(t).length,i=n?e:Object.keys(e),o=i.length,u=n?[]:{},l=0,d=0;d"u")return!0;var n=e.prototype;return!(!w4(n)||!n.hasOwnProperty("isPrototypeOf"))}function w4(t){return Object.prototype.toString.call(t)==="[object Object]"}function U1(t){return typeof t=="string"||Array.isArray(t)}function hF(t){return new Promise(function(e){setTimeout(e,t)})}function S4(t){Promise.resolve().then(t).catch(function(e){return setTimeout(function(){throw e})})}function C9(){if(typeof AbortController=="function")return new AbortController}var pF=(function(t){Qp(e,t);function e(){var r;return r=t.call(this)||this,r.setup=function(i){var o;if(!Lw&&((o=window)!=null&&o.addEventListener)){var u=function(){return i()};return window.addEventListener("visibilitychange",u,!1),window.addEventListener("focus",u,!1),function(){window.removeEventListener("visibilitychange",u),window.removeEventListener("focus",u)}}},r}var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var o,u=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(l){typeof l=="boolean"?u.setFocused(l):u.onFocus()})},n.setFocused=function(i){this.focused=i,i&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(i){i()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},e})(oy),B0=new pF,mF=(function(t){Qp(e,t);function e(){var r;return r=t.call(this)||this,r.setup=function(i){var o;if(!Lw&&((o=window)!=null&&o.addEventListener)){var u=function(){return i()};return window.addEventListener("online",u,!1),window.addEventListener("offline",u,!1),function(){window.removeEventListener("online",u),window.removeEventListener("offline",u)}}},r}var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var o,u=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(l){typeof l=="boolean"?u.setOnline(l):u.onOnline()})},n.setOnline=function(i){this.online=i,i&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(i){i()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},e})(oy),bw=new mF;function gF(t){return Math.min(1e3*Math.pow(2,t),3e4)}function qw(t){return typeof(t==null?void 0:t.cancel)=="function"}var $9=function(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent};function ww(t){return t instanceof $9}var E9=function(e){var n=this,r=!1,i,o,u,l;this.abort=e.abort,this.cancel=function(w){return i==null?void 0:i(w)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return o==null?void 0:o()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(w,v){u=w,l=v});var d=function(v){n.isResolved||(n.isResolved=!0,e.onSuccess==null||e.onSuccess(v),o==null||o(),u(v))},h=function(v){n.isResolved||(n.isResolved=!0,e.onError==null||e.onError(v),o==null||o(),l(v))},g=function(){return new Promise(function(v){o=v,n.isPaused=!0,e.onPause==null||e.onPause()}).then(function(){o=void 0,n.isPaused=!1,e.onContinue==null||e.onContinue()})},y=function w(){if(!n.isResolved){var v;try{v=e.fn()}catch(C){v=Promise.reject(C)}i=function(E){if(!n.isResolved&&(h(new $9(E)),n.abort==null||n.abort(),qw(v)))try{v.cancel()}catch{}},n.isTransportCancelable=qw(v),Promise.resolve(v).then(d).catch(function(C){var E,$;if(!n.isResolved){var O=(E=e.retry)!=null?E:3,_=($=e.retryDelay)!=null?$:gF,R=typeof _=="function"?_(n.failureCount,C):_,k=O===!0||typeof O=="number"&&n.failureCount"u"&&(l.exact=!0),this.queries.find(function(d){return v4(l,d)})},n.findAll=function(i,o){var u=$f(i,o),l=u[0];return Object.keys(l).length>0?this.queries.filter(function(d){return v4(l,d)}):this.queries},n.notify=function(i){var o=this;er.batch(function(){o.listeners.forEach(function(u){u(i)})})},n.onFocus=function(){var i=this;er.batch(function(){i.queries.forEach(function(o){o.onFocus()})})},n.onOnline=function(){var i=this;er.batch(function(){i.queries.forEach(function(o){o.onOnline()})})},e})(oy),SF=(function(){function t(n){this.options=Ve({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||O9(),this.meta=n.meta}var e=t.prototype;return e.setState=function(r){this.dispatch({type:"setState",state:r})},e.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},e.removeObserver=function(r){this.observers=this.observers.filter(function(i){return i!==r})},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(yi).catch(yi)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var r=this,i,o=this.state.status==="loading",u=Promise.resolve();return o||(this.dispatch({type:"loading",variables:this.options.variables}),u=u.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(l){l!==r.state.context&&r.dispatch({type:"loading",context:l,variables:r.state.variables})})),u.then(function(){return r.executeMutation()}).then(function(l){i=l,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(i,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(i,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(i,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:i}),i}).catch(function(l){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(l,r.state.variables,r.state.context,r),Hw().error(l),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(l,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,l,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:l}),l})})},e.executeMutation=function(){var r=this,i;return this.retryer=new E9({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(r){var i=this;this.state=CF(this.state,r),er.batch(function(){i.observers.forEach(function(o){o.onMutationUpdate(r)}),i.mutationCache.notify(i)})},t})();function O9(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function CF(t,e){switch(e.type){case"failed":return Ve({},t,{failureCount:t.failureCount+1});case"pause":return Ve({},t,{isPaused:!0});case"continue":return Ve({},t,{isPaused:!1});case"loading":return Ve({},t,{context:e.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:e.variables});case"success":return Ve({},t,{data:e.data,error:null,status:"success",isPaused:!1});case"error":return Ve({},t,{data:void 0,error:e.error,failureCount:t.failureCount+1,isPaused:!1,status:"error"});case"setState":return Ve({},t,e.state);default:return t}}var $F=(function(t){Qp(e,t);function e(r){var i;return i=t.call(this)||this,i.config=r||{},i.mutations=[],i.mutationId=0,i}var n=e.prototype;return n.build=function(i,o,u){var l=new SF({mutationCache:this,mutationId:++this.mutationId,options:i.defaultMutationOptions(o),state:u,defaultOptions:o.mutationKey?i.getMutationDefaults(o.mutationKey):void 0,meta:o.meta});return this.add(l),l},n.add=function(i){this.mutations.push(i),this.notify(i)},n.remove=function(i){this.mutations=this.mutations.filter(function(o){return o!==i}),i.cancel(),this.notify(i)},n.clear=function(){var i=this;er.batch(function(){i.mutations.forEach(function(o){i.remove(o)})})},n.getAll=function(){return this.mutations},n.find=function(i){return typeof i.exact>"u"&&(i.exact=!0),this.mutations.find(function(o){return b4(i,o)})},n.findAll=function(i){return this.mutations.filter(function(o){return b4(i,o)})},n.notify=function(i){var o=this;er.batch(function(){o.listeners.forEach(function(u){u(i)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var i=this.mutations.filter(function(o){return o.state.isPaused});return er.batch(function(){return i.reduce(function(o,u){return o.then(function(){return u.continue().catch(yi)})},Promise.resolve())})},e})(oy);function EF(){return{onFetch:function(e){e.fetchFn=function(){var n,r,i,o,u,l,d=(n=e.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,h=(i=e.fetchOptions)==null||(o=i.meta)==null?void 0:o.fetchMore,g=h==null?void 0:h.pageParam,y=(h==null?void 0:h.direction)==="forward",w=(h==null?void 0:h.direction)==="backward",v=((u=e.state.data)==null?void 0:u.pages)||[],C=((l=e.state.data)==null?void 0:l.pageParams)||[],E=C9(),$=E==null?void 0:E.signal,O=C,_=!1,R=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},k=function(be,we,B,V){return O=V?[we].concat(O):[].concat(O,[we]),V?[B].concat(be):[].concat(be,[B])},P=function(be,we,B,V){if(_)return Promise.reject("Cancelled");if(typeof B>"u"&&!we&&be.length)return Promise.resolve(be);var H={queryKey:e.queryKey,signal:$,pageParam:B,meta:e.meta},ie=R(H),G=Promise.resolve(ie).then(function(he){return k(be,B,he,V)});if(qw(ie)){var Q=G;Q.cancel=ie.cancel}return G},L;if(!v.length)L=P([]);else if(y){var F=typeof g<"u",q=F?g:C4(e.options,v);L=P(v,F,q)}else if(w){var Y=typeof g<"u",X=Y?g:xF(e.options,v);L=P(v,Y,X,!0)}else(function(){O=[];var te=typeof e.options.getNextPageParam>"u",be=d&&v[0]?d(v[0],0,v):!0;L=be?P([],te,C[0]):Promise.resolve(k([],C[0],v[0]));for(var we=function(H){L=L.then(function(ie){var G=d&&v[H]?d(v[H],H,v):!0;if(G){var Q=te?C[H]:C4(e.options,ie);return P(ie,te,Q)}return Promise.resolve(k(ie,C[H],v[H]))})},B=1;B"u"&&(g.revert=!0);var y=er.batch(function(){return u.queryCache.findAll(d).map(function(w){return w.cancel(g)})});return Promise.all(y).then(yi).catch(yi)},e.invalidateQueries=function(r,i,o){var u,l,d,h=this,g=$f(r,i,o),y=g[0],w=g[1],v=Ve({},y,{active:(u=(l=y.refetchActive)!=null?l:y.active)!=null?u:!0,inactive:(d=y.refetchInactive)!=null?d:!1});return er.batch(function(){return h.queryCache.findAll(y).forEach(function(C){C.invalidate()}),h.refetchQueries(v,w)})},e.refetchQueries=function(r,i,o){var u=this,l=$f(r,i,o),d=l[0],h=l[1],g=er.batch(function(){return u.queryCache.findAll(d).map(function(w){return w.fetch(void 0,Ve({},h,{meta:{refetchPage:d==null?void 0:d.refetchPage}}))})}),y=Promise.all(g).then(yi);return h!=null&&h.throwOnError||(y=y.catch(yi)),y},e.fetchQuery=function(r,i,o){var u=vw(r,i,o),l=this.defaultQueryOptions(u);typeof l.retry>"u"&&(l.retry=!1);var d=this.queryCache.build(this,l);return d.isStaleByTime(l.staleTime)?d.fetch(l):Promise.resolve(d.state.data)},e.prefetchQuery=function(r,i,o){return this.fetchQuery(r,i,o).then(yi).catch(yi)},e.fetchInfiniteQuery=function(r,i,o){var u=vw(r,i,o);return u.behavior=EF(),this.fetchQuery(u)},e.prefetchInfiniteQuery=function(r,i,o){return this.fetchInfiniteQuery(r,i,o).then(yi).catch(yi)},e.cancelMutations=function(){var r=this,i=er.batch(function(){return r.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(i).then(yi).catch(yi)},e.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},e.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},e.getQueryCache=function(){return this.queryCache},e.getMutationCache=function(){return this.mutationCache},e.getDefaultOptions=function(){return this.defaultOptions},e.setDefaultOptions=function(r){this.defaultOptions=r},e.setQueryDefaults=function(r,i){var o=this.queryDefaults.find(function(u){return $p(r)===$p(u.queryKey)});o?o.defaultOptions=i:this.queryDefaults.push({queryKey:r,defaultOptions:i})},e.getQueryDefaults=function(r){var i;return r?(i=this.queryDefaults.find(function(o){return jw(r,o.queryKey)}))==null?void 0:i.defaultOptions:void 0},e.setMutationDefaults=function(r,i){var o=this.mutationDefaults.find(function(u){return $p(r)===$p(u.mutationKey)});o?o.defaultOptions=i:this.mutationDefaults.push({mutationKey:r,defaultOptions:i})},e.getMutationDefaults=function(r){var i;return r?(i=this.mutationDefaults.find(function(o){return jw(r,o.mutationKey)}))==null?void 0:i.defaultOptions:void 0},e.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var i=Ve({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=yO(i.queryKey,i)),i},e.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},e.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:Ve({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},e.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},t})(),TF=(function(t){Qp(e,t);function e(r,i){var o;return o=t.call(this)||this,o.client=r,o.options=i,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(i),o}var n=e.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),$4(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return DE(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return DE(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(i,o){var u=this.options,l=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(i),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=u.queryKey),this.updateQuery();var d=this.hasListeners();d&&E4(this.currentQuery,l,this.options,u)&&this.executeFetch(),this.updateResult(o),d&&(this.currentQuery!==l||this.options.enabled!==u.enabled||this.options.staleTime!==u.staleTime)&&this.updateStaleTimeout();var h=this.computeRefetchInterval();d&&(this.currentQuery!==l||this.options.enabled!==u.enabled||h!==this.currentRefetchInterval)&&this.updateRefetchInterval(h)},n.getOptimisticResult=function(i){var o=this.client.defaultQueryObserverOptions(i),u=this.client.getQueryCache().build(this.client,o);return this.createResult(u,o)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(i,o){var u=this,l={},d=function(g){u.trackedProps.includes(g)||u.trackedProps.push(g)};return Object.keys(i).forEach(function(h){Object.defineProperty(l,h,{configurable:!1,enumerable:!0,get:function(){return d(h),i[h]}})}),(o.useErrorBoundary||o.suspense)&&d("error"),l},n.getNextResult=function(i){var o=this;return new Promise(function(u,l){var d=o.subscribe(function(h){h.isFetching||(d(),h.isError&&(i!=null&&i.throwOnError)?l(h.error):u(h))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(i){return this.fetch(Ve({},i,{meta:{refetchPage:i==null?void 0:i.refetchPage}}))},n.fetchOptimistic=function(i){var o=this,u=this.client.defaultQueryObserverOptions(i),l=this.client.getQueryCache().build(this.client,u);return l.fetch().then(function(){return o.createResult(l,u)})},n.fetch=function(i){var o=this;return this.executeFetch(i).then(function(){return o.updateResult(),o.currentResult})},n.executeFetch=function(i){this.updateQuery();var o=this.currentQuery.fetch(this.options,i);return i!=null&&i.throwOnError||(o=o.catch(yi)),o},n.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(Lw||this.currentResult.isStale||!ME(this.options.staleTime))){var o=w9(this.currentResult.dataUpdatedAt,this.options.staleTime),u=o+1;this.staleTimeoutId=setTimeout(function(){i.currentResult.isStale||i.updateResult()},u)}},n.computeRefetchInterval=function(){var i;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(i=this.options.refetchInterval)!=null?i:!1},n.updateRefetchInterval=function(i){var o=this;this.clearRefetchInterval(),this.currentRefetchInterval=i,!(Lw||this.options.enabled===!1||!ME(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||B0.isFocused())&&o.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(i,o){var u=this.currentQuery,l=this.options,d=this.currentResult,h=this.currentResultState,g=this.currentResultOptions,y=i!==u,w=y?i.state:this.currentQueryInitialState,v=y?this.currentResult:this.previousQueryResult,C=i.state,E=C.dataUpdatedAt,$=C.error,O=C.errorUpdatedAt,_=C.isFetching,R=C.status,k=!1,P=!1,L;if(o.optimisticResults){var F=this.hasListeners(),q=!F&&$4(i,o),Y=F&&E4(i,u,o,l);(q||Y)&&(_=!0,E||(R="loading"))}if(o.keepPreviousData&&!C.dataUpdateCount&&(v!=null&&v.isSuccess)&&R!=="error")L=v.data,E=v.dataUpdatedAt,R=v.status,k=!0;else if(o.select&&typeof C.data<"u")if(d&&C.data===(h==null?void 0:h.data)&&o.select===this.selectFn)L=this.selectResult;else try{this.selectFn=o.select,L=o.select(C.data),o.structuralSharing!==!1&&(L=Bw(d==null?void 0:d.data,L)),this.selectResult=L,this.selectError=null}catch(me){Hw().error(me),this.selectError=me}else L=C.data;if(typeof o.placeholderData<"u"&&typeof L>"u"&&(R==="loading"||R==="idle")){var X;if(d!=null&&d.isPlaceholderData&&o.placeholderData===(g==null?void 0:g.placeholderData))X=d.data;else if(X=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof X<"u")try{X=o.select(X),o.structuralSharing!==!1&&(X=Bw(d==null?void 0:d.data,X)),this.selectError=null}catch(me){Hw().error(me),this.selectError=me}typeof X<"u"&&(R="success",L=X,P=!0)}this.selectError&&($=this.selectError,L=this.selectResult,O=Date.now(),R="error");var ue={status:R,isLoading:R==="loading",isSuccess:R==="success",isError:R==="error",isIdle:R==="idle",data:L,dataUpdatedAt:E,error:$,errorUpdatedAt:O,failureCount:C.fetchFailureCount,errorUpdateCount:C.errorUpdateCount,isFetched:C.dataUpdateCount>0||C.errorUpdateCount>0,isFetchedAfterMount:C.dataUpdateCount>w.dataUpdateCount||C.errorUpdateCount>w.errorUpdateCount,isFetching:_,isRefetching:_&&R!=="loading",isLoadingError:R==="error"&&C.dataUpdatedAt===0,isPlaceholderData:P,isPreviousData:k,isRefetchError:R==="error"&&C.dataUpdatedAt!==0,isStale:vO(i,o),refetch:this.refetch,remove:this.remove};return ue},n.shouldNotifyListeners=function(i,o){if(!o)return!0;var u=this.options,l=u.notifyOnChangeProps,d=u.notifyOnChangePropsExclusions;if(!l&&!d||l==="tracked"&&!this.trackedProps.length)return!0;var h=l==="tracked"?this.trackedProps:l;return Object.keys(i).some(function(g){var y=g,w=i[y]!==o[y],v=h==null?void 0:h.some(function(E){return E===g}),C=d==null?void 0:d.some(function(E){return E===g});return w&&!C&&(!h||v)})},n.updateResult=function(i){var o=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!dF(this.currentResult,o)){var u={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(u.listeners=!0),this.notify(Ve({},u,i))}},n.updateQuery=function(){var i=this.client.getQueryCache().build(this.client,this.options);if(i!==this.currentQuery){var o=this.currentQuery;this.currentQuery=i,this.currentQueryInitialState=i.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(o==null||o.removeObserver(this),i.addObserver(this))}},n.onQueryUpdate=function(i){var o={};i.type==="success"?o.onSuccess=!0:i.type==="error"&&!ww(i.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},n.notify=function(i){var o=this;er.batch(function(){i.onSuccess?(o.options.onSuccess==null||o.options.onSuccess(o.currentResult.data),o.options.onSettled==null||o.options.onSettled(o.currentResult.data,null)):i.onError&&(o.options.onError==null||o.options.onError(o.currentResult.error),o.options.onSettled==null||o.options.onSettled(void 0,o.currentResult.error)),i.listeners&&o.listeners.forEach(function(u){u(o.currentResult)}),i.cache&&o.client.getQueryCache().notify({query:o.currentQuery,type:"observerResultsUpdated"})})},e})(oy);function _F(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function $4(t,e){return _F(t,e)||t.state.dataUpdatedAt>0&&DE(t,e,e.refetchOnMount)}function DE(t,e,n){if(e.enabled!==!1){var r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&vO(t,e)}return!1}function E4(t,e,n,r){return n.enabled!==!1&&(t!==e||r.enabled===!1)&&(!n.suspense||t.state.status!=="error")&&vO(t,n)}function vO(t,e){return t.isStaleByTime(e.staleTime)}var AF=(function(t){Qp(e,t);function e(r,i){var o;return o=t.call(this)||this,o.client=r,o.setOptions(i),o.bindMethods(),o.updateResult(),o}var n=e.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(i){this.options=this.client.defaultMutationOptions(i)},n.onUnsubscribe=function(){if(!this.listeners.length){var i;(i=this.currentMutation)==null||i.removeObserver(this)}},n.onMutationUpdate=function(i){this.updateResult();var o={listeners:!0};i.type==="success"?o.onSuccess=!0:i.type==="error"&&(o.onError=!0),this.notify(o)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(i,o){return this.mutateOptions=o,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,Ve({},this.options,{variables:typeof i<"u"?i:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var i=this.currentMutation?this.currentMutation.state:O9(),o=Ve({},i,{isLoading:i.status==="loading",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset});this.currentResult=o},n.notify=function(i){var o=this;er.batch(function(){o.mutateOptions&&(i.onSuccess?(o.mutateOptions.onSuccess==null||o.mutateOptions.onSuccess(o.currentResult.data,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(o.currentResult.data,null,o.currentResult.variables,o.currentResult.context)):i.onError&&(o.mutateOptions.onError==null||o.mutateOptions.onError(o.currentResult.error,o.currentResult.variables,o.currentResult.context),o.mutateOptions.onSettled==null||o.mutateOptions.onSettled(void 0,o.currentResult.error,o.currentResult.variables,o.currentResult.context))),i.listeners&&o.listeners.forEach(function(u){u(o.currentResult)})})},e})(oy),xu=b9();const RF=Mf(xu);var PF=RF.unstable_batchedUpdates;er.setBatchNotifyFunction(PF);var IF=console;vF(IF);var x4=Ae.createContext(void 0),T9=Ae.createContext(!1);function _9(t){return t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=x4),window.ReactQueryClientContext):x4}var kf=function(){var e=Ae.useContext(_9(Ae.useContext(T9)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},NF=function(e){var n=e.client,r=e.contextSharing,i=r===void 0?!1:r,o=e.children;Ae.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var u=_9(i);return Ae.createElement(T9.Provider,{value:i},Ae.createElement(u.Provider,{value:n},o))};function MF(){var t=!1;return{clearReset:function(){t=!1},reset:function(){t=!0},isReset:function(){return t}}}var kF=Ae.createContext(MF()),DF=function(){return Ae.useContext(kF)};function A9(t,e,n){return typeof e=="function"?e.apply(void 0,n):typeof e=="boolean"?e:!!t}function Fr(t,e,n){var r=Ae.useRef(!1),i=Ae.useState(0),o=i[1],u=lF(t,e),l=kf(),d=Ae.useRef();d.current?d.current.setOptions(u):d.current=new AF(l,u);var h=d.current.getCurrentResult();Ae.useEffect(function(){r.current=!0;var y=d.current.subscribe(er.batchCalls(function(){r.current&&o(function(w){return w+1})}));return function(){r.current=!1,y()}},[]);var g=Ae.useCallback(function(y,w){d.current.mutate(y,w).catch(yi)},[]);if(h.error&&A9(void 0,d.current.options.useErrorBoundary,[h.error]))throw h.error;return Ve({},h,{mutate:g,mutateAsync:h.mutate})}function FF(t,e){var n=Ae.useRef(!1),r=Ae.useState(0),i=r[1],o=kf(),u=DF(),l=o.defaultQueryObserverOptions(t);l.optimisticResults=!0,l.onError&&(l.onError=er.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=er.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=er.batchCalls(l.onSettled)),l.suspense&&(typeof l.staleTime!="number"&&(l.staleTime=1e3),l.cacheTime===0&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(u.isReset()||(l.retryOnMount=!1));var d=Ae.useState(function(){return new e(o,l)}),h=d[0],g=h.getOptimisticResult(l);if(Ae.useEffect(function(){n.current=!0,u.clearReset();var y=h.subscribe(er.batchCalls(function(){n.current&&i(function(w){return w+1})}));return h.updateResult(),function(){n.current=!1,y()}},[u,h]),Ae.useEffect(function(){h.setOptions(l,{listeners:!1})},[l,h]),l.suspense&&g.isLoading)throw h.fetchOptimistic(l).then(function(y){var w=y.data;l.onSuccess==null||l.onSuccess(w),l.onSettled==null||l.onSettled(w,null)}).catch(function(y){u.clearReset(),l.onError==null||l.onError(y),l.onSettled==null||l.onSettled(void 0,y)});if(g.isError&&!u.isReset()&&!g.isFetching&&A9(l.suspense,l.useErrorBoundary,[g.error,h.getCurrentQuery()]))throw g.error;return l.notifyOnChangeProps==="tracked"&&(g=h.trackResult(g,l)),g}function Go(t,e,n){var r=vw(t,e,n);return FF(r,TF)}var k0={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */var xF=x0.exports,h4;function OF(){return h4||(h4=1,(function(t,e){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,g="__lodash_placeholder__",y=1,w=2,v=4,C=1,E=2,$=1,O=2,_=4,R=8,k=16,P=32,L=64,F=128,q=256,Y=512,X=30,ue="...",me=800,te=16,be=1,we=2,B=3,V=1/0,H=9007199254740991,ie=17976931348623157e292,G=NaN,J=4294967295,he=J-1,$e=J>>>1,Ce=[["ary",F],["bind",$],["bindKey",O],["curry",R],["curryRight",k],["flip",Y],["partial",P],["partialRight",L],["rearg",q]],Be="[object Arguments]",Ie="[object Array]",tt="[object AsyncFunction]",ke="[object Boolean]",Ke="[object Date]",He="[object DOMException]",ut="[object Error]",pt="[object Function]",bt="[object GeneratorFunction]",gt="[object Map]",Ut="[object Number]",Gt="[object Null]",Tt="[object Object]",en="[object Promise]",xn="[object Proxy]",Dt="[object RegExp]",Pt="[object Set]",pe="[object String]",ze="[object Symbol]",Ge="[object Undefined]",Qe="[object WeakMap]",ht="[object WeakSet]",j="[object ArrayBuffer]",A="[object DataView]",M="[object Float32Array]",Q="[object Float64Array]",re="[object Int8Array]",ge="[object Int16Array]",Ee="[object Int32Array]",rt="[object Uint8Array]",Wt="[object Uint8ClampedArray]",ae="[object Uint16Array]",ce="[object Uint32Array]",nt=/\b__p \+= '';/g,Ht=/\b(__p \+=) '' \+/g,ln=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/&(?:amp|lt|gt|quot|#39);/g,jr=/[&<>"']/g,tn=RegExp(wt.source),er=RegExp(jr.source),On=/<%-([\s\S]+?)%>/g,Fi=/<%([\s\S]+?)%>/g,ca=/<%=([\s\S]+?)%>/g,Ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fs=/^\w*$/,ro=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ls=/[\\^$.*+?()[\]{}|]/g,$i=RegExp(Ls.source),Xr=/^\s+/,io=/\s/,Li=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wo=/\{\n\/\* \[wrapped with (.+)\] \*/,In=/,? & /,Nn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,An=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,Ei=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Us=/\w*$/,Ko=/^[-+]0x[0-9a-f]+$/i,ao=/^0b[01]+$/i,Br=/^\[object .+?Constructor\]$/,Ta=/^0o[0-7]+$/i,xi=/^(?:0|[1-9]\d*)$/,Ui=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_a=/($^)/,js=/['\n\r\u2028\u2029\\]/g,Mn="\\ud800-\\udfff",Qf="\\u0300-\\u036f",Zp="\\ufe20-\\ufe2f",Yo="\\u20d0-\\u20ff",ji=Qf+Zp+Yo,qr="\\u2700-\\u27bf",Ll="a-z\\xdf-\\xf6\\xf8-\\xff",em="\\xac\\xb1\\xd7\\xf7",Jf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fy="\\u2000-\\u206f",Iu=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oi="A-Z\\xc0-\\xd6\\xd8-\\xde",fa="\\ufe0e\\ufe0f",Zr=em+Jf+fy+Iu,Ul="['’]",Bs="["+Mn+"]",oo="["+Zr+"]",so="["+ji+"]",Nu="\\d+",dy="["+qr+"]",ei="["+Ll+"]",jl="[^"+Mn+Zr+Nu+qr+Ll+Oi+"]",Bl="\\ud83c[\\udffb-\\udfff]",Xf="(?:"+so+"|"+Bl+")",Qo="[^"+Mn+"]",ql="(?:\\ud83c[\\udde6-\\uddff]){2}",Hl="[\\ud800-\\udbff][\\udc00-\\udfff]",Bi="["+Oi+"]",zl="\\u200d",Vl="(?:"+ei+"|"+jl+")",Gl="(?:"+Bi+"|"+jl+")",qs="(?:"+Ul+"(?:d|ll|m|re|s|t|ve))?",tm="(?:"+Ul+"(?:D|LL|M|RE|S|T|VE))?",Zf=Xf+"?",Mu="["+fa+"]?",ed="(?:"+zl+"(?:"+[Qo,ql,Hl].join("|")+")"+Mu+Zf+")*",Hs="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Jo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xo=Mu+Zf+ed,nm="(?:"+[dy,ql,Hl].join("|")+")"+Xo,td="(?:"+[Qo+so+"?",so,ql,Hl,Bs].join("|")+")",nd=RegExp(Ul,"g"),qi=RegExp(so,"g"),Zo=RegExp(Bl+"(?="+Bl+")|"+td+Xo,"g"),ku=RegExp([Bi+"?"+ei+"+"+qs+"(?="+[oo,Bi,"$"].join("|")+")",Gl+"+"+tm+"(?="+[oo,Bi+Vl,"$"].join("|")+")",Bi+"?"+Vl+"+"+qs,Bi+"+"+tm,Jo,Hs,Nu,nm].join("|"),"g"),Aa=RegExp("["+zl+Mn+ji+fa+"]"),zs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,uo=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rm=-1,on={};on[M]=on[Q]=on[re]=on[ge]=on[Ee]=on[rt]=on[Wt]=on[ae]=on[ce]=!0,on[Be]=on[Ie]=on[j]=on[ke]=on[A]=on[Ke]=on[ut]=on[pt]=on[gt]=on[Ut]=on[Tt]=on[Dt]=on[Pt]=on[pe]=on[Qe]=!1;var sn={};sn[Be]=sn[Ie]=sn[j]=sn[A]=sn[ke]=sn[Ke]=sn[M]=sn[Q]=sn[re]=sn[ge]=sn[Ee]=sn[gt]=sn[Ut]=sn[Tt]=sn[Dt]=sn[Pt]=sn[pe]=sn[ze]=sn[rt]=sn[Wt]=sn[ae]=sn[ce]=!0,sn[ut]=sn[pt]=sn[Qe]=!1;var im={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Hr={"&":"&","<":"<",">":">",'"':""","'":"'"},Hi={"&":"&","<":"<",">":">",""":'"',"'":"'"},Wl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lo=parseFloat,rd=parseInt,De=typeof Sf=="object"&&Sf&&Sf.Object===Object&&Sf,qe=typeof self=="object"&&self&&self.Object===Object&&self,We=De||qe||Function("return this")(),it=e&&!e.nodeType&&e,_t=it&&!0&&t&&!t.nodeType&&t,cn=_t&&_t.exports===it,Rn=cn&&De.process,nn=(function(){try{var le=_t&&_t.require&&_t.require("util").types;return le||Rn&&Rn.binding&&Rn.binding("util")}catch{}})(),hr=nn&&nn.isArrayBuffer,Rr=nn&&nn.isDate,es=nn&&nn.isMap,am=nn&&nn.isRegExp,Kl=nn&&nn.isSet,Yl=nn&&nn.isTypedArray;function zr(le,xe,Se){switch(Se.length){case 0:return le.call(xe);case 1:return le.call(xe,Se[0]);case 2:return le.call(xe,Se[0],Se[1]);case 3:return le.call(xe,Se[0],Se[1],Se[2])}return le.apply(xe,Se)}function QS(le,xe,Se,Xe){for(var yt=-1,zt=le==null?0:le.length;++yt-1}function hy(le,xe,Se){for(var Xe=-1,yt=le==null?0:le.length;++Xe-1;);return Se}function ec(le,xe){for(var Se=le.length;Se--&&Ql(xe,le[Se],0)>-1;);return Se}function r3(le,xe){for(var Se=le.length,Xe=0;Se--;)le[Se]===xe&&++Xe;return Xe}var dm=lm(im),Z1=lm(Hr);function eb(le){return"\\"+Wl[le]}function vy(le,xe){return le==null?n:le[xe]}function Gs(le){return Aa.test(le)}function tb(le){return zs.test(le)}function nb(le){for(var xe,Se=[];!(xe=le.next()).done;)Se.push(xe.value);return Se}function hm(le){var xe=-1,Se=Array(le.size);return le.forEach(function(Xe,yt){Se[++xe]=[yt,Xe]}),Se}function rb(le,xe){return function(Se){return le(xe(Se))}}function Ws(le,xe){for(var Se=-1,Xe=le.length,yt=0,zt=[];++Se-1}function l3(f,p){var S=this.__data__,I=Vu(S,f);return I<0?(++this.size,S.push([f,p])):S[I][1]=p,this}bo.prototype.clear=Js,bo.prototype.delete=ls,bo.prototype.get=pr,bo.prototype.has=Cm,bo.prototype.set=l3;function cs(f){var p=-1,S=f==null?0:f.length;for(this.clear();++p=p?f:p)),f}function an(f,p,S,I,U,K){var ee,ne=p&y,fe=p&w,Pe=p&v;if(S&&(ee=U?S(f,I,U,K):S(f)),ee!==n)return ee;if(!Ln(f))return f;var Me=Ot(f);if(Me){if(ee=Qu(f),!ne)return ii(f,ee)}else{var je=or(f),Ye=je==pt||je==bt;if(pu(f))return Ky(f,ne);if(je==Tt||je==Be||Ye&&!U){if(ee=fe||Ye?{}:Ai(f),!ne)return fe?Sd(f,$m(ee,f)):Pb(f,Zs(ee,f))}else{if(!sn[je])return U?f:{};ee=Nb(f,je,ne)}}K||(K=new Na);var ot=K.get(f);if(ot)return ot;K.set(f,ee),_o(f)?f.forEach(function(Ct){ee.add(an(Ct,p,S,Ct,f,K))}):y2(f)&&f.forEach(function(Ct,Qt){ee.set(Qt,an(Ct,p,S,Qt,f,K))});var St=Pe?fe?Ed:$o:fe?si:yr,Bt=Me?n:St(f);return da(Bt||f,function(Ct,Qt){Bt&&(Qt=Ct,Ct=f[Qt]),Dn(ee,Qt,an(Ct,p,S,Qt,f,K))}),ee}function Ry(f){var p=yr(f);return function(S){return Em(S,f,p)}}function Em(f,p,S){var I=S.length;if(f==null)return!I;for(f=Cn(f);I--;){var U=S[I],K=p[U],ee=f[U];if(ee===n&&!(U in f)||!K(ee))return!1}return!0}function Py(f,p,S){if(typeof f!="function")throw new Gi(u);return Wr(function(){f.apply(n,S)},p)}function uc(f,p,S,I){var U=-1,K=om,ee=!0,ne=f.length,fe=[],Pe=p.length;if(!ne)return fe;S&&(p=kn(p,zi(S))),I?(K=hy,ee=!1):p.length>=i&&(K=Xl,ee=!1,p=new fs(p));e:for(;++UU?0:U+S),I=I===n||I>U?U:Nt(I),I<0&&(I+=U),I=S>I?0:Vv(I);S0&&S(ne)?p>1?ar(ne,p-1,S,I,U):ts(U,ne):I||(U[U.length]=ne)}return U}var Wu=Zy(),hd=Zy(!0);function wa(f,p){return f&&Wu(f,p,yr)}function Ma(f,p){return f&&hd(f,p,yr)}function Ku(f,p){return co(p,function(S){return Cs(f[S])})}function ds(f,p){p=ps(p,f);for(var S=0,I=p.length;f!=null&&Sp}function mb(f,p){return f!=null&&fn.call(f,p)}function gb(f,p){return f!=null&&p in Cn(f)}function yb(f,p,S){return f>=$t(p,S)&&f=120&&Me.length>=120)?new fs(ee&&Me):n}Me=f[0];var je=-1,Ye=ne[0];e:for(;++je-1;)ne!==f&&ni.call(ne,fe,1),ni.call(f,fe,1);return f}function qy(f,p){for(var S=f?p.length:0,I=S-1;S--;){var U=p[S];if(S==I||U!==K){var K=U;Ba(U)?ni.call(f,U,1):wo(f,U)}}return f}function Pm(f,p){return f+va(vm()*(p-f+1))}function h3(f,p,S,I){for(var U=-1,K=Kt(ya((p-f)/(S||1)),0),ee=Se(K);K--;)ee[I?K:++U]=f,f+=S;return ee}function yd(f,p){var S="";if(!f||p<1||p>H)return S;do p%2&&(S+=f),p=va(p/2),p&&(f+=f);while(p);return S}function Mt(f,p){return Xi(Eo(f,p,un),f+"")}function Tb(f){return Ay(ia(f))}function Hy(f,p){var S=ia(f);return _d(S,Gu(p,0,S.length))}function hc(f,p,S,I){if(!Ln(f))return f;p=ps(p,f);for(var U=-1,K=p.length,ee=K-1,ne=f;ne!=null&&++UU?0:U+p),S=S>U?U:S,S<0&&(S+=U),U=p>S?0:S-p>>>0,p>>>=0;for(var K=Se(U);++I>>1,ee=f[K];ee!==null&&!ra(ee)&&(S?ee<=p:ee=i){var Pe=p?null:ou(f);if(Pe)return pm(Pe);ee=!1,U=Xl,fe=new fs}else fe=p?[]:ne;e:for(;++I=I?f:Yi(f,p,S)}var bd=ma||function(f){return We.clearTimeout(f)};function Ky(f,p){if(p)return f.slice();var S=f.length,I=Cy?Cy(S):new f.constructor(S);return f.copy(I),I}function wd(f){var p=new f.constructor(f.byteLength);return new Pa(p).set(new Pa(f)),p}function Ab(f,p){var S=p?wd(f.buffer):f.buffer;return new f.constructor(S,f.byteOffset,f.byteLength)}function Rb(f){var p=new f.constructor(f.source,Us.exec(f));return p.lastIndex=f.lastIndex,p}function g3(f){return ss?Cn(ss.call(f)):{}}function Yy(f,p){var S=p?wd(f.buffer):f.buffer;return new f.constructor(S,f.byteOffset,f.length)}function gr(f,p){if(f!==p){var S=f!==n,I=f===null,U=f===f,K=ra(f),ee=p!==n,ne=p===null,fe=p===p,Pe=ra(p);if(!ne&&!Pe&&!K&&f>p||K&&ee&&fe&&!ne&&!Pe||I&&ee&&fe||!S&&fe||!U)return 1;if(!I&&!K&&!Pe&&f=ne)return fe;var Pe=S[I];return fe*(Pe=="desc"?-1:1)}}return f.index-p.index}function Qy(f,p,S,I){for(var U=-1,K=f.length,ee=S.length,ne=-1,fe=p.length,Pe=Kt(K-ee,0),Me=Se(fe+Pe),je=!I;++ne1?S[U-1]:n,ee=U>2?S[2]:n;for(K=f.length>3&&typeof K=="function"?(U--,K):n,ee&&Ir(S[0],S[1],ee)&&(K=U<3?n:K,U=1),p=Cn(p);++I-1?U[K?p[ee]:ee]:n}}function Dm(f){return Co(function(p){var S=p.length,I=S,U=Wi.prototype.thru;for(f&&p.reverse();I--;){var K=p[I];if(typeof K!="function")throw new Gi(u);if(U&&!ee&&Ua(K)=="wrapper")var ee=new Wi([],!0)}for(I=ee?I:S;++I1&&rn.reverse(),Me&&fene))return!1;var Pe=K.get(f),Me=K.get(p);if(Pe&&Me)return Pe==p&&Me==f;var je=-1,Ye=!0,ot=S&E?new fs:n;for(K.set(f,p),K.set(p,f);++je1?"& ":"")+p[I],p=p.join(S>2?", ":" "),f.replace(Li,`{ + */var LF=k0.exports,O4;function UF(){return O4||(O4=1,(function(t,e){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,g="__lodash_placeholder__",y=1,w=2,v=4,C=1,E=2,$=1,O=2,_=4,R=8,k=16,P=32,L=64,F=128,q=256,Y=512,X=30,ue="...",me=800,te=16,be=1,we=2,B=3,V=1/0,H=9007199254740991,ie=17976931348623157e292,G=NaN,Q=4294967295,he=Q-1,$e=Q>>>1,Ce=[["ary",F],["bind",$],["bindKey",O],["curry",R],["curryRight",k],["flip",Y],["partial",P],["partialRight",L],["rearg",q]],Be="[object Arguments]",Ie="[object Array]",tt="[object AsyncFunction]",ke="[object Boolean]",Ke="[object Date]",He="[object DOMException]",ut="[object Error]",pt="[object Function]",bt="[object GeneratorFunction]",gt="[object Map]",Ut="[object Number]",Gt="[object Null]",Tt="[object Object]",en="[object Promise]",xn="[object Proxy]",Dt="[object RegExp]",Pt="[object Set]",pe="[object String]",ze="[object Symbol]",Ge="[object Undefined]",Je="[object WeakMap]",ht="[object WeakSet]",j="[object ArrayBuffer]",A="[object DataView]",M="[object Float32Array]",J="[object Float64Array]",re="[object Int8Array]",ge="[object Int16Array]",Ee="[object Int32Array]",rt="[object Uint8Array]",Wt="[object Uint8ClampedArray]",ae="[object Uint16Array]",ce="[object Uint32Array]",nt=/\b__p \+= '';/g,Ht=/\b(__p \+=) '' \+/g,ln=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/&(?:amp|lt|gt|quot|#39);/g,Ur=/[&<>"']/g,tn=RegExp(wt.source),tr=RegExp(Ur.source),On=/<%-([\s\S]+?)%>/g,Li=/<%([\s\S]+?)%>/g,ca=/<%=([\s\S]+?)%>/g,Ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fs=/^\w*$/,uo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ls=/[\\^$.*+?()[\]{}|]/g,Ei=RegExp(Ls.source),Xr=/^\s+/,lo=/\s/,Ui=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ko=/\{\n\/\* \[wrapped with (.+)\] \*/,In=/,? & /,Mn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,An=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,xi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Us=/\w*$/,Yo=/^[-+]0x[0-9a-f]+$/i,co=/^0b[01]+$/i,jr=/^\[object .+?Constructor\]$/,Aa=/^0o[0-7]+$/i,Oi=/^(?:0|[1-9]\d*)$/,ji=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ra=/($^)/,js=/['\n\r\u2028\u2029\\]/g,kn="\\ud800-\\udfff",Zf="\\u0300-\\u036f",sm="\\ufe20-\\ufe2f",Jo="\\u20d0-\\u20ff",Bi=Zf+sm+Jo,Br="\\u2700-\\u27bf",Bl="a-z\\xdf-\\xf6\\xf8-\\xff",um="\\xac\\xb1\\xd7\\xf7",ed="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",wy="\\u2000-\\u206f",Nu=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ti="A-Z\\xc0-\\xd6\\xd8-\\xde",fa="\\ufe0e\\ufe0f",Zr=um+ed+wy+Nu,ql="['’]",Bs="["+kn+"]",fo="["+Zr+"]",ho="["+Bi+"]",Mu="\\d+",Sy="["+Br+"]",ei="["+Bl+"]",Hl="[^"+kn+Zr+Mu+Br+Bl+Ti+"]",zl="\\ud83c[\\udffb-\\udfff]",td="(?:"+ho+"|"+zl+")",Qo="[^"+kn+"]",Vl="(?:\\ud83c[\\udde6-\\uddff]){2}",Gl="[\\ud800-\\udbff][\\udc00-\\udfff]",qi="["+Ti+"]",Wl="\\u200d",Kl="(?:"+ei+"|"+Hl+")",Yl="(?:"+qi+"|"+Hl+")",qs="(?:"+ql+"(?:d|ll|m|re|s|t|ve))?",lm="(?:"+ql+"(?:D|LL|M|RE|S|T|VE))?",nd=td+"?",ku="["+fa+"]?",rd="(?:"+Wl+"(?:"+[Qo,Vl,Gl].join("|")+")"+ku+nd+")*",Hs="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Zo=ku+nd+rd,cm="(?:"+[Sy,Vl,Gl].join("|")+")"+Zo,id="(?:"+[Qo+ho+"?",ho,Vl,Gl,Bs].join("|")+")",ad=RegExp(ql,"g"),Hi=RegExp(ho,"g"),es=RegExp(zl+"(?="+zl+")|"+id+Zo,"g"),Du=RegExp([qi+"?"+ei+"+"+qs+"(?="+[fo,qi,"$"].join("|")+")",Yl+"+"+lm+"(?="+[fo,qi+Kl,"$"].join("|")+")",qi+"?"+Kl+"+"+qs,qi+"+"+lm,Xo,Hs,Mu,cm].join("|"),"g"),Pa=RegExp("["+Wl+kn+Bi+fa+"]"),zs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,po=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],fm=-1,on={};on[M]=on[J]=on[re]=on[ge]=on[Ee]=on[rt]=on[Wt]=on[ae]=on[ce]=!0,on[Be]=on[Ie]=on[j]=on[ke]=on[A]=on[Ke]=on[ut]=on[pt]=on[gt]=on[Ut]=on[Tt]=on[Dt]=on[Pt]=on[pe]=on[Je]=!1;var sn={};sn[Be]=sn[Ie]=sn[j]=sn[A]=sn[ke]=sn[Ke]=sn[M]=sn[J]=sn[re]=sn[ge]=sn[Ee]=sn[gt]=sn[Ut]=sn[Tt]=sn[Dt]=sn[Pt]=sn[pe]=sn[ze]=sn[rt]=sn[Wt]=sn[ae]=sn[ce]=!0,sn[ut]=sn[pt]=sn[Je]=!1;var dm={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},qr={"&":"&","<":"<",">":">",'"':""","'":"'"},zi={"&":"&","<":"<",">":">",""":'"',"'":"'"},Jl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mo=parseFloat,od=parseInt,De=typeof Ef=="object"&&Ef&&Ef.Object===Object&&Ef,qe=typeof self=="object"&&self&&self.Object===Object&&self,We=De||qe||Function("return this")(),it=e&&!e.nodeType&&e,_t=it&&!0&&t&&!t.nodeType&&t,cn=_t&&_t.exports===it,Rn=cn&&De.process,nn=(function(){try{var le=_t&&_t.require&&_t.require("util").types;return le||Rn&&Rn.binding&&Rn.binding("util")}catch{}})(),hr=nn&&nn.isArrayBuffer,Rr=nn&&nn.isDate,ts=nn&&nn.isMap,hm=nn&&nn.isRegExp,Ql=nn&&nn.isSet,Xl=nn&&nn.isTypedArray;function Hr(le,xe,Se){switch(Se.length){case 0:return le.call(xe);case 1:return le.call(xe,Se[0]);case 2:return le.call(xe,Se[0],Se[1]);case 3:return le.call(xe,Se[0],Se[1],Se[2])}return le.apply(xe,Se)}function s3(le,xe,Se,Xe){for(var yt=-1,zt=le==null?0:le.length;++yt-1}function Cy(le,xe,Se){for(var Xe=-1,yt=le==null?0:le.length;++Xe-1;);return Se}function rc(le,xe){for(var Se=le.length;Se--&&Zl(xe,le[Se],0)>-1;);return Se}function p3(le,xe){for(var Se=le.length,Xe=0;Se--;)le[Se]===xe&&++Xe;return Xe}var wm=ym(dm),cb=ym(qr);function fb(le){return"\\"+Jl[le]}function Ty(le,xe){return le==null?n:le[xe]}function Gs(le){return Pa.test(le)}function db(le){return zs.test(le)}function hb(le){for(var xe,Se=[];!(xe=le.next()).done;)Se.push(xe.value);return Se}function Sm(le){var xe=-1,Se=Array(le.size);return le.forEach(function(Xe,yt){Se[++xe]=[yt,Xe]}),Se}function pb(le,xe){return function(Se){return le(xe(Se))}}function Ws(le,xe){for(var Se=-1,Xe=le.length,yt=0,zt=[];++Se-1}function w3(f,p){var S=this.__data__,I=Gu(S,f);return I<0?(++this.size,S.push([f,p])):S[I][1]=p,this}Eo.prototype.clear=Qs,Eo.prototype.delete=cs,Eo.prototype.get=pr,Eo.prototype.has=Rm,Eo.prototype.set=w3;function fs(f){var p=-1,S=f==null?0:f.length;for(this.clear();++p=p?f:p)),f}function an(f,p,S,I,U,K){var ee,ne=p&y,fe=p&w,Pe=p&v;if(S&&(ee=U?S(f,I,U,K):S(f)),ee!==n)return ee;if(!Un(f))return f;var Me=Ot(f);if(Me){if(ee=Qu(f),!ne)return ii(f,ee)}else{var je=sr(f),Ye=je==pt||je==bt;if(pu(f))return rv(f,ne);if(je==Tt||je==Be||Ye&&!U){if(ee=fe||Ye?{}:Ri(f),!ne)return fe?Ed(f,Pm(ee,f)):qb(f,Zs(ee,f))}else{if(!sn[je])return U?f:{};ee=zb(f,je,ne)}}K||(K=new ka);var ot=K.get(f);if(ot)return ot;K.set(f,ee),No(f)?f.forEach(function(Ct){ee.add(an(Ct,p,S,Ct,f,K))}):_2(f)&&f.forEach(function(Ct,Jt){ee.set(Jt,an(Ct,p,S,Jt,f,K))});var St=Pe?fe?Td:_o:fe?si:yr,Bt=Me?n:St(f);return da(Bt||f,function(Ct,Jt){Bt&&(Jt=Ct,Ct=f[Jt]),Fn(ee,Jt,an(Ct,p,S,Jt,f,K))}),ee}function Uy(f){var p=yr(f);return function(S){return Im(S,f,p)}}function Im(f,p,S){var I=S.length;if(f==null)return!I;for(f=Cn(f);I--;){var U=S[I],K=p[U],ee=f[U];if(ee===n&&!(U in f)||!K(ee))return!1}return!0}function jy(f,p,S){if(typeof f!="function")throw new Wi(u);return Gr(function(){f.apply(n,S)},p)}function fc(f,p,S,I){var U=-1,K=pm,ee=!0,ne=f.length,fe=[],Pe=p.length;if(!ne)return fe;S&&(p=Dn(p,Vi(S))),I?(K=Cy,ee=!1):p.length>=i&&(K=tc,ee=!1,p=new ds(p));e:for(;++UU?0:U+S),I=I===n||I>U?U:Nt(I),I<0&&(I+=U),I=S>I?0:e0(I);S0&&S(ne)?p>1?or(ne,p-1,S,I,U):ns(U,ne):I||(U[U.length]=ne)}return U}var Ku=uv(),gd=uv(!0);function wa(f,p){return f&&Ku(f,p,yr)}function Da(f,p){return f&&gd(f,p,yr)}function Yu(f,p){return go(p,function(S){return $s(f[S])})}function hs(f,p){p=ms(p,f);for(var S=0,I=p.length;f!=null&&Sp}function Ob(f,p){return f!=null&&fn.call(f,p)}function Tb(f,p){return f!=null&&p in Cn(f)}function _b(f,p,S){return f>=$t(p,S)&&f=120&&Me.length>=120)?new ds(ee&&Me):n}Me=f[0];var je=-1,Ye=ne[0];e:for(;++je-1;)ne!==f&&ni.call(ne,fe,1),ni.call(f,fe,1);return f}function Qy(f,p){for(var S=f?p.length:0,I=S-1;S--;){var U=p[S];if(S==I||U!==K){var K=U;Ha(U)?ni.call(f,U,1):xo(f,U)}}return f}function Um(f,p){return f+va(Om()*(p-f+1))}function E3(f,p,S,I){for(var U=-1,K=Kt(ya((p-f)/(S||1)),0),ee=Se(K);K--;)ee[I?K:++U]=f,f+=S;return ee}function wd(f,p){var S="";if(!f||p<1||p>H)return S;do p%2&&(S+=f),p=va(p/2),p&&(f+=f);while(p);return S}function Mt(f,p){return Zi(Ao(f,p,un),f+"")}function Lb(f){return Ly(aa(f))}function Xy(f,p){var S=aa(f);return Pd(S,Wu(p,0,S.length))}function gc(f,p,S,I){if(!Un(f))return f;p=ms(p,f);for(var U=-1,K=p.length,ee=K-1,ne=f;ne!=null&&++UU?0:U+p),S=S>U?U:S,S<0&&(S+=U),U=p>S?0:S-p>>>0,p>>>=0;for(var K=Se(U);++I>>1,ee=f[K];ee!==null&&!ia(ee)&&(S?ee<=p:ee=i){var Pe=p?null:ou(f);if(Pe)return Cm(Pe);ee=!1,U=tc,fe=new ds}else fe=p?[]:ne;e:for(;++I=I?f:Ji(f,p,S)}var Cd=ma||function(f){return We.clearTimeout(f)};function rv(f,p){if(p)return f.slice();var S=f.length,I=Py?Py(S):new f.constructor(S);return f.copy(I),I}function $d(f){var p=new f.constructor(f.byteLength);return new Na(p).set(new Na(f)),p}function jb(f,p){var S=p?$d(f.buffer):f.buffer;return new f.constructor(S,f.byteOffset,f.byteLength)}function Bb(f){var p=new f.constructor(f.source,Us.exec(f));return p.lastIndex=f.lastIndex,p}function T3(f){return us?Cn(us.call(f)):{}}function iv(f,p){var S=p?$d(f.buffer):f.buffer;return new f.constructor(S,f.byteOffset,f.length)}function gr(f,p){if(f!==p){var S=f!==n,I=f===null,U=f===f,K=ia(f),ee=p!==n,ne=p===null,fe=p===p,Pe=ia(p);if(!ne&&!Pe&&!K&&f>p||K&&ee&&fe&&!ne&&!Pe||I&&ee&&fe||!S&&fe||!U)return 1;if(!I&&!K&&!Pe&&f=ne)return fe;var Pe=S[I];return fe*(Pe=="desc"?-1:1)}}return f.index-p.index}function av(f,p,S,I){for(var U=-1,K=f.length,ee=S.length,ne=-1,fe=p.length,Pe=Kt(K-ee,0),Me=Se(fe+Pe),je=!I;++ne1?S[U-1]:n,ee=U>2?S[2]:n;for(K=f.length>3&&typeof K=="function"?(U--,K):n,ee&&Ir(S[0],S[1],ee)&&(K=U<3?n:K,U=1),p=Cn(p);++I-1?U[K?p[ee]:ee]:n}}function zm(f){return To(function(p){var S=p.length,I=S,U=Ki.prototype.thru;for(f&&p.reverse();I--;){var K=p[I];if(typeof K!="function")throw new Wi(u);if(U&&!ee&&Ba(K)=="wrapper")var ee=new Ki([],!0)}for(I=ee?I:S;++I1&&rn.reverse(),Me&&fene))return!1;var Pe=K.get(f),Me=K.get(p);if(Pe&&Me)return Pe==p&&Me==f;var je=-1,Ye=!0,ot=S&E?new ds:n;for(K.set(f,p),K.set(p,f);++je1?"& ":"")+p[I],p=p.join(S>2?", ":" "),f.replace(Ui,`{ /* [wrapped with `+p+`] */ -`)}function kb(f){return Ot(f)||hu(f)||!!(Uu&&f&&f[Uu])}function Ba(f,p){var S=typeof f;return p=p??H,!!p&&(S=="number"||S!="symbol"&&xi.test(f))&&f>-1&&f%1==0&&f0){if(++p>=me)return arguments[0]}else p=0;return f.apply(n,arguments)}}function _d(f,p){var S=-1,I=f.length,U=I-1;for(p=p===n?I:p;++S1?f[p-1]:n;return S=typeof S=="function"?(f.pop(),S):n,kd(f,S)});function Kr(f){var p=z(f);return p.__chain__=!0,p}function Xb(f,p){return p(f),f}function Ac(f,p){return p(f)}var Zb=Co(function(f){var p=f.length,S=p?f[0]:0,I=this.__wrapped__,U=function(K){return eu(K,f)};return p>1||this.__actions__.length||!(I instanceof At)||!Ba(S)?this.thru(U):(I=I.slice(S,+S+(p?1:0)),I.__actions__.push({func:Ac,args:[U],thisArg:n}),new Wi(I,this.__chain__).thru(function(K){return p&&!K.length&&K.push(n),K}))});function S3(){return Kr(this)}function ws(){return new Wi(this.value(),this.__chain__)}function Wm(){this.__values__===n&&(this.__values__=w2(this.value()));var f=this.__index__>=this.__values__.length,p=f?n:this.__values__[this.__index__++];return{done:f,value:p}}function Cv(){return this}function Rc(f){for(var p,S=this;S instanceof ld;){var I=Hm(S);I.__index__=0,I.__values__=n,p?U.__wrapped__=I:p=I;var U=I;S=S.__wrapped__}return U.__wrapped__=f,p}function e2(){var f=this.__wrapped__;if(f instanceof At){var p=f;return this.__actions__.length&&(p=new At(this)),p=p.reverse(),p.__actions__.push({func:Ac,args:[$n],thisArg:n}),new Wi(p,this.__chain__)}return this.thru($n)}function t2(){return Im(this.__wrapped__,this.__actions__)}var n2=vc(function(f,p,S){fn.call(f,S)?++f[S]:Ki(f,S,1)});function $v(f,p,S){var I=Ot(f)?K1:Iy;return S&&Ir(f,p,S)&&(p=n),I(f,lt(p,3))}function Ev(f,p){var S=Ot(f)?co:nr;return S(f,lt(p,3))}var C3=km(fv),$3=km(Vb);function E3(f,p){return ar(Ss(f,p),1)}function r2(f,p){return ar(Ss(f,p),V)}function i2(f,p,S){return S=S===n?1:Nt(S),ar(Ss(f,p),S)}function el(f,p){var S=Ot(f)?da:tu;return S(f,lt(p,3))}function Ld(f,p){var S=Ot(f)?JS:xm;return S(f,lt(p,3))}var a2=vc(function(f,p,S){fn.call(f,S)?f[S].push(p):Ki(f,S,[p])});function o2(f,p,S,I){f=It(f)?f:ia(f),S=S&&!I?Nt(S):0;var U=f.length;return S<0&&(S=Kt(U+S,0)),rg(f)?S<=U&&f.indexOf(p,S)>-1:!!U&&Ql(f,p,S)>-1}var x3=Mt(function(f,p,S){var I=-1,U=typeof p=="function",K=It(f)?Se(f.length):[];return tu(f,function(ee){K[++I]=U?zr(p,ee,S):cc(ee,p,S)}),K}),s2=vc(function(f,p,S){Ki(f,S,p)});function Ss(f,p){var S=Ot(f)?kn:pd;return S(f,lt(p,3))}function u2(f,p,S,I){return f==null?[]:(Ot(p)||(p=p==null?[]:[p]),S=I?n:S,Ot(S)||(S=S==null?[]:[S]),Uy(f,p,S))}var Tn=vc(function(f,p,S){f[S?0:1].push(p)},function(){return[[],[]]});function xv(f,p,S){var I=Ot(f)?py:yy,U=arguments.length<3;return I(f,lt(p,4),S,U,tu)}function O3(f,p,S){var I=Ot(f)?XS:yy,U=arguments.length<3;return I(f,lt(p,4),S,U,xm)}function l2(f,p){var S=Ot(f)?co:nr;return S(f,Ym(lt(p,3)))}function T3(f){var p=Ot(f)?Ay:Tb;return p(f)}function _3(f,p,S){(S?Ir(f,p,S):p===n)?p=1:p=Nt(p);var I=Ot(f)?Xs:Hy;return I(f,p)}function A3(f){var p=Ot(f)?Ft:m3;return p(f)}function Km(f){if(f==null)return 0;if(It(f))return rg(f)?fo(f):f.length;var p=or(f);return p==gt||p==Pt?f.size:nu(f).length}function Pc(f,p,S){var I=Ot(f)?my:vd;return S&&Ir(f,p,S)&&(p=n),I(f,lt(p,3))}var Ov=Mt(function(f,p){if(f==null)return[];var S=p.length;return S>1&&Ir(f,p[0],p[1])?p=[]:S>2&&Ir(p[0],p[1],p[2])&&(p=[p[0]]),Uy(f,ar(p,1),[])}),tl=ga||function(){return We.Date.now()};function Tv(f,p){if(typeof p!="function")throw new Gi(u);return f=Nt(f),function(){if(--f<1)return p.apply(this,arguments)}}function du(f,p,S){return p=S?n:p,p=f&&p==null?f.length:p,La(f,F,n,n,n,n,p)}function qa(f,p){var S;if(typeof p!="function")throw new Gi(u);return f=Nt(f),function(){return--f>0&&(S=p.apply(this,arguments)),f<=1&&(p=n),S}}var nl=Mt(function(f,p,S){var I=$;if(S.length){var U=Ws(S,Qi(nl));I|=P}return La(f,I,p,S,U)}),c2=Mt(function(f,p,S){var I=$|O;if(S.length){var U=Ws(S,Qi(c2));I|=P}return La(p,I,f,S,U)});function _v(f,p,S){p=S?n:p;var I=La(f,R,n,n,n,n,n,p);return I.placeholder=_v.placeholder,I}function Av(f,p,S){p=S?n:p;var I=La(f,k,n,n,n,n,n,p);return I.placeholder=Av.placeholder,I}function Rv(f,p,S){var I,U,K,ee,ne,fe,Pe=0,Me=!1,je=!1,Ye=!0;if(typeof f!="function")throw new Gi(u);p=Mr(p)||0,Ln(S)&&(Me=!!S.leading,je="maxWait"in S,K=je?Kt(Mr(S.maxWait)||0,p):K,Ye="trailing"in S?!!S.trailing:Ye);function ot(vr){var xs=I,rl=U;return I=U=n,Pe=vr,ee=f.apply(rl,xs),ee}function St(vr){return Pe=vr,ne=Wr(Qt,p),Me?ot(vr):ee}function Bt(vr){var xs=vr-fe,rl=vr-Pe,KT=p-xs;return je?$t(KT,K-rl):KT}function Ct(vr){var xs=vr-fe,rl=vr-Pe;return fe===n||xs>=p||xs<0||je&&rl>=K}function Qt(){var vr=tl();if(Ct(vr))return rn(vr);ne=Wr(Qt,Bt(vr))}function rn(vr){return ne=n,Ye&&I?ot(vr):(I=U=n,ee)}function Va(){ne!==n&&bd(ne),Pe=0,I=fe=U=ne=n}function aa(){return ne===n?ee:rn(tl())}function Ga(){var vr=tl(),xs=Ct(vr);if(I=arguments,U=this,fe=vr,xs){if(ne===n)return St(fe);if(je)return bd(ne),ne=Wr(Qt,p),ot(fe)}return ne===n&&(ne=Wr(Qt,p)),ee}return Ga.cancel=Va,Ga.flush=aa,Ga}var R3=Mt(function(f,p){return Py(f,1,p)}),Pv=Mt(function(f,p,S){return Py(f,Mr(p)||0,S)});function f2(f){return La(f,Y)}function Ud(f,p){if(typeof f!="function"||p!=null&&typeof p!="function")throw new Gi(u);var S=function(){var I=arguments,U=p?p.apply(this,I):I[0],K=S.cache;if(K.has(U))return K.get(U);var ee=f.apply(this,I);return S.cache=K.set(U,ee)||K,ee};return S.cache=new(Ud.Cache||cs),S}Ud.Cache=cs;function Ym(f){if(typeof f!="function")throw new Gi(u);return function(){var p=arguments;switch(p.length){case 0:return!f.call(this);case 1:return!f.call(this,p[0]);case 2:return!f.call(this,p[0],p[1]);case 3:return!f.call(this,p[0],p[1],p[2])}return!f.apply(this,p)}}function Iv(f){return qa(2,f)}var Nv=_b(function(f,p){p=p.length==1&&Ot(p[0])?kn(p[0],zi(lt())):kn(ar(p,1),zi(lt()));var S=p.length;return Mt(function(I){for(var U=-1,K=$t(I.length,S);++U=p}),hu=vb((function(){return arguments})())?vb:function(f){return Jn(f)&&fn.call(f,"callee")&&!$y.call(f,"callee")},Ot=Se.isArray,Xm=hr?zi(hr):bb;function It(f){return f!=null&&eg(f.length)&&!Cs(f)}function Hn(f){return Jn(f)&&It(f)}function Nr(f){return f===!0||f===!1||Jn(f)&&Vr(f)==ke}var pu=ub||tC,Lv=Rr?zi(Rr):wb;function Uv(f){return Jn(f)&&f.nodeType===1&&!Yr(f)}function Zm(f){if(f==null)return!0;if(It(f)&&(Ot(f)||typeof f=="string"||typeof f.splice=="function"||pu(f)||za(f)||hu(f)))return!f.length;var p=or(f);if(p==gt||p==Pt)return!f.size;if(Yn(f))return!nu(f).length;for(var S in f)if(fn.call(f,S))return!1;return!0}function m2(f,p){return fc(f,p)}function g2(f,p,S){S=typeof S=="function"?S:n;var I=S?S(f,p):n;return I===n?fc(f,p,n,S):!!I}function qd(f){if(!Jn(f))return!1;var p=Vr(f);return p==ut||p==He||typeof f.message=="string"&&typeof f.name=="string"&&!Yr(f)}function jv(f){return typeof f=="number"&&ym(f)}function Cs(f){if(!Ln(f))return!1;var p=Vr(f);return p==pt||p==bt||p==tt||p==xn}function Bv(f){return typeof f=="number"&&f==Nt(f)}function eg(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=H}function Ln(f){var p=typeof f;return f!=null&&(p=="object"||p=="function")}function Jn(f){return f!=null&&typeof f=="object"}var y2=es?zi(es):Sb;function qv(f,p){return f===p||Am(f,p,Od(p))}function Hv(f,p,S){return S=typeof S=="function"?S:n,Am(f,p,Od(p),S)}function M3(f){return zv(f)&&f!=+f}function k3(f){if(Db(f))throw new yt(o);return ky(f)}function Ha(f){return f===null}function v2(f){return f==null}function zv(f){return typeof f=="number"||Jn(f)&&Vr(f)==Ut}function Yr(f){if(!Jn(f)||Vr(f)!=Tt)return!1;var p=Fu(f);if(p===null)return!0;var S=fn.call(p,"constructor")&&p.constructor;return typeof S=="function"&&S instanceof S&&ad.call(S)==nc}var tg=am?zi(am):Cb;function ng(f){return Bv(f)&&f>=-H&&f<=H}var _o=Kl?zi(Kl):$b;function rg(f){return typeof f=="string"||!Ot(f)&&Jn(f)&&Vr(f)==pe}function ra(f){return typeof f=="symbol"||Jn(f)&&Vr(f)==ze}var za=Yl?zi(Yl):d3;function b2(f){return f===n}function D3(f){return Jn(f)&&or(f)==Qe}function F3(f){return Jn(f)&&Vr(f)==ht}var L3=Sc(dc),U3=Sc(function(f,p){return f<=p});function w2(f){if(!f)return[];if(It(f))return rg(f)?ha(f):ii(f);if(po&&f[po])return nb(f[po]());var p=or(f),S=p==gt?hm:p==Pt?pm:ia;return S(f)}function $s(f){if(!f)return f===0?f:0;if(f=Mr(f),f===V||f===-V){var p=f<0?-1:1;return p*ie}return f===f?f:0}function Nt(f){var p=$s(f),S=p%1;return p===p?S?p-S:p:0}function Vv(f){return f?Gu(Nt(f),0,J):0}function Mr(f){if(typeof f=="number")return f;if(ra(f))return G;if(Ln(f)){var p=typeof f.valueOf=="function"?f.valueOf():f;f=Ln(p)?p+"":p}if(typeof f!="string")return f===0?f:+f;f=X1(f);var S=ao.test(f);return S||Ta.test(f)?rd(f.slice(2),S?2:8):Ko.test(f)?G:+f}function Nc(f){return ka(f,si(f))}function S2(f){return f?Gu(Nt(f),-H,H):f===0?f:0}function hn(f){return f==null?"":Kn(f)}var Mc=Yu(function(f,p){if(Yn(p)||It(p)){ka(p,yr(p),f);return}for(var S in p)fn.call(p,S)&&Dn(f,S,p[S])}),kc=Yu(function(f,p){ka(p,si(p),f)}),Hd=Yu(function(f,p,S,I){ka(p,si(p),f,I)}),ig=Yu(function(f,p,S,I){ka(p,yr(p),f,I)}),Gv=Co(eu);function Wv(f,p){var S=us(f);return p==null?S:Zs(S,p)}var ag=Mt(function(f,p){f=Cn(f);var S=-1,I=p.length,U=I>2?p[2]:n;for(U&&Ir(p[0],p[1],U)&&(I=1);++S1),K}),ka(f,Ed(f),S),I&&(S=an(S,y|w|v,Um));for(var U=p.length;U--;)wo(S,p[U]);return S});function G3(f,p){return sg(f,Ym(lt(p)))}var Jv=Co(function(f,p){return f==null?{}:jy(f,p)});function sg(f,p){if(f==null)return{};var S=kn(Ed(f),function(I){return[I]});return p=lt(p),By(f,S,function(I,U){return p(I,U[0])})}function ug(f,p,S){p=ps(p,f);var I=-1,U=p.length;for(U||(U=1,f=n);++Ip){var I=f;f=p,p=I}if(S||f%1||p%1){var U=vm();return $t(f+U*(p-f+lo("1e-"+((U+"").length-1))),p)}return Pm(f,p)}var R2=iu(function(f,p,S){return p=p.toLowerCase(),f+(S?Qd(p):p)});function Qd(f){return Et(hn(f).toLowerCase())}function Zv(f){return f=hn(f),f&&f.replace(Ui,dm).replace(qi,"")}function Y3(f,p,S){f=hn(f),p=Kn(p);var I=f.length;S=S===n?I:Gu(Nt(S),0,I);var U=S;return S-=p.length,S>=0&&f.slice(S,U)==p}function cg(f){return f=hn(f),f&&er.test(f)?f.replace(jr,Z1):f}function fg(f){return f=hn(f),f&&$i.test(f)?f.replace(Ls,"\\$&"):f}var P2=iu(function(f,p,S){return f+(S?"-":"")+p.toLowerCase()}),Jd=iu(function(f,p,S){return f+(S?" ":"")+p.toLowerCase()}),e0=Mm("toLowerCase");function dg(f,p,S){f=hn(f),p=Nt(p);var I=p?fo(f):0;if(!p||I>=p)return f;var U=(p-I)/2;return wc(va(U),S)+f+wc(ya(U),S)}function I2(f,p,S){f=hn(f),p=Nt(p);var I=p?fo(f):0;return p&&I>>0,S?(f=hn(f),f&&(typeof p=="string"||p!=null&&!tg(p))&&(p=Kn(p),!p&&Gs(f))?ms(ha(f),0,S):f.split(p,S)):[]}var b=iu(function(f,p,S){return f+(S?" ":"")+Et(p)});function x(f,p,S){return f=hn(f),S=S==null?0:Gu(Nt(S),0,f.length),p=Kn(p),f.slice(S,S+p.length)==p}function D(f,p,S){var I=z.templateSettings;S&&Ir(f,p,S)&&(p=n),f=hn(f),p=Hd({},p,I,Lm);var U=Hd({},p.imports,I.imports,Lm),K=yr(U),ee=fm(U,K),ne,fe,Pe=0,Me=p.interpolate||_a,je="__p += '",Ye=ns((p.escape||_a).source+"|"+Me.source+"|"+(Me===ca?Ei:_a).source+"|"+(p.evaluate||_a).source+"|$","g"),ot="//# sourceURL="+(fn.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rm+"]")+` -`;f.replace(Ye,function(Ct,Qt,rn,Va,aa,Ga){return rn||(rn=Va),je+=f.slice(Pe,Ga).replace(js,eb),Qt&&(ne=!0,je+=`' + -__e(`+Qt+`) + -'`),aa&&(fe=!0,je+=`'; -`+aa+`; +`)}function Gb(f){return Ot(f)||hu(f)||!!(ju&&f&&f[ju])}function Ha(f,p){var S=typeof f;return p=p??H,!!p&&(S=="number"||S!="symbol"&&Oi.test(f))&&f>-1&&f%1==0&&f0){if(++p>=me)return arguments[0]}else p=0;return f.apply(n,arguments)}}function Pd(f,p){var S=-1,I=f.length,U=I-1;for(p=p===n?I:p;++S1?f[p-1]:n;return S=typeof S=="function"?(f.pop(),S):n,Ld(f,S)});function Wr(f){var p=z(f);return p.__chain__=!0,p}function l2(f,p){return p(f),f}function Ic(f,p){return p(f)}var c2=To(function(f){var p=f.length,S=p?f[0]:0,I=this.__wrapped__,U=function(K){return eu(K,f)};return p>1||this.__actions__.length||!(I instanceof At)||!Ha(S)?this.thru(U):(I=I.slice(S,+S+(p?1:0)),I.__actions__.push({func:Ic,args:[U],thisArg:n}),new Ki(I,this.__chain__).thru(function(K){return p&&!K.length&&K.push(n),K}))});function I3(){return Wr(this)}function Ss(){return new Ki(this.value(),this.__chain__)}function tg(){this.__values__===n&&(this.__values__=P2(this.value()));var f=this.__index__>=this.__values__.length,p=f?n:this.__values__[this.__index__++];return{done:f,value:p}}function Pv(){return this}function Nc(f){for(var p,S=this;S instanceof dd;){var I=Qm(S);I.__index__=0,I.__values__=n,p?U.__wrapped__=I:p=I;var U=I;S=S.__wrapped__}return U.__wrapped__=f,p}function f2(){var f=this.__wrapped__;if(f instanceof At){var p=f;return this.__actions__.length&&(p=new At(this)),p=p.reverse(),p.__actions__.push({func:Ic,args:[$n],thisArg:n}),new Ki(p,this.__chain__)}return this.thru($n)}function d2(){return jm(this.__wrapped__,this.__actions__)}var h2=Sc(function(f,p,S){fn.call(f,S)?++f[S]:Yi(f,S,1)});function Iv(f,p,S){var I=Ot(f)?ab:By;return S&&Ir(f,p,S)&&(p=n),I(f,lt(p,3))}function Nv(f,p){var S=Ot(f)?go:rr;return S(f,lt(p,3))}var N3=Hm(wv),M3=Hm(n2);function k3(f,p){return or(Cs(f,p),1)}function p2(f,p){return or(Cs(f,p),V)}function m2(f,p,S){return S=S===n?1:Nt(S),or(Cs(f,p),S)}function tl(f,p){var S=Ot(f)?da:tu;return S(f,lt(p,3))}function Bd(f,p){var S=Ot(f)?u3:Nm;return S(f,lt(p,3))}var g2=Sc(function(f,p,S){fn.call(f,S)?f[S].push(p):Yi(f,S,[p])});function y2(f,p,S,I){f=It(f)?f:aa(f),S=S&&!I?Nt(S):0;var U=f.length;return S<0&&(S=Kt(U+S,0)),fg(f)?S<=U&&f.indexOf(p,S)>-1:!!U&&Zl(f,p,S)>-1}var D3=Mt(function(f,p,S){var I=-1,U=typeof p=="function",K=It(f)?Se(f.length):[];return tu(f,function(ee){K[++I]=U?Hr(p,ee,S):hc(ee,p,S)}),K}),v2=Sc(function(f,p,S){Yi(f,S,p)});function Cs(f,p){var S=Ot(f)?Dn:yd;return S(f,lt(p,3))}function b2(f,p,S,I){return f==null?[]:(Ot(p)||(p=p==null?[]:[p]),S=I?n:S,Ot(S)||(S=S==null?[]:[S]),Ky(f,p,S))}var Tn=Sc(function(f,p,S){f[S?0:1].push(p)},function(){return[[],[]]});function Mv(f,p,S){var I=Ot(f)?$y:Oy,U=arguments.length<3;return I(f,lt(p,4),S,U,tu)}function F3(f,p,S){var I=Ot(f)?l3:Oy,U=arguments.length<3;return I(f,lt(p,4),S,U,Nm)}function w2(f,p){var S=Ot(f)?go:rr;return S(f,rg(lt(p,3)))}function L3(f){var p=Ot(f)?Ly:Lb;return p(f)}function U3(f,p,S){(S?Ir(f,p,S):p===n)?p=1:p=Nt(p);var I=Ot(f)?Xs:Xy;return I(f,p)}function j3(f){var p=Ot(f)?Ft:O3;return p(f)}function ng(f){if(f==null)return 0;if(It(f))return fg(f)?yo(f):f.length;var p=sr(f);return p==gt||p==Pt?f.size:nu(f).length}function Mc(f,p,S){var I=Ot(f)?Ey:Sd;return S&&Ir(f,p,S)&&(p=n),I(f,lt(p,3))}var kv=Mt(function(f,p){if(f==null)return[];var S=p.length;return S>1&&Ir(f,p[0],p[1])?p=[]:S>2&&Ir(p[0],p[1],p[2])&&(p=[p[0]]),Ky(f,or(p,1),[])}),nl=ga||function(){return We.Date.now()};function Dv(f,p){if(typeof p!="function")throw new Wi(u);return f=Nt(f),function(){if(--f<1)return p.apply(this,arguments)}}function du(f,p,S){return p=S?n:p,p=f&&p==null?f.length:p,ja(f,F,n,n,n,n,p)}function za(f,p){var S;if(typeof p!="function")throw new Wi(u);return f=Nt(f),function(){return--f>0&&(S=p.apply(this,arguments)),f<=1&&(p=n),S}}var rl=Mt(function(f,p,S){var I=$;if(S.length){var U=Ws(S,Qi(rl));I|=P}return ja(f,I,p,S,U)}),S2=Mt(function(f,p,S){var I=$|O;if(S.length){var U=Ws(S,Qi(S2));I|=P}return ja(p,I,f,S,U)});function Fv(f,p,S){p=S?n:p;var I=ja(f,R,n,n,n,n,n,p);return I.placeholder=Fv.placeholder,I}function Lv(f,p,S){p=S?n:p;var I=ja(f,k,n,n,n,n,n,p);return I.placeholder=Lv.placeholder,I}function Uv(f,p,S){var I,U,K,ee,ne,fe,Pe=0,Me=!1,je=!1,Ye=!0;if(typeof f!="function")throw new Wi(u);p=Mr(p)||0,Un(S)&&(Me=!!S.leading,je="maxWait"in S,K=je?Kt(Mr(S.maxWait)||0,p):K,Ye="trailing"in S?!!S.trailing:Ye);function ot(vr){var Os=I,il=U;return I=U=n,Pe=vr,ee=f.apply(il,Os),ee}function St(vr){return Pe=vr,ne=Gr(Jt,p),Me?ot(vr):ee}function Bt(vr){var Os=vr-fe,il=vr-Pe,s4=p-Os;return je?$t(s4,K-il):s4}function Ct(vr){var Os=vr-fe,il=vr-Pe;return fe===n||Os>=p||Os<0||je&&il>=K}function Jt(){var vr=nl();if(Ct(vr))return rn(vr);ne=Gr(Jt,Bt(vr))}function rn(vr){return ne=n,Ye&&I?ot(vr):(I=U=n,ee)}function Wa(){ne!==n&&Cd(ne),Pe=0,I=fe=U=ne=n}function oa(){return ne===n?ee:rn(nl())}function Ka(){var vr=nl(),Os=Ct(vr);if(I=arguments,U=this,fe=vr,Os){if(ne===n)return St(fe);if(je)return Cd(ne),ne=Gr(Jt,p),ot(fe)}return ne===n&&(ne=Gr(Jt,p)),ee}return Ka.cancel=Wa,Ka.flush=oa,Ka}var B3=Mt(function(f,p){return jy(f,1,p)}),jv=Mt(function(f,p,S){return jy(f,Mr(p)||0,S)});function C2(f){return ja(f,Y)}function qd(f,p){if(typeof f!="function"||p!=null&&typeof p!="function")throw new Wi(u);var S=function(){var I=arguments,U=p?p.apply(this,I):I[0],K=S.cache;if(K.has(U))return K.get(U);var ee=f.apply(this,I);return S.cache=K.set(U,ee)||K,ee};return S.cache=new(qd.Cache||fs),S}qd.Cache=fs;function rg(f){if(typeof f!="function")throw new Wi(u);return function(){var p=arguments;switch(p.length){case 0:return!f.call(this);case 1:return!f.call(this,p[0]);case 2:return!f.call(this,p[0],p[1]);case 3:return!f.call(this,p[0],p[1],p[2])}return!f.apply(this,p)}}function Bv(f){return za(2,f)}var qv=Ub(function(f,p){p=p.length==1&&Ot(p[0])?Dn(p[0],Vi(lt())):Dn(or(p,1),Vi(lt()));var S=p.length;return Mt(function(I){for(var U=-1,K=$t(I.length,S);++U=p}),hu=Ab((function(){return arguments})())?Ab:function(f){return Xn(f)&&fn.call(f,"callee")&&!Iy.call(f,"callee")},Ot=Se.isArray,og=hr?Vi(hr):Rb;function It(f){return f!=null&&ug(f.length)&&!$s(f)}function zn(f){return Xn(f)&&It(f)}function Nr(f){return f===!0||f===!1||Xn(f)&&zr(f)==ke}var pu=bb||dC,Wv=Rr?Vi(Rr):Pb;function Kv(f){return Xn(f)&&f.nodeType===1&&!Kr(f)}function sg(f){if(f==null)return!0;if(It(f)&&(Ot(f)||typeof f=="string"||typeof f.splice=="function"||pu(f)||Ga(f)||hu(f)))return!f.length;var p=sr(f);if(p==gt||p==Pt)return!f.size;if(Jn(f))return!nu(f).length;for(var S in f)if(fn.call(f,S))return!1;return!0}function O2(f,p){return pc(f,p)}function T2(f,p,S){S=typeof S=="function"?S:n;var I=S?S(f,p):n;return I===n?pc(f,p,n,S):!!I}function Vd(f){if(!Xn(f))return!1;var p=zr(f);return p==ut||p==He||typeof f.message=="string"&&typeof f.name=="string"&&!Kr(f)}function Yv(f){return typeof f=="number"&&xm(f)}function $s(f){if(!Un(f))return!1;var p=zr(f);return p==pt||p==bt||p==tt||p==xn}function Jv(f){return typeof f=="number"&&f==Nt(f)}function ug(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=H}function Un(f){var p=typeof f;return f!=null&&(p=="object"||p=="function")}function Xn(f){return f!=null&&typeof f=="object"}var _2=ts?Vi(ts):Ib;function Qv(f,p){return f===p||Fm(f,p,Ad(p))}function Xv(f,p,S){return S=typeof S=="function"?S:n,Fm(f,p,Ad(p),S)}function V3(f){return Zv(f)&&f!=+f}function G3(f){if(Wb(f))throw new yt(o);return zy(f)}function Va(f){return f===null}function A2(f){return f==null}function Zv(f){return typeof f=="number"||Xn(f)&&zr(f)==Ut}function Kr(f){if(!Xn(f)||zr(f)!=Tt)return!1;var p=Lu(f);if(p===null)return!0;var S=fn.call(p,"constructor")&&p.constructor;return typeof S=="function"&&S instanceof S&&ud.call(S)==ac}var lg=hm?Vi(hm):Nb;function cg(f){return Jv(f)&&f>=-H&&f<=H}var No=Ql?Vi(Ql):Mb;function fg(f){return typeof f=="string"||!Ot(f)&&Xn(f)&&zr(f)==pe}function ia(f){return typeof f=="symbol"||Xn(f)&&zr(f)==ze}var Ga=Xl?Vi(Xl):$3;function R2(f){return f===n}function W3(f){return Xn(f)&&sr(f)==Je}function K3(f){return Xn(f)&&zr(f)==ht}var Y3=Ec(mc),J3=Ec(function(f,p){return f<=p});function P2(f){if(!f)return[];if(It(f))return fg(f)?ha(f):ii(f);if(bo&&f[bo])return hb(f[bo]());var p=sr(f),S=p==gt?Sm:p==Pt?Cm:aa;return S(f)}function Es(f){if(!f)return f===0?f:0;if(f=Mr(f),f===V||f===-V){var p=f<0?-1:1;return p*ie}return f===f?f:0}function Nt(f){var p=Es(f),S=p%1;return p===p?S?p-S:p:0}function e0(f){return f?Wu(Nt(f),0,Q):0}function Mr(f){if(typeof f=="number")return f;if(ia(f))return G;if(Un(f)){var p=typeof f.valueOf=="function"?f.valueOf():f;f=Un(p)?p+"":p}if(typeof f!="string")return f===0?f:+f;f=lb(f);var S=co.test(f);return S||Aa.test(f)?od(f.slice(2),S?2:8):Yo.test(f)?G:+f}function Dc(f){return Fa(f,si(f))}function I2(f){return f?Wu(Nt(f),-H,H):f===0?f:0}function hn(f){return f==null?"":Yn(f)}var Fc=Ju(function(f,p){if(Jn(p)||It(p)){Fa(p,yr(p),f);return}for(var S in p)fn.call(p,S)&&Fn(f,S,p[S])}),Lc=Ju(function(f,p){Fa(p,si(p),f)}),Gd=Ju(function(f,p,S,I){Fa(p,si(p),f,I)}),dg=Ju(function(f,p,S,I){Fa(p,yr(p),f,I)}),t0=To(eu);function n0(f,p){var S=ls(f);return p==null?S:Zs(S,p)}var hg=Mt(function(f,p){f=Cn(f);var S=-1,I=p.length,U=I>2?p[2]:n;for(U&&Ir(p[0],p[1],U)&&(I=1);++S1),K}),Fa(f,Td(f),S),I&&(S=an(S,y|w|v,Wm));for(var U=p.length;U--;)xo(S,p[U]);return S});function rC(f,p){return mg(f,rg(lt(p)))}var o0=To(function(f,p){return f==null?{}:Yy(f,p)});function mg(f,p){if(f==null)return{};var S=Dn(Td(f),function(I){return[I]});return p=lt(p),Jy(f,S,function(I,U){return p(I,U[0])})}function gg(f,p,S){p=ms(p,f);var I=-1,U=p.length;for(U||(U=1,f=n);++Ip){var I=f;f=p,p=I}if(S||f%1||p%1){var U=Om();return $t(f+U*(p-f+mo("1e-"+((U+"").length-1))),p)}return Um(f,p)}var B2=iu(function(f,p,S){return p=p.toLowerCase(),f+(S?Zd(p):p)});function Zd(f){return Et(hn(f).toLowerCase())}function u0(f){return f=hn(f),f&&f.replace(ji,wm).replace(Hi,"")}function oC(f,p,S){f=hn(f),p=Yn(p);var I=f.length;S=S===n?I:Wu(Nt(S),0,I);var U=S;return S-=p.length,S>=0&&f.slice(S,U)==p}function vg(f){return f=hn(f),f&&tr.test(f)?f.replace(Ur,cb):f}function bg(f){return f=hn(f),f&&Ei.test(f)?f.replace(Ls,"\\$&"):f}var q2=iu(function(f,p,S){return f+(S?"-":"")+p.toLowerCase()}),eh=iu(function(f,p,S){return f+(S?" ":"")+p.toLowerCase()}),l0=qm("toLowerCase");function wg(f,p,S){f=hn(f),p=Nt(p);var I=p?yo(f):0;if(!p||I>=p)return f;var U=(p-I)/2;return $c(va(U),S)+f+$c(ya(U),S)}function H2(f,p,S){f=hn(f),p=Nt(p);var I=p?yo(f):0;return p&&I>>0,S?(f=hn(f),f&&(typeof p=="string"||p!=null&&!lg(p))&&(p=Yn(p),!p&&Gs(f))?gs(ha(f),0,S):f.split(p,S)):[]}var b=iu(function(f,p,S){return f+(S?" ":"")+Et(p)});function x(f,p,S){return f=hn(f),S=S==null?0:Wu(Nt(S),0,f.length),p=Yn(p),f.slice(S,S+p.length)==p}function D(f,p,S){var I=z.templateSettings;S&&Ir(f,p,S)&&(p=n),f=hn(f),p=Gd({},p,I,Gm);var U=Gd({},p.imports,I.imports,Gm),K=yr(U),ee=bm(U,K),ne,fe,Pe=0,Me=p.interpolate||Ra,je="__p += '",Ye=rs((p.escape||Ra).source+"|"+Me.source+"|"+(Me===ca?xi:Ra).source+"|"+(p.evaluate||Ra).source+"|$","g"),ot="//# sourceURL="+(fn.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++fm+"]")+` +`;f.replace(Ye,function(Ct,Jt,rn,Wa,oa,Ka){return rn||(rn=Wa),je+=f.slice(Pe,Ka).replace(js,fb),Jt&&(ne=!0,je+=`' + +__e(`+Jt+`) + +'`),oa&&(fe=!0,je+=`'; +`+oa+`; __p += '`),rn&&(je+=`' + ((__t = (`+rn+`)) == null ? '' : __t) + -'`),Pe=Ga+Ct.length,Ct}),je+=`'; +'`),Pe=Ka+Ct.length,Ct}),je+=`'; `;var St=fn.call(p,"variable")&&p.variable;if(!St)je=`with (obj) { `+je+` } @@ -72,19 +72,19 @@ __p += '`),rn&&(je+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+je+`return __p -}`;var Bt=de(function(){return zt(K,ot+"return "+je).apply(n,ee)});if(Bt.source=je,qd(Bt))throw Bt;return Bt}function W(f){return hn(f).toLowerCase()}function Z(f){return hn(f).toUpperCase()}function se(f,p,S){if(f=hn(f),f&&(S||p===n))return X1(f);if(!f||!(p=Kn(p)))return f;var I=ha(f),U=ha(p),K=Zl(I,U),ee=ec(I,U)+1;return ms(I,K,ee).join("")}function _e(f,p,S){if(f=hn(f),f&&(S||p===n))return f.slice(0,by(f)+1);if(!f||!(p=Kn(p)))return f;var I=ha(f),U=ec(I,ha(p))+1;return ms(I,0,U).join("")}function Le(f,p,S){if(f=hn(f),f&&(S||p===n))return f.replace(Xr,"");if(!f||!(p=Kn(p)))return f;var I=ha(f),U=Zl(I,ha(p));return ms(I,U).join("")}function ve(f,p){var S=X,I=ue;if(Ln(p)){var U="separator"in p?p.separator:U;S="length"in p?Nt(p.length):S,I="omission"in p?Kn(p.omission):I}f=hn(f);var K=f.length;if(Gs(f)){var ee=ha(f);K=ee.length}if(S>=K)return f;var ne=S-fo(I);if(ne<1)return I;var fe=ee?ms(ee,0,ne).join(""):f.slice(0,ne);if(U===n)return fe+I;if(ee&&(ne+=fe.length-ne),tg(U)){if(f.slice(ne).search(U)){var Pe,Me=fe;for(U.global||(U=ns(U.source,hn(Us.exec(U))+"g")),U.lastIndex=0;Pe=U.exec(Me);)var je=Pe.index;fe=fe.slice(0,je===n?ne:je)}}else if(f.indexOf(Kn(U),ne)!=ne){var Ye=fe.lastIndexOf(U);Ye>-1&&(fe=fe.slice(0,Ye))}return fe+I}function Oe(f){return f=hn(f),f&&tn.test(f)?f.replace(wt,ib):f}var at=iu(function(f,p,S){return f+(S?" ":"")+p.toUpperCase()}),Et=Mm("toUpperCase");function zn(f,p,S){return f=hn(f),p=S?n:p,p===n?tb(f)?o3(f):t3(f):f.match(p)||[]}var de=Mt(function(f,p){try{return zr(f,n,p)}catch(S){return qd(S)?S:new yt(S)}}),oe=Co(function(f,p){return da(p,function(S){S=ai(S),Ki(f,S,nl(f[S],f))}),f});function ye(f){var p=f==null?0:f.length,S=lt();return f=p?kn(f,function(I){if(typeof I[1]!="function")throw new Gi(u);return[S(I[0]),I[1]]}):[],Mt(function(I){for(var U=-1;++UH)return[];var S=J,I=$t(f,J);p=lt(p),f-=J;for(var U=Vs(I,p);++S0||p<0)?new At(S):(f<0?S=S.takeRight(-f):f&&(S=S.drop(f)),p!==n&&(p=Nt(p),S=p<0?S.dropRight(-p):S.take(p-f)),S)},At.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},At.prototype.toArray=function(){return this.take(J)},wa(At.prototype,function(f,p){var S=/^(?:filter|find|map|reject)|While$/.test(p),I=/^(?:head|last)$/.test(p),U=z[I?"take"+(p=="last"?"Right":""):p],K=I||/^find/.test(p);U&&(z.prototype[p]=function(){var ee=this.__wrapped__,ne=I?[1]:arguments,fe=ee instanceof At,Pe=ne[0],Me=fe||Ot(ee),je=function(Qt){var rn=U.apply(z,ts([Qt],ne));return I&&Ye?rn[0]:rn};Me&&S&&typeof Pe=="function"&&Pe.length!=1&&(fe=Me=!1);var Ye=this.__chain__,ot=!!this.__actions__.length,St=K&&!Ye,Bt=fe&&!ot;if(!K&&Me){ee=Bt?ee:new At(this);var Ct=f.apply(ee,ne);return Ct.__actions__.push({func:Ac,args:[je],thisArg:n}),new Wi(Ct,Ye)}return St&&Bt?f.apply(this,ne):(Ct=this.thru(je),St?I?Ct.value()[0]:Ct.value():Ct)})}),da(["pop","push","shift","sort","splice","unshift"],function(f){var p=id[f],S=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",I=/^(?:pop|shift)$/.test(f);z.prototype[f]=function(){var U=arguments;if(I&&!this.__chain__){var K=this.value();return p.apply(Ot(K)?K:[],U)}return this[S](function(ee){return p.apply(Ot(ee)?ee:[],U)})}}),wa(At.prototype,function(f,p){var S=z[p];if(S){var I=S.name+"";fn.call(Ks,I)||(Ks[I]=[]),Ks[I].push({name:p,func:S})}}),Ks[Cd(n,O).name]=[{name:"wrapper",func:n}],At.prototype.clone=db,At.prototype.reverse=ic,At.prototype.value=Sm,z.prototype.at=Zb,z.prototype.chain=S3,z.prototype.commit=ws,z.prototype.next=Wm,z.prototype.plant=Rc,z.prototype.reverse=e2,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=t2,z.prototype.first=z.prototype.head,po&&(z.prototype[po]=Cv),z}),Ra=s3();_t?((_t.exports=Ra)._=Ra,it._=Ra):We._=Ra}).call(xF)})(x0,x0.exports)),x0.exports}var Sr=OF();function ks(t){var n,r,i,o,u,l,d,h;const e={};if(t.error&&Array.isArray((n=t.error)==null?void 0:n.errors))for(const g of(r=t.error)==null?void 0:r.errors)Sr.set(e,g.location,g.messageTranslated||g.message);return t.status&&t.ok===!1?{form:`${t.status}`}:((i=t==null?void 0:t.error)!=null&&i.code&&(e.form=(o=t==null?void 0:t.error)==null?void 0:o.code),(u=t==null?void 0:t.error)!=null&&u.message&&(e.form=(l=t==null?void 0:t.error)==null?void 0:l.message),(d=t==null?void 0:t.error)!=null&&d.messageTranslated&&(e.form=(h=t==null?void 0:t.error)==null?void 0:h.messageTranslated),t.message?{form:`${t.message}`}:e)}const Lr=t=>(e,n,r)=>{const i=t.prefix+n;return fetch(i,{method:e,headers:{Accept:"application/json","Content-Type":"application/json",...t.headers||{}},body:JSON.stringify(r)}).then(o=>{const u=o.headers.get("content-type");if(u&&u.indexOf("application/json")!==-1)return o.json().then(l=>{if(o.ok)return l;throw l});throw o})};var TF=function(e){return _F(e)&&!AF(e)};function _F(t){return!!t&&typeof t=="object"}function AF(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||IF(t)}var RF=typeof Symbol=="function"&&Symbol.for,PF=RF?Symbol.for("react.element"):60103;function IF(t){return t.$$typeof===PF}function NF(t){return Array.isArray(t)?[]:{}}function Nw(t,e){return e.clone!==!1&&e.isMergeableObject(t)?q0(NF(t),t,e):t}function MF(t,e,n){return t.concat(e).map(function(r){return Nw(r,n)})}function kF(t,e,n){var r={};return n.isMergeableObject(t)&&Object.keys(t).forEach(function(i){r[i]=Nw(t[i],n)}),Object.keys(e).forEach(function(i){!n.isMergeableObject(e[i])||!t[i]?r[i]=Nw(e[i],n):r[i]=q0(t[i],e[i],n)}),r}function q0(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||MF,n.isMergeableObject=n.isMergeableObject||TF;var r=Array.isArray(e),i=Array.isArray(t),o=r===i;return o?r?n.arrayMerge(t,e,n):kF(t,e,n):Nw(e,n)}q0.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return q0(r,i,n)},{})};var EE=q0,y9=typeof global=="object"&&global&&global.Object===Object&&global,DF=typeof self=="object"&&self&&self.Object===Object&&self,Ru=y9||DF||Function("return this")(),_f=Ru.Symbol,v9=Object.prototype,FF=v9.hasOwnProperty,LF=v9.toString,r0=_f?_f.toStringTag:void 0;function UF(t){var e=FF.call(t,r0),n=t[r0];try{t[r0]=void 0;var r=!0}catch{}var i=LF.call(t);return r&&(e?t[r0]=n:delete t[r0]),i}var jF=Object.prototype,BF=jF.toString;function qF(t){return BF.call(t)}var HF="[object Null]",zF="[object Undefined]",p4=_f?_f.toStringTag:void 0;function Vp(t){return t==null?t===void 0?zF:HF:p4&&p4 in Object(t)?UF(t):qF(t)}function b9(t,e){return function(n){return t(e(n))}}var oO=b9(Object.getPrototypeOf,Object);function Gp(t){return t!=null&&typeof t=="object"}var VF="[object Object]",GF=Function.prototype,WF=Object.prototype,w9=GF.toString,KF=WF.hasOwnProperty,YF=w9.call(Object);function m4(t){if(!Gp(t)||Vp(t)!=VF)return!1;var e=oO(t);if(e===null)return!0;var n=KF.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&w9.call(n)==YF}function QF(){this.__data__=[],this.size=0}function S9(t,e){return t===e||t!==t&&e!==e}function dS(t,e){for(var n=t.length;n--;)if(S9(t[n][0],e))return n;return-1}var JF=Array.prototype,XF=JF.splice;function ZF(t){var e=this.__data__,n=dS(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():XF.call(e,n,1),--this.size,!0}function eL(t){var e=this.__data__,n=dS(e,t);return n<0?void 0:e[n][1]}function tL(t){return dS(this.__data__,t)>-1}function nL(t,e){var n=this.__data__,r=dS(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Il(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=nU}var rU="[object Arguments]",iU="[object Array]",aU="[object Boolean]",oU="[object Date]",sU="[object Error]",uU="[object Function]",lU="[object Map]",cU="[object Number]",fU="[object Object]",dU="[object RegExp]",hU="[object Set]",pU="[object String]",mU="[object WeakMap]",gU="[object ArrayBuffer]",yU="[object DataView]",vU="[object Float32Array]",bU="[object Float64Array]",wU="[object Int8Array]",SU="[object Int16Array]",CU="[object Int32Array]",$U="[object Uint8Array]",EU="[object Uint8ClampedArray]",xU="[object Uint16Array]",OU="[object Uint32Array]",Gn={};Gn[vU]=Gn[bU]=Gn[wU]=Gn[SU]=Gn[CU]=Gn[$U]=Gn[EU]=Gn[xU]=Gn[OU]=!0;Gn[rU]=Gn[iU]=Gn[gU]=Gn[aU]=Gn[yU]=Gn[oU]=Gn[sU]=Gn[uU]=Gn[lU]=Gn[cU]=Gn[fU]=Gn[dU]=Gn[hU]=Gn[pU]=Gn[mU]=!1;function TU(t){return Gp(t)&&_9(t.length)&&!!Gn[Vp(t)]}function sO(t){return function(e){return t(e)}}var A9=typeof Za=="object"&&Za&&!Za.nodeType&&Za,I0=A9&&typeof eo=="object"&&eo&&!eo.nodeType&&eo,_U=I0&&I0.exports===A9,lC=_U&&y9.process,Hg=(function(){try{var t=I0&&I0.require&&I0.require("util").types;return t||lC&&lC.binding&&lC.binding("util")}catch{}})(),S4=Hg&&Hg.isTypedArray,AU=S4?sO(S4):TU,RU=Object.prototype,PU=RU.hasOwnProperty;function R9(t,e){var n=R1(t),r=!n&&YL(t),i=!n&&!r&&T9(t),o=!n&&!r&&!i&&AU(t),u=n||r||i||o,l=u?VL(t.length,String):[],d=l.length;for(var h in t)(e||PU.call(t,h))&&!(u&&(h=="length"||i&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||tU(h,d)))&&l.push(h);return l}var IU=Object.prototype;function uO(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||IU;return t===n}var NU=b9(Object.keys,Object),MU=Object.prototype,kU=MU.hasOwnProperty;function DU(t){if(!uO(t))return NU(t);var e=[];for(var n in Object(t))kU.call(t,n)&&n!="constructor"&&e.push(n);return e}function P9(t){return t!=null&&_9(t.length)&&!C9(t)}function lO(t){return P9(t)?R9(t):DU(t)}function FU(t,e){return t&&pS(e,lO(e),t)}function LU(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var UU=Object.prototype,jU=UU.hasOwnProperty;function BU(t){if(!A1(t))return LU(t);var e=uO(t),n=[];for(var r in t)r=="constructor"&&(e||!jU.call(t,r))||n.push(r);return n}function cO(t){return P9(t)?R9(t,!0):BU(t)}function qU(t,e){return t&&pS(e,cO(e),t)}var I9=typeof Za=="object"&&Za&&!Za.nodeType&&Za,C4=I9&&typeof eo=="object"&&eo&&!eo.nodeType&&eo,HU=C4&&C4.exports===I9,$4=HU?Ru.Buffer:void 0,E4=$4?$4.allocUnsafe:void 0;function zU(t,e){if(e)return t.slice();var n=t.length,r=E4?E4(n):new t.constructor(n);return t.copy(r),r}function N9(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n=K)return f;var ne=S-yo(I);if(ne<1)return I;var fe=ee?gs(ee,0,ne).join(""):f.slice(0,ne);if(U===n)return fe+I;if(ee&&(ne+=fe.length-ne),lg(U)){if(f.slice(ne).search(U)){var Pe,Me=fe;for(U.global||(U=rs(U.source,hn(Us.exec(U))+"g")),U.lastIndex=0;Pe=U.exec(Me);)var je=Pe.index;fe=fe.slice(0,je===n?ne:je)}}else if(f.indexOf(Yn(U),ne)!=ne){var Ye=fe.lastIndexOf(U);Ye>-1&&(fe=fe.slice(0,Ye))}return fe+I}function Oe(f){return f=hn(f),f&&tn.test(f)?f.replace(wt,mb):f}var at=iu(function(f,p,S){return f+(S?" ":"")+p.toUpperCase()}),Et=qm("toUpperCase");function Vn(f,p,S){return f=hn(f),p=S?n:p,p===n?db(f)?y3(f):d3(f):f.match(p)||[]}var de=Mt(function(f,p){try{return Hr(f,n,p)}catch(S){return Vd(S)?S:new yt(S)}}),oe=To(function(f,p){return da(p,function(S){S=ai(S),Yi(f,S,rl(f[S],f))}),f});function ye(f){var p=f==null?0:f.length,S=lt();return f=p?Dn(f,function(I){if(typeof I[1]!="function")throw new Wi(u);return[S(I[0]),I[1]]}):[],Mt(function(I){for(var U=-1;++UH)return[];var S=Q,I=$t(f,Q);p=lt(p),f-=Q;for(var U=Vs(I,p);++S0||p<0)?new At(S):(f<0?S=S.takeRight(-f):f&&(S=S.drop(f)),p!==n&&(p=Nt(p),S=p<0?S.dropRight(-p):S.take(p-f)),S)},At.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},At.prototype.toArray=function(){return this.take(Q)},wa(At.prototype,function(f,p){var S=/^(?:filter|find|map|reject)|While$/.test(p),I=/^(?:head|last)$/.test(p),U=z[I?"take"+(p=="last"?"Right":""):p],K=I||/^find/.test(p);U&&(z.prototype[p]=function(){var ee=this.__wrapped__,ne=I?[1]:arguments,fe=ee instanceof At,Pe=ne[0],Me=fe||Ot(ee),je=function(Jt){var rn=U.apply(z,ns([Jt],ne));return I&&Ye?rn[0]:rn};Me&&S&&typeof Pe=="function"&&Pe.length!=1&&(fe=Me=!1);var Ye=this.__chain__,ot=!!this.__actions__.length,St=K&&!Ye,Bt=fe&&!ot;if(!K&&Me){ee=Bt?ee:new At(this);var Ct=f.apply(ee,ne);return Ct.__actions__.push({func:Ic,args:[je],thisArg:n}),new Ki(Ct,Ye)}return St&&Bt?f.apply(this,ne):(Ct=this.thru(je),St?I?Ct.value()[0]:Ct.value():Ct)})}),da(["pop","push","shift","sort","splice","unshift"],function(f){var p=sd[f],S=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",I=/^(?:pop|shift)$/.test(f);z.prototype[f]=function(){var U=arguments;if(I&&!this.__chain__){var K=this.value();return p.apply(Ot(K)?K:[],U)}return this[S](function(ee){return p.apply(Ot(ee)?ee:[],U)})}}),wa(At.prototype,function(f,p){var S=z[p];if(S){var I=S.name+"";fn.call(Ks,I)||(Ks[I]=[]),Ks[I].push({name:p,func:S})}}),Ks[xd(n,O).name]=[{name:"wrapper",func:n}],At.prototype.clone=$b,At.prototype.reverse=sc,At.prototype.value=Am,z.prototype.at=c2,z.prototype.chain=I3,z.prototype.commit=Ss,z.prototype.next=tg,z.prototype.plant=Nc,z.prototype.reverse=f2,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=d2,z.prototype.first=z.prototype.head,bo&&(z.prototype[bo]=Pv),z}),Ia=v3();_t?((_t.exports=Ia)._=Ia,it._=Ia):We._=Ia}).call(LF)})(k0,k0.exports)),k0.exports}var Sr=UF();function Ru(t){var n,r,i,o,u,l,d,h;const e={};if(t.error&&Array.isArray((n=t.error)==null?void 0:n.errors))for(const g of(r=t.error)==null?void 0:r.errors)Sr.set(e,g.location,g.messageTranslated||g.message);return t.status&&t.ok===!1?{form:`${t.status}`}:((i=t==null?void 0:t.error)!=null&&i.code&&(e.form=(o=t==null?void 0:t.error)==null?void 0:o.code),(u=t==null?void 0:t.error)!=null&&u.message&&(e.form=(l=t==null?void 0:t.error)==null?void 0:l.message),(d=t==null?void 0:t.error)!=null&&d.messageTranslated&&(e.form=(h=t==null?void 0:t.error)==null?void 0:h.messageTranslated),t.message?{form:`${t.message}`}:e)}const Qr=t=>(e,n,r)=>{const i=t.prefix+n;return fetch(i,{method:e,headers:{Accept:"application/json","Content-Type":"application/json",...t.headers||{}},body:JSON.stringify(r)}).then(o=>{const u=o.headers.get("content-type");if(u&&u.indexOf("application/json")!==-1)return o.json().then(l=>{if(o.ok)return l;throw l});throw o})};var jF=function(e){return BF(e)&&!qF(e)};function BF(t){return!!t&&typeof t=="object"}function qF(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||VF(t)}var HF=typeof Symbol=="function"&&Symbol.for,zF=HF?Symbol.for("react.element"):60103;function VF(t){return t.$$typeof===zF}function GF(t){return Array.isArray(t)?[]:{}}function zw(t,e){return e.clone!==!1&&e.isMergeableObject(t)?X0(GF(t),t,e):t}function WF(t,e,n){return t.concat(e).map(function(r){return zw(r,n)})}function KF(t,e,n){var r={};return n.isMergeableObject(t)&&Object.keys(t).forEach(function(i){r[i]=zw(t[i],n)}),Object.keys(e).forEach(function(i){!n.isMergeableObject(e[i])||!t[i]?r[i]=zw(e[i],n):r[i]=X0(t[i],e[i],n)}),r}function X0(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||WF,n.isMergeableObject=n.isMergeableObject||jF;var r=Array.isArray(e),i=Array.isArray(t),o=r===i;return o?r?n.arrayMerge(t,e,n):KF(t,e,n):zw(e,n)}X0.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return X0(r,i,n)},{})};var FE=X0,R9=typeof global=="object"&&global&&global.Object===Object&&global,YF=typeof self=="object"&&self&&self.Object===Object&&self,Pu=R9||YF||Function("return this")(),Pf=Pu.Symbol,P9=Object.prototype,JF=P9.hasOwnProperty,QF=P9.toString,d0=Pf?Pf.toStringTag:void 0;function XF(t){var e=JF.call(t,d0),n=t[d0];try{t[d0]=void 0;var r=!0}catch{}var i=QF.call(t);return r&&(e?t[d0]=n:delete t[d0]),i}var ZF=Object.prototype,eL=ZF.toString;function tL(t){return eL.call(t)}var nL="[object Null]",rL="[object Undefined]",T4=Pf?Pf.toStringTag:void 0;function Xp(t){return t==null?t===void 0?rL:nL:T4&&T4 in Object(t)?XF(t):tL(t)}function I9(t,e){return function(n){return t(e(n))}}var bO=I9(Object.getPrototypeOf,Object);function Zp(t){return t!=null&&typeof t=="object"}var iL="[object Object]",aL=Function.prototype,oL=Object.prototype,N9=aL.toString,sL=oL.hasOwnProperty,uL=N9.call(Object);function _4(t){if(!Zp(t)||Xp(t)!=iL)return!1;var e=bO(t);if(e===null)return!0;var n=sL.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&N9.call(n)==uL}function lL(){this.__data__=[],this.size=0}function M9(t,e){return t===e||t!==t&&e!==e}function $S(t,e){for(var n=t.length;n--;)if(M9(t[n][0],e))return n;return-1}var cL=Array.prototype,fL=cL.splice;function dL(t){var e=this.__data__,n=$S(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():fL.call(e,n,1),--this.size,!0}function hL(t){var e=this.__data__,n=$S(e,t);return n<0?void 0:e[n][1]}function pL(t){return $S(this.__data__,t)>-1}function mL(t,e){var n=this.__data__,r=$S(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function kl(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=mU}var gU="[object Arguments]",yU="[object Array]",vU="[object Boolean]",bU="[object Date]",wU="[object Error]",SU="[object Function]",CU="[object Map]",$U="[object Number]",EU="[object Object]",xU="[object RegExp]",OU="[object Set]",TU="[object String]",_U="[object WeakMap]",AU="[object ArrayBuffer]",RU="[object DataView]",PU="[object Float32Array]",IU="[object Float64Array]",NU="[object Int8Array]",MU="[object Int16Array]",kU="[object Int32Array]",DU="[object Uint8Array]",FU="[object Uint8ClampedArray]",LU="[object Uint16Array]",UU="[object Uint32Array]",Wn={};Wn[PU]=Wn[IU]=Wn[NU]=Wn[MU]=Wn[kU]=Wn[DU]=Wn[FU]=Wn[LU]=Wn[UU]=!0;Wn[gU]=Wn[yU]=Wn[AU]=Wn[vU]=Wn[RU]=Wn[bU]=Wn[wU]=Wn[SU]=Wn[CU]=Wn[$U]=Wn[EU]=Wn[xU]=Wn[OU]=Wn[TU]=Wn[_U]=!1;function jU(t){return Zp(t)&&B9(t.length)&&!!Wn[Xp(t)]}function wO(t){return function(e){return t(e)}}var q9=typeof to=="object"&&to&&!to.nodeType&&to,q0=q9&&typeof no=="object"&&no&&!no.nodeType&&no,BU=q0&&q0.exports===q9,wC=BU&&R9.process,Xg=(function(){try{var t=q0&&q0.require&&q0.require("util").types;return t||wC&&wC.binding&&wC.binding("util")}catch{}})(),M4=Xg&&Xg.isTypedArray,qU=M4?wO(M4):jU,HU=Object.prototype,zU=HU.hasOwnProperty;function H9(t,e){var n=B1(t),r=!n&&uU(t),i=!n&&!r&&j9(t),o=!n&&!r&&!i&&qU(t),u=n||r||i||o,l=u?iU(t.length,String):[],d=l.length;for(var h in t)(e||zU.call(t,h))&&!(u&&(h=="length"||i&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||pU(h,d)))&&l.push(h);return l}var VU=Object.prototype;function SO(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||VU;return t===n}var GU=I9(Object.keys,Object),WU=Object.prototype,KU=WU.hasOwnProperty;function YU(t){if(!SO(t))return GU(t);var e=[];for(var n in Object(t))KU.call(t,n)&&n!="constructor"&&e.push(n);return e}function z9(t){return t!=null&&B9(t.length)&&!k9(t)}function CO(t){return z9(t)?H9(t):YU(t)}function JU(t,e){return t&&xS(e,CO(e),t)}function QU(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var XU=Object.prototype,ZU=XU.hasOwnProperty;function ej(t){if(!j1(t))return QU(t);var e=SO(t),n=[];for(var r in t)r=="constructor"&&(e||!ZU.call(t,r))||n.push(r);return n}function $O(t){return z9(t)?H9(t,!0):ej(t)}function tj(t,e){return t&&xS(e,$O(e),t)}var V9=typeof to=="object"&&to&&!to.nodeType&&to,k4=V9&&typeof no=="object"&&no&&!no.nodeType&&no,nj=k4&&k4.exports===V9,D4=nj?Pu.Buffer:void 0,F4=D4?D4.allocUnsafe:void 0;function rj(t,e){if(e)return t.slice();var n=t.length,r=F4?F4(n):new t.constructor(n);return t.copy(r),r}function G9(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n=0)&&(n[i]=t[i]);return n}var mS=T.createContext(void 0);mS.displayName="FormikContext";var IB=mS.Provider;mS.Consumer;function NB(){var t=T.useContext(mS);return t}var Po=function(e){return typeof e=="function"},gS=function(e){return e!==null&&typeof e=="object"},MB=function(e){return String(Math.floor(Number(e)))===e},hC=function(e){return Object.prototype.toString.call(e)==="[object String]"},kB=function(e){return T.Children.count(e)===0},pC=function(e){return gS(e)&&Po(e.then)};function Ya(t,e,n,r){r===void 0&&(r=0);for(var i=H9(e);t&&r=0?[]:{}}}return(o===0?t:i)[u[o]]===n?t:(n===void 0?delete i[u[o]]:i[u[o]]=n,o===0&&n===void 0&&delete r[u[o]],r)}function V9(t,e,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,o=Object.keys(t);i0?ze.map(function(Qe){return X(Qe,Ya(pe,Qe))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(Ge).then(function(Qe){return Qe.reduce(function(ht,j,A){return j==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||j&&(ht=Np(ht,ze[A],j)),ht},{})})},[X]),me=T.useCallback(function(pe){return Promise.all([ue(pe),w.validationSchema?Y(pe):{},w.validate?q(pe):{}]).then(function(ze){var Ge=ze[0],Qe=ze[1],ht=ze[2],j=EE.all([Ge,Qe,ht],{arrayMerge:jB});return j})},[w.validate,w.validationSchema,ue,q,Y]),te=Ao(function(pe){return pe===void 0&&(pe=L.values),F({type:"SET_ISVALIDATING",payload:!0}),me(pe).then(function(ze){return O.current&&(F({type:"SET_ISVALIDATING",payload:!1}),F({type:"SET_ERRORS",payload:ze})),ze})});T.useEffect(function(){u&&O.current===!0&&pp(v.current,w.initialValues)&&te(v.current)},[u,te]);var be=T.useCallback(function(pe){var ze=pe&&pe.values?pe.values:v.current,Ge=pe&&pe.errors?pe.errors:C.current?C.current:w.initialErrors||{},Qe=pe&&pe.touched?pe.touched:E.current?E.current:w.initialTouched||{},ht=pe&&pe.status?pe.status:$.current?$.current:w.initialStatus;v.current=ze,C.current=Ge,E.current=Qe,$.current=ht;var j=function(){F({type:"RESET_FORM",payload:{isSubmitting:!!pe&&!!pe.isSubmitting,errors:Ge,touched:Qe,status:ht,values:ze,isValidating:!!pe&&!!pe.isValidating,submitCount:pe&&pe.submitCount&&typeof pe.submitCount=="number"?pe.submitCount:0}})};if(w.onReset){var A=w.onReset(L.values,bt);pC(A)?A.then(j):j()}else j()},[w.initialErrors,w.initialStatus,w.initialTouched,w.onReset]);T.useEffect(function(){O.current===!0&&!pp(v.current,w.initialValues)&&h&&(v.current=w.initialValues,be(),u&&te(v.current))},[h,w.initialValues,be,u,te]),T.useEffect(function(){h&&O.current===!0&&!pp(C.current,w.initialErrors)&&(C.current=w.initialErrors||Xd,F({type:"SET_ERRORS",payload:w.initialErrors||Xd}))},[h,w.initialErrors]),T.useEffect(function(){h&&O.current===!0&&!pp(E.current,w.initialTouched)&&(E.current=w.initialTouched||M2,F({type:"SET_TOUCHED",payload:w.initialTouched||M2}))},[h,w.initialTouched]),T.useEffect(function(){h&&O.current===!0&&!pp($.current,w.initialStatus)&&($.current=w.initialStatus,F({type:"SET_STATUS",payload:w.initialStatus}))},[h,w.initialStatus,w.initialTouched]);var we=Ao(function(pe){if(_.current[pe]&&Po(_.current[pe].validate)){var ze=Ya(L.values,pe),Ge=_.current[pe].validate(ze);return pC(Ge)?(F({type:"SET_ISVALIDATING",payload:!0}),Ge.then(function(Qe){return Qe}).then(function(Qe){F({type:"SET_FIELD_ERROR",payload:{field:pe,value:Qe}}),F({type:"SET_ISVALIDATING",payload:!1})})):(F({type:"SET_FIELD_ERROR",payload:{field:pe,value:Ge}}),Promise.resolve(Ge))}else if(w.validationSchema)return F({type:"SET_ISVALIDATING",payload:!0}),Y(L.values,pe).then(function(Qe){return Qe}).then(function(Qe){F({type:"SET_FIELD_ERROR",payload:{field:pe,value:Ya(Qe,pe)}}),F({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),B=T.useCallback(function(pe,ze){var Ge=ze.validate;_.current[pe]={validate:Ge}},[]),V=T.useCallback(function(pe){delete _.current[pe]},[]),H=Ao(function(pe,ze){F({type:"SET_TOUCHED",payload:pe});var Ge=ze===void 0?i:ze;return Ge?te(L.values):Promise.resolve()}),ie=T.useCallback(function(pe){F({type:"SET_ERRORS",payload:pe})},[]),G=Ao(function(pe,ze){var Ge=Po(pe)?pe(L.values):pe;F({type:"SET_VALUES",payload:Ge});var Qe=ze===void 0?n:ze;return Qe?te(Ge):Promise.resolve()}),J=T.useCallback(function(pe,ze){F({type:"SET_FIELD_ERROR",payload:{field:pe,value:ze}})},[]),he=Ao(function(pe,ze,Ge){F({type:"SET_FIELD_VALUE",payload:{field:pe,value:ze}});var Qe=Ge===void 0?n:Ge;return Qe?te(Np(L.values,pe,ze)):Promise.resolve()}),$e=T.useCallback(function(pe,ze){var Ge=ze,Qe=pe,ht;if(!hC(pe)){pe.persist&&pe.persist();var j=pe.target?pe.target:pe.currentTarget,A=j.type,M=j.name,Q=j.id,re=j.value,ge=j.checked;j.outerHTML;var Ee=j.options,rt=j.multiple;Ge=ze||M||Q,Qe=/number|range/.test(A)?(ht=parseFloat(re),isNaN(ht)?"":ht):/checkbox/.test(A)?qB(Ya(L.values,Ge),ge,re):Ee&&rt?BB(Ee):re}Ge&&he(Ge,Qe)},[he,L.values]),Ce=Ao(function(pe){if(hC(pe))return function(ze){return $e(ze,pe)};$e(pe)}),Be=Ao(function(pe,ze,Ge){ze===void 0&&(ze=!0),F({type:"SET_FIELD_TOUCHED",payload:{field:pe,value:ze}});var Qe=Ge===void 0?i:Ge;return Qe?te(L.values):Promise.resolve()}),Ie=T.useCallback(function(pe,ze){pe.persist&&pe.persist();var Ge=pe.target,Qe=Ge.name,ht=Ge.id;Ge.outerHTML;var j=ze||Qe||ht;Be(j,!0)},[Be]),tt=Ao(function(pe){if(hC(pe))return function(ze){return Ie(ze,pe)};Ie(pe)}),ke=T.useCallback(function(pe){Po(pe)?F({type:"SET_FORMIK_STATE",payload:pe}):F({type:"SET_FORMIK_STATE",payload:function(){return pe}})},[]),Ke=T.useCallback(function(pe){F({type:"SET_STATUS",payload:pe})},[]),He=T.useCallback(function(pe){F({type:"SET_ISSUBMITTING",payload:pe})},[]),ut=Ao(function(){return F({type:"SUBMIT_ATTEMPT"}),te().then(function(pe){var ze=pe instanceof Error,Ge=!ze&&Object.keys(pe).length===0;if(Ge){var Qe;try{if(Qe=gt(),Qe===void 0)return}catch(ht){throw ht}return Promise.resolve(Qe).then(function(ht){return O.current&&F({type:"SUBMIT_SUCCESS"}),ht}).catch(function(ht){if(O.current)throw F({type:"SUBMIT_FAILURE"}),ht})}else if(O.current&&(F({type:"SUBMIT_FAILURE"}),ze))throw pe})}),pt=Ao(function(pe){pe&&pe.preventDefault&&Po(pe.preventDefault)&&pe.preventDefault(),pe&&pe.stopPropagation&&Po(pe.stopPropagation)&&pe.stopPropagation(),ut().catch(function(ze){console.warn("Warning: An unhandled error was caught from submitForm()",ze)})}),bt={resetForm:be,validateForm:te,validateField:we,setErrors:ie,setFieldError:J,setFieldTouched:Be,setFieldValue:he,setStatus:Ke,setSubmitting:He,setTouched:H,setValues:G,setFormikState:ke,submitForm:ut},gt=Ao(function(){return g(L.values,bt)}),Ut=Ao(function(pe){pe&&pe.preventDefault&&Po(pe.preventDefault)&&pe.preventDefault(),pe&&pe.stopPropagation&&Po(pe.stopPropagation)&&pe.stopPropagation(),be()}),Gt=T.useCallback(function(pe){return{value:Ya(L.values,pe),error:Ya(L.errors,pe),touched:!!Ya(L.touched,pe),initialValue:Ya(v.current,pe),initialTouched:!!Ya(E.current,pe),initialError:Ya(C.current,pe)}},[L.errors,L.touched,L.values]),Tt=T.useCallback(function(pe){return{setValue:function(Ge,Qe){return he(pe,Ge,Qe)},setTouched:function(Ge,Qe){return Be(pe,Ge,Qe)},setError:function(Ge){return J(pe,Ge)}}},[he,Be,J]),en=T.useCallback(function(pe){var ze=gS(pe),Ge=ze?pe.name:pe,Qe=Ya(L.values,Ge),ht={name:Ge,value:Qe,onChange:Ce,onBlur:tt};if(ze){var j=pe.type,A=pe.value,M=pe.as,Q=pe.multiple;j==="checkbox"?A===void 0?ht.checked=!!Qe:(ht.checked=!!(Array.isArray(Qe)&&~Qe.indexOf(A)),ht.value=A):j==="radio"?(ht.checked=Qe===A,ht.value=A):M==="select"&&Q&&(ht.value=ht.value||[],ht.multiple=!0)}return ht},[tt,Ce,L.values]),xn=T.useMemo(function(){return!pp(v.current,L.values)},[v.current,L.values]),Dt=T.useMemo(function(){return typeof l<"u"?xn?L.errors&&Object.keys(L.errors).length===0:l!==!1&&Po(l)?l(w):l:L.errors&&Object.keys(L.errors).length===0},[l,xn,L.errors,w]),Pt=Qr({},L,{initialValues:v.current,initialErrors:C.current,initialTouched:E.current,initialStatus:$.current,handleBlur:tt,handleChange:Ce,handleReset:Ut,handleSubmit:pt,resetForm:be,setErrors:ie,setFormikState:ke,setFieldTouched:Be,setFieldValue:he,setFieldError:J,setStatus:Ke,setSubmitting:He,setTouched:H,setValues:G,submitForm:ut,validateForm:te,validateField:we,isValid:Dt,dirty:xn,unregisterField:V,registerField:B,getFieldProps:en,getFieldMeta:Gt,getFieldHelpers:Tt,validateOnBlur:i,validateOnChange:n,validateOnMount:u});return Pt}function FB(t){var e=Nl(t),n=t.component,r=t.children,i=t.render,o=t.innerRef;return T.useImperativeHandle(o,function(){return e}),T.createElement(IB,{value:e},n?T.createElement(n,e):i?i(e):r?Po(r)?r(e):kB(r)?null:T.Children.only(r):null)}function LB(t){var e={};if(t.inner){if(t.inner.length===0)return Np(e,t.path,t.message);for(var i=t.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var o;if(n){if(r>=i.length)break;o=i[r++]}else{if(r=i.next(),r.done)break;o=r.value}var u=o;Ya(e,u.path)||(e=Np(e,u.path,u.message))}}return e}function UB(t,e,n,r){n===void 0&&(n=!1);var i=AE(t);return e[n?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function AE(t){var e=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=String(n);Array.isArray(t[r])===!0?e[r]=t[r].map(function(i){return Array.isArray(i)===!0||m4(i)?AE(i):i!==""?i:void 0}):m4(t[r])?e[r]=AE(t[r]):e[r]=t[r]!==""?t[r]:void 0}return e}function jB(t,e,n){var r=t.slice();return e.forEach(function(o,u){if(typeof r[u]>"u"){var l=n.clone!==!1,d=l&&n.isMergeableObject(o);r[u]=d?EE(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[u]=EE(t[u],o,n):t.indexOf(o)===-1&&r.push(o)}),r}function BB(t){return Array.from(t).filter(function(e){return e.selected}).map(function(e){return e.value})}function qB(t,e,n){if(typeof t=="boolean")return!!e;var r=[],i=!1,o=-1;if(Array.isArray(t))r=t,o=t.indexOf(n),i=o>=0;else if(!n||n=="true"||n=="false")return!!e;return e&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}var HB=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?T.useLayoutEffect:T.useEffect;function Ao(t){var e=T.useRef(t);return HB(function(){e.current=t}),T.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i(t.NewEntity="new_entity",t.SidebarToggle="sidebarToggle",t.NewChildEntity="new_child_entity",t.EditEntity="edit_entity",t.ViewQuestions="view_questions",t.ExportTable="export_table",t.CommonBack="common_back",t.StopStart="StopStart",t.Delete="delete",t.Select1Index="select1_index",t.Select2Index="select2_index",t.Select3Index="select3_index",t.Select4Index="select4_index",t.Select5Index="select5_index",t.Select6Index="select6_index",t.Select7Index="select7_index",t.Select8Index="select8_index",t.Select9Index="select9_index",t.ToggleLock="l",t))(jn||{});function VB(t,e){const n=Sr.flatMapDeep(e,(r,i,o)=>{let u=[],l=i;if(r&&typeof r=="object"&&!r.value){const d=Object.keys(r);if(d.length)for(let h of d)u.push({name:`${l}.${h}`,filter:r[h]})}else u.push({name:l,filter:r});return u});return t.filter((r,i)=>{for(let o of n){const u=Sr.get(r,o.name);if(u)switch(o.filter.operation){case"equal":if(u!==o.filter.value)return!1;break;case"contains":if(!u.includes(o.filter.value))return!1;break;case"notContains":if(u.includes(o.filter.value))return!1;break;case"endsWith":if(!u.endsWith(o.filter.value))return!1;break;case"startsWith":if(!u.startsWith(o.filter.value))return!1;break;case"greaterThan":if(uo.filter.value)return!1;break;case"lessThanOrEqual":if(u>=o.filter.value)return!1;break;case"notEqual":if(u===o.filter.value)return!1;break}}return!0})}async function qo(t,e,n){let r=t.toString(),i=e||{},o,u=fetch;return n&&([r,i]=await n.apply(r,i),n.fetchOverrideFn&&(u=n.fetchOverrideFn)),o=await u(r,i),n&&(o=await n.handle(o)),o}function GB(t){return typeof t=="function"&&t.prototype&&t.prototype.constructor===t}async function Ho(t,e,n,r){const i=t.headers.get("content-type")||"",o=t.headers.get("content-disposition")||"";if(i.includes("text/event-stream"))return WB(t,n,r);if(o.includes("attachment")||!i.includes("json")&&!i.startsWith("text/"))t.result=t.body;else if(i.includes("application/json")){const u=await t.json();e?GB(e)?t.result=new e(u):t.result=e(u):t.result=u}else t.result=await t.text();return{done:Promise.resolve(),response:t}}const WB=(t,e,n)=>{if(!t.body)throw new Error("SSE requires readable body");const r=t.body.getReader(),i=new TextDecoder;let o="";const u=new Promise((l,d)=>{function h(){r.read().then(({done:g,value:y})=>{if(n!=null&&n.aborted)return r.cancel(),l();if(g)return l();o+=i.decode(y,{stream:!0});const w=o.split(` + */var e_;function jB(){if(e_)return En;e_=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,g=t?Symbol.for("react.forward_ref"):60112,y=t?Symbol.for("react.suspense"):60113,w=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,C=t?Symbol.for("react.lazy"):60116,E=t?Symbol.for("react.block"):60121,$=t?Symbol.for("react.fundamental"):60117,O=t?Symbol.for("react.responder"):60118,_=t?Symbol.for("react.scope"):60119;function R(P){if(typeof P=="object"&&P!==null){var L=P.$$typeof;switch(L){case e:switch(P=P.type,P){case d:case h:case r:case o:case i:case y:return P;default:switch(P=P&&P.$$typeof,P){case l:case g:case C:case v:case u:return P;default:return L}}case n:return L}}}function k(P){return R(P)===h}return En.AsyncMode=d,En.ConcurrentMode=h,En.ContextConsumer=l,En.ContextProvider=u,En.Element=e,En.ForwardRef=g,En.Fragment=r,En.Lazy=C,En.Memo=v,En.Portal=n,En.Profiler=o,En.StrictMode=i,En.Suspense=y,En.isAsyncMode=function(P){return k(P)||R(P)===d},En.isConcurrentMode=k,En.isContextConsumer=function(P){return R(P)===l},En.isContextProvider=function(P){return R(P)===u},En.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===e},En.isForwardRef=function(P){return R(P)===g},En.isFragment=function(P){return R(P)===r},En.isLazy=function(P){return R(P)===C},En.isMemo=function(P){return R(P)===v},En.isPortal=function(P){return R(P)===n},En.isProfiler=function(P){return R(P)===o},En.isStrictMode=function(P){return R(P)===i},En.isSuspense=function(P){return R(P)===y},En.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===h||P===o||P===i||P===y||P===w||typeof P=="object"&&P!==null&&(P.$$typeof===C||P.$$typeof===v||P.$$typeof===u||P.$$typeof===l||P.$$typeof===g||P.$$typeof===$||P.$$typeof===O||P.$$typeof===_||P.$$typeof===E)},En.typeOf=R,En}var t_;function BB(){return t_||(t_=1,CC.exports=jB()),CC.exports}var $C,n_;function qB(){if(n_)return $C;n_=1;var t=BB(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[t.ForwardRef]=r,o[t.Memo]=i;function u(C){return t.isMemo(C)?i:o[C.$$typeof]||e}var l=Object.defineProperty,d=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,w=Object.prototype;function v(C,E,$){if(typeof E!="string"){if(w){var O=y(E);O&&O!==w&&v(C,O,$)}var _=d(E);h&&(_=_.concat(h(E)));for(var R=u(C),k=u(E),P=0;P<_.length;++P){var L=_[P];if(!n[L]&&!($&&$[L])&&!(k&&k[L])&&!(R&&R[L])){var F=g(E,L);try{l(C,L,F)}catch{}}}}return C}return $C=v,$C}var HB=qB();const zB=Mf(HB);function Yr(){return Yr=Object.assign||function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}var OS=T.createContext(void 0);OS.displayName="FormikContext";var VB=OS.Provider;OS.Consumer;function GB(){var t=T.useContext(OS);return t}var Do=function(e){return typeof e=="function"},TS=function(e){return e!==null&&typeof e=="object"},WB=function(e){return String(Math.floor(Number(e)))===e},EC=function(e){return Object.prototype.toString.call(e)==="[object String]"},KB=function(e){return T.Children.count(e)===0},xC=function(e){return TS(e)&&Do(e.then)};function Qa(t,e,n,r){r===void 0&&(r=0);for(var i=nI(e);t&&r=0?[]:{}}}return(o===0?t:i)[u[o]]===n?t:(n===void 0?delete i[u[o]]:i[u[o]]=n,o===0&&n===void 0&&delete r[u[o]],r)}function iI(t,e,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,o=Object.keys(t);i0?ze.map(function(Je){return X(Je,Qa(pe,Je))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(Ge).then(function(Je){return Je.reduce(function(ht,j,A){return j==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||j&&(ht=jp(ht,ze[A],j)),ht},{})})},[X]),me=T.useCallback(function(pe){return Promise.all([ue(pe),w.validationSchema?Y(pe):{},w.validate?q(pe):{}]).then(function(ze){var Ge=ze[0],Je=ze[1],ht=ze[2],j=FE.all([Ge,Je,ht],{arrayMerge:ZB});return j})},[w.validate,w.validationSchema,ue,q,Y]),te=Mo(function(pe){return pe===void 0&&(pe=L.values),F({type:"SET_ISVALIDATING",payload:!0}),me(pe).then(function(ze){return O.current&&(F({type:"SET_ISVALIDATING",payload:!1}),F({type:"SET_ERRORS",payload:ze})),ze})});T.useEffect(function(){u&&O.current===!0&&wp(v.current,w.initialValues)&&te(v.current)},[u,te]);var be=T.useCallback(function(pe){var ze=pe&&pe.values?pe.values:v.current,Ge=pe&&pe.errors?pe.errors:C.current?C.current:w.initialErrors||{},Je=pe&&pe.touched?pe.touched:E.current?E.current:w.initialTouched||{},ht=pe&&pe.status?pe.status:$.current?$.current:w.initialStatus;v.current=ze,C.current=Ge,E.current=Je,$.current=ht;var j=function(){F({type:"RESET_FORM",payload:{isSubmitting:!!pe&&!!pe.isSubmitting,errors:Ge,touched:Je,status:ht,values:ze,isValidating:!!pe&&!!pe.isValidating,submitCount:pe&&pe.submitCount&&typeof pe.submitCount=="number"?pe.submitCount:0}})};if(w.onReset){var A=w.onReset(L.values,bt);xC(A)?A.then(j):j()}else j()},[w.initialErrors,w.initialStatus,w.initialTouched,w.onReset]);T.useEffect(function(){O.current===!0&&!wp(v.current,w.initialValues)&&h&&(v.current=w.initialValues,be(),u&&te(v.current))},[h,w.initialValues,be,u,te]),T.useEffect(function(){h&&O.current===!0&&!wp(C.current,w.initialErrors)&&(C.current=w.initialErrors||th,F({type:"SET_ERRORS",payload:w.initialErrors||th}))},[h,w.initialErrors]),T.useEffect(function(){h&&O.current===!0&&!wp(E.current,w.initialTouched)&&(E.current=w.initialTouched||V2,F({type:"SET_TOUCHED",payload:w.initialTouched||V2}))},[h,w.initialTouched]),T.useEffect(function(){h&&O.current===!0&&!wp($.current,w.initialStatus)&&($.current=w.initialStatus,F({type:"SET_STATUS",payload:w.initialStatus}))},[h,w.initialStatus,w.initialTouched]);var we=Mo(function(pe){if(_.current[pe]&&Do(_.current[pe].validate)){var ze=Qa(L.values,pe),Ge=_.current[pe].validate(ze);return xC(Ge)?(F({type:"SET_ISVALIDATING",payload:!0}),Ge.then(function(Je){return Je}).then(function(Je){F({type:"SET_FIELD_ERROR",payload:{field:pe,value:Je}}),F({type:"SET_ISVALIDATING",payload:!1})})):(F({type:"SET_FIELD_ERROR",payload:{field:pe,value:Ge}}),Promise.resolve(Ge))}else if(w.validationSchema)return F({type:"SET_ISVALIDATING",payload:!0}),Y(L.values,pe).then(function(Je){return Je}).then(function(Je){F({type:"SET_FIELD_ERROR",payload:{field:pe,value:Qa(Je,pe)}}),F({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),B=T.useCallback(function(pe,ze){var Ge=ze.validate;_.current[pe]={validate:Ge}},[]),V=T.useCallback(function(pe){delete _.current[pe]},[]),H=Mo(function(pe,ze){F({type:"SET_TOUCHED",payload:pe});var Ge=ze===void 0?i:ze;return Ge?te(L.values):Promise.resolve()}),ie=T.useCallback(function(pe){F({type:"SET_ERRORS",payload:pe})},[]),G=Mo(function(pe,ze){var Ge=Do(pe)?pe(L.values):pe;F({type:"SET_VALUES",payload:Ge});var Je=ze===void 0?n:ze;return Je?te(Ge):Promise.resolve()}),Q=T.useCallback(function(pe,ze){F({type:"SET_FIELD_ERROR",payload:{field:pe,value:ze}})},[]),he=Mo(function(pe,ze,Ge){F({type:"SET_FIELD_VALUE",payload:{field:pe,value:ze}});var Je=Ge===void 0?n:Ge;return Je?te(jp(L.values,pe,ze)):Promise.resolve()}),$e=T.useCallback(function(pe,ze){var Ge=ze,Je=pe,ht;if(!EC(pe)){pe.persist&&pe.persist();var j=pe.target?pe.target:pe.currentTarget,A=j.type,M=j.name,J=j.id,re=j.value,ge=j.checked;j.outerHTML;var Ee=j.options,rt=j.multiple;Ge=ze||M||J,Je=/number|range/.test(A)?(ht=parseFloat(re),isNaN(ht)?"":ht):/checkbox/.test(A)?tq(Qa(L.values,Ge),ge,re):Ee&&rt?eq(Ee):re}Ge&&he(Ge,Je)},[he,L.values]),Ce=Mo(function(pe){if(EC(pe))return function(ze){return $e(ze,pe)};$e(pe)}),Be=Mo(function(pe,ze,Ge){ze===void 0&&(ze=!0),F({type:"SET_FIELD_TOUCHED",payload:{field:pe,value:ze}});var Je=Ge===void 0?i:Ge;return Je?te(L.values):Promise.resolve()}),Ie=T.useCallback(function(pe,ze){pe.persist&&pe.persist();var Ge=pe.target,Je=Ge.name,ht=Ge.id;Ge.outerHTML;var j=ze||Je||ht;Be(j,!0)},[Be]),tt=Mo(function(pe){if(EC(pe))return function(ze){return Ie(ze,pe)};Ie(pe)}),ke=T.useCallback(function(pe){Do(pe)?F({type:"SET_FORMIK_STATE",payload:pe}):F({type:"SET_FORMIK_STATE",payload:function(){return pe}})},[]),Ke=T.useCallback(function(pe){F({type:"SET_STATUS",payload:pe})},[]),He=T.useCallback(function(pe){F({type:"SET_ISSUBMITTING",payload:pe})},[]),ut=Mo(function(){return F({type:"SUBMIT_ATTEMPT"}),te().then(function(pe){var ze=pe instanceof Error,Ge=!ze&&Object.keys(pe).length===0;if(Ge){var Je;try{if(Je=gt(),Je===void 0)return}catch(ht){throw ht}return Promise.resolve(Je).then(function(ht){return O.current&&F({type:"SUBMIT_SUCCESS"}),ht}).catch(function(ht){if(O.current)throw F({type:"SUBMIT_FAILURE"}),ht})}else if(O.current&&(F({type:"SUBMIT_FAILURE"}),ze))throw pe})}),pt=Mo(function(pe){pe&&pe.preventDefault&&Do(pe.preventDefault)&&pe.preventDefault(),pe&&pe.stopPropagation&&Do(pe.stopPropagation)&&pe.stopPropagation(),ut().catch(function(ze){console.warn("Warning: An unhandled error was caught from submitForm()",ze)})}),bt={resetForm:be,validateForm:te,validateField:we,setErrors:ie,setFieldError:Q,setFieldTouched:Be,setFieldValue:he,setStatus:Ke,setSubmitting:He,setTouched:H,setValues:G,setFormikState:ke,submitForm:ut},gt=Mo(function(){return g(L.values,bt)}),Ut=Mo(function(pe){pe&&pe.preventDefault&&Do(pe.preventDefault)&&pe.preventDefault(),pe&&pe.stopPropagation&&Do(pe.stopPropagation)&&pe.stopPropagation(),be()}),Gt=T.useCallback(function(pe){return{value:Qa(L.values,pe),error:Qa(L.errors,pe),touched:!!Qa(L.touched,pe),initialValue:Qa(v.current,pe),initialTouched:!!Qa(E.current,pe),initialError:Qa(C.current,pe)}},[L.errors,L.touched,L.values]),Tt=T.useCallback(function(pe){return{setValue:function(Ge,Je){return he(pe,Ge,Je)},setTouched:function(Ge,Je){return Be(pe,Ge,Je)},setError:function(Ge){return Q(pe,Ge)}}},[he,Be,Q]),en=T.useCallback(function(pe){var ze=TS(pe),Ge=ze?pe.name:pe,Je=Qa(L.values,Ge),ht={name:Ge,value:Je,onChange:Ce,onBlur:tt};if(ze){var j=pe.type,A=pe.value,M=pe.as,J=pe.multiple;j==="checkbox"?A===void 0?ht.checked=!!Je:(ht.checked=!!(Array.isArray(Je)&&~Je.indexOf(A)),ht.value=A):j==="radio"?(ht.checked=Je===A,ht.value=A):M==="select"&&J&&(ht.value=ht.value||[],ht.multiple=!0)}return ht},[tt,Ce,L.values]),xn=T.useMemo(function(){return!wp(v.current,L.values)},[v.current,L.values]),Dt=T.useMemo(function(){return typeof l<"u"?xn?L.errors&&Object.keys(L.errors).length===0:l!==!1&&Do(l)?l(w):l:L.errors&&Object.keys(L.errors).length===0},[l,xn,L.errors,w]),Pt=Yr({},L,{initialValues:v.current,initialErrors:C.current,initialTouched:E.current,initialStatus:$.current,handleBlur:tt,handleChange:Ce,handleReset:Ut,handleSubmit:pt,resetForm:be,setErrors:ie,setFormikState:ke,setFieldTouched:Be,setFieldValue:he,setFieldError:Q,setStatus:Ke,setSubmitting:He,setTouched:H,setValues:G,submitForm:ut,validateForm:te,validateField:we,isValid:Dt,dirty:xn,unregisterField:V,registerField:B,getFieldProps:en,getFieldMeta:Gt,getFieldHelpers:Tt,validateOnBlur:i,validateOnChange:n,validateOnMount:u});return Pt}function JB(t){var e=Dl(t),n=t.component,r=t.children,i=t.render,o=t.innerRef;return T.useImperativeHandle(o,function(){return e}),T.createElement(VB,{value:e},n?T.createElement(n,e):i?i(e):r?Do(r)?r(e):KB(r)?null:T.Children.only(r):null)}function QB(t){var e={};if(t.inner){if(t.inner.length===0)return jp(e,t.path,t.message);for(var i=t.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var o;if(n){if(r>=i.length)break;o=i[r++]}else{if(r=i.next(),r.done)break;o=r.value}var u=o;Qa(e,u.path)||(e=jp(e,u.path,u.message))}}return e}function XB(t,e,n,r){n===void 0&&(n=!1);var i=qE(t);return e[n?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function qE(t){var e=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=String(n);Array.isArray(t[r])===!0?e[r]=t[r].map(function(i){return Array.isArray(i)===!0||_4(i)?qE(i):i!==""?i:void 0}):_4(t[r])?e[r]=qE(t[r]):e[r]=t[r]!==""?t[r]:void 0}return e}function ZB(t,e,n){var r=t.slice();return e.forEach(function(o,u){if(typeof r[u]>"u"){var l=n.clone!==!1,d=l&&n.isMergeableObject(o);r[u]=d?FE(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[u]=FE(t[u],o,n):t.indexOf(o)===-1&&r.push(o)}),r}function eq(t){return Array.from(t).filter(function(e){return e.selected}).map(function(e){return e.value})}function tq(t,e,n){if(typeof t=="boolean")return!!e;var r=[],i=!1,o=-1;if(Array.isArray(t))r=t,o=t.indexOf(n),i=o>=0;else if(!n||n=="true"||n=="false")return!!e;return e&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}var nq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?T.useLayoutEffect:T.useEffect;function Mo(t){var e=T.useRef(t);return nq(function(){e.current=t}),T.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i(t.NewEntity="new_entity",t.SidebarToggle="sidebarToggle",t.NewChildEntity="new_child_entity",t.EditEntity="edit_entity",t.ViewQuestions="view_questions",t.ExportTable="export_table",t.CommonBack="common_back",t.StopStart="StopStart",t.Delete="delete",t.Select1Index="select1_index",t.Select2Index="select2_index",t.Select3Index="select3_index",t.Select4Index="select4_index",t.Select5Index="select5_index",t.Select6Index="select6_index",t.Select7Index="select7_index",t.Select8Index="select8_index",t.Select9Index="select9_index",t.ToggleLock="l",t))(Bn||{});function iq(t,e){const n=Sr.flatMapDeep(e,(r,i,o)=>{let u=[],l=i;if(r&&typeof r=="object"&&!r.value){const d=Object.keys(r);if(d.length)for(let h of d)u.push({name:`${l}.${h}`,filter:r[h]})}else u.push({name:l,filter:r});return u});return t.filter((r,i)=>{for(let o of n){const u=Sr.get(r,o.name);if(u)switch(o.filter.operation){case"equal":if(u!==o.filter.value)return!1;break;case"contains":if(!u.includes(o.filter.value))return!1;break;case"notContains":if(u.includes(o.filter.value))return!1;break;case"endsWith":if(!u.endsWith(o.filter.value))return!1;break;case"startsWith":if(!u.startsWith(o.filter.value))return!1;break;case"greaterThan":if(uo.filter.value)return!1;break;case"lessThanOrEqual":if(u>=o.filter.value)return!1;break;case"notEqual":if(u===o.filter.value)return!1;break}}return!0})}async function io(t,e,n){let r=t.toString(),i=e||{},o,u=fetch;return n&&([r,i]=await n.apply(r,i),n.fetchOverrideFn&&(u=n.fetchOverrideFn)),o=await u(r,i),n&&(o=await n.handle(o)),o}function aq(t){return typeof t=="function"&&t.prototype&&t.prototype.constructor===t}async function ao(t,e,n,r){const i=t.headers.get("content-type")||"",o=t.headers.get("content-disposition")||"";if(i.includes("text/event-stream"))return oq(t,n,r);if(o.includes("attachment")||!i.includes("json")&&!i.startsWith("text/"))t.result=t.body;else if(i.includes("application/json")){const u=await t.json();e?aq(e)?t.result=new e(u):t.result=e(u):t.result=u}else t.result=await t.text();return{done:Promise.resolve(),response:t}}const oq=(t,e,n)=>{if(!t.body)throw new Error("SSE requires readable body");const r=t.body.getReader(),i=new TextDecoder;let o="";const u=new Promise((l,d)=>{function h(){r.read().then(({done:g,value:y})=>{if(n!=null&&n.aborted)return r.cancel(),l();if(g)return l();o+=i.decode(y,{stream:!0});const w=o.split(` `);o=w.pop()||"";for(const v of w){let C="",E="message";if(v.split(` -`).forEach($=>{$.startsWith("data:")?C+=$.slice(5).trim():$.startsWith("event:")&&(E=$.slice(6).trim())}),C){if(C==="[DONE]")return l();e==null||e(new MessageEvent(E,{data:C}))}}h()}).catch(g=>{g.name==="AbortError"?l():d(g)})}h()});return{response:t,done:u}};class mO{constructor(e="",n={},r,i,o=null){this.baseUrl=e,this.defaultHeaders=n,this.requestInterceptor=r,this.responseInterceptor=i,this.fetchOverrideFn=o}async apply(e,n){return/^https?:\/\//.test(e)||(e=this.baseUrl+e),n.headers={...this.defaultHeaders,...n.headers||{}},this.requestInterceptor?this.requestInterceptor(e,n):[e,n]}async handle(e){return this.responseInterceptor?this.responseInterceptor(e):e}clone(e){return new mO((e==null?void 0:e.baseUrl)??this.baseUrl,{...this.defaultHeaders,...(e==null?void 0:e.defaultHeaders)||{}},(e==null?void 0:e.requestInterceptor)??this.requestInterceptor,(e==null?void 0:e.responseInterceptor)??this.responseInterceptor)}}var KB={VITE_REMOTE_SERVICE:"/",PUBLIC_URL:"/selfservice/",VITE_DEFAULT_ROUTE:"/{locale}/passports",VITE_SUPPORTED_LANGUAGES:"fa,en"};const i0=KB,Si={REMOTE_SERVICE:i0.VITE_REMOTE_SERVICE,PUBLIC_URL:i0.PUBLIC_URL,DEFAULT_ROUTE:i0.VITE_DEFAULT_ROUTE,SUPPORTED_LANGUAGES:i0.VITE_SUPPORTED_LANGUAGES,FORCED_LOCALE:i0.VITE_FORCED_LOCALE};var Zd={},Fc={},pg={},z4;function YB(){if(z4)return pg;z4=1,pg.__esModule=!0,pg.getAllMatches=t,pg.escapeRegExp=e,pg.escapeSource=n;function t(r,i){for(var o=void 0,u=[];o=r.exec(i);)u.push(o);return u}function e(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function n(r){return e(r).replace(/\/+/g,"/+")}return pg}var vu={},V4;function QB(){if(V4)return vu;V4=1,vu.__esModule=!0,vu.string=t,vu.greedySplat=e,vu.splat=n,vu.any=r,vu.int=i,vu.uuid=o,vu.createRule=u;function t(){var l=arguments.length<=0||arguments[0]===void 0?{}:arguments[0],d=l.maxLength,h=l.minLength,g=l.length;return u({validate:function(w){return!(d&&w.length>d||h&&w.lengthd||h&&v=q.length)break;Y=q[F++]}else{if(F=q.next(),F.done)break;Y=F.value}var X=Y[0],ue=Y[1],me=void 0;ue?me=$[ue]||n.string():X=="**"?(me=n.greedySplat(),ue="splat"):X=="*"?(me=n.splat(),ue="splat"):X==="("?k+="(?:":X===")"?k+=")?":k+=e.escapeSource(X),ue&&(k+=me.regex,R.push({paramName:ue,rule:me})),_.push(X)}var te=_[_.length-1]!=="*",be=te?"":"$";return k=new RegExp("^"+k+"/*"+be,"i"),{tokens:_,regexpSource:k,params:R,paramNames:R.map(function(we){return we.paramName})}}function d(C,E){return C.every(function($,O){return E[O].rule.validate($)})}function h(C){return typeof C=="string"&&(C={pattern:C,rules:{}}),i.default(C.pattern,"you cannot use an empty route pattern"),C.rules=C.rules||{},C}function g(C){return C=h(C),o[C.pattern]||(o[C.pattern]=l(C)),o[C.pattern]}function y(C,E){E.charAt(0)!=="/"&&(E="/"+E);var $=g(C),O=$.regexpSource,_=$.params,R=$.paramNames,k=E.match(O);if(k!=null){var P=E.slice(k[0].length);if(!(P[0]=="/"||k[0][k[0].length])){var L=k.slice(1).map(function(F){return F!=null?decodeURIComponent(F):F});if(d(L,_))return L=L.map(function(F,q){return _[q].rule.convert(F)}),{remainingPathname:P,paramValues:L,paramNames:R}}}}function w(C,E){E=E||{};for(var $=g(C),O=$.tokens,_=0,R="",k=0,P=void 0,L=void 0,F=void 0,q=0,Y=O.length;q0,'Missing splat #%s for path "%s"',k,C.pattern),F!=null&&(R+=encodeURI(F))):P==="("?_+=1:P===")"?_-=1:P.charAt(0)===":"?(L=P.substring(1),F=E[L],i.default(F!=null||_>0,'Missing "%s" parameter for path "%s"',L,C.pattern),F!=null&&(R+=encodeURIComponent(F))):R+=P;return R.replace(/\/+/g,"/")}function v(C,E){var $=y(C,E)||{},O=$.paramNames,_=$.paramValues,R=[];if(!O)return null;for(var k=0;k1&&arguments[1]!==void 0?arguments[1]:null,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(nq(this,e),r=rq(this,e,[n]),r.originalRequest=o,r.originalResponse=u,r.causingError=i,i!=null&&(n+=", caused by ".concat(i.toString())),o!=null){var l=o.getHeader("X-Request-ID")||"n/a",d=o.getMethod(),h=o.getURL(),g=u?u.getStatus():"n/a",y=u?u.getBody()||"":"n/a";n+=", originated from request (method: ".concat(d,", url: ").concat(h,", response code: ").concat(g,", response text: ").concat(y,", request id: ").concat(l,")")}return r.message=n,r}return oq(e,t),tq(e)})(PE(Error));function W0(t){"@babel/helpers - typeof";return W0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W0(t)}function lq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cq(t,e){for(var n=0;n{let e={};return t.forEach((n,r)=>e[n]=r),e})(O0),yq=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,bi=String.fromCharCode.bind(String),J4=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),W9=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),K9=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),Y9=t=>{let e,n,r,i,o="";const u=t.length%3;for(let l=0;l255||(r=t.charCodeAt(l++))>255||(i=t.charCodeAt(l++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,o+=O0[e>>18&63]+O0[e>>12&63]+O0[e>>6&63]+O0[e&63]}return u?o.slice(0,u-3)+"===".substring(u):o},yO=typeof btoa=="function"?t=>btoa(t):Zg?t=>Buffer.from(t,"binary").toString("base64"):Y9,IE=Zg?t=>Buffer.from(t).toString("base64"):t=>{let n=[];for(let r=0,i=t.length;re?W9(IE(t)):IE(t),vq=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?bi(192|e>>>6)+bi(128|e&63):bi(224|e>>>12&15)+bi(128|e>>>6&63)+bi(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return bi(240|e>>>18&7)+bi(128|e>>>12&63)+bi(128|e>>>6&63)+bi(128|e&63)}},bq=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Q9=t=>t.replace(bq,vq),X4=Zg?t=>Buffer.from(t,"utf8").toString("base64"):Q4?t=>IE(Q4.encode(t)):t=>yO(Q9(t)),Dg=(t,e=!1)=>e?W9(X4(t)):X4(t),Z4=t=>Dg(t,!0),wq=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Sq=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),n=e-65536;return bi((n>>>10)+55296)+bi((n&1023)+56320);case 3:return bi((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return bi((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},J9=t=>t.replace(wq,Sq),X9=t=>{if(t=t.replace(/\s+/g,""),!yq.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,n="",r,i;for(let o=0;o>16&255):i===64?bi(e>>16&255,e>>8&255):bi(e>>16&255,e>>8&255,e&255);return n},vO=typeof atob=="function"?t=>atob(K9(t)):Zg?t=>Buffer.from(t,"base64").toString("binary"):X9,Z9=Zg?t=>J4(Buffer.from(t,"base64")):t=>J4(vO(t).split("").map(e=>e.charCodeAt(0))),eI=t=>Z9(tI(t)),Cq=Zg?t=>Buffer.from(t,"base64").toString("utf8"):Y4?t=>Y4.decode(Z9(t)):t=>J9(vO(t)),tI=t=>K9(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),NE=t=>Cq(tI(t)),$q=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},nI=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),rI=function(){const t=(e,n)=>Object.defineProperty(String.prototype,e,nI(n));t("fromBase64",function(){return NE(this)}),t("toBase64",function(e){return Dg(this,e)}),t("toBase64URI",function(){return Dg(this,!0)}),t("toBase64URL",function(){return Dg(this,!0)}),t("toUint8Array",function(){return eI(this)})},iI=function(){const t=(e,n)=>Object.defineProperty(Uint8Array.prototype,e,nI(n));t("toBase64",function(e){return cw(this,e)}),t("toBase64URI",function(){return cw(this,!0)}),t("toBase64URL",function(){return cw(this,!0)})},Eq=()=>{rI(),iI()},xq={version:G9,VERSION:mq,atob:vO,atobPolyfill:X9,btoa:yO,btoaPolyfill:Y9,fromBase64:NE,toBase64:Dg,encode:Dg,encodeURI:Z4,encodeURL:Z4,utob:Q9,btou:J9,decode:NE,isValid:$q,fromUint8Array:cw,toUint8Array:eI,extendString:rI,extendUint8Array:iI,extendBuiltins:Eq};var gC,e_;function Oq(){return e_||(e_=1,gC=function(e,n){if(n=n.split(":")[0],e=+e,!e)return!1;switch(n){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}),gC}var F2={},t_;function Tq(){if(t_)return F2;t_=1;var t=Object.prototype.hasOwnProperty,e;function n(u){try{return decodeURIComponent(u.replace(/\+/g," "))}catch{return null}}function r(u){try{return encodeURIComponent(u)}catch{return null}}function i(u){for(var l=/([^=?#&]+)=?([^&]*)/g,d={},h;h=l.exec(u);){var g=n(h[1]),y=n(h[2]);g===null||y===null||g in d||(d[g]=y)}return d}function o(u,l){l=l||"";var d=[],h,g;typeof l!="string"&&(l="?");for(g in u)if(t.call(u,g)){if(h=u[g],!h&&(h===null||h===e||isNaN(h))&&(h=""),g=r(g),h=r(h),g===null||h===null)continue;d.push(g+"="+h)}return d.length?l+d.join("&"):""}return F2.stringify=o,F2.parse=i,F2}var yC,n_;function _q(){if(n_)return yC;n_=1;var t=Oq(),e=Tq(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,o=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function d(_){return(_||"").toString().replace(n,"")}var h=[["#","hash"],["?","query"],function(R,k){return w(k.protocol)?R.replace(/\\/g,"/"):R},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],g={hash:1,query:1};function y(_){var R;typeof window<"u"?R=window:typeof Sf<"u"?R=Sf:typeof self<"u"?R=self:R={};var k=R.location||{};_=_||k;var P={},L=typeof _,F;if(_.protocol==="blob:")P=new E(unescape(_.pathname),{});else if(L==="string"){P=new E(_,{});for(F in g)delete P[F]}else if(L==="object"){for(F in _)F in g||(P[F]=_[F]);P.slashes===void 0&&(P.slashes=i.test(_.href))}return P}function w(_){return _==="file:"||_==="ftp:"||_==="http:"||_==="https:"||_==="ws:"||_==="wss:"}function v(_,R){_=d(_),_=_.replace(r,""),R=R||{};var k=u.exec(_),P=k[1]?k[1].toLowerCase():"",L=!!k[2],F=!!k[3],q=0,Y;return L?F?(Y=k[2]+k[3]+k[4],q=k[2].length+k[3].length):(Y=k[2]+k[4],q=k[2].length):F?(Y=k[3]+k[4],q=k[3].length):Y=k[4],P==="file:"?q>=2&&(Y=Y.slice(2)):w(P)?Y=k[4]:P?L&&(Y=Y.slice(2)):q>=2&&w(R.protocol)&&(Y=k[4]),{protocol:P,slashes:L||w(P),slashesCount:q,rest:Y}}function C(_,R){if(_==="")return R;for(var k=(R||"/").split("/").slice(0,-1).concat(_.split("/")),P=k.length,L=k[P-1],F=!1,q=0;P--;)k[P]==="."?k.splice(P,1):k[P]===".."?(k.splice(P,1),q++):q&&(P===0&&(F=!0),k.splice(P,1),q--);return F&&k.unshift(""),(L==="."||L==="..")&&k.push(""),k.join("/")}function E(_,R,k){if(_=d(_),_=_.replace(r,""),!(this instanceof E))return new E(_,R,k);var P,L,F,q,Y,X,ue=h.slice(),me=typeof R,te=this,be=0;for(me!=="object"&&me!=="string"&&(k=R,R=null),k&&typeof k!="function"&&(k=e.parse),R=y(R),L=v(_||"",R),P=!L.protocol&&!L.slashes,te.slashes=L.slashes||P&&R.slashes,te.protocol=L.protocol||R.protocol||"",_=L.rest,(L.protocol==="file:"&&(L.slashesCount!==2||l.test(_))||!L.slashes&&(L.protocol||L.slashesCount<2||!w(te.protocol)))&&(ue[3]=[/(.*)/,"pathname"]);be=0;--G){var J=this.tryEntries[G],he=J.completion;if(J.tryLoc==="root")return ie("end");if(J.tryLoc<=this.prev){var $e=r.call(J,"catchLoc"),Ce=r.call(J,"finallyLoc");if($e&&Ce){if(this.prev=0;--ie){var G=this.tryEntries[ie];if(G.tryLoc<=this.prev&&r.call(G,"finallyLoc")&&this.prev=0;--H){var ie=this.tryEntries[H];if(ie.finallyLoc===V)return this.complete(ie.completion,ie.afterLoc),te(ie),$}},catch:function(V){for(var H=this.tryEntries.length-1;H>=0;--H){var ie=this.tryEntries[H];if(ie.tryLoc===V){var G=ie.completion;if(G.type==="throw"){var J=G.arg;te(ie)}return J}}throw Error("illegal catch attempt")},delegateYield:function(V,H,ie){return this.delegate={iterator:we(V),resultName:H,nextLoc:ie},this.method==="next"&&(this.arg=t),$}},e}function r_(t,e,n,r,i,o,u){try{var l=t[o](u),d=l.value}catch(h){n(h);return}l.done?e(d):Promise.resolve(d).then(r,i)}function Iq(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function u(d){r_(o,r,i,u,l,"next",d)}function l(d){r_(o,r,i,u,l,"throw",d)}u(void 0)})}}function aI(t,e){return kq(t)||Mq(t,e)||oI(t,e)||Nq()}function Nq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mq(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,u,l=[],d=!0,h=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(d=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);d=!0);}catch(g){h=!0,i=g}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw i}}return l}}function kq(t){if(Array.isArray(t))return t}function Lp(t){"@babel/helpers - typeof";return Lp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lp(t)}function Dq(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=oI(t))||e){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(h){throw h},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,u=!1,l;return{s:function(){n=n.call(t)},n:function(){var h=n.next();return o=h.done,h},e:function(h){u=!0,l=h},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(u)throw l}}}}function oI(t,e){if(t){if(typeof t=="string")return i_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i_(t,e)}}function i_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1)for(var o=0,u=["uploadUrl","uploadSize","uploadLengthDeferred"];o1||n._parallelUploadUrls!=null?n._startParallelUpload():n._startSingleUpload()}).catch(function(d){n._emitError(d)})}},{key:"_startParallelUpload",value:function(){var n,r=this,i=this._size,o=0;this._parallelUploads=[];var u=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,l=(n=this.options.parallelUploadBoundaries)!==null&&n!==void 0?n:Hq(this._source.size,u);this._parallelUploadUrls&&l.forEach(function(g,y){g.uploadUrl=r._parallelUploadUrls[y]||null}),this._parallelUploadUrls=new Array(l.length);var d=l.map(function(g,y){var w=0;return r._source.slice(g.start,g.end).then(function(v){var C=v.value;return new Promise(function(E,$){var O=mg(mg({},r.options),{},{uploadUrl:g.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:r.options.metadataForPartialUploads,headers:mg(mg({},r.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:E,onError:$,onProgress:function(k){o=o-w+k,w=k,r._emitProgress(o,i)},onUploadUrlAvailable:function(){r._parallelUploadUrls[y]=_.url,r._parallelUploadUrls.filter(function(k){return!!k}).length===l.length&&r._saveUploadInUrlStorage()}}),_=new t(C,O);_.start(),r._parallelUploads.push(_)})})}),h;Promise.all(d).then(function(){h=r._openRequest("POST",r.options.endpoint),h.setHeader("Upload-Concat","final;".concat(r._parallelUploadUrls.join(" ")));var g=s_(r.options.metadata);return g!==""&&h.setHeader("Upload-Metadata",g),r._sendRequest(h,null)}).then(function(g){if(!Eg(g.getStatus(),200)){r._emitHttpError(h,g,"tus: unexpected response while creating upload");return}var y=g.getHeader("Location");if(y==null){r._emitHttpError(h,g,"tus: invalid or missing Location header");return}r.url=f_(r.options.endpoint,y),"Created upload at ".concat(r.url),r._emitSuccess(g)}).catch(function(g){r._emitError(g)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(n){var r=this;if(this._parallelUploads!=null){var i=Dq(this._parallelUploads),o;try{for(i.s();!(o=i.n()).done;){var u=o.value;u.abort(n)}}catch(l){i.e(l)}finally{i.f()}}return this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!n||this.url==null?Promise.resolve():t.terminate(this.url,this.options).then(function(){return r._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(n,r,i,o){this._emitError(new k2(i,o,n,r))}},{key:"_emitError",value:function(n){var r=this;if(!this._aborted){if(this.options.retryDelays!=null){var i=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(i&&(this._retryAttempt=0),c_(n,this._retryAttempt,this.options)){var o=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){r.start()},o);return}}if(typeof this.options.onError=="function")this.options.onError(n);else throw n}}},{key:"_emitSuccess",value:function(n){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess({lastResponse:n})}},{key:"_emitProgress",value:function(n,r){typeof this.options.onProgress=="function"&&this.options.onProgress(n,r)}},{key:"_emitChunkComplete",value:function(n,r,i){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(n,r,i)}},{key:"_createUpload",value:function(){var n=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var r=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?r.setHeader("Upload-Defer-Length","1"):r.setHeader("Upload-Length","".concat(this._size));var i=s_(this.options.metadata);i!==""&&r.setHeader("Upload-Metadata",i);var o;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,o=this._addChunkToRequest(r)):((this.options.protocol===dw||this.options.protocol===T0)&&r.setHeader("Upload-Complete","?0"),o=this._sendRequest(r,null)),o.then(function(u){if(!Eg(u.getStatus(),200)){n._emitHttpError(r,u,"tus: unexpected response while creating upload");return}var l=u.getHeader("Location");if(l==null){n._emitHttpError(r,u,"tus: invalid or missing Location header");return}if(n.url=f_(n.options.endpoint,l),"Created upload at ".concat(n.url),typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._size===0){n._emitSuccess(u),n._source.close();return}n._saveUploadInUrlStorage().then(function(){n.options.uploadDataDuringCreation?n._handleUploadResponse(r,u):(n._offset=0,n._performUpload())})}).catch(function(u){n._emitHttpError(r,null,"tus: failed to create upload",u)})}},{key:"_resumeUpload",value:function(){var n=this,r=this._openRequest("HEAD",this.url),i=this._sendRequest(r,null);i.then(function(o){var u=o.getStatus();if(!Eg(u,200)){if(u===423){n._emitHttpError(r,o,"tus: upload is currently locked; retry later");return}if(Eg(u,400)&&n._removeFromUrlStorage(),!n.options.endpoint){n._emitHttpError(r,o,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}n.url=null,n._createUpload();return}var l=Number.parseInt(o.getHeader("Upload-Offset"),10);if(Number.isNaN(l)){n._emitHttpError(r,o,"tus: invalid or missing offset value");return}var d=Number.parseInt(o.getHeader("Upload-Length"),10);if(Number.isNaN(d)&&!n.options.uploadLengthDeferred&&n.options.protocol===fw){n._emitHttpError(r,o,"tus: invalid or missing length value");return}typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._saveUploadInUrlStorage().then(function(){if(l===d){n._emitProgress(d,d),n._emitSuccess(o);return}n._offset=l,n._performUpload()})}).catch(function(o){n._emitHttpError(r,null,"tus: failed to resume upload",o)})}},{key:"_performUpload",value:function(){var n=this;if(!this._aborted){var r;this.options.overridePatchMethod?(r=this._openRequest("POST",this.url),r.setHeader("X-HTTP-Method-Override","PATCH")):r=this._openRequest("PATCH",this.url),r.setHeader("Upload-Offset","".concat(this._offset));var i=this._addChunkToRequest(r);i.then(function(o){if(!Eg(o.getStatus(),200)){n._emitHttpError(r,o,"tus: unexpected response while uploading chunk");return}n._handleUploadResponse(r,o)}).catch(function(o){n._aborted||n._emitHttpError(r,null,"tus: failed to upload chunk at offset ".concat(n._offset),o)})}}},{key:"_addChunkToRequest",value:function(n){var r=this,i=this._offset,o=this._offset+this.options.chunkSize;return n.setProgressHandler(function(u){r._emitProgress(i+u,r._size)}),this.options.protocol===fw?n.setHeader("Content-Type","application/offset+octet-stream"):this.options.protocol===T0&&n.setHeader("Content-Type","application/partial-upload"),(o===Number.POSITIVE_INFINITY||o>this._size)&&!this.options.uploadLengthDeferred&&(o=this._size),this._source.slice(i,o).then(function(u){var l=u.value,d=u.done,h=l!=null&&l.size?l.size:0;r.options.uploadLengthDeferred&&d&&(r._size=r._offset+h,n.setHeader("Upload-Length","".concat(r._size)));var g=r._offset+h;return!r.options.uploadLengthDeferred&&d&&g!==r._size?Promise.reject(new Error("upload was configured with a size of ".concat(r._size," bytes, but the source is done after ").concat(g," bytes"))):l===null?r._sendRequest(n):((r.options.protocol===dw||r.options.protocol===T0)&&n.setHeader("Upload-Complete",d?"?1":"?0"),r._emitProgress(r._offset,r._size),r._sendRequest(n,l))})}},{key:"_handleUploadResponse",value:function(n,r){var i=Number.parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(i)){this._emitHttpError(n,r,"tus: invalid or missing offset value");return}if(this._emitProgress(i,this._size),this._emitChunkComplete(i-this._offset,i,this._size),this._offset=i,i===this._size){this._emitSuccess(r),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(n,r){var i=u_(n,r,this.options);return this._req=i,i}},{key:"_removeFromUrlStorage",value:function(){var n=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(r){n._emitError(r)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var n=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var r={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?r.parallelUploadUrls=this._parallelUploadUrls:r.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,r).then(function(i){n._urlStorageKey=i})}},{key:"_sendRequest",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return l_(n,r,this.options)}}],[{key:"terminate",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=u_("DELETE",n,r);return l_(i,null,r).then(function(o){if(o.getStatus()!==204)throw new k2("tus: unexpected response while terminating upload",null,i,o)}).catch(function(o){if(o instanceof k2||(o=new k2("tus: failed to terminate upload",o,i,null)),!c_(o,0,r))throw o;var u=r.retryDelays[0],l=r.retryDelays.slice(1),d=mg(mg({},r),{},{retryDelays:l});return new Promise(function(h){return setTimeout(h,u)}).then(function(){return t.terminate(n,d)})})}}])})();function s_(t){return Object.entries(t).map(function(e){var n=aI(e,2),r=n[0],i=n[1];return"".concat(r," ").concat(xq.encode(String(i)))}).join(",")}function Eg(t,e){return t>=e&&t=n.retryDelays.length||t.originalRequest==null?!1:n&&typeof n.onShouldRetry=="function"?n.onShouldRetry(t,e,n):uI(t)}function uI(t){var e=t.originalResponse?t.originalResponse.getStatus():0;return(!Eg(e,400)||e===409||e===423)&&qq()}function f_(t,e){return new Rq(e,t).toString()}function Hq(t,e){for(var n=Math.floor(t/e),r=[],i=0;i=this.size;return Promise.resolve({value:i,done:o})}},{key:"close",value:function(){}}])})();function Y0(t){"@babel/helpers - typeof";return Y0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y0(t)}function Xq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zq(t,e){for(var n=0;nthis._bufferOffset&&(this._buffer=this._buffer.slice(n-this._bufferOffset),this._bufferOffset=n);var i=h_(this._buffer)===0;return this._done&&i?null:this._buffer.slice(0,r-n)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])})();function Up(t){"@babel/helpers - typeof";return Up=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Up(t)}function DE(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */DE=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(B,V,H){B[V]=H.value},o=typeof Symbol=="function"?Symbol:{},u=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",d=o.toStringTag||"@@toStringTag";function h(B,V,H){return Object.defineProperty(B,V,{value:H,enumerable:!0,configurable:!0,writable:!0}),B[V]}try{h({},"")}catch{h=function(H,ie,G){return H[ie]=G}}function g(B,V,H,ie){var G=V&&V.prototype instanceof O?V:O,J=Object.create(G.prototype),he=new be(ie||[]);return i(J,"_invoke",{value:X(B,H,he)}),J}function y(B,V,H){try{return{type:"normal",arg:B.call(V,H)}}catch(ie){return{type:"throw",arg:ie}}}e.wrap=g;var w="suspendedStart",v="suspendedYield",C="executing",E="completed",$={};function O(){}function _(){}function R(){}var k={};h(k,u,function(){return this});var P=Object.getPrototypeOf,L=P&&P(P(we([])));L&&L!==n&&r.call(L,u)&&(k=L);var F=R.prototype=O.prototype=Object.create(k);function q(B){["next","throw","return"].forEach(function(V){h(B,V,function(H){return this._invoke(V,H)})})}function Y(B,V){function H(G,J,he,$e){var Ce=y(B[G],B,J);if(Ce.type!=="throw"){var Be=Ce.arg,Ie=Be.value;return Ie&&Up(Ie)=="object"&&r.call(Ie,"__await")?V.resolve(Ie.__await).then(function(tt){H("next",tt,he,$e)},function(tt){H("throw",tt,he,$e)}):V.resolve(Ie).then(function(tt){Be.value=tt,he(Be)},function(tt){return H("throw",tt,he,$e)})}$e(Ce.arg)}var ie;i(this,"_invoke",{value:function(J,he){function $e(){return new V(function(Ce,Be){H(J,he,Ce,Be)})}return ie=ie?ie.then($e,$e):$e()}})}function X(B,V,H){var ie=w;return function(G,J){if(ie===C)throw Error("Generator is already running");if(ie===E){if(G==="throw")throw J;return{value:t,done:!0}}for(H.method=G,H.arg=J;;){var he=H.delegate;if(he){var $e=ue(he,H);if($e){if($e===$)continue;return $e}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(ie===w)throw ie=E,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);ie=C;var Ce=y(B,V,H);if(Ce.type==="normal"){if(ie=H.done?E:v,Ce.arg===$)continue;return{value:Ce.arg,done:H.done}}Ce.type==="throw"&&(ie=E,H.method="throw",H.arg=Ce.arg)}}}function ue(B,V){var H=V.method,ie=B.iterator[H];if(ie===t)return V.delegate=null,H==="throw"&&B.iterator.return&&(V.method="return",V.arg=t,ue(B,V),V.method==="throw")||H!=="return"&&(V.method="throw",V.arg=new TypeError("The iterator does not provide a '"+H+"' method")),$;var G=y(ie,B.iterator,V.arg);if(G.type==="throw")return V.method="throw",V.arg=G.arg,V.delegate=null,$;var J=G.arg;return J?J.done?(V[B.resultName]=J.value,V.next=B.nextLoc,V.method!=="return"&&(V.method="next",V.arg=t),V.delegate=null,$):J:(V.method="throw",V.arg=new TypeError("iterator result is not an object"),V.delegate=null,$)}function me(B){var V={tryLoc:B[0]};1 in B&&(V.catchLoc=B[1]),2 in B&&(V.finallyLoc=B[2],V.afterLoc=B[3]),this.tryEntries.push(V)}function te(B){var V=B.completion||{};V.type="normal",delete V.arg,B.completion=V}function be(B){this.tryEntries=[{tryLoc:"root"}],B.forEach(me,this),this.reset(!0)}function we(B){if(B||B===""){var V=B[u];if(V)return V.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var H=-1,ie=function G(){for(;++H=0;--G){var J=this.tryEntries[G],he=J.completion;if(J.tryLoc==="root")return ie("end");if(J.tryLoc<=this.prev){var $e=r.call(J,"catchLoc"),Ce=r.call(J,"finallyLoc");if($e&&Ce){if(this.prev=0;--ie){var G=this.tryEntries[ie];if(G.tryLoc<=this.prev&&r.call(G,"finallyLoc")&&this.prev=0;--H){var ie=this.tryEntries[H];if(ie.finallyLoc===V)return this.complete(ie.completion,ie.afterLoc),te(ie),$}},catch:function(V){for(var H=this.tryEntries.length-1;H>=0;--H){var ie=this.tryEntries[H];if(ie.tryLoc===V){var G=ie.completion;if(G.type==="throw"){var J=G.arg;te(ie)}return J}}throw Error("illegal catch attempt")},delegateYield:function(V,H,ie){return this.delegate={iterator:we(V),resultName:H,nextLoc:ie},this.method==="next"&&(this.arg=t),$}},e}function p_(t,e,n,r,i,o,u){try{var l=t[o](u),d=l.value}catch(h){n(h);return}l.done?e(d):Promise.resolve(d).then(r,i)}function aH(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function u(d){p_(o,r,i,u,l,"next",d)}function l(d){p_(o,r,i,u,l,"throw",d)}u(void 0)})}}function oH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sH(t,e){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(i,o){n._xhr.onload=function(){i(new wH(n._xhr))},n._xhr.onerror=function(u){o(u)},n._xhr.send(r)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})(),wH=(function(){function t(e){bO(this,t),this._xhr=e}return wO(t,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(n){return this._xhr.getResponseHeader(n)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})();function J0(t){"@babel/helpers - typeof";return J0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J0(t)}function SH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CH(t,e){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return _H(this,e),r=xg(xg({},y_),r),PH(this,e,[n,r])}return MH(e,t),RH(e,null,[{key:"terminate",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i=xg(xg({},y_),i),Mw.terminate(r,i)}}])})(Mw);const yn=Ae.createContext({setSession(t){},options:{}});class LH{async setItem(e,n){return localStorage.setItem(e,n)}async getItem(e){return localStorage.getItem(e)}async removeItem(e){return localStorage.removeItem(e)}}async function UH(t,e,n){n.setItem("fb_microservice_"+t,JSON.stringify(e))}function jH(t,e,n){n.setItem("fb_selected_workspace_"+t,JSON.stringify(e))}async function BH(t,e){let n=null;try{n=JSON.parse(await e.getItem("fb_microservice_"+t))}catch{}return n}async function qH(t,e){let n=null;try{n=JSON.parse(await e.getItem("fb_selected_workspace_"+t))}catch{}return n}function HH({children:t,remote:e,selectedUrw:n,identifier:r,token:i,preferredAcceptLanguage:o,queryClient:u,defaultExecFn:l,socketEnabled:d,socket:h,credentialStorage:g,prefix:y}){var V;const[w,v]=T.useState(!1),[C,E]=T.useState(),[$,O]=T.useState(""),[_,R]=T.useState(),k=T.useRef(g||new LH),P=async()=>{const H=await qH(r,k.current),ie=await BH(r,k.current);R(H),E(ie),v(!0)};T.useEffect(()=>{P()},[]);const[L,F]=T.useState([]),[q,Y]=T.useState(l),X=!!C,ue=H=>{jH(r,H,k.current),R(H)},me=H=>{E(()=>(UH(r,H,k.current),H))},te={headers:{authorization:i||(C==null?void 0:C.token)},prefix:($||e)+(y||"")};if(_)te.headers["workspace-id"]=_.workspaceId,te.headers["role-id"]=_.roleId;else if(n)te.headers["workspace-id"]=n.workspaceId,te.headers["role-id"]=n.roleId;else if(C!=null&&C.userWorkspaces&&C.userWorkspaces.length>0){const H=C.userWorkspaces[0];te.headers["workspace-id"]=H.workspaceId,te.headers["role-id"]=H.roleId}o&&(te.headers["accept-language"]=o),T.useEffect(()=>{i&&E({...C||{},token:i})},[i]);const be=()=>{var H;E(null),(H=k.current)==null||H.removeItem("fb_microservice_"+r),ue(void 0)},we=()=>{F([])},{socketState:B}=zH(e,(V=te.headers)==null?void 0:V.authorization,te.headers["workspace-id"],u,d);return N.jsx(yn.Provider,{value:{options:te,signout:be,setOverrideRemoteUrl:O,overrideRemoteUrl:$,setSession:me,socketState:B,checked:w,selectedUrw:_,selectUrw:ue,session:C,preferredAcceptLanguage:o,activeUploads:L,setActiveUploads:F,execFn:q,setExecFn:Y,discardActiveUploads:we,isAuthenticated:X},children:t})}function zH(t,e,n,r,i=!0){const[o,u]=T.useState({state:"unknown"});return T.useEffect(()=>{if(!t||!e||e==="undefined"||i===!1)return;const l=t.replace("https","wss").replace("http","ws");let d;try{d=new WebSocket(`${l}ws?token=${e}&workspaceId=${n}`),d.onerror=function(h){u({state:"error"})},d.onclose=function(h){u({state:"closed"})},d.onmessage=function(h){try{const g=JSON.parse(h.data);g!=null&&g.cacheKey&&r.invalidateQueries(g==null?void 0:g.cacheKey)}catch{console.error("Socket message parsing error",h)}},d.onopen=function(h){u({state:"connected"})}}catch{}return()=>{(d==null?void 0:d.readyState)===1&&d.close()}},[e,n]),{socketState:o}}function la(t){if(!t)return{};const e={};return t.startIndex&&(e.startIndex=t.startIndex),t.itemsPerPage&&(e.itemsPerPage=t.itemsPerPage),t.query&&(e.query=t.query),t.deep&&(e.deep=t.deep),t.jsonQuery&&(e.jsonQuery=JSON.stringify(t.jsonQuery)),t.withPreloads&&(e.withPreloads=t.withPreloads),t.uniqueId&&(e.uniqueId=t.uniqueId),t.sort&&(e.sort=t.sort),e}const dI=T.createContext(null),VH=dI.Provider;function zo(){return T.useContext(dI)}function GH({children:t,queryClient:e,prefix:n,mockServer:r,config:i,locale:o}){return N.jsx(HH,{socket:!0,preferredAcceptLanguage:o||i.interfaceLanguage,identifier:"fireback",prefix:n,queryClient:e,remote:Si.REMOTE_SERVICE,defaultExecFn:void 0,children:N.jsx(WH,{children:t,mockServer:r})})}const WH=({children:t,mockServer:e})=>{var o;const{options:n,session:r}=T.useContext(yn),i=T.useRef(new mO((o=Si.REMOTE_SERVICE)==null?void 0:o.replace(/\/$/,"")));return i.current.defaultHeaders={authorization:r==null?void 0:r.token,"workspace-id":n==null?void 0:n.headers["workspace-id"]},N.jsx(VH,{value:i.current,children:t})};/** +`).forEach($=>{$.startsWith("data:")?C+=$.slice(5).trim():$.startsWith("event:")&&(E=$.slice(6).trim())}),C){if(C==="[DONE]")return l();e==null||e(new MessageEvent(E,{data:C}))}}h()}).catch(g=>{g.name==="AbortError"?l():d(g)})}h()});return{response:t,done:u}};class _O{constructor(e="",n={},r,i,o=null){this.baseUrl=e,this.defaultHeaders=n,this.requestInterceptor=r,this.responseInterceptor=i,this.fetchOverrideFn=o}async apply(e,n){return/^https?:\/\//.test(e)||(e=this.baseUrl+e),n.headers={...this.defaultHeaders,...n.headers||{}},this.requestInterceptor?this.requestInterceptor(e,n):[e,n]}async handle(e){return this.responseInterceptor?this.responseInterceptor(e):e}clone(e){return new _O((e==null?void 0:e.baseUrl)??this.baseUrl,{...this.defaultHeaders,...(e==null?void 0:e.defaultHeaders)||{}},(e==null?void 0:e.requestInterceptor)??this.requestInterceptor,(e==null?void 0:e.responseInterceptor)??this.responseInterceptor)}}var sq={VITE_REMOTE_SERVICE:"/",PUBLIC_URL:"/selfservice/",VITE_DEFAULT_ROUTE:"/{locale}/passports",VITE_SUPPORTED_LANGUAGES:"fa,en"};const h0=sq,Ci={REMOTE_SERVICE:h0.VITE_REMOTE_SERVICE,PUBLIC_URL:h0.PUBLIC_URL,DEFAULT_ROUTE:h0.VITE_DEFAULT_ROUTE,SUPPORTED_LANGUAGES:h0.VITE_SUPPORTED_LANGUAGES,FORCED_LOCALE:h0.VITE_FORCED_LOCALE};var nh={},jc={},Cg={},r_;function uq(){if(r_)return Cg;r_=1,Cg.__esModule=!0,Cg.getAllMatches=t,Cg.escapeRegExp=e,Cg.escapeSource=n;function t(r,i){for(var o=void 0,u=[];o=r.exec(i);)u.push(o);return u}function e(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function n(r){return e(r).replace(/\/+/g,"/+")}return Cg}var vu={},i_;function lq(){if(i_)return vu;i_=1,vu.__esModule=!0,vu.string=t,vu.greedySplat=e,vu.splat=n,vu.any=r,vu.int=i,vu.uuid=o,vu.createRule=u;function t(){var l=arguments.length<=0||arguments[0]===void 0?{}:arguments[0],d=l.maxLength,h=l.minLength,g=l.length;return u({validate:function(w){return!(d&&w.length>d||h&&w.lengthd||h&&v=q.length)break;Y=q[F++]}else{if(F=q.next(),F.done)break;Y=F.value}var X=Y[0],ue=Y[1],me=void 0;ue?me=$[ue]||n.string():X=="**"?(me=n.greedySplat(),ue="splat"):X=="*"?(me=n.splat(),ue="splat"):X==="("?k+="(?:":X===")"?k+=")?":k+=e.escapeSource(X),ue&&(k+=me.regex,R.push({paramName:ue,rule:me})),_.push(X)}var te=_[_.length-1]!=="*",be=te?"":"$";return k=new RegExp("^"+k+"/*"+be,"i"),{tokens:_,regexpSource:k,params:R,paramNames:R.map(function(we){return we.paramName})}}function d(C,E){return C.every(function($,O){return E[O].rule.validate($)})}function h(C){return typeof C=="string"&&(C={pattern:C,rules:{}}),i.default(C.pattern,"you cannot use an empty route pattern"),C.rules=C.rules||{},C}function g(C){return C=h(C),o[C.pattern]||(o[C.pattern]=l(C)),o[C.pattern]}function y(C,E){E.charAt(0)!=="/"&&(E="/"+E);var $=g(C),O=$.regexpSource,_=$.params,R=$.paramNames,k=E.match(O);if(k!=null){var P=E.slice(k[0].length);if(!(P[0]=="/"||k[0][k[0].length])){var L=k.slice(1).map(function(F){return F!=null?decodeURIComponent(F):F});if(d(L,_))return L=L.map(function(F,q){return _[q].rule.convert(F)}),{remainingPathname:P,paramValues:L,paramNames:R}}}}function w(C,E){E=E||{};for(var $=g(C),O=$.tokens,_=0,R="",k=0,P=void 0,L=void 0,F=void 0,q=0,Y=O.length;q0,'Missing splat #%s for path "%s"',k,C.pattern),F!=null&&(R+=encodeURI(F))):P==="("?_+=1:P===")"?_-=1:P.charAt(0)===":"?(L=P.substring(1),F=E[L],i.default(F!=null||_>0,'Missing "%s" parameter for path "%s"',L,C.pattern),F!=null&&(R+=encodeURIComponent(F))):R+=P;return R.replace(/\/+/g,"/")}function v(C,E){var $=y(C,E)||{},O=$.paramNames,_=$.paramValues,R=[];if(!O)return null;for(var k=0;k1&&arguments[1]!==void 0?arguments[1]:null,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(mq(this,e),r=gq(this,e,[n]),r.originalRequest=o,r.originalResponse=u,r.causingError=i,i!=null&&(n+=", caused by ".concat(i.toString())),o!=null){var l=o.getHeader("X-Request-ID")||"n/a",d=o.getMethod(),h=o.getURL(),g=u?u.getStatus():"n/a",y=u?u.getBody()||"":"n/a";n+=", originated from request (method: ".concat(d,", url: ").concat(h,", response code: ").concat(g,", response text: ").concat(y,", request id: ").concat(l,")")}return r.message=n,r}return bq(e,t),pq(e)})(zE(Error));function r1(t){"@babel/helpers - typeof";return r1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r1(t)}function Cq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $q(t,e){for(var n=0;n{let e={};return t.forEach((n,r)=>e[n]=r),e})(D0),Rq=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,wi=String.fromCharCode.bind(String),c_=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),oI=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),sI=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),uI=t=>{let e,n,r,i,o="";const u=t.length%3;for(let l=0;l255||(r=t.charCodeAt(l++))>255||(i=t.charCodeAt(l++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,o+=D0[e>>18&63]+D0[e>>12&63]+D0[e>>6&63]+D0[e&63]}return u?o.slice(0,u-3)+"===".substring(u):o},RO=typeof btoa=="function"?t=>btoa(t):uy?t=>Buffer.from(t,"binary").toString("base64"):uI,VE=uy?t=>Buffer.from(t).toString("base64"):t=>{let n=[];for(let r=0,i=t.length;re?oI(VE(t)):VE(t),Pq=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?wi(192|e>>>6)+wi(128|e&63):wi(224|e>>>12&15)+wi(128|e>>>6&63)+wi(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return wi(240|e>>>18&7)+wi(128|e>>>12&63)+wi(128|e>>>6&63)+wi(128|e&63)}},Iq=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,lI=t=>t.replace(Iq,Pq),f_=uy?t=>Buffer.from(t,"utf8").toString("base64"):l_?t=>VE(l_.encode(t)):t=>RO(lI(t)),Vg=(t,e=!1)=>e?oI(f_(t)):f_(t),d_=t=>Vg(t,!0),Nq=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Mq=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),n=e-65536;return wi((n>>>10)+55296)+wi((n&1023)+56320);case 3:return wi((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return wi((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},cI=t=>t.replace(Nq,Mq),fI=t=>{if(t=t.replace(/\s+/g,""),!Rq.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,n="",r,i;for(let o=0;o>16&255):i===64?wi(e>>16&255,e>>8&255):wi(e>>16&255,e>>8&255,e&255);return n},PO=typeof atob=="function"?t=>atob(sI(t)):uy?t=>Buffer.from(t,"base64").toString("binary"):fI,dI=uy?t=>c_(Buffer.from(t,"base64")):t=>c_(PO(t).split("").map(e=>e.charCodeAt(0))),hI=t=>dI(pI(t)),kq=uy?t=>Buffer.from(t,"base64").toString("utf8"):u_?t=>u_.decode(dI(t)):t=>cI(PO(t)),pI=t=>sI(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),GE=t=>kq(pI(t)),Dq=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},mI=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),gI=function(){const t=(e,n)=>Object.defineProperty(String.prototype,e,mI(n));t("fromBase64",function(){return GE(this)}),t("toBase64",function(e){return Vg(this,e)}),t("toBase64URI",function(){return Vg(this,!0)}),t("toBase64URL",function(){return Vg(this,!0)}),t("toUint8Array",function(){return hI(this)})},yI=function(){const t=(e,n)=>Object.defineProperty(Uint8Array.prototype,e,mI(n));t("toBase64",function(e){return Sw(this,e)}),t("toBase64URI",function(){return Sw(this,!0)}),t("toBase64URL",function(){return Sw(this,!0)})},Fq=()=>{gI(),yI()},Lq={version:aI,VERSION:_q,atob:PO,atobPolyfill:fI,btoa:RO,btoaPolyfill:uI,fromBase64:GE,toBase64:Vg,encode:Vg,encodeURI:d_,encodeURL:d_,utob:lI,btou:cI,decode:GE,isValid:Dq,fromUint8Array:Sw,toUint8Array:hI,extendString:gI,extendUint8Array:yI,extendBuiltins:Fq};var TC,h_;function Uq(){return h_||(h_=1,TC=function(e,n){if(n=n.split(":")[0],e=+e,!e)return!1;switch(n){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}),TC}var K2={},p_;function jq(){if(p_)return K2;p_=1;var t=Object.prototype.hasOwnProperty,e;function n(u){try{return decodeURIComponent(u.replace(/\+/g," "))}catch{return null}}function r(u){try{return encodeURIComponent(u)}catch{return null}}function i(u){for(var l=/([^=?#&]+)=?([^&]*)/g,d={},h;h=l.exec(u);){var g=n(h[1]),y=n(h[2]);g===null||y===null||g in d||(d[g]=y)}return d}function o(u,l){l=l||"";var d=[],h,g;typeof l!="string"&&(l="?");for(g in u)if(t.call(u,g)){if(h=u[g],!h&&(h===null||h===e||isNaN(h))&&(h=""),g=r(g),h=r(h),g===null||h===null)continue;d.push(g+"="+h)}return d.length?l+d.join("&"):""}return K2.stringify=o,K2.parse=i,K2}var _C,m_;function Bq(){if(m_)return _C;m_=1;var t=Uq(),e=jq(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,o=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function d(_){return(_||"").toString().replace(n,"")}var h=[["#","hash"],["?","query"],function(R,k){return w(k.protocol)?R.replace(/\\/g,"/"):R},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],g={hash:1,query:1};function y(_){var R;typeof window<"u"?R=window:typeof Ef<"u"?R=Ef:typeof self<"u"?R=self:R={};var k=R.location||{};_=_||k;var P={},L=typeof _,F;if(_.protocol==="blob:")P=new E(unescape(_.pathname),{});else if(L==="string"){P=new E(_,{});for(F in g)delete P[F]}else if(L==="object"){for(F in _)F in g||(P[F]=_[F]);P.slashes===void 0&&(P.slashes=i.test(_.href))}return P}function w(_){return _==="file:"||_==="ftp:"||_==="http:"||_==="https:"||_==="ws:"||_==="wss:"}function v(_,R){_=d(_),_=_.replace(r,""),R=R||{};var k=u.exec(_),P=k[1]?k[1].toLowerCase():"",L=!!k[2],F=!!k[3],q=0,Y;return L?F?(Y=k[2]+k[3]+k[4],q=k[2].length+k[3].length):(Y=k[2]+k[4],q=k[2].length):F?(Y=k[3]+k[4],q=k[3].length):Y=k[4],P==="file:"?q>=2&&(Y=Y.slice(2)):w(P)?Y=k[4]:P?L&&(Y=Y.slice(2)):q>=2&&w(R.protocol)&&(Y=k[4]),{protocol:P,slashes:L||w(P),slashesCount:q,rest:Y}}function C(_,R){if(_==="")return R;for(var k=(R||"/").split("/").slice(0,-1).concat(_.split("/")),P=k.length,L=k[P-1],F=!1,q=0;P--;)k[P]==="."?k.splice(P,1):k[P]===".."?(k.splice(P,1),q++):q&&(P===0&&(F=!0),k.splice(P,1),q--);return F&&k.unshift(""),(L==="."||L==="..")&&k.push(""),k.join("/")}function E(_,R,k){if(_=d(_),_=_.replace(r,""),!(this instanceof E))return new E(_,R,k);var P,L,F,q,Y,X,ue=h.slice(),me=typeof R,te=this,be=0;for(me!=="object"&&me!=="string"&&(k=R,R=null),k&&typeof k!="function"&&(k=e.parse),R=y(R),L=v(_||"",R),P=!L.protocol&&!L.slashes,te.slashes=L.slashes||P&&R.slashes,te.protocol=L.protocol||R.protocol||"",_=L.rest,(L.protocol==="file:"&&(L.slashesCount!==2||l.test(_))||!L.slashes&&(L.protocol||L.slashesCount<2||!w(te.protocol)))&&(ue[3]=[/(.*)/,"pathname"]);be=0;--G){var Q=this.tryEntries[G],he=Q.completion;if(Q.tryLoc==="root")return ie("end");if(Q.tryLoc<=this.prev){var $e=r.call(Q,"catchLoc"),Ce=r.call(Q,"finallyLoc");if($e&&Ce){if(this.prev=0;--ie){var G=this.tryEntries[ie];if(G.tryLoc<=this.prev&&r.call(G,"finallyLoc")&&this.prev=0;--H){var ie=this.tryEntries[H];if(ie.finallyLoc===V)return this.complete(ie.completion,ie.afterLoc),te(ie),$}},catch:function(V){for(var H=this.tryEntries.length-1;H>=0;--H){var ie=this.tryEntries[H];if(ie.tryLoc===V){var G=ie.completion;if(G.type==="throw"){var Q=G.arg;te(ie)}return Q}}throw Error("illegal catch attempt")},delegateYield:function(V,H,ie){return this.delegate={iterator:we(V),resultName:H,nextLoc:ie},this.method==="next"&&(this.arg=t),$}},e}function g_(t,e,n,r,i,o,u){try{var l=t[o](u),d=l.value}catch(h){n(h);return}l.done?e(d):Promise.resolve(d).then(r,i)}function Vq(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function u(d){g_(o,r,i,u,l,"next",d)}function l(d){g_(o,r,i,u,l,"throw",d)}u(void 0)})}}function vI(t,e){return Kq(t)||Wq(t,e)||bI(t,e)||Gq()}function Gq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wq(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,u,l=[],d=!0,h=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(d=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);d=!0);}catch(g){h=!0,i=g}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(h)throw i}}return l}}function Kq(t){if(Array.isArray(t))return t}function Vp(t){"@babel/helpers - typeof";return Vp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vp(t)}function Yq(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=bI(t))||e){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(h){throw h},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,u=!1,l;return{s:function(){n=n.call(t)},n:function(){var h=n.next();return o=h.done,h},e:function(h){u=!0,l=h},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(u)throw l}}}}function bI(t,e){if(t){if(typeof t=="string")return y_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y_(t,e)}}function y_(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1)for(var o=0,u=["uploadUrl","uploadSize","uploadLengthDeferred"];o1||n._parallelUploadUrls!=null?n._startParallelUpload():n._startSingleUpload()}).catch(function(d){n._emitError(d)})}},{key:"_startParallelUpload",value:function(){var n,r=this,i=this._size,o=0;this._parallelUploads=[];var u=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,l=(n=this.options.parallelUploadBoundaries)!==null&&n!==void 0?n:nH(this._source.size,u);this._parallelUploadUrls&&l.forEach(function(g,y){g.uploadUrl=r._parallelUploadUrls[y]||null}),this._parallelUploadUrls=new Array(l.length);var d=l.map(function(g,y){var w=0;return r._source.slice(g.start,g.end).then(function(v){var C=v.value;return new Promise(function(E,$){var O=$g($g({},r.options),{},{uploadUrl:g.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:r.options.metadataForPartialUploads,headers:$g($g({},r.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:E,onError:$,onProgress:function(k){o=o-w+k,w=k,r._emitProgress(o,i)},onUploadUrlAvailable:function(){r._parallelUploadUrls[y]=_.url,r._parallelUploadUrls.filter(function(k){return!!k}).length===l.length&&r._saveUploadInUrlStorage()}}),_=new t(C,O);_.start(),r._parallelUploads.push(_)})})}),h;Promise.all(d).then(function(){h=r._openRequest("POST",r.options.endpoint),h.setHeader("Upload-Concat","final;".concat(r._parallelUploadUrls.join(" ")));var g=w_(r.options.metadata);return g!==""&&h.setHeader("Upload-Metadata",g),r._sendRequest(h,null)}).then(function(g){if(!Ig(g.getStatus(),200)){r._emitHttpError(h,g,"tus: unexpected response while creating upload");return}var y=g.getHeader("Location");if(y==null){r._emitHttpError(h,g,"tus: invalid or missing Location header");return}r.url=E_(r.options.endpoint,y),"Created upload at ".concat(r.url),r._emitSuccess(g)}).catch(function(g){r._emitError(g)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){"Resuming upload from previous URL: ".concat(this.url),this._resumeUpload();return}if(this.options.uploadUrl!=null){"Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,this._resumeUpload();return}this._createUpload()}},{key:"abort",value:function(n){var r=this;if(this._parallelUploads!=null){var i=Yq(this._parallelUploads),o;try{for(i.s();!(o=i.n()).done;){var u=o.value;u.abort(n)}}catch(l){i.e(l)}finally{i.f()}}return this._req!==null&&this._req.abort(),this._aborted=!0,this._retryTimeout!=null&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),!n||this.url==null?Promise.resolve():t.terminate(this.url,this.options).then(function(){return r._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(n,r,i,o){this._emitError(new G2(i,o,n,r))}},{key:"_emitError",value:function(n){var r=this;if(!this._aborted){if(this.options.retryDelays!=null){var i=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(i&&(this._retryAttempt=0),$_(n,this._retryAttempt,this.options)){var o=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){r.start()},o);return}}if(typeof this.options.onError=="function")this.options.onError(n);else throw n}}},{key:"_emitSuccess",value:function(n){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),typeof this.options.onSuccess=="function"&&this.options.onSuccess({lastResponse:n})}},{key:"_emitProgress",value:function(n,r){typeof this.options.onProgress=="function"&&this.options.onProgress(n,r)}},{key:"_emitChunkComplete",value:function(n,r,i){typeof this.options.onChunkComplete=="function"&&this.options.onChunkComplete(n,r,i)}},{key:"_createUpload",value:function(){var n=this;if(!this.options.endpoint){this._emitError(new Error("tus: unable to create upload because no endpoint is provided"));return}var r=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?r.setHeader("Upload-Defer-Length","1"):r.setHeader("Upload-Length","".concat(this._size));var i=w_(this.options.metadata);i!==""&&r.setHeader("Upload-Metadata",i);var o;this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,o=this._addChunkToRequest(r)):((this.options.protocol===$w||this.options.protocol===F0)&&r.setHeader("Upload-Complete","?0"),o=this._sendRequest(r,null)),o.then(function(u){if(!Ig(u.getStatus(),200)){n._emitHttpError(r,u,"tus: unexpected response while creating upload");return}var l=u.getHeader("Location");if(l==null){n._emitHttpError(r,u,"tus: invalid or missing Location header");return}if(n.url=E_(n.options.endpoint,l),"Created upload at ".concat(n.url),typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._size===0){n._emitSuccess(u),n._source.close();return}n._saveUploadInUrlStorage().then(function(){n.options.uploadDataDuringCreation?n._handleUploadResponse(r,u):(n._offset=0,n._performUpload())})}).catch(function(u){n._emitHttpError(r,null,"tus: failed to create upload",u)})}},{key:"_resumeUpload",value:function(){var n=this,r=this._openRequest("HEAD",this.url),i=this._sendRequest(r,null);i.then(function(o){var u=o.getStatus();if(!Ig(u,200)){if(u===423){n._emitHttpError(r,o,"tus: upload is currently locked; retry later");return}if(Ig(u,400)&&n._removeFromUrlStorage(),!n.options.endpoint){n._emitHttpError(r,o,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}n.url=null,n._createUpload();return}var l=Number.parseInt(o.getHeader("Upload-Offset"),10);if(Number.isNaN(l)){n._emitHttpError(r,o,"tus: invalid or missing offset value");return}var d=Number.parseInt(o.getHeader("Upload-Length"),10);if(Number.isNaN(d)&&!n.options.uploadLengthDeferred&&n.options.protocol===Cw){n._emitHttpError(r,o,"tus: invalid or missing length value");return}typeof n.options.onUploadUrlAvailable=="function"&&n.options.onUploadUrlAvailable(),n._saveUploadInUrlStorage().then(function(){if(l===d){n._emitProgress(d,d),n._emitSuccess(o);return}n._offset=l,n._performUpload()})}).catch(function(o){n._emitHttpError(r,null,"tus: failed to resume upload",o)})}},{key:"_performUpload",value:function(){var n=this;if(!this._aborted){var r;this.options.overridePatchMethod?(r=this._openRequest("POST",this.url),r.setHeader("X-HTTP-Method-Override","PATCH")):r=this._openRequest("PATCH",this.url),r.setHeader("Upload-Offset","".concat(this._offset));var i=this._addChunkToRequest(r);i.then(function(o){if(!Ig(o.getStatus(),200)){n._emitHttpError(r,o,"tus: unexpected response while uploading chunk");return}n._handleUploadResponse(r,o)}).catch(function(o){n._aborted||n._emitHttpError(r,null,"tus: failed to upload chunk at offset ".concat(n._offset),o)})}}},{key:"_addChunkToRequest",value:function(n){var r=this,i=this._offset,o=this._offset+this.options.chunkSize;return n.setProgressHandler(function(u){r._emitProgress(i+u,r._size)}),this.options.protocol===Cw?n.setHeader("Content-Type","application/offset+octet-stream"):this.options.protocol===F0&&n.setHeader("Content-Type","application/partial-upload"),(o===Number.POSITIVE_INFINITY||o>this._size)&&!this.options.uploadLengthDeferred&&(o=this._size),this._source.slice(i,o).then(function(u){var l=u.value,d=u.done,h=l!=null&&l.size?l.size:0;r.options.uploadLengthDeferred&&d&&(r._size=r._offset+h,n.setHeader("Upload-Length","".concat(r._size)));var g=r._offset+h;return!r.options.uploadLengthDeferred&&d&&g!==r._size?Promise.reject(new Error("upload was configured with a size of ".concat(r._size," bytes, but the source is done after ").concat(g," bytes"))):l===null?r._sendRequest(n):((r.options.protocol===$w||r.options.protocol===F0)&&n.setHeader("Upload-Complete",d?"?1":"?0"),r._emitProgress(r._offset,r._size),r._sendRequest(n,l))})}},{key:"_handleUploadResponse",value:function(n,r){var i=Number.parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(i)){this._emitHttpError(n,r,"tus: invalid or missing offset value");return}if(this._emitProgress(i,this._size),this._emitChunkComplete(i-this._offset,i,this._size),this._offset=i,i===this._size){this._emitSuccess(r),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(n,r){var i=S_(n,r,this.options);return this._req=i,i}},{key:"_removeFromUrlStorage",value:function(){var n=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch(function(r){n._emitError(r)}),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var n=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var r={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};return this._parallelUploads?r.parallelUploadUrls=this._parallelUploadUrls:r.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,r).then(function(i){n._urlStorageKey=i})}},{key:"_sendRequest",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return C_(n,r,this.options)}}],[{key:"terminate",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=S_("DELETE",n,r);return C_(i,null,r).then(function(o){if(o.getStatus()!==204)throw new G2("tus: unexpected response while terminating upload",null,i,o)}).catch(function(o){if(o instanceof G2||(o=new G2("tus: failed to terminate upload",o,i,null)),!$_(o,0,r))throw o;var u=r.retryDelays[0],l=r.retryDelays.slice(1),d=$g($g({},r),{},{retryDelays:l});return new Promise(function(h){return setTimeout(h,u)}).then(function(){return t.terminate(n,d)})})}}])})();function w_(t){return Object.entries(t).map(function(e){var n=vI(e,2),r=n[0],i=n[1];return"".concat(r," ").concat(Lq.encode(String(i)))}).join(",")}function Ig(t,e){return t>=e&&t=n.retryDelays.length||t.originalRequest==null?!1:n&&typeof n.onShouldRetry=="function"?n.onShouldRetry(t,e,n):SI(t)}function SI(t){var e=t.originalResponse?t.originalResponse.getStatus():0;return(!Ig(e,400)||e===409||e===423)&&tH()}function E_(t,e){return new Hq(e,t).toString()}function nH(t,e){for(var n=Math.floor(t/e),r=[],i=0;i=this.size;return Promise.resolve({value:i,done:o})}},{key:"close",value:function(){}}])})();function a1(t){"@babel/helpers - typeof";return a1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a1(t)}function fH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dH(t,e){for(var n=0;nthis._bufferOffset&&(this._buffer=this._buffer.slice(n-this._bufferOffset),this._bufferOffset=n);var i=O_(this._buffer)===0;return this._done&&i?null:this._buffer.slice(0,r-n)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}])})();function Gp(t){"@babel/helpers - typeof";return Gp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gp(t)}function YE(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */YE=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(B,V,H){B[V]=H.value},o=typeof Symbol=="function"?Symbol:{},u=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",d=o.toStringTag||"@@toStringTag";function h(B,V,H){return Object.defineProperty(B,V,{value:H,enumerable:!0,configurable:!0,writable:!0}),B[V]}try{h({},"")}catch{h=function(H,ie,G){return H[ie]=G}}function g(B,V,H,ie){var G=V&&V.prototype instanceof O?V:O,Q=Object.create(G.prototype),he=new be(ie||[]);return i(Q,"_invoke",{value:X(B,H,he)}),Q}function y(B,V,H){try{return{type:"normal",arg:B.call(V,H)}}catch(ie){return{type:"throw",arg:ie}}}e.wrap=g;var w="suspendedStart",v="suspendedYield",C="executing",E="completed",$={};function O(){}function _(){}function R(){}var k={};h(k,u,function(){return this});var P=Object.getPrototypeOf,L=P&&P(P(we([])));L&&L!==n&&r.call(L,u)&&(k=L);var F=R.prototype=O.prototype=Object.create(k);function q(B){["next","throw","return"].forEach(function(V){h(B,V,function(H){return this._invoke(V,H)})})}function Y(B,V){function H(G,Q,he,$e){var Ce=y(B[G],B,Q);if(Ce.type!=="throw"){var Be=Ce.arg,Ie=Be.value;return Ie&&Gp(Ie)=="object"&&r.call(Ie,"__await")?V.resolve(Ie.__await).then(function(tt){H("next",tt,he,$e)},function(tt){H("throw",tt,he,$e)}):V.resolve(Ie).then(function(tt){Be.value=tt,he(Be)},function(tt){return H("throw",tt,he,$e)})}$e(Ce.arg)}var ie;i(this,"_invoke",{value:function(Q,he){function $e(){return new V(function(Ce,Be){H(Q,he,Ce,Be)})}return ie=ie?ie.then($e,$e):$e()}})}function X(B,V,H){var ie=w;return function(G,Q){if(ie===C)throw Error("Generator is already running");if(ie===E){if(G==="throw")throw Q;return{value:t,done:!0}}for(H.method=G,H.arg=Q;;){var he=H.delegate;if(he){var $e=ue(he,H);if($e){if($e===$)continue;return $e}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(ie===w)throw ie=E,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);ie=C;var Ce=y(B,V,H);if(Ce.type==="normal"){if(ie=H.done?E:v,Ce.arg===$)continue;return{value:Ce.arg,done:H.done}}Ce.type==="throw"&&(ie=E,H.method="throw",H.arg=Ce.arg)}}}function ue(B,V){var H=V.method,ie=B.iterator[H];if(ie===t)return V.delegate=null,H==="throw"&&B.iterator.return&&(V.method="return",V.arg=t,ue(B,V),V.method==="throw")||H!=="return"&&(V.method="throw",V.arg=new TypeError("The iterator does not provide a '"+H+"' method")),$;var G=y(ie,B.iterator,V.arg);if(G.type==="throw")return V.method="throw",V.arg=G.arg,V.delegate=null,$;var Q=G.arg;return Q?Q.done?(V[B.resultName]=Q.value,V.next=B.nextLoc,V.method!=="return"&&(V.method="next",V.arg=t),V.delegate=null,$):Q:(V.method="throw",V.arg=new TypeError("iterator result is not an object"),V.delegate=null,$)}function me(B){var V={tryLoc:B[0]};1 in B&&(V.catchLoc=B[1]),2 in B&&(V.finallyLoc=B[2],V.afterLoc=B[3]),this.tryEntries.push(V)}function te(B){var V=B.completion||{};V.type="normal",delete V.arg,B.completion=V}function be(B){this.tryEntries=[{tryLoc:"root"}],B.forEach(me,this),this.reset(!0)}function we(B){if(B||B===""){var V=B[u];if(V)return V.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var H=-1,ie=function G(){for(;++H=0;--G){var Q=this.tryEntries[G],he=Q.completion;if(Q.tryLoc==="root")return ie("end");if(Q.tryLoc<=this.prev){var $e=r.call(Q,"catchLoc"),Ce=r.call(Q,"finallyLoc");if($e&&Ce){if(this.prev=0;--ie){var G=this.tryEntries[ie];if(G.tryLoc<=this.prev&&r.call(G,"finallyLoc")&&this.prev=0;--H){var ie=this.tryEntries[H];if(ie.finallyLoc===V)return this.complete(ie.completion,ie.afterLoc),te(ie),$}},catch:function(V){for(var H=this.tryEntries.length-1;H>=0;--H){var ie=this.tryEntries[H];if(ie.tryLoc===V){var G=ie.completion;if(G.type==="throw"){var Q=G.arg;te(ie)}return Q}}throw Error("illegal catch attempt")},delegateYield:function(V,H,ie){return this.delegate={iterator:we(V),resultName:H,nextLoc:ie},this.method==="next"&&(this.arg=t),$}},e}function T_(t,e,n,r,i,o,u){try{var l=t[o](u),d=l.value}catch(h){n(h);return}l.done?e(d):Promise.resolve(d).then(r,i)}function vH(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function u(d){T_(o,r,i,u,l,"next",d)}function l(d){T_(o,r,i,u,l,"throw",d)}u(void 0)})}}function bH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wH(t,e){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(i,o){n._xhr.onload=function(){i(new NH(n._xhr))},n._xhr.onerror=function(u){o(u)},n._xhr.send(r)})}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})(),NH=(function(){function t(e){IO(this,t),this._xhr=e}return NO(t,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(n){return this._xhr.getResponseHeader(n)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}])})();function s1(t){"@babel/helpers - typeof";return s1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s1(t)}function MH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kH(t,e){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return BH(this,e),r=Ng(Ng({},R_),r),zH(this,e,[n,r])}return WH(e,t),HH(e,null,[{key:"terminate",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i=Ng(Ng({},R_),i),Vw.terminate(r,i)}}])})(Vw);const Sn=Ae.createContext({setSession(t){},options:{}});class QH{async setItem(e,n){return localStorage.setItem(e,n)}async getItem(e){return localStorage.getItem(e)}async removeItem(e){return localStorage.removeItem(e)}}async function XH(t,e,n){n.setItem("fb_microservice_"+t,JSON.stringify(e))}function ZH(t,e,n){n.setItem("fb_selected_workspace_"+t,JSON.stringify(e))}async function ez(t,e){let n=null;try{n=JSON.parse(await e.getItem("fb_microservice_"+t))}catch{}return n}async function tz(t,e){let n=null;try{n=JSON.parse(await e.getItem("fb_selected_workspace_"+t))}catch{}return n}function nz({children:t,remote:e,selectedUrw:n,identifier:r,token:i,preferredAcceptLanguage:o,queryClient:u,defaultExecFn:l,socketEnabled:d,socket:h,credentialStorage:g,prefix:y}){var V;const[w,v]=T.useState(!1),[C,E]=T.useState(),[$,O]=T.useState(""),[_,R]=T.useState(),k=T.useRef(g||new QH),P=async()=>{const H=await tz(r,k.current),ie=await ez(r,k.current);R(H),E(ie),v(!0)};T.useEffect(()=>{P()},[]);const[L,F]=T.useState([]),[q,Y]=T.useState(l),X=!!C,ue=H=>{ZH(r,H,k.current),R(H)},me=H=>{E(()=>(XH(r,H,k.current),H))},te={headers:{authorization:i||(C==null?void 0:C.token)},prefix:($||e)+(y||"")};if(_)te.headers["workspace-id"]=_.workspaceId,te.headers["role-id"]=_.roleId;else if(n)te.headers["workspace-id"]=n.workspaceId,te.headers["role-id"]=n.roleId;else if(C!=null&&C.userWorkspaces&&C.userWorkspaces.length>0){const H=C.userWorkspaces[0];te.headers["workspace-id"]=H.workspaceId,te.headers["role-id"]=H.roleId}o&&(te.headers["accept-language"]=o),T.useEffect(()=>{i&&E({...C||{},token:i})},[i]);const be=()=>{var H;E(null),(H=k.current)==null||H.removeItem("fb_microservice_"+r),ue(void 0)},we=()=>{F([])},{socketState:B}=rz(e,(V=te.headers)==null?void 0:V.authorization,te.headers["workspace-id"],u,d);return N.jsx(Sn.Provider,{value:{options:te,signout:be,setOverrideRemoteUrl:O,overrideRemoteUrl:$,setSession:me,socketState:B,checked:w,selectedUrw:_,selectUrw:ue,session:C,preferredAcceptLanguage:o,activeUploads:L,setActiveUploads:F,execFn:q,setExecFn:Y,discardActiveUploads:we,isAuthenticated:X},children:t})}function rz(t,e,n,r,i=!0){const[o,u]=T.useState({state:"unknown"});return T.useEffect(()=>{if(!t||!e||e==="undefined"||i===!1)return;const l=t.replace("https","wss").replace("http","ws");let d;try{d=new WebSocket(`${l}ws?token=${e}&workspaceId=${n}`),d.onerror=function(h){u({state:"error"})},d.onclose=function(h){u({state:"closed"})},d.onmessage=function(h){try{const g=JSON.parse(h.data);g!=null&&g.cacheKey&&r.invalidateQueries(g==null?void 0:g.cacheKey)}catch{console.error("Socket message parsing error",h)}},d.onopen=function(h){u({state:"connected"})}}catch{}return()=>{(d==null?void 0:d.readyState)===1&&d.close()}},[e,n]),{socketState:o}}function Ta(t){if(!t)return{};const e={};return t.startIndex&&(e.startIndex=t.startIndex),t.itemsPerPage&&(e.itemsPerPage=t.itemsPerPage),t.query&&(e.query=t.query),t.deep&&(e.deep=t.deep),t.jsonQuery&&(e.jsonQuery=JSON.stringify(t.jsonQuery)),t.withPreloads&&(e.withPreloads=t.withPreloads),t.uniqueId&&(e.uniqueId=t.uniqueId),t.sort&&(e.sort=t.sort),e}const xI=T.createContext(null),iz=xI.Provider;function oo(){return T.useContext(xI)}function az({children:t,queryClient:e,prefix:n,mockServer:r,config:i,locale:o}){return N.jsx(nz,{socket:!0,preferredAcceptLanguage:o||i.interfaceLanguage,identifier:"fireback",prefix:n,queryClient:e,remote:Ci.REMOTE_SERVICE,defaultExecFn:void 0,children:N.jsx(oz,{children:t,mockServer:r})})}const oz=({children:t,mockServer:e})=>{var o;const{options:n,session:r}=T.useContext(Sn),i=T.useRef(new _O((o=Ci.REMOTE_SERVICE)==null?void 0:o.replace(/\/$/,"")));return i.current.defaultHeaders={authorization:r==null?void 0:r.token,"workspace-id":n==null?void 0:n.headers["workspace-id"]},N.jsx(iz,{value:i.current,children:t})};/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. @@ -93,7 +93,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function X0(){return X0=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function SO(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function YH(){return Math.random().toString(36).substr(2,8)}function b_(t,e){return{usr:t.state,key:t.key,idx:e}}function UE(t,e,n,r){return n===void 0&&(n=null),X0({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Yp(e):e,{state:n,key:e&&e.key||r||YH()})}function Dw(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Yp(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function QH(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,u=i.history,l=Cf.Pop,d=null,h=g();h==null&&(h=0,u.replaceState(X0({},u.state,{idx:h}),""));function g(){return(u.state||{idx:null}).idx}function y(){l=Cf.Pop;let $=g(),O=$==null?null:$-h;h=$,d&&d({action:l,location:E.location,delta:O})}function w($,O){l=Cf.Push;let _=UE(E.location,$,O);n&&n(_,$),h=g()+1;let R=b_(_,h),k=E.createHref(_);try{u.pushState(R,"",k)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(k)}o&&d&&d({action:l,location:E.location,delta:1})}function v($,O){l=Cf.Replace;let _=UE(E.location,$,O);n&&n(_,$),h=g();let R=b_(_,h),k=E.createHref(_);u.replaceState(R,"",k),o&&d&&d({action:l,location:E.location,delta:0})}function C($){let O=i.location.origin!=="null"?i.location.origin:i.location.href,_=typeof $=="string"?$:Dw($);return _=_.replace(/ $/,"%20"),Cr(O,"No window.location.(origin|href) available to create URL for href: "+_),new URL(_,O)}let E={get action(){return l},get location(){return t(i,u)},listen($){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(v_,y),d=$,()=>{i.removeEventListener(v_,y),d=null}},createHref($){return e(i,$)},createURL:C,encodeLocation($){let O=C($);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:w,replace:v,go($){return u.go($)}};return E}var w_;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(w_||(w_={}));function JH(t,e,n){return n===void 0&&(n="/"),XH(t,e,n)}function XH(t,e,n,r){let i=typeof e=="string"?Yp(e):e,o=CO(i.pathname||"/",n);if(o==null)return null;let u=hI(t);ZH(u);let l=null;for(let d=0;l==null&&d{let d={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:u,route:o};d.relativePath.startsWith("/")&&(Cr(d.relativePath.startsWith(r),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(r.length));let h=Tf([r,d.relativePath]),g=n.concat(d);o.children&&o.children.length>0&&(Cr(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),hI(o.children,e,g,h)),!(o.path==null&&!o.index)&&e.push({path:h,score:oz(h,o.index),routesMeta:g})};return t.forEach((o,u)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,u);else for(let d of pI(o.path))i(o,u,d)}),e}function pI(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let u=pI(r.join("/")),l=[];return l.push(...u.map(d=>d===""?o:[o,d].join("/"))),i&&l.push(...u),l.map(d=>t.startsWith("/")&&d===""?"/":d)}function ZH(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:sz(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ez=/^:[\w-]+$/,tz=3,nz=2,rz=1,iz=10,az=-2,S_=t=>t==="*";function oz(t,e){let n=t.split("/"),r=n.length;return n.some(S_)&&(r+=az),e&&(r+=nz),n.filter(i=>!S_(i)).reduce((i,o)=>i+(ez.test(o)?tz:o===""?rz:iz),r)}function sz(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function uz(t,e,n){let{routesMeta:r}=t,i={},o="/",u=[];for(let l=0;l{let{paramName:w,isOptional:v}=g;if(w==="*"){let E=l[y]||"";u=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const C=l[y];return v&&!C?h[w]=void 0:h[w]=(C||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:u,pattern:t}}function cz(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),SO(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,l,d)=>(r.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function fz(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return SO(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function CO(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function dz(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?Yp(t):t;return{pathname:n?n.startsWith("/")?n:hz(n,e):e,search:gz(r),hash:yz(i)}}function hz(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function bC(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function pz(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function $O(t,e){let n=pz(t);return e?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function EO(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=Yp(t):(i=X0({},t),Cr(!i.pathname||!i.pathname.includes("?"),bC("?","pathname","search",i)),Cr(!i.pathname||!i.pathname.includes("#"),bC("#","pathname","hash",i)),Cr(!i.search||!i.search.includes("#"),bC("#","search","hash",i)));let o=t===""||i.pathname==="",u=o?"/":i.pathname,l;if(u==null)l=n;else{let y=e.length-1;if(!r&&u.startsWith("..")){let w=u.split("/");for(;w[0]==="..";)w.shift(),y-=1;i.pathname=w.join("/")}l=y>=0?e[y]:"/"}let d=dz(i,l),h=u&&u!=="/"&&u.endsWith("/"),g=(o||u===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||g)&&(d.pathname+="/"),d}const Tf=t=>t.join("/").replace(/\/\/+/g,"/"),mz=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),gz=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,yz=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function vz(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const mI=["post","put","patch","delete"];new Set(mI);const bz=["get",...mI];new Set(bz);/** + */function u1(){return u1=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function MO(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function uz(){return Math.random().toString(36).substr(2,8)}function I_(t,e){return{usr:t.state,key:t.key,idx:e}}function XE(t,e,n,r){return n===void 0&&(n=null),u1({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?nm(e):e,{state:n,key:e&&e.key||r||uz()})}function Ww(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function nm(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function lz(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,u=i.history,l=xf.Pop,d=null,h=g();h==null&&(h=0,u.replaceState(u1({},u.state,{idx:h}),""));function g(){return(u.state||{idx:null}).idx}function y(){l=xf.Pop;let $=g(),O=$==null?null:$-h;h=$,d&&d({action:l,location:E.location,delta:O})}function w($,O){l=xf.Push;let _=XE(E.location,$,O);n&&n(_,$),h=g()+1;let R=I_(_,h),k=E.createHref(_);try{u.pushState(R,"",k)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(k)}o&&d&&d({action:l,location:E.location,delta:1})}function v($,O){l=xf.Replace;let _=XE(E.location,$,O);n&&n(_,$),h=g();let R=I_(_,h),k=E.createHref(_);u.replaceState(R,"",k),o&&d&&d({action:l,location:E.location,delta:0})}function C($){let O=i.location.origin!=="null"?i.location.origin:i.location.href,_=typeof $=="string"?$:Ww($);return _=_.replace(/ $/,"%20"),Cr(O,"No window.location.(origin|href) available to create URL for href: "+_),new URL(_,O)}let E={get action(){return l},get location(){return t(i,u)},listen($){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(P_,y),d=$,()=>{i.removeEventListener(P_,y),d=null}},createHref($){return e(i,$)},createURL:C,encodeLocation($){let O=C($);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:w,replace:v,go($){return u.go($)}};return E}var N_;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(N_||(N_={}));function cz(t,e,n){return n===void 0&&(n="/"),fz(t,e,n)}function fz(t,e,n,r){let i=typeof e=="string"?nm(e):e,o=kO(i.pathname||"/",n);if(o==null)return null;let u=OI(t);dz(u);let l=null;for(let d=0;l==null&&d{let d={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:u,route:o};d.relativePath.startsWith("/")&&(Cr(d.relativePath.startsWith(r),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(r.length));let h=Rf([r,d.relativePath]),g=n.concat(d);o.children&&o.children.length>0&&(Cr(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),OI(o.children,e,g,h)),!(o.path==null&&!o.index)&&e.push({path:h,score:bz(h,o.index),routesMeta:g})};return t.forEach((o,u)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,u);else for(let d of TI(o.path))i(o,u,d)}),e}function TI(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let u=TI(r.join("/")),l=[];return l.push(...u.map(d=>d===""?o:[o,d].join("/"))),i&&l.push(...u),l.map(d=>t.startsWith("/")&&d===""?"/":d)}function dz(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:wz(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const hz=/^:[\w-]+$/,pz=3,mz=2,gz=1,yz=10,vz=-2,M_=t=>t==="*";function bz(t,e){let n=t.split("/"),r=n.length;return n.some(M_)&&(r+=vz),e&&(r+=mz),n.filter(i=>!M_(i)).reduce((i,o)=>i+(hz.test(o)?pz:o===""?gz:yz),r)}function wz(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function Sz(t,e,n){let{routesMeta:r}=t,i={},o="/",u=[];for(let l=0;l{let{paramName:w,isOptional:v}=g;if(w==="*"){let E=l[y]||"";u=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const C=l[y];return v&&!C?h[w]=void 0:h[w]=(C||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:u,pattern:t}}function $z(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),MO(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,l,d)=>(r.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function Ez(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return MO(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function kO(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function xz(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?nm(t):t;return{pathname:n?n.startsWith("/")?n:Oz(n,e):e,search:Az(r),hash:Rz(i)}}function Oz(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function RC(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Tz(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function DO(t,e){let n=Tz(t);return e?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function FO(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=nm(t):(i=u1({},t),Cr(!i.pathname||!i.pathname.includes("?"),RC("?","pathname","search",i)),Cr(!i.pathname||!i.pathname.includes("#"),RC("#","pathname","hash",i)),Cr(!i.search||!i.search.includes("#"),RC("#","search","hash",i)));let o=t===""||i.pathname==="",u=o?"/":i.pathname,l;if(u==null)l=n;else{let y=e.length-1;if(!r&&u.startsWith("..")){let w=u.split("/");for(;w[0]==="..";)w.shift(),y-=1;i.pathname=w.join("/")}l=y>=0?e[y]:"/"}let d=xz(i,l),h=u&&u!=="/"&&u.endsWith("/"),g=(o||u===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||g)&&(d.pathname+="/"),d}const Rf=t=>t.join("/").replace(/\/\/+/g,"/"),_z=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Az=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Rz=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Pz(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const _I=["post","put","patch","delete"];new Set(_I);const Iz=["get",..._I];new Set(Iz);/** * React Router v6.30.0 * * Copyright (c) Remix Software Inc. @@ -102,7 +102,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Z0(){return Z0=Object.assign?Object.assign.bind():function(t){for(var e=1;e{l.current=!0}),T.useCallback(function(h,g){if(g===void 0&&(g={}),!l.current)return;if(typeof h=="number"){r.go(h);return}let y=EO(h,JSON.parse(u),o,g.relative==="path");t==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:Tf([e,y.pathname])),(g.replace?r.replace:r.push)(y,g.state,g)},[e,r,u,o,t])}function $z(){let{matches:t}=T.useContext(Ml),e=t[t.length-1];return e?e.params:{}}function vI(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=T.useContext(kf),{matches:i}=T.useContext(Ml),{pathname:o}=kl(),u=JSON.stringify($O(i,r.v7_relativeSplatPath));return T.useMemo(()=>EO(t,JSON.parse(u),o,n==="path"),[t,u,o,n])}function Ez(t,e){return xz(t,e)}function xz(t,e,n,r){ey()||Cr(!1);let{navigator:i,static:o}=T.useContext(kf),{matches:u}=T.useContext(Ml),l=u[u.length-1],d=l?l.params:{};l&&l.pathname;let h=l?l.pathnameBase:"/";l&&l.route;let g=kl(),y;if(e){var w;let O=typeof e=="string"?Yp(e):e;h==="/"||(w=O.pathname)!=null&&w.startsWith(h)||Cr(!1),y=O}else y=g;let v=y.pathname||"/",C=v;if(h!=="/"){let O=h.replace(/^\//,"").split("/");C="/"+v.replace(/^\//,"").split("/").slice(O.length).join("/")}let E=JH(t,{pathname:C}),$=Rz(E&&E.map(O=>Object.assign({},O,{params:Object.assign({},d,O.params),pathname:Tf([h,i.encodeLocation?i.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?h:Tf([h,i.encodeLocation?i.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),u,n,r);return e&&$?T.createElement(yS.Provider,{value:{location:Z0({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:Cf.Pop}},$):$}function Oz(){let t=Mz(),e=vz(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},e),n?T.createElement("pre",{style:i},n):null,null)}const Tz=T.createElement(Oz,null);class _z extends T.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?T.createElement(Ml.Provider,{value:this.props.routeContext},T.createElement(gI.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Az(t){let{routeContext:e,match:n,children:r}=t,i=T.useContext(xO);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(Ml.Provider,{value:e},r)}function Rz(t,e,n,r){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var o;if(!n)return null;if(n.errors)t=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let u=t,l=(i=n)==null?void 0:i.errors;if(l!=null){let g=u.findIndex(y=>y.route.id&&(l==null?void 0:l[y.route.id])!==void 0);g>=0||Cr(!1),u=u.slice(0,Math.min(u.length,g+1))}let d=!1,h=-1;if(n&&r&&r.v7_partialHydration)for(let g=0;g=0?u=u.slice(0,h+1):u=[u[0]];break}}}return u.reduceRight((g,y,w)=>{let v,C=!1,E=null,$=null;n&&(v=l&&y.route.id?l[y.route.id]:void 0,E=y.route.errorElement||Tz,d&&(h<0&&w===0?(Dz("route-fallback"),C=!0,$=null):h===w&&(C=!0,$=y.route.hydrateFallbackElement||null)));let O=e.concat(u.slice(0,w+1)),_=()=>{let R;return v?R=E:C?R=$:y.route.Component?R=T.createElement(y.route.Component,null):y.route.element?R=y.route.element:R=g,T.createElement(Az,{match:y,routeContext:{outlet:g,matches:O,isDataRoute:n!=null},children:R})};return n&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?T.createElement(_z,{location:n.location,revalidation:n.revalidation,component:E,error:v,children:_(),routeContext:{outlet:null,matches:O,isDataRoute:!0}}):_()},null)}var bI=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(bI||{}),wI=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(wI||{});function Pz(t){let e=T.useContext(xO);return e||Cr(!1),e}function Iz(t){let e=T.useContext(wz);return e||Cr(!1),e}function Nz(t){let e=T.useContext(Ml);return e||Cr(!1),e}function SI(t){let e=Nz(),n=e.matches[e.matches.length-1];return n.route.id||Cr(!1),n.route.id}function Mz(){var t;let e=T.useContext(gI),n=Iz(),r=SI();return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function kz(){let{router:t}=Pz(bI.UseNavigateStable),e=SI(wI.UseNavigateStable),n=T.useRef(!1);return yI(()=>{n.current=!0}),T.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,Z0({fromRouteId:e},o)))},[t,e])}const C_={};function Dz(t,e,n){C_[t]||(C_[t]=!0)}function Fz(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function jE(t){let{to:e,replace:n,state:r,relative:i}=t;ey()||Cr(!1);let{future:o,static:u}=T.useContext(kf),{matches:l}=T.useContext(Ml),{pathname:d}=kl(),h=OO(),g=EO(e,$O(l,o.v7_relativeSplatPath),d,i==="path"),y=JSON.stringify(g);return T.useEffect(()=>h(JSON.parse(y),{replace:n,state:r,relative:i}),[h,y,i,n,r]),null}function mn(t){Cr(!1)}function Lz(t){let{basename:e="/",children:n=null,location:r,navigationType:i=Cf.Pop,navigator:o,static:u=!1,future:l}=t;ey()&&Cr(!1);let d=e.replace(/^\/*/,"/"),h=T.useMemo(()=>({basename:d,navigator:o,static:u,future:Z0({v7_relativeSplatPath:!1},l)}),[d,l,o,u]);typeof r=="string"&&(r=Yp(r));let{pathname:g="/",search:y="",hash:w="",state:v=null,key:C="default"}=r,E=T.useMemo(()=>{let $=CO(g,d);return $==null?null:{location:{pathname:$,search:y,hash:w,state:v,key:C},navigationType:i}},[d,g,y,w,v,C,i]);return E==null?null:T.createElement(kf.Provider,{value:h},T.createElement(yS.Provider,{children:n,value:E}))}function $_(t){let{children:e,location:n}=t;return Ez(BE(e),n)}new Promise(()=>{});function BE(t,e){e===void 0&&(e=[]);let n=[];return T.Children.forEach(t,(r,i)=>{if(!T.isValidElement(r))return;let o=[...e,i];if(r.type===T.Fragment){n.push.apply(n,BE(r.props.children,o));return}r.type!==mn&&Cr(!1),!r.props.index||!r.props.children||Cr(!1);let u={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(u.children=BE(r.props.children,o)),n.push(u)}),n}/** + */function l1(){return l1=Object.assign?Object.assign.bind():function(t){for(var e=1;e{l.current=!0}),T.useCallback(function(h,g){if(g===void 0&&(g={}),!l.current)return;if(typeof h=="number"){r.go(h);return}let y=FO(h,JSON.parse(u),o,g.relative==="path");t==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:Rf([e,y.pathname])),(g.replace?r.replace:r.push)(y,g.state,g)},[e,r,u,o,t])}function Dz(){let{matches:t}=T.useContext(Fl),e=t[t.length-1];return e?e.params:{}}function PI(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=T.useContext(Ff),{matches:i}=T.useContext(Fl),{pathname:o}=Ll(),u=JSON.stringify(DO(i,r.v7_relativeSplatPath));return T.useMemo(()=>FO(t,JSON.parse(u),o,n==="path"),[t,u,o,n])}function Fz(t,e){return Lz(t,e)}function Lz(t,e,n,r){ly()||Cr(!1);let{navigator:i,static:o}=T.useContext(Ff),{matches:u}=T.useContext(Fl),l=u[u.length-1],d=l?l.params:{};l&&l.pathname;let h=l?l.pathnameBase:"/";l&&l.route;let g=Ll(),y;if(e){var w;let O=typeof e=="string"?nm(e):e;h==="/"||(w=O.pathname)!=null&&w.startsWith(h)||Cr(!1),y=O}else y=g;let v=y.pathname||"/",C=v;if(h!=="/"){let O=h.replace(/^\//,"").split("/");C="/"+v.replace(/^\//,"").split("/").slice(O.length).join("/")}let E=cz(t,{pathname:C}),$=Hz(E&&E.map(O=>Object.assign({},O,{params:Object.assign({},d,O.params),pathname:Rf([h,i.encodeLocation?i.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?h:Rf([h,i.encodeLocation?i.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),u,n,r);return e&&$?T.createElement(_S.Provider,{value:{location:l1({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:xf.Pop}},$):$}function Uz(){let t=Wz(),e=Pz(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},e),n?T.createElement("pre",{style:i},n):null,null)}const jz=T.createElement(Uz,null);class Bz extends T.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?T.createElement(Fl.Provider,{value:this.props.routeContext},T.createElement(AI.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qz(t){let{routeContext:e,match:n,children:r}=t,i=T.useContext(LO);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(Fl.Provider,{value:e},r)}function Hz(t,e,n,r){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var o;if(!n)return null;if(n.errors)t=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let u=t,l=(i=n)==null?void 0:i.errors;if(l!=null){let g=u.findIndex(y=>y.route.id&&(l==null?void 0:l[y.route.id])!==void 0);g>=0||Cr(!1),u=u.slice(0,Math.min(u.length,g+1))}let d=!1,h=-1;if(n&&r&&r.v7_partialHydration)for(let g=0;g=0?u=u.slice(0,h+1):u=[u[0]];break}}}return u.reduceRight((g,y,w)=>{let v,C=!1,E=null,$=null;n&&(v=l&&y.route.id?l[y.route.id]:void 0,E=y.route.errorElement||jz,d&&(h<0&&w===0?(Yz("route-fallback"),C=!0,$=null):h===w&&(C=!0,$=y.route.hydrateFallbackElement||null)));let O=e.concat(u.slice(0,w+1)),_=()=>{let R;return v?R=E:C?R=$:y.route.Component?R=T.createElement(y.route.Component,null):y.route.element?R=y.route.element:R=g,T.createElement(qz,{match:y,routeContext:{outlet:g,matches:O,isDataRoute:n!=null},children:R})};return n&&(y.route.ErrorBoundary||y.route.errorElement||w===0)?T.createElement(Bz,{location:n.location,revalidation:n.revalidation,component:E,error:v,children:_(),routeContext:{outlet:null,matches:O,isDataRoute:!0}}):_()},null)}var II=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(II||{}),NI=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(NI||{});function zz(t){let e=T.useContext(LO);return e||Cr(!1),e}function Vz(t){let e=T.useContext(Nz);return e||Cr(!1),e}function Gz(t){let e=T.useContext(Fl);return e||Cr(!1),e}function MI(t){let e=Gz(),n=e.matches[e.matches.length-1];return n.route.id||Cr(!1),n.route.id}function Wz(){var t;let e=T.useContext(AI),n=Vz(),r=MI();return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function Kz(){let{router:t}=zz(II.UseNavigateStable),e=MI(NI.UseNavigateStable),n=T.useRef(!1);return RI(()=>{n.current=!0}),T.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,l1({fromRouteId:e},o)))},[t,e])}const k_={};function Yz(t,e,n){k_[t]||(k_[t]=!0)}function Jz(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function ZE(t){let{to:e,replace:n,state:r,relative:i}=t;ly()||Cr(!1);let{future:o,static:u}=T.useContext(Ff),{matches:l}=T.useContext(Fl),{pathname:d}=Ll(),h=UO(),g=FO(e,DO(l,o.v7_relativeSplatPath),d,i==="path"),y=JSON.stringify(g);return T.useEffect(()=>h(JSON.parse(y),{replace:n,state:r,relative:i}),[h,y,i,n,r]),null}function mn(t){Cr(!1)}function Qz(t){let{basename:e="/",children:n=null,location:r,navigationType:i=xf.Pop,navigator:o,static:u=!1,future:l}=t;ly()&&Cr(!1);let d=e.replace(/^\/*/,"/"),h=T.useMemo(()=>({basename:d,navigator:o,static:u,future:l1({v7_relativeSplatPath:!1},l)}),[d,l,o,u]);typeof r=="string"&&(r=nm(r));let{pathname:g="/",search:y="",hash:w="",state:v=null,key:C="default"}=r,E=T.useMemo(()=>{let $=kO(g,d);return $==null?null:{location:{pathname:$,search:y,hash:w,state:v,key:C},navigationType:i}},[d,g,y,w,v,C,i]);return E==null?null:T.createElement(Ff.Provider,{value:h},T.createElement(_S.Provider,{children:n,value:E}))}function D_(t){let{children:e,location:n}=t;return Fz(ex(e),n)}new Promise(()=>{});function ex(t,e){e===void 0&&(e=[]);let n=[];return T.Children.forEach(t,(r,i)=>{if(!T.isValidElement(r))return;let o=[...e,i];if(r.type===T.Fragment){n.push.apply(n,ex(r.props.children,o));return}r.type!==mn&&Cr(!1),!r.props.index||!r.props.children||Cr(!1);let u={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(u.children=ex(r.props.children,o)),n.push(u)}),n}/** * React Router DOM v6.30.0 * * Copyright (c) Remix Software Inc. @@ -111,7 +111,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function qE(){return qE=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function jz(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Bz(t,e){return t.button===0&&(!e||e==="_self")&&!jz(t)}const qz=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Hz="6";try{window.__reactRouterVersion=Hz}catch{}const zz="startTransition",E_=wE[zz];function Vz(t){let{basename:e,children:n,future:r,window:i}=t,o=T.useRef();o.current==null&&(o.current=KH({window:i,v5Compat:!0}));let u=o.current,[l,d]=T.useState({action:u.action,location:u.location}),{v7_startTransition:h}=r||{},g=T.useCallback(y=>{h&&E_?E_(()=>d(y)):d(y)},[d,h]);return T.useLayoutEffect(()=>u.listen(g),[u,g]),T.useEffect(()=>Fz(r),[r]),T.createElement(Lz,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:u,future:r})}const Gz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Wz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,HE=T.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:o,replace:u,state:l,target:d,to:h,preventScrollReset:g,viewTransition:y}=e,w=Uz(e,qz),{basename:v}=T.useContext(kf),C,E=!1;if(typeof h=="string"&&Wz.test(h)&&(C=h,Gz))try{let R=new URL(window.location.href),k=h.startsWith("//")?new URL(R.protocol+h):new URL(h),P=CO(k.pathname,v);k.origin===R.origin&&P!=null?h=P+k.search+k.hash:E=!0}catch{}let $=Sz(h,{relative:i}),O=Kz(h,{replace:u,state:l,target:d,preventScrollReset:g,relative:i,viewTransition:y});function _(R){r&&r(R),R.defaultPrevented||O(R)}return T.createElement("a",qE({},w,{href:C||$,onClick:E||o?r:_,ref:n,target:d}))});var x_;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(x_||(x_={}));var O_;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(O_||(O_={}));function Kz(t,e){let{target:n,replace:r,state:i,preventScrollReset:o,relative:u,viewTransition:l}=e===void 0?{}:e,d=OO(),h=kl(),g=vI(t,{relative:u});return T.useCallback(y=>{if(Bz(y,n)){y.preventDefault();let w=r!==void 0?r:Dw(h)===Dw(g);d(t,{replace:w,state:i,preventScrollReset:o,relative:u,viewTransition:l})}},[h,d,g,r,i,n,t,o,u,l])}function zE(t,e){const n={};for(const[r,i]of Object.entries(e))typeof i=="string"?n[r]=`${t}.${i}`:typeof i=="object"&&i!==null&&(n[r]=i);return n}var xr,Lc,Uc,jc,Bc,qc,Hc,zc,Vc,Gc,Wc,Kc,Yc,Qc,Jc,Xc,Zc,ef,tf,L2,U2,nf,rf,af,bu,j2,of,sf,uf,lf,cf,ff,df,hf,B2;function Re(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Yz=0;function kt(t){return"__private_"+Yz+++"_"+t}var eh=kt("apiVersion"),th=kt("context"),nh=kt("id"),rh=kt("method"),ih=kt("params"),il=kt("data"),al=kt("error"),wC=kt("isJsonAppliable"),a0=kt("lateInitFields");class oa{get apiVersion(){return Re(this,eh)[eh]}set apiVersion(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,eh)[eh]=n?e:String(e)}setApiVersion(e){return this.apiVersion=e,this}get context(){return Re(this,th)[th]}set context(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,th)[th]=n?e:String(e)}setContext(e){return this.context=e,this}get id(){return Re(this,nh)[nh]}set id(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,nh)[nh]=n?e:String(e)}setId(e){return this.id=e,this}get method(){return Re(this,rh)[rh]}set method(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,rh)[rh]=n?e:String(e)}setMethod(e){return this.method=e,this}get params(){return Re(this,ih)[ih]}set params(e){Re(this,ih)[ih]=e}setParams(e){return this.params=e,this}get data(){return Re(this,il)[il]}set data(e){e instanceof oa.Data?Re(this,il)[il]=e:Re(this,il)[il]=new oa.Data(e)}setData(e){return this.data=e,this}get error(){return Re(this,al)[al]}set error(e){e instanceof oa.Error?Re(this,al)[al]=e:Re(this,al)[al]=new oa.Error(e)}setError(e){return this.error=e,this}constructor(e=void 0){if(Object.defineProperty(this,a0,{value:Jz}),Object.defineProperty(this,wC,{value:Qz}),Object.defineProperty(this,eh,{writable:!0,value:void 0}),Object.defineProperty(this,th,{writable:!0,value:void 0}),Object.defineProperty(this,nh,{writable:!0,value:void 0}),Object.defineProperty(this,rh,{writable:!0,value:void 0}),Object.defineProperty(this,ih,{writable:!0,value:null}),Object.defineProperty(this,il,{writable:!0,value:void 0}),Object.defineProperty(this,al,{writable:!0,value:void 0}),e==null){Re(this,a0)[a0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,wC)[wC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.apiVersion!==void 0&&(this.apiVersion=n.apiVersion),n.context!==void 0&&(this.context=n.context),n.id!==void 0&&(this.id=n.id),n.method!==void 0&&(this.method=n.method),n.params!==void 0&&(this.params=n.params),n.data!==void 0&&(this.data=n.data),n.error!==void 0&&(this.error=n.error),Re(this,a0)[a0](e)}toJSON(){return{apiVersion:Re(this,eh)[eh],context:Re(this,th)[th],id:Re(this,nh)[nh],method:Re(this,rh)[rh],params:Re(this,ih)[ih],data:Re(this,il)[il],error:Re(this,al)[al]}}toString(){return JSON.stringify(this)}static get Fields(){return{apiVersion:"apiVersion",context:"context",id:"id",method:"method",params:"params",data$:"data",get data(){return zE("data",oa.Data.Fields)},error$:"error",get error(){return zE("error",oa.Error.Fields)}}}static from(e){return new oa(e)}static with(e){return new oa(e)}copyWith(e){return new oa({...this.toJSON(),...e})}clone(){return new oa(this.toJSON())}}xr=oa;function Qz(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function Jz(t={}){const e=t;e.data instanceof xr.Data||(this.data=new xr.Data(e.data||{})),e.error instanceof xr.Error||(this.error=new xr.Error(e.error||{}))}oa.Data=(Lc=kt("item"),Uc=kt("items"),jc=kt("editLink"),Bc=kt("selfLink"),qc=kt("kind"),Hc=kt("fields"),zc=kt("etag"),Vc=kt("cursor"),Gc=kt("id"),Wc=kt("lang"),Kc=kt("updated"),Yc=kt("currentItemCount"),Qc=kt("itemsPerPage"),Jc=kt("startIndex"),Xc=kt("totalItems"),Zc=kt("totalAvailableItems"),ef=kt("pageIndex"),tf=kt("totalPages"),L2=kt("isJsonAppliable"),class{get item(){return Re(this,Lc)[Lc]}set item(e){Re(this,Lc)[Lc]=e}setItem(e){return this.item=e,this}get items(){return Re(this,Uc)[Uc]}set items(e){Re(this,Uc)[Uc]=e}setItems(e){return this.items=e,this}get editLink(){return Re(this,jc)[jc]}set editLink(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,jc)[jc]=n?e:String(e)}setEditLink(e){return this.editLink=e,this}get selfLink(){return Re(this,Bc)[Bc]}set selfLink(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Bc)[Bc]=n?e:String(e)}setSelfLink(e){return this.selfLink=e,this}get kind(){return Re(this,qc)[qc]}set kind(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,qc)[qc]=n?e:String(e)}setKind(e){return this.kind=e,this}get fields(){return Re(this,Hc)[Hc]}set fields(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Hc)[Hc]=n?e:String(e)}setFields(e){return this.fields=e,this}get etag(){return Re(this,zc)[zc]}set etag(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,zc)[zc]=n?e:String(e)}setEtag(e){return this.etag=e,this}get cursor(){return Re(this,Vc)[Vc]}set cursor(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Vc)[Vc]=n?e:String(e)}setCursor(e){return this.cursor=e,this}get id(){return Re(this,Gc)[Gc]}set id(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Gc)[Gc]=n?e:String(e)}setId(e){return this.id=e,this}get lang(){return Re(this,Wc)[Wc]}set lang(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Wc)[Wc]=n?e:String(e)}setLang(e){return this.lang=e,this}get updated(){return Re(this,Kc)[Kc]}set updated(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Kc)[Kc]=n?e:String(e)}setUpdated(e){return this.updated=e,this}get currentItemCount(){return Re(this,Yc)[Yc]}set currentItemCount(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,Yc)[Yc]=r)}setCurrentItemCount(e){return this.currentItemCount=e,this}get itemsPerPage(){return Re(this,Qc)[Qc]}set itemsPerPage(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,Qc)[Qc]=r)}setItemsPerPage(e){return this.itemsPerPage=e,this}get startIndex(){return Re(this,Jc)[Jc]}set startIndex(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,Jc)[Jc]=r)}setStartIndex(e){return this.startIndex=e,this}get totalItems(){return Re(this,Xc)[Xc]}set totalItems(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,Xc)[Xc]=r)}setTotalItems(e){return this.totalItems=e,this}get totalAvailableItems(){return Re(this,Zc)[Zc]}set totalAvailableItems(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,Zc)[Zc]=r)}setTotalAvailableItems(e){return this.totalAvailableItems=e,this}get pageIndex(){return Re(this,ef)[ef]}set pageIndex(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,ef)[ef]=r)}setPageIndex(e){return this.pageIndex=e,this}get totalPages(){return Re(this,tf)[tf]}set totalPages(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,tf)[tf]=r)}setTotalPages(e){return this.totalPages=e,this}constructor(e=void 0){if(Object.defineProperty(this,L2,{value:Xz}),Object.defineProperty(this,Lc,{writable:!0,value:null}),Object.defineProperty(this,Uc,{writable:!0,value:null}),Object.defineProperty(this,jc,{writable:!0,value:void 0}),Object.defineProperty(this,Bc,{writable:!0,value:void 0}),Object.defineProperty(this,qc,{writable:!0,value:void 0}),Object.defineProperty(this,Hc,{writable:!0,value:void 0}),Object.defineProperty(this,zc,{writable:!0,value:void 0}),Object.defineProperty(this,Vc,{writable:!0,value:void 0}),Object.defineProperty(this,Gc,{writable:!0,value:void 0}),Object.defineProperty(this,Wc,{writable:!0,value:void 0}),Object.defineProperty(this,Kc,{writable:!0,value:void 0}),Object.defineProperty(this,Yc,{writable:!0,value:void 0}),Object.defineProperty(this,Qc,{writable:!0,value:void 0}),Object.defineProperty(this,Jc,{writable:!0,value:void 0}),Object.defineProperty(this,Xc,{writable:!0,value:void 0}),Object.defineProperty(this,Zc,{writable:!0,value:void 0}),Object.defineProperty(this,ef,{writable:!0,value:void 0}),Object.defineProperty(this,tf,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,L2)[L2](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.item!==void 0&&(this.item=n.item),n.items!==void 0&&(this.items=n.items),n.editLink!==void 0&&(this.editLink=n.editLink),n.selfLink!==void 0&&(this.selfLink=n.selfLink),n.kind!==void 0&&(this.kind=n.kind),n.fields!==void 0&&(this.fields=n.fields),n.etag!==void 0&&(this.etag=n.etag),n.cursor!==void 0&&(this.cursor=n.cursor),n.id!==void 0&&(this.id=n.id),n.lang!==void 0&&(this.lang=n.lang),n.updated!==void 0&&(this.updated=n.updated),n.currentItemCount!==void 0&&(this.currentItemCount=n.currentItemCount),n.itemsPerPage!==void 0&&(this.itemsPerPage=n.itemsPerPage),n.startIndex!==void 0&&(this.startIndex=n.startIndex),n.totalItems!==void 0&&(this.totalItems=n.totalItems),n.totalAvailableItems!==void 0&&(this.totalAvailableItems=n.totalAvailableItems),n.pageIndex!==void 0&&(this.pageIndex=n.pageIndex),n.totalPages!==void 0&&(this.totalPages=n.totalPages)}toJSON(){return{item:Re(this,Lc)[Lc],items:Re(this,Uc)[Uc],editLink:Re(this,jc)[jc],selfLink:Re(this,Bc)[Bc],kind:Re(this,qc)[qc],fields:Re(this,Hc)[Hc],etag:Re(this,zc)[zc],cursor:Re(this,Vc)[Vc],id:Re(this,Gc)[Gc],lang:Re(this,Wc)[Wc],updated:Re(this,Kc)[Kc],currentItemCount:Re(this,Yc)[Yc],itemsPerPage:Re(this,Qc)[Qc],startIndex:Re(this,Jc)[Jc],totalItems:Re(this,Xc)[Xc],totalAvailableItems:Re(this,Zc)[Zc],pageIndex:Re(this,ef)[ef],totalPages:Re(this,tf)[tf]}}toString(){return JSON.stringify(this)}static get Fields(){return{item:"item",items:"items",editLink:"editLink",selfLink:"selfLink",kind:"kind",fields:"fields",etag:"etag",cursor:"cursor",id:"id",lang:"lang",updated:"updated",currentItemCount:"currentItemCount",itemsPerPage:"itemsPerPage",startIndex:"startIndex",totalItems:"totalItems",totalAvailableItems:"totalAvailableItems",pageIndex:"pageIndex",totalPages:"totalPages"}}static from(e){return new xr.Data(e)}static with(e){return new xr.Data(e)}copyWith(e){return new xr.Data({...this.toJSON(),...e})}clone(){return new xr.Data(this.toJSON())}});function Xz(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}oa.Error=(nf=kt("code"),rf=kt("message"),af=kt("messageTranslated"),bu=kt("errors"),j2=kt("isJsonAppliable"),U2=class CI{get code(){return Re(this,nf)[nf]}set code(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(Re(this,nf)[nf]=r)}setCode(e){return this.code=e,this}get message(){return Re(this,rf)[rf]}set message(e){Re(this,rf)[rf]=String(e)}setMessage(e){return this.message=e,this}get messageTranslated(){return Re(this,af)[af]}set messageTranslated(e){Re(this,af)[af]=String(e)}setMessageTranslated(e){return this.messageTranslated=e,this}get errors(){return Re(this,bu)[bu]}set errors(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof xr.Error.Errors?Re(this,bu)[bu]=e:Re(this,bu)[bu]=e.map(n=>new xr.Error.Errors(n)))}setErrors(e){return this.errors=e,this}constructor(e=void 0){if(Object.defineProperty(this,j2,{value:eV}),Object.defineProperty(this,nf,{writable:!0,value:0}),Object.defineProperty(this,rf,{writable:!0,value:""}),Object.defineProperty(this,af,{writable:!0,value:""}),Object.defineProperty(this,bu,{writable:!0,value:[]}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,j2)[j2](e))this.applyFromObject(e);else throw new CI("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.code!==void 0&&(this.code=n.code),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.errors!==void 0&&(this.errors=n.errors)}toJSON(){return{code:Re(this,nf)[nf],message:Re(this,rf)[rf],messageTranslated:Re(this,af)[af],errors:Re(this,bu)[bu]}}toString(){return JSON.stringify(this)}static get Fields(){return{code:"code",message:"message",messageTranslated:"messageTranslated",errors$:"errors",get errors(){return zE("error.errors[:i]",xr.Error.Errors.Fields)}}}static from(e){return new xr.Error(e)}static with(e){return new xr.Error(e)}copyWith(e){return new xr.Error({...this.toJSON(),...e})}clone(){return new xr.Error(this.toJSON())}},U2.Errors=(of=kt("domain"),sf=kt("reason"),uf=kt("message"),lf=kt("messageTranslated"),cf=kt("location"),ff=kt("locationType"),df=kt("extendedHelp"),hf=kt("sendReport"),B2=kt("isJsonAppliable"),class{get domain(){return Re(this,of)[of]}set domain(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,of)[of]=n?e:String(e)}setDomain(e){return this.domain=e,this}get reason(){return Re(this,sf)[sf]}set reason(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,sf)[sf]=n?e:String(e)}setReason(e){return this.reason=e,this}get message(){return Re(this,uf)[uf]}set message(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,uf)[uf]=n?e:String(e)}setMessage(e){return this.message=e,this}get messageTranslated(){return Re(this,lf)[lf]}set messageTranslated(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,lf)[lf]=n?e:String(e)}setMessageTranslated(e){return this.messageTranslated=e,this}get location(){return Re(this,cf)[cf]}set location(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,cf)[cf]=n?e:String(e)}setLocation(e){return this.location=e,this}get locationType(){return Re(this,ff)[ff]}set locationType(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,ff)[ff]=n?e:String(e)}setLocationType(e){return this.locationType=e,this}get extendedHelp(){return Re(this,df)[df]}set extendedHelp(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,df)[df]=n?e:String(e)}setExtendedHelp(e){return this.extendedHelp=e,this}get sendReport(){return Re(this,hf)[hf]}set sendReport(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,hf)[hf]=n?e:String(e)}setSendReport(e){return this.sendReport=e,this}constructor(e=void 0){if(Object.defineProperty(this,B2,{value:Zz}),Object.defineProperty(this,of,{writable:!0,value:void 0}),Object.defineProperty(this,sf,{writable:!0,value:void 0}),Object.defineProperty(this,uf,{writable:!0,value:void 0}),Object.defineProperty(this,lf,{writable:!0,value:void 0}),Object.defineProperty(this,cf,{writable:!0,value:void 0}),Object.defineProperty(this,ff,{writable:!0,value:void 0}),Object.defineProperty(this,df,{writable:!0,value:void 0}),Object.defineProperty(this,hf,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,B2)[B2](e))this.applyFromObject(e);else throw new U2("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.domain!==void 0&&(this.domain=n.domain),n.reason!==void 0&&(this.reason=n.reason),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.location!==void 0&&(this.location=n.location),n.locationType!==void 0&&(this.locationType=n.locationType),n.extendedHelp!==void 0&&(this.extendedHelp=n.extendedHelp),n.sendReport!==void 0&&(this.sendReport=n.sendReport)}toJSON(){return{domain:Re(this,of)[of],reason:Re(this,sf)[sf],message:Re(this,uf)[uf],messageTranslated:Re(this,lf)[lf],location:Re(this,cf)[cf],locationType:Re(this,ff)[ff],extendedHelp:Re(this,df)[df],sendReport:Re(this,hf)[hf]}}toString(){return JSON.stringify(this)}static get Fields(){return{domain:"domain",reason:"reason",message:"message",messageTranslated:"messageTranslated",location:"location",locationType:"locationType",extendedHelp:"extendedHelp",sendReport:"sendReport"}}static from(e){return new xr.Error.Errors(e)}static with(e){return new xr.Error.Errors(e)}copyWith(e){return new xr.Error.Errors({...this.toJSON(),...e})}clone(){return new xr.Error.Errors(this.toJSON())}}),U2);function Zz(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function eV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}class no extends oa{constructor(e){super(e),this.creator=void 0}setCreator(e){return this.creator=e,this}inject(e){var n,r,i,o,u,l,d,h;return this.applyFromObject(e),e!=null&&e.data&&(this.data||this.setData({}),Array.isArray(e==null?void 0:e.data.items)&&typeof this.creator<"u"&&this.creator!==null?(i=this.data)==null||i.setItems((r=(n=e==null?void 0:e.data)==null?void 0:n.items)==null?void 0:r.map(g=>{var y;return(y=this.creator)==null?void 0:y.call(this,g)})):typeof((o=e==null?void 0:e.data)==null?void 0:o.item)=="object"&&typeof this.creator<"u"&&this.creator!==null?(l=this.data)==null||l.setItem(this.creator((u=e==null?void 0:e.data)==null?void 0:u.item)):(h=this.data)==null||h.setItem((d=e==null?void 0:e.data)==null?void 0:d.item)),this}}function Vo(t,e,n){if(n&&n instanceof URLSearchParams)t+=`?${n.toString()}`;else if(n&&Object.keys(n).length){const r=new URLSearchParams(Object.entries(n).map(([i,o])=>[i,String(o)])).toString();t+=`?${r}`}return t}var e1;function Vn(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var tV=0;function Dl(t){return"__private_"+tV+++"_"+t}const $I=t=>{const e=zo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),Cl.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Bo({queryKey:[Cl.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class Cl{}e1=Cl;Cl.URL="/passports/available-methods";Cl.NewUrl=t=>Vo(e1.URL,void 0,t);Cl.Method="get";Cl.Fetch$=async(t,e,n,r)=>qo(r??e1.NewUrl(t),{method:e1.Method,...n||{}},e);Cl.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new $f(u)})=>{e=e||(l=>new $f(l));const u=await e1.Fetch$(n,r,t,o);return Ho(u,l=>{const d=new no;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Cl.Definition={name:"CheckPassportMethods",cliName:"check-passport-methods",url:"/passports/available-methods",method:"get",description:"Publicly available information to create the authentication form, and show users how they can signin or signup to the system. Based on the PassportMethod entities, it will compute the available methods for the user, considering their region (IP for example)",out:{envelope:"GResponse",fields:[{name:"email",type:"bool",default:!1},{name:"phone",type:"bool",default:!1},{name:"google",type:"bool",default:!1},{name:"facebook",type:"bool",default:!1},{name:"googleOAuthClientKey",type:"string"},{name:"facebookAppId",type:"string"},{name:"enabledRecaptcha2",type:"bool",default:!1},{name:"recaptcha2ClientKey",type:"string"}]}};var ah=Dl("email"),oh=Dl("phone"),sh=Dl("google"),uh=Dl("facebook"),lh=Dl("googleOAuthClientKey"),ch=Dl("facebookAppId"),fh=Dl("enabledRecaptcha2"),dh=Dl("recaptcha2ClientKey"),SC=Dl("isJsonAppliable");class $f{get email(){return Vn(this,ah)[ah]}set email(e){Vn(this,ah)[ah]=!!e}setEmail(e){return this.email=e,this}get phone(){return Vn(this,oh)[oh]}set phone(e){Vn(this,oh)[oh]=!!e}setPhone(e){return this.phone=e,this}get google(){return Vn(this,sh)[sh]}set google(e){Vn(this,sh)[sh]=!!e}setGoogle(e){return this.google=e,this}get facebook(){return Vn(this,uh)[uh]}set facebook(e){Vn(this,uh)[uh]=!!e}setFacebook(e){return this.facebook=e,this}get googleOAuthClientKey(){return Vn(this,lh)[lh]}set googleOAuthClientKey(e){Vn(this,lh)[lh]=String(e)}setGoogleOAuthClientKey(e){return this.googleOAuthClientKey=e,this}get facebookAppId(){return Vn(this,ch)[ch]}set facebookAppId(e){Vn(this,ch)[ch]=String(e)}setFacebookAppId(e){return this.facebookAppId=e,this}get enabledRecaptcha2(){return Vn(this,fh)[fh]}set enabledRecaptcha2(e){Vn(this,fh)[fh]=!!e}setEnabledRecaptcha2(e){return this.enabledRecaptcha2=e,this}get recaptcha2ClientKey(){return Vn(this,dh)[dh]}set recaptcha2ClientKey(e){Vn(this,dh)[dh]=String(e)}setRecaptcha2ClientKey(e){return this.recaptcha2ClientKey=e,this}constructor(e=void 0){if(Object.defineProperty(this,SC,{value:nV}),Object.defineProperty(this,ah,{writable:!0,value:!1}),Object.defineProperty(this,oh,{writable:!0,value:!1}),Object.defineProperty(this,sh,{writable:!0,value:!1}),Object.defineProperty(this,uh,{writable:!0,value:!1}),Object.defineProperty(this,lh,{writable:!0,value:""}),Object.defineProperty(this,ch,{writable:!0,value:""}),Object.defineProperty(this,fh,{writable:!0,value:!1}),Object.defineProperty(this,dh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Vn(this,SC)[SC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.email!==void 0&&(this.email=n.email),n.phone!==void 0&&(this.phone=n.phone),n.google!==void 0&&(this.google=n.google),n.facebook!==void 0&&(this.facebook=n.facebook),n.googleOAuthClientKey!==void 0&&(this.googleOAuthClientKey=n.googleOAuthClientKey),n.facebookAppId!==void 0&&(this.facebookAppId=n.facebookAppId),n.enabledRecaptcha2!==void 0&&(this.enabledRecaptcha2=n.enabledRecaptcha2),n.recaptcha2ClientKey!==void 0&&(this.recaptcha2ClientKey=n.recaptcha2ClientKey)}toJSON(){return{email:Vn(this,ah)[ah],phone:Vn(this,oh)[oh],google:Vn(this,sh)[sh],facebook:Vn(this,uh)[uh],googleOAuthClientKey:Vn(this,lh)[lh],facebookAppId:Vn(this,ch)[ch],enabledRecaptcha2:Vn(this,fh)[fh],recaptcha2ClientKey:Vn(this,dh)[dh]}}toString(){return JSON.stringify(this)}static get Fields(){return{email:"email",phone:"phone",google:"google",facebook:"facebook",googleOAuthClientKey:"googleOAuthClientKey",facebookAppId:"facebookAppId",enabledRecaptcha2:"enabledRecaptcha2",recaptcha2ClientKey:"recaptcha2ClientKey"}}static from(e){return new $f(e)}static with(e){return new $f(e)}copyWith(e){return new $f({...this.toJSON(),...e})}clone(){return new $f(this.toJSON())}}function nV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}class Vt{constructor(...e){this.visibility=null,this.parentId=null,this.linkerId=null,this.workspaceId=null,this.linkedId=null,this.uniqueId=null,this.userId=null,this.updated=null,this.created=null,this.createdFormatted=null,this.updatedFormatted=null}}Vt.Fields={visibility:"visibility",parentId:"parentId",linkerId:"linkerId",workspaceId:"workspaceId",linkedId:"linkedId",uniqueId:"uniqueId",userId:"userId",updated:"updated",created:"created",updatedFormatted:"updatedFormatted",createdFormatted:"createdFormatted"};class jp extends Vt{constructor(...e){super(...e),this.children=void 0,this.firstName=void 0,this.lastName=void 0,this.photo=void 0,this.gender=void 0,this.title=void 0,this.birthDate=void 0,this.avatar=void 0,this.lastIpAddress=void 0,this.primaryAddress=void 0}}jp.Navigation={edit(t,e){return`${e?"/"+e:".."}/user/edit/${t}`},create(t){return`${t?"/"+t:".."}/user/new`},single(t,e){return`${e?"/"+e:".."}/user/${t}`},query(t={},e){return`${e?"/"+e:".."}/users`},Redit:"user/edit/:uniqueId",Rcreate:"user/new",Rsingle:"user/:uniqueId",Rquery:"users",rPrimaryAddressCreate:"user/:linkerId/primary_address/new",rPrimaryAddressEdit:"user/:linkerId/primary_address/edit/:uniqueId",editPrimaryAddress(t,e,n){return`${n?"/"+n:""}/user/${t}/primary_address/edit/${e}`},createPrimaryAddress(t,e){return`${e?"/"+e:""}/user/${t}/primary_address/new`}};jp.definition={events:[{name:"Googoli2",description:"Googlievent",payload:{fields:[{name:"entity",type:"string",computedType:"string",gormMap:{}}]}}],rpc:{query:{qs:[{name:"withImages",type:"bool?",gormMap:{}}]}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"user",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"firstName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"lastName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"photo",type:"string",computedType:"string",gormMap:{}},{name:"gender",type:"int?",computedType:"number",gormMap:{}},{name:"title",type:"string",computedType:"string",gormMap:{}},{name:"birthDate",type:"date",computedType:"Date",gormMap:{}},{name:"avatar",type:"string",computedType:"string",gormMap:{}},{name:"lastIpAddress",description:"User last connecting ip address",type:"string",computedType:"string",gormMap:{}},{name:"primaryAddress",description:"User primary address location. Can be useful for simple projects that a user is associated with a single address.",type:"object",computedType:"UserPrimaryAddress",gormMap:{},"-":"UserPrimaryAddress",fields:[{name:"addressLine1",description:"Street address, building number",type:"string",computedType:"string",gormMap:{}},{name:"addressLine2",description:"Apartment, suite, floor (optional)",type:"string?",computedType:"string",gormMap:{}},{name:"city",description:"City or locality",type:"string?",computedType:"string",gormMap:{}},{name:"stateOrProvince",description:"State, region, or province",type:"string?",computedType:"string",gormMap:{}},{name:"postalCode",description:"ZIP or postal code",type:"string?",computedType:"string",gormMap:{}},{name:"countryCode",description:'ISO 3166-1 alpha-2 (e.g., \\"US\\", \\"DE\\")',type:"string?",computedType:"string",gormMap:{}}],linkedTo:"UserEntity"}],description:"Manage the users who are in the current app (root only)"};jp.Fields={...Vt.Fields,firstName:"firstName",lastName:"lastName",photo:"photo",gender:"gender",title:"title",birthDate:"birthDate",avatar:"avatar",lastIpAddress:"lastIpAddress",primaryAddress$:"primaryAddress",primaryAddress:{...Vt.Fields,addressLine1:"primaryAddress.addressLine1",addressLine2:"primaryAddress.addressLine2",city:"primaryAddress.city",stateOrProvince:"primaryAddress.stateOrProvince",postalCode:"primaryAddress.postalCode",countryCode:"primaryAddress.countryCode"}};class t1 extends Vt{constructor(...e){super(...e),this.children=void 0,this.thirdPartyVerifier=void 0,this.type=void 0,this.user=void 0,this.value=void 0,this.totpSecret=void 0,this.totpConfirmed=void 0,this.password=void 0,this.confirmed=void 0,this.accessToken=void 0}}t1.Navigation={edit(t,e){return`${e?"/"+e:".."}/passport/edit/${t}`},create(t){return`${t?"/"+t:".."}/passport/new`},single(t,e){return`${e?"/"+e:".."}/passport/${t}`},query(t={},e){return`${e?"/"+e:".."}/passports`},Redit:"passport/edit/:uniqueId",Rcreate:"passport/new",Rsingle:"passport/:uniqueId",Rquery:"passports"};t1.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"passport",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"thirdPartyVerifier",description:"When user creates account via oauth services such as google, it's essential to set the provider and do not allow passwordless logins if it's not via that specific provider.",type:"string",default:!1,computedType:"string",gormMap:{}},{name:"type",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"user",type:"one",target:"UserEntity",computedType:"UserEntity",gormMap:{}},{name:"value",type:"string",validate:"required",computedType:"string",gorm:"unique",gormMap:{}},{name:"totpSecret",description:"Store the secret of 2FA using time based dual factor authentication here for this specific passport. If set, during authorization will be asked.",type:"string",computedType:"string",gormMap:{}},{name:"totpConfirmed",description:"Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"password",type:"string",json:"-",yaml:"-",computedType:"string",gormMap:{}},{name:"confirmed",type:"bool?",computedType:"boolean",gormMap:{}},{name:"accessToken",type:"string",computedType:"string",gormMap:{}}],description:"Represent a mean to login in into the system, each user could have multiple passport (email, phone) and authenticate into the system."};t1.Fields={...Vt.Fields,thirdPartyVerifier:"thirdPartyVerifier",type:"type",user$:"user",user:jp.Fields,value:"value",totpSecret:"totpSecret",totpConfirmed:"totpConfirmed",password:"password",confirmed:"confirmed",accessToken:"accessToken"};class P1 extends Vt{constructor(...e){super(...e),this.children=void 0,this.name=void 0,this.description=void 0}}P1.Navigation={edit(t,e){return`${e?"/"+e:".."}/capability/edit/${t}`},create(t){return`${t?"/"+t:".."}/capability/new`},single(t,e){return`${e?"/"+e:".."}/capability/${t}`},query(t={},e){return`${e?"/"+e:".."}/capabilities`},Redit:"capability/edit/:uniqueId",Rcreate:"capability/new",Rsingle:"capability/:uniqueId",Rquery:"capabilities"};P1.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"capability",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"name",type:"string",computedType:"string",gormMap:{}},{name:"description",type:"string",translate:!0,computedType:"string",gormMap:{}}],cliShort:"cap",description:"Manage the capabilities inside the application, both builtin to core and custom defined ones"};P1.Fields={...Vt.Fields,name:"name",description:"description"};class kr extends Vt{constructor(...e){super(...e),this.children=void 0,this.name=void 0,this.capabilities=void 0,this.capabilitiesListId=void 0}}kr.Navigation={edit(t,e){return`${e?"/"+e:".."}/role/edit/${t}`},create(t){return`${t?"/"+t:".."}/role/new`},single(t,e){return`${e?"/"+e:".."}/role/${t}`},query(t={},e){return`${e?"/"+e:".."}/roles`},Redit:"role/edit/:uniqueId",Rcreate:"role/new",Rsingle:"role/:uniqueId",Rquery:"roles"};kr.definition={rpc:{query:{}},name:"role",features:{},messages:{roleNeedsOneCapability:{en:"Role atleast needs one capability to be selected."}},gormMap:{},fields:[{name:"name",type:"string",validate:"required,omitempty,min=1,max=200",computedType:"string",gormMap:{}},{name:"capabilities",type:"collection",target:"CapabilityEntity",module:"fireback",computedType:"CapabilityEntity[]",gormMap:{}}],description:"Manage roles within the workspaces, or root configuration"};kr.Fields={...Vt.Fields,name:"name",capabilitiesListId:"capabilitiesListId",capabilities$:"capabilities",capabilities:P1.Fields};class vS extends Vt{constructor(...e){super(...e),this.children=void 0,this.title=void 0,this.description=void 0,this.slug=void 0,this.role=void 0,this.roleId=void 0}}vS.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace-type/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace-type/new`},single(t,e){return`${e?"/"+e:".."}/workspace-type/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspace-types`},Redit:"workspace-type/edit/:uniqueId",Rcreate:"workspace-type/new",Rsingle:"workspace-type/:uniqueId",Rquery:"workspace-types"};vS.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspaceType",features:{mock:!1,msync:!1},security:{writeOnRoot:!0,readOnRoot:!0},messages:{cannotCreateWorkspaceType:{en:"You cannot create workspace type due to some validation errors."},cannotModifyWorkspaceType:{en:"You cannot modify workspace type due to some validation errors."},onlyRootRoleIsAccepted:{en:"You can only select a role which is created or belong to 'root' workspace."},roleIsNecessary:{en:"Role needs to be defined and exist."},roleIsNotAccessible:{en:"Role is not accessible unfortunately. Make sure you the role chose exists."},roleNeedsToHaveCapabilities:{en:"Role needs to have at least one capability before could be assigned."}},gormMap:{},fields:[{name:"title",type:"string",validate:"required,omitempty,min=1,max=250",translate:!0,computedType:"string",gormMap:{}},{name:"description",type:"string",translate:!0,computedType:"string",gormMap:{}},{name:"slug",type:"string",validate:"required,omitempty,min=2,max=50",computedType:"string",gormMap:{}},{name:"role",description:"The role which will be used to define the functionality of this workspace, Role needs to be created before hand, and only roles which belong to root workspace are possible to be selected",type:"one",target:"RoleEntity",validate:"required",computedType:"RoleEntity",gormMap:{}}],cliName:"type",description:"Defines a type for workspace, and the role which it can have as a whole. In systems with multiple types of services, e.g. student, teachers, schools this is useful to set those default types and limit the access of the users."};vS.Fields={...Vt.Fields,title:"title",description:"description",slug:"slug",roleId:"roleId",role$:"role",role:kr.Fields};class ty extends Vt{constructor(...e){super(...e),this.children=void 0,this.description=void 0,this.name=void 0,this.type=void 0,this.typeId=void 0}}ty.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace/new`},single(t,e){return`${e?"/"+e:".."}/workspace/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspaces`},Redit:"workspace/edit/:uniqueId",Rcreate:"workspace/new",Rsingle:"workspace/:uniqueId",Rquery:"workspaces"};ty.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0},gormMap:{},fields:[{name:"description",type:"string",computedType:"string",gormMap:{}},{name:"name",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"type",type:"one",target:"WorkspaceTypeEntity",validate:"required",computedType:"WorkspaceTypeEntity",gormMap:{}}],cliName:"ws",description:"Fireback general user role, workspaces services.",cte:!0};ty.Fields={...Vt.Fields,description:"description",name:"name",typeId:"typeId",type$:"type",type:vS.Fields};class Fg extends Vt{constructor(...e){super(...e),this.children=void 0,this.user=void 0,this.workspace=void 0,this.userPermissions=void 0,this.rolePermission=void 0,this.workspacePermissions=void 0}}Fg.Navigation={edit(t,e){return`${e?"/"+e:".."}/user-workspace/edit/${t}`},create(t){return`${t?"/"+t:".."}/user-workspace/new`},single(t,e){return`${e?"/"+e:".."}/user-workspace/${t}`},query(t={},e){return`${e?"/"+e:".."}/user-workspaces`},Redit:"user-workspace/edit/:uniqueId",Rcreate:"user-workspace/new",Rsingle:"user-workspace/:uniqueId",Rquery:"user-workspaces"};Fg.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"userWorkspace",features:{},security:{resolveStrategy:"user"},gormMap:{workspaceId:"index:userworkspace_idx,unique",userId:"index:userworkspace_idx,unique"},fields:[{name:"user",type:"one",target:"UserEntity",computedType:"UserEntity",gormMap:{}},{name:"workspace",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}},{name:"userPermissions",type:"slice",primitive:"string",computedType:"string[]",gorm:"-",gormMap:{},sql:"-"},{name:"rolePermission",type:"slice",primitive:"UserRoleWorkspaceDto",computedType:"unknown[]",gorm:"-",gormMap:{},sql:"-"},{name:"workspacePermissions",type:"slice",primitive:"string",computedType:"string[]",gorm:"-",gormMap:{},sql:"-"}],cliShort:"user",description:"Manage the workspaces that user belongs to (either its himselves or adding by invitation)"};Fg.Fields={...Vt.Fields,user$:"user",user:jp.Fields,workspace$:"workspace",workspace:ty.Fields,userPermissions:"userPermissions",rolePermission:"rolePermission",workspacePermissions:"workspacePermissions"};function Af(t,e){const n={};for(const[r,i]of Object.entries(e))typeof i=="string"?n[r]=`${t}.${i}`:typeof i=="object"&&i!==null&&(n[r]=i);return n}function ur(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var rV=0;function Qp(t){return"__private_"+rV+++"_"+t}var ol=Qp("passport"),hh=Qp("token"),ph=Qp("exchangeKey"),sl=Qp("userWorkspaces"),ul=Qp("user"),mh=Qp("userId"),CC=Qp("isJsonAppliable");class fr{get passport(){return ur(this,ol)[ol]}set passport(e){e instanceof t1?ur(this,ol)[ol]=e:ur(this,ol)[ol]=new t1(e)}setPassport(e){return this.passport=e,this}get token(){return ur(this,hh)[hh]}set token(e){ur(this,hh)[hh]=String(e)}setToken(e){return this.token=e,this}get exchangeKey(){return ur(this,ph)[ph]}set exchangeKey(e){ur(this,ph)[ph]=String(e)}setExchangeKey(e){return this.exchangeKey=e,this}get userWorkspaces(){return ur(this,sl)[sl]}set userWorkspaces(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof Fg?ur(this,sl)[sl]=e:ur(this,sl)[sl]=e.map(n=>new Fg(n)))}setUserWorkspaces(e){return this.userWorkspaces=e,this}get user(){return ur(this,ul)[ul]}set user(e){e instanceof jp?ur(this,ul)[ul]=e:ur(this,ul)[ul]=new jp(e)}setUser(e){return this.user=e,this}get userId(){return ur(this,mh)[mh]}set userId(e){const n=typeof e=="string"||e===void 0||e===null;ur(this,mh)[mh]=n?e:String(e)}setUserId(e){return this.userId=e,this}constructor(e=void 0){if(Object.defineProperty(this,CC,{value:iV}),Object.defineProperty(this,ol,{writable:!0,value:void 0}),Object.defineProperty(this,hh,{writable:!0,value:""}),Object.defineProperty(this,ph,{writable:!0,value:""}),Object.defineProperty(this,sl,{writable:!0,value:[]}),Object.defineProperty(this,ul,{writable:!0,value:void 0}),Object.defineProperty(this,mh,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(ur(this,CC)[CC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.passport!==void 0&&(this.passport=n.passport),n.token!==void 0&&(this.token=n.token),n.exchangeKey!==void 0&&(this.exchangeKey=n.exchangeKey),n.userWorkspaces!==void 0&&(this.userWorkspaces=n.userWorkspaces),n.user!==void 0&&(this.user=n.user),n.userId!==void 0&&(this.userId=n.userId)}toJSON(){return{passport:ur(this,ol)[ol],token:ur(this,hh)[hh],exchangeKey:ur(this,ph)[ph],userWorkspaces:ur(this,sl)[sl],user:ur(this,ul)[ul],userId:ur(this,mh)[mh]}}toString(){return JSON.stringify(this)}static get Fields(){return{passport:"passport",token:"token",exchangeKey:"exchangeKey",userWorkspaces$:"userWorkspaces",get userWorkspaces(){return Af("userWorkspaces[:i]",Fg.Fields)},user:"user",userId:"userId"}}static from(e){return new fr(e)}static with(e){return new fr(e)}copyWith(e){return new fr({...this.toJSON(),...e})}clone(){return new fr(this.toJSON())}}function iV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}class Tr extends Vt{constructor(...e){super(...e),this.children=void 0,this.publicKey=void 0,this.coverLetter=void 0,this.targetUserLocale=void 0,this.email=void 0,this.phonenumber=void 0,this.workspace=void 0,this.firstName=void 0,this.lastName=void 0,this.forceEmailAddress=void 0,this.forcePhoneNumber=void 0,this.role=void 0,this.roleId=void 0}}Tr.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace-invite/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace-invite/new`},single(t,e){return`${e?"/"+e:".."}/workspace-invite/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspace-invites`},Redit:"workspace-invite/edit/:uniqueId",Rcreate:"workspace-invite/new",Rsingle:"workspace-invite/:uniqueId",Rquery:"workspace-invites"};Tr.definition={rpc:{query:{}},name:"workspaceInvite",features:{},gormMap:{},fields:[{name:"publicKey",description:"A long hash to get the user into the confirm or signup page without sending the email or phone number, for example if an administrator wants to copy the link.",type:"string",computedType:"string",gormMap:{}},{name:"coverLetter",description:"The content that user will receive to understand the reason of the letter.",type:"string",computedType:"string",gormMap:{}},{name:"targetUserLocale",description:"If the invited person has a different language, then you can define that so the interface for him will be automatically translated.",type:"string",computedType:"string",gormMap:{}},{name:"email",description:"The email address of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"phonenumber",description:"The phone number of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"workspace",description:"Workspace which user is being invite to.",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}},{name:"firstName",description:"First name of the person which is invited",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"lastName",description:"Last name of the person which is invited.",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"forceEmailAddress",description:"If forced, the email address cannot be changed by the user which has been invited.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePhoneNumber",description:"If forced, user cannot change the phone number and needs to complete signup.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"role",description:"The role which invitee get if they accept the request.",type:"one",target:"RoleEntity",validate:"required",computedType:"RoleEntity",gormMap:{}}],cliShort:"invite",description:"Active invitations for non-users or already users to join an specific workspace, created by administration of the workspace"};Tr.Fields={...Vt.Fields,publicKey:"publicKey",coverLetter:"coverLetter",targetUserLocale:"targetUserLocale",email:"email",phonenumber:"phonenumber",workspace$:"workspace",workspace:ty.Fields,firstName:"firstName",lastName:"lastName",forceEmailAddress:"forceEmailAddress",forcePhoneNumber:"forcePhoneNumber",roleId:"roleId",role$:"role",role:kr.Fields};var T_,__,A_,R_,P_,I_,N_,M_,k_,D_,F_,L_,U_,j_,B_,q_,H_,z_,V_,G_,pn;function wu(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}const o0={data:{user:{firstName:"Ali",lastName:"Torabi"},exchangeKey:"key1",token:"token"}};let aV=(T_=ft("passport/authorizeOs"),__=dt("post"),A_=ft("users/invitations"),R_=dt("get"),P_=ft("passports/signin/classic"),I_=dt("post"),N_=ft("passport/request-reset-mail-password"),M_=dt("post"),k_=ft("passports/available-methods"),D_=dt("get"),F_=ft("workspace/passport/check"),L_=dt("post"),U_=ft("passports/signup/classic"),j_=dt("post"),B_=ft("passport/totp/confirm"),q_=dt("post"),H_=ft("workspace/passport/otp"),z_=dt("post"),V_=ft("workspace/public/types"),G_=dt("get"),pn=class{async passportAuthroizeOs(e){return o0}async getUserInvites(e){return eq}async postSigninClassic(e){return o0}async postRequestResetMail(e){return o0}async getAvailableMethods(e){return{data:{item:{email:!0,enabledRecaptcha2:!1,google:null,phone:!0,recaptcha2ClientKey:"6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"}}}}async postWorkspacePassportCheck(e){var r;return((r=e==null?void 0:e.body)==null?void 0:r.value.includes("@"))?{data:{next:["otp","create-with-password"],flags:["enable-totp","force-totp"],otpInfo:null}}:{data:{next:["otp"],flags:["enable-totp","force-totp"],otpInfo:null}}}async postPassportSignupClassic(e){var n;return(n=e==null?void 0:e.body)==null||n.value.includes("@"),{data:{session:null,totpUrl:"otpauth://totp/Fireback:ali@ali.com?algorithm=SHA1&digits=6&issuer=Fireback&period=30&secret=R2AQ4NPS7FKECL3ZVTF3JMTLBYGDAAVU",continueToTotp:!0,forcedTotp:!0}}}async postConfirm(e){return{data:{session:o0.data}}}async postOtp(e){return{data:{session:o0.data}}}async getWorkspaceTypes(e){return{data:{items:[{description:null,slug:"customer",title:"customer",uniqueId:"nG012z7VNyYKMJPqWjV04"}],itemsPerPage:20,startIndex:0,totalItems:2}}}},wu(pn.prototype,"passportAuthroizeOs",[T_,__],Object.getOwnPropertyDescriptor(pn.prototype,"passportAuthroizeOs"),pn.prototype),wu(pn.prototype,"getUserInvites",[A_,R_],Object.getOwnPropertyDescriptor(pn.prototype,"getUserInvites"),pn.prototype),wu(pn.prototype,"postSigninClassic",[P_,I_],Object.getOwnPropertyDescriptor(pn.prototype,"postSigninClassic"),pn.prototype),wu(pn.prototype,"postRequestResetMail",[N_,M_],Object.getOwnPropertyDescriptor(pn.prototype,"postRequestResetMail"),pn.prototype),wu(pn.prototype,"getAvailableMethods",[k_,D_],Object.getOwnPropertyDescriptor(pn.prototype,"getAvailableMethods"),pn.prototype),wu(pn.prototype,"postWorkspacePassportCheck",[F_,L_],Object.getOwnPropertyDescriptor(pn.prototype,"postWorkspacePassportCheck"),pn.prototype),wu(pn.prototype,"postPassportSignupClassic",[U_,j_],Object.getOwnPropertyDescriptor(pn.prototype,"postPassportSignupClassic"),pn.prototype),wu(pn.prototype,"postConfirm",[B_,q_],Object.getOwnPropertyDescriptor(pn.prototype,"postConfirm"),pn.prototype),wu(pn.prototype,"postOtp",[H_,z_],Object.getOwnPropertyDescriptor(pn.prototype,"postOtp"),pn.prototype),wu(pn.prototype,"getWorkspaceTypes",[V_,G_],Object.getOwnPropertyDescriptor(pn.prototype,"getWorkspaceTypes"),pn.prototype),pn);class TO extends Vt{constructor(...e){super(...e),this.children=void 0,this.name=void 0,this.operationId=void 0,this.diskPath=void 0,this.size=void 0,this.virtualPath=void 0,this.type=void 0,this.variations=void 0}}TO.Navigation={edit(t,e){return`${e?"/"+e:".."}/file/edit/${t}`},create(t){return`${t?"/"+t:".."}/file/new`},single(t,e){return`${e?"/"+e:".."}/file/${t}`},query(t={},e){return`${e?"/"+e:".."}/files`},Redit:"file/edit/:uniqueId",Rcreate:"file/new",Rsingle:"file/:uniqueId",Rquery:"files",rVariationsCreate:"file/:linkerId/variations/new",rVariationsEdit:"file/:linkerId/variations/edit/:uniqueId",editVariations(t,e,n){return`${n?"/"+n:""}/file/${t}/variations/edit/${e}`},createVariations(t,e){return`${e?"/"+e:""}/file/${t}/variations/new`}};TO.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"file",features:{},gormMap:{},fields:[{name:"name",type:"string",computedType:"string",gormMap:{}},{name:"operationId",description:"For each upload, we need to assign a operation id, so if the operation has been cancelled, it would be cleared automatically, and there won't be orphant files in the database.",type:"string",computedType:"string",gormMap:{}},{name:"diskPath",type:"string",computedType:"string",gormMap:{}},{name:"size",type:"int64",computedType:"number",gormMap:{}},{name:"virtualPath",type:"string",computedType:"string",gormMap:{}},{name:"type",type:"string",computedType:"string",gormMap:{}},{name:"variations",type:"array",computedType:"FileVariations[]",gormMap:{},"-":"FileVariations",fields:[{name:"name",type:"string",computedType:"string",gormMap:{}}],linkedTo:"FileEntity"}],description:"Tus file uploading reference of the content. Every files being uploaded using tus will be stored in this table."};TO.Fields={...Vt.Fields,name:"name",operationId:"operationId",diskPath:"diskPath",size:"size",virtualPath:"virtualPath",type:"type",variations$:"variations",variationsAt:t=>({$:`variations[${t}]`,...Vt.Fields,name:`variations[${t}].name`})};function EI(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;etypeof t=="number"&&!isNaN(t),Bp=t=>typeof t=="string",Ea=t=>typeof t=="function",hw=t=>Bp(t)||Ea(t)?t:null,$C=t=>T.isValidElement(t)||Bp(t)||Ea(t)||M0(t);function oV(t,e,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function bS(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=t;return function(u){let{children:l,position:d,preventExitTransition:h,done:g,nodeRef:y,isIn:w}=u;const v=r?`${e}--${d}`:e,C=r?`${n}--${d}`:n,E=T.useRef(0);return T.useLayoutEffect(()=>{const $=y.current,O=v.split(" "),_=R=>{R.target===y.current&&($.dispatchEvent(new Event("d")),$.removeEventListener("animationend",_),$.removeEventListener("animationcancel",_),E.current===0&&R.type!=="animationcancel"&&$.classList.remove(...O))};$.classList.add(...O),$.addEventListener("animationend",_),$.addEventListener("animationcancel",_)},[]),T.useEffect(()=>{const $=y.current,O=()=>{$.removeEventListener("animationend",O),i?oV($,g,o):g()};w||(h?O():(E.current=1,$.className+=` ${C}`,$.addEventListener("animationend",O)))},[w]),Ae.createElement(Ae.Fragment,null,l)}}function W_(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const No={list:new Map,emitQueue:new Map,on(t,e){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(e),this},off(t,e){if(e){const n=this.list.get(t).filter(r=>r!==e);return this.list.set(t,n),this}return this.list.delete(t),this},cancelEmit(t){const e=this.emitQueue.get(t);return e&&(e.forEach(clearTimeout),this.emitQueue.delete(t)),this},emit(t){this.list.has(t)&&this.list.get(t).forEach(e=>{const n=setTimeout(()=>{e(...[].slice.call(arguments,1))},0);this.emitQueue.has(t)||this.emitQueue.set(t,[]),this.emitQueue.get(t).push(n)})}},q2=t=>{let{theme:e,type:n,...r}=t;return Ae.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},EC={info:function(t){return Ae.createElement(q2,{...t},Ae.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return Ae.createElement(q2,{...t},Ae.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return Ae.createElement(q2,{...t},Ae.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return Ae.createElement(q2,{...t},Ae.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Ae.createElement("div",{className:"Toastify__spinner"})}};function sV(t){const[,e]=T.useReducer(v=>v+1,0),[n,r]=T.useState([]),i=T.useRef(null),o=T.useRef(new Map).current,u=v=>n.indexOf(v)!==-1,l=T.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:u,getToast:v=>o.get(v)}).current;function d(v){let{containerId:C}=v;const{limit:E}=l.props;!E||C&&l.containerId!==C||(l.count-=l.queue.length,l.queue=[])}function h(v){r(C=>v==null?[]:C.filter(E=>E!==v))}function g(){const{toastContent:v,toastProps:C,staleId:E}=l.queue.shift();w(v,C,E)}function y(v,C){let{delay:E,staleId:$,...O}=C;if(!$C(v)||(function(me){return!i.current||l.props.enableMultiContainer&&me.containerId!==l.props.containerId||o.has(me.toastId)&&me.updateId==null})(O))return;const{toastId:_,updateId:R,data:k}=O,{props:P}=l,L=()=>h(_),F=R==null;F&&l.count++;const q={...P,style:P.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(O).filter(me=>{let[te,be]=me;return be!=null})),toastId:_,updateId:R,data:k,closeToast:L,isIn:!1,className:hw(O.className||P.toastClassName),bodyClassName:hw(O.bodyClassName||P.bodyClassName),progressClassName:hw(O.progressClassName||P.progressClassName),autoClose:!O.isLoading&&(Y=O.autoClose,X=P.autoClose,Y===!1||M0(Y)&&Y>0?Y:X),deleteToast(){const me=W_(o.get(_),"removed");o.delete(_),No.emit(4,me);const te=l.queue.length;if(l.count=_==null?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),te>0){const be=_==null?l.props.limit:1;if(te===1||be===1)l.displayedToast++,g();else{const we=be>te?te:be;l.displayedToast=we;for(let B=0;Bie in EC)(be)&&(V=EC[be](H))),V})(q),Ea(O.onOpen)&&(q.onOpen=O.onOpen),Ea(O.onClose)&&(q.onClose=O.onClose),q.closeButton=P.closeButton,O.closeButton===!1||$C(O.closeButton)?q.closeButton=O.closeButton:O.closeButton===!0&&(q.closeButton=!$C(P.closeButton)||P.closeButton);let ue=v;T.isValidElement(v)&&!Bp(v.type)?ue=T.cloneElement(v,{closeToast:L,toastProps:q,data:k}):Ea(v)&&(ue=v({closeToast:L,toastProps:q,data:k})),P.limit&&P.limit>0&&l.count>P.limit&&F?l.queue.push({toastContent:ue,toastProps:q,staleId:$}):M0(E)?setTimeout(()=>{w(ue,q,$)},E):w(ue,q,$)}function w(v,C,E){const{toastId:$}=C;E&&o.delete(E);const O={content:v,props:C};o.set($,O),r(_=>[..._,$].filter(R=>R!==E)),No.emit(4,W_(O,O.props.updateId==null?"added":"updated"))}return T.useEffect(()=>(l.containerId=t.containerId,No.cancelEmit(3).on(0,y).on(1,v=>i.current&&h(v)).on(5,d).emit(2,l),()=>{o.clear(),No.emit(3,l)}),[]),T.useEffect(()=>{l.props=t,l.isToastActive=u,l.displayedToast=n.length}),{getToastToRender:function(v){const C=new Map,E=Array.from(o.values());return t.newestOnTop&&E.reverse(),E.forEach($=>{const{position:O}=$.props;C.has(O)||C.set(O,[]),C.get(O).push($)}),Array.from(C,$=>v($[0],$[1]))},containerRef:i,isToastActive:u}}function K_(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function Y_(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function uV(t){const[e,n]=T.useState(!1),[r,i]=T.useState(!1),o=T.useRef(null),u=T.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=T.useRef(t),{autoClose:d,pauseOnHover:h,closeToast:g,onClick:y,closeOnClick:w}=t;function v(k){if(t.draggable){k.nativeEvent.type==="touchstart"&&k.nativeEvent.preventDefault(),u.didMove=!1,document.addEventListener("mousemove",O),document.addEventListener("mouseup",_),document.addEventListener("touchmove",O),document.addEventListener("touchend",_);const P=o.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=P.getBoundingClientRect(),P.style.transition="",u.x=K_(k.nativeEvent),u.y=Y_(k.nativeEvent),t.draggableDirection==="x"?(u.start=u.x,u.removalDistance=P.offsetWidth*(t.draggablePercent/100)):(u.start=u.y,u.removalDistance=P.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent/100))}}function C(k){if(u.boundingRect){const{top:P,bottom:L,left:F,right:q}=u.boundingRect;k.nativeEvent.type!=="touchend"&&t.pauseOnHover&&u.x>=F&&u.x<=q&&u.y>=P&&u.y<=L?$():E()}}function E(){n(!0)}function $(){n(!1)}function O(k){const P=o.current;u.canDrag&&P&&(u.didMove=!0,e&&$(),u.x=K_(k),u.y=Y_(k),u.delta=t.draggableDirection==="x"?u.x-u.start:u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),P.style.transform=`translate${t.draggableDirection}(${u.delta}px)`,P.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function _(){document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",_),document.removeEventListener("touchmove",O),document.removeEventListener("touchend",_);const k=o.current;if(u.canDrag&&u.didMove&&k){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return i(!0),void t.closeToast();k.style.transition="transform 0.2s, opacity 0.2s",k.style.transform=`translate${t.draggableDirection}(0)`,k.style.opacity="1"}}T.useEffect(()=>{l.current=t}),T.useEffect(()=>(o.current&&o.current.addEventListener("d",E,{once:!0}),Ea(t.onOpen)&&t.onOpen(T.isValidElement(t.children)&&t.children.props),()=>{const k=l.current;Ea(k.onClose)&&k.onClose(T.isValidElement(k.children)&&k.children.props)}),[]),T.useEffect(()=>(t.pauseOnFocusLoss&&(document.hasFocus()||$(),window.addEventListener("focus",E),window.addEventListener("blur",$)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener("focus",E),window.removeEventListener("blur",$))}),[t.pauseOnFocusLoss]);const R={onMouseDown:v,onTouchStart:v,onMouseUp:C,onTouchEnd:C};return d&&h&&(R.onMouseEnter=$,R.onMouseLeave=E),w&&(R.onClick=k=>{y&&y(k),u.canCloseOnClick&&g()}),{playToast:E,pauseToast:$,isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:R}}function xI(t){let{closeToast:e,theme:n,ariaLabel:r="close"}=t;return Ae.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:i=>{i.stopPropagation(),e(i)},"aria-label":r},Ae.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Ae.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function lV(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:o,className:u,style:l,controlledProgress:d,progress:h,rtl:g,isIn:y,theme:w}=t;const v=o||d&&h===0,C={...l,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused",opacity:v?0:1};d&&(C.transform=`scaleX(${h})`);const E=Ef("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${w}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":g}),$=Ea(u)?u({rtl:g,type:i,defaultClassName:E}):Ef(E,u);return Ae.createElement("div",{role:"progressbar","aria-hidden":v?"true":"false","aria-label":"notification timer",className:$,style:C,[d&&h>=1?"onTransitionEnd":"onAnimationEnd"]:d&&h<1?null:()=>{y&&r()}})}const cV=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i}=uV(t),{closeButton:o,children:u,autoClose:l,onClick:d,type:h,hideProgressBar:g,closeToast:y,transition:w,position:v,className:C,style:E,bodyClassName:$,bodyStyle:O,progressClassName:_,progressStyle:R,updateId:k,role:P,progress:L,rtl:F,toastId:q,deleteToast:Y,isIn:X,isLoading:ue,iconOut:me,closeOnClick:te,theme:be}=t,we=Ef("Toastify__toast",`Toastify__toast-theme--${be}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":F},{"Toastify__toast--close-on-click":te}),B=Ea(C)?C({rtl:F,position:v,type:h,defaultClassName:we}):Ef(we,C),V=!!L||!l,H={closeToast:y,type:h,theme:be};let ie=null;return o===!1||(ie=Ea(o)?o(H):T.isValidElement(o)?T.cloneElement(o,H):xI(H)),Ae.createElement(w,{isIn:X,done:Y,position:v,preventExitTransition:n,nodeRef:r},Ae.createElement("div",{id:q,onClick:d,className:B,...i,style:E,ref:r},Ae.createElement("div",{...X&&{role:P},className:Ea($)?$({type:h}):Ef("Toastify__toast-body",$),style:O},me!=null&&Ae.createElement("div",{className:Ef("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!ue})},me),Ae.createElement("div",null,u)),ie,Ae.createElement(lV,{...k&&!V?{key:`pb-${k}`}:{},rtl:F,theme:be,delay:l,isRunning:e,isIn:X,closeToast:y,hide:g,type:h,style:R,className:_,controlledProgress:V,progress:L||0})))},wS=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},fV=bS(wS("bounce",!0));bS(wS("slide",!0));bS(wS("zoom"));bS(wS("flip"));const Q_=T.forwardRef((t,e)=>{const{getToastToRender:n,containerRef:r,isToastActive:i}=sV(t),{className:o,style:u,rtl:l,containerId:d}=t;function h(g){const y=Ef("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":l});return Ea(o)?o({position:g,rtl:l,defaultClassName:y}):Ef(y,hw(o))}return T.useEffect(()=>{e&&(e.current=r.current)},[]),Ae.createElement("div",{ref:r,className:"Toastify",id:d},n((g,y)=>{const w=y.length?{...u}:{...u,pointerEvents:"none"};return Ae.createElement("div",{className:h(g),style:w,key:`container-${g}`},y.map((v,C)=>{let{content:E,props:$}=v;return Ae.createElement(cV,{...$,isIn:i($.toastId),style:{...$.style,"--nth":C+1,"--len":y.length},key:`toast-${$.key}`},E)}))}))});Q_.displayName="ToastContainer",Q_.defaultProps={position:"top-right",transition:fV,autoClose:5e3,closeButton:xI,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let xC,mp=new Map,_0=[],dV=1;function OI(){return""+dV++}function hV(t){return t&&(Bp(t.toastId)||M0(t.toastId))?t.toastId:OI()}function k0(t,e){return mp.size>0?No.emit(0,t,e):_0.push({content:t,options:e}),e.toastId}function Fw(t,e){return{...e,type:e&&e.type||t,toastId:hV(e)}}function H2(t){return(e,n)=>k0(e,Fw(t,n))}function Xn(t,e){return k0(t,Fw("default",e))}Xn.loading=(t,e)=>k0(t,Fw("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Xn.promise=function(t,e,n){let r,{pending:i,error:o,success:u}=e;i&&(r=Bp(i)?Xn.loading(i,n):Xn.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(g,y,w)=>{if(y==null)return void Xn.dismiss(r);const v={type:g,...l,...n,data:w},C=Bp(y)?{render:y}:y;return r?Xn.update(r,{...v,...C}):Xn(C.render,{...v,...C}),w},h=Ea(t)?t():t;return h.then(g=>d("success",u,g)).catch(g=>d("error",o,g)),h},Xn.success=H2("success"),Xn.info=H2("info"),Xn.error=H2("error"),Xn.warning=H2("warning"),Xn.warn=Xn.warning,Xn.dark=(t,e)=>k0(t,Fw("default",{theme:"dark",...e})),Xn.dismiss=t=>{mp.size>0?No.emit(1,t):_0=_0.filter(e=>t!=null&&e.options.toastId!==t)},Xn.clearWaitingQueue=function(t){return t===void 0&&(t={}),No.emit(5,t)},Xn.isActive=t=>{let e=!1;return mp.forEach(n=>{n.isToastActive&&n.isToastActive(t)&&(e=!0)}),e},Xn.update=function(t,e){e===void 0&&(e={}),setTimeout(()=>{const n=(function(r,i){let{containerId:o}=i;const u=mp.get(o||xC);return u&&u.getToast(r)})(t,e);if(n){const{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:OI()};o.toastId!==t&&(o.staleId=t);const u=o.render||i;delete o.render,k0(u,o)}},0)},Xn.done=t=>{Xn.update(t,{progress:1})},Xn.onChange=t=>(No.on(4,t),()=>{No.off(4,t)}),Xn.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Xn.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},No.on(2,t=>{xC=t.containerId||t,mp.set(xC,t),_0.forEach(e=>{No.emit(0,e.content,e.options)}),_0=[]}).on(3,t=>{mp.delete(t.containerId||t),mp.size===0&&No.off(0).off(1).off(5)});let s0=null;const J_=2500;function pV(t,e){if((s0==null?void 0:s0.content)==t)return;const n=Xn(t,{hideProgressBar:!0,autoClose:J_,...e});s0={content:t,key:n},setTimeout(()=>{s0=null},J_)}const TI={onlyOnRoot:"This feature is only available for root access, please ask your administrator for more details",productName:"Fireback",orders:{archiveTitle:"Orders",discountCode:"Discount code",discountCodeHint:"Discount code",editOrder:"Edit order",invoiceNumber:"Invoice number",invoiceNumberHint:"Invoice number",items:"Items",itemsHint:"Items",newOrder:"New order",orderStatus:"Order status",orderStatusHint:"Order status",paymentStatus:"Payment status",paymentStatusHint:"Payment status",shippingAddress:"Shipping address",shippingAddressHint:"Shipping address",totalPrice:"Total price",totalPriceHint:"Total price"},shoppingCarts:{archiveTitle:"Shopping carts",editShoppingCart:"Edit shopping cart",items:"Items",itemsHint:"Items",newShoppingCart:"New shopping cart",product:"Product",productHint:"Select the product item",quantity:"Quantity",quantityHint:"How many products do you want"},discountCodes:{appliedCategories:"Applied categories",appliedCategoriesHint:"Applied categories",appliedProducts:"Applied products",appliedProductsHint:"Applied products",archiveTitle:"Discount codes",editDiscountCode:"Edit discount code",excludedCategories:"Excluded categories",excludedCategoriesHint:"Excluded categories",excludedProducts:"Excluded products",excludedProductsHint:"Excluded products",limit:"Limit",limitHint:"Limit",newDiscountCode:"New discount code",series:"Series",seriesHint:"Series",validFrom:"Valid from",validFromHint:"Valid from",validUntil:"Valid until",validUntilHint:"Valid until"},postcategories:{archiveTitle:"Post Category",editpostCategory:"Edit Post category",name:"Name",nameHint:"Name",newpostCategory:"Newpost category"},pagecategories:{archiveTitle:"Page category",editpageCategory:"Edit page category",name:"Name",nameHint:"Name",newpageCategory:"New page category"},posttags:{archiveTitle:"Post tag",editpostTag:"Edit post tag",name:"Name",nameHint:"Name",newpostTag:"New post tag"},pagetags:{archiveTitle:"Page tag",editpageTag:"Edit page tag",name:"Name",nameHint:"Name",newpageTag:"New page tag"},posts:{archiveTitle:"Posts",category:"Category",categoryHint:"Category",content:"Content",contentHint:"content",editpost:"Edit post",newpost:"New post",tags:"Tags",tagsHint:"Tags",title:"Title",titleHint:"Title"},pages:{archiveTitle:"Pages",category:"Category",categoryHint:"Page category",content:"Content",contentHint:"",editpage:"Edit page",newpage:"New page",tags:"Tags",tagsHint:"Page tags",title:"Title",titleHint:"Page title"},components:{currency:"Currency",currencyHint:"Currency type",amount:"Amount",amountHint:"Amount in numbers, separated by . for cents"},brands:{archiveTitle:"Brand",editBrand:"Edit brand",name:"Name",nameHint:"Brand's name",newBrand:"New brand"},tags:{archiveTitle:"Tags",editTag:"Edit tag",name:"Name",nameHint:"Tag name",newTag:"Name of the tag"},productsubmissions:{name:"Name",nameHint:"Name of the product",archiveTitle:"Product Inventory",brand:"Brand",brandHint:"If the product belongs to an specific brand",category:"Category",categoryHint:"Product category",description:"Description",descriptionHint:"Product description",editproductSubmission:"Edit product submission",newproductSubmission:"Newproduct submission",price:"Price",priceHint:"Set the price tag for the product",product:"Product",productHint:"Select the product type",sku:"SKU",skuHint:"SKU code for the product",tags:"Tags",tagsHint:"Product tags"},products:{archiveTitle:"product",description:"Description",descriptionHint:"Describe the product form",editproduct:"Edit product",fields:"fields",fieldsHint:"fields hint",jsonSchema:"json schema",jsonSchemaHint:"json schema hint",name:"Form name",nameHint:"Name the type of products which this form represents",newproduct:"New product",uiSchema:"ui schema",uiSchemaHint:"ui schema hint"},categories:{archiveTitle:"Categories",editCategory:"Edit category",name:"Name",nameHint:"Name of the category",newCategory:"New category",parent:"Parent category",parentHint:"This category would be under the parent category in display or search"},abac:{backToApp:"Go back to the app",email:"Email",emailAddress:"Email address",firstName:"First name",lastName:"Last name",otpOrDifferent:"Or try a different account instead",otpResetMethod:"Reset method",otpTitle:"One time password",otpTitleHint:`Login to your account via a 6-8 digit pins, which we will + */function tx(){return tx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function Zz(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function eV(t,e){return t.button===0&&(!e||e==="_self")&&!Zz(t)}const tV=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],nV="6";try{window.__reactRouterVersion=nV}catch{}const rV="startTransition",F_=NE[rV];function iV(t){let{basename:e,children:n,future:r,window:i}=t,o=T.useRef();o.current==null&&(o.current=sz({window:i,v5Compat:!0}));let u=o.current,[l,d]=T.useState({action:u.action,location:u.location}),{v7_startTransition:h}=r||{},g=T.useCallback(y=>{h&&F_?F_(()=>d(y)):d(y)},[d,h]);return T.useLayoutEffect(()=>u.listen(g),[u,g]),T.useEffect(()=>Jz(r),[r]),T.createElement(Qz,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:u,future:r})}const aV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",oV=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nx=T.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:o,replace:u,state:l,target:d,to:h,preventScrollReset:g,viewTransition:y}=e,w=Xz(e,tV),{basename:v}=T.useContext(Ff),C,E=!1;if(typeof h=="string"&&oV.test(h)&&(C=h,aV))try{let R=new URL(window.location.href),k=h.startsWith("//")?new URL(R.protocol+h):new URL(h),P=kO(k.pathname,v);k.origin===R.origin&&P!=null?h=P+k.search+k.hash:E=!0}catch{}let $=Mz(h,{relative:i}),O=sV(h,{replace:u,state:l,target:d,preventScrollReset:g,relative:i,viewTransition:y});function _(R){r&&r(R),R.defaultPrevented||O(R)}return T.createElement("a",tx({},w,{href:C||$,onClick:E||o?r:_,ref:n,target:d}))});var L_;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(L_||(L_={}));var U_;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(U_||(U_={}));function sV(t,e){let{target:n,replace:r,state:i,preventScrollReset:o,relative:u,viewTransition:l}=e===void 0?{}:e,d=UO(),h=Ll(),g=PI(t,{relative:u});return T.useCallback(y=>{if(eV(y,n)){y.preventDefault();let w=r!==void 0?r:Ww(h)===Ww(g);d(t,{replace:w,state:i,preventScrollReset:o,relative:u,viewTransition:l})}},[h,d,g,r,i,n,t,o,u,l])}function rx(t,e){const n={};for(const[r,i]of Object.entries(e))typeof i=="string"?n[r]=`${t}.${i}`:typeof i=="object"&&i!==null&&(n[r]=i);return n}var xr,Bc,qc,Hc,zc,Vc,Gc,Wc,Kc,Yc,Jc,Qc,Xc,Zc,ef,tf,nf,rf,af,Y2,J2,of,sf,uf,bu,Q2,lf,cf,ff,df,hf,pf,mf,gf,X2;function Re(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var uV=0;function kt(t){return"__private_"+uV+++"_"+t}var rh=kt("apiVersion"),ih=kt("context"),ah=kt("id"),oh=kt("method"),sh=kt("params"),al=kt("data"),ol=kt("error"),PC=kt("isJsonAppliable"),p0=kt("lateInitFields");class sa{get apiVersion(){return Re(this,rh)[rh]}set apiVersion(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,rh)[rh]=n?e:String(e)}setApiVersion(e){return this.apiVersion=e,this}get context(){return Re(this,ih)[ih]}set context(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,ih)[ih]=n?e:String(e)}setContext(e){return this.context=e,this}get id(){return Re(this,ah)[ah]}set id(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,ah)[ah]=n?e:String(e)}setId(e){return this.id=e,this}get method(){return Re(this,oh)[oh]}set method(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,oh)[oh]=n?e:String(e)}setMethod(e){return this.method=e,this}get params(){return Re(this,sh)[sh]}set params(e){Re(this,sh)[sh]=e}setParams(e){return this.params=e,this}get data(){return Re(this,al)[al]}set data(e){e instanceof sa.Data?Re(this,al)[al]=e:Re(this,al)[al]=new sa.Data(e)}setData(e){return this.data=e,this}get error(){return Re(this,ol)[ol]}set error(e){e instanceof sa.Error?Re(this,ol)[ol]=e:Re(this,ol)[ol]=new sa.Error(e)}setError(e){return this.error=e,this}constructor(e=void 0){if(Object.defineProperty(this,p0,{value:cV}),Object.defineProperty(this,PC,{value:lV}),Object.defineProperty(this,rh,{writable:!0,value:void 0}),Object.defineProperty(this,ih,{writable:!0,value:void 0}),Object.defineProperty(this,ah,{writable:!0,value:void 0}),Object.defineProperty(this,oh,{writable:!0,value:void 0}),Object.defineProperty(this,sh,{writable:!0,value:null}),Object.defineProperty(this,al,{writable:!0,value:void 0}),Object.defineProperty(this,ol,{writable:!0,value:void 0}),e==null){Re(this,p0)[p0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,PC)[PC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.apiVersion!==void 0&&(this.apiVersion=n.apiVersion),n.context!==void 0&&(this.context=n.context),n.id!==void 0&&(this.id=n.id),n.method!==void 0&&(this.method=n.method),n.params!==void 0&&(this.params=n.params),n.data!==void 0&&(this.data=n.data),n.error!==void 0&&(this.error=n.error),Re(this,p0)[p0](e)}toJSON(){return{apiVersion:Re(this,rh)[rh],context:Re(this,ih)[ih],id:Re(this,ah)[ah],method:Re(this,oh)[oh],params:Re(this,sh)[sh],data:Re(this,al)[al],error:Re(this,ol)[ol]}}toString(){return JSON.stringify(this)}static get Fields(){return{apiVersion:"apiVersion",context:"context",id:"id",method:"method",params:"params",data$:"data",get data(){return rx("data",sa.Data.Fields)},error$:"error",get error(){return rx("error",sa.Error.Fields)}}}static from(e){return new sa(e)}static with(e){return new sa(e)}copyWith(e){return new sa({...this.toJSON(),...e})}clone(){return new sa(this.toJSON())}}xr=sa;function lV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function cV(t={}){const e=t;e.data instanceof xr.Data||(this.data=new xr.Data(e.data||{})),e.error instanceof xr.Error||(this.error=new xr.Error(e.error||{}))}sa.Data=(Bc=kt("item"),qc=kt("items"),Hc=kt("editLink"),zc=kt("selfLink"),Vc=kt("kind"),Gc=kt("fields"),Wc=kt("etag"),Kc=kt("cursor"),Yc=kt("id"),Jc=kt("lang"),Qc=kt("updated"),Xc=kt("currentItemCount"),Zc=kt("itemsPerPage"),ef=kt("startIndex"),tf=kt("totalItems"),nf=kt("totalAvailableItems"),rf=kt("pageIndex"),af=kt("totalPages"),Y2=kt("isJsonAppliable"),class{get item(){return Re(this,Bc)[Bc]}set item(e){Re(this,Bc)[Bc]=e}setItem(e){return this.item=e,this}get items(){return Re(this,qc)[qc]}set items(e){Re(this,qc)[qc]=e}setItems(e){return this.items=e,this}get editLink(){return Re(this,Hc)[Hc]}set editLink(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Hc)[Hc]=n?e:String(e)}setEditLink(e){return this.editLink=e,this}get selfLink(){return Re(this,zc)[zc]}set selfLink(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,zc)[zc]=n?e:String(e)}setSelfLink(e){return this.selfLink=e,this}get kind(){return Re(this,Vc)[Vc]}set kind(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Vc)[Vc]=n?e:String(e)}setKind(e){return this.kind=e,this}get fields(){return Re(this,Gc)[Gc]}set fields(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Gc)[Gc]=n?e:String(e)}setFields(e){return this.fields=e,this}get etag(){return Re(this,Wc)[Wc]}set etag(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Wc)[Wc]=n?e:String(e)}setEtag(e){return this.etag=e,this}get cursor(){return Re(this,Kc)[Kc]}set cursor(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Kc)[Kc]=n?e:String(e)}setCursor(e){return this.cursor=e,this}get id(){return Re(this,Yc)[Yc]}set id(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Yc)[Yc]=n?e:String(e)}setId(e){return this.id=e,this}get lang(){return Re(this,Jc)[Jc]}set lang(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Jc)[Jc]=n?e:String(e)}setLang(e){return this.lang=e,this}get updated(){return Re(this,Qc)[Qc]}set updated(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,Qc)[Qc]=n?e:String(e)}setUpdated(e){return this.updated=e,this}get currentItemCount(){return Re(this,Xc)[Xc]}set currentItemCount(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,Xc)[Xc]=r)}setCurrentItemCount(e){return this.currentItemCount=e,this}get itemsPerPage(){return Re(this,Zc)[Zc]}set itemsPerPage(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,Zc)[Zc]=r)}setItemsPerPage(e){return this.itemsPerPage=e,this}get startIndex(){return Re(this,ef)[ef]}set startIndex(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,ef)[ef]=r)}setStartIndex(e){return this.startIndex=e,this}get totalItems(){return Re(this,tf)[tf]}set totalItems(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,tf)[tf]=r)}setTotalItems(e){return this.totalItems=e,this}get totalAvailableItems(){return Re(this,nf)[nf]}set totalAvailableItems(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,nf)[nf]=r)}setTotalAvailableItems(e){return this.totalAvailableItems=e,this}get pageIndex(){return Re(this,rf)[rf]}set pageIndex(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,rf)[rf]=r)}setPageIndex(e){return this.pageIndex=e,this}get totalPages(){return Re(this,af)[af]}set totalPages(e){const r=typeof e=="number"||e===void 0||e===null?e:Number(e);Number.isNaN(r)||(Re(this,af)[af]=r)}setTotalPages(e){return this.totalPages=e,this}constructor(e=void 0){if(Object.defineProperty(this,Y2,{value:fV}),Object.defineProperty(this,Bc,{writable:!0,value:null}),Object.defineProperty(this,qc,{writable:!0,value:null}),Object.defineProperty(this,Hc,{writable:!0,value:void 0}),Object.defineProperty(this,zc,{writable:!0,value:void 0}),Object.defineProperty(this,Vc,{writable:!0,value:void 0}),Object.defineProperty(this,Gc,{writable:!0,value:void 0}),Object.defineProperty(this,Wc,{writable:!0,value:void 0}),Object.defineProperty(this,Kc,{writable:!0,value:void 0}),Object.defineProperty(this,Yc,{writable:!0,value:void 0}),Object.defineProperty(this,Jc,{writable:!0,value:void 0}),Object.defineProperty(this,Qc,{writable:!0,value:void 0}),Object.defineProperty(this,Xc,{writable:!0,value:void 0}),Object.defineProperty(this,Zc,{writable:!0,value:void 0}),Object.defineProperty(this,ef,{writable:!0,value:void 0}),Object.defineProperty(this,tf,{writable:!0,value:void 0}),Object.defineProperty(this,nf,{writable:!0,value:void 0}),Object.defineProperty(this,rf,{writable:!0,value:void 0}),Object.defineProperty(this,af,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,Y2)[Y2](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.item!==void 0&&(this.item=n.item),n.items!==void 0&&(this.items=n.items),n.editLink!==void 0&&(this.editLink=n.editLink),n.selfLink!==void 0&&(this.selfLink=n.selfLink),n.kind!==void 0&&(this.kind=n.kind),n.fields!==void 0&&(this.fields=n.fields),n.etag!==void 0&&(this.etag=n.etag),n.cursor!==void 0&&(this.cursor=n.cursor),n.id!==void 0&&(this.id=n.id),n.lang!==void 0&&(this.lang=n.lang),n.updated!==void 0&&(this.updated=n.updated),n.currentItemCount!==void 0&&(this.currentItemCount=n.currentItemCount),n.itemsPerPage!==void 0&&(this.itemsPerPage=n.itemsPerPage),n.startIndex!==void 0&&(this.startIndex=n.startIndex),n.totalItems!==void 0&&(this.totalItems=n.totalItems),n.totalAvailableItems!==void 0&&(this.totalAvailableItems=n.totalAvailableItems),n.pageIndex!==void 0&&(this.pageIndex=n.pageIndex),n.totalPages!==void 0&&(this.totalPages=n.totalPages)}toJSON(){return{item:Re(this,Bc)[Bc],items:Re(this,qc)[qc],editLink:Re(this,Hc)[Hc],selfLink:Re(this,zc)[zc],kind:Re(this,Vc)[Vc],fields:Re(this,Gc)[Gc],etag:Re(this,Wc)[Wc],cursor:Re(this,Kc)[Kc],id:Re(this,Yc)[Yc],lang:Re(this,Jc)[Jc],updated:Re(this,Qc)[Qc],currentItemCount:Re(this,Xc)[Xc],itemsPerPage:Re(this,Zc)[Zc],startIndex:Re(this,ef)[ef],totalItems:Re(this,tf)[tf],totalAvailableItems:Re(this,nf)[nf],pageIndex:Re(this,rf)[rf],totalPages:Re(this,af)[af]}}toString(){return JSON.stringify(this)}static get Fields(){return{item:"item",items:"items",editLink:"editLink",selfLink:"selfLink",kind:"kind",fields:"fields",etag:"etag",cursor:"cursor",id:"id",lang:"lang",updated:"updated",currentItemCount:"currentItemCount",itemsPerPage:"itemsPerPage",startIndex:"startIndex",totalItems:"totalItems",totalAvailableItems:"totalAvailableItems",pageIndex:"pageIndex",totalPages:"totalPages"}}static from(e){return new xr.Data(e)}static with(e){return new xr.Data(e)}copyWith(e){return new xr.Data({...this.toJSON(),...e})}clone(){return new xr.Data(this.toJSON())}});function fV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}sa.Error=(of=kt("code"),sf=kt("message"),uf=kt("messageTranslated"),bu=kt("errors"),Q2=kt("isJsonAppliable"),J2=class kI{get code(){return Re(this,of)[of]}set code(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(Re(this,of)[of]=r)}setCode(e){return this.code=e,this}get message(){return Re(this,sf)[sf]}set message(e){Re(this,sf)[sf]=String(e)}setMessage(e){return this.message=e,this}get messageTranslated(){return Re(this,uf)[uf]}set messageTranslated(e){Re(this,uf)[uf]=String(e)}setMessageTranslated(e){return this.messageTranslated=e,this}get errors(){return Re(this,bu)[bu]}set errors(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof xr.Error.Errors?Re(this,bu)[bu]=e:Re(this,bu)[bu]=e.map(n=>new xr.Error.Errors(n)))}setErrors(e){return this.errors=e,this}constructor(e=void 0){if(Object.defineProperty(this,Q2,{value:hV}),Object.defineProperty(this,of,{writable:!0,value:0}),Object.defineProperty(this,sf,{writable:!0,value:""}),Object.defineProperty(this,uf,{writable:!0,value:""}),Object.defineProperty(this,bu,{writable:!0,value:[]}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,Q2)[Q2](e))this.applyFromObject(e);else throw new kI("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.code!==void 0&&(this.code=n.code),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.errors!==void 0&&(this.errors=n.errors)}toJSON(){return{code:Re(this,of)[of],message:Re(this,sf)[sf],messageTranslated:Re(this,uf)[uf],errors:Re(this,bu)[bu]}}toString(){return JSON.stringify(this)}static get Fields(){return{code:"code",message:"message",messageTranslated:"messageTranslated",errors$:"errors",get errors(){return rx("error.errors[:i]",xr.Error.Errors.Fields)}}}static from(e){return new xr.Error(e)}static with(e){return new xr.Error(e)}copyWith(e){return new xr.Error({...this.toJSON(),...e})}clone(){return new xr.Error(this.toJSON())}},J2.Errors=(lf=kt("domain"),cf=kt("reason"),ff=kt("message"),df=kt("messageTranslated"),hf=kt("location"),pf=kt("locationType"),mf=kt("extendedHelp"),gf=kt("sendReport"),X2=kt("isJsonAppliable"),class{get domain(){return Re(this,lf)[lf]}set domain(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,lf)[lf]=n?e:String(e)}setDomain(e){return this.domain=e,this}get reason(){return Re(this,cf)[cf]}set reason(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,cf)[cf]=n?e:String(e)}setReason(e){return this.reason=e,this}get message(){return Re(this,ff)[ff]}set message(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,ff)[ff]=n?e:String(e)}setMessage(e){return this.message=e,this}get messageTranslated(){return Re(this,df)[df]}set messageTranslated(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,df)[df]=n?e:String(e)}setMessageTranslated(e){return this.messageTranslated=e,this}get location(){return Re(this,hf)[hf]}set location(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,hf)[hf]=n?e:String(e)}setLocation(e){return this.location=e,this}get locationType(){return Re(this,pf)[pf]}set locationType(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,pf)[pf]=n?e:String(e)}setLocationType(e){return this.locationType=e,this}get extendedHelp(){return Re(this,mf)[mf]}set extendedHelp(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,mf)[mf]=n?e:String(e)}setExtendedHelp(e){return this.extendedHelp=e,this}get sendReport(){return Re(this,gf)[gf]}set sendReport(e){const n=typeof e=="string"||e===void 0||e===null;Re(this,gf)[gf]=n?e:String(e)}setSendReport(e){return this.sendReport=e,this}constructor(e=void 0){if(Object.defineProperty(this,X2,{value:dV}),Object.defineProperty(this,lf,{writable:!0,value:void 0}),Object.defineProperty(this,cf,{writable:!0,value:void 0}),Object.defineProperty(this,ff,{writable:!0,value:void 0}),Object.defineProperty(this,df,{writable:!0,value:void 0}),Object.defineProperty(this,hf,{writable:!0,value:void 0}),Object.defineProperty(this,pf,{writable:!0,value:void 0}),Object.defineProperty(this,mf,{writable:!0,value:void 0}),Object.defineProperty(this,gf,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Re(this,X2)[X2](e))this.applyFromObject(e);else throw new J2("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.domain!==void 0&&(this.domain=n.domain),n.reason!==void 0&&(this.reason=n.reason),n.message!==void 0&&(this.message=n.message),n.messageTranslated!==void 0&&(this.messageTranslated=n.messageTranslated),n.location!==void 0&&(this.location=n.location),n.locationType!==void 0&&(this.locationType=n.locationType),n.extendedHelp!==void 0&&(this.extendedHelp=n.extendedHelp),n.sendReport!==void 0&&(this.sendReport=n.sendReport)}toJSON(){return{domain:Re(this,lf)[lf],reason:Re(this,cf)[cf],message:Re(this,ff)[ff],messageTranslated:Re(this,df)[df],location:Re(this,hf)[hf],locationType:Re(this,pf)[pf],extendedHelp:Re(this,mf)[mf],sendReport:Re(this,gf)[gf]}}toString(){return JSON.stringify(this)}static get Fields(){return{domain:"domain",reason:"reason",message:"message",messageTranslated:"messageTranslated",location:"location",locationType:"locationType",extendedHelp:"extendedHelp",sendReport:"sendReport"}}static from(e){return new xr.Error.Errors(e)}static with(e){return new xr.Error.Errors(e)}copyWith(e){return new xr.Error.Errors({...this.toJSON(),...e})}clone(){return new xr.Error.Errors(this.toJSON())}}),J2);function dV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function hV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}class _a extends sa{constructor(e){super(e),this.creator=void 0}setCreator(e){return this.creator=e,this}inject(e){var n,r,i,o,u,l,d,h;return this.applyFromObject(e),e!=null&&e.data&&(this.data||this.setData({}),Array.isArray(e==null?void 0:e.data.items)&&typeof this.creator<"u"&&this.creator!==null?(i=this.data)==null||i.setItems((r=(n=e==null?void 0:e.data)==null?void 0:n.items)==null?void 0:r.map(g=>{var y;return(y=this.creator)==null?void 0:y.call(this,g)})):typeof((o=e==null?void 0:e.data)==null?void 0:o.item)=="object"&&typeof this.creator<"u"&&this.creator!==null?(l=this.data)==null||l.setItem(this.creator((u=e==null?void 0:e.data)==null?void 0:u.item)):(h=this.data)==null||h.setItem((d=e==null?void 0:e.data)==null?void 0:d.item)),this}}function so(t,e,n){if(n&&n instanceof URLSearchParams)t+=`?${n.toString()}`;else if(n&&Object.keys(n).length){const r=new URLSearchParams(Object.entries(n).map(([i,o])=>[i,String(o)])).toString();t+=`?${r}`}return t}var c1;function Gn(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var pV=0;function Ul(t){return"__private_"+pV+++"_"+t}const DI=t=>{const e=oo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),El.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Go({queryKey:[El.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class El{}c1=El;El.URL="/passports/available-methods";El.NewUrl=t=>so(c1.URL,void 0,t);El.Method="get";El.Fetch$=async(t,e,n,r)=>io(r??c1.NewUrl(t),{method:c1.Method,...n||{}},e);El.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Of(u)})=>{e=e||(l=>new Of(l));const u=await c1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};El.Definition={name:"CheckPassportMethods",cliName:"check-passport-methods",url:"/passports/available-methods",method:"get",description:"Publicly available information to create the authentication form, and show users how they can signin or signup to the system. Based on the PassportMethod entities, it will compute the available methods for the user, considering their region (IP for example)",out:{envelope:"GResponse",fields:[{name:"email",type:"bool",default:!1},{name:"phone",type:"bool",default:!1},{name:"google",type:"bool",default:!1},{name:"facebook",type:"bool",default:!1},{name:"googleOAuthClientKey",type:"string"},{name:"facebookAppId",type:"string"},{name:"enabledRecaptcha2",type:"bool",default:!1},{name:"recaptcha2ClientKey",type:"string"}]}};var uh=Ul("email"),lh=Ul("phone"),ch=Ul("google"),fh=Ul("facebook"),dh=Ul("googleOAuthClientKey"),hh=Ul("facebookAppId"),ph=Ul("enabledRecaptcha2"),mh=Ul("recaptcha2ClientKey"),IC=Ul("isJsonAppliable");class Of{get email(){return Gn(this,uh)[uh]}set email(e){Gn(this,uh)[uh]=!!e}setEmail(e){return this.email=e,this}get phone(){return Gn(this,lh)[lh]}set phone(e){Gn(this,lh)[lh]=!!e}setPhone(e){return this.phone=e,this}get google(){return Gn(this,ch)[ch]}set google(e){Gn(this,ch)[ch]=!!e}setGoogle(e){return this.google=e,this}get facebook(){return Gn(this,fh)[fh]}set facebook(e){Gn(this,fh)[fh]=!!e}setFacebook(e){return this.facebook=e,this}get googleOAuthClientKey(){return Gn(this,dh)[dh]}set googleOAuthClientKey(e){Gn(this,dh)[dh]=String(e)}setGoogleOAuthClientKey(e){return this.googleOAuthClientKey=e,this}get facebookAppId(){return Gn(this,hh)[hh]}set facebookAppId(e){Gn(this,hh)[hh]=String(e)}setFacebookAppId(e){return this.facebookAppId=e,this}get enabledRecaptcha2(){return Gn(this,ph)[ph]}set enabledRecaptcha2(e){Gn(this,ph)[ph]=!!e}setEnabledRecaptcha2(e){return this.enabledRecaptcha2=e,this}get recaptcha2ClientKey(){return Gn(this,mh)[mh]}set recaptcha2ClientKey(e){Gn(this,mh)[mh]=String(e)}setRecaptcha2ClientKey(e){return this.recaptcha2ClientKey=e,this}constructor(e=void 0){if(Object.defineProperty(this,IC,{value:mV}),Object.defineProperty(this,uh,{writable:!0,value:!1}),Object.defineProperty(this,lh,{writable:!0,value:!1}),Object.defineProperty(this,ch,{writable:!0,value:!1}),Object.defineProperty(this,fh,{writable:!0,value:!1}),Object.defineProperty(this,dh,{writable:!0,value:""}),Object.defineProperty(this,hh,{writable:!0,value:""}),Object.defineProperty(this,ph,{writable:!0,value:!1}),Object.defineProperty(this,mh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Gn(this,IC)[IC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.email!==void 0&&(this.email=n.email),n.phone!==void 0&&(this.phone=n.phone),n.google!==void 0&&(this.google=n.google),n.facebook!==void 0&&(this.facebook=n.facebook),n.googleOAuthClientKey!==void 0&&(this.googleOAuthClientKey=n.googleOAuthClientKey),n.facebookAppId!==void 0&&(this.facebookAppId=n.facebookAppId),n.enabledRecaptcha2!==void 0&&(this.enabledRecaptcha2=n.enabledRecaptcha2),n.recaptcha2ClientKey!==void 0&&(this.recaptcha2ClientKey=n.recaptcha2ClientKey)}toJSON(){return{email:Gn(this,uh)[uh],phone:Gn(this,lh)[lh],google:Gn(this,ch)[ch],facebook:Gn(this,fh)[fh],googleOAuthClientKey:Gn(this,dh)[dh],facebookAppId:Gn(this,hh)[hh],enabledRecaptcha2:Gn(this,ph)[ph],recaptcha2ClientKey:Gn(this,mh)[mh]}}toString(){return JSON.stringify(this)}static get Fields(){return{email:"email",phone:"phone",google:"google",facebook:"facebook",googleOAuthClientKey:"googleOAuthClientKey",facebookAppId:"facebookAppId",enabledRecaptcha2:"enabledRecaptcha2",recaptcha2ClientKey:"recaptcha2ClientKey"}}static from(e){return new Of(e)}static with(e){return new Of(e)}copyWith(e){return new Of({...this.toJSON(),...e})}clone(){return new Of(this.toJSON())}}function mV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}class Vt{constructor(...e){this.visibility=null,this.parentId=null,this.linkerId=null,this.workspaceId=null,this.linkedId=null,this.uniqueId=null,this.userId=null,this.updated=null,this.created=null,this.createdFormatted=null,this.updatedFormatted=null}}Vt.Fields={visibility:"visibility",parentId:"parentId",linkerId:"linkerId",workspaceId:"workspaceId",linkedId:"linkedId",uniqueId:"uniqueId",userId:"userId",updated:"updated",created:"created",updatedFormatted:"updatedFormatted",createdFormatted:"createdFormatted"};class Wp extends Vt{constructor(...e){super(...e),this.children=void 0,this.firstName=void 0,this.lastName=void 0,this.photo=void 0,this.gender=void 0,this.title=void 0,this.birthDate=void 0,this.avatar=void 0,this.lastIpAddress=void 0,this.primaryAddress=void 0}}Wp.Navigation={edit(t,e){return`${e?"/"+e:".."}/user/edit/${t}`},create(t){return`${t?"/"+t:".."}/user/new`},single(t,e){return`${e?"/"+e:".."}/user/${t}`},query(t={},e){return`${e?"/"+e:".."}/users`},Redit:"user/edit/:uniqueId",Rcreate:"user/new",Rsingle:"user/:uniqueId",Rquery:"users",rPrimaryAddressCreate:"user/:linkerId/primary_address/new",rPrimaryAddressEdit:"user/:linkerId/primary_address/edit/:uniqueId",editPrimaryAddress(t,e,n){return`${n?"/"+n:""}/user/${t}/primary_address/edit/${e}`},createPrimaryAddress(t,e){return`${e?"/"+e:""}/user/${t}/primary_address/new`}};Wp.definition={events:[{name:"Googoli2",description:"Googlievent",payload:{fields:[{name:"entity",type:"string",computedType:"string",gormMap:{}}]}}],rpc:{query:{qs:[{name:"withImages",type:"bool?",gormMap:{}}]}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"user",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"firstName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"lastName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"photo",type:"string",computedType:"string",gormMap:{}},{name:"gender",type:"int?",computedType:"number",gormMap:{}},{name:"title",type:"string",computedType:"string",gormMap:{}},{name:"birthDate",type:"date",computedType:"Date",gormMap:{}},{name:"avatar",type:"string",computedType:"string",gormMap:{}},{name:"lastIpAddress",description:"User last connecting ip address",type:"string",computedType:"string",gormMap:{}},{name:"primaryAddress",description:"User primary address location. Can be useful for simple projects that a user is associated with a single address.",type:"object",computedType:"UserPrimaryAddress",gormMap:{},"-":"UserPrimaryAddress",fields:[{name:"addressLine1",description:"Street address, building number",type:"string",computedType:"string",gormMap:{}},{name:"addressLine2",description:"Apartment, suite, floor (optional)",type:"string?",computedType:"string",gormMap:{}},{name:"city",description:"City or locality",type:"string?",computedType:"string",gormMap:{}},{name:"stateOrProvince",description:"State, region, or province",type:"string?",computedType:"string",gormMap:{}},{name:"postalCode",description:"ZIP or postal code",type:"string?",computedType:"string",gormMap:{}},{name:"countryCode",description:'ISO 3166-1 alpha-2 (e.g., \\"US\\", \\"DE\\")',type:"string?",computedType:"string",gormMap:{}}],linkedTo:"UserEntity"}],description:"Manage the users who are in the current app (root only)"};Wp.Fields={...Vt.Fields,firstName:"firstName",lastName:"lastName",photo:"photo",gender:"gender",title:"title",birthDate:"birthDate",avatar:"avatar",lastIpAddress:"lastIpAddress",primaryAddress$:"primaryAddress",primaryAddress:{...Vt.Fields,addressLine1:"primaryAddress.addressLine1",addressLine2:"primaryAddress.addressLine2",city:"primaryAddress.city",stateOrProvince:"primaryAddress.stateOrProvince",postalCode:"primaryAddress.postalCode",countryCode:"primaryAddress.countryCode"}};class f1 extends Vt{constructor(...e){super(...e),this.children=void 0,this.thirdPartyVerifier=void 0,this.type=void 0,this.user=void 0,this.value=void 0,this.totpSecret=void 0,this.totpConfirmed=void 0,this.password=void 0,this.confirmed=void 0,this.accessToken=void 0}}f1.Navigation={edit(t,e){return`${e?"/"+e:".."}/passport/edit/${t}`},create(t){return`${t?"/"+t:".."}/passport/new`},single(t,e){return`${e?"/"+e:".."}/passport/${t}`},query(t={},e){return`${e?"/"+e:".."}/passports`},Redit:"passport/edit/:uniqueId",Rcreate:"passport/new",Rsingle:"passport/:uniqueId",Rquery:"passports"};f1.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"passport",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"thirdPartyVerifier",description:"When user creates account via oauth services such as google, it's essential to set the provider and do not allow passwordless logins if it's not via that specific provider.",type:"string",default:!1,computedType:"string",gormMap:{}},{name:"type",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"user",type:"one",target:"UserEntity",computedType:"UserEntity",gormMap:{}},{name:"value",type:"string",validate:"required",computedType:"string",gorm:"unique",gormMap:{}},{name:"totpSecret",description:"Store the secret of 2FA using time based dual factor authentication here for this specific passport. If set, during authorization will be asked.",type:"string",computedType:"string",gormMap:{}},{name:"totpConfirmed",description:"Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"password",type:"string",json:"-",yaml:"-",computedType:"string",gormMap:{}},{name:"confirmed",type:"bool?",computedType:"boolean",gormMap:{}},{name:"accessToken",type:"string",computedType:"string",gormMap:{}}],description:"Represent a mean to login in into the system, each user could have multiple passport (email, phone) and authenticate into the system."};f1.Fields={...Vt.Fields,thirdPartyVerifier:"thirdPartyVerifier",type:"type",user$:"user",user:Wp.Fields,value:"value",totpSecret:"totpSecret",totpConfirmed:"totpConfirmed",password:"password",confirmed:"confirmed",accessToken:"accessToken"};class q1 extends Vt{constructor(...e){super(...e),this.children=void 0,this.name=void 0,this.description=void 0}}q1.Navigation={edit(t,e){return`${e?"/"+e:".."}/capability/edit/${t}`},create(t){return`${t?"/"+t:".."}/capability/new`},single(t,e){return`${e?"/"+e:".."}/capability/${t}`},query(t={},e){return`${e?"/"+e:".."}/capabilities`},Redit:"capability/edit/:uniqueId",Rcreate:"capability/new",Rsingle:"capability/:uniqueId",Rquery:"capabilities"};q1.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"capability",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"name",type:"string",computedType:"string",gormMap:{}},{name:"description",type:"string",translate:!0,computedType:"string",gormMap:{}}],cliShort:"cap",description:"Manage the capabilities inside the application, both builtin to core and custom defined ones"};q1.Fields={...Vt.Fields,name:"name",description:"description"};class kr extends Vt{constructor(...e){super(...e),this.children=void 0,this.name=void 0,this.capabilities=void 0,this.capabilitiesListId=void 0}}kr.Navigation={edit(t,e){return`${e?"/"+e:".."}/role/edit/${t}`},create(t){return`${t?"/"+t:".."}/role/new`},single(t,e){return`${e?"/"+e:".."}/role/${t}`},query(t={},e){return`${e?"/"+e:".."}/roles`},Redit:"role/edit/:uniqueId",Rcreate:"role/new",Rsingle:"role/:uniqueId",Rquery:"roles"};kr.definition={rpc:{query:{}},name:"role",features:{},messages:{roleNeedsOneCapability:{en:"Role atleast needs one capability to be selected."}},gormMap:{},fields:[{name:"name",type:"string",validate:"required,omitempty,min=1,max=200",computedType:"string",gormMap:{}},{name:"capabilities",type:"collection",target:"CapabilityEntity",module:"fireback",computedType:"CapabilityEntity[]",gormMap:{}}],description:"Manage roles within the workspaces, or root configuration"};kr.Fields={...Vt.Fields,name:"name",capabilitiesListId:"capabilitiesListId",capabilities$:"capabilities",capabilities:q1.Fields};class AS extends Vt{constructor(...e){super(...e),this.children=void 0,this.title=void 0,this.description=void 0,this.slug=void 0,this.role=void 0,this.roleId=void 0}}AS.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace-type/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace-type/new`},single(t,e){return`${e?"/"+e:".."}/workspace-type/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspace-types`},Redit:"workspace-type/edit/:uniqueId",Rcreate:"workspace-type/new",Rsingle:"workspace-type/:uniqueId",Rquery:"workspace-types"};AS.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspaceType",features:{mock:!1,msync:!1},security:{writeOnRoot:!0,readOnRoot:!0},messages:{cannotCreateWorkspaceType:{en:"You cannot create workspace type due to some validation errors."},cannotModifyWorkspaceType:{en:"You cannot modify workspace type due to some validation errors."},onlyRootRoleIsAccepted:{en:"You can only select a role which is created or belong to 'root' workspace."},roleIsNecessary:{en:"Role needs to be defined and exist."},roleIsNotAccessible:{en:"Role is not accessible unfortunately. Make sure you the role chose exists."},roleNeedsToHaveCapabilities:{en:"Role needs to have at least one capability before could be assigned."}},gormMap:{},fields:[{name:"title",type:"string",validate:"required,omitempty,min=1,max=250",translate:!0,computedType:"string",gormMap:{}},{name:"description",type:"string",translate:!0,computedType:"string",gormMap:{}},{name:"slug",type:"string",validate:"required,omitempty,min=2,max=50",computedType:"string",gormMap:{}},{name:"role",description:"The role which will be used to define the functionality of this workspace, Role needs to be created before hand, and only roles which belong to root workspace are possible to be selected",type:"one",target:"RoleEntity",validate:"required",computedType:"RoleEntity",gormMap:{}}],cliName:"type",description:"Defines a type for workspace, and the role which it can have as a whole. In systems with multiple types of services, e.g. student, teachers, schools this is useful to set those default types and limit the access of the users."};AS.Fields={...Vt.Fields,title:"title",description:"description",slug:"slug",roleId:"roleId",role$:"role",role:kr.Fields};class cy extends Vt{constructor(...e){super(...e),this.children=void 0,this.description=void 0,this.name=void 0,this.type=void 0,this.typeId=void 0}}cy.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace/new`},single(t,e){return`${e?"/"+e:".."}/workspace/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspaces`},Redit:"workspace/edit/:uniqueId",Rcreate:"workspace/new",Rsingle:"workspace/:uniqueId",Rquery:"workspaces"};cy.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0},gormMap:{},fields:[{name:"description",type:"string",computedType:"string",gormMap:{}},{name:"name",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"type",type:"one",target:"WorkspaceTypeEntity",validate:"required",computedType:"WorkspaceTypeEntity",gormMap:{}}],cliName:"ws",description:"Fireback general user role, workspaces services.",cte:!0};cy.Fields={...Vt.Fields,description:"description",name:"name",typeId:"typeId",type$:"type",type:AS.Fields};class Gg extends Vt{constructor(...e){super(...e),this.children=void 0,this.user=void 0,this.workspace=void 0,this.userPermissions=void 0,this.rolePermission=void 0,this.workspacePermissions=void 0}}Gg.Navigation={edit(t,e){return`${e?"/"+e:".."}/user-workspace/edit/${t}`},create(t){return`${t?"/"+t:".."}/user-workspace/new`},single(t,e){return`${e?"/"+e:".."}/user-workspace/${t}`},query(t={},e){return`${e?"/"+e:".."}/user-workspaces`},Redit:"user-workspace/edit/:uniqueId",Rcreate:"user-workspace/new",Rsingle:"user-workspace/:uniqueId",Rquery:"user-workspaces"};Gg.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"userWorkspace",features:{},security:{resolveStrategy:"user"},gormMap:{workspaceId:"index:userworkspace_idx,unique",userId:"index:userworkspace_idx,unique"},fields:[{name:"user",type:"one",target:"UserEntity",computedType:"UserEntity",gormMap:{}},{name:"workspace",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}},{name:"userPermissions",type:"slice",primitive:"string",computedType:"string[]",gorm:"-",gormMap:{},sql:"-"},{name:"rolePermission",type:"slice",primitive:"UserRoleWorkspaceDto",computedType:"unknown[]",gorm:"-",gormMap:{},sql:"-"},{name:"workspacePermissions",type:"slice",primitive:"string",computedType:"string[]",gorm:"-",gormMap:{},sql:"-"}],cliShort:"user",description:"Manage the workspaces that user belongs to (either its himselves or adding by invitation)"};Gg.Fields={...Vt.Fields,user$:"user",user:Wp.Fields,workspace$:"workspace",workspace:cy.Fields,userPermissions:"userPermissions",rolePermission:"rolePermission",workspacePermissions:"workspacePermissions"};function xl(t,e){const n={};for(const[r,i]of Object.entries(e))typeof i=="string"?n[r]=`${t}.${i}`:typeof i=="object"&&i!==null&&(n[r]=i);return n}function lr(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var gV=0;function rm(t){return"__private_"+gV+++"_"+t}var sl=rm("passport"),gh=rm("token"),yh=rm("exchangeKey"),ul=rm("userWorkspaces"),ll=rm("user"),vh=rm("userId"),NC=rm("isJsonAppliable");class Nn{get passport(){return lr(this,sl)[sl]}set passport(e){e instanceof f1?lr(this,sl)[sl]=e:lr(this,sl)[sl]=new f1(e)}setPassport(e){return this.passport=e,this}get token(){return lr(this,gh)[gh]}set token(e){lr(this,gh)[gh]=String(e)}setToken(e){return this.token=e,this}get exchangeKey(){return lr(this,yh)[yh]}set exchangeKey(e){lr(this,yh)[yh]=String(e)}setExchangeKey(e){return this.exchangeKey=e,this}get userWorkspaces(){return lr(this,ul)[ul]}set userWorkspaces(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof Gg?lr(this,ul)[ul]=e:lr(this,ul)[ul]=e.map(n=>new Gg(n)))}setUserWorkspaces(e){return this.userWorkspaces=e,this}get user(){return lr(this,ll)[ll]}set user(e){e instanceof Wp?lr(this,ll)[ll]=e:lr(this,ll)[ll]=new Wp(e)}setUser(e){return this.user=e,this}get userId(){return lr(this,vh)[vh]}set userId(e){const n=typeof e=="string"||e===void 0||e===null;lr(this,vh)[vh]=n?e:String(e)}setUserId(e){return this.userId=e,this}constructor(e=void 0){if(Object.defineProperty(this,NC,{value:yV}),Object.defineProperty(this,sl,{writable:!0,value:void 0}),Object.defineProperty(this,gh,{writable:!0,value:""}),Object.defineProperty(this,yh,{writable:!0,value:""}),Object.defineProperty(this,ul,{writable:!0,value:[]}),Object.defineProperty(this,ll,{writable:!0,value:void 0}),Object.defineProperty(this,vh,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(lr(this,NC)[NC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.passport!==void 0&&(this.passport=n.passport),n.token!==void 0&&(this.token=n.token),n.exchangeKey!==void 0&&(this.exchangeKey=n.exchangeKey),n.userWorkspaces!==void 0&&(this.userWorkspaces=n.userWorkspaces),n.user!==void 0&&(this.user=n.user),n.userId!==void 0&&(this.userId=n.userId)}toJSON(){return{passport:lr(this,sl)[sl],token:lr(this,gh)[gh],exchangeKey:lr(this,yh)[yh],userWorkspaces:lr(this,ul)[ul],user:lr(this,ll)[ll],userId:lr(this,vh)[vh]}}toString(){return JSON.stringify(this)}static get Fields(){return{passport:"passport",token:"token",exchangeKey:"exchangeKey",userWorkspaces$:"userWorkspaces",get userWorkspaces(){return xl("userWorkspaces[:i]",Gg.Fields)},user:"user",userId:"userId"}}static from(e){return new Nn(e)}static with(e){return new Nn(e)}copyWith(e){return new Nn({...this.toJSON(),...e})}clone(){return new Nn(this.toJSON())}}function yV(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}class Tr extends Vt{constructor(...e){super(...e),this.children=void 0,this.publicKey=void 0,this.coverLetter=void 0,this.targetUserLocale=void 0,this.email=void 0,this.phonenumber=void 0,this.workspace=void 0,this.firstName=void 0,this.lastName=void 0,this.forceEmailAddress=void 0,this.forcePhoneNumber=void 0,this.role=void 0,this.roleId=void 0}}Tr.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace-invite/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace-invite/new`},single(t,e){return`${e?"/"+e:".."}/workspace-invite/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspace-invites`},Redit:"workspace-invite/edit/:uniqueId",Rcreate:"workspace-invite/new",Rsingle:"workspace-invite/:uniqueId",Rquery:"workspace-invites"};Tr.definition={rpc:{query:{}},name:"workspaceInvite",features:{},gormMap:{},fields:[{name:"publicKey",description:"A long hash to get the user into the confirm or signup page without sending the email or phone number, for example if an administrator wants to copy the link.",type:"string",computedType:"string",gormMap:{}},{name:"coverLetter",description:"The content that user will receive to understand the reason of the letter.",type:"string",computedType:"string",gormMap:{}},{name:"targetUserLocale",description:"If the invited person has a different language, then you can define that so the interface for him will be automatically translated.",type:"string",computedType:"string",gormMap:{}},{name:"email",description:"The email address of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"phonenumber",description:"The phone number of the person which is invited.",type:"string",computedType:"string",gormMap:{}},{name:"workspace",description:"Workspace which user is being invite to.",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}},{name:"firstName",description:"First name of the person which is invited",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"lastName",description:"Last name of the person which is invited.",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"forceEmailAddress",description:"If forced, the email address cannot be changed by the user which has been invited.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePhoneNumber",description:"If forced, user cannot change the phone number and needs to complete signup.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"role",description:"The role which invitee get if they accept the request.",type:"one",target:"RoleEntity",validate:"required",computedType:"RoleEntity",gormMap:{}}],cliShort:"invite",description:"Active invitations for non-users or already users to join an specific workspace, created by administration of the workspace"};Tr.Fields={...Vt.Fields,publicKey:"publicKey",coverLetter:"coverLetter",targetUserLocale:"targetUserLocale",email:"email",phonenumber:"phonenumber",workspace$:"workspace",workspace:cy.Fields,firstName:"firstName",lastName:"lastName",forceEmailAddress:"forceEmailAddress",forcePhoneNumber:"forcePhoneNumber",roleId:"roleId",role$:"role",role:kr.Fields};var j_,B_,q_,H_,z_,V_,G_,W_,K_,Y_,J_,Q_,X_,Z_,eA,tA,nA,rA,iA,aA,pn;function wu(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}const m0={data:{user:{firstName:"Ali",lastName:"Torabi"},exchangeKey:"key1",token:"token"}};let vV=(j_=ft("passport/authorizeOs"),B_=dt("post"),q_=ft("users/invitations"),H_=dt("get"),z_=ft("passports/signin/classic"),V_=dt("post"),G_=ft("passport/request-reset-mail-password"),W_=dt("post"),K_=ft("passports/available-methods"),Y_=dt("get"),J_=ft("workspace/passport/check"),Q_=dt("post"),X_=ft("passports/signup/classic"),Z_=dt("post"),eA=ft("passport/totp/confirm"),tA=dt("post"),nA=ft("workspace/passport/otp"),rA=dt("post"),iA=ft("workspace/public/types"),aA=dt("get"),pn=class{async passportAuthroizeOs(e){return m0}async getUserInvites(e){return hq}async postSigninClassic(e){return m0}async postRequestResetMail(e){return m0}async getAvailableMethods(e){return{data:{item:{email:!0,enabledRecaptcha2:!1,google:null,phone:!0,recaptcha2ClientKey:"6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"}}}}async postWorkspacePassportCheck(e){var r;return((r=e==null?void 0:e.body)==null?void 0:r.value.includes("@"))?{data:{next:["otp","create-with-password"],flags:["enable-totp","force-totp"],otpInfo:null}}:{data:{next:["otp"],flags:["enable-totp","force-totp"],otpInfo:null}}}async postPassportSignupClassic(e){var n;return(n=e==null?void 0:e.body)==null||n.value.includes("@"),{data:{session:null,totpUrl:"otpauth://totp/Fireback:ali@ali.com?algorithm=SHA1&digits=6&issuer=Fireback&period=30&secret=R2AQ4NPS7FKECL3ZVTF3JMTLBYGDAAVU",continueToTotp:!0,forcedTotp:!0}}}async postConfirm(e){return{data:{session:m0.data}}}async postOtp(e){return{data:{session:m0.data}}}async getWorkspaceTypes(e){return{data:{items:[{description:null,slug:"customer",title:"customer",uniqueId:"nG012z7VNyYKMJPqWjV04"}],itemsPerPage:20,startIndex:0,totalItems:2}}}},wu(pn.prototype,"passportAuthroizeOs",[j_,B_],Object.getOwnPropertyDescriptor(pn.prototype,"passportAuthroizeOs"),pn.prototype),wu(pn.prototype,"getUserInvites",[q_,H_],Object.getOwnPropertyDescriptor(pn.prototype,"getUserInvites"),pn.prototype),wu(pn.prototype,"postSigninClassic",[z_,V_],Object.getOwnPropertyDescriptor(pn.prototype,"postSigninClassic"),pn.prototype),wu(pn.prototype,"postRequestResetMail",[G_,W_],Object.getOwnPropertyDescriptor(pn.prototype,"postRequestResetMail"),pn.prototype),wu(pn.prototype,"getAvailableMethods",[K_,Y_],Object.getOwnPropertyDescriptor(pn.prototype,"getAvailableMethods"),pn.prototype),wu(pn.prototype,"postWorkspacePassportCheck",[J_,Q_],Object.getOwnPropertyDescriptor(pn.prototype,"postWorkspacePassportCheck"),pn.prototype),wu(pn.prototype,"postPassportSignupClassic",[X_,Z_],Object.getOwnPropertyDescriptor(pn.prototype,"postPassportSignupClassic"),pn.prototype),wu(pn.prototype,"postConfirm",[eA,tA],Object.getOwnPropertyDescriptor(pn.prototype,"postConfirm"),pn.prototype),wu(pn.prototype,"postOtp",[nA,rA],Object.getOwnPropertyDescriptor(pn.prototype,"postOtp"),pn.prototype),wu(pn.prototype,"getWorkspaceTypes",[iA,aA],Object.getOwnPropertyDescriptor(pn.prototype,"getWorkspaceTypes"),pn.prototype),pn);class jO extends Vt{constructor(...e){super(...e),this.children=void 0,this.name=void 0,this.operationId=void 0,this.diskPath=void 0,this.size=void 0,this.virtualPath=void 0,this.type=void 0,this.variations=void 0}}jO.Navigation={edit(t,e){return`${e?"/"+e:".."}/file/edit/${t}`},create(t){return`${t?"/"+t:".."}/file/new`},single(t,e){return`${e?"/"+e:".."}/file/${t}`},query(t={},e){return`${e?"/"+e:".."}/files`},Redit:"file/edit/:uniqueId",Rcreate:"file/new",Rsingle:"file/:uniqueId",Rquery:"files",rVariationsCreate:"file/:linkerId/variations/new",rVariationsEdit:"file/:linkerId/variations/edit/:uniqueId",editVariations(t,e,n){return`${n?"/"+n:""}/file/${t}/variations/edit/${e}`},createVariations(t,e){return`${e?"/"+e:""}/file/${t}/variations/new`}};jO.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"file",features:{},gormMap:{},fields:[{name:"name",type:"string",computedType:"string",gormMap:{}},{name:"operationId",description:"For each upload, we need to assign a operation id, so if the operation has been cancelled, it would be cleared automatically, and there won't be orphant files in the database.",type:"string",computedType:"string",gormMap:{}},{name:"diskPath",type:"string",computedType:"string",gormMap:{}},{name:"size",type:"int64",computedType:"number",gormMap:{}},{name:"virtualPath",type:"string",computedType:"string",gormMap:{}},{name:"type",type:"string",computedType:"string",gormMap:{}},{name:"variations",type:"array",computedType:"FileVariations[]",gormMap:{},"-":"FileVariations",fields:[{name:"name",type:"string",computedType:"string",gormMap:{}}],linkedTo:"FileEntity"}],description:"Tus file uploading reference of the content. Every files being uploaded using tus will be stored in this table."};jO.Fields={...Vt.Fields,name:"name",operationId:"operationId",diskPath:"diskPath",size:"size",virtualPath:"virtualPath",type:"type",variations$:"variations",variationsAt:t=>({$:`variations[${t}]`,...Vt.Fields,name:`variations[${t}].name`})};function FI(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;etypeof t=="number"&&!isNaN(t),Kp=t=>typeof t=="string",Ea=t=>typeof t=="function",Ew=t=>Kp(t)||Ea(t)?t:null,MC=t=>T.isValidElement(t)||Kp(t)||Ea(t)||z0(t);function bV(t,e,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function RS(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=t;return function(u){let{children:l,position:d,preventExitTransition:h,done:g,nodeRef:y,isIn:w}=u;const v=r?`${e}--${d}`:e,C=r?`${n}--${d}`:n,E=T.useRef(0);return T.useLayoutEffect(()=>{const $=y.current,O=v.split(" "),_=R=>{R.target===y.current&&($.dispatchEvent(new Event("d")),$.removeEventListener("animationend",_),$.removeEventListener("animationcancel",_),E.current===0&&R.type!=="animationcancel"&&$.classList.remove(...O))};$.classList.add(...O),$.addEventListener("animationend",_),$.addEventListener("animationcancel",_)},[]),T.useEffect(()=>{const $=y.current,O=()=>{$.removeEventListener("animationend",O),i?bV($,g,o):g()};w||(h?O():(E.current=1,$.className+=` ${C}`,$.addEventListener("animationend",O)))},[w]),Ae.createElement(Ae.Fragment,null,l)}}function oA(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const Lo={list:new Map,emitQueue:new Map,on(t,e){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(e),this},off(t,e){if(e){const n=this.list.get(t).filter(r=>r!==e);return this.list.set(t,n),this}return this.list.delete(t),this},cancelEmit(t){const e=this.emitQueue.get(t);return e&&(e.forEach(clearTimeout),this.emitQueue.delete(t)),this},emit(t){this.list.has(t)&&this.list.get(t).forEach(e=>{const n=setTimeout(()=>{e(...[].slice.call(arguments,1))},0);this.emitQueue.has(t)||this.emitQueue.set(t,[]),this.emitQueue.get(t).push(n)})}},Z2=t=>{let{theme:e,type:n,...r}=t;return Ae.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},kC={info:function(t){return Ae.createElement(Z2,{...t},Ae.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return Ae.createElement(Z2,{...t},Ae.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return Ae.createElement(Z2,{...t},Ae.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return Ae.createElement(Z2,{...t},Ae.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Ae.createElement("div",{className:"Toastify__spinner"})}};function wV(t){const[,e]=T.useReducer(v=>v+1,0),[n,r]=T.useState([]),i=T.useRef(null),o=T.useRef(new Map).current,u=v=>n.indexOf(v)!==-1,l=T.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:u,getToast:v=>o.get(v)}).current;function d(v){let{containerId:C}=v;const{limit:E}=l.props;!E||C&&l.containerId!==C||(l.count-=l.queue.length,l.queue=[])}function h(v){r(C=>v==null?[]:C.filter(E=>E!==v))}function g(){const{toastContent:v,toastProps:C,staleId:E}=l.queue.shift();w(v,C,E)}function y(v,C){let{delay:E,staleId:$,...O}=C;if(!MC(v)||(function(me){return!i.current||l.props.enableMultiContainer&&me.containerId!==l.props.containerId||o.has(me.toastId)&&me.updateId==null})(O))return;const{toastId:_,updateId:R,data:k}=O,{props:P}=l,L=()=>h(_),F=R==null;F&&l.count++;const q={...P,style:P.toastStyle,key:l.toastKey++,...Object.fromEntries(Object.entries(O).filter(me=>{let[te,be]=me;return be!=null})),toastId:_,updateId:R,data:k,closeToast:L,isIn:!1,className:Ew(O.className||P.toastClassName),bodyClassName:Ew(O.bodyClassName||P.bodyClassName),progressClassName:Ew(O.progressClassName||P.progressClassName),autoClose:!O.isLoading&&(Y=O.autoClose,X=P.autoClose,Y===!1||z0(Y)&&Y>0?Y:X),deleteToast(){const me=oA(o.get(_),"removed");o.delete(_),Lo.emit(4,me);const te=l.queue.length;if(l.count=_==null?l.count-l.displayedToast:l.count-1,l.count<0&&(l.count=0),te>0){const be=_==null?l.props.limit:1;if(te===1||be===1)l.displayedToast++,g();else{const we=be>te?te:be;l.displayedToast=we;for(let B=0;Bie in kC)(be)&&(V=kC[be](H))),V})(q),Ea(O.onOpen)&&(q.onOpen=O.onOpen),Ea(O.onClose)&&(q.onClose=O.onClose),q.closeButton=P.closeButton,O.closeButton===!1||MC(O.closeButton)?q.closeButton=O.closeButton:O.closeButton===!0&&(q.closeButton=!MC(P.closeButton)||P.closeButton);let ue=v;T.isValidElement(v)&&!Kp(v.type)?ue=T.cloneElement(v,{closeToast:L,toastProps:q,data:k}):Ea(v)&&(ue=v({closeToast:L,toastProps:q,data:k})),P.limit&&P.limit>0&&l.count>P.limit&&F?l.queue.push({toastContent:ue,toastProps:q,staleId:$}):z0(E)?setTimeout(()=>{w(ue,q,$)},E):w(ue,q,$)}function w(v,C,E){const{toastId:$}=C;E&&o.delete(E);const O={content:v,props:C};o.set($,O),r(_=>[..._,$].filter(R=>R!==E)),Lo.emit(4,oA(O,O.props.updateId==null?"added":"updated"))}return T.useEffect(()=>(l.containerId=t.containerId,Lo.cancelEmit(3).on(0,y).on(1,v=>i.current&&h(v)).on(5,d).emit(2,l),()=>{o.clear(),Lo.emit(3,l)}),[]),T.useEffect(()=>{l.props=t,l.isToastActive=u,l.displayedToast=n.length}),{getToastToRender:function(v){const C=new Map,E=Array.from(o.values());return t.newestOnTop&&E.reverse(),E.forEach($=>{const{position:O}=$.props;C.has(O)||C.set(O,[]),C.get(O).push($)}),Array.from(C,$=>v($[0],$[1]))},containerRef:i,isToastActive:u}}function sA(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function uA(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function SV(t){const[e,n]=T.useState(!1),[r,i]=T.useState(!1),o=T.useRef(null),u=T.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=T.useRef(t),{autoClose:d,pauseOnHover:h,closeToast:g,onClick:y,closeOnClick:w}=t;function v(k){if(t.draggable){k.nativeEvent.type==="touchstart"&&k.nativeEvent.preventDefault(),u.didMove=!1,document.addEventListener("mousemove",O),document.addEventListener("mouseup",_),document.addEventListener("touchmove",O),document.addEventListener("touchend",_);const P=o.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=P.getBoundingClientRect(),P.style.transition="",u.x=sA(k.nativeEvent),u.y=uA(k.nativeEvent),t.draggableDirection==="x"?(u.start=u.x,u.removalDistance=P.offsetWidth*(t.draggablePercent/100)):(u.start=u.y,u.removalDistance=P.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent/100))}}function C(k){if(u.boundingRect){const{top:P,bottom:L,left:F,right:q}=u.boundingRect;k.nativeEvent.type!=="touchend"&&t.pauseOnHover&&u.x>=F&&u.x<=q&&u.y>=P&&u.y<=L?$():E()}}function E(){n(!0)}function $(){n(!1)}function O(k){const P=o.current;u.canDrag&&P&&(u.didMove=!0,e&&$(),u.x=sA(k),u.y=uA(k),u.delta=t.draggableDirection==="x"?u.x-u.start:u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),P.style.transform=`translate${t.draggableDirection}(${u.delta}px)`,P.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function _(){document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",_),document.removeEventListener("touchmove",O),document.removeEventListener("touchend",_);const k=o.current;if(u.canDrag&&u.didMove&&k){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return i(!0),void t.closeToast();k.style.transition="transform 0.2s, opacity 0.2s",k.style.transform=`translate${t.draggableDirection}(0)`,k.style.opacity="1"}}T.useEffect(()=>{l.current=t}),T.useEffect(()=>(o.current&&o.current.addEventListener("d",E,{once:!0}),Ea(t.onOpen)&&t.onOpen(T.isValidElement(t.children)&&t.children.props),()=>{const k=l.current;Ea(k.onClose)&&k.onClose(T.isValidElement(k.children)&&k.children.props)}),[]),T.useEffect(()=>(t.pauseOnFocusLoss&&(document.hasFocus()||$(),window.addEventListener("focus",E),window.addEventListener("blur",$)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener("focus",E),window.removeEventListener("blur",$))}),[t.pauseOnFocusLoss]);const R={onMouseDown:v,onTouchStart:v,onMouseUp:C,onTouchEnd:C};return d&&h&&(R.onMouseEnter=$,R.onMouseLeave=E),w&&(R.onClick=k=>{y&&y(k),u.canCloseOnClick&&g()}),{playToast:E,pauseToast:$,isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:R}}function LI(t){let{closeToast:e,theme:n,ariaLabel:r="close"}=t;return Ae.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:i=>{i.stopPropagation(),e(i)},"aria-label":r},Ae.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Ae.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function CV(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:o,className:u,style:l,controlledProgress:d,progress:h,rtl:g,isIn:y,theme:w}=t;const v=o||d&&h===0,C={...l,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused",opacity:v?0:1};d&&(C.transform=`scaleX(${h})`);const E=Tf("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${w}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":g}),$=Ea(u)?u({rtl:g,type:i,defaultClassName:E}):Tf(E,u);return Ae.createElement("div",{role:"progressbar","aria-hidden":v?"true":"false","aria-label":"notification timer",className:$,style:C,[d&&h>=1?"onTransitionEnd":"onAnimationEnd"]:d&&h<1?null:()=>{y&&r()}})}const $V=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i}=SV(t),{closeButton:o,children:u,autoClose:l,onClick:d,type:h,hideProgressBar:g,closeToast:y,transition:w,position:v,className:C,style:E,bodyClassName:$,bodyStyle:O,progressClassName:_,progressStyle:R,updateId:k,role:P,progress:L,rtl:F,toastId:q,deleteToast:Y,isIn:X,isLoading:ue,iconOut:me,closeOnClick:te,theme:be}=t,we=Tf("Toastify__toast",`Toastify__toast-theme--${be}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":F},{"Toastify__toast--close-on-click":te}),B=Ea(C)?C({rtl:F,position:v,type:h,defaultClassName:we}):Tf(we,C),V=!!L||!l,H={closeToast:y,type:h,theme:be};let ie=null;return o===!1||(ie=Ea(o)?o(H):T.isValidElement(o)?T.cloneElement(o,H):LI(H)),Ae.createElement(w,{isIn:X,done:Y,position:v,preventExitTransition:n,nodeRef:r},Ae.createElement("div",{id:q,onClick:d,className:B,...i,style:E,ref:r},Ae.createElement("div",{...X&&{role:P},className:Ea($)?$({type:h}):Tf("Toastify__toast-body",$),style:O},me!=null&&Ae.createElement("div",{className:Tf("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!ue})},me),Ae.createElement("div",null,u)),ie,Ae.createElement(CV,{...k&&!V?{key:`pb-${k}`}:{},rtl:F,theme:be,delay:l,isRunning:e,isIn:X,closeToast:y,hide:g,type:h,style:R,className:_,controlledProgress:V,progress:L||0})))},PS=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},EV=RS(PS("bounce",!0));RS(PS("slide",!0));RS(PS("zoom"));RS(PS("flip"));const lA=T.forwardRef((t,e)=>{const{getToastToRender:n,containerRef:r,isToastActive:i}=wV(t),{className:o,style:u,rtl:l,containerId:d}=t;function h(g){const y=Tf("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":l});return Ea(o)?o({position:g,rtl:l,defaultClassName:y}):Tf(y,Ew(o))}return T.useEffect(()=>{e&&(e.current=r.current)},[]),Ae.createElement("div",{ref:r,className:"Toastify",id:d},n((g,y)=>{const w=y.length?{...u}:{...u,pointerEvents:"none"};return Ae.createElement("div",{className:h(g),style:w,key:`container-${g}`},y.map((v,C)=>{let{content:E,props:$}=v;return Ae.createElement($V,{...$,isIn:i($.toastId),style:{...$.style,"--nth":C+1,"--len":y.length},key:`toast-${$.key}`},E)}))}))});lA.displayName="ToastContainer",lA.defaultProps={position:"top-right",transition:EV,autoClose:5e3,closeButton:LI,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let DC,Sp=new Map,L0=[],xV=1;function UI(){return""+xV++}function OV(t){return t&&(Kp(t.toastId)||z0(t.toastId))?t.toastId:UI()}function V0(t,e){return Sp.size>0?Lo.emit(0,t,e):L0.push({content:t,options:e}),e.toastId}function Kw(t,e){return{...e,type:e&&e.type||t,toastId:OV(e)}}function ew(t){return(e,n)=>V0(e,Kw(t,n))}function Zn(t,e){return V0(t,Kw("default",e))}Zn.loading=(t,e)=>V0(t,Kw("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Zn.promise=function(t,e,n){let r,{pending:i,error:o,success:u}=e;i&&(r=Kp(i)?Zn.loading(i,n):Zn.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(g,y,w)=>{if(y==null)return void Zn.dismiss(r);const v={type:g,...l,...n,data:w},C=Kp(y)?{render:y}:y;return r?Zn.update(r,{...v,...C}):Zn(C.render,{...v,...C}),w},h=Ea(t)?t():t;return h.then(g=>d("success",u,g)).catch(g=>d("error",o,g)),h},Zn.success=ew("success"),Zn.info=ew("info"),Zn.error=ew("error"),Zn.warning=ew("warning"),Zn.warn=Zn.warning,Zn.dark=(t,e)=>V0(t,Kw("default",{theme:"dark",...e})),Zn.dismiss=t=>{Sp.size>0?Lo.emit(1,t):L0=L0.filter(e=>t!=null&&e.options.toastId!==t)},Zn.clearWaitingQueue=function(t){return t===void 0&&(t={}),Lo.emit(5,t)},Zn.isActive=t=>{let e=!1;return Sp.forEach(n=>{n.isToastActive&&n.isToastActive(t)&&(e=!0)}),e},Zn.update=function(t,e){e===void 0&&(e={}),setTimeout(()=>{const n=(function(r,i){let{containerId:o}=i;const u=Sp.get(o||DC);return u&&u.getToast(r)})(t,e);if(n){const{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:UI()};o.toastId!==t&&(o.staleId=t);const u=o.render||i;delete o.render,V0(u,o)}},0)},Zn.done=t=>{Zn.update(t,{progress:1})},Zn.onChange=t=>(Lo.on(4,t),()=>{Lo.off(4,t)}),Zn.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Zn.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Lo.on(2,t=>{DC=t.containerId||t,Sp.set(DC,t),L0.forEach(e=>{Lo.emit(0,e.content,e.options)}),L0=[]}).on(3,t=>{Sp.delete(t.containerId||t),Sp.size===0&&Lo.off(0).off(1).off(5)});let g0=null;const cA=2500;function TV(t,e){if((g0==null?void 0:g0.content)==t)return;const n=Zn(t,{hideProgressBar:!0,autoClose:cA,...e});g0={content:t,key:n},setTimeout(()=>{g0=null},cA)}const jI={onlyOnRoot:"This feature is only available for root access, please ask your administrator for more details",productName:"Fireback",orders:{archiveTitle:"Orders",discountCode:"Discount code",discountCodeHint:"Discount code",editOrder:"Edit order",invoiceNumber:"Invoice number",invoiceNumberHint:"Invoice number",items:"Items",itemsHint:"Items",newOrder:"New order",orderStatus:"Order status",orderStatusHint:"Order status",paymentStatus:"Payment status",paymentStatusHint:"Payment status",shippingAddress:"Shipping address",shippingAddressHint:"Shipping address",totalPrice:"Total price",totalPriceHint:"Total price"},shoppingCarts:{archiveTitle:"Shopping carts",editShoppingCart:"Edit shopping cart",items:"Items",itemsHint:"Items",newShoppingCart:"New shopping cart",product:"Product",productHint:"Select the product item",quantity:"Quantity",quantityHint:"How many products do you want"},discountCodes:{appliedCategories:"Applied categories",appliedCategoriesHint:"Applied categories",appliedProducts:"Applied products",appliedProductsHint:"Applied products",archiveTitle:"Discount codes",editDiscountCode:"Edit discount code",excludedCategories:"Excluded categories",excludedCategoriesHint:"Excluded categories",excludedProducts:"Excluded products",excludedProductsHint:"Excluded products",limit:"Limit",limitHint:"Limit",newDiscountCode:"New discount code",series:"Series",seriesHint:"Series",validFrom:"Valid from",validFromHint:"Valid from",validUntil:"Valid until",validUntilHint:"Valid until"},postcategories:{archiveTitle:"Post Category",editpostCategory:"Edit Post category",name:"Name",nameHint:"Name",newpostCategory:"Newpost category"},pagecategories:{archiveTitle:"Page category",editpageCategory:"Edit page category",name:"Name",nameHint:"Name",newpageCategory:"New page category"},posttags:{archiveTitle:"Post tag",editpostTag:"Edit post tag",name:"Name",nameHint:"Name",newpostTag:"New post tag"},pagetags:{archiveTitle:"Page tag",editpageTag:"Edit page tag",name:"Name",nameHint:"Name",newpageTag:"New page tag"},posts:{archiveTitle:"Posts",category:"Category",categoryHint:"Category",content:"Content",contentHint:"content",editpost:"Edit post",newpost:"New post",tags:"Tags",tagsHint:"Tags",title:"Title",titleHint:"Title"},pages:{archiveTitle:"Pages",category:"Category",categoryHint:"Page category",content:"Content",contentHint:"",editpage:"Edit page",newpage:"New page",tags:"Tags",tagsHint:"Page tags",title:"Title",titleHint:"Page title"},components:{currency:"Currency",currencyHint:"Currency type",amount:"Amount",amountHint:"Amount in numbers, separated by . for cents"},brands:{archiveTitle:"Brand",editBrand:"Edit brand",name:"Name",nameHint:"Brand's name",newBrand:"New brand"},tags:{archiveTitle:"Tags",editTag:"Edit tag",name:"Name",nameHint:"Tag name",newTag:"Name of the tag"},productsubmissions:{name:"Name",nameHint:"Name of the product",archiveTitle:"Product Inventory",brand:"Brand",brandHint:"If the product belongs to an specific brand",category:"Category",categoryHint:"Product category",description:"Description",descriptionHint:"Product description",editproductSubmission:"Edit product submission",newproductSubmission:"Newproduct submission",price:"Price",priceHint:"Set the price tag for the product",product:"Product",productHint:"Select the product type",sku:"SKU",skuHint:"SKU code for the product",tags:"Tags",tagsHint:"Product tags"},products:{archiveTitle:"product",description:"Description",descriptionHint:"Describe the product form",editproduct:"Edit product",fields:"fields",fieldsHint:"fields hint",jsonSchema:"json schema",jsonSchemaHint:"json schema hint",name:"Form name",nameHint:"Name the type of products which this form represents",newproduct:"New product",uiSchema:"ui schema",uiSchemaHint:"ui schema hint"},categories:{archiveTitle:"Categories",editCategory:"Edit category",name:"Name",nameHint:"Name of the category",newCategory:"New category",parent:"Parent category",parentHint:"This category would be under the parent category in display or search"},abac:{backToApp:"Go back to the app",email:"Email",emailAddress:"Email address",firstName:"First name",lastName:"Last name",otpOrDifferent:"Or try a different account instead",otpResetMethod:"Reset method",otpTitle:"One time password",otpTitleHint:`Login to your account via a 6-8 digit pins, which we will send by phone or email. You can change your password later in account center.`,password:"Password",remember:"Remember my credentials",signin:"Sign in",signout:"Sign out",signup:"Sign up",signupType:"Signup Type",signupTypeHint:"Select how do you want to use software",viaEmail:"Send pin via email address",viaSms:"Phone number (SMS)"},about:"About",acChecks:{moduleName:"Checks"},acbankbranches:{acBankBranchArchiveTitle:"Bank Branches",bank:"Bank",bankHint:"The bank that this branch belongs to",bankId:"Bank",city:"City",cityHint:"City that this bank branch is located",cityId:"City",editAcBank:"Edit Bank Branch",editAcBankBranch:"Edit Bank Branch",locaitonHint:"Physical location of the branch",location:"Location",name:"Bank Branch Name",nameHint:"The branch name of the bank, town may be included",newAcBankBranch:"New Bank Branch",province:"Province",provinceHint:"Province that this bank branch is located"},acbanks:{acBankArchiveTitle:"Banks",editAcBank:"Edit Bank",name:"Bank name",nameHint:"The national name of the bank to make it easier recognize",newAcBank:"New Bank"},accesibility:{leftHand:"Left handed",rightHand:"Right handed"},acchecks:{acCheckArchiveTitle:"Checks",amount:"Amount",amountFormatted:"Amount",amountHint:"Amount of this check",bankBranch:"Bank Branch",bankBranchCityName:"City name",bankBranchHint:"The branch which has issued this check",bankBranchId:"Bank Branch",bankBranchName:"Branch name",currency:"Currency",currencyHint:"The currency which this check is written in",customer:"Customer",customerHint:"The customer that this check is from or belongs to",customerId:"Customer",dueDate:"Due Date",dueDateFormatted:"Due Date",dueDateHint:"The date that this check should be passed",editAcCheck:"Edit Check",identifier:"Identifier",identifierHint:"Identifier is special code for this check or unique id",issueDate:"Issue date",issueDateFormatted:"Issue Date",issueDateHint:"The date that check has been issued",newAcCheck:"New Check",recipientBankBranch:"Recipient Bank Branch",recipientBankBranchHint:"The bank which this check has been taken to",recipientCustomer:"Recipient Customer",recipientCustomerHint:"The customer who has this check",status:"Status",statusHint:"The status of this check"},accheckstatuses:{acCheckStatusArchiveTitle:"Check Statuses",editAcCheckStatus:"Edit Check Status",name:"Status Name",nameHint:"Status name which will be assigned to a check in workflow",newAcCheckStatus:"New Check Status"},accountcollections:{archiveTitle:"Account Collections",editAccountCollection:"Edit Collection",name:"Collection Name",nameHint:"Name the account collection",newAccountCollection:"New Account Collection"},accounting:{account:{currency:"Currency",name:"Name"},accountCollections:"Account Collections",accountCollectionsHint:"Account Collections",amount:"Amount",legalUnit:{name:"Name"},settlementDate:"Settlement Date",summary:"summary",title:"Title",transactionDate:"Transaction Date"},actions:{addJob:"+ Add job",back:"Back",edit:"Edit",new:"New"},addLocation:"Add location",alreadyHaveAnAccount:"Already have an account? Sign in instead",answerSheet:{grammarProgress:"Grammar %",listeningProgress:"Listening %",readingProgress:"Reading %",sourceExam:"Source exam",speakingProgress:"Speaking %",takerFullname:"Student fullname",writingProgress:"Writing %"},authenticatedOnly:"This section requires you to login before viewing or editing of any kind.",backup:{generateAndDownload:"Generate & Download",generateDescription:`You can create a backup of the system here. It's important to remember you will generate back from data which are visible to you. Making @@ -126,51 +126,51 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho subsequent workspaces, by registering via email, phone number or other types of the passports. In this section you can enable, disable, and make some other - configurations.`,resetToDefault:"Reset to default",role:"role",roleHint:"Select role",sender:"Sender",sidetitle:"Workspaces",slug:"Slug",title:"Title",type:"Type",workspaceName:"Workspace name",workspaceNameHint:"Enter the workspace name",workspaceTypeSlug:"Slug address",workspaceTypeSlugHint:"The path that publicly will be available to users, if they signup through this account this role would be assigned to them.",workspaceTypeTitle:"Title",workspaceTypeUniqueId:"Unique Id",workspaceTypeUniqueIdHint:"Unique id can be used to redirect user to direct signin",workspaceTypeTitleHint:"The title of the Workspace"}};function ny(t){var n,r,i,o;const e={};if(t.error&&Array.isArray((n=t.error)==null?void 0:n.errors))for(const u of(r=t.error)==null?void 0:r.errors)e[u.location]=u.message;return t.status&&t.ok===!1?{form:`${t.status}`}:((i=t==null?void 0:t.error)!=null&&i.message&&(e.form=(o=t==null?void 0:t.error)==null?void 0:o.message),t.message?{form:`${t.message}`}:e)}function mV(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}function _I(t,e="",n={}){for(const r in t)if(t.hasOwnProperty(r)){const i=e?`${e}.${r}`:r;typeof t[r]=="object"&&!Array.isArray(t[r])&&!t[r].operation?_I(t[r],i,n):n[i]=t[r]}return n}function X_(t){const e={ł:"l",Ł:"L"};return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[aeiouAEIOU]/g,"").replace(/[łŁ]/g,n=>e[n]||n).toLowerCase()}function gV(t,e){const n=_I(e);return t.filter(r=>Object.keys(n).every(i=>{let{operation:o,value:u}=n[i];u=X_(u||"");const l=X_(Sr.get(r,i)||"");if(!l)return!1;switch(o){case"contains":return l.includes(u);case"equals":return l===u;case"startsWith":return l.startsWith(u);case"endsWith":return l.endsWith(u);default:return!1}}))}class wl{constructor(e){this.content=e}items(e){let n={};try{n=JSON.parse(e.jsonQuery)}catch{}return gV(this.content,n).filter((i,o)=>!(oe.startIndex+e.itemsPerPage-1))}total(){return this.content.length}create(e){const n={...e,uniqueId:mV().substr(0,12)};return this.content.push(n),n}getOne(e){return this.content.find(n=>n.uniqueId===e)}deletes(e){return this.content=this.content.filter(n=>!e.includes(n.uniqueId)),!0}patchOne(e){return this.content=this.content.map(n=>n.uniqueId===e.uniqueId?{...n,...e}:n),e}}const Df=t=>t.split(" or ").map(e=>e.split(" = ")[1].trim()),Z_=new wl([]);var eA,tA,u0;function yV(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let vV=(eA=ft("files"),tA=dt("get"),u0=class{async getFiles(e){return{data:{items:Z_.items(e),itemsPerPage:e.itemsPerPage,totalItems:Z_.total()}}}},yV(u0.prototype,"getFiles",[eA,tA],Object.getOwnPropertyDescriptor(u0.prototype,"getFiles"),u0.prototype),u0);class SS extends Vt{constructor(...e){super(...e),this.children=void 0,this.type=void 0,this.apiKey=void 0}}SS.Navigation={edit(t,e){return`${e?"/"+e:".."}/email-provider/edit/${t}`},create(t){return`${t?"/"+t:".."}/email-provider/new`},single(t,e){return`${e?"/"+e:".."}/email-provider/${t}`},query(t={},e){return`${e?"/"+e:".."}/email-providers`},Redit:"email-provider/edit/:uniqueId",Rcreate:"email-provider/new",Rsingle:"email-provider/:uniqueId",Rquery:"email-providers"};SS.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"emailProvider",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"type",type:"enum",validate:"required",of:[{k:"terminal"},{k:"sendgrid"}],computedType:'"terminal" | "sendgrid"',gormMap:{}},{name:"apiKey",type:"string",computedType:"string",gormMap:{}}],description:"Thirdparty services which will send email, allows each workspace graphically configure their token without the need of restarting servers"};SS.Fields={...Vt.Fields,type:"type",apiKey:"apiKey"};class _O extends Vt{constructor(...e){super(...e),this.children=void 0,this.fromName=void 0,this.fromEmailAddress=void 0,this.replyTo=void 0,this.nickName=void 0}}_O.Navigation={edit(t,e){return`${e?"/"+e:".."}/email-sender/edit/${t}`},create(t){return`${t?"/"+t:".."}/email-sender/new`},single(t,e){return`${e?"/"+e:".."}/email-sender/${t}`},query(t={},e){return`${e?"/"+e:".."}/email-senders`},Redit:"email-sender/edit/:uniqueId",Rcreate:"email-sender/new",Rsingle:"email-sender/:uniqueId",Rquery:"email-senders"};_O.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"emailSender",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"fromName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"fromEmailAddress",type:"string",validate:"required",computedType:"string",gorm:"unique",gormMap:{}},{name:"replyTo",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"nickName",type:"string",validate:"required",computedType:"string",gormMap:{}}],description:"All emails going from the system need to have a virtual sender (nick name, email address, etc)"};_O.Fields={...Vt.Fields,fromName:"fromName",fromEmailAddress:"fromEmailAddress",replyTo:"replyTo",nickName:"nickName"};class Xa extends Vt{constructor(...e){super(...e),this.children=void 0,this.role=void 0,this.roleId=void 0,this.workspace=void 0}}Xa.Navigation={edit(t,e){return`${e?"/"+e:".."}/public-join-key/edit/${t}`},create(t){return`${t?"/"+t:".."}/public-join-key/new`},single(t,e){return`${e?"/"+e:".."}/public-join-key/${t}`},query(t={},e){return`${e?"/"+e:".."}/public-join-keys`},Redit:"public-join-key/edit/:uniqueId",Rcreate:"public-join-key/new",Rsingle:"public-join-key/:uniqueId",Rquery:"public-join-keys"};Xa.definition={rpc:{query:{}},name:"publicJoinKey",features:{},gormMap:{},fields:[{name:"role",type:"one",target:"RoleEntity",computedType:"RoleEntity",gormMap:{}},{name:"workspace",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}}],description:"Joining to different workspaces using a public link directly"};Xa.Fields={...Vt.Fields,roleId:"roleId",role$:"role",role:kr.Fields,workspace$:"workspace",workspace:ty.Fields};const gn={emailProvider:new wl([]),emailSender:new wl([]),workspaceInvite:new wl([]),publicJoinKey:new wl([]),workspaces:new wl([])};var nA,rA,iA,aA,oA,sA,uA,lA,cA,fA,ui;function l0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let bV=(nA=ft("email-providers"),rA=dt("get"),iA=ft("email-provider/:uniqueId"),aA=dt("get"),oA=ft("email-provider"),sA=dt("patch"),uA=ft("email-provider"),lA=dt("post"),cA=ft("email-provider"),fA=dt("delete"),ui=class{async getEmailProviders(e){return{data:{items:gn.emailProvider.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.emailProvider.total()}}}async getEmailProviderByUniqueId(e){return{data:gn.emailProvider.getOne(e.paramValues[0])}}async patchEmailProviderByUniqueId(e){return{data:gn.emailProvider.patchOne(e.body)}}async postRole(e){return{data:gn.emailProvider.create(e.body)}}async deleteRole(e){return gn.emailProvider.deletes(Df(e.body.query)),{data:{}}}},l0(ui.prototype,"getEmailProviders",[nA,rA],Object.getOwnPropertyDescriptor(ui.prototype,"getEmailProviders"),ui.prototype),l0(ui.prototype,"getEmailProviderByUniqueId",[iA,aA],Object.getOwnPropertyDescriptor(ui.prototype,"getEmailProviderByUniqueId"),ui.prototype),l0(ui.prototype,"patchEmailProviderByUniqueId",[oA,sA],Object.getOwnPropertyDescriptor(ui.prototype,"patchEmailProviderByUniqueId"),ui.prototype),l0(ui.prototype,"postRole",[uA,lA],Object.getOwnPropertyDescriptor(ui.prototype,"postRole"),ui.prototype),l0(ui.prototype,"deleteRole",[cA,fA],Object.getOwnPropertyDescriptor(ui.prototype,"deleteRole"),ui.prototype),ui);var dA,hA,pA,mA,gA,yA,vA,bA,wA,SA,li;function c0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let wV=(dA=ft("email-senders"),hA=dt("get"),pA=ft("email-sender/:uniqueId"),mA=dt("get"),gA=ft("email-sender"),yA=dt("patch"),vA=ft("email-sender"),bA=dt("post"),wA=ft("email-sender"),SA=dt("delete"),li=class{async getEmailSenders(e){return{data:{items:gn.emailSender.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.emailSender.total()}}}async getEmailSenderByUniqueId(e){return{data:gn.emailSender.getOne(e.paramValues[0])}}async patchEmailSenderByUniqueId(e){return{data:gn.emailSender.patchOne(e.body)}}async postRole(e){return{data:gn.emailSender.create(e.body)}}async deleteRole(e){return gn.emailSender.deletes(Df(e.body.query)),{data:{}}}},c0(li.prototype,"getEmailSenders",[dA,hA],Object.getOwnPropertyDescriptor(li.prototype,"getEmailSenders"),li.prototype),c0(li.prototype,"getEmailSenderByUniqueId",[pA,mA],Object.getOwnPropertyDescriptor(li.prototype,"getEmailSenderByUniqueId"),li.prototype),c0(li.prototype,"patchEmailSenderByUniqueId",[gA,yA],Object.getOwnPropertyDescriptor(li.prototype,"patchEmailSenderByUniqueId"),li.prototype),c0(li.prototype,"postRole",[vA,bA],Object.getOwnPropertyDescriptor(li.prototype,"postRole"),li.prototype),c0(li.prototype,"deleteRole",[wA,SA],Object.getOwnPropertyDescriptor(li.prototype,"deleteRole"),li.prototype),li);var CA,$A,EA,xA,OA,TA,_A,AA,RA,PA,ci;function f0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let SV=(CA=ft("public-join-keys"),$A=dt("get"),EA=ft("public-join-key/:uniqueId"),xA=dt("get"),OA=ft("public-join-key"),TA=dt("patch"),_A=ft("public-join-key"),AA=dt("post"),RA=ft("public-join-key"),PA=dt("delete"),ci=class{async getPublicJoinKeys(e){return{data:{items:gn.publicJoinKey.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.publicJoinKey.total()}}}async getPublicJoinKeyByUniqueId(e){return{data:gn.publicJoinKey.getOne(e.paramValues[0])}}async patchPublicJoinKeyByUniqueId(e){return{data:gn.publicJoinKey.patchOne(e.body)}}async postPublicJoinKey(e){return{data:gn.publicJoinKey.create(e.body)}}async deletePublicJoinKey(e){return gn.publicJoinKey.deletes(Df(e.body.query)),{data:{}}}},f0(ci.prototype,"getPublicJoinKeys",[CA,$A],Object.getOwnPropertyDescriptor(ci.prototype,"getPublicJoinKeys"),ci.prototype),f0(ci.prototype,"getPublicJoinKeyByUniqueId",[EA,xA],Object.getOwnPropertyDescriptor(ci.prototype,"getPublicJoinKeyByUniqueId"),ci.prototype),f0(ci.prototype,"patchPublicJoinKeyByUniqueId",[OA,TA],Object.getOwnPropertyDescriptor(ci.prototype,"patchPublicJoinKeyByUniqueId"),ci.prototype),f0(ci.prototype,"postPublicJoinKey",[_A,AA],Object.getOwnPropertyDescriptor(ci.prototype,"postPublicJoinKey"),ci.prototype),f0(ci.prototype,"deletePublicJoinKey",[RA,PA],Object.getOwnPropertyDescriptor(ci.prototype,"deletePublicJoinKey"),ci.prototype),ci);const gg=new wl([{name:"Administrator",uniqueId:"administrator"}]);var IA,NA,MA,kA,DA,FA,LA,UA,jA,BA,fi;function d0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let CV=(IA=ft("roles"),NA=dt("get"),MA=ft("role/:uniqueId"),kA=dt("get"),DA=ft("role"),FA=dt("patch"),LA=ft("role"),UA=dt("delete"),jA=ft("role"),BA=dt("post"),fi=class{async getRoles(e){return{data:{items:gg.items(e),itemsPerPage:e.itemsPerPage,totalItems:gg.total()}}}async getRoleByUniqueId(e){return{data:gg.getOne(e.paramValues[0])}}async patchRoleByUniqueId(e){return{data:gg.patchOne(e.body)}}async deleteRole(e){return gg.deletes(Df(e.body.query)),{data:{}}}async postRole(e){return{data:gg.create(e.body)}}},d0(fi.prototype,"getRoles",[IA,NA],Object.getOwnPropertyDescriptor(fi.prototype,"getRoles"),fi.prototype),d0(fi.prototype,"getRoleByUniqueId",[MA,kA],Object.getOwnPropertyDescriptor(fi.prototype,"getRoleByUniqueId"),fi.prototype),d0(fi.prototype,"patchRoleByUniqueId",[DA,FA],Object.getOwnPropertyDescriptor(fi.prototype,"patchRoleByUniqueId"),fi.prototype),d0(fi.prototype,"deleteRole",[LA,UA],Object.getOwnPropertyDescriptor(fi.prototype,"deleteRole"),fi.prototype),d0(fi.prototype,"postRole",[jA,BA],Object.getOwnPropertyDescriptor(fi.prototype,"postRole"),fi.prototype),fi);class AO extends Vt{constructor(...e){super(...e),this.children=void 0,this.label=void 0,this.href=void 0,this.icon=void 0,this.activeMatcher=void 0,this.capability=void 0,this.capabilityId=void 0}}AO.Navigation={edit(t,e){return`${e?"/"+e:".."}/app-menu/edit/${t}`},create(t){return`${t?"/"+t:".."}/app-menu/new`},single(t,e){return`${e?"/"+e:".."}/app-menu/${t}`},query(t={},e){return`${e?"/"+e:".."}/app-menus`},Redit:"app-menu/edit/:uniqueId",Rcreate:"app-menu/new",Rsingle:"app-menu/:uniqueId",Rquery:"app-menus"};AO.definition={rpc:{query:{}},name:"appMenu",features:{},gormMap:{},fields:[{name:"label",recommended:!0,description:"Label that will be visible to user",type:"string",translate:!0,computedType:"string",gormMap:{}},{name:"href",recommended:!0,description:"Location that will be navigated in case of click or selection on ui",type:"string",computedType:"string",gormMap:{}},{name:"icon",recommended:!0,description:"Icon string address which matches the resources on the front-end apps.",type:"string",computedType:"string",gormMap:{}},{name:"activeMatcher",description:"Custom window location url matchers, for inner screens.",type:"string",computedType:"string",gormMap:{}},{name:"capability",description:"The permission which is required for the menu to be visible.",type:"one",target:"CapabilityEntity",module:"fireback",computedType:"CapabilityEntity",gormMap:{}}],description:"Manages the menus in the app, (for example tab views, sidebar items, etc.)",cte:!0};AO.Fields={...Vt.Fields,label:"label",href:"href",icon:"icon",activeMatcher:"activeMatcher",capabilityId:"capabilityId",capability$:"capability",capability:P1.Fields};const $V=[{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/workspace/invite(s)?",capability:null,capabilityId:null,created:1711043161316914e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/workspace-invites",icon:"common/workspaceinvite.svg",label:"Invites",parentId:"fireback",uniqueId:"invites",updated:1711043161316914e3,visibility:"A"},{activeMatcher:"publicjoinkey",capability:null,capabilityId:null,created:171104316131093e4,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/public-join-keys",icon:"common/joinkey.svg",label:"Public join keys",parentId:"fireback",uniqueId:"publicjoinkey",updated:171104316131093e4,visibility:"A"},{activeMatcher:"/role/",capability:null,capabilityId:null,created:1711043161314546e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/roles",icon:"common/role.svg",label:"Roles",parentId:"fireback",uniqueId:"roles",updated:1711043161314546e3,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Workspace",uniqueId:"fireback",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"drives",capability:null,capabilityId:null,created:1711043161320805e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/drives",icon:"common/drive.svg",label:"Drive & Files",parentId:"root",uniqueId:"drive_files",updated:1711043161320805e3,visibility:"A"},{activeMatcher:"email-provider",capability:null,capabilityId:null,created:1711043161309663e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-providers",icon:"common/emailprovider.svg",label:"Email Provider",parentId:"root",uniqueId:"email_provider",updated:1711043161309663e3,visibility:"A"},{activeMatcher:"email-sender",capability:null,capabilityId:null,created:171104316131211e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-senders",icon:"common/mail.svg",label:"Email Sender",parentId:"root",uniqueId:"email_sender",updated:171104316131211e4,visibility:"A"},{activeMatcher:"/user/",capability:null,capabilityId:null,created:1711043161318088e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/users",icon:"common/user.svg",label:"Users",parentId:"root",uniqueId:"users",updated:1711043161318088e3,visibility:"A"},{activeMatcher:"/workspace/config",capability:null,capabilityId:null,created:17110431613157e5,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-config",icon:"ios-theme/icons/settings.svg",label:"Workspace Config",parentId:"root",uniqueId:"workspace_config",updated:17110431613157e5,visibility:"A"},{activeMatcher:"workspace-type",capability:null,capabilityId:null,created:1711043161313308e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-types",icon:"ios-theme/icons/settings.svg",label:"Workspace Types",parentId:"root",uniqueId:"workspace_types",updated:1711043161313308e3,visibility:"A"},{activeMatcher:"/workspaces/|workspace/new",capability:null,capabilityId:null,created:171104316132216e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspaces",icon:"common/workspace.svg",label:"Workspaces",parentId:"root",uniqueId:"workspaces",updated:171104316132216e4,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Root",uniqueId:"root",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/invites/",capability:null,capabilityId:null,created:1711043161328479e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/user-invitations",icon:"common/workspaceinvite.svg",label:"My Invitations",parentId:"personal",uniqueId:"my_invitation",updated:1711043161328479e3,visibility:"A"},{activeMatcher:"/settings",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/settings",icon:"ios-theme/icons/settings.svg",label:"Settings",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"},{activeMatcher:"/selfservice",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice",icon:"ios-theme/icons/settings.svg",label:"Account & Profile",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"}],created:1711043161323813e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Personal",uniqueId:"personal",updated:1711043161323813e3,visibility:"A"}];var qA,HA,h0;function EV(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let xV=(qA=ft("cte-app-menus"),HA=dt("get"),h0=class{async getAppMenu(e){return{data:{items:$V}}}},EV(h0.prototype,"getAppMenu",[qA,HA],Object.getOwnPropertyDescriptor(h0.prototype,"getAppMenu"),h0.prototype),h0);const OV=()=>{if(Math.random()>.5)switch(Math.floor(Math.random()*3)){case 0:return`10.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 1:return`172.${Math.floor(16+Math.random()*16)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 2:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;default:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`}else return`${Math.floor(Math.random()*223)+1}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`},TV=["Ali","Behnaz","Carlos","Daniela","Ethan","Fatima","Gustavo","Helena","Isla","Javad","Kamila","Leila","Mateo","Nasim","Omid","Parisa","Rania","Saeed","Tomas","Ursula","Vali","Wojtek","Zara","Alice","Bob","Charlie","Diana","George","Mohammed","Julia","Khalid","Lena","Mohammad","Nina","Oscar","Quentin","Rosa","Sam","Tina","Umar","Vera","Waleed","Xenia","Yara","Ziad","Maxim","Johann","Krzysztof","Baris","Mehmet"],_V=["Smith","Johnson","Williams","Brown","Jones","Garcia","Miller","Davis","Rodriguez","Martinez","Hernandez","Lopez","Gonzalez","Wilson","Anderson","Thomas","Taylor","Moore","Jackson","Martin","Lee","Perez","Thompson","White","Harris","Sanchez","Clark","Ramirez","Lewis","Robinson","Walker","Young","Allen","King","Wright","Scott","Torres","Nguyen","Hill","Flores","Green","Adams","Nelson","Baker","Hall","Rivera","Campbell","Mitchell","Carter","Roberts","Kowalski","Nowak","Jankowski","Zieliński","Wiśniewski","Lewandowski","Kaczmarek","Bąk","Pereira","Altıntaş"],AV=[{addressLine1:"123 Main St",addressLine2:"Apt 4",city:"Berlin",stateOrProvince:"Berlin",postalCode:"10115",countryCode:"DE"},{addressLine1:"456 Elm St",addressLine2:"Apt 23",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75001",countryCode:"FR"},{addressLine1:"789 Oak Dr",addressLine2:"Apt 9",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"01010",countryCode:"PL"},{addressLine1:"101 Maple Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"11365",countryCode:"IR"},{addressLine1:"202 Pine St",addressLine2:"Apt 7",city:"Madrid",stateOrProvince:"Community of Madrid",postalCode:"28001",countryCode:"ES"},{addressLine1:"456 Park Ave",addressLine2:"Suite 5",city:"New York",stateOrProvince:"NY",postalCode:"10001",countryCode:"US"},{addressLine1:"789 Sunset Blvd",addressLine2:"Unit 32",city:"Los Angeles",stateOrProvince:"CA",postalCode:"90001",countryCode:"US"},{addressLine1:"12 Hauptstrasse",addressLine2:"Apt 2",city:"Munich",stateOrProvince:"Bavaria",postalCode:"80331",countryCode:"DE"},{addressLine1:"75 Taksim Square",addressLine2:"Apt 12",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"321 Wierzbowa",addressLine2:"",city:"Kraków",stateOrProvince:"Małopolskie",postalCode:"31000",countryCode:"PL"},{addressLine1:"55 Rue de Rivoli",addressLine2:"Apt 10",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75004",countryCode:"FR"},{addressLine1:"1001 Tehran Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"14155",countryCode:"IR"},{addressLine1:"9 Calle de Alcalá",addressLine2:"Apt 6",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28009",countryCode:"ES"},{addressLine1:"222 King St",addressLine2:"Suite 1B",city:"London",stateOrProvince:"London",postalCode:"E1 6AN",countryCode:"GB"},{addressLine1:"15 St. Peters Rd",addressLine2:"",city:"Toronto",stateOrProvince:"Ontario",postalCode:"M5A 1A2",countryCode:"CA"},{addressLine1:"1340 Via Roma",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00100",countryCode:"IT"},{addressLine1:"42 Nevsky Prospekt",addressLine2:"Apt 1",city:"Saint Petersburg",stateOrProvince:"Leningradskaya",postalCode:"190000",countryCode:"RU"},{addressLine1:"3 Rüdesheimer Str.",addressLine2:"Apt 9",city:"Frankfurt",stateOrProvince:"Hessen",postalCode:"60326",countryCode:"DE"},{addressLine1:"271 Süleyman Demirel Bulvarı",addressLine2:"Apt 45",city:"Ankara",stateOrProvince:"Ankara",postalCode:"06100",countryCode:"TR"},{addressLine1:"7 Avenues des Champs-Élysées",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75008",countryCode:"FR"},{addressLine1:"125 E. 9th St.",addressLine2:"Apt 12",city:"Chicago",stateOrProvince:"IL",postalCode:"60606",countryCode:"US"},{addressLine1:"30 Rue de la Paix",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75002",countryCode:"FR"},{addressLine1:"16 Zlote Tarasy",addressLine2:"Apt 18",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-510",countryCode:"PL"},{addressLine1:"120 Váci utca",addressLine2:"",city:"Budapest",stateOrProvince:"Budapest",postalCode:"1056",countryCode:"HU"},{addressLine1:"22 Sukhbaatar Sq.",addressLine2:"",city:"Ulaanbaatar",stateOrProvince:"Central",postalCode:"14190",countryCode:"MN"},{addressLine1:"34 Princes Street",addressLine2:"Flat 1",city:"Edinburgh",stateOrProvince:"Scotland",postalCode:"EH2 4AY",countryCode:"GB"},{addressLine1:"310 Alzaibiyah",addressLine2:"",city:"Amman",stateOrProvince:"Amman",postalCode:"11183",countryCode:"JO"},{addressLine1:"401 Taksim Caddesi",addressLine2:"Apt 25",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"203 High Street",addressLine2:"Unit 3",city:"London",stateOrProvince:"London",postalCode:"W1T 2LQ",countryCode:"GB"},{addressLine1:"58 Via Nazionale",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00184",countryCode:"IT"},{addressLine1:"47 Gloucester Road",addressLine2:"",city:"London",stateOrProvince:"London",postalCode:"SW7 4QA",countryCode:"GB"},{addressLine1:"98 Calle de Bravo Murillo",addressLine2:"",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28039",countryCode:"ES"},{addressLine1:"57 Mirza Ghalib Street",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"15996",countryCode:"IR"},{addressLine1:"35 Królewska St",addressLine2:"",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-065",countryCode:"PL"},{addressLine1:"12 5th Ave",addressLine2:"",city:"New York",stateOrProvince:"NY",postalCode:"10128",countryCode:"US"}],RV=()=>{const t=new Uint8Array(18);window.crypto.getRandomValues(t);const e=Array.from(t).map(r=>r.toString(36).padStart(2,"0")).join(""),n=Date.now().toString(36);return n+e.slice(0,30-n.length)},PV=()=>({uniqueId:RV(),firstName:Sr.sample(TV),lastName:Sr.sample(_V),photo:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,birthDate:new Date().getDate()+"/"+new Date().getMonth()+"/"+new Date().getFullYear(),gender:Math.random()>.5?1:0,title:Math.random()>.5?"Mr.":"Ms.",avatar:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,lastIpAddress:OV(),primaryAddress:Sr.sample(AV)}),yg=new wl(Sr.times(1e4,()=>PV()));var zA,VA,GA,WA,KA,YA,QA,JA,XA,ZA,di;function p0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let IV=(zA=ft("users"),VA=dt("get"),GA=ft("user"),WA=dt("delete"),KA=ft("user/:uniqueId"),YA=dt("get"),QA=ft("user"),JA=dt("patch"),XA=ft("user"),ZA=dt("post"),di=class{async getUsers(e){return{data:{items:yg.items(e),itemsPerPage:e.itemsPerPage,totalItems:yg.total()}}}async deleteUser(e){return yg.deletes(Df(e.body.query)),{data:{}}}async getUserByUniqueId(e){return{data:yg.getOne(e.paramValues[0])}}async patchUserByUniqueId(e){return{data:yg.patchOne(e.body)}}async postUser(e){return{data:yg.create(e.body)}}},p0(di.prototype,"getUsers",[zA,VA],Object.getOwnPropertyDescriptor(di.prototype,"getUsers"),di.prototype),p0(di.prototype,"deleteUser",[GA,WA],Object.getOwnPropertyDescriptor(di.prototype,"deleteUser"),di.prototype),p0(di.prototype,"getUserByUniqueId",[KA,YA],Object.getOwnPropertyDescriptor(di.prototype,"getUserByUniqueId"),di.prototype),p0(di.prototype,"patchUserByUniqueId",[QA,JA],Object.getOwnPropertyDescriptor(di.prototype,"patchUserByUniqueId"),di.prototype),p0(di.prototype,"postUser",[XA,ZA],Object.getOwnPropertyDescriptor(di.prototype,"postUser"),di.prototype),di);class NV{}var e8,t8,n8,r8,i8,a8,o8,s8,u8,l8,hi;function m0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let MV=(e8=ft("workspace-invites"),t8=dt("get"),n8=ft("workspace-invite/:uniqueId"),r8=dt("get"),i8=ft("workspace-invite"),a8=dt("patch"),o8=ft("workspace/invite"),s8=dt("post"),u8=ft("workspace-invite"),l8=dt("delete"),hi=class{async getWorkspaceInvites(e){return{data:{items:gn.workspaceInvite.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.workspaceInvite.total()}}}async getWorkspaceInviteByUniqueId(e){return{data:gn.workspaceInvite.getOne(e.paramValues[0])}}async patchWorkspaceInviteByUniqueId(e){return{data:gn.workspaceInvite.patchOne(e.body)}}async postWorkspaceInvite(e){return{data:gn.workspaceInvite.create(e.body)}}async deleteWorkspaceInvite(e){return gn.workspaceInvite.deletes(Df(e.body.query)),{data:{}}}},m0(hi.prototype,"getWorkspaceInvites",[e8,t8],Object.getOwnPropertyDescriptor(hi.prototype,"getWorkspaceInvites"),hi.prototype),m0(hi.prototype,"getWorkspaceInviteByUniqueId",[n8,r8],Object.getOwnPropertyDescriptor(hi.prototype,"getWorkspaceInviteByUniqueId"),hi.prototype),m0(hi.prototype,"patchWorkspaceInviteByUniqueId",[i8,a8],Object.getOwnPropertyDescriptor(hi.prototype,"patchWorkspaceInviteByUniqueId"),hi.prototype),m0(hi.prototype,"postWorkspaceInvite",[o8,s8],Object.getOwnPropertyDescriptor(hi.prototype,"postWorkspaceInvite"),hi.prototype),m0(hi.prototype,"deleteWorkspaceInvite",[u8,l8],Object.getOwnPropertyDescriptor(hi.prototype,"deleteWorkspaceInvite"),hi.prototype),hi);const vg=new wl([{title:"Student workspace type",uniqueId:"1",slug:"/student"}]);var c8,f8,d8,h8,p8,m8,g8,y8,v8,b8,pi;function g0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let kV=(c8=ft("workspace-types"),f8=dt("get"),d8=ft("workspace-type/:uniqueId"),h8=dt("get"),p8=ft("workspace-type"),m8=dt("patch"),g8=ft("workspace-type"),y8=dt("delete"),v8=ft("workspace-type"),b8=dt("post"),pi=class{async getWorkspaceTypes(e){return{data:{items:vg.items(e),itemsPerPage:e.itemsPerPage,totalItems:vg.total()}}}async getWorkspaceTypeByUniqueId(e){return{data:vg.getOne(e.paramValues[0])}}async patchWorkspaceTypeByUniqueId(e){return{data:vg.patchOne(e.body)}}async deleteWorkspaceType(e){return vg.deletes(Df(e.body.query)),{data:{}}}async postWorkspaceType(e){return{data:vg.create(e.body)}}},g0(pi.prototype,"getWorkspaceTypes",[c8,f8],Object.getOwnPropertyDescriptor(pi.prototype,"getWorkspaceTypes"),pi.prototype),g0(pi.prototype,"getWorkspaceTypeByUniqueId",[d8,h8],Object.getOwnPropertyDescriptor(pi.prototype,"getWorkspaceTypeByUniqueId"),pi.prototype),g0(pi.prototype,"patchWorkspaceTypeByUniqueId",[p8,m8],Object.getOwnPropertyDescriptor(pi.prototype,"patchWorkspaceTypeByUniqueId"),pi.prototype),g0(pi.prototype,"deleteWorkspaceType",[g8,y8],Object.getOwnPropertyDescriptor(pi.prototype,"deleteWorkspaceType"),pi.prototype),g0(pi.prototype,"postWorkspaceType",[v8,b8],Object.getOwnPropertyDescriptor(pi.prototype,"postWorkspaceType"),pi.prototype),pi);var w8,S8,C8,$8,E8,x8,O8,T8,_8,A8,R8,P8,Er;function bg(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let DV=(w8=ft("workspaces"),S8=dt("get"),C8=ft("cte-workspaces"),$8=dt("get"),E8=ft("workspace/:uniqueId"),x8=dt("get"),O8=ft("workspace"),T8=dt("patch"),_8=ft("workspace"),A8=dt("delete"),R8=ft("workspace"),P8=dt("post"),Er=class{async getWorkspaces(e){return{data:{items:gn.workspaces.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.workspaces.total()}}}async getWorkspacesCte(e){return{data:{items:gn.workspaces.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.workspaces.total()}}}async getWorkspaceByUniqueId(e){return{data:gn.workspaces.getOne(e.paramValues[0])}}async patchWorkspaceByUniqueId(e){return{data:gn.workspaces.patchOne(e.body)}}async deleteWorkspace(e){return gn.workspaces.deletes(Df(e.body.query)),{data:{}}}async postWorkspace(e){return{data:gn.workspaces.create(e.body)}}},bg(Er.prototype,"getWorkspaces",[w8,S8],Object.getOwnPropertyDescriptor(Er.prototype,"getWorkspaces"),Er.prototype),bg(Er.prototype,"getWorkspacesCte",[C8,$8],Object.getOwnPropertyDescriptor(Er.prototype,"getWorkspacesCte"),Er.prototype),bg(Er.prototype,"getWorkspaceByUniqueId",[E8,x8],Object.getOwnPropertyDescriptor(Er.prototype,"getWorkspaceByUniqueId"),Er.prototype),bg(Er.prototype,"patchWorkspaceByUniqueId",[O8,T8],Object.getOwnPropertyDescriptor(Er.prototype,"patchWorkspaceByUniqueId"),Er.prototype),bg(Er.prototype,"deleteWorkspace",[_8,A8],Object.getOwnPropertyDescriptor(Er.prototype,"deleteWorkspace"),Er.prototype),bg(Er.prototype,"postWorkspace",[R8,P8],Object.getOwnPropertyDescriptor(Er.prototype,"postWorkspace"),Er.prototype),Er);class CS extends Vt{constructor(...e){super(...e),this.children=void 0,this.apiKey=void 0,this.mainSenderNumber=void 0,this.type=void 0,this.invokeUrl=void 0,this.invokeBody=void 0}}CS.Navigation={edit(t,e){return`${e?"/"+e:".."}/gsm-provider/edit/${t}`},create(t){return`${t?"/"+t:".."}/gsm-provider/new`},single(t,e){return`${e?"/"+e:".."}/gsm-provider/${t}`},query(t={},e){return`${e?"/"+e:".."}/gsm-providers`},Redit:"gsm-provider/edit/:uniqueId",Rcreate:"gsm-provider/new",Rsingle:"gsm-provider/:uniqueId",Rquery:"gsm-providers"};CS.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"gsmProvider",features:{},gormMap:{},fields:[{name:"apiKey",type:"string",computedType:"string",gormMap:{}},{name:"mainSenderNumber",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"type",type:"enum",validate:"required",of:[{k:"url"},{k:"terminal"},{k:"mediana"}],computedType:'"url" | "terminal" | "mediana"',gormMap:{}},{name:"invokeUrl",type:"string",computedType:"string",gormMap:{}},{name:"invokeBody",type:"string",computedType:"string",gormMap:{}}]};CS.Fields={...Vt.Fields,apiKey:"apiKey",mainSenderNumber:"mainSenderNumber",type:"type",invokeUrl:"invokeUrl",invokeBody:"invokeBody"};class Lg extends Vt{constructor(...e){super(...e),this.children=void 0,this.content=void 0,this.contentExcerpt=void 0,this.region=void 0,this.title=void 0,this.languageId=void 0,this.keyGroup=void 0}}Lg.Navigation={edit(t,e){return`${e?"/"+e:".."}/regional-content/edit/${t}`},create(t){return`${t?"/"+t:".."}/regional-content/new`},single(t,e){return`${e?"/"+e:".."}/regional-content/${t}`},query(t={},e){return`${e?"/"+e:".."}/regional-contents`},Redit:"regional-content/edit/:uniqueId",Rcreate:"regional-content/new",Rsingle:"regional-content/:uniqueId",Rquery:"regional-contents"};Lg.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"regionalContent",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"content",type:"html",validate:"required",computedType:"string",gormMap:{}},{name:"region",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"title",type:"string",computedType:"string",gormMap:{}},{name:"languageId",type:"string",validate:"required",computedType:"string",gorm:"index:regional_content_index,unique",gormMap:{}},{name:"keyGroup",type:"enum",validate:"required",of:[{k:"SMS_OTP",description:"Used when an email would be sent with one time password"},{k:"EMAIL_OTP",description:"Used when an sms would be sent with one time password"}],computedType:'"SMS_OTP" | "EMAIL_OTP"',gorm:"index:regional_content_index,unique",gormMap:{}}],cliShort:"rc",description:"Email templates, sms templates or other textual content which can be accessed."};Lg.Fields={...Vt.Fields,content:"content",region:"region",title:"title",languageId:"languageId",keyGroup:"keyGroup"};class RO extends Vt{constructor(...e){super(...e),this.children=void 0,this.enableRecaptcha2=void 0,this.enableOtp=void 0,this.requireOtpOnSignup=void 0,this.requireOtpOnSignin=void 0,this.recaptcha2ServerKey=void 0,this.recaptcha2ClientKey=void 0,this.enableTotp=void 0,this.forceTotp=void 0,this.forcePasswordOnPhone=void 0,this.forcePersonNameOnPhone=void 0,this.generalEmailProvider=void 0,this.generalEmailProviderId=void 0,this.generalGsmProvider=void 0,this.generalGsmProviderId=void 0,this.inviteToWorkspaceContent=void 0,this.inviteToWorkspaceContentId=void 0,this.emailOtpContent=void 0,this.emailOtpContentId=void 0,this.smsOtpContent=void 0,this.smsOtpContentId=void 0}}RO.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace-config/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace-config/new`},single(t,e){return`${e?"/"+e:".."}/workspace-config/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspace-configs`},Redit:"workspace-config/edit/:uniqueId",Rcreate:"workspace-config/new",Rsingle:"workspace-config/:uniqueId",Rquery:"workspace-configs"};RO.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspaceConfig",distinctBy:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"enableRecaptcha2",description:"Enables the recaptcha2 for authentication flow.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"enableOtp",recommended:!0,description:"Enables the otp option. It's not forcing it, so user can choose if they want otp or password.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignup",recommended:!0,description:"Forces the user to have otp verification before can create an account. They can define their password still.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignin",recommended:!0,description:"Forces the user to use otp when signing in. Even if they have password set, they won't use it and only will be able to signin using that otp.",type:"bool?",default:!1,computedType:"boolean",gormMap:{}},{name:"recaptcha2ServerKey",description:"Secret which would be used to decrypt if the recaptcha is correct. Should not be available publicly.",type:"string",computedType:"string",gormMap:{}},{name:"recaptcha2ClientKey",description:"Secret which would be used for recaptcha2 on the client side. Can be publicly visible, and upon authenticating users it would be sent to front-end.",type:"string",computedType:"string",gormMap:{}},{name:"enableTotp",recommended:!0,description:"Enables user to make 2FA using apps such as google authenticator or microsoft authenticator.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forceTotp",recommended:!0,description:"Forces the user to setup a 2FA in order to access their account. Users which did not setup this won't be affected.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePasswordOnPhone",description:"Forces users who want to create account using phone number to also set a password on their account",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePersonNameOnPhone",description:"Forces the creation of account using phone number to ask for user first name and last name",type:"bool?",computedType:"boolean",gormMap:{}},{name:"generalEmailProvider",description:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",type:"one",target:"EmailProviderEntity",computedType:"EmailProviderEntity",gormMap:{}},{name:"generalGsmProvider",description:"General service which would be used to send text messages (sms) using it's services or API.",type:"one",target:"GsmProviderEntity",computedType:"GsmProviderEntity",gormMap:{}},{name:"inviteToWorkspaceContent",description:"This template would be used, as default when a user is inviting a third-party into their own workspace.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"emailOtpContent",description:"Upon one time password request for email, the content will be read to fill the message which will go to user.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"smsOtpContent",description:"Upon OTP text messages, this template will be used to create such text message, including the one time password code.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}}],cliName:"config",description:"Contains configuration which would be necessary for application environment to be running. At the moment, a single record is allowed, and only for root workspace. But in theory it could be configured per each workspace independently. For sub projects do not touch this, rather create a custom config entity if workspaces in the product need extra config."};RO.Fields={...Vt.Fields,enableRecaptcha2:"enableRecaptcha2",enableOtp:"enableOtp",requireOtpOnSignup:"requireOtpOnSignup",requireOtpOnSignin:"requireOtpOnSignin",recaptcha2ServerKey:"recaptcha2ServerKey",recaptcha2ClientKey:"recaptcha2ClientKey",enableTotp:"enableTotp",forceTotp:"forceTotp",forcePasswordOnPhone:"forcePasswordOnPhone",forcePersonNameOnPhone:"forcePersonNameOnPhone",generalEmailProviderId:"generalEmailProviderId",generalEmailProvider$:"generalEmailProvider",generalEmailProvider:SS.Fields,generalGsmProviderId:"generalGsmProviderId",generalGsmProvider$:"generalGsmProvider",generalGsmProvider:CS.Fields,inviteToWorkspaceContentId:"inviteToWorkspaceContentId",inviteToWorkspaceContent$:"inviteToWorkspaceContent",inviteToWorkspaceContent:Lg.Fields,emailOtpContentId:"emailOtpContentId",emailOtpContent$:"emailOtpContent",emailOtpContent:Lg.Fields,smsOtpContentId:"smsOtpContentId",smsOtpContent$:"smsOtpContent",smsOtpContent:Lg.Fields};var I8,N8,M8,k8,pf;function D8(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let FV=(I8=ft("workspace-config"),N8=dt("get"),M8=ft("workspace-wconfig/distiwnct"),k8=dt("patch"),pf=class{async getWorkspaceConfig(e){return{data:{enableOtp:!0,forcePasswordOnPhone:!0}}}async setWorkspaceConfig(e){return{data:e.body}}},D8(pf.prototype,"getWorkspaceConfig",[I8,N8],Object.getOwnPropertyDescriptor(pf.prototype,"getWorkspaceConfig"),pf.prototype),D8(pf.prototype,"setWorkspaceConfig",[M8,k8],Object.getOwnPropertyDescriptor(pf.prototype,"setWorkspaceConfig"),pf.prototype),pf);const LV=[new aV,new CV,new xV,new IV,new kV,new vV,new bV,new wV,new MV,new SV,new NV,new DV,new FV];var OC={exports:{}};/*! + configurations.`,resetToDefault:"Reset to default",role:"role",roleHint:"Select role",sender:"Sender",sidetitle:"Workspaces",slug:"Slug",title:"Title",type:"Type",workspaceName:"Workspace name",workspaceNameHint:"Enter the workspace name",workspaceTypeSlug:"Slug address",workspaceTypeSlugHint:"The path that publicly will be available to users, if they signup through this account this role would be assigned to them.",workspaceTypeTitle:"Title",workspaceTypeUniqueId:"Unique Id",workspaceTypeUniqueIdHint:"Unique id can be used to redirect user to direct signin",workspaceTypeTitleHint:"The title of the Workspace"}};function fy(t){var n,r,i,o;const e={};if(t.error&&Array.isArray((n=t.error)==null?void 0:n.errors))for(const u of(r=t.error)==null?void 0:r.errors)e[u.location]=u.message;return t.status&&t.ok===!1?{form:`${t.status}`}:((i=t==null?void 0:t.error)!=null&&i.message&&(e.form=(o=t==null?void 0:t.error)==null?void 0:o.message),t.message?{form:`${t.message}`}:e)}function _V(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}function BI(t,e="",n={}){for(const r in t)if(t.hasOwnProperty(r)){const i=e?`${e}.${r}`:r;typeof t[r]=="object"&&!Array.isArray(t[r])&&!t[r].operation?BI(t[r],i,n):n[i]=t[r]}return n}function fA(t){const e={ł:"l",Ł:"L"};return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[aeiouAEIOU]/g,"").replace(/[łŁ]/g,n=>e[n]||n).toLowerCase()}function AV(t,e){const n=BI(e);return t.filter(r=>Object.keys(n).every(i=>{let{operation:o,value:u}=n[i];u=fA(u||"");const l=fA(Sr.get(r,i)||"");if(!l)return!1;switch(o){case"contains":return l.includes(u);case"equals":return l===u;case"startsWith":return l.startsWith(u);case"endsWith":return l.endsWith(u);default:return!1}}))}class Cl{constructor(e){this.content=e}items(e){let n={};try{n=JSON.parse(e.jsonQuery)}catch{}return AV(this.content,n).filter((i,o)=>!(oe.startIndex+e.itemsPerPage-1))}total(){return this.content.length}create(e){const n={...e,uniqueId:_V().substr(0,12)};return this.content.push(n),n}getOne(e){return this.content.find(n=>n.uniqueId===e)}deletes(e){return this.content=this.content.filter(n=>!e.includes(n.uniqueId)),!0}patchOne(e){return this.content=this.content.map(n=>n.uniqueId===e.uniqueId?{...n,...e}:n),e}}const Lf=t=>t.split(" or ").map(e=>e.split(" = ")[1].trim()),dA=new Cl([]);var hA,pA,y0;function RV(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let PV=(hA=ft("files"),pA=dt("get"),y0=class{async getFiles(e){return{data:{items:dA.items(e),itemsPerPage:e.itemsPerPage,totalItems:dA.total()}}}},RV(y0.prototype,"getFiles",[hA,pA],Object.getOwnPropertyDescriptor(y0.prototype,"getFiles"),y0.prototype),y0);class IS extends Vt{constructor(...e){super(...e),this.children=void 0,this.type=void 0,this.apiKey=void 0}}IS.Navigation={edit(t,e){return`${e?"/"+e:".."}/email-provider/edit/${t}`},create(t){return`${t?"/"+t:".."}/email-provider/new`},single(t,e){return`${e?"/"+e:".."}/email-provider/${t}`},query(t={},e){return`${e?"/"+e:".."}/email-providers`},Redit:"email-provider/edit/:uniqueId",Rcreate:"email-provider/new",Rsingle:"email-provider/:uniqueId",Rquery:"email-providers"};IS.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"emailProvider",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"type",type:"enum",validate:"required",of:[{k:"terminal"},{k:"sendgrid"}],computedType:'"terminal" | "sendgrid"',gormMap:{}},{name:"apiKey",type:"string",computedType:"string",gormMap:{}}],description:"Thirdparty services which will send email, allows each workspace graphically configure their token without the need of restarting servers"};IS.Fields={...Vt.Fields,type:"type",apiKey:"apiKey"};class BO extends Vt{constructor(...e){super(...e),this.children=void 0,this.fromName=void 0,this.fromEmailAddress=void 0,this.replyTo=void 0,this.nickName=void 0}}BO.Navigation={edit(t,e){return`${e?"/"+e:".."}/email-sender/edit/${t}`},create(t){return`${t?"/"+t:".."}/email-sender/new`},single(t,e){return`${e?"/"+e:".."}/email-sender/${t}`},query(t={},e){return`${e?"/"+e:".."}/email-senders`},Redit:"email-sender/edit/:uniqueId",Rcreate:"email-sender/new",Rsingle:"email-sender/:uniqueId",Rquery:"email-senders"};BO.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"emailSender",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"fromName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"fromEmailAddress",type:"string",validate:"required",computedType:"string",gorm:"unique",gormMap:{}},{name:"replyTo",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"nickName",type:"string",validate:"required",computedType:"string",gormMap:{}}],description:"All emails going from the system need to have a virtual sender (nick name, email address, etc)"};BO.Fields={...Vt.Fields,fromName:"fromName",fromEmailAddress:"fromEmailAddress",replyTo:"replyTo",nickName:"nickName"};class eo extends Vt{constructor(...e){super(...e),this.children=void 0,this.role=void 0,this.roleId=void 0,this.workspace=void 0}}eo.Navigation={edit(t,e){return`${e?"/"+e:".."}/public-join-key/edit/${t}`},create(t){return`${t?"/"+t:".."}/public-join-key/new`},single(t,e){return`${e?"/"+e:".."}/public-join-key/${t}`},query(t={},e){return`${e?"/"+e:".."}/public-join-keys`},Redit:"public-join-key/edit/:uniqueId",Rcreate:"public-join-key/new",Rsingle:"public-join-key/:uniqueId",Rquery:"public-join-keys"};eo.definition={rpc:{query:{}},name:"publicJoinKey",features:{},gormMap:{},fields:[{name:"role",type:"one",target:"RoleEntity",computedType:"RoleEntity",gormMap:{}},{name:"workspace",type:"one",target:"WorkspaceEntity",computedType:"WorkspaceEntity",gormMap:{}}],description:"Joining to different workspaces using a public link directly"};eo.Fields={...Vt.Fields,roleId:"roleId",role$:"role",role:kr.Fields,workspace$:"workspace",workspace:cy.Fields};const gn={emailProvider:new Cl([]),emailSender:new Cl([]),workspaceInvite:new Cl([]),publicJoinKey:new Cl([]),workspaces:new Cl([])};var mA,gA,yA,vA,bA,wA,SA,CA,$A,EA,ui;function v0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let IV=(mA=ft("email-providers"),gA=dt("get"),yA=ft("email-provider/:uniqueId"),vA=dt("get"),bA=ft("email-provider"),wA=dt("patch"),SA=ft("email-provider"),CA=dt("post"),$A=ft("email-provider"),EA=dt("delete"),ui=class{async getEmailProviders(e){return{data:{items:gn.emailProvider.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.emailProvider.total()}}}async getEmailProviderByUniqueId(e){return{data:gn.emailProvider.getOne(e.paramValues[0])}}async patchEmailProviderByUniqueId(e){return{data:gn.emailProvider.patchOne(e.body)}}async postRole(e){return{data:gn.emailProvider.create(e.body)}}async deleteRole(e){return gn.emailProvider.deletes(Lf(e.body.query)),{data:{}}}},v0(ui.prototype,"getEmailProviders",[mA,gA],Object.getOwnPropertyDescriptor(ui.prototype,"getEmailProviders"),ui.prototype),v0(ui.prototype,"getEmailProviderByUniqueId",[yA,vA],Object.getOwnPropertyDescriptor(ui.prototype,"getEmailProviderByUniqueId"),ui.prototype),v0(ui.prototype,"patchEmailProviderByUniqueId",[bA,wA],Object.getOwnPropertyDescriptor(ui.prototype,"patchEmailProviderByUniqueId"),ui.prototype),v0(ui.prototype,"postRole",[SA,CA],Object.getOwnPropertyDescriptor(ui.prototype,"postRole"),ui.prototype),v0(ui.prototype,"deleteRole",[$A,EA],Object.getOwnPropertyDescriptor(ui.prototype,"deleteRole"),ui.prototype),ui);var xA,OA,TA,_A,AA,RA,PA,IA,NA,MA,li;function b0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let NV=(xA=ft("email-senders"),OA=dt("get"),TA=ft("email-sender/:uniqueId"),_A=dt("get"),AA=ft("email-sender"),RA=dt("patch"),PA=ft("email-sender"),IA=dt("post"),NA=ft("email-sender"),MA=dt("delete"),li=class{async getEmailSenders(e){return{data:{items:gn.emailSender.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.emailSender.total()}}}async getEmailSenderByUniqueId(e){return{data:gn.emailSender.getOne(e.paramValues[0])}}async patchEmailSenderByUniqueId(e){return{data:gn.emailSender.patchOne(e.body)}}async postRole(e){return{data:gn.emailSender.create(e.body)}}async deleteRole(e){return gn.emailSender.deletes(Lf(e.body.query)),{data:{}}}},b0(li.prototype,"getEmailSenders",[xA,OA],Object.getOwnPropertyDescriptor(li.prototype,"getEmailSenders"),li.prototype),b0(li.prototype,"getEmailSenderByUniqueId",[TA,_A],Object.getOwnPropertyDescriptor(li.prototype,"getEmailSenderByUniqueId"),li.prototype),b0(li.prototype,"patchEmailSenderByUniqueId",[AA,RA],Object.getOwnPropertyDescriptor(li.prototype,"patchEmailSenderByUniqueId"),li.prototype),b0(li.prototype,"postRole",[PA,IA],Object.getOwnPropertyDescriptor(li.prototype,"postRole"),li.prototype),b0(li.prototype,"deleteRole",[NA,MA],Object.getOwnPropertyDescriptor(li.prototype,"deleteRole"),li.prototype),li);var kA,DA,FA,LA,UA,jA,BA,qA,HA,zA,ci;function w0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let MV=(kA=ft("public-join-keys"),DA=dt("get"),FA=ft("public-join-key/:uniqueId"),LA=dt("get"),UA=ft("public-join-key"),jA=dt("patch"),BA=ft("public-join-key"),qA=dt("post"),HA=ft("public-join-key"),zA=dt("delete"),ci=class{async getPublicJoinKeys(e){return{data:{items:gn.publicJoinKey.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.publicJoinKey.total()}}}async getPublicJoinKeyByUniqueId(e){return{data:gn.publicJoinKey.getOne(e.paramValues[0])}}async patchPublicJoinKeyByUniqueId(e){return{data:gn.publicJoinKey.patchOne(e.body)}}async postPublicJoinKey(e){return{data:gn.publicJoinKey.create(e.body)}}async deletePublicJoinKey(e){return gn.publicJoinKey.deletes(Lf(e.body.query)),{data:{}}}},w0(ci.prototype,"getPublicJoinKeys",[kA,DA],Object.getOwnPropertyDescriptor(ci.prototype,"getPublicJoinKeys"),ci.prototype),w0(ci.prototype,"getPublicJoinKeyByUniqueId",[FA,LA],Object.getOwnPropertyDescriptor(ci.prototype,"getPublicJoinKeyByUniqueId"),ci.prototype),w0(ci.prototype,"patchPublicJoinKeyByUniqueId",[UA,jA],Object.getOwnPropertyDescriptor(ci.prototype,"patchPublicJoinKeyByUniqueId"),ci.prototype),w0(ci.prototype,"postPublicJoinKey",[BA,qA],Object.getOwnPropertyDescriptor(ci.prototype,"postPublicJoinKey"),ci.prototype),w0(ci.prototype,"deletePublicJoinKey",[HA,zA],Object.getOwnPropertyDescriptor(ci.prototype,"deletePublicJoinKey"),ci.prototype),ci);const Eg=new Cl([{name:"Administrator",uniqueId:"administrator"}]);var VA,GA,WA,KA,YA,JA,QA,XA,ZA,e8,fi;function S0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let kV=(VA=ft("roles"),GA=dt("get"),WA=ft("role/:uniqueId"),KA=dt("get"),YA=ft("role"),JA=dt("patch"),QA=ft("role"),XA=dt("delete"),ZA=ft("role"),e8=dt("post"),fi=class{async getRoles(e){return{data:{items:Eg.items(e),itemsPerPage:e.itemsPerPage,totalItems:Eg.total()}}}async getRoleByUniqueId(e){return{data:Eg.getOne(e.paramValues[0])}}async patchRoleByUniqueId(e){return{data:Eg.patchOne(e.body)}}async deleteRole(e){return Eg.deletes(Lf(e.body.query)),{data:{}}}async postRole(e){return{data:Eg.create(e.body)}}},S0(fi.prototype,"getRoles",[VA,GA],Object.getOwnPropertyDescriptor(fi.prototype,"getRoles"),fi.prototype),S0(fi.prototype,"getRoleByUniqueId",[WA,KA],Object.getOwnPropertyDescriptor(fi.prototype,"getRoleByUniqueId"),fi.prototype),S0(fi.prototype,"patchRoleByUniqueId",[YA,JA],Object.getOwnPropertyDescriptor(fi.prototype,"patchRoleByUniqueId"),fi.prototype),S0(fi.prototype,"deleteRole",[QA,XA],Object.getOwnPropertyDescriptor(fi.prototype,"deleteRole"),fi.prototype),S0(fi.prototype,"postRole",[ZA,e8],Object.getOwnPropertyDescriptor(fi.prototype,"postRole"),fi.prototype),fi);class qO extends Vt{constructor(...e){super(...e),this.children=void 0,this.label=void 0,this.href=void 0,this.icon=void 0,this.activeMatcher=void 0,this.capability=void 0,this.capabilityId=void 0}}qO.Navigation={edit(t,e){return`${e?"/"+e:".."}/app-menu/edit/${t}`},create(t){return`${t?"/"+t:".."}/app-menu/new`},single(t,e){return`${e?"/"+e:".."}/app-menu/${t}`},query(t={},e){return`${e?"/"+e:".."}/app-menus`},Redit:"app-menu/edit/:uniqueId",Rcreate:"app-menu/new",Rsingle:"app-menu/:uniqueId",Rquery:"app-menus"};qO.definition={rpc:{query:{}},name:"appMenu",features:{},gormMap:{},fields:[{name:"label",recommended:!0,description:"Label that will be visible to user",type:"string",translate:!0,computedType:"string",gormMap:{}},{name:"href",recommended:!0,description:"Location that will be navigated in case of click or selection on ui",type:"string",computedType:"string",gormMap:{}},{name:"icon",recommended:!0,description:"Icon string address which matches the resources on the front-end apps.",type:"string",computedType:"string",gormMap:{}},{name:"activeMatcher",description:"Custom window location url matchers, for inner screens.",type:"string",computedType:"string",gormMap:{}},{name:"capability",description:"The permission which is required for the menu to be visible.",type:"one",target:"CapabilityEntity",module:"fireback",computedType:"CapabilityEntity",gormMap:{}}],description:"Manages the menus in the app, (for example tab views, sidebar items, etc.)",cte:!0};qO.Fields={...Vt.Fields,label:"label",href:"href",icon:"icon",activeMatcher:"activeMatcher",capabilityId:"capabilityId",capability$:"capability",capability:q1.Fields};const DV=[{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/workspace/invite(s)?",capability:null,capabilityId:null,created:1711043161316914e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/workspace-invites",icon:"common/workspaceinvite.svg",label:"Invites",parentId:"fireback",uniqueId:"invites",updated:1711043161316914e3,visibility:"A"},{activeMatcher:"publicjoinkey",capability:null,capabilityId:null,created:171104316131093e4,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/public-join-keys",icon:"common/joinkey.svg",label:"Public join keys",parentId:"fireback",uniqueId:"publicjoinkey",updated:171104316131093e4,visibility:"A"},{activeMatcher:"/role/",capability:null,capabilityId:null,created:1711043161314546e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/roles",icon:"common/role.svg",label:"Roles",parentId:"fireback",uniqueId:"roles",updated:1711043161314546e3,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Workspace",uniqueId:"fireback",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"drives",capability:null,capabilityId:null,created:1711043161320805e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/drives",icon:"common/drive.svg",label:"Drive & Files",parentId:"root",uniqueId:"drive_files",updated:1711043161320805e3,visibility:"A"},{activeMatcher:"email-provider",capability:null,capabilityId:null,created:1711043161309663e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-providers",icon:"common/emailprovider.svg",label:"Email Provider",parentId:"root",uniqueId:"email_provider",updated:1711043161309663e3,visibility:"A"},{activeMatcher:"email-sender",capability:null,capabilityId:null,created:171104316131211e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/email-senders",icon:"common/mail.svg",label:"Email Sender",parentId:"root",uniqueId:"email_sender",updated:171104316131211e4,visibility:"A"},{activeMatcher:"/user/",capability:null,capabilityId:null,created:1711043161318088e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/users",icon:"common/user.svg",label:"Users",parentId:"root",uniqueId:"users",updated:1711043161318088e3,visibility:"A"},{activeMatcher:"/workspace/config",capability:null,capabilityId:null,created:17110431613157e5,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-config",icon:"ios-theme/icons/settings.svg",label:"Workspace Config",parentId:"root",uniqueId:"workspace_config",updated:17110431613157e5,visibility:"A"},{activeMatcher:"workspace-type",capability:null,capabilityId:null,created:1711043161313308e3,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspace-types",icon:"ios-theme/icons/settings.svg",label:"Workspace Types",parentId:"root",uniqueId:"workspace_types",updated:1711043161313308e3,visibility:"A"},{activeMatcher:"/workspaces/|workspace/new",capability:null,capabilityId:null,created:171104316132216e4,createdFormatted:"2024/03/21 18:46:01",href:"/manage/workspaces",icon:"common/workspace.svg",label:"Workspaces",parentId:"root",uniqueId:"workspaces",updated:171104316132216e4,visibility:"A"}],created:1711043161319555e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Root",uniqueId:"root",updated:1711043161319555e3,visibility:"A"},{activeMatcher:null,capability:null,capabilityId:null,children:[{activeMatcher:"/invites/",capability:null,capabilityId:null,created:1711043161328479e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice/user-invitations",icon:"common/workspaceinvite.svg",label:"My Invitations",parentId:"personal",uniqueId:"my_invitation",updated:1711043161328479e3,visibility:"A"},{activeMatcher:"/settings",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/settings",icon:"ios-theme/icons/settings.svg",label:"Settings",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"},{activeMatcher:"/selfservice",capability:null,capabilityId:null,created:1711043161325229e3,createdFormatted:"2024/03/21 18:46:01",href:"/selfservice",icon:"ios-theme/icons/settings.svg",label:"Account & Profile",parentId:"personal",uniqueId:"settings",updated:1711043161325229e3,visibility:"A"}],created:1711043161323813e3,createdFormatted:"2024/03/21 18:46:01",href:null,icon:null,label:"Personal",uniqueId:"personal",updated:1711043161323813e3,visibility:"A"}];var t8,n8,C0;function FV(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let LV=(t8=ft("cte-app-menus"),n8=dt("get"),C0=class{async getAppMenu(e){return{data:{items:DV}}}},FV(C0.prototype,"getAppMenu",[t8,n8],Object.getOwnPropertyDescriptor(C0.prototype,"getAppMenu"),C0.prototype),C0);const UV=()=>{if(Math.random()>.5)switch(Math.floor(Math.random()*3)){case 0:return`10.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 1:return`172.${Math.floor(16+Math.random()*16)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;case 2:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`;default:return`192.168.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`}else return`${Math.floor(Math.random()*223)+1}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}.${Math.floor(Math.random()*256)}`},jV=["Ali","Behnaz","Carlos","Daniela","Ethan","Fatima","Gustavo","Helena","Isla","Javad","Kamila","Leila","Mateo","Nasim","Omid","Parisa","Rania","Saeed","Tomas","Ursula","Vali","Wojtek","Zara","Alice","Bob","Charlie","Diana","George","Mohammed","Julia","Khalid","Lena","Mohammad","Nina","Oscar","Quentin","Rosa","Sam","Tina","Umar","Vera","Waleed","Xenia","Yara","Ziad","Maxim","Johann","Krzysztof","Baris","Mehmet"],BV=["Smith","Johnson","Williams","Brown","Jones","Garcia","Miller","Davis","Rodriguez","Martinez","Hernandez","Lopez","Gonzalez","Wilson","Anderson","Thomas","Taylor","Moore","Jackson","Martin","Lee","Perez","Thompson","White","Harris","Sanchez","Clark","Ramirez","Lewis","Robinson","Walker","Young","Allen","King","Wright","Scott","Torres","Nguyen","Hill","Flores","Green","Adams","Nelson","Baker","Hall","Rivera","Campbell","Mitchell","Carter","Roberts","Kowalski","Nowak","Jankowski","Zieliński","Wiśniewski","Lewandowski","Kaczmarek","Bąk","Pereira","Altıntaş"],qV=[{addressLine1:"123 Main St",addressLine2:"Apt 4",city:"Berlin",stateOrProvince:"Berlin",postalCode:"10115",countryCode:"DE"},{addressLine1:"456 Elm St",addressLine2:"Apt 23",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75001",countryCode:"FR"},{addressLine1:"789 Oak Dr",addressLine2:"Apt 9",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"01010",countryCode:"PL"},{addressLine1:"101 Maple Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"11365",countryCode:"IR"},{addressLine1:"202 Pine St",addressLine2:"Apt 7",city:"Madrid",stateOrProvince:"Community of Madrid",postalCode:"28001",countryCode:"ES"},{addressLine1:"456 Park Ave",addressLine2:"Suite 5",city:"New York",stateOrProvince:"NY",postalCode:"10001",countryCode:"US"},{addressLine1:"789 Sunset Blvd",addressLine2:"Unit 32",city:"Los Angeles",stateOrProvince:"CA",postalCode:"90001",countryCode:"US"},{addressLine1:"12 Hauptstrasse",addressLine2:"Apt 2",city:"Munich",stateOrProvince:"Bavaria",postalCode:"80331",countryCode:"DE"},{addressLine1:"75 Taksim Square",addressLine2:"Apt 12",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"321 Wierzbowa",addressLine2:"",city:"Kraków",stateOrProvince:"Małopolskie",postalCode:"31000",countryCode:"PL"},{addressLine1:"55 Rue de Rivoli",addressLine2:"Apt 10",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75004",countryCode:"FR"},{addressLine1:"1001 Tehran Ave",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"14155",countryCode:"IR"},{addressLine1:"9 Calle de Alcalá",addressLine2:"Apt 6",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28009",countryCode:"ES"},{addressLine1:"222 King St",addressLine2:"Suite 1B",city:"London",stateOrProvince:"London",postalCode:"E1 6AN",countryCode:"GB"},{addressLine1:"15 St. Peters Rd",addressLine2:"",city:"Toronto",stateOrProvince:"Ontario",postalCode:"M5A 1A2",countryCode:"CA"},{addressLine1:"1340 Via Roma",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00100",countryCode:"IT"},{addressLine1:"42 Nevsky Prospekt",addressLine2:"Apt 1",city:"Saint Petersburg",stateOrProvince:"Leningradskaya",postalCode:"190000",countryCode:"RU"},{addressLine1:"3 Rüdesheimer Str.",addressLine2:"Apt 9",city:"Frankfurt",stateOrProvince:"Hessen",postalCode:"60326",countryCode:"DE"},{addressLine1:"271 Süleyman Demirel Bulvarı",addressLine2:"Apt 45",city:"Ankara",stateOrProvince:"Ankara",postalCode:"06100",countryCode:"TR"},{addressLine1:"7 Avenues des Champs-Élysées",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75008",countryCode:"FR"},{addressLine1:"125 E. 9th St.",addressLine2:"Apt 12",city:"Chicago",stateOrProvince:"IL",postalCode:"60606",countryCode:"US"},{addressLine1:"30 Rue de la Paix",addressLine2:"",city:"Paris",stateOrProvince:"Île-de-France",postalCode:"75002",countryCode:"FR"},{addressLine1:"16 Zlote Tarasy",addressLine2:"Apt 18",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-510",countryCode:"PL"},{addressLine1:"120 Váci utca",addressLine2:"",city:"Budapest",stateOrProvince:"Budapest",postalCode:"1056",countryCode:"HU"},{addressLine1:"22 Sukhbaatar Sq.",addressLine2:"",city:"Ulaanbaatar",stateOrProvince:"Central",postalCode:"14190",countryCode:"MN"},{addressLine1:"34 Princes Street",addressLine2:"Flat 1",city:"Edinburgh",stateOrProvince:"Scotland",postalCode:"EH2 4AY",countryCode:"GB"},{addressLine1:"310 Alzaibiyah",addressLine2:"",city:"Amman",stateOrProvince:"Amman",postalCode:"11183",countryCode:"JO"},{addressLine1:"401 Taksim Caddesi",addressLine2:"Apt 25",city:"Istanbul",stateOrProvince:"Istanbul",postalCode:"34430",countryCode:"TR"},{addressLine1:"203 High Street",addressLine2:"Unit 3",city:"London",stateOrProvince:"London",postalCode:"W1T 2LQ",countryCode:"GB"},{addressLine1:"58 Via Nazionale",addressLine2:"",city:"Rome",stateOrProvince:"Lazio",postalCode:"00184",countryCode:"IT"},{addressLine1:"47 Gloucester Road",addressLine2:"",city:"London",stateOrProvince:"London",postalCode:"SW7 4QA",countryCode:"GB"},{addressLine1:"98 Calle de Bravo Murillo",addressLine2:"",city:"Madrid",stateOrProvince:"Madrid",postalCode:"28039",countryCode:"ES"},{addressLine1:"57 Mirza Ghalib Street",addressLine2:"",city:"Tehran",stateOrProvince:"تهران",postalCode:"15996",countryCode:"IR"},{addressLine1:"35 Królewska St",addressLine2:"",city:"Warszawa",stateOrProvince:"Mazowieckie",postalCode:"00-065",countryCode:"PL"},{addressLine1:"12 5th Ave",addressLine2:"",city:"New York",stateOrProvince:"NY",postalCode:"10128",countryCode:"US"}],HV=()=>{const t=new Uint8Array(18);window.crypto.getRandomValues(t);const e=Array.from(t).map(r=>r.toString(36).padStart(2,"0")).join(""),n=Date.now().toString(36);return n+e.slice(0,30-n.length)},zV=()=>({uniqueId:HV(),firstName:Sr.sample(jV),lastName:Sr.sample(BV),photo:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,birthDate:new Date().getDate()+"/"+new Date().getMonth()+"/"+new Date().getFullYear(),gender:Math.random()>.5?1:0,title:Math.random()>.5?"Mr.":"Ms.",avatar:`https://randomuser.me/api/portraits/men/${Math.floor(Math.random()*100)}.jpg`,lastIpAddress:UV(),primaryAddress:Sr.sample(qV)}),xg=new Cl(Sr.times(1e4,()=>zV()));var r8,i8,a8,o8,s8,u8,l8,c8,f8,d8,di;function $0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let VV=(r8=ft("users"),i8=dt("get"),a8=ft("user"),o8=dt("delete"),s8=ft("user/:uniqueId"),u8=dt("get"),l8=ft("user"),c8=dt("patch"),f8=ft("user"),d8=dt("post"),di=class{async getUsers(e){return{data:{items:xg.items(e),itemsPerPage:e.itemsPerPage,totalItems:xg.total()}}}async deleteUser(e){return xg.deletes(Lf(e.body.query)),{data:{}}}async getUserByUniqueId(e){return{data:xg.getOne(e.paramValues[0])}}async patchUserByUniqueId(e){return{data:xg.patchOne(e.body)}}async postUser(e){return{data:xg.create(e.body)}}},$0(di.prototype,"getUsers",[r8,i8],Object.getOwnPropertyDescriptor(di.prototype,"getUsers"),di.prototype),$0(di.prototype,"deleteUser",[a8,o8],Object.getOwnPropertyDescriptor(di.prototype,"deleteUser"),di.prototype),$0(di.prototype,"getUserByUniqueId",[s8,u8],Object.getOwnPropertyDescriptor(di.prototype,"getUserByUniqueId"),di.prototype),$0(di.prototype,"patchUserByUniqueId",[l8,c8],Object.getOwnPropertyDescriptor(di.prototype,"patchUserByUniqueId"),di.prototype),$0(di.prototype,"postUser",[f8,d8],Object.getOwnPropertyDescriptor(di.prototype,"postUser"),di.prototype),di);class GV{}var h8,p8,m8,g8,y8,v8,b8,w8,S8,C8,hi;function E0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let WV=(h8=ft("workspace-invites"),p8=dt("get"),m8=ft("workspace-invite/:uniqueId"),g8=dt("get"),y8=ft("workspace-invite"),v8=dt("patch"),b8=ft("workspace/invite"),w8=dt("post"),S8=ft("workspace-invite"),C8=dt("delete"),hi=class{async getWorkspaceInvites(e){return{data:{items:gn.workspaceInvite.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.workspaceInvite.total()}}}async getWorkspaceInviteByUniqueId(e){return{data:gn.workspaceInvite.getOne(e.paramValues[0])}}async patchWorkspaceInviteByUniqueId(e){return{data:gn.workspaceInvite.patchOne(e.body)}}async postWorkspaceInvite(e){return{data:gn.workspaceInvite.create(e.body)}}async deleteWorkspaceInvite(e){return gn.workspaceInvite.deletes(Lf(e.body.query)),{data:{}}}},E0(hi.prototype,"getWorkspaceInvites",[h8,p8],Object.getOwnPropertyDescriptor(hi.prototype,"getWorkspaceInvites"),hi.prototype),E0(hi.prototype,"getWorkspaceInviteByUniqueId",[m8,g8],Object.getOwnPropertyDescriptor(hi.prototype,"getWorkspaceInviteByUniqueId"),hi.prototype),E0(hi.prototype,"patchWorkspaceInviteByUniqueId",[y8,v8],Object.getOwnPropertyDescriptor(hi.prototype,"patchWorkspaceInviteByUniqueId"),hi.prototype),E0(hi.prototype,"postWorkspaceInvite",[b8,w8],Object.getOwnPropertyDescriptor(hi.prototype,"postWorkspaceInvite"),hi.prototype),E0(hi.prototype,"deleteWorkspaceInvite",[S8,C8],Object.getOwnPropertyDescriptor(hi.prototype,"deleteWorkspaceInvite"),hi.prototype),hi);const Og=new Cl([{title:"Student workspace type",uniqueId:"1",slug:"/student"}]);var $8,E8,x8,O8,T8,_8,A8,R8,P8,I8,pi;function x0(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let KV=($8=ft("workspace-types"),E8=dt("get"),x8=ft("workspace-type/:uniqueId"),O8=dt("get"),T8=ft("workspace-type"),_8=dt("patch"),A8=ft("workspace-type"),R8=dt("delete"),P8=ft("workspace-type"),I8=dt("post"),pi=class{async getWorkspaceTypes(e){return{data:{items:Og.items(e),itemsPerPage:e.itemsPerPage,totalItems:Og.total()}}}async getWorkspaceTypeByUniqueId(e){return{data:Og.getOne(e.paramValues[0])}}async patchWorkspaceTypeByUniqueId(e){return{data:Og.patchOne(e.body)}}async deleteWorkspaceType(e){return Og.deletes(Lf(e.body.query)),{data:{}}}async postWorkspaceType(e){return{data:Og.create(e.body)}}},x0(pi.prototype,"getWorkspaceTypes",[$8,E8],Object.getOwnPropertyDescriptor(pi.prototype,"getWorkspaceTypes"),pi.prototype),x0(pi.prototype,"getWorkspaceTypeByUniqueId",[x8,O8],Object.getOwnPropertyDescriptor(pi.prototype,"getWorkspaceTypeByUniqueId"),pi.prototype),x0(pi.prototype,"patchWorkspaceTypeByUniqueId",[T8,_8],Object.getOwnPropertyDescriptor(pi.prototype,"patchWorkspaceTypeByUniqueId"),pi.prototype),x0(pi.prototype,"deleteWorkspaceType",[A8,R8],Object.getOwnPropertyDescriptor(pi.prototype,"deleteWorkspaceType"),pi.prototype),x0(pi.prototype,"postWorkspaceType",[P8,I8],Object.getOwnPropertyDescriptor(pi.prototype,"postWorkspaceType"),pi.prototype),pi);var N8,M8,k8,D8,F8,L8,U8,j8,B8,q8,H8,z8,Er;function Tg(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let YV=(N8=ft("workspaces"),M8=dt("get"),k8=ft("cte-workspaces"),D8=dt("get"),F8=ft("workspace/:uniqueId"),L8=dt("get"),U8=ft("workspace"),j8=dt("patch"),B8=ft("workspace"),q8=dt("delete"),H8=ft("workspace"),z8=dt("post"),Er=class{async getWorkspaces(e){return{data:{items:gn.workspaces.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.workspaces.total()}}}async getWorkspacesCte(e){return{data:{items:gn.workspaces.items(e),itemsPerPage:e.itemsPerPage,totalItems:gn.workspaces.total()}}}async getWorkspaceByUniqueId(e){return{data:gn.workspaces.getOne(e.paramValues[0])}}async patchWorkspaceByUniqueId(e){return{data:gn.workspaces.patchOne(e.body)}}async deleteWorkspace(e){return gn.workspaces.deletes(Lf(e.body.query)),{data:{}}}async postWorkspace(e){return{data:gn.workspaces.create(e.body)}}},Tg(Er.prototype,"getWorkspaces",[N8,M8],Object.getOwnPropertyDescriptor(Er.prototype,"getWorkspaces"),Er.prototype),Tg(Er.prototype,"getWorkspacesCte",[k8,D8],Object.getOwnPropertyDescriptor(Er.prototype,"getWorkspacesCte"),Er.prototype),Tg(Er.prototype,"getWorkspaceByUniqueId",[F8,L8],Object.getOwnPropertyDescriptor(Er.prototype,"getWorkspaceByUniqueId"),Er.prototype),Tg(Er.prototype,"patchWorkspaceByUniqueId",[U8,j8],Object.getOwnPropertyDescriptor(Er.prototype,"patchWorkspaceByUniqueId"),Er.prototype),Tg(Er.prototype,"deleteWorkspace",[B8,q8],Object.getOwnPropertyDescriptor(Er.prototype,"deleteWorkspace"),Er.prototype),Tg(Er.prototype,"postWorkspace",[H8,z8],Object.getOwnPropertyDescriptor(Er.prototype,"postWorkspace"),Er.prototype),Er);class NS extends Vt{constructor(...e){super(...e),this.children=void 0,this.apiKey=void 0,this.mainSenderNumber=void 0,this.type=void 0,this.invokeUrl=void 0,this.invokeBody=void 0}}NS.Navigation={edit(t,e){return`${e?"/"+e:".."}/gsm-provider/edit/${t}`},create(t){return`${t?"/"+t:".."}/gsm-provider/new`},single(t,e){return`${e?"/"+e:".."}/gsm-provider/${t}`},query(t={},e){return`${e?"/"+e:".."}/gsm-providers`},Redit:"gsm-provider/edit/:uniqueId",Rcreate:"gsm-provider/new",Rsingle:"gsm-provider/:uniqueId",Rquery:"gsm-providers"};NS.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"gsmProvider",features:{},gormMap:{},fields:[{name:"apiKey",type:"string",computedType:"string",gormMap:{}},{name:"mainSenderNumber",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"type",type:"enum",validate:"required",of:[{k:"url"},{k:"terminal"},{k:"mediana"}],computedType:'"url" | "terminal" | "mediana"',gormMap:{}},{name:"invokeUrl",type:"string",computedType:"string",gormMap:{}},{name:"invokeBody",type:"string",computedType:"string",gormMap:{}}]};NS.Fields={...Vt.Fields,apiKey:"apiKey",mainSenderNumber:"mainSenderNumber",type:"type",invokeUrl:"invokeUrl",invokeBody:"invokeBody"};class Wg extends Vt{constructor(...e){super(...e),this.children=void 0,this.content=void 0,this.contentExcerpt=void 0,this.region=void 0,this.title=void 0,this.languageId=void 0,this.keyGroup=void 0}}Wg.Navigation={edit(t,e){return`${e?"/"+e:".."}/regional-content/edit/${t}`},create(t){return`${t?"/"+t:".."}/regional-content/new`},single(t,e){return`${e?"/"+e:".."}/regional-content/${t}`},query(t={},e){return`${e?"/"+e:".."}/regional-contents`},Redit:"regional-content/edit/:uniqueId",Rcreate:"regional-content/new",Rsingle:"regional-content/:uniqueId",Rquery:"regional-contents"};Wg.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"regionalContent",features:{},security:{writeOnRoot:!0},gormMap:{},fields:[{name:"content",type:"html",validate:"required",computedType:"string",gormMap:{}},{name:"region",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"title",type:"string",computedType:"string",gormMap:{}},{name:"languageId",type:"string",validate:"required",computedType:"string",gorm:"index:regional_content_index,unique",gormMap:{}},{name:"keyGroup",type:"enum",validate:"required",of:[{k:"SMS_OTP",description:"Used when an email would be sent with one time password"},{k:"EMAIL_OTP",description:"Used when an sms would be sent with one time password"}],computedType:'"SMS_OTP" | "EMAIL_OTP"',gorm:"index:regional_content_index,unique",gormMap:{}}],cliShort:"rc",description:"Email templates, sms templates or other textual content which can be accessed."};Wg.Fields={...Vt.Fields,content:"content",region:"region",title:"title",languageId:"languageId",keyGroup:"keyGroup"};class HO extends Vt{constructor(...e){super(...e),this.children=void 0,this.enableRecaptcha2=void 0,this.enableOtp=void 0,this.requireOtpOnSignup=void 0,this.requireOtpOnSignin=void 0,this.recaptcha2ServerKey=void 0,this.recaptcha2ClientKey=void 0,this.enableTotp=void 0,this.forceTotp=void 0,this.forcePasswordOnPhone=void 0,this.forcePersonNameOnPhone=void 0,this.generalEmailProvider=void 0,this.generalEmailProviderId=void 0,this.generalGsmProvider=void 0,this.generalGsmProviderId=void 0,this.inviteToWorkspaceContent=void 0,this.inviteToWorkspaceContentId=void 0,this.emailOtpContent=void 0,this.emailOtpContentId=void 0,this.smsOtpContent=void 0,this.smsOtpContentId=void 0}}HO.Navigation={edit(t,e){return`${e?"/"+e:".."}/workspace-config/edit/${t}`},create(t){return`${t?"/"+t:".."}/workspace-config/new`},single(t,e){return`${e?"/"+e:".."}/workspace-config/${t}`},query(t={},e){return`${e?"/"+e:".."}/workspace-configs`},Redit:"workspace-config/edit/:uniqueId",Rcreate:"workspace-config/new",Rsingle:"workspace-config/:uniqueId",Rquery:"workspace-configs"};HO.definition={rpc:{query:{}},permRewrite:{replace:"root.modules",with:"root.manage"},name:"workspaceConfig",distinctBy:"workspace",features:{},security:{writeOnRoot:!0,readOnRoot:!0,resolveStrategy:"workspace"},gormMap:{},fields:[{name:"enableRecaptcha2",description:"Enables the recaptcha2 for authentication flow.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"enableOtp",recommended:!0,description:"Enables the otp option. It's not forcing it, so user can choose if they want otp or password.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignup",recommended:!0,description:"Forces the user to have otp verification before can create an account. They can define their password still.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"requireOtpOnSignin",recommended:!0,description:"Forces the user to use otp when signing in. Even if they have password set, they won't use it and only will be able to signin using that otp.",type:"bool?",default:!1,computedType:"boolean",gormMap:{}},{name:"recaptcha2ServerKey",description:"Secret which would be used to decrypt if the recaptcha is correct. Should not be available publicly.",type:"string",computedType:"string",gormMap:{}},{name:"recaptcha2ClientKey",description:"Secret which would be used for recaptcha2 on the client side. Can be publicly visible, and upon authenticating users it would be sent to front-end.",type:"string",computedType:"string",gormMap:{}},{name:"enableTotp",recommended:!0,description:"Enables user to make 2FA using apps such as google authenticator or microsoft authenticator.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forceTotp",recommended:!0,description:"Forces the user to setup a 2FA in order to access their account. Users which did not setup this won't be affected.",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePasswordOnPhone",description:"Forces users who want to create account using phone number to also set a password on their account",type:"bool?",computedType:"boolean",gormMap:{}},{name:"forcePersonNameOnPhone",description:"Forces the creation of account using phone number to ask for user first name and last name",type:"bool?",computedType:"boolean",gormMap:{}},{name:"generalEmailProvider",description:"Email provider service, which will be used to send the messages using it's service. It doesn't affect the message content, rather, you can choose via which third-party service, or even your own smtp service to send emails.",type:"one",target:"EmailProviderEntity",computedType:"EmailProviderEntity",gormMap:{}},{name:"generalGsmProvider",description:"General service which would be used to send text messages (sms) using it's services or API.",type:"one",target:"GsmProviderEntity",computedType:"GsmProviderEntity",gormMap:{}},{name:"inviteToWorkspaceContent",description:"This template would be used, as default when a user is inviting a third-party into their own workspace.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"emailOtpContent",description:"Upon one time password request for email, the content will be read to fill the message which will go to user.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}},{name:"smsOtpContent",description:"Upon OTP text messages, this template will be used to create such text message, including the one time password code.",type:"one",target:"RegionalContentEntity",computedType:"RegionalContentEntity",gormMap:{}}],cliName:"config",description:"Contains configuration which would be necessary for application environment to be running. At the moment, a single record is allowed, and only for root workspace. But in theory it could be configured per each workspace independently. For sub projects do not touch this, rather create a custom config entity if workspaces in the product need extra config."};HO.Fields={...Vt.Fields,enableRecaptcha2:"enableRecaptcha2",enableOtp:"enableOtp",requireOtpOnSignup:"requireOtpOnSignup",requireOtpOnSignin:"requireOtpOnSignin",recaptcha2ServerKey:"recaptcha2ServerKey",recaptcha2ClientKey:"recaptcha2ClientKey",enableTotp:"enableTotp",forceTotp:"forceTotp",forcePasswordOnPhone:"forcePasswordOnPhone",forcePersonNameOnPhone:"forcePersonNameOnPhone",generalEmailProviderId:"generalEmailProviderId",generalEmailProvider$:"generalEmailProvider",generalEmailProvider:IS.Fields,generalGsmProviderId:"generalGsmProviderId",generalGsmProvider$:"generalGsmProvider",generalGsmProvider:NS.Fields,inviteToWorkspaceContentId:"inviteToWorkspaceContentId",inviteToWorkspaceContent$:"inviteToWorkspaceContent",inviteToWorkspaceContent:Wg.Fields,emailOtpContentId:"emailOtpContentId",emailOtpContent$:"emailOtpContent",emailOtpContent:Wg.Fields,smsOtpContentId:"smsOtpContentId",smsOtpContent$:"smsOtpContent",smsOtpContent:Wg.Fields};var V8,G8,W8,K8,yf;function Y8(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(u){o[u]=r[u]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(u,l){return l(t,e,u)||u},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0?(Object.defineProperty(t,e,o),null):o}let JV=(V8=ft("workspace-config"),G8=dt("get"),W8=ft("workspace-wconfig/distiwnct"),K8=dt("patch"),yf=class{async getWorkspaceConfig(e){return{data:{enableOtp:!0,forcePasswordOnPhone:!0}}}async setWorkspaceConfig(e){return{data:e.body}}},Y8(yf.prototype,"getWorkspaceConfig",[V8,G8],Object.getOwnPropertyDescriptor(yf.prototype,"getWorkspaceConfig"),yf.prototype),Y8(yf.prototype,"setWorkspaceConfig",[W8,K8],Object.getOwnPropertyDescriptor(yf.prototype,"setWorkspaceConfig"),yf.prototype),yf);const QV=[new vV,new kV,new LV,new VV,new KV,new PV,new IV,new NV,new WV,new MV,new GV,new YV,new JV];var FC={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/var F8;function UV(){return F8||(F8=1,(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var o="",u=0;uN.jsx(HE,{...t,to:t.href,children:t.children});function Ur(){const t=OO(),e=$z(),n=kl(),r=(o,u,l,d=!1)=>{const h=BV(window.location.pathname);let g=o.replace("{locale}",h);t(g,{replace:d,state:l})},i=(o,u,l)=>{r(o,u,l,!0)};return{asPath:n.pathname,state:n.state,pathname:"",query:e,push:r,goBack:()=>t(-1),goBackOrDefault:o=>t(-1),goForward:()=>t(1),replace:i}}function HV(t){let e="en";const n=t.match(/^\/(fa|en|ar|pl|de)\//);return n&&n[1]&&(e=n[1]),e}function Ci(){const t=Ur();let e="en",n="us",r="ltr";return Si.FORCED_LOCALE?e=Si.FORCED_LOCALE:t.query.locale?e=`${t.query.locale}`:e=HV(t.asPath),e==="fa"&&(n="ir",r="rtl"),{locale:e,asPath:t.asPath,region:n,dir:r}}const zV={onlyOnRoot:"این بخش فقط برای دسترسی روت قابل مشاهده است. در صورت نیاز به اطلاعات بیشتر با مدیر سیستم خود تماس بگیرید.",abac:{backToApp:"رفتن به صفحات داخلی",email:"ایمیل",emailAddress:"آدرس ایمیل",firstName:"نام",lastName:"نام خانوادگی",otpOrDifferent:"یا یه حساب کاربری دیگه را امتحان کنید",otpResetMethod:"روش ریست کردن رمز",otpTitle:"رمز یک بار ورود",otpTitleHint:"برای ورود یک کد ۶ رقمی به وسیله یکی از روش های ارتباطی دریافت میکنید. بعدا میتوانید رمز خود را از طریق تنظیمات عوض کنید.",password:"کلمه عبور",remember:"مرا به یاد بسپار",signin:"ورود",signout:"خروج",signup:"ثبت نام",signupType:"نوع ثبت نام",signupTypeHint:"نوع حساب کاربری خود را مشخص کنید.",viaEmail:"از طریق ایمیل",viaSms:"از طریق پیامک"},about:"درباره",acChecks:{moduleName:"چک ها"},acbankbranches:{acBankBranchArchiveTitle:"شعب بانک",bank:"بانک",bankHint:"بانکی که این شعبه به آن تعلق دارد",bankId:"بانک",city:"شهر",cityHint:"شهری که این بانک در آن وجود دارد",cityId:"شهر",editAcBank:"ویرایش شعبه",editAcBankBranch:"ویرایش شعبه",locaitonHint:"شهر، استان و یا ناحیه ای که این شعبه در آن است",location:"مکان",name:"نام شعبه",nameHint:"نام این شعبه بانک، کد یا اسم محل یا شهر هم مجاز است",newAcBankBranch:"شعبه جدید بانک",province:"استان",provinceHint:"استانی که این بانک در آن قرار دارد"},acbanks:{acBankArchiveTitle:"بانک ها",editAcBank:"ویرایش بانک",name:"نام بانک",nameHint:"نام بانک را به صورت کلی برای شناسایی راحت تر وارد کنید",newAcBank:"بانک جدید"},accesibility:{leftHand:"چپ دست",rightHand:"راست دست"},accheck:{acCheckArchiveTitle:"چک ها"},acchecks:{acCheckArchiveTitle:"چک ها",amount:"مبلغ",amountFormatted:"مبلغ",amountHint:"مبلغ قابل پرداخت چک",bankBranch:"شعبه بانک",bankBranchCityName:"نام شهر",bankBranchHint:"شعبه بانکی که این چک را صادر کرده است",bankBranchId:"شعبه بانک",bankBranchName:"ن",currency:"واحد پول",currencyHint:"واحد پولی که این چک دارد",customer:"مشتری",customerHint:"مشتری یا شخصی که این چک به او مربوط است",customerId:"مشتری",dueDate:"تاریخ سررسید",dueDateFormatted:"تاریخ سررسید",dueDateHint:"زمانی که چک قابل نقد شدن در بانک باشد",editAcCheck:"ویرایش چک",identifier:"شناسه چک",identifierHint:"شناسه یا کد مخصوص این چک",issueDate:"تاریخ صدور",issueDateFormatted:"تاریخ صدور",issueDateHint:"تاریخی که چک صادر شده است",newAcCheck:"چک جدید",recipientBankBranch:"بانک دریافت کننده",recipientBankBranchHint:"بانکی که این چک برای نقد شدن به آن ارسال شده",recipientCustomer:"مشتری دریافت کننده",recipientCustomerHint:"مشتری که این چک را دریافت کرده است",status:"وضعیت",statusHint:"وضعیت نهایی این چک"},accheckstatuses:{acCheckStatusArchiveTitle:"وضعیت چک",editAcCheckStatus:"ویرایش وضعیت چک",name:"نام وضعیت",nameHint:"نام وضعیتی که به چک ها اختصاص داده میشود",newAcCheckStatus:"وضعیت جدید چک"},accountcollections:{archiveTitle:"سرفصل های حسابداری",editAccountCollection:"ویرایش سرفصل",name:"نام سرفصل",nameHint:"نامی که برای این سرفصل حسابداری در نظر گرفته شده",newAccountCollection:"سرفصل جدید"},accounting:{account:{currency:"واحد پول",name:"نام"},accountCollections:"سرفصل های حسابداری",accountCollectionsHint:"سرفصل های حسابداری",amount:"میزان",legalUnit:{name:"نام"},settlementDate:"تاریخ حل و فصل",summary:"خلاصه",title:"عنوان",transactionDate:"تاریخ معامله"},actions:{addJob:"+ اضافه کردن شغل",back:"Back",edit:"ویرایش",new:"جدید"},addLocation:"اضافه کردن لوکیشن",alreadyHaveAnAccount:"از قبل حساب کاربری دارید؟ به جای آن وارد شوید",answerSheet:{grammarProgress:"گرامر %",listeningProgress:"استماع ٪",readingProgress:"خواندن %",sourceExam:"آزمون منبع",speakingProgress:"صحبت كردن ٪",takerFullname:"نام کامل دانش آموز",writingProgress:"% نوشتن"},authenticatedOnly:"این بخش شما را ملزم می کند که قبل از مشاهده یا ویرایش هر نوع وارد شوید.",b1PolishSample:{b12018:"2018 B1 Sample",grammar:"گرامر",listenning:"شنیدار",reading:"خواندن",speaking:"صحبت",writing:"نوشتار"},backup:{generateAndDownload:"ایجاد و دانلود",generateDescription:`در اینجا می توانید یک نسخه پشتیبان از سیستم ایجاد کنید. مهم است که به خاطر داشته باشید +*/var J8;function XV(){return J8||(J8=1,(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var o="",u=0;uN.jsx(nx,{...t,to:t.href,children:t.children});function Lr(){const t=UO(),e=Dz(),n=Ll(),r=(o,u,l,d=!1)=>{const h=eG(window.location.pathname);let g=o.replace("{locale}",h);t(g,{replace:d,state:l})},i=(o,u,l)=>{r(o,u,l,!0)};return{asPath:n.pathname,state:n.state,pathname:"",query:e,push:r,goBack:()=>t(-1),goBackOrDefault:o=>t(-1),goForward:()=>t(1),replace:i}}function nG(t){let e="en";const n=t.match(/^\/(fa|en|ar|pl|de)\//);return n&&n[1]&&(e=n[1]),e}function $i(){const t=Lr();let e="en",n="us",r="ltr";return Ci.FORCED_LOCALE?e=Ci.FORCED_LOCALE:t.query.locale?e=`${t.query.locale}`:e=nG(t.asPath),e==="fa"&&(n="ir",r="rtl"),{locale:e,asPath:t.asPath,region:n,dir:r}}const rG={onlyOnRoot:"این بخش فقط برای دسترسی روت قابل مشاهده است. در صورت نیاز به اطلاعات بیشتر با مدیر سیستم خود تماس بگیرید.",abac:{backToApp:"رفتن به صفحات داخلی",email:"ایمیل",emailAddress:"آدرس ایمیل",firstName:"نام",lastName:"نام خانوادگی",otpOrDifferent:"یا یه حساب کاربری دیگه را امتحان کنید",otpResetMethod:"روش ریست کردن رمز",otpTitle:"رمز یک بار ورود",otpTitleHint:"برای ورود یک کد ۶ رقمی به وسیله یکی از روش های ارتباطی دریافت میکنید. بعدا میتوانید رمز خود را از طریق تنظیمات عوض کنید.",password:"کلمه عبور",remember:"مرا به یاد بسپار",signin:"ورود",signout:"خروج",signup:"ثبت نام",signupType:"نوع ثبت نام",signupTypeHint:"نوع حساب کاربری خود را مشخص کنید.",viaEmail:"از طریق ایمیل",viaSms:"از طریق پیامک"},about:"درباره",acChecks:{moduleName:"چک ها"},acbankbranches:{acBankBranchArchiveTitle:"شعب بانک",bank:"بانک",bankHint:"بانکی که این شعبه به آن تعلق دارد",bankId:"بانک",city:"شهر",cityHint:"شهری که این بانک در آن وجود دارد",cityId:"شهر",editAcBank:"ویرایش شعبه",editAcBankBranch:"ویرایش شعبه",locaitonHint:"شهر، استان و یا ناحیه ای که این شعبه در آن است",location:"مکان",name:"نام شعبه",nameHint:"نام این شعبه بانک، کد یا اسم محل یا شهر هم مجاز است",newAcBankBranch:"شعبه جدید بانک",province:"استان",provinceHint:"استانی که این بانک در آن قرار دارد"},acbanks:{acBankArchiveTitle:"بانک ها",editAcBank:"ویرایش بانک",name:"نام بانک",nameHint:"نام بانک را به صورت کلی برای شناسایی راحت تر وارد کنید",newAcBank:"بانک جدید"},accesibility:{leftHand:"چپ دست",rightHand:"راست دست"},accheck:{acCheckArchiveTitle:"چک ها"},acchecks:{acCheckArchiveTitle:"چک ها",amount:"مبلغ",amountFormatted:"مبلغ",amountHint:"مبلغ قابل پرداخت چک",bankBranch:"شعبه بانک",bankBranchCityName:"نام شهر",bankBranchHint:"شعبه بانکی که این چک را صادر کرده است",bankBranchId:"شعبه بانک",bankBranchName:"ن",currency:"واحد پول",currencyHint:"واحد پولی که این چک دارد",customer:"مشتری",customerHint:"مشتری یا شخصی که این چک به او مربوط است",customerId:"مشتری",dueDate:"تاریخ سررسید",dueDateFormatted:"تاریخ سررسید",dueDateHint:"زمانی که چک قابل نقد شدن در بانک باشد",editAcCheck:"ویرایش چک",identifier:"شناسه چک",identifierHint:"شناسه یا کد مخصوص این چک",issueDate:"تاریخ صدور",issueDateFormatted:"تاریخ صدور",issueDateHint:"تاریخی که چک صادر شده است",newAcCheck:"چک جدید",recipientBankBranch:"بانک دریافت کننده",recipientBankBranchHint:"بانکی که این چک برای نقد شدن به آن ارسال شده",recipientCustomer:"مشتری دریافت کننده",recipientCustomerHint:"مشتری که این چک را دریافت کرده است",status:"وضعیت",statusHint:"وضعیت نهایی این چک"},accheckstatuses:{acCheckStatusArchiveTitle:"وضعیت چک",editAcCheckStatus:"ویرایش وضعیت چک",name:"نام وضعیت",nameHint:"نام وضعیتی که به چک ها اختصاص داده میشود",newAcCheckStatus:"وضعیت جدید چک"},accountcollections:{archiveTitle:"سرفصل های حسابداری",editAccountCollection:"ویرایش سرفصل",name:"نام سرفصل",nameHint:"نامی که برای این سرفصل حسابداری در نظر گرفته شده",newAccountCollection:"سرفصل جدید"},accounting:{account:{currency:"واحد پول",name:"نام"},accountCollections:"سرفصل های حسابداری",accountCollectionsHint:"سرفصل های حسابداری",amount:"میزان",legalUnit:{name:"نام"},settlementDate:"تاریخ حل و فصل",summary:"خلاصه",title:"عنوان",transactionDate:"تاریخ معامله"},actions:{addJob:"+ اضافه کردن شغل",back:"Back",edit:"ویرایش",new:"جدید"},addLocation:"اضافه کردن لوکیشن",alreadyHaveAnAccount:"از قبل حساب کاربری دارید؟ به جای آن وارد شوید",answerSheet:{grammarProgress:"گرامر %",listeningProgress:"استماع ٪",readingProgress:"خواندن %",sourceExam:"آزمون منبع",speakingProgress:"صحبت كردن ٪",takerFullname:"نام کامل دانش آموز",writingProgress:"% نوشتن"},authenticatedOnly:"این بخش شما را ملزم می کند که قبل از مشاهده یا ویرایش هر نوع وارد شوید.",b1PolishSample:{b12018:"2018 B1 Sample",grammar:"گرامر",listenning:"شنیدار",reading:"خواندن",speaking:"صحبت",writing:"نوشتار"},backup:{generateAndDownload:"ایجاد و دانلود",generateDescription:`در اینجا می توانید یک نسخه پشتیبان از سیستم ایجاد کنید. مهم است که به خاطر داشته باشید شما از داده هایی که برای شما قابل مشاهده است تولید خواهید کرد. پشتیبان‌گیری باید با استفاده از حساب‌های مدیریتی انجام شود تا از پوشش همه داده‌های موجود در سیستم اطمینان حاصل شود.`,generateTitle:"ایجاد پشتیبان",restoreDescription:"در اینجا می‌توانید فایل‌های پشتیبان یا داده‌هایی را که از نصب دیگری منتقل کرده‌اید، وارد سیستم کنید.",restoreTitle:"بازیابی نسخه های پشتیبان",uploadAndRestore:"آپلود و بازیابی"},banks:{title:"بانک ها"},classroom:{classRoomName:"نام کلاس درس",classRoomNameHint:"عنوان کلاس را وارد کنید، به عنوان مثال: اسپانیایی گروه A1.1",description:"شرح",descriptionHint:"با چند کلمه توضیح دهید که این کلاس درس در مورد چیست، تا دانش آموزان آن را به راحتی پیدا کنند",editClassRoom:"ویرایش کلاس درس",gogoleMeetUrlHint:"آدرس اینترنتی را که زبان آموزان برای دسترسی به کلاس باز می کنند قرار دهید",googleMeetUrl:"آدرس اینترنتی Google Meet",members:"اعضا",membersHint:"دانش آموزان (اعضایی) را که می توانند به این محتوای کلاس دسترسی داشته باشند انتخاب کنید و شرکت کنید",newClassroom:"کلاس درس جدید",provider:"ارائه دهنده را انتخاب کنید",providerHint:"ارائه دهندگان نرم افزارهایی هستند که می توانید جلسه تماس ویدیویی خود را در بالای آن میزبانی کنید",providers:{googleMeet:"Google Meet",zoom:"بزرگنمایی"},title:"کلاس درس"},close:"بستن",cloudProjects:{clientId:"شناسه مشتری",name:"نام",secret:"راز"},common:{isNUll:"تعیین نشده",cancel:"لغو",no:"خیر",noaccess:"شما به این بخش از برنامه دسترسی ندارید. برای مشاوره با سرپرست خود تماس بگیرید",parent:"رکورد مادر",parentHint:"اگر این رکورد دارای سر مجموعه است آن را انتخاب کنید",save:"ذخیره",yes:"بله"},commonProfile:{},confirm:"تایید",continue:"ادامه",controlsheets:{active:"فعال",archiveTitle:"کنترل شیت",editControlSheet:"ویرایش کنترل شیت",inactive:"غیرفعال",isRunning:"درحال اجرا",name:"نام",nameHint:"نام کنترل شیت برای دسترسی بهتر",newControlSheet:"کنترل شیت جدید"},course:{availableCourses:"دوره های موجود",courseDescription:"شرح دوره",courseDescriptionHint:"در مورد دوره به طور کامل توضیح دهید تا افراد بتوانند قبل از ثبت نام در مورد آن مطالعه کنند",courseExcerpt:"گزیده دوره",courseExcerptHint:"شرح دوره را در 1 یا 2 خط خلاصه کنید",courseId:"Course Id",courseTitle:"عنوان دوره",courseTitleHint:"عنوان دوره را وارد کنید، مانند الگوریتم در C++",editCourse:"ویرایش دوره",myCourses:"دوره های من",name:"Ali",newCourse:"دوره جدید",noCourseAvailable:"هیچ دوره ای در اینجا موجود نیست. برای دیدن دوره های اختصاصی ممکن است لازم باشد با حساب دیگری وارد شوید",noCourseEnrolled:"شما در حال حاضر در هیچ دوره ای ثبت نام نکرده اید. دوره زیر را پیدا کنید و ثبت نام کنید.",title:"عنوان"},createAccount:"ایجاد حساب کاربری",created:"زمان ایجاد شد",currentUser:{editProfile:"ویرایش نمایه",profile:"مشخصات",signin:"ورود",signout:"خروج از سیستم"},dashboards:"محیط کار",datanodes:{addReader:"اضافه کردن خواننده",addWriter:"اضافه کردن نویسنده",archiveTitle:"دیتا نود ها",dataType:"نوع دیتا",expanderFunction:"Expander function",expanderFunctionHint:"How to cast the content into value array",filePath:"File Path",filePathHint:"File address on the system",key:"Data key",keyHint:"Data key is the sub key of a data node",keyReadable:"Readable",keyReadableHint:"If this sub key is readable",keyWritable:"Writable",keyWritableHint:"If this sub key is writable",modbusRtuAddress:"Address",modbusRtuAddressHint:"Address",modbusRtuDataBits:"DataBits",modbusRtuDataBitsHint:"DataBits",modbusRtuParity:"Parity",modbusRtuParityHint:"Parity",modbusRtuSlaveId:"SlaveId",modbusRtuSlaveIdHint:"SlaveId",modbusRtuStopBits:"StopBits",modbusRtuStopBitsHint:"StopBits",modbusRtuTimeout:"Timeout",modbusRtuTimeoutHint:"Timeout",modbusTcpHost:"Host",modbusTcpHostHint:"Host",modbusTcpPort:"Port",modbusTcpPortHint:"Port",modbusTcpSlaveId:"Slave id",modbusTcpSlaveIdHint:"Slave id",modbusTcpTimeout:"Timeout",modbusTcpTimeoutHint:"Timeout",mode:"حالت",modeHint:"حالت دیتا نود",mqttBody:"بدنه پیام",mqttBodyHInt:"پیامی که ارسال خواهد شد",mqttTopic:"عنوان پیام",mqttTopicHint:"موضوع پیام که به MQTT ارسال خواهد شد",nodeReader:"خواننده نود",nodeReaderConfig:"تنظیم نود",nodeReaderConfigHint:"تنظیمات مربوط به نحوه خواندن اطلاعات",nodeReaderHint:"نوع خواننده اطلاعات از روی نود مشخص کنید",nodeWriter:"نویسنده نود",nodeWriterHint:"نوع نویسنده که اطلاعات را بر روی نود مینویسد مشخص کنید",serialPort:"سریال پورت",serialPortHint:"انتخاب سریال پورت های موجود و متصل به سیستم",type:"نوع دیتا",typeHint:"نوع دیتایی که این نوع نگهداری یا منتقل میکند.",udpHost:"Host",udpHostHint:"UDP Host Address",udpPort:"Port",udpPortHint:"UDP Port Number"},datepicker:{day:"روز",month:"ماه",year:"سال"},debugInfo:"نمایش اطلاعات دیباگ",deleteAction:"حذف",deleteConfirmMessage:"آیا از حذف کردن این آیتم ها مطمین هستید؟",deleteConfirmation:"مطمئنی؟",devices:{deviceModbusConfig:"تنظیمات مدباس دستگاه",deviceModbusConfigHint:"تنظیمات مربوط به نوع دستگاه مدباس مانند آدرس ها و رجیستر ها",devicetemplateArchiveTitle:"دستگاه ها",editDevice:"ویرایش دستگاه",ip:"IP",ipHint:"آدرس دستگاه به صورت آی پی ۴",model:"مدل",modelHint:"مدل یا سریال دستگاه",name:"نام دستگاه",nameHint:"نامی که برای دستگاه در سطح نرم افزار گذاشته میشود",newDevice:"دستگاه جدید",securityType:"نوع امنیت بی سیم",securityTypeHint:"نوع رمزگذاری هنگام اتصال به این شبکه وایرلس",type:"نوع دستگاه",typeHint:"نوع فیزیکی دستگاه ",typeId:"نوع",typeIdHint:"نوع دستگاه",wifiPassword:"رمز وای فای",wifiPasswordHint:"رمز هنگام اتصال به وای فای (خالی هم مورد قبول است)",wifiSSID:"شناسه وای فای",wifiSSIDHint:"نام شبکه وای فای یا همان SSID"},devicetype:{archiveTitle:"انواع دستگاه",editDeviceType:"ویرایش نوع دستگاه",name:"نام نوع دستگاه",nameHint:"نوع دستگاه را نام گذاری کنید",newDeviceType:"نوع دستگاه جدید"},diagram:"دیاگرام",drive:{attachFile:"اضافه کردن فایل پیوست",driveTitle:"درایو",menu:"فایل ها",name:"نام",size:"اندازه",title:"عنوان",type:"تایپ کنید",viewPath:"آدرس نمایش",virtualPath:"مسیر مجازی"},dropNFiles:"برای شروع آپلود، {n} فایل را رها کنید",edit:"ویرایش",errors:{UNKOWN_ERRROR:"خطای ناشناخته ای رخ داده است"},exam:{startInstruction:"امتحان جدیدی را با کلیک کردن روی دکمه شروع کنید، ما پیشرفت شما را پیگیری می کنیم تا بتوانید بعداً بازگردید.",startNew:"امتحان جدیدی را شروع کنید",title:"امتحان"},examProgress:{grammarProgress:"پیشرفت گرامر:",listeningProgress:"پیشرفت گوش دادن:",readingProgress:"پیشرفت خواندن:",speakingProgress:"پیشرفت صحبت کردن:",writingProgress:"پیشرفت نوشتن:"},examSession:{highlightMissing:"برجسته کردن از دست رفته",showAnswers:"نمایش پاسخ ها"},fb:{commonProfile:"پروفایل خودت را ویرایش کن",editMailProvider:"ارائه دهنده ایمیل",editMailSender:"فرستنده ایمیل را ویرایش کنید",editPublicJoinKey:"کلید پیوستن عمومی را ویرایش کنید",editRole:"نقش را ویرایش کنید",editWorkspaceType:"ویرایش نوع تیم",newMailProvider:"ارائه دهنده ایمیل جدید",newMailSender:"فرستنده ایمیل جدید",newPublicJoinKey:"کلید پیوستن عمومی جدید",newRole:"نقش جدید",newWorkspaceType:"تیم جدید",publicJoinKey:"کلید پیوستن عمومی"},fbMenu:{emailProvider:"ارائه دهنده ایمیل",emailProviders:"ارائه دهندگان ایمیل",emailSender:"فرستنده ایمیل",emailSenders:"ارسال کنندگان ایمیل",gsmProvider:"سرویس های تماس",keyboardShortcuts:"میانبرها",myInvitations:"دعوتنامه های من",publicJoinKey:"کلیدهای پیوستن عمومی",roles:"نقش ها",title:"سیستم",users:"کاربران",workspaceInvites:"دعوت نامه ها",workspaceTypes:"انواع تیم ها",workspaces:"فضاهای کاری"},featureNotAvailableOnMock:"این بخش در نسخه دمو وجود ندارد. دقت فرمایید که نسخه ای از نرم افزار که شما با آن کار میکنید صرفا برای نمایش بوده و سرور واقعی ارتباط نمی گیرد. بنابراین هیچ اطلاعاتی ذخیره نمیشوند.",financeMenu:{accountName:"نام کیف پول",accountNameHint:"نامی که کیف پول را از بقیه متمایز میکند",amount:"میزان",amountHint:"مبلغ پرداختی را وارد کنید",currency:"واحد پول",currencyHint:"ارزی که این حساب باید در آن باشد را انتخاب کنید",editPaymentRequest:"درخواست پرداخت را ویرایش کنید",editVirtualAccount:"ویرایش حساب مجازی",newPaymentRequest:"درخواست پرداخت جدید",newVirtualAccount:"اکانت مجازی جدید",paymentMethod:"روش پرداخت",paymentMethodHint:"مکانیزم روش پرداخت را انتخاب کنید",paymentRequest:"درخواست پرداخت",paymentRequests:"درخواست های پرداخت",paymentStatus:"وضعیت پرداخت",subject:"موضوع",summary:"مانده",title:"امور مالی",transaction:{amount:"مقدار",subject:"موضوع",summary:"مانده"},virtualAccount:"حساب کاربری مجازی",virtualAccountHint:"حساب مجازی را انتخاب کنید که پرداخت به آن انجام می شود",virtualAccounts:"حساب های مجازی"},firstTime:"اولین بار در برنامه، یا رمز عبور را گم کرده اید؟",forcedLayout:{forcedLayoutGeneralMessage:"دسترسی به این بخش نیازمند حساب کاربری و ورود به سیستم است"},forgotPassword:"رمز عبور را فراموش کرده اید",generalSettings:{accessibility:{description:"تنظیماتی که مربوط به توانایی های فیزیکی و یا شرایط ویژه جسمانی مرتبط هستند",title:"دسترسی بهتر"},debugSettings:{description:"اطلاعات اشکال زدایی برنامه را برای توسعه دهندگان یا میزهای راهنمایی ببینید",title:"تنظیمات اشکال زدایی"},grpcMethod:"بیش از grpc",hostAddress:"نشانی میزبان",httpMethod:"بیش از http",interfaceLang:{description:"در اینجا می توانید تنظیمات زبان رابط نرم افزار خود را تغییر دهید",title:"زبان و منطقه"},port:"بندر",remoteDescripton:"سرویس از راه دور، مکانی است که تمامی داده ها، منطق ها و سرویس ها در آن نصب می شوند. ممکن است ابری یا محلی باشد. فقط کاربران پیشرفته، تغییر آن به آدرس اشتباه ممکن است باعث عدم دسترسی شود.",remoteTitle:"سرویس از راه دور",richTextEditor:{description:"نحوه ویرایش محتوای متنی را در برنامه مدیریت کنید",title:"ویرایشگر متن"},theme:{description:"رنگ تم رابط را تغییر دهید",title:"قالب"}},geo:{geocities:{country:"کشور",countryHint:"کشوری که این شهر در آن قرار داده شده",editGeoCity:"ویرایش شهر",geoCityArchiveTitle:"شهرها",menu:"شهرها",name:"نام شهر",nameHint:"نام شهر",newGeoCity:"شهر جدید",province:"استان",provinceHint:"استانی که این شهر در آن قرار دارد."},geocountries:{editGeoCountry:"ویرایش کشور",geoCountryArchiveTitle:"کشورها",menu:"کشورها",name:"نام کشور",nameHint:"نام کشور",newGeoCountry:"کشور جدید"},geoprovinces:{country:"کشور",editGeoProvince:"ویرایش استان",geoProvinceArchiveTitle:"استان ها",menu:"استان ها",name:"نام استان",nameHint:"نام استان",newGeoProvince:"استان جدید"},lat:"افقی",lng:"عمودی",menu:"ابزار جغرافیایی"},geolocations:{archiveTitle:"مکان ها",children:"children",childrenHint:"children Hint",code:"کد",codeHint:"کد دسترسی",editGeoLocation:"ویرایش",flag:"پرچم",flagHint:"پرچم مکان",name:"نام",nameHint:"نام عمومی مکان",newGeoLocation:"مکان جدید",officialName:"نام رسمی",officialNameHint:"",status:"وضعیت",statusHint:"وضعیت مکان (معمولا کشور)",type:"نوع",typeHint:"نوع مکان"},gpiomodes:{archiveTitle:"حالت های پایه",description:"توضیحات",descriptionHint:"جزیات بیشتر در مورد عملکرد این پایه",editGpioMode:"ویرایش حالت پایه",index:"ایندکس عددی",indexHint:"مقدار عددی این پایه هنگام تنظیمات پایه در ابتدای نرم افزار",key:"کلید عددی",keyHint:"کلید عددی این پایه",newGpioMode:"حالت پایه جدید"},gpios:{analogFunction:"تابع آنالوگ",analogFunctionHint:"جزیات در مورد تابع آنالوگ",archiveTitle:"پایه ها",comments:"توضیحات",commentsHint:"توضیحات بیشتر یا قابلیت های این پایه",editGpio:"ویرایش پایه",index:"ایندکس این پایه",indexHint:"شماره عددی این پایه در قطعه که میتوان با آن مقدار پایه را کنترل کرد",modeId:"حالت پایه",modeIdHint:"انتخاب حالت استفاده پایه مانند ورودی یا خروجی",name:"عنوان پایه",nameHint:"اسم پایه مانند GPIO_1",newGpio:"پایه جدید",rtcGpio:"پایه RTC",rtcGpioHint:"اطلاعات پایه RTC در صورت موجود بودن"},gpiostates:{archiveTitle:"وضعیت پایه ها",editGpioState:"ویرایش وضعیت پایه",gpio:"پایه",gpioHint:"پایه را از لیست پایه های موجود این قطعه انتخاب کنید",gpioMode:"حالت",gpioModeHint:"حالتی که پایه باید تنظیم شود را انتخاب کنید",high:"بالا (روشن)",low:"پایین (خاموش)",newGpioState:"حالت جدید پایه",value:"مقدار",valueHint:"وضعیت فعلی پین"},gsmproviders:{apiKey:"کلید API",apiKeyHint:"کلید دسترسی به سرویس فراهم کننده پیامکی یا تماس",editGsmProvider:"ویرایش GSM",gsmProviderArchiveTitle:"سرویس های GSM",invokeBody:"بدنه درخواست",invokeBodyHint:"اطلاعاتی که به صورت متد پست به سرویس ارسال میشوند",invokeUrl:"آدرس API",invokeUrlHint:"آدرسی که باید برای ارسال پیامک از آن استفاده شود.",mainSenderNumber:"شماره ارسال کننده",mainSenderNumberHint:"شماره تلفنی که برای پیامک یا تماس استفاده میشوند",newGsmProvider:"سرویس GSM جدید",terminal:"ترمینال",type:"نوع سرویس",typeHint:"نوع سرویس فراهم کننده GSM (امکانات مختلف نصبت به نوع سرویس موجود است)",url:"وب سرویس"},hmi:{archiveTitle:"Hmis",editHmi:"Edit Hmi",name:"Hmi Name",nameHint:"Name of the hmi to recognize",newHmi:"New Hmi"},hmiComponents:{archiveTitle:"Hmi Components",editHmiComponent:"Edit HmiComponent",hmi:"hmi",hmiHint:"hmi Hint",hmiId:"hmiId",hmiIdHint:"hmiId Hint",icon:"icon",iconHint:"icon Hint",label:"label",labelHint:"label Hint",layoutMode:"layoutMode",layoutModeHint:"layoutMode Hint",newHmiComponent:"New HmiComponent",position:"position",positionHint:"position Hint",read:"read",readHint:"read Hint",readId:"readId",readIdHint:"readId Hint",states:"states",statesHint:"states Hint",type:"type",typeHint:"type Hint",write:"write",writeHint:"write Hint",writeId:"writeId",writeIdHint:"writeId Hint"},hmicomponents:{archiveTitle:"Hmi Components",editHmiComponent:"Edit HmiComponent",hmi:"hmi",hmiHint:"hmi Hint",hmiId:"hmiId",hmiIdHint:"hmiId Hint",icon:"icon",iconHint:"icon Hint",label:"label",labelHint:"label Hint",layoutMode:"layoutMode",layoutModeHint:"layoutMode Hint",newHmiComponent:"New HmiComponent",position:"position",positionHint:"position Hint",read:"read",readHint:"read Hint",readId:"readId",readIdHint:"readId Hint",states:"states",statesHint:"states Hint",type:"type",typeHint:"type Hint",write:"write",writeHint:"write Hint",writeId:"writeId",writeIdHint:"writeId Hint"},hmis:{archiveTitle:"Hmis",editHmi:"Edit Hmi",name:"Hmi Name",nameHint:"Name of the hmi to recognize",newHmi:"New Hmi"},home:{line1:"{username}، به dEIA خوش آمدید",line2:"ابزار ارزیابی اثرات زیست محیطی PixelPlux",title:"GADM"},intacodes:{description:"شرح فعالیت",descriptionHint:"شرح فعالیت در مورد این اینتاکد",editIntacode:"ویرایش اینتاکد",intacodeArchiveTitle:"اینتاکدها",margin:"حاشیه سود",marginHint:"میزان سودی که برای این نوع از اینتاکد در نظر گرفته شده است (درصد)",newIntacode:"اینتاکد جدید",note:"ملاحضات",noteHint:"نکات اضافی در مورد محاسبات این نوع اینتاکد",year:"سال",yearHint:"سالی که این اینتاکد برای آن معتبر است"},iot:{dataNodeDatum:"تاریخچه تغییرات",dataNodeName:"نام دیتانود",dataNodeNameHint:"نام ویژه این دیتانود که از بقیه دیتا ها متمایز شناخته شود",dataNodes:"دیتانود ها",editDataNode:"ویرایش دیتانود",ingestedAt:"ساخته شده",newDataNode:"دیتانود جدید",title:"هوشمند",valueFloat64:"مقدار اعشاری",valueInt64:"مقدار عددی",valueString:"مقدار متنی"},jalaliMonths:{0:"فروردین",1:"اردیبهشت",2:"خرداد",3:"تیر",4:"مرداد",5:"شهریور",6:"مهر",7:"آبان",8:"آذر",9:"دی",10:"بهمن",11:"اسفند"},jobsList:{completionDate:"تاریخ تکمیل",consumerId:"شناسه مصرف کننده",projectCode:"کد پروژه",projectName:"نام پروژه",result:"نتیجه",status:"وضعیت",submissionDate:"تاریخ ارسال"},katexPlugin:{body:"فرمول",cancel:"لغپ",insert:"افزودن",title:"پلاگین فرمول",toolbarName:"افزودن فرمول"},keyboardShortcut:{action:"عملکرد",defaultBinding:"کلید های پیش فرض",keyboardShortcut:"میانبرهای صفحه کلید",pressToDefine:"برای ثبت کلید ها را فشار دهید",userDefinedBinding:"کلید های تعیین شده کاربر"},lackOfPermission:"برای دسترسی به این بخش از نرم افزار به مجوزهای بیشتری نیاز دارید.",learningMenu:{answerSheets:"پاسخنامه",enrolledCourses:"دوره های ثبت نام شده",myClassRooms:"کلاس ها",myCourses:"دوره های آموزشی",myExams:"امتحانات",practiseBoard:"چرک نویس",title:"یادگیری"},licenses:{activationKeySeries:"سلسله",activationKeys:"کلیدهای فعال سازی",code:"Code",duration:"مدت زمان (روزها)",durationHint:"طول دوره فعال سازی برای مجوز یک آن فعال می شود",editActivationKey:"ویرایش کلید فعال سازی",editLicensableProduct:"ویرایش محصول دارای مجوز",editLicense:"ویرایش مجوز",editProductPlan:"ویرایش طرح محصول",endDate:"End Date",licensableProducts:"محصولات قابل مجوز",licenseName:"نام مجوز",licenseNameHint:"نام مجوز، می تواند ترکیبی از چیزهای مختلف باشد",licenses:"مجوزها",menuActivationKey:"کلیدهای فعال سازی",menuLicenses:"مجوزها",menuProductPlans:"طرح ها",menuProducts:"محصولات",newActivationKey:"کلید فعال سازی جدید",newLicensableProduct:"محصول جدید دارای مجوز",newLicense:"مجوز جدید",newProductPlan:"طرح محصول جدید",planName:"طرح",planNameHint:"کلید فعال سازی آن طرح خاص را انتخاب کنید",planProductName:"محصول پلان",planProductNameHint:"محصولی را که می خواهید این طرح برای آن باشد انتخاب کنید.",privateKey:"کلید خصوصی",privateKeyHint:"کلید خصوصی مجوز که برای صدور گواهی استفاده می شود",productName:"نام محصول",productNameHint:"نام محصول می تواند هر چیزی باشد که مشتریان آن را تشخیص دهند",productPlanName:"نام طرح",productPlanNameHint:"یک نام برای این طرح تعیین کنید، به عنوان مثال شروع کننده یا حرفه ای",productPlans:"طرح های محصول",publicKey:"کلید عمومی",publicKeyHint:"کلید عمومی مجوز که برای صدور گواهی استفاده می شود",series:"سلسله",seriesHint:"یک برچسب را به عنوان سری تنظیم کنید، به عنوان مثال first_1000_codes تا بتوانید تشخیص دهید که چه زمانی آنها را ایجاد کرده اید",startDate:"تاریخ شروع"},locale:{englishWorldwide:"انگلیسی (English)",persianIran:"فارسی - ایران (Persian WorldWide)",polishPoland:"لهستانی (Polski)"},loginButton:"وارد شدن",loginButtonOs:"ورود با سیستم عامل",mailProvider:{apiKey:"کلید ای پی ای",apiKeyHint:"کلید دسترسی به API در صورتی که مورد نیاز باشد.",fromEmailAddress:"از آدرس ایمیل",fromEmailAddressHint:"آدرسی که از آن ارسال می کنید، معمولاً باید در سرویس پستی ثبت شود",fromName:"از نام",fromNameHint:"نام فرستنده",nickName:"نام مستعار",nickNameHint:"نام مستعار فرستنده ایمیل، معمولاً فروشنده یا پشتیبانی مشتری",replyTo:"پاسخ دادن به",replyToHint:"آدرسی که گیرنده قرار است به آن پاسخ دهد. (noreply@domain) به عنوان مثال",senderAddress:"آدرس فرستنده",senderName:"نام فرستنده",type:"نوع سرویس",typeHint:"سرویس ایمیلی که توسط آن ایمیل ها ارسال میشوند"},menu:{answerSheets:"برگه های پاسخ",classRooms:"کلاس های درس",courses:"دوره های آموزشی",exams:"امتحانات",personal:"شخصی سازی کنید",questionBanks:"بانک سوالات",questions:"سوالات",quizzes:"آزمون ها",settings:"تنظیمات",title:"اقدامات",units:"واحدها"},meta:{titleAffix:"PixelPlux"},misc:{currencies:"ارز ها",currency:{editCurrency:"ویرایش ارز",name:"نام ارز",nameHint:"نام بازاری ارز که واحد آن نیز میباشد",newCurrency:"ارز جدید",symbol:"علامت یا سمبل",symbolHint:"کاراکتری که معمولا واحد پول را مشخص میکند. برخی واحد ها سمبل ندارند",symbolNative:"سمبل داخلی",symbolNativeHint:"سمبل یا علامتی از ارز که در کشور استفاده میشود"},title:"سرویس های مخلوط"},mockNotice:"شما در حال دیدن نسخه نمایشی هستید. این نسخه دارای بک اند نیست، اطلاعات شما ذخیره نمیشوند و هیچ گارانتی نسبت به کارکردن ماژول ها وجود ندارد.",myClassrooms:{availableClassrooms:"کلاس های درس موجود",noCoursesAvailable:"هیچ دوره ای در اینجا موجود نیست. ممکن است لازم باشد با حساب دیگری وارد شوید تا انحصاری را ببینید",title:"کلاس های درس من",youHaveNoClasses:"شما به هیچ کلاسی اضافه نمی شوید."},networkError:"شما به شبکه متصل نیستید، دریافت داده انجام نشد. اتصال شبکه خود را بررسی کنید",noOptions:"هیچ گزینه نیست، جستجو کنید",noPendingInvite:"شما هیچ دعوت نامه ای برای پیوستن به تیم های دیگری ندارید.",noSignupType:"ساختن اکانت در حال حاضر ممکن نیست، لطفا با مدیریت تماس بگیرید",node:{Oddeven:"زوج/فرد",average:"میانگین",circularInput:"گردی",color:"رنگ",containerLevelValue:"Container",cron:"کرون",delay:"تاخیری",digital:"دیجیتال",interpolate:"اینترپولیت",run:"اجرا",source:"مبدا",start:"شروع",stop:"توقف",switch:"دگمه",target:"مقصد",timer:"تایمر",value:"مقدار",valueGauge:"گیج"},not_found_404:"صفحه ای که به دنبال آن هستید وجود ندارد. ممکن است این قسمت در زبان فارسی موجود نباشد و یا حذف شده باشد.",notfound:"اطلاعات یا ماژول مورد نظر شما در این نسخه از سرور وجود ندارد.",pages:{catalog:"کاتالوگ",feedback:"بازخورد",jobs:"مشاغل من"},payments:{approve:"تایید",reject:"ریجکت"},priceTag:{add:"اضافه کردن قیمت",priceTag:"برچسب قیمتی",priceTagHint:"نوع قیمت گذاری با توجه منطقه یا نوع ارز"},question:{editQuestion:"سوال جدید",newQuestion:"سوال جدید"},questionBank:{editEntity:"بانک سوالات را ویرایش کنید",editQuestion:"ویرایش سوال",name:"نام بانک",newEntity:"بانک سوالات جدید",newQuestion:"سوال جدید",title:"عنوان بانک سوال",titleHint:'بانک سوالات را نام ببرید، مانند "504 سوال برای طراحی برق"'},questionSemester:{editQuestionSemester:"ویرایش دوره سوال",menu:"دوره های سوال",name:"نام دوره",nameHint:"نام دوره سوال معمولا با ماه آزمون یا سوال مرتبط است، مانند تیرماه یا نیم فصل اول",newQuestionSemester:"دوره جدید",questionSemesterArchiveTitle:"دوره های سوال"},questionlevels:{editQuestionLevel:"ویرایش سطح سوال",name:"سطح سوال",nameHint:"نامی که برای سطح سوال انتخاب میکنید، مانند (کشوری، استانی)",newQuestionLevel:"سطح سوال جدید",questionLevelArchiveTitle:"سطوح سوالات"},questions:{addAnswerHint:"برای اضافه کردن پاسخ کلیک کنید",addQuestion:"اضافه کردن سوال",answer:"پاسخ",answerHint:"یکی از پاسخ های سوال و یا تنها پاسخ",durationInSeconds:"زمان پاسخ (ثانیه)",durationInSecondsHint:"مدت زمانی که دانش آموز باید به این سوال پاسخ بدهد.",province:"استان",provinceHint:"استان یا استان هایی که این سوال به آن مربوط است",question:"سوال",questionBank:"بانک سوالات",questionBankHint:"بانک سوالاتی که این سوال به آن تعلق دارد",questionDifficulityLevel:"سطح دشواری",questionDifficulityLevelHint:"درجه سختی حل این سوال برای دانش آموز",questionLevel:"تیپ سوال",questionLevelHint:"سطح سوال به صورت کشوری یا استانی - منطقه ای",questionSchoolType:"نوع مدرسه",questionSchoolTypeHint:"نوع مدرسه ای که این سوالات در آن نشان داده شده اند.",questionSemester:"دوره سوال",questionSemesterHint:"مانند تیر یا دو نوبت کنکور",questionTitle:"صورت سوال",questionTitleHint:"صورت سوال همان چیزی است که باید به آن جواب داده شود.",questions:"سوالات",studyYear:"سال تحصیلی",studyYearHint:"سال تحصیلی که این سوال وارد شده است"},quiz:{editQuiz:"ویرایش مسابقه",name:"نام",newQuiz:"آزمون جدید"},reactiveSearch:{noResults:"جستجو هیچ نتیجه ای نداشت",placeholder:"جستجو (کلید S)..."},requestReset:"درخواست تنظیم مجدد",resume:{clientLocation:"مکان مشتری:",companyLocation:"مکان شرکت فعالیت:",jobCountry:"کشوری که کار در آن انجام شده:",keySkills:"توانایی های کلیدی",level:"سطح",level_1:"آشنایی",level_2:"متوسط",level_3:"کاربر روزمره",level_4:"حرفه ای",level_5:"معمار",noScreenMessage1:"به نسخه چاپی رزومه من خوش آمدید. برای ایجاد تغیرات و اطلاعات بیشتر حتما ادامه رزومه را در گیت هاب به آدرس",noScreenMessage2:"مشاهده کنید. در نسخه گیت هاب میتوانید اصل پروژه ها، ویدیو ها و حتی امکان دسته بندی یا تغییر در رزومه را داشته باشید",preferredPositions:"مشاغل و پروژ های مورد علاقه",products:"محصولات",projectDescription:"توضیحات پروژه",projects:"پروژه ها",services:"توانایی های مستقل",showDescription:"نمایش توضیحات پروژه",showTechnicalInfo:"نمایش اطلاعات فنی پروژه",skillDuration:"مدت مهارت",skillName:"عنوان مهارت",technicalDescription:"اطلاعات فنی",usage:"میزان استفاده",usage_1:"به صورت محدود",usage_2:"گاها",usage_3:"استفاده مرتب",usage_4:"استفاده پیشرفته",usage_5:"استفاده فوق حرفه ای",videos:"ویدیو ها",years:"سال"},role:{name:"نام",permissions:"دسترسی ها"},saveChanges:"ذخیره",scenariolanguages:{archiveTitle:"زبان های سناریو",editScenarioLanguage:"ویرایش زبان سناریو",name:"نام زبان",nameHint:"نام زبان یا ابزار طراحی سناریو",newScenarioLanguage:"ویرایش زبان سناریو"},scenariooperationtypes:{archiveTitle:"انواع عملیات",editScenarioOperationType:"ویرایش نوع عملیات",name:"نام عملیات",nameHint:"عنوانی که این عملیات با آن شناخته میشود",newScenarioOperationType:"عملیات جدید"},scenarios:{archiveTitle:"سناریو ها",editScenario:"ویرایش سناریو",lammerSequences:"دستورات لمر",lammerSequencesHint:"طراحی دستورالعمل مربوط به این سناریو در زبان لمر",name:"نام سناریو",nameHint:"نامی که این سناریو در سطح نرم افزار شناخته میشود",newScenario:"سناریو جدید",script:"کد سناریو",scriptHint:"کد سناریو که هنگام اجرای سناریو باید اجرا شود"},schooltypes:{editSchoolType:"ویرایش نوع مدرسه",menu:"انواع مدرسه",name:"نام مدرسه",nameHint:"نام مدرسه که عموما افراد آن را در سطح کشور میشناسند",newSchoolType:"نوع مدرسه جدید",schoolTypeTitle:"انواع مدارس"},searchplaceholder:"جستجو...",selectPlaceholder:"- انتخاب کنید -",settings:{apply:"ذخیره",inaccessibleRemote:"سرور خارج از دسترس است",interfaceLanguage:"زبان رابط",interfaceLanguageHint:"زبانی که دوست دارید رابط کاربری به شما نشان داده شود",preferredHand:"دست اصلی",preferredHandHint:"از کدام دست بیشتر برای استفاده از موبایل بهره میبرید؟",remoteAddress:"آدرس سرور",serverConnected:"سرور با موفقیت و صحت کار میکند و متصل هستیم",textEditorModule:"ماژول ویرایشگر متن",textEditorModuleHint:"شما می‌توانید بین ویرایشگرهای متنی مختلفی که ما ارائه می‌دهیم، یکی را انتخاب کنید و از ویرایشگرهایی که راحت‌تر هستید استفاده کنید",theme:"قالب",themeHint:"قالب و یا رنگ تم را انتخاب کنید"},signinInstead:"ورود",signup:{continueAs:"ادامه به عنوان {currentUser}",continueAsHint:`با وارد شدن به عنوان {currentUser}، تمام اطلاعات شما، به صورت آفلاین در رایانه شما، تحت مجوزهای این کاربر ذخیره می‌شود.`,defaultDescription:"برای ایجاد حساب کاربری لطفا فیلدهای زیر را پر کنید",mobileAuthentication:"In order to login with mobile",signupToWorkspace:"برای ثبت نام به عنوان {roleName}، فیلدهای زیر را پر کنید"},signupButton:"ثبت نام",simpleTextEditor:"باکس ساده سیستم برای متن",studentExams:{history:"سابقه امتحان",noExams:"هیچ امتحانی برای شرکت کردن وجود ندارد",noHistory:"شما هرگز در هیچ نوع امتحانی شرکت نکرده اید، وقتی امتحانی را انتخاب و مطالعه می کنید، در اینجا لیست می شود.",title:"امتحانات"},studentRooms:{title:"کلاس های درس من"},studyYears:{editStudyYear:"ویرایش سال تحصیلی",name:"نام",nameHint:"سال تحصیلی مدت زمان یه دوره مانند سال ۹۴-۹۵ است",newStudyYear:"سال تحصیلی جدید",studyYearArchiveTitle:"سالهای تحصیلی"},table:{created:"ساخته شده",filter:{contains:"شامل",endsWith:"پایان یابد",equal:"برابر",filterPlaceholder:"فیلتر...",greaterThan:"بزرگتر از",greaterThanOrEqual:"بزرگتر یا مساوری",lessThan:"کمتر از",lessThanOrEqual:"کمتر یا مساوی",notContains:"شامل نباشد",notEqual:"برابر نباشد",startsWith:"شروع با"},info:"داده",next:"بعدی",noRecords:"هیچ سابقه ای برای نمایش وجود ندارد. برای ایجاد یکی، دکمه مثبت را فشار دهید.",previous:"قبلی",uniqueId:"شناسه",value:"مقدار"},tempControlWidget:{decrese:"کاهش",increase:"افزایش"},tinymceeditor:"ویرایش گر TinyMCE",triggers:{archiveTitle:"شرط ها",editTrigger:"ویرایش شرط",name:"نام شرط",nameHint:"نامی که این شرط در سطح نرم افزار با آن شناخته میشود.",newTrigger:"شرط جدید",triggerType:"نوغ شرط",triggerTypeCronjob:"شرط زمانی (Cronjob)",triggerTypeCronjobHint:"تعریف شرط بر اساس رخداد های زمانی",triggerTypeGpioValue:"شرط تغییر مقدار",triggerTypeGpioValueHint:"شرط بر اساس تغییر مقدار خروجی یا ورودی",triggerTypeHint:"نوغ شرط",triggerTypeId:"نوع شرط",triggerTypeIdHint:"نوع شرط تعیین کننده نحوه استفاده از این شرط است"},triggertypes:{archiveTitle:"نوع شرط",editTriggerType:"ویرایش نوع شرط",name:"نام نوع شرط",nameHint:"نامی که این نوع شرط با آن شناخته میشود",newTriggerType:"ویرایش نوع شرط"},tuyaDevices:{cloudProjectId:"شناسه پروژه ابری",name:"نام دستگاه Tuya"},unit:{editUnit:"ویرایش واحد",newUnit:"واحد جدید",title:"عنوان"},units:{content:"محتویات",editUnit:"واحد ویرایش",newUnit:"واحد جدید",parentId:"واحد مادر",subUnits:"زیر واحد ها"},unnamedRole:"نقش نامعلوم",unnamedWorkspace:"فضای کاری بی نام",user:{editUser:"ویرایش کاربر",newUser:"کاربر جدید"},users:{firstName:"نام کوچک",lastName:"نام خانوادگی"},webrtcconfig:"پیکربندی WebRTC",widgetPicker:{instructions:"کلید های فلش را از روی کیبرد برای جا به جایی فشار دهید. ",instructionsFlat:`Press Arrows from keyboard to change slide
Press Ctrl + Arrows from keyboard to switch to - flat mode`,widgets:"ویدجت ها"},widgets:{noItems:"هیچ ویدجتی در این صفحه وجود ندارد."},wokspaces:{body:"بدن",cascadeNotificationConfig:"پیکربندی اعلان آبشار در فضاهای کاری فرعی",cascadeNotificationConfigHint:"با بررسی این مورد، تمام فضاهای کاری بعدی از این ارائه دهنده ایمیل برای ارسال ایمیل استفاده خواهند کرد. برای محصولاتی که به‌عنوان سرویس آنلاین اجرا می‌شوند، معمولاً می‌خواهید که فضای کاری والد سرور ایمیل را پیکربندی کند. شما ممکن است علامت این را در محصولات بزرگ‌تر که به صورت جهانی اجرا می‌شوند، بردارید و هر فضای کاری باید فضاهای فرعی و پیکربندی ایمیل خود را داشته باشد.",config:"تنظیم تیم",configurateWorkspaceNotification:"سرویس های اطلاع رسانی را پیکربندی کنید",confirmEmailSender:"ثبت نام کاربر ایمیل حساب را تایید کنید",createNewWorkspace:"فضای کاری جدید",customizedTemplate:"ویرایش قالب",disablePublicSignup:"غیر فعال کردن ثبت نام ها",disablePublicSignupHint:"با انتخاب این گزینه هیچ کس نمی تواند به این تیم یا زیر مجموعه های این تیم با فرم ثبت نام آنلاین به صورت خودکار عضو شود.",editWorkspae:"ویرایش فضای کاری",emailSendingConfig:"تنظیمات ارسال ایمیل",emailSendingConfigHint:"نحوه ارسال ایمیل ها و قالب های آنها و ارسال کننده ها را کنترل کنید.",emailSendingConfiguration:"پیکربندی ارسال ایمیل",emailSendingConfigurationHint:"نحوه ارسال ایمیل های سیستمی را کنترل کنید، پیام را سفارشی کنید و غیره.",forceEmailConfigToSubWorkspaces:"استفاده از این تنظیمات برای تیم های زیر مجموعه اجباری باشد",forceEmailConfigToSubWorkspacesHint:"با انتخاب این گزینه، همه تیم های زیر مجموعه باید از همین قالب ها برای ارسال ایمیل استفاده کنند. اطلاعات مختص به این تیم را در این قالب ها قرار ندهید.",forceSubWorkspaceUseConfig:"فضاهای کاری فرعی را مجبور کنید از این پیکربندی ارائه دهنده استفاده کنند",forgetPasswordSender:"دستورالعمل های رمز عبور را فراموش کنید",generalMailProvider:"سرویس اصلی ارسال ایمیل",invite:{createInvitation:"ایجاد دعوت نامه",editInvitation:"ویرایش دعوت نامه",email:"آدرس ایمیل",emailHint:"آدرس ایمیل دعوت کننده، آنها پیوند را با استفاده از این ایمیل دریافت خواهند کرد",firstName:"نام کوچک",firstNameHint:"نام دعوت شده را بنویسید",forcePassport:"کاربر را مجبور کنید فقط با ایمیل یا شماره تلفن تعریف شده ثبت نام کند یا بپیوندد",lastName:"نام خانوادگی",lastNameHint:"نام خانوادگی دعوت شده را بنویسید",name:"نام",phoneNumber:"شماره تلفن",phoneNumberHint:"شماره تلفن دعوت شوندگان، اگر شماره آنها را نیز ارائه دهید، از طریق پیامک دعوتنامه دریافت خواهند کرد",role:"نقش",roleHint:"نقش(هایی) را که می خواهید به کاربر هنگام پیوستن به فضای کاری بدهید، انتخاب کنید. این را می توان بعدا نیز تغییر داد.",roleName:"نام نقش"},inviteToWorkspace:"دعوت به فضای کاری",joinKeyWorkspace:"فضای کار",joinKeyWorkspaceHint:"فضای کاری که برای عموم در دسترس خواهد بود",mailServerConfiguration:"پیکربندی سرور ایمیل",name:"نام",notification:{dialogTitle:"قالب نامه را ویرایش کنید"},publicSignup:"ثبت نام آنلاین و عمومی",publicSignupHint:"این نرم افزار به شما اجازه کنترل نحوه ارسال ایمیل و پیامک، و همچنین نحوه عضو گیری آنلاین را میدهد. در این قسمت میتوانید عضو شدن افراد و ساختن تیم های جدید را کنترل کنید",resetToDefault:"تنظیم مجدد به حالت پیش فرض",role:"نقش",roleHint:"نقش",sender:"فرستنده",sidetitle:"فضاهای کاری",slug:"اسلاگ",title:"عنوان",type:"تایپ کنید",workspaceName:"نام فضای کاری",workspaceNameHint:"نام فضای کاری را وارد کنید",workspaceTypeSlug:"آدرس اسلاگ",workspaceTypeSlugHint:"آدرسی که به صورت عمومی در دسترس خواهد بود و وقتی کسی از این طریق ثبت نام کند رول مشخصی دریافت میکند.",workspaceTypeTitle:"عنوان",workspaceTypeTitleHint:"عنوان ورک اسپیس"}},L8={en:TI,fa:zV};function vn(){const{locale:t}=Ci();return!t||!L8[t]?TI:L8[t]}function U8(t){let e=(t||"").replaceAll(/fbtusid_____(.*)_____/g,Si.REMOTE_SERVICE+"files/$1");return e=(e||"").replaceAll(/directasset_____(.*)_____/g,Si.REMOTE_SERVICE+"$1"),e}function VV(){return{compiler:"unknown"}}function GV(){return{directPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?U8(n.uniqueId):`${Si.REMOTE_SERVICE}files-inline/${n==null?void 0:n.diskPath}`,downloadPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?U8(n.uniqueId):`${Si.REMOTE_SERVICE}files/${n==null?void 0:n.diskPath}`}}const $S=({children:t,isActive:e,skip:n,activeClassName:r,inActiveClassName:i,...o})=>{var y;const u=Ur(),{locale:l}=Ci(),d=o.locale||l||"en",{compiler:h}=VV();let g=(o==null?void 0:o.href)||(u==null?void 0:u.asPath)||"";return typeof g=="string"&&(g!=null&&g.indexOf)&&g.indexOf("http")===0&&(n=!0),typeof g=="string"&&d&&!n&&!g.startsWith(".")&&(g=g?`/${l}`+g:(y=u.pathname)==null?void 0:y.replace("[locale]",d)),e&&(o.className=`${o.className||""} ${r||"active"}`),!e&&i&&(o.className=`${o.className||""} ${i}`),N.jsx(qV,{...o,href:g,compiler:h,children:t})};function WV(){const{session:t,checked:e}=T.useContext(yn),[n,r]=T.useState(!1),i=e&&!t,[o,u]=T.useState(!1);return T.useEffect(()=>{e&&t&&(u(!0),setTimeout(()=>{r(!0)},500))},[e,t]),{session:t,checked:e,needsAuthentication:i,loadComplete:n,setLoadComplete:r,isFading:o}}const ES=({label:t,getInputRef:e,displayValue:n,Icon:r,children:i,errorMessage:o,validMessage:u,value:l,hint:d,onClick:h,onChange:g,className:y,focused:w=!1,hasAnimation:v})=>N.jsxs("div",{style:{position:"relative"},className:Lo("mb-3",y),children:[t&&N.jsx("label",{className:"form-label",children:t}),i,N.jsx("div",{className:"form-text",children:d}),N.jsx("div",{className:"invalid-feedback",children:o}),N.jsx("div",{className:"valid-feedback",children:u})]}),Ff=t=>{const{placeholder:e,label:n,getInputRef:r,secureTextEntry:i,Icon:o,isSubmitting:u,errorMessage:l,onChange:d,value:h,disabled:g,type:y,focused:w=!1,className:v,mutation:C,...E}=t,$=C==null?void 0:C.isLoading;return N.jsx("button",{onClick:t.onClick,type:"submit",disabled:g||$,className:Lo("btn mb-3",`btn-${y||"primary"}`,v),...t,children:t.children||t.label})};function KV(t,e,n={}){var r,i,o,u,l,d,h,g,y,w;if(e.isError){if(((r=e.error)==null?void 0:r.status)===404)return t.notfound+"("+n.remote+")";if(e.error.message==="Failed to fetch")return t.networkError+"("+n.remote+")";if((o=(i=e.error)==null?void 0:i.error)!=null&&o.messageTranslated)return(l=(u=e.error)==null?void 0:u.error)==null?void 0:l.messageTranslated;if((h=(d=e.error)==null?void 0:d.error)!=null&&h.message)return(y=(g=e.error)==null?void 0:g.error)==null?void 0:y.message;let v=(w=e.error)==null?void 0:w.toString();return(v+"").includes("object Object")&&(v="There is an unknown error while getting information, please contact your software provider if issue persists."),v}return null}function Go({query:t,children:e}){var h,g,y,w;const n=vn(),{options:r,setOverrideRemoteUrl:i,overrideRemoteUrl:o}=T.useContext(yn);let u=!1,l="80";try{if(r!=null&&r.prefix){const v=new URL(r==null?void 0:r.prefix);l=v.port||(v.protocol==="https:"?"443":"80"),u=(location.host.includes("192.168")||location.host.includes("127.0"))&&((g=(h=t.error)==null?void 0:h.message)==null?void 0:g.includes("Failed to fetch"))}}catch{}const d=()=>{i("http://"+location.hostname+":"+l+"/")};return t?N.jsxs(N.Fragment,{children:[t.isError&&N.jsxs("div",{className:"basic-error-box fadein",children:[KV(n,t,{remote:r.prefix})||"",u&&N.jsx("button",{className:"btn btn-sm btn-secondary",onClick:d,children:"Auto-reroute"}),o&&N.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>i(void 0),children:"Reset"}),N.jsx("ul",{children:(((w=(y=t.error)==null?void 0:y.error)==null?void 0:w.errors)||[]).map(v=>N.jsxs("li",{children:[v.messageTranslated||v.message," (",v.location,")"]},v.location))}),t.refetch&&N.jsx(Ff,{onClick:t.refetch,children:"Retry"})]}),!t.isError||t.isPreviousData?e:null]}):null}const YV=t=>{const{children:e,forceActive:n,...r}=t,{locale:i,asPath:o}=Ci(),u=T.Children.only(e),l=o===`/${i}`+r.href||o+"/"==`/${i}`+r.href||n;return t.disabled?N.jsx("span",{className:"disabled",children:u}):N.jsx($S,{...r,isActive:l,children:u})};function Wn(t){const{locale:e}=Ci();return!e||e==="en"?t:t["$"+e]?t["$"+e]:t}const QV={setupTotpDescription:'In order to complete account registeration, you need to scan the following code using "Microsoft authenticator" or "Google Authenticator". After that, you need to enter the 6 digit code from the app here.',welcomeBackDescription:"Select any option to continue to access your account.",google:"Google",selectWorkspace:"You have multiple workspaces associated with your account. Select one to continue.",completeYourAccount:"Complete your account",completeYourAccountDescription:"Complete the information below to complete your signup",registerationNotPossibleLine1:"In this project there are no workspace types that can be used publicly to create account.",enterPassword:"Enter Password",welcomeBack:"Welcome back",emailMethod:"Email",phoneMethod:"Phone number",noAuthenticationMethod:"Authentication Currently Unavailable",firstName:"First name",registerationNotPossible:"Registeration not possible.",setupDualFactor:"Setup Dual Factor",cancelStep:"Cancel and try another way.",enterOtp:"Enter OTP",skipTotpInfo:"You can setup this any time later, by visiting your account security section.",continueWithEmailDescription:"Enter your email address to continue.",enterOtpDescription:"We have sent you an one time password, please enter to continue.",continueWithEmail:"Continue with Email",continueWithPhone:"Continue with Phone",registerationNotPossibleLine2:"Contact the service administrator to create your account for you.",useOneTimePassword:"Use one time password instead",changePassword:{pass1Label:"Password",pass2Label:"Repeat password",submit:"Change Password",title:"Change password",description:"In order to change your password, enter new password twice same in the fields"},continueWithPhoneDescription:"Enter your phone number to continue.",lastName:"Last name",password:"Password",continue:"Continue",anotherAccount:"Choose another account",noAuthenticationMethodDescription:"Sign-in and registration are not available in your region at this time. If you believe this is an error or need access, please contact the administrator.",home:{title:"Account & Profile",description:"Manage your account, emails, passwords and more",passports:"Passports",passportsTitle:"Passports",passportsDescription:"View emails, phone numbers associated with your account."},enterTotp:"Enter Totp Code",enterTotpDescription:"Open your authenticator app and enter the 6 digits.",setupTotp:"Setup Dual Factor",skipTotpButton:"Skip for now",userPassports:{title:"Passports",description:"You can see a list of passports that you can use to authenticate into the system here.",add:"Add new passport",remove:"Remove passport"},selectWorkspaceTitle:"Select workspace",chooseAnotherMethod:"Choose another method",enterPasswordDescription:"Enter your password to continue authorizing your account."},JV={registerationNotPossibleLine2:"Skontaktuj się z administratorem usługi, aby utworzył konto dla Ciebie.",chooseAnotherMethod:"Wybierz inną metodę",continue:"Kontynuuj",continueWithPhone:"Kontynuuj za pomocą numeru telefonu",enterPassword:"Wprowadź hasło",noAuthenticationMethod:"Uwierzytelnianie obecnie niedostępne",completeYourAccountDescription:"Uzupełnij poniższe informacje, aby zakończyć rejestrację",registerationNotPossible:"Rejestracja niemożliwa.",selectWorkspace:"Masz wiele przestrzeni roboczych powiązanych z Twoim kontem. Wybierz jedną, aby kontynuować.",welcomeBack:"Witamy ponownie",enterOtp:"Wprowadź jednorazowy kod",enterPasswordDescription:"Wprowadź swoje hasło, aby kontynuować autoryzację konta.",userPassports:{add:"Dodaj nowy paszport",description:"Tutaj możesz zobaczyć listę paszportów, które możesz wykorzystać do uwierzytelniania w systemie.",remove:"Usuń paszport",title:"Paszporty"},registerationNotPossibleLine1:"W tym projekcie nie ma dostępnych typów przestrzeni roboczych do publicznego tworzenia konta.",cancelStep:"Anuluj i spróbuj innej metody.",continueWithEmail:"Kontynuuj za pomocą e-maila",continueWithPhoneDescription:"Wprowadź swój numer telefonu, aby kontynuować.",emailMethod:"E-mail",enterTotp:"Wprowadź kod TOTP",noAuthenticationMethodDescription:"Logowanie i rejestracja są obecnie niedostępne w Twoim regionie. Jeśli uważasz, że to błąd lub potrzebujesz dostępu, skontaktuj się z administratorem.",password:"Hasło",anotherAccount:"Wybierz inne konto",enterTotpDescription:"Otwórz aplikację uwierzytelniającą i wprowadź 6-cyfrowy kod.",firstName:"Imię",phoneMethod:"Numer telefonu",setupDualFactor:"Skonfiguruj uwierzytelnianie dwuskładnikowe",setupTotp:"Skonfiguruj uwierzytelnianie dwuskładnikowe",skipTotpInfo:"Możesz skonfigurować to później, odwiedzając sekcję bezpieczeństwa konta.",welcomeBackDescription:"Wybierz dowolną opcję, aby kontynuować dostęp do swojego konta.",changePassword:{pass1Label:"Hasło",pass2Label:"Powtórz hasło",submit:"Zmień hasło",title:"Zmień hasło",description:"Aby zmienić hasło, wprowadź nowe hasło dwukrotnie w polach poniżej"},lastName:"Nazwisko",useOneTimePassword:"Użyj jednorazowego hasła zamiast tego",completeYourAccount:"Uzupełnij swoje konto",continueWithEmailDescription:"Wprowadź swój adres e-mail, aby kontynuować.",enterOtpDescription:"Wysłaliśmy jednorazowy kod, wprowadź go, aby kontynuować.",google:"Google",home:{description:"Zarządzaj swoim kontem, e-mailami, hasłami i innymi",passports:"Paszporty",passportsDescription:"Zobacz e-maile i numery telefonów powiązane z Twoim kontem.",passportsTitle:"Paszporty",title:"Konto i profil"},selectWorkspaceTitle:"Wybierz przestrzeń roboczą",setupTotpDescription:"Aby zakończyć rejestrację konta, zeskanuj poniższy kod za pomocą aplikacji „Microsoft Authenticator” lub „Google Authenticator”. Następnie wprowadź tutaj 6-cyfrowy kod z aplikacji.",skipTotpButton:"Pomiń na razie"},$r={...QV,$pl:JV};var n1;function Wa(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var XV=0;function I1(t){return"__private_"+XV+++"_"+t}const ZV=t=>{const e=zo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),$l.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Bo({queryKey:[$l.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class $l{}n1=$l;$l.URL="/user/passports";$l.NewUrl=t=>Vo(n1.URL,void 0,t);$l.Method="get";$l.Fetch$=async(t,e,n,r)=>qo(r??n1.NewUrl(t),{method:n1.Method,...n||{}},e);$l.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new vp(u)})=>{e=e||(l=>new vp(l));const u=await n1.Fetch$(n,r,t,o);return Ho(u,l=>{const d=new no;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};$l.Definition={name:"UserPassports",url:"/user/passports",method:"get",description:"Returns list of passports belongs to an specific user.",out:{envelope:"GResponse",fields:[{name:"value",description:"The passport value, such as email address or phone number",type:"string"},{name:"uniqueId",description:"Unique identifier of the passport to operate some action on top of it",type:"string"},{name:"type",description:"The type of the passport, such as email, phone number",type:"string"},{name:"totpConfirmed",description:"Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login.",type:"bool"}]}};var gh=I1("value"),yh=I1("uniqueId"),vh=I1("type"),bh=I1("totpConfirmed"),TC=I1("isJsonAppliable");class vp{get value(){return Wa(this,gh)[gh]}set value(e){Wa(this,gh)[gh]=String(e)}setValue(e){return this.value=e,this}get uniqueId(){return Wa(this,yh)[yh]}set uniqueId(e){Wa(this,yh)[yh]=String(e)}setUniqueId(e){return this.uniqueId=e,this}get type(){return Wa(this,vh)[vh]}set type(e){Wa(this,vh)[vh]=String(e)}setType(e){return this.type=e,this}get totpConfirmed(){return Wa(this,bh)[bh]}set totpConfirmed(e){Wa(this,bh)[bh]=!!e}setTotpConfirmed(e){return this.totpConfirmed=e,this}constructor(e=void 0){if(Object.defineProperty(this,TC,{value:eG}),Object.defineProperty(this,gh,{writable:!0,value:""}),Object.defineProperty(this,yh,{writable:!0,value:""}),Object.defineProperty(this,vh,{writable:!0,value:""}),Object.defineProperty(this,bh,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Wa(this,TC)[TC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.type!==void 0&&(this.type=n.type),n.totpConfirmed!==void 0&&(this.totpConfirmed=n.totpConfirmed)}toJSON(){return{value:Wa(this,gh)[gh],uniqueId:Wa(this,yh)[yh],type:Wa(this,vh)[vh],totpConfirmed:Wa(this,bh)[bh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",uniqueId:"uniqueId",type:"type",totpConfirmed:"totpConfirmed"}}static from(e){return new vp(e)}static with(e){return new vp(e)}copyWith(e){return new vp({...this.toJSON(),...e})}clone(){return new vp(this.toJSON())}}function eG(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const tG=()=>{const t=Wn($r),{goBack:e}=Ur(),n=ZV({}),{signout:r}=T.useContext(yn);return{goBack:e,signout:r,query:n,s:t}},nG=({})=>{var i,o;const{query:t,s:e,signout:n}=tG(),r=((o=(i=t==null?void 0:t.data)==null?void 0:i.data)==null?void 0:o.items)||[];return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:e.userPassports.title}),N.jsx("p",{children:e.userPassports.description}),N.jsx(Go,{query:t}),N.jsx(rG,{passports:r}),N.jsx("button",{className:"btn btn-danger mt-3 w-100",onClick:n,children:"Signout"})]})},rG=({passports:t})=>{const e=Wn($r);return N.jsx("div",{className:"d-flex ",children:t.map(n=>N.jsxs("div",{className:"card p-3 w-100",children:[N.jsx("h3",{className:"card-title",children:n.type.toUpperCase()}),N.jsx("p",{className:"card-text",children:n.value}),N.jsxs("p",{className:"text-muted",children:["TOTP: ",n.totpConfirmed?"Yes":"No"]}),N.jsx(YV,{href:`../change-password/${n.uniqueId}`,children:N.jsx("button",{className:"btn btn-primary",children:e.changePassword.submit})})]},n.uniqueId))})},iG={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-468]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};var _C={exports:{}},AC,j8;function aG(){if(j8)return AC;j8=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return AC=t,AC}var RC,B8;function oG(){if(B8)return RC;B8=1;var t=aG();function e(){}function n(){}return n.resetWarningCache=e,RC=function(){function r(u,l,d,h,g,y){if(y!==t){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},RC}var q8;function sG(){return q8||(q8=1,_C.exports=oG()()),_C.exports}var Ue=sG();const Te=If(Ue);function uG(t,e,n){switch(n){case"Backspace":e>0&&(t=t.slice(0,e-1)+t.slice(e),e--);break;case"Delete":t=t.slice(0,e)+t.slice(e+1);break}return{value:t,caret:e}}function lG(t,e,n){for(var r={},i="",o=0,u=0;uu&&(o=i.length))),u++}e===void 0&&(o=i.length);var d={value:i,caret:o};return d}function cG(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=fG(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fG(t,e){if(t){if(typeof t=="string")return H8(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H8(t,e)}}function H8(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&arguments[2]!==void 0?arguments[2]:"x",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",i=t.length,o=VE("(",t),u=VE(")",t),l=o-u;l>0&&i=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pG(t,e){if(t){if(typeof t=="string")return z8(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z8(t,e)}}function z8(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!t)return function(i){return{text:i}};var r=VE(e,t);return function(i){if(!i)return{text:"",template:t};for(var o=0,u="",l=hG(t.split("")),d;!(d=l()).done;){var h=d.value;if(h!==e){u+=h;continue}if(u+=i[o],o++,o===i.length&&i.length=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function AG(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function RG(t){var e=t.ref,n=t.parse,r=t.format,i=t.value,o=t.defaultValue,u=t.controlled,l=u===void 0?!0:u,d=t.onChange,h=t.onKeyDown,g=_G(t,OG),y=T.useRef(),w=T.useCallback(function($){y.current=$,e&&(typeof e=="function"?e($):e.current=$)},[e]),v=T.useCallback(function($){return $G($,y.current,n,r,d)},[y,n,r,d]),C=T.useCallback(function($){if(h&&h($),!$.defaultPrevented)return EG($,y.current,n,r,d)},[y,n,r,d,h]),E=wg(wg({},g),{},{ref:w,onChange:v,onKeyDown:C});return l?wg(wg({},E),{},{value:r(W8(i)?"":i).text}):wg(wg({},E),{},{defaultValue:r(W8(o)?"":o).text})}function W8(t){return t==null}var PG=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function K8(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function IG(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function kG(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function Lw(t,e){var n=t.inputComponent,r=n===void 0?"input":n,i=t.parse,o=t.format,u=t.value,l=t.defaultValue,d=t.onChange,h=t.controlled,g=t.onKeyDown,y=t.type,w=y===void 0?"text":y,v=MG(t,PG),C=RG(IG({ref:e,parse:i,format:o,value:u,defaultValue:l,onChange:d,controlled:h,onKeyDown:g,type:w},v));return Ae.createElement(r,C)}Lw=Ae.forwardRef(Lw);Lw.propTypes={parse:Te.func.isRequired,format:Te.func.isRequired,inputComponent:Te.elementType,type:Te.string,value:Te.string,defaultValue:Te.string,onChange:Te.func,controlled:Te.bool,onKeyDown:Te.func,onCut:Te.func,onPaste:Te.func};function Y8(t,e){t=t.split("-"),e=e.split("-");for(var n=t[0].split("."),r=e[0].split("."),i=0;i<3;i++){var o=Number(n[i]),u=Number(r[i]);if(o>u)return 1;if(u>o)return-1;if(!isNaN(o)&&isNaN(u))return 1;if(isNaN(o)&&!isNaN(u))return-1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]o?"TOO_SHORT":i[i.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function GG(t,e,n){if(e===void 0&&(e={}),n=new Dr(n),e.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!n.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));n.country(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}}if(n.possibleLengths())return NI(t.phone||t.nationalNumber,n);if(t.countryCallingCode&&n.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function NI(t,e){switch(TS(t,e)){case"IS_POSSIBLE":return!0;default:return!1}}function El(t,e){return t=t||"",new RegExp("^(?:"+e+")$").test(t)}function WG(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=KG(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KG(t,e){if(t){if(typeof t=="string")return Z8(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z8(t,e)}}function Z8(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0}var IO=2,ZG=17,eW=3,ua="0-90-9٠-٩۰-۹",tW="-‐-―−ー-",nW="//",rW="..",iW="  ­​⁠ ",aW="()()[]\\[\\]",oW="~⁓∼~",Ms="".concat(tW).concat(nW).concat(rW).concat(iW).concat(aW).concat(oW),_S="++",sW=new RegExp("(["+ua+"])");function MI(t,e,n,r){if(e){var i=new Dr(r);i.selectNumberingPlan(e,n);var o=new RegExp(i.IDDPrefix());if(t.search(o)===0){t=t.slice(t.match(o)[0].length);var u=t.match(sW);if(!(u&&u[1]!=null&&u[1].length>0&&u[1]==="0"))return t}}}function KE(t,e){if(t&&e.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(t);if(r){var i,o,u=r.length-1,l=u>0&&r[u];if(e.nationalPrefixTransformRule()&&l)i=t.replace(n,e.nationalPrefixTransformRule()),u>1&&(o=r[1]);else{var d=r[0];i=t.slice(d.length),l&&(o=r[1])}var h;if(l){var g=t.indexOf(r[1]),y=t.slice(0,g);y===e.numberingPlan.nationalPrefix()&&(h=e.numberingPlan.nationalPrefix())}else h=r[0];return{nationalNumber:i,nationalPrefix:h,carrierCode:o}}}return{nationalNumber:t}}function YE(t,e){var n=KE(t,e),r=n.carrierCode,i=n.nationalNumber;if(i!==t){if(!uW(t,i,e))return{nationalNumber:t};if(e.possibleLengths()&&!lW(i,e))return{nationalNumber:t}}return{nationalNumber:i,carrierCode:r}}function uW(t,e,n){return!(El(t,n.nationalNumberPattern())&&!El(e,n.nationalNumberPattern()))}function lW(t,e){switch(TS(t,e)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function kI(t,e,n,r){var i=e?Lf(e,r):n;if(t.indexOf(i)===0){r=new Dr(r),r.selectNumberingPlan(e,n);var o=t.slice(i.length),u=YE(o,r),l=u.nationalNumber,d=YE(t,r),h=d.nationalNumber;if(!El(h,r.nationalNumberPattern())&&El(l,r.nationalNumberPattern())||TS(h,r)==="TOO_LONG")return{countryCallingCode:i,number:o}}return{number:t}}function NO(t,e,n,r){if(!t)return{};var i;if(t[0]!=="+"){var o=MI(t,e,n,r);if(o&&o!==t)i=!0,t="+"+o;else{if(e||n){var u=kI(t,e,n,r),l=u.countryCallingCode,d=u.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:d}}return{number:t}}}if(t[1]==="0")return{};r=new Dr(r);for(var h=2;h-1<=eW&&h<=t.length;){var g=t.slice(1,h);if(r.hasCallingCode(g))return r.selectNumberingPlan(g),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:g,number:t.slice(h)};h++}return{}}function DI(t){return t.replace(new RegExp("[".concat(Ms,"]+"),"g")," ").trim()}var FI=/(\$\d)/;function LI(t,e,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var o=t.replace(new RegExp(e.pattern()),r?e.internationalFormat():i&&e.nationalPrefixFormattingRule()?e.format().replace(FI,e.nationalPrefixFormattingRule()):e.format());return r?DI(o):o}var cW=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function fW(t,e,n){var r=new Dr(n);if(r.selectNumberingPlan(t,e),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(cW.test(r.IDDPrefix()))return r.IDDPrefix()}var dW=";ext=",Sg=function(e){return"([".concat(ua,"]{1,").concat(e,"})")};function UI(t){var e="20",n="15",r="9",i="6",o="[  \\t,]*",u="[:\\..]?[  \\t,-]*",l="#?",d="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",h="(?:[xx##~~]|int|int)",g="[- ]+",y="[  \\t]*",w="(?:,{2}|;)",v=dW+Sg(e),C=o+d+u+Sg(e)+l,E=o+h+u+Sg(r)+l,$=g+Sg(i)+"#",O=y+w+u+Sg(n)+l,_=y+"(?:,)+"+u+Sg(r)+l;return v+"|"+C+"|"+E+"|"+$+"|"+O+"|"+_}var hW="["+ua+"]{"+IO+"}",pW="["+_S+"]{0,1}(?:["+Ms+"]*["+ua+"]){3,}["+Ms+ua+"]*",mW=new RegExp("^["+_S+"]{0,1}(?:["+Ms+"]*["+ua+"]){1,2}$","i"),gW=pW+"(?:"+UI()+")?",yW=new RegExp("^"+hW+"$|^"+gW+"$","i");function vW(t){return t.length>=IO&&yW.test(t)}function bW(t){return mW.test(t)}function wW(t){var e=t.number,n=t.ext;if(!e)return"";if(e[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(n?";ext="+n:"")}function SW(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=CW(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CW(t,e){if(t){if(typeof t=="string")return eR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eR(t,e)}}function eR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0){var o=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(e.search(o)!==0)continue}if(El(e,i.pattern()))return i}}function IC(t,e,n,r){return e?r(t,e,n):t}function OW(t,e,n,r,i){var o=Lf(r,i.metadata);if(o===n){var u=Uw(t,e,"NATIONAL",i);return n==="1"?n+" "+u:u}var l=fW(r,void 0,i.metadata);if(l)return"".concat(l," ").concat(n," ").concat(Uw(t,null,"INTERNATIONAL",i))}function iR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function aR(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function UW(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function r1(t,e){return r1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},r1(t,e)}function i1(t){return i1=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},i1(t)}var bl=(function(t){DW(n,t);var e=FW(n);function n(r){var i;return kW(this,n),i=e.call(this,r),Object.setPrototypeOf(BI(i),n.prototype),i.name=i.constructor.name,i}return MW(n)})(JE(Error)),oR=new RegExp("(?:"+UI()+")$","i");function jW(t){var e=t.search(oR);if(e<0)return{};for(var n=t.slice(0,e),r=t.match(oR),i=1;i=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qW(t,e){if(t){if(typeof t=="string")return sR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sR(t,e)}}function sR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VW(t,e){if(t){if(typeof t=="string")return uR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uR(t,e)}}function uR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WW(t,e){if(t){if(typeof t=="string")return lR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lR(t,e)}}function lR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length)return"";var r=t.indexOf(";",n);return r>=0?t.substring(n,r):t.substring(n)}function iK(t){return t===null?!0:t.length===0?!1:QW.test(t)||tK.test(t)}function aK(t,e){var n=e.extractFormattedPhoneNumber,r=rK(t);if(!iK(r))throw new bl("NOT_A_NUMBER");var i;if(r===null)i=n(t)||"";else{i="",r.charAt(0)===WI&&(i+=r);var o=t.indexOf(fR),u;o>=0?u=o+fR.length:u=0;var l=t.indexOf(ex);i+=t.substring(u,l)}var d=i.indexOf(nK);if(d>0&&(i=i.substring(0,d)),i!=="")return i}var oK=250,sK=new RegExp("["+_S+ua+"]"),uK=new RegExp("[^"+ua+"#]+$");function lK(t,e,n){if(e=e||{},n=new Dr(n),e.defaultCountry&&!n.hasCountry(e.defaultCountry))throw e.v2?new bl("INVALID_COUNTRY"):new Error("Unknown country: ".concat(e.defaultCountry));var r=fK(t,e.v2,e.extract),i=r.number,o=r.ext,u=r.error;if(!i){if(e.v2)throw u==="TOO_SHORT"?new bl("TOO_SHORT"):new bl("NOT_A_NUMBER");return{}}var l=hK(i,e.defaultCountry,e.defaultCallingCode,n),d=l.country,h=l.nationalNumber,g=l.countryCallingCode,y=l.countryCallingCodeSource,w=l.carrierCode;if(!n.hasSelectedNumberingPlan()){if(e.v2)throw new bl("INVALID_COUNTRY");return{}}if(!h||h.lengthZG){if(e.v2)throw new bl("TOO_LONG");return{}}if(e.v2){var v=new jI(g,h,n.metadata);return d&&(v.country=d),w&&(v.carrierCode=w),o&&(v.ext=o),v.__countryCallingCodeSource=y,v}var C=(e.extended?n.hasSelectedNumberingPlan():d)?El(h,n.nationalNumberPattern()):!1;return e.extended?{country:d,countryCallingCode:g,carrierCode:w,valid:C,possible:C?!0:!!(e.extended===!0&&n.possibleLengths()&&NI(h,n)),phone:h,ext:o}:C?dK(d,h,o):{}}function cK(t,e,n){if(t){if(t.length>oK){if(n)throw new bl("TOO_LONG");return}if(e===!1)return t;var r=t.search(sK);if(!(r<0))return t.slice(r).replace(uK,"")}}function fK(t,e,n){var r=aK(t,{extractFormattedPhoneNumber:function(u){return cK(u,n,e)}});if(!r)return{};if(!vW(r))return bW(r)?{error:"TOO_SHORT"}:{};var i=jW(r);return i.ext?i:{number:r}}function dK(t,e,n){var r={country:t,phone:e};return n&&(r.ext=n),r}function hK(t,e,n,r){var i=NO(XE(t),e,n,r.metadata),o=i.countryCallingCodeSource,u=i.countryCallingCode,l=i.number,d;if(u)r.selectNumberingPlan(u);else if(l&&(e||n))r.selectNumberingPlan(e,n),e&&(d=e),u=n||Lf(e,r.metadata);else return{};if(!l)return{countryCallingCodeSource:o,countryCallingCode:u};var h=YE(XE(l),r),g=h.nationalNumber,y=h.carrierCode,w=GI(u,{nationalNumber:g,defaultCountry:e,metadata:r});return w&&(d=w,w==="001"||r.country(d)),{country:d,countryCallingCode:u,countryCallingCodeSource:o,nationalNumber:g,carrierCode:y}}function dR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function hR(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IK(t,e){if(t){if(typeof t=="string")return vR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vR(t,e)}}function vR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1;)e&1&&(n+=t),e>>=1,t+=t;return n+t}function bR(t,e){return t[e]===")"&&e++,NK(t.slice(0,e))}function NK(t){for(var e=[],n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GK(t,e){if(t){if(typeof t=="string")return CR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CR(t,e)}}function CR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:{},i=r.allowOverflow;if(!n)throw new Error("String is required");var o=tx(n.split(""),this.matchTree,!0);if(o&&o.match&&delete o.matchedChars,!(o&&o.overflow&&!i))return o}}]),t})();function tx(t,e,n){if(typeof e=="string"){var r=t.join("");return e.indexOf(r)===0?t.length===e.length?{match:!0,matchedChars:t}:{partialMatch:!0}:r.indexOf(e)===0?n&&t.length>e.length?{overflow:!0}:{match:!0,matchedChars:t.slice(0,e.length)}:void 0}if(Array.isArray(e)){for(var i=t.slice(),o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JK(t,e){if(t){if(typeof t=="string")return ER(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ER(t,e)}}function ER(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0)){var i=this.getTemplateForFormat(n,r);if(i)return this.setNationalNumberTemplate(i,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&rY.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var i=n.IDDPrefix,o=n.missingPlus;return i?r&&r.spacing===!1?i:i+" ":o?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,i=0,o=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";ih.length)){var g=new RegExp("^"+d+"$"),y=i.replace(/\d/g,nx);g.test(y)&&(h=y);var w=this.getFormatFormat(n,o),v;if(this.shouldTryNationalPrefixFormattingRule(n,{international:o,nationalPrefix:u})){var C=w.replace(FI,n.nationalPrefixFormattingRule());if(jw(n.nationalPrefixFormattingRule())===(u||"")+jw("$1")&&(w=C,v=!0,u))for(var E=u.length;E>0;)w=w.replace(/\d/,As),E--}var $=h.replace(new RegExp(d),w).replace(new RegExp(nx,"g"),As);return v||(l?$=mw(As,l.length)+" "+$:u&&($=mw(As,u.length)+this.getSeparatorAfterNationalPrefix(n)+$)),o&&($=DI($)),$}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=MK(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],bR(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var i=r.international,o=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var u=n.usesNationalPrefix();if(u&&o||!u&&!i)return!0}}}]),t})();function KI(t,e){return fY(t)||cY(t,e)||lY(t,e)||uY()}function uY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lY(t,e){if(t){if(typeof t=="string")return OR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OR(t,e)}}function OR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=3;if(r.appendDigits(n),o&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(u){return r.update(u)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,i=n.callingCode;return r&&!i}},{key:"extractCountryCallingCode",value:function(n){var r=NO("+"+n.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode,o=r.number;if(i)return n.setCallingCode(i),n.update({nationalSignificantNumber:o}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&bY.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var i=KE(n,this.metadata),o=i.nationalPrefix,u=i.nationalNumber,l=i.carrierCode;if(u!==n)return this.onExtractedNationalNumber(o,l,u,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,i){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,i);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var o=KE(n,this.metadata),u=o.nationalPrefix,l=o.nationalNumber,d=o.carrierCode;if(l!==r)return this.onExtractedNationalNumber(u,d,l,n,i),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,i,o,u){var l,d,h=o.lastIndexOf(i);if(h>=0&&h===o.length-i.length){d=!0;var g=o.slice(0,h);g!==n&&(l=g)}u({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:i,nationalSignificantNumberMatchesInput:d,complexPrefixBeforeNationalSignificantNumber:l}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,i=n.IDDPrefix,o=n.digits;if(n.nationalSignificantNumber,!(r||i)){var u=MI(o,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(u!==void 0&&u!==o)return n.update({IDDPrefix:o.slice(0,o.length-u.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=kI(n.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode;if(r.number,i)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:i}),!0}}},{key:"startInternationalNumber",value:function(n,r){var i=r.country,o=r.callingCode;n.startInternationalNumber(i,o),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}]),t})();function SY(t){var e=t.search(yY);if(!(e<0)){t=t.slice(e);var n;return t[0]==="+"&&(n=!0,t=t.slice(1)),t=t.replace(vY,""),n&&(t="+"+t),t}}function CY(t){var e=SY(t)||"";return e[0]==="+"?[e.slice(1),!0]:[e]}function $Y(t){var e=CY(t),n=KI(e,2),r=n[0],i=n[1];return gY.test(r)||(r=""),[r,i]}function EY(t,e){return _Y(t)||TY(t,e)||OY(t,e)||xY()}function xY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OY(t,e){if(t){if(typeof t=="string")return TR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TR(t,e)}}function TR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1}},{key:"determineTheCountry",value:function(){this.state.setCountry(GI(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,i=n.callingCode,o=n.country,u=n.nationalSignificantNumber;if(r){if(this.isInternational())return i?"+"+i+u:"+"+r;if(o||i){var l=o?this.metadata.countryCallingCode():i;return"+"+l+u}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.carrierCode,o=n.callingCode,u=this._getCountry();if(r&&!(!u&&!o)){if(u&&u===this.defaultCountry){var l=new Dr(this.metadata.metadata);l.selectNumberingPlan(u);var d=l.numberingPlan.callingCode(),h=this.metadata.getCountryCodesForCallingCode(d);if(h.length>1){var g=VI(r,{countries:h,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});g&&(u=g)}}var y=new jI(u||o,r,this.metadata.metadata);return i&&(y.carrierCode=i),y}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),t})();function _R(t){return new Dr(t).getCountries()}function IY(t,e,n){return n||(n=e,e=void 0),new ry(e,n).input(t)}function YI(t){var e=t.inputFormat,n=t.country,r=t.metadata;return e==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(Lf(n,r)):""}function rx(t,e){return e&&(t=t.slice(e.length),t[0]===" "&&(t=t.slice(1))),t}function NY(t,e,n){if(!(n&&n.ignoreRest)){var r=function(o){if(n)switch(o){case"end":n.ignoreRest=!0;break}};return zI(t,e,r)}}function QI(t){var e=t.onKeyDown,n=t.inputFormat;return T.useCallback(function(r){if(r.keyCode===kY&&n==="INTERNATIONAL"&&r.target instanceof HTMLInputElement&&MY(r.target)===DY.length){r.preventDefault();return}e&&e(r)},[e,n])}function MY(t){return t.selectionStart}var kY=8,DY="+",FY=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function ix(){return ix=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function UY(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function jY(t){function e(n,r){var i=n.onKeyDown,o=n.country,u=n.inputFormat,l=n.metadata,d=l===void 0?t:l;n.international,n.withCountryCallingCode;var h=LY(n,FY),g=T.useCallback(function(w){var v=new ry(o,d),C=YI({inputFormat:u,country:o,metadata:d}),E=v.input(C+w),$=v.getTemplate();return C&&(E=rx(E,C),$&&($=rx($,C))),{text:E,template:$}},[o,d]),y=QI({onKeyDown:i,inputFormat:u});return Ae.createElement(Lw,ix({},h,{ref:r,parse:NY,format:g,onKeyDown:y}))}return e=Ae.forwardRef(e),e.propTypes={value:Te.string.isRequired,onChange:Te.func.isRequired,onKeyDown:Te.func,country:Te.string,inputFormat:Te.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Te.object},e}const BY=jY();var qY=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function ax(){return ax=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function zY(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function VY(t){function e(n,r){var i=n.value,o=n.onChange,u=n.onKeyDown,l=n.country,d=n.inputFormat,h=n.metadata,g=h===void 0?t:h,y=n.inputComponent,w=y===void 0?"input":y;n.international,n.withCountryCallingCode;var v=HY(n,qY),C=YI({inputFormat:d,country:l,metadata:g}),E=T.useCallback(function(O){var _=XE(O.target.value);if(_===i){var R=AR(C,_,l,g);R.indexOf(O.target.value)===0&&(_=_.slice(0,-1))}o(_)},[C,i,o,l,g]),$=QI({onKeyDown:u,inputFormat:d});return Ae.createElement(w,ax({},v,{ref:r,value:AR(C,i,l,g),onChange:E,onKeyDown:$}))}return e=Ae.forwardRef(e),e.propTypes={value:Te.string.isRequired,onChange:Te.func.isRequired,onKeyDown:Te.func,country:Te.string,inputFormat:Te.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Te.object,inputComponent:Te.elementType},e}const GY=VY();function AR(t,e,n,r){return rx(IY(t+e,n,r),t)}function WY(t){return RR(t[0])+RR(t[1])}function RR(t){return String.fromCodePoint(127397+t.toUpperCase().charCodeAt(0))}var KY=["value","onChange","options","disabled","readOnly"],YY=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function QY(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=JY(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JY(t,e){if(t){if(typeof t=="string")return PR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PR(t,e)}}function PR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function XY(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function XI(t){var e=t.value,n=t.onChange,r=t.options,i=t.disabled,o=t.readOnly,u=JI(t,KY),l=T.useCallback(function(d){var h=d.target.value;n(h==="ZZ"?void 0:h)},[n]);return T.useMemo(function(){return eN(r,e)},[r,e]),Ae.createElement("select",Bw({},u,{disabled:i||o,readOnly:o,value:e||"ZZ",onChange:l}),r.map(function(d){var h=d.value,g=d.label,y=d.divider;return Ae.createElement("option",{key:y?"|":h||"ZZ",value:y?"|":h||"ZZ",disabled:!!y,style:y?ZY:void 0},g)}))}XI.propTypes={value:Te.string,onChange:Te.func.isRequired,options:Te.arrayOf(Te.shape({value:Te.string,label:Te.string,divider:Te.bool})).isRequired,disabled:Te.bool,readOnly:Te.bool};var ZY={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function ZI(t){var e=t.value,n=t.options,r=t.className,i=t.iconComponent;t.getIconAspectRatio;var o=t.arrowComponent,u=o===void 0?eQ:o,l=t.unicodeFlags,d=JI(t,YY),h=T.useMemo(function(){return eN(n,e)},[n,e]);return Ae.createElement("div",{className:"PhoneInputCountry"},Ae.createElement(XI,Bw({},d,{value:e,options:n,className:Lo("PhoneInputCountrySelect",r)})),h&&(l&&e?Ae.createElement("div",{className:"PhoneInputCountryIconUnicode"},WY(e)):Ae.createElement(i,{"aria-hidden":!0,country:e,label:h.label,aspectRatio:l?1:void 0})),Ae.createElement(u,null))}ZI.propTypes={iconComponent:Te.elementType,arrowComponent:Te.elementType,unicodeFlags:Te.bool};function eQ(){return Ae.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function eN(t,e){for(var n=QY(t),r;!(r=n()).done;){var i=r.value;if(!i.divider&&tQ(i.value,e))return i}}function tQ(t,e){return t==null?e==null:t===e}var nQ=["country","countryName","flags","flagUrl"];function ox(){return ox=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function iQ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function MO(t){var e=t.country,n=t.countryName,r=t.flags,i=t.flagUrl,o=rQ(t,nQ);return r&&r[e]?r[e]({title:n}):Ae.createElement("img",ox({},o,{alt:n,role:n?void 0:"presentation",src:i.replace("{XX}",e).replace("{xx}",e.toLowerCase())}))}MO.propTypes={country:Te.string.isRequired,countryName:Te.string.isRequired,flags:Te.objectOf(Te.elementType),flagUrl:Te.string.isRequired};var aQ=["aspectRatio"],oQ=["title"],sQ=["title"];function qw(){return qw=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function uQ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function AS(t){var e=t.aspectRatio,n=kO(t,aQ);return e===1?Ae.createElement(nN,n):Ae.createElement(tN,n)}AS.propTypes={title:Te.string.isRequired,aspectRatio:Te.number};function tN(t){var e=t.title,n=kO(t,oQ);return Ae.createElement("svg",qw({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),Ae.createElement("title",null,e),Ae.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},Ae.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),Ae.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),Ae.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),Ae.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),Ae.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),Ae.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),Ae.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}tN.propTypes={title:Te.string.isRequired};function nN(t){var e=t.title,n=kO(t,sQ);return Ae.createElement("svg",qw({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),Ae.createElement("title",null,e),Ae.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},Ae.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),Ae.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),Ae.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),Ae.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),Ae.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),Ae.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),Ae.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}nN.propTypes={title:Te.string.isRequired};function lQ(t){if(t.length<2||t[0]!=="+")return!1;for(var e=1;e=48&&n<=57))return!1;e++}return!0}function rN(t){lQ(t)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",t)}function cQ(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=fQ(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fQ(t,e){if(t){if(typeof t=="string")return IR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IR(t,e)}}function IR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0))return t}function RS(t,e){return PI(t,e)?!0:(console.error("Country not found: ".concat(t)),!1)}function iN(t,e){return t&&(t=t.filter(function(n){return RS(n,e)}),t.length===0&&(t=void 0)),t}var pQ=["country","label","aspectRatio"];function sx(){return sx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function gQ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function aN(t){var e=t.flags,n=t.flagUrl,r=t.flagComponent,i=t.internationalIcon;function o(u){var l=u.country,d=u.label,h=u.aspectRatio,g=mQ(u,pQ),y=i===AS?h:void 0;return Ae.createElement("div",sx({},g,{className:Lo("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":y===1,"PhoneInputCountryIcon--border":l})}),l?Ae.createElement(r,{country:l,countryName:d,flags:e,flagUrl:n,className:"PhoneInputCountryIconImg"}):Ae.createElement(i,{title:d,aspectRatio:y,className:"PhoneInputCountryIconImg"}))}return o.propTypes={country:Te.string,label:Te.string.isRequired,aspectRatio:Te.number},o}aN({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:MO,internationalIcon:AS});function yQ(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=vQ(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vQ(t,e){if(t){if(typeof t=="string")return NR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NR(t,e)}}function NR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&(d=i()),d}function CQ(t){var e=t.countries,n=t.countryNames,r=t.addInternationalOption,i=t.compareStringsLocales,o=t.compareStrings;o||(o=AQ);var u=e.map(function(l){return{value:l,label:n[l]||l}});return u.sort(function(l,d){return o(l.label,d.label,i)}),r&&u.unshift({label:n.ZZ}),u}function uN(t,e){return OK(t||"",e)}function $Q(t){return t.formatNational().replace(/\D/g,"")}function EQ(t,e){var n=e.prevCountry,r=e.newCountry,i=e.metadata,o=e.useNationalFormat;if(n===r)return t;if(!t)return o?"":r?Sl(r,i):"";if(r){if(t[0]==="+"){if(o)return t.indexOf("+"+Lf(r,i))===0?RQ(t,r,i):"";if(n){var u=Sl(r,i);return t.indexOf(u)===0?t:u}else{var l=Sl(r,i);return t.indexOf(l)===0?t:l}}}else if(t[0]!=="+")return Og(t,n,i)||"";return t}function Og(t,e,n){if(t){if(t[0]==="+"){if(t==="+")return;var r=new ry(e,n);return r.input(t),r.getNumberValue()}if(e){var i=cN(t,e,n);return"+".concat(Lf(e,n)).concat(i||"")}}}function xQ(t,e,n){var r=cN(t,e,n);if(r){var i=r.length-OQ(e,n);if(i>0)return t.slice(0,t.length-i)}return t}function OQ(t,e){return e=new Dr(e),e.selectNumberingPlan(t),e.numberingPlan.possibleLengths()[e.numberingPlan.possibleLengths().length-1]}function lN(t,e){var n=e.country,r=e.countries,i=e.defaultCountry,o=e.latestCountrySelectedByUser,u=e.required,l=e.metadata;if(t==="+")return n;var d=_Q(t,l);if(d)return!r||r.indexOf(d)>=0?d:void 0;if(n){if(Ug(t,n,l)){if(o&&Ug(t,o,l))return o;if(i&&Ug(t,i,l))return i;if(!u)return}else if(!u)return}return n}function TQ(t,e){var n=e.prevPhoneDigits,r=e.country,i=e.defaultCountry,o=e.latestCountrySelectedByUser,u=e.countryRequired,l=e.getAnyCountry,d=e.countries,h=e.international,g=e.limitMaxLength,y=e.countryCallingCodeEditable,w=e.metadata;if(h&&y===!1&&r){var v=Sl(r,w);if(t.indexOf(v)!==0){var C,E=t&&t[0]!=="+";return E?(t=v+t,C=Og(t,r,w)):t=v,{phoneDigits:t,value:C,country:r}}}h===!1&&r&&t&&t[0]==="+"&&(t=MR(t,r,w)),t&&r&&g&&(t=xQ(t,r,w)),t&&t[0]!=="+"&&(!r||h)&&(t="+"+t),!t&&n&&n[0]==="+"&&(h?r=void 0:r=i),t==="+"&&n&&n[0]==="+"&&n.length>1&&(r=void 0);var $;return t&&(t[0]==="+"&&(t==="+"||r&&Sl(r,w).indexOf(t)===0)?$=void 0:$=Og(t,r,w)),$&&(r=lN($,{country:r,countries:d,defaultCountry:i,latestCountrySelectedByUser:o,required:!1,metadata:w}),h===!1&&r&&t&&t[0]==="+"&&(t=MR(t,r,w),$=Og(t,r,w))),!r&&u&&(r=i||l()),{phoneDigits:t,country:r,value:$}}function MR(t,e,n){if(t.indexOf(Sl(e,n))===0){var r=new ry(e,n);r.input(t);var i=r.getNumber();return i?i.formatNational().replace(/\D/g,""):""}else return t.replace(/\D/g,"")}function _Q(t,e){var n=new ry(null,e);return n.input(t),n.getCountry()}function AQ(t,e,n){return String.prototype.localeCompare?t.localeCompare(e,n):te?1:0}function RQ(t,e,n){if(e){var r="+"+Lf(e,n);if(t.length=0)&&(L=P.country):(L=lN(u,{country:void 0,countries:F,metadata:r}),L||o&&u.indexOf(Sl(o,r))===0&&(L=o))}var q;if(u){if($){var Y=L?$===L:Ug(u,$,r);Y?L||(L=$):q={latestCountrySelectedByUser:void 0}}}else q={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return z2(z2({},q),{},{phoneDigits:O({phoneNumber:P,value:u,defaultCountry:o}),value:u,country:u?L:o})}}function DR(t,e){return t===null&&(t=void 0),e===null&&(e=void 0),t===e}var kQ=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function Vg(t){"@babel/helpers - typeof";return Vg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vg(t)}function FR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function dN(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function FQ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function LQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function LR(t,e){for(var n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function JQ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function gN(t){var e=Ae.forwardRef(function(n,r){var i=n.metadata,o=i===void 0?t:i,u=n.labels,l=u===void 0?KQ:u,d=QQ(n,YQ);return Ae.createElement(mN,lx({},d,{ref:r,metadata:o,labels:l}))});return e.propTypes={metadata:oN,labels:sN},e}gN();const XQ=gN(iG),Do=t=>{const{region:e}=Ci(),{label:n,getInputRef:r,secureTextEntry:i,Icon:o,onChange:u,value:l,children:d,errorMessage:h,type:g,focused:y=!1,autoFocus:w,...v}=t,[C,E]=T.useState(!1),$=T.useRef(),O=T.useCallback(()=>{var k;(k=$.current)==null||k.focus()},[$.current]);let _=l===void 0?"":l;g==="number"&&(_=+l);const R=k=>{u&&u(g==="number"?+k.target.value:k.target.value)};return N.jsxs(ES,{focused:C,onClick:O,...t,children:[t.type==="phonenumber"?N.jsx(XQ,{country:e,autoFocus:w,value:_,onChange:k=>u&&u(k)}):N.jsx("input",{...v,ref:$,value:_,autoFocus:w,className:Lo("form-control",t.errorMessage&&"is-invalid",t.validMessage&&"is-valid"),type:g||"text",onChange:R,onBlur:()=>E(!1),onFocus:()=>E(!0)}),d]})};var o1;function Ps(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var ZQ=0;function N1(t){return"__private_"+ZQ+++"_"+t}const eJ=t=>{const n=zo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Uf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Uf{}o1=Uf;Uf.URL="/passport/change-password";Uf.NewUrl=t=>Vo(o1.URL,void 0,t);Uf.Method="post";Uf.Fetch$=async(t,e,n,r)=>qo(r??o1.NewUrl(t),{method:o1.Method,...n||{}},e);Uf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new wp(u)})=>{e=e||(l=>new wp(l));const u=await o1.Fetch$(n,r,t,o);return Ho(u,l=>{const d=new no;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Uf.Definition={name:"ChangePassword",cliName:"cp",url:"/passport/change-password",method:"post",description:"Change the password for a given passport of the user. User needs to be authenticated in order to be able to change the password for a given account.",in:{fields:[{name:"password",description:"New password meeting the security requirements.",type:"string",tags:{validate:"required"}},{name:"uniqueId",description:"The passport uniqueId (not the email or phone number) which password would be applied to. Don't confuse with value.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"changed",type:"bool"}]}};var wh=N1("password"),Sh=N1("uniqueId"),kC=N1("isJsonAppliable");class bp{get password(){return Ps(this,wh)[wh]}set password(e){Ps(this,wh)[wh]=String(e)}setPassword(e){return this.password=e,this}get uniqueId(){return Ps(this,Sh)[Sh]}set uniqueId(e){Ps(this,Sh)[Sh]=String(e)}setUniqueId(e){return this.uniqueId=e,this}constructor(e=void 0){if(Object.defineProperty(this,kC,{value:tJ}),Object.defineProperty(this,wh,{writable:!0,value:""}),Object.defineProperty(this,Sh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Ps(this,kC)[kC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.password!==void 0&&(this.password=n.password),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId)}toJSON(){return{password:Ps(this,wh)[wh],uniqueId:Ps(this,Sh)[Sh]}}toString(){return JSON.stringify(this)}static get Fields(){return{password:"password",uniqueId:"uniqueId"}}static from(e){return new bp(e)}static with(e){return new bp(e)}copyWith(e){return new bp({...this.toJSON(),...e})}clone(){return new bp(this.toJSON())}}function tJ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var Ch=N1("changed"),DC=N1("isJsonAppliable");class wp{get changed(){return Ps(this,Ch)[Ch]}set changed(e){Ps(this,Ch)[Ch]=!!e}setChanged(e){return this.changed=e,this}constructor(e=void 0){if(Object.defineProperty(this,DC,{value:nJ}),Object.defineProperty(this,Ch,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Ps(this,DC)[DC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.changed!==void 0&&(this.changed=n.changed)}toJSON(){return{changed:Ps(this,Ch)[Ch]}}toString(){return JSON.stringify(this)}static get Fields(){return{changed:"changed"}}static from(e){return new wp(e)}static with(e){return new wp(e)}copyWith(e){return new wp({...this.toJSON(),...e})}clone(){return new wp(this.toJSON())}}function nJ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const rJ=()=>{const t=Wn($r),{goBack:e,state:n,replace:r,push:i,query:o}=Ur(),u=eJ(),l=o==null?void 0:o.uniqueId,d=()=>{u.mutateAsync(new bp(h.values)).then(g=>{e()})},h=Nl({initialValues:{},onSubmit:d});return T.useEffect(()=>{!l||!h||h.setFieldValue(bp.Fields.uniqueId,l)},[l]),{mutation:u,form:h,submit:d,goBack:e,s:t}},iJ=({})=>{const{mutation:t,form:e,s:n}=rJ();return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:n.changePassword.title}),N.jsx("p",{children:n.changePassword.description}),N.jsx(Go,{query:t}),N.jsx(aJ,{form:e,mutation:t})]})},aJ=({form:t,mutation:e})=>{const n=Wn($r),{password2:r,password:i}=t.values,o=i!==r||((i==null?void 0:i.length)||0)<6;return N.jsxs("form",{onSubmit:u=>{u.preventDefault(),t.submitForm()},children:[N.jsx(Do,{type:"password",value:t.values.password,label:n.changePassword.pass1Label,id:"password-input",errorMessage:t.errors.password,onChange:u=>t.setFieldValue("password",u,!1)}),N.jsx(Do,{type:"password",value:t.values.password2,label:n.changePassword.pass2Label,id:"password-input-2",errorMessage:t.errors.password,onChange:u=>t.setFieldValue("password2",u,!1)}),N.jsx(Ff,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:o,children:n.continue})]})};function oJ(t={}){const{nonce:e,onScriptLoadSuccess:n,onScriptLoadError:r}=t,[i,o]=T.useState(!1),u=T.useRef(n);u.current=n;const l=T.useRef(r);return l.current=r,T.useEffect(()=>{const d=document.createElement("script");return d.src="https://accounts.google.com/gsi/client",d.async=!0,d.defer=!0,d.nonce=e,d.onload=()=>{var h;o(!0),(h=u.current)===null||h===void 0||h.call(u)},d.onerror=()=>{var h;o(!1),(h=l.current)===null||h===void 0||h.call(l)},document.body.appendChild(d),()=>{document.body.removeChild(d)}},[e]),i}const yN=T.createContext(null);function sJ({clientId:t,nonce:e,onScriptLoadSuccess:n,onScriptLoadError:r,children:i}){const o=oJ({nonce:e,onScriptLoadSuccess:n,onScriptLoadError:r}),u=T.useMemo(()=>({clientId:t,scriptLoadedSuccessfully:o}),[t,o]);return Ae.createElement(yN.Provider,{value:u},i)}function uJ(){const t=T.useContext(yN);if(!t)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return t}function lJ({flow:t="implicit",scope:e="",onSuccess:n,onError:r,onNonOAuthError:i,overrideScope:o,state:u,...l}){const{clientId:d,scriptLoadedSuccessfully:h}=uJ(),g=T.useRef(),y=T.useRef(n);y.current=n;const w=T.useRef(r);w.current=r;const v=T.useRef(i);v.current=i,T.useEffect(()=>{var $,O;if(!h)return;const _=t==="implicit"?"initTokenClient":"initCodeClient",R=(O=($=window==null?void 0:window.google)===null||$===void 0?void 0:$.accounts)===null||O===void 0?void 0:O.oauth2[_]({client_id:d,scope:o?e:`openid profile email ${e}`,callback:k=>{var P,L;if(k.error)return(P=w.current)===null||P===void 0?void 0:P.call(w,k);(L=y.current)===null||L===void 0||L.call(y,k)},error_callback:k=>{var P;(P=v.current)===null||P===void 0||P.call(v,k)},state:u,...l});g.current=R},[d,h,t,e,u]);const C=T.useCallback($=>{var O;return(O=g.current)===null||O===void 0?void 0:O.requestAccessToken($)},[]),E=T.useCallback(()=>{var $;return($=g.current)===null||$===void 0?void 0:$.requestCode()},[]);return t==="implicit"?C:E}const vN=()=>N.jsxs("div",{className:"loader",id:"loader-4",children:[N.jsx("span",{}),N.jsx("span",{}),N.jsx("span",{})]});function cJ(){if(typeof window>"u")return"mac";let t=window==null?void 0:window.navigator.userAgent,e=window==null?void 0:window.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],r=["Win32","Win64","Windows","WinCE"],i=["iPhone","iPad","iPod"],o="mac";return n.indexOf(e)!==-1?o="mac":i.indexOf(e)!==-1?o="ios":r.indexOf(e)!==-1?o="windows":/Android/.test(t)?o="android":!o&&/Linux/.test(e)?o="linux":o="web",o}const Je=cJ(),Fe={edit:{default:"ios-theme/icons/edit.svg"},add:{default:"ios-theme/icons/add.svg"},cancel:{default:"ios-theme/icons/cancel.svg"},delete:{default:"ios-theme/icons/delete.svg"},entity:{default:"ios-theme/icons/entity.svg"},left:{default:"ios-theme/icons/left.svg"},menu:{default:"ios-theme/icons/menu.svg"},backup:{default:"ios-theme/icons/backup.svg"},right:{default:"ios-theme/icons/right.svg"},settings:{default:"ios-theme/icons/settings.svg"},user:{default:"ios-theme/icons/user.svg"},export:{default:"ios-theme/icons/export.svg"},up:{default:"ios-theme/icons/up.svg"},dataNode:{default:"ios-theme/icons/dnode.svg"},ctrlSheet:{default:"ios-theme/icons/ctrlsheet.svg"},gpiomode:{default:"ios-theme/icons/gpiomode.svg"},gpiostate:{default:"ios-theme/icons/gpiostate.svg"},down:{default:"ios-theme/icons/down.svg"},turnoff:{default:"ios-theme/icons/turnoff.svg"},mqtt:{default:"ios-theme/icons/mqtt.svg"},cart:{default:"ios-theme/icons/cart.svg"},questionBank:{default:"ios-theme/icons/questions.svg"},dashboard:{default:"ios-theme/icons/dashboard.svg"},country:{default:"ios-theme/icons/country.svg"},order:{default:"ios-theme/icons/order.svg"},province:{default:"ios-theme/icons/province.svg"},city:{default:"ios-theme/icons/city.svg"},about:{default:"ios-theme/icons/about.svg"},sms:{default:"ios-theme/icons/sms.svg"},product:{default:"ios-theme/icons/product.svg"},discount:{default:"ios-theme/icons/discount.svg"},tag:{default:"ios-theme/icons/tag.svg"},category:{default:"ios-theme/icons/category.svg"},brand:{default:"ios-theme/icons/brand.svg"},form:{default:"ios-theme/icons/form.svg"}},iy={dashboard:Fe.dashboard[Je]?Fe.dashboard[Je]:Fe.dashboard.default,up:Fe.up[Je]?Fe.up[Je]:Fe.up.default,questionBank:Fe.questionBank[Je]?Fe.questionBank[Je]:Fe.questionBank.default,down:Fe.down[Je]?Fe.down[Je]:Fe.down.default,edit:Fe.edit[Je]?Fe.edit[Je]:Fe.edit.default,add:Fe.add[Je]?Fe.add[Je]:Fe.add.default,cancel:Fe.cancel[Je]?Fe.cancel[Je]:Fe.cancel.default,delete:Fe.delete[Je]?Fe.delete[Je]:Fe.delete.default,discount:Fe.discount[Je]?Fe.discount[Je]:Fe.discount.default,cart:Fe.cart[Je]?Fe.cart[Je]:Fe.cart.default,entity:Fe.entity[Je]?Fe.entity[Je]:Fe.entity.default,sms:Fe.sms[Je]?Fe.sms[Je]:Fe.sms.default,left:Fe.left[Je]?Fe.left[Je]:Fe.left.default,brand:Fe.brand[Je]?Fe.brand[Je]:Fe.brand.default,menu:Fe.menu[Je]?Fe.menu[Je]:Fe.menu.default,right:Fe.right[Je]?Fe.right[Je]:Fe.right.default,settings:Fe.settings[Je]?Fe.settings[Je]:Fe.settings.default,dataNode:Fe.dataNode[Je]?Fe.dataNode[Je]:Fe.dataNode.default,user:Fe.user[Je]?Fe.user[Je]:Fe.user.default,city:Fe.city[Je]?Fe.city[Je]:Fe.city.default,province:Fe.province[Je]?Fe.province[Je]:Fe.province.default,about:Fe.about[Je]?Fe.about[Je]:Fe.about.default,turnoff:Fe.turnoff[Je]?Fe.turnoff[Je]:Fe.turnoff.default,ctrlSheet:Fe.ctrlSheet[Je]?Fe.ctrlSheet[Je]:Fe.ctrlSheet.default,country:Fe.country[Je]?Fe.country[Je]:Fe.country.default,export:Fe.export[Je]?Fe.export[Je]:Fe.export.default,gpio:Fe.ctrlSheet[Je]?Fe.ctrlSheet[Je]:Fe.ctrlSheet.default,order:Fe.order[Je]?Fe.order[Je]:Fe.order.default,mqtt:Fe.mqtt[Je]?Fe.mqtt[Je]:Fe.mqtt.default,tag:Fe.tag[Je]?Fe.tag[Je]:Fe.tag.default,product:Fe.product[Je]?Fe.product[Je]:Fe.product.default,category:Fe.category[Je]?Fe.category[Je]:Fe.category.default,form:Fe.form[Je]?Fe.form[Je]:Fe.form.default,gpiomode:Fe.gpiomode[Je]?Fe.gpiomode[Je]:Fe.gpiomode.default,backup:Fe.backup[Je]?Fe.backup[Je]:Fe.backup.default,gpiostate:Fe.gpiostate[Je]?Fe.gpiostate[Je]:Fe.gpiostate.default};function DO(t){const e=Si.PUBLIC_URL;return t.startsWith("$")?e+iy[t.substr(1)]:t.startsWith(e)?t:e+t}function fJ(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(yn),u=r?r(i):o?o(i):Lr(i);let d=`${"/passport/via-oauth".substr(1)}?${new URLSearchParams(la(n)).toString()}`;const g=Fr(v=>u("POST",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueryData("*abac.OauthAuthenticateActionResDto",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(ks(O)),$(O)}})}),fnUpdater:y}}var Ja=(t=>(t.Email="email",t.Phone="phone",t.Google="google",t.Facebook="facebook",t))(Ja||{});const M1=()=>{const{setSession:t,selectUrw:e,selectedUrw:n}=T.useContext(yn),{locale:r}=Ci(),{replace:i}=Ur();return{onComplete:u=>{var y,w;t(u.data.item.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify(u.data));const d=new URLSearchParams(window.location.search).get("redirect"),h=sessionStorage.getItem("redirect_temporary");if(!((w=(y=u.data)==null?void 0:y.item.session)==null?void 0:w.token)){alert("Authentication has failed.");return}if(sessionStorage.removeItem("redirect_temporary"),sessionStorage.removeItem("workspace_type_id"),h)window.location.href=h;else if(d){const v=new URL(d);v.searchParams.set("session",JSON.stringify(u.data.item.session)),window.location.href=v.toString()}else{const v="/{locale}/dashboard".replace("{locale}",r||"en");i(v,v)}}}},dJ=t=>{T.useEffect(()=>{const e=new URLSearchParams(window.location.search),n=window.location.hash.indexOf("?"),r=n!==-1?new URLSearchParams(window.location.hash.slice(n)):new URLSearchParams;t.forEach(i=>{const o=e.get(i)||r.get(i);o&&sessionStorage.setItem(i,o)})},[t.join(",")])},hJ=({continueWithResult:t,facebookAppId:e})=>{Wn($r),T.useEffect(()=>{if(window.FB)return;const r=document.createElement("script");r.src="https://connect.facebook.net/en_US/sdk.js",r.async=!0,r.onload=()=>{window.FB.init({appId:e,cookie:!0,xfbml:!1,version:"v19.0"})},document.body.appendChild(r)},[]);const n=()=>{const r=window.FB;if(!r){alert("Facebook SDK not loaded");return}r.login(i=>{var o;console.log("Facebook:",i),(o=i.authResponse)!=null&&o.accessToken?t(i.authResponse.accessToken):alert("Facebook login failed")},{scope:"email,public_profile"})};return N.jsxs("button",{id:"using-facebook",type:"button",onClick:n,children:[N.jsx("img",{className:"button-icon",src:DO("/common/facebook.png")}),"Facebook"]})},pJ=()=>{var g,y;const t=vn(),{locale:e}=Ci(),{push:n}=Ur(),r=T.useRef(),i=$I({});dJ(["redirect_temporary","workspace_type_id"]);const[o,u]=T.useState(void 0),l=o?Object.values(o).filter(Boolean).length:void 0,d=(y=(g=i.data)==null?void 0:g.data)==null?void 0:y.item,h=(w,v=!0)=>{switch(w){case Ja.Email:n(`/${e}/selfservice/email`,void 0,{canGoBack:v});break;case Ja.Phone:n(`/${e}/selfservice/phone`,void 0,{canGoBack:v});break}};return T.useEffect(()=>{if(!d)return;const w={email:d.email,google:d.google,facebook:d.facebook,phone:d.phone,googleOAuthClientKey:d.googleOAuthClientKey,facebookAppId:d.facebookAppId};Object.values(w).filter(Boolean).length===1&&(w.email&&h(Ja.Email,!1),w.phone&&h(Ja.Phone,!1),w.google&&h(Ja.Google,!1),w.facebook&&h(Ja.Facebook,!1)),u(w)},[d]),{t,formik:r,onSelect:h,availableOptions:o,passportMethodsQuery:i,isLoadingMethods:i.isLoading,totalAvailableMethods:l}},mJ=()=>{const{onSelect:t,availableOptions:e,totalAvailableMethods:n,isLoadingMethods:r,passportMethodsQuery:i}=pJ(),o=Nl({initialValues:{},onSubmit:()=>{}});return i.isError||i.error?N.jsx("div",{className:"signin-form-container",children:N.jsx(Go,{query:i})}):n===void 0||r?N.jsx("div",{className:"signin-form-container",children:N.jsx(vN,{})}):n===0?N.jsx("div",{className:"signin-form-container",children:N.jsx(yJ,{})}):N.jsx("div",{className:"signin-form-container",children:e.googleOAuthClientKey?N.jsx(sJ,{clientId:e.googleOAuthClientKey,children:N.jsx(jR,{availableOptions:e,onSelect:t,form:o})}):N.jsx(jR,{availableOptions:e,onSelect:t,form:o})})},jR=({form:t,onSelect:e,availableOptions:n})=>{const{submit:r}=fJ({}),{setSession:i}=T.useContext(yn),{locale:o}=Ci(),{replace:u}=Ur(),l=(h,g)=>{r({service:g,token:h}).then(y=>{i(y.data.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify(y.data));{const w=Si.DEFAULT_ROUTE.replace("{locale}",o||"en");u(w,w)}}).catch(y=>{alert(y)})},d=Wn($r);return N.jsxs("form",{onSubmit:h=>{h.preventDefault(),t.submitForm()},children:[N.jsx("h1",{children:d.welcomeBack}),N.jsxs("p",{children:[d.welcomeBackDescription," "]}),N.jsxs("div",{role:"group","aria-label":"Login method",className:"flex gap-2 login-option-buttons",children:[n.email?N.jsx("button",{id:"using-email",type:"button",onClick:()=>e(Ja.Email),children:d.emailMethod}):null,n.phone?N.jsx("button",{id:"using-phone",type:"button",onClick:()=>e(Ja.Phone),children:d.phoneMethod}):null,n.facebook?N.jsx(hJ,{facebookAppId:n.facebookAppId,continueWithResult:h=>l(h,"facebook")}):null,n.google?N.jsx(gJ,{continueWithResult:h=>l(h,"google")}):null]})]})},gJ=({continueWithResult:t})=>{const e=Wn($r),n=lJ({onSuccess:r=>{t(r.access_token)},scope:["https://www.googleapis.com/auth/userinfo.profile"].join(" ")});return N.jsx(N.Fragment,{children:N.jsxs("button",{id:"using-google",type:"button",onClick:()=>n(),children:[N.jsx("img",{className:"button-icon",src:DO("/common/google.png")}),e.google]})})},yJ=()=>{const t=Wn($r);return N.jsxs(N.Fragment,{children:[N.jsx("h1",{children:t.noAuthenticationMethod}),N.jsx("p",{children:t.noAuthenticationMethodDescription})]})};var vJ=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function cx(){return cx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function V2(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wJ(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,fx(t,e)}function fx(t,e){return fx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},fx(t,e)}var PS=(function(t){wJ(e,t);function e(){var r;return r=t.call(this)||this,r.handleExpired=r.handleExpired.bind(V2(r)),r.handleErrored=r.handleErrored.bind(V2(r)),r.handleChange=r.handleChange.bind(V2(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(V2(r)),r}var n=e.prototype;return n.getCaptchaFunction=function(i){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[i]:this.props.grecaptcha[i]:null},n.getValue=function(){var i=this.getCaptchaFunction("getResponse");return i&&this._widgetId!==void 0?i(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var i=this.getCaptchaFunction("execute");if(i&&this._widgetId!==void 0)return i(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var i=this;return new Promise(function(o,u){i.executionResolve=o,i.executionReject=u,i.execute()})},n.reset=function(){var i=this.getCaptchaFunction("reset");i&&this._widgetId!==void 0&&i(this._widgetId)},n.forceReset=function(){var i=this.getCaptchaFunction("reset");i&&i()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(i){this.props.onChange&&this.props.onChange(i),this.executionResolve&&(this.executionResolve(i),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var i=this.getCaptchaFunction("render");if(i&&this._widgetId===void 0){var o=document.createElement("div");this._widgetId=i(o,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(o)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(i){this.captcha=i},n.render=function(){var i=this.props;i.sitekey,i.onChange,i.theme,i.type,i.tabindex,i.onExpired,i.onErrored,i.size,i.stoken,i.grecaptcha,i.badge,i.hl,i.isolated;var o=bJ(i,vJ);return T.createElement("div",cx({},o,{ref:this.handleRecaptchaRef}))},e})(T.Component);PS.displayName="ReCAPTCHA";PS.propTypes={sitekey:Te.string.isRequired,onChange:Te.func,grecaptcha:Te.object,theme:Te.oneOf(["dark","light"]),type:Te.oneOf(["image","audio"]),tabindex:Te.number,onExpired:Te.func,onErrored:Te.func,size:Te.oneOf(["compact","normal","invisible"]),stoken:Te.string,hl:Te.string,badge:Te.oneOf(["bottomright","bottomleft","inline"]),isolated:Te.bool};PS.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};function dx(){return dx=Object.assign||function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function CJ(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Os={},$J=0;function EJ(t,e){return e=e||{},function(r){var i=r.displayName||r.name||"Component",o=(function(l){CJ(d,l);function d(g,y){var w;return w=l.call(this,g,y)||this,w.state={},w.__scriptURL="",w}var h=d.prototype;return h.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+$J++),this.__scriptLoaderID},h.setupScriptURL=function(){return this.__scriptURL=typeof t=="function"?t():t,this.__scriptURL},h.asyncScriptLoaderHandleLoad=function(y){var w=this;this.setState(y,function(){return w.props.asyncScriptOnLoad&&w.props.asyncScriptOnLoad(w.state)})},h.asyncScriptLoaderTriggerOnScriptLoaded=function(){var y=Os[this.__scriptURL];if(!y||!y.loaded)throw new Error("Script is not loaded.");for(var w in y.observers)y.observers[w](y);delete window[e.callbackName]},h.componentDidMount=function(){var y=this,w=this.setupScriptURL(),v=this.asyncScriptLoaderGetScriptLoaderID(),C=e,E=C.globalName,$=C.callbackName,O=C.scriptId;if(E&&typeof window[E]<"u"&&(Os[w]={loaded:!0,observers:{}}),Os[w]){var _=Os[w];if(_&&(_.loaded||_.errored)){this.asyncScriptLoaderHandleLoad(_);return}_.observers[v]=function(F){return y.asyncScriptLoaderHandleLoad(F)};return}var R={};R[v]=function(F){return y.asyncScriptLoaderHandleLoad(F)},Os[w]={loaded:!1,observers:R};var k=document.createElement("script");k.src=w,k.async=!0;for(var P in e.attributes)k.setAttribute(P,e.attributes[P]);O&&(k.id=O);var L=function(q){if(Os[w]){var Y=Os[w],X=Y.observers;for(var ue in X)q(X[ue])&&delete X[ue]}};$&&typeof window<"u"&&(window[$]=function(){return y.asyncScriptLoaderTriggerOnScriptLoaded()}),k.onload=function(){var F=Os[w];F&&(F.loaded=!0,L(function(q){return $?!1:(q(F),!0)}))},k.onerror=function(){var F=Os[w];F&&(F.errored=!0,L(function(q){return q(F),!0}))},document.body.appendChild(k)},h.componentWillUnmount=function(){var y=this.__scriptURL;if(e.removeOnUnmount===!0)for(var w=document.getElementsByTagName("script"),v=0;v-1&&w[v].parentNode&&w[v].parentNode.removeChild(w[v]);var C=Os[y];C&&(delete C.observers[this.asyncScriptLoaderGetScriptLoaderID()],e.removeOnUnmount===!0&&delete Os[y])},h.render=function(){var y=e.globalName,w=this.props;w.asyncScriptOnLoad;var v=w.forwardedRef,C=SJ(w,["asyncScriptOnLoad","forwardedRef"]);return y&&typeof window<"u"&&(C[y]=typeof window[y]<"u"?window[y]:void 0),C.ref=v,T.createElement(r,C)},d})(T.Component),u=T.forwardRef(function(l,d){return T.createElement(o,dx({},l,{forwardedRef:d}))});return u.displayName="AsyncScriptLoader("+i+")",u.propTypes={asyncScriptOnLoad:Te.func},PB(u,r)}}var hx="onloadcallback",xJ="grecaptcha";function px(){return typeof window<"u"&&window.recaptchaOptions||{}}function OJ(){var t=px(),e=t.useRecaptchaNet?"recaptcha.net":"www.google.com";return t.enterprise?"https://"+e+"/recaptcha/enterprise.js?onload="+hx+"&render=explicit":"https://"+e+"/recaptcha/api.js?onload="+hx+"&render=explicit"}const TJ=EJ(OJ,{callbackName:hx,globalName:xJ,attributes:px().nonce?{nonce:px().nonce}:{}})(PS),_J=({sitekey:t,enabled:e,invisible:n})=>{n=n===void 0?!0:n;const[r,i]=T.useState(),[o,u]=T.useState(!1),l=T.createRef(),d=T.useRef("");return T.useEffect(()=>{var y,w;e&&l.current&&((y=l.current)==null||y.execute(),(w=l.current)==null||w.reset())},[e,l.current]),T.useEffect(()=>{setTimeout(()=>{d.current||u(!0)},2e3)},[]),{value:r,Component:()=>!e||!t?null:N.jsx(N.Fragment,{children:N.jsx(TJ,{sitekey:t,size:n&&!o?"invisible":void 0,ref:l,onChange:y=>{i(y),d.current=y}})}),LegalNotice:()=>!n||!e?null:N.jsxs("div",{className:"mt-5 recaptcha-closure",children:["This site is protected by reCAPTCHA and the Google",N.jsxs("a",{target:"_blank",href:"https://policies.google.com/privacy",children:[" ","Privacy Policy"," "]})," ","and",N.jsxs("a",{target:"_blank",href:"https://policies.google.com/terms",children:[" ","Terms of Service"," "]})," ","apply."]})}};var s1,A0,mf,gf,yf,vf,G2;function Sn(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var AJ=0;function ko(t){return"__private_"+AJ+++"_"+t}const RJ=t=>{const n=zo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),jf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class jf{}s1=jf;jf.URL="/workspace/passport/check";jf.NewUrl=t=>Vo(s1.URL,void 0,t);jf.Method="post";jf.Fetch$=async(t,e,n,r)=>qo(r??s1.NewUrl(t),{method:s1.Method,...n||{}},e);jf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Mo(u)})=>{e=e||(l=>new Mo(l));const u=await s1.Fetch$(n,r,t,o);return Ho(u,l=>{const d=new no;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};jf.Definition={name:"CheckClassicPassport",cliName:"ccp",url:"/workspace/passport/check",method:"post",description:"Checks if a classic passport (email, phone) exists or not, used in multi step authentication",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"securityToken",description:"This can be the value of ReCaptcha2, ReCaptcha3, or generate security image or voice for verification. Will be used based on the configuration.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"flags",description:"Extra information that can be useful actually when doing onboarding. Make sure sensitive information doesn't go out.",type:"slice",primitive:"string"},{name:"otpInfo",description:"If the endpoint automatically triggers a send otp, then it would be holding that information, Also the otp information can become available.",type:"object?",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}]}};var $h=ko("value"),Eh=ko("securityToken"),FC=ko("isJsonAppliable");class Sp{get value(){return Sn(this,$h)[$h]}set value(e){Sn(this,$h)[$h]=String(e)}setValue(e){return this.value=e,this}get securityToken(){return Sn(this,Eh)[Eh]}set securityToken(e){Sn(this,Eh)[Eh]=String(e)}setSecurityToken(e){return this.securityToken=e,this}constructor(e=void 0){if(Object.defineProperty(this,FC,{value:PJ}),Object.defineProperty(this,$h,{writable:!0,value:""}),Object.defineProperty(this,Eh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Sn(this,FC)[FC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.securityToken!==void 0&&(this.securityToken=n.securityToken)}toJSON(){return{value:Sn(this,$h)[$h],securityToken:Sn(this,Eh)[Eh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",securityToken:"securityToken"}}static from(e){return new Sp(e)}static with(e){return new Sp(e)}copyWith(e){return new Sp({...this.toJSON(),...e})}clone(){return new Sp(this.toJSON())}}function PJ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var xh=ko("next"),Oh=ko("flags"),ll=ko("otpInfo"),LC=ko("isJsonAppliable");class Mo{get next(){return Sn(this,xh)[xh]}set next(e){Sn(this,xh)[xh]=e}setNext(e){return this.next=e,this}get flags(){return Sn(this,Oh)[Oh]}set flags(e){Sn(this,Oh)[Oh]=e}setFlags(e){return this.flags=e,this}get otpInfo(){return Sn(this,ll)[ll]}set otpInfo(e){e instanceof Mo.OtpInfo?Sn(this,ll)[ll]=e:Sn(this,ll)[ll]=new Mo.OtpInfo(e)}setOtpInfo(e){return this.otpInfo=e,this}constructor(e=void 0){if(Object.defineProperty(this,LC,{value:IJ}),Object.defineProperty(this,xh,{writable:!0,value:[]}),Object.defineProperty(this,Oh,{writable:!0,value:[]}),Object.defineProperty(this,ll,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Sn(this,LC)[LC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.next!==void 0&&(this.next=n.next),n.flags!==void 0&&(this.flags=n.flags),n.otpInfo!==void 0&&(this.otpInfo=n.otpInfo)}toJSON(){return{next:Sn(this,xh)[xh],flags:Sn(this,Oh)[Oh],otpInfo:Sn(this,ll)[ll]}}toString(){return JSON.stringify(this)}static get Fields(){return{next$:"next",get next(){return"next[:i]"},flags$:"flags",get flags(){return"flags[:i]"},otpInfo$:"otpInfo",get otpInfo(){return Af("otpInfo",Mo.OtpInfo.Fields)}}}static from(e){return new Mo(e)}static with(e){return new Mo(e)}copyWith(e){return new Mo({...this.toJSON(),...e})}clone(){return new Mo(this.toJSON())}}A0=Mo;function IJ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}Mo.OtpInfo=(mf=ko("suspendUntil"),gf=ko("validUntil"),yf=ko("blockedUntil"),vf=ko("secondsToUnblock"),G2=ko("isJsonAppliable"),class{get suspendUntil(){return Sn(this,mf)[mf]}set suspendUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(Sn(this,mf)[mf]=r)}setSuspendUntil(e){return this.suspendUntil=e,this}get validUntil(){return Sn(this,gf)[gf]}set validUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(Sn(this,gf)[gf]=r)}setValidUntil(e){return this.validUntil=e,this}get blockedUntil(){return Sn(this,yf)[yf]}set blockedUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(Sn(this,yf)[yf]=r)}setBlockedUntil(e){return this.blockedUntil=e,this}get secondsToUnblock(){return Sn(this,vf)[vf]}set secondsToUnblock(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(Sn(this,vf)[vf]=r)}setSecondsToUnblock(e){return this.secondsToUnblock=e,this}constructor(e=void 0){if(Object.defineProperty(this,G2,{value:NJ}),Object.defineProperty(this,mf,{writable:!0,value:0}),Object.defineProperty(this,gf,{writable:!0,value:0}),Object.defineProperty(this,yf,{writable:!0,value:0}),Object.defineProperty(this,vf,{writable:!0,value:0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Sn(this,G2)[G2](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:Sn(this,mf)[mf],validUntil:Sn(this,gf)[gf],blockedUntil:Sn(this,yf)[yf],secondsToUnblock:Sn(this,vf)[vf]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(e){return new A0.OtpInfo(e)}static with(e){return new A0.OtpInfo(e)}copyWith(e){return new A0.OtpInfo({...this.toJSON(),...e})}clone(){return new A0.OtpInfo(this.toJSON())}});function NJ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const MJ=({method:t})=>{var _,R,k;const e=Wn($r),{goBack:n,push:r,state:i}=Ur(),{locale:o}=Ci(),u=RJ(),l=(i==null?void 0:i.canGoBack)!==!1;let d=!1,h="";const{data:g}=$I({});g instanceof no&&g.data.item instanceof $f&&(d=(_=g==null?void 0:g.data)==null?void 0:_.item.enabledRecaptcha2,h=(k=(R=g==null?void 0:g.data)==null?void 0:R.item)==null?void 0:k.recaptcha2ClientKey);const y=P=>{u.mutateAsync(new Sp(P)).then(L=>{var Y;const{next:F,flags:q}=(Y=L==null?void 0:L.data)==null?void 0:Y.item;F.includes("otp")&&F.length===1?r(`/${o}/selfservice/otp`,void 0,{value:P.value,type:t}):F.includes("signin-with-password")?r(`/${o}/selfservice/password`,void 0,{value:P.value,next:F,canContinueOnOtp:F==null?void 0:F.includes("otp"),flags:q}):F.includes("create-with-password")&&r(`/${o}/selfservice/complete`,void 0,{value:P.value,type:t,next:F,flags:q})}).catch(L=>{w==null||w.setErrors(ny(L))})},w=Nl({initialValues:{},onSubmit:y});let v=e.continueWithEmail,C=e.continueWithEmailDescription;t==="phone"&&(v=e.continueWithPhone,C=e.continueWithPhoneDescription);const{Component:E,LegalNotice:$,value:O}=_J({enabled:d,sitekey:h});return T.useEffect(()=>{!d||!O||w.setFieldValue(Sp.Fields.securityToken,O)},[O]),{title:v,mutation:u,canGoBack:l,form:w,enabledRecaptcha2:d,recaptcha2ClientKey:h,description:C,Recaptcha:E,LegalNotice:$,s:e,submit:y,goBack:n}};var u1;function _n(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var kJ=0;function Ds(t){return"__private_"+kJ+++"_"+t}const bN=t=>{const n=zo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Bf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Bf{}u1=Bf;Bf.URL="/passports/signin/classic";Bf.NewUrl=t=>Vo(u1.URL,void 0,t);Bf.Method="post";Bf.Fetch$=async(t,e,n,r)=>qo(r??u1.NewUrl(t),{method:u1.Method,...n||{}},e);Bf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Cp(u)})=>{e=e||(l=>new Cp(l));const u=await u1.Fetch$(n,r,t,o);return Ho(u,l=>{const d=new no;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Bf.Definition={name:"ClassicSignin",cliName:"in",url:"/passports/signin/classic",method:"post",description:"Signin publicly to and account using class passports (email, password)",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"Accepts login with totp code. If enabled, first login would return a success response with next[enter-totp] value and ui can understand that user needs to be navigated into the screen other screen.",type:"string"},{name:"sessionSecret",description:"Session secret when logging in to the application requires more steps to complete.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"},{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"totpUrl",description:"In case the account doesn't have totp, but enforced by installation, this value will contain the link",type:"string"},{name:"sessionSecret",description:"Returns a secret session if the authentication requires more steps.",type:"string"}]}};var Th=Ds("value"),_h=Ds("password"),Ah=Ds("totpCode"),Rh=Ds("sessionSecret"),UC=Ds("isJsonAppliable");class Is{get value(){return _n(this,Th)[Th]}set value(e){_n(this,Th)[Th]=String(e)}setValue(e){return this.value=e,this}get password(){return _n(this,_h)[_h]}set password(e){_n(this,_h)[_h]=String(e)}setPassword(e){return this.password=e,this}get totpCode(){return _n(this,Ah)[Ah]}set totpCode(e){_n(this,Ah)[Ah]=String(e)}setTotpCode(e){return this.totpCode=e,this}get sessionSecret(){return _n(this,Rh)[Rh]}set sessionSecret(e){_n(this,Rh)[Rh]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}constructor(e=void 0){if(Object.defineProperty(this,UC,{value:DJ}),Object.defineProperty(this,Th,{writable:!0,value:""}),Object.defineProperty(this,_h,{writable:!0,value:""}),Object.defineProperty(this,Ah,{writable:!0,value:""}),Object.defineProperty(this,Rh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(_n(this,UC)[UC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret)}toJSON(){return{value:_n(this,Th)[Th],password:_n(this,_h)[_h],totpCode:_n(this,Ah)[Ah],sessionSecret:_n(this,Rh)[Rh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode",sessionSecret:"sessionSecret"}}static from(e){return new Is(e)}static with(e){return new Is(e)}copyWith(e){return new Is({...this.toJSON(),...e})}clone(){return new Is(this.toJSON())}}function DJ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var cl=Ds("session"),Ph=Ds("next"),Ih=Ds("totpUrl"),Nh=Ds("sessionSecret"),jC=Ds("isJsonAppliable"),y0=Ds("lateInitFields");class Cp{get session(){return _n(this,cl)[cl]}set session(e){e instanceof fr?_n(this,cl)[cl]=e:_n(this,cl)[cl]=new fr(e)}setSession(e){return this.session=e,this}get next(){return _n(this,Ph)[Ph]}set next(e){_n(this,Ph)[Ph]=e}setNext(e){return this.next=e,this}get totpUrl(){return _n(this,Ih)[Ih]}set totpUrl(e){_n(this,Ih)[Ih]=String(e)}setTotpUrl(e){return this.totpUrl=e,this}get sessionSecret(){return _n(this,Nh)[Nh]}set sessionSecret(e){_n(this,Nh)[Nh]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}constructor(e=void 0){if(Object.defineProperty(this,y0,{value:LJ}),Object.defineProperty(this,jC,{value:FJ}),Object.defineProperty(this,cl,{writable:!0,value:void 0}),Object.defineProperty(this,Ph,{writable:!0,value:[]}),Object.defineProperty(this,Ih,{writable:!0,value:""}),Object.defineProperty(this,Nh,{writable:!0,value:""}),e==null){_n(this,y0)[y0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(_n(this,jC)[jC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),n.next!==void 0&&(this.next=n.next),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),_n(this,y0)[y0](e)}toJSON(){return{session:_n(this,cl)[cl],next:_n(this,Ph)[Ph],totpUrl:_n(this,Ih)[Ih],sessionSecret:_n(this,Nh)[Nh]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Af("session",fr.Fields)},next$:"next",get next(){return"next[:i]"},totpUrl:"totpUrl",sessionSecret:"sessionSecret"}}static from(e){return new Cp(e)}static with(e){return new Cp(e)}copyWith(e){return new Cp({...this.toJSON(),...e})}clone(){return new Cp(this.toJSON())}}function FJ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function LJ(t={}){const e=t;e.session instanceof fr||(this.session=new fr(e.session||{}))}const BR=({method:t})=>{const{description:e,title:n,goBack:r,mutation:i,form:o,canGoBack:u,LegalNotice:l,Recaptcha:d,s:h}=MJ({method:t});return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:n}),N.jsx("p",{children:e}),N.jsx(Go,{query:i}),N.jsx(jJ,{form:o,method:t,mutation:i}),N.jsx(d,{}),u?N.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:r,children:h.chooseAnotherMethod}):null,N.jsx(l,{})]})},UJ=t=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),jJ=({form:t,mutation:e,method:n})=>{var u,l,d;let r="email";n===Ja.Phone&&(r="phonenumber");let i=!((u=t==null?void 0:t.values)!=null&&u.value);Ja.Email===n&&(i=!UJ((l=t==null?void 0:t.values)==null?void 0:l.value));const o=Wn($r);return N.jsxs("form",{onSubmit:h=>{h.preventDefault(),t.submitForm()},children:[N.jsx(Do,{autoFocus:!0,type:r,id:"value-input",dir:"ltr",value:(d=t==null?void 0:t.values)==null?void 0:d.value,errorMessage:t==null?void 0:t.errors.value,onChange:h=>t.setFieldValue(Is.Fields.value,h,!1)}),N.jsx(Ff,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:i,children:o.continue})]})};var BJ=Object.defineProperty,zw=Object.getOwnPropertySymbols,wN=Object.prototype.hasOwnProperty,SN=Object.prototype.propertyIsEnumerable,qR=(t,e,n)=>e in t?BJ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mx=(t,e)=>{for(var n in e||(e={}))wN.call(e,n)&&qR(t,n,e[n]);if(zw)for(var n of zw(e))SN.call(e,n)&&qR(t,n,e[n]);return t},gx=(t,e)=>{var n={};for(var r in t)wN.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&zw)for(var r of zw(t))e.indexOf(r)<0&&SN.call(t,r)&&(n[r]=t[r]);return n};/** + flat mode`,widgets:"ویدجت ها"},widgets:{noItems:"هیچ ویدجتی در این صفحه وجود ندارد."},wokspaces:{body:"بدن",cascadeNotificationConfig:"پیکربندی اعلان آبشار در فضاهای کاری فرعی",cascadeNotificationConfigHint:"با بررسی این مورد، تمام فضاهای کاری بعدی از این ارائه دهنده ایمیل برای ارسال ایمیل استفاده خواهند کرد. برای محصولاتی که به‌عنوان سرویس آنلاین اجرا می‌شوند، معمولاً می‌خواهید که فضای کاری والد سرور ایمیل را پیکربندی کند. شما ممکن است علامت این را در محصولات بزرگ‌تر که به صورت جهانی اجرا می‌شوند، بردارید و هر فضای کاری باید فضاهای فرعی و پیکربندی ایمیل خود را داشته باشد.",config:"تنظیم تیم",configurateWorkspaceNotification:"سرویس های اطلاع رسانی را پیکربندی کنید",confirmEmailSender:"ثبت نام کاربر ایمیل حساب را تایید کنید",createNewWorkspace:"فضای کاری جدید",customizedTemplate:"ویرایش قالب",disablePublicSignup:"غیر فعال کردن ثبت نام ها",disablePublicSignupHint:"با انتخاب این گزینه هیچ کس نمی تواند به این تیم یا زیر مجموعه های این تیم با فرم ثبت نام آنلاین به صورت خودکار عضو شود.",editWorkspae:"ویرایش فضای کاری",emailSendingConfig:"تنظیمات ارسال ایمیل",emailSendingConfigHint:"نحوه ارسال ایمیل ها و قالب های آنها و ارسال کننده ها را کنترل کنید.",emailSendingConfiguration:"پیکربندی ارسال ایمیل",emailSendingConfigurationHint:"نحوه ارسال ایمیل های سیستمی را کنترل کنید، پیام را سفارشی کنید و غیره.",forceEmailConfigToSubWorkspaces:"استفاده از این تنظیمات برای تیم های زیر مجموعه اجباری باشد",forceEmailConfigToSubWorkspacesHint:"با انتخاب این گزینه، همه تیم های زیر مجموعه باید از همین قالب ها برای ارسال ایمیل استفاده کنند. اطلاعات مختص به این تیم را در این قالب ها قرار ندهید.",forceSubWorkspaceUseConfig:"فضاهای کاری فرعی را مجبور کنید از این پیکربندی ارائه دهنده استفاده کنند",forgetPasswordSender:"دستورالعمل های رمز عبور را فراموش کنید",generalMailProvider:"سرویس اصلی ارسال ایمیل",invite:{createInvitation:"ایجاد دعوت نامه",editInvitation:"ویرایش دعوت نامه",email:"آدرس ایمیل",emailHint:"آدرس ایمیل دعوت کننده، آنها پیوند را با استفاده از این ایمیل دریافت خواهند کرد",firstName:"نام کوچک",firstNameHint:"نام دعوت شده را بنویسید",forcePassport:"کاربر را مجبور کنید فقط با ایمیل یا شماره تلفن تعریف شده ثبت نام کند یا بپیوندد",lastName:"نام خانوادگی",lastNameHint:"نام خانوادگی دعوت شده را بنویسید",name:"نام",phoneNumber:"شماره تلفن",phoneNumberHint:"شماره تلفن دعوت شوندگان، اگر شماره آنها را نیز ارائه دهید، از طریق پیامک دعوتنامه دریافت خواهند کرد",role:"نقش",roleHint:"نقش(هایی) را که می خواهید به کاربر هنگام پیوستن به فضای کاری بدهید، انتخاب کنید. این را می توان بعدا نیز تغییر داد.",roleName:"نام نقش"},inviteToWorkspace:"دعوت به فضای کاری",joinKeyWorkspace:"فضای کار",joinKeyWorkspaceHint:"فضای کاری که برای عموم در دسترس خواهد بود",mailServerConfiguration:"پیکربندی سرور ایمیل",name:"نام",notification:{dialogTitle:"قالب نامه را ویرایش کنید"},publicSignup:"ثبت نام آنلاین و عمومی",publicSignupHint:"این نرم افزار به شما اجازه کنترل نحوه ارسال ایمیل و پیامک، و همچنین نحوه عضو گیری آنلاین را میدهد. در این قسمت میتوانید عضو شدن افراد و ساختن تیم های جدید را کنترل کنید",resetToDefault:"تنظیم مجدد به حالت پیش فرض",role:"نقش",roleHint:"نقش",sender:"فرستنده",sidetitle:"فضاهای کاری",slug:"اسلاگ",title:"عنوان",type:"تایپ کنید",workspaceName:"نام فضای کاری",workspaceNameHint:"نام فضای کاری را وارد کنید",workspaceTypeSlug:"آدرس اسلاگ",workspaceTypeSlugHint:"آدرسی که به صورت عمومی در دسترس خواهد بود و وقتی کسی از این طریق ثبت نام کند رول مشخصی دریافت میکند.",workspaceTypeTitle:"عنوان",workspaceTypeTitleHint:"عنوان ورک اسپیس"}},Q8={en:jI,fa:rG};function yn(){const{locale:t}=$i();return!t||!Q8[t]?jI:Q8[t]}function X8(t){let e=(t||"").replaceAll(/fbtusid_____(.*)_____/g,Ci.REMOTE_SERVICE+"files/$1");return e=(e||"").replaceAll(/directasset_____(.*)_____/g,Ci.REMOTE_SERVICE+"$1"),e}function iG(){return{compiler:"unknown"}}function aG(){return{directPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?X8(n.uniqueId):`${Ci.REMOTE_SERVICE}files-inline/${n==null?void 0:n.diskPath}`,downloadPath:n=>!(n!=null&&n.diskPath)&&(n!=null&&n.uniqueId)?X8(n.uniqueId):`${Ci.REMOTE_SERVICE}files/${n==null?void 0:n.diskPath}`}}const MS=({children:t,isActive:e,skip:n,activeClassName:r,inActiveClassName:i,...o})=>{var y;const u=Lr(),{locale:l}=$i(),d=o.locale||l||"en",{compiler:h}=iG();let g=(o==null?void 0:o.href)||(u==null?void 0:u.asPath)||"";return typeof g=="string"&&(g!=null&&g.indexOf)&&g.indexOf("http")===0&&(n=!0),typeof g=="string"&&d&&!n&&!g.startsWith(".")&&(g=g?`/${l}`+g:(y=u.pathname)==null?void 0:y.replace("[locale]",d)),e&&(o.className=`${o.className||""} ${r||"active"}`),!e&&i&&(o.className=`${o.className||""} ${i}`),N.jsx(tG,{...o,href:g,compiler:h,children:t})};function oG(){const{session:t,checked:e}=T.useContext(Sn),[n,r]=T.useState(!1),i=e&&!t,[o,u]=T.useState(!1);return T.useEffect(()=>{e&&t&&(u(!0),setTimeout(()=>{r(!0)},500))},[e,t]),{session:t,checked:e,needsAuthentication:i,loadComplete:n,setLoadComplete:r,isFading:o}}const kS=({label:t,getInputRef:e,displayValue:n,Icon:r,children:i,errorMessage:o,validMessage:u,value:l,hint:d,onClick:h,onChange:g,className:y,focused:w=!1,hasAnimation:v})=>N.jsxs("div",{style:{position:"relative"},className:Ho("mb-3",y),children:[t&&N.jsx("label",{className:"form-label",children:t}),i,N.jsx("div",{className:"form-text",children:d}),N.jsx("div",{className:"invalid-feedback",children:o}),N.jsx("div",{className:"valid-feedback",children:u})]}),Uf=t=>{const{placeholder:e,label:n,getInputRef:r,secureTextEntry:i,Icon:o,isSubmitting:u,errorMessage:l,onChange:d,value:h,disabled:g,type:y,focused:w=!1,className:v,mutation:C,...E}=t,$=C==null?void 0:C.isLoading;return N.jsx("button",{onClick:t.onClick,type:"submit",disabled:g||$,className:Ho("btn mb-3",`btn-${y||"primary"}`,v),...t,children:t.children||t.label})};function sG(t,e,n={}){var r,i,o,u,l,d,h,g,y,w;if(e.isError){if(((r=e.error)==null?void 0:r.status)===404)return t.notfound+"("+n.remote+")";if(e.error.message==="Failed to fetch")return t.networkError+"("+n.remote+")";if((o=(i=e.error)==null?void 0:i.error)!=null&&o.messageTranslated)return(l=(u=e.error)==null?void 0:u.error)==null?void 0:l.messageTranslated;if((h=(d=e.error)==null?void 0:d.error)!=null&&h.message)return(y=(g=e.error)==null?void 0:g.error)==null?void 0:y.message;let v=(w=e.error)==null?void 0:w.toString();return(v+"").includes("object Object")&&(v="There is an unknown error while getting information, please contact your software provider if issue persists."),v}return null}function Wo({query:t,children:e}){var h,g,y,w;const n=yn(),{options:r,setOverrideRemoteUrl:i,overrideRemoteUrl:o}=T.useContext(Sn);let u=!1,l="80";try{if(r!=null&&r.prefix){const v=new URL(r==null?void 0:r.prefix);l=v.port||(v.protocol==="https:"?"443":"80"),u=(location.host.includes("192.168")||location.host.includes("127.0"))&&((g=(h=t.error)==null?void 0:h.message)==null?void 0:g.includes("Failed to fetch"))}}catch{}const d=()=>{i("http://"+location.hostname+":"+l+"/")};return t?N.jsxs(N.Fragment,{children:[t.isError&&N.jsxs("div",{className:"basic-error-box fadein",children:[sG(n,t,{remote:r.prefix})||"",u&&N.jsx("button",{className:"btn btn-sm btn-secondary",onClick:d,children:"Auto-reroute"}),o&&N.jsx("button",{className:"btn btn-sm btn-secondary",onClick:()=>i(void 0),children:"Reset"}),N.jsx("ul",{children:(((w=(y=t.error)==null?void 0:y.error)==null?void 0:w.errors)||[]).map(v=>N.jsxs("li",{children:[v.messageTranslated||v.message," (",v.location,")"]},v.location))}),t.refetch&&N.jsx(Uf,{onClick:t.refetch,children:"Retry"})]}),!t.isError||t.isPreviousData?e:null]}):null}const uG=t=>{const{children:e,forceActive:n,...r}=t,{locale:i,asPath:o}=$i(),u=T.Children.only(e),l=o===`/${i}`+r.href||o+"/"==`/${i}`+r.href||n;return t.disabled?N.jsx("span",{className:"disabled",children:u}):N.jsx(MS,{...r,isActive:l,children:u})};function Kn(t){const{locale:e}=$i();return!e||e==="en"?t:t["$"+e]?t["$"+e]:t}const lG={setupTotpDescription:'In order to complete account registeration, you need to scan the following code using "Microsoft authenticator" or "Google Authenticator". After that, you need to enter the 6 digit code from the app here.',welcomeBackDescription:"Select any option to continue to access your account.",google:"Google",selectWorkspace:"You have multiple workspaces associated with your account. Select one to continue.",completeYourAccount:"Complete your account",completeYourAccountDescription:"Complete the information below to complete your signup",registerationNotPossibleLine1:"In this project there are no workspace types that can be used publicly to create account.",enterPassword:"Enter Password",welcomeBack:"Welcome back",emailMethod:"Email",phoneMethod:"Phone number",noAuthenticationMethod:"Authentication Currently Unavailable",firstName:"First name",registerationNotPossible:"Registeration not possible.",setupDualFactor:"Setup Dual Factor",cancelStep:"Cancel and try another way.",enterOtp:"Enter OTP",skipTotpInfo:"You can setup this any time later, by visiting your account security section.",continueWithEmailDescription:"Enter your email address to continue.",enterOtpDescription:"We have sent you an one time password, please enter to continue.",continueWithEmail:"Continue with Email",continueWithPhone:"Continue with Phone",registerationNotPossibleLine2:"Contact the service administrator to create your account for you.",useOneTimePassword:"Use one time password instead",changePassword:{pass1Label:"Password",pass2Label:"Repeat password",submit:"Change Password",title:"Change password",description:"In order to change your password, enter new password twice same in the fields"},continueWithPhoneDescription:"Enter your phone number to continue.",lastName:"Last name",password:"Password",continue:"Continue",anotherAccount:"Choose another account",noAuthenticationMethodDescription:"Sign-in and registration are not available in your region at this time. If you believe this is an error or need access, please contact the administrator.",home:{title:"Account & Profile",description:"Manage your account, emails, passwords and more",passports:"Passports",passportsTitle:"Passports",passportsDescription:"View emails, phone numbers associated with your account."},enterTotp:"Enter Totp Code",enterTotpDescription:"Open your authenticator app and enter the 6 digits.",setupTotp:"Setup Dual Factor",skipTotpButton:"Skip for now",userPassports:{title:"Passports",description:"You can see a list of passports that you can use to authenticate into the system here.",add:"Add new passport",remove:"Remove passport"},selectWorkspaceTitle:"Select workspace",chooseAnotherMethod:"Choose another method",enterPasswordDescription:"Enter your password to continue authorizing your account."},cG={registerationNotPossibleLine2:"Skontaktuj się z administratorem usługi, aby utworzył konto dla Ciebie.",chooseAnotherMethod:"Wybierz inną metodę",continue:"Kontynuuj",continueWithPhone:"Kontynuuj za pomocą numeru telefonu",enterPassword:"Wprowadź hasło",noAuthenticationMethod:"Uwierzytelnianie obecnie niedostępne",completeYourAccountDescription:"Uzupełnij poniższe informacje, aby zakończyć rejestrację",registerationNotPossible:"Rejestracja niemożliwa.",selectWorkspace:"Masz wiele przestrzeni roboczych powiązanych z Twoim kontem. Wybierz jedną, aby kontynuować.",welcomeBack:"Witamy ponownie",enterOtp:"Wprowadź jednorazowy kod",enterPasswordDescription:"Wprowadź swoje hasło, aby kontynuować autoryzację konta.",userPassports:{add:"Dodaj nowy paszport",description:"Tutaj możesz zobaczyć listę paszportów, które możesz wykorzystać do uwierzytelniania w systemie.",remove:"Usuń paszport",title:"Paszporty"},registerationNotPossibleLine1:"W tym projekcie nie ma dostępnych typów przestrzeni roboczych do publicznego tworzenia konta.",cancelStep:"Anuluj i spróbuj innej metody.",continueWithEmail:"Kontynuuj za pomocą e-maila",continueWithPhoneDescription:"Wprowadź swój numer telefonu, aby kontynuować.",emailMethod:"E-mail",enterTotp:"Wprowadź kod TOTP",noAuthenticationMethodDescription:"Logowanie i rejestracja są obecnie niedostępne w Twoim regionie. Jeśli uważasz, że to błąd lub potrzebujesz dostępu, skontaktuj się z administratorem.",password:"Hasło",anotherAccount:"Wybierz inne konto",enterTotpDescription:"Otwórz aplikację uwierzytelniającą i wprowadź 6-cyfrowy kod.",firstName:"Imię",phoneMethod:"Numer telefonu",setupDualFactor:"Skonfiguruj uwierzytelnianie dwuskładnikowe",setupTotp:"Skonfiguruj uwierzytelnianie dwuskładnikowe",skipTotpInfo:"Możesz skonfigurować to później, odwiedzając sekcję bezpieczeństwa konta.",welcomeBackDescription:"Wybierz dowolną opcję, aby kontynuować dostęp do swojego konta.",changePassword:{pass1Label:"Hasło",pass2Label:"Powtórz hasło",submit:"Zmień hasło",title:"Zmień hasło",description:"Aby zmienić hasło, wprowadź nowe hasło dwukrotnie w polach poniżej"},lastName:"Nazwisko",useOneTimePassword:"Użyj jednorazowego hasła zamiast tego",completeYourAccount:"Uzupełnij swoje konto",continueWithEmailDescription:"Wprowadź swój adres e-mail, aby kontynuować.",enterOtpDescription:"Wysłaliśmy jednorazowy kod, wprowadź go, aby kontynuować.",google:"Google",home:{description:"Zarządzaj swoim kontem, e-mailami, hasłami i innymi",passports:"Paszporty",passportsDescription:"Zobacz e-maile i numery telefonów powiązane z Twoim kontem.",passportsTitle:"Paszporty",title:"Konto i profil"},selectWorkspaceTitle:"Wybierz przestrzeń roboczą",setupTotpDescription:"Aby zakończyć rejestrację konta, zeskanuj poniższy kod za pomocą aplikacji „Microsoft Authenticator” lub „Google Authenticator”. Następnie wprowadź tutaj 6-cyfrowy kod z aplikacji.",skipTotpButton:"Pomiń na razie"},$r={...lG,$pl:cG};var d1;function Ya(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var fG=0;function H1(t){return"__private_"+fG+++"_"+t}const dG=t=>{const e=oo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),Ol.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Go({queryKey:[Ol.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class Ol{}d1=Ol;Ol.URL="/user/passports";Ol.NewUrl=t=>so(d1.URL,void 0,t);Ol.Method="get";Ol.Fetch$=async(t,e,n,r)=>io(r??d1.NewUrl(t),{method:d1.Method,...n||{}},e);Ol.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Ep(u)})=>{e=e||(l=>new Ep(l));const u=await d1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Ol.Definition={name:"UserPassports",url:"/user/passports",method:"get",description:"Returns list of passports belongs to an specific user.",out:{envelope:"GResponse",fields:[{name:"value",description:"The passport value, such as email address or phone number",type:"string"},{name:"uniqueId",description:"Unique identifier of the passport to operate some action on top of it",type:"string"},{name:"type",description:"The type of the passport, such as email, phone number",type:"string"},{name:"totpConfirmed",description:"Regardless of the secret, user needs to confirm his secret. There is an extra action to confirm user totp, could be used after signup or prior to login.",type:"bool"}]}};var bh=H1("value"),wh=H1("uniqueId"),Sh=H1("type"),Ch=H1("totpConfirmed"),LC=H1("isJsonAppliable");class Ep{get value(){return Ya(this,bh)[bh]}set value(e){Ya(this,bh)[bh]=String(e)}setValue(e){return this.value=e,this}get uniqueId(){return Ya(this,wh)[wh]}set uniqueId(e){Ya(this,wh)[wh]=String(e)}setUniqueId(e){return this.uniqueId=e,this}get type(){return Ya(this,Sh)[Sh]}set type(e){Ya(this,Sh)[Sh]=String(e)}setType(e){return this.type=e,this}get totpConfirmed(){return Ya(this,Ch)[Ch]}set totpConfirmed(e){Ya(this,Ch)[Ch]=!!e}setTotpConfirmed(e){return this.totpConfirmed=e,this}constructor(e=void 0){if(Object.defineProperty(this,LC,{value:hG}),Object.defineProperty(this,bh,{writable:!0,value:""}),Object.defineProperty(this,wh,{writable:!0,value:""}),Object.defineProperty(this,Sh,{writable:!0,value:""}),Object.defineProperty(this,Ch,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Ya(this,LC)[LC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.type!==void 0&&(this.type=n.type),n.totpConfirmed!==void 0&&(this.totpConfirmed=n.totpConfirmed)}toJSON(){return{value:Ya(this,bh)[bh],uniqueId:Ya(this,wh)[wh],type:Ya(this,Sh)[Sh],totpConfirmed:Ya(this,Ch)[Ch]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",uniqueId:"uniqueId",type:"type",totpConfirmed:"totpConfirmed"}}static from(e){return new Ep(e)}static with(e){return new Ep(e)}copyWith(e){return new Ep({...this.toJSON(),...e})}clone(){return new Ep(this.toJSON())}}function hG(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const pG=()=>{const t=Kn($r),{goBack:e}=Lr(),n=dG({}),{signout:r}=T.useContext(Sn);return{goBack:e,signout:r,query:n,s:t}},mG=({})=>{var i,o;const{query:t,s:e,signout:n}=pG(),r=((o=(i=t==null?void 0:t.data)==null?void 0:i.data)==null?void 0:o.items)||[];return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:e.userPassports.title}),N.jsx("p",{children:e.userPassports.description}),N.jsx(Wo,{query:t}),N.jsx(gG,{passports:r}),N.jsx("button",{className:"btn btn-danger mt-3 w-100",onClick:n,children:"Signout"})]})},gG=({passports:t})=>{const e=Kn($r);return N.jsx("div",{className:"d-flex ",children:t.map(n=>N.jsxs("div",{className:"card p-3 w-100",children:[N.jsx("h3",{className:"card-title",children:n.type.toUpperCase()}),N.jsx("p",{className:"card-text",children:n.value}),N.jsxs("p",{className:"text-muted",children:["TOTP: ",n.totpConfirmed?"Yes":"No"]}),N.jsx(uG,{href:`../change-password/${n.uniqueId}`,children:N.jsx("button",{className:"btn btn-primary",children:e.changePassword.submit})})]},n.uniqueId))})},yG={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-468]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};var UC={exports:{}},jC,Z8;function vG(){if(Z8)return jC;Z8=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jC=t,jC}var BC,eR;function bG(){if(eR)return BC;eR=1;var t=vG();function e(){}function n(){}return n.resetWarningCache=e,BC=function(){function r(u,l,d,h,g,y){if(y!==t){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},BC}var tR;function wG(){return tR||(tR=1,UC.exports=bG()()),UC.exports}var Ue=wG();const Te=Mf(Ue);function SG(t,e,n){switch(n){case"Backspace":e>0&&(t=t.slice(0,e-1)+t.slice(e),e--);break;case"Delete":t=t.slice(0,e)+t.slice(e+1);break}return{value:t,caret:e}}function CG(t,e,n){for(var r={},i="",o=0,u=0;uu&&(o=i.length))),u++}e===void 0&&(o=i.length);var d={value:i,caret:o};return d}function $G(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=EG(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EG(t,e){if(t){if(typeof t=="string")return nR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nR(t,e)}}function nR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&arguments[2]!==void 0?arguments[2]:"x",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",i=t.length,o=ix("(",t),u=ix(")",t),l=o-u;l>0&&i=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TG(t,e){if(t){if(typeof t=="string")return rR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rR(t,e)}}function rR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!t)return function(i){return{text:i}};var r=ix(e,t);return function(i){if(!i)return{text:"",template:t};for(var o=0,u="",l=OG(t.split("")),d;!(d=l()).done;){var h=d.value;if(h!==e){u+=h;continue}if(u+=i[o],o++,o===i.length&&i.length=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function qG(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function HG(t){var e=t.ref,n=t.parse,r=t.format,i=t.value,o=t.defaultValue,u=t.controlled,l=u===void 0?!0:u,d=t.onChange,h=t.onKeyDown,g=BG(t,UG),y=T.useRef(),w=T.useCallback(function($){y.current=$,e&&(typeof e=="function"?e($):e.current=$)},[e]),v=T.useCallback(function($){return DG($,y.current,n,r,d)},[y,n,r,d]),C=T.useCallback(function($){if(h&&h($),!$.defaultPrevented)return FG($,y.current,n,r,d)},[y,n,r,d,h]),E=_g(_g({},g),{},{ref:w,onChange:v,onKeyDown:C});return l?_g(_g({},E),{},{value:r(oR(i)?"":i).text}):_g(_g({},E),{},{defaultValue:r(oR(o)?"":o).text})}function oR(t){return t==null}var zG=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function sR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function VG(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function KG(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function Yw(t,e){var n=t.inputComponent,r=n===void 0?"input":n,i=t.parse,o=t.format,u=t.value,l=t.defaultValue,d=t.onChange,h=t.controlled,g=t.onKeyDown,y=t.type,w=y===void 0?"text":y,v=WG(t,zG),C=HG(VG({ref:e,parse:i,format:o,value:u,defaultValue:l,onChange:d,controlled:h,onKeyDown:g,type:w},v));return Ae.createElement(r,C)}Yw=Ae.forwardRef(Yw);Yw.propTypes={parse:Te.func.isRequired,format:Te.func.isRequired,inputComponent:Te.elementType,type:Te.string,value:Te.string,defaultValue:Te.string,onChange:Te.func,controlled:Te.bool,onKeyDown:Te.func,onCut:Te.func,onPaste:Te.func};function uR(t,e){t=t.split("-"),e=e.split("-");for(var n=t[0].split("."),r=e[0].split("."),i=0;i<3;i++){var o=Number(n[i]),u=Number(r[i]);if(o>u)return 1;if(u>o)return-1;if(!isNaN(o)&&isNaN(u))return 1;if(isNaN(o)&&!isNaN(u))return-1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]o?"TOO_SHORT":i[i.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function aW(t,e,n){if(e===void 0&&(e={}),n=new Dr(n),e.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!n.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));n.country(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}}if(n.possibleLengths())return GI(t.phone||t.nationalNumber,n);if(t.countryCallingCode&&n.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function GI(t,e){switch(LS(t,e)){case"IS_POSSIBLE":return!0;default:return!1}}function Tl(t,e){return t=t||"",new RegExp("^(?:"+e+")$").test(t)}function oW(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=sW(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sW(t,e){if(t){if(typeof t=="string")return dR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dR(t,e)}}function dR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0}var VO=2,dW=17,hW=3,la="0-90-9٠-٩۰-۹",pW="-‐-―−ー-",mW="//",gW="..",yW="  ­​⁠ ",vW="()()[]\\[\\]",bW="~⁓∼~",ks="".concat(pW).concat(mW).concat(gW).concat(yW).concat(vW).concat(bW),US="++",wW=new RegExp("(["+la+"])");function WI(t,e,n,r){if(e){var i=new Dr(r);i.selectNumberingPlan(e,n);var o=new RegExp(i.IDDPrefix());if(t.search(o)===0){t=t.slice(t.match(o)[0].length);var u=t.match(wW);if(!(u&&u[1]!=null&&u[1].length>0&&u[1]==="0"))return t}}}function sx(t,e){if(t&&e.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(t);if(r){var i,o,u=r.length-1,l=u>0&&r[u];if(e.nationalPrefixTransformRule()&&l)i=t.replace(n,e.nationalPrefixTransformRule()),u>1&&(o=r[1]);else{var d=r[0];i=t.slice(d.length),l&&(o=r[1])}var h;if(l){var g=t.indexOf(r[1]),y=t.slice(0,g);y===e.numberingPlan.nationalPrefix()&&(h=e.numberingPlan.nationalPrefix())}else h=r[0];return{nationalNumber:i,nationalPrefix:h,carrierCode:o}}}return{nationalNumber:t}}function ux(t,e){var n=sx(t,e),r=n.carrierCode,i=n.nationalNumber;if(i!==t){if(!SW(t,i,e))return{nationalNumber:t};if(e.possibleLengths()&&!CW(i,e))return{nationalNumber:t}}return{nationalNumber:i,carrierCode:r}}function SW(t,e,n){return!(Tl(t,n.nationalNumberPattern())&&!Tl(e,n.nationalNumberPattern()))}function CW(t,e){switch(LS(t,e)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function KI(t,e,n,r){var i=e?jf(e,r):n;if(t.indexOf(i)===0){r=new Dr(r),r.selectNumberingPlan(e,n);var o=t.slice(i.length),u=ux(o,r),l=u.nationalNumber,d=ux(t,r),h=d.nationalNumber;if(!Tl(h,r.nationalNumberPattern())&&Tl(l,r.nationalNumberPattern())||LS(h,r)==="TOO_LONG")return{countryCallingCode:i,number:o}}return{number:t}}function GO(t,e,n,r){if(!t)return{};var i;if(t[0]!=="+"){var o=WI(t,e,n,r);if(o&&o!==t)i=!0,t="+"+o;else{if(e||n){var u=KI(t,e,n,r),l=u.countryCallingCode,d=u.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:d}}return{number:t}}}if(t[1]==="0")return{};r=new Dr(r);for(var h=2;h-1<=hW&&h<=t.length;){var g=t.slice(1,h);if(r.hasCallingCode(g))return r.selectNumberingPlan(g),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:g,number:t.slice(h)};h++}return{}}function YI(t){return t.replace(new RegExp("[".concat(ks,"]+"),"g")," ").trim()}var JI=/(\$\d)/;function QI(t,e,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var o=t.replace(new RegExp(e.pattern()),r?e.internationalFormat():i&&e.nationalPrefixFormattingRule()?e.format().replace(JI,e.nationalPrefixFormattingRule()):e.format());return r?YI(o):o}var $W=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function EW(t,e,n){var r=new Dr(n);if(r.selectNumberingPlan(t,e),r.defaultIDDPrefix())return r.defaultIDDPrefix();if($W.test(r.IDDPrefix()))return r.IDDPrefix()}var xW=";ext=",Ag=function(e){return"([".concat(la,"]{1,").concat(e,"})")};function XI(t){var e="20",n="15",r="9",i="6",o="[  \\t,]*",u="[:\\..]?[  \\t,-]*",l="#?",d="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",h="(?:[xx##~~]|int|int)",g="[- ]+",y="[  \\t]*",w="(?:,{2}|;)",v=xW+Ag(e),C=o+d+u+Ag(e)+l,E=o+h+u+Ag(r)+l,$=g+Ag(i)+"#",O=y+w+u+Ag(n)+l,_=y+"(?:,)+"+u+Ag(r)+l;return v+"|"+C+"|"+E+"|"+$+"|"+O+"|"+_}var OW="["+la+"]{"+VO+"}",TW="["+US+"]{0,1}(?:["+ks+"]*["+la+"]){3,}["+ks+la+"]*",_W=new RegExp("^["+US+"]{0,1}(?:["+ks+"]*["+la+"]){1,2}$","i"),AW=TW+"(?:"+XI()+")?",RW=new RegExp("^"+OW+"$|^"+AW+"$","i");function PW(t){return t.length>=VO&&RW.test(t)}function IW(t){return _W.test(t)}function NW(t){var e=t.number,n=t.ext;if(!e)return"";if(e[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(n?";ext="+n:"")}function MW(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=kW(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kW(t,e){if(t){if(typeof t=="string")return hR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hR(t,e)}}function hR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0){var o=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(e.search(o)!==0)continue}if(Tl(e,i.pattern()))return i}}function HC(t,e,n,r){return e?r(t,e,n):t}function UW(t,e,n,r,i){var o=jf(r,i.metadata);if(o===n){var u=Jw(t,e,"NATIONAL",i);return n==="1"?n+" "+u:u}var l=EW(r,void 0,i.metadata);if(l)return"".concat(l," ").concat(n," ").concat(Jw(t,null,"INTERNATIONAL",i))}function yR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function vR(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function XW(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function h1(t,e){return h1=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},h1(t,e)}function p1(t){return p1=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},p1(t)}var Sl=(function(t){YW(n,t);var e=JW(n);function n(r){var i;return KW(this,n),i=e.call(this,r),Object.setPrototypeOf(eN(i),n.prototype),i.name=i.constructor.name,i}return WW(n)})(cx(Error)),bR=new RegExp("(?:"+XI()+")$","i");function ZW(t){var e=t.search(bR);if(e<0)return{};for(var n=t.slice(0,e),r=t.match(bR),i=1;i=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tK(t,e){if(t){if(typeof t=="string")return wR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wR(t,e)}}function wR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iK(t,e){if(t){if(typeof t=="string")return SR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SR(t,e)}}function SR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oK(t,e){if(t){if(typeof t=="string")return CR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CR(t,e)}}function CR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length)return"";var r=t.indexOf(";",n);return r>=0?t.substring(n,r):t.substring(n)}function yK(t){return t===null?!0:t.length===0?!1:lK.test(t)||pK.test(t)}function vK(t,e){var n=e.extractFormattedPhoneNumber,r=gK(t);if(!yK(r))throw new Sl("NOT_A_NUMBER");var i;if(r===null)i=n(t)||"";else{i="",r.charAt(0)===oN&&(i+=r);var o=t.indexOf(ER),u;o>=0?u=o+ER.length:u=0;var l=t.indexOf(hx);i+=t.substring(u,l)}var d=i.indexOf(mK);if(d>0&&(i=i.substring(0,d)),i!=="")return i}var bK=250,wK=new RegExp("["+US+la+"]"),SK=new RegExp("[^"+la+"#]+$");function CK(t,e,n){if(e=e||{},n=new Dr(n),e.defaultCountry&&!n.hasCountry(e.defaultCountry))throw e.v2?new Sl("INVALID_COUNTRY"):new Error("Unknown country: ".concat(e.defaultCountry));var r=EK(t,e.v2,e.extract),i=r.number,o=r.ext,u=r.error;if(!i){if(e.v2)throw u==="TOO_SHORT"?new Sl("TOO_SHORT"):new Sl("NOT_A_NUMBER");return{}}var l=OK(i,e.defaultCountry,e.defaultCallingCode,n),d=l.country,h=l.nationalNumber,g=l.countryCallingCode,y=l.countryCallingCodeSource,w=l.carrierCode;if(!n.hasSelectedNumberingPlan()){if(e.v2)throw new Sl("INVALID_COUNTRY");return{}}if(!h||h.lengthdW){if(e.v2)throw new Sl("TOO_LONG");return{}}if(e.v2){var v=new ZI(g,h,n.metadata);return d&&(v.country=d),w&&(v.carrierCode=w),o&&(v.ext=o),v.__countryCallingCodeSource=y,v}var C=(e.extended?n.hasSelectedNumberingPlan():d)?Tl(h,n.nationalNumberPattern()):!1;return e.extended?{country:d,countryCallingCode:g,carrierCode:w,valid:C,possible:C?!0:!!(e.extended===!0&&n.possibleLengths()&&GI(h,n)),phone:h,ext:o}:C?xK(d,h,o):{}}function $K(t,e,n){if(t){if(t.length>bK){if(n)throw new Sl("TOO_LONG");return}if(e===!1)return t;var r=t.search(wK);if(!(r<0))return t.slice(r).replace(SK,"")}}function EK(t,e,n){var r=vK(t,{extractFormattedPhoneNumber:function(u){return $K(u,n,e)}});if(!r)return{};if(!PW(r))return IW(r)?{error:"TOO_SHORT"}:{};var i=ZW(r);return i.ext?i:{number:r}}function xK(t,e,n){var r={country:t,phone:e};return n&&(r.ext=n),r}function OK(t,e,n,r){var i=GO(fx(t),e,n,r.metadata),o=i.countryCallingCodeSource,u=i.countryCallingCode,l=i.number,d;if(u)r.selectNumberingPlan(u);else if(l&&(e||n))r.selectNumberingPlan(e,n),e&&(d=e),u=n||jf(e,r.metadata);else return{};if(!l)return{countryCallingCodeSource:o,countryCallingCode:u};var h=ux(fx(l),r),g=h.nationalNumber,y=h.carrierCode,w=aN(u,{nationalNumber:g,defaultCountry:e,metadata:r});return w&&(d=w,w==="001"||r.country(d)),{country:d,countryCallingCode:u,countryCallingCodeSource:o,nationalNumber:g,carrierCode:y}}function xR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function OR(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VK(t,e){if(t){if(typeof t=="string")return PR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PR(t,e)}}function PR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1;)e&1&&(n+=t),e>>=1,t+=t;return n+t}function IR(t,e){return t[e]===")"&&e++,GK(t.slice(0,e))}function GK(t){for(var e=[],n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aY(t,e){if(t){if(typeof t=="string")return kR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kR(t,e)}}function kR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&arguments[1]!==void 0?arguments[1]:{},i=r.allowOverflow;if(!n)throw new Error("String is required");var o=px(n.split(""),this.matchTree,!0);if(o&&o.match&&delete o.matchedChars,!(o&&o.overflow&&!i))return o}}]),t})();function px(t,e,n){if(typeof e=="string"){var r=t.join("");return e.indexOf(r)===0?t.length===e.length?{match:!0,matchedChars:t}:{partialMatch:!0}:r.indexOf(e)===0?n&&t.length>e.length?{overflow:!0}:{match:!0,matchedChars:t.slice(0,e.length)}:void 0}if(Array.isArray(e)){for(var i=t.slice(),o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cY(t,e){if(t){if(typeof t=="string")return FR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FR(t,e)}}function FR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0)){var i=this.getTemplateForFormat(n,r);if(i)return this.setNationalNumberTemplate(i,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&gY.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var i=n.IDDPrefix,o=n.missingPlus;return i?r&&r.spacing===!1?i:i+" ":o?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,i=0,o=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";ih.length)){var g=new RegExp("^"+d+"$"),y=i.replace(/\d/g,mx);g.test(y)&&(h=y);var w=this.getFormatFormat(n,o),v;if(this.shouldTryNationalPrefixFormattingRule(n,{international:o,nationalPrefix:u})){var C=w.replace(JI,n.nationalPrefixFormattingRule());if(Qw(n.nationalPrefixFormattingRule())===(u||"")+Qw("$1")&&(w=C,v=!0,u))for(var E=u.length;E>0;)w=w.replace(/\d/,Rs),E--}var $=h.replace(new RegExp(d),w).replace(new RegExp(mx,"g"),Rs);return v||(l?$=Ow(Rs,l.length)+" "+$:u&&($=Ow(Rs,u.length)+this.getSeparatorAfterNationalPrefix(n)+$)),o&&($=YI($)),$}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=WK(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],IR(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var i=r.international,o=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var u=n.usesNationalPrefix();if(u&&o||!u&&!i)return!0}}}]),t})();function sN(t,e){return EY(t)||$Y(t,e)||CY(t,e)||SY()}function SY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CY(t,e){if(t){if(typeof t=="string")return UR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UR(t,e)}}function UR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=3;if(r.appendDigits(n),o&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(u){return r.update(u)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,i=n.callingCode;return r&&!i}},{key:"extractCountryCallingCode",value:function(n){var r=GO("+"+n.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode,o=r.number;if(i)return n.setCallingCode(i),n.update({nationalSignificantNumber:o}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&IY.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var i=sx(n,this.metadata),o=i.nationalPrefix,u=i.nationalNumber,l=i.carrierCode;if(u!==n)return this.onExtractedNationalNumber(o,l,u,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,i){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,i);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var o=sx(n,this.metadata),u=o.nationalPrefix,l=o.nationalNumber,d=o.carrierCode;if(l!==r)return this.onExtractedNationalNumber(u,d,l,n,i),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,i,o,u){var l,d,h=o.lastIndexOf(i);if(h>=0&&h===o.length-i.length){d=!0;var g=o.slice(0,h);g!==n&&(l=g)}u({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:i,nationalSignificantNumberMatchesInput:d,complexPrefixBeforeNationalSignificantNumber:l}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,i=n.IDDPrefix,o=n.digits;if(n.nationalSignificantNumber,!(r||i)){var u=WI(o,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(u!==void 0&&u!==o)return n.update({IDDPrefix:o.slice(0,o.length-u.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=KI(n.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode;if(r.number,i)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:i}),!0}}},{key:"startInternationalNumber",value:function(n,r){var i=r.country,o=r.callingCode;n.startInternationalNumber(i,o),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}]),t})();function MY(t){var e=t.search(RY);if(!(e<0)){t=t.slice(e);var n;return t[0]==="+"&&(n=!0,t=t.slice(1)),t=t.replace(PY,""),n&&(t="+"+t),t}}function kY(t){var e=MY(t)||"";return e[0]==="+"?[e.slice(1),!0]:[e]}function DY(t){var e=kY(t),n=sN(e,2),r=n[0],i=n[1];return AY.test(r)||(r=""),[r,i]}function FY(t,e){return BY(t)||jY(t,e)||UY(t,e)||LY()}function LY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UY(t,e){if(t){if(typeof t=="string")return jR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jR(t,e)}}function jR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1}},{key:"determineTheCountry",value:function(){this.state.setCountry(aN(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,i=n.callingCode,o=n.country,u=n.nationalSignificantNumber;if(r){if(this.isInternational())return i?"+"+i+u:"+"+r;if(o||i){var l=o?this.metadata.countryCallingCode():i;return"+"+l+u}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.carrierCode,o=n.callingCode,u=this._getCountry();if(r&&!(!u&&!o)){if(u&&u===this.defaultCountry){var l=new Dr(this.metadata.metadata);l.selectNumberingPlan(u);var d=l.numberingPlan.callingCode(),h=this.metadata.getCountryCodesForCallingCode(d);if(h.length>1){var g=iN(r,{countries:h,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});g&&(u=g)}}var y=new ZI(u||o,r,this.metadata.metadata);return i&&(y.carrierCode=i),y}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),t})();function BR(t){return new Dr(t).getCountries()}function VY(t,e,n){return n||(n=e,e=void 0),new dy(e,n).input(t)}function uN(t){var e=t.inputFormat,n=t.country,r=t.metadata;return e==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(jf(n,r)):""}function gx(t,e){return e&&(t=t.slice(e.length),t[0]===" "&&(t=t.slice(1))),t}function GY(t,e,n){if(!(n&&n.ignoreRest)){var r=function(o){if(n)switch(o){case"end":n.ignoreRest=!0;break}};return rN(t,e,r)}}function lN(t){var e=t.onKeyDown,n=t.inputFormat;return T.useCallback(function(r){if(r.keyCode===KY&&n==="INTERNATIONAL"&&r.target instanceof HTMLInputElement&&WY(r.target)===YY.length){r.preventDefault();return}e&&e(r)},[e,n])}function WY(t){return t.selectionStart}var KY=8,YY="+",JY=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function yx(){return yx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function XY(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function ZY(t){function e(n,r){var i=n.onKeyDown,o=n.country,u=n.inputFormat,l=n.metadata,d=l===void 0?t:l;n.international,n.withCountryCallingCode;var h=QY(n,JY),g=T.useCallback(function(w){var v=new dy(o,d),C=uN({inputFormat:u,country:o,metadata:d}),E=v.input(C+w),$=v.getTemplate();return C&&(E=gx(E,C),$&&($=gx($,C))),{text:E,template:$}},[o,d]),y=lN({onKeyDown:i,inputFormat:u});return Ae.createElement(Yw,yx({},h,{ref:r,parse:GY,format:g,onKeyDown:y}))}return e=Ae.forwardRef(e),e.propTypes={value:Te.string.isRequired,onChange:Te.func.isRequired,onKeyDown:Te.func,country:Te.string,inputFormat:Te.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Te.object},e}const eJ=ZY();var tJ=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function vx(){return vx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function rJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function iJ(t){function e(n,r){var i=n.value,o=n.onChange,u=n.onKeyDown,l=n.country,d=n.inputFormat,h=n.metadata,g=h===void 0?t:h,y=n.inputComponent,w=y===void 0?"input":y;n.international,n.withCountryCallingCode;var v=nJ(n,tJ),C=uN({inputFormat:d,country:l,metadata:g}),E=T.useCallback(function(O){var _=fx(O.target.value);if(_===i){var R=qR(C,_,l,g);R.indexOf(O.target.value)===0&&(_=_.slice(0,-1))}o(_)},[C,i,o,l,g]),$=lN({onKeyDown:u,inputFormat:d});return Ae.createElement(w,vx({},v,{ref:r,value:qR(C,i,l,g),onChange:E,onKeyDown:$}))}return e=Ae.forwardRef(e),e.propTypes={value:Te.string.isRequired,onChange:Te.func.isRequired,onKeyDown:Te.func,country:Te.string,inputFormat:Te.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Te.object,inputComponent:Te.elementType},e}const aJ=iJ();function qR(t,e,n,r){return gx(VY(t+e,n,r),t)}function oJ(t){return HR(t[0])+HR(t[1])}function HR(t){return String.fromCodePoint(127397+t.toUpperCase().charCodeAt(0))}var sJ=["value","onChange","options","disabled","readOnly"],uJ=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function lJ(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=cJ(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cJ(t,e){if(t){if(typeof t=="string")return zR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zR(t,e)}}function zR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function fJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function fN(t){var e=t.value,n=t.onChange,r=t.options,i=t.disabled,o=t.readOnly,u=cN(t,sJ),l=T.useCallback(function(d){var h=d.target.value;n(h==="ZZ"?void 0:h)},[n]);return T.useMemo(function(){return hN(r,e)},[r,e]),Ae.createElement("select",Xw({},u,{disabled:i||o,readOnly:o,value:e||"ZZ",onChange:l}),r.map(function(d){var h=d.value,g=d.label,y=d.divider;return Ae.createElement("option",{key:y?"|":h||"ZZ",value:y?"|":h||"ZZ",disabled:!!y,style:y?dJ:void 0},g)}))}fN.propTypes={value:Te.string,onChange:Te.func.isRequired,options:Te.arrayOf(Te.shape({value:Te.string,label:Te.string,divider:Te.bool})).isRequired,disabled:Te.bool,readOnly:Te.bool};var dJ={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function dN(t){var e=t.value,n=t.options,r=t.className,i=t.iconComponent;t.getIconAspectRatio;var o=t.arrowComponent,u=o===void 0?hJ:o,l=t.unicodeFlags,d=cN(t,uJ),h=T.useMemo(function(){return hN(n,e)},[n,e]);return Ae.createElement("div",{className:"PhoneInputCountry"},Ae.createElement(fN,Xw({},d,{value:e,options:n,className:Ho("PhoneInputCountrySelect",r)})),h&&(l&&e?Ae.createElement("div",{className:"PhoneInputCountryIconUnicode"},oJ(e)):Ae.createElement(i,{"aria-hidden":!0,country:e,label:h.label,aspectRatio:l?1:void 0})),Ae.createElement(u,null))}dN.propTypes={iconComponent:Te.elementType,arrowComponent:Te.elementType,unicodeFlags:Te.bool};function hJ(){return Ae.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function hN(t,e){for(var n=lJ(t),r;!(r=n()).done;){var i=r.value;if(!i.divider&&pJ(i.value,e))return i}}function pJ(t,e){return t==null?e==null:t===e}var mJ=["country","countryName","flags","flagUrl"];function bx(){return bx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function yJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function WO(t){var e=t.country,n=t.countryName,r=t.flags,i=t.flagUrl,o=gJ(t,mJ);return r&&r[e]?r[e]({title:n}):Ae.createElement("img",bx({},o,{alt:n,role:n?void 0:"presentation",src:i.replace("{XX}",e).replace("{xx}",e.toLowerCase())}))}WO.propTypes={country:Te.string.isRequired,countryName:Te.string.isRequired,flags:Te.objectOf(Te.elementType),flagUrl:Te.string.isRequired};var vJ=["aspectRatio"],bJ=["title"],wJ=["title"];function Zw(){return Zw=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function SJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function jS(t){var e=t.aspectRatio,n=KO(t,vJ);return e===1?Ae.createElement(mN,n):Ae.createElement(pN,n)}jS.propTypes={title:Te.string.isRequired,aspectRatio:Te.number};function pN(t){var e=t.title,n=KO(t,bJ);return Ae.createElement("svg",Zw({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),Ae.createElement("title",null,e),Ae.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},Ae.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),Ae.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),Ae.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),Ae.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),Ae.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),Ae.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),Ae.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}pN.propTypes={title:Te.string.isRequired};function mN(t){var e=t.title,n=KO(t,wJ);return Ae.createElement("svg",Zw({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),Ae.createElement("title",null,e),Ae.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},Ae.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),Ae.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),Ae.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),Ae.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),Ae.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),Ae.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),Ae.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}mN.propTypes={title:Te.string.isRequired};function CJ(t){if(t.length<2||t[0]!=="+")return!1;for(var e=1;e=48&&n<=57))return!1;e++}return!0}function gN(t){CJ(t)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",t)}function $J(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=EJ(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EJ(t,e){if(t){if(typeof t=="string")return VR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VR(t,e)}}function VR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0))return t}function BS(t,e){return zI(t,e)?!0:(console.error("Country not found: ".concat(t)),!1)}function yN(t,e){return t&&(t=t.filter(function(n){return BS(n,e)}),t.length===0&&(t=void 0)),t}var TJ=["country","label","aspectRatio"];function wx(){return wx=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function AJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function vN(t){var e=t.flags,n=t.flagUrl,r=t.flagComponent,i=t.internationalIcon;function o(u){var l=u.country,d=u.label,h=u.aspectRatio,g=_J(u,TJ),y=i===jS?h:void 0;return Ae.createElement("div",wx({},g,{className:Ho("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":y===1,"PhoneInputCountryIcon--border":l})}),l?Ae.createElement(r,{country:l,countryName:d,flags:e,flagUrl:n,className:"PhoneInputCountryIconImg"}):Ae.createElement(i,{title:d,aspectRatio:y,className:"PhoneInputCountryIconImg"}))}return o.propTypes={country:Te.string,label:Te.string.isRequired,aspectRatio:Te.number},o}vN({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:WO,internationalIcon:jS});function RJ(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=PJ(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PJ(t,e){if(t){if(typeof t=="string")return GR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GR(t,e)}}function GR(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&(d=i()),d}function kJ(t){var e=t.countries,n=t.countryNames,r=t.addInternationalOption,i=t.compareStringsLocales,o=t.compareStrings;o||(o=qJ);var u=e.map(function(l){return{value:l,label:n[l]||l}});return u.sort(function(l,d){return o(l.label,d.label,i)}),r&&u.unshift({label:n.ZZ}),u}function SN(t,e){return UK(t||"",e)}function DJ(t){return t.formatNational().replace(/\D/g,"")}function FJ(t,e){var n=e.prevCountry,r=e.newCountry,i=e.metadata,o=e.useNationalFormat;if(n===r)return t;if(!t)return o?"":r?$l(r,i):"";if(r){if(t[0]==="+"){if(o)return t.indexOf("+"+jf(r,i))===0?HJ(t,r,i):"";if(n){var u=$l(r,i);return t.indexOf(u)===0?t:u}else{var l=$l(r,i);return t.indexOf(l)===0?t:l}}}else if(t[0]!=="+")return Mg(t,n,i)||"";return t}function Mg(t,e,n){if(t){if(t[0]==="+"){if(t==="+")return;var r=new dy(e,n);return r.input(t),r.getNumberValue()}if(e){var i=$N(t,e,n);return"+".concat(jf(e,n)).concat(i||"")}}}function LJ(t,e,n){var r=$N(t,e,n);if(r){var i=r.length-UJ(e,n);if(i>0)return t.slice(0,t.length-i)}return t}function UJ(t,e){return e=new Dr(e),e.selectNumberingPlan(t),e.numberingPlan.possibleLengths()[e.numberingPlan.possibleLengths().length-1]}function CN(t,e){var n=e.country,r=e.countries,i=e.defaultCountry,o=e.latestCountrySelectedByUser,u=e.required,l=e.metadata;if(t==="+")return n;var d=BJ(t,l);if(d)return!r||r.indexOf(d)>=0?d:void 0;if(n){if(Kg(t,n,l)){if(o&&Kg(t,o,l))return o;if(i&&Kg(t,i,l))return i;if(!u)return}else if(!u)return}return n}function jJ(t,e){var n=e.prevPhoneDigits,r=e.country,i=e.defaultCountry,o=e.latestCountrySelectedByUser,u=e.countryRequired,l=e.getAnyCountry,d=e.countries,h=e.international,g=e.limitMaxLength,y=e.countryCallingCodeEditable,w=e.metadata;if(h&&y===!1&&r){var v=$l(r,w);if(t.indexOf(v)!==0){var C,E=t&&t[0]!=="+";return E?(t=v+t,C=Mg(t,r,w)):t=v,{phoneDigits:t,value:C,country:r}}}h===!1&&r&&t&&t[0]==="+"&&(t=WR(t,r,w)),t&&r&&g&&(t=LJ(t,r,w)),t&&t[0]!=="+"&&(!r||h)&&(t="+"+t),!t&&n&&n[0]==="+"&&(h?r=void 0:r=i),t==="+"&&n&&n[0]==="+"&&n.length>1&&(r=void 0);var $;return t&&(t[0]==="+"&&(t==="+"||r&&$l(r,w).indexOf(t)===0)?$=void 0:$=Mg(t,r,w)),$&&(r=CN($,{country:r,countries:d,defaultCountry:i,latestCountrySelectedByUser:o,required:!1,metadata:w}),h===!1&&r&&t&&t[0]==="+"&&(t=WR(t,r,w),$=Mg(t,r,w))),!r&&u&&(r=i||l()),{phoneDigits:t,country:r,value:$}}function WR(t,e,n){if(t.indexOf($l(e,n))===0){var r=new dy(e,n);r.input(t);var i=r.getNumber();return i?i.formatNational().replace(/\D/g,""):""}else return t.replace(/\D/g,"")}function BJ(t,e){var n=new dy(null,e);return n.input(t),n.getCountry()}function qJ(t,e,n){return String.prototype.localeCompare?t.localeCompare(e,n):te?1:0}function HJ(t,e,n){if(e){var r="+"+jf(e,n);if(t.length=0)&&(L=P.country):(L=CN(u,{country:void 0,countries:F,metadata:r}),L||o&&u.indexOf($l(o,r))===0&&(L=o))}var q;if(u){if($){var Y=L?$===L:Kg(u,$,r);Y?L||(L=$):q={latestCountrySelectedByUser:void 0}}}else q={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return tw(tw({},q),{},{phoneDigits:O({phoneNumber:P,value:u,defaultCountry:o}),value:u,country:u?L:o})}}function YR(t,e){return t===null&&(t=void 0),e===null&&(e=void 0),t===e}var KJ=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function ey(t){"@babel/helpers - typeof";return ey=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ey(t)}function JR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function xN(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function JJ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function QJ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QR(t,e){for(var n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function cQ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o=0)&&(n[i]=t[i]);return n}function AN(t){var e=Ae.forwardRef(function(n,r){var i=n.metadata,o=i===void 0?t:i,u=n.labels,l=u===void 0?sQ:u,d=lQ(n,uQ);return Ae.createElement(_N,Cx({},d,{ref:r,metadata:o,labels:l}))});return e.propTypes={metadata:bN,labels:wN},e}AN();const fQ=AN(yG),Bo=t=>{const{region:e}=$i(),{label:n,getInputRef:r,secureTextEntry:i,Icon:o,onChange:u,value:l,children:d,errorMessage:h,type:g,focused:y=!1,autoFocus:w,...v}=t,[C,E]=T.useState(!1),$=T.useRef(),O=T.useCallback(()=>{var k;(k=$.current)==null||k.focus()},[$.current]);let _=l===void 0?"":l;g==="number"&&(_=+l);const R=k=>{u&&u(g==="number"?+k.target.value:k.target.value)};return N.jsxs(kS,{focused:C,onClick:O,...t,children:[t.type==="phonenumber"?N.jsx(fQ,{country:e,autoFocus:w,value:_,onChange:k=>u&&u(k)}):N.jsx("input",{...v,ref:$,value:_,autoFocus:w,className:Ho("form-control",t.errorMessage&&"is-invalid",t.validMessage&&"is-valid"),type:g||"text",onChange:R,onBlur:()=>E(!1),onFocus:()=>E(!0)}),d]})};var g1;function Is(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var dQ=0;function z1(t){return"__private_"+dQ+++"_"+t}const hQ=t=>{const n=oo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Bf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Bf{}g1=Bf;Bf.URL="/passport/change-password";Bf.NewUrl=t=>so(g1.URL,void 0,t);Bf.Method="post";Bf.Fetch$=async(t,e,n,r)=>io(r??g1.NewUrl(t),{method:g1.Method,...n||{}},e);Bf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Op(u)})=>{e=e||(l=>new Op(l));const u=await g1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Bf.Definition={name:"ChangePassword",cliName:"cp",url:"/passport/change-password",method:"post",description:"Change the password for a given passport of the user. User needs to be authenticated in order to be able to change the password for a given account.",in:{fields:[{name:"password",description:"New password meeting the security requirements.",type:"string",tags:{validate:"required"}},{name:"uniqueId",description:"The passport uniqueId (not the email or phone number) which password would be applied to. Don't confuse with value.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"changed",type:"bool"}]}};var $h=z1("password"),Eh=z1("uniqueId"),GC=z1("isJsonAppliable");class xp{get password(){return Is(this,$h)[$h]}set password(e){Is(this,$h)[$h]=String(e)}setPassword(e){return this.password=e,this}get uniqueId(){return Is(this,Eh)[Eh]}set uniqueId(e){Is(this,Eh)[Eh]=String(e)}setUniqueId(e){return this.uniqueId=e,this}constructor(e=void 0){if(Object.defineProperty(this,GC,{value:pQ}),Object.defineProperty(this,$h,{writable:!0,value:""}),Object.defineProperty(this,Eh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Is(this,GC)[GC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.password!==void 0&&(this.password=n.password),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId)}toJSON(){return{password:Is(this,$h)[$h],uniqueId:Is(this,Eh)[Eh]}}toString(){return JSON.stringify(this)}static get Fields(){return{password:"password",uniqueId:"uniqueId"}}static from(e){return new xp(e)}static with(e){return new xp(e)}copyWith(e){return new xp({...this.toJSON(),...e})}clone(){return new xp(this.toJSON())}}function pQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var xh=z1("changed"),WC=z1("isJsonAppliable");class Op{get changed(){return Is(this,xh)[xh]}set changed(e){Is(this,xh)[xh]=!!e}setChanged(e){return this.changed=e,this}constructor(e=void 0){if(Object.defineProperty(this,WC,{value:mQ}),Object.defineProperty(this,xh,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Is(this,WC)[WC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.changed!==void 0&&(this.changed=n.changed)}toJSON(){return{changed:Is(this,xh)[xh]}}toString(){return JSON.stringify(this)}static get Fields(){return{changed:"changed"}}static from(e){return new Op(e)}static with(e){return new Op(e)}copyWith(e){return new Op({...this.toJSON(),...e})}clone(){return new Op(this.toJSON())}}function mQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const gQ=()=>{const t=Kn($r),{goBack:e,state:n,replace:r,push:i,query:o}=Lr(),u=hQ(),l=o==null?void 0:o.uniqueId,d=()=>{u.mutateAsync(new xp(h.values)).then(g=>{e()})},h=Dl({initialValues:{},onSubmit:d});return T.useEffect(()=>{!l||!h||h.setFieldValue(xp.Fields.uniqueId,l)},[l]),{mutation:u,form:h,submit:d,goBack:e,s:t}},yQ=({})=>{const{mutation:t,form:e,s:n}=gQ();return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:n.changePassword.title}),N.jsx("p",{children:n.changePassword.description}),N.jsx(Wo,{query:t}),N.jsx(vQ,{form:e,mutation:t})]})},vQ=({form:t,mutation:e})=>{const n=Kn($r),{password2:r,password:i}=t.values,o=i!==r||((i==null?void 0:i.length)||0)<6;return N.jsxs("form",{onSubmit:u=>{u.preventDefault(),t.submitForm()},children:[N.jsx(Bo,{type:"password",value:t.values.password,label:n.changePassword.pass1Label,id:"password-input",errorMessage:t.errors.password,onChange:u=>t.setFieldValue("password",u,!1)}),N.jsx(Bo,{type:"password",value:t.values.password2,label:n.changePassword.pass2Label,id:"password-input-2",errorMessage:t.errors.password,onChange:u=>t.setFieldValue("password2",u,!1)}),N.jsx(Uf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:o,children:n.continue})]})};function bQ(t={}){const{nonce:e,onScriptLoadSuccess:n,onScriptLoadError:r}=t,[i,o]=T.useState(!1),u=T.useRef(n);u.current=n;const l=T.useRef(r);return l.current=r,T.useEffect(()=>{const d=document.createElement("script");return d.src="https://accounts.google.com/gsi/client",d.async=!0,d.defer=!0,d.nonce=e,d.onload=()=>{var h;o(!0),(h=u.current)===null||h===void 0||h.call(u)},d.onerror=()=>{var h;o(!1),(h=l.current)===null||h===void 0||h.call(l)},document.body.appendChild(d),()=>{document.body.removeChild(d)}},[e]),i}const RN=T.createContext(null);function wQ({clientId:t,nonce:e,onScriptLoadSuccess:n,onScriptLoadError:r,children:i}){const o=bQ({nonce:e,onScriptLoadSuccess:n,onScriptLoadError:r}),u=T.useMemo(()=>({clientId:t,scriptLoadedSuccessfully:o}),[t,o]);return Ae.createElement(RN.Provider,{value:u},i)}function SQ(){const t=T.useContext(RN);if(!t)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return t}function CQ({flow:t="implicit",scope:e="",onSuccess:n,onError:r,onNonOAuthError:i,overrideScope:o,state:u,...l}){const{clientId:d,scriptLoadedSuccessfully:h}=SQ(),g=T.useRef(),y=T.useRef(n);y.current=n;const w=T.useRef(r);w.current=r;const v=T.useRef(i);v.current=i,T.useEffect(()=>{var $,O;if(!h)return;const _=t==="implicit"?"initTokenClient":"initCodeClient",R=(O=($=window==null?void 0:window.google)===null||$===void 0?void 0:$.accounts)===null||O===void 0?void 0:O.oauth2[_]({client_id:d,scope:o?e:`openid profile email ${e}`,callback:k=>{var P,L;if(k.error)return(P=w.current)===null||P===void 0?void 0:P.call(w,k);(L=y.current)===null||L===void 0||L.call(y,k)},error_callback:k=>{var P;(P=v.current)===null||P===void 0||P.call(v,k)},state:u,...l});g.current=R},[d,h,t,e,u]);const C=T.useCallback($=>{var O;return(O=g.current)===null||O===void 0?void 0:O.requestAccessToken($)},[]),E=T.useCallback(()=>{var $;return($=g.current)===null||$===void 0?void 0:$.requestCode()},[]);return t==="implicit"?C:E}const PN=()=>N.jsxs("div",{className:"loader",id:"loader-4",children:[N.jsx("span",{}),N.jsx("span",{}),N.jsx("span",{})]});function $Q(){if(typeof window>"u")return"mac";let t=window==null?void 0:window.navigator.userAgent,e=window==null?void 0:window.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],r=["Win32","Win64","Windows","WinCE"],i=["iPhone","iPad","iPod"],o="mac";return n.indexOf(e)!==-1?o="mac":i.indexOf(e)!==-1?o="ios":r.indexOf(e)!==-1?o="windows":/Android/.test(t)?o="android":!o&&/Linux/.test(e)?o="linux":o="web",o}const Qe=$Q(),Fe={edit:{default:"ios-theme/icons/edit.svg"},add:{default:"ios-theme/icons/add.svg"},cancel:{default:"ios-theme/icons/cancel.svg"},delete:{default:"ios-theme/icons/delete.svg"},entity:{default:"ios-theme/icons/entity.svg"},left:{default:"ios-theme/icons/left.svg"},menu:{default:"ios-theme/icons/menu.svg"},backup:{default:"ios-theme/icons/backup.svg"},right:{default:"ios-theme/icons/right.svg"},settings:{default:"ios-theme/icons/settings.svg"},user:{default:"ios-theme/icons/user.svg"},export:{default:"ios-theme/icons/export.svg"},up:{default:"ios-theme/icons/up.svg"},dataNode:{default:"ios-theme/icons/dnode.svg"},ctrlSheet:{default:"ios-theme/icons/ctrlsheet.svg"},gpiomode:{default:"ios-theme/icons/gpiomode.svg"},gpiostate:{default:"ios-theme/icons/gpiostate.svg"},down:{default:"ios-theme/icons/down.svg"},turnoff:{default:"ios-theme/icons/turnoff.svg"},mqtt:{default:"ios-theme/icons/mqtt.svg"},cart:{default:"ios-theme/icons/cart.svg"},questionBank:{default:"ios-theme/icons/questions.svg"},dashboard:{default:"ios-theme/icons/dashboard.svg"},country:{default:"ios-theme/icons/country.svg"},order:{default:"ios-theme/icons/order.svg"},province:{default:"ios-theme/icons/province.svg"},city:{default:"ios-theme/icons/city.svg"},about:{default:"ios-theme/icons/about.svg"},sms:{default:"ios-theme/icons/sms.svg"},product:{default:"ios-theme/icons/product.svg"},discount:{default:"ios-theme/icons/discount.svg"},tag:{default:"ios-theme/icons/tag.svg"},category:{default:"ios-theme/icons/category.svg"},brand:{default:"ios-theme/icons/brand.svg"},form:{default:"ios-theme/icons/form.svg"}},hy={dashboard:Fe.dashboard[Qe]?Fe.dashboard[Qe]:Fe.dashboard.default,up:Fe.up[Qe]?Fe.up[Qe]:Fe.up.default,questionBank:Fe.questionBank[Qe]?Fe.questionBank[Qe]:Fe.questionBank.default,down:Fe.down[Qe]?Fe.down[Qe]:Fe.down.default,edit:Fe.edit[Qe]?Fe.edit[Qe]:Fe.edit.default,add:Fe.add[Qe]?Fe.add[Qe]:Fe.add.default,cancel:Fe.cancel[Qe]?Fe.cancel[Qe]:Fe.cancel.default,delete:Fe.delete[Qe]?Fe.delete[Qe]:Fe.delete.default,discount:Fe.discount[Qe]?Fe.discount[Qe]:Fe.discount.default,cart:Fe.cart[Qe]?Fe.cart[Qe]:Fe.cart.default,entity:Fe.entity[Qe]?Fe.entity[Qe]:Fe.entity.default,sms:Fe.sms[Qe]?Fe.sms[Qe]:Fe.sms.default,left:Fe.left[Qe]?Fe.left[Qe]:Fe.left.default,brand:Fe.brand[Qe]?Fe.brand[Qe]:Fe.brand.default,menu:Fe.menu[Qe]?Fe.menu[Qe]:Fe.menu.default,right:Fe.right[Qe]?Fe.right[Qe]:Fe.right.default,settings:Fe.settings[Qe]?Fe.settings[Qe]:Fe.settings.default,dataNode:Fe.dataNode[Qe]?Fe.dataNode[Qe]:Fe.dataNode.default,user:Fe.user[Qe]?Fe.user[Qe]:Fe.user.default,city:Fe.city[Qe]?Fe.city[Qe]:Fe.city.default,province:Fe.province[Qe]?Fe.province[Qe]:Fe.province.default,about:Fe.about[Qe]?Fe.about[Qe]:Fe.about.default,turnoff:Fe.turnoff[Qe]?Fe.turnoff[Qe]:Fe.turnoff.default,ctrlSheet:Fe.ctrlSheet[Qe]?Fe.ctrlSheet[Qe]:Fe.ctrlSheet.default,country:Fe.country[Qe]?Fe.country[Qe]:Fe.country.default,export:Fe.export[Qe]?Fe.export[Qe]:Fe.export.default,gpio:Fe.ctrlSheet[Qe]?Fe.ctrlSheet[Qe]:Fe.ctrlSheet.default,order:Fe.order[Qe]?Fe.order[Qe]:Fe.order.default,mqtt:Fe.mqtt[Qe]?Fe.mqtt[Qe]:Fe.mqtt.default,tag:Fe.tag[Qe]?Fe.tag[Qe]:Fe.tag.default,product:Fe.product[Qe]?Fe.product[Qe]:Fe.product.default,category:Fe.category[Qe]?Fe.category[Qe]:Fe.category.default,form:Fe.form[Qe]?Fe.form[Qe]:Fe.form.default,gpiomode:Fe.gpiomode[Qe]?Fe.gpiomode[Qe]:Fe.gpiomode.default,backup:Fe.backup[Qe]?Fe.backup[Qe]:Fe.backup.default,gpiostate:Fe.gpiostate[Qe]?Fe.gpiostate[Qe]:Fe.gpiostate.default};function YO(t){const e=Ci.PUBLIC_URL;return t.startsWith("$")?e+hy[t.substr(1)]:t.startsWith(e)?t:e+t}var y1;function vi(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var EQ=0;function im(t){return"__private_"+EQ+++"_"+t}const xQ=t=>{const e=oo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),qf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result))),...t||{}}),isCompleted:r,response:o}};class qf{}y1=qf;qf.URL="/passport/via-oauth";qf.NewUrl=t=>so(y1.URL,void 0,t);qf.Method="post";qf.Fetch$=async(t,e,n,r)=>io(r??y1.NewUrl(t),{method:y1.Method,...n||{}},e);qf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Tp(u)})=>{e=e||(l=>new Tp(l));const u=await y1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};qf.Definition={name:"OauthAuthenticate",url:"/passport/via-oauth",method:"post",description:"When a token is got from a oauth service such as google, we send the token here to authenticate the user. To me seems this doesn't need to have 2FA or anything, so we return the session directly, or maybe there needs to be next step.",in:{fields:[{name:"token",description:"The token that Auth2 provider returned to the front-end, which will be used to validate the backend",type:"string"},{name:"service",description:"The service name, such as 'google' which later backend will use to authorize the token and create the user.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"},{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"}]}};var Oh=im("token"),Th=im("service"),KC=im("isJsonAppliable");class kg{get token(){return vi(this,Oh)[Oh]}set token(e){vi(this,Oh)[Oh]=String(e)}setToken(e){return this.token=e,this}get service(){return vi(this,Th)[Th]}set service(e){vi(this,Th)[Th]=String(e)}setService(e){return this.service=e,this}constructor(e=void 0){if(Object.defineProperty(this,KC,{value:OQ}),Object.defineProperty(this,Oh,{writable:!0,value:""}),Object.defineProperty(this,Th,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(vi(this,KC)[KC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.token!==void 0&&(this.token=n.token),n.service!==void 0&&(this.service=n.service)}toJSON(){return{token:vi(this,Oh)[Oh],service:vi(this,Th)[Th]}}toString(){return JSON.stringify(this)}static get Fields(){return{token:"token",service:"service"}}static from(e){return new kg(e)}static with(e){return new kg(e)}copyWith(e){return new kg({...this.toJSON(),...e})}clone(){return new kg(this.toJSON())}}function OQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var cl=im("session"),_h=im("next"),YC=im("isJsonAppliable"),O0=im("lateInitFields");class Tp{get session(){return vi(this,cl)[cl]}set session(e){e instanceof Nn?vi(this,cl)[cl]=e:vi(this,cl)[cl]=new Nn(e)}setSession(e){return this.session=e,this}get next(){return vi(this,_h)[_h]}set next(e){vi(this,_h)[_h]=e}setNext(e){return this.next=e,this}constructor(e=void 0){if(Object.defineProperty(this,O0,{value:_Q}),Object.defineProperty(this,YC,{value:TQ}),Object.defineProperty(this,cl,{writable:!0,value:void 0}),Object.defineProperty(this,_h,{writable:!0,value:[]}),e==null){vi(this,O0)[O0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(vi(this,YC)[YC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),n.next!==void 0&&(this.next=n.next),vi(this,O0)[O0](e)}toJSON(){return{session:vi(this,cl)[cl],next:vi(this,_h)[_h]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return xl("session",Nn.Fields)},next$:"next",get next(){return"next[:i]"}}}static from(e){return new Tp(e)}static with(e){return new Tp(e)}copyWith(e){return new Tp({...this.toJSON(),...e})}clone(){return new Tp(this.toJSON())}}function TQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function _Q(t={}){const e=t;e.session instanceof Nn||(this.session=new Nn(e.session||{}))}var Za=(t=>(t.Email="email",t.Phone="phone",t.Google="google",t.Facebook="facebook",t))(Za||{});const V1=()=>{const{setSession:t,selectUrw:e,selectedUrw:n}=T.useContext(Sn),{locale:r}=$i(),{replace:i}=Lr();return{onComplete:u=>{var y,w;t(u.data.item.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify(u.data));const d=new URLSearchParams(window.location.search).get("redirect"),h=sessionStorage.getItem("redirect_temporary");if(!((w=(y=u.data)==null?void 0:y.item.session)==null?void 0:w.token)){alert("Authentication has failed.");return}if(sessionStorage.removeItem("redirect_temporary"),sessionStorage.removeItem("workspace_type_id"),h)window.location.href=h;else if(d){const v=new URL(d);v.searchParams.set("session",JSON.stringify(u.data.item.session)),window.location.href=v.toString()}else{const v="/{locale}/dashboard".replace("{locale}",r||"en");i(v,v)}}}},AQ=t=>{T.useEffect(()=>{const e=new URLSearchParams(window.location.search),n=window.location.hash.indexOf("?"),r=n!==-1?new URLSearchParams(window.location.hash.slice(n)):new URLSearchParams;t.forEach(i=>{const o=e.get(i)||r.get(i);o&&sessionStorage.setItem(i,o)})},[t.join(",")])},RQ=({continueWithResult:t,facebookAppId:e})=>{Kn($r),T.useEffect(()=>{if(window.FB)return;const r=document.createElement("script");r.src="https://connect.facebook.net/en_US/sdk.js",r.async=!0,r.onload=()=>{window.FB.init({appId:e,cookie:!0,xfbml:!1,version:"v19.0"})},document.body.appendChild(r)},[]);const n=()=>{const r=window.FB;if(!r){alert("Facebook SDK not loaded");return}r.login(i=>{var o;console.log("Facebook:",i),(o=i.authResponse)!=null&&o.accessToken?t(i.authResponse.accessToken):alert("Facebook login failed")},{scope:"email,public_profile"})};return N.jsxs("button",{id:"using-facebook",type:"button",onClick:n,children:[N.jsx("img",{className:"button-icon",src:YO("/common/facebook.png")}),"Facebook"]})},PQ=()=>{var g,y;const t=yn(),{locale:e}=$i(),{push:n}=Lr(),r=T.useRef(),i=DI({});AQ(["redirect_temporary","workspace_type_id"]);const[o,u]=T.useState(void 0),l=o?Object.values(o).filter(Boolean).length:void 0,d=(y=(g=i.data)==null?void 0:g.data)==null?void 0:y.item,h=(w,v=!0)=>{switch(w){case Za.Email:n(`/${e}/selfservice/email`,void 0,{canGoBack:v});break;case Za.Phone:n(`/${e}/selfservice/phone`,void 0,{canGoBack:v});break}};return T.useEffect(()=>{if(!d)return;const w={email:d.email,google:d.google,facebook:d.facebook,phone:d.phone,googleOAuthClientKey:d.googleOAuthClientKey,facebookAppId:d.facebookAppId};Object.values(w).filter(Boolean).length===1&&(w.email&&h(Za.Email,!1),w.phone&&h(Za.Phone,!1),w.google&&h(Za.Google,!1),w.facebook&&h(Za.Facebook,!1)),u(w)},[d]),{t,formik:r,onSelect:h,availableOptions:o,passportMethodsQuery:i,isLoadingMethods:i.isLoading,totalAvailableMethods:l}},IQ=()=>{const{onSelect:t,availableOptions:e,totalAvailableMethods:n,isLoadingMethods:r,passportMethodsQuery:i}=PQ(),o=Dl({initialValues:{},onSubmit:()=>{}});return i.isError||i.error?N.jsx("div",{className:"signin-form-container",children:N.jsx(Wo,{query:i})}):n===void 0||r?N.jsx("div",{className:"signin-form-container",children:N.jsx(PN,{})}):n===0?N.jsx("div",{className:"signin-form-container",children:N.jsx(MQ,{})}):N.jsx("div",{className:"signin-form-container",children:e.googleOAuthClientKey?N.jsx(wQ,{clientId:e.googleOAuthClientKey,children:N.jsx(ZR,{availableOptions:e,onSelect:t,form:o})}):N.jsx(ZR,{availableOptions:e,onSelect:t,form:o})})},ZR=({form:t,onSelect:e,availableOptions:n})=>{const{mutateAsync:r}=xQ({}),{setSession:i}=T.useContext(Sn),{locale:o}=$i(),{replace:u}=Lr(),l=(h,g)=>{r(new kg({service:g,token:h})).then(y=>{var w,v,C;i((v=(w=y.data)==null?void 0:w.item)==null?void 0:v.session),window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify((C=y.data)==null?void 0:C.item));{const E=Ci.DEFAULT_ROUTE.replace("{locale}",o||"en");u(E,E)}}).catch(y=>{alert(y)})},d=Kn($r);return N.jsxs("form",{onSubmit:h=>{h.preventDefault(),t.submitForm()},children:[N.jsx("h1",{children:d.welcomeBack}),N.jsxs("p",{children:[d.welcomeBackDescription," "]}),N.jsxs("div",{role:"group","aria-label":"Login method",className:"flex gap-2 login-option-buttons",children:[n.email?N.jsx("button",{id:"using-email",type:"button",onClick:()=>e(Za.Email),children:d.emailMethod}):null,n.phone?N.jsx("button",{id:"using-phone",type:"button",onClick:()=>e(Za.Phone),children:d.phoneMethod}):null,n.facebook?N.jsx(RQ,{facebookAppId:n.facebookAppId,continueWithResult:h=>l(h,"facebook")}):null,n.google?N.jsx(NQ,{continueWithResult:h=>l(h,"google")}):null]})]})},NQ=({continueWithResult:t})=>{const e=Kn($r),n=CQ({onSuccess:r=>{t(r.access_token)},scope:["https://www.googleapis.com/auth/userinfo.profile"].join(" ")});return N.jsx(N.Fragment,{children:N.jsxs("button",{id:"using-google",type:"button",onClick:()=>n(),children:[N.jsx("img",{className:"button-icon",src:YO("/common/google.png")}),e.google]})})},MQ=()=>{const t=Kn($r);return N.jsxs(N.Fragment,{children:[N.jsx("h1",{children:t.noAuthenticationMethod}),N.jsx("p",{children:t.noAuthenticationMethodDescription})]})};var kQ=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function $x(){return $x=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function nw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function FQ(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ex(t,e)}function Ex(t,e){return Ex=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ex(t,e)}var qS=(function(t){FQ(e,t);function e(){var r;return r=t.call(this)||this,r.handleExpired=r.handleExpired.bind(nw(r)),r.handleErrored=r.handleErrored.bind(nw(r)),r.handleChange=r.handleChange.bind(nw(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(nw(r)),r}var n=e.prototype;return n.getCaptchaFunction=function(i){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[i]:this.props.grecaptcha[i]:null},n.getValue=function(){var i=this.getCaptchaFunction("getResponse");return i&&this._widgetId!==void 0?i(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var i=this.getCaptchaFunction("execute");if(i&&this._widgetId!==void 0)return i(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var i=this;return new Promise(function(o,u){i.executionResolve=o,i.executionReject=u,i.execute()})},n.reset=function(){var i=this.getCaptchaFunction("reset");i&&this._widgetId!==void 0&&i(this._widgetId)},n.forceReset=function(){var i=this.getCaptchaFunction("reset");i&&i()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(i){this.props.onChange&&this.props.onChange(i),this.executionResolve&&(this.executionResolve(i),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var i=this.getCaptchaFunction("render");if(i&&this._widgetId===void 0){var o=document.createElement("div");this._widgetId=i(o,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(o)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(i){this.captcha=i},n.render=function(){var i=this.props;i.sitekey,i.onChange,i.theme,i.type,i.tabindex,i.onExpired,i.onErrored,i.size,i.stoken,i.grecaptcha,i.badge,i.hl,i.isolated;var o=DQ(i,kQ);return T.createElement("div",$x({},o,{ref:this.handleRecaptchaRef}))},e})(T.Component);qS.displayName="ReCAPTCHA";qS.propTypes={sitekey:Te.string.isRequired,onChange:Te.func,grecaptcha:Te.object,theme:Te.oneOf(["dark","light"]),type:Te.oneOf(["image","audio"]),tabindex:Te.number,onExpired:Te.func,onErrored:Te.func,size:Te.oneOf(["compact","normal","invisible"]),stoken:Te.string,hl:Te.string,badge:Te.oneOf(["bottomright","bottomleft","inline"]),isolated:Te.bool};qS.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};function xx(){return xx=Object.assign||function(t){for(var e=1;e=0)&&(n[i]=t[i]);return n}function UQ(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Ts={},jQ=0;function BQ(t,e){return e=e||{},function(r){var i=r.displayName||r.name||"Component",o=(function(l){UQ(d,l);function d(g,y){var w;return w=l.call(this,g,y)||this,w.state={},w.__scriptURL="",w}var h=d.prototype;return h.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+jQ++),this.__scriptLoaderID},h.setupScriptURL=function(){return this.__scriptURL=typeof t=="function"?t():t,this.__scriptURL},h.asyncScriptLoaderHandleLoad=function(y){var w=this;this.setState(y,function(){return w.props.asyncScriptOnLoad&&w.props.asyncScriptOnLoad(w.state)})},h.asyncScriptLoaderTriggerOnScriptLoaded=function(){var y=Ts[this.__scriptURL];if(!y||!y.loaded)throw new Error("Script is not loaded.");for(var w in y.observers)y.observers[w](y);delete window[e.callbackName]},h.componentDidMount=function(){var y=this,w=this.setupScriptURL(),v=this.asyncScriptLoaderGetScriptLoaderID(),C=e,E=C.globalName,$=C.callbackName,O=C.scriptId;if(E&&typeof window[E]<"u"&&(Ts[w]={loaded:!0,observers:{}}),Ts[w]){var _=Ts[w];if(_&&(_.loaded||_.errored)){this.asyncScriptLoaderHandleLoad(_);return}_.observers[v]=function(F){return y.asyncScriptLoaderHandleLoad(F)};return}var R={};R[v]=function(F){return y.asyncScriptLoaderHandleLoad(F)},Ts[w]={loaded:!1,observers:R};var k=document.createElement("script");k.src=w,k.async=!0;for(var P in e.attributes)k.setAttribute(P,e.attributes[P]);O&&(k.id=O);var L=function(q){if(Ts[w]){var Y=Ts[w],X=Y.observers;for(var ue in X)q(X[ue])&&delete X[ue]}};$&&typeof window<"u"&&(window[$]=function(){return y.asyncScriptLoaderTriggerOnScriptLoaded()}),k.onload=function(){var F=Ts[w];F&&(F.loaded=!0,L(function(q){return $?!1:(q(F),!0)}))},k.onerror=function(){var F=Ts[w];F&&(F.errored=!0,L(function(q){return q(F),!0}))},document.body.appendChild(k)},h.componentWillUnmount=function(){var y=this.__scriptURL;if(e.removeOnUnmount===!0)for(var w=document.getElementsByTagName("script"),v=0;v-1&&w[v].parentNode&&w[v].parentNode.removeChild(w[v]);var C=Ts[y];C&&(delete C.observers[this.asyncScriptLoaderGetScriptLoaderID()],e.removeOnUnmount===!0&&delete Ts[y])},h.render=function(){var y=e.globalName,w=this.props;w.asyncScriptOnLoad;var v=w.forwardedRef,C=LQ(w,["asyncScriptOnLoad","forwardedRef"]);return y&&typeof window<"u"&&(C[y]=typeof window[y]<"u"?window[y]:void 0),C.ref=v,T.createElement(r,C)},d})(T.Component),u=T.forwardRef(function(l,d){return T.createElement(o,xx({},l,{forwardedRef:d}))});return u.displayName="AsyncScriptLoader("+i+")",u.propTypes={asyncScriptOnLoad:Te.func},zB(u,r)}}var Ox="onloadcallback",qQ="grecaptcha";function Tx(){return typeof window<"u"&&window.recaptchaOptions||{}}function HQ(){var t=Tx(),e=t.useRecaptchaNet?"recaptcha.net":"www.google.com";return t.enterprise?"https://"+e+"/recaptcha/enterprise.js?onload="+Ox+"&render=explicit":"https://"+e+"/recaptcha/api.js?onload="+Ox+"&render=explicit"}const zQ=BQ(HQ,{callbackName:Ox,globalName:qQ,attributes:Tx().nonce?{nonce:Tx().nonce}:{}})(qS),VQ=({sitekey:t,enabled:e,invisible:n})=>{n=n===void 0?!0:n;const[r,i]=T.useState(),[o,u]=T.useState(!1),l=T.createRef(),d=T.useRef("");return T.useEffect(()=>{var y,w;e&&l.current&&((y=l.current)==null||y.execute(),(w=l.current)==null||w.reset())},[e,l.current]),T.useEffect(()=>{setTimeout(()=>{d.current||u(!0)},2e3)},[]),{value:r,Component:()=>!e||!t?null:N.jsx(N.Fragment,{children:N.jsx(zQ,{sitekey:t,size:n&&!o?"invisible":void 0,ref:l,onChange:y=>{i(y),d.current=y}})}),LegalNotice:()=>!n||!e?null:N.jsxs("div",{className:"mt-5 recaptcha-closure",children:["This site is protected by reCAPTCHA and the Google",N.jsxs("a",{target:"_blank",href:"https://policies.google.com/privacy",children:[" ","Privacy Policy"," "]})," ","and",N.jsxs("a",{target:"_blank",href:"https://policies.google.com/terms",children:[" ","Terms of Service"," "]})," ","apply."]})}};var v1,U0,vf,bf,wf,Sf,rw;function wn(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var GQ=0;function jo(t){return"__private_"+GQ+++"_"+t}const WQ=t=>{const n=oo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Hf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Hf{}v1=Hf;Hf.URL="/workspace/passport/check";Hf.NewUrl=t=>so(v1.URL,void 0,t);Hf.Method="post";Hf.Fetch$=async(t,e,n,r)=>io(r??v1.NewUrl(t),{method:v1.Method,...n||{}},e);Hf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Uo(u)})=>{e=e||(l=>new Uo(l));const u=await v1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Hf.Definition={name:"CheckClassicPassport",cliName:"ccp",url:"/workspace/passport/check",method:"post",description:"Checks if a classic passport (email, phone) exists or not, used in multi step authentication",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"securityToken",description:"This can be the value of ReCaptcha2, ReCaptcha3, or generate security image or voice for verification. Will be used based on the configuration.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"flags",description:"Extra information that can be useful actually when doing onboarding. Make sure sensitive information doesn't go out.",type:"slice",primitive:"string"},{name:"otpInfo",description:"If the endpoint automatically triggers a send otp, then it would be holding that information, Also the otp information can become available.",type:"object?",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}]}};var Ah=jo("value"),Rh=jo("securityToken"),JC=jo("isJsonAppliable");class _p{get value(){return wn(this,Ah)[Ah]}set value(e){wn(this,Ah)[Ah]=String(e)}setValue(e){return this.value=e,this}get securityToken(){return wn(this,Rh)[Rh]}set securityToken(e){wn(this,Rh)[Rh]=String(e)}setSecurityToken(e){return this.securityToken=e,this}constructor(e=void 0){if(Object.defineProperty(this,JC,{value:KQ}),Object.defineProperty(this,Ah,{writable:!0,value:""}),Object.defineProperty(this,Rh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wn(this,JC)[JC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.securityToken!==void 0&&(this.securityToken=n.securityToken)}toJSON(){return{value:wn(this,Ah)[Ah],securityToken:wn(this,Rh)[Rh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",securityToken:"securityToken"}}static from(e){return new _p(e)}static with(e){return new _p(e)}copyWith(e){return new _p({...this.toJSON(),...e})}clone(){return new _p(this.toJSON())}}function KQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var Ph=jo("next"),Ih=jo("flags"),fl=jo("otpInfo"),QC=jo("isJsonAppliable");class Uo{get next(){return wn(this,Ph)[Ph]}set next(e){wn(this,Ph)[Ph]=e}setNext(e){return this.next=e,this}get flags(){return wn(this,Ih)[Ih]}set flags(e){wn(this,Ih)[Ih]=e}setFlags(e){return this.flags=e,this}get otpInfo(){return wn(this,fl)[fl]}set otpInfo(e){e instanceof Uo.OtpInfo?wn(this,fl)[fl]=e:wn(this,fl)[fl]=new Uo.OtpInfo(e)}setOtpInfo(e){return this.otpInfo=e,this}constructor(e=void 0){if(Object.defineProperty(this,QC,{value:YQ}),Object.defineProperty(this,Ph,{writable:!0,value:[]}),Object.defineProperty(this,Ih,{writable:!0,value:[]}),Object.defineProperty(this,fl,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wn(this,QC)[QC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.next!==void 0&&(this.next=n.next),n.flags!==void 0&&(this.flags=n.flags),n.otpInfo!==void 0&&(this.otpInfo=n.otpInfo)}toJSON(){return{next:wn(this,Ph)[Ph],flags:wn(this,Ih)[Ih],otpInfo:wn(this,fl)[fl]}}toString(){return JSON.stringify(this)}static get Fields(){return{next$:"next",get next(){return"next[:i]"},flags$:"flags",get flags(){return"flags[:i]"},otpInfo$:"otpInfo",get otpInfo(){return xl("otpInfo",Uo.OtpInfo.Fields)}}}static from(e){return new Uo(e)}static with(e){return new Uo(e)}copyWith(e){return new Uo({...this.toJSON(),...e})}clone(){return new Uo(this.toJSON())}}U0=Uo;function YQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}Uo.OtpInfo=(vf=jo("suspendUntil"),bf=jo("validUntil"),wf=jo("blockedUntil"),Sf=jo("secondsToUnblock"),rw=jo("isJsonAppliable"),class{get suspendUntil(){return wn(this,vf)[vf]}set suspendUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(wn(this,vf)[vf]=r)}setSuspendUntil(e){return this.suspendUntil=e,this}get validUntil(){return wn(this,bf)[bf]}set validUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(wn(this,bf)[bf]=r)}setValidUntil(e){return this.validUntil=e,this}get blockedUntil(){return wn(this,wf)[wf]}set blockedUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(wn(this,wf)[wf]=r)}setBlockedUntil(e){return this.blockedUntil=e,this}get secondsToUnblock(){return wn(this,Sf)[Sf]}set secondsToUnblock(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(wn(this,Sf)[Sf]=r)}setSecondsToUnblock(e){return this.secondsToUnblock=e,this}constructor(e=void 0){if(Object.defineProperty(this,rw,{value:JQ}),Object.defineProperty(this,vf,{writable:!0,value:0}),Object.defineProperty(this,bf,{writable:!0,value:0}),Object.defineProperty(this,wf,{writable:!0,value:0}),Object.defineProperty(this,Sf,{writable:!0,value:0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wn(this,rw)[rw](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:wn(this,vf)[vf],validUntil:wn(this,bf)[bf],blockedUntil:wn(this,wf)[wf],secondsToUnblock:wn(this,Sf)[Sf]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(e){return new U0.OtpInfo(e)}static with(e){return new U0.OtpInfo(e)}copyWith(e){return new U0.OtpInfo({...this.toJSON(),...e})}clone(){return new U0.OtpInfo(this.toJSON())}});function JQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const QQ=({method:t})=>{var _,R,k;const e=Kn($r),{goBack:n,push:r,state:i}=Lr(),{locale:o}=$i(),u=WQ(),l=(i==null?void 0:i.canGoBack)!==!1;let d=!1,h="";const{data:g}=DI({});g instanceof _a&&g.data.item instanceof Of&&(d=(_=g==null?void 0:g.data)==null?void 0:_.item.enabledRecaptcha2,h=(k=(R=g==null?void 0:g.data)==null?void 0:R.item)==null?void 0:k.recaptcha2ClientKey);const y=P=>{u.mutateAsync(new _p(P)).then(L=>{var Y;const{next:F,flags:q}=(Y=L==null?void 0:L.data)==null?void 0:Y.item;F.includes("otp")&&F.length===1?r(`/${o}/selfservice/otp`,void 0,{value:P.value,type:t}):F.includes("signin-with-password")?r(`/${o}/selfservice/password`,void 0,{value:P.value,next:F,canContinueOnOtp:F==null?void 0:F.includes("otp"),flags:q}):F.includes("create-with-password")&&r(`/${o}/selfservice/complete`,void 0,{value:P.value,type:t,next:F,flags:q})}).catch(L=>{w==null||w.setErrors(fy(L))})},w=Dl({initialValues:{},onSubmit:y});let v=e.continueWithEmail,C=e.continueWithEmailDescription;t==="phone"&&(v=e.continueWithPhone,C=e.continueWithPhoneDescription);const{Component:E,LegalNotice:$,value:O}=VQ({enabled:d,sitekey:h});return T.useEffect(()=>{!d||!O||w.setFieldValue(_p.Fields.securityToken,O)},[O]),{title:v,mutation:u,canGoBack:l,form:w,enabledRecaptcha2:d,recaptcha2ClientKey:h,description:C,Recaptcha:E,LegalNotice:$,s:e,submit:y,goBack:n}};var b1;function _n(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var XQ=0;function Ds(t){return"__private_"+XQ+++"_"+t}const IN=t=>{const n=oo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),zf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class zf{}b1=zf;zf.URL="/passports/signin/classic";zf.NewUrl=t=>so(b1.URL,void 0,t);zf.Method="post";zf.Fetch$=async(t,e,n,r)=>io(r??b1.NewUrl(t),{method:b1.Method,...n||{}},e);zf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Ap(u)})=>{e=e||(l=>new Ap(l));const u=await b1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};zf.Definition={name:"ClassicSignin",cliName:"in",url:"/passports/signin/classic",method:"post",description:"Signin publicly to and account using class passports (email, password)",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"Accepts login with totp code. If enabled, first login would return a success response with next[enter-totp] value and ui can understand that user needs to be navigated into the screen other screen.",type:"string"},{name:"sessionSecret",description:"Session secret when logging in to the application requires more steps to complete.",type:"string"}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"},{name:"next",description:"The next possible action which is suggested.",type:"slice",primitive:"string"},{name:"totpUrl",description:"In case the account doesn't have totp, but enforced by installation, this value will contain the link",type:"string"},{name:"sessionSecret",description:"Returns a secret session if the authentication requires more steps.",type:"string"}]}};var Nh=Ds("value"),Mh=Ds("password"),kh=Ds("totpCode"),Dh=Ds("sessionSecret"),XC=Ds("isJsonAppliable");class Ns{get value(){return _n(this,Nh)[Nh]}set value(e){_n(this,Nh)[Nh]=String(e)}setValue(e){return this.value=e,this}get password(){return _n(this,Mh)[Mh]}set password(e){_n(this,Mh)[Mh]=String(e)}setPassword(e){return this.password=e,this}get totpCode(){return _n(this,kh)[kh]}set totpCode(e){_n(this,kh)[kh]=String(e)}setTotpCode(e){return this.totpCode=e,this}get sessionSecret(){return _n(this,Dh)[Dh]}set sessionSecret(e){_n(this,Dh)[Dh]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}constructor(e=void 0){if(Object.defineProperty(this,XC,{value:ZQ}),Object.defineProperty(this,Nh,{writable:!0,value:""}),Object.defineProperty(this,Mh,{writable:!0,value:""}),Object.defineProperty(this,kh,{writable:!0,value:""}),Object.defineProperty(this,Dh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(_n(this,XC)[XC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret)}toJSON(){return{value:_n(this,Nh)[Nh],password:_n(this,Mh)[Mh],totpCode:_n(this,kh)[kh],sessionSecret:_n(this,Dh)[Dh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode",sessionSecret:"sessionSecret"}}static from(e){return new Ns(e)}static with(e){return new Ns(e)}copyWith(e){return new Ns({...this.toJSON(),...e})}clone(){return new Ns(this.toJSON())}}function ZQ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var dl=Ds("session"),Fh=Ds("next"),Lh=Ds("totpUrl"),Uh=Ds("sessionSecret"),ZC=Ds("isJsonAppliable"),T0=Ds("lateInitFields");class Ap{get session(){return _n(this,dl)[dl]}set session(e){e instanceof Nn?_n(this,dl)[dl]=e:_n(this,dl)[dl]=new Nn(e)}setSession(e){return this.session=e,this}get next(){return _n(this,Fh)[Fh]}set next(e){_n(this,Fh)[Fh]=e}setNext(e){return this.next=e,this}get totpUrl(){return _n(this,Lh)[Lh]}set totpUrl(e){_n(this,Lh)[Lh]=String(e)}setTotpUrl(e){return this.totpUrl=e,this}get sessionSecret(){return _n(this,Uh)[Uh]}set sessionSecret(e){_n(this,Uh)[Uh]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}constructor(e=void 0){if(Object.defineProperty(this,T0,{value:tX}),Object.defineProperty(this,ZC,{value:eX}),Object.defineProperty(this,dl,{writable:!0,value:void 0}),Object.defineProperty(this,Fh,{writable:!0,value:[]}),Object.defineProperty(this,Lh,{writable:!0,value:""}),Object.defineProperty(this,Uh,{writable:!0,value:""}),e==null){_n(this,T0)[T0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(_n(this,ZC)[ZC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),n.next!==void 0&&(this.next=n.next),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),_n(this,T0)[T0](e)}toJSON(){return{session:_n(this,dl)[dl],next:_n(this,Fh)[Fh],totpUrl:_n(this,Lh)[Lh],sessionSecret:_n(this,Uh)[Uh]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return xl("session",Nn.Fields)},next$:"next",get next(){return"next[:i]"},totpUrl:"totpUrl",sessionSecret:"sessionSecret"}}static from(e){return new Ap(e)}static with(e){return new Ap(e)}copyWith(e){return new Ap({...this.toJSON(),...e})}clone(){return new Ap(this.toJSON())}}function eX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function tX(t={}){const e=t;e.session instanceof Nn||(this.session=new Nn(e.session||{}))}const e6=({method:t})=>{const{description:e,title:n,goBack:r,mutation:i,form:o,canGoBack:u,LegalNotice:l,Recaptcha:d,s:h}=QQ({method:t});return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:n}),N.jsx("p",{children:e}),N.jsx(Wo,{query:i}),N.jsx(rX,{form:o,method:t,mutation:i}),N.jsx(d,{}),u?N.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:r,children:h.chooseAnotherMethod}):null,N.jsx(l,{})]})},nX=t=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),rX=({form:t,mutation:e,method:n})=>{var u,l,d;let r="email";n===Za.Phone&&(r="phonenumber");let i=!((u=t==null?void 0:t.values)!=null&&u.value);Za.Email===n&&(i=!nX((l=t==null?void 0:t.values)==null?void 0:l.value));const o=Kn($r);return N.jsxs("form",{onSubmit:h=>{h.preventDefault(),t.submitForm()},children:[N.jsx(Bo,{autoFocus:!0,type:r,id:"value-input",dir:"ltr",value:(d=t==null?void 0:t.values)==null?void 0:d.value,errorMessage:t==null?void 0:t.errors.value,onChange:h=>t.setFieldValue(Ns.Fields.value,h,!1)}),N.jsx(Uf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:i,children:o.continue})]})};var iX=Object.defineProperty,tS=Object.getOwnPropertySymbols,NN=Object.prototype.hasOwnProperty,MN=Object.prototype.propertyIsEnumerable,t6=(t,e,n)=>e in t?iX(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_x=(t,e)=>{for(var n in e||(e={}))NN.call(e,n)&&t6(t,n,e[n]);if(tS)for(var n of tS(e))MN.call(e,n)&&t6(t,n,e[n]);return t},Ax=(t,e)=>{var n={};for(var r in t)NN.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&tS)for(var r of tS(t))e.indexOf(r)<0&&MN.call(t,r)&&(n[r]=t[r]);return n};/** * @license QR Code generator library (TypeScript) * Copyright (c) Project Nayuki. * SPDX-License-Identifier: MIT - */var qp;(t=>{const e=class Jt{constructor(d,h,g,y){if(this.version=d,this.errorCorrectionLevel=h,this.modules=[],this.isFunction=[],dJt.MAX_VERSION)throw new RangeError("Version value out of range");if(y<-1||y>7)throw new RangeError("Mask value out of range");this.size=d*4+17;let w=[];for(let C=0;C7)throw new RangeError("Invalid value");let C,E;for(C=g;;C++){const R=Jt.getNumDataCodewords(C,h)*8,k=u.getTotalBits(d,C);if(k<=R){E=k;break}if(C>=y)throw new RangeError("Data too long")}for(const R of[Jt.Ecc.MEDIUM,Jt.Ecc.QUARTILE,Jt.Ecc.HIGH])v&&E<=Jt.getNumDataCodewords(C,R)*8&&(h=R);let $=[];for(const R of d){n(R.mode.modeBits,4,$),n(R.numChars,R.mode.numCharCountBits(C),$);for(const k of R.getData())$.push(k)}i($.length==E);const O=Jt.getNumDataCodewords(C,h)*8;i($.length<=O),n(0,Math.min(4,O-$.length),$),n(0,(8-$.length%8)%8,$),i($.length%8==0);for(let R=236;$.length_[k>>>3]|=R<<7-(k&7)),new Jt(C,h,_,w)}getModule(d,h){return 0<=d&&d>>9)*1335;const y=(h<<10|g)^21522;i(y>>>15==0);for(let w=0;w<=5;w++)this.setFunctionModule(8,w,r(y,w));this.setFunctionModule(8,7,r(y,6)),this.setFunctionModule(8,8,r(y,7)),this.setFunctionModule(7,8,r(y,8));for(let w=9;w<15;w++)this.setFunctionModule(14-w,8,r(y,w));for(let w=0;w<8;w++)this.setFunctionModule(this.size-1-w,8,r(y,w));for(let w=8;w<15;w++)this.setFunctionModule(8,this.size-15+w,r(y,w));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let d=this.version;for(let g=0;g<12;g++)d=d<<1^(d>>>11)*7973;const h=this.version<<12|d;i(h>>>18==0);for(let g=0;g<18;g++){const y=r(h,g),w=this.size-11+g%3,v=Math.floor(g/3);this.setFunctionModule(w,v,y),this.setFunctionModule(v,w,y)}}drawFinderPattern(d,h){for(let g=-4;g<=4;g++)for(let y=-4;y<=4;y++){const w=Math.max(Math.abs(y),Math.abs(g)),v=d+y,C=h+g;0<=v&&v{(R!=E-w||P>=C)&&_.push(k[R])});return i(_.length==v),_}drawCodewords(d){if(d.length!=Math.floor(Jt.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let h=0;for(let g=this.size-1;g>=1;g-=2){g==6&&(g=5);for(let y=0;y>>3],7-(h&7)),h++)}}i(h==d.length*8)}applyMask(d){if(d<0||d>7)throw new RangeError("Mask value out of range");for(let h=0;h5&&d++):(this.finderPenaltyAddHistory(C,E),v||(d+=this.finderPenaltyCountPatterns(E)*Jt.PENALTY_N3),v=this.modules[w][$],C=1);d+=this.finderPenaltyTerminateAndCount(v,C,E)*Jt.PENALTY_N3}for(let w=0;w5&&d++):(this.finderPenaltyAddHistory(C,E),v||(d+=this.finderPenaltyCountPatterns(E)*Jt.PENALTY_N3),v=this.modules[$][w],C=1);d+=this.finderPenaltyTerminateAndCount(v,C,E)*Jt.PENALTY_N3}for(let w=0;wv+(C?1:0),h);const g=this.size*this.size,y=Math.ceil(Math.abs(h*20-g*10)/g)-1;return i(0<=y&&y<=9),d+=y*Jt.PENALTY_N4,i(0<=d&&d<=2568888),d}getAlignmentPatternPositions(){if(this.version==1)return[];{const d=Math.floor(this.version/7)+2,h=this.version==32?26:Math.ceil((this.version*4+4)/(d*2-2))*2;let g=[6];for(let y=this.size-7;g.lengthJt.MAX_VERSION)throw new RangeError("Version number out of range");let h=(16*d+128)*d+64;if(d>=2){const g=Math.floor(d/7)+2;h-=(25*g-10)*g-55,d>=7&&(h-=36)}return i(208<=h&&h<=29648),h}static getNumDataCodewords(d,h){return Math.floor(Jt.getNumRawDataModules(d)/8)-Jt.ECC_CODEWORDS_PER_BLOCK[h.ordinal][d]*Jt.NUM_ERROR_CORRECTION_BLOCKS[h.ordinal][d]}static reedSolomonComputeDivisor(d){if(d<1||d>255)throw new RangeError("Degree out of range");let h=[];for(let y=0;y0);for(const y of d){const w=y^g.shift();g.push(0),h.forEach((v,C)=>g[C]^=Jt.reedSolomonMultiply(v,w))}return g}static reedSolomonMultiply(d,h){if(d>>>8||h>>>8)throw new RangeError("Byte out of range");let g=0;for(let y=7;y>=0;y--)g=g<<1^(g>>>7)*285,g^=(h>>>y&1)*d;return i(g>>>8==0),g}finderPenaltyCountPatterns(d){const h=d[1];i(h<=this.size*3);const g=h>0&&d[2]==h&&d[3]==h*3&&d[4]==h&&d[5]==h;return(g&&d[0]>=h*4&&d[6]>=h?1:0)+(g&&d[6]>=h*4&&d[0]>=h?1:0)}finderPenaltyTerminateAndCount(d,h,g){return d&&(this.finderPenaltyAddHistory(h,g),h=0),h+=this.size,this.finderPenaltyAddHistory(h,g),this.finderPenaltyCountPatterns(g)}finderPenaltyAddHistory(d,h){h[0]==0&&(d+=this.size),h.pop(),h.unshift(d)}};e.MIN_VERSION=1,e.MAX_VERSION=40,e.PENALTY_N1=3,e.PENALTY_N2=3,e.PENALTY_N3=40,e.PENALTY_N4=10,e.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],e.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],t.QrCode=e;function n(l,d,h){if(d<0||d>31||l>>>d)throw new RangeError("Value out of range");for(let g=d-1;g>=0;g--)h.push(l>>>g&1)}function r(l,d){return(l>>>d&1)!=0}function i(l){if(!l)throw new Error("Assertion error")}const o=class lr{constructor(d,h,g){if(this.mode=d,this.numChars=h,this.bitData=g,h<0)throw new RangeError("Invalid argument");this.bitData=g.slice()}static makeBytes(d){let h=[];for(const g of d)n(g,8,h);return new lr(lr.Mode.BYTE,d.length,h)}static makeNumeric(d){if(!lr.isNumeric(d))throw new RangeError("String contains non-numeric characters");let h=[];for(let g=0;g=1<{(e=>{const n=class{constructor(i,o){this.ordinal=i,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),e.Ecc=n})(t.QrCode||(t.QrCode={}))})(qp||(qp={}));(t=>{(e=>{const n=class{constructor(i,o){this.modeBits=i,this.numBitsCharCount=o}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),e.Mode=n})(t.QrSegment||(t.QrSegment={}))})(qp||(qp={}));var Tg=qp;/** + */var Yp;(t=>{const e=class Qt{constructor(d,h,g,y){if(this.version=d,this.errorCorrectionLevel=h,this.modules=[],this.isFunction=[],dQt.MAX_VERSION)throw new RangeError("Version value out of range");if(y<-1||y>7)throw new RangeError("Mask value out of range");this.size=d*4+17;let w=[];for(let C=0;C7)throw new RangeError("Invalid value");let C,E;for(C=g;;C++){const R=Qt.getNumDataCodewords(C,h)*8,k=u.getTotalBits(d,C);if(k<=R){E=k;break}if(C>=y)throw new RangeError("Data too long")}for(const R of[Qt.Ecc.MEDIUM,Qt.Ecc.QUARTILE,Qt.Ecc.HIGH])v&&E<=Qt.getNumDataCodewords(C,R)*8&&(h=R);let $=[];for(const R of d){n(R.mode.modeBits,4,$),n(R.numChars,R.mode.numCharCountBits(C),$);for(const k of R.getData())$.push(k)}i($.length==E);const O=Qt.getNumDataCodewords(C,h)*8;i($.length<=O),n(0,Math.min(4,O-$.length),$),n(0,(8-$.length%8)%8,$),i($.length%8==0);for(let R=236;$.length_[k>>>3]|=R<<7-(k&7)),new Qt(C,h,_,w)}getModule(d,h){return 0<=d&&d>>9)*1335;const y=(h<<10|g)^21522;i(y>>>15==0);for(let w=0;w<=5;w++)this.setFunctionModule(8,w,r(y,w));this.setFunctionModule(8,7,r(y,6)),this.setFunctionModule(8,8,r(y,7)),this.setFunctionModule(7,8,r(y,8));for(let w=9;w<15;w++)this.setFunctionModule(14-w,8,r(y,w));for(let w=0;w<8;w++)this.setFunctionModule(this.size-1-w,8,r(y,w));for(let w=8;w<15;w++)this.setFunctionModule(8,this.size-15+w,r(y,w));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let d=this.version;for(let g=0;g<12;g++)d=d<<1^(d>>>11)*7973;const h=this.version<<12|d;i(h>>>18==0);for(let g=0;g<18;g++){const y=r(h,g),w=this.size-11+g%3,v=Math.floor(g/3);this.setFunctionModule(w,v,y),this.setFunctionModule(v,w,y)}}drawFinderPattern(d,h){for(let g=-4;g<=4;g++)for(let y=-4;y<=4;y++){const w=Math.max(Math.abs(y),Math.abs(g)),v=d+y,C=h+g;0<=v&&v{(R!=E-w||P>=C)&&_.push(k[R])});return i(_.length==v),_}drawCodewords(d){if(d.length!=Math.floor(Qt.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let h=0;for(let g=this.size-1;g>=1;g-=2){g==6&&(g=5);for(let y=0;y>>3],7-(h&7)),h++)}}i(h==d.length*8)}applyMask(d){if(d<0||d>7)throw new RangeError("Mask value out of range");for(let h=0;h5&&d++):(this.finderPenaltyAddHistory(C,E),v||(d+=this.finderPenaltyCountPatterns(E)*Qt.PENALTY_N3),v=this.modules[w][$],C=1);d+=this.finderPenaltyTerminateAndCount(v,C,E)*Qt.PENALTY_N3}for(let w=0;w5&&d++):(this.finderPenaltyAddHistory(C,E),v||(d+=this.finderPenaltyCountPatterns(E)*Qt.PENALTY_N3),v=this.modules[$][w],C=1);d+=this.finderPenaltyTerminateAndCount(v,C,E)*Qt.PENALTY_N3}for(let w=0;wv+(C?1:0),h);const g=this.size*this.size,y=Math.ceil(Math.abs(h*20-g*10)/g)-1;return i(0<=y&&y<=9),d+=y*Qt.PENALTY_N4,i(0<=d&&d<=2568888),d}getAlignmentPatternPositions(){if(this.version==1)return[];{const d=Math.floor(this.version/7)+2,h=this.version==32?26:Math.ceil((this.version*4+4)/(d*2-2))*2;let g=[6];for(let y=this.size-7;g.lengthQt.MAX_VERSION)throw new RangeError("Version number out of range");let h=(16*d+128)*d+64;if(d>=2){const g=Math.floor(d/7)+2;h-=(25*g-10)*g-55,d>=7&&(h-=36)}return i(208<=h&&h<=29648),h}static getNumDataCodewords(d,h){return Math.floor(Qt.getNumRawDataModules(d)/8)-Qt.ECC_CODEWORDS_PER_BLOCK[h.ordinal][d]*Qt.NUM_ERROR_CORRECTION_BLOCKS[h.ordinal][d]}static reedSolomonComputeDivisor(d){if(d<1||d>255)throw new RangeError("Degree out of range");let h=[];for(let y=0;y0);for(const y of d){const w=y^g.shift();g.push(0),h.forEach((v,C)=>g[C]^=Qt.reedSolomonMultiply(v,w))}return g}static reedSolomonMultiply(d,h){if(d>>>8||h>>>8)throw new RangeError("Byte out of range");let g=0;for(let y=7;y>=0;y--)g=g<<1^(g>>>7)*285,g^=(h>>>y&1)*d;return i(g>>>8==0),g}finderPenaltyCountPatterns(d){const h=d[1];i(h<=this.size*3);const g=h>0&&d[2]==h&&d[3]==h*3&&d[4]==h&&d[5]==h;return(g&&d[0]>=h*4&&d[6]>=h?1:0)+(g&&d[6]>=h*4&&d[0]>=h?1:0)}finderPenaltyTerminateAndCount(d,h,g){return d&&(this.finderPenaltyAddHistory(h,g),h=0),h+=this.size,this.finderPenaltyAddHistory(h,g),this.finderPenaltyCountPatterns(g)}finderPenaltyAddHistory(d,h){h[0]==0&&(d+=this.size),h.pop(),h.unshift(d)}};e.MIN_VERSION=1,e.MAX_VERSION=40,e.PENALTY_N1=3,e.PENALTY_N2=3,e.PENALTY_N3=40,e.PENALTY_N4=10,e.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],e.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],t.QrCode=e;function n(l,d,h){if(d<0||d>31||l>>>d)throw new RangeError("Value out of range");for(let g=d-1;g>=0;g--)h.push(l>>>g&1)}function r(l,d){return(l>>>d&1)!=0}function i(l){if(!l)throw new Error("Assertion error")}const o=class cr{constructor(d,h,g){if(this.mode=d,this.numChars=h,this.bitData=g,h<0)throw new RangeError("Invalid argument");this.bitData=g.slice()}static makeBytes(d){let h=[];for(const g of d)n(g,8,h);return new cr(cr.Mode.BYTE,d.length,h)}static makeNumeric(d){if(!cr.isNumeric(d))throw new RangeError("String contains non-numeric characters");let h=[];for(let g=0;g=1<{(e=>{const n=class{constructor(i,o){this.ordinal=i,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),e.Ecc=n})(t.QrCode||(t.QrCode={}))})(Yp||(Yp={}));(t=>{(e=>{const n=class{constructor(i,o){this.modeBits=i,this.numBitsCharCount=o}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),e.Mode=n})(t.QrSegment||(t.QrSegment={}))})(Yp||(Yp={}));var Dg=Yp;/** * @license qrcode.react * Copyright (c) Paul O'Shannessy * SPDX-License-Identifier: ISC - */var qJ={L:Tg.QrCode.Ecc.LOW,M:Tg.QrCode.Ecc.MEDIUM,Q:Tg.QrCode.Ecc.QUARTILE,H:Tg.QrCode.Ecc.HIGH},CN=128,$N="L",EN="#FFFFFF",xN="#000000",ON=!1,TN=1,HJ=4,zJ=0,VJ=.1;function _N(t,e=0){const n=[];return t.forEach(function(r,i){let o=null;r.forEach(function(u,l){if(!u&&o!==null){n.push(`M${o+e} ${i+e}h${l-o}v1H${o+e}z`),o=null;return}if(l===r.length-1){if(!u)return;o===null?n.push(`M${l+e},${i+e} h1v1H${l+e}z`):n.push(`M${o+e},${i+e} h${l+1-o}v1H${o+e}z`);return}u&&o===null&&(o=l)})}),n.join("")}function AN(t,e){return t.slice().map((n,r)=>r=e.y+e.h?n:n.map((i,o)=>o=e.x+e.w?i:!1))}function GJ(t,e,n,r){if(r==null)return null;const i=t.length+n*2,o=Math.floor(e*VJ),u=i/e,l=(r.width||o)*u,d=(r.height||o)*u,h=r.x==null?t.length/2-l/2:r.x*u,g=r.y==null?t.length/2-d/2:r.y*u,y=r.opacity==null?1:r.opacity;let w=null;if(r.excavate){let C=Math.floor(h),E=Math.floor(g),$=Math.ceil(l+h-C),O=Math.ceil(d+g-E);w={x:C,y:E,w:$,h:O}}const v=r.crossOrigin;return{x:h,y:g,h:d,w:l,excavation:w,opacity:y,crossOrigin:v}}function WJ(t,e){return e!=null?Math.max(Math.floor(e),0):t?HJ:zJ}function RN({value:t,level:e,minVersion:n,includeMargin:r,marginSize:i,imageSettings:o,size:u,boostLevel:l}){let d=Ae.useMemo(()=>{const C=(Array.isArray(t)?t:[t]).reduce((E,$)=>(E.push(...Tg.QrSegment.makeSegments($)),E),[]);return Tg.QrCode.encodeSegments(C,qJ[e],n,void 0,void 0,l)},[t,e,n,l]);const{cells:h,margin:g,numCells:y,calculatedImageSettings:w}=Ae.useMemo(()=>{let v=d.getModules();const C=WJ(r,i),E=v.length+C*2,$=GJ(v,u,C,o);return{cells:v,margin:C,numCells:E,calculatedImageSettings:$}},[d,u,o,r,i]);return{qrcode:d,margin:g,cells:h,numCells:y,calculatedImageSettings:w}}var KJ=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),YJ=Ae.forwardRef(function(e,n){const r=e,{value:i,size:o=CN,level:u=$N,bgColor:l=EN,fgColor:d=xN,includeMargin:h=ON,minVersion:g=TN,boostLevel:y,marginSize:w,imageSettings:v}=r,E=gx(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:$}=E,O=gx(E,["style"]),_=v==null?void 0:v.src,R=Ae.useRef(null),k=Ae.useRef(null),P=Ae.useCallback(be=>{R.current=be,typeof n=="function"?n(be):n&&(n.current=be)},[n]),[L,F]=Ae.useState(!1),{margin:q,cells:Y,numCells:X,calculatedImageSettings:ue}=RN({value:i,level:u,minVersion:g,boostLevel:y,includeMargin:h,marginSize:w,imageSettings:v,size:o});Ae.useEffect(()=>{if(R.current!=null){const be=R.current,we=be.getContext("2d");if(!we)return;let B=Y;const V=k.current,H=ue!=null&&V!==null&&V.complete&&V.naturalHeight!==0&&V.naturalWidth!==0;H&&ue.excavation!=null&&(B=AN(Y,ue.excavation));const ie=window.devicePixelRatio||1;be.height=be.width=o*ie;const G=o/X*ie;we.scale(G,G),we.fillStyle=l,we.fillRect(0,0,X,X),we.fillStyle=d,KJ?we.fill(new Path2D(_N(B,q))):Y.forEach(function(J,he){J.forEach(function($e,Ce){$e&&we.fillRect(Ce+q,he+q,1,1)})}),ue&&(we.globalAlpha=ue.opacity),H&&we.drawImage(V,ue.x+q,ue.y+q,ue.w,ue.h)}}),Ae.useEffect(()=>{F(!1)},[_]);const me=mx({height:o,width:o},$);let te=null;return _!=null&&(te=Ae.createElement("img",{src:_,key:_,style:{display:"none"},onLoad:()=>{F(!0)},ref:k,crossOrigin:ue==null?void 0:ue.crossOrigin})),Ae.createElement(Ae.Fragment,null,Ae.createElement("canvas",mx({style:me,height:o,width:o,ref:P,role:"img"},O)),te)});YJ.displayName="QRCodeCanvas";var PN=Ae.forwardRef(function(e,n){const r=e,{value:i,size:o=CN,level:u=$N,bgColor:l=EN,fgColor:d=xN,includeMargin:h=ON,minVersion:g=TN,boostLevel:y,title:w,marginSize:v,imageSettings:C}=r,E=gx(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:$,cells:O,numCells:_,calculatedImageSettings:R}=RN({value:i,level:u,minVersion:g,boostLevel:y,includeMargin:h,marginSize:v,imageSettings:C,size:o});let k=O,P=null;C!=null&&R!=null&&(R.excavation!=null&&(k=AN(O,R.excavation)),P=Ae.createElement("image",{href:C.src,height:R.h,width:R.w,x:R.x+$,y:R.y+$,preserveAspectRatio:"none",opacity:R.opacity,crossOrigin:R.crossOrigin}));const L=_N(k,$);return Ae.createElement("svg",mx({height:o,width:o,viewBox:`0 0 ${_} ${_}`,ref:n,role:"img"},E),!!w&&Ae.createElement("title",null,w),Ae.createElement("path",{fill:l,d:`M0,0 h${_}v${_}H0z`,shapeRendering:"crispEdges"}),Ae.createElement("path",{fill:d,d:L,shapeRendering:"crispEdges"}),P)});PN.displayName="QRCodeSVG";const v0={backspace:8,left:37,up:38,right:39,down:40};class k1 extends T.Component{constructor(e){super(e),this.__clearvalues__=()=>{const{fields:u}=this.props;this.setState({values:Array(u).fill("")}),this.iRefs[0].current.focus()},this.triggerChange=(u=this.state.values)=>{const{onChange:l,onComplete:d,fields:h}=this.props,g=u.join("");l&&l(g),d&&g.length>=h&&d(g)},this.onChange=u=>{const l=parseInt(u.target.dataset.id);if(this.props.type==="number"&&(u.target.value=u.target.value.replace(/[^\d]/gi,"")),u.target.value===""||this.props.type==="number"&&!u.target.validity.valid)return;const{fields:d}=this.props;let h;const g=u.target.value;let{values:y}=this.state;if(y=Object.assign([],y),g.length>1){let w=g.length+l-1;w>=d&&(w=d-1),h=this.iRefs[w],g.split("").forEach((C,E)=>{const $=l+E;${const l=parseInt(u.target.dataset.id),d=l-1,h=l+1,g=this.iRefs[d],y=this.iRefs[h];switch(u.keyCode){case v0.backspace:u.preventDefault();const w=[...this.state.values];this.state.values[l]?(w[l]="",this.setState({values:w}),this.triggerChange(w)):g&&(w[d]="",g.current.focus(),this.setState({values:w}),this.triggerChange(w));break;case v0.left:u.preventDefault(),g&&g.current.focus();break;case v0.right:u.preventDefault(),y&&y.current.focus();break;case v0.up:case v0.down:u.preventDefault();break}},this.onFocus=u=>{u.target.select(u)};const{fields:n,values:r}=e;let i,o=0;if(r&&r.length){i=[];for(let u=0;u=n?0:r.length}else i=Array(n).fill("");this.state={values:i,autoFocusIndex:o},this.iRefs=[];for(let u=0;uN.jsx("input",{type:g==="number"?"tel":g,pattern:g==="number"?"[0-9]*":null,autoFocus:d&&E===n,style:y,"data-id":E,value:C,id:this.props.id?`${this.props.id}-${E}`:null,ref:this.iRefs[E],onChange:this.onChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,disabled:this.props.disabled,required:this.props.required,placeholder:this.props.placeholder[E]},`${this.id}-${E}`))}),r&&N.jsxs("div",{className:"rc-loading",style:v,children:[N.jsx("div",{className:"rc-blur"}),N.jsx("svg",{className:"rc-spin",viewBox:"0 0 1024 1024","data-icon":"loading",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:N.jsx("path",{fill:"#006fff",d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"})})]})]})}}k1.propTypes={type:Te.oneOf(["text","number"]),onChange:Te.func,onComplete:Te.func,fields:Te.number,loading:Te.bool,title:Te.string,fieldWidth:Te.number,id:Te.string,fieldHeight:Te.number,autoFocus:Te.bool,className:Te.string,values:Te.arrayOf(Te.string),disabled:Te.bool,required:Te.bool,placeholder:Te.arrayOf(Te.string)};k1.defaultProps={type:"number",fields:6,fieldWidth:58,fieldHeight:54,autoFocus:!0,disabled:!1,required:!1,placeholder:[]};var l1;function vi(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var QJ=0;function Jp(t){return"__private_"+QJ+++"_"+t}const JJ=t=>{const n=zo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),qf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class qf{}l1=qf;qf.URL="/passport/totp/confirm";qf.NewUrl=t=>Vo(l1.URL,void 0,t);qf.Method="post";qf.Fetch$=async(t,e,n,r)=>qo(r??l1.NewUrl(t),{method:l1.Method,...n||{}},e);qf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new $p(u)})=>{e=e||(l=>new $p(l));const u=await l1.Fetch$(n,r,t,o);return Ho(u,l=>{const d=new no;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};qf.Definition={name:"ConfirmClassicPassportTotp",url:"/passport/totp/confirm",method:"post",description:"When user requires to setup the totp for an specifc passport, they can use this endpoint to confirm it.",in:{fields:[{name:"value",description:"Passport value, email or phone number which is already successfully registered.",type:"string",tags:{validate:"required"}},{name:"password",description:"Password related to the passport. Totp is only available for passports with a password. Basically totp is protecting passport, not otp over email or sms.",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"The totp code generated by authenticator such as google or microsft apps.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"}]}};var Mh=Jp("value"),kh=Jp("password"),Dh=Jp("totpCode"),BC=Jp("isJsonAppliable");class xf{get value(){return vi(this,Mh)[Mh]}set value(e){vi(this,Mh)[Mh]=String(e)}setValue(e){return this.value=e,this}get password(){return vi(this,kh)[kh]}set password(e){vi(this,kh)[kh]=String(e)}setPassword(e){return this.password=e,this}get totpCode(){return vi(this,Dh)[Dh]}set totpCode(e){vi(this,Dh)[Dh]=String(e)}setTotpCode(e){return this.totpCode=e,this}constructor(e=void 0){if(Object.defineProperty(this,BC,{value:XJ}),Object.defineProperty(this,Mh,{writable:!0,value:""}),Object.defineProperty(this,kh,{writable:!0,value:""}),Object.defineProperty(this,Dh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(vi(this,BC)[BC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode)}toJSON(){return{value:vi(this,Mh)[Mh],password:vi(this,kh)[kh],totpCode:vi(this,Dh)[Dh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode"}}static from(e){return new xf(e)}static with(e){return new xf(e)}copyWith(e){return new xf({...this.toJSON(),...e})}clone(){return new xf(this.toJSON())}}function XJ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var fl=Jp("session"),qC=Jp("isJsonAppliable"),b0=Jp("lateInitFields");class $p{get session(){return vi(this,fl)[fl]}set session(e){e instanceof fr?vi(this,fl)[fl]=e:vi(this,fl)[fl]=new fr(e)}setSession(e){return this.session=e,this}constructor(e=void 0){if(Object.defineProperty(this,b0,{value:eX}),Object.defineProperty(this,qC,{value:ZJ}),Object.defineProperty(this,fl,{writable:!0,value:void 0}),e==null){vi(this,b0)[b0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(vi(this,qC)[qC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),vi(this,b0)[b0](e)}toJSON(){return{session:vi(this,fl)[fl]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Af("session",fr.Fields)}}}static from(e){return new $p(e)}static with(e){return new $p(e)}copyWith(e){return new $p({...this.toJSON(),...e})}clone(){return new $p(this.toJSON())}}function ZJ(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function eX(t={}){const e=t;e.session instanceof fr||(this.session=new fr(e.session||{}))}const tX=()=>{const{goBack:t,state:e}=Ur(),n=JJ(),{onComplete:r}=M1(),i=e==null?void 0:e.totpUrl,o=e==null?void 0:e.forcedTotp,u=e==null?void 0:e.password,l=e==null?void 0:e.value,d=y=>{n.mutateAsync(new xf({...y,password:u,value:l})).then(g).catch(w=>{h==null||h.setErrors(ny(w))})},h=Nl({initialValues:{},onSubmit:d}),g=y=>{var w,v;(v=(w=y.data)==null?void 0:w.item)!=null&&v.session&&r(y)};return{mutation:n,totpUrl:i,forcedTotp:o,form:h,submit:d,goBack:t}},nX=({})=>{const{goBack:t,mutation:e,form:n,totpUrl:r,forcedTotp:i}=tX(),o=Wn($r);return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:o.setupTotp}),N.jsx("p",{children:o.setupTotpDescription}),N.jsx(Go,{query:e}),N.jsx(rX,{form:n,totpUrl:r,mutation:e,forcedTotp:i}),N.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:t,children:"Try another account"})]})},rX=({form:t,mutation:e,forcedTotp:n,totpUrl:r})=>{var u;const i=Wn($r),o=!t.values.totpCode||t.values.totpCode.length!=6;return N.jsxs("form",{onSubmit:l=>{l.preventDefault(),t.submitForm()},children:[N.jsx("center",{children:N.jsx(PN,{value:r,width:200,height:200})}),N.jsx(k1,{values:(u=t.values.totpCode)==null?void 0:u.split(""),onChange:l=>t.setFieldValue(xf.Fields.totpCode,l,!1),className:"otp-react-code-input"}),N.jsx(Ff,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:o,children:i.continue}),n!==!0&&N.jsxs(N.Fragment,{children:[N.jsx("p",{className:"mt-4",children:i.skipTotpInfo}),N.jsx("button",{className:"btn btn-warning w-100 d-block mb-2",children:i.skipTotpButton})]})]})},iX=()=>{const{goBack:t,state:e,replace:n,push:r}=Ur(),i=bN(),{onComplete:o}=M1(),u=e==null?void 0:e.totpUrl,l=e==null?void 0:e.forcedTotp,d=e==null?void 0:e.password,h=e==null?void 0:e.value,g=v=>{i.mutateAsync(new Is({...v,password:d,value:h})).then(w).catch(C=>{y==null||y.setErrors(ny(C))})},y=Nl({initialValues:{},onSubmit:(v,C)=>{i.mutateAsync(new Is(v))}}),w=v=>{var C,E;(E=(C=v.data)==null?void 0:C.item)!=null&&E.session&&o(v)};return{mutation:i,totpUrl:u,forcedTotp:l,form:y,submit:g,goBack:t}},aX=({})=>{const{goBack:t,mutation:e,form:n}=iX(),r=Wn($r);return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:r.enterTotp}),N.jsx("p",{children:r.enterTotpDescription}),N.jsx(Go,{query:e}),N.jsx(oX,{form:n,mutation:e}),N.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:t,children:r.anotherAccount})]})},oX=({form:t,mutation:e})=>{var i;const n=!t.values.totpCode||t.values.totpCode.length!=6,r=Wn($r);return N.jsxs("form",{onSubmit:o=>{o.preventDefault(),t.submitForm()},children:[N.jsx(k1,{values:(i=t.values.totpCode)==null?void 0:i.split(""),onChange:o=>t.setFieldValue(xf.Fields.totpCode,o,!1),className:"otp-react-code-input"}),N.jsx(Ff,{className:"btn btn-success w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:n,children:r.continue})]})};var c1;function Rt(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var sX=0;function Di(t){return"__private_"+sX+++"_"+t}const uX=t=>{const n=zo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Hf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Hf{}c1=Hf;Hf.URL="/passports/signup/classic";Hf.NewUrl=t=>Vo(c1.URL,void 0,t);Hf.Method="post";Hf.Fetch$=async(t,e,n,r)=>qo(r??c1.NewUrl(t),{method:c1.Method,...n||{}},e);Hf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Ep(u)})=>{e=e||(l=>new Ep(l));const u=await c1.Fetch$(n,r,t,o);return Ho(u,l=>{const d=new no;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Hf.Definition={name:"ClassicSignup",cliName:"up",url:"/passports/signup/classic",method:"post",description:"Signup a user into system via public access (aka website visitors) using either email or phone number.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"sessionSecret",description:"Required when the account creation requires recaptcha, or otp approval first. If such requirements are there, you first need to follow the otp apis, get the session secret and pass it here to complete the setup.",type:"string"},{name:"type",type:"enum",of:[{k:"phonenumber"},{k:"email"}],tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"firstName",type:"string",tags:{validate:"required"}},{name:"lastName",type:"string",tags:{validate:"required"}},{name:"inviteId",type:"string?"},{name:"publicJoinKeyId",type:"string?"},{name:"workspaceTypeId",type:"string?",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Returns the user session in case that signup is completely successful.",type:"one",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"continueToTotp",description:"Returns true and session will be empty if, the totp is required by the installation. In such scenario, you need to forward user to setup totp screen.",type:"bool"},{name:"forcedTotp",description:"Determines if user must complete totp in order to continue based on workspace or installation",type:"bool"}]}};var Fh=Di("value"),Lh=Di("sessionSecret"),Uh=Di("type"),jh=Di("password"),Bh=Di("firstName"),qh=Di("lastName"),Hh=Di("inviteId"),zh=Di("publicJoinKeyId"),Vh=Di("workspaceTypeId"),HC=Di("isJsonAppliable");class $u{get value(){return Rt(this,Fh)[Fh]}set value(e){Rt(this,Fh)[Fh]=String(e)}setValue(e){return this.value=e,this}get sessionSecret(){return Rt(this,Lh)[Lh]}set sessionSecret(e){Rt(this,Lh)[Lh]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}get type(){return Rt(this,Uh)[Uh]}set type(e){Rt(this,Uh)[Uh]=e}setType(e){return this.type=e,this}get password(){return Rt(this,jh)[jh]}set password(e){Rt(this,jh)[jh]=String(e)}setPassword(e){return this.password=e,this}get firstName(){return Rt(this,Bh)[Bh]}set firstName(e){Rt(this,Bh)[Bh]=String(e)}setFirstName(e){return this.firstName=e,this}get lastName(){return Rt(this,qh)[qh]}set lastName(e){Rt(this,qh)[qh]=String(e)}setLastName(e){return this.lastName=e,this}get inviteId(){return Rt(this,Hh)[Hh]}set inviteId(e){const n=typeof e=="string"||e===void 0||e===null;Rt(this,Hh)[Hh]=n?e:String(e)}setInviteId(e){return this.inviteId=e,this}get publicJoinKeyId(){return Rt(this,zh)[zh]}set publicJoinKeyId(e){const n=typeof e=="string"||e===void 0||e===null;Rt(this,zh)[zh]=n?e:String(e)}setPublicJoinKeyId(e){return this.publicJoinKeyId=e,this}get workspaceTypeId(){return Rt(this,Vh)[Vh]}set workspaceTypeId(e){const n=typeof e=="string"||e===void 0||e===null;Rt(this,Vh)[Vh]=n?e:String(e)}setWorkspaceTypeId(e){return this.workspaceTypeId=e,this}constructor(e=void 0){if(Object.defineProperty(this,HC,{value:lX}),Object.defineProperty(this,Fh,{writable:!0,value:""}),Object.defineProperty(this,Lh,{writable:!0,value:""}),Object.defineProperty(this,Uh,{writable:!0,value:void 0}),Object.defineProperty(this,jh,{writable:!0,value:""}),Object.defineProperty(this,Bh,{writable:!0,value:""}),Object.defineProperty(this,qh,{writable:!0,value:""}),Object.defineProperty(this,Hh,{writable:!0,value:void 0}),Object.defineProperty(this,zh,{writable:!0,value:void 0}),Object.defineProperty(this,Vh,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Rt(this,HC)[HC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.type!==void 0&&(this.type=n.type),n.password!==void 0&&(this.password=n.password),n.firstName!==void 0&&(this.firstName=n.firstName),n.lastName!==void 0&&(this.lastName=n.lastName),n.inviteId!==void 0&&(this.inviteId=n.inviteId),n.publicJoinKeyId!==void 0&&(this.publicJoinKeyId=n.publicJoinKeyId),n.workspaceTypeId!==void 0&&(this.workspaceTypeId=n.workspaceTypeId)}toJSON(){return{value:Rt(this,Fh)[Fh],sessionSecret:Rt(this,Lh)[Lh],type:Rt(this,Uh)[Uh],password:Rt(this,jh)[jh],firstName:Rt(this,Bh)[Bh],lastName:Rt(this,qh)[qh],inviteId:Rt(this,Hh)[Hh],publicJoinKeyId:Rt(this,zh)[zh],workspaceTypeId:Rt(this,Vh)[Vh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",sessionSecret:"sessionSecret",type:"type",password:"password",firstName:"firstName",lastName:"lastName",inviteId:"inviteId",publicJoinKeyId:"publicJoinKeyId",workspaceTypeId:"workspaceTypeId"}}static from(e){return new $u(e)}static with(e){return new $u(e)}copyWith(e){return new $u({...this.toJSON(),...e})}clone(){return new $u(this.toJSON())}}function lX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var dl=Di("session"),Gh=Di("totpUrl"),Wh=Di("continueToTotp"),Kh=Di("forcedTotp"),zC=Di("isJsonAppliable"),w0=Di("lateInitFields");class Ep{get session(){return Rt(this,dl)[dl]}set session(e){e instanceof fr?Rt(this,dl)[dl]=e:Rt(this,dl)[dl]=new fr(e)}setSession(e){return this.session=e,this}get totpUrl(){return Rt(this,Gh)[Gh]}set totpUrl(e){Rt(this,Gh)[Gh]=String(e)}setTotpUrl(e){return this.totpUrl=e,this}get continueToTotp(){return Rt(this,Wh)[Wh]}set continueToTotp(e){Rt(this,Wh)[Wh]=!!e}setContinueToTotp(e){return this.continueToTotp=e,this}get forcedTotp(){return Rt(this,Kh)[Kh]}set forcedTotp(e){Rt(this,Kh)[Kh]=!!e}setForcedTotp(e){return this.forcedTotp=e,this}constructor(e=void 0){if(Object.defineProperty(this,w0,{value:fX}),Object.defineProperty(this,zC,{value:cX}),Object.defineProperty(this,dl,{writable:!0,value:void 0}),Object.defineProperty(this,Gh,{writable:!0,value:""}),Object.defineProperty(this,Wh,{writable:!0,value:void 0}),Object.defineProperty(this,Kh,{writable:!0,value:void 0}),e==null){Rt(this,w0)[w0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Rt(this,zC)[zC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.continueToTotp!==void 0&&(this.continueToTotp=n.continueToTotp),n.forcedTotp!==void 0&&(this.forcedTotp=n.forcedTotp),Rt(this,w0)[w0](e)}toJSON(){return{session:Rt(this,dl)[dl],totpUrl:Rt(this,Gh)[Gh],continueToTotp:Rt(this,Wh)[Wh],forcedTotp:Rt(this,Kh)[Kh]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return Af("session",fr.Fields)},totpUrl:"totpUrl",continueToTotp:"continueToTotp",forcedTotp:"forcedTotp"}}static from(e){return new Ep(e)}static with(e){return new Ep(e)}copyWith(e){return new Ep({...this.toJSON(),...e})}clone(){return new Ep(this.toJSON())}}function cX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function fX(t={}){const e=t;e.session instanceof fr||(this.session=new fr(e.session||{}))}var f1;function Ka(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var dX=0;function D1(t){return"__private_"+dX+++"_"+t}const hX=t=>{const e=zo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),xl.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Bo({queryKey:[xl.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class xl{}f1=xl;xl.URL="/workspace/public/types";xl.NewUrl=t=>Vo(f1.URL,void 0,t);xl.Method="get";xl.Fetch$=async(t,e,n,r)=>qo(r??f1.NewUrl(t),{method:f1.Method,...n||{}},e);xl.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new xp(u)})=>{e=e||(l=>new xp(l));const u=await f1.Fetch$(n,r,t,o);return Ho(u,l=>{const d=new no;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};xl.Definition={name:"QueryWorkspaceTypesPublicly",cliName:"public-types",url:"/workspace/public/types",method:"get",description:"Returns the workspaces types available in the project publicly without authentication, and the value could be used upon signup to go different route.",out:{envelope:"GResponse",fields:[{name:"title",type:"string"},{name:"description",type:"string"},{name:"uniqueId",type:"string"},{name:"slug",type:"string"}]}};var Yh=D1("title"),Qh=D1("description"),Jh=D1("uniqueId"),Xh=D1("slug"),VC=D1("isJsonAppliable");class xp{get title(){return Ka(this,Yh)[Yh]}set title(e){Ka(this,Yh)[Yh]=String(e)}setTitle(e){return this.title=e,this}get description(){return Ka(this,Qh)[Qh]}set description(e){Ka(this,Qh)[Qh]=String(e)}setDescription(e){return this.description=e,this}get uniqueId(){return Ka(this,Jh)[Jh]}set uniqueId(e){Ka(this,Jh)[Jh]=String(e)}setUniqueId(e){return this.uniqueId=e,this}get slug(){return Ka(this,Xh)[Xh]}set slug(e){Ka(this,Xh)[Xh]=String(e)}setSlug(e){return this.slug=e,this}constructor(e=void 0){if(Object.defineProperty(this,VC,{value:pX}),Object.defineProperty(this,Yh,{writable:!0,value:""}),Object.defineProperty(this,Qh,{writable:!0,value:""}),Object.defineProperty(this,Jh,{writable:!0,value:""}),Object.defineProperty(this,Xh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Ka(this,VC)[VC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.title!==void 0&&(this.title=n.title),n.description!==void 0&&(this.description=n.description),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.slug!==void 0&&(this.slug=n.slug)}toJSON(){return{title:Ka(this,Yh)[Yh],description:Ka(this,Qh)[Qh],uniqueId:Ka(this,Jh)[Jh],slug:Ka(this,Xh)[Xh]}}toString(){return JSON.stringify(this)}static get Fields(){return{title:"title",description:"description",uniqueId:"uniqueId",slug:"slug"}}static from(e){return new xp(e)}static with(e){return new xp(e)}copyWith(e){return new xp({...this.toJSON(),...e})}clone(){return new xp(this.toJSON())}}function pX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const mX=()=>{var _;const{goBack:t,state:e,push:n}=Ur(),{locale:r}=Ci(),{onComplete:i}=M1(),o=uX(),u=e==null?void 0:e.totpUrl,{data:l,isLoading:d}=hX({}),h=((_=l==null?void 0:l.data)==null?void 0:_.items)||[],g=Wn($r),y=sessionStorage.getItem("workspace_type_id"),w=R=>{o.mutateAsync(new $u({...R,value:e==null?void 0:e.value,workspaceTypeId:O,type:e==null?void 0:e.type,sessionSecret:e==null?void 0:e.sessionSecret})).then(C).catch(k=>{v==null||v.setErrors(ny(k))})},v=Nl({initialValues:{},onSubmit:w});T.useEffect(()=>{v==null||v.setFieldValue($u.Fields.value,e==null?void 0:e.value)},[e==null?void 0:e.value]);const C=R=>{R.data.item.session?i(R):R.data.item.continueToTotp&&n(`/${r}/selfservice/totp-setup`,void 0,{totpUrl:R.data.item.totpUrl||u,forcedTotp:R.data.item.forcedTotp,password:v.values.password,value:e==null?void 0:e.value})},[E,$]=T.useState("");let O=h.length===1?h[0].uniqueId:E;return y&&(O=y),{mutation:o,isLoading:d,form:v,setSelectedWorkspaceType:$,totpUrl:u,workspaceTypeId:O,submit:w,goBack:t,s:g,workspaceTypes:h,state:e}},gX=({})=>{const{goBack:t,mutation:e,form:n,workspaceTypes:r,workspaceTypeId:i,isLoading:o,setSelectedWorkspaceType:u,s:l}=mX();return o?N.jsx("div",{className:"signin-form-container",children:N.jsx(vN,{})}):r.length===0?N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:l.registerationNotPossible}),N.jsx("p",{children:l.registerationNotPossibleLine1}),N.jsx("p",{children:l.registerationNotPossibleLine2})]}):r.length>=2&&!i?N.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[N.jsx("h1",{children:l.completeYourAccount}),N.jsx("p",{children:l.completeYourAccountDescription}),N.jsx("div",{className:" ",children:r.map(d=>N.jsxs("div",{className:"mt-3",children:[N.jsx("h2",{children:d.title}),N.jsx("p",{children:d.description}),N.jsx("button",{className:"btn btn-outline-primary w-100",onClick:()=>{u(d.uniqueId)},children:"Select"},d.uniqueId)]},d.uniqueId))})]}):N.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[N.jsx("h1",{children:l.completeYourAccount}),N.jsx("p",{children:l.completeYourAccountDescription}),N.jsx(Go,{query:e}),N.jsx(yX,{form:n,mutation:e}),N.jsx("button",{id:"go-step-back",onClick:t,className:"bg-transparent border-0",children:l.cancelStep})]})},yX=({form:t,mutation:e})=>{const n=Wn($r),r=!t.values.firstName||!t.values.lastName||!t.values.password||t.values.password.length<6;return N.jsxs("form",{onSubmit:i=>{i.preventDefault(),t.submitForm()},children:[N.jsx(Do,{value:t.values.firstName,label:n.firstName,id:"first-name-input",autoFocus:!0,errorMessage:t.errors.firstName,onChange:i=>t.setFieldValue($u.Fields.firstName,i,!1)}),N.jsx(Do,{value:t.values.lastName,label:n.lastName,id:"last-name-input",errorMessage:t.errors.lastName,onChange:i=>t.setFieldValue($u.Fields.lastName,i,!1)}),N.jsx(Do,{type:"password",value:t.values.password,label:n.password,id:"password-input",errorMessage:t.errors.password,onChange:i=>t.setFieldValue($u.Fields.password,i,!1)}),N.jsx(Ff,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:r,children:n.continue})]})};var d1;function mi(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var vX=0;function Xp(t){return"__private_"+vX+++"_"+t}const bX=t=>{const n=zo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),zf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class zf{}d1=zf;zf.URL="/workspace/passport/request-otp";zf.NewUrl=t=>Vo(d1.URL,void 0,t);zf.Method="post";zf.Fetch$=async(t,e,n,r)=>qo(r??d1.NewUrl(t),{method:d1.Method,...n||{}},e);zf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Op(u)})=>{e=e||(l=>new Op(l));const u=await d1.Fetch$(n,r,t,o);return Ho(u,l=>{const d=new no;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};zf.Definition={name:"ClassicPassportRequestOtp",cliName:"otp-request",url:"/workspace/passport/request-otp",method:"post",description:"Triggers an otp request, and will send an sms or email to the passport. This endpoint is not used for login, but rather makes a request at initial step. Later you can call classicPassportOtp to get in.",in:{fields:[{name:"value",description:"Passport value (email, phone number) which would be receiving the otp code.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}};var Zh=Xp("value"),GC=Xp("isJsonAppliable");class _g{get value(){return mi(this,Zh)[Zh]}set value(e){mi(this,Zh)[Zh]=String(e)}setValue(e){return this.value=e,this}constructor(e=void 0){if(Object.defineProperty(this,GC,{value:wX}),Object.defineProperty(this,Zh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(mi(this,GC)[GC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value)}toJSON(){return{value:mi(this,Zh)[Zh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value"}}static from(e){return new _g(e)}static with(e){return new _g(e)}copyWith(e){return new _g({...this.toJSON(),...e})}clone(){return new _g(this.toJSON())}}function wX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var ep=Xp("suspendUntil"),tp=Xp("validUntil"),np=Xp("blockedUntil"),rp=Xp("secondsToUnblock"),WC=Xp("isJsonAppliable");class Op{get suspendUntil(){return mi(this,ep)[ep]}set suspendUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(mi(this,ep)[ep]=r)}setSuspendUntil(e){return this.suspendUntil=e,this}get validUntil(){return mi(this,tp)[tp]}set validUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(mi(this,tp)[tp]=r)}setValidUntil(e){return this.validUntil=e,this}get blockedUntil(){return mi(this,np)[np]}set blockedUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(mi(this,np)[np]=r)}setBlockedUntil(e){return this.blockedUntil=e,this}get secondsToUnblock(){return mi(this,rp)[rp]}set secondsToUnblock(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(mi(this,rp)[rp]=r)}setSecondsToUnblock(e){return this.secondsToUnblock=e,this}constructor(e=void 0){if(Object.defineProperty(this,WC,{value:SX}),Object.defineProperty(this,ep,{writable:!0,value:0}),Object.defineProperty(this,tp,{writable:!0,value:0}),Object.defineProperty(this,np,{writable:!0,value:0}),Object.defineProperty(this,rp,{writable:!0,value:0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(mi(this,WC)[WC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:mi(this,ep)[ep],validUntil:mi(this,tp)[tp],blockedUntil:mi(this,np)[np],secondsToUnblock:mi(this,rp)[rp]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(e){return new Op(e)}static with(e){return new Op(e)}copyWith(e){return new Op({...this.toJSON(),...e})}clone(){return new Op(this.toJSON())}}function SX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const CX=()=>{const t=Wn($r),{goBack:e,state:n,push:r}=Ur(),{locale:i}=Ci(),{onComplete:o}=M1(),u=bN(),l=n==null?void 0:n.canContinueOnOtp,d=bX(),h=v=>{u.mutateAsync(new Is({value:v.value,password:v.password})).then(w).catch(C=>{g==null||g.setErrors(ny(C))})},g=Nl({initialValues:{},onSubmit:h}),y=()=>{d.mutateAsync(new _g({value:g.values.value})).then(v=>{r("../otp",void 0,{value:g.values.value})}).catch(v=>{v.error.message==="OtaRequestBlockedUntil"&&r("../otp",void 0,{value:g.values.value})})};T.useEffect(()=>{n!=null&&n.value&&g.setFieldValue(Is.Fields.value,n.value)},[n==null?void 0:n.value]);const w=v=>{var C,E;v.data.item.session?o(v):(C=v.data.item.next)!=null&&C.includes("enter-totp")?r(`/${i}/selfservice/totp-enter`,void 0,{value:g.values.value,password:g.values.password}):(E=v.data.item.next)!=null&&E.includes("setup-totp")&&r(`/${i}/selfservice/totp-setup`,void 0,{totpUrl:v.data.item.totpUrl,forcedTotp:!0,password:g.values.password,value:n==null?void 0:n.value})};return{mutation:u,otpEnabled:l,continueWithOtp:y,form:g,submit:h,goBack:e,s:t}},$X=({})=>{const{goBack:t,mutation:e,form:n,continueWithOtp:r,otpEnabled:i,s:o}=CX();return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:o.enterPassword}),N.jsx("p",{children:o.enterPasswordDescription}),N.jsx(Go,{query:e}),N.jsx(EX,{form:n,mutation:e,continueWithOtp:r,otpEnabled:i}),N.jsx("button",{id:"go-back-button",onClick:t,className:"btn bg-transparent w-100 mt-4",children:o.anotherAccount})]})},EX=({form:t,mutation:e,otpEnabled:n,continueWithOtp:r})=>{const i=Wn($r),o=!t.values.value||!t.values.password;return N.jsxs("form",{onSubmit:u=>{u.preventDefault(),t.submitForm()},children:[N.jsx(Do,{type:"password",value:t.values.password,label:i.password,id:"password-input",autoFocus:!0,errorMessage:t.errors.password,onChange:u=>t.setFieldValue(Is.Fields.password,u,!1)}),N.jsx(Ff,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:o,children:i.continue}),n&&N.jsx("button",{onClick:r,className:"bg-transparent border-0 mt-3 mb-3",children:i.useOneTimePassword})]})};var h1;function wr(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var xX=0;function Vf(t){return"__private_"+xX+++"_"+t}const OX=t=>{const e=zo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Gf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result))),...t||{}}),isCompleted:r,response:o}};class Gf{}h1=Gf;Gf.URL="/workspace/passport/otp";Gf.NewUrl=t=>Vo(h1.URL,void 0,t);Gf.Method="post";Gf.Fetch$=async(t,e,n,r)=>qo(r??h1.NewUrl(t),{method:h1.Method,...n||{}},e);Gf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new _p(u)})=>{e=e||(l=>new _p(l));const u=await h1.Fetch$(n,r,t,o);return Ho(u,l=>{const d=new no;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Gf.Definition={name:"ClassicPassportOtp",cliName:"otp",url:"/workspace/passport/otp",method:"post",description:"Authenticate the user publicly for classic methods using communication service, such as sms, call, or email. You need to call classicPassportRequestOtp beforehand to send a otp code, and then validate it with this API. Also checkClassicPassport action might already sent the otp, so make sure you don't send it twice.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"otp",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Upon successful authentication, there will be a session dto generated, which is a ground information of authorized user and can be stored in front-end.",type:"one?",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"sessionSecret",description:"The session secret will be used to call complete user registration api.",type:"string"},{name:"continueWithCreation",description:"If return true, means the OTP is correct and user needs to be created before continue the authentication process.",type:"bool"}]}};var ip=Vf("value"),ap=Vf("otp"),KC=Vf("isJsonAppliable");class Tp{get value(){return wr(this,ip)[ip]}set value(e){wr(this,ip)[ip]=String(e)}setValue(e){return this.value=e,this}get otp(){return wr(this,ap)[ap]}set otp(e){wr(this,ap)[ap]=String(e)}setOtp(e){return this.otp=e,this}constructor(e=void 0){if(Object.defineProperty(this,KC,{value:TX}),Object.defineProperty(this,ip,{writable:!0,value:""}),Object.defineProperty(this,ap,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wr(this,KC)[KC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.otp!==void 0&&(this.otp=n.otp)}toJSON(){return{value:wr(this,ip)[ip],otp:wr(this,ap)[ap]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",otp:"otp"}}static from(e){return new Tp(e)}static with(e){return new Tp(e)}copyWith(e){return new Tp({...this.toJSON(),...e})}clone(){return new Tp(this.toJSON())}}function TX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var hl=Vf("session"),op=Vf("totpUrl"),sp=Vf("sessionSecret"),up=Vf("continueWithCreation"),YC=Vf("isJsonAppliable");class _p{get session(){return wr(this,hl)[hl]}set session(e){e instanceof fr?wr(this,hl)[hl]=e:wr(this,hl)[hl]=new fr(e)}setSession(e){return this.session=e,this}get totpUrl(){return wr(this,op)[op]}set totpUrl(e){wr(this,op)[op]=String(e)}setTotpUrl(e){return this.totpUrl=e,this}get sessionSecret(){return wr(this,sp)[sp]}set sessionSecret(e){wr(this,sp)[sp]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}get continueWithCreation(){return wr(this,up)[up]}set continueWithCreation(e){wr(this,up)[up]=!!e}setContinueWithCreation(e){return this.continueWithCreation=e,this}constructor(e=void 0){if(Object.defineProperty(this,YC,{value:_X}),Object.defineProperty(this,hl,{writable:!0,value:void 0}),Object.defineProperty(this,op,{writable:!0,value:""}),Object.defineProperty(this,sp,{writable:!0,value:""}),Object.defineProperty(this,up,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wr(this,YC)[YC](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.continueWithCreation!==void 0&&(this.continueWithCreation=n.continueWithCreation)}toJSON(){return{session:wr(this,hl)[hl],totpUrl:wr(this,op)[op],sessionSecret:wr(this,sp)[sp],continueWithCreation:wr(this,up)[up]}}toString(){return JSON.stringify(this)}static get Fields(){return{session:"session",totpUrl:"totpUrl",sessionSecret:"sessionSecret",continueWithCreation:"continueWithCreation"}}static from(e){return new _p(e)}static with(e){return new _p(e)}copyWith(e){return new _p({...this.toJSON(),...e})}clone(){return new _p(this.toJSON())}}function _X(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const AX=()=>{const{goBack:t,state:e,replace:n,push:r}=Ur(),{locale:i}=Ci(),o=Wn($r),u=OX({}),{onComplete:l}=M1(),d=y=>{u.mutateAsync(new Tp({...y,value:e.value})).then(g).catch(w=>{h==null||h.setErrors(ny(w))})},h=Nl({initialValues:{},onSubmit:d}),g=y=>{var w,v,C,E,$;(w=y.data)!=null&&w.item.session?l(y):(C=(v=y.data)==null?void 0:v.item)!=null&&C.continueWithCreation&&r(`/${i}/selfservice/complete`,void 0,{value:e.value,type:e.type,sessionSecret:(E=y.data.item)==null?void 0:E.sessionSecret,totpUrl:($=y.data.item)==null?void 0:$.totpUrl})};return{mutation:u,form:h,s:o,submit:d,goBack:t}},RX=({})=>{const{goBack:t,mutation:e,form:n,s:r}=AX();return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:r.enterOtp}),N.jsx("p",{children:r.enterOtpDescription}),N.jsx(Go,{query:e}),N.jsx(PX,{form:n,mutation:e}),N.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:t,children:r.anotherAccount})]})},PX=({form:t,mutation:e})=>{var i;const n=!t.values.otp,r=Wn($r);return N.jsxs("form",{onSubmit:o=>{o.preventDefault(),t.submitForm()},children:[N.jsx(k1,{values:(i=t.values.otp)==null?void 0:i.split(""),onChange:o=>t.setFieldValue(Tp.Fields.otp,o,!1),className:"otp-react-code-input"}),N.jsx(Ff,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:n,children:r.continue})]})};function F1(t){const e=T.useRef(),n=Nf();T.useEffect(()=>{var h;t!=null&&t.data&&((h=e.current)==null||h.setValues(t.data))},[t==null?void 0:t.data]);const r=Ur(),i=r.query.uniqueId,o=r.query.linkerId,u=!!i,{locale:l}=Ci(),d=vn();return{router:r,t:d,isEditing:u,locale:l,queryClient:n,formik:e,uniqueId:i,linkerId:o}}function IX(t,e){var r,i;let n=!1;for(const o of((r=t==null?void 0:t.role)==null?void 0:r.capabilities)||[])if(o.uniqueId===e||o.uniqueId==="root.*"||(i=o==null?void 0:o.uniqueId)!=null&&i.endsWith(".*")&&e.includes(o.uniqueId.replace("*",""))){n=!0;break}return n}function IN(t){for(var e=[],n=t.length,r,i=0;i>>0,e.push(String.fromCharCode(r));return e.join("")}function NX(t,e,n,r,i){var o=new XMLHttpRequest;o.open(e,t),o.addEventListener("load",function(){var u=IN(this.responseText);u="data:application/text;base64,"+btoa(u),document.location=u},!1),o.setRequestHeader("Authorization",n),o.setRequestHeader("Workspace-Id",r),o.setRequestHeader("role-Id",i),o.overrideMimeType("application/octet-stream; charset=x-user-defined;"),o.send(null)}const MX=({path:t})=>{vn();const{options:e}=T.useContext(yn);kN(t?()=>{const n=e==null?void 0:e.headers;NX(e.prefix+""+t,"GET",n.authorization||"",n["workspace-id"]||"",n["role-id"]||"")}:void 0,jn.ExportTable)};function L1(t,e){const n={[jn.NewEntity]:"n",[jn.NewChildEntity]:"n",[jn.EditEntity]:"e",[jn.SidebarToggle]:"m",[jn.ViewQuestions]:"q",[jn.Delete]:"Backspace",[jn.StopStart]:" ",[jn.ExportTable]:"x",[jn.CommonBack]:"Escape",[jn.Select1Index]:"1",[jn.Select2Index]:"2",[jn.Select3Index]:"3",[jn.Select4Index]:"4",[jn.Select5Index]:"5",[jn.Select6Index]:"6",[jn.Select7Index]:"7",[jn.Select8Index]:"8",[jn.Select9Index]:"9"};let r;return typeof t=="object"?r=t.map(i=>n[i]):typeof t=="string"&&(r=n[t]),kX(r,e)}function kX(t,e){T.useEffect(()=>{if(!t||t.length===0||!e)return;function n(r){var i=r||window.event,o=i.target||i.srcElement;const u=o.tagName.toUpperCase(),l=o.type;if(["TEXTAREA","SELECT"].includes(u)){r.key==="Escape"&&i.target.blur();return}if(u==="INPUT"&&(l==="text"||l==="password")){r.key==="Escape"&&i.target.blur();return}let d=!1;typeof t=="string"&&r.key===t?d=!0:Array.isArray(t)&&(d=t.includes(r.key)),d&&e&&e(r.key)}if(e)return window.addEventListener("keyup",n),()=>{window.removeEventListener("keyup",n)}},[e,t])}const NN=Ae.createContext({setActionMenu(){},removeActionMenu(){},removeActionMenuItems(t,e){},refs:[]});function DX(){const t=T.useContext(NN);return{addActions:(i,o)=>(t.setActionMenu(i,o),()=>t.removeActionMenu(i)),removeActionMenu:i=>{t.removeActionMenu(i)},deleteActions:(i,o)=>{t.removeActionMenuItems(i,o)}}}function U1(t,e,n,r){const i=T.useContext(NN);return T.useEffect(()=>(i.setActionMenu(t,e.filter(o=>o!==void 0)),()=>{i.removeActionMenu(t)}),[]),{addActions(o,u=t){i.setActionMenu(u,o)},deleteActions(o,u=t){i.removeActionMenuItems(u,o)}}}function FX({onCancel:t,onSave:e,access:n}){const{selectedUrw:r}=T.useContext(yn),i=T.useMemo(()=>n?(r==null?void 0:r.workspaceId)!=="root"&&(n!=null&&n.onlyRoot)?!1:!(n!=null&&n.permissions)||n.permissions.length===0?!0:IX(r,n.permissions[0]):!0,[r,n]),o=vn();U1("editing-core",(({onSave:l,onCancel:d})=>i?[{icon:"",label:o.common.save,uniqueActionKey:"save",onSelect:()=>{l()}},d&&{icon:"",label:o.common.cancel,uniqueActionKey:"cancel",onSelect:()=>{d()}}]:[])({onCancel:t,onSave:e}))}function LX(t,e){const n=vn();L1(e,t),U1("commonEntityActions",[t&&{icon:iy.add,label:n.actions.new,uniqueActionKey:"new",onSelect:t}])}function MN(t,e){const n=vn();L1(e,t),U1("navigation",[t&&{icon:iy.left,label:n.actions.back,uniqueActionKey:"back",className:"navigator-back-button",onSelect:t}])}function UX(){const{session:t,options:e}=T.useContext(yn);kN(()=>{var n=new XMLHttpRequest;n.open("GET",e.prefix+"roles/export"),n.addEventListener("load",function(){var i=IN(this.responseText);i="data:application/text;base64,"+btoa(i),document.location=i},!1);const r=e==null?void 0:e.headers;n.setRequestHeader("Authorization",r.authorization||""),n.setRequestHeader("Workspace-Id",r["workspace-id"]||""),n.setRequestHeader("role-Id",r["role-id"]||""),n.overrideMimeType("application/octet-stream; charset=x-user-defined;"),n.send(null)},jn.ExportTable)}function kN(t,e){const n=vn();L1(e,t),U1("exportTools",[t&&{icon:iy.export,label:n.actions.new,uniqueActionKey:"export",onSelect:t}])}function jX(t,e){const n=vn();L1(e,t),U1("commonEntityActions",[t&&{icon:iy.edit,label:n.actions.edit,uniqueActionKey:"new",onSelect:t}])}const BX=Ae.createContext({setPageTitle(){},removePageTitle(){},ref:{title:""}});function DN(t){const e=T.useContext(BX);T.useEffect(()=>(e.setPageTitle(t||""),()=>{e.removePageTitle("")}),[t])}const FO=({data:t,Form:e,getSingleHook:n,postHook:r,onCancel:i,onFinishUriResolver:o,disableOnGetFailed:u,patchHook:l,onCreateTitle:d,onEditTitle:h,setInnerRef:g,beforeSetValues:y,forceEdit:w,onlyOnRoot:v,customClass:C,beforeSubmit:E,onSuccessPatchOrPost:$})=>{var te,be,we;const[O,_]=T.useState(),{router:R,isEditing:k,locale:P,formik:L,t:F}=F1({data:t}),q=T.useRef({});MN(i,jn.CommonBack);const{selectedUrw:Y}=T.useContext(yn);DN((k||w?h:d)||"");const{query:X}=n;T.useEffect(()=>{var B,V,H;(B=X.data)!=null&&B.data&&((V=L.current)==null||V.setValues(y?y({...X.data.data}):{...X.data.data}),_((H=X.data)==null?void 0:H.data))},[X.data]),T.useEffect(()=>{var B;(B=L.current)==null||B.setSubmitting((r==null?void 0:r.mutation.isLoading)||(l==null?void 0:l.mutation.isLoading))},[r==null?void 0:r.isLoading,l==null?void 0:l.isLoading]);const ue=(B,V)=>{let H=q.current;H.uniqueId=B.uniqueId,E&&(H=E(H)),(k||w?l==null?void 0:l.submit(H,V):r==null?void 0:r.submit(H,V)).then(G=>{var J;(J=G.data)!=null&&J.uniqueId&&($?$(G):o?R.goBackOrDefault(o(G,P)):pV("Done",{type:"success"}))}).catch(G=>void 0)},me=((te=n==null?void 0:n.query)==null?void 0:te.isLoading)||!1||((be=r==null?void 0:r.query)==null?void 0:be.isLoading)||!1||((we=l==null?void 0:l.query)==null?void 0:we.isLoading)||!1;return FX({onSave(){var B;(B=L.current)==null||B.submitForm()}}),v&&Y.workspaceId!=="root"?N.jsx("div",{children:F.onlyOnRoot}):N.jsx(FB,{innerRef:B=>{B&&(L.current=B,g&&g(B))},initialValues:{},onSubmit:ue,children:B=>{var V,H,ie,G;return N.jsx("form",{onSubmit:J=>{J.preventDefault(),B.submitForm()},className:C??"headless-form-entity-manager",children:N.jsxs("fieldset",{disabled:me,children:[N.jsx("div",{style:{marginBottom:"15px"},children:N.jsx(Go,{query:(V=r==null?void 0:r.mutation)!=null&&V.isError?r.mutation:(H=l==null?void 0:l.mutation)!=null&&H.isError?l.mutation:(ie=n==null?void 0:n.query)!=null&&ie.isError?n.query:null})}),u===!0&&((G=n==null?void 0:n.query)!=null&&G.isError)?null:N.jsx(e,{isEditing:k,initialData:O,form:{...B,setValues:(J,he)=>{for(const $e in J)Sr.set(q.current,$e,J[$e]);return B.setValues(J)},setFieldValue:(J,he,$e)=>(Sr.set(q.current,J,he),B.setFieldValue(J,he,$e))}}),N.jsx("button",{type:"submit",className:"d-none"})]})})}})};function FN({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(yn),l=e?e(o):u?u(o):Lr(o);let h=`${"/public-join-key/:uniqueId".substr(1)}?${new URLSearchParams(la(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,v=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!v&&!i&&(C=!1):C=!1,{query:Bo([o,n,"*abac.PublicJoinKeyEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}function qX(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(yn),u=r?r(i):o?o(i):Lr(i);let d=`${"/public-join-key".substr(1)}?${new URLSearchParams(la(n)).toString()}`;const g=Fr(v=>u("PATCH",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueriesData("*abac.PublicJoinKeyEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(ks(O)),$(O)}})}),fnUpdater:y}}function HX(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(yn),u=r?r(i):o?o(i):Lr(i);let d=`${"/public-join-key".substr(1)}?${new URLSearchParams(la(n)).toString()}`;const g=Fr(v=>u("POST",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueryData("*abac.PublicJoinKeyEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(ks(O)),$(O)}})}),fnUpdater:y}}function Hp(t){"@babel/helpers - typeof";return Hp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hp(t)}function zX(t,e){if(Hp(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Hp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function LN(t){var e=zX(t,"string");return Hp(e)=="symbol"?e:String(e)}function Ag(t,e,n){return e=LN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function HR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ct(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?wi(ay,--Oa):0,Gg--,_r===10&&(Gg=1,NS--),_r}function to(){return _r=Oa2||m1(_r)>3?"":" "}function dZ(t,e){for(;--e&&to()&&!(_r<48||_r>102||_r>57&&_r<65||_r>70&&_r<97););return j1(t,gw()+(e<6&&Ou()==32&&to()==32))}function wx(t){for(;to();)switch(_r){case t:return Oa;case 34:case 39:t!==34&&t!==39&&wx(_r);break;case 40:t===41&&wx(t);break;case 92:to();break}return Oa}function hZ(t,e){for(;to()&&t+_r!==57;)if(t+_r===84&&Ou()===47)break;return"/*"+j1(e,Oa-1)+"*"+IS(t===47?t:to())}function pZ(t){for(;!m1(Ou());)to();return j1(t,Oa)}function mZ(t){return GN(vw("",null,null,null,[""],t=VN(t),0,[0],t))}function vw(t,e,n,r,i,o,u,l,d){for(var h=0,g=0,y=u,w=0,v=0,C=0,E=1,$=1,O=1,_=0,R="",k=i,P=o,L=r,F=R;$;)switch(C=_,_=to()){case 40:if(C!=108&&wi(F,y-1)==58){bx(F+=wn(yw(_),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:F+=yw(_);break;case 9:case 10:case 13:case 32:F+=fZ(C);break;case 92:F+=dZ(gw()-1,7);continue;case 47:switch(Ou()){case 42:case 47:W2(gZ(hZ(to(),gw()),e,n),d);break;default:F+="/"}break;case 123*E:l[h++]=Su(F)*O;case 125*E:case 59:case 0:switch(_){case 0:case 125:$=0;case 59+g:O==-1&&(F=wn(F,/\f/g,"")),v>0&&Su(F)-y&&W2(v>32?GR(F+";",r,n,y-1):GR(wn(F," ","")+";",r,n,y-2),d);break;case 59:F+=";";default:if(W2(L=VR(F,e,n,h,g,i,l,R,k=[],P=[],y),o),_===123)if(g===0)vw(F,e,L,L,k,o,y,l,P);else switch(w===99&&wi(F,3)===110?100:w){case 100:case 108:case 109:case 115:vw(t,L,L,r&&W2(VR(t,L,L,0,0,i,l,R,i,k=[],y),P),i,P,y,l,r?k:P);break;default:vw(F,L,L,L,[""],P,0,l,P)}}h=g=v=0,E=O=1,R=F="",y=u;break;case 58:y=1+Su(F),v=C;default:if(E<1){if(_==123)--E;else if(_==125&&E++==0&&cZ()==125)continue}switch(F+=IS(_),_*E){case 38:O=g>0?1:(F+="\f",-1);break;case 44:l[h++]=(Su(F)-1)*O,O=1;break;case 64:Ou()===45&&(F+=yw(to())),w=Ou(),g=y=Su(R=F+=pZ(gw())),_++;break;case 45:C===45&&Su(F)==2&&(E=0)}}return o}function VR(t,e,n,r,i,o,u,l,d,h,g){for(var y=i-1,w=i===0?o:[""],v=BO(w),C=0,E=0,$=0;C0?w[O]+" "+_:wn(_,/&\f/g,w[O])))&&(d[$++]=R);return MS(t,e,n,i===0?UO:l,d,h,g)}function gZ(t,e,n){return MS(t,e,n,BN,IS(lZ()),p1(t,2,-2),0)}function GR(t,e,n,r){return MS(t,e,n,jO,p1(t,0,r),p1(t,r+1,-1),r)}function Bg(t,e){for(var n="",r=BO(t),i=0;i6)switch(wi(t,e+1)){case 109:if(wi(t,e+4)!==45)break;case 102:return wn(t,/(.+:)(.+)-([^]+)/,"$1"+bn+"$2-$3$1"+Gw+(wi(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~bx(t,"stretch")?WN(wn(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(wi(t,e+1)!==115)break;case 6444:switch(wi(t,Su(t)-3-(~bx(t,"!important")&&10))){case 107:return wn(t,":",":"+bn)+t;case 101:return wn(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bn+(wi(t,14)===45?"inline-":"")+"box$3$1"+bn+"$2$3$1"+Ii+"$2box$3")+t}break;case 5936:switch(wi(t,e+11)){case 114:return bn+t+Ii+wn(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return bn+t+Ii+wn(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return bn+t+Ii+wn(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return bn+t+Ii+t+t}return t}var xZ=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case jO:e.return=WN(e.value,e.length);break;case qN:return Bg([S0(e,{value:wn(e.value,"@","@"+bn)})],i);case UO:if(e.length)return uZ(e.props,function(o){switch(sZ(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bg([S0(e,{props:[wn(o,/:(read-\w+)/,":"+Gw+"$1")]})],i);case"::placeholder":return Bg([S0(e,{props:[wn(o,/:(plac\w+)/,":"+bn+"input-$1")]}),S0(e,{props:[wn(o,/:(plac\w+)/,":"+Gw+"$1")]}),S0(e,{props:[wn(o,/:(plac\w+)/,Ii+"input-$1")]})],i)}return""})}},OZ=[xZ],TZ=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(E){var $=E.getAttribute("data-emotion");$.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var i=e.stylisPlugins||OZ,o={},u,l=[];u=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var $=E.getAttribute("data-emotion").split(" "),O=1;O<$.length;O++)o[$[O]]=!0;l.push(E)});var d,h=[$Z,EZ];{var g,y=[yZ,bZ(function(E){g.insert(E)})],w=vZ(h.concat(i,y)),v=function($){return Bg(mZ($),w)};d=function($,O,_,R){g=_,v($?$+"{"+O.styles+"}":O.styles),R&&(C.inserted[O.name]=!0)}}var C={key:n,sheet:new tZ({key:n,container:u,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:d};return C.sheet.hydrate(l),C},_Z=!0;function AZ(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):r+=i+" "}),r}var KN=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||_Z===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},RZ=function(e,n,r){KN(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function PZ(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var IZ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function NZ(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var MZ=/[A-Z]|^ms/g,kZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,YN=function(e){return e.charCodeAt(1)===45},KR=function(e){return e!=null&&typeof e!="boolean"},QC=NZ(function(t){return YN(t)?t:t.replace(MZ,"-$&").toLowerCase()}),YR=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(kZ,function(r,i,o){return Cu={name:i,styles:o,next:Cu},i})}return IZ[e]!==1&&!YN(e)&&typeof n=="number"&&n!==0?n+"px":n};function g1(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Cu={name:n.name,styles:n.styles,next:Cu},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Cu={name:r.name,styles:r.styles,next:Cu},r=r.next;var i=n.styles+";";return i}return DZ(t,e,n)}case"function":{if(t!==void 0){var o=Cu,u=n(t);return Cu=o,g1(t,e,u)}break}}return n}function DZ(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i=0)&&(n[i]=t[i]);return n}function Pu(t,e){if(t==null)return{};var n=QZ(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function JZ(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const XZ=Math.min,ZZ=Math.max,Ww=Math.round,K2=Math.floor,Kw=t=>({x:t,y:t});function eee(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function XN(t){return e7(t)?(t.nodeName||"").toLowerCase():"#document"}function Ol(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ZN(t){var e;return(e=(e7(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function e7(t){return t instanceof Node||t instanceof Ol(t).Node}function tee(t){return t instanceof Element||t instanceof Ol(t).Element}function zO(t){return t instanceof HTMLElement||t instanceof Ol(t).HTMLElement}function JR(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ol(t).ShadowRoot}function t7(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=VO(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function nee(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ree(t){return["html","body","#document"].includes(XN(t))}function VO(t){return Ol(t).getComputedStyle(t)}function iee(t){if(XN(t)==="html")return t;const e=t.assignedSlot||t.parentNode||JR(t)&&t.host||ZN(t);return JR(e)?e.host:e}function n7(t){const e=iee(t);return ree(e)?t.ownerDocument?t.ownerDocument.body:t.body:zO(e)&&t7(e)?e:n7(e)}function Yw(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=n7(t),o=i===((r=t.ownerDocument)==null?void 0:r.body),u=Ol(i);return o?e.concat(u,u.visualViewport||[],t7(i)?i:[],u.frameElement&&n?Yw(u.frameElement):[]):e.concat(i,Yw(i,[],n))}function aee(t){const e=VO(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=zO(t),o=i?t.offsetWidth:n,u=i?t.offsetHeight:r,l=Ww(n)!==o||Ww(r)!==u;return l&&(n=o,r=u),{width:n,height:r,$:l}}function GO(t){return tee(t)?t:t.contextElement}function XR(t){const e=GO(t);if(!zO(e))return Kw(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:o}=aee(e);let u=(o?Ww(n.width):n.width)/r,l=(o?Ww(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!l||!Number.isFinite(l))&&(l=1),{x:u,y:l}}const oee=Kw(0);function see(t){const e=Ol(t);return!nee()||!e.visualViewport?oee:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uee(t,e,n){return!1}function ZR(t,e,n,r){e===void 0&&(e=!1);const i=t.getBoundingClientRect(),o=GO(t);let u=Kw(1);e&&(u=XR(t));const l=uee()?see(o):Kw(0);let d=(i.left+l.x)/u.x,h=(i.top+l.y)/u.y,g=i.width/u.x,y=i.height/u.y;if(o){const w=Ol(o),v=r;let C=w,E=C.frameElement;for(;E&&r&&v!==C;){const $=XR(E),O=E.getBoundingClientRect(),_=VO(E),R=O.left+(E.clientLeft+parseFloat(_.paddingLeft))*$.x,k=O.top+(E.clientTop+parseFloat(_.paddingTop))*$.y;d*=$.x,h*=$.y,g*=$.x,y*=$.y,d+=R,h+=k,C=Ol(E),E=C.frameElement}}return eee({width:g,height:y,x:d,y:h})}function lee(t,e){let n=null,r;const i=ZN(t);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function u(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),o();const{left:h,top:g,width:y,height:w}=t.getBoundingClientRect();if(l||e(),!y||!w)return;const v=K2(g),C=K2(i.clientWidth-(h+y)),E=K2(i.clientHeight-(g+w)),$=K2(h),_={rootMargin:-v+"px "+-C+"px "+-E+"px "+-$+"px",threshold:ZZ(0,XZ(1,d))||1};let R=!0;function k(P){const L=P[0].intersectionRatio;if(L!==d){if(!R)return u();L?u(!1,L):r=setTimeout(()=>{u(!1,1e-7)},100)}R=!1}try{n=new IntersectionObserver(k,{..._,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,_)}n.observe(t)}return u(!0),o}function cee(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=GO(t),g=i||o?[...h?Yw(h):[],...Yw(e)]:[];g.forEach(O=>{i&&O.addEventListener("scroll",n,{passive:!0}),o&&O.addEventListener("resize",n)});const y=h&&l?lee(h,n):null;let w=-1,v=null;u&&(v=new ResizeObserver(O=>{let[_]=O;_&&_.target===h&&v&&(v.unobserve(e),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var R;(R=v)==null||R.observe(e)})),n()}),h&&!d&&v.observe(h),v.observe(e));let C,E=d?ZR(t):null;d&&$();function $(){const O=ZR(t);E&&(O.x!==E.x||O.y!==E.y||O.width!==E.width||O.height!==E.height)&&n(),E=O,C=requestAnimationFrame($)}return n(),()=>{var O;g.forEach(_=>{i&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),y==null||y(),(O=v)==null||O.disconnect(),v=null,d&&cancelAnimationFrame(C)}}var Cx=T.useLayoutEffect,fee=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Qw=function(){};function dee(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function hee(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function mee(t){return kS(t)?window.innerHeight:t.clientHeight}function i7(t){return kS(t)?window.pageYOffset:t.scrollTop}function Jw(t,e){if(kS(t)){window.scrollTo(0,e);return}t.scrollTop=e}function gee(t){var e=getComputedStyle(t),n=e.position==="absolute",r=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var i=t;i=i.parentElement;)if(e=getComputedStyle(i),!(n&&e.position==="static")&&r.test(e.overflow+e.overflowY+e.overflowX))return i;return document.documentElement}function yee(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e}function Y2(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Qw,i=i7(t),o=e-i,u=10,l=0;function d(){l+=u;var h=yee(l,i,o,n);Jw(t,h),ln.bottom?Jw(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+i,t.scrollHeight)):r.top-i1?n-1:0),i=1;i=C)return{placement:"bottom",maxHeight:e};if(Y>=C&&!u)return o&&Y2(d,X,me),{placement:"bottom",maxHeight:e};if(!u&&Y>=r||u&&F>=r){o&&Y2(d,X,me);var te=u?F-k:Y-k;return{placement:"bottom",maxHeight:te}}if(i==="auto"||u){var be=e,we=u?L:q;return we>=r&&(be=Math.min(we-k-l,e)),{placement:"top",maxHeight:be}}if(i==="bottom")return o&&Jw(d,X),{placement:"bottom",maxHeight:e};break;case"top":if(L>=C)return{placement:"top",maxHeight:e};if(q>=C&&!u)return o&&Y2(d,ue,me),{placement:"top",maxHeight:e};if(!u&&q>=r||u&&L>=r){var B=e;return(!u&&q>=r||u&&L>=r)&&(B=u?L-P:q-P),o&&Y2(d,ue,me),{placement:"top",maxHeight:B}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return h}function _ee(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var o7=function(e){return e==="auto"?"bottom":e},Aee=function(e,n){var r,i=e.placement,o=e.theme,u=o.borderRadius,l=o.spacing,d=o.colors;return ct((r={label:"menu"},Ag(r,_ee(i),"100%"),Ag(r,"position","absolute"),Ag(r,"width","100%"),Ag(r,"zIndex",1),r),n?{}:{backgroundColor:d.neutral0,borderRadius:u,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},s7=T.createContext(null),Ree=function(e){var n=e.children,r=e.minMenuHeight,i=e.maxMenuHeight,o=e.menuPlacement,u=e.menuPosition,l=e.menuShouldScrollIntoView,d=e.theme,h=T.useContext(s7)||{},g=h.setPortalPlacement,y=T.useRef(null),w=T.useState(i),v=Jr(w,2),C=v[0],E=v[1],$=T.useState(null),O=Jr($,2),_=O[0],R=O[1],k=d.spacing.controlHeight;return Cx(function(){var P=y.current;if(P){var L=u==="fixed",F=l&&!L,q=Tee({maxHeight:i,menuEl:P,minHeight:r,placement:o,shouldScroll:F,isFixedPosition:L,controlHeight:k});E(q.maxHeight),R(q.placement),g==null||g(q.placement)}},[i,o,u,l,r,g,k]),n({ref:y,placerProps:ct(ct({},e),{},{placement:_||o7(o),maxHeight:C})})},Pee=function(e){var n=e.children,r=e.innerRef,i=e.innerProps;return mt("div",Ve({},dr(e,"menu",{menu:!0}),{ref:r},i),n)},Iee=Pee,Nee=function(e,n){var r=e.maxHeight,i=e.theme.spacing.baseUnit;return ct({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},Mee=function(e){var n=e.children,r=e.innerProps,i=e.innerRef,o=e.isMulti;return mt("div",Ve({},dr(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},u7=function(e,n){var r=e.theme,i=r.spacing.baseUnit,o=r.colors;return ct({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},kee=u7,Dee=u7,Fee=function(e){var n=e.children,r=n===void 0?"No options":n,i=e.innerProps,o=Pu(e,xee);return mt("div",Ve({},dr(ct(ct({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},Lee=function(e){var n=e.children,r=n===void 0?"Loading...":n,i=e.innerProps,o=Pu(e,Oee);return mt("div",Ve({},dr(ct(ct({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},Uee=function(e){var n=e.rect,r=e.offset,i=e.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},jee=function(e){var n=e.appendTo,r=e.children,i=e.controlElement,o=e.innerProps,u=e.menuPlacement,l=e.menuPosition,d=T.useRef(null),h=T.useRef(null),g=T.useState(o7(u)),y=Jr(g,2),w=y[0],v=y[1],C=T.useMemo(function(){return{setPortalPlacement:v}},[]),E=T.useState(null),$=Jr(E,2),O=$[0],_=$[1],R=T.useCallback(function(){if(i){var F=vee(i),q=l==="fixed"?0:window.pageYOffset,Y=F[w]+q;(Y!==(O==null?void 0:O.offset)||F.left!==(O==null?void 0:O.rect.left)||F.width!==(O==null?void 0:O.rect.width))&&_({offset:Y,rect:F})}},[i,l,w,O==null?void 0:O.offset,O==null?void 0:O.rect.left,O==null?void 0:O.rect.width]);Cx(function(){R()},[R]);var k=T.useCallback(function(){typeof h.current=="function"&&(h.current(),h.current=null),i&&d.current&&(h.current=cee(i,d.current,R,{elementResize:"ResizeObserver"in window}))},[i,R]);Cx(function(){k()},[k]);var P=T.useCallback(function(F){d.current=F,k()},[k]);if(!n&&l!=="fixed"||!O)return null;var L=mt("div",Ve({ref:P},dr(ct(ct({},e),{},{offset:O.offset,position:l,rect:O.rect}),"menuPortal",{"menu-portal":!0}),o),r);return mt(s7.Provider,{value:C},n?xu.createPortal(L,n):L)},Bee=function(e){var n=e.isDisabled,r=e.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},qee=function(e){var n=e.children,r=e.innerProps,i=e.isDisabled,o=e.isRtl;return mt("div",Ve({},dr(e,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},Hee=function(e,n){var r=e.theme.spacing,i=e.isMulti,o=e.hasValue,u=e.selectProps.controlShouldRenderValue;return ct({alignItems:"center",display:i&&o&&u?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},zee=function(e){var n=e.children,r=e.innerProps,i=e.isMulti,o=e.hasValue;return mt("div",Ve({},dr(e,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},Vee=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Gee=function(e){var n=e.children,r=e.innerProps;return mt("div",Ve({},dr(e,"indicatorsContainer",{indicators:!0}),r),n)},r6,Wee=["size"],Kee=["innerProps","isRtl","size"],Yee={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},l7=function(e){var n=e.size,r=Pu(e,Wee);return mt("svg",Ve({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Yee},r))},WO=function(e){return mt(l7,Ve({size:20},e),mt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},c7=function(e){return mt(l7,Ve({size:20},e),mt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},f7=function(e,n){var r=e.isFocused,i=e.theme,o=i.spacing.baseUnit,u=i.colors;return ct({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?u.neutral60:u.neutral20,padding:o*2,":hover":{color:r?u.neutral80:u.neutral40}})},Qee=f7,Jee=function(e){var n=e.children,r=e.innerProps;return mt("div",Ve({},dr(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||mt(c7,null))},Xee=f7,Zee=function(e){var n=e.children,r=e.innerProps;return mt("div",Ve({},dr(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||mt(WO,null))},ete=function(e,n){var r=e.isDisabled,i=e.theme,o=i.spacing.baseUnit,u=i.colors;return ct({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?u.neutral10:u.neutral20,marginBottom:o*2,marginTop:o*2})},tte=function(e){var n=e.innerProps;return mt("span",Ve({},n,dr(e,"indicatorSeparator",{"indicator-separator":!0})))},nte=GZ(r6||(r6=JZ([` + */var aX={L:Dg.QrCode.Ecc.LOW,M:Dg.QrCode.Ecc.MEDIUM,Q:Dg.QrCode.Ecc.QUARTILE,H:Dg.QrCode.Ecc.HIGH},kN=128,DN="L",FN="#FFFFFF",LN="#000000",UN=!1,jN=1,oX=4,sX=0,uX=.1;function BN(t,e=0){const n=[];return t.forEach(function(r,i){let o=null;r.forEach(function(u,l){if(!u&&o!==null){n.push(`M${o+e} ${i+e}h${l-o}v1H${o+e}z`),o=null;return}if(l===r.length-1){if(!u)return;o===null?n.push(`M${l+e},${i+e} h1v1H${l+e}z`):n.push(`M${o+e},${i+e} h${l+1-o}v1H${o+e}z`);return}u&&o===null&&(o=l)})}),n.join("")}function qN(t,e){return t.slice().map((n,r)=>r=e.y+e.h?n:n.map((i,o)=>o=e.x+e.w?i:!1))}function lX(t,e,n,r){if(r==null)return null;const i=t.length+n*2,o=Math.floor(e*uX),u=i/e,l=(r.width||o)*u,d=(r.height||o)*u,h=r.x==null?t.length/2-l/2:r.x*u,g=r.y==null?t.length/2-d/2:r.y*u,y=r.opacity==null?1:r.opacity;let w=null;if(r.excavate){let C=Math.floor(h),E=Math.floor(g),$=Math.ceil(l+h-C),O=Math.ceil(d+g-E);w={x:C,y:E,w:$,h:O}}const v=r.crossOrigin;return{x:h,y:g,h:d,w:l,excavation:w,opacity:y,crossOrigin:v}}function cX(t,e){return e!=null?Math.max(Math.floor(e),0):t?oX:sX}function HN({value:t,level:e,minVersion:n,includeMargin:r,marginSize:i,imageSettings:o,size:u,boostLevel:l}){let d=Ae.useMemo(()=>{const C=(Array.isArray(t)?t:[t]).reduce((E,$)=>(E.push(...Dg.QrSegment.makeSegments($)),E),[]);return Dg.QrCode.encodeSegments(C,aX[e],n,void 0,void 0,l)},[t,e,n,l]);const{cells:h,margin:g,numCells:y,calculatedImageSettings:w}=Ae.useMemo(()=>{let v=d.getModules();const C=cX(r,i),E=v.length+C*2,$=lX(v,u,C,o);return{cells:v,margin:C,numCells:E,calculatedImageSettings:$}},[d,u,o,r,i]);return{qrcode:d,margin:g,cells:h,numCells:y,calculatedImageSettings:w}}var fX=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),dX=Ae.forwardRef(function(e,n){const r=e,{value:i,size:o=kN,level:u=DN,bgColor:l=FN,fgColor:d=LN,includeMargin:h=UN,minVersion:g=jN,boostLevel:y,marginSize:w,imageSettings:v}=r,E=Ax(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:$}=E,O=Ax(E,["style"]),_=v==null?void 0:v.src,R=Ae.useRef(null),k=Ae.useRef(null),P=Ae.useCallback(be=>{R.current=be,typeof n=="function"?n(be):n&&(n.current=be)},[n]),[L,F]=Ae.useState(!1),{margin:q,cells:Y,numCells:X,calculatedImageSettings:ue}=HN({value:i,level:u,minVersion:g,boostLevel:y,includeMargin:h,marginSize:w,imageSettings:v,size:o});Ae.useEffect(()=>{if(R.current!=null){const be=R.current,we=be.getContext("2d");if(!we)return;let B=Y;const V=k.current,H=ue!=null&&V!==null&&V.complete&&V.naturalHeight!==0&&V.naturalWidth!==0;H&&ue.excavation!=null&&(B=qN(Y,ue.excavation));const ie=window.devicePixelRatio||1;be.height=be.width=o*ie;const G=o/X*ie;we.scale(G,G),we.fillStyle=l,we.fillRect(0,0,X,X),we.fillStyle=d,fX?we.fill(new Path2D(BN(B,q))):Y.forEach(function(Q,he){Q.forEach(function($e,Ce){$e&&we.fillRect(Ce+q,he+q,1,1)})}),ue&&(we.globalAlpha=ue.opacity),H&&we.drawImage(V,ue.x+q,ue.y+q,ue.w,ue.h)}}),Ae.useEffect(()=>{F(!1)},[_]);const me=_x({height:o,width:o},$);let te=null;return _!=null&&(te=Ae.createElement("img",{src:_,key:_,style:{display:"none"},onLoad:()=>{F(!0)},ref:k,crossOrigin:ue==null?void 0:ue.crossOrigin})),Ae.createElement(Ae.Fragment,null,Ae.createElement("canvas",_x({style:me,height:o,width:o,ref:P,role:"img"},O)),te)});dX.displayName="QRCodeCanvas";var zN=Ae.forwardRef(function(e,n){const r=e,{value:i,size:o=kN,level:u=DN,bgColor:l=FN,fgColor:d=LN,includeMargin:h=UN,minVersion:g=jN,boostLevel:y,title:w,marginSize:v,imageSettings:C}=r,E=Ax(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:$,cells:O,numCells:_,calculatedImageSettings:R}=HN({value:i,level:u,minVersion:g,boostLevel:y,includeMargin:h,marginSize:v,imageSettings:C,size:o});let k=O,P=null;C!=null&&R!=null&&(R.excavation!=null&&(k=qN(O,R.excavation)),P=Ae.createElement("image",{href:C.src,height:R.h,width:R.w,x:R.x+$,y:R.y+$,preserveAspectRatio:"none",opacity:R.opacity,crossOrigin:R.crossOrigin}));const L=BN(k,$);return Ae.createElement("svg",_x({height:o,width:o,viewBox:`0 0 ${_} ${_}`,ref:n,role:"img"},E),!!w&&Ae.createElement("title",null,w),Ae.createElement("path",{fill:l,d:`M0,0 h${_}v${_}H0z`,shapeRendering:"crispEdges"}),Ae.createElement("path",{fill:d,d:L,shapeRendering:"crispEdges"}),P)});zN.displayName="QRCodeSVG";const _0={backspace:8,left:37,up:38,right:39,down:40};class G1 extends T.Component{constructor(e){super(e),this.__clearvalues__=()=>{const{fields:u}=this.props;this.setState({values:Array(u).fill("")}),this.iRefs[0].current.focus()},this.triggerChange=(u=this.state.values)=>{const{onChange:l,onComplete:d,fields:h}=this.props,g=u.join("");l&&l(g),d&&g.length>=h&&d(g)},this.onChange=u=>{const l=parseInt(u.target.dataset.id);if(this.props.type==="number"&&(u.target.value=u.target.value.replace(/[^\d]/gi,"")),u.target.value===""||this.props.type==="number"&&!u.target.validity.valid)return;const{fields:d}=this.props;let h;const g=u.target.value;let{values:y}=this.state;if(y=Object.assign([],y),g.length>1){let w=g.length+l-1;w>=d&&(w=d-1),h=this.iRefs[w],g.split("").forEach((C,E)=>{const $=l+E;${const l=parseInt(u.target.dataset.id),d=l-1,h=l+1,g=this.iRefs[d],y=this.iRefs[h];switch(u.keyCode){case _0.backspace:u.preventDefault();const w=[...this.state.values];this.state.values[l]?(w[l]="",this.setState({values:w}),this.triggerChange(w)):g&&(w[d]="",g.current.focus(),this.setState({values:w}),this.triggerChange(w));break;case _0.left:u.preventDefault(),g&&g.current.focus();break;case _0.right:u.preventDefault(),y&&y.current.focus();break;case _0.up:case _0.down:u.preventDefault();break}},this.onFocus=u=>{u.target.select(u)};const{fields:n,values:r}=e;let i,o=0;if(r&&r.length){i=[];for(let u=0;u=n?0:r.length}else i=Array(n).fill("");this.state={values:i,autoFocusIndex:o},this.iRefs=[];for(let u=0;uN.jsx("input",{type:g==="number"?"tel":g,pattern:g==="number"?"[0-9]*":null,autoFocus:d&&E===n,style:y,"data-id":E,value:C,id:this.props.id?`${this.props.id}-${E}`:null,ref:this.iRefs[E],onChange:this.onChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,disabled:this.props.disabled,required:this.props.required,placeholder:this.props.placeholder[E]},`${this.id}-${E}`))}),r&&N.jsxs("div",{className:"rc-loading",style:v,children:[N.jsx("div",{className:"rc-blur"}),N.jsx("svg",{className:"rc-spin",viewBox:"0 0 1024 1024","data-icon":"loading",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:N.jsx("path",{fill:"#006fff",d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"})})]})]})}}G1.propTypes={type:Te.oneOf(["text","number"]),onChange:Te.func,onComplete:Te.func,fields:Te.number,loading:Te.bool,title:Te.string,fieldWidth:Te.number,id:Te.string,fieldHeight:Te.number,autoFocus:Te.bool,className:Te.string,values:Te.arrayOf(Te.string),disabled:Te.bool,required:Te.bool,placeholder:Te.arrayOf(Te.string)};G1.defaultProps={type:"number",fields:6,fieldWidth:58,fieldHeight:54,autoFocus:!0,disabled:!1,required:!1,placeholder:[]};var w1;function bi(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var hX=0;function am(t){return"__private_"+hX+++"_"+t}const pX=t=>{const n=oo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Vf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Vf{}w1=Vf;Vf.URL="/passport/totp/confirm";Vf.NewUrl=t=>so(w1.URL,void 0,t);Vf.Method="post";Vf.Fetch$=async(t,e,n,r)=>io(r??w1.NewUrl(t),{method:w1.Method,...n||{}},e);Vf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Rp(u)})=>{e=e||(l=>new Rp(l));const u=await w1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Vf.Definition={name:"ConfirmClassicPassportTotp",url:"/passport/totp/confirm",method:"post",description:"When user requires to setup the totp for an specifc passport, they can use this endpoint to confirm it.",in:{fields:[{name:"value",description:"Passport value, email or phone number which is already successfully registered.",type:"string",tags:{validate:"required"}},{name:"password",description:"Password related to the passport. Totp is only available for passports with a password. Basically totp is protecting passport, not otp over email or sms.",type:"string",tags:{validate:"required"}},{name:"totpCode",description:"The totp code generated by authenticator such as google or microsft apps.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",type:"one",target:"UserSessionDto"}]}};var jh=am("value"),Bh=am("password"),qh=am("totpCode"),e$=am("isJsonAppliable");class _f{get value(){return bi(this,jh)[jh]}set value(e){bi(this,jh)[jh]=String(e)}setValue(e){return this.value=e,this}get password(){return bi(this,Bh)[Bh]}set password(e){bi(this,Bh)[Bh]=String(e)}setPassword(e){return this.password=e,this}get totpCode(){return bi(this,qh)[qh]}set totpCode(e){bi(this,qh)[qh]=String(e)}setTotpCode(e){return this.totpCode=e,this}constructor(e=void 0){if(Object.defineProperty(this,e$,{value:mX}),Object.defineProperty(this,jh,{writable:!0,value:""}),Object.defineProperty(this,Bh,{writable:!0,value:""}),Object.defineProperty(this,qh,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(bi(this,e$)[e$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.password!==void 0&&(this.password=n.password),n.totpCode!==void 0&&(this.totpCode=n.totpCode)}toJSON(){return{value:bi(this,jh)[jh],password:bi(this,Bh)[Bh],totpCode:bi(this,qh)[qh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",password:"password",totpCode:"totpCode"}}static from(e){return new _f(e)}static with(e){return new _f(e)}copyWith(e){return new _f({...this.toJSON(),...e})}clone(){return new _f(this.toJSON())}}function mX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var hl=am("session"),t$=am("isJsonAppliable"),A0=am("lateInitFields");class Rp{get session(){return bi(this,hl)[hl]}set session(e){e instanceof Nn?bi(this,hl)[hl]=e:bi(this,hl)[hl]=new Nn(e)}setSession(e){return this.session=e,this}constructor(e=void 0){if(Object.defineProperty(this,A0,{value:yX}),Object.defineProperty(this,t$,{value:gX}),Object.defineProperty(this,hl,{writable:!0,value:void 0}),e==null){bi(this,A0)[A0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(bi(this,t$)[t$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),bi(this,A0)[A0](e)}toJSON(){return{session:bi(this,hl)[hl]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return xl("session",Nn.Fields)}}}static from(e){return new Rp(e)}static with(e){return new Rp(e)}copyWith(e){return new Rp({...this.toJSON(),...e})}clone(){return new Rp(this.toJSON())}}function gX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function yX(t={}){const e=t;e.session instanceof Nn||(this.session=new Nn(e.session||{}))}const vX=()=>{const{goBack:t,state:e}=Lr(),n=pX(),{onComplete:r}=V1(),i=e==null?void 0:e.totpUrl,o=e==null?void 0:e.forcedTotp,u=e==null?void 0:e.password,l=e==null?void 0:e.value,d=y=>{n.mutateAsync(new _f({...y,password:u,value:l})).then(g).catch(w=>{h==null||h.setErrors(fy(w))})},h=Dl({initialValues:{},onSubmit:d}),g=y=>{var w,v;(v=(w=y.data)==null?void 0:w.item)!=null&&v.session&&r(y)};return{mutation:n,totpUrl:i,forcedTotp:o,form:h,submit:d,goBack:t}},bX=({})=>{const{goBack:t,mutation:e,form:n,totpUrl:r,forcedTotp:i}=vX(),o=Kn($r);return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:o.setupTotp}),N.jsx("p",{children:o.setupTotpDescription}),N.jsx(Wo,{query:e}),N.jsx(wX,{form:n,totpUrl:r,mutation:e,forcedTotp:i}),N.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:t,children:"Try another account"})]})},wX=({form:t,mutation:e,forcedTotp:n,totpUrl:r})=>{var u;const i=Kn($r),o=!t.values.totpCode||t.values.totpCode.length!=6;return N.jsxs("form",{onSubmit:l=>{l.preventDefault(),t.submitForm()},children:[N.jsx("center",{children:N.jsx(zN,{value:r,width:200,height:200})}),N.jsx(G1,{values:(u=t.values.totpCode)==null?void 0:u.split(""),onChange:l=>t.setFieldValue(_f.Fields.totpCode,l,!1),className:"otp-react-code-input"}),N.jsx(Uf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:o,children:i.continue}),n!==!0&&N.jsxs(N.Fragment,{children:[N.jsx("p",{className:"mt-4",children:i.skipTotpInfo}),N.jsx("button",{className:"btn btn-warning w-100 d-block mb-2",children:i.skipTotpButton})]})]})},SX=()=>{const{goBack:t,state:e,replace:n,push:r}=Lr(),i=IN(),{onComplete:o}=V1(),u=e==null?void 0:e.totpUrl,l=e==null?void 0:e.forcedTotp,d=e==null?void 0:e.password,h=e==null?void 0:e.value,g=v=>{i.mutateAsync(new Ns({...v,password:d,value:h})).then(w).catch(C=>{y==null||y.setErrors(fy(C))})},y=Dl({initialValues:{},onSubmit:(v,C)=>{i.mutateAsync(new Ns(v))}}),w=v=>{var C,E;(E=(C=v.data)==null?void 0:C.item)!=null&&E.session&&o(v)};return{mutation:i,totpUrl:u,forcedTotp:l,form:y,submit:g,goBack:t}},CX=({})=>{const{goBack:t,mutation:e,form:n}=SX(),r=Kn($r);return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:r.enterTotp}),N.jsx("p",{children:r.enterTotpDescription}),N.jsx(Wo,{query:e}),N.jsx($X,{form:n,mutation:e}),N.jsx("button",{id:"go-back-button",className:"btn w-100 d-block",onClick:t,children:r.anotherAccount})]})},$X=({form:t,mutation:e})=>{var i;const n=!t.values.totpCode||t.values.totpCode.length!=6,r=Kn($r);return N.jsxs("form",{onSubmit:o=>{o.preventDefault(),t.submitForm()},children:[N.jsx(G1,{values:(i=t.values.totpCode)==null?void 0:i.split(""),onChange:o=>t.setFieldValue(_f.Fields.totpCode,o,!1),className:"otp-react-code-input"}),N.jsx(Uf,{className:"btn btn-success w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:n,children:r.continue})]})};var S1;function Rt(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var EX=0;function Fi(t){return"__private_"+EX+++"_"+t}const xX=t=>{const n=oo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Gf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Gf{}S1=Gf;Gf.URL="/passports/signup/classic";Gf.NewUrl=t=>so(S1.URL,void 0,t);Gf.Method="post";Gf.Fetch$=async(t,e,n,r)=>io(r??S1.NewUrl(t),{method:S1.Method,...n||{}},e);Gf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Pp(u)})=>{e=e||(l=>new Pp(l));const u=await S1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Gf.Definition={name:"ClassicSignup",cliName:"up",url:"/passports/signup/classic",method:"post",description:"Signup a user into system via public access (aka website visitors) using either email or phone number.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"sessionSecret",description:"Required when the account creation requires recaptcha, or otp approval first. If such requirements are there, you first need to follow the otp apis, get the session secret and pass it here to complete the setup.",type:"string"},{name:"type",type:"enum",of:[{k:"phonenumber"},{k:"email"}],tags:{validate:"required"}},{name:"password",type:"string",tags:{validate:"required"}},{name:"firstName",type:"string",tags:{validate:"required"}},{name:"lastName",type:"string",tags:{validate:"required"}},{name:"inviteId",type:"string?"},{name:"publicJoinKeyId",type:"string?"},{name:"workspaceTypeId",type:"string?",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Returns the user session in case that signup is completely successful.",type:"one",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"continueToTotp",description:"Returns true and session will be empty if, the totp is required by the installation. In such scenario, you need to forward user to setup totp screen.",type:"bool"},{name:"forcedTotp",description:"Determines if user must complete totp in order to continue based on workspace or installation",type:"bool"}]}};var Hh=Fi("value"),zh=Fi("sessionSecret"),Vh=Fi("type"),Gh=Fi("password"),Wh=Fi("firstName"),Kh=Fi("lastName"),Yh=Fi("inviteId"),Jh=Fi("publicJoinKeyId"),Qh=Fi("workspaceTypeId"),n$=Fi("isJsonAppliable");class $u{get value(){return Rt(this,Hh)[Hh]}set value(e){Rt(this,Hh)[Hh]=String(e)}setValue(e){return this.value=e,this}get sessionSecret(){return Rt(this,zh)[zh]}set sessionSecret(e){Rt(this,zh)[zh]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}get type(){return Rt(this,Vh)[Vh]}set type(e){Rt(this,Vh)[Vh]=e}setType(e){return this.type=e,this}get password(){return Rt(this,Gh)[Gh]}set password(e){Rt(this,Gh)[Gh]=String(e)}setPassword(e){return this.password=e,this}get firstName(){return Rt(this,Wh)[Wh]}set firstName(e){Rt(this,Wh)[Wh]=String(e)}setFirstName(e){return this.firstName=e,this}get lastName(){return Rt(this,Kh)[Kh]}set lastName(e){Rt(this,Kh)[Kh]=String(e)}setLastName(e){return this.lastName=e,this}get inviteId(){return Rt(this,Yh)[Yh]}set inviteId(e){const n=typeof e=="string"||e===void 0||e===null;Rt(this,Yh)[Yh]=n?e:String(e)}setInviteId(e){return this.inviteId=e,this}get publicJoinKeyId(){return Rt(this,Jh)[Jh]}set publicJoinKeyId(e){const n=typeof e=="string"||e===void 0||e===null;Rt(this,Jh)[Jh]=n?e:String(e)}setPublicJoinKeyId(e){return this.publicJoinKeyId=e,this}get workspaceTypeId(){return Rt(this,Qh)[Qh]}set workspaceTypeId(e){const n=typeof e=="string"||e===void 0||e===null;Rt(this,Qh)[Qh]=n?e:String(e)}setWorkspaceTypeId(e){return this.workspaceTypeId=e,this}constructor(e=void 0){if(Object.defineProperty(this,n$,{value:OX}),Object.defineProperty(this,Hh,{writable:!0,value:""}),Object.defineProperty(this,zh,{writable:!0,value:""}),Object.defineProperty(this,Vh,{writable:!0,value:void 0}),Object.defineProperty(this,Gh,{writable:!0,value:""}),Object.defineProperty(this,Wh,{writable:!0,value:""}),Object.defineProperty(this,Kh,{writable:!0,value:""}),Object.defineProperty(this,Yh,{writable:!0,value:void 0}),Object.defineProperty(this,Jh,{writable:!0,value:void 0}),Object.defineProperty(this,Qh,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Rt(this,n$)[n$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.type!==void 0&&(this.type=n.type),n.password!==void 0&&(this.password=n.password),n.firstName!==void 0&&(this.firstName=n.firstName),n.lastName!==void 0&&(this.lastName=n.lastName),n.inviteId!==void 0&&(this.inviteId=n.inviteId),n.publicJoinKeyId!==void 0&&(this.publicJoinKeyId=n.publicJoinKeyId),n.workspaceTypeId!==void 0&&(this.workspaceTypeId=n.workspaceTypeId)}toJSON(){return{value:Rt(this,Hh)[Hh],sessionSecret:Rt(this,zh)[zh],type:Rt(this,Vh)[Vh],password:Rt(this,Gh)[Gh],firstName:Rt(this,Wh)[Wh],lastName:Rt(this,Kh)[Kh],inviteId:Rt(this,Yh)[Yh],publicJoinKeyId:Rt(this,Jh)[Jh],workspaceTypeId:Rt(this,Qh)[Qh]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",sessionSecret:"sessionSecret",type:"type",password:"password",firstName:"firstName",lastName:"lastName",inviteId:"inviteId",publicJoinKeyId:"publicJoinKeyId",workspaceTypeId:"workspaceTypeId"}}static from(e){return new $u(e)}static with(e){return new $u(e)}copyWith(e){return new $u({...this.toJSON(),...e})}clone(){return new $u(this.toJSON())}}function OX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var pl=Fi("session"),Xh=Fi("totpUrl"),Zh=Fi("continueToTotp"),ep=Fi("forcedTotp"),r$=Fi("isJsonAppliable"),R0=Fi("lateInitFields");class Pp{get session(){return Rt(this,pl)[pl]}set session(e){e instanceof Nn?Rt(this,pl)[pl]=e:Rt(this,pl)[pl]=new Nn(e)}setSession(e){return this.session=e,this}get totpUrl(){return Rt(this,Xh)[Xh]}set totpUrl(e){Rt(this,Xh)[Xh]=String(e)}setTotpUrl(e){return this.totpUrl=e,this}get continueToTotp(){return Rt(this,Zh)[Zh]}set continueToTotp(e){Rt(this,Zh)[Zh]=!!e}setContinueToTotp(e){return this.continueToTotp=e,this}get forcedTotp(){return Rt(this,ep)[ep]}set forcedTotp(e){Rt(this,ep)[ep]=!!e}setForcedTotp(e){return this.forcedTotp=e,this}constructor(e=void 0){if(Object.defineProperty(this,R0,{value:_X}),Object.defineProperty(this,r$,{value:TX}),Object.defineProperty(this,pl,{writable:!0,value:void 0}),Object.defineProperty(this,Xh,{writable:!0,value:""}),Object.defineProperty(this,Zh,{writable:!0,value:void 0}),Object.defineProperty(this,ep,{writable:!0,value:void 0}),e==null){Rt(this,R0)[R0]();return}if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Rt(this,r$)[r$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.continueToTotp!==void 0&&(this.continueToTotp=n.continueToTotp),n.forcedTotp!==void 0&&(this.forcedTotp=n.forcedTotp),Rt(this,R0)[R0](e)}toJSON(){return{session:Rt(this,pl)[pl],totpUrl:Rt(this,Xh)[Xh],continueToTotp:Rt(this,Zh)[Zh],forcedTotp:Rt(this,ep)[ep]}}toString(){return JSON.stringify(this)}static get Fields(){return{session$:"session",get session(){return xl("session",Nn.Fields)},totpUrl:"totpUrl",continueToTotp:"continueToTotp",forcedTotp:"forcedTotp"}}static from(e){return new Pp(e)}static with(e){return new Pp(e)}copyWith(e){return new Pp({...this.toJSON(),...e})}clone(){return new Pp(this.toJSON())}}function TX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function _X(t={}){const e=t;e.session instanceof Nn||(this.session=new Nn(e.session||{}))}var C1;function Ja(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var AX=0;function W1(t){return"__private_"+AX+++"_"+t}const RX=t=>{const e=oo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),_l.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Go({queryKey:[_l.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class _l{}C1=_l;_l.URL="/workspace/public/types";_l.NewUrl=t=>so(C1.URL,void 0,t);_l.Method="get";_l.Fetch$=async(t,e,n,r)=>io(r??C1.NewUrl(t),{method:C1.Method,...n||{}},e);_l.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Ip(u)})=>{e=e||(l=>new Ip(l));const u=await C1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};_l.Definition={name:"QueryWorkspaceTypesPublicly",cliName:"public-types",url:"/workspace/public/types",method:"get",description:"Returns the workspaces types available in the project publicly without authentication, and the value could be used upon signup to go different route.",out:{envelope:"GResponse",fields:[{name:"title",type:"string"},{name:"description",type:"string"},{name:"uniqueId",type:"string"},{name:"slug",type:"string"}]}};var tp=W1("title"),np=W1("description"),rp=W1("uniqueId"),ip=W1("slug"),i$=W1("isJsonAppliable");class Ip{get title(){return Ja(this,tp)[tp]}set title(e){Ja(this,tp)[tp]=String(e)}setTitle(e){return this.title=e,this}get description(){return Ja(this,np)[np]}set description(e){Ja(this,np)[np]=String(e)}setDescription(e){return this.description=e,this}get uniqueId(){return Ja(this,rp)[rp]}set uniqueId(e){Ja(this,rp)[rp]=String(e)}setUniqueId(e){return this.uniqueId=e,this}get slug(){return Ja(this,ip)[ip]}set slug(e){Ja(this,ip)[ip]=String(e)}setSlug(e){return this.slug=e,this}constructor(e=void 0){if(Object.defineProperty(this,i$,{value:PX}),Object.defineProperty(this,tp,{writable:!0,value:""}),Object.defineProperty(this,np,{writable:!0,value:""}),Object.defineProperty(this,rp,{writable:!0,value:""}),Object.defineProperty(this,ip,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Ja(this,i$)[i$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.title!==void 0&&(this.title=n.title),n.description!==void 0&&(this.description=n.description),n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.slug!==void 0&&(this.slug=n.slug)}toJSON(){return{title:Ja(this,tp)[tp],description:Ja(this,np)[np],uniqueId:Ja(this,rp)[rp],slug:Ja(this,ip)[ip]}}toString(){return JSON.stringify(this)}static get Fields(){return{title:"title",description:"description",uniqueId:"uniqueId",slug:"slug"}}static from(e){return new Ip(e)}static with(e){return new Ip(e)}copyWith(e){return new Ip({...this.toJSON(),...e})}clone(){return new Ip(this.toJSON())}}function PX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const IX=()=>{var _;const{goBack:t,state:e,push:n}=Lr(),{locale:r}=$i(),{onComplete:i}=V1(),o=xX(),u=e==null?void 0:e.totpUrl,{data:l,isLoading:d}=RX({}),h=((_=l==null?void 0:l.data)==null?void 0:_.items)||[],g=Kn($r),y=sessionStorage.getItem("workspace_type_id"),w=R=>{o.mutateAsync(new $u({...R,value:e==null?void 0:e.value,workspaceTypeId:O,type:e==null?void 0:e.type,sessionSecret:e==null?void 0:e.sessionSecret})).then(C).catch(k=>{v==null||v.setErrors(fy(k))})},v=Dl({initialValues:{},onSubmit:w});T.useEffect(()=>{v==null||v.setFieldValue($u.Fields.value,e==null?void 0:e.value)},[e==null?void 0:e.value]);const C=R=>{R.data.item.session?i(R):R.data.item.continueToTotp&&n(`/${r}/selfservice/totp-setup`,void 0,{totpUrl:R.data.item.totpUrl||u,forcedTotp:R.data.item.forcedTotp,password:v.values.password,value:e==null?void 0:e.value})},[E,$]=T.useState("");let O=h.length===1?h[0].uniqueId:E;return y&&(O=y),{mutation:o,isLoading:d,form:v,setSelectedWorkspaceType:$,totpUrl:u,workspaceTypeId:O,submit:w,goBack:t,s:g,workspaceTypes:h,state:e}},NX=({})=>{const{goBack:t,mutation:e,form:n,workspaceTypes:r,workspaceTypeId:i,isLoading:o,setSelectedWorkspaceType:u,s:l}=IX();return o?N.jsx("div",{className:"signin-form-container",children:N.jsx(PN,{})}):r.length===0?N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:l.registerationNotPossible}),N.jsx("p",{children:l.registerationNotPossibleLine1}),N.jsx("p",{children:l.registerationNotPossibleLine2})]}):r.length>=2&&!i?N.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[N.jsx("h1",{children:l.completeYourAccount}),N.jsx("p",{children:l.completeYourAccountDescription}),N.jsx("div",{className:" ",children:r.map(d=>N.jsxs("div",{className:"mt-3",children:[N.jsx("h2",{children:d.title}),N.jsx("p",{children:d.description}),N.jsx("button",{className:"btn btn-outline-primary w-100",onClick:()=>{u(d.uniqueId)},children:"Select"},d.uniqueId)]},d.uniqueId))})]}):N.jsxs("div",{className:"signin-form-container fadein",style:{animation:"fadein 1s"},children:[N.jsx("h1",{children:l.completeYourAccount}),N.jsx("p",{children:l.completeYourAccountDescription}),N.jsx(Wo,{query:e}),N.jsx(MX,{form:n,mutation:e}),N.jsx("button",{id:"go-step-back",onClick:t,className:"bg-transparent border-0",children:l.cancelStep})]})},MX=({form:t,mutation:e})=>{const n=Kn($r),r=!t.values.firstName||!t.values.lastName||!t.values.password||t.values.password.length<6;return N.jsxs("form",{onSubmit:i=>{i.preventDefault(),t.submitForm()},children:[N.jsx(Bo,{value:t.values.firstName,label:n.firstName,id:"first-name-input",autoFocus:!0,errorMessage:t.errors.firstName,onChange:i=>t.setFieldValue($u.Fields.firstName,i,!1)}),N.jsx(Bo,{value:t.values.lastName,label:n.lastName,id:"last-name-input",errorMessage:t.errors.lastName,onChange:i=>t.setFieldValue($u.Fields.lastName,i,!1)}),N.jsx(Bo,{type:"password",value:t.values.password,label:n.password,id:"password-input",errorMessage:t.errors.password,onChange:i=>t.setFieldValue($u.Fields.password,i,!1)}),N.jsx(Uf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:r,children:n.continue})]})};var $1;function mi(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var kX=0;function om(t){return"__private_"+kX+++"_"+t}const DX=t=>{const n=oo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Wf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Wf{}$1=Wf;Wf.URL="/workspace/passport/request-otp";Wf.NewUrl=t=>so($1.URL,void 0,t);Wf.Method="post";Wf.Fetch$=async(t,e,n,r)=>io(r??$1.NewUrl(t),{method:$1.Method,...n||{}},e);Wf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Np(u)})=>{e=e||(l=>new Np(l));const u=await $1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Wf.Definition={name:"ClassicPassportRequestOtp",cliName:"otp-request",url:"/workspace/passport/request-otp",method:"post",description:"Triggers an otp request, and will send an sms or email to the passport. This endpoint is not used for login, but rather makes a request at initial step. Later you can call classicPassportOtp to get in.",in:{fields:[{name:"value",description:"Passport value (email, phone number) which would be receiving the otp code.",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"suspendUntil",type:"int64"},{name:"validUntil",type:"int64"},{name:"blockedUntil",type:"int64"},{name:"secondsToUnblock",description:"The amount of time left to unblock for next request",type:"int64"}]}};var ap=om("value"),a$=om("isJsonAppliable");class Fg{get value(){return mi(this,ap)[ap]}set value(e){mi(this,ap)[ap]=String(e)}setValue(e){return this.value=e,this}constructor(e=void 0){if(Object.defineProperty(this,a$,{value:FX}),Object.defineProperty(this,ap,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(mi(this,a$)[a$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value)}toJSON(){return{value:mi(this,ap)[ap]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value"}}static from(e){return new Fg(e)}static with(e){return new Fg(e)}copyWith(e){return new Fg({...this.toJSON(),...e})}clone(){return new Fg(this.toJSON())}}function FX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var op=om("suspendUntil"),sp=om("validUntil"),up=om("blockedUntil"),lp=om("secondsToUnblock"),o$=om("isJsonAppliable");class Np{get suspendUntil(){return mi(this,op)[op]}set suspendUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(mi(this,op)[op]=r)}setSuspendUntil(e){return this.suspendUntil=e,this}get validUntil(){return mi(this,sp)[sp]}set validUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(mi(this,sp)[sp]=r)}setValidUntil(e){return this.validUntil=e,this}get blockedUntil(){return mi(this,up)[up]}set blockedUntil(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(mi(this,up)[up]=r)}setBlockedUntil(e){return this.blockedUntil=e,this}get secondsToUnblock(){return mi(this,lp)[lp]}set secondsToUnblock(e){const r=typeof e=="number"?e:Number(e);Number.isNaN(r)||(mi(this,lp)[lp]=r)}setSecondsToUnblock(e){return this.secondsToUnblock=e,this}constructor(e=void 0){if(Object.defineProperty(this,o$,{value:LX}),Object.defineProperty(this,op,{writable:!0,value:0}),Object.defineProperty(this,sp,{writable:!0,value:0}),Object.defineProperty(this,up,{writable:!0,value:0}),Object.defineProperty(this,lp,{writable:!0,value:0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(mi(this,o$)[o$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.suspendUntil!==void 0&&(this.suspendUntil=n.suspendUntil),n.validUntil!==void 0&&(this.validUntil=n.validUntil),n.blockedUntil!==void 0&&(this.blockedUntil=n.blockedUntil),n.secondsToUnblock!==void 0&&(this.secondsToUnblock=n.secondsToUnblock)}toJSON(){return{suspendUntil:mi(this,op)[op],validUntil:mi(this,sp)[sp],blockedUntil:mi(this,up)[up],secondsToUnblock:mi(this,lp)[lp]}}toString(){return JSON.stringify(this)}static get Fields(){return{suspendUntil:"suspendUntil",validUntil:"validUntil",blockedUntil:"blockedUntil",secondsToUnblock:"secondsToUnblock"}}static from(e){return new Np(e)}static with(e){return new Np(e)}copyWith(e){return new Np({...this.toJSON(),...e})}clone(){return new Np(this.toJSON())}}function LX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const UX=()=>{const t=Kn($r),{goBack:e,state:n,push:r}=Lr(),{locale:i}=$i(),{onComplete:o}=V1(),u=IN(),l=n==null?void 0:n.canContinueOnOtp,d=DX(),h=v=>{u.mutateAsync(new Ns({value:v.value,password:v.password})).then(w).catch(C=>{g==null||g.setErrors(fy(C))})},g=Dl({initialValues:{},onSubmit:h}),y=()=>{d.mutateAsync(new Fg({value:g.values.value})).then(v=>{r("../otp",void 0,{value:g.values.value})}).catch(v=>{v.error.message==="OtaRequestBlockedUntil"&&r("../otp",void 0,{value:g.values.value})})};T.useEffect(()=>{n!=null&&n.value&&g.setFieldValue(Ns.Fields.value,n.value)},[n==null?void 0:n.value]);const w=v=>{var C,E;v.data.item.session?o(v):(C=v.data.item.next)!=null&&C.includes("enter-totp")?r(`/${i}/selfservice/totp-enter`,void 0,{value:g.values.value,password:g.values.password}):(E=v.data.item.next)!=null&&E.includes("setup-totp")&&r(`/${i}/selfservice/totp-setup`,void 0,{totpUrl:v.data.item.totpUrl,forcedTotp:!0,password:g.values.password,value:n==null?void 0:n.value})};return{mutation:u,otpEnabled:l,continueWithOtp:y,form:g,submit:h,goBack:e,s:t}},jX=({})=>{const{goBack:t,mutation:e,form:n,continueWithOtp:r,otpEnabled:i,s:o}=UX();return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:o.enterPassword}),N.jsx("p",{children:o.enterPasswordDescription}),N.jsx(Wo,{query:e}),N.jsx(BX,{form:n,mutation:e,continueWithOtp:r,otpEnabled:i}),N.jsx("button",{id:"go-back-button",onClick:t,className:"btn bg-transparent w-100 mt-4",children:o.anotherAccount})]})},BX=({form:t,mutation:e,otpEnabled:n,continueWithOtp:r})=>{const i=Kn($r),o=!t.values.value||!t.values.password;return N.jsxs("form",{onSubmit:u=>{u.preventDefault(),t.submitForm()},children:[N.jsx(Bo,{type:"password",value:t.values.password,label:i.password,id:"password-input",autoFocus:!0,errorMessage:t.errors.password,onChange:u=>t.setFieldValue(Ns.Fields.password,u,!1)}),N.jsx(Uf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:o,children:i.continue}),n&&N.jsx("button",{onClick:r,className:"bg-transparent border-0 mt-3 mb-3",children:i.useOneTimePassword})]})};var E1;function wr(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var qX=0;function Kf(t){return"__private_"+qX+++"_"+t}const HX=t=>{const e=oo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Yf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result))),...t||{}}),isCompleted:r,response:o}};class Yf{}E1=Yf;Yf.URL="/workspace/passport/otp";Yf.NewUrl=t=>so(E1.URL,void 0,t);Yf.Method="post";Yf.Fetch$=async(t,e,n,r)=>io(r??E1.NewUrl(t),{method:E1.Method,...n||{}},e);Yf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new kp(u)})=>{e=e||(l=>new kp(l));const u=await E1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Yf.Definition={name:"ClassicPassportOtp",cliName:"otp",url:"/workspace/passport/otp",method:"post",description:"Authenticate the user publicly for classic methods using communication service, such as sms, call, or email. You need to call classicPassportRequestOtp beforehand to send a otp code, and then validate it with this API. Also checkClassicPassport action might already sent the otp, so make sure you don't send it twice.",in:{fields:[{name:"value",type:"string",tags:{validate:"required"}},{name:"otp",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"session",description:"Upon successful authentication, there will be a session dto generated, which is a ground information of authorized user and can be stored in front-end.",type:"one?",target:"UserSessionDto"},{name:"totpUrl",description:"If time based otp is available, we add it response to make it easier for ui.",type:"string"},{name:"sessionSecret",description:"The session secret will be used to call complete user registration api.",type:"string"},{name:"continueWithCreation",description:"If return true, means the OTP is correct and user needs to be created before continue the authentication process.",type:"bool"}]}};var cp=Kf("value"),fp=Kf("otp"),s$=Kf("isJsonAppliable");class Mp{get value(){return wr(this,cp)[cp]}set value(e){wr(this,cp)[cp]=String(e)}setValue(e){return this.value=e,this}get otp(){return wr(this,fp)[fp]}set otp(e){wr(this,fp)[fp]=String(e)}setOtp(e){return this.otp=e,this}constructor(e=void 0){if(Object.defineProperty(this,s$,{value:zX}),Object.defineProperty(this,cp,{writable:!0,value:""}),Object.defineProperty(this,fp,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wr(this,s$)[s$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.value!==void 0&&(this.value=n.value),n.otp!==void 0&&(this.otp=n.otp)}toJSON(){return{value:wr(this,cp)[cp],otp:wr(this,fp)[fp]}}toString(){return JSON.stringify(this)}static get Fields(){return{value:"value",otp:"otp"}}static from(e){return new Mp(e)}static with(e){return new Mp(e)}copyWith(e){return new Mp({...this.toJSON(),...e})}clone(){return new Mp(this.toJSON())}}function zX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var ml=Kf("session"),dp=Kf("totpUrl"),hp=Kf("sessionSecret"),pp=Kf("continueWithCreation"),u$=Kf("isJsonAppliable");class kp{get session(){return wr(this,ml)[ml]}set session(e){e instanceof Nn?wr(this,ml)[ml]=e:wr(this,ml)[ml]=new Nn(e)}setSession(e){return this.session=e,this}get totpUrl(){return wr(this,dp)[dp]}set totpUrl(e){wr(this,dp)[dp]=String(e)}setTotpUrl(e){return this.totpUrl=e,this}get sessionSecret(){return wr(this,hp)[hp]}set sessionSecret(e){wr(this,hp)[hp]=String(e)}setSessionSecret(e){return this.sessionSecret=e,this}get continueWithCreation(){return wr(this,pp)[pp]}set continueWithCreation(e){wr(this,pp)[pp]=!!e}setContinueWithCreation(e){return this.continueWithCreation=e,this}constructor(e=void 0){if(Object.defineProperty(this,u$,{value:VX}),Object.defineProperty(this,ml,{writable:!0,value:void 0}),Object.defineProperty(this,dp,{writable:!0,value:""}),Object.defineProperty(this,hp,{writable:!0,value:""}),Object.defineProperty(this,pp,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(wr(this,u$)[u$](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.session!==void 0&&(this.session=n.session),n.totpUrl!==void 0&&(this.totpUrl=n.totpUrl),n.sessionSecret!==void 0&&(this.sessionSecret=n.sessionSecret),n.continueWithCreation!==void 0&&(this.continueWithCreation=n.continueWithCreation)}toJSON(){return{session:wr(this,ml)[ml],totpUrl:wr(this,dp)[dp],sessionSecret:wr(this,hp)[hp],continueWithCreation:wr(this,pp)[pp]}}toString(){return JSON.stringify(this)}static get Fields(){return{session:"session",totpUrl:"totpUrl",sessionSecret:"sessionSecret",continueWithCreation:"continueWithCreation"}}static from(e){return new kp(e)}static with(e){return new kp(e)}copyWith(e){return new kp({...this.toJSON(),...e})}clone(){return new kp(this.toJSON())}}function VX(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const GX=()=>{const{goBack:t,state:e,replace:n,push:r}=Lr(),{locale:i}=$i(),o=Kn($r),u=HX({}),{onComplete:l}=V1(),d=y=>{u.mutateAsync(new Mp({...y,value:e.value})).then(g).catch(w=>{h==null||h.setErrors(fy(w))})},h=Dl({initialValues:{},onSubmit:d}),g=y=>{var w,v,C,E,$;(w=y.data)!=null&&w.item.session?l(y):(C=(v=y.data)==null?void 0:v.item)!=null&&C.continueWithCreation&&r(`/${i}/selfservice/complete`,void 0,{value:e.value,type:e.type,sessionSecret:(E=y.data.item)==null?void 0:E.sessionSecret,totpUrl:($=y.data.item)==null?void 0:$.totpUrl})};return{mutation:u,form:h,s:o,submit:d,goBack:t}},WX=({})=>{const{goBack:t,mutation:e,form:n,s:r}=GX();return N.jsxs("div",{className:"signin-form-container",children:[N.jsx("h1",{children:r.enterOtp}),N.jsx("p",{children:r.enterOtpDescription}),N.jsx(Wo,{query:e}),N.jsx(KX,{form:n,mutation:e}),N.jsx("button",{id:"go-back-button",className:"btn bg-transparent w-100 mt-4",onClick:t,children:r.anotherAccount})]})},KX=({form:t,mutation:e})=>{var i;const n=!t.values.otp,r=Kn($r);return N.jsxs("form",{onSubmit:o=>{o.preventDefault(),t.submitForm()},children:[N.jsx(G1,{values:(i=t.values.otp)==null?void 0:i.split(""),onChange:o=>t.setFieldValue(Mp.Fields.otp,o,!1),className:"otp-react-code-input"}),N.jsx(Uf,{className:"btn btn-primary w-100 d-block mb-2",mutation:e,id:"submit-form",disabled:n,children:r.continue})]})};function K1(t){const e=T.useRef(),n=kf();T.useEffect(()=>{var h;t!=null&&t.data&&((h=e.current)==null||h.setValues(t.data))},[t==null?void 0:t.data]);const r=Lr(),i=r.query.uniqueId,o=r.query.linkerId,u=!!i,{locale:l}=$i(),d=yn();return{router:r,t:d,isEditing:u,locale:l,queryClient:n,formik:e,uniqueId:i,linkerId:o}}function YX(t,e){var r,i;let n=!1;for(const o of((r=t==null?void 0:t.role)==null?void 0:r.capabilities)||[])if(o.uniqueId===e||o.uniqueId==="root.*"||(i=o==null?void 0:o.uniqueId)!=null&&i.endsWith(".*")&&e.includes(o.uniqueId.replace("*",""))){n=!0;break}return n}function VN(t){for(var e=[],n=t.length,r,i=0;i>>0,e.push(String.fromCharCode(r));return e.join("")}function JX(t,e,n,r,i){var o=new XMLHttpRequest;o.open(e,t),o.addEventListener("load",function(){var u=VN(this.responseText);u="data:application/text;base64,"+btoa(u),document.location=u},!1),o.setRequestHeader("Authorization",n),o.setRequestHeader("Workspace-Id",r),o.setRequestHeader("role-Id",i),o.overrideMimeType("application/octet-stream; charset=x-user-defined;"),o.send(null)}const QX=({path:t})=>{yn();const{options:e}=T.useContext(Sn);KN(t?()=>{const n=e==null?void 0:e.headers;JX(e.prefix+""+t,"GET",n.authorization||"",n["workspace-id"]||"",n["role-id"]||"")}:void 0,Bn.ExportTable)};function Y1(t,e){const n={[Bn.NewEntity]:"n",[Bn.NewChildEntity]:"n",[Bn.EditEntity]:"e",[Bn.SidebarToggle]:"m",[Bn.ViewQuestions]:"q",[Bn.Delete]:"Backspace",[Bn.StopStart]:" ",[Bn.ExportTable]:"x",[Bn.CommonBack]:"Escape",[Bn.Select1Index]:"1",[Bn.Select2Index]:"2",[Bn.Select3Index]:"3",[Bn.Select4Index]:"4",[Bn.Select5Index]:"5",[Bn.Select6Index]:"6",[Bn.Select7Index]:"7",[Bn.Select8Index]:"8",[Bn.Select9Index]:"9"};let r;return typeof t=="object"?r=t.map(i=>n[i]):typeof t=="string"&&(r=n[t]),XX(r,e)}function XX(t,e){T.useEffect(()=>{if(!t||t.length===0||!e)return;function n(r){var i=r||window.event,o=i.target||i.srcElement;const u=o.tagName.toUpperCase(),l=o.type;if(["TEXTAREA","SELECT"].includes(u)){r.key==="Escape"&&i.target.blur();return}if(u==="INPUT"&&(l==="text"||l==="password")){r.key==="Escape"&&i.target.blur();return}let d=!1;typeof t=="string"&&r.key===t?d=!0:Array.isArray(t)&&(d=t.includes(r.key)),d&&e&&e(r.key)}if(e)return window.addEventListener("keyup",n),()=>{window.removeEventListener("keyup",n)}},[e,t])}const GN=Ae.createContext({setActionMenu(){},removeActionMenu(){},removeActionMenuItems(t,e){},refs:[]});function ZX(){const t=T.useContext(GN);return{addActions:(i,o)=>(t.setActionMenu(i,o),()=>t.removeActionMenu(i)),removeActionMenu:i=>{t.removeActionMenu(i)},deleteActions:(i,o)=>{t.removeActionMenuItems(i,o)}}}function J1(t,e,n,r){const i=T.useContext(GN);return T.useEffect(()=>(i.setActionMenu(t,e.filter(o=>o!==void 0)),()=>{i.removeActionMenu(t)}),[]),{addActions(o,u=t){i.setActionMenu(u,o)},deleteActions(o,u=t){i.removeActionMenuItems(u,o)}}}function eZ({onCancel:t,onSave:e,access:n}){const{selectedUrw:r}=T.useContext(Sn),i=T.useMemo(()=>n?(r==null?void 0:r.workspaceId)!=="root"&&(n!=null&&n.onlyRoot)?!1:!(n!=null&&n.permissions)||n.permissions.length===0?!0:YX(r,n.permissions[0]):!0,[r,n]),o=yn();J1("editing-core",(({onSave:l,onCancel:d})=>i?[{icon:"",label:o.common.save,uniqueActionKey:"save",onSelect:()=>{l()}},d&&{icon:"",label:o.common.cancel,uniqueActionKey:"cancel",onSelect:()=>{d()}}]:[])({onCancel:t,onSave:e}))}function tZ(t,e){const n=yn();Y1(e,t),J1("commonEntityActions",[t&&{icon:hy.add,label:n.actions.new,uniqueActionKey:"new",onSelect:t}])}function WN(t,e){const n=yn();Y1(e,t),J1("navigation",[t&&{icon:hy.left,label:n.actions.back,uniqueActionKey:"back",className:"navigator-back-button",onSelect:t}])}function nZ(){const{session:t,options:e}=T.useContext(Sn);KN(()=>{var n=new XMLHttpRequest;n.open("GET",e.prefix+"roles/export"),n.addEventListener("load",function(){var i=VN(this.responseText);i="data:application/text;base64,"+btoa(i),document.location=i},!1);const r=e==null?void 0:e.headers;n.setRequestHeader("Authorization",r.authorization||""),n.setRequestHeader("Workspace-Id",r["workspace-id"]||""),n.setRequestHeader("role-Id",r["role-id"]||""),n.overrideMimeType("application/octet-stream; charset=x-user-defined;"),n.send(null)},Bn.ExportTable)}function KN(t,e){const n=yn();Y1(e,t),J1("exportTools",[t&&{icon:hy.export,label:n.actions.new,uniqueActionKey:"export",onSelect:t}])}function rZ(t,e){const n=yn();Y1(e,t),J1("commonEntityActions",[t&&{icon:hy.edit,label:n.actions.edit,uniqueActionKey:"new",onSelect:t}])}const iZ=Ae.createContext({setPageTitle(){},removePageTitle(){},ref:{title:""}});function YN(t){const e=T.useContext(iZ);T.useEffect(()=>(e.setPageTitle(t||""),()=>{e.removePageTitle("")}),[t])}const JO=({data:t,Form:e,getSingleHook:n,postHook:r,onCancel:i,onFinishUriResolver:o,disableOnGetFailed:u,patchHook:l,onCreateTitle:d,onEditTitle:h,setInnerRef:g,beforeSetValues:y,forceEdit:w,onlyOnRoot:v,customClass:C,beforeSubmit:E,onSuccessPatchOrPost:$})=>{var te,be,we;const[O,_]=T.useState(),{router:R,isEditing:k,locale:P,formik:L,t:F}=K1({data:t}),q=T.useRef({});WN(i,Bn.CommonBack);const{selectedUrw:Y}=T.useContext(Sn);YN((k||w?h:d)||"");const{query:X}=n;T.useEffect(()=>{var B,V,H;(B=X.data)!=null&&B.data&&((V=L.current)==null||V.setValues(y?y({...X.data.data}):{...X.data.data}),_((H=X.data)==null?void 0:H.data))},[X.data]),T.useEffect(()=>{var B;(B=L.current)==null||B.setSubmitting((r==null?void 0:r.mutation.isLoading)||(l==null?void 0:l.mutation.isLoading))},[r==null?void 0:r.isLoading,l==null?void 0:l.isLoading]);const ue=(B,V)=>{let H=q.current;H.uniqueId=B.uniqueId,E&&(H=E(H)),(k||w?l==null?void 0:l.submit(H,V):r==null?void 0:r.submit(H,V)).then(G=>{var Q;(Q=G.data)!=null&&Q.uniqueId&&($?$(G):o?R.goBackOrDefault(o(G,P)):TV("Done",{type:"success"}))}).catch(G=>void 0)},me=((te=n==null?void 0:n.query)==null?void 0:te.isLoading)||!1||((be=r==null?void 0:r.query)==null?void 0:be.isLoading)||!1||((we=l==null?void 0:l.query)==null?void 0:we.isLoading)||!1;return eZ({onSave(){var B;(B=L.current)==null||B.submitForm()}}),v&&Y.workspaceId!=="root"?N.jsx("div",{children:F.onlyOnRoot}):N.jsx(JB,{innerRef:B=>{B&&(L.current=B,g&&g(B))},initialValues:{},onSubmit:ue,children:B=>{var V,H,ie,G;return N.jsx("form",{onSubmit:Q=>{Q.preventDefault(),B.submitForm()},className:C??"headless-form-entity-manager",children:N.jsxs("fieldset",{disabled:me,children:[N.jsx("div",{style:{marginBottom:"15px"},children:N.jsx(Wo,{query:(V=r==null?void 0:r.mutation)!=null&&V.isError?r.mutation:(H=l==null?void 0:l.mutation)!=null&&H.isError?l.mutation:(ie=n==null?void 0:n.query)!=null&&ie.isError?n.query:null})}),u===!0&&((G=n==null?void 0:n.query)!=null&&G.isError)?null:N.jsx(e,{isEditing:k,initialData:O,form:{...B,setValues:(Q,he)=>{for(const $e in Q)Sr.set(q.current,$e,Q[$e]);return B.setValues(Q)},setFieldValue:(Q,he,$e)=>(Sr.set(q.current,Q,he),B.setFieldValue(Q,he,$e))}}),N.jsx("button",{type:"submit",className:"d-none"})]})})}})};function JN({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(Sn),l=e?e(o):u?u(o):Qr(o);let h=`${"/public-join-key/:uniqueId".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,v=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!v&&!i&&(C=!1):C=!1,{query:Go([o,n,"*abac.PublicJoinKeyEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}function aZ(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(Sn),u=r?r(i):o?o(i):Qr(i);let d=`${"/public-join-key".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`;const g=Fr(v=>u("PATCH",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueriesData("*abac.PublicJoinKeyEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}function oZ(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(Sn),u=r?r(i):o?o(i):Qr(i);let d=`${"/public-join-key".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`;const g=Fr(v=>u("POST",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueryData("*abac.PublicJoinKeyEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}function Jp(t){"@babel/helpers - typeof";return Jp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jp(t)}function sZ(t,e){if(Jp(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Jp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function QN(t){var e=sZ(t,"string");return Jp(e)=="symbol"?e:String(e)}function Lg(t,e,n){return e=QN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ct(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?Si(py,--Oa):0,ty--,_r===10&&(ty=1,zS--),_r}function ro(){return _r=Oa2||O1(_r)>3?"":" "}function AZ(t,e){for(;--e&&ro()&&!(_r<48||_r>102||_r>57&&_r<65||_r>70&&_r<97););return Q1(t,Tw()+(e<6&&Ou()==32&&ro()==32))}function Nx(t){for(;ro();)switch(_r){case t:return Oa;case 34:case 39:t!==34&&t!==39&&Nx(_r);break;case 40:t===41&&Nx(t);break;case 92:ro();break}return Oa}function RZ(t,e){for(;ro()&&t+_r!==57;)if(t+_r===84&&Ou()===47)break;return"/*"+Q1(e,Oa-1)+"*"+HS(t===47?t:ro())}function PZ(t){for(;!O1(Ou());)ro();return Q1(t,Oa)}function IZ(t){return a7(Aw("",null,null,null,[""],t=i7(t),0,[0],t))}function Aw(t,e,n,r,i,o,u,l,d){for(var h=0,g=0,y=u,w=0,v=0,C=0,E=1,$=1,O=1,_=0,R="",k=i,P=o,L=r,F=R;$;)switch(C=_,_=ro()){case 40:if(C!=108&&Si(F,y-1)==58){Ix(F+=bn(_w(_),"&","&\f"),"&\f")!=-1&&(O=-1);break}case 34:case 39:case 91:F+=_w(_);break;case 9:case 10:case 13:case 32:F+=_Z(C);break;case 92:F+=AZ(Tw()-1,7);continue;case 47:switch(Ou()){case 42:case 47:iw(NZ(RZ(ro(),Tw()),e,n),d);break;default:F+="/"}break;case 123*E:l[h++]=Su(F)*O;case 125*E:case 59:case 0:switch(_){case 0:case 125:$=0;case 59+g:O==-1&&(F=bn(F,/\f/g,"")),v>0&&Su(F)-y&&iw(v>32?a6(F+";",r,n,y-1):a6(bn(F," ","")+";",r,n,y-2),d);break;case 59:F+=";";default:if(iw(L=i6(F,e,n,h,g,i,l,R,k=[],P=[],y),o),_===123)if(g===0)Aw(F,e,L,L,k,o,y,l,P);else switch(w===99&&Si(F,3)===110?100:w){case 100:case 108:case 109:case 115:Aw(t,L,L,r&&iw(i6(t,L,L,0,0,i,l,R,i,k=[],y),P),i,P,y,l,r?k:P);break;default:Aw(F,L,L,L,[""],P,0,l,P)}}h=g=v=0,E=O=1,R=F="",y=u;break;case 58:y=1+Su(F),v=C;default:if(E<1){if(_==123)--E;else if(_==125&&E++==0&&TZ()==125)continue}switch(F+=HS(_),_*E){case 38:O=g>0?1:(F+="\f",-1);break;case 44:l[h++]=(Su(F)-1)*O,O=1;break;case 64:Ou()===45&&(F+=_w(ro())),w=Ou(),g=y=Su(R=F+=PZ(Tw())),_++;break;case 45:C===45&&Su(F)==2&&(E=0)}}return o}function i6(t,e,n,r,i,o,u,l,d,h,g){for(var y=i-1,w=i===0?o:[""],v=eT(w),C=0,E=0,$=0;C0?w[O]+" "+_:bn(_,/&\f/g,w[O])))&&(d[$++]=R);return VS(t,e,n,i===0?XO:l,d,h,g)}function NZ(t,e,n){return VS(t,e,n,e7,HS(OZ()),x1(t,2,-2),0)}function a6(t,e,n,r){return VS(t,e,n,ZO,x1(t,0,r),x1(t,r+1,-1),r)}function Jg(t,e){for(var n="",r=eT(t),i=0;i6)switch(Si(t,e+1)){case 109:if(Si(t,e+4)!==45)break;case 102:return bn(t,/(.+:)(.+)-([^]+)/,"$1"+vn+"$2-$3$1"+rS+(Si(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Ix(t,"stretch")?o7(bn(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Si(t,e+1)!==115)break;case 6444:switch(Si(t,Su(t)-3-(~Ix(t,"!important")&&10))){case 107:return bn(t,":",":"+vn)+t;case 101:return bn(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+vn+(Si(t,14)===45?"inline-":"")+"box$3$1"+vn+"$2$3$1"+Ni+"$2box$3")+t}break;case 5936:switch(Si(t,e+11)){case 114:return vn+t+Ni+bn(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return vn+t+Ni+bn(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return vn+t+Ni+bn(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return vn+t+Ni+t+t}return t}var qZ=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case ZO:e.return=o7(e.value,e.length);break;case t7:return Jg([P0(e,{value:bn(e.value,"@","@"+vn)})],i);case XO:if(e.length)return xZ(e.props,function(o){switch(EZ(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jg([P0(e,{props:[bn(o,/:(read-\w+)/,":"+rS+"$1")]})],i);case"::placeholder":return Jg([P0(e,{props:[bn(o,/:(plac\w+)/,":"+vn+"input-$1")]}),P0(e,{props:[bn(o,/:(plac\w+)/,":"+rS+"$1")]}),P0(e,{props:[bn(o,/:(plac\w+)/,Ni+"input-$1")]})],i)}return""})}},HZ=[qZ],zZ=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(E){var $=E.getAttribute("data-emotion");$.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var i=e.stylisPlugins||HZ,o={},u,l=[];u=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var $=E.getAttribute("data-emotion").split(" "),O=1;O<$.length;O++)o[$[O]]=!0;l.push(E)});var d,h=[jZ,BZ];{var g,y=[MZ,DZ(function(E){g.insert(E)})],w=kZ(h.concat(i,y)),v=function($){return Jg(IZ($),w)};d=function($,O,_,R){g=_,v($?$+"{"+O.styles+"}":O.styles),R&&(C.inserted[O.name]=!0)}}var C={key:n,sheet:new vZ({key:n,container:u,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:d};return C.sheet.hydrate(l),C},VZ=!0;function GZ(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):r+=i+" "}),r}var s7=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||VZ===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},WZ=function(e,n,r){s7(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function KZ(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var YZ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function JZ(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var QZ=/[A-Z]|^ms/g,XZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u7=function(e){return e.charCodeAt(1)===45},s6=function(e){return e!=null&&typeof e!="boolean"},l$=JZ(function(t){return u7(t)?t:t.replace(QZ,"-$&").toLowerCase()}),u6=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(XZ,function(r,i,o){return Cu={name:i,styles:o,next:Cu},i})}return YZ[e]!==1&&!u7(e)&&typeof n=="number"&&n!==0?n+"px":n};function T1(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Cu={name:n.name,styles:n.styles,next:Cu},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Cu={name:r.name,styles:r.styles,next:Cu},r=r.next;var i=n.styles+";";return i}return ZZ(t,e,n)}case"function":{if(t!==void 0){var o=Cu,u=n(t);return Cu=o,T1(t,e,u)}break}}return n}function ZZ(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i=0)&&(n[i]=t[i]);return n}function Iu(t,e){if(t==null)return{};var n=hee(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function pee(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const mee=Math.min,gee=Math.max,iS=Math.round,aw=Math.floor,aS=t=>({x:t,y:t});function yee(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function f7(t){return h7(t)?(t.nodeName||"").toLowerCase():"#document"}function Al(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function d7(t){var e;return(e=(h7(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function h7(t){return t instanceof Node||t instanceof Al(t).Node}function vee(t){return t instanceof Element||t instanceof Al(t).Element}function rT(t){return t instanceof HTMLElement||t instanceof Al(t).HTMLElement}function c6(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Al(t).ShadowRoot}function p7(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=iT(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function bee(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function wee(t){return["html","body","#document"].includes(f7(t))}function iT(t){return Al(t).getComputedStyle(t)}function See(t){if(f7(t)==="html")return t;const e=t.assignedSlot||t.parentNode||c6(t)&&t.host||d7(t);return c6(e)?e.host:e}function m7(t){const e=See(t);return wee(e)?t.ownerDocument?t.ownerDocument.body:t.body:rT(e)&&p7(e)?e:m7(e)}function oS(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=m7(t),o=i===((r=t.ownerDocument)==null?void 0:r.body),u=Al(i);return o?e.concat(u,u.visualViewport||[],p7(i)?i:[],u.frameElement&&n?oS(u.frameElement):[]):e.concat(i,oS(i,[],n))}function Cee(t){const e=iT(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=rT(t),o=i?t.offsetWidth:n,u=i?t.offsetHeight:r,l=iS(n)!==o||iS(r)!==u;return l&&(n=o,r=u),{width:n,height:r,$:l}}function aT(t){return vee(t)?t:t.contextElement}function f6(t){const e=aT(t);if(!rT(e))return aS(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:o}=Cee(e);let u=(o?iS(n.width):n.width)/r,l=(o?iS(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!l||!Number.isFinite(l))&&(l=1),{x:u,y:l}}const $ee=aS(0);function Eee(t){const e=Al(t);return!bee()||!e.visualViewport?$ee:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xee(t,e,n){return!1}function d6(t,e,n,r){e===void 0&&(e=!1);const i=t.getBoundingClientRect(),o=aT(t);let u=aS(1);e&&(u=f6(t));const l=xee()?Eee(o):aS(0);let d=(i.left+l.x)/u.x,h=(i.top+l.y)/u.y,g=i.width/u.x,y=i.height/u.y;if(o){const w=Al(o),v=r;let C=w,E=C.frameElement;for(;E&&r&&v!==C;){const $=f6(E),O=E.getBoundingClientRect(),_=iT(E),R=O.left+(E.clientLeft+parseFloat(_.paddingLeft))*$.x,k=O.top+(E.clientTop+parseFloat(_.paddingTop))*$.y;d*=$.x,h*=$.y,g*=$.x,y*=$.y,d+=R,h+=k,C=Al(E),E=C.frameElement}}return yee({width:g,height:y,x:d,y:h})}function Oee(t,e){let n=null,r;const i=d7(t);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function u(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),o();const{left:h,top:g,width:y,height:w}=t.getBoundingClientRect();if(l||e(),!y||!w)return;const v=aw(g),C=aw(i.clientWidth-(h+y)),E=aw(i.clientHeight-(g+w)),$=aw(h),_={rootMargin:-v+"px "+-C+"px "+-E+"px "+-$+"px",threshold:gee(0,mee(1,d))||1};let R=!0;function k(P){const L=P[0].intersectionRatio;if(L!==d){if(!R)return u();L?u(!1,L):r=setTimeout(()=>{u(!1,1e-7)},100)}R=!1}try{n=new IntersectionObserver(k,{..._,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,_)}n.observe(t)}return u(!0),o}function Tee(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=aT(t),g=i||o?[...h?oS(h):[],...oS(e)]:[];g.forEach(O=>{i&&O.addEventListener("scroll",n,{passive:!0}),o&&O.addEventListener("resize",n)});const y=h&&l?Oee(h,n):null;let w=-1,v=null;u&&(v=new ResizeObserver(O=>{let[_]=O;_&&_.target===h&&v&&(v.unobserve(e),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var R;(R=v)==null||R.observe(e)})),n()}),h&&!d&&v.observe(h),v.observe(e));let C,E=d?d6(t):null;d&&$();function $(){const O=d6(t);E&&(O.x!==E.x||O.y!==E.y||O.width!==E.width||O.height!==E.height)&&n(),E=O,C=requestAnimationFrame($)}return n(),()=>{var O;g.forEach(_=>{i&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),y==null||y(),(O=v)==null||O.disconnect(),v=null,d&&cancelAnimationFrame(C)}}var kx=T.useLayoutEffect,_ee=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],sS=function(){};function Aee(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function Ree(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function Iee(t){return GS(t)?window.innerHeight:t.clientHeight}function y7(t){return GS(t)?window.pageYOffset:t.scrollTop}function uS(t,e){if(GS(t)){window.scrollTo(0,e);return}t.scrollTop=e}function Nee(t){var e=getComputedStyle(t),n=e.position==="absolute",r=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var i=t;i=i.parentElement;)if(e=getComputedStyle(i),!(n&&e.position==="static")&&r.test(e.overflow+e.overflowY+e.overflowX))return i;return document.documentElement}function Mee(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e}function ow(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:sS,i=y7(t),o=e-i,u=10,l=0;function d(){l+=u;var h=Mee(l,i,o,n);uS(t,h),ln.bottom?uS(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+i,t.scrollHeight)):r.top-i1?n-1:0),i=1;i=C)return{placement:"bottom",maxHeight:e};if(Y>=C&&!u)return o&&ow(d,X,me),{placement:"bottom",maxHeight:e};if(!u&&Y>=r||u&&F>=r){o&&ow(d,X,me);var te=u?F-k:Y-k;return{placement:"bottom",maxHeight:te}}if(i==="auto"||u){var be=e,we=u?L:q;return we>=r&&(be=Math.min(we-k-l,e)),{placement:"top",maxHeight:be}}if(i==="bottom")return o&&uS(d,X),{placement:"bottom",maxHeight:e};break;case"top":if(L>=C)return{placement:"top",maxHeight:e};if(q>=C&&!u)return o&&ow(d,ue,me),{placement:"top",maxHeight:e};if(!u&&q>=r||u&&L>=r){var B=e;return(!u&&q>=r||u&&L>=r)&&(B=u?L-P:q-P),o&&ow(d,ue,me),{placement:"top",maxHeight:B}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return h}function Vee(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var b7=function(e){return e==="auto"?"bottom":e},Gee=function(e,n){var r,i=e.placement,o=e.theme,u=o.borderRadius,l=o.spacing,d=o.colors;return ct((r={label:"menu"},Lg(r,Vee(i),"100%"),Lg(r,"position","absolute"),Lg(r,"width","100%"),Lg(r,"zIndex",1),r),n?{}:{backgroundColor:d.neutral0,borderRadius:u,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},w7=T.createContext(null),Wee=function(e){var n=e.children,r=e.minMenuHeight,i=e.maxMenuHeight,o=e.menuPlacement,u=e.menuPosition,l=e.menuShouldScrollIntoView,d=e.theme,h=T.useContext(w7)||{},g=h.setPortalPlacement,y=T.useRef(null),w=T.useState(i),v=Jr(w,2),C=v[0],E=v[1],$=T.useState(null),O=Jr($,2),_=O[0],R=O[1],k=d.spacing.controlHeight;return kx(function(){var P=y.current;if(P){var L=u==="fixed",F=l&&!L,q=zee({maxHeight:i,menuEl:P,minHeight:r,placement:o,shouldScroll:F,isFixedPosition:L,controlHeight:k});E(q.maxHeight),R(q.placement),g==null||g(q.placement)}},[i,o,u,l,r,g,k]),n({ref:y,placerProps:ct(ct({},e),{},{placement:_||b7(o),maxHeight:C})})},Kee=function(e){var n=e.children,r=e.innerRef,i=e.innerProps;return mt("div",Ve({},dr(e,"menu",{menu:!0}),{ref:r},i),n)},Yee=Kee,Jee=function(e,n){var r=e.maxHeight,i=e.theme.spacing.baseUnit;return ct({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},Qee=function(e){var n=e.children,r=e.innerProps,i=e.innerRef,o=e.isMulti;return mt("div",Ve({},dr(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},S7=function(e,n){var r=e.theme,i=r.spacing.baseUnit,o=r.colors;return ct({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},Xee=S7,Zee=S7,ete=function(e){var n=e.children,r=n===void 0?"No options":n,i=e.innerProps,o=Iu(e,qee);return mt("div",Ve({},dr(ct(ct({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},tte=function(e){var n=e.children,r=n===void 0?"Loading...":n,i=e.innerProps,o=Iu(e,Hee);return mt("div",Ve({},dr(ct(ct({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},nte=function(e){var n=e.rect,r=e.offset,i=e.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},rte=function(e){var n=e.appendTo,r=e.children,i=e.controlElement,o=e.innerProps,u=e.menuPlacement,l=e.menuPosition,d=T.useRef(null),h=T.useRef(null),g=T.useState(b7(u)),y=Jr(g,2),w=y[0],v=y[1],C=T.useMemo(function(){return{setPortalPlacement:v}},[]),E=T.useState(null),$=Jr(E,2),O=$[0],_=$[1],R=T.useCallback(function(){if(i){var F=kee(i),q=l==="fixed"?0:window.pageYOffset,Y=F[w]+q;(Y!==(O==null?void 0:O.offset)||F.left!==(O==null?void 0:O.rect.left)||F.width!==(O==null?void 0:O.rect.width))&&_({offset:Y,rect:F})}},[i,l,w,O==null?void 0:O.offset,O==null?void 0:O.rect.left,O==null?void 0:O.rect.width]);kx(function(){R()},[R]);var k=T.useCallback(function(){typeof h.current=="function"&&(h.current(),h.current=null),i&&d.current&&(h.current=Tee(i,d.current,R,{elementResize:"ResizeObserver"in window}))},[i,R]);kx(function(){k()},[k]);var P=T.useCallback(function(F){d.current=F,k()},[k]);if(!n&&l!=="fixed"||!O)return null;var L=mt("div",Ve({ref:P},dr(ct(ct({},e),{},{offset:O.offset,position:l,rect:O.rect}),"menuPortal",{"menu-portal":!0}),o),r);return mt(w7.Provider,{value:C},n?xu.createPortal(L,n):L)},ite=function(e){var n=e.isDisabled,r=e.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},ate=function(e){var n=e.children,r=e.innerProps,i=e.isDisabled,o=e.isRtl;return mt("div",Ve({},dr(e,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},ote=function(e,n){var r=e.theme.spacing,i=e.isMulti,o=e.hasValue,u=e.selectProps.controlShouldRenderValue;return ct({alignItems:"center",display:i&&o&&u?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},ste=function(e){var n=e.children,r=e.innerProps,i=e.isMulti,o=e.hasValue;return mt("div",Ve({},dr(e,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},ute=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},lte=function(e){var n=e.children,r=e.innerProps;return mt("div",Ve({},dr(e,"indicatorsContainer",{indicators:!0}),r),n)},g6,cte=["size"],fte=["innerProps","isRtl","size"],dte={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},C7=function(e){var n=e.size,r=Iu(e,cte);return mt("svg",Ve({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:dte},r))},oT=function(e){return mt(C7,Ve({size:20},e),mt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},$7=function(e){return mt(C7,Ve({size:20},e),mt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},E7=function(e,n){var r=e.isFocused,i=e.theme,o=i.spacing.baseUnit,u=i.colors;return ct({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?u.neutral60:u.neutral20,padding:o*2,":hover":{color:r?u.neutral80:u.neutral40}})},hte=E7,pte=function(e){var n=e.children,r=e.innerProps;return mt("div",Ve({},dr(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||mt($7,null))},mte=E7,gte=function(e){var n=e.children,r=e.innerProps;return mt("div",Ve({},dr(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||mt(oT,null))},yte=function(e,n){var r=e.isDisabled,i=e.theme,o=i.spacing.baseUnit,u=i.colors;return ct({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?u.neutral10:u.neutral20,marginBottom:o*2,marginTop:o*2})},vte=function(e){var n=e.innerProps;return mt("span",Ve({},n,dr(e,"indicatorSeparator",{"indicator-separator":!0})))},bte=lee(g6||(g6=pee([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } -`]))),rte=function(e,n){var r=e.isFocused,i=e.size,o=e.theme,u=o.colors,l=o.spacing.baseUnit;return ct({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?u.neutral60:u.neutral20,padding:l*2})},JC=function(e){var n=e.delay,r=e.offset;return mt("span",{css:HO({animation:"".concat(nte," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ite=function(e){var n=e.innerProps,r=e.isRtl,i=e.size,o=i===void 0?4:i,u=Pu(e,Kee);return mt("div",Ve({},dr(ct(ct({},u),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),mt(JC,{delay:0,offset:r}),mt(JC,{delay:160,offset:!0}),mt(JC,{delay:320,offset:!r}))},ate=function(e,n){var r=e.isDisabled,i=e.isFocused,o=e.theme,u=o.colors,l=o.borderRadius,d=o.spacing;return ct({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:d.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?u.neutral5:u.neutral0,borderColor:r?u.neutral10:i?u.primary:u.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(u.primary):void 0,"&:hover":{borderColor:i?u.primary:u.neutral30}})},ote=function(e){var n=e.children,r=e.isDisabled,i=e.isFocused,o=e.innerRef,u=e.innerProps,l=e.menuIsOpen;return mt("div",Ve({ref:o},dr(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":l}),u,{"aria-disabled":r||void 0}),n)},ste=ote,ute=["data"],lte=function(e,n){var r=e.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},cte=function(e){var n=e.children,r=e.cx,i=e.getStyles,o=e.getClassNames,u=e.Heading,l=e.headingProps,d=e.innerProps,h=e.label,g=e.theme,y=e.selectProps;return mt("div",Ve({},dr(e,"group",{group:!0}),d),mt(u,Ve({},l,{selectProps:y,theme:g,getStyles:i,getClassNames:o,cx:r}),h),mt("div",null,n))},fte=function(e,n){var r=e.theme,i=r.colors,o=r.spacing;return ct({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},dte=function(e){var n=r7(e);n.data;var r=Pu(n,ute);return mt("div",Ve({},dr(e,"groupHeading",{"group-heading":!0}),r))},hte=cte,pte=["innerRef","isDisabled","isHidden","inputClassName"],mte=function(e,n){var r=e.isDisabled,i=e.value,o=e.theme,u=o.spacing,l=o.colors;return ct(ct({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},gte),n?{}:{margin:u.baseUnit/2,paddingBottom:u.baseUnit/2,paddingTop:u.baseUnit/2,color:l.neutral80})},d7={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},gte={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ct({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},d7)},yte=function(e){return ct({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},d7)},vte=function(e){var n=e.cx,r=e.value,i=r7(e),o=i.innerRef,u=i.isDisabled,l=i.isHidden,d=i.inputClassName,h=Pu(i,pte);return mt("div",Ve({},dr(e,"input",{"input-container":!0}),{"data-value":r||""}),mt("input",Ve({className:n({input:!0},d),ref:o,style:yte(l),disabled:u},h)))},bte=vte,wte=function(e,n){var r=e.theme,i=r.spacing,o=r.borderRadius,u=r.colors;return ct({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:u.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},Ste=function(e,n){var r=e.theme,i=r.borderRadius,o=r.colors,u=e.cropWithEllipsis;return ct({overflow:"hidden",textOverflow:u||u===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Cte=function(e,n){var r=e.theme,i=r.spacing,o=r.borderRadius,u=r.colors,l=e.isFocused;return ct({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:l?u.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:u.dangerLight,color:u.danger}})},h7=function(e){var n=e.children,r=e.innerProps;return mt("div",r,n)},$te=h7,Ete=h7;function xte(t){var e=t.children,n=t.innerProps;return mt("div",Ve({role:"button"},n),e||mt(WO,{size:14}))}var Ote=function(e){var n=e.children,r=e.components,i=e.data,o=e.innerProps,u=e.isDisabled,l=e.removeProps,d=e.selectProps,h=r.Container,g=r.Label,y=r.Remove;return mt(h,{data:i,innerProps:ct(ct({},dr(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":u})),o),selectProps:d},mt(g,{data:i,innerProps:ct({},dr(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:d},n),mt(y,{data:i,innerProps:ct(ct({},dr(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:d}))},Tte=Ote,_te=function(e,n){var r=e.isDisabled,i=e.isFocused,o=e.isSelected,u=e.theme,l=u.spacing,d=u.colors;return ct({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?d.primary:i?d.primary25:"transparent",color:r?d.neutral20:o?d.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?d.primary:d.primary50}})},Ate=function(e){var n=e.children,r=e.isDisabled,i=e.isFocused,o=e.isSelected,u=e.innerRef,l=e.innerProps;return mt("div",Ve({},dr(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:u,"aria-disabled":r},l),n)},Rte=Ate,Pte=function(e,n){var r=e.theme,i=r.spacing,o=r.colors;return ct({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Ite=function(e){var n=e.children,r=e.innerProps;return mt("div",Ve({},dr(e,"placeholder",{placeholder:!0}),r),n)},Nte=Ite,Mte=function(e,n){var r=e.isDisabled,i=e.theme,o=i.spacing,u=i.colors;return ct({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?u.neutral40:u.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},kte=function(e){var n=e.children,r=e.isDisabled,i=e.innerProps;return mt("div",Ve({},dr(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},Dte=kte,Fte={ClearIndicator:Zee,Control:ste,DropdownIndicator:Jee,DownChevron:c7,CrossIcon:WO,Group:hte,GroupHeading:dte,IndicatorsContainer:Gee,IndicatorSeparator:tte,Input:bte,LoadingIndicator:ite,Menu:Iee,MenuList:Mee,MenuPortal:jee,LoadingMessage:Lee,NoOptionsMessage:Fee,MultiValue:Tte,MultiValueContainer:$te,MultiValueLabel:Ete,MultiValueRemove:xte,Option:Rte,Placeholder:Nte,SelectContainer:qee,SingleValue:Dte,ValueContainer:zee},Lte=function(e){return ct(ct({},Fte),e.components)},i6=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Ute(t,e){return!!(t===e||i6(t)&&i6(e))}function jte(t,e){if(t.length!==e.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return u?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(e){var n=e.context,r=e.focused,i=e.options,o=e.label,u=o===void 0?"":o,l=e.selectValue,d=e.isDisabled,h=e.isSelected,g=e.isAppleDevice,y=function(E,$){return E&&E.length?"".concat(E.indexOf($)+1," of ").concat(E.length):""};if(n==="value"&&l)return"value ".concat(u," focused, ").concat(y(l,r),".");if(n==="menu"&&g){var w=d?" disabled":"",v="".concat(h?" selected":"").concat(w);return"".concat(u).concat(v,", ").concat(y(i,r),".")}return""},onFilter:function(e){var n=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},Vte=function(e){var n=e.ariaSelection,r=e.focusedOption,i=e.focusedValue,o=e.focusableOptions,u=e.isFocused,l=e.selectValue,d=e.selectProps,h=e.id,g=e.isAppleDevice,y=d.ariaLiveMessages,w=d.getOptionLabel,v=d.inputValue,C=d.isMulti,E=d.isOptionDisabled,$=d.isSearchable,O=d.menuIsOpen,_=d.options,R=d.screenReaderStatus,k=d.tabSelectsValue,P=d.isLoading,L=d["aria-label"],F=d["aria-live"],q=T.useMemo(function(){return ct(ct({},zte),y||{})},[y]),Y=T.useMemo(function(){var we="";if(n&&q.onChange){var B=n.option,V=n.options,H=n.removedValue,ie=n.removedValues,G=n.value,J=function(ke){return Array.isArray(ke)?null:ke},he=H||B||J(G),$e=he?w(he):"",Ce=V||ie||void 0,Be=Ce?Ce.map(w):[],Ie=ct({isDisabled:he&&E(he,l),label:$e,labels:Be},n);we=q.onChange(Ie)}return we},[n,q,E,l,w]),X=T.useMemo(function(){var we="",B=r||i,V=!!(r&&l&&l.includes(r));if(B&&q.onFocus){var H={focused:B,label:w(B),isDisabled:E(B,l),isSelected:V,options:o,context:B===r?"menu":"value",selectValue:l,isAppleDevice:g};we=q.onFocus(H)}return we},[r,i,w,E,q,o,l,g]),ue=T.useMemo(function(){var we="";if(O&&_.length&&!P&&q.onFilter){var B=R({count:o.length});we=q.onFilter({inputValue:v,resultsMessage:B})}return we},[o,v,O,q,_,R,P]),me=(n==null?void 0:n.action)==="initial-input-focus",te=T.useMemo(function(){var we="";if(q.guidance){var B=i?"value":O?"menu":"input";we=q.guidance({"aria-label":L,context:B,isDisabled:r&&E(r,l),isMulti:C,isSearchable:$,tabSelectsValue:k,isInitialFocus:me})}return we},[L,r,i,C,E,$,O,q,l,k,me]),be=mt(T.Fragment,null,mt("span",{id:"aria-selection"},Y),mt("span",{id:"aria-focused"},X),mt("span",{id:"aria-results"},ue),mt("span",{id:"aria-guidance"},te));return mt(T.Fragment,null,mt(a6,{id:h},me&&be),mt(a6,{"aria-live":F,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},u&&!me&&be))},Gte=Vte,$x=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Wte=new RegExp("["+$x.map(function(t){return t.letters}).join("")+"]","g"),p7={};for(var XC=0;XC<$x.length;XC++)for(var ZC=$x[XC],e$=0;e$-1}},Jte=["innerRef"];function Xte(t){var e=t.innerRef,n=Pu(t,Jte),r=Eee(n,"onExited","in","enter","exit","appear");return mt("input",Ve({ref:e},r,{css:HO({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Zte=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function ene(t){var e=t.isEnabled,n=t.onBottomArrive,r=t.onBottomLeave,i=t.onTopArrive,o=t.onTopLeave,u=T.useRef(!1),l=T.useRef(!1),d=T.useRef(0),h=T.useRef(null),g=T.useCallback(function($,O){if(h.current!==null){var _=h.current,R=_.scrollTop,k=_.scrollHeight,P=_.clientHeight,L=h.current,F=O>0,q=k-P-R,Y=!1;q>O&&u.current&&(r&&r($),u.current=!1),F&&l.current&&(o&&o($),l.current=!1),F&&O>q?(n&&!u.current&&n($),L.scrollTop=k,Y=!0,u.current=!0):!F&&-O>R&&(i&&!l.current&&i($),L.scrollTop=0,Y=!0,l.current=!0),Y&&Zte($)}},[n,r,i,o]),y=T.useCallback(function($){g($,$.deltaY)},[g]),w=T.useCallback(function($){d.current=$.changedTouches[0].clientY},[]),v=T.useCallback(function($){var O=d.current-$.changedTouches[0].clientY;g($,O)},[g]),C=T.useCallback(function($){if($){var O=See?{passive:!1}:!1;$.addEventListener("wheel",y,O),$.addEventListener("touchstart",w,O),$.addEventListener("touchmove",v,O)}},[v,w,y]),E=T.useCallback(function($){$&&($.removeEventListener("wheel",y,!1),$.removeEventListener("touchstart",w,!1),$.removeEventListener("touchmove",v,!1))},[v,w,y]);return T.useEffect(function(){if(e){var $=h.current;return C($),function(){E($)}}},[e,C,E]),function($){h.current=$}}var s6=["boxSizing","height","overflow","paddingRight","position"],u6={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function l6(t){t.cancelable&&t.preventDefault()}function c6(t){t.stopPropagation()}function f6(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;t===0?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function d6(){return"ontouchstart"in window||navigator.maxTouchPoints}var h6=!!(typeof window<"u"&&window.document&&window.document.createElement),C0=0,Cg={capture:!1,passive:!1};function tne(t){var e=t.isEnabled,n=t.accountForScrollbars,r=n===void 0?!0:n,i=T.useRef({}),o=T.useRef(null),u=T.useCallback(function(d){if(h6){var h=document.body,g=h&&h.style;if(r&&s6.forEach(function(C){var E=g&&g[C];i.current[C]=E}),r&&C0<1){var y=parseInt(i.current.paddingRight,10)||0,w=document.body?document.body.clientWidth:0,v=window.innerWidth-w+y||0;Object.keys(u6).forEach(function(C){var E=u6[C];g&&(g[C]=E)}),g&&(g.paddingRight="".concat(v,"px"))}h&&d6()&&(h.addEventListener("touchmove",l6,Cg),d&&(d.addEventListener("touchstart",f6,Cg),d.addEventListener("touchmove",c6,Cg))),C0+=1}},[r]),l=T.useCallback(function(d){if(h6){var h=document.body,g=h&&h.style;C0=Math.max(C0-1,0),r&&C0<1&&s6.forEach(function(y){var w=i.current[y];g&&(g[y]=w)}),h&&d6()&&(h.removeEventListener("touchmove",l6,Cg),d&&(d.removeEventListener("touchstart",f6,Cg),d.removeEventListener("touchmove",c6,Cg)))}},[r]);return T.useEffect(function(){if(e){var d=o.current;return u(d),function(){l(d)}}},[e,u,l]),function(d){o.current=d}}var nne=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},rne={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ine(t){var e=t.children,n=t.lockEnabled,r=t.captureEnabled,i=r===void 0?!0:r,o=t.onBottomArrive,u=t.onBottomLeave,l=t.onTopArrive,d=t.onTopLeave,h=ene({isEnabled:i,onBottomArrive:o,onBottomLeave:u,onTopArrive:l,onTopLeave:d}),g=tne({isEnabled:n}),y=function(v){h(v),g(v)};return mt(T.Fragment,null,n&&mt("div",{onClick:nne,css:rne}),e(y))}var ane={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},one=function(e){var n=e.name,r=e.onFocus;return mt("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:ane,value:"",onChange:function(){}})},sne=one;function KO(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function une(){return KO(/^iPhone/i)}function g7(){return KO(/^Mac/i)}function lne(){return KO(/^iPad/i)||g7()&&navigator.maxTouchPoints>1}function cne(){return une()||lne()}function fne(){return g7()||cne()}var dne=function(e){return e.label},hne=function(e){return e.label},pne=function(e){return e.value},mne=function(e){return!!e.isDisabled},gne={clearIndicator:Xee,container:Bee,control:ate,dropdownIndicator:Qee,group:lte,groupHeading:fte,indicatorsContainer:Vee,indicatorSeparator:ete,input:mte,loadingIndicator:rte,loadingMessage:Dee,menu:Aee,menuList:Nee,menuPortal:Uee,multiValue:wte,multiValueLabel:Ste,multiValueRemove:Cte,noOptionsMessage:kee,option:_te,placeholder:Pte,singleValue:Mte,valueContainer:Hee},yne={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},vne=4,y7=4,bne=38,wne=y7*2,Sne={baseUnit:y7,controlHeight:bne,menuGutter:wne},t$={borderRadius:vne,colors:yne,spacing:Sne},Cne={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:n6(),captureMenuScroll:!n6(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Qte(),formatGroupLabel:dne,getOptionLabel:hne,getOptionValue:pne,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:mne,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!bee(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function p6(t,e,n,r){var i=w7(t,e,n),o=S7(t,e,n),u=b7(t,e),l=Xw(t,e);return{type:"option",data:e,isDisabled:i,isSelected:o,label:u,value:l,index:r}}function bw(t,e){return t.options.map(function(n,r){if("options"in n){var i=n.options.map(function(u,l){return p6(t,u,e,l)}).filter(function(u){return g6(t,u)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=p6(t,n,e,r);return g6(t,o)?o:void 0}).filter(Cee)}function v7(t){return t.reduce(function(e,n){return n.type==="group"?e.push.apply(e,LO(n.options.map(function(r){return r.data}))):e.push(n.data),e},[])}function m6(t,e){return t.reduce(function(n,r){return r.type==="group"?n.push.apply(n,LO(r.options.map(function(i){return{data:i.data,id:"".concat(e,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(e,"-").concat(r.index)}),n},[])}function $ne(t,e){return v7(bw(t,e))}function g6(t,e){var n=t.inputValue,r=n===void 0?"":n,i=e.data,o=e.isSelected,u=e.label,l=e.value;return(!$7(t)||!o)&&C7(t,{label:u,value:l,data:i},r)}function Ene(t,e){var n=t.focusedValue,r=t.selectValue,i=r.indexOf(n);if(i>-1){var o=e.indexOf(n);if(o>-1)return n;if(i-1?n:e[0]}var n$=function(e,n){var r,i=(r=e.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},b7=function(e,n){return e.getOptionLabel(n)},Xw=function(e,n){return e.getOptionValue(n)};function w7(t,e,n){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,n):!1}function S7(t,e,n){if(n.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,n);var r=Xw(t,e);return n.some(function(i){return Xw(t,i)===r})}function C7(t,e,n){return t.filterOption?t.filterOption(e,n):!0}var $7=function(e){var n=e.hideSelectedOptions,r=e.isMulti;return n===void 0?r:n},One=1,E7=(function(t){WX(n,t);var e=YX(n);function n(r){var i;if(VX(this,n),i=e.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=fne(),i.controlRef=null,i.getControlRef=function(d){i.controlRef=d},i.focusedOptionRef=null,i.getFocusedOptionRef=function(d){i.focusedOptionRef=d},i.menuListRef=null,i.getMenuListRef=function(d){i.menuListRef=d},i.inputRef=null,i.getInputRef=function(d){i.inputRef=d},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(d,h){var g=i.props,y=g.onChange,w=g.name;h.name=w,i.ariaOnChange(d,h),y(d,h)},i.setValue=function(d,h,g){var y=i.props,w=y.closeMenuOnSelect,v=y.isMulti,C=y.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:C}),w&&(i.setState({inputIsHiddenAfterUpdate:!v}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(d,{action:h,option:g})},i.selectOption=function(d){var h=i.props,g=h.blurInputOnSelect,y=h.isMulti,w=h.name,v=i.state.selectValue,C=y&&i.isOptionSelected(d,v),E=i.isOptionDisabled(d,v);if(C){var $=i.getOptionValue(d);i.setValue(v.filter(function(O){return i.getOptionValue(O)!==$}),"deselect-option",d)}else if(!E)y?i.setValue([].concat(LO(v),[d]),"select-option",d):i.setValue(d,"select-option");else{i.ariaOnChange(d,{action:"select-option",option:d,name:w});return}g&&i.blurInput()},i.removeValue=function(d){var h=i.props.isMulti,g=i.state.selectValue,y=i.getOptionValue(d),w=g.filter(function(C){return i.getOptionValue(C)!==y}),v=J2(h,w,w[0]||null);i.onChange(v,{action:"remove-value",removedValue:d}),i.focusInput()},i.clearValue=function(){var d=i.state.selectValue;i.onChange(J2(i.props.isMulti,[],null),{action:"clear",removedValues:d})},i.popValue=function(){var d=i.props.isMulti,h=i.state.selectValue,g=h[h.length-1],y=h.slice(0,h.length-1),w=J2(d,y,y[0]||null);g&&i.onChange(w,{action:"pop-value",removedValue:g})},i.getFocusedOptionId=function(d){return n$(i.state.focusableOptionsWithIds,d)},i.getFocusableOptionsWithIds=function(){return m6(bw(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var d=arguments.length,h=new Array(d),g=0;gv||w>v}},i.onTouchEnd=function(d){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(d.target)&&i.menuListRef&&!i.menuListRef.contains(d.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(d){i.userIsDragging||i.onControlMouseDown(d)},i.onClearIndicatorTouchEnd=function(d){i.userIsDragging||i.onClearIndicatorMouseDown(d)},i.onDropdownIndicatorTouchEnd=function(d){i.userIsDragging||i.onDropdownIndicatorMouseDown(d)},i.handleInputChange=function(d){var h=i.props.inputValue,g=d.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(g,{action:"input-change",prevInputValue:h}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(d){i.props.onFocus&&i.props.onFocus(d),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(d){var h=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(d),i.onInputChange("",{action:"input-blur",prevInputValue:h}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(d){if(!(i.blockOptionHover||i.state.focusedOption===d)){var h=i.getFocusableOptions(),g=h.indexOf(d);i.setState({focusedOption:d,focusedOptionId:g>-1?i.getFocusedOptionId(d):null})}},i.shouldHideSelectedOptions=function(){return $7(i.props)},i.onValueInputFocus=function(d){d.preventDefault(),d.stopPropagation(),i.focus()},i.onKeyDown=function(d){var h=i.props,g=h.isMulti,y=h.backspaceRemovesValue,w=h.escapeClearsValue,v=h.inputValue,C=h.isClearable,E=h.isDisabled,$=h.menuIsOpen,O=h.onKeyDown,_=h.tabSelectsValue,R=h.openMenuOnFocus,k=i.state,P=k.focusedOption,L=k.focusedValue,F=k.selectValue;if(!E&&!(typeof O=="function"&&(O(d),d.defaultPrevented))){switch(i.blockOptionHover=!0,d.key){case"ArrowLeft":if(!g||v)return;i.focusValue("previous");break;case"ArrowRight":if(!g||v)return;i.focusValue("next");break;case"Delete":case"Backspace":if(v)return;if(L)i.removeValue(L);else{if(!y)return;g?i.popValue():C&&i.clearValue()}break;case"Tab":if(i.isComposing||d.shiftKey||!$||!_||!P||R&&i.isOptionSelected(P,F))return;i.selectOption(P);break;case"Enter":if(d.keyCode===229)break;if($){if(!P||i.isComposing)return;i.selectOption(P);break}return;case"Escape":$?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:v}),i.onMenuClose()):C&&w&&i.clearValue();break;case" ":if(v)return;if(!$){i.openMenu("first");break}if(!P)return;i.selectOption(P);break;case"ArrowUp":$?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":$?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!$)return;i.focusOption("pageup");break;case"PageDown":if(!$)return;i.focusOption("pagedown");break;case"Home":if(!$)return;i.focusOption("first");break;case"End":if(!$)return;i.focusOption("last");break;default:return}d.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++One),i.state.selectValue=e6(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),u=i.buildFocusableOptions(),l=u.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=u[l],i.state.focusedOptionId=n$(o,u[l])}return i}return GX(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&t6(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,u=o.isDisabled,l=o.menuIsOpen,d=this.state.isFocused;(d&&!u&&i.isDisabled||d&&l&&!i.menuIsOpen)&&this.focusInput(),d&&u&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!d&&!u&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t6(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,u=this.state,l=u.selectValue,d=u.isFocused,h=this.buildFocusableOptions(),g=i==="first"?0:h.length-1;if(!this.props.isMulti){var y=h.indexOf(l[0]);y>-1&&(g=y)}this.scrollToFocusedOptionOnUpdate=!(d&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:h[g],focusedOptionId:this.getFocusedOptionId(h[g])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,u=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var d=u.indexOf(l);l||(d=-1);var h=u.length-1,g=-1;if(u.length){switch(i){case"previous":d===0?g=0:d===-1?g=h:g=d-1;break;case"next":d>-1&&d0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,u=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var d=0,h=l.indexOf(u);u||(h=-1),i==="up"?d=h>0?h-1:l.length-1:i==="down"?d=(h+1)%l.length:i==="pageup"?(d=h-o,d<0&&(d=0)):i==="pagedown"?(d=h+o,d>l.length-1&&(d=l.length-1)):i==="last"&&(d=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[d],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[d])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(t$):ct(ct({},t$),this.props.theme):t$})},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,u=this.getStyles,l=this.getClassNames,d=this.getValue,h=this.selectOption,g=this.setValue,y=this.props,w=y.isMulti,v=y.isRtl,C=y.options,E=this.hasValue();return{clearValue:i,cx:o,getStyles:u,getClassNames:l,getValue:d,hasValue:E,isMulti:w,isRtl:v,options:C,selectOption:h,selectProps:y,setValue:g,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,u=i.isMulti;return o===void 0?u:o}},{key:"isOptionDisabled",value:function(i,o){return w7(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return S7(this.props,i,o)}},{key:"filterOption",value:function(i,o){return C7(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var u=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:u,selectValue:l})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var i=this.props,o=i.isDisabled,u=i.isSearchable,l=i.inputId,d=i.inputValue,h=i.tabIndex,g=i.form,y=i.menuIsOpen,w=i.required,v=this.getComponents(),C=v.Input,E=this.state,$=E.inputIsHidden,O=E.ariaSelection,_=this.commonProps,R=l||this.getElementId("input"),k=ct(ct(ct({"aria-autocomplete":"list","aria-expanded":y,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":w,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},y&&{"aria-controls":this.getElementId("listbox")}),!u&&{"aria-readonly":!0}),this.hasValue()?(O==null?void 0:O.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return u?T.createElement(C,Ve({},_,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:R,innerRef:this.getInputRef,isDisabled:o,isHidden:$,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:h,form:g,type:"text",value:d},k)):T.createElement(Xte,Ve({id:R,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Qw,onFocus:this.onInputFocus,disabled:o,tabIndex:h,inputMode:"none",form:g,value:""},k))})},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),u=o.MultiValue,l=o.MultiValueContainer,d=o.MultiValueLabel,h=o.MultiValueRemove,g=o.SingleValue,y=o.Placeholder,w=this.commonProps,v=this.props,C=v.controlShouldRenderValue,E=v.isDisabled,$=v.isMulti,O=v.inputValue,_=v.placeholder,R=this.state,k=R.selectValue,P=R.focusedValue,L=R.isFocused;if(!this.hasValue()||!C)return O?null:T.createElement(y,Ve({},w,{key:"placeholder",isDisabled:E,isFocused:L,innerProps:{id:this.getElementId("placeholder")}}),_);if($)return k.map(function(q,Y){var X=q===P,ue="".concat(i.getOptionLabel(q),"-").concat(i.getOptionValue(q));return T.createElement(u,Ve({},w,{components:{Container:l,Label:d,Remove:h},isFocused:X,isDisabled:E,key:ue,index:Y,removeProps:{onClick:function(){return i.removeValue(q)},onTouchEnd:function(){return i.removeValue(q)},onMouseDown:function(te){te.preventDefault()}},data:q}),i.formatOptionLabel(q,"value"))});if(O)return null;var F=k[0];return T.createElement(g,Ve({},w,{data:F,isDisabled:E}),this.formatOptionLabel(F,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,u=this.commonProps,l=this.props,d=l.isDisabled,h=l.isLoading,g=this.state.isFocused;if(!this.isClearable()||!o||d||!this.hasValue()||h)return null;var y={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return T.createElement(o,Ve({},u,{innerProps:y,isFocused:g}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,u=this.commonProps,l=this.props,d=l.isDisabled,h=l.isLoading,g=this.state.isFocused;if(!o||!h)return null;var y={"aria-hidden":"true"};return T.createElement(o,Ve({},u,{innerProps:y,isDisabled:d,isFocused:g}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,u=i.IndicatorSeparator;if(!o||!u)return null;var l=this.commonProps,d=this.props.isDisabled,h=this.state.isFocused;return T.createElement(u,Ve({},l,{isDisabled:d,isFocused:h}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var u=this.commonProps,l=this.props.isDisabled,d=this.state.isFocused,h={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return T.createElement(o,Ve({},u,{innerProps:h,isDisabled:l,isFocused:d}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),u=o.Group,l=o.GroupHeading,d=o.Menu,h=o.MenuList,g=o.MenuPortal,y=o.LoadingMessage,w=o.NoOptionsMessage,v=o.Option,C=this.commonProps,E=this.state.focusedOption,$=this.props,O=$.captureMenuScroll,_=$.inputValue,R=$.isLoading,k=$.loadingMessage,P=$.minMenuHeight,L=$.maxMenuHeight,F=$.menuIsOpen,q=$.menuPlacement,Y=$.menuPosition,X=$.menuPortalTarget,ue=$.menuShouldBlockScroll,me=$.menuShouldScrollIntoView,te=$.noOptionsMessage,be=$.onMenuScrollToTop,we=$.onMenuScrollToBottom;if(!F)return null;var B=function($e,Ce){var Be=$e.type,Ie=$e.data,tt=$e.isDisabled,ke=$e.isSelected,Ke=$e.label,He=$e.value,ut=E===Ie,pt=tt?void 0:function(){return i.onOptionHover(Ie)},bt=tt?void 0:function(){return i.selectOption(Ie)},gt="".concat(i.getElementId("option"),"-").concat(Ce),Ut={id:gt,onClick:bt,onMouseMove:pt,onMouseOver:pt,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:ke};return T.createElement(v,Ve({},C,{innerProps:Ut,data:Ie,isDisabled:tt,isSelected:ke,key:gt,label:Ke,type:Be,value:He,isFocused:ut,innerRef:ut?i.getFocusedOptionRef:void 0}),i.formatOptionLabel($e.data,"menu"))},V;if(this.hasOptions())V=this.getCategorizedOptions().map(function(he){if(he.type==="group"){var $e=he.data,Ce=he.options,Be=he.index,Ie="".concat(i.getElementId("group"),"-").concat(Be),tt="".concat(Ie,"-heading");return T.createElement(u,Ve({},C,{key:Ie,data:$e,options:Ce,Heading:l,headingProps:{id:tt,data:he.data},label:i.formatGroupLabel(he.data)}),he.options.map(function(ke){return B(ke,"".concat(Be,"-").concat(ke.index))}))}else if(he.type==="option")return B(he,"".concat(he.index))});else if(R){var H=k({inputValue:_});if(H===null)return null;V=T.createElement(y,C,H)}else{var ie=te({inputValue:_});if(ie===null)return null;V=T.createElement(w,C,ie)}var G={minMenuHeight:P,maxMenuHeight:L,menuPlacement:q,menuPosition:Y,menuShouldScrollIntoView:me},J=T.createElement(Ree,Ve({},C,G),function(he){var $e=he.ref,Ce=he.placerProps,Be=Ce.placement,Ie=Ce.maxHeight;return T.createElement(d,Ve({},C,G,{innerRef:$e,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:R,placement:Be}),T.createElement(ine,{captureEnabled:O,onTopArrive:be,onBottomArrive:we,lockEnabled:ue},function(tt){return T.createElement(h,Ve({},C,{innerRef:function(Ke){i.getMenuListRef(Ke),tt(Ke)},innerProps:{role:"listbox","aria-multiselectable":C.isMulti,id:i.getElementId("listbox")},isLoading:R,maxHeight:Ie,focusedOption:E}),V)}))});return X||Y==="fixed"?T.createElement(g,Ve({},C,{appendTo:X,controlElement:this.controlRef,menuPlacement:q,menuPosition:Y}),J):J}},{key:"renderFormField",value:function(){var i=this,o=this.props,u=o.delimiter,l=o.isDisabled,d=o.isMulti,h=o.name,g=o.required,y=this.state.selectValue;if(g&&!this.hasValue()&&!l)return T.createElement(sne,{name:h,onFocus:this.onValueInputFocus});if(!(!h||l))if(d)if(u){var w=y.map(function(E){return i.getOptionValue(E)}).join(u);return T.createElement("input",{name:h,type:"hidden",value:w})}else{var v=y.length>0?y.map(function(E,$){return T.createElement("input",{key:"i-".concat($),name:h,type:"hidden",value:i.getOptionValue(E)})}):T.createElement("input",{name:h,type:"hidden",value:""});return T.createElement("div",null,v)}else{var C=y[0]?this.getOptionValue(y[0]):"";return T.createElement("input",{name:h,type:"hidden",value:C})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,u=o.ariaSelection,l=o.focusedOption,d=o.focusedValue,h=o.isFocused,g=o.selectValue,y=this.getFocusableOptions();return T.createElement(Gte,Ve({},i,{id:this.getElementId("live-region"),ariaSelection:u,focusedOption:l,focusedValue:d,isFocused:h,selectValue:g,focusableOptions:y,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,u=i.IndicatorsContainer,l=i.SelectContainer,d=i.ValueContainer,h=this.props,g=h.className,y=h.id,w=h.isDisabled,v=h.menuIsOpen,C=this.state.isFocused,E=this.commonProps=this.getCommonProps();return T.createElement(l,Ve({},E,{className:g,innerProps:{id:y,onKeyDown:this.onKeyDown},isDisabled:w,isFocused:C}),this.renderLiveRegion(),T.createElement(o,Ve({},E,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:w,isFocused:C,menuIsOpen:v}),T.createElement(d,Ve({},E,{isDisabled:w}),this.renderPlaceholderOrValue(),this.renderInput()),T.createElement(u,Ve({},E,{isDisabled:w}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var u=o.prevProps,l=o.clearFocusValueOnUpdate,d=o.inputIsHiddenAfterUpdate,h=o.ariaSelection,g=o.isFocused,y=o.prevWasFocused,w=o.instancePrefix,v=i.options,C=i.value,E=i.menuIsOpen,$=i.inputValue,O=i.isMulti,_=e6(C),R={};if(u&&(C!==u.value||v!==u.options||E!==u.menuIsOpen||$!==u.inputValue)){var k=E?$ne(i,_):[],P=E?m6(bw(i,_),"".concat(w,"-option")):[],L=l?Ene(o,_):null,F=xne(o,k),q=n$(P,F);R={selectValue:_,focusedOption:F,focusedOptionId:q,focusableOptionsWithIds:P,focusedValue:L,clearFocusValueOnUpdate:!1}}var Y=d!=null&&i!==u?{inputIsHidden:d,inputIsHiddenAfterUpdate:void 0}:{},X=h,ue=g&&y;return g&&!ue&&(X={value:J2(O,_,_[0]||null),options:_,action:"initial-input-focus"},ue=!y),(h==null?void 0:h.action)==="initial-input-focus"&&(X=null),ct(ct(ct({},R),Y),{},{prevProps:i,ariaSelection:X,prevWasFocused:ue})}}]),n})(T.Component);E7.defaultProps=Cne;var Tne=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function _ne(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,i=r===void 0?!1:r,o=t.defaultValue,u=o===void 0?null:o,l=t.inputValue,d=t.menuIsOpen,h=t.onChange,g=t.onInputChange,y=t.onMenuClose,w=t.onMenuOpen,v=t.value,C=Pu(t,Tne),E=T.useState(l!==void 0?l:n),$=Jr(E,2),O=$[0],_=$[1],R=T.useState(d!==void 0?d:i),k=Jr(R,2),P=k[0],L=k[1],F=T.useState(v!==void 0?v:u),q=Jr(F,2),Y=q[0],X=q[1],ue=T.useCallback(function(H,ie){typeof h=="function"&&h(H,ie),X(H)},[h]),me=T.useCallback(function(H,ie){var G;typeof g=="function"&&(G=g(H,ie)),_(G!==void 0?G:H)},[g]),te=T.useCallback(function(){typeof w=="function"&&w(),L(!0)},[w]),be=T.useCallback(function(){typeof y=="function"&&y(),L(!1)},[y]),we=l!==void 0?l:O,B=d!==void 0?d:P,V=v!==void 0?v:Y;return ct(ct({},C),{},{inputValue:we,menuIsOpen:B,onChange:ue,onInputChange:me,onMenuClose:be,onMenuOpen:te,value:V})}var Ane=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function Rne(t){var e=t.defaultOptions,n=e===void 0?!1:e,r=t.cacheOptions,i=r===void 0?!1:r,o=t.loadOptions;t.options;var u=t.isLoading,l=u===void 0?!1:u,d=t.onInputChange,h=t.filterOption,g=h===void 0?null:h,y=Pu(t,Ane),w=y.inputValue,v=T.useRef(void 0),C=T.useRef(!1),E=T.useState(Array.isArray(n)?n:void 0),$=Jr(E,2),O=$[0],_=$[1],R=T.useState(typeof w<"u"?w:""),k=Jr(R,2),P=k[0],L=k[1],F=T.useState(n===!0),q=Jr(F,2),Y=q[0],X=q[1],ue=T.useState(void 0),me=Jr(ue,2),te=me[0],be=me[1],we=T.useState([]),B=Jr(we,2),V=B[0],H=B[1],ie=T.useState(!1),G=Jr(ie,2),J=G[0],he=G[1],$e=T.useState({}),Ce=Jr($e,2),Be=Ce[0],Ie=Ce[1],tt=T.useState(void 0),ke=Jr(tt,2),Ke=ke[0],He=ke[1],ut=T.useState(void 0),pt=Jr(ut,2),bt=pt[0],gt=pt[1];i!==bt&&(Ie({}),gt(i)),n!==Ke&&(_(Array.isArray(n)?n:void 0),He(n)),T.useEffect(function(){return C.current=!0,function(){C.current=!1}},[]);var Ut=T.useCallback(function(en,xn){if(!o)return xn();var Dt=o(en,xn);Dt&&typeof Dt.then=="function"&&Dt.then(xn,function(){return xn()})},[o]);T.useEffect(function(){n===!0&&Ut(P,function(en){C.current&&(_(en||[]),X(!!v.current))})},[]);var Gt=T.useCallback(function(en,xn){var Dt=pee(en,xn,d);if(!Dt){v.current=void 0,L(""),be(""),H([]),X(!1),he(!1);return}if(i&&Be[Dt])L(Dt),be(Dt),H(Be[Dt]),X(!1),he(!1);else{var Pt=v.current={};L(Dt),X(!0),he(!te),Ut(Dt,function(pe){C&&Pt===v.current&&(v.current=void 0,X(!1),be(Dt),H(pe||[]),he(!1),Ie(pe?ct(ct({},Be),{},Ag({},Dt,pe)):Be))})}},[i,Ut,te,Be,d]),Tt=J?[]:P&&te?V:O||[];return ct(ct({},y),{},{options:Tt,isLoading:Y||l,onInputChange:Gt,filterOption:g})}var Pne=T.forwardRef(function(t,e){var n=Rne(t),r=_ne(n);return T.createElement(E7,Ve({ref:e},r))}),Ine=Pne;function Nne(t,e){return e?e(t):{name:{operation:"contains",value:t}}}function Ex(t){var w,v,C;const e=vn(),n=Nf();let[r,i]=T.useState("");if(!t.querySource)return N.jsx("div",{children:"No query source to render"});const{query:o,keyExtractor:u}=t.querySource({queryClient:n,query:{itemsPerPage:20,jsonQuery:Nne(r,t.jsonQuery),withPreloads:t.withPreloads},queryOptions:{refetchOnWindowFocus:!1}}),l=t.keyExtractor||u||(E=>JSON.stringify(E)),d=(v=(w=o==null?void 0:o.data)==null?void 0:w.data)==null?void 0:v.items,h=E=>{var $;if(($=t==null?void 0:t.formEffect)!=null&&$.form){const{formEffect:O}=t,_={...O.form.values};if(O.beforeSet&&(E=O.beforeSet(E)),Sr.set(_,O.field,E),Sr.isObject(E)&&E.uniqueId&&O.skipFirebackMetaData!==!0&&Sr.set(_,O.field+"Id",E.uniqueId),Sr.isArray(E)&&O.skipFirebackMetaData!==!0){const R=O.field+"ListId";Sr.set(_,R,(E||[]).map(k=>k.uniqueId))}O==null||O.form.setValues(_)}t.onChange&&typeof t.onChange=="function"&&t.onChange(E)};let g=t.value;if(g===void 0&&((C=t.formEffect)!=null&&C.form)){const E=Sr.get(t.formEffect.form.values,t.formEffect.field);E!==void 0&&(g=E)}typeof g!="object"&&l&&g!==void 0&&(g=d.find(E=>l(E)===g));const y=E=>new Promise($=>{setTimeout(()=>{$(d)},100)});return N.jsxs(ES,{...t,children:[t.children,t.convertToNative?N.jsxs("select",{value:g,multiple:t.multiple,onChange:E=>{const $=d==null?void 0:d.find(O=>O.uniqueId===E.target.value);h($)},className:Lo("form-select",t.errorMessage&&"is-invalid",t.validMessage&&"is-valid"),disabled:t.disabled,"aria-label":"Default select example",children:[N.jsx("option",{value:"",children:e.selectPlaceholder},void 0),d==null?void 0:d.filter(Boolean).map(E=>{const $=l(E);return N.jsx("option",{value:$,children:t.fnLabelFormat(E)},$)})]}):N.jsx(N.Fragment,{children:N.jsx(Ine,{value:g,onChange:E=>{h(E)},isMulti:t.multiple,classNames:{container(E){return Lo(t.errorMessage&&" form-control form-control-no-padding is-invalid",t.validMessage&&"is-valid")},control(E){return Lo("form-control form-control-no-padding")},menu(E){return"react-select-menu-area"}},isSearchable:!0,defaultOptions:d,placeholder:e.searchplaceholder,noOptionsMessage:()=>e.noOptions,getOptionValue:l,loadOptions:y,formatOptionLabel:t.fnLabelFormat,onInputChange:i})})]})}var r$,y6;function oy(){return y6||(y6=1,r$=TypeError),r$}const Mne={},kne=Object.freeze(Object.defineProperty({__proto__:null,default:Mne},Symbol.toStringTag,{value:"Module"})),Dne=DD(kne);var i$,v6;function DS(){if(v6)return i$;v6=1;var t=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=t&&e&&typeof e.get=="function"?e.get:null,r=t&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&o&&typeof o.get=="function"?o.get:null,l=i&&Set.prototype.forEach,d=typeof WeakMap=="function"&&WeakMap.prototype,h=d?WeakMap.prototype.has:null,g=typeof WeakSet=="function"&&WeakSet.prototype,y=g?WeakSet.prototype.has:null,w=typeof WeakRef=="function"&&WeakRef.prototype,v=w?WeakRef.prototype.deref:null,C=Boolean.prototype.valueOf,E=Object.prototype.toString,$=Function.prototype.toString,O=String.prototype.match,_=String.prototype.slice,R=String.prototype.replace,k=String.prototype.toUpperCase,P=String.prototype.toLowerCase,L=RegExp.prototype.test,F=Array.prototype.concat,q=Array.prototype.join,Y=Array.prototype.slice,X=Math.floor,ue=typeof BigInt=="function"?BigInt.prototype.valueOf:null,me=Object.getOwnPropertySymbols,te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,be=typeof Symbol=="function"&&typeof Symbol.iterator=="object",we=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===be||!0)?Symbol.toStringTag:null,B=Object.prototype.propertyIsEnumerable,V=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ae){return ae.__proto__}:null);function H(ae,ce){if(ae===1/0||ae===-1/0||ae!==ae||ae&&ae>-1e3&&ae<1e3||L.call(/e/,ce))return ce;var nt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ae=="number"){var Ht=ae<0?-X(-ae):X(ae);if(Ht!==ae){var ln=String(Ht),wt=_.call(ce,ln.length+1);return R.call(ln,nt,"$&_")+"."+R.call(R.call(wt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return R.call(ce,nt,"$&_")}var ie=Dne,G=ie.custom,J=gt(G)?G:null,he={__proto__:null,double:'"',single:"'"},$e={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};i$=function ae(ce,nt,Ht,ln){var wt=nt||{};if(Tt(wt,"quoteStyle")&&!Tt(he,wt.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Tt(wt,"maxStringLength")&&(typeof wt.maxStringLength=="number"?wt.maxStringLength<0&&wt.maxStringLength!==1/0:wt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var jr=Tt(wt,"customInspect")?wt.customInspect:!0;if(typeof jr!="boolean"&&jr!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Tt(wt,"indent")&&wt.indent!==null&&wt.indent!==" "&&!(parseInt(wt.indent,10)===wt.indent&&wt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Tt(wt,"numericSeparator")&&typeof wt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var tn=wt.numericSeparator;if(typeof ce>"u")return"undefined";if(ce===null)return"null";if(typeof ce=="boolean")return ce?"true":"false";if(typeof ce=="string")return j(ce,wt);if(typeof ce=="number"){if(ce===0)return 1/0/ce>0?"0":"-0";var er=String(ce);return tn?H(ce,er):er}if(typeof ce=="bigint"){var On=String(ce)+"n";return tn?H(ce,On):On}var Fi=typeof wt.depth>"u"?5:wt.depth;if(typeof Ht>"u"&&(Ht=0),Ht>=Fi&&Fi>0&&typeof ce=="object")return tt(ce)?"[Array]":"[Object]";var ca=Ee(wt,Ht);if(typeof ln>"u")ln=[];else if(Dt(ln,ce)>=0)return"[Circular]";function Ar(Br,Ta,xi){if(Ta&&(ln=Y.call(ln),ln.push(Ta)),xi){var Ui={depth:wt.depth};return Tt(wt,"quoteStyle")&&(Ui.quoteStyle=wt.quoteStyle),ae(Br,Ui,Ht+1,ln)}return ae(Br,wt,Ht+1,ln)}if(typeof ce=="function"&&!Ke(ce)){var Fs=xn(ce),ro=Wt(ce,Ar);return"[Function"+(Fs?": "+Fs:" (anonymous)")+"]"+(ro.length>0?" { "+q.call(ro,", ")+" }":"")}if(gt(ce)){var Ls=be?R.call(String(ce),/^(Symbol\(.*\))_[^)]*$/,"$1"):te.call(ce);return typeof ce=="object"&&!be?M(Ls):Ls}if(ht(ce)){for(var $i="<"+P.call(String(ce.nodeName)),Xr=ce.attributes||[],io=0;io",$i}if(tt(ce)){if(ce.length===0)return"[]";var Li=Wt(ce,Ar);return ca&&!ge(Li)?"["+rt(Li,ca)+"]":"[ "+q.call(Li,", ")+" ]"}if(He(ce)){var Wo=Wt(ce,Ar);return!("cause"in Error.prototype)&&"cause"in ce&&!B.call(ce,"cause")?"{ ["+String(ce)+"] "+q.call(F.call("[cause]: "+Ar(ce.cause),Wo),", ")+" }":Wo.length===0?"["+String(ce)+"]":"{ ["+String(ce)+"] "+q.call(Wo,", ")+" }"}if(typeof ce=="object"&&jr){if(J&&typeof ce[J]=="function"&&ie)return ie(ce,{depth:Fi-Ht});if(jr!=="symbol"&&typeof ce.inspect=="function")return ce.inspect()}if(Pt(ce)){var In=[];return r&&r.call(ce,function(Br,Ta){In.push(Ar(Ta,ce,!0)+" => "+Ar(Br,ce))}),re("Map",n.call(ce),In,ca)}if(Ge(ce)){var Nn=[];return l&&l.call(ce,function(Br){Nn.push(Ar(Br,ce))}),re("Set",u.call(ce),Nn,ca)}if(pe(ce))return Q("WeakMap");if(Qe(ce))return Q("WeakSet");if(ze(ce))return Q("WeakRef");if(pt(ce))return M(Ar(Number(ce)));if(Ut(ce))return M(Ar(ue.call(ce)));if(bt(ce))return M(C.call(ce));if(ut(ce))return M(Ar(String(ce)));if(typeof window<"u"&&ce===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ce===globalThis||typeof Sf<"u"&&ce===Sf)return"{ [object globalThis] }";if(!ke(ce)&&!Ke(ce)){var An=Wt(ce,Ar),Ze=V?V(ce)===Object.prototype:ce instanceof Object||ce.constructor===Object,Ei=ce instanceof Object?"":"null prototype",Us=!Ze&&we&&Object(ce)===ce&&we in ce?_.call(en(ce),8,-1):Ei?"Object":"",Ko=Ze||typeof ce.constructor!="function"?"":ce.constructor.name?ce.constructor.name+" ":"",ao=Ko+(Us||Ei?"["+q.call(F.call([],Us||[],Ei||[]),": ")+"] ":"");return An.length===0?ao+"{}":ca?ao+"{"+rt(An,ca)+"}":ao+"{ "+q.call(An,", ")+" }"}return String(ce)};function Ce(ae,ce,nt){var Ht=nt.quoteStyle||ce,ln=he[Ht];return ln+ae+ln}function Be(ae){return R.call(String(ae),/"/g,""")}function Ie(ae){return!we||!(typeof ae=="object"&&(we in ae||typeof ae[we]<"u"))}function tt(ae){return en(ae)==="[object Array]"&&Ie(ae)}function ke(ae){return en(ae)==="[object Date]"&&Ie(ae)}function Ke(ae){return en(ae)==="[object RegExp]"&&Ie(ae)}function He(ae){return en(ae)==="[object Error]"&&Ie(ae)}function ut(ae){return en(ae)==="[object String]"&&Ie(ae)}function pt(ae){return en(ae)==="[object Number]"&&Ie(ae)}function bt(ae){return en(ae)==="[object Boolean]"&&Ie(ae)}function gt(ae){if(be)return ae&&typeof ae=="object"&&ae instanceof Symbol;if(typeof ae=="symbol")return!0;if(!ae||typeof ae!="object"||!te)return!1;try{return te.call(ae),!0}catch{}return!1}function Ut(ae){if(!ae||typeof ae!="object"||!ue)return!1;try{return ue.call(ae),!0}catch{}return!1}var Gt=Object.prototype.hasOwnProperty||function(ae){return ae in this};function Tt(ae,ce){return Gt.call(ae,ce)}function en(ae){return E.call(ae)}function xn(ae){if(ae.name)return ae.name;var ce=O.call($.call(ae),/^function\s*([\w$]+)/);return ce?ce[1]:null}function Dt(ae,ce){if(ae.indexOf)return ae.indexOf(ce);for(var nt=0,Ht=ae.length;ntce.maxStringLength){var nt=ae.length-ce.maxStringLength,Ht="... "+nt+" more character"+(nt>1?"s":"");return j(_.call(ae,0,ce.maxStringLength),ce)+Ht}var ln=$e[ce.quoteStyle||"single"];ln.lastIndex=0;var wt=R.call(R.call(ae,ln,"\\$1"),/[\x00-\x1f]/g,A);return Ce(wt,"single",ce)}function A(ae){var ce=ae.charCodeAt(0),nt={8:"b",9:"t",10:"n",12:"f",13:"r"}[ce];return nt?"\\"+nt:"\\x"+(ce<16?"0":"")+k.call(ce.toString(16))}function M(ae){return"Object("+ae+")"}function Q(ae){return ae+" { ? }"}function re(ae,ce,nt,Ht){var ln=Ht?rt(nt,Ht):q.call(nt,", ");return ae+" ("+ce+") {"+ln+"}"}function ge(ae){for(var ce=0;ce1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return u?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(e){var n=e.context,r=e.focused,i=e.options,o=e.label,u=o===void 0?"":o,l=e.selectValue,d=e.isDisabled,h=e.isSelected,g=e.isAppleDevice,y=function(E,$){return E&&E.length?"".concat(E.indexOf($)+1," of ").concat(E.length):""};if(n==="value"&&l)return"value ".concat(u," focused, ").concat(y(l,r),".");if(n==="menu"&&g){var w=d?" disabled":"",v="".concat(h?" selected":"").concat(w);return"".concat(u).concat(v,", ").concat(y(i,r),".")}return""},onFilter:function(e){var n=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},une=function(e){var n=e.ariaSelection,r=e.focusedOption,i=e.focusedValue,o=e.focusableOptions,u=e.isFocused,l=e.selectValue,d=e.selectProps,h=e.id,g=e.isAppleDevice,y=d.ariaLiveMessages,w=d.getOptionLabel,v=d.inputValue,C=d.isMulti,E=d.isOptionDisabled,$=d.isSearchable,O=d.menuIsOpen,_=d.options,R=d.screenReaderStatus,k=d.tabSelectsValue,P=d.isLoading,L=d["aria-label"],F=d["aria-live"],q=T.useMemo(function(){return ct(ct({},sne),y||{})},[y]),Y=T.useMemo(function(){var we="";if(n&&q.onChange){var B=n.option,V=n.options,H=n.removedValue,ie=n.removedValues,G=n.value,Q=function(ke){return Array.isArray(ke)?null:ke},he=H||B||Q(G),$e=he?w(he):"",Ce=V||ie||void 0,Be=Ce?Ce.map(w):[],Ie=ct({isDisabled:he&&E(he,l),label:$e,labels:Be},n);we=q.onChange(Ie)}return we},[n,q,E,l,w]),X=T.useMemo(function(){var we="",B=r||i,V=!!(r&&l&&l.includes(r));if(B&&q.onFocus){var H={focused:B,label:w(B),isDisabled:E(B,l),isSelected:V,options:o,context:B===r?"menu":"value",selectValue:l,isAppleDevice:g};we=q.onFocus(H)}return we},[r,i,w,E,q,o,l,g]),ue=T.useMemo(function(){var we="";if(O&&_.length&&!P&&q.onFilter){var B=R({count:o.length});we=q.onFilter({inputValue:v,resultsMessage:B})}return we},[o,v,O,q,_,R,P]),me=(n==null?void 0:n.action)==="initial-input-focus",te=T.useMemo(function(){var we="";if(q.guidance){var B=i?"value":O?"menu":"input";we=q.guidance({"aria-label":L,context:B,isDisabled:r&&E(r,l),isMulti:C,isSearchable:$,tabSelectsValue:k,isInitialFocus:me})}return we},[L,r,i,C,E,$,O,q,l,k,me]),be=mt(T.Fragment,null,mt("span",{id:"aria-selection"},Y),mt("span",{id:"aria-focused"},X),mt("span",{id:"aria-results"},ue),mt("span",{id:"aria-guidance"},te));return mt(T.Fragment,null,mt(v6,{id:h},me&&be),mt(v6,{"aria-live":F,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},u&&!me&&be))},lne=une,Dx=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],cne=new RegExp("["+Dx.map(function(t){return t.letters}).join("")+"]","g"),T7={};for(var f$=0;f$-1}},pne=["innerRef"];function mne(t){var e=t.innerRef,n=Iu(t,pne),r=Bee(n,"onExited","in","enter","exit","appear");return mt("input",Ve({ref:e},r,{css:nT({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var gne=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function yne(t){var e=t.isEnabled,n=t.onBottomArrive,r=t.onBottomLeave,i=t.onTopArrive,o=t.onTopLeave,u=T.useRef(!1),l=T.useRef(!1),d=T.useRef(0),h=T.useRef(null),g=T.useCallback(function($,O){if(h.current!==null){var _=h.current,R=_.scrollTop,k=_.scrollHeight,P=_.clientHeight,L=h.current,F=O>0,q=k-P-R,Y=!1;q>O&&u.current&&(r&&r($),u.current=!1),F&&l.current&&(o&&o($),l.current=!1),F&&O>q?(n&&!u.current&&n($),L.scrollTop=k,Y=!0,u.current=!0):!F&&-O>R&&(i&&!l.current&&i($),L.scrollTop=0,Y=!0,l.current=!0),Y&&gne($)}},[n,r,i,o]),y=T.useCallback(function($){g($,$.deltaY)},[g]),w=T.useCallback(function($){d.current=$.changedTouches[0].clientY},[]),v=T.useCallback(function($){var O=d.current-$.changedTouches[0].clientY;g($,O)},[g]),C=T.useCallback(function($){if($){var O=Lee?{passive:!1}:!1;$.addEventListener("wheel",y,O),$.addEventListener("touchstart",w,O),$.addEventListener("touchmove",v,O)}},[v,w,y]),E=T.useCallback(function($){$&&($.removeEventListener("wheel",y,!1),$.removeEventListener("touchstart",w,!1),$.removeEventListener("touchmove",v,!1))},[v,w,y]);return T.useEffect(function(){if(e){var $=h.current;return C($),function(){E($)}}},[e,C,E]),function($){h.current=$}}var w6=["boxSizing","height","overflow","paddingRight","position"],S6={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function C6(t){t.cancelable&&t.preventDefault()}function $6(t){t.stopPropagation()}function E6(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;t===0?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function x6(){return"ontouchstart"in window||navigator.maxTouchPoints}var O6=!!(typeof window<"u"&&window.document&&window.document.createElement),I0=0,Rg={capture:!1,passive:!1};function vne(t){var e=t.isEnabled,n=t.accountForScrollbars,r=n===void 0?!0:n,i=T.useRef({}),o=T.useRef(null),u=T.useCallback(function(d){if(O6){var h=document.body,g=h&&h.style;if(r&&w6.forEach(function(C){var E=g&&g[C];i.current[C]=E}),r&&I0<1){var y=parseInt(i.current.paddingRight,10)||0,w=document.body?document.body.clientWidth:0,v=window.innerWidth-w+y||0;Object.keys(S6).forEach(function(C){var E=S6[C];g&&(g[C]=E)}),g&&(g.paddingRight="".concat(v,"px"))}h&&x6()&&(h.addEventListener("touchmove",C6,Rg),d&&(d.addEventListener("touchstart",E6,Rg),d.addEventListener("touchmove",$6,Rg))),I0+=1}},[r]),l=T.useCallback(function(d){if(O6){var h=document.body,g=h&&h.style;I0=Math.max(I0-1,0),r&&I0<1&&w6.forEach(function(y){var w=i.current[y];g&&(g[y]=w)}),h&&x6()&&(h.removeEventListener("touchmove",C6,Rg),d&&(d.removeEventListener("touchstart",E6,Rg),d.removeEventListener("touchmove",$6,Rg)))}},[r]);return T.useEffect(function(){if(e){var d=o.current;return u(d),function(){l(d)}}},[e,u,l]),function(d){o.current=d}}var bne=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},wne={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Sne(t){var e=t.children,n=t.lockEnabled,r=t.captureEnabled,i=r===void 0?!0:r,o=t.onBottomArrive,u=t.onBottomLeave,l=t.onTopArrive,d=t.onTopLeave,h=yne({isEnabled:i,onBottomArrive:o,onBottomLeave:u,onTopArrive:l,onTopLeave:d}),g=vne({isEnabled:n}),y=function(v){h(v),g(v)};return mt(T.Fragment,null,n&&mt("div",{onClick:bne,css:wne}),e(y))}var Cne={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},$ne=function(e){var n=e.name,r=e.onFocus;return mt("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Cne,value:"",onChange:function(){}})},Ene=$ne;function sT(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function xne(){return sT(/^iPhone/i)}function A7(){return sT(/^Mac/i)}function One(){return sT(/^iPad/i)||A7()&&navigator.maxTouchPoints>1}function Tne(){return xne()||One()}function _ne(){return A7()||Tne()}var Ane=function(e){return e.label},Rne=function(e){return e.label},Pne=function(e){return e.value},Ine=function(e){return!!e.isDisabled},Nne={clearIndicator:mte,container:ite,control:Cte,dropdownIndicator:hte,group:Ote,groupHeading:_te,indicatorsContainer:ute,indicatorSeparator:yte,input:Ite,loadingIndicator:wte,loadingMessage:Zee,menu:Gee,menuList:Jee,menuPortal:nte,multiValue:Fte,multiValueLabel:Lte,multiValueRemove:Ute,noOptionsMessage:Xee,option:Vte,placeholder:Kte,singleValue:Qte,valueContainer:ote},Mne={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},kne=4,R7=4,Dne=38,Fne=R7*2,Lne={baseUnit:R7,controlHeight:Dne,menuGutter:Fne},p$={borderRadius:kne,colors:Mne,spacing:Lne},Une={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:m6(),captureMenuScroll:!m6(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:hne(),formatGroupLabel:Ane,getOptionLabel:Rne,getOptionValue:Pne,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Ine,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Dee(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function T6(t,e,n,r){var i=N7(t,e,n),o=M7(t,e,n),u=I7(t,e),l=lS(t,e);return{type:"option",data:e,isDisabled:i,isSelected:o,label:u,value:l,index:r}}function Rw(t,e){return t.options.map(function(n,r){if("options"in n){var i=n.options.map(function(u,l){return T6(t,u,e,l)}).filter(function(u){return A6(t,u)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=T6(t,n,e,r);return A6(t,o)?o:void 0}).filter(Uee)}function P7(t){return t.reduce(function(e,n){return n.type==="group"?e.push.apply(e,QO(n.options.map(function(r){return r.data}))):e.push(n.data),e},[])}function _6(t,e){return t.reduce(function(n,r){return r.type==="group"?n.push.apply(n,QO(r.options.map(function(i){return{data:i.data,id:"".concat(e,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(e,"-").concat(r.index)}),n},[])}function jne(t,e){return P7(Rw(t,e))}function A6(t,e){var n=t.inputValue,r=n===void 0?"":n,i=e.data,o=e.isSelected,u=e.label,l=e.value;return(!D7(t)||!o)&&k7(t,{label:u,value:l,data:i},r)}function Bne(t,e){var n=t.focusedValue,r=t.selectValue,i=r.indexOf(n);if(i>-1){var o=e.indexOf(n);if(o>-1)return n;if(i-1?n:e[0]}var m$=function(e,n){var r,i=(r=e.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},I7=function(e,n){return e.getOptionLabel(n)},lS=function(e,n){return e.getOptionValue(n)};function N7(t,e,n){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,n):!1}function M7(t,e,n){if(n.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,n);var r=lS(t,e);return n.some(function(i){return lS(t,i)===r})}function k7(t,e,n){return t.filterOption?t.filterOption(e,n):!0}var D7=function(e){var n=e.hideSelectedOptions,r=e.isMulti;return n===void 0?r:n},Hne=1,F7=(function(t){cZ(n,t);var e=dZ(n);function n(r){var i;if(uZ(this,n),i=e.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=_ne(),i.controlRef=null,i.getControlRef=function(d){i.controlRef=d},i.focusedOptionRef=null,i.getFocusedOptionRef=function(d){i.focusedOptionRef=d},i.menuListRef=null,i.getMenuListRef=function(d){i.menuListRef=d},i.inputRef=null,i.getInputRef=function(d){i.inputRef=d},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(d,h){var g=i.props,y=g.onChange,w=g.name;h.name=w,i.ariaOnChange(d,h),y(d,h)},i.setValue=function(d,h,g){var y=i.props,w=y.closeMenuOnSelect,v=y.isMulti,C=y.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:C}),w&&(i.setState({inputIsHiddenAfterUpdate:!v}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(d,{action:h,option:g})},i.selectOption=function(d){var h=i.props,g=h.blurInputOnSelect,y=h.isMulti,w=h.name,v=i.state.selectValue,C=y&&i.isOptionSelected(d,v),E=i.isOptionDisabled(d,v);if(C){var $=i.getOptionValue(d);i.setValue(v.filter(function(O){return i.getOptionValue(O)!==$}),"deselect-option",d)}else if(!E)y?i.setValue([].concat(QO(v),[d]),"select-option",d):i.setValue(d,"select-option");else{i.ariaOnChange(d,{action:"select-option",option:d,name:w});return}g&&i.blurInput()},i.removeValue=function(d){var h=i.props.isMulti,g=i.state.selectValue,y=i.getOptionValue(d),w=g.filter(function(C){return i.getOptionValue(C)!==y}),v=uw(h,w,w[0]||null);i.onChange(v,{action:"remove-value",removedValue:d}),i.focusInput()},i.clearValue=function(){var d=i.state.selectValue;i.onChange(uw(i.props.isMulti,[],null),{action:"clear",removedValues:d})},i.popValue=function(){var d=i.props.isMulti,h=i.state.selectValue,g=h[h.length-1],y=h.slice(0,h.length-1),w=uw(d,y,y[0]||null);g&&i.onChange(w,{action:"pop-value",removedValue:g})},i.getFocusedOptionId=function(d){return m$(i.state.focusableOptionsWithIds,d)},i.getFocusableOptionsWithIds=function(){return _6(Rw(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var d=arguments.length,h=new Array(d),g=0;gv||w>v}},i.onTouchEnd=function(d){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(d.target)&&i.menuListRef&&!i.menuListRef.contains(d.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(d){i.userIsDragging||i.onControlMouseDown(d)},i.onClearIndicatorTouchEnd=function(d){i.userIsDragging||i.onClearIndicatorMouseDown(d)},i.onDropdownIndicatorTouchEnd=function(d){i.userIsDragging||i.onDropdownIndicatorMouseDown(d)},i.handleInputChange=function(d){var h=i.props.inputValue,g=d.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(g,{action:"input-change",prevInputValue:h}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(d){i.props.onFocus&&i.props.onFocus(d),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(d){var h=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(d),i.onInputChange("",{action:"input-blur",prevInputValue:h}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(d){if(!(i.blockOptionHover||i.state.focusedOption===d)){var h=i.getFocusableOptions(),g=h.indexOf(d);i.setState({focusedOption:d,focusedOptionId:g>-1?i.getFocusedOptionId(d):null})}},i.shouldHideSelectedOptions=function(){return D7(i.props)},i.onValueInputFocus=function(d){d.preventDefault(),d.stopPropagation(),i.focus()},i.onKeyDown=function(d){var h=i.props,g=h.isMulti,y=h.backspaceRemovesValue,w=h.escapeClearsValue,v=h.inputValue,C=h.isClearable,E=h.isDisabled,$=h.menuIsOpen,O=h.onKeyDown,_=h.tabSelectsValue,R=h.openMenuOnFocus,k=i.state,P=k.focusedOption,L=k.focusedValue,F=k.selectValue;if(!E&&!(typeof O=="function"&&(O(d),d.defaultPrevented))){switch(i.blockOptionHover=!0,d.key){case"ArrowLeft":if(!g||v)return;i.focusValue("previous");break;case"ArrowRight":if(!g||v)return;i.focusValue("next");break;case"Delete":case"Backspace":if(v)return;if(L)i.removeValue(L);else{if(!y)return;g?i.popValue():C&&i.clearValue()}break;case"Tab":if(i.isComposing||d.shiftKey||!$||!_||!P||R&&i.isOptionSelected(P,F))return;i.selectOption(P);break;case"Enter":if(d.keyCode===229)break;if($){if(!P||i.isComposing)return;i.selectOption(P);break}return;case"Escape":$?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:v}),i.onMenuClose()):C&&w&&i.clearValue();break;case" ":if(v)return;if(!$){i.openMenu("first");break}if(!P)return;i.selectOption(P);break;case"ArrowUp":$?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":$?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!$)return;i.focusOption("pageup");break;case"PageDown":if(!$)return;i.focusOption("pagedown");break;case"Home":if(!$)return;i.focusOption("first");break;case"End":if(!$)return;i.focusOption("last");break;default:return}d.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++Hne),i.state.selectValue=h6(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),u=i.buildFocusableOptions(),l=u.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=u[l],i.state.focusedOptionId=m$(o,u[l])}return i}return lZ(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&p6(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,u=o.isDisabled,l=o.menuIsOpen,d=this.state.isFocused;(d&&!u&&i.isDisabled||d&&l&&!i.menuIsOpen)&&this.focusInput(),d&&u&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!d&&!u&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(p6(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,u=this.state,l=u.selectValue,d=u.isFocused,h=this.buildFocusableOptions(),g=i==="first"?0:h.length-1;if(!this.props.isMulti){var y=h.indexOf(l[0]);y>-1&&(g=y)}this.scrollToFocusedOptionOnUpdate=!(d&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:h[g],focusedOptionId:this.getFocusedOptionId(h[g])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,u=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var d=u.indexOf(l);l||(d=-1);var h=u.length-1,g=-1;if(u.length){switch(i){case"previous":d===0?g=0:d===-1?g=h:g=d-1;break;case"next":d>-1&&d0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,u=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var d=0,h=l.indexOf(u);u||(h=-1),i==="up"?d=h>0?h-1:l.length-1:i==="down"?d=(h+1)%l.length:i==="pageup"?(d=h-o,d<0&&(d=0)):i==="pagedown"?(d=h+o,d>l.length-1&&(d=l.length-1)):i==="last"&&(d=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[d],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[d])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(p$):ct(ct({},p$),this.props.theme):p$})},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,u=this.getStyles,l=this.getClassNames,d=this.getValue,h=this.selectOption,g=this.setValue,y=this.props,w=y.isMulti,v=y.isRtl,C=y.options,E=this.hasValue();return{clearValue:i,cx:o,getStyles:u,getClassNames:l,getValue:d,hasValue:E,isMulti:w,isRtl:v,options:C,selectOption:h,selectProps:y,setValue:g,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,u=i.isMulti;return o===void 0?u:o}},{key:"isOptionDisabled",value:function(i,o){return N7(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return M7(this.props,i,o)}},{key:"filterOption",value:function(i,o){return k7(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var u=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:u,selectValue:l})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var i=this.props,o=i.isDisabled,u=i.isSearchable,l=i.inputId,d=i.inputValue,h=i.tabIndex,g=i.form,y=i.menuIsOpen,w=i.required,v=this.getComponents(),C=v.Input,E=this.state,$=E.inputIsHidden,O=E.ariaSelection,_=this.commonProps,R=l||this.getElementId("input"),k=ct(ct(ct({"aria-autocomplete":"list","aria-expanded":y,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":w,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},y&&{"aria-controls":this.getElementId("listbox")}),!u&&{"aria-readonly":!0}),this.hasValue()?(O==null?void 0:O.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return u?T.createElement(C,Ve({},_,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:R,innerRef:this.getInputRef,isDisabled:o,isHidden:$,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:h,form:g,type:"text",value:d},k)):T.createElement(mne,Ve({id:R,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:sS,onFocus:this.onInputFocus,disabled:o,tabIndex:h,inputMode:"none",form:g,value:""},k))})},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),u=o.MultiValue,l=o.MultiValueContainer,d=o.MultiValueLabel,h=o.MultiValueRemove,g=o.SingleValue,y=o.Placeholder,w=this.commonProps,v=this.props,C=v.controlShouldRenderValue,E=v.isDisabled,$=v.isMulti,O=v.inputValue,_=v.placeholder,R=this.state,k=R.selectValue,P=R.focusedValue,L=R.isFocused;if(!this.hasValue()||!C)return O?null:T.createElement(y,Ve({},w,{key:"placeholder",isDisabled:E,isFocused:L,innerProps:{id:this.getElementId("placeholder")}}),_);if($)return k.map(function(q,Y){var X=q===P,ue="".concat(i.getOptionLabel(q),"-").concat(i.getOptionValue(q));return T.createElement(u,Ve({},w,{components:{Container:l,Label:d,Remove:h},isFocused:X,isDisabled:E,key:ue,index:Y,removeProps:{onClick:function(){return i.removeValue(q)},onTouchEnd:function(){return i.removeValue(q)},onMouseDown:function(te){te.preventDefault()}},data:q}),i.formatOptionLabel(q,"value"))});if(O)return null;var F=k[0];return T.createElement(g,Ve({},w,{data:F,isDisabled:E}),this.formatOptionLabel(F,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,u=this.commonProps,l=this.props,d=l.isDisabled,h=l.isLoading,g=this.state.isFocused;if(!this.isClearable()||!o||d||!this.hasValue()||h)return null;var y={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return T.createElement(o,Ve({},u,{innerProps:y,isFocused:g}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,u=this.commonProps,l=this.props,d=l.isDisabled,h=l.isLoading,g=this.state.isFocused;if(!o||!h)return null;var y={"aria-hidden":"true"};return T.createElement(o,Ve({},u,{innerProps:y,isDisabled:d,isFocused:g}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,u=i.IndicatorSeparator;if(!o||!u)return null;var l=this.commonProps,d=this.props.isDisabled,h=this.state.isFocused;return T.createElement(u,Ve({},l,{isDisabled:d,isFocused:h}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var u=this.commonProps,l=this.props.isDisabled,d=this.state.isFocused,h={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return T.createElement(o,Ve({},u,{innerProps:h,isDisabled:l,isFocused:d}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),u=o.Group,l=o.GroupHeading,d=o.Menu,h=o.MenuList,g=o.MenuPortal,y=o.LoadingMessage,w=o.NoOptionsMessage,v=o.Option,C=this.commonProps,E=this.state.focusedOption,$=this.props,O=$.captureMenuScroll,_=$.inputValue,R=$.isLoading,k=$.loadingMessage,P=$.minMenuHeight,L=$.maxMenuHeight,F=$.menuIsOpen,q=$.menuPlacement,Y=$.menuPosition,X=$.menuPortalTarget,ue=$.menuShouldBlockScroll,me=$.menuShouldScrollIntoView,te=$.noOptionsMessage,be=$.onMenuScrollToTop,we=$.onMenuScrollToBottom;if(!F)return null;var B=function($e,Ce){var Be=$e.type,Ie=$e.data,tt=$e.isDisabled,ke=$e.isSelected,Ke=$e.label,He=$e.value,ut=E===Ie,pt=tt?void 0:function(){return i.onOptionHover(Ie)},bt=tt?void 0:function(){return i.selectOption(Ie)},gt="".concat(i.getElementId("option"),"-").concat(Ce),Ut={id:gt,onClick:bt,onMouseMove:pt,onMouseOver:pt,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:ke};return T.createElement(v,Ve({},C,{innerProps:Ut,data:Ie,isDisabled:tt,isSelected:ke,key:gt,label:Ke,type:Be,value:He,isFocused:ut,innerRef:ut?i.getFocusedOptionRef:void 0}),i.formatOptionLabel($e.data,"menu"))},V;if(this.hasOptions())V=this.getCategorizedOptions().map(function(he){if(he.type==="group"){var $e=he.data,Ce=he.options,Be=he.index,Ie="".concat(i.getElementId("group"),"-").concat(Be),tt="".concat(Ie,"-heading");return T.createElement(u,Ve({},C,{key:Ie,data:$e,options:Ce,Heading:l,headingProps:{id:tt,data:he.data},label:i.formatGroupLabel(he.data)}),he.options.map(function(ke){return B(ke,"".concat(Be,"-").concat(ke.index))}))}else if(he.type==="option")return B(he,"".concat(he.index))});else if(R){var H=k({inputValue:_});if(H===null)return null;V=T.createElement(y,C,H)}else{var ie=te({inputValue:_});if(ie===null)return null;V=T.createElement(w,C,ie)}var G={minMenuHeight:P,maxMenuHeight:L,menuPlacement:q,menuPosition:Y,menuShouldScrollIntoView:me},Q=T.createElement(Wee,Ve({},C,G),function(he){var $e=he.ref,Ce=he.placerProps,Be=Ce.placement,Ie=Ce.maxHeight;return T.createElement(d,Ve({},C,G,{innerRef:$e,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:R,placement:Be}),T.createElement(Sne,{captureEnabled:O,onTopArrive:be,onBottomArrive:we,lockEnabled:ue},function(tt){return T.createElement(h,Ve({},C,{innerRef:function(Ke){i.getMenuListRef(Ke),tt(Ke)},innerProps:{role:"listbox","aria-multiselectable":C.isMulti,id:i.getElementId("listbox")},isLoading:R,maxHeight:Ie,focusedOption:E}),V)}))});return X||Y==="fixed"?T.createElement(g,Ve({},C,{appendTo:X,controlElement:this.controlRef,menuPlacement:q,menuPosition:Y}),Q):Q}},{key:"renderFormField",value:function(){var i=this,o=this.props,u=o.delimiter,l=o.isDisabled,d=o.isMulti,h=o.name,g=o.required,y=this.state.selectValue;if(g&&!this.hasValue()&&!l)return T.createElement(Ene,{name:h,onFocus:this.onValueInputFocus});if(!(!h||l))if(d)if(u){var w=y.map(function(E){return i.getOptionValue(E)}).join(u);return T.createElement("input",{name:h,type:"hidden",value:w})}else{var v=y.length>0?y.map(function(E,$){return T.createElement("input",{key:"i-".concat($),name:h,type:"hidden",value:i.getOptionValue(E)})}):T.createElement("input",{name:h,type:"hidden",value:""});return T.createElement("div",null,v)}else{var C=y[0]?this.getOptionValue(y[0]):"";return T.createElement("input",{name:h,type:"hidden",value:C})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,u=o.ariaSelection,l=o.focusedOption,d=o.focusedValue,h=o.isFocused,g=o.selectValue,y=this.getFocusableOptions();return T.createElement(lne,Ve({},i,{id:this.getElementId("live-region"),ariaSelection:u,focusedOption:l,focusedValue:d,isFocused:h,selectValue:g,focusableOptions:y,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,u=i.IndicatorsContainer,l=i.SelectContainer,d=i.ValueContainer,h=this.props,g=h.className,y=h.id,w=h.isDisabled,v=h.menuIsOpen,C=this.state.isFocused,E=this.commonProps=this.getCommonProps();return T.createElement(l,Ve({},E,{className:g,innerProps:{id:y,onKeyDown:this.onKeyDown},isDisabled:w,isFocused:C}),this.renderLiveRegion(),T.createElement(o,Ve({},E,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:w,isFocused:C,menuIsOpen:v}),T.createElement(d,Ve({},E,{isDisabled:w}),this.renderPlaceholderOrValue(),this.renderInput()),T.createElement(u,Ve({},E,{isDisabled:w}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var u=o.prevProps,l=o.clearFocusValueOnUpdate,d=o.inputIsHiddenAfterUpdate,h=o.ariaSelection,g=o.isFocused,y=o.prevWasFocused,w=o.instancePrefix,v=i.options,C=i.value,E=i.menuIsOpen,$=i.inputValue,O=i.isMulti,_=h6(C),R={};if(u&&(C!==u.value||v!==u.options||E!==u.menuIsOpen||$!==u.inputValue)){var k=E?jne(i,_):[],P=E?_6(Rw(i,_),"".concat(w,"-option")):[],L=l?Bne(o,_):null,F=qne(o,k),q=m$(P,F);R={selectValue:_,focusedOption:F,focusedOptionId:q,focusableOptionsWithIds:P,focusedValue:L,clearFocusValueOnUpdate:!1}}var Y=d!=null&&i!==u?{inputIsHidden:d,inputIsHiddenAfterUpdate:void 0}:{},X=h,ue=g&&y;return g&&!ue&&(X={value:uw(O,_,_[0]||null),options:_,action:"initial-input-focus"},ue=!y),(h==null?void 0:h.action)==="initial-input-focus"&&(X=null),ct(ct(ct({},R),Y),{},{prevProps:i,ariaSelection:X,prevWasFocused:ue})}}]),n})(T.Component);F7.defaultProps=Une;var zne=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Vne(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,i=r===void 0?!1:r,o=t.defaultValue,u=o===void 0?null:o,l=t.inputValue,d=t.menuIsOpen,h=t.onChange,g=t.onInputChange,y=t.onMenuClose,w=t.onMenuOpen,v=t.value,C=Iu(t,zne),E=T.useState(l!==void 0?l:n),$=Jr(E,2),O=$[0],_=$[1],R=T.useState(d!==void 0?d:i),k=Jr(R,2),P=k[0],L=k[1],F=T.useState(v!==void 0?v:u),q=Jr(F,2),Y=q[0],X=q[1],ue=T.useCallback(function(H,ie){typeof h=="function"&&h(H,ie),X(H)},[h]),me=T.useCallback(function(H,ie){var G;typeof g=="function"&&(G=g(H,ie)),_(G!==void 0?G:H)},[g]),te=T.useCallback(function(){typeof w=="function"&&w(),L(!0)},[w]),be=T.useCallback(function(){typeof y=="function"&&y(),L(!1)},[y]),we=l!==void 0?l:O,B=d!==void 0?d:P,V=v!==void 0?v:Y;return ct(ct({},C),{},{inputValue:we,menuIsOpen:B,onChange:ue,onInputChange:me,onMenuClose:be,onMenuOpen:te,value:V})}var Gne=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function Wne(t){var e=t.defaultOptions,n=e===void 0?!1:e,r=t.cacheOptions,i=r===void 0?!1:r,o=t.loadOptions;t.options;var u=t.isLoading,l=u===void 0?!1:u,d=t.onInputChange,h=t.filterOption,g=h===void 0?null:h,y=Iu(t,Gne),w=y.inputValue,v=T.useRef(void 0),C=T.useRef(!1),E=T.useState(Array.isArray(n)?n:void 0),$=Jr(E,2),O=$[0],_=$[1],R=T.useState(typeof w<"u"?w:""),k=Jr(R,2),P=k[0],L=k[1],F=T.useState(n===!0),q=Jr(F,2),Y=q[0],X=q[1],ue=T.useState(void 0),me=Jr(ue,2),te=me[0],be=me[1],we=T.useState([]),B=Jr(we,2),V=B[0],H=B[1],ie=T.useState(!1),G=Jr(ie,2),Q=G[0],he=G[1],$e=T.useState({}),Ce=Jr($e,2),Be=Ce[0],Ie=Ce[1],tt=T.useState(void 0),ke=Jr(tt,2),Ke=ke[0],He=ke[1],ut=T.useState(void 0),pt=Jr(ut,2),bt=pt[0],gt=pt[1];i!==bt&&(Ie({}),gt(i)),n!==Ke&&(_(Array.isArray(n)?n:void 0),He(n)),T.useEffect(function(){return C.current=!0,function(){C.current=!1}},[]);var Ut=T.useCallback(function(en,xn){if(!o)return xn();var Dt=o(en,xn);Dt&&typeof Dt.then=="function"&&Dt.then(xn,function(){return xn()})},[o]);T.useEffect(function(){n===!0&&Ut(P,function(en){C.current&&(_(en||[]),X(!!v.current))})},[]);var Gt=T.useCallback(function(en,xn){var Dt=Pee(en,xn,d);if(!Dt){v.current=void 0,L(""),be(""),H([]),X(!1),he(!1);return}if(i&&Be[Dt])L(Dt),be(Dt),H(Be[Dt]),X(!1),he(!1);else{var Pt=v.current={};L(Dt),X(!0),he(!te),Ut(Dt,function(pe){C&&Pt===v.current&&(v.current=void 0,X(!1),be(Dt),H(pe||[]),he(!1),Ie(pe?ct(ct({},Be),{},Lg({},Dt,pe)):Be))})}},[i,Ut,te,Be,d]),Tt=Q?[]:P&&te?V:O||[];return ct(ct({},y),{},{options:Tt,isLoading:Y||l,onInputChange:Gt,filterOption:g})}var Kne=T.forwardRef(function(t,e){var n=Wne(t),r=Vne(n);return T.createElement(F7,Ve({ref:e},r))}),Yne=Kne;function Jne(t,e){return e?e(t):{name:{operation:"contains",value:t}}}function Fx(t){var w,v,C;const e=yn(),n=kf();let[r,i]=T.useState("");if(!t.querySource)return N.jsx("div",{children:"No query source to render"});const{query:o,keyExtractor:u}=t.querySource({queryClient:n,query:{itemsPerPage:20,jsonQuery:Jne(r,t.jsonQuery),withPreloads:t.withPreloads},queryOptions:{refetchOnWindowFocus:!1}}),l=t.keyExtractor||u||(E=>JSON.stringify(E)),d=(v=(w=o==null?void 0:o.data)==null?void 0:w.data)==null?void 0:v.items,h=E=>{var $;if(($=t==null?void 0:t.formEffect)!=null&&$.form){const{formEffect:O}=t,_={...O.form.values};if(O.beforeSet&&(E=O.beforeSet(E)),Sr.set(_,O.field,E),Sr.isObject(E)&&E.uniqueId&&O.skipFirebackMetaData!==!0&&Sr.set(_,O.field+"Id",E.uniqueId),Sr.isArray(E)&&O.skipFirebackMetaData!==!0){const R=O.field+"ListId";Sr.set(_,R,(E||[]).map(k=>k.uniqueId))}O==null||O.form.setValues(_)}t.onChange&&typeof t.onChange=="function"&&t.onChange(E)};let g=t.value;if(g===void 0&&((C=t.formEffect)!=null&&C.form)){const E=Sr.get(t.formEffect.form.values,t.formEffect.field);E!==void 0&&(g=E)}typeof g!="object"&&l&&g!==void 0&&(g=d.find(E=>l(E)===g));const y=E=>new Promise($=>{setTimeout(()=>{$(d)},100)});return N.jsxs(kS,{...t,children:[t.children,t.convertToNative?N.jsxs("select",{value:g,multiple:t.multiple,onChange:E=>{const $=d==null?void 0:d.find(O=>O.uniqueId===E.target.value);h($)},className:Ho("form-select",t.errorMessage&&"is-invalid",t.validMessage&&"is-valid"),disabled:t.disabled,"aria-label":"Default select example",children:[N.jsx("option",{value:"",children:e.selectPlaceholder},void 0),d==null?void 0:d.filter(Boolean).map(E=>{const $=l(E);return N.jsx("option",{value:$,children:t.fnLabelFormat(E)},$)})]}):N.jsx(N.Fragment,{children:N.jsx(Yne,{value:g,onChange:E=>{h(E)},isMulti:t.multiple,classNames:{container(E){return Ho(t.errorMessage&&" form-control form-control-no-padding is-invalid",t.validMessage&&"is-valid")},control(E){return Ho("form-control form-control-no-padding")},menu(E){return"react-select-menu-area"}},isSearchable:!0,defaultOptions:d,placeholder:e.searchplaceholder,noOptionsMessage:()=>e.noOptions,getOptionValue:l,loadOptions:y,formatOptionLabel:t.fnLabelFormat,onInputChange:i})})]})}var g$,R6;function my(){return R6||(R6=1,g$=TypeError),g$}const Qne={},Xne=Object.freeze(Object.defineProperty({__proto__:null,default:Qne},Symbol.toStringTag,{value:"Module"})),Zne=YD(Xne);var y$,P6;function WS(){if(P6)return y$;P6=1;var t=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=t&&e&&typeof e.get=="function"?e.get:null,r=t&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&o&&typeof o.get=="function"?o.get:null,l=i&&Set.prototype.forEach,d=typeof WeakMap=="function"&&WeakMap.prototype,h=d?WeakMap.prototype.has:null,g=typeof WeakSet=="function"&&WeakSet.prototype,y=g?WeakSet.prototype.has:null,w=typeof WeakRef=="function"&&WeakRef.prototype,v=w?WeakRef.prototype.deref:null,C=Boolean.prototype.valueOf,E=Object.prototype.toString,$=Function.prototype.toString,O=String.prototype.match,_=String.prototype.slice,R=String.prototype.replace,k=String.prototype.toUpperCase,P=String.prototype.toLowerCase,L=RegExp.prototype.test,F=Array.prototype.concat,q=Array.prototype.join,Y=Array.prototype.slice,X=Math.floor,ue=typeof BigInt=="function"?BigInt.prototype.valueOf:null,me=Object.getOwnPropertySymbols,te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,be=typeof Symbol=="function"&&typeof Symbol.iterator=="object",we=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===be||!0)?Symbol.toStringTag:null,B=Object.prototype.propertyIsEnumerable,V=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ae){return ae.__proto__}:null);function H(ae,ce){if(ae===1/0||ae===-1/0||ae!==ae||ae&&ae>-1e3&&ae<1e3||L.call(/e/,ce))return ce;var nt=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ae=="number"){var Ht=ae<0?-X(-ae):X(ae);if(Ht!==ae){var ln=String(Ht),wt=_.call(ce,ln.length+1);return R.call(ln,nt,"$&_")+"."+R.call(R.call(wt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return R.call(ce,nt,"$&_")}var ie=Zne,G=ie.custom,Q=gt(G)?G:null,he={__proto__:null,double:'"',single:"'"},$e={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};y$=function ae(ce,nt,Ht,ln){var wt=nt||{};if(Tt(wt,"quoteStyle")&&!Tt(he,wt.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Tt(wt,"maxStringLength")&&(typeof wt.maxStringLength=="number"?wt.maxStringLength<0&&wt.maxStringLength!==1/0:wt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Ur=Tt(wt,"customInspect")?wt.customInspect:!0;if(typeof Ur!="boolean"&&Ur!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Tt(wt,"indent")&&wt.indent!==null&&wt.indent!==" "&&!(parseInt(wt.indent,10)===wt.indent&&wt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Tt(wt,"numericSeparator")&&typeof wt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var tn=wt.numericSeparator;if(typeof ce>"u")return"undefined";if(ce===null)return"null";if(typeof ce=="boolean")return ce?"true":"false";if(typeof ce=="string")return j(ce,wt);if(typeof ce=="number"){if(ce===0)return 1/0/ce>0?"0":"-0";var tr=String(ce);return tn?H(ce,tr):tr}if(typeof ce=="bigint"){var On=String(ce)+"n";return tn?H(ce,On):On}var Li=typeof wt.depth>"u"?5:wt.depth;if(typeof Ht>"u"&&(Ht=0),Ht>=Li&&Li>0&&typeof ce=="object")return tt(ce)?"[Array]":"[Object]";var ca=Ee(wt,Ht);if(typeof ln>"u")ln=[];else if(Dt(ln,ce)>=0)return"[Circular]";function Ar(jr,Aa,Oi){if(Aa&&(ln=Y.call(ln),ln.push(Aa)),Oi){var ji={depth:wt.depth};return Tt(wt,"quoteStyle")&&(ji.quoteStyle=wt.quoteStyle),ae(jr,ji,Ht+1,ln)}return ae(jr,wt,Ht+1,ln)}if(typeof ce=="function"&&!Ke(ce)){var Fs=xn(ce),uo=Wt(ce,Ar);return"[Function"+(Fs?": "+Fs:" (anonymous)")+"]"+(uo.length>0?" { "+q.call(uo,", ")+" }":"")}if(gt(ce)){var Ls=be?R.call(String(ce),/^(Symbol\(.*\))_[^)]*$/,"$1"):te.call(ce);return typeof ce=="object"&&!be?M(Ls):Ls}if(ht(ce)){for(var Ei="<"+P.call(String(ce.nodeName)),Xr=ce.attributes||[],lo=0;lo",Ei}if(tt(ce)){if(ce.length===0)return"[]";var Ui=Wt(ce,Ar);return ca&&!ge(Ui)?"["+rt(Ui,ca)+"]":"[ "+q.call(Ui,", ")+" ]"}if(He(ce)){var Ko=Wt(ce,Ar);return!("cause"in Error.prototype)&&"cause"in ce&&!B.call(ce,"cause")?"{ ["+String(ce)+"] "+q.call(F.call("[cause]: "+Ar(ce.cause),Ko),", ")+" }":Ko.length===0?"["+String(ce)+"]":"{ ["+String(ce)+"] "+q.call(Ko,", ")+" }"}if(typeof ce=="object"&&Ur){if(Q&&typeof ce[Q]=="function"&&ie)return ie(ce,{depth:Li-Ht});if(Ur!=="symbol"&&typeof ce.inspect=="function")return ce.inspect()}if(Pt(ce)){var In=[];return r&&r.call(ce,function(jr,Aa){In.push(Ar(Aa,ce,!0)+" => "+Ar(jr,ce))}),re("Map",n.call(ce),In,ca)}if(Ge(ce)){var Mn=[];return l&&l.call(ce,function(jr){Mn.push(Ar(jr,ce))}),re("Set",u.call(ce),Mn,ca)}if(pe(ce))return J("WeakMap");if(Je(ce))return J("WeakSet");if(ze(ce))return J("WeakRef");if(pt(ce))return M(Ar(Number(ce)));if(Ut(ce))return M(Ar(ue.call(ce)));if(bt(ce))return M(C.call(ce));if(ut(ce))return M(Ar(String(ce)));if(typeof window<"u"&&ce===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ce===globalThis||typeof Ef<"u"&&ce===Ef)return"{ [object globalThis] }";if(!ke(ce)&&!Ke(ce)){var An=Wt(ce,Ar),Ze=V?V(ce)===Object.prototype:ce instanceof Object||ce.constructor===Object,xi=ce instanceof Object?"":"null prototype",Us=!Ze&&we&&Object(ce)===ce&&we in ce?_.call(en(ce),8,-1):xi?"Object":"",Yo=Ze||typeof ce.constructor!="function"?"":ce.constructor.name?ce.constructor.name+" ":"",co=Yo+(Us||xi?"["+q.call(F.call([],Us||[],xi||[]),": ")+"] ":"");return An.length===0?co+"{}":ca?co+"{"+rt(An,ca)+"}":co+"{ "+q.call(An,", ")+" }"}return String(ce)};function Ce(ae,ce,nt){var Ht=nt.quoteStyle||ce,ln=he[Ht];return ln+ae+ln}function Be(ae){return R.call(String(ae),/"/g,""")}function Ie(ae){return!we||!(typeof ae=="object"&&(we in ae||typeof ae[we]<"u"))}function tt(ae){return en(ae)==="[object Array]"&&Ie(ae)}function ke(ae){return en(ae)==="[object Date]"&&Ie(ae)}function Ke(ae){return en(ae)==="[object RegExp]"&&Ie(ae)}function He(ae){return en(ae)==="[object Error]"&&Ie(ae)}function ut(ae){return en(ae)==="[object String]"&&Ie(ae)}function pt(ae){return en(ae)==="[object Number]"&&Ie(ae)}function bt(ae){return en(ae)==="[object Boolean]"&&Ie(ae)}function gt(ae){if(be)return ae&&typeof ae=="object"&&ae instanceof Symbol;if(typeof ae=="symbol")return!0;if(!ae||typeof ae!="object"||!te)return!1;try{return te.call(ae),!0}catch{}return!1}function Ut(ae){if(!ae||typeof ae!="object"||!ue)return!1;try{return ue.call(ae),!0}catch{}return!1}var Gt=Object.prototype.hasOwnProperty||function(ae){return ae in this};function Tt(ae,ce){return Gt.call(ae,ce)}function en(ae){return E.call(ae)}function xn(ae){if(ae.name)return ae.name;var ce=O.call($.call(ae),/^function\s*([\w$]+)/);return ce?ce[1]:null}function Dt(ae,ce){if(ae.indexOf)return ae.indexOf(ce);for(var nt=0,Ht=ae.length;ntce.maxStringLength){var nt=ae.length-ce.maxStringLength,Ht="... "+nt+" more character"+(nt>1?"s":"");return j(_.call(ae,0,ce.maxStringLength),ce)+Ht}var ln=$e[ce.quoteStyle||"single"];ln.lastIndex=0;var wt=R.call(R.call(ae,ln,"\\$1"),/[\x00-\x1f]/g,A);return Ce(wt,"single",ce)}function A(ae){var ce=ae.charCodeAt(0),nt={8:"b",9:"t",10:"n",12:"f",13:"r"}[ce];return nt?"\\"+nt:"\\x"+(ce<16?"0":"")+k.call(ce.toString(16))}function M(ae){return"Object("+ae+")"}function J(ae){return ae+" { ? }"}function re(ae,ce,nt,Ht){var ln=Ht?rt(nt,Ht):q.call(nt,", ");return ae+" ("+ce+") {"+ln+"}"}function ge(ae){for(var ce=0;ce=0)return!1;return!0}function Ee(ae,ce){var nt;if(ae.indent===" ")nt=" ";else if(typeof ae.indent=="number"&&ae.indent>0)nt=q.call(Array(ae.indent+1)," ");else return null;return{base:nt,prev:q.call(Array(ce+1),nt)}}function rt(ae,ce){if(ae.length===0)return"";var nt=` `+ce.prev+ce.base;return nt+q.call(ae,","+nt)+` -`+ce.prev}function Wt(ae,ce){var nt=tt(ae),Ht=[];if(nt){Ht.length=ae.length;for(var ln=0;ln"u"||!F?t:F(Uint8Array),be={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":L&&F?F([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":me,"%AsyncGenerator%":me,"%AsyncGeneratorFunction%":me,"%AsyncIteratorPrototype%":me,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":$,"%GeneratorFunction%":me,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":L&&F?F(F([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!L||!F?t:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!L||!F?t:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":L&&F?F(""[Symbol.iterator]()):t,"%Symbol%":L?Symbol:t,"%SyntaxError%":u,"%ThrowTypeError%":P,"%TypedArray%":te,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":ue,"%Function.prototype.apply%":X,"%Object.defineProperty%":R,"%Object.getPrototypeOf%":q,"%Math.abs%":h,"%Math.floor%":g,"%Math.max%":y,"%Math.min%":w,"%Math.pow%":v,"%Math.round%":C,"%Math.sign%":E,"%Reflect.getPrototypeOf%":Y};if(F)try{null.error}catch(Ke){var we=F(F(Ke));be["%Error.prototype%"]=we}var B=function Ke(He){var ut;if(He==="%AsyncFunction%")ut=O("async function () {}");else if(He==="%GeneratorFunction%")ut=O("function* () {}");else if(He==="%AsyncGeneratorFunction%")ut=O("async function* () {}");else if(He==="%AsyncGenerator%"){var pt=Ke("%AsyncGeneratorFunction%");pt&&(ut=pt.prototype)}else if(He==="%AsyncIteratorPrototype%"){var bt=Ke("%AsyncGenerator%");bt&&F&&(ut=F(bt.prototype))}return be[He]=ut,ut},V={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},H=FS(),ie=sre(),G=H.call(ue,Array.prototype.concat),J=H.call(X,Array.prototype.splice),he=H.call(ue,String.prototype.replace),$e=H.call(ue,String.prototype.slice),Ce=H.call(ue,RegExp.prototype.exec),Be=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ie=/\\(\\)?/g,tt=function(He){var ut=$e(He,0,1),pt=$e(He,-1);if(ut==="%"&&pt!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(pt==="%"&&ut!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var bt=[];return he(He,Be,function(gt,Ut,Gt,Tt){bt[bt.length]=Gt?he(Tt,Ie,"$1"):Ut||gt}),bt},ke=function(He,ut){var pt=He,bt;if(ie(V,pt)&&(bt=V[pt],pt="%"+bt[0]+"%"),ie(be,pt)){var gt=be[pt];if(gt===me&&(gt=B(pt)),typeof gt>"u"&&!ut)throw new l("intrinsic "+He+" exists, but is not available. Please file an issue!");return{alias:bt,name:pt,value:gt}}throw new u("intrinsic "+He+" does not exist!")};return L$=function(He,ut){if(typeof He!="string"||He.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ut!="boolean")throw new l('"allowMissing" argument must be a boolean');if(Ce(/^%?[^%]*%?$/,He)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var pt=tt(He),bt=pt.length>0?pt[0]:"",gt=ke("%"+bt+"%",ut),Ut=gt.name,Gt=gt.value,Tt=!1,en=gt.alias;en&&(bt=en[0],J(pt,G([0,1],en)));for(var xn=1,Dt=!0;xn=pt.length){var Ge=_(Gt,Pt);Dt=!!Ge,Dt&&"get"in Ge&&!("originalValue"in Ge.get)?Gt=Ge.get:Gt=Gt[Pt]}else Dt=ie(Gt,Pt),Gt=Gt[Pt];Dt&&!Tt&&(be[Ut]=Gt)}}return Gt},L$}var U$,Z6;function P7(){if(Z6)return U$;Z6=1;var t=QO(),e=R7(),n=e([t("%String.prototype.indexOf%")]);return U$=function(i,o){var u=t(i,!!o);return typeof u=="function"&&n(i,".prototype.")>-1?e([u]):u},U$}var j$,eP;function I7(){if(eP)return j$;eP=1;var t=QO(),e=P7(),n=DS(),r=oy(),i=t("%Map%",!0),o=e("Map.prototype.get",!0),u=e("Map.prototype.set",!0),l=e("Map.prototype.has",!0),d=e("Map.prototype.delete",!0),h=e("Map.prototype.size",!0);return j$=!!i&&function(){var y,w={assert:function(v){if(!w.has(v))throw new r("Side channel does not contain "+n(v))},delete:function(v){if(y){var C=d(y,v);return h(y)===0&&(y=void 0),C}return!1},get:function(v){if(y)return o(y,v)},has:function(v){return y?l(y,v):!1},set:function(v,C){y||(y=new i),u(y,v,C)}};return w},j$}var B$,tP;function ure(){if(tP)return B$;tP=1;var t=QO(),e=P7(),n=DS(),r=I7(),i=oy(),o=t("%WeakMap%",!0),u=e("WeakMap.prototype.get",!0),l=e("WeakMap.prototype.set",!0),d=e("WeakMap.prototype.has",!0),h=e("WeakMap.prototype.delete",!0);return B$=o?function(){var y,w,v={assert:function(C){if(!v.has(C))throw new i("Side channel does not contain "+n(C))},delete:function(C){if(o&&C&&(typeof C=="object"||typeof C=="function")){if(y)return h(y,C)}else if(r&&w)return w.delete(C);return!1},get:function(C){return o&&C&&(typeof C=="object"||typeof C=="function")&&y?u(y,C):w&&w.get(C)},has:function(C){return o&&C&&(typeof C=="object"||typeof C=="function")&&y?d(y,C):!!w&&w.has(C)},set:function(C,E){o&&C&&(typeof C=="object"||typeof C=="function")?(y||(y=new o),l(y,C,E)):r&&(w||(w=r()),w.set(C,E))}};return v}:r,B$}var q$,nP;function lre(){if(nP)return q$;nP=1;var t=oy(),e=DS(),n=Fne(),r=I7(),i=ure(),o=i||r||n;return q$=function(){var l,d={assert:function(h){if(!d.has(h))throw new t("Side channel does not contain "+e(h))},delete:function(h){return!!l&&l.delete(h)},get:function(h){return l&&l.get(h)},has:function(h){return!!l&&l.has(h)},set:function(h,g){l||(l=o()),l.set(h,g)}};return d},q$}var H$,rP;function JO(){if(rP)return H$;rP=1;var t=String.prototype.replace,e=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return H$={default:n.RFC3986,formatters:{RFC1738:function(r){return t.call(r,e,"+")},RFC3986:function(r){return String(r)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},H$}var z$,iP;function N7(){if(iP)return z$;iP=1;var t=JO(),e=Object.prototype.hasOwnProperty,n=Array.isArray,r=(function(){for(var $=[],O=0;O<256;++O)$.push("%"+((O<16?"0":"")+O.toString(16)).toUpperCase());return $})(),i=function(O){for(;O.length>1;){var _=O.pop(),R=_.obj[_.prop];if(n(R)){for(var k=[],P=0;P=h?L.slice(q,q+h):L,X=[],ue=0;ue=48&&me<=57||me>=65&&me<=90||me>=97&&me<=122||P===t.RFC1738&&(me===40||me===41)){X[X.length]=Y.charAt(ue);continue}if(me<128){X[X.length]=r[me];continue}if(me<2048){X[X.length]=r[192|me>>6]+r[128|me&63];continue}if(me<55296||me>=57344){X[X.length]=r[224|me>>12]+r[128|me>>6&63]+r[128|me&63];continue}ue+=1,me=65536+((me&1023)<<10|Y.charCodeAt(ue)&1023),X[X.length]=r[240|me>>18]+r[128|me>>12&63]+r[128|me>>6&63]+r[128|me&63]}F+=X.join("")}return F},y=function(O){for(var _=[{obj:{o:O},prop:"o"}],R=[],k=0;k<_.length;++k)for(var P=_[k],L=P.obj[P.prop],F=Object.keys(L),q=0;q"u"&&(G=0)}if(typeof Y=="function"?H=Y(O,H):H instanceof Date?H=me(H):_==="comma"&&o(H)&&(H=e.maybeMap(H,function(Ut){return Ut instanceof Date?me(Ut):Ut})),H===null){if(P)return q&&!we?q(O,g.encoder,B,"key",te):O;H=""}if(y(H)||e.isBuffer(H)){if(q){var $e=we?O:q(O,g.encoder,B,"key",te);return[be($e)+"="+be(q(H,g.encoder,B,"value",te))]}return[be(O)+"="+be(String(H))]}var Ce=[];if(typeof H>"u")return Ce;var Be;if(_==="comma"&&o(H))we&&q&&(H=e.maybeMap(H,q)),Be=[{value:H.length>0?H.join(",")||null:void 0}];else if(o(Y))Be=Y;else{var Ie=Object.keys(H);Be=X?Ie.sort(X):Ie}var tt=F?String(O).replace(/\./g,"%2E"):String(O),ke=R&&o(H)&&H.length===1?tt+"[]":tt;if(k&&o(H)&&H.length===0)return ke+"[]";for(var Ke=0;Ke"u"?$.encodeDotInKeys===!0?!0:g.allowDots:!!$.allowDots;return{addQueryPrefix:typeof $.addQueryPrefix=="boolean"?$.addQueryPrefix:g.addQueryPrefix,allowDots:L,allowEmptyArrays:typeof $.allowEmptyArrays=="boolean"?!!$.allowEmptyArrays:g.allowEmptyArrays,arrayFormat:P,charset:O,charsetSentinel:typeof $.charsetSentinel=="boolean"?$.charsetSentinel:g.charsetSentinel,commaRoundTrip:!!$.commaRoundTrip,delimiter:typeof $.delimiter>"u"?g.delimiter:$.delimiter,encode:typeof $.encode=="boolean"?$.encode:g.encode,encodeDotInKeys:typeof $.encodeDotInKeys=="boolean"?$.encodeDotInKeys:g.encodeDotInKeys,encoder:typeof $.encoder=="function"?$.encoder:g.encoder,encodeValuesOnly:typeof $.encodeValuesOnly=="boolean"?$.encodeValuesOnly:g.encodeValuesOnly,filter:k,format:_,formatter:R,serializeDate:typeof $.serializeDate=="function"?$.serializeDate:g.serializeDate,skipNulls:typeof $.skipNulls=="boolean"?$.skipNulls:g.skipNulls,sort:typeof $.sort=="function"?$.sort:null,strictNullHandling:typeof $.strictNullHandling=="boolean"?$.strictNullHandling:g.strictNullHandling}};return V$=function(E,$){var O=E,_=C($),R,k;typeof _.filter=="function"?(k=_.filter,O=k("",O)):o(_.filter)&&(k=_.filter,R=k);var P=[];if(typeof O!="object"||O===null)return"";var L=i[_.arrayFormat],F=L==="comma"&&_.commaRoundTrip;R||(R=Object.keys(O)),_.sort&&R.sort(_.sort);for(var q=t(),Y=0;Y0?te+me:""},V$}var G$,oP;function fre(){if(oP)return G$;oP=1;var t=N7(),e=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(w){return w.replace(/&#(\d+);/g,function(v,C){return String.fromCharCode(parseInt(C,10))})},o=function(w,v,C){if(w&&typeof w=="string"&&v.comma&&w.indexOf(",")>-1)return w.split(",");if(v.throwOnLimitExceeded&&C>=v.arrayLimit)throw new RangeError("Array limit exceeded. Only "+v.arrayLimit+" element"+(v.arrayLimit===1?"":"s")+" allowed in an array.");return w},u="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",d=function(v,C){var E={__proto__:null},$=C.ignoreQueryPrefix?v.replace(/^\?/,""):v;$=$.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var O=C.parameterLimit===1/0?void 0:C.parameterLimit,_=$.split(C.delimiter,C.throwOnLimitExceeded?O+1:O);if(C.throwOnLimitExceeded&&_.length>O)throw new RangeError("Parameter limit exceeded. Only "+O+" parameter"+(O===1?"":"s")+" allowed.");var R=-1,k,P=C.charset;if(C.charsetSentinel)for(k=0;k<_.length;++k)_[k].indexOf("utf8=")===0&&(_[k]===l?P="utf-8":_[k]===u&&(P="iso-8859-1"),R=k,k=_.length);for(k=0;k<_.length;++k)if(k!==R){var L=_[k],F=L.indexOf("]="),q=F===-1?L.indexOf("="):F+1,Y,X;q===-1?(Y=C.decoder(L,r.decoder,P,"key"),X=C.strictNullHandling?null:""):(Y=C.decoder(L.slice(0,q),r.decoder,P,"key"),X=t.maybeMap(o(L.slice(q+1),C,n(E[Y])?E[Y].length:0),function(me){return C.decoder(me,r.decoder,P,"value")})),X&&C.interpretNumericEntities&&P==="iso-8859-1"&&(X=i(String(X))),L.indexOf("[]=")>-1&&(X=n(X)?[X]:X);var ue=e.call(E,Y);ue&&C.duplicates==="combine"?E[Y]=t.combine(E[Y],X):(!ue||C.duplicates==="last")&&(E[Y]=X)}return E},h=function(w,v,C,E){var $=0;if(w.length>0&&w[w.length-1]==="[]"){var O=w.slice(0,-1).join("");$=Array.isArray(v)&&v[O]?v[O].length:0}for(var _=E?v:o(v,C,$),R=w.length-1;R>=0;--R){var k,P=w[R];if(P==="[]"&&C.parseArrays)k=C.allowEmptyArrays&&(_===""||C.strictNullHandling&&_===null)?[]:t.combine([],_);else{k=C.plainObjects?{__proto__:null}:{};var L=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,F=C.decodeDotInKeys?L.replace(/%2E/g,"."):L,q=parseInt(F,10);!C.parseArrays&&F===""?k={0:_}:!isNaN(q)&&P!==F&&String(q)===F&&q>=0&&C.parseArrays&&q<=C.arrayLimit?(k=[],k[q]=_):F!=="__proto__"&&(k[F]=_)}_=k}return _},g=function(v,C,E,$){if(v){var O=E.allowDots?v.replace(/\.([^.[]+)/g,"[$1]"):v,_=/(\[[^[\]]*])/,R=/(\[[^[\]]*])/g,k=E.depth>0&&_.exec(O),P=k?O.slice(0,k.index):O,L=[];if(P){if(!E.plainObjects&&e.call(Object.prototype,P)&&!E.allowPrototypes)return;L.push(P)}for(var F=0;E.depth>0&&(k=R.exec(O))!==null&&F"u"?r.charset:v.charset,E=typeof v.duplicates>"u"?r.duplicates:v.duplicates;if(E!=="combine"&&E!=="first"&&E!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var $=typeof v.allowDots>"u"?v.decodeDotInKeys===!0?!0:r.allowDots:!!v.allowDots;return{allowDots:$,allowEmptyArrays:typeof v.allowEmptyArrays=="boolean"?!!v.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof v.allowPrototypes=="boolean"?v.allowPrototypes:r.allowPrototypes,allowSparse:typeof v.allowSparse=="boolean"?v.allowSparse:r.allowSparse,arrayLimit:typeof v.arrayLimit=="number"?v.arrayLimit:r.arrayLimit,charset:C,charsetSentinel:typeof v.charsetSentinel=="boolean"?v.charsetSentinel:r.charsetSentinel,comma:typeof v.comma=="boolean"?v.comma:r.comma,decodeDotInKeys:typeof v.decodeDotInKeys=="boolean"?v.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof v.decoder=="function"?v.decoder:r.decoder,delimiter:typeof v.delimiter=="string"||t.isRegExp(v.delimiter)?v.delimiter:r.delimiter,depth:typeof v.depth=="number"||v.depth===!1?+v.depth:r.depth,duplicates:E,ignoreQueryPrefix:v.ignoreQueryPrefix===!0,interpretNumericEntities:typeof v.interpretNumericEntities=="boolean"?v.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof v.parameterLimit=="number"?v.parameterLimit:r.parameterLimit,parseArrays:v.parseArrays!==!1,plainObjects:typeof v.plainObjects=="boolean"?v.plainObjects:r.plainObjects,strictDepth:typeof v.strictDepth=="boolean"?!!v.strictDepth:r.strictDepth,strictNullHandling:typeof v.strictNullHandling=="boolean"?v.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof v.throwOnLimitExceeded=="boolean"?v.throwOnLimitExceeded:!1}};return G$=function(w,v){var C=y(v);if(w===""||w===null||typeof w>"u")return C.plainObjects?{__proto__:null}:{};for(var E=typeof w=="string"?d(w,C):w,$=C.plainObjects?{__proto__:null}:{},O=Object.keys(E),_=0;_h("GET",y),v=(_=d==null?void 0:d.headers)==null?void 0:_.authorization,C=v!="undefined"&&v!=null&&v!=null&&v!="null"&&!!v;let E=!0;!C&&!i&&(E=!1);const $=Bo(["*abac.RoleEntity",d,e],w,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...t||{}}),O=((k=(R=$.data)==null?void 0:R.data)==null?void 0:k.items)||[];return{query:$,items:O,keyExtractor:P=>P.uniqueId}}LS.UKEY="*abac.RoleEntity";const hre=({form:t,isEditing:e})=>{const{values:n,setValues:r,setFieldValue:i,errors:o}=t,{options:u}=T.useContext(yn),l=vn();return N.jsx(N.Fragment,{children:N.jsx(Ex,{formEffect:{field:Xa.Fields.role$,form:t},querySource:LS,label:l.wokspaces.invite.role,errorMessage:o.roleId,fnLabelFormat:d=>d.name,hint:l.wokspaces.invite.roleHint})})},uP=({data:t})=>{const{router:e,uniqueId:n,queryClient:r,t:i}=F1({data:t}),o=FN({query:{uniqueId:n}}),u=HX({queryClient:r}),l=qX({queryClient:r});return N.jsx(FO,{postHook:u,getSingleHook:o,patchHook:l,onCancel:()=>{e.goBackOrDefault(Xa.Navigation.query())},onFinishUriResolver:(d,h)=>{var g;return Xa.Navigation.single((g=d.data)==null?void 0:g.uniqueId)},Form:hre,onEditTitle:i.fb.editPublicJoinKey,onCreateTitle:i.fb.newPublicJoinKey,data:t})},XO=({children:t,getSingleHook:e,editEntityHandler:n,noBack:r,disableOnGetFailed:i})=>{var l;const{router:o,locale:u}=F1({});return jX(n?()=>n({locale:u,router:o}):void 0,jn.EditEntity),MN(r!==!0?()=>o.goBack():null,jn.CommonBack),N.jsxs(N.Fragment,{children:[N.jsx(Go,{query:e.query}),i===!0&&((l=e==null?void 0:e.query)!=null&&l.isError)?null:N.jsx(N.Fragment,{children:t})]})},M7=({value:t})=>{const e=n=>{n.stopPropagation(),navigator.clipboard.writeText(t).then(()=>{})};return N.jsx("div",{className:"table-btn table-copy-btn",onClick:e,children:N.jsx(pre,{})})},pre=({size:t=16,color:e="silver",style:n={}})=>N.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n,children:N.jsx("path",{d:"M16 1H6C4.9 1 4 1.9 4 3V17H6V3H16V1ZM18 5H10C8.9 5 8 5.9 8 7V21C8 22.1 8.9 23 10 23H18C19.1 23 20 22.1 20 21V7C20 5.9 19.1 5 18 5ZM18 21H10V7H18V21Z",fill:e})});function ZO({entity:t,fields:e,title:n,description:r}){var o;const i=vn();return N.jsx("div",{className:"mt-4",children:N.jsxs("div",{className:"general-entity-view ",children:[n?N.jsx("h1",{children:n}):null,r?N.jsx("p",{children:r}):null,N.jsxs("div",{className:"entity-view-row entity-view-head",children:[N.jsx("div",{className:"field-info",children:i.table.info}),N.jsx("div",{className:"field-value",children:i.table.value})]}),(t==null?void 0:t.uniqueId)&&N.jsxs("div",{className:"entity-view-row entity-view-body",children:[N.jsx("div",{className:"field-info",children:i.table.uniqueId}),N.jsx("div",{className:"field-value",children:t.uniqueId})]}),(o=e||[])==null?void 0:o.map((u,l)=>{var h;let d=u.elem===void 0?"-":u.elem;return u.elem===!0&&(d=i.common.yes),u.elem===!1&&(d=i.common.no),u.elem===null&&(d=N.jsx("i",{children:N.jsx("b",{children:i.common.isNUll})})),N.jsxs("div",{className:"entity-view-row entity-view-body",children:[N.jsx("div",{className:"field-info",children:u.label}),N.jsxs("div",{className:"field-value","data-test-id":((h=u.label)==null?void 0:h.toString())||"",children:[d," ",N.jsx(M7,{value:d})]})]},l)}),(t==null?void 0:t.createdFormatted)&&N.jsxs("div",{className:"entity-view-row entity-view-body",children:[N.jsx("div",{className:"field-info",children:i.table.created}),N.jsx("div",{className:"field-value",children:t.createdFormatted})]})]})})}const mre=()=>{var o,u;const t=Ur(),e=vn(),n=t.query.uniqueId;Ci();const r=FN({query:{uniqueId:n}});var i=(o=r.query.data)==null?void 0:o.data;return N.jsx(N.Fragment,{children:N.jsx(XO,{editEntityHandler:()=>{t.push(Xa.Navigation.edit(n))},getSingleHook:r,children:N.jsx(ZO,{entity:i,fields:[{label:e.role.name,elem:(u=i==null?void 0:i.role)==null?void 0:u.name}]})})})};var Zw=function(t){return Array.prototype.slice.call(t)},gre=(function(){function t(){this.handlers=[]}return t.prototype.emit=function(e){this.handlers.forEach(function(n){return n(e)})},t.prototype.subscribe=function(e){this.handlers.push(e)},t.prototype.unsubscribe=function(e){this.handlers.splice(this.handlers.indexOf(e),1)},t})(),k7=function(t,e){if(t===e)return!0;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o"u"||!F?t:F(Uint8Array),be={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":L&&F?F([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":me,"%AsyncGenerator%":me,"%AsyncGeneratorFunction%":me,"%AsyncIteratorPrototype%":me,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":$,"%GeneratorFunction%":me,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":L&&F?F(F([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!L||!F?t:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!L||!F?t:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":L&&F?F(""[Symbol.iterator]()):t,"%Symbol%":L?Symbol:t,"%SyntaxError%":u,"%ThrowTypeError%":P,"%TypedArray%":te,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":ue,"%Function.prototype.apply%":X,"%Object.defineProperty%":R,"%Object.getPrototypeOf%":q,"%Math.abs%":h,"%Math.floor%":g,"%Math.max%":y,"%Math.min%":w,"%Math.pow%":v,"%Math.round%":C,"%Math.sign%":E,"%Reflect.getPrototypeOf%":Y};if(F)try{null.error}catch(Ke){var we=F(F(Ke));be["%Error.prototype%"]=we}var B=function Ke(He){var ut;if(He==="%AsyncFunction%")ut=O("async function () {}");else if(He==="%GeneratorFunction%")ut=O("function* () {}");else if(He==="%AsyncGeneratorFunction%")ut=O("async function* () {}");else if(He==="%AsyncGenerator%"){var pt=Ke("%AsyncGeneratorFunction%");pt&&(ut=pt.prototype)}else if(He==="%AsyncIteratorPrototype%"){var bt=Ke("%AsyncGenerator%");bt&&F&&(ut=F(bt.prototype))}return be[He]=ut,ut},V={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},H=KS(),ie=Ere(),G=H.call(ue,Array.prototype.concat),Q=H.call(X,Array.prototype.splice),he=H.call(ue,String.prototype.replace),$e=H.call(ue,String.prototype.slice),Ce=H.call(ue,RegExp.prototype.exec),Be=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ie=/\\(\\)?/g,tt=function(He){var ut=$e(He,0,1),pt=$e(He,-1);if(ut==="%"&&pt!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(pt==="%"&&ut!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var bt=[];return he(He,Be,function(gt,Ut,Gt,Tt){bt[bt.length]=Gt?he(Tt,Ie,"$1"):Ut||gt}),bt},ke=function(He,ut){var pt=He,bt;if(ie(V,pt)&&(bt=V[pt],pt="%"+bt[0]+"%"),ie(be,pt)){var gt=be[pt];if(gt===me&&(gt=B(pt)),typeof gt>"u"&&!ut)throw new l("intrinsic "+He+" exists, but is not available. Please file an issue!");return{alias:bt,name:pt,value:gt}}throw new u("intrinsic "+He+" does not exist!")};return Q$=function(He,ut){if(typeof He!="string"||He.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ut!="boolean")throw new l('"allowMissing" argument must be a boolean');if(Ce(/^%?[^%]*%?$/,He)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var pt=tt(He),bt=pt.length>0?pt[0]:"",gt=ke("%"+bt+"%",ut),Ut=gt.name,Gt=gt.value,Tt=!1,en=gt.alias;en&&(bt=en[0],Q(pt,G([0,1],en)));for(var xn=1,Dt=!0;xn=pt.length){var Ge=_(Gt,Pt);Dt=!!Ge,Dt&&"get"in Ge&&!("originalValue"in Ge.get)?Gt=Ge.get:Gt=Gt[Pt]}else Dt=ie(Gt,Pt),Gt=Gt[Pt];Dt&&!Tt&&(be[Ut]=Gt)}}return Gt},Q$}var X$,dP;function z7(){if(dP)return X$;dP=1;var t=lT(),e=H7(),n=e([t("%String.prototype.indexOf%")]);return X$=function(i,o){var u=t(i,!!o);return typeof u=="function"&&n(i,".prototype.")>-1?e([u]):u},X$}var Z$,hP;function V7(){if(hP)return Z$;hP=1;var t=lT(),e=z7(),n=WS(),r=my(),i=t("%Map%",!0),o=e("Map.prototype.get",!0),u=e("Map.prototype.set",!0),l=e("Map.prototype.has",!0),d=e("Map.prototype.delete",!0),h=e("Map.prototype.size",!0);return Z$=!!i&&function(){var y,w={assert:function(v){if(!w.has(v))throw new r("Side channel does not contain "+n(v))},delete:function(v){if(y){var C=d(y,v);return h(y)===0&&(y=void 0),C}return!1},get:function(v){if(y)return o(y,v)},has:function(v){return y?l(y,v):!1},set:function(v,C){y||(y=new i),u(y,v,C)}};return w},Z$}var eE,pP;function xre(){if(pP)return eE;pP=1;var t=lT(),e=z7(),n=WS(),r=V7(),i=my(),o=t("%WeakMap%",!0),u=e("WeakMap.prototype.get",!0),l=e("WeakMap.prototype.set",!0),d=e("WeakMap.prototype.has",!0),h=e("WeakMap.prototype.delete",!0);return eE=o?function(){var y,w,v={assert:function(C){if(!v.has(C))throw new i("Side channel does not contain "+n(C))},delete:function(C){if(o&&C&&(typeof C=="object"||typeof C=="function")){if(y)return h(y,C)}else if(r&&w)return w.delete(C);return!1},get:function(C){return o&&C&&(typeof C=="object"||typeof C=="function")&&y?u(y,C):w&&w.get(C)},has:function(C){return o&&C&&(typeof C=="object"||typeof C=="function")&&y?d(y,C):!!w&&w.has(C)},set:function(C,E){o&&C&&(typeof C=="object"||typeof C=="function")?(y||(y=new o),l(y,C,E)):r&&(w||(w=r()),w.set(C,E))}};return v}:r,eE}var tE,mP;function Ore(){if(mP)return tE;mP=1;var t=my(),e=WS(),n=ere(),r=V7(),i=xre(),o=i||r||n;return tE=function(){var l,d={assert:function(h){if(!d.has(h))throw new t("Side channel does not contain "+e(h))},delete:function(h){return!!l&&l.delete(h)},get:function(h){return l&&l.get(h)},has:function(h){return!!l&&l.has(h)},set:function(h,g){l||(l=o()),l.set(h,g)}};return d},tE}var nE,gP;function cT(){if(gP)return nE;gP=1;var t=String.prototype.replace,e=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return nE={default:n.RFC3986,formatters:{RFC1738:function(r){return t.call(r,e,"+")},RFC3986:function(r){return String(r)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},nE}var rE,yP;function G7(){if(yP)return rE;yP=1;var t=cT(),e=Object.prototype.hasOwnProperty,n=Array.isArray,r=(function(){for(var $=[],O=0;O<256;++O)$.push("%"+((O<16?"0":"")+O.toString(16)).toUpperCase());return $})(),i=function(O){for(;O.length>1;){var _=O.pop(),R=_.obj[_.prop];if(n(R)){for(var k=[],P=0;P=h?L.slice(q,q+h):L,X=[],ue=0;ue=48&&me<=57||me>=65&&me<=90||me>=97&&me<=122||P===t.RFC1738&&(me===40||me===41)){X[X.length]=Y.charAt(ue);continue}if(me<128){X[X.length]=r[me];continue}if(me<2048){X[X.length]=r[192|me>>6]+r[128|me&63];continue}if(me<55296||me>=57344){X[X.length]=r[224|me>>12]+r[128|me>>6&63]+r[128|me&63];continue}ue+=1,me=65536+((me&1023)<<10|Y.charCodeAt(ue)&1023),X[X.length]=r[240|me>>18]+r[128|me>>12&63]+r[128|me>>6&63]+r[128|me&63]}F+=X.join("")}return F},y=function(O){for(var _=[{obj:{o:O},prop:"o"}],R=[],k=0;k<_.length;++k)for(var P=_[k],L=P.obj[P.prop],F=Object.keys(L),q=0;q"u"&&(G=0)}if(typeof Y=="function"?H=Y(O,H):H instanceof Date?H=me(H):_==="comma"&&o(H)&&(H=e.maybeMap(H,function(Ut){return Ut instanceof Date?me(Ut):Ut})),H===null){if(P)return q&&!we?q(O,g.encoder,B,"key",te):O;H=""}if(y(H)||e.isBuffer(H)){if(q){var $e=we?O:q(O,g.encoder,B,"key",te);return[be($e)+"="+be(q(H,g.encoder,B,"value",te))]}return[be(O)+"="+be(String(H))]}var Ce=[];if(typeof H>"u")return Ce;var Be;if(_==="comma"&&o(H))we&&q&&(H=e.maybeMap(H,q)),Be=[{value:H.length>0?H.join(",")||null:void 0}];else if(o(Y))Be=Y;else{var Ie=Object.keys(H);Be=X?Ie.sort(X):Ie}var tt=F?String(O).replace(/\./g,"%2E"):String(O),ke=R&&o(H)&&H.length===1?tt+"[]":tt;if(k&&o(H)&&H.length===0)return ke+"[]";for(var Ke=0;Ke"u"?$.encodeDotInKeys===!0?!0:g.allowDots:!!$.allowDots;return{addQueryPrefix:typeof $.addQueryPrefix=="boolean"?$.addQueryPrefix:g.addQueryPrefix,allowDots:L,allowEmptyArrays:typeof $.allowEmptyArrays=="boolean"?!!$.allowEmptyArrays:g.allowEmptyArrays,arrayFormat:P,charset:O,charsetSentinel:typeof $.charsetSentinel=="boolean"?$.charsetSentinel:g.charsetSentinel,commaRoundTrip:!!$.commaRoundTrip,delimiter:typeof $.delimiter>"u"?g.delimiter:$.delimiter,encode:typeof $.encode=="boolean"?$.encode:g.encode,encodeDotInKeys:typeof $.encodeDotInKeys=="boolean"?$.encodeDotInKeys:g.encodeDotInKeys,encoder:typeof $.encoder=="function"?$.encoder:g.encoder,encodeValuesOnly:typeof $.encodeValuesOnly=="boolean"?$.encodeValuesOnly:g.encodeValuesOnly,filter:k,format:_,formatter:R,serializeDate:typeof $.serializeDate=="function"?$.serializeDate:g.serializeDate,skipNulls:typeof $.skipNulls=="boolean"?$.skipNulls:g.skipNulls,sort:typeof $.sort=="function"?$.sort:null,strictNullHandling:typeof $.strictNullHandling=="boolean"?$.strictNullHandling:g.strictNullHandling}};return iE=function(E,$){var O=E,_=C($),R,k;typeof _.filter=="function"?(k=_.filter,O=k("",O)):o(_.filter)&&(k=_.filter,R=k);var P=[];if(typeof O!="object"||O===null)return"";var L=i[_.arrayFormat],F=L==="comma"&&_.commaRoundTrip;R||(R=Object.keys(O)),_.sort&&R.sort(_.sort);for(var q=t(),Y=0;Y0?te+me:""},iE}var aE,bP;function _re(){if(bP)return aE;bP=1;var t=G7(),e=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(w){return w.replace(/&#(\d+);/g,function(v,C){return String.fromCharCode(parseInt(C,10))})},o=function(w,v,C){if(w&&typeof w=="string"&&v.comma&&w.indexOf(",")>-1)return w.split(",");if(v.throwOnLimitExceeded&&C>=v.arrayLimit)throw new RangeError("Array limit exceeded. Only "+v.arrayLimit+" element"+(v.arrayLimit===1?"":"s")+" allowed in an array.");return w},u="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",d=function(v,C){var E={__proto__:null},$=C.ignoreQueryPrefix?v.replace(/^\?/,""):v;$=$.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var O=C.parameterLimit===1/0?void 0:C.parameterLimit,_=$.split(C.delimiter,C.throwOnLimitExceeded?O+1:O);if(C.throwOnLimitExceeded&&_.length>O)throw new RangeError("Parameter limit exceeded. Only "+O+" parameter"+(O===1?"":"s")+" allowed.");var R=-1,k,P=C.charset;if(C.charsetSentinel)for(k=0;k<_.length;++k)_[k].indexOf("utf8=")===0&&(_[k]===l?P="utf-8":_[k]===u&&(P="iso-8859-1"),R=k,k=_.length);for(k=0;k<_.length;++k)if(k!==R){var L=_[k],F=L.indexOf("]="),q=F===-1?L.indexOf("="):F+1,Y,X;q===-1?(Y=C.decoder(L,r.decoder,P,"key"),X=C.strictNullHandling?null:""):(Y=C.decoder(L.slice(0,q),r.decoder,P,"key"),X=t.maybeMap(o(L.slice(q+1),C,n(E[Y])?E[Y].length:0),function(me){return C.decoder(me,r.decoder,P,"value")})),X&&C.interpretNumericEntities&&P==="iso-8859-1"&&(X=i(String(X))),L.indexOf("[]=")>-1&&(X=n(X)?[X]:X);var ue=e.call(E,Y);ue&&C.duplicates==="combine"?E[Y]=t.combine(E[Y],X):(!ue||C.duplicates==="last")&&(E[Y]=X)}return E},h=function(w,v,C,E){var $=0;if(w.length>0&&w[w.length-1]==="[]"){var O=w.slice(0,-1).join("");$=Array.isArray(v)&&v[O]?v[O].length:0}for(var _=E?v:o(v,C,$),R=w.length-1;R>=0;--R){var k,P=w[R];if(P==="[]"&&C.parseArrays)k=C.allowEmptyArrays&&(_===""||C.strictNullHandling&&_===null)?[]:t.combine([],_);else{k=C.plainObjects?{__proto__:null}:{};var L=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,F=C.decodeDotInKeys?L.replace(/%2E/g,"."):L,q=parseInt(F,10);!C.parseArrays&&F===""?k={0:_}:!isNaN(q)&&P!==F&&String(q)===F&&q>=0&&C.parseArrays&&q<=C.arrayLimit?(k=[],k[q]=_):F!=="__proto__"&&(k[F]=_)}_=k}return _},g=function(v,C,E,$){if(v){var O=E.allowDots?v.replace(/\.([^.[]+)/g,"[$1]"):v,_=/(\[[^[\]]*])/,R=/(\[[^[\]]*])/g,k=E.depth>0&&_.exec(O),P=k?O.slice(0,k.index):O,L=[];if(P){if(!E.plainObjects&&e.call(Object.prototype,P)&&!E.allowPrototypes)return;L.push(P)}for(var F=0;E.depth>0&&(k=R.exec(O))!==null&&F"u"?r.charset:v.charset,E=typeof v.duplicates>"u"?r.duplicates:v.duplicates;if(E!=="combine"&&E!=="first"&&E!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var $=typeof v.allowDots>"u"?v.decodeDotInKeys===!0?!0:r.allowDots:!!v.allowDots;return{allowDots:$,allowEmptyArrays:typeof v.allowEmptyArrays=="boolean"?!!v.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof v.allowPrototypes=="boolean"?v.allowPrototypes:r.allowPrototypes,allowSparse:typeof v.allowSparse=="boolean"?v.allowSparse:r.allowSparse,arrayLimit:typeof v.arrayLimit=="number"?v.arrayLimit:r.arrayLimit,charset:C,charsetSentinel:typeof v.charsetSentinel=="boolean"?v.charsetSentinel:r.charsetSentinel,comma:typeof v.comma=="boolean"?v.comma:r.comma,decodeDotInKeys:typeof v.decodeDotInKeys=="boolean"?v.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof v.decoder=="function"?v.decoder:r.decoder,delimiter:typeof v.delimiter=="string"||t.isRegExp(v.delimiter)?v.delimiter:r.delimiter,depth:typeof v.depth=="number"||v.depth===!1?+v.depth:r.depth,duplicates:E,ignoreQueryPrefix:v.ignoreQueryPrefix===!0,interpretNumericEntities:typeof v.interpretNumericEntities=="boolean"?v.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof v.parameterLimit=="number"?v.parameterLimit:r.parameterLimit,parseArrays:v.parseArrays!==!1,plainObjects:typeof v.plainObjects=="boolean"?v.plainObjects:r.plainObjects,strictDepth:typeof v.strictDepth=="boolean"?!!v.strictDepth:r.strictDepth,strictNullHandling:typeof v.strictNullHandling=="boolean"?v.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof v.throwOnLimitExceeded=="boolean"?v.throwOnLimitExceeded:!1}};return aE=function(w,v){var C=y(v);if(w===""||w===null||typeof w>"u")return C.plainObjects?{__proto__:null}:{};for(var E=typeof w=="string"?d(w,C):w,$=C.plainObjects?{__proto__:null}:{},O=Object.keys(E),_=0;_h("GET",y),v=(_=d==null?void 0:d.headers)==null?void 0:_.authorization,C=v!="undefined"&&v!=null&&v!=null&&v!="null"&&!!v;let E=!0;!C&&!i&&(E=!1);const $=Go(["*abac.RoleEntity",d,e],w,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...t||{}}),O=((k=(R=$.data)==null?void 0:R.data)==null?void 0:k.items)||[];return{query:$,items:O,keyExtractor:P=>P.uniqueId}}YS.UKEY="*abac.RoleEntity";const Rre=({form:t,isEditing:e})=>{const{values:n,setValues:r,setFieldValue:i,errors:o}=t,{options:u}=T.useContext(Sn),l=yn();return N.jsx(N.Fragment,{children:N.jsx(Fx,{formEffect:{field:eo.Fields.role$,form:t},querySource:YS,label:l.wokspaces.invite.role,errorMessage:o.roleId,fnLabelFormat:d=>d.name,hint:l.wokspaces.invite.roleHint})})},SP=({data:t})=>{const{router:e,uniqueId:n,queryClient:r,t:i}=K1({data:t}),o=JN({query:{uniqueId:n}}),u=oZ({queryClient:r}),l=aZ({queryClient:r});return N.jsx(JO,{postHook:u,getSingleHook:o,patchHook:l,onCancel:()=>{e.goBackOrDefault(eo.Navigation.query())},onFinishUriResolver:(d,h)=>{var g;return eo.Navigation.single((g=d.data)==null?void 0:g.uniqueId)},Form:Rre,onEditTitle:i.fb.editPublicJoinKey,onCreateTitle:i.fb.newPublicJoinKey,data:t})},fT=({children:t,getSingleHook:e,editEntityHandler:n,noBack:r,disableOnGetFailed:i})=>{var l;const{router:o,locale:u}=K1({});return rZ(n?()=>n({locale:u,router:o}):void 0,Bn.EditEntity),WN(r!==!0?()=>o.goBack():null,Bn.CommonBack),N.jsxs(N.Fragment,{children:[N.jsx(Wo,{query:e.query}),i===!0&&((l=e==null?void 0:e.query)!=null&&l.isError)?null:N.jsx(N.Fragment,{children:t})]})},W7=({value:t})=>{const e=n=>{n.stopPropagation(),navigator.clipboard.writeText(t).then(()=>{})};return N.jsx("div",{className:"table-btn table-copy-btn",onClick:e,children:N.jsx(Pre,{})})},Pre=({size:t=16,color:e="silver",style:n={}})=>N.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:n,children:N.jsx("path",{d:"M16 1H6C4.9 1 4 1.9 4 3V17H6V3H16V1ZM18 5H10C8.9 5 8 5.9 8 7V21C8 22.1 8.9 23 10 23H18C19.1 23 20 22.1 20 21V7C20 5.9 19.1 5 18 5ZM18 21H10V7H18V21Z",fill:e})});function dT({entity:t,fields:e,title:n,description:r}){var o;const i=yn();return N.jsx("div",{className:"mt-4",children:N.jsxs("div",{className:"general-entity-view ",children:[n?N.jsx("h1",{children:n}):null,r?N.jsx("p",{children:r}):null,N.jsxs("div",{className:"entity-view-row entity-view-head",children:[N.jsx("div",{className:"field-info",children:i.table.info}),N.jsx("div",{className:"field-value",children:i.table.value})]}),(t==null?void 0:t.uniqueId)&&N.jsxs("div",{className:"entity-view-row entity-view-body",children:[N.jsx("div",{className:"field-info",children:i.table.uniqueId}),N.jsx("div",{className:"field-value",children:t.uniqueId})]}),(o=e||[])==null?void 0:o.map((u,l)=>{var h;let d=u.elem===void 0?"-":u.elem;return u.elem===!0&&(d=i.common.yes),u.elem===!1&&(d=i.common.no),u.elem===null&&(d=N.jsx("i",{children:N.jsx("b",{children:i.common.isNUll})})),N.jsxs("div",{className:"entity-view-row entity-view-body",children:[N.jsx("div",{className:"field-info",children:u.label}),N.jsxs("div",{className:"field-value","data-test-id":((h=u.label)==null?void 0:h.toString())||"",children:[d," ",N.jsx(W7,{value:d})]})]},l)}),(t==null?void 0:t.createdFormatted)&&N.jsxs("div",{className:"entity-view-row entity-view-body",children:[N.jsx("div",{className:"field-info",children:i.table.created}),N.jsx("div",{className:"field-value",children:t.createdFormatted})]})]})})}const Ire=()=>{var o,u;const t=Lr(),e=yn(),n=t.query.uniqueId;$i();const r=JN({query:{uniqueId:n}});var i=(o=r.query.data)==null?void 0:o.data;return N.jsx(N.Fragment,{children:N.jsx(fT,{editEntityHandler:()=>{t.push(eo.Navigation.edit(n))},getSingleHook:r,children:N.jsx(dT,{entity:i,fields:[{label:e.role.name,elem:(u=i==null?void 0:i.role)==null?void 0:u.name}]})})})};var cS=function(t){return Array.prototype.slice.call(t)},Nre=(function(){function t(){this.handlers=[]}return t.prototype.emit=function(e){this.handlers.forEach(function(n){return n(e)})},t.prototype.subscribe=function(e){this.handlers.push(e)},t.prototype.unsubscribe=function(e){this.handlers.splice(this.handlers.indexOf(e),1)},t})(),K7=function(t,e){if(t===e)return!0;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){u={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return o}function lP(t,e,n){if(arguments.length===2)for(var r=0,i=e.length,o;r0?Ire(e,n,r):e}};Te.shape({current:Te.instanceOf(typeof Element<"u"?Element:Object)});var iT=Symbol("group"),Nre=Symbol("".concat(iT.toString(),"_check"));Symbol("".concat(iT.toString(),"_levelKey"));Symbol("".concat(iT.toString(),"_collapsedRows"));var Mre=function(t){return function(e){var n=t(e);return!e[Nre]&&n===void 0&&console.warn("The row id is undefined. Check the getRowId function. The row is",e),n}},kre=function(t,e){if(!t){var n=new Map(e.map(function(r,i){return[r,i]}));return function(r){return n.get(r)}}return Mre(t)},Dre=function(t,e){return t[e]},Fre=function(t,e){t===void 0&&(t=Dre);var n=!0,r=e.reduce(function(i,o){return o.getCellValue&&(n=!1,i[o.name]=o.getCellValue),i},{});return n?t:function(i,o){return r[o]?r[o](i,o):t(i,o)}};/*! ***************************************************************************** +***************************************************************************** */var Lx=function(t,e){return Lx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Lx(t,e)};function jl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Lx(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Eu=function(){return Eu=Object.assign||function(e){for(var n,r=1,i=arguments.length;r0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){u={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return o}function CP(t,e,n){if(arguments.length===2)for(var r=0,i=e.length,o;r0?Yre(e,n,r):e}};Te.shape({current:Te.instanceOf(typeof Element<"u"?Element:Object)});var yT=Symbol("group"),Jre=Symbol("".concat(yT.toString(),"_check"));Symbol("".concat(yT.toString(),"_levelKey"));Symbol("".concat(yT.toString(),"_collapsedRows"));var Qre=function(t){return function(e){var n=t(e);return!e[Jre]&&n===void 0&&console.warn("The row id is undefined. Check the getRowId function. The row is",e),n}},Xre=function(t,e){if(!t){var n=new Map(e.map(function(r,i){return[r,i]}));return function(r){return n.get(r)}}return Qre(t)},Zre=function(t,e){return t[e]},eie=function(t,e){t===void 0&&(t=Zre);var n=!0,r=e.reduce(function(i,o){return o.getCellValue&&(n=!1,i[o.name]=o.getCellValue),i},{});return n?t:function(i,o){return r[o]?r[o](i,o):t(i,o)}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -196,7 +196,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Kg=function(){return Kg=Object.assign||function(e){for(var n,r=1,i=arguments.length;r0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){u={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return o}function nS(t,e,n){if(arguments.length===2)for(var r=0,i=e.length,o;rr){do e[d++]=t[l++];while(l<=i);break}}else if(e[d++]=t[l++],l>i){do e[d++]=t[u++];while(u<=r);break}}},mP=function(t,e,n,r,i){if(!(ro?1:0});var n=Zw(t),r=Zw(t);return _x(n,r,0,n.length-1,e),n}),jre=function(t,e,n){var r=n.map(function(i){var o=i.columnName;return{column:t.find(function(u){return u.name===o}),draft:!e.some(function(u){return u.columnName===o})}});return e.forEach(function(i,o){var u=i.columnName;n.some(function(l){return l.columnName===u})||r.splice(o,0,{column:t.find(function(l){return l.name===u}),draft:!0})}),r},rS=Symbol("reordering"),Bre=function(t,e){var n=e.sourceColumnName,r=e.targetColumnName,i=t.indexOf(n),o=t.indexOf(r),u=Zw(t);return u.splice(i,1),u.splice(o,0,n),u},Tl=Symbol("data"),qre=function(t,e){return t===void 0&&(t=[]),Ure(t,function(n,r){if(n.type!==Tl||r.type!==Tl)return 0;var i=e.indexOf(n.column.name),o=e.indexOf(r.column.name);return i-o})},Hre=function(t){return nS(nS([],Tx(t),!1),[{key:rS.toString(),type:rS,height:0}],!1)},zre=function(t,e,n){if(e===-1||n===-1||e===n)return t;var r=Zw(t),i=t[e];return r.splice(e,1),r.splice(n,0,i),r},Vre=function(t,e){var n=parseInt(t,10),r=n?t.substr(n.toString().length):t,i=isNaN(n)&&r==="auto",o=n>=0&&e.some(function(u){return u===r});return i||o},Gre=function(t){if(typeof t=="string"){var e=parseInt(t,10);return t.substr(e.toString().length).length>0?t:e}return t},Wre=Symbol("heading"),Kre=Symbol("filter"),Ax=Symbol("group"),Yre=Symbol("stub"),Qre=function(t,e,n,r){return t.reduce(function(i,o){if(o.type!==Tl)return i.push(o),i;var u=o.column&&o.column.name||"",l=e.some(function(h){return h.columnName===u}),d=n.some(function(h){return h.columnName===u});return!l&&!d||r(u)?i.push(o):(!l&&d||l&&!d)&&i.push(Kg(Kg({},o),{draft:!0})),i},[])},Jre=function(t,e,n,r,i,o){return nS(nS([],Tx(n.map(function(u){var l=t.find(function(d){return d.name===u.columnName});return{key:"".concat(Ax.toString(),"_").concat(l.name),type:Ax,column:l,width:i}})),!1),Tx(Qre(e,n,r,o)),!1)},Xre=Symbol("band"),Zre=["px","%","em","rem","vm","vh","vmin","vmax",""],eie="The columnExtension property of the Table plugin is given an invalid value.",tie=function(t){t&&t.map(function(e){var n=e.width;if(typeof n=="string"&&!Vre(n,Zre))throw new Error(eie)})},nie=function(t,e){if(!t)return{};var n=t.find(function(r){return r.columnName===e});return n||{}},rie=function(t,e){return t.map(function(n){var r=n.name,i=nie(e,r),o=Gre(i.width);return{column:n,key:"".concat(Tl.toString(),"_").concat(r),type:Tl,width:o,align:i.align,wordWrapEnabled:i.wordWrapEnabled}})},iie=function(t,e){return t===void 0&&(t=[]),t.filter(function(n){return n.type!==Tl||e.indexOf(n.column.name)===-1})},aie=function(t,e,n){return function(r){return n.indexOf(r)>-1&&e||typeof t=="function"&&t(r)||void 0}},oie=Symbol("totalSummary");Wre.toString();Kre.toString();Tl.toString();Xre.toString();oie.toString();Yre.toString();Ax.toString();var sie=function(t,e){var n=t[e].right-t[e].left,r=function(i){return t[i].right-t[i].left-n};return t.map(function(i,o){var u=i.top,l=i.right,d=i.bottom,h=i.left,g=h;o>0&&o<=e&&(g=Math.min(g,g-r(o-1))),o>e&&(g=Math.max(g,g+r(o)));var y=l;return o=e&&(y=Math.max(y,y+r(o+1))),o=u&&e=t.top&&e<=t.bottom},lie=function(t){var e=t.top,n=t.right,r=t.bottom,i=t.left;return{top:e,right:n,bottom:r,left:i}},cie=function(t){return t.map(function(e,n){return n!==t.length-1&&e.top===t[n+1].top?Kg(Kg({},e),{right:t[n+1].left}):e})},fie=function(t,e,n){var r=n.x,i=n.y;if(t.length===0)return 0;var o=e!==-1?sie(t,e):t.map(lie),u=cie(o).findIndex(function(l,d){var h=gP(l,i),g=r>=l.left&&r<=l.right,y=d===0&&r0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){u={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return o}function hS(t,e,n){if(arguments.length===2)for(var r=0,i=e.length,o;rr){do e[d++]=t[l++];while(l<=i);break}}else if(e[d++]=t[l++],l>i){do e[d++]=t[u++];while(u<=r);break}}},_P=function(t,e,n,r,i){if(!(ro?1:0});var n=cS(t),r=cS(t);return Bx(n,r,0,n.length-1,e),n}),rie=function(t,e,n){var r=n.map(function(i){var o=i.columnName;return{column:t.find(function(u){return u.name===o}),draft:!e.some(function(u){return u.columnName===o})}});return e.forEach(function(i,o){var u=i.columnName;n.some(function(l){return l.columnName===u})||r.splice(o,0,{column:t.find(function(l){return l.name===u}),draft:!0})}),r},pS=Symbol("reordering"),iie=function(t,e){var n=e.sourceColumnName,r=e.targetColumnName,i=t.indexOf(n),o=t.indexOf(r),u=cS(t);return u.splice(i,1),u.splice(o,0,n),u},Rl=Symbol("data"),aie=function(t,e){return t===void 0&&(t=[]),nie(t,function(n,r){if(n.type!==Rl||r.type!==Rl)return 0;var i=e.indexOf(n.column.name),o=e.indexOf(r.column.name);return i-o})},oie=function(t){return hS(hS([],jx(t),!1),[{key:pS.toString(),type:pS,height:0}],!1)},sie=function(t,e,n){if(e===-1||n===-1||e===n)return t;var r=cS(t),i=t[e];return r.splice(e,1),r.splice(n,0,i),r},uie=function(t,e){var n=parseInt(t,10),r=n?t.substr(n.toString().length):t,i=isNaN(n)&&r==="auto",o=n>=0&&e.some(function(u){return u===r});return i||o},lie=function(t){if(typeof t=="string"){var e=parseInt(t,10);return t.substr(e.toString().length).length>0?t:e}return t},cie=Symbol("heading"),fie=Symbol("filter"),qx=Symbol("group"),die=Symbol("stub"),hie=function(t,e,n,r){return t.reduce(function(i,o){if(o.type!==Rl)return i.push(o),i;var u=o.column&&o.column.name||"",l=e.some(function(h){return h.columnName===u}),d=n.some(function(h){return h.columnName===u});return!l&&!d||r(u)?i.push(o):(!l&&d||l&&!d)&&i.push(ry(ry({},o),{draft:!0})),i},[])},pie=function(t,e,n,r,i,o){return hS(hS([],jx(n.map(function(u){var l=t.find(function(d){return d.name===u.columnName});return{key:"".concat(qx.toString(),"_").concat(l.name),type:qx,column:l,width:i}})),!1),jx(hie(e,n,r,o)),!1)},mie=Symbol("band"),gie=["px","%","em","rem","vm","vh","vmin","vmax",""],yie="The columnExtension property of the Table plugin is given an invalid value.",vie=function(t){t&&t.map(function(e){var n=e.width;if(typeof n=="string"&&!uie(n,gie))throw new Error(yie)})},bie=function(t,e){if(!t)return{};var n=t.find(function(r){return r.columnName===e});return n||{}},wie=function(t,e){return t.map(function(n){var r=n.name,i=bie(e,r),o=lie(i.width);return{column:n,key:"".concat(Rl.toString(),"_").concat(r),type:Rl,width:o,align:i.align,wordWrapEnabled:i.wordWrapEnabled}})},Sie=function(t,e){return t===void 0&&(t=[]),t.filter(function(n){return n.type!==Rl||e.indexOf(n.column.name)===-1})},Cie=function(t,e,n){return function(r){return n.indexOf(r)>-1&&e||typeof t=="function"&&t(r)||void 0}},$ie=Symbol("totalSummary");cie.toString();fie.toString();Rl.toString();mie.toString();$ie.toString();die.toString();qx.toString();var Eie=function(t,e){var n=t[e].right-t[e].left,r=function(i){return t[i].right-t[i].left-n};return t.map(function(i,o){var u=i.top,l=i.right,d=i.bottom,h=i.left,g=h;o>0&&o<=e&&(g=Math.min(g,g-r(o-1))),o>e&&(g=Math.max(g,g+r(o)));var y=l;return o=e&&(y=Math.max(y,y+r(o+1))),o=u&&e=t.top&&e<=t.bottom},Oie=function(t){var e=t.top,n=t.right,r=t.bottom,i=t.left;return{top:e,right:n,bottom:r,left:i}},Tie=function(t){return t.map(function(e,n){return n!==t.length-1&&e.top===t[n+1].top?ry(ry({},e),{right:t[n+1].left}):e})},_ie=function(t,e,n){var r=n.x,i=n.y;if(t.length===0)return 0;var o=e!==-1?Eie(t,e):t.map(Oie),u=Tie(o).findIndex(function(l,d){var h=AP(l,i),g=r>=l.left&&r<=l.right,y=d===0&&r{t(!1)})},refs:[]}),Mie=T.createContext(null),kie=()=>{const t=T.useContext(Mie);if(!t)throw new Error("useOverlay must be inside OverlayProvider");return t},Die=()=>{const{openDrawer:t,openModal:e}=kie();return{confirmDrawer:({title:i,description:o,cancelLabel:u,confirmLabel:l})=>t(({close:d,resolve:h})=>N.jsxs("div",{className:"confirm-drawer-container p-3",children:[N.jsx("h2",{children:i}),N.jsx("span",{children:o}),N.jsxs("div",{children:[N.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>h(),children:l}),N.jsx("button",{className:"d-block w-100 btn",onClick:()=>d(),children:u})]})]})),confirmModal:({title:i,description:o,cancelLabel:u,confirmLabel:l})=>e(({close:d,resolve:h})=>N.jsxs("div",{className:"confirm-drawer-container p-3",children:[N.jsx("span",{children:o}),N.jsxs("div",{className:"row mt-4",children:[N.jsx("div",{className:"col-md-6",children:N.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>h(),children:l})}),N.jsx("div",{className:"col-md-6",children:N.jsx("button",{className:"d-block w-100 btn",onClick:()=>d(),children:u})})]})]}),{title:i})}},Fie=()=>{const t=T.useRef();return{withDebounce:(n,r)=>{t.current&&clearTimeout(t.current),t.current=setTimeout(n,r)}}};function Lie({urlMask:t,submitDelete:e,onRecordsDeleted:n,initialFilters:r}){const i=vn(),o=Ur(),{confirmModal:u}=Die(),{withDebounce:l}=Fie(),d={itemsPerPage:100,startIndex:0,sorting:[],...r||{}},[h,g]=T.useState(d),[y,w]=T.useState(d),{search:v}=kl(),C=T.useRef(!1);T.useEffect(()=>{if(C.current)return;C.current=!0;let we={};try{we=Wg.parse(v.substring(1)),delete we.startIndex}catch{}g({...d,...we}),w({...d,...we})},[v]);const[E,$]=T.useState([]),_=(we=>{var V;const B={...we};return delete B.startIndex,delete B.itemsPerPage,((V=B==null?void 0:B.sorting)==null?void 0:V.length)===0&&delete B.sorting,JSON.stringify(B)})(h),R=we=>{$(we)},k=(we,B=!0)=>{const V={...h,...we};B&&(V.startIndex=0),g(V),o.push("?"+Wg.stringify(V),void 0,{},!0),l(()=>{w(V)},500)},P=we=>{k({itemsPerPage:we},!1)},L=we=>we.map(B=>`${B.columnName} ${B.direction}`).join(", "),F=we=>{k({sorting:we,sort:L(we)},!1)},q=we=>{k({startIndex:we},!1)},Y=we=>{k({startIndex:0})};T.useContext(X7);const X=we=>({query:we.map(B=>`unique_id = ${B}`).join(" or "),uniqueId:""}),ue=async()=>{u({title:i.confirm,confirmLabel:i.common.yes,cancelLabel:i.common.no,description:i.deleteConfirmMessage}).promise.then(({type:we})=>{if(we==="resolved")return e(X(E),null)}).then(()=>{n&&n()})},me=()=>({label:i.deleteAction,onSelect(){ue()},icon:iy.delete,uniqueActionKey:"GENERAL_DELETE_ACTION"}),{addActions:te,removeActionMenu:be}=DX();return T.useEffect(()=>{if(E.length>0&&typeof e<"u")return te("table-selection",[me()]);be("table-selection")},[E]),L1(jn.Delete,()=>{E.length>0&&typeof e<"u"&&ue()}),{filters:h,setFilters:g,setFilter:k,setSorting:F,setStartIndex:q,selection:E,setSelection:R,onFiltersChange:Y,queryHash:_,setPageSize:P,debouncedFilters:y}}function Uie({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(yn),l=e?e(o):u?u(o):Lr(o);let h=`${"/table-view-sizing/:uniqueId".substr(1)}?${new URLSearchParams(la(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,v=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!v&&!i&&(C=!1):C=!1,{query:Bo([o,n,"*abac.TableViewSizingEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}class aT extends Vt{constructor(...e){super(...e),this.children=void 0,this.tableName=void 0,this.sizes=void 0}}aT.Navigation={edit(t,e){return`${e?"/"+e:".."}/table-view-sizing/edit/${t}`},create(t){return`${t?"/"+t:".."}/table-view-sizing/new`},single(t,e){return`${e?"/"+e:".."}/table-view-sizing/${t}`},query(t={},e){return`${e?"/"+e:".."}/table-view-sizings`},Redit:"table-view-sizing/edit/:uniqueId",Rcreate:"table-view-sizing/new",Rsingle:"table-view-sizing/:uniqueId",Rquery:"table-view-sizings"};aT.definition={rpc:{query:{}},name:"tableViewSizing",features:{},gormMap:{},fields:[{name:"tableName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"sizes",type:"string",computedType:"string",gormMap:{}}],cliShort:"tvs",description:"Used to store meta data about user tables (in front-end, or apps for example) about the size of the columns"};aT.Fields={...Vt.Fields,tableName:"tableName",sizes:"sizes"};function jie(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(yn),u=r?r(i):o?o(i):Lr(i);let d=`${"/table-view-sizing".substr(1)}?${new URLSearchParams(la(n)).toString()}`;const g=Fr(v=>u("PATCH",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueriesData("*abac.TableViewSizingEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(ks(O)),$(O)}})}),fnUpdater:y}}function Z7(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e1&&(!t.frozen||t.idx+r-1<=e))return r}function Bie(t){t.stopPropagation()}function Sw(t){t==null||t.scrollIntoView({inline:"nearest",block:"nearest"})}function D0(t){let e=!1;const n={...t,preventGridDefault(){e=!0},isGridDefaultPrevented(){return e}};return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),n}const qie=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function Px(t){return(t.ctrlKey||t.metaKey)&&t.key!=="Control"}function Hie(t){return Px(t)&&t.keyCode!==86?!1:!qie.has(t.key)}function zie({key:t,target:e}){var n;return t==="Tab"&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)?((n=e.closest(".rdg-editor-container"))==null?void 0:n.querySelectorAll("input, textarea, select").length)===1:!1}const Vie="mlln6zg7-0-0-beta-51";function Gie(t){return t.map(({key:e,idx:n,minWidth:r,maxWidth:i})=>N.jsx("div",{className:Vie,style:{gridColumnStart:n+1,minWidth:r,maxWidth:i},"data-measuring-cell-key":e},e))}function Wie({selectedPosition:t,columns:e,rows:n}){const r=e[t.idx],i=n[t.rowIdx];return eM(r,i)}function eM(t,e){return t.renderEditCell!=null&&(typeof t.editable=="function"?t.editable(e):t.editable)!==!1}function Kie({rows:t,topSummaryRows:e,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:i,lastFrozenColumnIndex:o,column:u}){const l=(e==null?void 0:e.length)??0;if(r===i)return Fo(u,o,{type:"HEADER"});if(e&&r>i&&r<=l+i)return Fo(u,o,{type:"SUMMARY",row:e[r+l]});if(r>=0&&r{for(const F of i){const q=F.idx;if(q>$)break;const Y=Kie({rows:o,topSummaryRows:u,bottomSummaryRows:l,rowIdx:O,mainHeaderRowIdx:h,lastFrozenColumnIndex:C,column:F});if(Y&&$>q&&$L.level+h,P=()=>{if(e){let F=r[$].parent;for(;F!==void 0;){const q=k(F);if(O===q){$=F.idx+F.colSpan;break}F=F.parent}}else if(t){let F=r[$].parent,q=!1;for(;F!==void 0;){const Y=k(F);if(O>=Y){$=F.idx,O=Y,q=!0;break}F=F.parent}q||($=y,O=w)}};if(E(v)&&(R(e),O=q&&(O=Y,$=F.idx),F=F.parent}}return{idx:$,rowIdx:O}}function Qie({maxColIdx:t,minRowIdx:e,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:i},shiftKey:o}){return o?i===0&&r===e:i===t&&r===n}const Jie="cj343x07-0-0-beta-51",tM=`rdg-cell ${Jie}`,Xie="csofj7r7-0-0-beta-51",Zie=`rdg-cell-frozen ${Xie}`;function oT(t){return{"--rdg-grid-row-start":t}}function nM(t,e,n){const r=e+1,i=`calc(${n-1} * var(--rdg-header-row-height))`;return t.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:r,paddingBlockStart:i}:{insetBlockStart:`calc(${e-n} * var(--rdg-header-row-height))`,gridRowStart:r-n,gridRowEnd:r,paddingBlockStart:i}}function sy(t,e=1){const n=t.idx+1;return{gridColumnStart:n,gridColumnEnd:n+e,insetInlineStart:t.frozen?`var(--rdg-frozen-left-${t.idx})`:void 0}}function q1(t,...e){return _l(tM,{[Zie]:t.frozen},...e)}const{min:v1,max:iS,floor:yP,sign:eae,abs:tae}=Math;function Y$(t){if(typeof t!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function rM(t,{minWidth:e,maxWidth:n}){return t=iS(t,e),typeof n=="number"&&n>=e?v1(t,n):t}function iM(t,e){return t.parent===void 0?e:t.level-t.parent.level}const nae="c1bn88vv7-0-0-beta-51",rae=`rdg-checkbox-input ${nae}`;function iae({onChange:t,indeterminate:e,...n}){function r(i){t(i.target.checked,i.nativeEvent.shiftKey)}return N.jsx("input",{ref:i=>{i&&(i.indeterminate=e===!0)},type:"checkbox",className:rae,onChange:r,...n})}function aae(t){try{return t.row[t.column.key]}catch{return null}}const aM=T.createContext(void 0);function jS(){return T.useContext(aM)}function sT({value:t,tabIndex:e,indeterminate:n,disabled:r,onChange:i,"aria-label":o,"aria-labelledby":u}){const l=jS().renderCheckbox;return l({"aria-label":o,"aria-labelledby":u,tabIndex:e,indeterminate:n,disabled:r,checked:t,onChange:i})}const uT=T.createContext(void 0),oM=T.createContext(void 0);function sM(){const t=T.useContext(uT),e=T.useContext(oM);if(t===void 0||e===void 0)throw new Error("useRowSelection must be used within renderCell");return{isRowSelectionDisabled:t.isRowSelectionDisabled,isRowSelected:t.isRowSelected,onRowSelectionChange:e}}const uM=T.createContext(void 0),lM=T.createContext(void 0);function oae(){const t=T.useContext(uM),e=T.useContext(lM);if(t===void 0||e===void 0)throw new Error("useHeaderRowSelection must be used within renderHeaderCell");return{isIndeterminate:t.isIndeterminate,isRowSelected:t.isRowSelected,onRowSelectionChange:e}}const aS="rdg-select-column";function sae(t){const{isIndeterminate:e,isRowSelected:n,onRowSelectionChange:r}=oae();return N.jsx(sT,{"aria-label":"Select All",tabIndex:t.tabIndex,indeterminate:e,value:n,onChange:i=>{r({checked:e?!1:i})}})}function uae(t){const{isRowSelectionDisabled:e,isRowSelected:n,onRowSelectionChange:r}=sM();return N.jsx(sT,{"aria-label":"Select",tabIndex:t.tabIndex,disabled:e,value:n,onChange:(i,o)=>{r({row:t.row,checked:i,isShiftClick:o})}})}function lae(t){const{isRowSelected:e,onRowSelectionChange:n}=sM();return N.jsx(sT,{"aria-label":"Select Group",tabIndex:t.tabIndex,value:e,onChange:r=>{n({row:t.row,checked:r,isShiftClick:!1})}})}const cae={key:aS,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell(t){return N.jsx(sae,{...t})},renderCell(t){return N.jsx(uae,{...t})},renderGroupCell(t){return N.jsx(lae,{...t})}},fae="h44jtk67-0-0-beta-51",dae="hcgkhxz7-0-0-beta-51",hae=`rdg-header-sort-name ${dae}`;function pae({column:t,sortDirection:e,priority:n}){return t.sortable?N.jsx(mae,{sortDirection:e,priority:n,children:t.name}):t.name}function mae({sortDirection:t,priority:e,children:n}){const r=jS().renderSortStatus;return N.jsxs("span",{className:fae,children:[N.jsx("span",{className:hae,children:n}),N.jsx("span",{children:r({sortDirection:t,priority:e})})]})}const gae="auto",yae=50;function vae({rawColumns:t,defaultColumnOptions:e,getColumnWidth:n,viewportWidth:r,scrollLeft:i,enableVirtualization:o}){const u=(e==null?void 0:e.width)??gae,l=(e==null?void 0:e.minWidth)??yae,d=(e==null?void 0:e.maxWidth)??void 0,h=(e==null?void 0:e.renderCell)??aae,g=(e==null?void 0:e.renderHeaderCell)??pae,y=(e==null?void 0:e.sortable)??!1,w=(e==null?void 0:e.resizable)??!1,v=(e==null?void 0:e.draggable)??!1,{columns:C,colSpanColumns:E,lastFrozenColumnIndex:$,headerRowsCount:O}=T.useMemo(()=>{let q=-1,Y=1;const X=[];ue(t,1);function ue(te,be,we){for(const B of te){if("children"in B){const ie={name:B.name,parent:we,idx:-1,colSpan:0,level:0,headerCellClass:B.headerCellClass};ue(B.children,be+1,ie);continue}const V=B.frozen??!1,H={...B,parent:we,idx:0,level:0,frozen:V,width:B.width??u,minWidth:B.minWidth??l,maxWidth:B.maxWidth??d,sortable:B.sortable??y,resizable:B.resizable??w,draggable:B.draggable??v,renderCell:B.renderCell??h,renderHeaderCell:B.renderHeaderCell??g};X.push(H),V&&q++,be>Y&&(Y=be)}}X.sort(({key:te,frozen:be},{key:we,frozen:B})=>te===aS?-1:we===aS?1:be?B?0:-1:B?1:0);const me=[];return X.forEach((te,be)=>{te.idx=be,cM(te,be,0),te.colSpan!=null&&me.push(te)}),{columns:X,colSpanColumns:me,lastFrozenColumnIndex:q,headerRowsCount:Y}},[t,u,l,d,h,g,w,y,v]),{templateColumns:_,layoutCssVars:R,totalFrozenColumnWidth:k,columnMetrics:P}=T.useMemo(()=>{const q=new Map;let Y=0,X=0;const ue=[];for(const te of C){let be=n(te);typeof be=="number"?be=rM(be,te):be=te.minWidth,ue.push(`${be}px`),q.set(te,{width:be,left:Y}),Y+=be}if($!==-1){const te=q.get(C[$]);X=te.left+te.width}const me={};for(let te=0;te<=$;te++){const be=C[te];me[`--rdg-frozen-left-${be.idx}`]=`${q.get(be).left}px`}return{templateColumns:ue,layoutCssVars:me,totalFrozenColumnWidth:X,columnMetrics:q}},[n,C,$]),[L,F]=T.useMemo(()=>{if(!o)return[0,C.length-1];const q=i+k,Y=i+r,X=C.length-1,ue=v1($+1,X);if(q>=Y)return[ue,ue];let me=ue;for(;meq)break;me++}let te=me;for(;te=Y)break;te++}const be=iS(ue,me-1),we=v1(X,te+1);return[be,we]},[P,C,$,i,k,r,o]);return{columns:C,colSpanColumns:E,colOverscanStartIdx:L,colOverscanEndIdx:F,templateColumns:_,layoutCssVars:R,headerRowsCount:O,lastFrozenColumnIndex:$,totalFrozenColumnWidth:k}}function cM(t,e,n){if(n{g.current=i,$(C)});function $(_){_.length!==0&&d(R=>{const k=new Map(R);let P=!1;for(const L of _){const F=vP(r,L);P||(P=F!==R.get(L)),F===void 0?k.delete(L):k.set(L,F)}return P?k:R})}function O(_,R){const{key:k}=_,P=[...n],L=[];for(const{key:q,idx:Y,width:X}of e)if(k===q){const ue=typeof R=="number"?`${R}px`:R;P[Y]=ue}else y&&typeof X=="string"&&!o.has(q)&&(P[Y]=X,L.push(q));r.current.style.gridTemplateColumns=P.join(" ");const F=typeof R=="number"?R:vP(r,k);xu.flushSync(()=>{l(q=>{const Y=new Map(q);return Y.set(k,F),Y}),$(L)}),h==null||h(_,F)}return{gridTemplateColumns:E,handleColumnResize:O}}function vP(t,e){var i;const n=`[data-measuring-cell-key="${CSS.escape(e)}"]`,r=(i=t.current)==null?void 0:i.querySelector(n);return r==null?void 0:r.getBoundingClientRect().width}function wae(){const t=T.useRef(null),[e,n]=T.useState(1),[r,i]=T.useState(1),[o,u]=T.useState(0);return T.useLayoutEffect(()=>{const{ResizeObserver:l}=window;if(l==null)return;const{clientWidth:d,clientHeight:h,offsetWidth:g,offsetHeight:y}=t.current,{width:w,height:v}=t.current.getBoundingClientRect(),C=y-h,E=w-g+d,$=v-C;n(E),i($),u(C);const O=new l(_=>{const R=_[0].contentBoxSize[0],{clientHeight:k,offsetHeight:P}=t.current;xu.flushSync(()=>{n(R.inlineSize),i(R.blockSize),u(P-k)})});return O.observe(t.current),()=>{O.disconnect()}},[]),[t,e,r,o]}function Qa(t){const e=T.useRef(t);T.useEffect(()=>{e.current=t});const n=T.useCallback((...r)=>{e.current(...r)},[]);return t&&n}function H1(t){const[e,n]=T.useState(!1);e&&!t&&n(!1);function r(o){o.target!==o.currentTarget&&n(!0)}return{tabIndex:t&&!e?0:-1,childTabIndex:t?0:-1,onFocus:t?r:void 0}}function Sae({columns:t,colSpanColumns:e,rows:n,topSummaryRows:r,bottomSummaryRows:i,colOverscanStartIdx:o,colOverscanEndIdx:u,lastFrozenColumnIndex:l,rowOverscanStartIdx:d,rowOverscanEndIdx:h}){const g=T.useMemo(()=>{if(o===0)return 0;let y=o;const w=(v,C)=>C!==void 0&&v+C>o?(y=v,!0):!1;for(const v of e){const C=v.idx;if(C>=y||w(C,Fo(v,l,{type:"HEADER"})))break;for(let E=d;E<=h;E++){const $=n[E];if(w(C,Fo(v,l,{type:"ROW",row:$})))break}if(r!=null){for(const E of r)if(w(C,Fo(v,l,{type:"SUMMARY",row:E})))break}if(i!=null){for(const E of i)if(w(C,Fo(v,l,{type:"SUMMARY",row:E})))break}}return y},[d,h,n,r,i,o,l,e]);return T.useMemo(()=>{const y=[];for(let w=0;w<=u;w++){const v=t[w];w{if(typeof e=="number")return{totalRowHeight:e*t.length,gridTemplateRows:` repeat(${t.length}, ${e}px)`,getRowTop:$=>$*e,getRowHeight:()=>e,findRowIdx:$=>yP($/e)};let w=0,v=" ";const C=t.map($=>{const O=e($),_={top:w,height:O};return v+=`${O}px `,w+=O,_}),E=$=>iS(0,v1(t.length-1,$));return{totalRowHeight:w,gridTemplateRows:v,getRowTop:$=>C[E($)].top,getRowHeight:$=>C[E($)].height,findRowIdx($){let O=0,_=C.length-1;for(;O<=_;){const R=O+yP((_-O)/2),k=C[R].top;if(k===$)return R;if(k<$?O=R+1:k>$&&(_=R-1),O>_)return _}return 0}}},[e,t]);let g=0,y=t.length-1;if(i){const v=h(r),C=h(r+n);g=iS(0,v-4),y=v1(t.length-1,C+4)}return{rowOverscanStartIdx:g,rowOverscanEndIdx:y,totalRowHeight:o,gridTemplateRows:u,getRowTop:l,getRowHeight:d,findRowIdx:h}}const $ae="c6ra8a37-0-0-beta-51",Eae=`rdg-cell-copied ${$ae}`,xae="cq910m07-0-0-beta-51",Oae=`rdg-cell-dragged-over ${xae}`;function Tae({column:t,colSpan:e,isCellSelected:n,isCopied:r,isDraggedOver:i,row:o,rowIdx:u,className:l,onClick:d,onDoubleClick:h,onContextMenu:g,onRowChange:y,selectCell:w,style:v,...C}){const{tabIndex:E,childTabIndex:$,onFocus:O}=H1(n),{cellClass:_}=t;l=q1(t,{[Eae]:r,[Oae]:i},typeof _=="function"?_(o):_,l);const R=eM(t,o);function k(Y){w({rowIdx:u,idx:t.idx},Y)}function P(Y){if(d){const X=D0(Y);if(d({rowIdx:u,row:o,column:t,selectCell:k},X),X.isGridDefaultPrevented())return}k()}function L(Y){if(g){const X=D0(Y);if(g({rowIdx:u,row:o,column:t,selectCell:k},X),X.isGridDefaultPrevented())return}k()}function F(Y){if(h){const X=D0(Y);if(h({rowIdx:u,row:o,column:t,selectCell:k},X),X.isGridDefaultPrevented())return}k(!0)}function q(Y){y(t,Y)}return N.jsx("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":n,"aria-readonly":!R||void 0,tabIndex:E,className:l,style:{...sy(t,e),...v},onClick:P,onDoubleClick:F,onContextMenu:L,onFocus:O,...C,children:t.renderCell({column:t,row:o,rowIdx:u,isCellEditable:R,tabIndex:$,onRowChange:q})})}const _ae=T.memo(Tae);function Aae(t,e){return N.jsx(_ae,{...e},t)}const Rae="c1w9bbhr7-0-0-beta-51",Pae="c1creorc7-0-0-beta-51",Iae=`rdg-cell-drag-handle ${Rae}`;function Nae({gridRowStart:t,rows:e,column:n,columnWidth:r,maxColIdx:i,isLastRow:o,selectedPosition:u,latestDraggedOverRowIdx:l,isCellEditable:d,onRowsChange:h,onFill:g,onClick:y,setDragging:w,setDraggedOverRowIdx:v}){const{idx:C,rowIdx:E}=u;function $(P){if(P.preventDefault(),P.buttons!==1)return;w(!0),window.addEventListener("mouseover",L),window.addEventListener("mouseup",F);function L(q){q.buttons!==1&&F()}function F(){window.removeEventListener("mouseover",L),window.removeEventListener("mouseup",F),w(!1),O()}}function O(){const P=l.current;if(P===void 0)return;const L=E0&&(h==null||h(q,{indexes:Y,column:n}))}function k(){var X;const P=((X=n.colSpan)==null?void 0:X.call(n,{type:"ROW",row:e[E]}))??1,{insetInlineStart:L,...F}=sy(n,P),q="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",Y=n.idx+P-1===i;return{...F,gridRowStart:t,marginInlineEnd:Y?void 0:q,marginBlockEnd:o?void 0:q,insetInlineStart:L?`calc(${L} + ${r}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0}}return N.jsx("div",{style:k(),className:_l(Iae,n.frozen&&Pae),onClick:y,onMouseDown:$,onDoubleClick:_})}const Mae="cis5rrm7-0-0-beta-51";function kae({column:t,colSpan:e,row:n,rowIdx:r,onRowChange:i,closeEditor:o,onKeyDown:u,navigate:l}){var O,_,R;const d=T.useRef(void 0),h=((O=t.editorOptions)==null?void 0:O.commitOnOutsideClick)!==!1,g=Qa(()=>{v(!0,!1)});T.useEffect(()=>{if(!h)return;function k(){d.current=requestAnimationFrame(g)}return addEventListener("mousedown",k,{capture:!0}),()=>{removeEventListener("mousedown",k,{capture:!0}),y()}},[h,g]);function y(){cancelAnimationFrame(d.current)}function w(k){if(u){const P=D0(k);if(u({mode:"EDIT",row:n,column:t,rowIdx:r,navigate(){l(k)},onClose:v},P),P.isGridDefaultPrevented())return}k.key==="Escape"?v():k.key==="Enter"?v(!0):zie(k)&&l(k)}function v(k=!1,P=!0){k?i(n,!0,P):o(P)}function C(k,P=!1){i(k,P,P)}const{cellClass:E}=t,$=q1(t,"rdg-editor-container",!((_=t.editorOptions)!=null&&_.displayCellContent)&&Mae,typeof E=="function"?E(n):E);return N.jsx("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":!0,className:$,style:sy(t,e),onKeyDown:w,onMouseDownCapture:y,children:t.renderEditCell!=null&&N.jsxs(N.Fragment,{children:[t.renderEditCell({column:t,row:n,rowIdx:r,onRowChange:C,onClose:v}),((R=t.editorOptions)==null?void 0:R.displayCellContent)&&t.renderCell({column:t,row:n,rowIdx:r,isCellEditable:!0,tabIndex:-1,onRowChange:C})]})})}function Dae({column:t,rowIdx:e,isCellSelected:n,selectCell:r}){const{tabIndex:i,onFocus:o}=H1(n),{colSpan:u}=t,l=iM(t,e),d=t.idx+1;function h(){r({idx:t.idx,rowIdx:e})}return N.jsx("div",{role:"columnheader","aria-colindex":d,"aria-colspan":u,"aria-rowspan":l,"aria-selected":n,tabIndex:i,className:_l(tM,t.headerCellClass),style:{...nM(t,e,l),gridColumnStart:d,gridColumnEnd:d+u},onFocus:o,onClick:h,children:t.name})}const Fae="c6l2wv17-0-0-beta-51",Lae="c1kqdw7y7-0-0-beta-51",Uae=`rdg-cell-resizable ${Lae}`,jae="r1y6ywlx7-0-0-beta-51",Bae="rdg-cell-draggable",qae="c1bezg5o7-0-0-beta-51",Hae=`rdg-cell-dragging ${qae}`,zae="c1vc96037-0-0-beta-51",Vae=`rdg-cell-drag-over ${zae}`;function Gae({column:t,colSpan:e,rowIdx:n,isCellSelected:r,onColumnResize:i,onColumnsReorder:o,sortColumns:u,onSortColumnsChange:l,selectCell:d,shouldFocusGrid:h,direction:g,dragDropKey:y}){const w=T.useRef(!1),[v,C]=T.useState(!1),[E,$]=T.useState(!1),O=g==="rtl",_=iM(t,n),{tabIndex:R,childTabIndex:k,onFocus:P}=H1(r),L=u==null?void 0:u.findIndex(ke=>ke.columnKey===t.key),F=L!==void 0&&L>-1?u[L]:void 0,q=F==null?void 0:F.direction,Y=F!==void 0&&u.length>1?L+1:void 0,X=q&&!Y?q==="ASC"?"ascending":"descending":void 0,{sortable:ue,resizable:me,draggable:te}=t,be=q1(t,t.headerCellClass,{[Fae]:ue,[Uae]:me,[Bae]:te,[Hae]:v,[Vae]:E});function we(ke){if(ke.pointerType==="mouse"&&ke.buttons!==1)return;ke.preventDefault();const{currentTarget:Ke,pointerId:He}=ke,ut=Ke.parentElement,{right:pt,left:bt}=ut.getBoundingClientRect(),gt=O?ke.clientX-bt:pt-ke.clientX;w.current=!1;function Ut(Tt){const{width:en,right:xn,left:Dt}=ut.getBoundingClientRect();let Pt=O?xn+gt-Tt.clientX:Tt.clientX+gt-Dt;Pt=rM(Pt,t),en>0&&Pt!==en&&i(t,Pt)}function Gt(Tt){w.current||Ut(Tt),Ke.removeEventListener("pointermove",Ut),Ke.removeEventListener("lostpointercapture",Gt)}Ke.setPointerCapture(He),Ke.addEventListener("pointermove",Ut),Ke.addEventListener("lostpointercapture",Gt)}function B(){w.current=!0,i(t,"max-content")}function V(ke){if(l==null)return;const{sortDescendingFirst:Ke}=t;if(F===void 0){const He={columnKey:t.key,direction:Ke?"DESC":"ASC"};l(u&&ke?[...u,He]:[He])}else{let He;if((Ke===!0&&q==="DESC"||Ke!==!0&&q==="ASC")&&(He={columnKey:t.key,direction:q==="ASC"?"DESC":"ASC"}),ke){const ut=[...u];He?ut[L]=He:ut.splice(L,1),l(ut)}else l(He?[He]:[])}}function H(ke){d({idx:t.idx,rowIdx:n}),ue&&V(ke.ctrlKey||ke.metaKey)}function ie(ke){P==null||P(ke),h&&d({idx:0,rowIdx:n})}function G(ke){(ke.key===" "||ke.key==="Enter")&&(ke.preventDefault(),V(ke.ctrlKey||ke.metaKey))}function J(ke){ke.dataTransfer.setData(y,t.key),ke.dataTransfer.dropEffect="move",C(!0)}function he(){C(!1)}function $e(ke){ke.preventDefault(),ke.dataTransfer.dropEffect="move"}function Ce(ke){if($(!1),ke.dataTransfer.types.includes(y.toLowerCase())){const Ke=ke.dataTransfer.getData(y.toLowerCase());Ke!==t.key&&(ke.preventDefault(),o==null||o(Ke,t.key))}}function Be(ke){bP(ke)&&$(!0)}function Ie(ke){bP(ke)&&$(!1)}let tt;return te&&(tt={draggable:!0,onDragStart:J,onDragEnd:he,onDragOver:$e,onDragEnter:Be,onDragLeave:Ie,onDrop:Ce}),N.jsxs("div",{role:"columnheader","aria-colindex":t.idx+1,"aria-colspan":e,"aria-rowspan":_,"aria-selected":r,"aria-sort":X,tabIndex:h?0:R,className:be,style:{...nM(t,n,_),...sy(t,e)},onFocus:ie,onClick:H,onKeyDown:ue?G:void 0,...tt,children:[t.renderHeaderCell({column:t,sortDirection:q,priority:Y,tabIndex:k}),me&&N.jsx("div",{className:jae,onClick:Bie,onPointerDown:we,onDoubleClick:B})]})}function bP(t){const e=t.relatedTarget;return!t.currentTarget.contains(e)}const Wae="r1upfr807-0-0-beta-51",lT=`rdg-row ${Wae}`,Kae="r190mhd37-0-0-beta-51",BS="rdg-row-selected",Yae="r139qu9m7-0-0-beta-51",Qae="rdg-top-summary-row",Jae="rdg-bottom-summary-row",Xae="h10tskcx7-0-0-beta-51",fM=`rdg-header-row ${Xae}`;function Zae({rowIdx:t,columns:e,onColumnResize:n,onColumnsReorder:r,sortColumns:i,onSortColumnsChange:o,lastFrozenColumnIndex:u,selectedCellIdx:l,selectCell:d,shouldFocusGrid:h,direction:g}){const y=T.useId(),w=[];for(let v=0;ve&&d.parent!==void 0;)d=d.parent;if(d.level===e&&!u.has(d)){u.add(d);const{idx:h}=d;o.push(N.jsx(Dae,{column:d,rowIdx:t,isCellSelected:r===h,selectCell:i},h))}}}return N.jsx("div",{role:"row","aria-rowindex":t,className:fM,children:o})}var noe=T.memo(toe);function roe({className:t,rowIdx:e,gridRowStart:n,selectedCellIdx:r,isRowSelectionDisabled:i,isRowSelected:o,copiedCellIdx:u,draggedOverCellIdx:l,lastFrozenColumnIndex:d,row:h,viewportColumns:g,selectedCellEditor:y,onCellClick:w,onCellDoubleClick:v,onCellContextMenu:C,rowClass:E,setDraggedOverRowIdx:$,onMouseEnter:O,onRowChange:_,selectCell:R,...k}){const P=jS().renderCell,L=Qa((X,ue)=>{_(X,e,ue)});function F(X){$==null||$(e),O==null||O(X)}t=_l(lT,`rdg-row-${e%2===0?"even":"odd"}`,{[BS]:r===-1},E==null?void 0:E(h,e),t);const q=[];for(let X=0;X({isRowSelected:o,isRowSelectionDisabled:i}),[i,o]);return N.jsx(uT,{value:Y,children:N.jsx("div",{role:"row",className:t,onMouseEnter:F,style:oT(n),...k,children:q})})}const ioe=T.memo(roe);function aoe(t,e){return N.jsx(ioe,{...e},t)}function ooe({scrollToPosition:{idx:t,rowIdx:e},gridRef:n,setScrollToCellPosition:r}){const i=T.useRef(null);return T.useLayoutEffect(()=>{Sw(i.current)}),T.useLayoutEffect(()=>{function o(){r(null)}const u=new IntersectionObserver(o,{root:n.current,threshold:1});return u.observe(i.current),()=>{u.disconnect()}},[n,r]),N.jsx("div",{ref:i,style:{gridColumn:t===void 0?"1/-1":t+1,gridRow:e===void 0?"1/-1":e+2}})}const soe="a3ejtar7-0-0-beta-51",uoe=`rdg-sort-arrow ${soe}`;function loe({sortDirection:t,priority:e}){return N.jsxs(N.Fragment,{children:[coe({sortDirection:t}),foe({priority:e})]})}function coe({sortDirection:t}){return t===void 0?null:N.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:uoe,"aria-hidden":!0,children:N.jsx("path",{d:t==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function foe({priority:t}){return t}const doe="rnvodz57-0-0-beta-51",hoe=`rdg ${doe}`,poe="vlqv91k7-0-0-beta-51",moe=`rdg-viewport-dragging ${poe}`,goe="f1lsfrzw7-0-0-beta-51",yoe="f1cte0lg7-0-0-beta-51",voe="s8wc6fl7-0-0-beta-51";function boe({column:t,colSpan:e,row:n,rowIdx:r,isCellSelected:i,selectCell:o}){var w;const{tabIndex:u,childTabIndex:l,onFocus:d}=H1(i),{summaryCellClass:h}=t,g=q1(t,voe,typeof h=="function"?h(n):h);function y(){o({rowIdx:r,idx:t.idx})}return N.jsx("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":i,tabIndex:u,className:g,style:sy(t,e),onClick:y,onFocus:d,children:(w=t.renderSummaryCell)==null?void 0:w.call(t,{column:t,row:n,tabIndex:l})})}var woe=T.memo(boe);const Soe="skuhp557-0-0-beta-51",Coe="tf8l5ub7-0-0-beta-51",$oe=`rdg-summary-row ${Soe}`;function Eoe({rowIdx:t,gridRowStart:e,row:n,viewportColumns:r,top:i,bottom:o,lastFrozenColumnIndex:u,selectedCellIdx:l,isTop:d,selectCell:h,"aria-rowindex":g}){const y=[];for(let w=0;wnew Map),[Ge,Qe]=T.useState(()=>new Map),[ht,j]=T.useState(null),[A,M]=T.useState(!1),[Q,re]=T.useState(void 0),[ge,Ee]=T.useState(null),[rt,Wt]=T.useState(!1),[ae,ce]=T.useState(-1),nt=T.useCallback(De=>pe.get(De.key)??Ge.get(De.key)??De.width,[Ge,pe]),[Ht,ln,wt,jr]=wae(),{columns:tn,colSpanColumns:er,lastFrozenColumnIndex:On,headerRowsCount:Fi,colOverscanStartIdx:ca,colOverscanEndIdx:Ar,templateColumns:Fs,layoutCssVars:ro,totalFrozenColumnWidth:Ls}=vae({rawColumns:n,defaultColumnOptions:$,getColumnWidth:nt,scrollLeft:Dt,viewportWidth:ln,enableVirtualization:Gt}),$i=(i==null?void 0:i.length)??0,Xr=(o==null?void 0:o.length)??0,io=$i+Xr,Li=Fi+$i,Wo=Fi-1,In=-Li,Nn=In+Wo,An=r.length+Xr-1,[Ze,Ei]=T.useState(()=>({idx:-1,rowIdx:In-1,mode:"SELECT"})),Us=T.useRef(Q),Ko=T.useRef(null),ao=tt==="treegrid",Br=Fi*Ke,Ta=io*He,xi=wt-Br-Ta,Ui=y!=null&&v!=null,_a=Tt==="rtl",js=_a?"ArrowRight":"ArrowLeft",Mn=_a?"ArrowLeft":"ArrowRight",Qf=$e??Fi+r.length+io,Zp=T.useMemo(()=>({renderCheckbox:gt,renderSortStatus:bt,renderCell:pt}),[gt,bt,pt]),Yo=T.useMemo(()=>{let De=!1,qe=!1;if(u!=null&&y!=null&&y.size>0){for(const We of r)if(y.has(u(We))?De=!0:qe=!0,De&&qe)break}return{isRowSelected:De&&!qe,isIndeterminate:De&&qe}},[r,y,u]),{rowOverscanStartIdx:ji,rowOverscanEndIdx:qr,totalRowHeight:Ll,gridTemplateRows:em,getRowTop:Jf,getRowHeight:fy,findRowIdx:Iu}=Cae({rows:r,rowHeight:ke,clientHeight:xi,scrollTop:en,enableVirtualization:Gt}),Oi=Sae({columns:tn,colSpanColumns:er,colOverscanStartIdx:ca,colOverscanEndIdx:Ar,lastFrozenColumnIndex:On,rowOverscanStartIdx:ji,rowOverscanEndIdx:qr,rows:r,topSummaryRows:i,bottomSummaryRows:o}),{gridTemplateColumns:fa,handleColumnResize:Zr}=bae(tn,Oi,Fs,Ht,ln,pe,Ge,ze,Qe,F),Ul=ao?-1:0,Bs=tn.length-1,oo=Zo(Ze),so=Aa(Ze),Nu=Ke+Ll+Ta+jr,dy=Qa(Zr),ei=Qa(q),jl=Qa(E),Bl=Qa(O),Xf=Qa(_),Qo=Qa(R),ql=Qa(tm),Hl=Qa(Zf),Bi=Qa(Hs),zl=Qa(uo),Vl=Qa(({idx:De,rowIdx:qe})=>{uo({rowIdx:In+qe-1,idx:De})}),Gl=T.useCallback(De=>{re(De),Us.current=De},[]),qs=T.useCallback(()=>{const De=SP(Ht.current);if(De===null)return;Sw(De),(De.querySelector('[tabindex="0"]')??De).focus({preventScroll:!0})},[Ht]);T.useLayoutEffect(()=>{Ko.current!==null&&oo&&Ze.idx===-1&&(Ko.current.focus({preventScroll:!0}),Sw(Ko.current))},[oo,Ze]),T.useLayoutEffect(()=>{rt&&(Wt(!1),qs())},[rt,qs]),T.useImperativeHandle(e,()=>({element:Ht.current,scrollToCell({idx:De,rowIdx:qe}){const We=De!==void 0&&De>On&&De{xn(qe),Pt(tae(We))}),L==null||L(De)}function Hs(De,qe,We){if(typeof l!="function"||We===r[qe])return;const it=[...r];it[qe]=We,l(it,{indexes:[qe],column:De})}function Jo(){Ze.mode==="EDIT"&&Hs(tn[Ze.idx],Ze.rowIdx,Ze.row)}function Xo(){const{idx:De,rowIdx:qe}=Ze,We=r[qe],it=tn[De].key;j({row:We,columnKey:it}),X==null||X({sourceRow:We,sourceColumnKey:it})}function nm(){if(!ue||!l||ht===null||!zs(Ze))return;const{idx:De,rowIdx:qe}=Ze,We=tn[De],it=r[qe],_t=ue({sourceRow:ht.row,sourceColumnKey:ht.columnKey,targetRow:it,targetColumnKey:We.key});Hs(We,qe,_t)}function td(De){if(!so)return;const qe=r[Ze.rowIdx],{key:We,shiftKey:it}=De;if(Ui&&it&&We===" "){Y$(u);const _t=u(qe);Zf({row:qe,checked:!y.has(_t),isShiftClick:!1}),De.preventDefault();return}zs(Ze)&&Hie(De)&&Ei(({idx:_t,rowIdx:cn})=>({idx:_t,rowIdx:cn,mode:"EDIT",row:qe,originalRow:qe}))}function nd(De){return De>=Ul&&De<=Bs}function qi(De){return De>=0&&De=In&&qe<=An&&nd(De)}function ku({idx:De,rowIdx:qe}){return qi(qe)&&De>=0&&De<=Bs}function Aa({idx:De,rowIdx:qe}){return qi(qe)&&nd(De)}function zs(De){return ku(De)&&Wie({columns:tn,rows:r,selectedPosition:De})}function uo(De,qe){if(!Zo(De))return;Jo();const We=CP(Ze,De);if(qe&&zs(De)){const it=r[De.rowIdx];Ei({...De,mode:"EDIT",row:it,originalRow:it})}else We?Sw(SP(Ht.current)):(Wt(!0),Ei({...De,mode:"SELECT"}));P&&!We&&P({rowIdx:De.rowIdx,row:qi(De.rowIdx)?r[De.rowIdx]:void 0,column:tn[De.idx]})}function rm(De,qe,We){const{idx:it,rowIdx:_t}=Ze,cn=oo&&it===-1;switch(De){case"ArrowUp":return{idx:it,rowIdx:_t-1};case"ArrowDown":return{idx:it,rowIdx:_t+1};case js:return{idx:it-1,rowIdx:_t};case Mn:return{idx:it+1,rowIdx:_t};case"Tab":return{idx:it+(We?-1:1),rowIdx:_t};case"Home":return cn?{idx:it,rowIdx:In}:{idx:0,rowIdx:qe?In:_t};case"End":return cn?{idx:it,rowIdx:An}:{idx:Bs,rowIdx:qe?An:_t};case"PageUp":{if(Ze.rowIdx===In)return Ze;const Rn=Jf(_t)+fy(_t)-xi;return{idx:it,rowIdx:Rn>0?Iu(Rn):0}}case"PageDown":{if(Ze.rowIdx>=r.length)return Ze;const Rn=Jf(_t)+xi;return{idx:it,rowIdx:RnDe&&De>=Q)?Ze.idx:void 0}function im(){if(Y==null||Ze.mode==="EDIT"||!Aa(Ze))return;const{idx:De,rowIdx:qe}=Ze,We=tn[De];if(We.renderEditCell==null||We.editable===!1)return;const it=nt(We);return N.jsx(Nae,{gridRowStart:Li+qe+1,rows:r,column:We,columnWidth:it,maxColIdx:Bs,isLastRow:qe===An,selectedPosition:Ze,isCellEditable:zs,latestDraggedOverRowIdx:Us,onRowsChange:l,onClick:qs,onFill:Y,setDragging:M,setDraggedOverRowIdx:Gl})}function Hr(De){if(Ze.rowIdx!==De||Ze.mode==="SELECT")return;const{idx:qe,row:We}=Ze,it=tn[qe],_t=Fo(it,On,{type:"ROW",row:We}),cn=nn=>{Wt(nn),Ei(({idx:hr,rowIdx:Rr})=>({idx:hr,rowIdx:Rr,mode:"SELECT"}))},Rn=(nn,hr,Rr)=>{hr?xu.flushSync(()=>{Hs(it,Ze.rowIdx,nn),cn(Rr)}):Ei(es=>({...es,row:nn}))};return r[Ze.rowIdx]!==Ze.originalRow&&cn(!1),N.jsx(kae,{column:it,colSpan:_t,row:We,rowIdx:De,onRowChange:Rn,closeEditor:cn,onKeyDown:k,navigate:on},it.key)}function Hi(De){const qe=Ze.idx===-1?void 0:tn[Ze.idx];return qe!==void 0&&Ze.rowIdx===De&&!Oi.includes(qe)?Ze.idx>Ar?[...Oi,qe]:[...Oi.slice(0,On+1),qe,...Oi.slice(On+1)]:Oi}function Wl(){const De=[],{idx:qe,rowIdx:We}=Ze,it=so&&Weqr?qr+1:qr;for(let cn=it;cn<=_t;cn++){const Rn=cn===ji-1||cn===qr+1,nn=Rn?We:cn;let hr=Oi;const Rr=qe===-1?void 0:tn[qe];Rr!==void 0&&(Rn?hr=[Rr]:hr=Hi(nn));const es=r[nn],am=Li+nn+1;let Kl=nn,Yl=!1;typeof u=="function"&&(Kl=u(es),Yl=(y==null?void 0:y.has(Kl))??!1),De.push(ut(Kl,{"aria-rowindex":Li+nn+1,"aria-selected":Ui?Yl:void 0,rowIdx:nn,row:es,viewportColumns:hr,isRowSelectionDisabled:(w==null?void 0:w(es))??!1,isRowSelected:Yl,onCellClick:Bl,onCellDoubleClick:Xf,onCellContextMenu:Qo,rowClass:B,gridRowStart:am,copiedCellIdx:ht!==null&&ht.row===es?tn.findIndex(zr=>zr.key===ht.columnKey):void 0,selectedCellIdx:We===nn?qe:void 0,draggedOverCellIdx:sn(nn),setDraggedOverRowIdx:A?Gl:void 0,lastFrozenColumnIndex:On,onRowChange:Bi,selectCell:zl,selectedCellEditor:Hr(nn)}))}return De}(Ze.idx>Bs||Ze.rowIdx>An)&&(Ei({idx:-1,rowIdx:In-1,mode:"SELECT"}),Gl(void 0));let lo=`repeat(${Fi}, ${Ke}px)`;$i>0&&(lo+=` repeat(${$i}, ${He}px)`),r.length>0&&(lo+=em),Xr>0&&(lo+=` repeat(${Xr}, ${He}px)`);const rd=Ze.idx===-1&&Ze.rowIdx!==In-1;return N.jsxs("div",{role:tt,"aria-label":ie,"aria-labelledby":G,"aria-description":J,"aria-describedby":he,"aria-multiselectable":Ui?!0:void 0,"aria-colcount":tn.length,"aria-rowcount":Qf,className:_l(hoe,{[moe]:A},be),style:{...we,scrollPaddingInlineStart:Ze.idx>On||(ge==null?void 0:ge.idx)!==void 0?`${Ls}px`:void 0,scrollPaddingBlock:qi(Ze.rowIdx)||(ge==null?void 0:ge.rowIdx)!==void 0?`${Br+$i*He}px ${Xr*He}px`:void 0,gridTemplateColumns:fa,gridTemplateRows:lo,"--rdg-header-row-height":`${Ke}px`,"--rdg-scroll-height":`${Nu}px`,...ro},dir:Tt,ref:Ht,onScroll:ed,onKeyDown:Mu,"data-testid":Ce,"data-cy":Be,children:[N.jsxs(aM,{value:Zp,children:[N.jsx(lM,{value:ql,children:N.jsxs(uM,{value:Yo,children:[Array.from({length:Wo},(De,qe)=>N.jsx(noe,{rowIdx:qe+1,level:-Wo+qe,columns:Hi(In+qe),selectedCellIdx:Ze.rowIdx===In+qe?Ze.idx:void 0,selectCell:Vl},qe)),N.jsx(eoe,{rowIdx:Fi,columns:Hi(Nn),onColumnResize:dy,onColumnsReorder:ei,sortColumns:C,onSortColumnsChange:jl,lastFrozenColumnIndex:On,selectedCellIdx:Ze.rowIdx===Nn?Ze.idx:void 0,selectCell:Vl,shouldFocusGrid:!oo,direction:Tt})]})}),r.length===0&&Ut?Ut:N.jsxs(N.Fragment,{children:[i==null?void 0:i.map((De,qe)=>{const We=Fi+1+qe,it=Nn+1+qe,_t=Ze.rowIdx===it,cn=Br+He*qe;return N.jsx(wP,{"aria-rowindex":We,rowIdx:it,gridRowStart:We,row:De,top:cn,bottom:void 0,viewportColumns:Hi(it),lastFrozenColumnIndex:On,selectedCellIdx:_t?Ze.idx:void 0,isTop:!0,selectCell:zl},qe)}),N.jsx(oM,{value:Hl,children:Wl()}),o==null?void 0:o.map((De,qe)=>{const We=Li+r.length+qe+1,it=r.length+qe,_t=Ze.rowIdx===it,cn=xi>Ll?wt-He*(o.length-qe):void 0,Rn=cn===void 0?He*(o.length-1-qe):void 0;return N.jsx(wP,{"aria-rowindex":Qf-Xr+qe+1,rowIdx:it,gridRowStart:We,row:De,top:cn,bottom:Rn,viewportColumns:Hi(it),lastFrozenColumnIndex:On,selectedCellIdx:_t?Ze.idx:void 0,isTop:!1,selectCell:zl},qe)})]})]}),im(),Gie(Oi),ao&&N.jsx("div",{ref:Ko,tabIndex:rd?0:-1,className:_l(goe,{[yoe]:!qi(Ze.rowIdx),[Kae]:rd,[Yae]:rd&&On!==-1}),style:{gridRowStart:Ze.rowIdx+Li+1}}),ge!==null&&N.jsx(ooe,{scrollToPosition:ge,setScrollToCellPosition:Ee,gridRef:Ht})]})}function SP(t){return t.querySelector(':scope > [role="row"] > [tabindex="0"]')}function CP(t,e){return t.idx===e.idx&&t.rowIdx===e.rowIdx}function Ooe({id:t,groupKey:e,childRows:n,isExpanded:r,isCellSelected:i,column:o,row:u,groupColumnIndex:l,isGroupByColumn:d,toggleGroup:h}){var E;const{tabIndex:g,childTabIndex:y,onFocus:w}=H1(i);function v(){h(t)}const C=d&&l===o.idx;return N.jsx("div",{role:"gridcell","aria-colindex":o.idx+1,"aria-selected":i,tabIndex:g,className:q1(o),style:{...sy(o),cursor:C?"pointer":"default"},onClick:C?v:void 0,onFocus:w,children:(!d||C)&&((E=o.renderGroupCell)==null?void 0:E.call(o,{groupKey:e,childRows:n,column:o,row:u,isExpanded:r,tabIndex:y,toggleGroup:v}))},o.key)}var Toe=T.memo(Ooe);const _oe="g1yxluv37-0-0-beta-51",Aoe=`rdg-group-row ${_oe}`;function Roe({className:t,row:e,rowIdx:n,viewportColumns:r,selectedCellIdx:i,isRowSelected:o,selectCell:u,gridRowStart:l,groupBy:d,toggleGroup:h,isRowSelectionDisabled:g,...y}){const w=r[0].key===aS?e.level+1:e.level;function v(){u({rowIdx:n,idx:-1})}const C=T.useMemo(()=>({isRowSelectionDisabled:!1,isRowSelected:o}),[o]);return N.jsx(uT,{value:C,children:N.jsx("div",{role:"row","aria-level":e.level+1,"aria-setsize":e.setSize,"aria-posinset":e.posInSet+1,"aria-expanded":e.isExpanded,className:_l(lT,Aoe,`rdg-row-${n%2===0?"even":"odd"}`,i===-1&&BS,t),onClick:v,style:oT(l),...y,children:r.map(E=>N.jsx(Toe,{id:e.id,groupKey:e.groupKey,childRows:e.childRows,isExpanded:e.isExpanded,isCellSelected:i===E.idx,column:E,row:e,groupColumnIndex:w,toggleGroup:h,isGroupByColumn:d.includes(E.key)},E.key))})})}T.memo(Roe);const Poe=Ae.createContext({sidebarVisible:!1,threshold:"desktop",routers:[{id:"url-router"}],toggleSidebar(){},setSidebarRef(t){},persistSidebarSize(t){},setFocusedRouter(t){},closeCurrentRouter(){},sidebarItemSelected(){},collapseLeftPanel(){},addRouter(){},updateSidebarSize(){},hide(){},show(){}});function Ioe(){return T.useContext(Poe)}const Noe=({value:t})=>{const{addRouter:e}=Ioe(),n=r=>{r.stopPropagation(),e(t)};return N.jsx("div",{className:"table-btn table-open-in-new-router",onClick:n,children:N.jsx(Moe,{})})},Moe=({size:t=16,color:e="silver",style:n={}})=>N.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer",...n},children:N.jsx("path",{d:"M9 3H5C3.895 3 3 3.895 3 5v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2v-4h-2v4H5V5h4V3ZM21 3h-6v2h3.586l-9.293 9.293 1.414 1.414L20 6.414V10h2V3Z",fill:e})});/** +***************************************************************************** */var Hx=function(t,e){return Hx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Hx(t,e)};function X1(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Hx(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Mi=function(){return Mi=Object.assign||function(e){for(var n,r=1,i=arguments.length;r{t(!1)})},refs:[]}),Qie=T.createContext(null),Xie=()=>{const t=T.useContext(Qie);if(!t)throw new Error("useOverlay must be inside OverlayProvider");return t},Zie=()=>{const{openDrawer:t,openModal:e}=Xie();return{confirmDrawer:({title:i,description:o,cancelLabel:u,confirmLabel:l})=>t(({close:d,resolve:h})=>N.jsxs("div",{className:"confirm-drawer-container p-3",children:[N.jsx("h2",{children:i}),N.jsx("span",{children:o}),N.jsxs("div",{children:[N.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>h(),children:l}),N.jsx("button",{className:"d-block w-100 btn",onClick:()=>d(),children:u})]})]})),confirmModal:({title:i,description:o,cancelLabel:u,confirmLabel:l})=>e(({close:d,resolve:h})=>N.jsxs("div",{className:"confirm-drawer-container p-3",children:[N.jsx("span",{children:o}),N.jsxs("div",{className:"row mt-4",children:[N.jsx("div",{className:"col-md-6",children:N.jsx("button",{className:"d-block w-100 btn btn-primary",onClick:()=>h(),children:l})}),N.jsx("div",{className:"col-md-6",children:N.jsx("button",{className:"d-block w-100 btn",onClick:()=>d(),children:u})})]})]}),{title:i})}},eae=()=>{const t=T.useRef();return{withDebounce:(n,r)=>{t.current&&clearTimeout(t.current),t.current=setTimeout(n,r)}}};function tae({urlMask:t,submitDelete:e,onRecordsDeleted:n,initialFilters:r}){const i=yn(),o=Lr(),{confirmModal:u}=Zie(),{withDebounce:l}=eae(),d={itemsPerPage:100,startIndex:0,sorting:[],...r||{}},[h,g]=T.useState(d),[y,w]=T.useState(d),{search:v}=Ll(),C=T.useRef(!1);T.useEffect(()=>{if(C.current)return;C.current=!0;let we={};try{we=ny.parse(v.substring(1)),delete we.startIndex}catch{}g({...d,...we}),w({...d,...we})},[v]);const[E,$]=T.useState([]),_=(we=>{var V;const B={...we};return delete B.startIndex,delete B.itemsPerPage,((V=B==null?void 0:B.sorting)==null?void 0:V.length)===0&&delete B.sorting,JSON.stringify(B)})(h),R=we=>{$(we)},k=(we,B=!0)=>{const V={...h,...we};B&&(V.startIndex=0),g(V),o.push("?"+ny.stringify(V),void 0,{},!0),l(()=>{w(V)},500)},P=we=>{k({itemsPerPage:we},!1)},L=we=>we.map(B=>`${B.columnName} ${B.direction}`).join(", "),F=we=>{k({sorting:we,sort:L(we)},!1)},q=we=>{k({startIndex:we},!1)},Y=we=>{k({startIndex:0})};T.useContext(fM);const X=we=>({query:we.map(B=>`unique_id = ${B}`).join(" or "),uniqueId:""}),ue=async()=>{u({title:i.confirm,confirmLabel:i.common.yes,cancelLabel:i.common.no,description:i.deleteConfirmMessage}).promise.then(({type:we})=>{if(we==="resolved")return e(X(E),null)}).then(()=>{n&&n()})},me=()=>({label:i.deleteAction,onSelect(){ue()},icon:hy.delete,uniqueActionKey:"GENERAL_DELETE_ACTION"}),{addActions:te,removeActionMenu:be}=ZX();return T.useEffect(()=>{if(E.length>0&&typeof e<"u")return te("table-selection",[me()]);be("table-selection")},[E]),Y1(Bn.Delete,()=>{E.length>0&&typeof e<"u"&&ue()}),{filters:h,setFilters:g,setFilter:k,setSorting:F,setStartIndex:q,selection:E,setSelection:R,onFiltersChange:Y,queryHash:_,setPageSize:P,debouncedFilters:y}}function nae({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(Sn),l=e?e(o):u?u(o):Qr(o);let h=`${"/table-view-sizing/:uniqueId".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,v=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!v&&!i&&(C=!1):C=!1,{query:Go([o,n,"*abac.TableViewSizingEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}class vT extends Vt{constructor(...e){super(...e),this.children=void 0,this.tableName=void 0,this.sizes=void 0}}vT.Navigation={edit(t,e){return`${e?"/"+e:".."}/table-view-sizing/edit/${t}`},create(t){return`${t?"/"+t:".."}/table-view-sizing/new`},single(t,e){return`${e?"/"+e:".."}/table-view-sizing/${t}`},query(t={},e){return`${e?"/"+e:".."}/table-view-sizings`},Redit:"table-view-sizing/edit/:uniqueId",Rcreate:"table-view-sizing/new",Rsingle:"table-view-sizing/:uniqueId",Rquery:"table-view-sizings"};vT.definition={rpc:{query:{}},name:"tableViewSizing",features:{},gormMap:{},fields:[{name:"tableName",type:"string",validate:"required",computedType:"string",gormMap:{}},{name:"sizes",type:"string",computedType:"string",gormMap:{}}],cliShort:"tvs",description:"Used to store meta data about user tables (in front-end, or apps for example) about the size of the columns"};vT.Fields={...Vt.Fields,tableName:"tableName",sizes:"sizes"};function rae(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(Sn),u=r?r(i):o?o(i):Qr(i);let d=`${"/table-view-sizing".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`;const g=Fr(v=>u("PATCH",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueriesData("*abac.TableViewSizingEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}function dM(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e1&&(!t.frozen||t.idx+r-1<=e))return r}function iae(t){t.stopPropagation()}function Iw(t){t==null||t.scrollIntoView({inline:"nearest",block:"nearest"})}function G0(t){let e=!1;const n={...t,preventGridDefault(){e=!0},isGridDefaultPrevented(){return e}};return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),n}const aae=new Set(["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","Meta","NumLock","ScrollLock","Shift","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Insert","ContextMenu","Escape","Pause","Play","PrintScreen","F1","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"]);function zx(t){return(t.ctrlKey||t.metaKey)&&t.key!=="Control"}function oae(t){return zx(t)&&t.keyCode!==86?!1:!aae.has(t.key)}function sae({key:t,target:e}){var n;return t==="Tab"&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)?((n=e.closest(".rdg-editor-container"))==null?void 0:n.querySelectorAll("input, textarea, select").length)===1:!1}const uae="mlln6zg7-0-0-beta-51";function lae(t){return t.map(({key:e,idx:n,minWidth:r,maxWidth:i})=>N.jsx("div",{className:uae,style:{gridColumnStart:n+1,minWidth:r,maxWidth:i},"data-measuring-cell-key":e},e))}function cae({selectedPosition:t,columns:e,rows:n}){const r=e[t.idx],i=n[t.rowIdx];return hM(r,i)}function hM(t,e){return t.renderEditCell!=null&&(typeof t.editable=="function"?t.editable(e):t.editable)!==!1}function fae({rows:t,topSummaryRows:e,bottomSummaryRows:n,rowIdx:r,mainHeaderRowIdx:i,lastFrozenColumnIndex:o,column:u}){const l=(e==null?void 0:e.length)??0;if(r===i)return qo(u,o,{type:"HEADER"});if(e&&r>i&&r<=l+i)return qo(u,o,{type:"SUMMARY",row:e[r+l]});if(r>=0&&r{for(const F of i){const q=F.idx;if(q>$)break;const Y=fae({rows:o,topSummaryRows:u,bottomSummaryRows:l,rowIdx:O,mainHeaderRowIdx:h,lastFrozenColumnIndex:C,column:F});if(Y&&$>q&&$L.level+h,P=()=>{if(e){let F=r[$].parent;for(;F!==void 0;){const q=k(F);if(O===q){$=F.idx+F.colSpan;break}F=F.parent}}else if(t){let F=r[$].parent,q=!1;for(;F!==void 0;){const Y=k(F);if(O>=Y){$=F.idx,O=Y,q=!0;break}F=F.parent}q||($=y,O=w)}};if(E(v)&&(R(e),O=q&&(O=Y,$=F.idx),F=F.parent}}return{idx:$,rowIdx:O}}function hae({maxColIdx:t,minRowIdx:e,maxRowIdx:n,selectedPosition:{rowIdx:r,idx:i},shiftKey:o}){return o?i===0&&r===e:i===t&&r===n}const pae="cj343x07-0-0-beta-51",pM=`rdg-cell ${pae}`,mae="csofj7r7-0-0-beta-51",gae=`rdg-cell-frozen ${mae}`;function bT(t){return{"--rdg-grid-row-start":t}}function mM(t,e,n){const r=e+1,i=`calc(${n-1} * var(--rdg-header-row-height))`;return t.parent===void 0?{insetBlockStart:0,gridRowStart:1,gridRowEnd:r,paddingBlockStart:i}:{insetBlockStart:`calc(${e-n} * var(--rdg-header-row-height))`,gridRowStart:r-n,gridRowEnd:r,paddingBlockStart:i}}function gy(t,e=1){const n=t.idx+1;return{gridColumnStart:n,gridColumnEnd:n+e,insetInlineStart:t.frozen?`var(--rdg-frozen-left-${t.idx})`:void 0}}function Z1(t,...e){return Pl(pM,{[gae]:t.frozen},...e)}const{min:A1,max:mS,floor:RP,sign:yae,abs:vae}=Math;function uE(t){if(typeof t!="function")throw new Error("Please specify the rowKeyGetter prop to use selection")}function gM(t,{minWidth:e,maxWidth:n}){return t=mS(t,e),typeof n=="number"&&n>=e?A1(t,n):t}function yM(t,e){return t.parent===void 0?e:t.level-t.parent.level}const bae="c1bn88vv7-0-0-beta-51",wae=`rdg-checkbox-input ${bae}`;function Sae({onChange:t,indeterminate:e,...n}){function r(i){t(i.target.checked,i.nativeEvent.shiftKey)}return N.jsx("input",{ref:i=>{i&&(i.indeterminate=e===!0)},type:"checkbox",className:wae,onChange:r,...n})}function Cae(t){try{return t.row[t.column.key]}catch{return null}}const vM=T.createContext(void 0);function QS(){return T.useContext(vM)}function wT({value:t,tabIndex:e,indeterminate:n,disabled:r,onChange:i,"aria-label":o,"aria-labelledby":u}){const l=QS().renderCheckbox;return l({"aria-label":o,"aria-labelledby":u,tabIndex:e,indeterminate:n,disabled:r,checked:t,onChange:i})}const ST=T.createContext(void 0),bM=T.createContext(void 0);function wM(){const t=T.useContext(ST),e=T.useContext(bM);if(t===void 0||e===void 0)throw new Error("useRowSelection must be used within renderCell");return{isRowSelectionDisabled:t.isRowSelectionDisabled,isRowSelected:t.isRowSelected,onRowSelectionChange:e}}const SM=T.createContext(void 0),CM=T.createContext(void 0);function $ae(){const t=T.useContext(SM),e=T.useContext(CM);if(t===void 0||e===void 0)throw new Error("useHeaderRowSelection must be used within renderHeaderCell");return{isIndeterminate:t.isIndeterminate,isRowSelected:t.isRowSelected,onRowSelectionChange:e}}const gS="rdg-select-column";function Eae(t){const{isIndeterminate:e,isRowSelected:n,onRowSelectionChange:r}=$ae();return N.jsx(wT,{"aria-label":"Select All",tabIndex:t.tabIndex,indeterminate:e,value:n,onChange:i=>{r({checked:e?!1:i})}})}function xae(t){const{isRowSelectionDisabled:e,isRowSelected:n,onRowSelectionChange:r}=wM();return N.jsx(wT,{"aria-label":"Select",tabIndex:t.tabIndex,disabled:e,value:n,onChange:(i,o)=>{r({row:t.row,checked:i,isShiftClick:o})}})}function Oae(t){const{isRowSelected:e,onRowSelectionChange:n}=wM();return N.jsx(wT,{"aria-label":"Select Group",tabIndex:t.tabIndex,value:e,onChange:r=>{n({row:t.row,checked:r,isShiftClick:!1})}})}const Tae={key:gS,name:"",width:35,minWidth:35,maxWidth:35,resizable:!1,sortable:!1,frozen:!0,renderHeaderCell(t){return N.jsx(Eae,{...t})},renderCell(t){return N.jsx(xae,{...t})},renderGroupCell(t){return N.jsx(Oae,{...t})}},_ae="h44jtk67-0-0-beta-51",Aae="hcgkhxz7-0-0-beta-51",Rae=`rdg-header-sort-name ${Aae}`;function Pae({column:t,sortDirection:e,priority:n}){return t.sortable?N.jsx(Iae,{sortDirection:e,priority:n,children:t.name}):t.name}function Iae({sortDirection:t,priority:e,children:n}){const r=QS().renderSortStatus;return N.jsxs("span",{className:_ae,children:[N.jsx("span",{className:Rae,children:n}),N.jsx("span",{children:r({sortDirection:t,priority:e})})]})}const Nae="auto",Mae=50;function kae({rawColumns:t,defaultColumnOptions:e,getColumnWidth:n,viewportWidth:r,scrollLeft:i,enableVirtualization:o}){const u=(e==null?void 0:e.width)??Nae,l=(e==null?void 0:e.minWidth)??Mae,d=(e==null?void 0:e.maxWidth)??void 0,h=(e==null?void 0:e.renderCell)??Cae,g=(e==null?void 0:e.renderHeaderCell)??Pae,y=(e==null?void 0:e.sortable)??!1,w=(e==null?void 0:e.resizable)??!1,v=(e==null?void 0:e.draggable)??!1,{columns:C,colSpanColumns:E,lastFrozenColumnIndex:$,headerRowsCount:O}=T.useMemo(()=>{let q=-1,Y=1;const X=[];ue(t,1);function ue(te,be,we){for(const B of te){if("children"in B){const ie={name:B.name,parent:we,idx:-1,colSpan:0,level:0,headerCellClass:B.headerCellClass};ue(B.children,be+1,ie);continue}const V=B.frozen??!1,H={...B,parent:we,idx:0,level:0,frozen:V,width:B.width??u,minWidth:B.minWidth??l,maxWidth:B.maxWidth??d,sortable:B.sortable??y,resizable:B.resizable??w,draggable:B.draggable??v,renderCell:B.renderCell??h,renderHeaderCell:B.renderHeaderCell??g};X.push(H),V&&q++,be>Y&&(Y=be)}}X.sort(({key:te,frozen:be},{key:we,frozen:B})=>te===gS?-1:we===gS?1:be?B?0:-1:B?1:0);const me=[];return X.forEach((te,be)=>{te.idx=be,$M(te,be,0),te.colSpan!=null&&me.push(te)}),{columns:X,colSpanColumns:me,lastFrozenColumnIndex:q,headerRowsCount:Y}},[t,u,l,d,h,g,w,y,v]),{templateColumns:_,layoutCssVars:R,totalFrozenColumnWidth:k,columnMetrics:P}=T.useMemo(()=>{const q=new Map;let Y=0,X=0;const ue=[];for(const te of C){let be=n(te);typeof be=="number"?be=gM(be,te):be=te.minWidth,ue.push(`${be}px`),q.set(te,{width:be,left:Y}),Y+=be}if($!==-1){const te=q.get(C[$]);X=te.left+te.width}const me={};for(let te=0;te<=$;te++){const be=C[te];me[`--rdg-frozen-left-${be.idx}`]=`${q.get(be).left}px`}return{templateColumns:ue,layoutCssVars:me,totalFrozenColumnWidth:X,columnMetrics:q}},[n,C,$]),[L,F]=T.useMemo(()=>{if(!o)return[0,C.length-1];const q=i+k,Y=i+r,X=C.length-1,ue=A1($+1,X);if(q>=Y)return[ue,ue];let me=ue;for(;meq)break;me++}let te=me;for(;te=Y)break;te++}const be=mS(ue,me-1),we=A1(X,te+1);return[be,we]},[P,C,$,i,k,r,o]);return{columns:C,colSpanColumns:E,colOverscanStartIdx:L,colOverscanEndIdx:F,templateColumns:_,layoutCssVars:R,headerRowsCount:O,lastFrozenColumnIndex:$,totalFrozenColumnWidth:k}}function $M(t,e,n){if(n{g.current=i,$(C)});function $(_){_.length!==0&&d(R=>{const k=new Map(R);let P=!1;for(const L of _){const F=PP(r,L);P||(P=F!==R.get(L)),F===void 0?k.delete(L):k.set(L,F)}return P?k:R})}function O(_,R){const{key:k}=_,P=[...n],L=[];for(const{key:q,idx:Y,width:X}of e)if(k===q){const ue=typeof R=="number"?`${R}px`:R;P[Y]=ue}else y&&typeof X=="string"&&!o.has(q)&&(P[Y]=X,L.push(q));r.current.style.gridTemplateColumns=P.join(" ");const F=typeof R=="number"?R:PP(r,k);xu.flushSync(()=>{l(q=>{const Y=new Map(q);return Y.set(k,F),Y}),$(L)}),h==null||h(_,F)}return{gridTemplateColumns:E,handleColumnResize:O}}function PP(t,e){var i;const n=`[data-measuring-cell-key="${CSS.escape(e)}"]`,r=(i=t.current)==null?void 0:i.querySelector(n);return r==null?void 0:r.getBoundingClientRect().width}function Fae(){const t=T.useRef(null),[e,n]=T.useState(1),[r,i]=T.useState(1),[o,u]=T.useState(0);return T.useLayoutEffect(()=>{const{ResizeObserver:l}=window;if(l==null)return;const{clientWidth:d,clientHeight:h,offsetWidth:g,offsetHeight:y}=t.current,{width:w,height:v}=t.current.getBoundingClientRect(),C=y-h,E=w-g+d,$=v-C;n(E),i($),u(C);const O=new l(_=>{const R=_[0].contentBoxSize[0],{clientHeight:k,offsetHeight:P}=t.current;xu.flushSync(()=>{n(R.inlineSize),i(R.blockSize),u(P-k)})});return O.observe(t.current),()=>{O.disconnect()}},[]),[t,e,r,o]}function Xa(t){const e=T.useRef(t);T.useEffect(()=>{e.current=t});const n=T.useCallback((...r)=>{e.current(...r)},[]);return t&&n}function eb(t){const[e,n]=T.useState(!1);e&&!t&&n(!1);function r(o){o.target!==o.currentTarget&&n(!0)}return{tabIndex:t&&!e?0:-1,childTabIndex:t?0:-1,onFocus:t?r:void 0}}function Lae({columns:t,colSpanColumns:e,rows:n,topSummaryRows:r,bottomSummaryRows:i,colOverscanStartIdx:o,colOverscanEndIdx:u,lastFrozenColumnIndex:l,rowOverscanStartIdx:d,rowOverscanEndIdx:h}){const g=T.useMemo(()=>{if(o===0)return 0;let y=o;const w=(v,C)=>C!==void 0&&v+C>o?(y=v,!0):!1;for(const v of e){const C=v.idx;if(C>=y||w(C,qo(v,l,{type:"HEADER"})))break;for(let E=d;E<=h;E++){const $=n[E];if(w(C,qo(v,l,{type:"ROW",row:$})))break}if(r!=null){for(const E of r)if(w(C,qo(v,l,{type:"SUMMARY",row:E})))break}if(i!=null){for(const E of i)if(w(C,qo(v,l,{type:"SUMMARY",row:E})))break}}return y},[d,h,n,r,i,o,l,e]);return T.useMemo(()=>{const y=[];for(let w=0;w<=u;w++){const v=t[w];w{if(typeof e=="number")return{totalRowHeight:e*t.length,gridTemplateRows:` repeat(${t.length}, ${e}px)`,getRowTop:$=>$*e,getRowHeight:()=>e,findRowIdx:$=>RP($/e)};let w=0,v=" ";const C=t.map($=>{const O=e($),_={top:w,height:O};return v+=`${O}px `,w+=O,_}),E=$=>mS(0,A1(t.length-1,$));return{totalRowHeight:w,gridTemplateRows:v,getRowTop:$=>C[E($)].top,getRowHeight:$=>C[E($)].height,findRowIdx($){let O=0,_=C.length-1;for(;O<=_;){const R=O+RP((_-O)/2),k=C[R].top;if(k===$)return R;if(k<$?O=R+1:k>$&&(_=R-1),O>_)return _}return 0}}},[e,t]);let g=0,y=t.length-1;if(i){const v=h(r),C=h(r+n);g=mS(0,v-4),y=A1(t.length-1,C+4)}return{rowOverscanStartIdx:g,rowOverscanEndIdx:y,totalRowHeight:o,gridTemplateRows:u,getRowTop:l,getRowHeight:d,findRowIdx:h}}const jae="c6ra8a37-0-0-beta-51",Bae=`rdg-cell-copied ${jae}`,qae="cq910m07-0-0-beta-51",Hae=`rdg-cell-dragged-over ${qae}`;function zae({column:t,colSpan:e,isCellSelected:n,isCopied:r,isDraggedOver:i,row:o,rowIdx:u,className:l,onClick:d,onDoubleClick:h,onContextMenu:g,onRowChange:y,selectCell:w,style:v,...C}){const{tabIndex:E,childTabIndex:$,onFocus:O}=eb(n),{cellClass:_}=t;l=Z1(t,{[Bae]:r,[Hae]:i},typeof _=="function"?_(o):_,l);const R=hM(t,o);function k(Y){w({rowIdx:u,idx:t.idx},Y)}function P(Y){if(d){const X=G0(Y);if(d({rowIdx:u,row:o,column:t,selectCell:k},X),X.isGridDefaultPrevented())return}k()}function L(Y){if(g){const X=G0(Y);if(g({rowIdx:u,row:o,column:t,selectCell:k},X),X.isGridDefaultPrevented())return}k()}function F(Y){if(h){const X=G0(Y);if(h({rowIdx:u,row:o,column:t,selectCell:k},X),X.isGridDefaultPrevented())return}k(!0)}function q(Y){y(t,Y)}return N.jsx("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":n,"aria-readonly":!R||void 0,tabIndex:E,className:l,style:{...gy(t,e),...v},onClick:P,onDoubleClick:F,onContextMenu:L,onFocus:O,...C,children:t.renderCell({column:t,row:o,rowIdx:u,isCellEditable:R,tabIndex:$,onRowChange:q})})}const Vae=T.memo(zae);function Gae(t,e){return N.jsx(Vae,{...e},t)}const Wae="c1w9bbhr7-0-0-beta-51",Kae="c1creorc7-0-0-beta-51",Yae=`rdg-cell-drag-handle ${Wae}`;function Jae({gridRowStart:t,rows:e,column:n,columnWidth:r,maxColIdx:i,isLastRow:o,selectedPosition:u,latestDraggedOverRowIdx:l,isCellEditable:d,onRowsChange:h,onFill:g,onClick:y,setDragging:w,setDraggedOverRowIdx:v}){const{idx:C,rowIdx:E}=u;function $(P){if(P.preventDefault(),P.buttons!==1)return;w(!0),window.addEventListener("mouseover",L),window.addEventListener("mouseup",F);function L(q){q.buttons!==1&&F()}function F(){window.removeEventListener("mouseover",L),window.removeEventListener("mouseup",F),w(!1),O()}}function O(){const P=l.current;if(P===void 0)return;const L=E0&&(h==null||h(q,{indexes:Y,column:n}))}function k(){var X;const P=((X=n.colSpan)==null?void 0:X.call(n,{type:"ROW",row:e[E]}))??1,{insetInlineStart:L,...F}=gy(n,P),q="calc(var(--rdg-drag-handle-size) * -0.5 + 1px)",Y=n.idx+P-1===i;return{...F,gridRowStart:t,marginInlineEnd:Y?void 0:q,marginBlockEnd:o?void 0:q,insetInlineStart:L?`calc(${L} + ${r}px + var(--rdg-drag-handle-size) * -0.5 - 1px)`:void 0}}return N.jsx("div",{style:k(),className:Pl(Yae,n.frozen&&Kae),onClick:y,onMouseDown:$,onDoubleClick:_})}const Qae="cis5rrm7-0-0-beta-51";function Xae({column:t,colSpan:e,row:n,rowIdx:r,onRowChange:i,closeEditor:o,onKeyDown:u,navigate:l}){var O,_,R;const d=T.useRef(void 0),h=((O=t.editorOptions)==null?void 0:O.commitOnOutsideClick)!==!1,g=Xa(()=>{v(!0,!1)});T.useEffect(()=>{if(!h)return;function k(){d.current=requestAnimationFrame(g)}return addEventListener("mousedown",k,{capture:!0}),()=>{removeEventListener("mousedown",k,{capture:!0}),y()}},[h,g]);function y(){cancelAnimationFrame(d.current)}function w(k){if(u){const P=G0(k);if(u({mode:"EDIT",row:n,column:t,rowIdx:r,navigate(){l(k)},onClose:v},P),P.isGridDefaultPrevented())return}k.key==="Escape"?v():k.key==="Enter"?v(!0):sae(k)&&l(k)}function v(k=!1,P=!0){k?i(n,!0,P):o(P)}function C(k,P=!1){i(k,P,P)}const{cellClass:E}=t,$=Z1(t,"rdg-editor-container",!((_=t.editorOptions)!=null&&_.displayCellContent)&&Qae,typeof E=="function"?E(n):E);return N.jsx("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":!0,className:$,style:gy(t,e),onKeyDown:w,onMouseDownCapture:y,children:t.renderEditCell!=null&&N.jsxs(N.Fragment,{children:[t.renderEditCell({column:t,row:n,rowIdx:r,onRowChange:C,onClose:v}),((R=t.editorOptions)==null?void 0:R.displayCellContent)&&t.renderCell({column:t,row:n,rowIdx:r,isCellEditable:!0,tabIndex:-1,onRowChange:C})]})})}function Zae({column:t,rowIdx:e,isCellSelected:n,selectCell:r}){const{tabIndex:i,onFocus:o}=eb(n),{colSpan:u}=t,l=yM(t,e),d=t.idx+1;function h(){r({idx:t.idx,rowIdx:e})}return N.jsx("div",{role:"columnheader","aria-colindex":d,"aria-colspan":u,"aria-rowspan":l,"aria-selected":n,tabIndex:i,className:Pl(pM,t.headerCellClass),style:{...mM(t,e,l),gridColumnStart:d,gridColumnEnd:d+u},onFocus:o,onClick:h,children:t.name})}const eoe="c6l2wv17-0-0-beta-51",toe="c1kqdw7y7-0-0-beta-51",noe=`rdg-cell-resizable ${toe}`,roe="r1y6ywlx7-0-0-beta-51",ioe="rdg-cell-draggable",aoe="c1bezg5o7-0-0-beta-51",ooe=`rdg-cell-dragging ${aoe}`,soe="c1vc96037-0-0-beta-51",uoe=`rdg-cell-drag-over ${soe}`;function loe({column:t,colSpan:e,rowIdx:n,isCellSelected:r,onColumnResize:i,onColumnsReorder:o,sortColumns:u,onSortColumnsChange:l,selectCell:d,shouldFocusGrid:h,direction:g,dragDropKey:y}){const w=T.useRef(!1),[v,C]=T.useState(!1),[E,$]=T.useState(!1),O=g==="rtl",_=yM(t,n),{tabIndex:R,childTabIndex:k,onFocus:P}=eb(r),L=u==null?void 0:u.findIndex(ke=>ke.columnKey===t.key),F=L!==void 0&&L>-1?u[L]:void 0,q=F==null?void 0:F.direction,Y=F!==void 0&&u.length>1?L+1:void 0,X=q&&!Y?q==="ASC"?"ascending":"descending":void 0,{sortable:ue,resizable:me,draggable:te}=t,be=Z1(t,t.headerCellClass,{[eoe]:ue,[noe]:me,[ioe]:te,[ooe]:v,[uoe]:E});function we(ke){if(ke.pointerType==="mouse"&&ke.buttons!==1)return;ke.preventDefault();const{currentTarget:Ke,pointerId:He}=ke,ut=Ke.parentElement,{right:pt,left:bt}=ut.getBoundingClientRect(),gt=O?ke.clientX-bt:pt-ke.clientX;w.current=!1;function Ut(Tt){const{width:en,right:xn,left:Dt}=ut.getBoundingClientRect();let Pt=O?xn+gt-Tt.clientX:Tt.clientX+gt-Dt;Pt=gM(Pt,t),en>0&&Pt!==en&&i(t,Pt)}function Gt(Tt){w.current||Ut(Tt),Ke.removeEventListener("pointermove",Ut),Ke.removeEventListener("lostpointercapture",Gt)}Ke.setPointerCapture(He),Ke.addEventListener("pointermove",Ut),Ke.addEventListener("lostpointercapture",Gt)}function B(){w.current=!0,i(t,"max-content")}function V(ke){if(l==null)return;const{sortDescendingFirst:Ke}=t;if(F===void 0){const He={columnKey:t.key,direction:Ke?"DESC":"ASC"};l(u&&ke?[...u,He]:[He])}else{let He;if((Ke===!0&&q==="DESC"||Ke!==!0&&q==="ASC")&&(He={columnKey:t.key,direction:q==="ASC"?"DESC":"ASC"}),ke){const ut=[...u];He?ut[L]=He:ut.splice(L,1),l(ut)}else l(He?[He]:[])}}function H(ke){d({idx:t.idx,rowIdx:n}),ue&&V(ke.ctrlKey||ke.metaKey)}function ie(ke){P==null||P(ke),h&&d({idx:0,rowIdx:n})}function G(ke){(ke.key===" "||ke.key==="Enter")&&(ke.preventDefault(),V(ke.ctrlKey||ke.metaKey))}function Q(ke){ke.dataTransfer.setData(y,t.key),ke.dataTransfer.dropEffect="move",C(!0)}function he(){C(!1)}function $e(ke){ke.preventDefault(),ke.dataTransfer.dropEffect="move"}function Ce(ke){if($(!1),ke.dataTransfer.types.includes(y.toLowerCase())){const Ke=ke.dataTransfer.getData(y.toLowerCase());Ke!==t.key&&(ke.preventDefault(),o==null||o(Ke,t.key))}}function Be(ke){IP(ke)&&$(!0)}function Ie(ke){IP(ke)&&$(!1)}let tt;return te&&(tt={draggable:!0,onDragStart:Q,onDragEnd:he,onDragOver:$e,onDragEnter:Be,onDragLeave:Ie,onDrop:Ce}),N.jsxs("div",{role:"columnheader","aria-colindex":t.idx+1,"aria-colspan":e,"aria-rowspan":_,"aria-selected":r,"aria-sort":X,tabIndex:h?0:R,className:be,style:{...mM(t,n,_),...gy(t,e)},onFocus:ie,onClick:H,onKeyDown:ue?G:void 0,...tt,children:[t.renderHeaderCell({column:t,sortDirection:q,priority:Y,tabIndex:k}),me&&N.jsx("div",{className:roe,onClick:iae,onPointerDown:we,onDoubleClick:B})]})}function IP(t){const e=t.relatedTarget;return!t.currentTarget.contains(e)}const coe="r1upfr807-0-0-beta-51",CT=`rdg-row ${coe}`,foe="r190mhd37-0-0-beta-51",XS="rdg-row-selected",doe="r139qu9m7-0-0-beta-51",hoe="rdg-top-summary-row",poe="rdg-bottom-summary-row",moe="h10tskcx7-0-0-beta-51",EM=`rdg-header-row ${moe}`;function goe({rowIdx:t,columns:e,onColumnResize:n,onColumnsReorder:r,sortColumns:i,onSortColumnsChange:o,lastFrozenColumnIndex:u,selectedCellIdx:l,selectCell:d,shouldFocusGrid:h,direction:g}){const y=T.useId(),w=[];for(let v=0;ve&&d.parent!==void 0;)d=d.parent;if(d.level===e&&!u.has(d)){u.add(d);const{idx:h}=d;o.push(N.jsx(Zae,{column:d,rowIdx:t,isCellSelected:r===h,selectCell:i},h))}}}return N.jsx("div",{role:"row","aria-rowindex":t,className:EM,children:o})}var boe=T.memo(voe);function woe({className:t,rowIdx:e,gridRowStart:n,selectedCellIdx:r,isRowSelectionDisabled:i,isRowSelected:o,copiedCellIdx:u,draggedOverCellIdx:l,lastFrozenColumnIndex:d,row:h,viewportColumns:g,selectedCellEditor:y,onCellClick:w,onCellDoubleClick:v,onCellContextMenu:C,rowClass:E,setDraggedOverRowIdx:$,onMouseEnter:O,onRowChange:_,selectCell:R,...k}){const P=QS().renderCell,L=Xa((X,ue)=>{_(X,e,ue)});function F(X){$==null||$(e),O==null||O(X)}t=Pl(CT,`rdg-row-${e%2===0?"even":"odd"}`,{[XS]:r===-1},E==null?void 0:E(h,e),t);const q=[];for(let X=0;X({isRowSelected:o,isRowSelectionDisabled:i}),[i,o]);return N.jsx(ST,{value:Y,children:N.jsx("div",{role:"row",className:t,onMouseEnter:F,style:bT(n),...k,children:q})})}const Soe=T.memo(woe);function Coe(t,e){return N.jsx(Soe,{...e},t)}function $oe({scrollToPosition:{idx:t,rowIdx:e},gridRef:n,setScrollToCellPosition:r}){const i=T.useRef(null);return T.useLayoutEffect(()=>{Iw(i.current)}),T.useLayoutEffect(()=>{function o(){r(null)}const u=new IntersectionObserver(o,{root:n.current,threshold:1});return u.observe(i.current),()=>{u.disconnect()}},[n,r]),N.jsx("div",{ref:i,style:{gridColumn:t===void 0?"1/-1":t+1,gridRow:e===void 0?"1/-1":e+2}})}const Eoe="a3ejtar7-0-0-beta-51",xoe=`rdg-sort-arrow ${Eoe}`;function Ooe({sortDirection:t,priority:e}){return N.jsxs(N.Fragment,{children:[Toe({sortDirection:t}),_oe({priority:e})]})}function Toe({sortDirection:t}){return t===void 0?null:N.jsx("svg",{viewBox:"0 0 12 8",width:"12",height:"8",className:xoe,"aria-hidden":!0,children:N.jsx("path",{d:t==="ASC"?"M0 8 6 0 12 8":"M0 0 6 8 12 0"})})}function _oe({priority:t}){return t}const Aoe="rnvodz57-0-0-beta-51",Roe=`rdg ${Aoe}`,Poe="vlqv91k7-0-0-beta-51",Ioe=`rdg-viewport-dragging ${Poe}`,Noe="f1lsfrzw7-0-0-beta-51",Moe="f1cte0lg7-0-0-beta-51",koe="s8wc6fl7-0-0-beta-51";function Doe({column:t,colSpan:e,row:n,rowIdx:r,isCellSelected:i,selectCell:o}){var w;const{tabIndex:u,childTabIndex:l,onFocus:d}=eb(i),{summaryCellClass:h}=t,g=Z1(t,koe,typeof h=="function"?h(n):h);function y(){o({rowIdx:r,idx:t.idx})}return N.jsx("div",{role:"gridcell","aria-colindex":t.idx+1,"aria-colspan":e,"aria-selected":i,tabIndex:u,className:g,style:gy(t,e),onClick:y,onFocus:d,children:(w=t.renderSummaryCell)==null?void 0:w.call(t,{column:t,row:n,tabIndex:l})})}var Foe=T.memo(Doe);const Loe="skuhp557-0-0-beta-51",Uoe="tf8l5ub7-0-0-beta-51",joe=`rdg-summary-row ${Loe}`;function Boe({rowIdx:t,gridRowStart:e,row:n,viewportColumns:r,top:i,bottom:o,lastFrozenColumnIndex:u,selectedCellIdx:l,isTop:d,selectCell:h,"aria-rowindex":g}){const y=[];for(let w=0;wnew Map),[Ge,Je]=T.useState(()=>new Map),[ht,j]=T.useState(null),[A,M]=T.useState(!1),[J,re]=T.useState(void 0),[ge,Ee]=T.useState(null),[rt,Wt]=T.useState(!1),[ae,ce]=T.useState(-1),nt=T.useCallback(De=>pe.get(De.key)??Ge.get(De.key)??De.width,[Ge,pe]),[Ht,ln,wt,Ur]=Fae(),{columns:tn,colSpanColumns:tr,lastFrozenColumnIndex:On,headerRowsCount:Li,colOverscanStartIdx:ca,colOverscanEndIdx:Ar,templateColumns:Fs,layoutCssVars:uo,totalFrozenColumnWidth:Ls}=kae({rawColumns:n,defaultColumnOptions:$,getColumnWidth:nt,scrollLeft:Dt,viewportWidth:ln,enableVirtualization:Gt}),Ei=(i==null?void 0:i.length)??0,Xr=(o==null?void 0:o.length)??0,lo=Ei+Xr,Ui=Li+Ei,Ko=Li-1,In=-Ui,Mn=In+Ko,An=r.length+Xr-1,[Ze,xi]=T.useState(()=>({idx:-1,rowIdx:In-1,mode:"SELECT"})),Us=T.useRef(J),Yo=T.useRef(null),co=tt==="treegrid",jr=Li*Ke,Aa=lo*He,Oi=wt-jr-Aa,ji=y!=null&&v!=null,Ra=Tt==="rtl",js=Ra?"ArrowRight":"ArrowLeft",kn=Ra?"ArrowLeft":"ArrowRight",Zf=$e??Li+r.length+lo,sm=T.useMemo(()=>({renderCheckbox:gt,renderSortStatus:bt,renderCell:pt}),[gt,bt,pt]),Jo=T.useMemo(()=>{let De=!1,qe=!1;if(u!=null&&y!=null&&y.size>0){for(const We of r)if(y.has(u(We))?De=!0:qe=!0,De&&qe)break}return{isRowSelected:De&&!qe,isIndeterminate:De&&qe}},[r,y,u]),{rowOverscanStartIdx:Bi,rowOverscanEndIdx:Br,totalRowHeight:Bl,gridTemplateRows:um,getRowTop:ed,getRowHeight:wy,findRowIdx:Nu}=Uae({rows:r,rowHeight:ke,clientHeight:Oi,scrollTop:en,enableVirtualization:Gt}),Ti=Lae({columns:tn,colSpanColumns:tr,colOverscanStartIdx:ca,colOverscanEndIdx:Ar,lastFrozenColumnIndex:On,rowOverscanStartIdx:Bi,rowOverscanEndIdx:Br,rows:r,topSummaryRows:i,bottomSummaryRows:o}),{gridTemplateColumns:fa,handleColumnResize:Zr}=Dae(tn,Ti,Fs,Ht,ln,pe,Ge,ze,Je,F),ql=co?-1:0,Bs=tn.length-1,fo=es(Ze),ho=Pa(Ze),Mu=Ke+Bl+Aa+Ur,Sy=Xa(Zr),ei=Xa(q),Hl=Xa(E),zl=Xa(O),td=Xa(_),Qo=Xa(R),Vl=Xa(lm),Gl=Xa(nd),qi=Xa(Hs),Wl=Xa(po),Kl=Xa(({idx:De,rowIdx:qe})=>{po({rowIdx:In+qe-1,idx:De})}),Yl=T.useCallback(De=>{re(De),Us.current=De},[]),qs=T.useCallback(()=>{const De=MP(Ht.current);if(De===null)return;Iw(De),(De.querySelector('[tabindex="0"]')??De).focus({preventScroll:!0})},[Ht]);T.useLayoutEffect(()=>{Yo.current!==null&&fo&&Ze.idx===-1&&(Yo.current.focus({preventScroll:!0}),Iw(Yo.current))},[fo,Ze]),T.useLayoutEffect(()=>{rt&&(Wt(!1),qs())},[rt,qs]),T.useImperativeHandle(e,()=>({element:Ht.current,scrollToCell({idx:De,rowIdx:qe}){const We=De!==void 0&&De>On&&De{xn(qe),Pt(vae(We))}),L==null||L(De)}function Hs(De,qe,We){if(typeof l!="function"||We===r[qe])return;const it=[...r];it[qe]=We,l(it,{indexes:[qe],column:De})}function Xo(){Ze.mode==="EDIT"&&Hs(tn[Ze.idx],Ze.rowIdx,Ze.row)}function Zo(){const{idx:De,rowIdx:qe}=Ze,We=r[qe],it=tn[De].key;j({row:We,columnKey:it}),X==null||X({sourceRow:We,sourceColumnKey:it})}function cm(){if(!ue||!l||ht===null||!zs(Ze))return;const{idx:De,rowIdx:qe}=Ze,We=tn[De],it=r[qe],_t=ue({sourceRow:ht.row,sourceColumnKey:ht.columnKey,targetRow:it,targetColumnKey:We.key});Hs(We,qe,_t)}function id(De){if(!ho)return;const qe=r[Ze.rowIdx],{key:We,shiftKey:it}=De;if(ji&&it&&We===" "){uE(u);const _t=u(qe);nd({row:qe,checked:!y.has(_t),isShiftClick:!1}),De.preventDefault();return}zs(Ze)&&oae(De)&&xi(({idx:_t,rowIdx:cn})=>({idx:_t,rowIdx:cn,mode:"EDIT",row:qe,originalRow:qe}))}function ad(De){return De>=ql&&De<=Bs}function Hi(De){return De>=0&&De=In&&qe<=An&&ad(De)}function Du({idx:De,rowIdx:qe}){return Hi(qe)&&De>=0&&De<=Bs}function Pa({idx:De,rowIdx:qe}){return Hi(qe)&&ad(De)}function zs(De){return Du(De)&&cae({columns:tn,rows:r,selectedPosition:De})}function po(De,qe){if(!es(De))return;Xo();const We=kP(Ze,De);if(qe&&zs(De)){const it=r[De.rowIdx];xi({...De,mode:"EDIT",row:it,originalRow:it})}else We?Iw(MP(Ht.current)):(Wt(!0),xi({...De,mode:"SELECT"}));P&&!We&&P({rowIdx:De.rowIdx,row:Hi(De.rowIdx)?r[De.rowIdx]:void 0,column:tn[De.idx]})}function fm(De,qe,We){const{idx:it,rowIdx:_t}=Ze,cn=fo&&it===-1;switch(De){case"ArrowUp":return{idx:it,rowIdx:_t-1};case"ArrowDown":return{idx:it,rowIdx:_t+1};case js:return{idx:it-1,rowIdx:_t};case kn:return{idx:it+1,rowIdx:_t};case"Tab":return{idx:it+(We?-1:1),rowIdx:_t};case"Home":return cn?{idx:it,rowIdx:In}:{idx:0,rowIdx:qe?In:_t};case"End":return cn?{idx:it,rowIdx:An}:{idx:Bs,rowIdx:qe?An:_t};case"PageUp":{if(Ze.rowIdx===In)return Ze;const Rn=ed(_t)+wy(_t)-Oi;return{idx:it,rowIdx:Rn>0?Nu(Rn):0}}case"PageDown":{if(Ze.rowIdx>=r.length)return Ze;const Rn=ed(_t)+Oi;return{idx:it,rowIdx:RnDe&&De>=J)?Ze.idx:void 0}function dm(){if(Y==null||Ze.mode==="EDIT"||!Pa(Ze))return;const{idx:De,rowIdx:qe}=Ze,We=tn[De];if(We.renderEditCell==null||We.editable===!1)return;const it=nt(We);return N.jsx(Jae,{gridRowStart:Ui+qe+1,rows:r,column:We,columnWidth:it,maxColIdx:Bs,isLastRow:qe===An,selectedPosition:Ze,isCellEditable:zs,latestDraggedOverRowIdx:Us,onRowsChange:l,onClick:qs,onFill:Y,setDragging:M,setDraggedOverRowIdx:Yl})}function qr(De){if(Ze.rowIdx!==De||Ze.mode==="SELECT")return;const{idx:qe,row:We}=Ze,it=tn[qe],_t=qo(it,On,{type:"ROW",row:We}),cn=nn=>{Wt(nn),xi(({idx:hr,rowIdx:Rr})=>({idx:hr,rowIdx:Rr,mode:"SELECT"}))},Rn=(nn,hr,Rr)=>{hr?xu.flushSync(()=>{Hs(it,Ze.rowIdx,nn),cn(Rr)}):xi(ts=>({...ts,row:nn}))};return r[Ze.rowIdx]!==Ze.originalRow&&cn(!1),N.jsx(Xae,{column:it,colSpan:_t,row:We,rowIdx:De,onRowChange:Rn,closeEditor:cn,onKeyDown:k,navigate:on},it.key)}function zi(De){const qe=Ze.idx===-1?void 0:tn[Ze.idx];return qe!==void 0&&Ze.rowIdx===De&&!Ti.includes(qe)?Ze.idx>Ar?[...Ti,qe]:[...Ti.slice(0,On+1),qe,...Ti.slice(On+1)]:Ti}function Jl(){const De=[],{idx:qe,rowIdx:We}=Ze,it=ho&&WeBr?Br+1:Br;for(let cn=it;cn<=_t;cn++){const Rn=cn===Bi-1||cn===Br+1,nn=Rn?We:cn;let hr=Ti;const Rr=qe===-1?void 0:tn[qe];Rr!==void 0&&(Rn?hr=[Rr]:hr=zi(nn));const ts=r[nn],hm=Ui+nn+1;let Ql=nn,Xl=!1;typeof u=="function"&&(Ql=u(ts),Xl=(y==null?void 0:y.has(Ql))??!1),De.push(ut(Ql,{"aria-rowindex":Ui+nn+1,"aria-selected":ji?Xl:void 0,rowIdx:nn,row:ts,viewportColumns:hr,isRowSelectionDisabled:(w==null?void 0:w(ts))??!1,isRowSelected:Xl,onCellClick:zl,onCellDoubleClick:td,onCellContextMenu:Qo,rowClass:B,gridRowStart:hm,copiedCellIdx:ht!==null&&ht.row===ts?tn.findIndex(Hr=>Hr.key===ht.columnKey):void 0,selectedCellIdx:We===nn?qe:void 0,draggedOverCellIdx:sn(nn),setDraggedOverRowIdx:A?Yl:void 0,lastFrozenColumnIndex:On,onRowChange:qi,selectCell:Wl,selectedCellEditor:qr(nn)}))}return De}(Ze.idx>Bs||Ze.rowIdx>An)&&(xi({idx:-1,rowIdx:In-1,mode:"SELECT"}),Yl(void 0));let mo=`repeat(${Li}, ${Ke}px)`;Ei>0&&(mo+=` repeat(${Ei}, ${He}px)`),r.length>0&&(mo+=um),Xr>0&&(mo+=` repeat(${Xr}, ${He}px)`);const od=Ze.idx===-1&&Ze.rowIdx!==In-1;return N.jsxs("div",{role:tt,"aria-label":ie,"aria-labelledby":G,"aria-description":Q,"aria-describedby":he,"aria-multiselectable":ji?!0:void 0,"aria-colcount":tn.length,"aria-rowcount":Zf,className:Pl(Roe,{[Ioe]:A},be),style:{...we,scrollPaddingInlineStart:Ze.idx>On||(ge==null?void 0:ge.idx)!==void 0?`${Ls}px`:void 0,scrollPaddingBlock:Hi(Ze.rowIdx)||(ge==null?void 0:ge.rowIdx)!==void 0?`${jr+Ei*He}px ${Xr*He}px`:void 0,gridTemplateColumns:fa,gridTemplateRows:mo,"--rdg-header-row-height":`${Ke}px`,"--rdg-scroll-height":`${Mu}px`,...uo},dir:Tt,ref:Ht,onScroll:rd,onKeyDown:ku,"data-testid":Ce,"data-cy":Be,children:[N.jsxs(vM,{value:sm,children:[N.jsx(CM,{value:Vl,children:N.jsxs(SM,{value:Jo,children:[Array.from({length:Ko},(De,qe)=>N.jsx(boe,{rowIdx:qe+1,level:-Ko+qe,columns:zi(In+qe),selectedCellIdx:Ze.rowIdx===In+qe?Ze.idx:void 0,selectCell:Kl},qe)),N.jsx(yoe,{rowIdx:Li,columns:zi(Mn),onColumnResize:Sy,onColumnsReorder:ei,sortColumns:C,onSortColumnsChange:Hl,lastFrozenColumnIndex:On,selectedCellIdx:Ze.rowIdx===Mn?Ze.idx:void 0,selectCell:Kl,shouldFocusGrid:!fo,direction:Tt})]})}),r.length===0&&Ut?Ut:N.jsxs(N.Fragment,{children:[i==null?void 0:i.map((De,qe)=>{const We=Li+1+qe,it=Mn+1+qe,_t=Ze.rowIdx===it,cn=jr+He*qe;return N.jsx(NP,{"aria-rowindex":We,rowIdx:it,gridRowStart:We,row:De,top:cn,bottom:void 0,viewportColumns:zi(it),lastFrozenColumnIndex:On,selectedCellIdx:_t?Ze.idx:void 0,isTop:!0,selectCell:Wl},qe)}),N.jsx(bM,{value:Gl,children:Jl()}),o==null?void 0:o.map((De,qe)=>{const We=Ui+r.length+qe+1,it=r.length+qe,_t=Ze.rowIdx===it,cn=Oi>Bl?wt-He*(o.length-qe):void 0,Rn=cn===void 0?He*(o.length-1-qe):void 0;return N.jsx(NP,{"aria-rowindex":Zf-Xr+qe+1,rowIdx:it,gridRowStart:We,row:De,top:cn,bottom:Rn,viewportColumns:zi(it),lastFrozenColumnIndex:On,selectedCellIdx:_t?Ze.idx:void 0,isTop:!1,selectCell:Wl},qe)})]})]}),dm(),lae(Ti),co&&N.jsx("div",{ref:Yo,tabIndex:od?0:-1,className:Pl(Noe,{[Moe]:!Hi(Ze.rowIdx),[foe]:od,[doe]:od&&On!==-1}),style:{gridRowStart:Ze.rowIdx+Ui+1}}),ge!==null&&N.jsx($oe,{scrollToPosition:ge,setScrollToCellPosition:Ee,gridRef:Ht})]})}function MP(t){return t.querySelector(':scope > [role="row"] > [tabindex="0"]')}function kP(t,e){return t.idx===e.idx&&t.rowIdx===e.rowIdx}function Hoe({id:t,groupKey:e,childRows:n,isExpanded:r,isCellSelected:i,column:o,row:u,groupColumnIndex:l,isGroupByColumn:d,toggleGroup:h}){var E;const{tabIndex:g,childTabIndex:y,onFocus:w}=eb(i);function v(){h(t)}const C=d&&l===o.idx;return N.jsx("div",{role:"gridcell","aria-colindex":o.idx+1,"aria-selected":i,tabIndex:g,className:Z1(o),style:{...gy(o),cursor:C?"pointer":"default"},onClick:C?v:void 0,onFocus:w,children:(!d||C)&&((E=o.renderGroupCell)==null?void 0:E.call(o,{groupKey:e,childRows:n,column:o,row:u,isExpanded:r,tabIndex:y,toggleGroup:v}))},o.key)}var zoe=T.memo(Hoe);const Voe="g1yxluv37-0-0-beta-51",Goe=`rdg-group-row ${Voe}`;function Woe({className:t,row:e,rowIdx:n,viewportColumns:r,selectedCellIdx:i,isRowSelected:o,selectCell:u,gridRowStart:l,groupBy:d,toggleGroup:h,isRowSelectionDisabled:g,...y}){const w=r[0].key===gS?e.level+1:e.level;function v(){u({rowIdx:n,idx:-1})}const C=T.useMemo(()=>({isRowSelectionDisabled:!1,isRowSelected:o}),[o]);return N.jsx(ST,{value:C,children:N.jsx("div",{role:"row","aria-level":e.level+1,"aria-setsize":e.setSize,"aria-posinset":e.posInSet+1,"aria-expanded":e.isExpanded,className:Pl(CT,Goe,`rdg-row-${n%2===0?"even":"odd"}`,i===-1&&XS,t),onClick:v,style:bT(l),...y,children:r.map(E=>N.jsx(zoe,{id:e.id,groupKey:e.groupKey,childRows:e.childRows,isExpanded:e.isExpanded,isCellSelected:i===E.idx,column:E,row:e,groupColumnIndex:w,toggleGroup:h,isGroupByColumn:d.includes(E.key)},E.key))})})}T.memo(Woe);const Koe=Ae.createContext({sidebarVisible:!1,threshold:"desktop",routers:[{id:"url-router"}],toggleSidebar(){},setSidebarRef(t){},persistSidebarSize(t){},setFocusedRouter(t){},closeCurrentRouter(){},sidebarItemSelected(){},collapseLeftPanel(){},addRouter(){},updateSidebarSize(){},hide(){},show(){}});function Yoe(){return T.useContext(Koe)}const Joe=({value:t})=>{const{addRouter:e}=Yoe(),n=r=>{r.stopPropagation(),e(t)};return N.jsx("div",{className:"table-btn table-open-in-new-router",onClick:n,children:N.jsx(Qoe,{})})},Qoe=({size:t=16,color:e="silver",style:n={}})=>N.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer",...n},children:N.jsx("path",{d:"M9 3H5C3.895 3 3 3.895 3 5v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2v-4h-2v4H5V5h4V3ZM21 3h-6v2h3.586l-9.293 9.293 1.414 1.414L20 6.414V10h2V3Z",fill:e})});/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const koe=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Doe=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase()),$P=t=>{const e=Doe(t);return e.charAt(0).toUpperCase()+e.slice(1)},dM=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/** + */const Xoe=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Zoe=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase()),DP=t=>{const e=Zoe(t);return e.charAt(0).toUpperCase()+e.slice(1)},xM=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var Foe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + */var ese={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Loe=T.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:u,...l},d)=>T.createElement("svg",{ref:d,...Foe,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:dM("lucide",i),...l},[...u.map(([h,g])=>T.createElement(h,g)),...Array.isArray(o)?o:[o]]));/** + */const tse=T.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:u,...l},d)=>T.createElement("svg",{ref:d,...ese,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:xM("lucide",i),...l},[...u.map(([h,g])=>T.createElement(h,g)),...Array.isArray(o)?o:[o]]));/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const cT=(t,e)=>{const n=T.forwardRef(({className:r,...i},o)=>T.createElement(Loe,{ref:o,iconNode:e,className:dM(`lucide-${koe($P(t))}`,`lucide-${t}`,r),...i}));return n.displayName=$P(t),n};/** + */const $T=(t,e)=>{const n=T.forwardRef(({className:r,...i},o)=>T.createElement(tse,{ref:o,iconNode:e,className:xM(`lucide-${Xoe(DP(t))}`,`lucide-${t}`,r),...i}));return n.displayName=DP(t),n};/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Uoe=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]],joe=cT("arrow-down-a-z",Uoe);/** + */const nse=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]],rse=$T("arrow-down-a-z",nse);/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Boe=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]],qoe=cT("arrow-down-wide-narrow",Boe);/** + */const ise=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]],ase=$T("arrow-down-wide-narrow",ise);/** * @license lucide-react v0.484.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Hoe=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M15 4h5l-5 6h5",key:"8asdl1"}],["path",{d:"M15 20v-3.5a2.5 2.5 0 0 1 5 0V20",key:"r6l5cz"}],["path",{d:"M20 18h-5",key:"18j1r2"}]],zoe=cT("arrow-down-z-a",Hoe);function Voe({tabIndex:t,column:e,filterType:n,sortable:r,filterable:i,selectable:o,udf:u}){var w;const l=(w=u.filters.sorting)==null?void 0:w.find(v=>v.columnName===e.key),[d,h]=T.useState("");T.useEffect(()=>{d!==Sr.get(u.filters,e.key)&&h(Sr.get(u.filters,e.key))},[u.filters]);let g;(l==null?void 0:l.columnName)===e.key&&(l==null?void 0:l.direction)=="asc"&&(g="asc"),(l==null?void 0:l.columnName)===e.key&&(l==null?void 0:l.direction)=="desc"&&(g="desc");const y=()=>{l?((l==null?void 0:l.direction)==="desc"&&u.setSorting(u.filters.sorting.filter(v=>v.columnName!==e.key)),(l==null?void 0:l.direction)==="asc"&&u.setSorting(u.filters.sorting.map(v=>v.columnName===e.key?{...v,direction:"desc"}:v))):u.setSorting([...u.filters.sorting,{columnName:e.key.toString(),direction:"asc"}])};return N.jsxs(N.Fragment,{children:[r?N.jsx("span",{className:"data-table-sort-actions",children:N.jsxs("button",{className:`active-sort-col ${e.key==(l==null?void 0:l.columnName)?"active":""}`,onClick:y,children:[g=="asc"?N.jsx(joe,{className:"sort-icon"}):null,g=="desc"?N.jsx(zoe,{className:"sort-icon"}):null,g===void 0?N.jsx(qoe,{className:"sort-icon"}):null]})}):null,i?N.jsx(N.Fragment,{children:n==="date"?N.jsx("input",{className:"data-table-filter-input",tabIndex:t,value:d,onChange:v=>{h(v.target.value),u.setFilter({[e.key]:v.target.value})},placeholder:e.name||"",type:"date"}):N.jsx("input",{className:"data-table-filter-input",tabIndex:t,value:d,onChange:v=>{h(v.target.value),u.setFilter({[e.key]:v.target.value})},placeholder:e.name||""})}):N.jsx("span",{children:e.name})]})}function Goe(t,e){const n=t.split("/").filter(Boolean);return e.split("/").forEach(i=>{i===".."?n.pop():i!=="."&&i!==""&&n.push(i)}),"/"+n.join("/")}const Woe=(t,e,n,r=[],i,o)=>t.map(u=>{const l=r.find(d=>d.columnName===u.name);return{...u,key:u.name,renderCell:({column:d,row:h})=>{if(d.key==="uniqueId"){let g=i?i(h.uniqueId):"";return g.startsWith(".")&&(g=Goe(o,g)),N.jsxs("div",{style:{position:"relative"},children:[N.jsx($S,{href:i&&i(h.uniqueId),children:h.uniqueId}),N.jsxs("div",{className:"cell-actions",children:[N.jsx(M7,{value:h.uniqueId}),N.jsx(Noe,{value:g})]})]})}return d.getCellValue?N.jsx(N.Fragment,{children:d.getCellValue(h)}):N.jsx("span",{children:Sr.get(h,d.key)})},width:l?l.width:u.width,name:u.title,resizable:!0,sortable:u.sortable,renderHeaderCell:d=>N.jsx(Voe,{...d,selectable:!0,sortable:u.sortable,filterable:u.filterable,filterType:u.filterType,udf:n})}});function Koe(t){const e=T.useRef();let[n,r]=T.useState([]);const i=T.useRef({});return{reindex:(u,l,d)=>{if(l===e.current){const h=u.filter(g=>i.current[g.uniqueId]?!1:(i.current[g.uniqueId]=!0,!0));r([...n,...h].filter(Boolean))}else r([...u].filter(Boolean)),d==null||d();e.current=l},indexedData:n}}function Yoe({columns:t,query:e,columnSizes:n,onColumnWidthsChange:r,udf:i,tableClass:o,uniqueIdHrefHandler:u}){var P,L;vn();const{pathname:l}=kl(),{filters:d,setSorting:h,setStartIndex:g,selection:y,setSelection:w,setPageSize:v,onFiltersChange:C}=i,E=T.useMemo(()=>[cae,...Woe(t,(F,q)=>{i.setFilter({[F]:q})},i,n,u,l)],[t,n]),{indexedData:$,reindex:O}=Koe(),_=T.useRef();T.useEffect(()=>{var q,Y;const F=((Y=(q=e.data)==null?void 0:q.data)==null?void 0:Y.items)||[];O(F,i.queryHash,()=>{_.current.element.scrollTo({top:0,left:0})})},[(L=(P=e.data)==null?void 0:P.data)==null?void 0:L.items]);async function R(F){e.isLoading||!Qoe(F)||g($.length)}const k=Sr.debounce((F,q)=>{const Y=E.map(X=>({columnName:X.key,width:X.name===F.name?q:X.width}));r(Y)},300);return N.jsx(N.Fragment,{children:N.jsx(xoe,{className:o,columns:E,onScroll:R,onColumnResize:k,onSelectedRowsChange:F=>{w(Array.from(F))},selectedRows:new Set(y),ref:_,rows:$,rowKeyGetter:F=>F.uniqueId,style:{height:"calc(100% - 2px)",margin:"1px -14px"}})})}function Qoe({currentTarget:t}){return t.scrollTop+300>=t.scrollHeight-t.clientHeight}function Joe(t){const e={};for(let n of t||[])n&&n.columnName&&Sr.set(e,n.columnName,{operation:n.operation,value:n.value});return e}let Uo;typeof window<"u"?Uo=window:typeof self<"u"?Uo=self:Uo=global;let Ix=null,Nx=null;const EP=20,Q$=Uo.clearTimeout,xP=Uo.setTimeout,J$=Uo.cancelAnimationFrame||Uo.mozCancelAnimationFrame||Uo.webkitCancelAnimationFrame,OP=Uo.requestAnimationFrame||Uo.mozRequestAnimationFrame||Uo.webkitRequestAnimationFrame;J$==null||OP==null?(Ix=Q$,Nx=function(e){return xP(e,EP)}):(Ix=function([e,n]){J$(e),Q$(n)},Nx=function(e){const n=OP(function(){Q$(r),e()}),r=xP(function(){J$(n),e()},EP);return[n,r]});function Xoe(t){let e,n,r,i,o,u,l;const d=typeof document<"u"&&document.attachEvent;if(!d){u=function(O){const _=O.__resizeTriggers__,R=_.firstElementChild,k=_.lastElementChild,P=R.firstElementChild;k.scrollLeft=k.scrollWidth,k.scrollTop=k.scrollHeight,P.style.width=R.offsetWidth+1+"px",P.style.height=R.offsetHeight+1+"px",R.scrollLeft=R.scrollWidth,R.scrollTop=R.scrollHeight},o=function(O){return O.offsetWidth!==O.__resizeLast__.width||O.offsetHeight!==O.__resizeLast__.height},l=function(O){if(O.target.className&&typeof O.target.className.indexOf=="function"&&O.target.className.indexOf("contract-trigger")<0&&O.target.className.indexOf("expand-trigger")<0)return;const _=this;u(this),this.__resizeRAF__&&Ix(this.__resizeRAF__),this.__resizeRAF__=Nx(function(){o(_)&&(_.__resizeLast__.width=_.offsetWidth,_.__resizeLast__.height=_.offsetHeight,_.__resizeListeners__.forEach(function(P){P.call(_,O)}))})};let w=!1,v="";r="animationstart";const C="Webkit Moz O ms".split(" ");let E="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),$="";{const O=document.createElement("fakeelement");if(O.style.animationName!==void 0&&(w=!0),w===!1){for(let _=0;_ div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',C=w.head||w.getElementsByTagName("head")[0],E=w.createElement("style");E.id="detectElementResize",E.type="text/css",t!=null&&E.setAttribute("nonce",t),E.styleSheet?E.styleSheet.cssText=v:E.appendChild(w.createTextNode(v)),C.appendChild(E)}};return{addResizeListener:function(w,v){if(d)w.attachEvent("onresize",v);else{if(!w.__resizeTriggers__){const C=w.ownerDocument,E=Uo.getComputedStyle(w);E&&E.position==="static"&&(w.style.position="relative"),h(C),w.__resizeLast__={},w.__resizeListeners__=[],(w.__resizeTriggers__=C.createElement("div")).className="resize-triggers";const $=C.createElement("div");$.className="expand-trigger",$.appendChild(C.createElement("div"));const O=C.createElement("div");O.className="contract-trigger",w.__resizeTriggers__.appendChild($),w.__resizeTriggers__.appendChild(O),w.appendChild(w.__resizeTriggers__),u(w),w.addEventListener("scroll",l,!0),r&&(w.__resizeTriggers__.__animationListener__=function(R){R.animationName===n&&u(w)},w.__resizeTriggers__.addEventListener(r,w.__resizeTriggers__.__animationListener__))}w.__resizeListeners__.push(v)}},removeResizeListener:function(w,v){if(d)w.detachEvent("onresize",v);else if(w.__resizeListeners__.splice(w.__resizeListeners__.indexOf(v),1),!w.__resizeListeners__.length){w.removeEventListener("scroll",l,!0),w.__resizeTriggers__.__animationListener__&&(w.__resizeTriggers__.removeEventListener(r,w.__resizeTriggers__.__animationListener__),w.__resizeTriggers__.__animationListener__=null);try{w.__resizeTriggers__=!w.removeChild(w.__resizeTriggers__)}catch{}}}}}class Zoe extends T.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const o=window.getComputedStyle(this._parentNode)||{},u=parseFloat(o.paddingLeft||"0"),l=parseFloat(o.paddingRight||"0"),d=parseFloat(o.paddingTop||"0"),h=parseFloat(o.paddingBottom||"0"),g=this._parentNode.getBoundingClientRect(),y=g.height-d-h,w=g.width-u-l,v=this._parentNode.offsetHeight-d-h,C=this._parentNode.offsetWidth-u-l;(!n&&(this.state.height!==v||this.state.scaledHeight!==y)||!r&&(this.state.width!==C||this.state.scaledWidth!==w))&&(this.setState({height:v,width:C,scaledHeight:y,scaledWidth:w}),typeof i=="function"&&i({height:v,scaledHeight:y,scaledWidth:w,width:C}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:e}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=Xoe(e),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:u=!1,nonce:l,onResize:d,style:h={},tagName:g="div",...y}=this.props,{height:w,scaledHeight:v,scaledWidth:C,width:E}=this.state,$={overflow:"visible"},O={};let _=!1;return i||(w===0&&(_=!0),$.height=0,O.height=w,O.scaledHeight=v),o||(E===0&&(_=!0),$.width=0,O.width=E,O.scaledWidth=C),u&&(_=!1),T.createElement(g,{ref:this._setRef,style:{...$,...h},...y},!_&&e(O))}}function ese(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,r=t.startIndex,i=t.stopIndex;return!(r>n||i0;){var v=u[0]-1;if(!e(v))u[0]=v;else break}return u}var nse=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},rse=(function(){function t(e,n){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,u=o.isItemLoaded,l=o.itemCount,d=o.minimumBatchSize,h=d===void 0?10:d,g=o.threshold,y=g===void 0?15:g,w=tse({isItemLoaded:u,itemCount:l,minimumBatchSize:h,startIndex:Math.max(0,r-y),stopIndex:Math.min(l-1,i+y)});(this._memoizedUnloadedRanges.length!==w.length||this._memoizedUnloadedRanges.some(function(v,C){return w[C]!==v}))&&(this._memoizedUnloadedRanges=w,this._loadUnloadedRanges(w))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,u=function(h){var g=r[h],y=r[h+1],w=o(g,y);w!=null&&w.then(function(){if(ese({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:g,stopIndex:y})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(g,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},l=0;l0;throw new Error("unsupported direction")}function hM(t,e){return sse(t,e)?!0:t===document.body&&getComputedStyle(document.body).overflowY==="hidden"||t.parentElement==null?!1:hM(t.parentElement,e)}class use extends T.Component{containerRef(e){this.container=e}pullDownRef(e){this.pullDown=e;const n=this.pullDown&&this.pullDown.firstChild&&this.pullDown.firstChild.getBoundingClientRect?this.pullDown.firstChild.getBoundingClientRect().height:0;this.setState({maxPullDownDistance:n})}constructor(e){super(e),this.container=void 0,this.pullDown=void 0,this.dragging=!1,this.startY=0,this.currentY=0,this.state={pullToRefreshThresholdBreached:!1,maxPullDownDistance:0,onRefreshing:!1},this.containerRef=this.containerRef.bind(this),this.pullDownRef=this.pullDownRef.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onEnd=this.onEnd.bind(this)}componentDidMount(){this.container&&(this.container.addEventListener("touchstart",this.onTouchStart),this.container.addEventListener("touchmove",this.onTouchMove),this.container.addEventListener("touchend",this.onEnd),this.container.addEventListener("mousedown",this.onTouchStart),this.container.addEventListener("mousemove",this.onTouchMove),this.container.addEventListener("mouseup",this.onEnd))}componentWillUnmount(){this.container&&(this.container.removeEventListener("touchstart",this.onTouchStart),this.container.removeEventListener("touchmove",this.onTouchMove),this.container.removeEventListener("touchend",this.onEnd),this.container.removeEventListener("mousedown",this.onTouchStart),this.container.removeEventListener("mousemove",this.onTouchMove),this.container.removeEventListener("mouseup",this.onEnd))}onTouchStart(e){const{triggerHeight:n=40}=this.props;if(this.startY=e.pageY||e.touches[0].pageY,this.currentY=this.startY,n==="auto"){const r=e.target,i=this.container;if(!i||e.type==="touchstart"&&hM(r,Mx.up)||i.getBoundingClientRect().top<0)return}else{const r=this.container.getBoundingClientRect().top||this.container.getBoundingClientRect().y||0;if(this.startY-r>n)return}this.dragging=!0,this.container.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)",this.pullDown.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"}onTouchMove(e){this.dragging&&(this.currentY=e.pageY||e.touches[0].pageY,!(this.currentY=this.props.pullDownThreshold&&this.setState({pullToRefreshThresholdBreached:!0}),!(this.currentY-this.startY>this.state.maxPullDownDistance)&&(this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.currentY-this.startY}px)`,this.pullDown.style.visibility="visible")))}onEnd(){if(this.dragging=!1,this.startY=0,this.currentY=0,!this.state.pullToRefreshThresholdBreached){this.pullDown.style.visibility=this.props.startInvisible?"hidden":"visible",this.initContainer();return}this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.props.pullDownThreshold}px)`,this.setState({onRefreshing:!0},()=>{this.props.onRefresh().then(()=>{this.initContainer(),setTimeout(()=>{this.setState({onRefreshing:!1,pullToRefreshThresholdBreached:!1})},200)})})}initContainer(){requestAnimationFrame(()=>{this.container&&(this.container.style.overflow="auto",this.container.style.transform="none")})}renderPullDownContent(){const{releaseContent:e,pullDownContent:n,refreshContent:r,startInvisible:i}=this.props,{onRefreshing:o,pullToRefreshThresholdBreached:u}=this.state,l=o?r:u?e:n,d={position:"absolute",overflow:"hidden",left:0,right:0,top:0,visibility:i?"hidden":"visible"};return N.jsx("div",{id:"ptr-pull-down",style:d,ref:this.pullDownRef,children:l})}render(){const{backgroundColor:e}=this.props,n={height:"auto",overflow:"hidden",margin:"0 -10px",padding:"0 10px",WebkitOverflowScrolling:"touch",position:"relative",zIndex:1};return this.props.containerStyle&&Object.keys(this.props.containerStyle).forEach(r=>{n[r]=this.props.containerStyle[r]}),e&&(n.backgroundColor=e),N.jsxs("div",{id:"ptr-parent",style:n,children:[this.renderPullDownContent(),N.jsx("div",{id:"ptr-container",ref:this.containerRef,style:n,children:this.props.children})]})}}const lse=({height:t="200px",background:e="none"})=>N.jsxs("div",{id:"container",children:[N.jsxs("div",{className:"sk-fading-circle",children:[N.jsx("div",{className:"sk-circle1 sk-circle"}),N.jsx("div",{className:"sk-circle2 sk-circle"}),N.jsx("div",{className:"sk-circle3 sk-circle"}),N.jsx("div",{className:"sk-circle4 sk-circle"}),N.jsx("div",{className:"sk-circle5 sk-circle"}),N.jsx("div",{className:"sk-circle6 sk-circle"}),N.jsx("div",{className:"sk-circle7 sk-circle"}),N.jsx("div",{className:"sk-circle8 sk-circle"}),N.jsx("div",{className:"sk-circle9 sk-circle"}),N.jsx("div",{className:"sk-circle10 sk-circle"}),N.jsx("div",{className:"sk-circle11 sk-circle"}),N.jsx("div",{className:"sk-circle12 sk-circle"})]}),N.jsx("style",{children:` + */const ose=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M15 4h5l-5 6h5",key:"8asdl1"}],["path",{d:"M15 20v-3.5a2.5 2.5 0 0 1 5 0V20",key:"r6l5cz"}],["path",{d:"M20 18h-5",key:"18j1r2"}]],sse=$T("arrow-down-z-a",ose);function use({tabIndex:t,column:e,filterType:n,sortable:r,filterable:i,selectable:o,udf:u}){var w;const l=(w=u.filters.sorting)==null?void 0:w.find(v=>v.columnName===e.key),[d,h]=T.useState("");T.useEffect(()=>{d!==Sr.get(u.filters,e.key)&&h(Sr.get(u.filters,e.key))},[u.filters]);let g;(l==null?void 0:l.columnName)===e.key&&(l==null?void 0:l.direction)=="asc"&&(g="asc"),(l==null?void 0:l.columnName)===e.key&&(l==null?void 0:l.direction)=="desc"&&(g="desc");const y=()=>{l?((l==null?void 0:l.direction)==="desc"&&u.setSorting(u.filters.sorting.filter(v=>v.columnName!==e.key)),(l==null?void 0:l.direction)==="asc"&&u.setSorting(u.filters.sorting.map(v=>v.columnName===e.key?{...v,direction:"desc"}:v))):u.setSorting([...u.filters.sorting,{columnName:e.key.toString(),direction:"asc"}])};return N.jsxs(N.Fragment,{children:[r?N.jsx("span",{className:"data-table-sort-actions",children:N.jsxs("button",{className:`active-sort-col ${e.key==(l==null?void 0:l.columnName)?"active":""}`,onClick:y,children:[g=="asc"?N.jsx(rse,{className:"sort-icon"}):null,g=="desc"?N.jsx(sse,{className:"sort-icon"}):null,g===void 0?N.jsx(ase,{className:"sort-icon"}):null]})}):null,i?N.jsx(N.Fragment,{children:n==="date"?N.jsx("input",{className:"data-table-filter-input",tabIndex:t,value:d,onChange:v=>{h(v.target.value),u.setFilter({[e.key]:v.target.value})},placeholder:e.name||"",type:"date"}):N.jsx("input",{className:"data-table-filter-input",tabIndex:t,value:d,onChange:v=>{h(v.target.value),u.setFilter({[e.key]:v.target.value})},placeholder:e.name||""})}):N.jsx("span",{children:e.name})]})}function lse(t,e){const n=t.split("/").filter(Boolean);return e.split("/").forEach(i=>{i===".."?n.pop():i!=="."&&i!==""&&n.push(i)}),"/"+n.join("/")}const cse=(t,e,n,r=[],i,o)=>t.map(u=>{const l=r.find(d=>d.columnName===u.name);return{...u,key:u.name,renderCell:({column:d,row:h})=>{if(d.key==="uniqueId"){let g=i?i(h.uniqueId):"";return g.startsWith(".")&&(g=lse(o,g)),N.jsxs("div",{style:{position:"relative"},children:[N.jsx(MS,{href:i&&i(h.uniqueId),children:h.uniqueId}),N.jsxs("div",{className:"cell-actions",children:[N.jsx(W7,{value:h.uniqueId}),N.jsx(Joe,{value:g})]})]})}return d.getCellValue?N.jsx(N.Fragment,{children:d.getCellValue(h)}):N.jsx("span",{children:Sr.get(h,d.key)})},width:l?l.width:u.width,name:u.title,resizable:!0,sortable:u.sortable,renderHeaderCell:d=>N.jsx(use,{...d,selectable:!0,sortable:u.sortable,filterable:u.filterable,filterType:u.filterType,udf:n})}});function fse(t){const e=T.useRef();let[n,r]=T.useState([]);const i=T.useRef({});return{reindex:(u,l,d)=>{if(l===e.current){const h=u.filter(g=>i.current[g.uniqueId]?!1:(i.current[g.uniqueId]=!0,!0));r([...n,...h].filter(Boolean))}else r([...u].filter(Boolean)),d==null||d();e.current=l},indexedData:n}}function dse({columns:t,query:e,columnSizes:n,onColumnWidthsChange:r,udf:i,tableClass:o,uniqueIdHrefHandler:u}){var P,L;yn();const{pathname:l}=Ll(),{filters:d,setSorting:h,setStartIndex:g,selection:y,setSelection:w,setPageSize:v,onFiltersChange:C}=i,E=T.useMemo(()=>[Tae,...cse(t,(F,q)=>{i.setFilter({[F]:q})},i,n,u,l)],[t,n]),{indexedData:$,reindex:O}=fse(),_=T.useRef();T.useEffect(()=>{var q,Y;const F=((Y=(q=e.data)==null?void 0:q.data)==null?void 0:Y.items)||[];O(F,i.queryHash,()=>{_.current.element.scrollTo({top:0,left:0})})},[(L=(P=e.data)==null?void 0:P.data)==null?void 0:L.items]);async function R(F){e.isLoading||!hse(F)||g($.length)}const k=Sr.debounce((F,q)=>{const Y=E.map(X=>({columnName:X.key,width:X.name===F.name?q:X.width}));r(Y)},300);return N.jsx(N.Fragment,{children:N.jsx(qoe,{className:o,columns:E,onScroll:R,onColumnResize:k,onSelectedRowsChange:F=>{w(Array.from(F))},selectedRows:new Set(y),ref:_,rows:$,rowKeyGetter:F=>F.uniqueId,style:{height:"calc(100% - 2px)",margin:"1px -14px"}})})}function hse({currentTarget:t}){return t.scrollTop+300>=t.scrollHeight-t.clientHeight}function pse(t){const e={};for(let n of t||[])n&&n.columnName&&Sr.set(e,n.columnName,{operation:n.operation,value:n.value});return e}let zo;typeof window<"u"?zo=window:typeof self<"u"?zo=self:zo=global;let Vx=null,Gx=null;const FP=20,lE=zo.clearTimeout,LP=zo.setTimeout,cE=zo.cancelAnimationFrame||zo.mozCancelAnimationFrame||zo.webkitCancelAnimationFrame,UP=zo.requestAnimationFrame||zo.mozRequestAnimationFrame||zo.webkitRequestAnimationFrame;cE==null||UP==null?(Vx=lE,Gx=function(e){return LP(e,FP)}):(Vx=function([e,n]){cE(e),lE(n)},Gx=function(e){const n=UP(function(){lE(r),e()}),r=LP(function(){cE(n),e()},FP);return[n,r]});function mse(t){let e,n,r,i,o,u,l;const d=typeof document<"u"&&document.attachEvent;if(!d){u=function(O){const _=O.__resizeTriggers__,R=_.firstElementChild,k=_.lastElementChild,P=R.firstElementChild;k.scrollLeft=k.scrollWidth,k.scrollTop=k.scrollHeight,P.style.width=R.offsetWidth+1+"px",P.style.height=R.offsetHeight+1+"px",R.scrollLeft=R.scrollWidth,R.scrollTop=R.scrollHeight},o=function(O){return O.offsetWidth!==O.__resizeLast__.width||O.offsetHeight!==O.__resizeLast__.height},l=function(O){if(O.target.className&&typeof O.target.className.indexOf=="function"&&O.target.className.indexOf("contract-trigger")<0&&O.target.className.indexOf("expand-trigger")<0)return;const _=this;u(this),this.__resizeRAF__&&Vx(this.__resizeRAF__),this.__resizeRAF__=Gx(function(){o(_)&&(_.__resizeLast__.width=_.offsetWidth,_.__resizeLast__.height=_.offsetHeight,_.__resizeListeners__.forEach(function(P){P.call(_,O)}))})};let w=!1,v="";r="animationstart";const C="Webkit Moz O ms".split(" ");let E="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),$="";{const O=document.createElement("fakeelement");if(O.style.animationName!==void 0&&(w=!0),w===!1){for(let _=0;_ div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',C=w.head||w.getElementsByTagName("head")[0],E=w.createElement("style");E.id="detectElementResize",E.type="text/css",t!=null&&E.setAttribute("nonce",t),E.styleSheet?E.styleSheet.cssText=v:E.appendChild(w.createTextNode(v)),C.appendChild(E)}};return{addResizeListener:function(w,v){if(d)w.attachEvent("onresize",v);else{if(!w.__resizeTriggers__){const C=w.ownerDocument,E=zo.getComputedStyle(w);E&&E.position==="static"&&(w.style.position="relative"),h(C),w.__resizeLast__={},w.__resizeListeners__=[],(w.__resizeTriggers__=C.createElement("div")).className="resize-triggers";const $=C.createElement("div");$.className="expand-trigger",$.appendChild(C.createElement("div"));const O=C.createElement("div");O.className="contract-trigger",w.__resizeTriggers__.appendChild($),w.__resizeTriggers__.appendChild(O),w.appendChild(w.__resizeTriggers__),u(w),w.addEventListener("scroll",l,!0),r&&(w.__resizeTriggers__.__animationListener__=function(R){R.animationName===n&&u(w)},w.__resizeTriggers__.addEventListener(r,w.__resizeTriggers__.__animationListener__))}w.__resizeListeners__.push(v)}},removeResizeListener:function(w,v){if(d)w.detachEvent("onresize",v);else if(w.__resizeListeners__.splice(w.__resizeListeners__.indexOf(v),1),!w.__resizeListeners__.length){w.removeEventListener("scroll",l,!0),w.__resizeTriggers__.__animationListener__&&(w.__resizeTriggers__.removeEventListener(r,w.__resizeTriggers__.__animationListener__),w.__resizeTriggers__.__animationListener__=null);try{w.__resizeTriggers__=!w.removeChild(w.__resizeTriggers__)}catch{}}}}}class gse extends T.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const o=window.getComputedStyle(this._parentNode)||{},u=parseFloat(o.paddingLeft||"0"),l=parseFloat(o.paddingRight||"0"),d=parseFloat(o.paddingTop||"0"),h=parseFloat(o.paddingBottom||"0"),g=this._parentNode.getBoundingClientRect(),y=g.height-d-h,w=g.width-u-l,v=this._parentNode.offsetHeight-d-h,C=this._parentNode.offsetWidth-u-l;(!n&&(this.state.height!==v||this.state.scaledHeight!==y)||!r&&(this.state.width!==C||this.state.scaledWidth!==w))&&(this.setState({height:v,width:C,scaledHeight:y,scaledWidth:w}),typeof i=="function"&&i({height:v,scaledHeight:y,scaledWidth:w,width:C}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:e}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=mse(e),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:u=!1,nonce:l,onResize:d,style:h={},tagName:g="div",...y}=this.props,{height:w,scaledHeight:v,scaledWidth:C,width:E}=this.state,$={overflow:"visible"},O={};let _=!1;return i||(w===0&&(_=!0),$.height=0,O.height=w,O.scaledHeight=v),o||(E===0&&(_=!0),$.width=0,O.width=E,O.scaledWidth=C),u&&(_=!1),T.createElement(g,{ref:this._setRef,style:{...$,...h},...y},!_&&e(O))}}function yse(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,r=t.startIndex,i=t.stopIndex;return!(r>n||i0;){var v=u[0]-1;if(!e(v))u[0]=v;else break}return u}var bse=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},wse=(function(){function t(e,n){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,u=o.isItemLoaded,l=o.itemCount,d=o.minimumBatchSize,h=d===void 0?10:d,g=o.threshold,y=g===void 0?15:g,w=vse({isItemLoaded:u,itemCount:l,minimumBatchSize:h,startIndex:Math.max(0,r-y),stopIndex:Math.min(l-1,i+y)});(this._memoizedUnloadedRanges.length!==w.length||this._memoizedUnloadedRanges.some(function(v,C){return w[C]!==v}))&&(this._memoizedUnloadedRanges=w,this._loadUnloadedRanges(w))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,u=function(h){var g=r[h],y=r[h+1],w=o(g,y);w!=null&&w.then(function(){if(yse({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:g,stopIndex:y})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(g,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},l=0;l0;throw new Error("unsupported direction")}function OM(t,e){return Ese(t,e)?!0:t===document.body&&getComputedStyle(document.body).overflowY==="hidden"||t.parentElement==null?!1:OM(t.parentElement,e)}class xse extends T.Component{containerRef(e){this.container=e}pullDownRef(e){this.pullDown=e;const n=this.pullDown&&this.pullDown.firstChild&&this.pullDown.firstChild.getBoundingClientRect?this.pullDown.firstChild.getBoundingClientRect().height:0;this.setState({maxPullDownDistance:n})}constructor(e){super(e),this.container=void 0,this.pullDown=void 0,this.dragging=!1,this.startY=0,this.currentY=0,this.state={pullToRefreshThresholdBreached:!1,maxPullDownDistance:0,onRefreshing:!1},this.containerRef=this.containerRef.bind(this),this.pullDownRef=this.pullDownRef.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onEnd=this.onEnd.bind(this)}componentDidMount(){this.container&&(this.container.addEventListener("touchstart",this.onTouchStart),this.container.addEventListener("touchmove",this.onTouchMove),this.container.addEventListener("touchend",this.onEnd),this.container.addEventListener("mousedown",this.onTouchStart),this.container.addEventListener("mousemove",this.onTouchMove),this.container.addEventListener("mouseup",this.onEnd))}componentWillUnmount(){this.container&&(this.container.removeEventListener("touchstart",this.onTouchStart),this.container.removeEventListener("touchmove",this.onTouchMove),this.container.removeEventListener("touchend",this.onEnd),this.container.removeEventListener("mousedown",this.onTouchStart),this.container.removeEventListener("mousemove",this.onTouchMove),this.container.removeEventListener("mouseup",this.onEnd))}onTouchStart(e){const{triggerHeight:n=40}=this.props;if(this.startY=e.pageY||e.touches[0].pageY,this.currentY=this.startY,n==="auto"){const r=e.target,i=this.container;if(!i||e.type==="touchstart"&&OM(r,Wx.up)||i.getBoundingClientRect().top<0)return}else{const r=this.container.getBoundingClientRect().top||this.container.getBoundingClientRect().y||0;if(this.startY-r>n)return}this.dragging=!0,this.container.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)",this.pullDown.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"}onTouchMove(e){this.dragging&&(this.currentY=e.pageY||e.touches[0].pageY,!(this.currentY=this.props.pullDownThreshold&&this.setState({pullToRefreshThresholdBreached:!0}),!(this.currentY-this.startY>this.state.maxPullDownDistance)&&(this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.currentY-this.startY}px)`,this.pullDown.style.visibility="visible")))}onEnd(){if(this.dragging=!1,this.startY=0,this.currentY=0,!this.state.pullToRefreshThresholdBreached){this.pullDown.style.visibility=this.props.startInvisible?"hidden":"visible",this.initContainer();return}this.container.style.overflow="visible",this.container.style.transform=`translate(0px, ${this.props.pullDownThreshold}px)`,this.setState({onRefreshing:!0},()=>{this.props.onRefresh().then(()=>{this.initContainer(),setTimeout(()=>{this.setState({onRefreshing:!1,pullToRefreshThresholdBreached:!1})},200)})})}initContainer(){requestAnimationFrame(()=>{this.container&&(this.container.style.overflow="auto",this.container.style.transform="none")})}renderPullDownContent(){const{releaseContent:e,pullDownContent:n,refreshContent:r,startInvisible:i}=this.props,{onRefreshing:o,pullToRefreshThresholdBreached:u}=this.state,l=o?r:u?e:n,d={position:"absolute",overflow:"hidden",left:0,right:0,top:0,visibility:i?"hidden":"visible"};return N.jsx("div",{id:"ptr-pull-down",style:d,ref:this.pullDownRef,children:l})}render(){const{backgroundColor:e}=this.props,n={height:"auto",overflow:"hidden",margin:"0 -10px",padding:"0 10px",WebkitOverflowScrolling:"touch",position:"relative",zIndex:1};return this.props.containerStyle&&Object.keys(this.props.containerStyle).forEach(r=>{n[r]=this.props.containerStyle[r]}),e&&(n.backgroundColor=e),N.jsxs("div",{id:"ptr-parent",style:n,children:[this.renderPullDownContent(),N.jsx("div",{id:"ptr-container",ref:this.containerRef,style:n,children:this.props.children})]})}}const Ose=({height:t="200px",background:e="none"})=>N.jsxs("div",{id:"container",children:[N.jsxs("div",{className:"sk-fading-circle",children:[N.jsx("div",{className:"sk-circle1 sk-circle"}),N.jsx("div",{className:"sk-circle2 sk-circle"}),N.jsx("div",{className:"sk-circle3 sk-circle"}),N.jsx("div",{className:"sk-circle4 sk-circle"}),N.jsx("div",{className:"sk-circle5 sk-circle"}),N.jsx("div",{className:"sk-circle6 sk-circle"}),N.jsx("div",{className:"sk-circle7 sk-circle"}),N.jsx("div",{className:"sk-circle8 sk-circle"}),N.jsx("div",{className:"sk-circle9 sk-circle"}),N.jsx("div",{className:"sk-circle10 sk-circle"}),N.jsx("div",{className:"sk-circle11 sk-circle"}),N.jsx("div",{className:"sk-circle12 sk-circle"})]}),N.jsx("style",{children:` #container { display: flex; flex-direction: column; @@ -391,7 +391,7 @@ PERFORMANCE OF THIS SOFTWARE. opacity: 1; } } - `})]}),cse=({height:t="200px",background:e="none",label:n="Pull down to refresh"})=>N.jsxs("div",{id:"container2",children:[N.jsx("span",{children:n}),N.jsx("style",{children:` + `})]}),Tse=({height:t="200px",background:e="none",label:n="Pull down to refresh"})=>N.jsxs("div",{id:"container2",children:[N.jsx("span",{children:n}),N.jsx("style",{children:` #container2 { background: ${e}; height: ${t}; @@ -415,7 +415,7 @@ PERFORMANCE OF THIS SOFTWARE. opacity: 1; } } - `})]}),fse=({height:t="200px",background:e="none",label:n="Release to refresh"})=>N.jsxs("div",{id:"container",children:[N.jsx("div",{id:"arrow"}),N.jsx("span",{children:n}),N.jsx("style",{children:` + `})]}),_se=({height:t="200px",background:e="none",label:n="Release to refresh"})=>N.jsxs("div",{id:"container",children:[N.jsx("div",{id:"arrow"}),N.jsx("span",{children:n}),N.jsx("style",{children:` #container { background: ${e||"none"}; height: ${t||"200px"}; @@ -440,12 +440,12 @@ PERFORMANCE OF THIS SOFTWARE. opacity: 1; } } - `})]});function pM({content:t,columns:e,uniqueIdHrefHandler:n,style:r}){const i=n?$S:"span";return N.jsx(i,{className:"auto-card-list-item card mb-2 p-3",style:r,href:n(t.uniqueId),children:e.map(o=>{let u=o.getCellValue?o.getCellValue(t):"";return u||(u=o.name?t[o.name]:""),u||(u="-"),o.name==="uniqueId"?null:N.jsxs("div",{className:"row auto-card-drawer",children:[N.jsxs("div",{className:"col-6",children:[o.title,":"]}),N.jsx("div",{className:"col-6",children:u})]},o.title)})})}const dse=()=>{const t=vn();return N.jsxs("div",{className:"empty-list-indicator",children:[N.jsx("img",{src:DO("/common/empty.png")}),N.jsx("div",{children:t.table.noRecords})]})};var _P=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function hse(t,e){return!!(t===e||_P(t)&&_P(e))}function pse(t,e){if(t.length!==e.length)return!1;for(var n=0;n=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var Z$=-1;function PP(t){if(t===void 0&&(t=!1),Z$===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),Z$=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Z$}var $g=null;function IP(t){if(t===void 0&&(t=!1),$g===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?$g="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?$g="negative":$g="positive-ascending"),document.body.removeChild(e),$g}return $g}var yse=150,vse=function(e,n){return e};function bse(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,u=t.getStartIndexForOffset,l=t.getStopIndexForStartIndex,d=t.initInstanceProps,h=t.shouldResetStyleCacheOnItemSizeChange,g=t.validateProps;return e=(function(y){zp(w,y);function w(C){var E;return E=y.call(this,C)||this,E._instanceProps=d(E.props,yx(E)),E._outerRef=void 0,E._resetIsScrollingTimeoutId=null,E.state={instance:yx(E),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof E.props.initialScrollOffset=="number"?E.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},E._callOnItemsRendered=void 0,E._callOnItemsRendered=X$(function($,O,_,R){return E.props.onItemsRendered({overscanStartIndex:$,overscanStopIndex:O,visibleStartIndex:_,visibleStopIndex:R})}),E._callOnScroll=void 0,E._callOnScroll=X$(function($,O,_){return E.props.onScroll({scrollDirection:$,scrollOffset:O,scrollUpdateWasRequested:_})}),E._getItemStyle=void 0,E._getItemStyle=function($){var O=E.props,_=O.direction,R=O.itemSize,k=O.layout,P=E._getItemStyleCache(h&&R,h&&k,h&&_),L;if(P.hasOwnProperty($))L=P[$];else{var F=n(E.props,$,E._instanceProps),q=i(E.props,$,E._instanceProps),Y=_==="horizontal"||k==="horizontal",X=_==="rtl",ue=Y?F:0;P[$]=L={position:"absolute",left:X?void 0:ue,right:X?ue:void 0,top:Y?0:F,height:Y?"100%":q,width:Y?q:"100%"}}return L},E._getItemStyleCache=void 0,E._getItemStyleCache=X$(function($,O,_){return{}}),E._onScrollHorizontal=function($){var O=$.currentTarget,_=O.clientWidth,R=O.scrollLeft,k=O.scrollWidth;E.setState(function(P){if(P.scrollOffset===R)return null;var L=E.props.direction,F=R;if(L==="rtl")switch(IP()){case"negative":F=-R;break;case"positive-descending":F=k-_-R;break}return F=Math.max(0,Math.min(F,k-_)),{isScrolling:!0,scrollDirection:P.scrollOffsetL.clientWidth?PP():0:P=L.scrollHeight>L.clientHeight?PP():0}this.scrollTo(o(this.props,E,$,k,this._instanceProps,P))},v.componentDidMount=function(){var E=this.props,$=E.direction,O=E.initialScrollOffset,_=E.layout;if(typeof O=="number"&&this._outerRef!=null){var R=this._outerRef;$==="horizontal"||_==="horizontal"?R.scrollLeft=O:R.scrollTop=O}this._callPropsCallbacks()},v.componentDidUpdate=function(){var E=this.props,$=E.direction,O=E.layout,_=this.state,R=_.scrollOffset,k=_.scrollUpdateWasRequested;if(k&&this._outerRef!=null){var P=this._outerRef;if($==="horizontal"||O==="horizontal")if($==="rtl")switch(IP()){case"negative":P.scrollLeft=-R;break;case"positive-ascending":P.scrollLeft=R;break;default:var L=P.clientWidth,F=P.scrollWidth;P.scrollLeft=F-L-R;break}else P.scrollLeft=R;else P.scrollTop=R}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&RP(this._resetIsScrollingTimeoutId)},v.render=function(){var E=this.props,$=E.children,O=E.className,_=E.direction,R=E.height,k=E.innerRef,P=E.innerElementType,L=E.innerTagName,F=E.itemCount,q=E.itemData,Y=E.itemKey,X=Y===void 0?vse:Y,ue=E.layout,me=E.outerElementType,te=E.outerTagName,be=E.style,we=E.useIsScrolling,B=E.width,V=this.state.isScrolling,H=_==="horizontal"||ue==="horizontal",ie=H?this._onScrollHorizontal:this._onScrollVertical,G=this._getRangeToRender(),J=G[0],he=G[1],$e=[];if(F>0)for(var Ce=J;Ce<=he;Ce++)$e.push(T.createElement($,{data:q,key:X(Ce,q),index:Ce,isScrolling:we?V:void 0,style:this._getItemStyle(Ce)}));var Be=r(this.props,this._instanceProps);return T.createElement(me||te||"div",{className:O,onScroll:ie,ref:this._outerRefSetter,style:Ve({position:"relative",height:R,width:B,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:_},be)},T.createElement(P||L||"div",{children:$e,ref:k,style:{height:H?"100%":Be,pointerEvents:V?"none":void 0,width:H?Be:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var E=this.props.itemCount;if(E>0){var $=this._getRangeToRender(),O=$[0],_=$[1],R=$[2],k=$[3];this._callOnItemsRendered(O,_,R,k)}}if(typeof this.props.onScroll=="function"){var P=this.state,L=P.scrollDirection,F=P.scrollOffset,q=P.scrollUpdateWasRequested;this._callOnScroll(L,F,q)}},v._getRangeToRender=function(){var E=this.props,$=E.itemCount,O=E.overscanCount,_=this.state,R=_.isScrolling,k=_.scrollDirection,P=_.scrollOffset;if($===0)return[0,0,0,0];var L=u(this.props,P,this._instanceProps),F=l(this.props,L,P,this._instanceProps),q=!R||k==="backward"?Math.max(1,O):1,Y=!R||k==="forward"?Math.max(1,O):1;return[Math.max(0,L-q),Math.max(0,Math.min($-1,F+Y)),L,F]},w})(T.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var wse=function(e,n){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,n.instance},Sse=bse({getItemOffset:function(e,n){var r=e.itemSize;return n*r},getItemSize:function(e,n){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var n=e.itemCount,r=e.itemSize;return r*n},getOffsetForIndexAndAlignment:function(e,n,r,i,o,u){var l=e.direction,d=e.height,h=e.itemCount,g=e.itemSize,y=e.layout,w=e.width,v=l==="horizontal"||y==="horizontal",C=v?w:d,E=Math.max(0,h*g-C),$=Math.min(E,n*g),O=Math.max(0,n*g-C+g+u);switch(r==="smart"&&(i>=O-C&&i<=$+C?r="auto":r="center"),r){case"start":return $;case"end":return O;case"center":{var _=Math.round(O+($-O)/2);return _E+Math.floor(C/2)?E:_}case"auto":default:return i>=O&&i<=$?i:i{var _,R,k,P,L,F;vn();const l=T.useRef();let[d,h]=T.useState([]);const[g,y]=T.useState(!0),w=Nf();e&&e({queryClient:w});const v=(q,Y)=>{const X=r.debouncedFilters.startIndex||0,ue=[...d];l.current!==Y&&(ue.length=0,l.current=Y);for(let me=X;me<(r.debouncedFilters.itemsPerPage||0)+X;me++){const te=me-X;q[te]&&(ue[me]=q[te])}h(ue)};T.useEffect(()=>{var Y,X,ue;const q=((X=(Y=o.query.data)==null?void 0:Y.data)==null?void 0:X.items)||[];v(q,(ue=o.query.data)==null?void 0:ue.jsonQuery)},[(R=(_=o.query.data)==null?void 0:_.data)==null?void 0:R.items]);const C=({index:q,style:Y})=>{var ue,me;return d[q]?u?N.jsx(u,{content:d[q]},(ue=d[q])==null?void 0:ue.uniqueId):N.jsx(pM,{style:{...Y,top:Y.top+10,height:Y.height-10,width:Y.width},uniqueIdHrefHandler:n,columns:t,content:d[q]},(me=d[q])==null?void 0:me.uniqueId):null},E=({scrollOffset:q})=>{q===0&&!g?y(!0):q>0&&g&&y(!1)},$=T.useCallback(()=>(o.query.refetch(),Promise.resolve(!0)),[]),O=((L=(P=(k=o.query)==null?void 0:k.data)==null?void 0:P.data)==null?void 0:L.totalItems)||0;return N.jsx(N.Fragment,{children:N.jsx(use,{pullDownContent:N.jsx(cse,{label:""}),releaseContent:N.jsx(fse,{}),refreshContent:N.jsx(lse,{}),pullDownThreshold:200,onRefresh:$,triggerHeight:g?500:0,startInvisible:!0,children:d.length===0&&!((F=o.query)!=null&&F.isError)?N.jsx("div",{style:{height:"calc(100vh - 130px)"},children:N.jsx(dse,{})}):N.jsxs("div",{style:{height:"calc(100vh - 130px)"},children:[N.jsx(Go,{query:o.query}),N.jsx(ase,{isItemLoaded:q=>!!d[q],itemCount:O,loadMoreItems:async(q,Y)=>{r.setFilter({startIndex:q,itemsPerPage:Y-q})},children:({onItemsRendered:q,ref:Y})=>N.jsx(Zoe,{children:({height:X,width:ue})=>N.jsx(Sse,{height:X,itemCount:d.length,itemSize:u!=null&&u.getHeight?u.getHeight():t.length*24+10,width:ue,onScroll:E,onItemsRendered:q,ref:Y,children:C})})})]})})})},$se=({columns:t,deleteHook:e,uniqueIdHrefHandler:n,udf:r,q:i})=>{var h,g,y,w,v,C,E,$;const o=vn(),u=Nf();e&&e({queryClient:u}),(g=(h=i.query.data)==null?void 0:h.data)!=null&&g.items;const l=((v=(w=(y=i.query)==null?void 0:y.data)==null?void 0:w.data)==null?void 0:v.items)||[],d=(($=(E=(C=i.query)==null?void 0:C.data)==null?void 0:E.data)==null?void 0:$.totalItems)||0;return N.jsxs(N.Fragment,{children:[d===0&&N.jsx("p",{children:o.table.noRecords}),l.map(O=>N.jsx(pM,{style:{},uniqueIdHrefHandler:n,columns:t,content:O},O.uniqueId))]})},NP=matchMedia("(max-width: 600px)");function Ese(){const t=T.useRef(NP),[e,n]=T.useState(NP.matches?"card":"datatable");return T.useEffect(()=>{const r=t.current;function i(){r.matches?n("card"):n("datatable")}return r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[]),{view:e}}const qS=({children:t,columns:e,deleteHook:n,uniqueIdHrefHandler:r,withFilters:i,queryHook:o,onRecordsDeleted:u,selectable:l,id:d,RowDetail:h,withPreloads:g,queryFilters:y,deep:w,inlineInsertHook:v,bulkEditHook:C,urlMask:E,CardComponent:$})=>{var V,H,ie,G;vn();const{view:O}=Ese(),_=Nf(),{query:R}=Uie({query:{uniqueId:o.UKEY}}),[k,P]=T.useState(e.map(J=>({columnName:J.name,width:J.width})));T.useEffect(()=>{var J,he,$e,Ce;if((he=(J=R.data)==null?void 0:J.data)!=null&&he.sizes)P(JSON.parse((Ce=($e=R.data)==null?void 0:$e.data)==null?void 0:Ce.sizes));else{const Be=localStorage.getItem(`table_${o.UKEY}`);Be&&P(JSON.parse(Be))}},[(H=(V=R.data)==null?void 0:V.data)==null?void 0:H.sizes]);const{submit:L}=jie({queryClient:_}),F=n&&n({queryClient:_}),q=Lie({urlMask:"",submitDelete:F==null?void 0:F.submit,onRecordsDeleted:u?()=>u({queryClient:_}):void 0}),[Y]=T.useState(e.map(J=>({columnName:J.name,width:J.width}))),X=J=>{P(J);const he=JSON.stringify(J);L({uniqueId:o.UKEY,sizes:he}),localStorage.setItem(`table_${o.UKEY}`,he)};let ue=({value:J})=>N.jsx("div",{style:{position:"relative"},children:N.jsx($S,{href:r&&r(J),children:J})}),me=J=>N.jsx(Pie,{formatterComponent:ue,...J});const te=[...y||[]],be=T.useMemo(()=>Joe(te),[te]),we=o({query:{deep:w===void 0?!0:w,...q.debouncedFilters,withPreloads:g},queryClient:_});we.jsonQuery=be;const B=((G=(ie=we.query.data)==null?void 0:ie.data)==null?void 0:G.items)||[];return N.jsxs(N.Fragment,{children:[O==="map"&&N.jsx($se,{columns:e,deleteHook:n,uniqueIdHrefHandler:r,q:we,udf:q}),O==="card"&&N.jsx(Cse,{columns:e,CardComponent:$,jsonQuery:be,deleteHook:n,uniqueIdHrefHandler:r,q:we,udf:q}),O==="datatable"&&N.jsxs(Yoe,{udf:q,selectable:l,bulkEditHook:C,RowDetail:h,uniqueIdHrefHandler:r,onColumnWidthsChange:X,columns:e,columnSizes:k,inlineInsertHook:v,rows:B,defaultColumnWidths:Y,query:we.query,booleanColumns:["uniqueId"],withFilters:i,children:[N.jsx(me,{for:["uniqueId"]}),t]})]})};function xse(t){const{execFnOverride:e,queryClient:n,query:r}=t||{},{options:i,execFn:o}=T.useContext(yn),u=e?e(i):o?o(i):Lr(i);let d=`${"/public-join-key".substr(1)}?${new URLSearchParams(la(r)).toString()}`;const g=Fr(v=>u("DELETE",d,v)),y=(v,C)=>v;return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){n==null||n.setQueryData("*abac.PublicJoinKeyEntity",_=>y(_)),n==null||n.invalidateQueries("*abac.PublicJoinKeyEntity"),E(O)},onError(O){C==null||C.setErrors(ks(O)),$(O)}})}),fnUpdater:y}}function mM({queryOptions:t,query:e,queryClient:n,execFnOverride:r,unauthorized:i,optionFn:o}){var _,R,k;const{options:u,execFn:l}=T.useContext(yn),d=o?o(u):u,h=r?r(d):l?l(d):Lr(d);let y=`${"/public-join-keys".substr(1)}?${Wg.stringify(e)}`;const w=()=>h("GET",y),v=(_=d==null?void 0:d.headers)==null?void 0:_.authorization,C=v!="undefined"&&v!=null&&v!=null&&v!="null"&&!!v;let E=!0;!C&&!i&&(E=!1);const $=Bo(["*abac.PublicJoinKeyEntity",d,e],w,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...t||{}}),O=((k=(R=$.data)==null?void 0:R.data)==null?void 0:k.items)||[];return{query:$,items:O,keyExtractor:P=>P.uniqueId}}mM.UKEY="*abac.PublicJoinKeyEntity";const Ose={roleName:"Role name",uniqueId:"Unique Id"},Tse={roleName:"Nazwa roli",uniqueId:"Unikalny identyfikator"},_se={...Ose,$pl:Tse},Ase=t=>[{name:"uniqueId",title:t.uniqueId,width:200},{name:"role",title:t.roleName,width:200,getCellValue:e=>{var n;return(n=e.role)==null?void 0:n.name}}],Rse=()=>{const t=Wn(_se);return N.jsx(N.Fragment,{children:N.jsx(qS,{columns:Ase(t),queryHook:mM,uniqueIdHrefHandler:e=>Xa.Navigation.single(e),deleteHook:xse})})},HS=({children:t,newEntityHandler:e,exportPath:n,pageTitle:r})=>{DN(r);const i=Ur(),{locale:o}=Ci();return MX({path:n||""}),LX(e?()=>e({locale:o,router:i}):void 0,jn.NewEntity),N.jsx(N.Fragment,{children:t})},Pse=()=>{const t=vn();return N.jsx(N.Fragment,{children:N.jsx(HS,{pageTitle:t.fbMenu.publicJoinKey,newEntityHandler:({locale:e,router:n})=>{n.push(Xa.Navigation.create())},children:N.jsx(Rse,{})})})};function Ise(){return N.jsxs(N.Fragment,{children:[N.jsx(mn,{element:N.jsx(uP,{}),path:Xa.Navigation.Rcreate}),N.jsx(mn,{element:N.jsx(mre,{}),path:Xa.Navigation.Rsingle}),N.jsx(mn,{element:N.jsx(uP,{}),path:Xa.Navigation.Redit}),N.jsx(mn,{element:N.jsx(Pse,{}),path:Xa.Navigation.Rquery})]})}function gM({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(yn),l=e?e(o):u?u(o):Lr(o);let h=`${"/role/:uniqueId".substr(1)}?${new URLSearchParams(la(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,v=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!v&&!i&&(C=!1):C=!1,{query:Bo([o,n,"*abac.RoleEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}function Nse(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(yn),u=r?r(i):o?o(i):Lr(i);let d=`${"/role".substr(1)}?${new URLSearchParams(la(n)).toString()}`;const g=Fr(v=>u("PATCH",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueriesData("*abac.RoleEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(ks(O)),$(O)}})}),fnUpdater:y}}function Mse(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(yn),u=r?r(i):o?o(i):Lr(i);let d=`${"/role".substr(1)}?${new URLSearchParams(la(n)).toString()}`;const g=Fr(v=>u("POST",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueryData("*abac.RoleEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(ks(O)),$(O)}})}),fnUpdater:y}}function kse({value:t,onChange:e,...n}){const r=T.useRef();return T.useEffect(()=>{r.current.indeterminate=t==="indeterminate"},[r,t]),N.jsx("input",{...n,type:"checkbox",ref:r,onChange:i=>{e("checked")},checked:t==="checked",className:"form-check-input"})}const Dse=({errors:t,error:e})=>{if(!e&&!t)return null;let n={};e&&e.errors?n=e.errors:t&&(n=t);const r=Object.keys(n);return N.jsxs("div",{style:{minHeight:"30px"},children:[(t==null?void 0:t.form)&&N.jsx("div",{className:"with-fade-in",style:{color:"red"},children:t.form}),n.length&&N.jsxs("div",{children:[((e==null?void 0:e.title)||(e==null?void 0:e.message))&&N.jsx("span",{children:(e==null?void 0:e.title)||(e==null?void 0:e.message)}),r.map(i=>N.jsx("div",{children:N.jsxs("span",{children:["• ",n[i]]})},i))]})]})};function Ts(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Fse=0;function zS(t){return"__private_"+Fse+++"_"+t}var lp=zS("uniqueId"),cp=zS("name"),pl=zS("children"),eE=zS("isJsonAppliable");class $a{get uniqueId(){return Ts(this,lp)[lp]}set uniqueId(e){Ts(this,lp)[lp]=String(e)}setUniqueId(e){return this.uniqueId=e,this}get name(){return Ts(this,cp)[cp]}set name(e){Ts(this,cp)[cp]=String(e)}setName(e){return this.name=e,this}get children(){return Ts(this,pl)[pl]}set children(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof $a?Ts(this,pl)[pl]=e:Ts(this,pl)[pl]=e.map(n=>new $a(n)))}setChildren(e){return this.children=e,this}constructor(e=void 0){if(Object.defineProperty(this,eE,{value:Lse}),Object.defineProperty(this,lp,{writable:!0,value:""}),Object.defineProperty(this,cp,{writable:!0,value:""}),Object.defineProperty(this,pl,{writable:!0,value:[]}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Ts(this,eE)[eE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.name!==void 0&&(this.name=n.name),n.children!==void 0&&(this.children=n.children)}toJSON(){return{uniqueId:Ts(this,lp)[lp],name:Ts(this,cp)[cp],children:Ts(this,pl)[pl]}}toString(){return JSON.stringify(this)}static get Fields(){return{uniqueId:"uniqueId",name:"name",children$:"children",get children(){return Af("children[:i]",$a.Fields)}}}static from(e){return new $a(e)}static with(e){return new $a(e)}copyWith(e){return new $a({...this.toJSON(),...e})}clone(){return new $a(this.toJSON())}}function Lse(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var b1;function ml(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Use=0;function fT(t){return"__private_"+Use+++"_"+t}const jse=t=>{const e=zo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),Al.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Bo({queryKey:[Al.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class Al{}b1=Al;Al.URL="/capabilitiesTree";Al.NewUrl=t=>Vo(b1.URL,void 0,t);Al.Method="get";Al.Fetch$=async(t,e,n,r)=>qo(r??b1.NewUrl(t),{method:b1.Method,...n||{}},e);Al.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Ap(u)})=>{e=e||(l=>new Ap(l));const u=await b1.Fetch$(n,r,t,o);return Ho(u,l=>{const d=new no;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Al.Definition={name:"CapabilitiesTree",cliName:"treex",url:"/capabilitiesTree",method:"get",description:"dLists all of the capabilities in database as a array of string as root access",out:{envelope:"GResponse",fields:[{name:"capabilities",type:"collection",target:"CapabilityInfoDto"},{name:"nested",type:"collection",target:"CapabilityInfoDto"}]}};var gl=fT("capabilities"),yl=fT("nested"),tE=fT("isJsonAppliable");class Ap{get capabilities(){return ml(this,gl)[gl]}set capabilities(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof $a?ml(this,gl)[gl]=e:ml(this,gl)[gl]=e.map(n=>new $a(n)))}setCapabilities(e){return this.capabilities=e,this}get nested(){return ml(this,yl)[yl]}set nested(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof $a?ml(this,yl)[yl]=e:ml(this,yl)[yl]=e.map(n=>new $a(n)))}setNested(e){return this.nested=e,this}constructor(e=void 0){if(Object.defineProperty(this,tE,{value:Bse}),Object.defineProperty(this,gl,{writable:!0,value:[]}),Object.defineProperty(this,yl,{writable:!0,value:[]}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(ml(this,tE)[tE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.capabilities!==void 0&&(this.capabilities=n.capabilities),n.nested!==void 0&&(this.nested=n.nested)}toJSON(){return{capabilities:ml(this,gl)[gl],nested:ml(this,yl)[yl]}}toString(){return JSON.stringify(this)}static get Fields(){return{capabilities$:"capabilities",get capabilities(){return Af("capabilities[:i]",$a.Fields)},nested$:"nested",get nested(){return Af("nested[:i]",$a.Fields)}}}static from(e){return new Ap(e)}static with(e){return new Ap(e)}copyWith(e){return new Ap({...this.toJSON(),...e})}clone(){return new Ap(this.toJSON())}}function Bse(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function yM({onChange:t,value:e,prefix:n}){var l,d;const{data:r,error:i}=jse({}),o=((d=(l=r==null?void 0:r.data)==null?void 0:l.item)==null?void 0:d.nested)||[],u=(h,g)=>{let y=[...e||[]];g==="checked"&&y.push(h),g==="unchecked"&&(y=y.filter(w=>w!==h)),t&&t(y)};return N.jsxs("nav",{className:"tree-nav",children:[N.jsx(Dse,{error:i}),N.jsx("ul",{className:"list",children:N.jsx(vM,{items:o,onNodeChange:u,value:e,prefix:n})})]})}function vM({items:t,onNodeChange:e,value:n,prefix:r,autoChecked:i}){const o=r?r+".":"";return N.jsx(N.Fragment,{children:t.map(u=>{var h;const l=`${o}${u.uniqueId}${(h=u.children)!=null&&h.length?".*":""}`,d=(n||[]).includes(l)?"checked":"unchecked";return N.jsxs("li",{children:[N.jsx("span",{children:N.jsxs("label",{className:i?"auto-checked":"",children:[N.jsx(kse,{value:d,onChange:g=>{e(l,d==="checked"?"unchecked":"checked")}}),u.uniqueId]})}),u.children&&N.jsx("ul",{children:N.jsx(vM,{autoChecked:i||d==="checked",onNodeChange:e,value:n,items:u.children,prefix:o+u.uniqueId})})]},u.uniqueId)})})}const qse=(t,e)=>t!=null&&t.length&&!(e!=null&&e.length)?t.map(n=>n.uniqueId):e||[],Hse=({form:t,isEditing:e})=>{const{values:n,setFieldValue:r,errors:i}=t,o=vn();return N.jsxs(N.Fragment,{children:[N.jsx(Do,{value:n.name,onChange:u=>r(kr.Fields.name,u,!1),errorMessage:i.name,label:o.wokspaces.invite.role,autoFocus:!e,hint:o.wokspaces.invite.roleHint}),N.jsx(yM,{onChange:u=>r(kr.Fields.capabilitiesListId,u,!1),value:qse(n.capabilities,n.capabilitiesListId)})]})},MP=({data:t})=>{const{router:e,uniqueId:n,queryClient:r,locale:i}=F1({data:t}),o=vn(),u=gM({query:{uniqueId:n},queryOptions:{enabled:!!n}}),l=Mse({queryClient:r}),d=Nse({queryClient:r});return N.jsx(FO,{postHook:l,getSingleHook:u,patchHook:d,beforeSubmit:h=>{var g;return((g=h.capabilities)==null?void 0:g.length)>0&&h.capabilitiesListId===null?{...h,capabilitiesListId:h.capabilities.map(y=>y.uniqueId)}:h},onCancel:()=>{e.goBackOrDefault(kr.Navigation.query(void 0,i))},onFinishUriResolver:(h,g)=>{var y;return kr.Navigation.single((y=h.data)==null?void 0:y.uniqueId,g)},Form:Hse,onEditTitle:o.fb.editRole,onCreateTitle:o.fb.newRole,data:t})},zse=Ae.createContext({setToken(){},setSession(){},signout(){},ref:{token:""},isAuthenticated:!1});function Vse(){const t=localStorage.getItem("app_auth_state");if(t){try{const e=JSON.parse(t);return e?{...e}:{}}catch{}return{}}}Vse();function bM(t){const e=T.useContext(zse);T.useEffect(()=>{e.setToken(t||"")},[t])}function wM({title:t,children:e,className:n,description:r}){return N.jsxs("div",{className:Lo("page-section",n),children:[t?N.jsx("h2",{className:"",children:t}):null,r?N.jsx("p",{className:"",children:r}):null,N.jsx("div",{className:"mt-4",children:e})]})}const Gse=()=>{var l;const t=Ur();Nf();const e=t.query.uniqueId,n=vn();Ci();const[r,i]=T.useState([]),o=gM({query:{uniqueId:e,deep:!0}});var u=(l=o.query.data)==null?void 0:l.data;return bM((u==null?void 0:u.name)||""),T.useEffect(()=>{var d;i((d=u==null?void 0:u.capabilities)==null?void 0:d.map(h=>h.uniqueId||""))},[u==null?void 0:u.capabilities]),N.jsx(N.Fragment,{children:N.jsxs(XO,{editEntityHandler:()=>{t.push(kr.Navigation.edit(e))},getSingleHook:o,children:[N.jsx(ZO,{entity:u,fields:[{label:n.role.name,elem:u==null?void 0:u.name}]}),N.jsx(wM,{title:n.role.permissions,className:"mt-3",children:N.jsx(yM,{value:r})})]})})},Wse=t=>[{name:kr.Fields.uniqueId,title:t.table.uniqueId,width:200},{name:kr.Fields.name,title:t.role.name,width:200}];function Kse(t){const{execFnOverride:e,queryClient:n,query:r}=t||{},{options:i,execFn:o}=T.useContext(yn),u=e?e(i):o?o(i):Lr(i);let d=`${"/role".substr(1)}?${new URLSearchParams(la(r)).toString()}`;const g=Fr(v=>u("DELETE",d,v)),y=(v,C)=>v;return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){n==null||n.setQueryData("*abac.RoleEntity",_=>y(_)),n==null||n.invalidateQueries("*abac.RoleEntity"),E(O)},onError(O){C==null||C.setErrors(ks(O)),$(O)}})}),fnUpdater:y}}const Yse=()=>{const t=vn();return N.jsx(N.Fragment,{children:N.jsx(qS,{columns:Wse(t),queryHook:LS,uniqueIdHrefHandler:e=>kr.Navigation.single(e),deleteHook:Kse})})},Qse=()=>{const t=vn();return UX(),N.jsx(N.Fragment,{children:N.jsx(HS,{newEntityHandler:({locale:e,router:n})=>n.push(kr.Navigation.create()),pageTitle:t.fbMenu.roles,children:N.jsx(Yse,{})})})};function Jse(){return N.jsxs(N.Fragment,{children:[N.jsx(mn,{element:N.jsx(MP,{}),path:kr.Navigation.Rcreate}),N.jsx(mn,{element:N.jsx(Gse,{}),path:kr.Navigation.Rsingle}),N.jsx(mn,{element:N.jsx(MP,{}),path:kr.Navigation.Redit}),N.jsx(mn,{element:N.jsx(Qse,{}),path:kr.Navigation.Rquery})]})}({...Vt.Fields});function SM({queryOptions:t,query:e,queryClient:n,execFnOverride:r,unauthorized:i,optionFn:o}){var _,R,k;const{options:u,execFn:l}=T.useContext(yn),d=o?o(u):u,h=r?r(d):l?l(d):Lr(d);let y=`${"/users/invitations".substr(1)}?${Wg.stringify(e)}`;const w=()=>h("GET",y),v=(_=d==null?void 0:d.headers)==null?void 0:_.authorization,C=v!="undefined"&&v!=null&&v!=null&&v!="null"&&!!v;let E=!0;!C&&!i&&(E=!1);const $=Bo(["*abac.UserInvitationsQueryColumns",d,e],w,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...t||{}}),O=((k=(R=$.data)==null?void 0:R.data)==null?void 0:k.items)||[];return{query:$,items:O,keyExtractor:P=>P.uniqueId}}SM.UKEY="*abac.UserInvitationsQueryColumns";const Xse={confirmRejectTitle:"Reject invite",reject:"Reject",workspaceName:"Workspace Name",passport:"Passport",confirmAcceptDescription:"Are you sure that you are confirming to join?",confirmRejectDescription:"Are you sure to reject this invitation? You need to be reinvited by admins again.",acceptBtn:null,accept:"Accept",roleName:"Role name",method:"Method",actions:"Actions",confirmAcceptTitle:"Confirm invitation"},Zse={actions:"Akcje",confirmRejectTitle:"Odrzuć zaproszenie",method:"Metoda",roleName:"Nazwa roli",accept:"Akceptuj",confirmAcceptDescription:"Czy na pewno chcesz dołączyć?",confirmAcceptTitle:"Potwierdź zaproszenie",confirmRejectDescription:"Czy na pewno chcesz odrzucić to zaproszenie? Aby dołączyć ponownie, musisz zostać ponownie zaproszony przez administratorów.",passport:"Paszport",reject:"Odrzuć",workspaceName:"Nazwa przestrzeni roboczej",acceptBtn:"Tak"},eue={...Xse,$pl:Zse},tue=(t,e,n)=>[{name:"roleName",title:t.roleName,width:100},{name:"workspaceName",title:t.workspaceName,width:100},{name:"method",title:t.method,width:100,getCellValue:r=>r.type},{name:"value",title:t.passport,width:100,getCellValue:r=>r.value},{name:"actions",title:t.actions,width:100,getCellValue:r=>N.jsxs(N.Fragment,{children:[N.jsx("button",{className:"btn btn-sm btn-success",style:{marginRight:"2px"},onClick:i=>{e(r)},children:t.accept}),N.jsx("button",{onClick:i=>{n(r)},className:"btn btn-sm btn-danger",children:t.reject})]})}];var w1;function Of(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var nue=0;function VS(t){return"__private_"+nue+++"_"+t}const rue=t=>{const n=zo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Kf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Kf{}w1=Kf;Kf.URL="/user/invitation/accept";Kf.NewUrl=t=>Vo(w1.URL,void 0,t);Kf.Method="post";Kf.Fetch$=async(t,e,n,r)=>qo(r??w1.NewUrl(t),{method:w1.Method,...n||{}},e);Kf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Rp(u)})=>{e=e||(l=>new Rp(l));const u=await w1.Fetch$(n,r,t,o);return Ho(u,l=>{const d=new no;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Kf.Definition={name:"AcceptInvite",url:"/user/invitation/accept",method:"post",description:"Use it when user accepts an invitation, and it will complete the joining process",in:{fields:[{name:"invitationUniqueId",description:"The invitation id which will be used to process",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"accepted",type:"bool"}]}};var fp=VS("invitationUniqueId"),nE=VS("isJsonAppliable");class Rg{get invitationUniqueId(){return Of(this,fp)[fp]}set invitationUniqueId(e){Of(this,fp)[fp]=String(e)}setInvitationUniqueId(e){return this.invitationUniqueId=e,this}constructor(e=void 0){if(Object.defineProperty(this,nE,{value:iue}),Object.defineProperty(this,fp,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Of(this,nE)[nE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.invitationUniqueId!==void 0&&(this.invitationUniqueId=n.invitationUniqueId)}toJSON(){return{invitationUniqueId:Of(this,fp)[fp]}}toString(){return JSON.stringify(this)}static get Fields(){return{invitationUniqueId:"invitationUniqueId"}}static from(e){return new Rg(e)}static with(e){return new Rg(e)}copyWith(e){return new Rg({...this.toJSON(),...e})}clone(){return new Rg(this.toJSON())}}function iue(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var dp=VS("accepted"),rE=VS("isJsonAppliable");class Rp{get accepted(){return Of(this,dp)[dp]}set accepted(e){Of(this,dp)[dp]=!!e}setAccepted(e){return this.accepted=e,this}constructor(e=void 0){if(Object.defineProperty(this,rE,{value:aue}),Object.defineProperty(this,dp,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Of(this,rE)[rE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.accepted!==void 0&&(this.accepted=n.accepted)}toJSON(){return{accepted:Of(this,dp)[dp]}}toString(){return JSON.stringify(this)}static get Fields(){return{accepted:"accepted"}}static from(e){return new Rp(e)}static with(e){return new Rp(e)}copyWith(e){return new Rp({...this.toJSON(),...e})}clone(){return new Rp(this.toJSON())}}function aue(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const oue=()=>{const t=Wn(eue),e=T.useContext(X7),n=rue(),r=o=>{e.openModal({title:t.confirmAcceptTitle,confirmButtonLabel:t.acceptBtn,component:()=>N.jsx("div",{children:t.confirmAcceptDescription}),onSubmit:async()=>n.mutateAsync(new Rg({invitationUniqueId:o.uniqueId})).then(u=>{alert("Successful.")})})},i=o=>{e.openModal({title:t.confirmRejectTitle,confirmButtonLabel:t.acceptBtn,component:()=>N.jsx("div",{children:t.confirmRejectDescription}),onSubmit:async()=>!0})};return N.jsx(N.Fragment,{children:N.jsx(qS,{selectable:!1,columns:tue(t,r,i),queryHook:SM})})},sue=()=>{const t=vn();return N.jsx(N.Fragment,{children:N.jsx(HS,{pageTitle:t.fbMenu.myInvitations,children:N.jsx(oue,{})})})};function uue(){return N.jsx(N.Fragment,{children:N.jsx(mn,{element:N.jsx(sue,{}),path:"user-invitations"})})}function CM({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(yn),l=e?e(o):u?u(o):Lr(o);let h=`${"/workspace-invite/:uniqueId".substr(1)}?${new URLSearchParams(la(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,v=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!v&&!i&&(C=!1):C=!1,{query:Bo([o,n,"*abac.WorkspaceInviteEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}function lue(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(yn),u=r?r(i):o?o(i):Lr(i);let d=`${"/workspace-invite".substr(1)}?${new URLSearchParams(la(n)).toString()}`;const g=Fr(v=>u("PATCH",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueriesData("*abac.WorkspaceInviteEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(ks(O)),$(O)}})}),fnUpdater:y}}function cue(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(yn),u=r?r(i):o?o(i):Lr(i);let d=`${"/workspace/invite".substr(1)}?${new URLSearchParams(la(n)).toString()}`;const g=Fr(v=>u("POST",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueryData("*abac.WorkspaceInviteEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(ks(O)),$(O)}})}),fnUpdater:y}}const fue={targetLocaleHint:"If the user has a different language available, the initial interface will be on th selected value.",forcedEmailAddress:"Force Email Address",forcedEmailAddressHint:"If checked, user can only make the invitation using this email address, and won't be able to change it. If account exists, they need to accept invitation there.",forcedPhone:"Force Phone Number",forcedPhoneHint:"If checked, user only can create or join using this phone number",coverLetter:"Cover letter",coverLetterHint:"The invitation text that user would get over sms or email, you can modify it here.",targetLocale:"Target Locale"},due={targetLocaleHint:"Jeśli użytkownik ma dostępny inny język, interfejs początkowy będzie ustawiony na wybraną wartość.",coverLetter:"List motywacyjny",coverLetterHint:"Treść zaproszenia, którą użytkownik otrzyma przez SMS lub e-mail – możesz ją tutaj edytować.",forcedEmailAddress:"Wymuszony adres e-mail",forcedEmailAddressHint:"Jeśli zaznaczone, użytkownik może wysłać zaproszenie tylko na ten adres e-mail i nie będzie mógł go zmienić. Jeśli konto już istnieje, użytkownik musi zaakceptować zaproszenie na tym koncie.",forcedPhone:"Wymuszony numer telefonu",forcedPhoneHint:"Jeśli zaznaczone, użytkownik może utworzyć konto lub dołączyć tylko przy użyciu tego numeru telefonu",targetLocale:"Docelowy język"},$M={...fue,$pl:due};function hue(t){return e=>pue({items:t,...e})}function pue(t){var o,u;let e=((o=t.query)==null?void 0:o.itemsPerPage)||2,n=t.query.startIndex||0,r=t.items||[];return(u=t.query)!=null&&u.jsonQuery&&(r=VB(r,t.query.jsonQuery)),r=r.slice(n,n+e),{query:{data:{data:{items:r,totalItems:r.length,totalAvailableItems:r.length}},dataUpdatedAt:0,error:null,errorUpdateCount:0,errorUpdatedAt:0,failureCount:0,isError:!1,isFetched:!1,isFetchedAfterMount:!1,isFetching:!1,isIdle:!1,isLoading:!1,isLoadingError:!1,isPlaceholderData:!1,isPreviousData:!1,isRefetchError:!1,isRefetching:!1,isStale:!1,remove(){console.log("Use as query has not implemented this.")},refetch(){return console.log("Refetch is not working actually."),Promise.resolve(void 0)},isSuccess:!0,status:"success"},items:r}}var kx=function(){return kx=Object.assign||function(t){for(var e,n=1,r=arguments.length;n"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},vue=function(t,e){return UP(t).concat(UP(e))},bue=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},wue=function(t){if(!("isConnected"in Node.prototype)){for(var e=t,n=t.parentNode;n!=null;)e=n,n=e.parentNode;return e===t.ownerDocument}return t.isConnected},jP=function(t,e){t!==void 0&&(t.mode!=null&&typeof t.mode=="object"&&typeof t.mode.set=="function"?t.mode.set(e):t.setMode(e))},Dx=function(){return Dx=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0?setTimeout(h,u):h()},r=function(){for(var i=t.pop();i!=null;i=t.pop())i.deleteScripts()};return{loadList:n,reinitialize:r}},Eue=$ue(),aE=function(t){var e=t;return e&&e.tinymce?e.tinymce:null},xue=(function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),oS=function(){return oS=Object.assign||function(t){for(var e,n=1,r=arguments.length;nu([new File([l],d)]),o=(l,d=!1)=>new Promise((h,g)=>{const y=new FH(l,{endpoint:Si.REMOTE_SERVICE+"tus",onBeforeRequest(w){w.setHeader("authorization",t.token),w.setHeader("workspace-id",e==null?void 0:e.workspaceId)},headers:{},metadata:{filename:l.name,path:"/database/users",filetype:l.type},onSuccess(){var v;const w=(v=y.url)==null?void 0:v.match(/([a-z0-9]){10,}/gi);h(`${w}`)},onError(w){g(w)},onProgress(w,v){var E,$;const C=($=(E=y.url)==null?void 0:E.match(/([a-z0-9]){10,}/gi))==null?void 0:$.toString();if(C){const O={uploadId:C,bytesSent:w,filename:l.name,bytesTotal:v};d!==!0&&r(_=>Tue(_,O))}}});y.start()}),u=(l,d=!1)=>l.map(h=>o(h));return{upload:u,activeUploads:n,uploadBlob:i,uploadSingle:o}}var oE={},$0={},BP;function Aue(){if(BP)return $0;BP=1,$0.byteLength=l,$0.toByteArray=h,$0.fromByteArray=w;for(var t=[],e=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var E=v.indexOf("=");E===-1&&(E=C);var $=E===C?0:4-E%4;return[E,$]}function l(v){var C=u(v),E=C[0],$=C[1];return(E+$)*3/4-$}function d(v,C,E){return(C+E)*3/4-E}function h(v){var C,E=u(v),$=E[0],O=E[1],_=new n(d(v,$,O)),R=0,k=O>0?$-4:$,P;for(P=0;P>16&255,_[R++]=C>>8&255,_[R++]=C&255;return O===2&&(C=e[v.charCodeAt(P)]<<2|e[v.charCodeAt(P+1)]>>4,_[R++]=C&255),O===1&&(C=e[v.charCodeAt(P)]<<10|e[v.charCodeAt(P+1)]<<4|e[v.charCodeAt(P+2)]>>2,_[R++]=C>>8&255,_[R++]=C&255),_}function g(v){return t[v>>18&63]+t[v>>12&63]+t[v>>6&63]+t[v&63]}function y(v,C,E){for(var $,O=[],_=C;_k?k:R+_));return $===1?(C=v[E-1],O.push(t[C>>2]+t[C<<4&63]+"==")):$===2&&(C=(v[E-2]<<8)+v[E-1],O.push(t[C>>10]+t[C>>4&63]+t[C<<2&63]+"=")),O.join("")}return $0}var nw={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var qP;function Rue(){return qP||(qP=1,nw.read=function(t,e,n,r,i){var o,u,l=i*8-r-1,d=(1<>1,g=-7,y=n?i-1:0,w=n?-1:1,v=t[e+y];for(y+=w,o=v&(1<<-g)-1,v>>=-g,g+=l;g>0;o=o*256+t[e+y],y+=w,g-=8);for(u=o&(1<<-g)-1,o>>=-g,g+=r;g>0;u=u*256+t[e+y],y+=w,g-=8);if(o===0)o=1-h;else{if(o===d)return u?NaN:(v?-1:1)*(1/0);u=u+Math.pow(2,r),o=o-h}return(v?-1:1)*u*Math.pow(2,o-r)},nw.write=function(t,e,n,r,i,o){var u,l,d,h=o*8-i-1,g=(1<>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:o-1,C=r?1:-1,E=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,u=g):(u=Math.floor(Math.log(e)/Math.LN2),e*(d=Math.pow(2,-u))<1&&(u--,d*=2),u+y>=1?e+=w/d:e+=w*Math.pow(2,1-y),e*d>=2&&(u++,d/=2),u+y>=g?(l=0,u=g):u+y>=1?(l=(e*d-1)*Math.pow(2,i),u=u+y):(l=e*Math.pow(2,y-1)*Math.pow(2,i),u=0));i>=8;t[n+v]=l&255,v+=C,l/=256,i-=8);for(u=u<0;t[n+v]=u&255,v+=C,u/=256,h-=8);t[n+v-C]|=E*128}),nw}/*! + `})]});function TM({content:t,columns:e,uniqueIdHrefHandler:n,style:r}){const i=n?MS:"span";return N.jsx(i,{className:"auto-card-list-item card mb-2 p-3",style:r,href:n(t.uniqueId),children:e.map(o=>{let u=o.getCellValue?o.getCellValue(t):"";return u||(u=o.name?t[o.name]:""),u||(u="-"),o.name==="uniqueId"?null:N.jsxs("div",{className:"row auto-card-drawer",children:[N.jsxs("div",{className:"col-6",children:[o.title,":"]}),N.jsx("div",{className:"col-6",children:u})]},o.title)})})}const Ase=()=>{const t=yn();return N.jsxs("div",{className:"empty-list-indicator",children:[N.jsx("img",{src:YO("/common/empty.png")}),N.jsx("div",{children:t.table.noRecords})]})};var BP=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Rse(t,e){return!!(t===e||BP(t)&&BP(e))}function Pse(t,e){if(t.length!==e.length)return!1;for(var n=0;n=e?t.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var dE=-1;function zP(t){if(t===void 0&&(t=!1),dE===-1||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(e),dE=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return dE}var Pg=null;function VP(t){if(t===void 0&&(t=!1),Pg===null||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Pg="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Pg="negative":Pg="positive-ascending"),document.body.removeChild(e),Pg}return Pg}var Mse=150,kse=function(e,n){return e};function Dse(t){var e,n=t.getItemOffset,r=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,u=t.getStartIndexForOffset,l=t.getStopIndexForStartIndex,d=t.initInstanceProps,h=t.shouldResetStyleCacheOnItemSizeChange,g=t.validateProps;return e=(function(y){Qp(w,y);function w(C){var E;return E=y.call(this,C)||this,E._instanceProps=d(E.props,Rx(E)),E._outerRef=void 0,E._resetIsScrollingTimeoutId=null,E.state={instance:Rx(E),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof E.props.initialScrollOffset=="number"?E.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},E._callOnItemsRendered=void 0,E._callOnItemsRendered=fE(function($,O,_,R){return E.props.onItemsRendered({overscanStartIndex:$,overscanStopIndex:O,visibleStartIndex:_,visibleStopIndex:R})}),E._callOnScroll=void 0,E._callOnScroll=fE(function($,O,_){return E.props.onScroll({scrollDirection:$,scrollOffset:O,scrollUpdateWasRequested:_})}),E._getItemStyle=void 0,E._getItemStyle=function($){var O=E.props,_=O.direction,R=O.itemSize,k=O.layout,P=E._getItemStyleCache(h&&R,h&&k,h&&_),L;if(P.hasOwnProperty($))L=P[$];else{var F=n(E.props,$,E._instanceProps),q=i(E.props,$,E._instanceProps),Y=_==="horizontal"||k==="horizontal",X=_==="rtl",ue=Y?F:0;P[$]=L={position:"absolute",left:X?void 0:ue,right:X?ue:void 0,top:Y?0:F,height:Y?"100%":q,width:Y?q:"100%"}}return L},E._getItemStyleCache=void 0,E._getItemStyleCache=fE(function($,O,_){return{}}),E._onScrollHorizontal=function($){var O=$.currentTarget,_=O.clientWidth,R=O.scrollLeft,k=O.scrollWidth;E.setState(function(P){if(P.scrollOffset===R)return null;var L=E.props.direction,F=R;if(L==="rtl")switch(VP()){case"negative":F=-R;break;case"positive-descending":F=k-_-R;break}return F=Math.max(0,Math.min(F,k-_)),{isScrolling:!0,scrollDirection:P.scrollOffsetL.clientWidth?zP():0:P=L.scrollHeight>L.clientHeight?zP():0}this.scrollTo(o(this.props,E,$,k,this._instanceProps,P))},v.componentDidMount=function(){var E=this.props,$=E.direction,O=E.initialScrollOffset,_=E.layout;if(typeof O=="number"&&this._outerRef!=null){var R=this._outerRef;$==="horizontal"||_==="horizontal"?R.scrollLeft=O:R.scrollTop=O}this._callPropsCallbacks()},v.componentDidUpdate=function(){var E=this.props,$=E.direction,O=E.layout,_=this.state,R=_.scrollOffset,k=_.scrollUpdateWasRequested;if(k&&this._outerRef!=null){var P=this._outerRef;if($==="horizontal"||O==="horizontal")if($==="rtl")switch(VP()){case"negative":P.scrollLeft=-R;break;case"positive-ascending":P.scrollLeft=R;break;default:var L=P.clientWidth,F=P.scrollWidth;P.scrollLeft=F-L-R;break}else P.scrollLeft=R;else P.scrollTop=R}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&HP(this._resetIsScrollingTimeoutId)},v.render=function(){var E=this.props,$=E.children,O=E.className,_=E.direction,R=E.height,k=E.innerRef,P=E.innerElementType,L=E.innerTagName,F=E.itemCount,q=E.itemData,Y=E.itemKey,X=Y===void 0?kse:Y,ue=E.layout,me=E.outerElementType,te=E.outerTagName,be=E.style,we=E.useIsScrolling,B=E.width,V=this.state.isScrolling,H=_==="horizontal"||ue==="horizontal",ie=H?this._onScrollHorizontal:this._onScrollVertical,G=this._getRangeToRender(),Q=G[0],he=G[1],$e=[];if(F>0)for(var Ce=Q;Ce<=he;Ce++)$e.push(T.createElement($,{data:q,key:X(Ce,q),index:Ce,isScrolling:we?V:void 0,style:this._getItemStyle(Ce)}));var Be=r(this.props,this._instanceProps);return T.createElement(me||te||"div",{className:O,onScroll:ie,ref:this._outerRefSetter,style:Ve({position:"relative",height:R,width:B,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:_},be)},T.createElement(P||L||"div",{children:$e,ref:k,style:{height:H?"100%":Be,pointerEvents:V?"none":void 0,width:H?Be:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var E=this.props.itemCount;if(E>0){var $=this._getRangeToRender(),O=$[0],_=$[1],R=$[2],k=$[3];this._callOnItemsRendered(O,_,R,k)}}if(typeof this.props.onScroll=="function"){var P=this.state,L=P.scrollDirection,F=P.scrollOffset,q=P.scrollUpdateWasRequested;this._callOnScroll(L,F,q)}},v._getRangeToRender=function(){var E=this.props,$=E.itemCount,O=E.overscanCount,_=this.state,R=_.isScrolling,k=_.scrollDirection,P=_.scrollOffset;if($===0)return[0,0,0,0];var L=u(this.props,P,this._instanceProps),F=l(this.props,L,P,this._instanceProps),q=!R||k==="backward"?Math.max(1,O):1,Y=!R||k==="forward"?Math.max(1,O):1;return[Math.max(0,L-q),Math.max(0,Math.min($-1,F+Y)),L,F]},w})(T.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var Fse=function(e,n){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,n.instance},Lse=Dse({getItemOffset:function(e,n){var r=e.itemSize;return n*r},getItemSize:function(e,n){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var n=e.itemCount,r=e.itemSize;return r*n},getOffsetForIndexAndAlignment:function(e,n,r,i,o,u){var l=e.direction,d=e.height,h=e.itemCount,g=e.itemSize,y=e.layout,w=e.width,v=l==="horizontal"||y==="horizontal",C=v?w:d,E=Math.max(0,h*g-C),$=Math.min(E,n*g),O=Math.max(0,n*g-C+g+u);switch(r==="smart"&&(i>=O-C&&i<=$+C?r="auto":r="center"),r){case"start":return $;case"end":return O;case"center":{var _=Math.round(O+($-O)/2);return _E+Math.floor(C/2)?E:_}case"auto":default:return i>=O&&i<=$?i:i{var _,R,k,P,L,F;yn();const l=T.useRef();let[d,h]=T.useState([]);const[g,y]=T.useState(!0),w=kf();e&&e({queryClient:w});const v=(q,Y)=>{const X=r.debouncedFilters.startIndex||0,ue=[...d];l.current!==Y&&(ue.length=0,l.current=Y);for(let me=X;me<(r.debouncedFilters.itemsPerPage||0)+X;me++){const te=me-X;q[te]&&(ue[me]=q[te])}h(ue)};T.useEffect(()=>{var Y,X,ue;const q=((X=(Y=o.query.data)==null?void 0:Y.data)==null?void 0:X.items)||[];v(q,(ue=o.query.data)==null?void 0:ue.jsonQuery)},[(R=(_=o.query.data)==null?void 0:_.data)==null?void 0:R.items]);const C=({index:q,style:Y})=>{var ue,me;return d[q]?u?N.jsx(u,{content:d[q]},(ue=d[q])==null?void 0:ue.uniqueId):N.jsx(TM,{style:{...Y,top:Y.top+10,height:Y.height-10,width:Y.width},uniqueIdHrefHandler:n,columns:t,content:d[q]},(me=d[q])==null?void 0:me.uniqueId):null},E=({scrollOffset:q})=>{q===0&&!g?y(!0):q>0&&g&&y(!1)},$=T.useCallback(()=>(o.query.refetch(),Promise.resolve(!0)),[]),O=((L=(P=(k=o.query)==null?void 0:k.data)==null?void 0:P.data)==null?void 0:L.totalItems)||0;return N.jsx(N.Fragment,{children:N.jsx(xse,{pullDownContent:N.jsx(Tse,{label:""}),releaseContent:N.jsx(_se,{}),refreshContent:N.jsx(Ose,{}),pullDownThreshold:200,onRefresh:$,triggerHeight:g?500:0,startInvisible:!0,children:d.length===0&&!((F=o.query)!=null&&F.isError)?N.jsx("div",{style:{height:"calc(100vh - 130px)"},children:N.jsx(Ase,{})}):N.jsxs("div",{style:{height:"calc(100vh - 130px)"},children:[N.jsx(Wo,{query:o.query}),N.jsx(Cse,{isItemLoaded:q=>!!d[q],itemCount:O,loadMoreItems:async(q,Y)=>{r.setFilter({startIndex:q,itemsPerPage:Y-q})},children:({onItemsRendered:q,ref:Y})=>N.jsx(gse,{children:({height:X,width:ue})=>N.jsx(Lse,{height:X,itemCount:d.length,itemSize:u!=null&&u.getHeight?u.getHeight():t.length*24+10,width:ue,onScroll:E,onItemsRendered:q,ref:Y,children:C})})})]})})})},jse=({columns:t,deleteHook:e,uniqueIdHrefHandler:n,udf:r,q:i})=>{var h,g,y,w,v,C,E,$;const o=yn(),u=kf();e&&e({queryClient:u}),(g=(h=i.query.data)==null?void 0:h.data)!=null&&g.items;const l=((v=(w=(y=i.query)==null?void 0:y.data)==null?void 0:w.data)==null?void 0:v.items)||[],d=(($=(E=(C=i.query)==null?void 0:C.data)==null?void 0:E.data)==null?void 0:$.totalItems)||0;return N.jsxs(N.Fragment,{children:[d===0&&N.jsx("p",{children:o.table.noRecords}),l.map(O=>N.jsx(TM,{style:{},uniqueIdHrefHandler:n,columns:t,content:O},O.uniqueId))]})},GP=matchMedia("(max-width: 600px)");function Bse(){const t=T.useRef(GP),[e,n]=T.useState(GP.matches?"card":"datatable");return T.useEffect(()=>{const r=t.current;function i(){r.matches?n("card"):n("datatable")}return r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[]),{view:e}}const ZS=({children:t,columns:e,deleteHook:n,uniqueIdHrefHandler:r,withFilters:i,queryHook:o,onRecordsDeleted:u,selectable:l,id:d,RowDetail:h,withPreloads:g,queryFilters:y,deep:w,inlineInsertHook:v,bulkEditHook:C,urlMask:E,CardComponent:$})=>{var V,H,ie,G;yn();const{view:O}=Bse(),_=kf(),{query:R}=nae({query:{uniqueId:o.UKEY}}),[k,P]=T.useState(e.map(Q=>({columnName:Q.name,width:Q.width})));T.useEffect(()=>{var Q,he,$e,Ce;if((he=(Q=R.data)==null?void 0:Q.data)!=null&&he.sizes)P(JSON.parse((Ce=($e=R.data)==null?void 0:$e.data)==null?void 0:Ce.sizes));else{const Be=localStorage.getItem(`table_${o.UKEY}`);Be&&P(JSON.parse(Be))}},[(H=(V=R.data)==null?void 0:V.data)==null?void 0:H.sizes]);const{submit:L}=rae({queryClient:_}),F=n&&n({queryClient:_}),q=tae({urlMask:"",submitDelete:F==null?void 0:F.submit,onRecordsDeleted:u?()=>u({queryClient:_}):void 0}),[Y]=T.useState(e.map(Q=>({columnName:Q.name,width:Q.width}))),X=Q=>{P(Q);const he=JSON.stringify(Q);L({uniqueId:o.UKEY,sizes:he}),localStorage.setItem(`table_${o.UKEY}`,he)};let ue=({value:Q})=>N.jsx("div",{style:{position:"relative"},children:N.jsx(MS,{href:r&&r(Q),children:Q})}),me=Q=>N.jsx(Kie,{formatterComponent:ue,...Q});const te=[...y||[]],be=T.useMemo(()=>pse(te),[te]),we=o({query:{deep:w===void 0?!0:w,...q.debouncedFilters,withPreloads:g},queryClient:_});we.jsonQuery=be;const B=((G=(ie=we.query.data)==null?void 0:ie.data)==null?void 0:G.items)||[];return N.jsxs(N.Fragment,{children:[O==="map"&&N.jsx(jse,{columns:e,deleteHook:n,uniqueIdHrefHandler:r,q:we,udf:q}),O==="card"&&N.jsx(Use,{columns:e,CardComponent:$,jsonQuery:be,deleteHook:n,uniqueIdHrefHandler:r,q:we,udf:q}),O==="datatable"&&N.jsxs(dse,{udf:q,selectable:l,bulkEditHook:C,RowDetail:h,uniqueIdHrefHandler:r,onColumnWidthsChange:X,columns:e,columnSizes:k,inlineInsertHook:v,rows:B,defaultColumnWidths:Y,query:we.query,booleanColumns:["uniqueId"],withFilters:i,children:[N.jsx(me,{for:["uniqueId"]}),t]})]})};function qse(t){const{execFnOverride:e,queryClient:n,query:r}=t||{},{options:i,execFn:o}=T.useContext(Sn),u=e?e(i):o?o(i):Qr(i);let d=`${"/public-join-key".substr(1)}?${new URLSearchParams(Ta(r)).toString()}`;const g=Fr(v=>u("DELETE",d,v)),y=(v,C)=>v;return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){n==null||n.setQueryData("*abac.PublicJoinKeyEntity",_=>y(_)),n==null||n.invalidateQueries("*abac.PublicJoinKeyEntity"),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}function _M({queryOptions:t,query:e,queryClient:n,execFnOverride:r,unauthorized:i,optionFn:o}){var _,R,k;const{options:u,execFn:l}=T.useContext(Sn),d=o?o(u):u,h=r?r(d):l?l(d):Qr(d);let y=`${"/public-join-keys".substr(1)}?${ny.stringify(e)}`;const w=()=>h("GET",y),v=(_=d==null?void 0:d.headers)==null?void 0:_.authorization,C=v!="undefined"&&v!=null&&v!=null&&v!="null"&&!!v;let E=!0;!C&&!i&&(E=!1);const $=Go(["*abac.PublicJoinKeyEntity",d,e],w,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...t||{}}),O=((k=(R=$.data)==null?void 0:R.data)==null?void 0:k.items)||[];return{query:$,items:O,keyExtractor:P=>P.uniqueId}}_M.UKEY="*abac.PublicJoinKeyEntity";const Hse={roleName:"Role name",uniqueId:"Unique Id"},zse={roleName:"Nazwa roli",uniqueId:"Unikalny identyfikator"},Vse={...Hse,$pl:zse},Gse=t=>[{name:"uniqueId",title:t.uniqueId,width:200},{name:"role",title:t.roleName,width:200,getCellValue:e=>{var n;return(n=e.role)==null?void 0:n.name}}],Wse=()=>{const t=Kn(Vse);return N.jsx(N.Fragment,{children:N.jsx(ZS,{columns:Gse(t),queryHook:_M,uniqueIdHrefHandler:e=>eo.Navigation.single(e),deleteHook:qse})})},e3=({children:t,newEntityHandler:e,exportPath:n,pageTitle:r})=>{YN(r);const i=Lr(),{locale:o}=$i();return QX({path:n||""}),tZ(e?()=>e({locale:o,router:i}):void 0,Bn.NewEntity),N.jsx(N.Fragment,{children:t})},Kse=()=>{const t=yn();return N.jsx(N.Fragment,{children:N.jsx(e3,{pageTitle:t.fbMenu.publicJoinKey,newEntityHandler:({locale:e,router:n})=>{n.push(eo.Navigation.create())},children:N.jsx(Wse,{})})})};function Yse(){return N.jsxs(N.Fragment,{children:[N.jsx(mn,{element:N.jsx(SP,{}),path:eo.Navigation.Rcreate}),N.jsx(mn,{element:N.jsx(Ire,{}),path:eo.Navigation.Rsingle}),N.jsx(mn,{element:N.jsx(SP,{}),path:eo.Navigation.Redit}),N.jsx(mn,{element:N.jsx(Kse,{}),path:eo.Navigation.Rquery})]})}function AM({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(Sn),l=e?e(o):u?u(o):Qr(o);let h=`${"/role/:uniqueId".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,v=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!v&&!i&&(C=!1):C=!1,{query:Go([o,n,"*abac.RoleEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}function Jse(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(Sn),u=r?r(i):o?o(i):Qr(i);let d=`${"/role".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`;const g=Fr(v=>u("PATCH",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueriesData("*abac.RoleEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}function Qse(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(Sn),u=r?r(i):o?o(i):Qr(i);let d=`${"/role".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`;const g=Fr(v=>u("POST",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueryData("*abac.RoleEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}function Xse({value:t,onChange:e,...n}){const r=T.useRef();return T.useEffect(()=>{r.current.indeterminate=t==="indeterminate"},[r,t]),N.jsx("input",{...n,type:"checkbox",ref:r,onChange:i=>{e("checked")},checked:t==="checked",className:"form-check-input"})}const Zse=({errors:t,error:e})=>{if(!e&&!t)return null;let n={};e&&e.errors?n=e.errors:t&&(n=t);const r=Object.keys(n);return N.jsxs("div",{style:{minHeight:"30px"},children:[(t==null?void 0:t.form)&&N.jsx("div",{className:"with-fade-in",style:{color:"red"},children:t.form}),n.length&&N.jsxs("div",{children:[((e==null?void 0:e.title)||(e==null?void 0:e.message))&&N.jsx("span",{children:(e==null?void 0:e.title)||(e==null?void 0:e.message)}),r.map(i=>N.jsx("div",{children:N.jsxs("span",{children:["• ",n[i]]})},i))]})]})};function _s(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var eue=0;function t3(t){return"__private_"+eue+++"_"+t}var mp=t3("uniqueId"),gp=t3("name"),gl=t3("children"),hE=t3("isJsonAppliable");class $a{get uniqueId(){return _s(this,mp)[mp]}set uniqueId(e){_s(this,mp)[mp]=String(e)}setUniqueId(e){return this.uniqueId=e,this}get name(){return _s(this,gp)[gp]}set name(e){_s(this,gp)[gp]=String(e)}setName(e){return this.name=e,this}get children(){return _s(this,gl)[gl]}set children(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof $a?_s(this,gl)[gl]=e:_s(this,gl)[gl]=e.map(n=>new $a(n)))}setChildren(e){return this.children=e,this}constructor(e=void 0){if(Object.defineProperty(this,hE,{value:tue}),Object.defineProperty(this,mp,{writable:!0,value:""}),Object.defineProperty(this,gp,{writable:!0,value:""}),Object.defineProperty(this,gl,{writable:!0,value:[]}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(_s(this,hE)[hE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.uniqueId!==void 0&&(this.uniqueId=n.uniqueId),n.name!==void 0&&(this.name=n.name),n.children!==void 0&&(this.children=n.children)}toJSON(){return{uniqueId:_s(this,mp)[mp],name:_s(this,gp)[gp],children:_s(this,gl)[gl]}}toString(){return JSON.stringify(this)}static get Fields(){return{uniqueId:"uniqueId",name:"name",children$:"children",get children(){return xl("children[:i]",$a.Fields)}}}static from(e){return new $a(e)}static with(e){return new $a(e)}copyWith(e){return new $a({...this.toJSON(),...e})}clone(){return new $a(this.toJSON())}}function tue(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var R1;function yl(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var nue=0;function ET(t){return"__private_"+nue+++"_"+t}const rue=t=>{const e=oo(),n=(t==null?void 0:t.ctx)??e??void 0,[r,i]=T.useState(!1),[o,u]=T.useState(),l=()=>(i(!1),Il.Fetch({headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(h=>(h.done.then(()=>{i(!0)}),u(h.response),h.response.result)));return{...Go({queryKey:[Il.NewUrl(t==null?void 0:t.qs)],queryFn:l,...t||{}}),isCompleted:r,response:o}};class Il{}R1=Il;Il.URL="/capabilitiesTree";Il.NewUrl=t=>so(R1.URL,void 0,t);Il.Method="get";Il.Fetch$=async(t,e,n,r)=>io(r??R1.NewUrl(t),{method:R1.Method,...n||{}},e);Il.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Dp(u)})=>{e=e||(l=>new Dp(l));const u=await R1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Il.Definition={name:"CapabilitiesTree",cliName:"treex",url:"/capabilitiesTree",method:"get",description:"dLists all of the capabilities in database as a array of string as root access",out:{envelope:"GResponse",fields:[{name:"capabilities",type:"collection",target:"CapabilityInfoDto"},{name:"nested",type:"collection",target:"CapabilityInfoDto"}]}};var vl=ET("capabilities"),bl=ET("nested"),pE=ET("isJsonAppliable");class Dp{get capabilities(){return yl(this,vl)[vl]}set capabilities(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof $a?yl(this,vl)[vl]=e:yl(this,vl)[vl]=e.map(n=>new $a(n)))}setCapabilities(e){return this.capabilities=e,this}get nested(){return yl(this,bl)[bl]}set nested(e){Array.isArray(e)&&(e.length>0&&e[0]instanceof $a?yl(this,bl)[bl]=e:yl(this,bl)[bl]=e.map(n=>new $a(n)))}setNested(e){return this.nested=e,this}constructor(e=void 0){if(Object.defineProperty(this,pE,{value:iue}),Object.defineProperty(this,vl,{writable:!0,value:[]}),Object.defineProperty(this,bl,{writable:!0,value:[]}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(yl(this,pE)[pE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.capabilities!==void 0&&(this.capabilities=n.capabilities),n.nested!==void 0&&(this.nested=n.nested)}toJSON(){return{capabilities:yl(this,vl)[vl],nested:yl(this,bl)[bl]}}toString(){return JSON.stringify(this)}static get Fields(){return{capabilities$:"capabilities",get capabilities(){return xl("capabilities[:i]",$a.Fields)},nested$:"nested",get nested(){return xl("nested[:i]",$a.Fields)}}}static from(e){return new Dp(e)}static with(e){return new Dp(e)}copyWith(e){return new Dp({...this.toJSON(),...e})}clone(){return new Dp(this.toJSON())}}function iue(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}function RM({onChange:t,value:e,prefix:n}){var l,d;const{data:r,error:i}=rue({}),o=((d=(l=r==null?void 0:r.data)==null?void 0:l.item)==null?void 0:d.nested)||[],u=(h,g)=>{let y=[...e||[]];g==="checked"&&y.push(h),g==="unchecked"&&(y=y.filter(w=>w!==h)),t&&t(y)};return N.jsxs("nav",{className:"tree-nav",children:[N.jsx(Zse,{error:i}),N.jsx("ul",{className:"list",children:N.jsx(PM,{items:o,onNodeChange:u,value:e,prefix:n})})]})}function PM({items:t,onNodeChange:e,value:n,prefix:r,autoChecked:i}){const o=r?r+".":"";return N.jsx(N.Fragment,{children:t.map(u=>{var h;const l=`${o}${u.uniqueId}${(h=u.children)!=null&&h.length?".*":""}`,d=(n||[]).includes(l)?"checked":"unchecked";return N.jsxs("li",{children:[N.jsx("span",{children:N.jsxs("label",{className:i?"auto-checked":"",children:[N.jsx(Xse,{value:d,onChange:g=>{e(l,d==="checked"?"unchecked":"checked")}}),u.uniqueId]})}),u.children&&N.jsx("ul",{children:N.jsx(PM,{autoChecked:i||d==="checked",onNodeChange:e,value:n,items:u.children,prefix:o+u.uniqueId})})]},u.uniqueId)})})}const aue=(t,e)=>t!=null&&t.length&&!(e!=null&&e.length)?t.map(n=>n.uniqueId):e||[],oue=({form:t,isEditing:e})=>{const{values:n,setFieldValue:r,errors:i}=t,o=yn();return N.jsxs(N.Fragment,{children:[N.jsx(Bo,{value:n.name,onChange:u=>r(kr.Fields.name,u,!1),errorMessage:i.name,label:o.wokspaces.invite.role,autoFocus:!e,hint:o.wokspaces.invite.roleHint}),N.jsx(RM,{onChange:u=>r(kr.Fields.capabilitiesListId,u,!1),value:aue(n.capabilities,n.capabilitiesListId)})]})},WP=({data:t})=>{const{router:e,uniqueId:n,queryClient:r,locale:i}=K1({data:t}),o=yn(),u=AM({query:{uniqueId:n},queryOptions:{enabled:!!n}}),l=Qse({queryClient:r}),d=Jse({queryClient:r});return N.jsx(JO,{postHook:l,getSingleHook:u,patchHook:d,beforeSubmit:h=>{var g;return((g=h.capabilities)==null?void 0:g.length)>0&&h.capabilitiesListId===null?{...h,capabilitiesListId:h.capabilities.map(y=>y.uniqueId)}:h},onCancel:()=>{e.goBackOrDefault(kr.Navigation.query(void 0,i))},onFinishUriResolver:(h,g)=>{var y;return kr.Navigation.single((y=h.data)==null?void 0:y.uniqueId,g)},Form:oue,onEditTitle:o.fb.editRole,onCreateTitle:o.fb.newRole,data:t})},sue=Ae.createContext({setToken(){},setSession(){},signout(){},ref:{token:""},isAuthenticated:!1});function uue(){const t=localStorage.getItem("app_auth_state");if(t){try{const e=JSON.parse(t);return e?{...e}:{}}catch{}return{}}}uue();function IM(t){const e=T.useContext(sue);T.useEffect(()=>{e.setToken(t||"")},[t])}function NM({title:t,children:e,className:n,description:r}){return N.jsxs("div",{className:Ho("page-section",n),children:[t?N.jsx("h2",{className:"",children:t}):null,r?N.jsx("p",{className:"",children:r}):null,N.jsx("div",{className:"mt-4",children:e})]})}const lue=()=>{var l;const t=Lr();kf();const e=t.query.uniqueId,n=yn();$i();const[r,i]=T.useState([]),o=AM({query:{uniqueId:e,deep:!0}});var u=(l=o.query.data)==null?void 0:l.data;return IM((u==null?void 0:u.name)||""),T.useEffect(()=>{var d;i((d=u==null?void 0:u.capabilities)==null?void 0:d.map(h=>h.uniqueId||""))},[u==null?void 0:u.capabilities]),N.jsx(N.Fragment,{children:N.jsxs(fT,{editEntityHandler:()=>{t.push(kr.Navigation.edit(e))},getSingleHook:o,children:[N.jsx(dT,{entity:u,fields:[{label:n.role.name,elem:u==null?void 0:u.name}]}),N.jsx(NM,{title:n.role.permissions,className:"mt-3",children:N.jsx(RM,{value:r})})]})})},cue=t=>[{name:kr.Fields.uniqueId,title:t.table.uniqueId,width:200},{name:kr.Fields.name,title:t.role.name,width:200}];function fue(t){const{execFnOverride:e,queryClient:n,query:r}=t||{},{options:i,execFn:o}=T.useContext(Sn),u=e?e(i):o?o(i):Qr(i);let d=`${"/role".substr(1)}?${new URLSearchParams(Ta(r)).toString()}`;const g=Fr(v=>u("DELETE",d,v)),y=(v,C)=>v;return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){n==null||n.setQueryData("*abac.RoleEntity",_=>y(_)),n==null||n.invalidateQueries("*abac.RoleEntity"),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}const due=()=>{const t=yn();return N.jsx(N.Fragment,{children:N.jsx(ZS,{columns:cue(t),queryHook:YS,uniqueIdHrefHandler:e=>kr.Navigation.single(e),deleteHook:fue})})},hue=()=>{const t=yn();return nZ(),N.jsx(N.Fragment,{children:N.jsx(e3,{newEntityHandler:({locale:e,router:n})=>n.push(kr.Navigation.create()),pageTitle:t.fbMenu.roles,children:N.jsx(due,{})})})};function pue(){return N.jsxs(N.Fragment,{children:[N.jsx(mn,{element:N.jsx(WP,{}),path:kr.Navigation.Rcreate}),N.jsx(mn,{element:N.jsx(lue,{}),path:kr.Navigation.Rsingle}),N.jsx(mn,{element:N.jsx(WP,{}),path:kr.Navigation.Redit}),N.jsx(mn,{element:N.jsx(hue,{}),path:kr.Navigation.Rquery})]})}({...Vt.Fields});function MM({queryOptions:t,query:e,queryClient:n,execFnOverride:r,unauthorized:i,optionFn:o}){var _,R,k;const{options:u,execFn:l}=T.useContext(Sn),d=o?o(u):u,h=r?r(d):l?l(d):Qr(d);let y=`${"/users/invitations".substr(1)}?${ny.stringify(e)}`;const w=()=>h("GET",y),v=(_=d==null?void 0:d.headers)==null?void 0:_.authorization,C=v!="undefined"&&v!=null&&v!=null&&v!="null"&&!!v;let E=!0;!C&&!i&&(E=!1);const $=Go(["*abac.UserInvitationsQueryColumns",d,e],w,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...t||{}}),O=((k=(R=$.data)==null?void 0:R.data)==null?void 0:k.items)||[];return{query:$,items:O,keyExtractor:P=>P.uniqueId}}MM.UKEY="*abac.UserInvitationsQueryColumns";const mue={confirmRejectTitle:"Reject invite",reject:"Reject",workspaceName:"Workspace Name",passport:"Passport",confirmAcceptDescription:"Are you sure that you are confirming to join?",confirmRejectDescription:"Are you sure to reject this invitation? You need to be reinvited by admins again.",acceptBtn:null,accept:"Accept",roleName:"Role name",method:"Method",actions:"Actions",confirmAcceptTitle:"Confirm invitation"},gue={actions:"Akcje",confirmRejectTitle:"Odrzuć zaproszenie",method:"Metoda",roleName:"Nazwa roli",accept:"Akceptuj",confirmAcceptDescription:"Czy na pewno chcesz dołączyć?",confirmAcceptTitle:"Potwierdź zaproszenie",confirmRejectDescription:"Czy na pewno chcesz odrzucić to zaproszenie? Aby dołączyć ponownie, musisz zostać ponownie zaproszony przez administratorów.",passport:"Paszport",reject:"Odrzuć",workspaceName:"Nazwa przestrzeni roboczej",acceptBtn:"Tak"},yue={...mue,$pl:gue},vue=(t,e,n)=>[{name:"roleName",title:t.roleName,width:100},{name:"workspaceName",title:t.workspaceName,width:100},{name:"method",title:t.method,width:100,getCellValue:r=>r.type},{name:"value",title:t.passport,width:100,getCellValue:r=>r.value},{name:"actions",title:t.actions,width:100,getCellValue:r=>N.jsxs(N.Fragment,{children:[N.jsx("button",{className:"btn btn-sm btn-success",style:{marginRight:"2px"},onClick:i=>{e(r)},children:t.accept}),N.jsx("button",{onClick:i=>{n(r)},className:"btn btn-sm btn-danger",children:t.reject})]})}];var P1;function Af(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var bue=0;function n3(t){return"__private_"+bue+++"_"+t}const wue=t=>{const n=oo()??void 0,[r,i]=T.useState(!1),[o,u]=T.useState();return{...Fr({mutationFn:h=>(i(!1),Qf.Fetch({body:h,headers:t==null?void 0:t.headers},{creatorFn:t==null?void 0:t.creatorFn,qs:t==null?void 0:t.qs,ctx:n,onMessage:t==null?void 0:t.onMessage,overrideUrl:t==null?void 0:t.overrideUrl}).then(g=>(g.done.then(()=>{i(!0)}),u(g.response),g.response.result)))}),isCompleted:r,response:o}};class Qf{}P1=Qf;Qf.URL="/user/invitation/accept";Qf.NewUrl=t=>so(P1.URL,void 0,t);Qf.Method="post";Qf.Fetch$=async(t,e,n,r)=>io(r??P1.NewUrl(t),{method:P1.Method,...n||{}},e);Qf.Fetch=async(t,{creatorFn:e,qs:n,ctx:r,onMessage:i,overrideUrl:o}={creatorFn:u=>new Fp(u)})=>{e=e||(l=>new Fp(l));const u=await P1.Fetch$(n,r,t,o);return ao(u,l=>{const d=new _a;return e&&d.setCreator(e),d.inject(l),d},i,t==null?void 0:t.signal)};Qf.Definition={name:"AcceptInvite",url:"/user/invitation/accept",method:"post",description:"Use it when user accepts an invitation, and it will complete the joining process",in:{fields:[{name:"invitationUniqueId",description:"The invitation id which will be used to process",type:"string",tags:{validate:"required"}}]},out:{envelope:"GResponse",fields:[{name:"accepted",type:"bool"}]}};var yp=n3("invitationUniqueId"),mE=n3("isJsonAppliable");class Ug{get invitationUniqueId(){return Af(this,yp)[yp]}set invitationUniqueId(e){Af(this,yp)[yp]=String(e)}setInvitationUniqueId(e){return this.invitationUniqueId=e,this}constructor(e=void 0){if(Object.defineProperty(this,mE,{value:Sue}),Object.defineProperty(this,yp,{writable:!0,value:""}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Af(this,mE)[mE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.invitationUniqueId!==void 0&&(this.invitationUniqueId=n.invitationUniqueId)}toJSON(){return{invitationUniqueId:Af(this,yp)[yp]}}toString(){return JSON.stringify(this)}static get Fields(){return{invitationUniqueId:"invitationUniqueId"}}static from(e){return new Ug(e)}static with(e){return new Ug(e)}copyWith(e){return new Ug({...this.toJSON(),...e})}clone(){return new Ug(this.toJSON())}}function Sue(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}var vp=n3("accepted"),gE=n3("isJsonAppliable");class Fp{get accepted(){return Af(this,vp)[vp]}set accepted(e){Af(this,vp)[vp]=!!e}setAccepted(e){return this.accepted=e,this}constructor(e=void 0){if(Object.defineProperty(this,gE,{value:Cue}),Object.defineProperty(this,vp,{writable:!0,value:void 0}),e!=null)if(typeof e=="string")this.applyFromObject(JSON.parse(e));else if(Af(this,gE)[gE](e))this.applyFromObject(e);else throw new Error("Instance cannot be created on an unknown value, check the content being passed. got: "+typeof e)}applyFromObject(e={}){const n=e;n.accepted!==void 0&&(this.accepted=n.accepted)}toJSON(){return{accepted:Af(this,vp)[vp]}}toString(){return JSON.stringify(this)}static get Fields(){return{accepted:"accepted"}}static from(e){return new Fp(e)}static with(e){return new Fp(e)}copyWith(e){return new Fp({...this.toJSON(),...e})}clone(){return new Fp(this.toJSON())}}function Cue(t){const e=globalThis,n=typeof e.Buffer<"u"&&typeof e.Buffer.isBuffer=="function"&&e.Buffer.isBuffer(t),r=typeof e.Blob<"u"&&t instanceof e.Blob;return t&&typeof t=="object"&&!Array.isArray(t)&&!n&&!(t instanceof ArrayBuffer)&&!r}const $ue=()=>{const t=Kn(yue),e=T.useContext(fM),n=wue(),r=o=>{e.openModal({title:t.confirmAcceptTitle,confirmButtonLabel:t.acceptBtn,component:()=>N.jsx("div",{children:t.confirmAcceptDescription}),onSubmit:async()=>n.mutateAsync(new Ug({invitationUniqueId:o.uniqueId})).then(u=>{alert("Successful.")})})},i=o=>{e.openModal({title:t.confirmRejectTitle,confirmButtonLabel:t.acceptBtn,component:()=>N.jsx("div",{children:t.confirmRejectDescription}),onSubmit:async()=>!0})};return N.jsx(N.Fragment,{children:N.jsx(ZS,{selectable:!1,columns:vue(t,r,i),queryHook:MM})})},Eue=()=>{const t=yn();return N.jsx(N.Fragment,{children:N.jsx(e3,{pageTitle:t.fbMenu.myInvitations,children:N.jsx($ue,{})})})};function xue(){return N.jsx(N.Fragment,{children:N.jsx(mn,{element:N.jsx(Eue,{}),path:"user-invitations"})})}function kM({queryOptions:t,execFnOverride:e,query:n,queryClient:r,unauthorized:i}){var $;const{options:o,execFn:u}=T.useContext(Sn),l=e?e(o):u?u(o):Qr(o);let h=`${"/workspace-invite/:uniqueId".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`,g=!0;h=h.replace(":uniqueId",n[":uniqueId".replace(":","")]),n[":uniqueId".replace(":","")]===void 0&&(g=!1);const y=()=>l("GET",h),w=($=o==null?void 0:o.headers)==null?void 0:$.authorization,v=w!="undefined"&&w!=null&&w!=null&&w!="null"&&!!w;let C=!0;return g?!v&&!i&&(C=!1):C=!1,{query:Go([o,n,"*abac.WorkspaceInviteEntity"],y,{cacheTime:1001,retry:!1,keepPreviousData:!0,enabled:C,...t||{}})}}function Oue(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(Sn),u=r?r(i):o?o(i):Qr(i);let d=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`;const g=Fr(v=>u("PATCH",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueriesData("*abac.WorkspaceInviteEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}function Tue(t){let{queryClient:e,query:n,execFnOverride:r}=t||{};n=n||{};const{options:i,execFn:o}=T.useContext(Sn),u=r?r(i):o?o(i):Qr(i);let d=`${"/workspace/invite".substr(1)}?${new URLSearchParams(Ta(n)).toString()}`;const g=Fr(v=>u("POST",d,v)),y=(v,C)=>{var E;return v?(v.data&&(C!=null&&C.data)&&(v.data.items=[C.data,...((E=v==null?void 0:v.data)==null?void 0:E.items)||[]]),v):{data:{items:[]}}};return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){e==null||e.setQueryData("*abac.WorkspaceInviteEntity",_=>y(_,O)),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}const _ue={targetLocaleHint:"If the user has a different language available, the initial interface will be on th selected value.",forcedEmailAddress:"Force Email Address",forcedEmailAddressHint:"If checked, user can only make the invitation using this email address, and won't be able to change it. If account exists, they need to accept invitation there.",forcedPhone:"Force Phone Number",forcedPhoneHint:"If checked, user only can create or join using this phone number",coverLetter:"Cover letter",coverLetterHint:"The invitation text that user would get over sms or email, you can modify it here.",targetLocale:"Target Locale"},Aue={targetLocaleHint:"Jeśli użytkownik ma dostępny inny język, interfejs początkowy będzie ustawiony na wybraną wartość.",coverLetter:"List motywacyjny",coverLetterHint:"Treść zaproszenia, którą użytkownik otrzyma przez SMS lub e-mail – możesz ją tutaj edytować.",forcedEmailAddress:"Wymuszony adres e-mail",forcedEmailAddressHint:"Jeśli zaznaczone, użytkownik może wysłać zaproszenie tylko na ten adres e-mail i nie będzie mógł go zmienić. Jeśli konto już istnieje, użytkownik musi zaakceptować zaproszenie na tym koncie.",forcedPhone:"Wymuszony numer telefonu",forcedPhoneHint:"Jeśli zaznaczone, użytkownik może utworzyć konto lub dołączyć tylko przy użyciu tego numeru telefonu",targetLocale:"Docelowy język"},DM={..._ue,$pl:Aue};function Rue(t){return e=>Pue({items:t,...e})}function Pue(t){var o,u;let e=((o=t.query)==null?void 0:o.itemsPerPage)||2,n=t.query.startIndex||0,r=t.items||[];return(u=t.query)!=null&&u.jsonQuery&&(r=iq(r,t.query.jsonQuery)),r=r.slice(n,n+e),{query:{data:{data:{items:r,totalItems:r.length,totalAvailableItems:r.length}},dataUpdatedAt:0,error:null,errorUpdateCount:0,errorUpdatedAt:0,failureCount:0,isError:!1,isFetched:!1,isFetchedAfterMount:!1,isFetching:!1,isIdle:!1,isLoading:!1,isLoadingError:!1,isPlaceholderData:!1,isPreviousData:!1,isRefetchError:!1,isRefetching:!1,isStale:!1,remove(){console.log("Use as query has not implemented this.")},refetch(){return console.log("Refetch is not working actually."),Promise.resolve(void 0)},isSuccess:!0,status:"success"},items:r}}var Kx=function(){return Kx=Object.assign||function(t){for(var e,n=1,r=arguments.length;n"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},kue=function(t,e){return XP(t).concat(XP(e))},Due=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},Fue=function(t){if(!("isConnected"in Node.prototype)){for(var e=t,n=t.parentNode;n!=null;)e=n,n=e.parentNode;return e===t.ownerDocument}return t.isConnected},ZP=function(t,e){t!==void 0&&(t.mode!=null&&typeof t.mode=="object"&&typeof t.mode.set=="function"?t.mode.set(e):t.setMode(e))},Yx=function(){return Yx=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0?setTimeout(h,u):h()},r=function(){for(var i=t.pop();i!=null;i=t.pop())i.deleteScripts()};return{loadList:n,reinitialize:r}},Bue=jue(),vE=function(t){var e=t;return e&&e.tinymce?e.tinymce:null},que=(function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),yS=function(){return yS=Object.assign||function(t){for(var e,n=1,r=arguments.length;nu([new File([l],d)]),o=(l,d=!1)=>new Promise((h,g)=>{const y=new JH(l,{endpoint:Ci.REMOTE_SERVICE+"tus",onBeforeRequest(w){w.setHeader("authorization",t.token),w.setHeader("workspace-id",e==null?void 0:e.workspaceId)},headers:{},metadata:{filename:l.name,path:"/database/users",filetype:l.type},onSuccess(){var v;const w=(v=y.url)==null?void 0:v.match(/([a-z0-9]){10,}/gi);h(`${w}`)},onError(w){g(w)},onProgress(w,v){var E,$;const C=($=(E=y.url)==null?void 0:E.match(/([a-z0-9]){10,}/gi))==null?void 0:$.toString();if(C){const O={uploadId:C,bytesSent:w,filename:l.name,bytesTotal:v};d!==!0&&r(_=>zue(_,O))}}});y.start()}),u=(l,d=!1)=>l.map(h=>o(h));return{upload:u,activeUploads:n,uploadBlob:i,uploadSingle:o}}var bE={},N0={},e5;function Gue(){if(e5)return N0;e5=1,N0.byteLength=l,N0.toByteArray=h,N0.fromByteArray=w;for(var t=[],e=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var E=v.indexOf("=");E===-1&&(E=C);var $=E===C?0:4-E%4;return[E,$]}function l(v){var C=u(v),E=C[0],$=C[1];return(E+$)*3/4-$}function d(v,C,E){return(C+E)*3/4-E}function h(v){var C,E=u(v),$=E[0],O=E[1],_=new n(d(v,$,O)),R=0,k=O>0?$-4:$,P;for(P=0;P>16&255,_[R++]=C>>8&255,_[R++]=C&255;return O===2&&(C=e[v.charCodeAt(P)]<<2|e[v.charCodeAt(P+1)]>>4,_[R++]=C&255),O===1&&(C=e[v.charCodeAt(P)]<<10|e[v.charCodeAt(P+1)]<<4|e[v.charCodeAt(P+2)]>>2,_[R++]=C>>8&255,_[R++]=C&255),_}function g(v){return t[v>>18&63]+t[v>>12&63]+t[v>>6&63]+t[v&63]}function y(v,C,E){for(var $,O=[],_=C;_k?k:R+_));return $===1?(C=v[E-1],O.push(t[C>>2]+t[C<<4&63]+"==")):$===2&&(C=(v[E-2]<<8)+v[E-1],O.push(t[C>>10]+t[C>>4&63]+t[C<<2&63]+"=")),O.join("")}return N0}var hw={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var t5;function Wue(){return t5||(t5=1,hw.read=function(t,e,n,r,i){var o,u,l=i*8-r-1,d=(1<>1,g=-7,y=n?i-1:0,w=n?-1:1,v=t[e+y];for(y+=w,o=v&(1<<-g)-1,v>>=-g,g+=l;g>0;o=o*256+t[e+y],y+=w,g-=8);for(u=o&(1<<-g)-1,o>>=-g,g+=r;g>0;u=u*256+t[e+y],y+=w,g-=8);if(o===0)o=1-h;else{if(o===d)return u?NaN:(v?-1:1)*(1/0);u=u+Math.pow(2,r),o=o-h}return(v?-1:1)*u*Math.pow(2,o-r)},hw.write=function(t,e,n,r,i,o){var u,l,d,h=o*8-i-1,g=(1<>1,w=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:o-1,C=r?1:-1,E=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,u=g):(u=Math.floor(Math.log(e)/Math.LN2),e*(d=Math.pow(2,-u))<1&&(u--,d*=2),u+y>=1?e+=w/d:e+=w*Math.pow(2,1-y),e*d>=2&&(u++,d/=2),u+y>=g?(l=0,u=g):u+y>=1?(l=(e*d-1)*Math.pow(2,i),u=u+y):(l=e*Math.pow(2,y-1)*Math.pow(2,i),u=0));i>=8;t[n+v]=l&255,v+=C,l/=256,i-=8);for(u=u<0;t[n+v]=u&255,v+=C,u/=256,h-=8);t[n+v-C]|=E*128}),hw}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */var HP;function Pue(){return HP||(HP=1,(function(t){const e=Aue(),n=Rue(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=_,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i,l.TYPED_ARRAY_SUPPORT=o(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const j=new Uint8Array(1),A={foo:function(){return 42}};return Object.setPrototypeOf(A,Uint8Array.prototype),Object.setPrototypeOf(j,A),j.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function u(j){if(j>i)throw new RangeError('The value "'+j+'" is invalid for option "size"');const A=new Uint8Array(j);return Object.setPrototypeOf(A,l.prototype),A}function l(j,A,M){if(typeof j=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(j)}return d(j,A,M)}l.poolSize=8192;function d(j,A,M){if(typeof j=="string")return w(j,A);if(ArrayBuffer.isView(j))return C(j);if(j==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j);if(pe(j,ArrayBuffer)||j&&pe(j.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(pe(j,SharedArrayBuffer)||j&&pe(j.buffer,SharedArrayBuffer)))return E(j,A,M);if(typeof j=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Q=j.valueOf&&j.valueOf();if(Q!=null&&Q!==j)return l.from(Q,A,M);const re=$(j);if(re)return re;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof j[Symbol.toPrimitive]=="function")return l.from(j[Symbol.toPrimitive]("string"),A,M);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j)}l.from=function(j,A,M){return d(j,A,M)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function h(j){if(typeof j!="number")throw new TypeError('"size" argument must be of type number');if(j<0)throw new RangeError('The value "'+j+'" is invalid for option "size"')}function g(j,A,M){return h(j),j<=0?u(j):A!==void 0?typeof M=="string"?u(j).fill(A,M):u(j).fill(A):u(j)}l.alloc=function(j,A,M){return g(j,A,M)};function y(j){return h(j),u(j<0?0:O(j)|0)}l.allocUnsafe=function(j){return y(j)},l.allocUnsafeSlow=function(j){return y(j)};function w(j,A){if((typeof A!="string"||A==="")&&(A="utf8"),!l.isEncoding(A))throw new TypeError("Unknown encoding: "+A);const M=R(j,A)|0;let Q=u(M);const re=Q.write(j,A);return re!==M&&(Q=Q.slice(0,re)),Q}function v(j){const A=j.length<0?0:O(j.length)|0,M=u(A);for(let Q=0;Q=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return j|0}function _(j){return+j!=j&&(j=0),l.alloc(+j)}l.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==l.prototype},l.compare=function(A,M){if(pe(A,Uint8Array)&&(A=l.from(A,A.offset,A.byteLength)),pe(M,Uint8Array)&&(M=l.from(M,M.offset,M.byteLength)),!l.isBuffer(A)||!l.isBuffer(M))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===M)return 0;let Q=A.length,re=M.length;for(let ge=0,Ee=Math.min(Q,re);gere.length?(l.isBuffer(Ee)||(Ee=l.from(Ee)),Ee.copy(re,ge)):Uint8Array.prototype.set.call(re,Ee,ge);else if(l.isBuffer(Ee))Ee.copy(re,ge);else throw new TypeError('"list" argument must be an Array of Buffers');ge+=Ee.length}return re};function R(j,A){if(l.isBuffer(j))return j.length;if(ArrayBuffer.isView(j)||pe(j,ArrayBuffer))return j.byteLength;if(typeof j!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof j);const M=j.length,Q=arguments.length>2&&arguments[2]===!0;if(!Q&&M===0)return 0;let re=!1;for(;;)switch(A){case"ascii":case"latin1":case"binary":return M;case"utf8":case"utf-8":return Tt(j).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M*2;case"hex":return M>>>1;case"base64":return Dt(j).length;default:if(re)return Q?-1:Tt(j).length;A=(""+A).toLowerCase(),re=!0}}l.byteLength=R;function k(j,A,M){let Q=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((M===void 0||M>this.length)&&(M=this.length),M<=0)||(M>>>=0,A>>>=0,M<=A))return"";for(j||(j="utf8");;)switch(j){case"hex":return ie(this,A,M);case"utf8":case"utf-8":return be(this,A,M);case"ascii":return V(this,A,M);case"latin1":case"binary":return H(this,A,M);case"base64":return te(this,A,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,A,M);default:if(Q)throw new TypeError("Unknown encoding: "+j);j=(j+"").toLowerCase(),Q=!0}}l.prototype._isBuffer=!0;function P(j,A,M){const Q=j[A];j[A]=j[M],j[M]=Q}l.prototype.swap16=function(){const A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let M=0;MM&&(A+=" ... "),""},r&&(l.prototype[r]=l.prototype.inspect),l.prototype.compare=function(A,M,Q,re,ge){if(pe(A,Uint8Array)&&(A=l.from(A,A.offset,A.byteLength)),!l.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(M===void 0&&(M=0),Q===void 0&&(Q=A?A.length:0),re===void 0&&(re=0),ge===void 0&&(ge=this.length),M<0||Q>A.length||re<0||ge>this.length)throw new RangeError("out of range index");if(re>=ge&&M>=Q)return 0;if(re>=ge)return-1;if(M>=Q)return 1;if(M>>>=0,Q>>>=0,re>>>=0,ge>>>=0,this===A)return 0;let Ee=ge-re,rt=Q-M;const Wt=Math.min(Ee,rt),ae=this.slice(re,ge),ce=A.slice(M,Q);for(let nt=0;nt2147483647?M=2147483647:M<-2147483648&&(M=-2147483648),M=+M,ze(M)&&(M=re?0:j.length-1),M<0&&(M=j.length+M),M>=j.length){if(re)return-1;M=j.length-1}else if(M<0)if(re)M=0;else return-1;if(typeof A=="string"&&(A=l.from(A,Q)),l.isBuffer(A))return A.length===0?-1:F(j,A,M,Q,re);if(typeof A=="number")return A=A&255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call(j,A,M):Uint8Array.prototype.lastIndexOf.call(j,A,M):F(j,[A],M,Q,re);throw new TypeError("val must be string, number or Buffer")}function F(j,A,M,Q,re){let ge=1,Ee=j.length,rt=A.length;if(Q!==void 0&&(Q=String(Q).toLowerCase(),Q==="ucs2"||Q==="ucs-2"||Q==="utf16le"||Q==="utf-16le")){if(j.length<2||A.length<2)return-1;ge=2,Ee/=2,rt/=2,M/=2}function Wt(ce,nt){return ge===1?ce[nt]:ce.readUInt16BE(nt*ge)}let ae;if(re){let ce=-1;for(ae=M;aeEe&&(M=Ee-rt),ae=M;ae>=0;ae--){let ce=!0;for(let nt=0;ntre&&(Q=re)):Q=re;const ge=A.length;Q>ge/2&&(Q=ge/2);let Ee;for(Ee=0;Ee>>0,isFinite(Q)?(Q=Q>>>0,re===void 0&&(re="utf8")):(re=Q,Q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ge=this.length-M;if((Q===void 0||Q>ge)&&(Q=ge),A.length>0&&(Q<0||M<0)||M>this.length)throw new RangeError("Attempt to write outside buffer bounds");re||(re="utf8");let Ee=!1;for(;;)switch(re){case"hex":return q(this,A,M,Q);case"utf8":case"utf-8":return Y(this,A,M,Q);case"ascii":case"latin1":case"binary":return X(this,A,M,Q);case"base64":return ue(this,A,M,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,A,M,Q);default:if(Ee)throw new TypeError("Unknown encoding: "+re);re=(""+re).toLowerCase(),Ee=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function te(j,A,M){return A===0&&M===j.length?e.fromByteArray(j):e.fromByteArray(j.slice(A,M))}function be(j,A,M){M=Math.min(j.length,M);const Q=[];let re=A;for(;re239?4:ge>223?3:ge>191?2:1;if(re+rt<=M){let Wt,ae,ce,nt;switch(rt){case 1:ge<128&&(Ee=ge);break;case 2:Wt=j[re+1],(Wt&192)===128&&(nt=(ge&31)<<6|Wt&63,nt>127&&(Ee=nt));break;case 3:Wt=j[re+1],ae=j[re+2],(Wt&192)===128&&(ae&192)===128&&(nt=(ge&15)<<12|(Wt&63)<<6|ae&63,nt>2047&&(nt<55296||nt>57343)&&(Ee=nt));break;case 4:Wt=j[re+1],ae=j[re+2],ce=j[re+3],(Wt&192)===128&&(ae&192)===128&&(ce&192)===128&&(nt=(ge&15)<<18|(Wt&63)<<12|(ae&63)<<6|ce&63,nt>65535&&nt<1114112&&(Ee=nt))}}Ee===null?(Ee=65533,rt=1):Ee>65535&&(Ee-=65536,Q.push(Ee>>>10&1023|55296),Ee=56320|Ee&1023),Q.push(Ee),re+=rt}return B(Q)}const we=4096;function B(j){const A=j.length;if(A<=we)return String.fromCharCode.apply(String,j);let M="",Q=0;for(;QQ)&&(M=Q);let re="";for(let ge=A;geQ&&(A=Q),M<0?(M+=Q,M<0&&(M=0)):M>Q&&(M=Q),MM)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(A,M,Q){A=A>>>0,M=M>>>0,Q||J(A,M,this.length);let re=this[A],ge=1,Ee=0;for(;++Ee>>0,M=M>>>0,Q||J(A,M,this.length);let re=this[A+--M],ge=1;for(;M>0&&(ge*=256);)re+=this[A+--M]*ge;return re},l.prototype.readUint8=l.prototype.readUInt8=function(A,M){return A=A>>>0,M||J(A,1,this.length),this[A]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(A,M){return A=A>>>0,M||J(A,2,this.length),this[A]|this[A+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(A,M){return A=A>>>0,M||J(A,2,this.length),this[A]<<8|this[A+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(A,M){return A=A>>>0,M||J(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(A,M){return A=A>>>0,M||J(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},l.prototype.readBigUInt64LE=Qe(function(A){A=A>>>0,bt(A,"offset");const M=this[A],Q=this[A+7];(M===void 0||Q===void 0)&>(A,this.length-8);const re=M+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24,ge=this[++A]+this[++A]*2**8+this[++A]*2**16+Q*2**24;return BigInt(re)+(BigInt(ge)<>>0,bt(A,"offset");const M=this[A],Q=this[A+7];(M===void 0||Q===void 0)&>(A,this.length-8);const re=M*2**24+this[++A]*2**16+this[++A]*2**8+this[++A],ge=this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+Q;return(BigInt(re)<>>0,M=M>>>0,Q||J(A,M,this.length);let re=this[A],ge=1,Ee=0;for(;++Ee=ge&&(re-=Math.pow(2,8*M)),re},l.prototype.readIntBE=function(A,M,Q){A=A>>>0,M=M>>>0,Q||J(A,M,this.length);let re=M,ge=1,Ee=this[A+--re];for(;re>0&&(ge*=256);)Ee+=this[A+--re]*ge;return ge*=128,Ee>=ge&&(Ee-=Math.pow(2,8*M)),Ee},l.prototype.readInt8=function(A,M){return A=A>>>0,M||J(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},l.prototype.readInt16LE=function(A,M){A=A>>>0,M||J(A,2,this.length);const Q=this[A]|this[A+1]<<8;return Q&32768?Q|4294901760:Q},l.prototype.readInt16BE=function(A,M){A=A>>>0,M||J(A,2,this.length);const Q=this[A+1]|this[A]<<8;return Q&32768?Q|4294901760:Q},l.prototype.readInt32LE=function(A,M){return A=A>>>0,M||J(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},l.prototype.readInt32BE=function(A,M){return A=A>>>0,M||J(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},l.prototype.readBigInt64LE=Qe(function(A){A=A>>>0,bt(A,"offset");const M=this[A],Q=this[A+7];(M===void 0||Q===void 0)&>(A,this.length-8);const re=this[A+4]+this[A+5]*2**8+this[A+6]*2**16+(Q<<24);return(BigInt(re)<>>0,bt(A,"offset");const M=this[A],Q=this[A+7];(M===void 0||Q===void 0)&>(A,this.length-8);const re=(M<<24)+this[++A]*2**16+this[++A]*2**8+this[++A];return(BigInt(re)<>>0,M||J(A,4,this.length),n.read(this,A,!0,23,4)},l.prototype.readFloatBE=function(A,M){return A=A>>>0,M||J(A,4,this.length),n.read(this,A,!1,23,4)},l.prototype.readDoubleLE=function(A,M){return A=A>>>0,M||J(A,8,this.length),n.read(this,A,!0,52,8)},l.prototype.readDoubleBE=function(A,M){return A=A>>>0,M||J(A,8,this.length),n.read(this,A,!1,52,8)};function he(j,A,M,Q,re,ge){if(!l.isBuffer(j))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>re||Aj.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(A,M,Q,re){if(A=+A,M=M>>>0,Q=Q>>>0,!re){const rt=Math.pow(2,8*Q)-1;he(this,A,M,Q,rt,0)}let ge=1,Ee=0;for(this[M]=A&255;++Ee>>0,Q=Q>>>0,!re){const rt=Math.pow(2,8*Q)-1;he(this,A,M,Q,rt,0)}let ge=Q-1,Ee=1;for(this[M+ge]=A&255;--ge>=0&&(Ee*=256);)this[M+ge]=A/Ee&255;return M+Q},l.prototype.writeUint8=l.prototype.writeUInt8=function(A,M,Q){return A=+A,M=M>>>0,Q||he(this,A,M,1,255,0),this[M]=A&255,M+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(A,M,Q){return A=+A,M=M>>>0,Q||he(this,A,M,2,65535,0),this[M]=A&255,this[M+1]=A>>>8,M+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(A,M,Q){return A=+A,M=M>>>0,Q||he(this,A,M,2,65535,0),this[M]=A>>>8,this[M+1]=A&255,M+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(A,M,Q){return A=+A,M=M>>>0,Q||he(this,A,M,4,4294967295,0),this[M+3]=A>>>24,this[M+2]=A>>>16,this[M+1]=A>>>8,this[M]=A&255,M+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(A,M,Q){return A=+A,M=M>>>0,Q||he(this,A,M,4,4294967295,0),this[M]=A>>>24,this[M+1]=A>>>16,this[M+2]=A>>>8,this[M+3]=A&255,M+4};function $e(j,A,M,Q,re){pt(A,Q,re,j,M,7);let ge=Number(A&BigInt(4294967295));j[M++]=ge,ge=ge>>8,j[M++]=ge,ge=ge>>8,j[M++]=ge,ge=ge>>8,j[M++]=ge;let Ee=Number(A>>BigInt(32)&BigInt(4294967295));return j[M++]=Ee,Ee=Ee>>8,j[M++]=Ee,Ee=Ee>>8,j[M++]=Ee,Ee=Ee>>8,j[M++]=Ee,M}function Ce(j,A,M,Q,re){pt(A,Q,re,j,M,7);let ge=Number(A&BigInt(4294967295));j[M+7]=ge,ge=ge>>8,j[M+6]=ge,ge=ge>>8,j[M+5]=ge,ge=ge>>8,j[M+4]=ge;let Ee=Number(A>>BigInt(32)&BigInt(4294967295));return j[M+3]=Ee,Ee=Ee>>8,j[M+2]=Ee,Ee=Ee>>8,j[M+1]=Ee,Ee=Ee>>8,j[M]=Ee,M+8}l.prototype.writeBigUInt64LE=Qe(function(A,M=0){return $e(this,A,M,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=Qe(function(A,M=0){return Ce(this,A,M,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(A,M,Q,re){if(A=+A,M=M>>>0,!re){const Wt=Math.pow(2,8*Q-1);he(this,A,M,Q,Wt-1,-Wt)}let ge=0,Ee=1,rt=0;for(this[M]=A&255;++ge>0)-rt&255;return M+Q},l.prototype.writeIntBE=function(A,M,Q,re){if(A=+A,M=M>>>0,!re){const Wt=Math.pow(2,8*Q-1);he(this,A,M,Q,Wt-1,-Wt)}let ge=Q-1,Ee=1,rt=0;for(this[M+ge]=A&255;--ge>=0&&(Ee*=256);)A<0&&rt===0&&this[M+ge+1]!==0&&(rt=1),this[M+ge]=(A/Ee>>0)-rt&255;return M+Q},l.prototype.writeInt8=function(A,M,Q){return A=+A,M=M>>>0,Q||he(this,A,M,1,127,-128),A<0&&(A=255+A+1),this[M]=A&255,M+1},l.prototype.writeInt16LE=function(A,M,Q){return A=+A,M=M>>>0,Q||he(this,A,M,2,32767,-32768),this[M]=A&255,this[M+1]=A>>>8,M+2},l.prototype.writeInt16BE=function(A,M,Q){return A=+A,M=M>>>0,Q||he(this,A,M,2,32767,-32768),this[M]=A>>>8,this[M+1]=A&255,M+2},l.prototype.writeInt32LE=function(A,M,Q){return A=+A,M=M>>>0,Q||he(this,A,M,4,2147483647,-2147483648),this[M]=A&255,this[M+1]=A>>>8,this[M+2]=A>>>16,this[M+3]=A>>>24,M+4},l.prototype.writeInt32BE=function(A,M,Q){return A=+A,M=M>>>0,Q||he(this,A,M,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[M]=A>>>24,this[M+1]=A>>>16,this[M+2]=A>>>8,this[M+3]=A&255,M+4},l.prototype.writeBigInt64LE=Qe(function(A,M=0){return $e(this,A,M,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=Qe(function(A,M=0){return Ce(this,A,M,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Be(j,A,M,Q,re,ge){if(M+Q>j.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("Index out of range")}function Ie(j,A,M,Q,re){return A=+A,M=M>>>0,re||Be(j,A,M,4),n.write(j,A,M,Q,23,4),M+4}l.prototype.writeFloatLE=function(A,M,Q){return Ie(this,A,M,!0,Q)},l.prototype.writeFloatBE=function(A,M,Q){return Ie(this,A,M,!1,Q)};function tt(j,A,M,Q,re){return A=+A,M=M>>>0,re||Be(j,A,M,8),n.write(j,A,M,Q,52,8),M+8}l.prototype.writeDoubleLE=function(A,M,Q){return tt(this,A,M,!0,Q)},l.prototype.writeDoubleBE=function(A,M,Q){return tt(this,A,M,!1,Q)},l.prototype.copy=function(A,M,Q,re){if(!l.isBuffer(A))throw new TypeError("argument should be a Buffer");if(Q||(Q=0),!re&&re!==0&&(re=this.length),M>=A.length&&(M=A.length),M||(M=0),re>0&&re=this.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("sourceEnd out of bounds");re>this.length&&(re=this.length),A.length-M>>0,Q=Q===void 0?this.length:Q>>>0,A||(A=0);let ge;if(typeof A=="number")for(ge=M;ge2**32?re=He(String(M)):typeof M=="bigint"&&(re=String(M),(M>BigInt(2)**BigInt(32)||M<-(BigInt(2)**BigInt(32)))&&(re=He(re)),re+="n"),Q+=` It must be ${A}. Received ${re}`,Q},RangeError);function He(j){let A="",M=j.length;const Q=j[0]==="-"?1:0;for(;M>=Q+4;M-=3)A=`_${j.slice(M-3,M)}${A}`;return`${j.slice(0,M)}${A}`}function ut(j,A,M){bt(A,"offset"),(j[A]===void 0||j[A+M]===void 0)&>(A,j.length-(M+1))}function pt(j,A,M,Q,re,ge){if(j>M||j= 0${Ee} and < 2${Ee} ** ${(ge+1)*8}${Ee}`:rt=`>= -(2${Ee} ** ${(ge+1)*8-1}${Ee}) and < 2 ** ${(ge+1)*8-1}${Ee}`,new ke.ERR_OUT_OF_RANGE("value",rt,j)}ut(Q,re,ge)}function bt(j,A){if(typeof j!="number")throw new ke.ERR_INVALID_ARG_TYPE(A,"number",j)}function gt(j,A,M){throw Math.floor(j)!==j?(bt(j,M),new ke.ERR_OUT_OF_RANGE("offset","an integer",j)):A<0?new ke.ERR_BUFFER_OUT_OF_BOUNDS:new ke.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${A}`,j)}const Ut=/[^+/0-9A-Za-z-_]/g;function Gt(j){if(j=j.split("=")[0],j=j.trim().replace(Ut,""),j.length<2)return"";for(;j.length%4!==0;)j=j+"=";return j}function Tt(j,A){A=A||1/0;let M;const Q=j.length;let re=null;const ge=[];for(let Ee=0;Ee55295&&M<57344){if(!re){if(M>56319){(A-=3)>-1&&ge.push(239,191,189);continue}else if(Ee+1===Q){(A-=3)>-1&&ge.push(239,191,189);continue}re=M;continue}if(M<56320){(A-=3)>-1&&ge.push(239,191,189),re=M;continue}M=(re-55296<<10|M-56320)+65536}else re&&(A-=3)>-1&&ge.push(239,191,189);if(re=null,M<128){if((A-=1)<0)break;ge.push(M)}else if(M<2048){if((A-=2)<0)break;ge.push(M>>6|192,M&63|128)}else if(M<65536){if((A-=3)<0)break;ge.push(M>>12|224,M>>6&63|128,M&63|128)}else if(M<1114112){if((A-=4)<0)break;ge.push(M>>18|240,M>>12&63|128,M>>6&63|128,M&63|128)}else throw new Error("Invalid code point")}return ge}function en(j){const A=[];for(let M=0;M>8,re=M%256,ge.push(re),ge.push(Q);return ge}function Dt(j){return e.toByteArray(Gt(j))}function Pt(j,A,M,Q){let re;for(re=0;re=A.length||re>=j.length);++re)A[re+M]=j[re];return re}function pe(j,A){return j instanceof A||j!=null&&j.constructor!=null&&j.constructor.name!=null&&j.constructor.name===A.name}function ze(j){return j!==j}const Ge=(function(){const j="0123456789abcdef",A=new Array(256);for(let M=0;M<16;++M){const Q=M*16;for(let re=0;re<16;++re)A[Q+re]=j[M]+j[re]}return A})();function Qe(j){return typeof BigInt>"u"?ht:j}function ht(){throw new Error("BigInt not supported")}})(oE)),oE}Pue();const Iue=t=>{const{config:e}=T.useContext(WD);vn();const{placeholder:n,label:r,getInputRef:i,secureTextEntry:o,Icon:u,onChange:l,value:d,height:h,disabled:g,forceBasic:y,forceRich:w,focused:v=!1,autoFocus:C,...E}=t,[$,O]=T.useState(!1),_=T.useRef(),R=T.useRef(!1),[k,P]=T.useState("tinymce"),{upload:L}=_ue(),{directPath:F}=GV();T.useEffect(()=>{if(e.textEditorModule!=="tinymce")t.onReady&&t.onReady();else{const X=setTimeout(()=>{R.current===!1&&(P("textarea"),t.onReady&&t.onReady())},5e3);return()=>{clearTimeout(X)}}},[]);const q=async(X,ue)=>{const me=await L([new File([X.blob()],"filename")],!0)[0];return F({diskPath:me})},Y=window.matchMedia("(prefers-color-scheme: dark)").matches||document.getElementsByTagName("body")[0].classList.contains("dark-theme");return N.jsx(ES,{focused:$,...t,children:e.textEditorModule==="tinymce"&&!y||w?N.jsx(Oue,{onInit:(X,ue)=>{_.current=ue,setTimeout(()=>{ue.setContent(d||"",{format:"raw"})},0),t.onReady&&t.onReady()},onEditorChange:(X,ue)=>{l&&l(ue.getContent({format:"raw"}))},onLoadContent:()=>{R.current=!0},apiKey:"4dh1g4gxp1gbmxi3hnkro4wf9lfgmqr86khygey2bwb7ps74",onBlur:()=>O(!1),tinymceScriptSrc:Si.PUBLIC_URL+"plugins/js/tinymce/tinymce.min.js",onFocus:()=>O(!0),init:{menubar:!1,height:h||400,images_upload_handler:q,skin:Y?"oxide-dark":"oxide",content_css:Y?"dark":"default",plugins:["example","image","directionality","image"],toolbar:"undo redo | formatselect | example | image | rtl ltr | link | bullist numlist bold italic backcolor h2 h3 | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",content_style:"body {font-size:18px }"}}):N.jsx("textarea",{...E,value:d,placeholder:n,style:{minHeight:"140px"},autoFocus:C,className:Lo("form-control",t.errorMessage&&"is-invalid",t.validMessage&&"is-valid"),onChange:X=>l&&l(X.target.value),onBlur:()=>O(!1),onFocus:()=>O(!0)})})},zP=t=>{const{placeholder:e,label:n,getInputRef:r,secureTextEntry:i,Icon:o,onChange:u,value:l,disabled:d,focused:h=!1,errorMessage:g,autoFocus:y,...w}=t,[v,C]=T.useState(!1),E=T.useRef(null),$=T.useCallback(()=>{var O;(O=E.current)==null||O.focus()},[E.current]);return N.jsx(ES,{focused:v,onClick:$,...t,label:"",children:N.jsxs("label",{className:"form-label mr-2",children:[N.jsx("input",{...w,ref:E,checked:!!l,type:"checkbox",onChange:O=>u&&u(!l),onBlur:()=>C(!1),onFocus:()=>C(!0),className:"form-checkbox"}),n]})})},Nue=t=>[Si.SUPPORTED_LANGUAGES.includes("en")?{label:t.locale.englishWorldwide,value:"en"}:void 0,Si.SUPPORTED_LANGUAGES.includes("fa")?{label:t.locale.persianIran,value:"fa"}:void 0,Si.SUPPORTED_LANGUAGES.includes("ru")?{label:"Russian (Русский)",value:"ru"}:void 0,Si.SUPPORTED_LANGUAGES.includes("pl")?{label:t.locale.polishPoland,value:"pl"}:void 0,Si.SUPPORTED_LANGUAGES.includes("ua")?{label:"Ukrainain (українська)",value:"ua"}:void 0].filter(Boolean),Mue=({form:t,isEditing:e})=>{const n=vn(),{values:r,setValues:i,setFieldValue:o,errors:u}=t,l=Wn($M),d=Nue(n),h=hue(d);return N.jsxs(N.Fragment,{children:[N.jsxs("div",{className:"row",children:[N.jsx("div",{className:"col-md-12",children:N.jsx(Do,{value:r.firstName,onChange:g=>o(Tr.Fields.firstName,g,!1),errorMessage:u.firstName,label:n.wokspaces.invite.firstName,autoFocus:!e,hint:n.wokspaces.invite.firstNameHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(Do,{value:r.lastName,onChange:g=>o(Tr.Fields.lastName,g,!1),errorMessage:u.lastName,label:n.wokspaces.invite.lastName,hint:n.wokspaces.invite.lastNameHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(Ex,{keyExtractor:g=>g.value,formEffect:{form:t,field:Tr.Fields.targetUserLocale,beforeSet(g){return g.value}},errorMessage:t.errors.targetUserLocale,querySource:h,label:l.targetLocale,hint:l.targetLocaleHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(Iue,{value:r.coverLetter,onChange:g=>o(Tr.Fields.coverLetter,g,!1),forceBasic:!0,errorMessage:u.coverLetter,label:l.coverLetter,placeholder:l.coverLetterHint,hint:l.coverLetterHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(Ex,{formEffect:{field:Tr.Fields.role$,form:t},querySource:LS,label:n.wokspaces.invite.role,errorMessage:u.roleId,fnLabelFormat:g=>g.name,hint:n.wokspaces.invite.roleHint})})]}),N.jsxs("div",{className:"row",children:[N.jsx("div",{className:"col-md-12",children:N.jsx(Do,{value:r.email,onChange:g=>o(Tr.Fields.email,g,!1),errorMessage:u.email,label:n.wokspaces.invite.email,hint:n.wokspaces.invite.emailHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(zP,{value:r.forceEmailAddress,onChange:g=>o(Tr.Fields.forceEmailAddress,g),errorMessage:u.forceEmailAddress,label:l.forcedEmailAddress,hint:l.forcedEmailAddressHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(Do,{value:r.phonenumber,onChange:g=>o(Tr.Fields.phonenumber,g,!1),errorMessage:u.phonenumber,type:"phonenumber",label:n.wokspaces.invite.phoneNumber,hint:n.wokspaces.invite.phoneNumberHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(zP,{value:r.forcePhoneNumber,onChange:g=>o(Tr.Fields.forcePhoneNumber,g),errorMessage:u.forcePhoneNumber,label:l.forcedPhone,hint:l.forcedPhoneHint})})]})]})},VP=({data:t})=>{const e=vn(),{router:n,uniqueId:r,queryClient:i,locale:o}=F1({data:t}),u=CM({query:{uniqueId:r},queryClient:i}),l=cue({queryClient:i}),d=lue({queryClient:i});return N.jsx(FO,{postHook:l,getSingleHook:u,patchHook:d,onCancel:()=>{n.goBackOrDefault(`/${o}/workspace-invites`)},onFinishUriResolver:(h,g)=>`/${g}/workspace-invites`,Form:Mue,onEditTitle:e.wokspaces.invite.editInvitation,onCreateTitle:e.wokspaces.invite.createInvitation,data:t})},kue=()=>{var u;const t=Ur(),e=vn(),n=t.query.uniqueId;Ci();const r=Wn($M),i=CM({query:{uniqueId:n}});var o=(u=i.query.data)==null?void 0:u.data;return bM((o==null?void 0:o.firstName)+" "+(o==null?void 0:o.lastName)||""),N.jsx(N.Fragment,{children:N.jsx(XO,{getSingleHook:i,editEntityHandler:()=>t.push(Tr.Navigation.edit(n)),children:N.jsx(ZO,{entity:o,fields:[{label:e.wokspaces.invite.firstName,elem:o==null?void 0:o.firstName},{label:e.wokspaces.invite.lastName,elem:o==null?void 0:o.lastName},{label:e.wokspaces.invite.email,elem:o==null?void 0:o.email},{label:e.wokspaces.invite.phoneNumber,elem:o==null?void 0:o.phonenumber},{label:r.forcedEmailAddress,elem:o==null?void 0:o.forceEmailAddress},{label:r.forcedPhone,elem:o==null?void 0:o.forcePhoneNumber},{label:r.targetLocale,elem:o==null?void 0:o.targetUserLocale}]})})})},Due=t=>[{name:Tr.Fields.uniqueId,title:t.table.uniqueId,width:100},{name:"firstName",title:t.wokspaces.invite.firstName,width:100},{name:"lastName",title:t.wokspaces.invite.lastName,width:100},{name:"phoneNumber",title:t.wokspaces.invite.phoneNumber,width:100},{name:"email",title:t.wokspaces.invite.email,width:100},{name:"role_id",title:t.wokspaces.invite.role,width:100,getCellValue:e=>{var n;return(n=e==null?void 0:e.role)==null?void 0:n.name}}];function OM({queryOptions:t,query:e,queryClient:n,execFnOverride:r,unauthorized:i,optionFn:o}){var _,R,k;const{options:u,execFn:l}=T.useContext(yn),d=o?o(u):u,h=r?r(d):l?l(d):Lr(d);let y=`${"/workspace-invites".substr(1)}?${Wg.stringify(e)}`;const w=()=>h("GET",y),v=(_=d==null?void 0:d.headers)==null?void 0:_.authorization,C=v!="undefined"&&v!=null&&v!=null&&v!="null"&&!!v;let E=!0;!C&&!i&&(E=!1);const $=Bo(["*abac.WorkspaceInviteEntity",d,e],w,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...t||{}}),O=((k=(R=$.data)==null?void 0:R.data)==null?void 0:k.items)||[];return{query:$,items:O,keyExtractor:P=>P.uniqueId}}OM.UKEY="*abac.WorkspaceInviteEntity";function Fue(t){const{execFnOverride:e,queryClient:n,query:r}=t||{},{options:i,execFn:o}=T.useContext(yn),u=e?e(i):o?o(i):Lr(i);let d=`${"/workspace-invite".substr(1)}?${new URLSearchParams(la(r)).toString()}`;const g=Fr(v=>u("DELETE",d,v)),y=(v,C)=>v;return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){n==null||n.setQueryData("*abac.WorkspaceInviteEntity",_=>y(_)),n==null||n.invalidateQueries("*abac.WorkspaceInviteEntity"),E(O)},onError(O){C==null||C.setErrors(ks(O)),$(O)}})}),fnUpdater:y}}const Lue=()=>{const t=vn();return N.jsx(N.Fragment,{children:N.jsx(qS,{columns:Due(t),queryHook:OM,uniqueIdHrefHandler:e=>Tr.Navigation.single(e),deleteHook:Fue})})},Uue=()=>{const t=vn();return N.jsx(N.Fragment,{children:N.jsx(HS,{pageTitle:t.fbMenu.workspaceInvites,newEntityHandler:({locale:e,router:n})=>{n.push(Tr.Navigation.create())},children:N.jsx(Lue,{})})})};function jue(){return N.jsxs(N.Fragment,{children:[N.jsx(mn,{element:N.jsx(VP,{}),path:Tr.Navigation.Rcreate}),N.jsx(mn,{element:N.jsx(VP,{}),path:Tr.Navigation.Redit}),N.jsx(mn,{element:N.jsx(kue,{}),path:Tr.Navigation.Rsingle}),N.jsx(mn,{element:N.jsx(Uue,{}),path:Tr.Navigation.Rquery})]})}const Bue=()=>{const t=Wn($r);return N.jsxs(N.Fragment,{children:[N.jsx(wM,{title:t.home.title,description:t.home.description}),N.jsx("h2",{children:N.jsx(HE,{to:"passports",children:t.home.passportsTitle})}),N.jsx("p",{children:t.home.passportsDescription}),N.jsx(HE,{to:"passports",className:"btn btn-success btn-sm",children:t.home.passportsTitle})]})},dT=T.createContext({});function hT(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const pT=typeof window<"u",TM=pT?T.useLayoutEffect:T.useEffect,GS=T.createContext(null);function mT(t,e){t.indexOf(e)===-1&&t.push(e)}function gT(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Rl=(t,e,n)=>n>e?e:n{};const Pl={},_M=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function AM(t){return typeof t=="object"&&t!==null}const RM=t=>/^0[^.\s]+$/u.test(t);function vT(t){let e;return()=>(e===void 0&&(e=t()),e)}const jo=t=>t,que=(t,e)=>n=>e(t(n)),z1=(...t)=>t.reduce(que),S1=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class bT{constructor(){this.subscriptions=[]}add(e){return mT(this.subscriptions,e),()=>gT(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;ot*1e3,_u=t=>t/1e3;function PM(t,e){return e?t*(1e3/e):0}const IM=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Hue=1e-7,zue=12;function Vue(t,e,n,r,i){let o,u,l=0;do u=e+(n-e)/2,o=IM(u,r,i)-t,o>0?n=u:e=u;while(Math.abs(o)>Hue&&++lVue(o,0,1,t,n);return o=>o===0||o===1?o:IM(i(o),e,r)}const NM=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,MM=t=>e=>1-t(1-e),kM=V1(.33,1.53,.69,.99),wT=MM(kM),DM=NM(wT),FM=t=>(t*=2)<1?.5*wT(t):.5*(2-Math.pow(2,-10*(t-1))),ST=t=>1-Math.sin(Math.acos(t)),LM=MM(ST),UM=NM(ST),Gue=V1(.42,0,1,1),Wue=V1(0,0,.58,1),jM=V1(.42,0,.58,1),Kue=t=>Array.isArray(t)&&typeof t[0]!="number",BM=t=>Array.isArray(t)&&typeof t[0]=="number",Yue={linear:jo,easeIn:Gue,easeInOut:jM,easeOut:Wue,circIn:ST,circInOut:UM,circOut:LM,backIn:wT,backInOut:DM,backOut:kM,anticipate:FM},Que=t=>typeof t=="string",GP=t=>{if(BM(t)){yT(t.length===4);const[e,n,r,i]=t;return V1(e,n,r,i)}else if(Que(t))return Yue[t];return t},rw=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],WP={value:null};function Jue(t,e){let n=new Set,r=new Set,i=!1,o=!1;const u=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},d=0;function h(y){u.has(y)&&(g.schedule(y),t()),d++,y(l)}const g={schedule:(y,w=!1,v=!1)=>{const E=v&&i?n:r;return w&&u.add(y),E.has(y)||E.add(y),y},cancel:y=>{r.delete(y),u.delete(y)},process:y=>{if(l=y,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(h),e&&WP.value&&WP.value.frameloop[e].push(d),d=0,n.clear(),i=!1,o&&(o=!1,g.process(y))}};return g}const Xue=40;function qM(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,u=rw.reduce((R,k)=>(R[k]=Jue(o,e?k:void 0),R),{}),{setup:l,read:d,resolveKeyframes:h,preUpdate:g,update:y,preRender:w,render:v,postRender:C}=u,E=()=>{const R=Pl.useManualTiming?i.timestamp:performance.now();n=!1,Pl.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(R-i.timestamp,Xue),1)),i.timestamp=R,i.isProcessing=!0,l.process(i),d.process(i),h.process(i),g.process(i),y.process(i),w.process(i),v.process(i),C.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(E))},$=()=>{n=!0,r=!0,i.isProcessing||t(E)};return{schedule:rw.reduce((R,k)=>{const P=u[k];return R[k]=(L,F=!1,q=!1)=>(n||$(),P.schedule(L,F,q)),R},{}),cancel:R=>{for(let k=0;k(Cw===void 0&&xa.set(gi.isProcessing||Pl.useManualTiming?gi.timestamp:performance.now()),Cw),set:t=>{Cw=t,queueMicrotask(Zue)}},HM=t=>e=>typeof e=="string"&&e.startsWith(t),CT=HM("--"),ele=HM("var(--"),$T=t=>ele(t)?tle.test(t.split("/*")[0].trim()):!1,tle=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,uy={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},C1={...uy,transform:t=>Rl(0,1,t)},iw={...uy,default:1},F0=t=>Math.round(t*1e5)/1e5,ET=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function nle(t){return t==null}const rle=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xT=(t,e)=>n=>!!(typeof n=="string"&&rle.test(n)&&n.startsWith(t)||e&&!nle(n)&&Object.prototype.hasOwnProperty.call(n,e)),zM=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,u,l]=r.match(ET);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(u),alpha:l!==void 0?parseFloat(l):1}},ile=t=>Rl(0,255,t),uE={...uy,transform:t=>Math.round(ile(t))},Pp={test:xT("rgb","red"),parse:zM("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+uE.transform(t)+", "+uE.transform(e)+", "+uE.transform(n)+", "+F0(C1.transform(r))+")"};function ale(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Fx={test:xT("#"),parse:ale,transform:Pp.transform},G1=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),bf=G1("deg"),Au=G1("%"),xt=G1("px"),ole=G1("vh"),sle=G1("vw"),KP={...Au,parse:t=>Au.parse(t)/100,transform:t=>Au.transform(t*100)},Pg={test:xT("hsl","hue"),parse:zM("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Au.transform(F0(e))+", "+Au.transform(F0(n))+", "+F0(C1.transform(r))+")"},Or={test:t=>Pp.test(t)||Fx.test(t)||Pg.test(t),parse:t=>Pp.test(t)?Pp.parse(t):Pg.test(t)?Pg.parse(t):Fx.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Pp.transform(t):Pg.transform(t),getAnimatableNone:t=>{const e=Or.parse(t);return e.alpha=0,Or.transform(e)}},ule=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function lle(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(ET))==null?void 0:e.length)||0)+(((n=t.match(ule))==null?void 0:n.length)||0)>0}const VM="number",GM="color",cle="var",fle="var(",YP="${}",dle=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function $1(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=e.replace(dle,d=>(Or.test(d)?(r.color.push(o),i.push(GM),n.push(Or.parse(d))):d.startsWith(fle)?(r.var.push(o),i.push(cle),n.push(d)):(r.number.push(o),i.push(VM),n.push(parseFloat(d))),++o,YP)).split(YP);return{values:n,split:l,indexes:r,types:i}}function WM(t){return $1(t).values}function KM(t){const{split:e,types:n}=$1(t),r=e.length;return i=>{let o="";for(let u=0;utypeof t=="number"?0:Or.test(t)?Or.getAnimatableNone(t):t;function ple(t){const e=WM(t);return KM(t)(e.map(hle))}const Pf={test:lle,parse:WM,createTransformer:KM,getAnimatableNone:ple};function lE(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function mle({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,u=0;if(!e)i=o=u=n;else{const l=n<.5?n*(1+e):n+e-n*e,d=2*n-l;i=lE(d,l,t+1/3),o=lE(d,l,t),u=lE(d,l,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(u*255),alpha:r}}function sS(t,e){return n=>n>0?e:t}const rr=(t,e,n)=>t+(e-t)*n,cE=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},gle=[Fx,Pp,Pg],yle=t=>gle.find(e=>e.test(t));function QP(t){const e=yle(t);if(!e)return!1;let n=e.parse(t);return e===Pg&&(n=mle(n)),n}const JP=(t,e)=>{const n=QP(t),r=QP(e);if(!n||!r)return sS(t,e);const i={...n};return o=>(i.red=cE(n.red,r.red,o),i.green=cE(n.green,r.green,o),i.blue=cE(n.blue,r.blue,o),i.alpha=rr(n.alpha,r.alpha,o),Pp.transform(i))},Lx=new Set(["none","hidden"]);function vle(t,e){return Lx.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ble(t,e){return n=>rr(t,e,n)}function OT(t){return typeof t=="number"?ble:typeof t=="string"?$T(t)?sS:Or.test(t)?JP:Cle:Array.isArray(t)?YM:typeof t=="object"?Or.test(t)?JP:wle:sS}function YM(t,e){const n=[...t],r=n.length,i=t.map((o,u)=>OT(o)(o,e[u]));return o=>{for(let u=0;u{for(const o in r)n[o]=r[o](i);return n}}function Sle(t,e){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Pf.createTransformer(e),r=$1(t),i=$1(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Lx.has(t)&&!i.values.length||Lx.has(e)&&!r.values.length?vle(t,e):z1(YM(Sle(r,i),i.values),n):sS(t,e)};function QM(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?rr(t,e,n):OT(t)(t,e)}const $le=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>ir.update(e,n),stop:()=>Rf(e),now:()=>gi.isProcessing?gi.timestamp:xa.now()}},JM=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o=uS?1/0:e}function Ele(t,e=100,n){const r=n({...t,keyframes:[0,e]}),i=Math.min(TT(r),uS);return{type:"keyframes",ease:o=>r.next(i*o).value/e,duration:_u(i)}}const xle=5;function XM(t,e,n){const r=Math.max(e-xle,0);return PM(n-t(r),e-r)}const cr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},fE=.001;function Ole({duration:t=cr.duration,bounce:e=cr.bounce,velocity:n=cr.velocity,mass:r=cr.mass}){let i,o,u=1-e;u=Rl(cr.minDamping,cr.maxDamping,u),t=Rl(cr.minDuration,cr.maxDuration,_u(t)),u<1?(i=h=>{const g=h*u,y=g*t,w=g-n,v=Ux(h,u),C=Math.exp(-y);return fE-w/v*C},o=h=>{const y=h*u*t,w=y*n+n,v=Math.pow(u,2)*Math.pow(h,2)*t,C=Math.exp(-y),E=Ux(Math.pow(h,2),u);return(-i(h)+fE>0?-1:1)*((w-v)*C)/E}):(i=h=>{const g=Math.exp(-h*t),y=(h-n)*t+1;return-fE+g*y},o=h=>{const g=Math.exp(-h*t),y=(n-h)*(t*t);return g*y});const l=5/t,d=_le(i,o,l);if(t=Tu(t),isNaN(d))return{stiffness:cr.stiffness,damping:cr.damping,duration:t};{const h=Math.pow(d,2)*r;return{stiffness:h,damping:u*2*Math.sqrt(r*h),duration:t}}}const Tle=12;function _le(t,e,n){let r=n;for(let i=1;it[n]!==void 0)}function Ple(t){let e={velocity:cr.velocity,stiffness:cr.stiffness,damping:cr.damping,mass:cr.mass,isResolvedFromDuration:!1,...t};if(!XP(t,Rle)&&XP(t,Ale))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Rl(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:cr.mass,stiffness:i,damping:o}}else{const n=Ole(t);e={...e,...n,mass:cr.mass},e.isResolvedFromDuration=!0}return e}function lS(t=cr.visualDuration,e=cr.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:d,damping:h,mass:g,duration:y,velocity:w,isResolvedFromDuration:v}=Ple({...n,velocity:-_u(n.velocity||0)}),C=w||0,E=h/(2*Math.sqrt(d*g)),$=u-o,O=_u(Math.sqrt(d/g)),_=Math.abs($)<5;r||(r=_?cr.restSpeed.granular:cr.restSpeed.default),i||(i=_?cr.restDelta.granular:cr.restDelta.default);let R;if(E<1){const P=Ux(O,E);R=L=>{const F=Math.exp(-E*O*L);return u-F*((C+E*O*$)/P*Math.sin(P*L)+$*Math.cos(P*L))}}else if(E===1)R=P=>u-Math.exp(-O*P)*($+(C+O*$)*P);else{const P=O*Math.sqrt(E*E-1);R=L=>{const F=Math.exp(-E*O*L),q=Math.min(P*L,300);return u-F*((C+E*O*$)*Math.sinh(q)+P*$*Math.cosh(q))/P}}const k={calculatedDuration:v&&y||null,next:P=>{const L=R(P);if(v)l.done=P>=y;else{let F=P===0?C:0;E<1&&(F=P===0?Tu(C):XM(R,P,L));const q=Math.abs(F)<=r,Y=Math.abs(u-L)<=i;l.done=q&&Y}return l.value=l.done?u:L,l},toString:()=>{const P=Math.min(TT(k),uS),L=JM(F=>k.next(P*F).value,P,30);return P+"ms "+L},toTransition:()=>{}};return k}lS.applyToOptions=t=>{const e=Ele(t,100,lS);return t.ease=e.ease,t.duration=Tu(e.duration),t.type="keyframes",t};function jx({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:u,min:l,max:d,restDelta:h=.5,restSpeed:g}){const y=t[0],w={done:!1,value:y},v=q=>l!==void 0&&qd,C=q=>l===void 0?d:d===void 0||Math.abs(l-q)-E*Math.exp(-q/r),R=q=>O+_(q),k=q=>{const Y=_(q),X=R(q);w.done=Math.abs(Y)<=h,w.value=w.done?O:X};let P,L;const F=q=>{v(w.value)&&(P=q,L=lS({keyframes:[w.value,C(w.value)],velocity:XM(R,q,w.value),damping:i,stiffness:o,restDelta:h,restSpeed:g}))};return F(0),{calculatedDuration:null,next:q=>{let Y=!1;return!L&&P===void 0&&(Y=!0,k(q),F(q)),P!==void 0&&q>=P?L.next(q-P):(!Y&&k(q),w)}}}function Ile(t,e,n){const r=[],i=n||Pl.mix||QM,o=t.length-1;for(let u=0;ue[0];if(o===2&&e[0]===e[1])return()=>e[1];const u=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=Ile(e,r,i),d=l.length,h=g=>{if(u&&g1)for(;yh(Rl(t[0],t[o-1],g)):h}function Mle(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=S1(0,e,r);t.push(rr(n,1,i))}}function kle(t){const e=[0];return Mle(e,t.length-1),e}function Dle(t,e){return t.map(n=>n*e)}function Fle(t,e){return t.map(()=>e||jM).splice(0,t.length-1)}function L0({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Kue(r)?r.map(GP):GP(r),o={done:!1,value:e[0]},u=Dle(n&&n.length===e.length?n:kle(e),t),l=Nle(u,e,{ease:Array.isArray(i)?i:Fle(e,i)});return{calculatedDuration:t,next:d=>(o.value=l(d),o.done=d>=t,o)}}const Lle=t=>t!==null;function _T(t,{repeat:e,repeatType:n="loop"},r,i=1){const o=t.filter(Lle),l=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!l||r===void 0?o[l]:r}const Ule={decay:jx,inertia:jx,tween:L0,keyframes:L0,spring:lS};function ZM(t){typeof t.type=="string"&&(t.type=Ule[t.type])}class AT{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const jle=t=>t/100;class RT extends AT{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==xa.now()&&this.tick(xa.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;ZM(e);const{type:n=L0,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:u=0}=e;let{keyframes:l}=e;const d=n||L0;d!==L0&&typeof l[0]!="number"&&(this.mixKeyframes=z1(jle,QM(l[0],l[1])),l=[0,100]);const h=d({...e,keyframes:l});o==="mirror"&&(this.mirroredGenerator=d({...e,keyframes:[...l].reverse(),velocity:-u})),h.calculatedDuration===null&&(h.calculatedDuration=TT(h));const{calculatedDuration:g}=h;this.calculatedDuration=g,this.resolvedDuration=g+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=h}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:u,resolvedDuration:l,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:g,repeat:y,repeatType:w,repeatDelay:v,type:C,onUpdate:E,finalKeyframe:$}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const O=this.currentTime-h*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?O<0:O>i;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let R=this.currentTime,k=r;if(y){const q=Math.min(this.currentTime,i)/l;let Y=Math.floor(q),X=q%1;!X&&q>=1&&(X=1),X===1&&Y--,Y=Math.min(Y,y+1),!!(Y%2)&&(w==="reverse"?(X=1-X,v&&(X-=v/l)):w==="mirror"&&(k=u)),R=Rl(0,1,X)*l}const P=_?{done:!1,value:g[0]}:k.next(R);o&&(P.value=o(P.value));let{done:L}=P;!_&&d!==null&&(L=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return F&&C!==jx&&(P.value=_T(g,this.options,$,this.speed)),E&&E(P.value),F&&this.finish(),P}then(e,n){return this.finished.then(e,n)}get duration(){return _u(this.calculatedDuration)}get time(){return _u(this.currentTime)}set time(e){var n;e=Tu(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(xa.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=_u(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=$le,startTime:n}=this.options;this.driver||(this.driver=e(u=>this.tick(u))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(xa.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function Ble(t){for(let e=1;et*180/Math.PI,Bx=t=>{const e=Ip(Math.atan2(t[1],t[0]));return qx(e)},qle={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Bx,rotateZ:Bx,skewX:t=>Ip(Math.atan(t[1])),skewY:t=>Ip(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},qx=t=>(t=t%360,t<0&&(t+=360),t),ZP=Bx,e5=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),t5=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Hle={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:e5,scaleY:t5,scale:t=>(e5(t)+t5(t))/2,rotateX:t=>qx(Ip(Math.atan2(t[6],t[5]))),rotateY:t=>qx(Ip(Math.atan2(-t[2],t[0]))),rotateZ:ZP,rotate:ZP,skewX:t=>Ip(Math.atan(t[4])),skewY:t=>Ip(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Hx(t){return t.includes("scale")?1:0}function zx(t,e){if(!t||t==="none")return Hx(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Hle,i=n;else{const l=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=qle,i=l}if(!i)return Hx(e);const o=r[e],u=i[1].split(",").map(Vle);return typeof o=="function"?o(u):u[o]}const zle=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return zx(n,e)};function Vle(t){return parseFloat(t.trim())}const ly=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],cy=new Set(ly),n5=t=>t===uy||t===xt,Gle=new Set(["x","y","z"]),Wle=ly.filter(t=>!Gle.has(t));function Kle(t){const e=[];return Wle.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const kp={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>zx(e,"x"),y:(t,{transform:e})=>zx(e,"y")};kp.translateX=kp.x;kp.translateY=kp.y;const Dp=new Set;let Vx=!1,Gx=!1,Wx=!1;function ek(){if(Gx){const t=Array.from(Dp).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=Kle(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,u])=>{var l;(l=r.getValue(o))==null||l.set(u)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Gx=!1,Vx=!1,Dp.forEach(t=>t.complete(Wx)),Dp.clear()}function tk(){Dp.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Gx=!0)})}function Yle(){Wx=!0,tk(),ek(),Wx=!1}class PT{constructor(e,n,r,i,o,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Dp.add(this),Vx||(Vx=!0,ir.read(tk),ir.resolveKeyframes(ek))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),u=e[e.length-1];if(o!==void 0)e[0]=o;else if(r&&n){const l=r.readValue(n,u);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=u),i&&o===void 0&&i.set(e[0])}Ble(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Dp.delete(this)}cancel(){this.state==="scheduled"&&(Dp.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Qle=t=>t.startsWith("--");function Jle(t,e,n){Qle(e)?t.style.setProperty(e,n):t.style[e]=n}const Xle=vT(()=>window.ScrollTimeline!==void 0),Zle={};function ece(t,e){const n=vT(t);return()=>Zle[e]??n()}const nk=ece(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),R0=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,r5={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:R0([0,.65,.55,1]),circOut:R0([.55,0,1,.45]),backIn:R0([.31,.01,.66,-.59]),backOut:R0([.33,1.53,.69,.99])};function rk(t,e){if(t)return typeof t=="function"?nk()?JM(t,e):"ease-out":BM(t)?R0(t):Array.isArray(t)?t.map(n=>rk(n,e)||r5.easeOut):r5[t]}function tce(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:u="loop",ease:l="easeOut",times:d}={},h=void 0){const g={[e]:n};d&&(g.offset=d);const y=rk(l,i);Array.isArray(y)&&(g.easing=y);const w={delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:u==="reverse"?"alternate":"normal"};return h&&(w.pseudoElement=h),t.animate(g,w)}function ik(t){return typeof t=="function"&&"applyToOptions"in t}function nce({type:t,...e}){return ik(t)&&nk()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class rce extends AT{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:u=!1,finalKeyframe:l,onComplete:d}=e;this.isPseudoElement=!!o,this.allowFlatten=u,this.options=e,yT(typeof e.type!="string");const h=nce(e);this.animation=tce(n,r,i,h,o),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const g=_T(i,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(g):Jle(n,r,g),this.animation.cancel()}d==null||d(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,r;const e=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return _u(Number(e))}get time(){return _u(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=Tu(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Xle()?(this.animation.timeline=e,jo):n(this)}}const ak={anticipate:FM,backInOut:DM,circInOut:UM};function ice(t){return t in ak}function ace(t){typeof t.ease=="string"&&ice(t.ease)&&(t.ease=ak[t.ease])}const i5=10;class oce extends rce{constructor(e){ace(e),ZM(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...u}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const l=new RT({...u,autoplay:!1}),d=Tu(this.finishedTime??this.time);n.setWithVelocity(l.sample(d-i5).value,l.sample(d).value,i5),l.stop()}}const a5=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Pf.test(t)||t==="0")&&!t.startsWith("url("));function sce(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function fce(t){var h;const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:o,type:u}=t;if(!IT((h=e==null?void 0:e.owner)==null?void 0:h.current))return!1;const{onUpdate:l,transformTemplate:d}=e.owner.getProps();return cce()&&n&&lce.has(n)&&(n!=="transform"||!d)&&!l&&!r&&i!=="mirror"&&o!==0&&u!=="inertia"}const dce=40;class hce extends AT{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:u="loop",keyframes:l,name:d,motionValue:h,element:g,...y}){var C;super(),this.stop=()=>{var E,$;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),($=this.keyframeResolver)==null||$.cancel()},this.createdAt=xa.now();const w={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:u,name:d,motionValue:h,element:g,...y},v=(g==null?void 0:g.KeyframeResolver)||PT;this.keyframeResolver=new v(l,(E,$,O)=>this.onKeyframesResolved(E,$,w,!O),d,h,g),(C=this.keyframeResolver)==null||C.scheduleResolve()}onKeyframesResolved(e,n,r,i){this.keyframeResolver=void 0;const{name:o,type:u,velocity:l,delay:d,isHandoff:h,onUpdate:g}=r;this.resolvedAt=xa.now(),uce(e,o,u,l)||((Pl.instantAnimations||!d)&&(g==null||g(_T(e,r,n))),e[0]=e[e.length-1],r.duration=0,r.repeat=0);const w={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>dce?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},v=!h&&fce(w)?new oce({...w,element:w.motionValue.owner.current}):new RT(w);v.finished.then(()=>this.notifyFinished()).catch(jo),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),Yle()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const pce=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mce(t){const e=pce.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}function ok(t,e,n=1){const[r,i]=mce(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const u=o.trim();return _M(u)?parseFloat(u):u}return $T(i)?ok(i,e,n+1):i}function NT(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const sk=new Set(["width","height","top","left","right","bottom",...ly]),gce={test:t=>t==="auto",parse:t=>t},uk=t=>e=>e.test(t),lk=[uy,xt,Au,bf,sle,ole,gce],o5=t=>lk.find(uk(t));function yce(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||RM(t):!0}const vce=new Set(["brightness","contrast","saturate","opacity"]);function bce(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(ET)||[];if(!r)return t;const i=n.replace(r,"");let o=vce.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const wce=/\b([a-z-]*)\(.*?\)/gu,Kx={...Pf,getAnimatableNone:t=>{const e=t.match(wce);return e?e.map(bce).join(" "):t}},s5={...uy,transform:Math.round},Sce={rotate:bf,rotateX:bf,rotateY:bf,rotateZ:bf,scale:iw,scaleX:iw,scaleY:iw,scaleZ:iw,skew:bf,skewX:bf,skewY:bf,distance:xt,translateX:xt,translateY:xt,translateZ:xt,x:xt,y:xt,z:xt,perspective:xt,transformPerspective:xt,opacity:C1,originX:KP,originY:KP,originZ:xt},MT={borderWidth:xt,borderTopWidth:xt,borderRightWidth:xt,borderBottomWidth:xt,borderLeftWidth:xt,borderRadius:xt,radius:xt,borderTopLeftRadius:xt,borderTopRightRadius:xt,borderBottomRightRadius:xt,borderBottomLeftRadius:xt,width:xt,maxWidth:xt,height:xt,maxHeight:xt,top:xt,right:xt,bottom:xt,left:xt,padding:xt,paddingTop:xt,paddingRight:xt,paddingBottom:xt,paddingLeft:xt,margin:xt,marginTop:xt,marginRight:xt,marginBottom:xt,marginLeft:xt,backgroundPositionX:xt,backgroundPositionY:xt,...Sce,zIndex:s5,fillOpacity:C1,strokeOpacity:C1,numOctaves:s5},Cce={...MT,color:Or,backgroundColor:Or,outlineColor:Or,fill:Or,stroke:Or,borderColor:Or,borderTopColor:Or,borderRightColor:Or,borderBottomColor:Or,borderLeftColor:Or,filter:Kx,WebkitFilter:Kx},ck=t=>Cce[t];function fk(t,e){let n=ck(t);return n!==Kx&&(n=Pf),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const $ce=new Set(["auto","none","0"]);function Ece(t,e,n){let r=0,i;for(;r{e.getValue(d).set(h)}),this.resolveNoneKeyframes()}}function Oce(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let r=document;const i=(n==null?void 0:n[t])??r.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const dk=(t,e)=>e&&typeof t=="number"?e.transform(t):t,u5=30,Tce=t=>!isNaN(parseFloat(t));class _ce{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var u,l;const o=xa.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((u=this.events.change)==null||u.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty();i&&((l=this.events.renderRequest)==null||l.notify(this.current))},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=xa.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Tce(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new bT);const r=this.events[e].add(n);return e==="change"?()=>{r(),ir.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=xa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>u5)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,u5);return PM(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Yg(t,e){return new _ce(t,e)}const{schedule:kT}=qM(queueMicrotask,!1),Rs={x:!1,y:!1};function hk(){return Rs.x||Rs.y}function Ace(t){return t==="x"||t==="y"?Rs[t]?null:(Rs[t]=!0,()=>{Rs[t]=!1}):Rs.x||Rs.y?null:(Rs.x=Rs.y=!0,()=>{Rs.x=Rs.y=!1})}function pk(t,e){const n=Oce(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function l5(t){return!(t.pointerType==="touch"||hk())}function Rce(t,e,n={}){const[r,i,o]=pk(t,n),u=l=>{if(!l5(l))return;const{target:d}=l,h=e(d,l);if(typeof h!="function"||!d)return;const g=y=>{l5(y)&&(h(y),d.removeEventListener("pointerleave",g))};d.addEventListener("pointerleave",g,i)};return r.forEach(l=>{l.addEventListener("pointerenter",u,i)}),o}const mk=(t,e)=>e?t===e?!0:mk(t,e.parentElement):!1,DT=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Pce=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ice(t){return Pce.has(t.tagName)||t.tabIndex!==-1}const $w=new WeakSet;function c5(t){return e=>{e.key==="Enter"&&t(e)}}function dE(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Nce=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=c5(()=>{if($w.has(n))return;dE(n,"down");const i=c5(()=>{dE(n,"up")}),o=()=>dE(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function f5(t){return DT(t)&&!hk()}function Mce(t,e,n={}){const[r,i,o]=pk(t,n),u=l=>{const d=l.currentTarget;if(!f5(l))return;$w.add(d);const h=e(d,l),g=(v,C)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",w),$w.has(d)&&$w.delete(d),f5(v)&&typeof h=="function"&&h(v,{success:C})},y=v=>{g(v,d===window||d===document||n.useGlobalTarget||mk(d,v.target))},w=v=>{g(v,!1)};window.addEventListener("pointerup",y,i),window.addEventListener("pointercancel",w,i)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",u,i),IT(l)&&(l.addEventListener("focus",h=>Nce(h,i)),!Ice(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),o}function gk(t){return AM(t)&&"ownerSVGElement"in t}function kce(t){return gk(t)&&t.tagName==="svg"}const ki=t=>!!(t&&t.getVelocity),Dce=[...lk,Or,Pf],Fce=t=>Dce.find(uk(t)),FT=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Lce extends T.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=IT(r)&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Uce({children:t,isPresent:e,anchorX:n}){const r=T.useId(),i=T.useRef(null),o=T.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=T.useContext(FT);return T.useInsertionEffect(()=>{const{width:l,height:d,top:h,left:g,right:y}=o.current;if(e||!i.current||!l||!d)return;const w=n==="left"?`left: ${g}`:`right: ${y}`;i.current.dataset.motionPopId=r;const v=document.createElement("style");return u&&(v.nonce=u),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(` + */var n5;function Kue(){return n5||(n5=1,(function(t){const e=Gue(),n=Wue(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=_,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i,l.TYPED_ARRAY_SUPPORT=o(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const j=new Uint8Array(1),A={foo:function(){return 42}};return Object.setPrototypeOf(A,Uint8Array.prototype),Object.setPrototypeOf(j,A),j.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function u(j){if(j>i)throw new RangeError('The value "'+j+'" is invalid for option "size"');const A=new Uint8Array(j);return Object.setPrototypeOf(A,l.prototype),A}function l(j,A,M){if(typeof j=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(j)}return d(j,A,M)}l.poolSize=8192;function d(j,A,M){if(typeof j=="string")return w(j,A);if(ArrayBuffer.isView(j))return C(j);if(j==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j);if(pe(j,ArrayBuffer)||j&&pe(j.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(pe(j,SharedArrayBuffer)||j&&pe(j.buffer,SharedArrayBuffer)))return E(j,A,M);if(typeof j=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const J=j.valueOf&&j.valueOf();if(J!=null&&J!==j)return l.from(J,A,M);const re=$(j);if(re)return re;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof j[Symbol.toPrimitive]=="function")return l.from(j[Symbol.toPrimitive]("string"),A,M);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j)}l.from=function(j,A,M){return d(j,A,M)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function h(j){if(typeof j!="number")throw new TypeError('"size" argument must be of type number');if(j<0)throw new RangeError('The value "'+j+'" is invalid for option "size"')}function g(j,A,M){return h(j),j<=0?u(j):A!==void 0?typeof M=="string"?u(j).fill(A,M):u(j).fill(A):u(j)}l.alloc=function(j,A,M){return g(j,A,M)};function y(j){return h(j),u(j<0?0:O(j)|0)}l.allocUnsafe=function(j){return y(j)},l.allocUnsafeSlow=function(j){return y(j)};function w(j,A){if((typeof A!="string"||A==="")&&(A="utf8"),!l.isEncoding(A))throw new TypeError("Unknown encoding: "+A);const M=R(j,A)|0;let J=u(M);const re=J.write(j,A);return re!==M&&(J=J.slice(0,re)),J}function v(j){const A=j.length<0?0:O(j.length)|0,M=u(A);for(let J=0;J=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return j|0}function _(j){return+j!=j&&(j=0),l.alloc(+j)}l.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==l.prototype},l.compare=function(A,M){if(pe(A,Uint8Array)&&(A=l.from(A,A.offset,A.byteLength)),pe(M,Uint8Array)&&(M=l.from(M,M.offset,M.byteLength)),!l.isBuffer(A)||!l.isBuffer(M))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===M)return 0;let J=A.length,re=M.length;for(let ge=0,Ee=Math.min(J,re);gere.length?(l.isBuffer(Ee)||(Ee=l.from(Ee)),Ee.copy(re,ge)):Uint8Array.prototype.set.call(re,Ee,ge);else if(l.isBuffer(Ee))Ee.copy(re,ge);else throw new TypeError('"list" argument must be an Array of Buffers');ge+=Ee.length}return re};function R(j,A){if(l.isBuffer(j))return j.length;if(ArrayBuffer.isView(j)||pe(j,ArrayBuffer))return j.byteLength;if(typeof j!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof j);const M=j.length,J=arguments.length>2&&arguments[2]===!0;if(!J&&M===0)return 0;let re=!1;for(;;)switch(A){case"ascii":case"latin1":case"binary":return M;case"utf8":case"utf-8":return Tt(j).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M*2;case"hex":return M>>>1;case"base64":return Dt(j).length;default:if(re)return J?-1:Tt(j).length;A=(""+A).toLowerCase(),re=!0}}l.byteLength=R;function k(j,A,M){let J=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((M===void 0||M>this.length)&&(M=this.length),M<=0)||(M>>>=0,A>>>=0,M<=A))return"";for(j||(j="utf8");;)switch(j){case"hex":return ie(this,A,M);case"utf8":case"utf-8":return be(this,A,M);case"ascii":return V(this,A,M);case"latin1":case"binary":return H(this,A,M);case"base64":return te(this,A,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,A,M);default:if(J)throw new TypeError("Unknown encoding: "+j);j=(j+"").toLowerCase(),J=!0}}l.prototype._isBuffer=!0;function P(j,A,M){const J=j[A];j[A]=j[M],j[M]=J}l.prototype.swap16=function(){const A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let M=0;MM&&(A+=" ... "),""},r&&(l.prototype[r]=l.prototype.inspect),l.prototype.compare=function(A,M,J,re,ge){if(pe(A,Uint8Array)&&(A=l.from(A,A.offset,A.byteLength)),!l.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(M===void 0&&(M=0),J===void 0&&(J=A?A.length:0),re===void 0&&(re=0),ge===void 0&&(ge=this.length),M<0||J>A.length||re<0||ge>this.length)throw new RangeError("out of range index");if(re>=ge&&M>=J)return 0;if(re>=ge)return-1;if(M>=J)return 1;if(M>>>=0,J>>>=0,re>>>=0,ge>>>=0,this===A)return 0;let Ee=ge-re,rt=J-M;const Wt=Math.min(Ee,rt),ae=this.slice(re,ge),ce=A.slice(M,J);for(let nt=0;nt2147483647?M=2147483647:M<-2147483648&&(M=-2147483648),M=+M,ze(M)&&(M=re?0:j.length-1),M<0&&(M=j.length+M),M>=j.length){if(re)return-1;M=j.length-1}else if(M<0)if(re)M=0;else return-1;if(typeof A=="string"&&(A=l.from(A,J)),l.isBuffer(A))return A.length===0?-1:F(j,A,M,J,re);if(typeof A=="number")return A=A&255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call(j,A,M):Uint8Array.prototype.lastIndexOf.call(j,A,M):F(j,[A],M,J,re);throw new TypeError("val must be string, number or Buffer")}function F(j,A,M,J,re){let ge=1,Ee=j.length,rt=A.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(j.length<2||A.length<2)return-1;ge=2,Ee/=2,rt/=2,M/=2}function Wt(ce,nt){return ge===1?ce[nt]:ce.readUInt16BE(nt*ge)}let ae;if(re){let ce=-1;for(ae=M;aeEe&&(M=Ee-rt),ae=M;ae>=0;ae--){let ce=!0;for(let nt=0;ntre&&(J=re)):J=re;const ge=A.length;J>ge/2&&(J=ge/2);let Ee;for(Ee=0;Ee>>0,isFinite(J)?(J=J>>>0,re===void 0&&(re="utf8")):(re=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ge=this.length-M;if((J===void 0||J>ge)&&(J=ge),A.length>0&&(J<0||M<0)||M>this.length)throw new RangeError("Attempt to write outside buffer bounds");re||(re="utf8");let Ee=!1;for(;;)switch(re){case"hex":return q(this,A,M,J);case"utf8":case"utf-8":return Y(this,A,M,J);case"ascii":case"latin1":case"binary":return X(this,A,M,J);case"base64":return ue(this,A,M,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,A,M,J);default:if(Ee)throw new TypeError("Unknown encoding: "+re);re=(""+re).toLowerCase(),Ee=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function te(j,A,M){return A===0&&M===j.length?e.fromByteArray(j):e.fromByteArray(j.slice(A,M))}function be(j,A,M){M=Math.min(j.length,M);const J=[];let re=A;for(;re239?4:ge>223?3:ge>191?2:1;if(re+rt<=M){let Wt,ae,ce,nt;switch(rt){case 1:ge<128&&(Ee=ge);break;case 2:Wt=j[re+1],(Wt&192)===128&&(nt=(ge&31)<<6|Wt&63,nt>127&&(Ee=nt));break;case 3:Wt=j[re+1],ae=j[re+2],(Wt&192)===128&&(ae&192)===128&&(nt=(ge&15)<<12|(Wt&63)<<6|ae&63,nt>2047&&(nt<55296||nt>57343)&&(Ee=nt));break;case 4:Wt=j[re+1],ae=j[re+2],ce=j[re+3],(Wt&192)===128&&(ae&192)===128&&(ce&192)===128&&(nt=(ge&15)<<18|(Wt&63)<<12|(ae&63)<<6|ce&63,nt>65535&&nt<1114112&&(Ee=nt))}}Ee===null?(Ee=65533,rt=1):Ee>65535&&(Ee-=65536,J.push(Ee>>>10&1023|55296),Ee=56320|Ee&1023),J.push(Ee),re+=rt}return B(J)}const we=4096;function B(j){const A=j.length;if(A<=we)return String.fromCharCode.apply(String,j);let M="",J=0;for(;JJ)&&(M=J);let re="";for(let ge=A;geJ&&(A=J),M<0?(M+=J,M<0&&(M=0)):M>J&&(M=J),MM)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(A,M,J){A=A>>>0,M=M>>>0,J||Q(A,M,this.length);let re=this[A],ge=1,Ee=0;for(;++Ee>>0,M=M>>>0,J||Q(A,M,this.length);let re=this[A+--M],ge=1;for(;M>0&&(ge*=256);)re+=this[A+--M]*ge;return re},l.prototype.readUint8=l.prototype.readUInt8=function(A,M){return A=A>>>0,M||Q(A,1,this.length),this[A]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(A,M){return A=A>>>0,M||Q(A,2,this.length),this[A]|this[A+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(A,M){return A=A>>>0,M||Q(A,2,this.length),this[A]<<8|this[A+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(A,M){return A=A>>>0,M||Q(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(A,M){return A=A>>>0,M||Q(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},l.prototype.readBigUInt64LE=Je(function(A){A=A>>>0,bt(A,"offset");const M=this[A],J=this[A+7];(M===void 0||J===void 0)&>(A,this.length-8);const re=M+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24,ge=this[++A]+this[++A]*2**8+this[++A]*2**16+J*2**24;return BigInt(re)+(BigInt(ge)<>>0,bt(A,"offset");const M=this[A],J=this[A+7];(M===void 0||J===void 0)&>(A,this.length-8);const re=M*2**24+this[++A]*2**16+this[++A]*2**8+this[++A],ge=this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+J;return(BigInt(re)<>>0,M=M>>>0,J||Q(A,M,this.length);let re=this[A],ge=1,Ee=0;for(;++Ee=ge&&(re-=Math.pow(2,8*M)),re},l.prototype.readIntBE=function(A,M,J){A=A>>>0,M=M>>>0,J||Q(A,M,this.length);let re=M,ge=1,Ee=this[A+--re];for(;re>0&&(ge*=256);)Ee+=this[A+--re]*ge;return ge*=128,Ee>=ge&&(Ee-=Math.pow(2,8*M)),Ee},l.prototype.readInt8=function(A,M){return A=A>>>0,M||Q(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},l.prototype.readInt16LE=function(A,M){A=A>>>0,M||Q(A,2,this.length);const J=this[A]|this[A+1]<<8;return J&32768?J|4294901760:J},l.prototype.readInt16BE=function(A,M){A=A>>>0,M||Q(A,2,this.length);const J=this[A+1]|this[A]<<8;return J&32768?J|4294901760:J},l.prototype.readInt32LE=function(A,M){return A=A>>>0,M||Q(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},l.prototype.readInt32BE=function(A,M){return A=A>>>0,M||Q(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},l.prototype.readBigInt64LE=Je(function(A){A=A>>>0,bt(A,"offset");const M=this[A],J=this[A+7];(M===void 0||J===void 0)&>(A,this.length-8);const re=this[A+4]+this[A+5]*2**8+this[A+6]*2**16+(J<<24);return(BigInt(re)<>>0,bt(A,"offset");const M=this[A],J=this[A+7];(M===void 0||J===void 0)&>(A,this.length-8);const re=(M<<24)+this[++A]*2**16+this[++A]*2**8+this[++A];return(BigInt(re)<>>0,M||Q(A,4,this.length),n.read(this,A,!0,23,4)},l.prototype.readFloatBE=function(A,M){return A=A>>>0,M||Q(A,4,this.length),n.read(this,A,!1,23,4)},l.prototype.readDoubleLE=function(A,M){return A=A>>>0,M||Q(A,8,this.length),n.read(this,A,!0,52,8)},l.prototype.readDoubleBE=function(A,M){return A=A>>>0,M||Q(A,8,this.length),n.read(this,A,!1,52,8)};function he(j,A,M,J,re,ge){if(!l.isBuffer(j))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>re||Aj.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(A,M,J,re){if(A=+A,M=M>>>0,J=J>>>0,!re){const rt=Math.pow(2,8*J)-1;he(this,A,M,J,rt,0)}let ge=1,Ee=0;for(this[M]=A&255;++Ee>>0,J=J>>>0,!re){const rt=Math.pow(2,8*J)-1;he(this,A,M,J,rt,0)}let ge=J-1,Ee=1;for(this[M+ge]=A&255;--ge>=0&&(Ee*=256);)this[M+ge]=A/Ee&255;return M+J},l.prototype.writeUint8=l.prototype.writeUInt8=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,1,255,0),this[M]=A&255,M+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,2,65535,0),this[M]=A&255,this[M+1]=A>>>8,M+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,2,65535,0),this[M]=A>>>8,this[M+1]=A&255,M+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,4,4294967295,0),this[M+3]=A>>>24,this[M+2]=A>>>16,this[M+1]=A>>>8,this[M]=A&255,M+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,4,4294967295,0),this[M]=A>>>24,this[M+1]=A>>>16,this[M+2]=A>>>8,this[M+3]=A&255,M+4};function $e(j,A,M,J,re){pt(A,J,re,j,M,7);let ge=Number(A&BigInt(4294967295));j[M++]=ge,ge=ge>>8,j[M++]=ge,ge=ge>>8,j[M++]=ge,ge=ge>>8,j[M++]=ge;let Ee=Number(A>>BigInt(32)&BigInt(4294967295));return j[M++]=Ee,Ee=Ee>>8,j[M++]=Ee,Ee=Ee>>8,j[M++]=Ee,Ee=Ee>>8,j[M++]=Ee,M}function Ce(j,A,M,J,re){pt(A,J,re,j,M,7);let ge=Number(A&BigInt(4294967295));j[M+7]=ge,ge=ge>>8,j[M+6]=ge,ge=ge>>8,j[M+5]=ge,ge=ge>>8,j[M+4]=ge;let Ee=Number(A>>BigInt(32)&BigInt(4294967295));return j[M+3]=Ee,Ee=Ee>>8,j[M+2]=Ee,Ee=Ee>>8,j[M+1]=Ee,Ee=Ee>>8,j[M]=Ee,M+8}l.prototype.writeBigUInt64LE=Je(function(A,M=0){return $e(this,A,M,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=Je(function(A,M=0){return Ce(this,A,M,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(A,M,J,re){if(A=+A,M=M>>>0,!re){const Wt=Math.pow(2,8*J-1);he(this,A,M,J,Wt-1,-Wt)}let ge=0,Ee=1,rt=0;for(this[M]=A&255;++ge>0)-rt&255;return M+J},l.prototype.writeIntBE=function(A,M,J,re){if(A=+A,M=M>>>0,!re){const Wt=Math.pow(2,8*J-1);he(this,A,M,J,Wt-1,-Wt)}let ge=J-1,Ee=1,rt=0;for(this[M+ge]=A&255;--ge>=0&&(Ee*=256);)A<0&&rt===0&&this[M+ge+1]!==0&&(rt=1),this[M+ge]=(A/Ee>>0)-rt&255;return M+J},l.prototype.writeInt8=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,1,127,-128),A<0&&(A=255+A+1),this[M]=A&255,M+1},l.prototype.writeInt16LE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,2,32767,-32768),this[M]=A&255,this[M+1]=A>>>8,M+2},l.prototype.writeInt16BE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,2,32767,-32768),this[M]=A>>>8,this[M+1]=A&255,M+2},l.prototype.writeInt32LE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,4,2147483647,-2147483648),this[M]=A&255,this[M+1]=A>>>8,this[M+2]=A>>>16,this[M+3]=A>>>24,M+4},l.prototype.writeInt32BE=function(A,M,J){return A=+A,M=M>>>0,J||he(this,A,M,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[M]=A>>>24,this[M+1]=A>>>16,this[M+2]=A>>>8,this[M+3]=A&255,M+4},l.prototype.writeBigInt64LE=Je(function(A,M=0){return $e(this,A,M,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=Je(function(A,M=0){return Ce(this,A,M,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Be(j,A,M,J,re,ge){if(M+J>j.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("Index out of range")}function Ie(j,A,M,J,re){return A=+A,M=M>>>0,re||Be(j,A,M,4),n.write(j,A,M,J,23,4),M+4}l.prototype.writeFloatLE=function(A,M,J){return Ie(this,A,M,!0,J)},l.prototype.writeFloatBE=function(A,M,J){return Ie(this,A,M,!1,J)};function tt(j,A,M,J,re){return A=+A,M=M>>>0,re||Be(j,A,M,8),n.write(j,A,M,J,52,8),M+8}l.prototype.writeDoubleLE=function(A,M,J){return tt(this,A,M,!0,J)},l.prototype.writeDoubleBE=function(A,M,J){return tt(this,A,M,!1,J)},l.prototype.copy=function(A,M,J,re){if(!l.isBuffer(A))throw new TypeError("argument should be a Buffer");if(J||(J=0),!re&&re!==0&&(re=this.length),M>=A.length&&(M=A.length),M||(M=0),re>0&&re=this.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("sourceEnd out of bounds");re>this.length&&(re=this.length),A.length-M>>0,J=J===void 0?this.length:J>>>0,A||(A=0);let ge;if(typeof A=="number")for(ge=M;ge2**32?re=He(String(M)):typeof M=="bigint"&&(re=String(M),(M>BigInt(2)**BigInt(32)||M<-(BigInt(2)**BigInt(32)))&&(re=He(re)),re+="n"),J+=` It must be ${A}. Received ${re}`,J},RangeError);function He(j){let A="",M=j.length;const J=j[0]==="-"?1:0;for(;M>=J+4;M-=3)A=`_${j.slice(M-3,M)}${A}`;return`${j.slice(0,M)}${A}`}function ut(j,A,M){bt(A,"offset"),(j[A]===void 0||j[A+M]===void 0)&>(A,j.length-(M+1))}function pt(j,A,M,J,re,ge){if(j>M||j= 0${Ee} and < 2${Ee} ** ${(ge+1)*8}${Ee}`:rt=`>= -(2${Ee} ** ${(ge+1)*8-1}${Ee}) and < 2 ** ${(ge+1)*8-1}${Ee}`,new ke.ERR_OUT_OF_RANGE("value",rt,j)}ut(J,re,ge)}function bt(j,A){if(typeof j!="number")throw new ke.ERR_INVALID_ARG_TYPE(A,"number",j)}function gt(j,A,M){throw Math.floor(j)!==j?(bt(j,M),new ke.ERR_OUT_OF_RANGE("offset","an integer",j)):A<0?new ke.ERR_BUFFER_OUT_OF_BOUNDS:new ke.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${A}`,j)}const Ut=/[^+/0-9A-Za-z-_]/g;function Gt(j){if(j=j.split("=")[0],j=j.trim().replace(Ut,""),j.length<2)return"";for(;j.length%4!==0;)j=j+"=";return j}function Tt(j,A){A=A||1/0;let M;const J=j.length;let re=null;const ge=[];for(let Ee=0;Ee55295&&M<57344){if(!re){if(M>56319){(A-=3)>-1&&ge.push(239,191,189);continue}else if(Ee+1===J){(A-=3)>-1&&ge.push(239,191,189);continue}re=M;continue}if(M<56320){(A-=3)>-1&&ge.push(239,191,189),re=M;continue}M=(re-55296<<10|M-56320)+65536}else re&&(A-=3)>-1&&ge.push(239,191,189);if(re=null,M<128){if((A-=1)<0)break;ge.push(M)}else if(M<2048){if((A-=2)<0)break;ge.push(M>>6|192,M&63|128)}else if(M<65536){if((A-=3)<0)break;ge.push(M>>12|224,M>>6&63|128,M&63|128)}else if(M<1114112){if((A-=4)<0)break;ge.push(M>>18|240,M>>12&63|128,M>>6&63|128,M&63|128)}else throw new Error("Invalid code point")}return ge}function en(j){const A=[];for(let M=0;M>8,re=M%256,ge.push(re),ge.push(J);return ge}function Dt(j){return e.toByteArray(Gt(j))}function Pt(j,A,M,J){let re;for(re=0;re=A.length||re>=j.length);++re)A[re+M]=j[re];return re}function pe(j,A){return j instanceof A||j!=null&&j.constructor!=null&&j.constructor.name!=null&&j.constructor.name===A.name}function ze(j){return j!==j}const Ge=(function(){const j="0123456789abcdef",A=new Array(256);for(let M=0;M<16;++M){const J=M*16;for(let re=0;re<16;++re)A[J+re]=j[M]+j[re]}return A})();function Je(j){return typeof BigInt>"u"?ht:j}function ht(){throw new Error("BigInt not supported")}})(bE)),bE}Kue();const Yue=t=>{const{config:e}=T.useContext(oF);yn();const{placeholder:n,label:r,getInputRef:i,secureTextEntry:o,Icon:u,onChange:l,value:d,height:h,disabled:g,forceBasic:y,forceRich:w,focused:v=!1,autoFocus:C,...E}=t,[$,O]=T.useState(!1),_=T.useRef(),R=T.useRef(!1),[k,P]=T.useState("tinymce"),{upload:L}=Vue(),{directPath:F}=aG();T.useEffect(()=>{if(e.textEditorModule!=="tinymce")t.onReady&&t.onReady();else{const X=setTimeout(()=>{R.current===!1&&(P("textarea"),t.onReady&&t.onReady())},5e3);return()=>{clearTimeout(X)}}},[]);const q=async(X,ue)=>{const me=await L([new File([X.blob()],"filename")],!0)[0];return F({diskPath:me})},Y=window.matchMedia("(prefers-color-scheme: dark)").matches||document.getElementsByTagName("body")[0].classList.contains("dark-theme");return N.jsx(kS,{focused:$,...t,children:e.textEditorModule==="tinymce"&&!y||w?N.jsx(Hue,{onInit:(X,ue)=>{_.current=ue,setTimeout(()=>{ue.setContent(d||"",{format:"raw"})},0),t.onReady&&t.onReady()},onEditorChange:(X,ue)=>{l&&l(ue.getContent({format:"raw"}))},onLoadContent:()=>{R.current=!0},apiKey:"4dh1g4gxp1gbmxi3hnkro4wf9lfgmqr86khygey2bwb7ps74",onBlur:()=>O(!1),tinymceScriptSrc:Ci.PUBLIC_URL+"plugins/js/tinymce/tinymce.min.js",onFocus:()=>O(!0),init:{menubar:!1,height:h||400,images_upload_handler:q,skin:Y?"oxide-dark":"oxide",content_css:Y?"dark":"default",plugins:["example","image","directionality","image"],toolbar:"undo redo | formatselect | example | image | rtl ltr | link | bullist numlist bold italic backcolor h2 h3 | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",content_style:"body {font-size:18px }"}}):N.jsx("textarea",{...E,value:d,placeholder:n,style:{minHeight:"140px"},autoFocus:C,className:Ho("form-control",t.errorMessage&&"is-invalid",t.validMessage&&"is-valid"),onChange:X=>l&&l(X.target.value),onBlur:()=>O(!1),onFocus:()=>O(!0)})})},r5=t=>{const{placeholder:e,label:n,getInputRef:r,secureTextEntry:i,Icon:o,onChange:u,value:l,disabled:d,focused:h=!1,errorMessage:g,autoFocus:y,...w}=t,[v,C]=T.useState(!1),E=T.useRef(null),$=T.useCallback(()=>{var O;(O=E.current)==null||O.focus()},[E.current]);return N.jsx(kS,{focused:v,onClick:$,...t,label:"",children:N.jsxs("label",{className:"form-label mr-2",children:[N.jsx("input",{...w,ref:E,checked:!!l,type:"checkbox",onChange:O=>u&&u(!l),onBlur:()=>C(!1),onFocus:()=>C(!0),className:"form-checkbox"}),n]})})},Jue=t=>[Ci.SUPPORTED_LANGUAGES.includes("en")?{label:t.locale.englishWorldwide,value:"en"}:void 0,Ci.SUPPORTED_LANGUAGES.includes("fa")?{label:t.locale.persianIran,value:"fa"}:void 0,Ci.SUPPORTED_LANGUAGES.includes("ru")?{label:"Russian (Русский)",value:"ru"}:void 0,Ci.SUPPORTED_LANGUAGES.includes("pl")?{label:t.locale.polishPoland,value:"pl"}:void 0,Ci.SUPPORTED_LANGUAGES.includes("ua")?{label:"Ukrainain (українська)",value:"ua"}:void 0].filter(Boolean),Que=({form:t,isEditing:e})=>{const n=yn(),{values:r,setValues:i,setFieldValue:o,errors:u}=t,l=Kn(DM),d=Jue(n),h=Rue(d);return N.jsxs(N.Fragment,{children:[N.jsxs("div",{className:"row",children:[N.jsx("div",{className:"col-md-12",children:N.jsx(Bo,{value:r.firstName,onChange:g=>o(Tr.Fields.firstName,g,!1),errorMessage:u.firstName,label:n.wokspaces.invite.firstName,autoFocus:!e,hint:n.wokspaces.invite.firstNameHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(Bo,{value:r.lastName,onChange:g=>o(Tr.Fields.lastName,g,!1),errorMessage:u.lastName,label:n.wokspaces.invite.lastName,hint:n.wokspaces.invite.lastNameHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(Fx,{keyExtractor:g=>g.value,formEffect:{form:t,field:Tr.Fields.targetUserLocale,beforeSet(g){return g.value}},errorMessage:t.errors.targetUserLocale,querySource:h,label:l.targetLocale,hint:l.targetLocaleHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(Yue,{value:r.coverLetter,onChange:g=>o(Tr.Fields.coverLetter,g,!1),forceBasic:!0,errorMessage:u.coverLetter,label:l.coverLetter,placeholder:l.coverLetterHint,hint:l.coverLetterHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(Fx,{formEffect:{field:Tr.Fields.role$,form:t},querySource:YS,label:n.wokspaces.invite.role,errorMessage:u.roleId,fnLabelFormat:g=>g.name,hint:n.wokspaces.invite.roleHint})})]}),N.jsxs("div",{className:"row",children:[N.jsx("div",{className:"col-md-12",children:N.jsx(Bo,{value:r.email,onChange:g=>o(Tr.Fields.email,g,!1),errorMessage:u.email,label:n.wokspaces.invite.email,hint:n.wokspaces.invite.emailHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(r5,{value:r.forceEmailAddress,onChange:g=>o(Tr.Fields.forceEmailAddress,g),errorMessage:u.forceEmailAddress,label:l.forcedEmailAddress,hint:l.forcedEmailAddressHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(Bo,{value:r.phonenumber,onChange:g=>o(Tr.Fields.phonenumber,g,!1),errorMessage:u.phonenumber,type:"phonenumber",label:n.wokspaces.invite.phoneNumber,hint:n.wokspaces.invite.phoneNumberHint})}),N.jsx("div",{className:"col-md-12",children:N.jsx(r5,{value:r.forcePhoneNumber,onChange:g=>o(Tr.Fields.forcePhoneNumber,g),errorMessage:u.forcePhoneNumber,label:l.forcedPhone,hint:l.forcedPhoneHint})})]})]})},i5=({data:t})=>{const e=yn(),{router:n,uniqueId:r,queryClient:i,locale:o}=K1({data:t}),u=kM({query:{uniqueId:r},queryClient:i}),l=Tue({queryClient:i}),d=Oue({queryClient:i});return N.jsx(JO,{postHook:l,getSingleHook:u,patchHook:d,onCancel:()=>{n.goBackOrDefault(`/${o}/workspace-invites`)},onFinishUriResolver:(h,g)=>`/${g}/workspace-invites`,Form:Que,onEditTitle:e.wokspaces.invite.editInvitation,onCreateTitle:e.wokspaces.invite.createInvitation,data:t})},Xue=()=>{var u;const t=Lr(),e=yn(),n=t.query.uniqueId;$i();const r=Kn(DM),i=kM({query:{uniqueId:n}});var o=(u=i.query.data)==null?void 0:u.data;return IM((o==null?void 0:o.firstName)+" "+(o==null?void 0:o.lastName)||""),N.jsx(N.Fragment,{children:N.jsx(fT,{getSingleHook:i,editEntityHandler:()=>t.push(Tr.Navigation.edit(n)),children:N.jsx(dT,{entity:o,fields:[{label:e.wokspaces.invite.firstName,elem:o==null?void 0:o.firstName},{label:e.wokspaces.invite.lastName,elem:o==null?void 0:o.lastName},{label:e.wokspaces.invite.email,elem:o==null?void 0:o.email},{label:e.wokspaces.invite.phoneNumber,elem:o==null?void 0:o.phonenumber},{label:r.forcedEmailAddress,elem:o==null?void 0:o.forceEmailAddress},{label:r.forcedPhone,elem:o==null?void 0:o.forcePhoneNumber},{label:r.targetLocale,elem:o==null?void 0:o.targetUserLocale}]})})})},Zue=t=>[{name:Tr.Fields.uniqueId,title:t.table.uniqueId,width:100},{name:"firstName",title:t.wokspaces.invite.firstName,width:100},{name:"lastName",title:t.wokspaces.invite.lastName,width:100},{name:"phoneNumber",title:t.wokspaces.invite.phoneNumber,width:100},{name:"email",title:t.wokspaces.invite.email,width:100},{name:"role_id",title:t.wokspaces.invite.role,width:100,getCellValue:e=>{var n;return(n=e==null?void 0:e.role)==null?void 0:n.name}}];function UM({queryOptions:t,query:e,queryClient:n,execFnOverride:r,unauthorized:i,optionFn:o}){var _,R,k;const{options:u,execFn:l}=T.useContext(Sn),d=o?o(u):u,h=r?r(d):l?l(d):Qr(d);let y=`${"/workspace-invites".substr(1)}?${ny.stringify(e)}`;const w=()=>h("GET",y),v=(_=d==null?void 0:d.headers)==null?void 0:_.authorization,C=v!="undefined"&&v!=null&&v!=null&&v!="null"&&!!v;let E=!0;!C&&!i&&(E=!1);const $=Go(["*abac.WorkspaceInviteEntity",d,e],w,{cacheTime:1e3,retry:!1,keepPreviousData:!0,enabled:E,...t||{}}),O=((k=(R=$.data)==null?void 0:R.data)==null?void 0:k.items)||[];return{query:$,items:O,keyExtractor:P=>P.uniqueId}}UM.UKEY="*abac.WorkspaceInviteEntity";function ele(t){const{execFnOverride:e,queryClient:n,query:r}=t||{},{options:i,execFn:o}=T.useContext(Sn),u=e?e(i):o?o(i):Qr(i);let d=`${"/workspace-invite".substr(1)}?${new URLSearchParams(Ta(r)).toString()}`;const g=Fr(v=>u("DELETE",d,v)),y=(v,C)=>v;return{mutation:g,submit:(v,C)=>new Promise((E,$)=>{g.mutate(v,{onSuccess(O){n==null||n.setQueryData("*abac.WorkspaceInviteEntity",_=>y(_)),n==null||n.invalidateQueries("*abac.WorkspaceInviteEntity"),E(O)},onError(O){C==null||C.setErrors(Ru(O)),$(O)}})}),fnUpdater:y}}const tle=()=>{const t=yn();return N.jsx(N.Fragment,{children:N.jsx(ZS,{columns:Zue(t),queryHook:UM,uniqueIdHrefHandler:e=>Tr.Navigation.single(e),deleteHook:ele})})},nle=()=>{const t=yn();return N.jsx(N.Fragment,{children:N.jsx(e3,{pageTitle:t.fbMenu.workspaceInvites,newEntityHandler:({locale:e,router:n})=>{n.push(Tr.Navigation.create())},children:N.jsx(tle,{})})})};function rle(){return N.jsxs(N.Fragment,{children:[N.jsx(mn,{element:N.jsx(i5,{}),path:Tr.Navigation.Rcreate}),N.jsx(mn,{element:N.jsx(i5,{}),path:Tr.Navigation.Redit}),N.jsx(mn,{element:N.jsx(Xue,{}),path:Tr.Navigation.Rsingle}),N.jsx(mn,{element:N.jsx(nle,{}),path:Tr.Navigation.Rquery})]})}const ile=()=>{const t=Kn($r);return N.jsxs(N.Fragment,{children:[N.jsx(NM,{title:t.home.title,description:t.home.description}),N.jsx("h2",{children:N.jsx(nx,{to:"passports",children:t.home.passportsTitle})}),N.jsx("p",{children:t.home.passportsDescription}),N.jsx(nx,{to:"passports",className:"btn btn-success btn-sm",children:t.home.passportsTitle})]})},xT=T.createContext({});function OT(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const TT=typeof window<"u",jM=TT?T.useLayoutEffect:T.useEffect,r3=T.createContext(null);function _T(t,e){t.indexOf(e)===-1&&t.push(e)}function AT(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Nl=(t,e,n)=>n>e?e:n{};const Ml={},BM=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function qM(t){return typeof t=="object"&&t!==null}const HM=t=>/^0[^.\s]+$/u.test(t);function PT(t){let e;return()=>(e===void 0&&(e=t()),e)}const Vo=t=>t,ale=(t,e)=>n=>e(t(n)),tb=(...t)=>t.reduce(ale),I1=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class IT{constructor(){this.subscriptions=[]}add(e){return _T(this.subscriptions,e),()=>AT(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;ot*1e3,_u=t=>t/1e3;function zM(t,e){return e?t*(1e3/e):0}const VM=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ole=1e-7,sle=12;function ule(t,e,n,r,i){let o,u,l=0;do u=e+(n-e)/2,o=VM(u,r,i)-t,o>0?n=u:e=u;while(Math.abs(o)>ole&&++lule(o,0,1,t,n);return o=>o===0||o===1?o:VM(i(o),e,r)}const GM=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,WM=t=>e=>1-t(1-e),KM=nb(.33,1.53,.69,.99),NT=WM(KM),YM=GM(NT),JM=t=>(t*=2)<1?.5*NT(t):.5*(2-Math.pow(2,-10*(t-1))),MT=t=>1-Math.sin(Math.acos(t)),QM=WM(MT),XM=GM(MT),lle=nb(.42,0,1,1),cle=nb(0,0,.58,1),ZM=nb(.42,0,.58,1),fle=t=>Array.isArray(t)&&typeof t[0]!="number",ek=t=>Array.isArray(t)&&typeof t[0]=="number",dle={linear:Vo,easeIn:lle,easeInOut:ZM,easeOut:cle,circIn:MT,circInOut:XM,circOut:QM,backIn:NT,backInOut:YM,backOut:KM,anticipate:JM},hle=t=>typeof t=="string",a5=t=>{if(ek(t)){RT(t.length===4);const[e,n,r,i]=t;return nb(e,n,r,i)}else if(hle(t))return dle[t];return t},pw=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],o5={value:null};function ple(t,e){let n=new Set,r=new Set,i=!1,o=!1;const u=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},d=0;function h(y){u.has(y)&&(g.schedule(y),t()),d++,y(l)}const g={schedule:(y,w=!1,v=!1)=>{const E=v&&i?n:r;return w&&u.add(y),E.has(y)||E.add(y),y},cancel:y=>{r.delete(y),u.delete(y)},process:y=>{if(l=y,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(h),e&&o5.value&&o5.value.frameloop[e].push(d),d=0,n.clear(),i=!1,o&&(o=!1,g.process(y))}};return g}const mle=40;function tk(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,u=pw.reduce((R,k)=>(R[k]=ple(o,e?k:void 0),R),{}),{setup:l,read:d,resolveKeyframes:h,preUpdate:g,update:y,preRender:w,render:v,postRender:C}=u,E=()=>{const R=Ml.useManualTiming?i.timestamp:performance.now();n=!1,Ml.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(R-i.timestamp,mle),1)),i.timestamp=R,i.isProcessing=!0,l.process(i),d.process(i),h.process(i),g.process(i),y.process(i),w.process(i),v.process(i),C.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(E))},$=()=>{n=!0,r=!0,i.isProcessing||t(E)};return{schedule:pw.reduce((R,k)=>{const P=u[k];return R[k]=(L,F=!1,q=!1)=>(n||$(),P.schedule(L,F,q)),R},{}),cancel:R=>{for(let k=0;k(Nw===void 0&&xa.set(gi.isProcessing||Ml.useManualTiming?gi.timestamp:performance.now()),Nw),set:t=>{Nw=t,queueMicrotask(gle)}},nk=t=>e=>typeof e=="string"&&e.startsWith(t),kT=nk("--"),yle=nk("var(--"),DT=t=>yle(t)?vle.test(t.split("/*")[0].trim()):!1,vle=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,yy={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},N1={...yy,transform:t=>Nl(0,1,t)},mw={...yy,default:1},W0=t=>Math.round(t*1e5)/1e5,FT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ble(t){return t==null}const wle=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,LT=(t,e)=>n=>!!(typeof n=="string"&&wle.test(n)&&n.startsWith(t)||e&&!ble(n)&&Object.prototype.hasOwnProperty.call(n,e)),rk=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,u,l]=r.match(FT);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(u),alpha:l!==void 0?parseFloat(l):1}},Sle=t=>Nl(0,255,t),SE={...yy,transform:t=>Math.round(Sle(t))},Lp={test:LT("rgb","red"),parse:rk("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+SE.transform(t)+", "+SE.transform(e)+", "+SE.transform(n)+", "+W0(N1.transform(r))+")"};function Cle(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Jx={test:LT("#"),parse:Cle,transform:Lp.transform},rb=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Cf=rb("deg"),Au=rb("%"),xt=rb("px"),$le=rb("vh"),Ele=rb("vw"),s5={...Au,parse:t=>Au.parse(t)/100,transform:t=>Au.transform(t*100)},jg={test:LT("hsl","hue"),parse:rk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Au.transform(W0(e))+", "+Au.transform(W0(n))+", "+W0(N1.transform(r))+")"},Or={test:t=>Lp.test(t)||Jx.test(t)||jg.test(t),parse:t=>Lp.test(t)?Lp.parse(t):jg.test(t)?jg.parse(t):Jx.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Lp.transform(t):jg.transform(t),getAnimatableNone:t=>{const e=Or.parse(t);return e.alpha=0,Or.transform(e)}},xle=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ole(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(FT))==null?void 0:e.length)||0)+(((n=t.match(xle))==null?void 0:n.length)||0)>0}const ik="number",ak="color",Tle="var",_le="var(",u5="${}",Ale=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function M1(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=e.replace(Ale,d=>(Or.test(d)?(r.color.push(o),i.push(ak),n.push(Or.parse(d))):d.startsWith(_le)?(r.var.push(o),i.push(Tle),n.push(d)):(r.number.push(o),i.push(ik),n.push(parseFloat(d))),++o,u5)).split(u5);return{values:n,split:l,indexes:r,types:i}}function ok(t){return M1(t).values}function sk(t){const{split:e,types:n}=M1(t),r=e.length;return i=>{let o="";for(let u=0;utypeof t=="number"?0:Or.test(t)?Or.getAnimatableNone(t):t;function Ple(t){const e=ok(t);return sk(t)(e.map(Rle))}const Nf={test:Ole,parse:ok,createTransformer:sk,getAnimatableNone:Ple};function CE(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Ile({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,u=0;if(!e)i=o=u=n;else{const l=n<.5?n*(1+e):n+e-n*e,d=2*n-l;i=CE(d,l,t+1/3),o=CE(d,l,t),u=CE(d,l,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(u*255),alpha:r}}function vS(t,e){return n=>n>0?e:t}const ir=(t,e,n)=>t+(e-t)*n,$E=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},Nle=[Jx,Lp,jg],Mle=t=>Nle.find(e=>e.test(t));function l5(t){const e=Mle(t);if(!e)return!1;let n=e.parse(t);return e===jg&&(n=Ile(n)),n}const c5=(t,e)=>{const n=l5(t),r=l5(e);if(!n||!r)return vS(t,e);const i={...n};return o=>(i.red=$E(n.red,r.red,o),i.green=$E(n.green,r.green,o),i.blue=$E(n.blue,r.blue,o),i.alpha=ir(n.alpha,r.alpha,o),Lp.transform(i))},Qx=new Set(["none","hidden"]);function kle(t,e){return Qx.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Dle(t,e){return n=>ir(t,e,n)}function UT(t){return typeof t=="number"?Dle:typeof t=="string"?DT(t)?vS:Or.test(t)?c5:Ule:Array.isArray(t)?uk:typeof t=="object"?Or.test(t)?c5:Fle:vS}function uk(t,e){const n=[...t],r=n.length,i=t.map((o,u)=>UT(o)(o,e[u]));return o=>{for(let u=0;u{for(const o in r)n[o]=r[o](i);return n}}function Lle(t,e){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Nf.createTransformer(e),r=M1(t),i=M1(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Qx.has(t)&&!i.values.length||Qx.has(e)&&!r.values.length?kle(t,e):tb(uk(Lle(r,i),i.values),n):vS(t,e)};function lk(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?ir(t,e,n):UT(t)(t,e)}const jle=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>ar.update(e,n),stop:()=>If(e),now:()=>gi.isProcessing?gi.timestamp:xa.now()}},ck=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o=bS?1/0:e}function Ble(t,e=100,n){const r=n({...t,keyframes:[0,e]}),i=Math.min(jT(r),bS);return{type:"keyframes",ease:o=>r.next(i*o).value/e,duration:_u(i)}}const qle=5;function fk(t,e,n){const r=Math.max(e-qle,0);return zM(n-t(r),e-r)}const fr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},EE=.001;function Hle({duration:t=fr.duration,bounce:e=fr.bounce,velocity:n=fr.velocity,mass:r=fr.mass}){let i,o,u=1-e;u=Nl(fr.minDamping,fr.maxDamping,u),t=Nl(fr.minDuration,fr.maxDuration,_u(t)),u<1?(i=h=>{const g=h*u,y=g*t,w=g-n,v=Xx(h,u),C=Math.exp(-y);return EE-w/v*C},o=h=>{const y=h*u*t,w=y*n+n,v=Math.pow(u,2)*Math.pow(h,2)*t,C=Math.exp(-y),E=Xx(Math.pow(h,2),u);return(-i(h)+EE>0?-1:1)*((w-v)*C)/E}):(i=h=>{const g=Math.exp(-h*t),y=(h-n)*t+1;return-EE+g*y},o=h=>{const g=Math.exp(-h*t),y=(n-h)*(t*t);return g*y});const l=5/t,d=Vle(i,o,l);if(t=Tu(t),isNaN(d))return{stiffness:fr.stiffness,damping:fr.damping,duration:t};{const h=Math.pow(d,2)*r;return{stiffness:h,damping:u*2*Math.sqrt(r*h),duration:t}}}const zle=12;function Vle(t,e,n){let r=n;for(let i=1;it[n]!==void 0)}function Kle(t){let e={velocity:fr.velocity,stiffness:fr.stiffness,damping:fr.damping,mass:fr.mass,isResolvedFromDuration:!1,...t};if(!f5(t,Wle)&&f5(t,Gle))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Nl(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:fr.mass,stiffness:i,damping:o}}else{const n=Hle(t);e={...e,...n,mass:fr.mass},e.isResolvedFromDuration=!0}return e}function wS(t=fr.visualDuration,e=fr.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:d,damping:h,mass:g,duration:y,velocity:w,isResolvedFromDuration:v}=Kle({...n,velocity:-_u(n.velocity||0)}),C=w||0,E=h/(2*Math.sqrt(d*g)),$=u-o,O=_u(Math.sqrt(d/g)),_=Math.abs($)<5;r||(r=_?fr.restSpeed.granular:fr.restSpeed.default),i||(i=_?fr.restDelta.granular:fr.restDelta.default);let R;if(E<1){const P=Xx(O,E);R=L=>{const F=Math.exp(-E*O*L);return u-F*((C+E*O*$)/P*Math.sin(P*L)+$*Math.cos(P*L))}}else if(E===1)R=P=>u-Math.exp(-O*P)*($+(C+O*$)*P);else{const P=O*Math.sqrt(E*E-1);R=L=>{const F=Math.exp(-E*O*L),q=Math.min(P*L,300);return u-F*((C+E*O*$)*Math.sinh(q)+P*$*Math.cosh(q))/P}}const k={calculatedDuration:v&&y||null,next:P=>{const L=R(P);if(v)l.done=P>=y;else{let F=P===0?C:0;E<1&&(F=P===0?Tu(C):fk(R,P,L));const q=Math.abs(F)<=r,Y=Math.abs(u-L)<=i;l.done=q&&Y}return l.value=l.done?u:L,l},toString:()=>{const P=Math.min(jT(k),bS),L=ck(F=>k.next(P*F).value,P,30);return P+"ms "+L},toTransition:()=>{}};return k}wS.applyToOptions=t=>{const e=Ble(t,100,wS);return t.ease=e.ease,t.duration=Tu(e.duration),t.type="keyframes",t};function Zx({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:u,min:l,max:d,restDelta:h=.5,restSpeed:g}){const y=t[0],w={done:!1,value:y},v=q=>l!==void 0&&qd,C=q=>l===void 0?d:d===void 0||Math.abs(l-q)-E*Math.exp(-q/r),R=q=>O+_(q),k=q=>{const Y=_(q),X=R(q);w.done=Math.abs(Y)<=h,w.value=w.done?O:X};let P,L;const F=q=>{v(w.value)&&(P=q,L=wS({keyframes:[w.value,C(w.value)],velocity:fk(R,q,w.value),damping:i,stiffness:o,restDelta:h,restSpeed:g}))};return F(0),{calculatedDuration:null,next:q=>{let Y=!1;return!L&&P===void 0&&(Y=!0,k(q),F(q)),P!==void 0&&q>=P?L.next(q-P):(!Y&&k(q),w)}}}function Yle(t,e,n){const r=[],i=n||Ml.mix||lk,o=t.length-1;for(let u=0;ue[0];if(o===2&&e[0]===e[1])return()=>e[1];const u=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=Yle(e,r,i),d=l.length,h=g=>{if(u&&g1)for(;yh(Nl(t[0],t[o-1],g)):h}function Qle(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=I1(0,e,r);t.push(ir(n,1,i))}}function Xle(t){const e=[0];return Qle(e,t.length-1),e}function Zle(t,e){return t.map(n=>n*e)}function ece(t,e){return t.map(()=>e||ZM).splice(0,t.length-1)}function K0({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=fle(r)?r.map(a5):a5(r),o={done:!1,value:e[0]},u=Zle(n&&n.length===e.length?n:Xle(e),t),l=Jle(u,e,{ease:Array.isArray(i)?i:ece(e,i)});return{calculatedDuration:t,next:d=>(o.value=l(d),o.done=d>=t,o)}}const tce=t=>t!==null;function BT(t,{repeat:e,repeatType:n="loop"},r,i=1){const o=t.filter(tce),l=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!l||r===void 0?o[l]:r}const nce={decay:Zx,inertia:Zx,tween:K0,keyframes:K0,spring:wS};function dk(t){typeof t.type=="string"&&(t.type=nce[t.type])}class qT{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const rce=t=>t/100;class HT extends qT{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==xa.now()&&this.tick(xa.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;dk(e);const{type:n=K0,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:u=0}=e;let{keyframes:l}=e;const d=n||K0;d!==K0&&typeof l[0]!="number"&&(this.mixKeyframes=tb(rce,lk(l[0],l[1])),l=[0,100]);const h=d({...e,keyframes:l});o==="mirror"&&(this.mirroredGenerator=d({...e,keyframes:[...l].reverse(),velocity:-u})),h.calculatedDuration===null&&(h.calculatedDuration=jT(h));const{calculatedDuration:g}=h;this.calculatedDuration=g,this.resolvedDuration=g+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=h}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:u,resolvedDuration:l,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:g,repeat:y,repeatType:w,repeatDelay:v,type:C,onUpdate:E,finalKeyframe:$}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const O=this.currentTime-h*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?O<0:O>i;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let R=this.currentTime,k=r;if(y){const q=Math.min(this.currentTime,i)/l;let Y=Math.floor(q),X=q%1;!X&&q>=1&&(X=1),X===1&&Y--,Y=Math.min(Y,y+1),!!(Y%2)&&(w==="reverse"?(X=1-X,v&&(X-=v/l)):w==="mirror"&&(k=u)),R=Nl(0,1,X)*l}const P=_?{done:!1,value:g[0]}:k.next(R);o&&(P.value=o(P.value));let{done:L}=P;!_&&d!==null&&(L=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return F&&C!==Zx&&(P.value=BT(g,this.options,$,this.speed)),E&&E(P.value),F&&this.finish(),P}then(e,n){return this.finished.then(e,n)}get duration(){return _u(this.calculatedDuration)}get time(){return _u(this.currentTime)}set time(e){var n;e=Tu(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(xa.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=_u(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=jle,startTime:n}=this.options;this.driver||(this.driver=e(u=>this.tick(u))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(xa.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function ice(t){for(let e=1;et*180/Math.PI,eO=t=>{const e=Up(Math.atan2(t[1],t[0]));return tO(e)},ace={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:eO,rotateZ:eO,skewX:t=>Up(Math.atan(t[1])),skewY:t=>Up(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tO=t=>(t=t%360,t<0&&(t+=360),t),d5=eO,h5=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),p5=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),oce={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:h5,scaleY:p5,scale:t=>(h5(t)+p5(t))/2,rotateX:t=>tO(Up(Math.atan2(t[6],t[5]))),rotateY:t=>tO(Up(Math.atan2(-t[2],t[0]))),rotateZ:d5,rotate:d5,skewX:t=>Up(Math.atan(t[4])),skewY:t=>Up(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function nO(t){return t.includes("scale")?1:0}function rO(t,e){if(!t||t==="none")return nO(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=oce,i=n;else{const l=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ace,i=l}if(!i)return nO(e);const o=r[e],u=i[1].split(",").map(uce);return typeof o=="function"?o(u):u[o]}const sce=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return rO(n,e)};function uce(t){return parseFloat(t.trim())}const vy=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],by=new Set(vy),m5=t=>t===yy||t===xt,lce=new Set(["x","y","z"]),cce=vy.filter(t=>!lce.has(t));function fce(t){const e=[];return cce.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const qp={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>rO(e,"x"),y:(t,{transform:e})=>rO(e,"y")};qp.translateX=qp.x;qp.translateY=qp.y;const Hp=new Set;let iO=!1,aO=!1,oO=!1;function hk(){if(aO){const t=Array.from(Hp).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=fce(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,u])=>{var l;(l=r.getValue(o))==null||l.set(u)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}aO=!1,iO=!1,Hp.forEach(t=>t.complete(oO)),Hp.clear()}function pk(){Hp.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(aO=!0)})}function dce(){oO=!0,pk(),hk(),oO=!1}class zT{constructor(e,n,r,i,o,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Hp.add(this),iO||(iO=!0,ar.read(pk),ar.resolveKeyframes(hk))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),u=e[e.length-1];if(o!==void 0)e[0]=o;else if(r&&n){const l=r.readValue(n,u);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=u),i&&o===void 0&&i.set(e[0])}ice(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Hp.delete(this)}cancel(){this.state==="scheduled"&&(Hp.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const hce=t=>t.startsWith("--");function pce(t,e,n){hce(e)?t.style.setProperty(e,n):t.style[e]=n}const mce=PT(()=>window.ScrollTimeline!==void 0),gce={};function yce(t,e){const n=PT(t);return()=>gce[e]??n()}const mk=yce(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),j0=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,g5={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:j0([0,.65,.55,1]),circOut:j0([.55,0,1,.45]),backIn:j0([.31,.01,.66,-.59]),backOut:j0([.33,1.53,.69,.99])};function gk(t,e){if(t)return typeof t=="function"?mk()?ck(t,e):"ease-out":ek(t)?j0(t):Array.isArray(t)?t.map(n=>gk(n,e)||g5.easeOut):g5[t]}function vce(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:u="loop",ease:l="easeOut",times:d}={},h=void 0){const g={[e]:n};d&&(g.offset=d);const y=gk(l,i);Array.isArray(y)&&(g.easing=y);const w={delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:u==="reverse"?"alternate":"normal"};return h&&(w.pseudoElement=h),t.animate(g,w)}function yk(t){return typeof t=="function"&&"applyToOptions"in t}function bce({type:t,...e}){return yk(t)&&mk()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class wce extends qT{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:u=!1,finalKeyframe:l,onComplete:d}=e;this.isPseudoElement=!!o,this.allowFlatten=u,this.options=e,RT(typeof e.type!="string");const h=bce(e);this.animation=vce(n,r,i,h,o),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const g=BT(i,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(g):pce(n,r,g),this.animation.cancel()}d==null||d(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,r;const e=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return _u(Number(e))}get time(){return _u(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=Tu(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&mce()?(this.animation.timeline=e,Vo):n(this)}}const vk={anticipate:JM,backInOut:YM,circInOut:XM};function Sce(t){return t in vk}function Cce(t){typeof t.ease=="string"&&Sce(t.ease)&&(t.ease=vk[t.ease])}const y5=10;class $ce extends wce{constructor(e){Cce(e),dk(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...u}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const l=new HT({...u,autoplay:!1}),d=Tu(this.finishedTime??this.time);n.setWithVelocity(l.sample(d-y5).value,l.sample(d).value,y5),l.stop()}}const v5=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Nf.test(t)||t==="0")&&!t.startsWith("url("));function Ece(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function _ce(t){var h;const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:o,type:u}=t;if(!VT((h=e==null?void 0:e.owner)==null?void 0:h.current))return!1;const{onUpdate:l,transformTemplate:d}=e.owner.getProps();return Tce()&&n&&Oce.has(n)&&(n!=="transform"||!d)&&!l&&!r&&i!=="mirror"&&o!==0&&u!=="inertia"}const Ace=40;class Rce extends qT{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:u="loop",keyframes:l,name:d,motionValue:h,element:g,...y}){var C;super(),this.stop=()=>{var E,$;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),($=this.keyframeResolver)==null||$.cancel()},this.createdAt=xa.now();const w={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:u,name:d,motionValue:h,element:g,...y},v=(g==null?void 0:g.KeyframeResolver)||zT;this.keyframeResolver=new v(l,(E,$,O)=>this.onKeyframesResolved(E,$,w,!O),d,h,g),(C=this.keyframeResolver)==null||C.scheduleResolve()}onKeyframesResolved(e,n,r,i){this.keyframeResolver=void 0;const{name:o,type:u,velocity:l,delay:d,isHandoff:h,onUpdate:g}=r;this.resolvedAt=xa.now(),xce(e,o,u,l)||((Ml.instantAnimations||!d)&&(g==null||g(BT(e,r,n))),e[0]=e[e.length-1],r.duration=0,r.repeat=0);const w={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Ace?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},v=!h&&_ce(w)?new $ce({...w,element:w.motionValue.owner.current}):new HT(w);v.finished.then(()=>this.notifyFinished()).catch(Vo),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),dce()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const Pce=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ice(t){const e=Pce.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}function bk(t,e,n=1){const[r,i]=Ice(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const u=o.trim();return BM(u)?parseFloat(u):u}return DT(i)?bk(i,e,n+1):i}function GT(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const wk=new Set(["width","height","top","left","right","bottom",...vy]),Nce={test:t=>t==="auto",parse:t=>t},Sk=t=>e=>e.test(t),Ck=[yy,xt,Au,Cf,Ele,$le,Nce],b5=t=>Ck.find(Sk(t));function Mce(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||HM(t):!0}const kce=new Set(["brightness","contrast","saturate","opacity"]);function Dce(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(FT)||[];if(!r)return t;const i=n.replace(r,"");let o=kce.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const Fce=/\b([a-z-]*)\(.*?\)/gu,sO={...Nf,getAnimatableNone:t=>{const e=t.match(Fce);return e?e.map(Dce).join(" "):t}},w5={...yy,transform:Math.round},Lce={rotate:Cf,rotateX:Cf,rotateY:Cf,rotateZ:Cf,scale:mw,scaleX:mw,scaleY:mw,scaleZ:mw,skew:Cf,skewX:Cf,skewY:Cf,distance:xt,translateX:xt,translateY:xt,translateZ:xt,x:xt,y:xt,z:xt,perspective:xt,transformPerspective:xt,opacity:N1,originX:s5,originY:s5,originZ:xt},WT={borderWidth:xt,borderTopWidth:xt,borderRightWidth:xt,borderBottomWidth:xt,borderLeftWidth:xt,borderRadius:xt,radius:xt,borderTopLeftRadius:xt,borderTopRightRadius:xt,borderBottomRightRadius:xt,borderBottomLeftRadius:xt,width:xt,maxWidth:xt,height:xt,maxHeight:xt,top:xt,right:xt,bottom:xt,left:xt,padding:xt,paddingTop:xt,paddingRight:xt,paddingBottom:xt,paddingLeft:xt,margin:xt,marginTop:xt,marginRight:xt,marginBottom:xt,marginLeft:xt,backgroundPositionX:xt,backgroundPositionY:xt,...Lce,zIndex:w5,fillOpacity:N1,strokeOpacity:N1,numOctaves:w5},Uce={...WT,color:Or,backgroundColor:Or,outlineColor:Or,fill:Or,stroke:Or,borderColor:Or,borderTopColor:Or,borderRightColor:Or,borderBottomColor:Or,borderLeftColor:Or,filter:sO,WebkitFilter:sO},$k=t=>Uce[t];function Ek(t,e){let n=$k(t);return n!==sO&&(n=Nf),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const jce=new Set(["auto","none","0"]);function Bce(t,e,n){let r=0,i;for(;r{e.getValue(d).set(h)}),this.resolveNoneKeyframes()}}function Hce(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let r=document;const i=(n==null?void 0:n[t])??r.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}const xk=(t,e)=>e&&typeof t=="number"?e.transform(t):t,S5=30,zce=t=>!isNaN(parseFloat(t));class Vce{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var u,l;const o=xa.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((u=this.events.change)==null||u.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty();i&&((l=this.events.renderRequest)==null||l.notify(this.current))},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=xa.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=zce(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new IT);const r=this.events[e].add(n);return e==="change"?()=>{r(),ar.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=xa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>S5)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,S5);return zM(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function iy(t,e){return new Vce(t,e)}const{schedule:KT}=tk(queueMicrotask,!1),Ps={x:!1,y:!1};function Ok(){return Ps.x||Ps.y}function Gce(t){return t==="x"||t==="y"?Ps[t]?null:(Ps[t]=!0,()=>{Ps[t]=!1}):Ps.x||Ps.y?null:(Ps.x=Ps.y=!0,()=>{Ps.x=Ps.y=!1})}function Tk(t,e){const n=Hce(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function C5(t){return!(t.pointerType==="touch"||Ok())}function Wce(t,e,n={}){const[r,i,o]=Tk(t,n),u=l=>{if(!C5(l))return;const{target:d}=l,h=e(d,l);if(typeof h!="function"||!d)return;const g=y=>{C5(y)&&(h(y),d.removeEventListener("pointerleave",g))};d.addEventListener("pointerleave",g,i)};return r.forEach(l=>{l.addEventListener("pointerenter",u,i)}),o}const _k=(t,e)=>e?t===e?!0:_k(t,e.parentElement):!1,YT=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Kce=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Yce(t){return Kce.has(t.tagName)||t.tabIndex!==-1}const Mw=new WeakSet;function $5(t){return e=>{e.key==="Enter"&&t(e)}}function xE(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Jce=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=$5(()=>{if(Mw.has(n))return;xE(n,"down");const i=$5(()=>{xE(n,"up")}),o=()=>xE(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function E5(t){return YT(t)&&!Ok()}function Qce(t,e,n={}){const[r,i,o]=Tk(t,n),u=l=>{const d=l.currentTarget;if(!E5(l))return;Mw.add(d);const h=e(d,l),g=(v,C)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",w),Mw.has(d)&&Mw.delete(d),E5(v)&&typeof h=="function"&&h(v,{success:C})},y=v=>{g(v,d===window||d===document||n.useGlobalTarget||_k(d,v.target))},w=v=>{g(v,!1)};window.addEventListener("pointerup",y,i),window.addEventListener("pointercancel",w,i)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",u,i),VT(l)&&(l.addEventListener("focus",h=>Jce(h,i)),!Yce(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),o}function Ak(t){return qM(t)&&"ownerSVGElement"in t}function Xce(t){return Ak(t)&&t.tagName==="svg"}const Di=t=>!!(t&&t.getVelocity),Zce=[...Ck,Or,Nf],efe=t=>Zce.find(Sk(t)),JT=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class tfe extends T.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=VT(r)&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function nfe({children:t,isPresent:e,anchorX:n}){const r=T.useId(),i=T.useRef(null),o=T.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=T.useContext(JT);return T.useInsertionEffect(()=>{const{width:l,height:d,top:h,left:g,right:y}=o.current;if(e||!i.current||!l||!d)return;const w=n==="left"?`left: ${g}`:`right: ${y}`;i.current.dataset.motionPopId=r;const v=document.createElement("style");return u&&(v.nonce=u),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${l}px !important; @@ -453,4 +453,4 @@ PERFORMANCE OF THIS SOFTWARE. ${w}px !important; top: ${h}px !important; } - `),()=>{document.head.contains(v)&&document.head.removeChild(v)}},[e]),N.jsx(Lce,{isPresent:e,childRef:i,sizeRef:o,children:T.cloneElement(t,{ref:i})})}const jce=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:u,anchorX:l})=>{const d=hT(Bce),h=T.useId();let g=!0,y=T.useMemo(()=>(g=!1,{id:h,initial:e,isPresent:n,custom:i,onExitComplete:w=>{d.set(w,!0);for(const v of d.values())if(!v)return;r&&r()},register:w=>(d.set(w,!1),()=>d.delete(w))}),[n,d,r]);return o&&g&&(y={...y}),T.useMemo(()=>{d.forEach((w,v)=>d.set(v,!1))},[n]),T.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),u==="popLayout"&&(t=N.jsx(Uce,{isPresent:n,anchorX:l,children:t})),N.jsx(GS.Provider,{value:y,children:t})};function Bce(){return new Map}function yk(t=!0){const e=T.useContext(GS);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=T.useId();T.useEffect(()=>{if(t)return i(o)},[t]);const u=T.useCallback(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,u]:[!0]}const aw=t=>t.key||"";function d5(t){const e=[];return T.Children.forEach(t,n=>{T.isValidElement(n)&&e.push(n)}),e}const qce=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:u=!1,anchorX:l="left"})=>{const[d,h]=yk(u),g=T.useMemo(()=>d5(t),[t]),y=u&&!d?[]:g.map(aw),w=T.useRef(!0),v=T.useRef(g),C=hT(()=>new Map),[E,$]=T.useState(g),[O,_]=T.useState(g);TM(()=>{w.current=!1,v.current=g;for(let P=0;P{const L=aw(P),F=u&&!d?!1:g===O||y.includes(L),q=()=>{if(C.has(L))C.set(L,!0);else return;let Y=!0;C.forEach(X=>{X||(Y=!1)}),Y&&(k==null||k(),_(v.current),u&&(h==null||h()),r&&r())};return N.jsx(jce,{isPresent:F,initial:!w.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,onExitComplete:F?void 0:q,anchorX:l,children:P},L)})})},vk=T.createContext({strict:!1}),h5={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Qg={};for(const t in h5)Qg[t]={isEnabled:e=>h5[t].some(n=>!!e[n])};function Hce(t){for(const e in t)Qg[e]={...Qg[e],...t[e]}}const zce=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function cS(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||zce.has(t)}let bk=t=>!cS(t);function Vce(t){typeof t=="function"&&(bk=e=>e.startsWith("on")?!cS(e):t(e))}try{Vce(require("@emotion/is-prop-valid").default)}catch{}function Gce(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(bk(i)||n===!0&&cS(i)||!e&&!cS(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function Wce(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>t(...r);return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const WS=T.createContext({});function KS(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function E1(t){return typeof t=="string"||Array.isArray(t)}const LT=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],UT=["initial",...LT];function YS(t){return KS(t.animate)||UT.some(e=>E1(t[e]))}function wk(t){return!!(YS(t)||t.variants)}function Kce(t,e){if(YS(t)){const{initial:n,animate:r}=t;return{initial:n===!1||E1(n)?n:void 0,animate:E1(r)?r:void 0}}return t.inherit!==!1?e:{}}function Yce(t){const{initial:e,animate:n}=Kce(t,T.useContext(WS));return T.useMemo(()=>({initial:e,animate:n}),[p5(e),p5(n)])}function p5(t){return Array.isArray(t)?t.join(" "):t}const Qce=Symbol.for("motionComponentSymbol");function Ig(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Jce(t,e,n){return T.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Ig(n)&&(n.current=r))},[e])}const jT=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Xce="framerAppearId",Sk="data-"+jT(Xce),Ck=T.createContext({});function Zce(t,e,n,r,i){var E,$;const{visualElement:o}=T.useContext(WS),u=T.useContext(vk),l=T.useContext(GS),d=T.useContext(FT).reducedMotion,h=T.useRef(null);r=r||u.renderer,!h.current&&r&&(h.current=r(t,{visualState:e,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:d}));const g=h.current,y=T.useContext(Ck);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&efe(h.current,n,i,y);const w=T.useRef(!1);T.useInsertionEffect(()=>{g&&w.current&&g.update(n,l)});const v=n[Sk],C=T.useRef(!!v&&!((E=window.MotionHandoffIsComplete)!=null&&E.call(window,v))&&(($=window.MotionHasOptimisedAnimation)==null?void 0:$.call(window,v)));return TM(()=>{g&&(w.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),kT.render(g.render),C.current&&g.animationState&&g.animationState.animateChanges())}),T.useEffect(()=>{g&&(!C.current&&g.animationState&&g.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)==null||O.call(window,v)}),C.current=!1))}),g}function efe(t,e,n,r){const{layoutId:i,layout:o,drag:u,dragConstraints:l,layoutScroll:d,layoutRoot:h,layoutCrossfade:g}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:$k(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!u||l&&Ig(l),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:g,layoutScroll:d,layoutRoot:h})}function $k(t){if(t)return t.options.allowProjection!==!1?t.projection:$k(t.parent)}function tfe({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&Hce(t);function o(l,d){let h;const g={...T.useContext(FT),...l,layoutId:nfe(l)},{isStatic:y}=g,w=Yce(l),v=r(l,y);if(!y&&pT){rfe();const C=ife(g);h=C.MeasureLayout,w.visualElement=Zce(i,v,g,e,C.ProjectionNode)}return N.jsxs(WS.Provider,{value:w,children:[h&&w.visualElement?N.jsx(h,{visualElement:w.visualElement,...g}):null,n(i,l,Jce(v,w.visualElement,d),v,y,w.visualElement)]})}o.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const u=T.forwardRef(o);return u[Qce]=i,u}function nfe({layoutId:t}){const e=T.useContext(dT).id;return e&&t!==void 0?e+"-"+t:t}function rfe(t,e){T.useContext(vk).strict}function ife(t){const{drag:e,layout:n}=Qg;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const x1={};function afe(t){for(const e in t)x1[e]=t[e],CT(e)&&(x1[e].isCSSVariable=!0)}function Ek(t,{layout:e,layoutId:n}){return cy.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!x1[t]||t==="opacity")}const ofe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sfe=ly.length;function ufe(t,e,n){let r="",i=!0;for(let o=0;o({style:{},transform:{},transformOrigin:{},vars:{}});function xk(t,e,n){for(const r in e)!ki(e[r])&&!Ek(r,n)&&(t[r]=e[r])}function lfe({transformTemplate:t},e){return T.useMemo(()=>{const n=qT();return BT(n,e,t),Object.assign({},n.vars,n.style)},[e])}function cfe(t,e){const n=t.style||{},r={};return xk(r,n,t),Object.assign(r,lfe(t,e)),r}function ffe(t,e){const n={},r=cfe(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const dfe={offset:"stroke-dashoffset",array:"stroke-dasharray"},hfe={offset:"strokeDashoffset",array:"strokeDasharray"};function pfe(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?dfe:hfe;t[o.offset]=xt.transform(-r);const u=xt.transform(e),l=xt.transform(n);t[o.array]=`${u} ${l}`}function Ok(t,{attrX:e,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:u=0,...l},d,h,g){if(BT(t,l,h),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:y,style:w}=t;y.transform&&(w.transform=y.transform,delete y.transform),(w.transform||y.transformOrigin)&&(w.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),w.transform&&(w.transformBox=(g==null?void 0:g.transformBox)??"fill-box",delete y.transformBox),e!==void 0&&(y.x=e),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),i!==void 0&&pfe(y,i,o,u,!1)}const Tk=()=>({...qT(),attrs:{}}),_k=t=>typeof t=="string"&&t.toLowerCase()==="svg";function mfe(t,e,n,r){const i=T.useMemo(()=>{const o=Tk();return Ok(o,e,_k(r),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};xk(o,t.style,t),i.style={...o,...i.style}}return i}const gfe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function HT(t){return typeof t!="string"||t.includes("-")?!1:!!(gfe.indexOf(t)>-1||/[A-Z]/u.test(t))}function yfe(t=!1){return(n,r,i,{latestValues:o},u)=>{const d=(HT(n)?mfe:ffe)(r,o,u,n),h=Gce(r,typeof n=="string",t),g=n!==T.Fragment?{...h,...d,ref:i}:{},{children:y}=r,w=T.useMemo(()=>ki(y)?y.get():y,[y]);return T.createElement(n,{...g,children:w})}}function m5(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function zT(t,e,n,r){if(typeof e=="function"){const[i,o]=m5(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=m5(r);e=e(n!==void 0?n:t.custom,i,o)}return e}function Ew(t){return ki(t)?t.get():t}function vfe({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,i){return{latestValues:bfe(n,r,i,t),renderState:e()}}const Ak=t=>(e,n)=>{const r=T.useContext(WS),i=T.useContext(GS),o=()=>vfe(t,e,r,i);return n?o():hT(o)};function bfe(t,e,n,r){const i={},o=r(t,{});for(const w in o)i[w]=Ew(o[w]);let{initial:u,animate:l}=t;const d=YS(t),h=wk(t);e&&h&&!d&&t.inherit!==!1&&(u===void 0&&(u=e.initial),l===void 0&&(l=e.animate));let g=n?n.initial===!1:!1;g=g||u===!1;const y=g?l:u;if(y&&typeof y!="boolean"&&!KS(y)){const w=Array.isArray(y)?y:[y];for(let v=0;vArray.isArray(t);function $fe(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Yg(n))}function Efe(t){return Yx(t)?t[t.length-1]||0:t}function xfe(t,e){const n=O1(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const u in o){const l=Efe(o[u]);$fe(t,u,l)}}function Ofe(t){return!!(ki(t)&&t.add)}function Qx(t,e){const n=t.getValue("willChange");if(Ofe(n))return n.add(e);if(!n&&Pl.WillChange){const r=new Pl.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function Pk(t){return t.props[Sk]}const Tfe=t=>t!==null;function _fe(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(Tfe),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}const Afe={type:"spring",stiffness:500,damping:25,restSpeed:10},Rfe=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Pfe={type:"keyframes",duration:.8},Ife={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Nfe=(t,{keyframes:e})=>e.length>2?Pfe:cy.has(t)?t.startsWith("scale")?Rfe(e[1]):Afe:Ife;function Mfe({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:u,repeatDelay:l,from:d,elapsed:h,...g}){return!!Object.keys(g).length}const GT=(t,e,n,r={},i,o)=>u=>{const l=NT(r,t)||{},d=l.delay||r.delay||0;let{elapsed:h=0}=r;h=h-Tu(d);const g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:w=>{e.set(w),l.onUpdate&&l.onUpdate(w)},onComplete:()=>{u(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:i};Mfe(l)||Object.assign(g,Nfe(t,g)),g.duration&&(g.duration=Tu(g.duration)),g.repeatDelay&&(g.repeatDelay=Tu(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(y=!0)),(Pl.instantAnimations||Pl.skipAnimations)&&(y=!0,g.duration=0,g.delay=0),g.allowFlatten=!l.type&&!l.ease,y&&!o&&e.get()!==void 0){const w=_fe(g.keyframes,l);if(w!==void 0){ir.update(()=>{g.onUpdate(w),g.onComplete()});return}}return l.isSync?new RT(g):new hce(g)};function kfe({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function Ik(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:u,...l}=e;r&&(o=r);const d=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const g in l){const y=t.getValue(g,t.latestValues[g]??null),w=l[g];if(w===void 0||h&&kfe(h,g))continue;const v={delay:n,...NT(o||{},g)},C=y.get();if(C!==void 0&&!y.isAnimating&&!Array.isArray(w)&&w===C&&!v.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const O=Pk(t);if(O){const _=window.MotionHandoffAnimation(O,g,ir);_!==null&&(v.startTime=_,E=!0)}}Qx(t,g),y.start(GT(g,y,w,t.shouldReduceMotion&&sk.has(g)?{type:!1}:v,t,E));const $=y.animation;$&&d.push($)}return u&&Promise.all(d).then(()=>{ir.update(()=>{u&&xfe(t,u)})}),d}function Jx(t,e,n={}){var d;const r=O1(t,e,n.type==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Ik(t,r,n)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(h=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:w}=i;return Dfe(t,e,g+h,y,w,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[h,g]=l==="beforeChildren"?[o,u]:[u,o];return h().then(()=>g())}else return Promise.all([o(),u(n.delay)])}function Dfe(t,e,n=0,r=0,i=1,o){const u=[],l=(t.variantChildren.size-1)*r,d=i===1?(h=0)=>h*r:(h=0)=>l-h*r;return Array.from(t.variantChildren).sort(Ffe).forEach((h,g)=>{h.notify("AnimationStart",e),u.push(Jx(h,e,{...o,delay:n+d(g)}).then(()=>h.notify("AnimationComplete",e)))}),Promise.all(u)}function Ffe(t,e){return t.sortNodePosition(e)}function Lfe(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>Jx(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=Jx(t,e,n);else{const i=typeof e=="function"?O1(t,e,n.custom):e;r=Promise.all(Ik(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}function Nk(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;rPromise.all(e.map(({animation:n,options:r})=>Lfe(t,n,r)))}function Hfe(t){let e=qfe(t),n=g5(),r=!0;const i=d=>(h,g)=>{var w;const y=O1(t,g,d==="exit"?(w=t.presenceContext)==null?void 0:w.custom:void 0);if(y){const{transition:v,transitionEnd:C,...E}=y;h={...h,...E,...C}}return h};function o(d){e=d(t)}function u(d){const{props:h}=t,g=Mk(t.parent)||{},y=[],w=new Set;let v={},C=1/0;for(let $=0;$C&&k,Y=!1;const X=Array.isArray(R)?R:[R];let ue=X.reduce(i(O),{});P===!1&&(ue={});const{prevResolvedValues:me={}}=_,te={...me,...ue},be=V=>{q=!0,w.has(V)&&(Y=!0,w.delete(V)),_.needsAnimating[V]=!0;const H=t.getValue(V);H&&(H.liveStyle=!1)};for(const V in te){const H=ue[V],ie=me[V];if(v.hasOwnProperty(V))continue;let G=!1;Yx(H)&&Yx(ie)?G=!Nk(H,ie):G=H!==ie,G?H!=null?be(V):w.add(V):H!==void 0&&w.has(V)?be(V):_.protectedKeys[V]=!0}_.prevProp=R,_.prevResolvedValues=ue,_.isActive&&(v={...v,...ue}),r&&t.blockInitialAnimation&&(q=!1),q&&(!(L&&F)||Y)&&y.push(...X.map(V=>({animation:V,options:{type:O}})))}if(w.size){const $={};if(typeof h.initial!="boolean"){const O=O1(t,Array.isArray(h.initial)?h.initial[0]:h.initial);O&&O.transition&&($.transition=O.transition)}w.forEach(O=>{const _=t.getBaseTarget(O),R=t.getValue(O);R&&(R.liveStyle=!0),$[O]=_??null}),y.push({animation:$})}let E=!!y.length;return r&&(h.initial===!1||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(E=!1),r=!1,E?e(y):Promise.resolve()}function l(d,h){var y;if(n[d].isActive===h)return Promise.resolve();(y=t.variantChildren)==null||y.forEach(w=>{var v;return(v=w.animationState)==null?void 0:v.setActive(d,h)}),n[d].isActive=h;const g=u(d);for(const w in n)n[w].protectedKeys={};return g}return{animateChanges:u,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=g5(),r=!0}}}function zfe(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Nk(e,t):!1}function hp(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function g5(){return{animate:hp(!0),whileInView:hp(),whileHover:hp(),whileTap:hp(),whileDrag:hp(),whileFocus:hp(),exit:hp()}}class Yf{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Vfe extends Yf{constructor(e){super(e),e.animationState||(e.animationState=Hfe(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();KS(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let Gfe=0;class Wfe extends Yf{constructor(){super(...arguments),this.id=Gfe++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Kfe={animation:{Feature:Vfe},exit:{Feature:Wfe}};function T1(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function W1(t){return{point:{x:t.pageX,y:t.pageY}}}const Yfe=t=>e=>DT(e)&&t(e,W1(e));function U0(t,e,n,r){return T1(t,e,Yfe(n),r)}function kk({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Qfe({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Jfe(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Dk=1e-4,Xfe=1-Dk,Zfe=1+Dk,Fk=.01,ede=0-Fk,tde=0+Fk;function sa(t){return t.max-t.min}function nde(t,e,n){return Math.abs(t-e)<=n}function y5(t,e,n,r=.5){t.origin=r,t.originPoint=rr(e.min,e.max,t.origin),t.scale=sa(n)/sa(e),t.translate=rr(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Xfe&&t.scale<=Zfe||isNaN(t.scale))&&(t.scale=1),(t.translate>=ede&&t.translate<=tde||isNaN(t.translate))&&(t.translate=0)}function j0(t,e,n,r){y5(t.x,e.x,n.x,r?r.originX:void 0),y5(t.y,e.y,n.y,r?r.originY:void 0)}function v5(t,e,n){t.min=n.min+e.min,t.max=t.min+sa(e)}function rde(t,e,n){v5(t.x,e.x,n.x),v5(t.y,e.y,n.y)}function b5(t,e,n){t.min=e.min-n.min,t.max=t.min+sa(e)}function B0(t,e,n){b5(t.x,e.x,n.x),b5(t.y,e.y,n.y)}const w5=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ng=()=>({x:w5(),y:w5()}),S5=()=>({min:0,max:0}),br=()=>({x:S5(),y:S5()});function Io(t){return[t("x"),t("y")]}function hE(t){return t===void 0||t===1}function Xx({scale:t,scaleX:e,scaleY:n}){return!hE(t)||!hE(e)||!hE(n)}function gp(t){return Xx(t)||Lk(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Lk(t){return C5(t.x)||C5(t.y)}function C5(t){return t&&t!=="0%"}function fS(t,e,n){const r=t-n,i=e*r;return n+i}function $5(t,e,n,r,i){return i!==void 0&&(t=fS(t,i,r)),fS(t,n,r)+e}function Zx(t,e=0,n=1,r,i){t.min=$5(t.min,e,n,r,i),t.max=$5(t.max,e,n,r,i)}function Uk(t,{x:e,y:n}){Zx(t.x,e.translate,e.scale,e.originPoint),Zx(t.y,n.translate,n.scale,n.originPoint)}const E5=.999999999999,x5=1.0000000000001;function ide(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,u;for(let l=0;lE5&&(e.x=1),e.yE5&&(e.y=1)}function Mg(t,e){t.min=t.min+e,t.max=t.max+e}function O5(t,e,n,r,i=.5){const o=rr(t.min,t.max,i);Zx(t,e,n,o,r)}function kg(t,e){O5(t.x,e.x,e.scaleX,e.scale,e.originX),O5(t.y,e.y,e.scaleY,e.scale,e.originY)}function jk(t,e){return kk(Jfe(t.getBoundingClientRect(),e))}function ade(t,e,n){const r=jk(t,n),{scroll:i}=e;return i&&(Mg(r.x,i.offset.x),Mg(r.y,i.offset.y)),r}const Bk=({current:t})=>t?t.ownerDocument.defaultView:null,T5=(t,e)=>Math.abs(t-e);function ode(t,e){const n=T5(t.x,e.x),r=T5(t.y,e.y);return Math.sqrt(n**2+r**2)}class qk{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=mE(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,v=ode(y.offset,{x:0,y:0})>=3;if(!w&&!v)return;const{point:C}=y,{timestamp:E}=gi;this.history.push({...C,timestamp:E});const{onStart:$,onMove:O}=this.handlers;w||($&&$(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,y)},this.handlePointerMove=(y,w)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=pE(w,this.transformPagePoint),ir.update(this.updatePoint,!0)},this.handlePointerUp=(y,w)=>{this.end();const{onEnd:v,onSessionEnd:C,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const $=mE(y.type==="pointercancel"?this.lastMoveEventInfo:pE(w,this.transformPagePoint),this.history);this.startEvent&&v&&v(y,$),C&&C(y,$)},!DT(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const u=W1(e),l=pE(u,this.transformPagePoint),{point:d}=l,{timestamp:h}=gi;this.history=[{...d,timestamp:h}];const{onSessionStart:g}=n;g&&g(e,mE(l,this.history)),this.removeListeners=z1(U0(this.contextWindow,"pointermove",this.handlePointerMove),U0(this.contextWindow,"pointerup",this.handlePointerUp),U0(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Rf(this.updatePoint)}}function pE(t,e){return e?{point:e(t.point)}:t}function _5(t,e){return{x:t.x-e.x,y:t.y-e.y}}function mE({point:t},e){return{point:t,delta:_5(t,Hk(e)),offset:_5(t,sde(e)),velocity:ude(e,.1)}}function sde(t){return t[0]}function Hk(t){return t[t.length-1]}function ude(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=Hk(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Tu(e)));)n--;if(!r)return{x:0,y:0};const o=_u(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const u={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function lde(t,{min:e,max:n},r){return e!==void 0&&tn&&(t=r?rr(n,t,r.max):Math.min(t,n)),t}function A5(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function cde(t,{top:e,left:n,bottom:r,right:i}){return{x:A5(t.x,n,i),y:A5(t.y,e,r)}}function R5(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.minr?n=S1(e.min,e.max-r,t.min):r>i&&(n=S1(t.min,t.max-i,e.min)),Rl(0,1,n)}function hde(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const eO=.35;function pde(t=eO){return t===!1?t=0:t===!0&&(t=eO),{x:P5(t,"left","right"),y:P5(t,"top","bottom")}}function P5(t,e,n){return{min:I5(t,e),max:I5(t,n)}}function I5(t,e){return typeof t=="number"?t:t[e]||0}const mde=new WeakMap;class gde{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=br(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(W1(g).point)},o=(g,y)=>{const{drag:w,dragPropagation:v,onDragStart:C}=this.getProps();if(w&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ace(w),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Io($=>{let O=this.getAxisMotionValue($).get()||0;if(Au.test(O)){const{projection:_}=this.visualElement;if(_&&_.layout){const R=_.layout.layoutBox[$];R&&(O=sa(R)*(parseFloat(O)/100))}}this.originPoint[$]=O}),C&&ir.postRender(()=>C(g,y)),Qx(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},u=(g,y)=>{const{dragPropagation:w,dragDirectionLock:v,onDirectionLock:C,onDrag:E}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:$}=y;if(v&&this.currentDirection===null){this.currentDirection=yde($),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",y.point,$),this.updateAxis("y",y.point,$),this.visualElement.render(),E&&E(g,y)},l=(g,y)=>this.stop(g,y),d=()=>Io(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)==null?void 0:y.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new qk(e,{onSessionStart:i,onStart:o,onMove:u,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:Bk(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&ir.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!ow(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let u=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(u=lde(u,this.constraints[e],this.elastic[e])),o.set(u)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&&Ig(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=cde(r.layoutBox,e):this.constraints=!1,this.elastic=pde(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Io(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=hde(r.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Ig(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=ade(r,i.root,this.visualElement.getTransformPagePoint());let u=fde(i.layout.layoutBox,o);if(n){const l=n(Qfe(u));this.hasMutatedConstraints=!!l,l&&(u=kk(l))}return u}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:u,onDragTransitionEnd:l}=this.getProps(),d=this.constraints||{},h=Io(g=>{if(!ow(g,n,this.currentDirection))return;let y=d&&d[g]||{};u&&(y={min:0,max:0});const w=i?200:1e6,v=i?40:1e7,C={type:"inertia",velocity:r?e[g]:0,bounceStiffness:w,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...y};return this.startAxisValueAnimation(g,C)});return Promise.all(h).then(l)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Qx(this.visualElement,e),r.start(GT(e,r,0,n,this.visualElement,!1))}stopAnimation(){Io(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Io(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Io(n=>{const{drag:r}=this.getProps();if(!ow(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:u,max:l}=i.layout.layoutBox[n];o.set(e[n]-rr(u,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ig(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Io(u=>{const l=this.getAxisMotionValue(u);if(l&&this.constraints!==!1){const d=l.get();i[u]=dde({min:d,max:d},this.constraints[u])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Io(u=>{if(!ow(u,e,null))return;const l=this.getAxisMotionValue(u),{min:d,max:h}=this.constraints[u];l.set(rr(d,h,i[u]))})}addListeners(){if(!this.visualElement.current)return;mde.set(this.visualElement,this);const e=this.visualElement.current,n=U0(e,"pointerdown",d=>{const{drag:h,dragListener:g=!0}=this.getProps();h&&g&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();Ig(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ir.read(r);const u=T1(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(Io(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=d[g].translate,y.set(y.get()+d[g].translate))}),this.visualElement.render())}));return()=>{u(),n(),o(),l&&l()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:u=eO,dragMomentum:l=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:u,dragMomentum:l}}}function ow(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function yde(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class vde extends Yf{constructor(e){super(e),this.removeGroupControls=jo,this.removeListeners=jo,this.controls=new gde(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||jo}unmount(){this.removeGroupControls(),this.removeListeners()}}const N5=t=>(e,n)=>{t&&ir.postRender(()=>t(e,n))};class bde extends Yf{constructor(){super(...arguments),this.removePointerDownListener=jo}onPointerDown(e){this.session=new qk(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bk(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:N5(e),onStart:N5(n),onMove:r,onEnd:(o,u)=>{delete this.session,i&&ir.postRender(()=>i(o,u))}}}mount(){this.removePointerDownListener=U0(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const xw={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function M5(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const E0={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(xt.test(t))t=parseFloat(t);else return t;const n=M5(t,e.target.x),r=M5(t,e.target.y);return`${n}% ${r}%`}},wde={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Pf.parse(t);if(i.length>5)return r;const o=Pf.createTransformer(t),u=typeof i[0]!="number"?1:0,l=n.x.scale*e.x,d=n.y.scale*e.y;i[0+u]/=l,i[1+u]/=d;const h=rr(l,d,.5);return typeof i[2+u]=="number"&&(i[2+u]/=h),typeof i[3+u]=="number"&&(i[3+u]/=h),o(i)}};class Sde extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;afe(Cde),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),xw.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:u}=r;return u&&(u.isPresent=o,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?u.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?u.promote():u.relegate()||ir.postRender(()=>{const l=u.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),kT.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function zk(t){const[e,n]=yk(),r=T.useContext(dT);return N.jsx(Sde,{...t,layoutGroup:r,switchLayoutGroup:T.useContext(Ck),isPresent:e,safeToRemove:n})}const Cde={borderRadius:{...E0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:E0,borderTopRightRadius:E0,borderBottomLeftRadius:E0,borderBottomRightRadius:E0,boxShadow:wde};function $de(t,e,n){const r=ki(t)?t:Yg(t);return r.start(GT("",r,e,n)),r.animation}const Ede=(t,e)=>t.depth-e.depth;class xde{constructor(){this.children=[],this.isDirty=!1}add(e){mT(this.children,e),this.isDirty=!0}remove(e){gT(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ede),this.isDirty=!1,this.children.forEach(e)}}function Ode(t,e){const n=xa.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(Rf(r),t(o-e))};return ir.setup(r,!0),()=>Rf(r)}const Vk=["TopLeft","TopRight","BottomLeft","BottomRight"],Tde=Vk.length,k5=t=>typeof t=="string"?parseFloat(t):t,D5=t=>typeof t=="number"||xt.test(t);function _de(t,e,n,r,i,o){i?(t.opacity=rr(0,n.opacity??1,Ade(r)),t.opacityExit=rr(e.opacity??1,0,Rde(r))):o&&(t.opacity=rr(e.opacity??1,n.opacity??1,r));for(let u=0;ure?1:n(S1(t,e,r))}function L5(t,e){t.min=e.min,t.max=e.max}function Ro(t,e){L5(t.x,e.x),L5(t.y,e.y)}function U5(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function j5(t,e,n,r,i){return t-=e,t=fS(t,1/n,r),i!==void 0&&(t=fS(t,1/i,r)),t}function Pde(t,e=0,n=1,r=.5,i,o=t,u=t){if(Au.test(e)&&(e=parseFloat(e),e=rr(u.min,u.max,e/100)-u.min),typeof e!="number")return;let l=rr(o.min,o.max,r);t===o&&(l-=e),t.min=j5(t.min,e,n,l,i),t.max=j5(t.max,e,n,l,i)}function B5(t,e,[n,r,i],o,u){Pde(t,e[n],e[r],e[i],e.scale,o,u)}const Ide=["x","scaleX","originX"],Nde=["y","scaleY","originY"];function q5(t,e,n,r){B5(t.x,e,Ide,n?n.x:void 0,r?r.x:void 0),B5(t.y,e,Nde,n?n.y:void 0,r?r.y:void 0)}function H5(t){return t.translate===0&&t.scale===1}function Wk(t){return H5(t.x)&&H5(t.y)}function z5(t,e){return t.min===e.min&&t.max===e.max}function Mde(t,e){return z5(t.x,e.x)&&z5(t.y,e.y)}function V5(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Kk(t,e){return V5(t.x,e.x)&&V5(t.y,e.y)}function G5(t){return sa(t.x)/sa(t.y)}function W5(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class kde{constructor(){this.members=[]}add(e){mT(this.members,e),e.scheduleRender()}remove(e){if(gT(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Dde(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,u=(n==null?void 0:n.z)||0;if((i||o||u)&&(r=`translate3d(${i}px, ${o}px, ${u}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:h,rotate:g,rotateX:y,rotateY:w,skewX:v,skewY:C}=n;h&&(r=`perspective(${h}px) ${r}`),g&&(r+=`rotate(${g}deg) `),y&&(r+=`rotateX(${y}deg) `),w&&(r+=`rotateY(${w}deg) `),v&&(r+=`skewX(${v}deg) `),C&&(r+=`skewY(${C}deg) `)}const l=t.x.scale*e.x,d=t.y.scale*e.y;return(l!==1||d!==1)&&(r+=`scale(${l}, ${d})`),r||"none"}const gE=["","X","Y","Z"],Fde={visibility:"hidden"},Lde=1e3;let Ude=0;function yE(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function Yk(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Pk(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",ir,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&Yk(r)}function Qk({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(u={},l=e==null?void 0:e()){this.id=Ude++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(qde),this.nodes.forEach(Gde),this.nodes.forEach(Wde),this.nodes.forEach(Hde)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let d=0;dthis.root.updateBlockedByResize=!1;t(u,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=Ode(y,250),xw.hasAnimatedSinceResize&&(xw.hasAnimatedSinceResize=!1,this.nodes.forEach(Q5))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||d)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:y,hasRelativeLayoutChanged:w,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||h.getDefaultTransition()||Xde,{onLayoutAnimationStart:E,onLayoutAnimationComplete:$}=h.getProps(),O=!this.targetLayout||!Kk(this.targetLayout,v),_=!y&&w;if(this.options.layoutRoot||this.resumeFrom||_||y&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...NT(C,"layout"),onPlay:E,onComplete:$};(h.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(g,_)}else y||Q5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Rf(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Kde),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Yk(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!sa(this.snapshot.measuredBox.x)&&!sa(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d{const P=k/1e3;J5(y.x,u.x,P),J5(y.y,u.y,P),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(B0(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Qde(this.relativeTarget,this.relativeTargetOrigin,w,P),R&&Mde(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=br()),Ro(R,this.relativeTarget)),E&&(this.animationValues=g,_de(g,h,this.latestValues,P,_,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var l,d,h;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(h=(d=this.resumingFrom)==null?void 0:d.currentAnimation)==null||h.stop(),this.pendingAnimation&&(Rf(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ir.update(()=>{xw.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Yg(0)),this.currentAnimation=$de(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),u.onUpdate&&u.onUpdate(g)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Lde),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:l,target:d,layout:h,latestValues:g}=u;if(!(!l||!d||!h)){if(this!==u&&this.layout&&h&&Jk(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||br();const y=sa(this.layout.layoutBox.x);d.x.min=u.target.x.min,d.x.max=d.x.min+y;const w=sa(this.layout.layoutBox.y);d.y.min=u.target.y.min,d.y.max=d.y.min+w}Ro(l,d),kg(l,g),j0(this.projectionDeltaWithTransform,this.layoutCorrected,l,g)}}registerSharedNode(u,l){this.sharedNodes.has(u)||this.sharedNodes.set(u,new kde),this.sharedNodes.get(u).add(l);const h=l.options.initialPromotionConfig;l.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(l):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var l;const{layoutId:u}=this.options;return u?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:u}=this.options;return u?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:l,preserveFollowOpacity:d}={}){const h=this.getStack();h&&h.promote(this,d),u&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let l=!1;const{latestValues:d}=u;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(l=!0),!l)return;const h={};d.z&&yE("z",u,h,this.animationValues);for(let g=0;g{var l;return(l=u.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(K5),this.root.sharedNodes.clear()}}}function jde(t){t.updateLayout()}function Bde(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,u=e.source!==t.layout.source;o==="size"?Io(y=>{const w=u?e.measuredBox[y]:e.layoutBox[y],v=sa(w);w.min=r[y].min,w.max=w.min+v}):Jk(o,e.layoutBox,r)&&Io(y=>{const w=u?e.measuredBox[y]:e.layoutBox[y],v=sa(r[y]);w.max=w.min+v,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+v)});const l=Ng();j0(l,r,e.layoutBox);const d=Ng();u?j0(d,t.applyTransform(i,!0),e.measuredBox):j0(d,r,e.layoutBox);const h=!Wk(l);let g=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:w,layout:v}=y;if(w&&v){const C=br();B0(C,e.layoutBox,w.layoutBox);const E=br();B0(E,r,v.layoutBox),Kk(C,E)||(g=!0),y.options.layoutRoot&&(t.relativeTarget=E,t.relativeTargetOrigin=C,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:d,layoutDelta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:g})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function qde(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Hde(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function zde(t){t.clearSnapshot()}function K5(t){t.clearMeasurements()}function Y5(t){t.isLayoutDirty=!1}function Vde(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Q5(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Gde(t){t.resolveTargetDelta()}function Wde(t){t.calcProjection()}function Kde(t){t.resetSkewAndRotation()}function Yde(t){t.removeLeadSnapshot()}function J5(t,e,n){t.translate=rr(e.translate,0,n),t.scale=rr(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function X5(t,e,n,r){t.min=rr(e.min,n.min,r),t.max=rr(e.max,n.max,r)}function Qde(t,e,n,r){X5(t.x,e.x,n.x,r),X5(t.y,e.y,n.y,r)}function Jde(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Xde={duration:.45,ease:[.4,0,.1,1]},Z5=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),e9=Z5("applewebkit/")&&!Z5("chrome/")?Math.round:jo;function t9(t){t.min=e9(t.min),t.max=e9(t.max)}function Zde(t){t9(t.x),t9(t.y)}function Jk(t,e,n){return t==="position"||t==="preserve-aspect"&&!nde(G5(e),G5(n),.2)}function ehe(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const the=Qk({attachResizeListener:(t,e)=>T1(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),vE={current:void 0},Xk=Qk({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!vE.current){const t=new the({});t.mount(window),t.setOptions({layoutScroll:!0}),vE.current=t}return vE.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),nhe={pan:{Feature:bde},drag:{Feature:vde,ProjectionNode:Xk,MeasureLayout:zk}};function n9(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&ir.postRender(()=>o(e,W1(e)))}class rhe extends Yf{mount(){const{current:e}=this.node;e&&(this.unmount=Rce(e,(n,r)=>(n9(this.node,r,"Start"),i=>n9(this.node,i,"End"))))}unmount(){}}class ihe extends Yf{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=z1(T1(this.node.current,"focus",()=>this.onFocus()),T1(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function r9(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&ir.postRender(()=>o(e,W1(e)))}class ahe extends Yf{mount(){const{current:e}=this.node;e&&(this.unmount=Mce(e,(n,r)=>(r9(this.node,r,"Start"),(i,{success:o})=>r9(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const tO=new WeakMap,bE=new WeakMap,ohe=t=>{const e=tO.get(t.target);e&&e(t)},she=t=>{t.forEach(ohe)};function uhe({root:t,...e}){const n=t||document;bE.has(n)||bE.set(n,{});const r=bE.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(she,{root:t,...e})),r[i]}function lhe(t,e,n){const r=uhe(e);return tO.set(t,n),r.observe(t),()=>{tO.delete(t),r.unobserve(t)}}const che={some:0,all:1};class fhe extends Yf{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,u={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:che[i]},l=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,o&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:g,onViewportLeave:y}=this.node.getProps(),w=h?g:y;w&&w(d)};return lhe(this.node.current,u,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(dhe(e,n))&&this.startObserver()}unmount(){}}function dhe({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const hhe={inView:{Feature:fhe},tap:{Feature:ahe},focus:{Feature:ihe},hover:{Feature:rhe}},phe={layout:{ProjectionNode:Xk,MeasureLayout:zk}},nO={current:null},Zk={current:!1};function mhe(){if(Zk.current=!0,!!pT)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nO.current=t.matches;t.addListener(e),e()}else nO.current=!1}const ghe=new WeakMap;function yhe(t,e,n){for(const r in e){const i=e[r],o=n[r];if(ki(i))t.addValue(r,i);else if(ki(o))t.addValue(r,Yg(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const u=t.getValue(r);u.liveStyle===!0?u.jump(i):u.hasAnimated||u.set(i)}else{const u=t.getStaticValue(r);t.addValue(r,Yg(u!==void 0?u:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const i9=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class vhe{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:u},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=PT,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=xa.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Zk.current||mhe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:nO.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Rf(this.notifyUpdate),Rf(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=cy.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",l=>{this.latestValues[e]=l,this.props.onUpdate&&ir.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),u&&u(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Qg){const n=Qg[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):br()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Yg(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(_M(r)||RM(r))?r=parseFloat(r):!Fce(r)&&Pf.test(n)&&(r=fk(e,n)),this.setBaseTarget(e,ki(r)?r.get():r)),ki(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const u=zT(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);u&&(r=u[e])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!ki(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new bT),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class eD extends vhe{constructor(){super(...arguments),this.KeyframeResolver=xce}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ki(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function tD(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}function bhe(t){return window.getComputedStyle(t)}class whe extends eD{constructor(){super(...arguments),this.type="html",this.renderInstance=tD}readValueFromInstance(e,n){var r;if(cy.has(n))return(r=this.projection)!=null&&r.isProjecting?Hx(n):zle(e,n);{const i=bhe(e),o=(CT(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return jk(e,n)}build(e,n,r){BT(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return VT(e,n,r)}}const nD=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function She(t,e,n,r){tD(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(nD.has(i)?i:jT(i),e.attrs[i])}class Che extends eD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=br}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(cy.has(n)){const r=ck(n);return r&&r.default||0}return n=nD.has(n)?n:jT(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return Rk(e,n,r)}build(e,n,r){Ok(e,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,n,r,i){She(e,n,r,i)}mount(e){this.isSVGTag=_k(e.tagName),super.mount(e)}}const $he=(t,e)=>HT(t)?new Che(e):new whe(e,{allowProjection:t!==T.Fragment}),Ehe=Cfe({...Kfe,...hhe,...nhe,...phe},$he),xhe=Wce(Ehe),Ohe={initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"100%",opacity:0}};function The({children:t}){var r;const e=kl();return((r=e.state)==null?void 0:r.animated)?N.jsx(qce,{mode:"wait",children:N.jsx(xhe.div,{variants:Ohe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.15},style:{width:"100%"},children:t},e.pathname)}):N.jsx(N.Fragment,{children:t})}function _he(){return N.jsxs(N.Fragment,{children:[N.jsxs(mn,{path:"selfservice",children:[N.jsx(mn,{path:"welcome",element:N.jsx(mJ,{})}),N.jsx(mn,{path:"email",element:N.jsx(BR,{method:Ja.Email})}),N.jsx(mn,{path:"phone",element:N.jsx(BR,{method:Ja.Phone})}),N.jsx(mn,{path:"totp-setup",element:N.jsx(nX,{})}),N.jsx(mn,{path:"totp-enter",element:N.jsx(aX,{})}),N.jsx(mn,{path:"complete",element:N.jsx(gX,{})}),N.jsx(mn,{path:"password",element:N.jsx($X,{})}),N.jsx(mn,{path:"otp",element:N.jsx(RX,{})})]}),N.jsx(mn,{path:"*",element:N.jsx(jE,{to:"/en/selfservice/welcome",replace:!0})})]})}function Ahe(){const t=Ise(),e=Jse(),n=uue(),r=jue();return N.jsxs(mn,{path:"selfservice",children:[N.jsx(mn,{path:"passports",element:N.jsx(nG,{})}),N.jsx(mn,{path:"change-password/:uniqueId",element:N.jsx(iJ,{})}),t,e,n,r,N.jsx(mn,{path:"",element:N.jsx(The,{children:N.jsx(Bue,{})})})]})}const a9=Vz;function Rhe(){const t=T.useRef(LV),e=T.useRef(new hF);return N.jsx(wF,{client:e.current,children:N.jsx(GH,{mockServer:t,config:{},prefix:"",queryClient:e.current,children:N.jsx(Phe,{})})})}function Phe(){const t=_he(),e=Ahe(),{session:n,checked:r}=WV();return N.jsx(N.Fragment,{children:!n&&r?N.jsx(a9,{children:N.jsxs($_,{children:[N.jsx(mn,{path:":locale",children:t}),N.jsx(mn,{path:"*",element:N.jsx(jE,{to:"/en/selftservice",replace:!0})})]})}):N.jsx(a9,{children:N.jsxs($_,{children:[N.jsx(mn,{path:":locale",children:e}),N.jsx(mn,{path:"*",element:N.jsx(jE,{to:"/en/selfservice/passports",replace:!0})})]})})})}const Ihe=GD.createRoot(document.getElementById("root"));Ihe.render(N.jsx(Ae.StrictMode,{children:N.jsx(Rhe,{})}))});export default Nhe(); + `),()=>{document.head.contains(v)&&document.head.removeChild(v)}},[e]),N.jsx(tfe,{isPresent:e,childRef:i,sizeRef:o,children:T.cloneElement(t,{ref:i})})}const rfe=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:u,anchorX:l})=>{const d=OT(ife),h=T.useId();let g=!0,y=T.useMemo(()=>(g=!1,{id:h,initial:e,isPresent:n,custom:i,onExitComplete:w=>{d.set(w,!0);for(const v of d.values())if(!v)return;r&&r()},register:w=>(d.set(w,!1),()=>d.delete(w))}),[n,d,r]);return o&&g&&(y={...y}),T.useMemo(()=>{d.forEach((w,v)=>d.set(v,!1))},[n]),T.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),u==="popLayout"&&(t=N.jsx(nfe,{isPresent:n,anchorX:l,children:t})),N.jsx(r3.Provider,{value:y,children:t})};function ife(){return new Map}function Rk(t=!0){const e=T.useContext(r3);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=T.useId();T.useEffect(()=>{if(t)return i(o)},[t]);const u=T.useCallback(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,u]:[!0]}const gw=t=>t.key||"";function x5(t){const e=[];return T.Children.forEach(t,n=>{T.isValidElement(n)&&e.push(n)}),e}const afe=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:u=!1,anchorX:l="left"})=>{const[d,h]=Rk(u),g=T.useMemo(()=>x5(t),[t]),y=u&&!d?[]:g.map(gw),w=T.useRef(!0),v=T.useRef(g),C=OT(()=>new Map),[E,$]=T.useState(g),[O,_]=T.useState(g);jM(()=>{w.current=!1,v.current=g;for(let P=0;P{const L=gw(P),F=u&&!d?!1:g===O||y.includes(L),q=()=>{if(C.has(L))C.set(L,!0);else return;let Y=!0;C.forEach(X=>{X||(Y=!1)}),Y&&(k==null||k(),_(v.current),u&&(h==null||h()),r&&r())};return N.jsx(rfe,{isPresent:F,initial:!w.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,onExitComplete:F?void 0:q,anchorX:l,children:P},L)})})},Pk=T.createContext({strict:!1}),O5={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ay={};for(const t in O5)ay[t]={isEnabled:e=>O5[t].some(n=>!!e[n])};function ofe(t){for(const e in t)ay[e]={...ay[e],...t[e]}}const sfe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function SS(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||sfe.has(t)}let Ik=t=>!SS(t);function ufe(t){typeof t=="function"&&(Ik=e=>e.startsWith("on")?!SS(e):t(e))}try{ufe(require("@emotion/is-prop-valid").default)}catch{}function lfe(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(Ik(i)||n===!0&&SS(i)||!e&&!SS(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function cfe(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>t(...r);return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const i3=T.createContext({});function a3(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function k1(t){return typeof t=="string"||Array.isArray(t)}const QT=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],XT=["initial",...QT];function o3(t){return a3(t.animate)||XT.some(e=>k1(t[e]))}function Nk(t){return!!(o3(t)||t.variants)}function ffe(t,e){if(o3(t)){const{initial:n,animate:r}=t;return{initial:n===!1||k1(n)?n:void 0,animate:k1(r)?r:void 0}}return t.inherit!==!1?e:{}}function dfe(t){const{initial:e,animate:n}=ffe(t,T.useContext(i3));return T.useMemo(()=>({initial:e,animate:n}),[T5(e),T5(n)])}function T5(t){return Array.isArray(t)?t.join(" "):t}const hfe=Symbol.for("motionComponentSymbol");function Bg(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function pfe(t,e,n){return T.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Bg(n)&&(n.current=r))},[e])}const ZT=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),mfe="framerAppearId",Mk="data-"+ZT(mfe),kk=T.createContext({});function gfe(t,e,n,r,i){var E,$;const{visualElement:o}=T.useContext(i3),u=T.useContext(Pk),l=T.useContext(r3),d=T.useContext(JT).reducedMotion,h=T.useRef(null);r=r||u.renderer,!h.current&&r&&(h.current=r(t,{visualState:e,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:d}));const g=h.current,y=T.useContext(kk);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&yfe(h.current,n,i,y);const w=T.useRef(!1);T.useInsertionEffect(()=>{g&&w.current&&g.update(n,l)});const v=n[Mk],C=T.useRef(!!v&&!((E=window.MotionHandoffIsComplete)!=null&&E.call(window,v))&&(($=window.MotionHasOptimisedAnimation)==null?void 0:$.call(window,v)));return jM(()=>{g&&(w.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),KT.render(g.render),C.current&&g.animationState&&g.animationState.animateChanges())}),T.useEffect(()=>{g&&(!C.current&&g.animationState&&g.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)==null||O.call(window,v)}),C.current=!1))}),g}function yfe(t,e,n,r){const{layoutId:i,layout:o,drag:u,dragConstraints:l,layoutScroll:d,layoutRoot:h,layoutCrossfade:g}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Dk(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!u||l&&Bg(l),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:g,layoutScroll:d,layoutRoot:h})}function Dk(t){if(t)return t.options.allowProjection!==!1?t.projection:Dk(t.parent)}function vfe({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&ofe(t);function o(l,d){let h;const g={...T.useContext(JT),...l,layoutId:bfe(l)},{isStatic:y}=g,w=dfe(l),v=r(l,y);if(!y&&TT){wfe();const C=Sfe(g);h=C.MeasureLayout,w.visualElement=gfe(i,v,g,e,C.ProjectionNode)}return N.jsxs(i3.Provider,{value:w,children:[h&&w.visualElement?N.jsx(h,{visualElement:w.visualElement,...g}):null,n(i,l,pfe(v,w.visualElement,d),v,y,w.visualElement)]})}o.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const u=T.forwardRef(o);return u[hfe]=i,u}function bfe({layoutId:t}){const e=T.useContext(xT).id;return e&&t!==void 0?e+"-"+t:t}function wfe(t,e){T.useContext(Pk).strict}function Sfe(t){const{drag:e,layout:n}=ay;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const D1={};function Cfe(t){for(const e in t)D1[e]=t[e],kT(e)&&(D1[e].isCSSVariable=!0)}function Fk(t,{layout:e,layoutId:n}){return by.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!D1[t]||t==="opacity")}const $fe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Efe=vy.length;function xfe(t,e,n){let r="",i=!0;for(let o=0;o({style:{},transform:{},transformOrigin:{},vars:{}});function Lk(t,e,n){for(const r in e)!Di(e[r])&&!Fk(r,n)&&(t[r]=e[r])}function Ofe({transformTemplate:t},e){return T.useMemo(()=>{const n=t4();return e4(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Tfe(t,e){const n=t.style||{},r={};return Lk(r,n,t),Object.assign(r,Ofe(t,e)),r}function _fe(t,e){const n={},r=Tfe(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const Afe={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rfe={offset:"strokeDashoffset",array:"strokeDasharray"};function Pfe(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?Afe:Rfe;t[o.offset]=xt.transform(-r);const u=xt.transform(e),l=xt.transform(n);t[o.array]=`${u} ${l}`}function Uk(t,{attrX:e,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:u=0,...l},d,h,g){if(e4(t,l,h),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:y,style:w}=t;y.transform&&(w.transform=y.transform,delete y.transform),(w.transform||y.transformOrigin)&&(w.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),w.transform&&(w.transformBox=(g==null?void 0:g.transformBox)??"fill-box",delete y.transformBox),e!==void 0&&(y.x=e),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),i!==void 0&&Pfe(y,i,o,u,!1)}const jk=()=>({...t4(),attrs:{}}),Bk=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ife(t,e,n,r){const i=T.useMemo(()=>{const o=jk();return Uk(o,e,Bk(r),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Lk(o,t.style,t),i.style={...o,...i.style}}return i}const Nfe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function n4(t){return typeof t!="string"||t.includes("-")?!1:!!(Nfe.indexOf(t)>-1||/[A-Z]/u.test(t))}function Mfe(t=!1){return(n,r,i,{latestValues:o},u)=>{const d=(n4(n)?Ife:_fe)(r,o,u,n),h=lfe(r,typeof n=="string",t),g=n!==T.Fragment?{...h,...d,ref:i}:{},{children:y}=r,w=T.useMemo(()=>Di(y)?y.get():y,[y]);return T.createElement(n,{...g,children:w})}}function _5(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function r4(t,e,n,r){if(typeof e=="function"){const[i,o]=_5(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=_5(r);e=e(n!==void 0?n:t.custom,i,o)}return e}function kw(t){return Di(t)?t.get():t}function kfe({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,i){return{latestValues:Dfe(n,r,i,t),renderState:e()}}const qk=t=>(e,n)=>{const r=T.useContext(i3),i=T.useContext(r3),o=()=>kfe(t,e,r,i);return n?o():OT(o)};function Dfe(t,e,n,r){const i={},o=r(t,{});for(const w in o)i[w]=kw(o[w]);let{initial:u,animate:l}=t;const d=o3(t),h=Nk(t);e&&h&&!d&&t.inherit!==!1&&(u===void 0&&(u=e.initial),l===void 0&&(l=e.animate));let g=n?n.initial===!1:!1;g=g||u===!1;const y=g?l:u;if(y&&typeof y!="boolean"&&!a3(y)){const w=Array.isArray(y)?y:[y];for(let v=0;vArray.isArray(t);function jfe(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,iy(n))}function Bfe(t){return uO(t)?t[t.length-1]||0:t}function qfe(t,e){const n=F1(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const u in o){const l=Bfe(o[u]);jfe(t,u,l)}}function Hfe(t){return!!(Di(t)&&t.add)}function lO(t,e){const n=t.getValue("willChange");if(Hfe(n))return n.add(e);if(!n&&Ml.WillChange){const r=new Ml.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function zk(t){return t.props[Mk]}const zfe=t=>t!==null;function Vfe(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(zfe),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}const Gfe={type:"spring",stiffness:500,damping:25,restSpeed:10},Wfe=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Kfe={type:"keyframes",duration:.8},Yfe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Jfe=(t,{keyframes:e})=>e.length>2?Kfe:by.has(t)?t.startsWith("scale")?Wfe(e[1]):Gfe:Yfe;function Qfe({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:u,repeatDelay:l,from:d,elapsed:h,...g}){return!!Object.keys(g).length}const a4=(t,e,n,r={},i,o)=>u=>{const l=GT(r,t)||{},d=l.delay||r.delay||0;let{elapsed:h=0}=r;h=h-Tu(d);const g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:w=>{e.set(w),l.onUpdate&&l.onUpdate(w)},onComplete:()=>{u(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:i};Qfe(l)||Object.assign(g,Jfe(t,g)),g.duration&&(g.duration=Tu(g.duration)),g.repeatDelay&&(g.repeatDelay=Tu(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let y=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(y=!0)),(Ml.instantAnimations||Ml.skipAnimations)&&(y=!0,g.duration=0,g.delay=0),g.allowFlatten=!l.type&&!l.ease,y&&!o&&e.get()!==void 0){const w=Vfe(g.keyframes,l);if(w!==void 0){ar.update(()=>{g.onUpdate(w),g.onComplete()});return}}return l.isSync?new HT(g):new Rce(g)};function Xfe({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function Vk(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:u,...l}=e;r&&(o=r);const d=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const g in l){const y=t.getValue(g,t.latestValues[g]??null),w=l[g];if(w===void 0||h&&Xfe(h,g))continue;const v={delay:n,...GT(o||{},g)},C=y.get();if(C!==void 0&&!y.isAnimating&&!Array.isArray(w)&&w===C&&!v.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const O=zk(t);if(O){const _=window.MotionHandoffAnimation(O,g,ar);_!==null&&(v.startTime=_,E=!0)}}lO(t,g),y.start(a4(g,y,w,t.shouldReduceMotion&&wk.has(g)?{type:!1}:v,t,E));const $=y.animation;$&&d.push($)}return u&&Promise.all(d).then(()=>{ar.update(()=>{u&&qfe(t,u)})}),d}function cO(t,e,n={}){var d;const r=F1(t,e,n.type==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Vk(t,r,n)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(h=0)=>{const{delayChildren:g=0,staggerChildren:y,staggerDirection:w}=i;return Zfe(t,e,g+h,y,w,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[h,g]=l==="beforeChildren"?[o,u]:[u,o];return h().then(()=>g())}else return Promise.all([o(),u(n.delay)])}function Zfe(t,e,n=0,r=0,i=1,o){const u=[],l=(t.variantChildren.size-1)*r,d=i===1?(h=0)=>h*r:(h=0)=>l-h*r;return Array.from(t.variantChildren).sort(ede).forEach((h,g)=>{h.notify("AnimationStart",e),u.push(cO(h,e,{...o,delay:n+d(g)}).then(()=>h.notify("AnimationComplete",e)))}),Promise.all(u)}function ede(t,e){return t.sortNodePosition(e)}function tde(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>cO(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=cO(t,e,n);else{const i=typeof e=="function"?F1(t,e,n.custom):e;r=Promise.all(Vk(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}function Gk(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;rPromise.all(e.map(({animation:n,options:r})=>tde(t,n,r)))}function ode(t){let e=ade(t),n=A5(),r=!0;const i=d=>(h,g)=>{var w;const y=F1(t,g,d==="exit"?(w=t.presenceContext)==null?void 0:w.custom:void 0);if(y){const{transition:v,transitionEnd:C,...E}=y;h={...h,...E,...C}}return h};function o(d){e=d(t)}function u(d){const{props:h}=t,g=Wk(t.parent)||{},y=[],w=new Set;let v={},C=1/0;for(let $=0;$C&&k,Y=!1;const X=Array.isArray(R)?R:[R];let ue=X.reduce(i(O),{});P===!1&&(ue={});const{prevResolvedValues:me={}}=_,te={...me,...ue},be=V=>{q=!0,w.has(V)&&(Y=!0,w.delete(V)),_.needsAnimating[V]=!0;const H=t.getValue(V);H&&(H.liveStyle=!1)};for(const V in te){const H=ue[V],ie=me[V];if(v.hasOwnProperty(V))continue;let G=!1;uO(H)&&uO(ie)?G=!Gk(H,ie):G=H!==ie,G?H!=null?be(V):w.add(V):H!==void 0&&w.has(V)?be(V):_.protectedKeys[V]=!0}_.prevProp=R,_.prevResolvedValues=ue,_.isActive&&(v={...v,...ue}),r&&t.blockInitialAnimation&&(q=!1),q&&(!(L&&F)||Y)&&y.push(...X.map(V=>({animation:V,options:{type:O}})))}if(w.size){const $={};if(typeof h.initial!="boolean"){const O=F1(t,Array.isArray(h.initial)?h.initial[0]:h.initial);O&&O.transition&&($.transition=O.transition)}w.forEach(O=>{const _=t.getBaseTarget(O),R=t.getValue(O);R&&(R.liveStyle=!0),$[O]=_??null}),y.push({animation:$})}let E=!!y.length;return r&&(h.initial===!1||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(E=!1),r=!1,E?e(y):Promise.resolve()}function l(d,h){var y;if(n[d].isActive===h)return Promise.resolve();(y=t.variantChildren)==null||y.forEach(w=>{var v;return(v=w.animationState)==null?void 0:v.setActive(d,h)}),n[d].isActive=h;const g=u(d);for(const w in n)n[w].protectedKeys={};return g}return{animateChanges:u,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=A5(),r=!0}}}function sde(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Gk(e,t):!1}function bp(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function A5(){return{animate:bp(!0),whileInView:bp(),whileHover:bp(),whileTap:bp(),whileDrag:bp(),whileFocus:bp(),exit:bp()}}class Xf{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ude extends Xf{constructor(e){super(e),e.animationState||(e.animationState=ode(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();a3(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let lde=0;class cde extends Xf{constructor(){super(...arguments),this.id=lde++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const fde={animation:{Feature:ude},exit:{Feature:cde}};function L1(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function ib(t){return{point:{x:t.pageX,y:t.pageY}}}const dde=t=>e=>YT(e)&&t(e,ib(e));function Y0(t,e,n,r){return L1(t,e,dde(n),r)}function Kk({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function hde({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function pde(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Yk=1e-4,mde=1-Yk,gde=1+Yk,Jk=.01,yde=0-Jk,vde=0+Jk;function ua(t){return t.max-t.min}function bde(t,e,n){return Math.abs(t-e)<=n}function R5(t,e,n,r=.5){t.origin=r,t.originPoint=ir(e.min,e.max,t.origin),t.scale=ua(n)/ua(e),t.translate=ir(n.min,n.max,t.origin)-t.originPoint,(t.scale>=mde&&t.scale<=gde||isNaN(t.scale))&&(t.scale=1),(t.translate>=yde&&t.translate<=vde||isNaN(t.translate))&&(t.translate=0)}function J0(t,e,n,r){R5(t.x,e.x,n.x,r?r.originX:void 0),R5(t.y,e.y,n.y,r?r.originY:void 0)}function P5(t,e,n){t.min=n.min+e.min,t.max=t.min+ua(e)}function wde(t,e,n){P5(t.x,e.x,n.x),P5(t.y,e.y,n.y)}function I5(t,e,n){t.min=e.min-n.min,t.max=t.min+ua(e)}function Q0(t,e,n){I5(t.x,e.x,n.x),I5(t.y,e.y,n.y)}const N5=()=>({translate:0,scale:1,origin:0,originPoint:0}),qg=()=>({x:N5(),y:N5()}),M5=()=>({min:0,max:0}),br=()=>({x:M5(),y:M5()});function Fo(t){return[t("x"),t("y")]}function OE(t){return t===void 0||t===1}function fO({scale:t,scaleX:e,scaleY:n}){return!OE(t)||!OE(e)||!OE(n)}function Cp(t){return fO(t)||Qk(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Qk(t){return k5(t.x)||k5(t.y)}function k5(t){return t&&t!=="0%"}function CS(t,e,n){const r=t-n,i=e*r;return n+i}function D5(t,e,n,r,i){return i!==void 0&&(t=CS(t,i,r)),CS(t,n,r)+e}function dO(t,e=0,n=1,r,i){t.min=D5(t.min,e,n,r,i),t.max=D5(t.max,e,n,r,i)}function Xk(t,{x:e,y:n}){dO(t.x,e.translate,e.scale,e.originPoint),dO(t.y,n.translate,n.scale,n.originPoint)}const F5=.999999999999,L5=1.0000000000001;function Sde(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,u;for(let l=0;lF5&&(e.x=1),e.yF5&&(e.y=1)}function Hg(t,e){t.min=t.min+e,t.max=t.max+e}function U5(t,e,n,r,i=.5){const o=ir(t.min,t.max,i);dO(t,e,n,o,r)}function zg(t,e){U5(t.x,e.x,e.scaleX,e.scale,e.originX),U5(t.y,e.y,e.scaleY,e.scale,e.originY)}function Zk(t,e){return Kk(pde(t.getBoundingClientRect(),e))}function Cde(t,e,n){const r=Zk(t,n),{scroll:i}=e;return i&&(Hg(r.x,i.offset.x),Hg(r.y,i.offset.y)),r}const eD=({current:t})=>t?t.ownerDocument.defaultView:null,j5=(t,e)=>Math.abs(t-e);function $de(t,e){const n=j5(t.x,e.x),r=j5(t.y,e.y);return Math.sqrt(n**2+r**2)}class tD{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=_E(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,v=$de(y.offset,{x:0,y:0})>=3;if(!w&&!v)return;const{point:C}=y,{timestamp:E}=gi;this.history.push({...C,timestamp:E});const{onStart:$,onMove:O}=this.handlers;w||($&&$(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,y)},this.handlePointerMove=(y,w)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=TE(w,this.transformPagePoint),ar.update(this.updatePoint,!0)},this.handlePointerUp=(y,w)=>{this.end();const{onEnd:v,onSessionEnd:C,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const $=_E(y.type==="pointercancel"?this.lastMoveEventInfo:TE(w,this.transformPagePoint),this.history);this.startEvent&&v&&v(y,$),C&&C(y,$)},!YT(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const u=ib(e),l=TE(u,this.transformPagePoint),{point:d}=l,{timestamp:h}=gi;this.history=[{...d,timestamp:h}];const{onSessionStart:g}=n;g&&g(e,_E(l,this.history)),this.removeListeners=tb(Y0(this.contextWindow,"pointermove",this.handlePointerMove),Y0(this.contextWindow,"pointerup",this.handlePointerUp),Y0(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),If(this.updatePoint)}}function TE(t,e){return e?{point:e(t.point)}:t}function B5(t,e){return{x:t.x-e.x,y:t.y-e.y}}function _E({point:t},e){return{point:t,delta:B5(t,nD(e)),offset:B5(t,Ede(e)),velocity:xde(e,.1)}}function Ede(t){return t[0]}function nD(t){return t[t.length-1]}function xde(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=nD(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Tu(e)));)n--;if(!r)return{x:0,y:0};const o=_u(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const u={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function Ode(t,{min:e,max:n},r){return e!==void 0&&tn&&(t=r?ir(n,t,r.max):Math.min(t,n)),t}function q5(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Tde(t,{top:e,left:n,bottom:r,right:i}){return{x:q5(t.x,n,i),y:q5(t.y,e,r)}}function H5(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.minr?n=I1(e.min,e.max-r,t.min):r>i&&(n=I1(t.min,t.max-i,e.min)),Nl(0,1,n)}function Rde(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const hO=.35;function Pde(t=hO){return t===!1?t=0:t===!0&&(t=hO),{x:z5(t,"left","right"),y:z5(t,"top","bottom")}}function z5(t,e,n){return{min:V5(t,e),max:V5(t,n)}}function V5(t,e){return typeof t=="number"?t:t[e]||0}const Ide=new WeakMap;class Nde{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=br(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=g=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ib(g).point)},o=(g,y)=>{const{drag:w,dragPropagation:v,onDragStart:C}=this.getProps();if(w&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Gce(w),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Fo($=>{let O=this.getAxisMotionValue($).get()||0;if(Au.test(O)){const{projection:_}=this.visualElement;if(_&&_.layout){const R=_.layout.layoutBox[$];R&&(O=ua(R)*(parseFloat(O)/100))}}this.originPoint[$]=O}),C&&ar.postRender(()=>C(g,y)),lO(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},u=(g,y)=>{const{dragPropagation:w,dragDirectionLock:v,onDirectionLock:C,onDrag:E}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:$}=y;if(v&&this.currentDirection===null){this.currentDirection=Mde($),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",y.point,$),this.updateAxis("y",y.point,$),this.visualElement.render(),E&&E(g,y)},l=(g,y)=>this.stop(g,y),d=()=>Fo(g=>{var y;return this.getAnimationState(g)==="paused"&&((y=this.getAxisMotionValue(g).animation)==null?void 0:y.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new tD(e,{onSessionStart:i,onStart:o,onMove:u,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:eD(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&ar.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!yw(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let u=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(u=Ode(u,this.constraints[e],this.elastic[e])),o.set(u)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&&Bg(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=Tde(r.layoutBox,e):this.constraints=!1,this.elastic=Pde(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Fo(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=Rde(r.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Bg(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Cde(r,i.root,this.visualElement.getTransformPagePoint());let u=_de(i.layout.layoutBox,o);if(n){const l=n(hde(u));this.hasMutatedConstraints=!!l,l&&(u=Kk(l))}return u}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:u,onDragTransitionEnd:l}=this.getProps(),d=this.constraints||{},h=Fo(g=>{if(!yw(g,n,this.currentDirection))return;let y=d&&d[g]||{};u&&(y={min:0,max:0});const w=i?200:1e6,v=i?40:1e7,C={type:"inertia",velocity:r?e[g]:0,bounceStiffness:w,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...y};return this.startAxisValueAnimation(g,C)});return Promise.all(h).then(l)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return lO(this.visualElement,e),r.start(a4(e,r,0,n,this.visualElement,!1))}stopAnimation(){Fo(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Fo(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Fo(n=>{const{drag:r}=this.getProps();if(!yw(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:u,max:l}=i.layout.layoutBox[n];o.set(e[n]-ir(u,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bg(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Fo(u=>{const l=this.getAxisMotionValue(u);if(l&&this.constraints!==!1){const d=l.get();i[u]=Ade({min:d,max:d},this.constraints[u])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Fo(u=>{if(!yw(u,e,null))return;const l=this.getAxisMotionValue(u),{min:d,max:h}=this.constraints[u];l.set(ir(d,h,i[u]))})}addListeners(){if(!this.visualElement.current)return;Ide.set(this.visualElement,this);const e=this.visualElement.current,n=Y0(e,"pointerdown",d=>{const{drag:h,dragListener:g=!0}=this.getProps();h&&g&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();Bg(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ar.read(r);const u=L1(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(Fo(g=>{const y=this.getAxisMotionValue(g);y&&(this.originPoint[g]+=d[g].translate,y.set(y.get()+d[g].translate))}),this.visualElement.render())}));return()=>{u(),n(),o(),l&&l()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:u=hO,dragMomentum:l=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:u,dragMomentum:l}}}function yw(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Mde(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class kde extends Xf{constructor(e){super(e),this.removeGroupControls=Vo,this.removeListeners=Vo,this.controls=new Nde(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Vo}unmount(){this.removeGroupControls(),this.removeListeners()}}const G5=t=>(e,n)=>{t&&ar.postRender(()=>t(e,n))};class Dde extends Xf{constructor(){super(...arguments),this.removePointerDownListener=Vo}onPointerDown(e){this.session=new tD(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eD(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:G5(e),onStart:G5(n),onMove:r,onEnd:(o,u)=>{delete this.session,i&&ar.postRender(()=>i(o,u))}}}mount(){this.removePointerDownListener=Y0(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Dw={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function W5(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const M0={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(xt.test(t))t=parseFloat(t);else return t;const n=W5(t,e.target.x),r=W5(t,e.target.y);return`${n}% ${r}%`}},Fde={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Nf.parse(t);if(i.length>5)return r;const o=Nf.createTransformer(t),u=typeof i[0]!="number"?1:0,l=n.x.scale*e.x,d=n.y.scale*e.y;i[0+u]/=l,i[1+u]/=d;const h=ir(l,d,.5);return typeof i[2+u]=="number"&&(i[2+u]/=h),typeof i[3+u]=="number"&&(i[3+u]/=h),o(i)}};class Lde extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;Cfe(Ude),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Dw.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:u}=r;return u&&(u.isPresent=o,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?u.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?u.promote():u.relegate()||ar.postRender(()=>{const l=u.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),KT.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rD(t){const[e,n]=Rk(),r=T.useContext(xT);return N.jsx(Lde,{...t,layoutGroup:r,switchLayoutGroup:T.useContext(kk),isPresent:e,safeToRemove:n})}const Ude={borderRadius:{...M0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:M0,borderTopRightRadius:M0,borderBottomLeftRadius:M0,borderBottomRightRadius:M0,boxShadow:Fde};function jde(t,e,n){const r=Di(t)?t:iy(t);return r.start(a4("",r,e,n)),r.animation}const Bde=(t,e)=>t.depth-e.depth;class qde{constructor(){this.children=[],this.isDirty=!1}add(e){_T(this.children,e),this.isDirty=!0}remove(e){AT(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bde),this.isDirty=!1,this.children.forEach(e)}}function Hde(t,e){const n=xa.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(If(r),t(o-e))};return ar.setup(r,!0),()=>If(r)}const iD=["TopLeft","TopRight","BottomLeft","BottomRight"],zde=iD.length,K5=t=>typeof t=="string"?parseFloat(t):t,Y5=t=>typeof t=="number"||xt.test(t);function Vde(t,e,n,r,i,o){i?(t.opacity=ir(0,n.opacity??1,Gde(r)),t.opacityExit=ir(e.opacity??1,0,Wde(r))):o&&(t.opacity=ir(e.opacity??1,n.opacity??1,r));for(let u=0;ure?1:n(I1(t,e,r))}function Q5(t,e){t.min=e.min,t.max=e.max}function ko(t,e){Q5(t.x,e.x),Q5(t.y,e.y)}function X5(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Z5(t,e,n,r,i){return t-=e,t=CS(t,1/n,r),i!==void 0&&(t=CS(t,1/i,r)),t}function Kde(t,e=0,n=1,r=.5,i,o=t,u=t){if(Au.test(e)&&(e=parseFloat(e),e=ir(u.min,u.max,e/100)-u.min),typeof e!="number")return;let l=ir(o.min,o.max,r);t===o&&(l-=e),t.min=Z5(t.min,e,n,l,i),t.max=Z5(t.max,e,n,l,i)}function e9(t,e,[n,r,i],o,u){Kde(t,e[n],e[r],e[i],e.scale,o,u)}const Yde=["x","scaleX","originX"],Jde=["y","scaleY","originY"];function t9(t,e,n,r){e9(t.x,e,Yde,n?n.x:void 0,r?r.x:void 0),e9(t.y,e,Jde,n?n.y:void 0,r?r.y:void 0)}function n9(t){return t.translate===0&&t.scale===1}function oD(t){return n9(t.x)&&n9(t.y)}function r9(t,e){return t.min===e.min&&t.max===e.max}function Qde(t,e){return r9(t.x,e.x)&&r9(t.y,e.y)}function i9(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sD(t,e){return i9(t.x,e.x)&&i9(t.y,e.y)}function a9(t){return ua(t.x)/ua(t.y)}function o9(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Xde{constructor(){this.members=[]}add(e){_T(this.members,e),e.scheduleRender()}remove(e){if(AT(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Zde(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,u=(n==null?void 0:n.z)||0;if((i||o||u)&&(r=`translate3d(${i}px, ${o}px, ${u}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:h,rotate:g,rotateX:y,rotateY:w,skewX:v,skewY:C}=n;h&&(r=`perspective(${h}px) ${r}`),g&&(r+=`rotate(${g}deg) `),y&&(r+=`rotateX(${y}deg) `),w&&(r+=`rotateY(${w}deg) `),v&&(r+=`skewX(${v}deg) `),C&&(r+=`skewY(${C}deg) `)}const l=t.x.scale*e.x,d=t.y.scale*e.y;return(l!==1||d!==1)&&(r+=`scale(${l}, ${d})`),r||"none"}const AE=["","X","Y","Z"],ehe={visibility:"hidden"},the=1e3;let nhe=0;function RE(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function uD(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=zk(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",ar,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&uD(r)}function lD({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(u={},l=e==null?void 0:e()){this.id=nhe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ahe),this.nodes.forEach(lhe),this.nodes.forEach(che),this.nodes.forEach(ohe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let d=0;dthis.root.updateBlockedByResize=!1;t(u,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=Hde(y,250),Dw.hasAnimatedSinceResize&&(Dw.hasAnimatedSinceResize=!1,this.nodes.forEach(l9))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||d)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:y,hasRelativeLayoutChanged:w,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||h.getDefaultTransition()||mhe,{onLayoutAnimationStart:E,onLayoutAnimationComplete:$}=h.getProps(),O=!this.targetLayout||!sD(this.targetLayout,v),_=!y&&w;if(this.options.layoutRoot||this.resumeFrom||_||y&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...GT(C,"layout"),onPlay:E,onComplete:$};(h.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(g,_)}else y||l9(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),If(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(fhe),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&uD(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ua(this.snapshot.measuredBox.x)&&!ua(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d{const P=k/1e3;c9(y.x,u.x,P),c9(y.y,u.y,P),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Q0(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),hhe(this.relativeTarget,this.relativeTargetOrigin,w,P),R&&Qde(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=br()),ko(R,this.relativeTarget)),E&&(this.animationValues=g,Vde(g,h,this.latestValues,P,_,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var l,d,h;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(h=(d=this.resumingFrom)==null?void 0:d.currentAnimation)==null||h.stop(),this.pendingAnimation&&(If(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ar.update(()=>{Dw.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=iy(0)),this.currentAnimation=jde(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),u.onUpdate&&u.onUpdate(g)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(the),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:l,target:d,layout:h,latestValues:g}=u;if(!(!l||!d||!h)){if(this!==u&&this.layout&&h&&cD(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||br();const y=ua(this.layout.layoutBox.x);d.x.min=u.target.x.min,d.x.max=d.x.min+y;const w=ua(this.layout.layoutBox.y);d.y.min=u.target.y.min,d.y.max=d.y.min+w}ko(l,d),zg(l,g),J0(this.projectionDeltaWithTransform,this.layoutCorrected,l,g)}}registerSharedNode(u,l){this.sharedNodes.has(u)||this.sharedNodes.set(u,new Xde),this.sharedNodes.get(u).add(l);const h=l.options.initialPromotionConfig;l.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(l):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var l;const{layoutId:u}=this.options;return u?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:u}=this.options;return u?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:l,preserveFollowOpacity:d}={}){const h=this.getStack();h&&h.promote(this,d),u&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let l=!1;const{latestValues:d}=u;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(l=!0),!l)return;const h={};d.z&&RE("z",u,h,this.animationValues);for(let g=0;g{var l;return(l=u.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(s9),this.root.sharedNodes.clear()}}}function rhe(t){t.updateLayout()}function ihe(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,u=e.source!==t.layout.source;o==="size"?Fo(y=>{const w=u?e.measuredBox[y]:e.layoutBox[y],v=ua(w);w.min=r[y].min,w.max=w.min+v}):cD(o,e.layoutBox,r)&&Fo(y=>{const w=u?e.measuredBox[y]:e.layoutBox[y],v=ua(r[y]);w.max=w.min+v,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[y].max=t.relativeTarget[y].min+v)});const l=qg();J0(l,r,e.layoutBox);const d=qg();u?J0(d,t.applyTransform(i,!0),e.measuredBox):J0(d,r,e.layoutBox);const h=!oD(l);let g=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:w,layout:v}=y;if(w&&v){const C=br();Q0(C,e.layoutBox,w.layoutBox);const E=br();Q0(E,r,v.layoutBox),sD(C,E)||(g=!0),y.options.layoutRoot&&(t.relativeTarget=E,t.relativeTargetOrigin=C,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:d,layoutDelta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:g})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function ahe(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ohe(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function she(t){t.clearSnapshot()}function s9(t){t.clearMeasurements()}function u9(t){t.isLayoutDirty=!1}function uhe(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function l9(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function lhe(t){t.resolveTargetDelta()}function che(t){t.calcProjection()}function fhe(t){t.resetSkewAndRotation()}function dhe(t){t.removeLeadSnapshot()}function c9(t,e,n){t.translate=ir(e.translate,0,n),t.scale=ir(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function f9(t,e,n,r){t.min=ir(e.min,n.min,r),t.max=ir(e.max,n.max,r)}function hhe(t,e,n,r){f9(t.x,e.x,n.x,r),f9(t.y,e.y,n.y,r)}function phe(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const mhe={duration:.45,ease:[.4,0,.1,1]},d9=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),h9=d9("applewebkit/")&&!d9("chrome/")?Math.round:Vo;function p9(t){t.min=h9(t.min),t.max=h9(t.max)}function ghe(t){p9(t.x),p9(t.y)}function cD(t,e,n){return t==="position"||t==="preserve-aspect"&&!bde(a9(e),a9(n),.2)}function yhe(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const vhe=lD({attachResizeListener:(t,e)=>L1(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),PE={current:void 0},fD=lD({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!PE.current){const t=new vhe({});t.mount(window),t.setOptions({layoutScroll:!0}),PE.current=t}return PE.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),bhe={pan:{Feature:Dde},drag:{Feature:kde,ProjectionNode:fD,MeasureLayout:rD}};function m9(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&ar.postRender(()=>o(e,ib(e)))}class whe extends Xf{mount(){const{current:e}=this.node;e&&(this.unmount=Wce(e,(n,r)=>(m9(this.node,r,"Start"),i=>m9(this.node,i,"End"))))}unmount(){}}class She extends Xf{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tb(L1(this.node.current,"focus",()=>this.onFocus()),L1(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function g9(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&ar.postRender(()=>o(e,ib(e)))}class Che extends Xf{mount(){const{current:e}=this.node;e&&(this.unmount=Qce(e,(n,r)=>(g9(this.node,r,"Start"),(i,{success:o})=>g9(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const pO=new WeakMap,IE=new WeakMap,$he=t=>{const e=pO.get(t.target);e&&e(t)},Ehe=t=>{t.forEach($he)};function xhe({root:t,...e}){const n=t||document;IE.has(n)||IE.set(n,{});const r=IE.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(Ehe,{root:t,...e})),r[i]}function Ohe(t,e,n){const r=xhe(e);return pO.set(t,n),r.observe(t),()=>{pO.delete(t),r.unobserve(t)}}const The={some:0,all:1};class _he extends Xf{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,u={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:The[i]},l=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,o&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:g,onViewportLeave:y}=this.node.getProps(),w=h?g:y;w&&w(d)};return Ohe(this.node.current,u,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Ahe(e,n))&&this.startObserver()}unmount(){}}function Ahe({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Rhe={inView:{Feature:_he},tap:{Feature:Che},focus:{Feature:She},hover:{Feature:whe}},Phe={layout:{ProjectionNode:fD,MeasureLayout:rD}},mO={current:null},dD={current:!1};function Ihe(){if(dD.current=!0,!!TT)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>mO.current=t.matches;t.addListener(e),e()}else mO.current=!1}const Nhe=new WeakMap;function Mhe(t,e,n){for(const r in e){const i=e[r],o=n[r];if(Di(i))t.addValue(r,i);else if(Di(o))t.addValue(r,iy(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const u=t.getValue(r);u.liveStyle===!0?u.jump(i):u.hasAnimated||u.set(i)}else{const u=t.getStaticValue(r);t.addValue(r,iy(u!==void 0?u:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const y9=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class khe{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:u},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=zT,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=xa.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),dD.current||Ihe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mO.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),If(this.notifyUpdate),If(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=by.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",l=>{this.latestValues[e]=l,this.props.onUpdate&&ar.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),u&&u(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ay){const n=ay[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):br()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=iy(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(BM(r)||HM(r))?r=parseFloat(r):!efe(r)&&Nf.test(n)&&(r=Ek(e,n)),this.setBaseTarget(e,Di(r)?r.get():r)),Di(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const u=r4(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);u&&(r=u[e])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!Di(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new IT),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class hD extends khe{constructor(){super(...arguments),this.KeyframeResolver=qce}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Di(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function pD(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}function Dhe(t){return window.getComputedStyle(t)}class Fhe extends hD{constructor(){super(...arguments),this.type="html",this.renderInstance=pD}readValueFromInstance(e,n){var r;if(by.has(n))return(r=this.projection)!=null&&r.isProjecting?nO(n):sce(e,n);{const i=Dhe(e),o=(kT(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Zk(e,n)}build(e,n,r){e4(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return i4(e,n,r)}}const mD=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Lhe(t,e,n,r){pD(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(mD.has(i)?i:ZT(i),e.attrs[i])}class Uhe extends hD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=br}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(by.has(n)){const r=$k(n);return r&&r.default||0}return n=mD.has(n)?n:ZT(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return Hk(e,n,r)}build(e,n,r){Uk(e,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,n,r,i){Lhe(e,n,r,i)}mount(e){this.isSVGTag=Bk(e.tagName),super.mount(e)}}const jhe=(t,e)=>n4(t)?new Uhe(e):new Fhe(e,{allowProjection:t!==T.Fragment}),Bhe=Ufe({...fde,...Rhe,...bhe,...Phe},jhe),qhe=cfe(Bhe),Hhe={initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"100%",opacity:0}};function zhe({children:t}){var r;const e=Ll();return((r=e.state)==null?void 0:r.animated)?N.jsx(afe,{mode:"wait",children:N.jsx(qhe.div,{variants:Hhe,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.15},style:{width:"100%"},children:t},e.pathname)}):N.jsx(N.Fragment,{children:t})}function Vhe(){return N.jsxs(N.Fragment,{children:[N.jsxs(mn,{path:"selfservice",children:[N.jsx(mn,{path:"welcome",element:N.jsx(IQ,{})}),N.jsx(mn,{path:"email",element:N.jsx(e6,{method:Za.Email})}),N.jsx(mn,{path:"phone",element:N.jsx(e6,{method:Za.Phone})}),N.jsx(mn,{path:"totp-setup",element:N.jsx(bX,{})}),N.jsx(mn,{path:"totp-enter",element:N.jsx(CX,{})}),N.jsx(mn,{path:"complete",element:N.jsx(NX,{})}),N.jsx(mn,{path:"password",element:N.jsx(jX,{})}),N.jsx(mn,{path:"otp",element:N.jsx(WX,{})})]}),N.jsx(mn,{path:"*",element:N.jsx(ZE,{to:"/en/selfservice/welcome",replace:!0})})]})}function Ghe(){const t=Yse(),e=pue(),n=xue(),r=rle();return N.jsxs(mn,{path:"selfservice",children:[N.jsx(mn,{path:"passports",element:N.jsx(mG,{})}),N.jsx(mn,{path:"change-password/:uniqueId",element:N.jsx(yQ,{})}),t,e,n,r,N.jsx(mn,{path:"",element:N.jsx(zhe,{children:N.jsx(ile,{})})})]})}const v9=iV;function Whe(){const t=T.useRef(QV),e=T.useRef(new OF);return N.jsx(NF,{client:e.current,children:N.jsx(az,{mockServer:t,config:{},prefix:"",queryClient:e.current,children:N.jsx(Khe,{})})})}function Khe(){const t=Vhe(),e=Ghe(),{session:n,checked:r}=oG();return N.jsx(N.Fragment,{children:!n&&r?N.jsx(v9,{children:N.jsxs(D_,{children:[N.jsx(mn,{path:":locale",children:t}),N.jsx(mn,{path:"*",element:N.jsx(ZE,{to:"/en/selftservice",replace:!0})})]})}):N.jsx(v9,{children:N.jsxs(D_,{children:[N.jsx(mn,{path:":locale",children:e}),N.jsx(mn,{path:"*",element:N.jsx(ZE,{to:"/en/selfservice/passports",replace:!0})})]})})})}const Yhe=aF.createRoot(document.getElementById("root"));Yhe.render(N.jsx(Ae.StrictMode,{children:N.jsx(Whe,{})}))});export default Jhe(); diff --git a/modules/fireback/codegen/selfservice/index.html b/modules/fireback/codegen/selfservice/index.html index 7193afd2f..9177825d4 100644 --- a/modules/fireback/codegen/selfservice/index.html +++ b/modules/fireback/codegen/selfservice/index.html @@ -5,7 +5,7 @@ Fireback - +