@capgo/cli
Version:
A CLI to upload to capgo servers
297 lines • 1.39 MB
JavaScript
import{createRequire as Zm}from"node:module";var Qm=Object.create;var{getPrototypeOf:qm,defineProperty:g3,getOwnPropertyNames:LN,getOwnPropertyDescriptor:Km}=Object,wN=Object.prototype.hasOwnProperty;function RN(D){return this[D]}var Wm,Gm,N0=(D,$,J)=>{var F=D!=null&&typeof D==="object";if(F){var U=$?Wm??=new WeakMap:Gm??=new WeakMap,X=U.get(D);if(X)return X}J=D!=null?Qm(qm(D)):{};let Y=$||!D||!D.__esModule?g3(J,"default",{value:D,enumerable:!0}):J;for(let Q of LN(D))if(!wN.call(Y,Q))g3(Y,Q,{get:RN.bind(D,Q),enumerable:!0});if(F)U.set(D,Y);return Y},D1=(D)=>{var $=(VN??=new WeakMap).get(D),J;if($)return $;if($=g3({},"__esModule",{value:!0}),D&&typeof D==="object"||typeof D==="function"){for(var F of LN(D))if(!wN.call($,F))g3($,F,{get:RN.bind(D,F),enumerable:!(J=Km(D,F))||J.enumerable})}return VN.set(D,$),$},VN,u=(D,$)=>()=>($||D(($={exports:{}}).exports,$),$.exports);var Im=(D)=>D;function zm(D,$){this[D]=Im.bind(null,$)}var M$=(D,$)=>{for(var J in $)g3(D,J,{get:$[J],enumerable:!0,configurable:!0,set:zm.bind($,J)})};var S=(D,$)=>()=>(D&&($=D(D=0)),$);var qZD=(D)=>Promise.all(D),FD=Zm(import.meta.url);var MN=u((GZD,Hm)=>{Hm.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Alpic",constant:"ALPIC",env:"ALPIC_HOST"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Cloudflare Pages",constant:"CLOUDFLARE_PAGES",env:"CF_PAGES"},{name:"Cloudflare Workers",constant:"CLOUDFLARE_WORKERS",env:"WORKERS_CI"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var N7=u((fY)=>{var EN=MN(),z$=process.env;Object.defineProperty(fY,"_vendors",{value:EN.map(function(D){return D.constant})});fY.name=null;fY.isPR=null;fY.id=null;if(z$.CI!=="false")EN.forEach(function(D){let J=(Array.isArray(D.env)?D.env:[D.env]).every(function(F){return AN(F)});if(fY[D.constant]=J,!J)return;fY.name=D.name,fY.isPR=Bm(D),fY.id=D.constant});fY.isCI=!!(z$.CI!=="false"&&(z$.BUILD_ID||z$.BUILD_NUMBER||z$.CI||z$.CI_APP_ID||z$.CI_BUILD_ID||z$.CI_BUILD_NUMBER||z$.CI_NAME||z$.CONTINUOUS_INTEGRATION||z$.RUN_ID||fY.name||!1));function AN(D){if(typeof D==="string")return!!z$[D];if("env"in D)return z$[D.env]&&z$[D.env].includes(D.includes);if("any"in D)return D.any.some(function($){return!!z$[$]});return Object.keys(D).every(function($){return z$[$]===D[$]})}function Bm(D){switch(typeof D.pr){case"string":return!!z$[D.pr];case"object":if("env"in D.pr)if("any"in D.pr)return D.pr.any.some(function($){return z$[D.pr.env]===$});else return D.pr.env in z$&&z$[D.pr.env]!==D.pr.ne;else if("any"in D.pr)return D.pr.any.some(function($){return!!z$[$]});else return AN(D.pr);default:return null}}});var r0;var L2=S(()=>{r0={name:"@capgo/cli",type:"module",version:"8.119.1",description:"A CLI to upload to capgo servers",author:"Martin martin@capgo.app",license:"AGPL-3.0-only",homepage:"https://github.com/Cap-go/capgo/tree/main/cli#readme",repository:{type:"git",url:"https://github.com/Cap-go/capgo.app",directory:"cli"},bugs:{url:"https://github.com/Cap-go/capgo/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli","sdk","tanstack-intent"],exports:{".":{import:"./dist/index.js",require:"./dist/index.js"},"./sdk":{types:"./dist/src/sdk.d.ts",import:"./dist/src/sdk.js"}},main:"dist/index.js",types:"dist/src/index.d.ts",bin:{capgo:"dist/index.js"},files:["!skills/_artifacts","dist","skills"],engines:{npm:">=8.0.0",node:">=20.0.0"},scripts:{build:"tsc && bun build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js","dev-build":"SUPA_DB=development ncc build",pack:"pkg",typecheck:"tsc --noEmit",lint:"bun run lint:ox","lint:ox":"oxlint --config ../.oxlintrc.json src","lint:fix":"oxlint --config ../.oxlintrc.json --fix src","check-posix-paths":"node test/check-posix-paths.js","generate-docs":"node dist/index.js generate-docs README.md","test:notify-app-ready-background":"bun test ./test/test-notify-app-ready-background.mjs ./test/test-background-check-shutdown.mjs","test:bundle":"bun test/test-bundle.mjs","test:bundle-validation":"bun test test/bundle/","test:prescan":"bun test test/prescan/","test:functional":"bun test/test-functional.mjs","test:semver":"bun test/test-semver-validation.mjs","test:version-edge-cases":"bun test/test-version-validation.mjs","test:regex":"bun test/test-regex-validation.mjs","test:upload":"bun test/test-upload-validation.mjs","test:fail-on-incompatible":"bun test/test-fail-on-incompatible.mjs","test:native-dependencies":"bun test/test-native-dependencies.mjs && bun test/test-get-remote-dependencies.mjs","test:package-json-guard":"bun test/test-package-json-guard.mjs","test:credentials":"bun test/test-credentials.mjs","test:build-variants":"bun test test/build-variants.test.ts","test:credentials-export":"bun test/test-credentials-export.mjs","test:key-create-mode":"bun test/test-key-create-mode.mjs","test:key-vault":"bun test/test-key-vault.mjs","test:asc-key-protocol":"bun test/test-asc-key-protocol.mjs","test:credentials-validation":"bun test/test-credentials-validation.mjs","test:android-service-account-validation":"bun test/test-android-service-account-validation.mjs","test:build-zip-filter":"bun test/test-build-zip-filter.mjs","test:offline-packers":"bun test/test-offline-packers.mjs","test:checksum":"bun test/test-checksum-algorithm.mjs","test:build-needed":"bun test/test-build-needed.mjs","test:cli-help":"bun test/test-cli-help.mjs","test:build-cache-payload":"bun test/test-build-cache-payload.mjs","test:build-cancellation":"bun test/test-build-cancellation.mjs","test:ci-prompts":"bun test/test-ci-prompts.mjs","test:capgo-app-id-prompt":"bun test/test-capgo-app-id-prompt.mjs","test:bundle-soft-delete":"bun test/test-bundle-soft-delete.mjs","test:ci-secrets":"bun test/test-ci-secrets.mjs","test:android-onboarding-progress":"bun test/test-android-onboarding-progress.mjs && bun test/test-android-select-guard.mjs","test:android-keystore-action":"bun test/test-android-keystore-action.mjs","test:android-google-play-action":"bun test/test-android-google-play-action.mjs","test:onboarding-telemetry":"bun test/test-onboarding-telemetry.mjs","test:v2-event-migration":"bun test/test-v2-event-migration.mjs","test:analytics":"bun test/test-analytics.mjs","test:cli-headers":"bun test/test-cli-headers.mjs","test:min-cli-version":"bun test/test-min-cli-version.mjs","test:authenticated-command-invocation":"bun test/test-authenticated-command-invocation.mjs","test:analytics-error-category":"bun test/test-analytics-error-category.mjs","test:analytics-org-resolver":"bun test/test-analytics-org-resolver.mjs","test:api-perf":"bun test/test-api-perf.mjs","test:preview-qr":"bun test/test-preview-qr.mjs","test:build-custom-msg":"bun test/test-build-custom-msg.mjs","test:bundle-pages":"bun test test/test-bundle-pages.test.ts","test:bundle-single-requests":"bun test test/test-bundle-single-requests.test.ts","test:mcp-analytics":"bun test/test-mcp-analytics.mjs && bun test/test-mcp-telemetry-project.mjs","test:mcp-instructions":"bun test/test-mcp-instructions.mjs","test:mcp-error-guidance":"bun test/test-mcp-error-guidance.mjs","test:mcp-stdout-guard":"bun test/test-mcp-stdout-guard.mjs","test:mcp-project-dir":"bun test/test-mcp-project-dir.mjs && bun test/test-mcp-project-dir-cwd-cache.mjs && bun test/test-cwd.mjs && bun test/test-project-context.mjs","test:mcp-host-fields":"bun test/test-mcp-host-fields.mjs","test:mcp-platform-select":"bun test/test-mcp-platform-select.mjs","test:mcp-explain-scopes":"bun test/test-mcp-explain-scopes.mjs","test:mcp-oauth-reopen":"bun test/test-mcp-oauth-reopen.mjs","test:mcp-broker-oauth":"bun test/test-mcp-broker-oauth.mjs","test:mcp-broker-session":"bun test/test-mcp-broker-session.mjs","test:mcp-credentials-manage":"bun test/test-mcp-credentials-manage.mjs","test:mcp-resume-prompt":"bun test/test-mcp-resume-prompt.mjs","test:mcp-build-job":"bun test/test-mcp-build-job.mjs","test:mcp-build-spawn":"bun test/test-mcp-build-spawn.mjs","test:mcp-build-tools":"bun test/test-mcp-build-tools.mjs","test:app-created-source":"bun test/test-app-created-source.mjs","test:app-add-exists":"bun test/test-app-add-exists.mjs","test:app-add-getting-started":"bun test/test-app-add-getting-started.mjs","test:app-list":"bun test/test-app-list.mjs","test:app-todo":"bun test/test-app-todo.mjs && bun test/test-builder-only-checklist.mjs && bun test/test-builder-only-setup.mjs && bun test/test-app-todo-lists.mjs && bun test/test-app-todo-tabs.mjs && bun test/test-app-todo-command.mjs && node test/test-app-todo-interactive.mjs","test:doctor-analytics":"bun test/test-doctor-analytics.mjs","test:posthog-exception":"bun test/test-posthog-exception.mjs","test:cli-recovery":"bun test/test-cli-recovery.mjs","test:create-capgo-client":"bun test/test-create-capgo-client.mjs","test:china-host-requests":"bun test/test-china-host-requests.mjs","test:no-supabase-sdk":"bun test/test-no-supabase-sdk.mjs","test:no-redirect-error":"bun test/test-no-redirect-error.mjs","test:onboarding-recovery":"bun test/test-onboarding-recovery.mjs","test:onboarding-progress":"bun test/test-onboarding-progress.mjs","test:onboarding-run-targets":"bun test/test-onboarding-run-targets.mjs && bun test ./test/test-ios-simulator-compatibility.mjs","test:run-device-command":"bun test/test-run-device-command.mjs","test:init-app-conflict":"bun test/test-init-app-conflict.mjs","test:channel-add-exists":"bun test/test-channel-add-exists.mjs","test:channel-add-default":"bun test/test-channel-add-default.mjs","test:wait-log":"bun test/test-wait-log.mjs","test:init-guardrails":"bun test/test-init-guardrails.mjs","test:init-command-execution":"bun test/test-init-command-execution.mjs","test:init-upload-recovery":"bun test/test-init-upload-monorepo-recovery.mjs","test:init-replay":"bun test/test-init-replay.mjs","test:init-ota-checklist":"bun test/test-init-ota-checklist.mjs","test:init-telemetry":"bun test/test-init-telemetry.mjs","test:capacitor-config-target":"bun test/test-capacitor-config-target.mjs","test:builder-app-id-config":"bun test/test-builder-app-id-config.mjs","test:capacitor-config-typescript7":"bun test/test-capacitor-config-typescript7.mjs","test:capacitor-config-native-import":"bun test/test-capacitor-config-native-import.mjs","test:cli-user-error-config":"bun test/test-cli-user-error-config.mjs","test:cordova-upload-mode":"bun test/test-cordova-upload-mode.mjs","test:init-monorepo-targeting":"bun run test:capacitor-config-target && bun run test:builder-app-id-config && bun run test:capacitor-config-typescript7 && bun run test:capacitor-config-native-import && bun run test:cli-user-error-config && bun test/test-init-monorepo-targeting.mjs","test:prompt-preferences":"bun test/test-prompt-preferences.mjs","test:esm-sdk":"node test/test-sdk-esm.mjs","test:auth-session":"bun test/test-auth-session.mjs && bun test/test-auth-session-bad-key.mjs","test:mcp":"node test/test-mcp.mjs && node test/test-mcp-skills.mjs","test:mcp-no-key-handshake":"node test/test-mcp-no-key-handshake.mjs","test:version-detection":"node test/test-get-installed-version.mjs","test:version-detection:setup":"./test/fixtures/setup-test-projects.sh","test:platform-paths":"bun test/test-platform-paths.mjs","test:project-type-detection":"bun test/test-project-type-detection.mjs","test:payload-split":"bun test/test-payload-split.mjs && bun test/test-build-env.mjs","test:macos-signing":"bun test/test-macos-signing.mjs","test:helper-dce":"bash scripts/check-helper-dce.sh","test:apple-api-import-helpers":"bun test/test-apple-api-import-helpers.mjs","test:apple-api-verify-key":"bun test/test-apple-api-verify-key.mjs","test:bundle-id-detector":"bun test/test-bundle-id-detector.mjs","test:apple-api-app-list":"bun test/test-apple-api-app-list.mjs","test:apple-api-cert-create":"bun test/test-apple-api-cert-create.mjs","test:app-verification":"bun test/test-app-verification.mjs","test:pbxproj-parser":"bun test/test-pbxproj-parser.mjs","test:self-update":"bun test/test-self-update.mjs","test:update-prompt":"bun test/test-update-prompt.mjs","test:android-tail-engine":"bun test/test-android-tail-engine.mjs","test:android-tail-render":"bun test/test-android-tail-render.mjs","test:android-tail-routing":"bun test/test-android-tail-routing.mjs","test:dev-gate-stripped":"bun test/test-dev-gate-stripped.mjs","test:ios-confirm-app-id":"bun test/test-ios-confirm-app-id.mjs","test:ios-create-new":"bun test/test-ios-create-new.mjs","test:ios-certificate-action":"bun test/test-ios-certificate-action.mjs","test:ios-profile-action":"bun test/test-ios-profile-action.mjs","test:ios-credential-action":"bun test/test-ios-credential-action.mjs","test:ios-e2e":"bun test/test-ios-e2e.mjs","test:ios-import-discovery":"bun test/test-ios-import-discovery.mjs","test:ios-import-export":"bun test/test-ios-import-export.mjs","test:ios-import-pickers":"bun test/test-ios-import-pickers.mjs","test:ios-import-recovery":"bun test/test-ios-import-recovery.mjs","test:ios-recovery":"bun test/test-ios-recovery.mjs","test:ios-resume":"bun test/test-ios-resume.mjs","test:ios-tail-handoff":"bun test/test-ios-tail-handoff.mjs","test:ios-tui-render":"bun test/test-ios-tui-render.mjs","test:p8-error":"bun test/test-p8-error.mjs","test:ios-tui-routing":"bun test/test-ios-tui-routing.mjs","test:ios-updater-sync-validation":"bun test/test-ios-updater-sync-validation.mjs","test:ios-verify-app":"bun test/test-ios-verify-app.mjs","test:ios-marketing-version":"bun test/test-ios-marketing-version.mjs","test:android-version":"bun test/test-android-version.mjs","test:platform-flow-contract":"bun test/test-platform-flow-contract.mjs","test:tail-engine-shared":"bun test/test-tail-engine-shared.mjs",test:"bun run build && bun scripts/run-test-suite.ts","test:run":"bun scripts/run-test-suite.ts","test:serial":"bun run build && bun scripts/run-test-suite.ts --serial","test:monitoring":"bun test test/test-monitoring.test.ts","test:docs-examples":"bun test test/docs-examples.test.ts","test:suite":"bun run test:monitoring && bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:notify-app-ready-background && bun run test:bundle-validation && bun run test:functional && bun run test:semver && bun run test:auto-bump-version && bun run test:recommend && bun run test:auto-bump-ai-diff && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:cordova-upload-mode && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:package-json-guard && bun run test:credentials && bun run test:credentials-export && bun run test:key-create-mode && bun run test:key-vault && bun run test:ios-provisioning-map && bun run test:ios-provisioning-command && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:offline-packers && bun run test:checksum && bun run test:build-needed && bun run test:cli-help && bun run test:build-cache-payload && bun run test:build-cancellation && bun run test:ci-prompts && bun run test:capgo-app-id-prompt && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:android-keystore-action && bun run test:android-google-play-action && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:cli-headers && bun run test:min-cli-version && bun run test:authenticated-command-invocation && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:api-perf && bun run test:preview-qr && bun run test:build-custom-msg && bun run test:bundle-pages && bun run test:bundle-single-requests && bun run test:app-set-options && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-error-guidance && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-project-dir && bun run test:mcp-host-fields && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-spawn && bun run test:mcp-build-tools && bun run test:app-created-source && bun run test:app-add-exists && bun run test:app-add-getting-started && bun run test:app-list && bun run test:app-todo && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:cli-recovery && bun run test:create-capgo-client && bun run test:china-host-requests && bun run test:bundle-soft-delete && bun run test:no-supabase-sdk && bun run test:no-redirect-error && bun run test:build-platform-selection && bun run test:builder-project-discovery && bun run test:builder-app-selection && bun run test:builder-login-gate && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-monorepo-targeting && bun run test:init-app-conflict && bun run test:channel-list && bun run test:channel-add-exists && bun run test:channel-add-default && bun run test:wait-log && bun run test:init-guardrails && bun run test:init-command-execution && bun run test:init-upload-recovery && bun run test:init-replay && bun run test:init-telemetry && bun run test:init-ota-checklist && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:cicd-failure-help && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:support && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-certificate-action && bun run test:ios-profile-action && bun run test:ios-credential-action && bun run test:ios-e2e && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:ios-marketing-version && bun run test:android-version && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-gcp && bun run test:android-app-verification && bun run test:android-rename && bun run test:appflow-auth && bun run test:appflow-api-map && bun run test:appflow-validate && bun run test:appflow-flow && bun run test:appflow-gapfill && bun run test:appflow-engine && bun run test:appflow-tail && bun run test:appflow-fetch && bun run test:appflow-sa-decode && bun run test:app-permission-helper && bun run test:2fa-compliance-network && bun run test:retryable-capgo-api-error && bun run test:organization-set-api-host && bun run test:plan-validation && bun run test:setup-notices && bun run test:settings-parity && bun run test:init-browser-login && bun run test:android-onboarding-units && bun run test:build-credentials-units && bun run test:onboarding-generators && bun run test:mcp-onboarding && bun run test:app-prewarm && bun run test:build-variants && bun run test:docs-examples","test:build-platform-selection":"bun test/test-build-platform-selection.mjs","test:builder-project-discovery":"bun test/test-builder-project-discovery.mjs","test:builder-app-selection":"bun test/test-builder-app-selection.mjs","test:builder-login-gate":"bun test/test-builder-login-gate.mjs","test:ai-log-capture":"bun test/test-ai-log-capture.mjs","test:ai-analyze-flow":"bun test/test-ai-analyze-flow.mjs","test:cicd-failure-help":"bun test/test-cicd-failure-help.mjs","test:ai-sse-parser":"bun test/test-ai-sse-parser.mjs","test:ai-render-markdown":"bun test/test-ai-render-markdown.mjs","test:ai-onboarding-mode":"bun test/test-ai-onboarding-mode.mjs","test:ai-fit":"bun test/test-ai-fit.mjs","test:platform-layout":"bun test/test-platform-layout.mjs","test:frame-fit":"bun test/run-frame-fit.mjs","test:onboarding-min-size":"bun test/test-onboarding-min-size.mjs","test:min-size-gate":"bun test/test-min-size-gate.mjs","test:shell-size-gate":"bun test/test-shell-size-gate.mjs","test:build-log-sanitize":"bun test/test-build-log-sanitize.mjs","test:build-output-viewport":"bun test/test-build-output-viewport.mjs","test:diff-viewer-viewport":"bun test/test-diff-viewer-viewport.mjs","test:build-complete-exit":"bun test/test-build-complete-exit.mjs","test:ai-stream-markdown":"bun test/test-ai-stream-markdown.mjs","test:support":"bun test/test-support.mjs","test:mcp-live-update-onboarding":"bun test/test-mcp-live-update-onboarding.mjs","test:app-set-options":"bun test/test-app-set-options.mjs","test:settings-parity":"bun test/test-settings-parity.mjs","test:android-reporting-api":"bun test/test-android-reporting-api.mjs","test:android-gcp":"bun test/test-android-gcp.mjs","test:android-app-verification":"bun test/test-android-app-verification.mjs","test:android-rename":"bun test/test-android-rename.mjs","test:appflow-auth":"bun test/test-appflow-auth.mjs","test:appflow-api-map":"bun test/test-appflow-api-map.mjs","test:appflow-validate":"bun test/test-appflow-validate.mjs","test:appflow-flow":"bun test/test-appflow-flow.mjs","test:appflow-gapfill":"bun test/test-appflow-gapfill.mjs","test:appflow-engine":"bun test/test-appflow-engine.mjs","test:appflow-tail":"bun test/test-appflow-tail.mjs","test:appflow-fetch":"bun test/test-appflow-fetch.mjs","test:appflow-sa-decode":"bun test/test-appflow-sa-decode.mjs","test:app-permission-helper":"bun test/test-app-permission-helper.mjs","test:2fa-compliance-network":"bun test/test-2fa-compliance-network.mjs","test:retryable-capgo-api-error":"bun test/test-retryable-capgo-api-error.mjs","test:organization-set-api-host":"bun test/test-organization-set-api-host.mjs","test:plan-validation":"bun test/test-plan-validation.mjs && bun test ./test/test-direct-offer-plan.mjs","test:auto-bump-version":"bun test/test-auto-bump-version.mjs","test:auto-bump-ai-diff":"bun test/test-auto-bump-ai-diff.mjs","test:ios-provisioning-map":"bun test/test-ios-provisioning-map.mjs","test:ios-provisioning-command":"bun test/test-ios-provisioning-command.mjs","test:channel-list":"bun test/test-channel-list.mjs","test:init-browser-login":"bun test test/init/","test:android-onboarding-units":"bun test/test-android-gradle.mjs && bun test/test-android-keystore.mjs && bun test/test-android-oauth.mjs && bun test/test-android-play.mjs && bun test/test-android-tui-sequencing.mjs","test:build-credentials-units":"bun test/test-credentials-migration.mjs && bun test/test-provisioning-map-validation.mjs && bun test/test-mobileprovision-parser.mjs","test:onboarding-generators":"bun test/test-diff-utils.mjs && bun test/test-workflow-generator.mjs","test:mcp-onboarding":"bun test ./test/build/onboarding/mcp/scoped-credential-path.test.ts ./test/build/onboarding/mcp/start-setup-report.test.ts && bun test/test-mcp-onboarding.mjs","test:setup-notices":"bun test ./test/test-setup-notices.mjs ./test/test-setup-progress-request.mjs ./test/test-setup-notice-background.mjs ./test/test-init-completion-notice.mjs && bun test ./test/test-builder-setup-notice.mjs","test:recommend":"bun test test/recommend-context.test.ts","test:app-prewarm":"bun test test/app-prewarm.test.ts"},dependencies:{"@inkjs/ui":"^2.0.0","@manypkg/tools":"^2.1.2","@rrweb/types":"^2.1.1","@standard-schema/spec":"^1.1.0","@xmldom/xmldom":"^0.9.10","@xterm/addon-serialize":"^0.14.0","@xterm/headless":"^6.0.0","agent-cli-detector":"^0.1.6","happy-dom":"^21.0.4",ink:"^7.1.1","ink-spinner":"^5.0.0",jsonwebtoken:"^9.0.3","node-forge":"^1.4.0",qrcode:"^1.5.4",react:"^19.2.8","rrweb-snapshot":"^2.1.1","string-width":"^8.2.2",typescript:"6.0.3",zod:"^4.5.4"},optionalDependencies:{"@capgo/cli-helper-darwin-arm64":"^1.1.1","@capgo/cli-helper-darwin-x64":"^1.1.1","node-pty":"^1.1.0"},devDependencies:{"@antfu/eslint-config":"^9.2.0","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client@0.9.6","@capacitor/cli":"^8.4.2","@capgo/find-package-manager":"^0.0.18","@clack/prompts":"^1.7.0","@modelcontextprotocol/client":"^2.0.0-beta.5","@modelcontextprotocol/server":"^2.0.0-beta.5","@sauber/table":"npm:@jsr/sauber__table","@sinonjs/fake-timers":"15.4.0","@std/semver":"npm:@jsr/std__semver@1.0.8","@tanstack/intent":"^0.3.6","@types/adm-zip":"^0.5.8","@types/cross-spawn":"^6.0.6","@types/jsonwebtoken":"^9.0.10","@types/node":"^26.1.1","@types/node-forge":"^1.3.14","@types/prettyjson":"^0.0.33","@types/qrcode":"^1.5.6","@types/react":"^19.2.17","@types/tmp":"^0.2.6","@types/ws":"^8.18.1","@typescript/native":"npm:typescript@7.1.0-beta","@vercel/ncc":"^0.44.1","@vue/compiler-dom":"3.5.40","@xterm/headless":"^6.0.0","adm-zip":"^0.6.0","ci-info":"^4.4.0",commander:"^15.0.0","cross-spawn":"^7.0.6",eslint:"^10.7.0","git-format-staged":"4.0.2",husky:"^9.1.7","is-wsl":"^3.1.1",micromatch:"^4.0.8",open:"^11.0.0",oxlint:"^1.75.0",partysocket:"^1.3.0",prettyjson:"^1.2.5",tmp:"^0.2.7","tus-js-client":"^4.3.1",ws:"^8.21.1"}}});var MD;var v6=S(()=>{MD=class MD extends Error{context;constructor(D,$,J){super(D,J!==void 0?{cause:J}:void 0);this.name="CliUserError",this.context=$}}});import{platform as Nm}from"node:os";import{version as Vm}from"node:process";function SN(D){PN=D}function wm(D){for(let $=0;$<D.length;$++)if(D.charCodeAt($)>255)return!1;return!0}function bN(D){if(D.toLowerCase()==="x-capgo-log-token")return"Build log token is missing. Re-run the build command or pass a valid log token.";return"Capgo API key is missing. Run `npx -y @capgo/cli@latest login` or pass `--apikey`."}function Rm(D){if(D.toLowerCase()==="x-capgo-log-token")return"Build log token contains invalid characters (only ASCII is allowed). Re-run the build command to get a fresh token.";if(D.toLowerCase()==="authorization")return"Authorization header contains invalid characters (only ASCII is allowed). Check your Capgo API key configuration.";return"Capgo API key contains invalid characters (only ASCII is allowed). Copy the key from the Capgo dashboard."}function hY(D,$){if($===void 0||$===null){if(yY.has(D.toLowerCase()))throw new MD(bN(D));throw new MD(`HTTP header "${D}" is missing or invalid.`)}if(typeof $!=="string"){if(yY.has(D.toLowerCase()))throw new MD(bN(D));throw new MD(`HTTP header "${D}" is missing or invalid.`)}if(!wm($)){if(yY.has(D.toLowerCase()))throw new MD(Rm(D));throw new MD(`HTTP header "${D}" contains invalid characters (only ASCII is allowed).`)}return $}function Mm(D=V7.isCI,$=V7.name){if(!D)return;return($??"").replace(/[^\x20-\x7E]/g,"").trim().slice(0,64)||"ci"}function Q6(D){let $={capgo_api:Lm,"x-cli-version":r0.version,"x-cli-command":PN,"x-cli-node":Vm,"x-cli-os":Nm()},J=Mm();if(J)$["x-cli-ci"]=J;if(D)for(let[F,U]of Object.entries(D))$[F]=hY(F,U);return $}var V7,Lm="2025-10-01",PN="",yY;var L7=S(()=>{L2();v6();V7=N0(N7(),1),yY=new Set(["authorization","capgkey","x-capgo-log-token"])});import{existsSync as W0}from"fs";var w2=(D=".",$="unknown")=>{let J=`${D}/bun.lockb`,F=`${D}/bun.lock`,U=`${D}/pnpm-lock.yaml`,X=`${D}/shrinkwrap.yaml`,Y=`${D}/yarn.lock`,Q=`${D}/package-lock.json`,q=`${D}/npm-shrinkwrap.json`;if(W0(J)||W0(F))return"bun";if(W0(U)||W0(X))return"pnpm";if(W0(Y))return"yarn";if(W0(Q)||W0(q))return"npm";return $},w7=(D=w2(),$=!1)=>{switch(D){case"bun":return $?"bun install":"install";case"pnpm":return $?"pnpm install":"install";case"yarn":return $?"yarn install":"install";case"npm":return $?"npm install":"install";case"unknown":return $?"unknown unknown":"unknown";default:return $?"npm install":"install"}},_N=(D=".",$="npx")=>{let J=`${D}/bun.lockb`,F=`${D}/bun.lock`,U=`${D}/pnpm-lock.yaml`,X=`${D}/shrinkwrap.yaml`,Y=`${D}/yarn.lock`,Q=`${D}/package-lock.json`,q=`${D}/npm-shrinkwrap.json`;if(W0(J)||W0(F))return"bunx";if(W0(U)||W0(X))return"pnpm exec";if(W0(Y))return"yarn dlx";if(W0(Q)||W0(q))return"npx";return $};var kN=()=>{};var CN,uN=(D)=>{return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510},gN=(D)=>{return D===8987||D===9001||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12771||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=19903||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D>=131072&&D<=196605||D>=196608&&D<=262141};var fN=S(()=>{CN=(()=>{let D=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return($)=>{let J=0;D.lastIndex=0;while(D.test($))J+=1;return $.length-J}})()});var Em,Am,xN,vm,yN,Tm,bm,Pm,hN=(D,$={},J={})=>{let F=$.limit??1/0,U=$.ellipsis??"",X=$?.ellipsisWidth??(U?hN(U,Pm,J).width:0),Y=0,Q=J.controlWidth??0,q=J.tabWidth??8,K=J.emojiWidth??2,W=2,G=J.regularWidth??1,I=J.wideWidth??2,z=[[Tm,G],[Em,0],[Am,Q],[vm,q],[yN,K],[xN,I]],Z=0,H=0,B=D.length,j=0,N=!1,O=B,L=Math.max(0,F-X),A=0,E=0,_=0,k=0;D:while(!0){if(E>A||H>=B&&H>Z){let C=D.slice(A,E)||D.slice(Z,H);j=0;for(let y of C.replaceAll(bm,"")){let v=y.codePointAt(0)||0;if(uN(v))k=2;else if(gN(v))k=I;else k=G;if(_+k>L)O=Math.min(O,Math.max(A,Z)+j);if(_+k>F){N=!0;break D}j+=y.length,_+=k}A=E=0}if(H>=B)break D;for(let C=0,y=z.length;C<y;C++){let[v,i]=z[C];if(v.lastIndex=H,v.test(D)){if(j=v===xN?CN(D.slice(H,v.lastIndex)):v===yN?1:v.lastIndex-H,k=j*i,_+k>L)O=Math.min(O,H+Math.floor((L-_)/i));if(_+k>F){N=!0;break D}_+=k,A=Z,E=H,H=Z=v.lastIndex;continue D}}H+=1}return{width:N?L:_,index:N?O:B,truncated:N,ellipsed:N&&F>=X}},mN;var lN=S(()=>{fN();Em=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,Am=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,xN=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,vm=/\t{1,1000}/y,yN=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu,Tm=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,bm=/\p{M}+/gu,Pm={limit:1/0,ellipsis:""},mN=hN});var Sm,_m=(D,$={})=>{return mN(D,Sm,$).width},n$;var mY=S(()=>{lN();Sm={limit:1/0,ellipsis:"",ellipsisWidth:0},n$=_m});function T6(D,$,J){return String(D).normalize().split(fm).map((F)=>gm(F,$,J)).join(`
`)}var R7="\x1B",pN="",km=39,iY="\x07",rN="[",Cm="]",tN="m",dY,iN,dN=(D)=>{if(D>=30&&D<=37)return 39;if(D>=90&&D<=97)return 39;if(D>=40&&D<=47)return 49;if(D>=100&&D<=107)return 49;if(D===1||D===2)return 22;if(D===3)return 23;if(D===4)return 24;if(D===7)return 27;if(D===8)return 28;if(D===9)return 29;if(D===0)return 0;return},cN=(D)=>`${R7}${rN}${D}${tN}`,nN=(D)=>`${R7}${dY}${D}${iY}`,lY=(D,$,J)=>{let F=$[Symbol.iterator](),U=!1,X=!1,Y=D.at(-1),Q=Y===void 0?0:n$(Y),q=F.next(),K=F.next(),W=0;while(!q.done){let G=q.value,I=n$(G);if(Q+I<=J)D[D.length-1]+=G;else D.push(G),Q=0;if(G===R7||G===pN)U=!0,X=$.startsWith(dY,W+1);if(U){if(X){if(G===iY)U=!1,X=!1}else if(G===tN)U=!1}else if(Q+=I,Q===J&&!K.done)D.push(""),Q=0;q=K,K=F.next(),W+=G.length}if(Y=D.at(-1),!Q&&Y!==void 0&&Y.length&&D.length>1)D[D.length-2]+=D.pop()},um=(D)=>{let $=D.split(" "),J=$.length;while(J){if(n$($[J-1]))break;J--}if(J===$.length)return D;return $.slice(0,J).join(" ")+$.slice(J).join("")},gm=(D,$,J={})=>{if(J.trim!==!1&&D.trim()==="")return"";let F="",U,X,Y=D.split(" "),Q=[""],q=0;for(let G=0;G<Y.length;G++){let I=Y[G];if(J.trim!==!1){let Z=Q.at(-1)??"",H=Z.trimStart();if(Z.length!==H.length)Q[Q.length-1]=H,q=n$(H)}if(G!==0){if(q>=$&&(J.wordWrap===!1||J.trim===!1))Q.push(""),q=0;if(q||J.trim===!1)Q[Q.length-1]+=" ",q++}let z=n$(I);if(J.hard&&z>$){let Z=$-q,H=1+Math.floor((z-Z-1)/$);if(Math.floor((z-1)/$)<H)Q.push("");lY(Q,I,$),q=n$(Q.at(-1)??"");continue}if(q+z>$&&q&&z){if(J.wordWrap===!1&&q<$){lY(Q,I,$),q=n$(Q.at(-1)??"");continue}Q.push(""),q=0}if(q+z>$&&J.wordWrap===!1){lY(Q,I,$),q=n$(Q.at(-1)??"");continue}Q[Q.length-1]+=I,q+=z}if(J.trim!==!1)Q=Q.map((G)=>um(G));let K=Q.join(`
`),W=!1;for(let G=0;G<K.length;G++){let I=K[G];if(F+=I,!W){if(W=I>="\uD800"&&I<="\uDBFF",W)continue}else W=!1;if(I===R7||I===pN){iN.lastIndex=G+1;let Z=iN.exec(K)?.groups;if(Z?.code!==void 0){let H=Number.parseFloat(Z.code);U=H===km?void 0:H}else if(Z?.uri!==void 0)X=Z.uri.length===0?void 0:Z.uri}if(K[G+1]===`
`){if(X)F+=nN("");let z=U?dN(U):void 0;if(U&&z)F+=cN(z)}else if(I===`
`){if(U&&dN(U))F+=cN(U);if(X)F+=nN(X)}}return F},fm;var cY=S(()=>{mY();dY=`${Cm}8;;`,iN=new RegExp(`(?:\\${rN}(?<code>\\d+)m|\\${dY}(?<uri>.*)${iY})`,"y"),fm=/\r?\n/});var pY=u((bZD,oN)=>{var nY={to(D,$){if(!$)return`\x1B[${D+1}G`;return`\x1B[${$+1};${D+1}H`},move(D,$){let J="";if(D<0)J+=`\x1B[${-D}D`;else if(D>0)J+=`\x1B[${D}C`;if($<0)J+=`\x1B[${-$}A`;else if($>0)J+=`\x1B[${$}B`;return J},up:(D=1)=>`\x1B[${D}A`,down:(D=1)=>`\x1B[${D}B`,forward:(D=1)=>`\x1B[${D}C`,backward:(D=1)=>`\x1B[${D}D`,nextLine:(D=1)=>"\x1B[E".repeat(D),prevLine:(D=1)=>"\x1B[F".repeat(D),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},xm={up:(D=1)=>"\x1B[S".repeat(D),down:(D=1)=>"\x1B[T".repeat(D)},ym={screen:"\x1B[2J",up:(D=1)=>"\x1B[1J".repeat(D),down:(D=1)=>"\x1B[J".repeat(D),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(D){let $="";for(let J=0;J<D;J++)$+=this.line+(J<D-1?nY.up():"");if(D)$+=nY.left;return $}};oN.exports={cursor:nY,scroll:xm,erase:ym,beep:"\x07"}});import{styleText as M2}from"node:util";import{stdout as aY,stdin as DV}from"node:process";import*as $1 from"node:readline";import hm from"node:readline";import{ReadStream as aN}from"node:tty";function R2(D,$,J){if(!J.some((Y)=>!Y.disabled))return D;let F=D+$,U=Math.max(J.length-1,0),X=F<0?U:F>U?0:F;return J[X]?.disabled?R2(X,$<0?-1:1,J):X}function M7(D,$,J,F){let U=F.split(`
`),X=0,Y=D;for(let q of U){if(Y<=q.length)break;Y-=q.length+1,X++}for(X=Math.max(0,Math.min(U.length-1,X+J)),Y=Math.min(Y,U[X].length)+$;Y<0&&X>0;)X--,Y+=U[X].length+1;for(;Y>U[X].length&&X<U.length-1;)Y-=U[X].length+1,X++;Y=Math.max(0,Math.min(U[X].length,Y));let Q=0;for(let q=0;q<X;q++)Q+=U[q].length+1;return Q+Y}function sY(D,$){if(typeof D=="string")return O$.aliases.get(D)===$;for(let J of D)if(J!==void 0&&sY(J,$))return!0;return!1}function im(D,$){if(D===$)return;let J=D.split(`
`),F=$.split(`
`),U=Math.max(J.length,F.length),X=[];for(let Y=0;Y<U;Y++)J[Y]!==F[Y]&&X.push(Y);return{lines:X,numLinesBefore:J.length,numLinesAfter:F.length,numLines:U}}function e1(D){return D===tY}function E7(D,$){let J=D;J.isTTY&&J.setRawMode($)}function $V({input:D=DV,output:$=aY,overwrite:J=!0,hideCursor:F=!0}={}){let U=$1.createInterface({input:D,output:$,prompt:"",tabSize:1});$1.emitKeypressEvents(D,U),D instanceof aN&&D.isTTY&&D.setRawMode(!0);let X=(Y,{name:Q,sequence:q})=>{let K=String(Y);if(sY([K,Q,q],"cancel")){F&&$.write(y$.cursor.show),process.exit(0);return}if(!J)return;$1.moveCursor($,Q==="return"?0:-1,Q==="return"?-1:0,()=>{$1.clearLine($,1,()=>{D.once("keypress",X)})})};return F&&$.write(y$.cursor.hide),D.once("keypress",X),()=>{D.off("keypress",X),F&&$.write(y$.cursor.show),D instanceof aN&&D.isTTY&&!dm&&D.setRawMode(!1),U.terminal=!1,U.close()}}function x3(D,$,J,F=J,U=J,X){let Y=f3(D??aY);return T6($,Y-J.length,{hard:!0,trim:!1}).split(`
`).map((Q,q,K)=>{let W=X?X(Q,q):Q;return q===0?`${F}${W}`:q===K.length-1?`${U}${W}`:`${J}${W}`}).join(`
`)}function JV(D,$){if("~standard"in D){let J=D["~standard"].validate($);if(J instanceof Promise)throw TypeError("Schema validation must be synchronous. Update `validate()` and remove any asynchronous logic.");return J.issues?.at(0)?.message}return D($)}class b6{input;output;_abortSignal;rl;opts;_render;_track=!1;_prevFrame="";_subscribers=new Map;_cursor=0;state="initial";error="";value;userInput="";constructor(D,$=!0){let{input:J=DV,output:F=aY,render:U,signal:X,...Y}=D;this.opts=Y,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=U.bind(this),this._track=$,this._abortSignal=X,this.input=J,this.output=F}unsubscribe(){this._subscribers.clear()}setSubscriber(D,$){let J=this._subscribers.get(D)??[];J.push($),this._subscribers.set(D,J)}on(D,$){this.setSubscriber(D,{cb:$})}once(D,$){this.setSubscriber(D,{cb:$,once:!0})}emit(D,...$){let J=this._subscribers.get(D)??[],F=[];for(let U of J)U.cb(...$),U.once&&F.push(()=>J.splice(J.indexOf(U),1));for(let U of F)U()}prompt(){return new Promise((D)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),D(tY);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}this.rl=hm.createInterface({input:this.input,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),this.rl.prompt(),this.opts.initialUserInput!==void 0&&this._setUserInput(this.opts.initialUserInput,!0),this.input.on("keypress",this.onKeypress),E7(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(y$.cursor.show),this.output.off("resize",this.render),E7(this.input,!1),D(this.value)}),this.once("cancel",()=>{this.output.write(y$.cursor.show),this.output.off("resize",this.render),E7(this.input,!1),D(tY)})})}_isActionKey(D,$){return D==="\t"}_shouldSubmit(D,$){return!0}_setValue(D){this.value=D,this.emit("value",this.value)}_setUserInput(D,$){this.userInput=D??"",this.emit("userInput",this.userInput),$&&this._track&&this.rl&&(this.rl.write(this.userInput),this._cursor=this.rl.cursor)}_clearUserInput(){this.rl?.write(null,{ctrl:!0,name:"u"}),this._setUserInput("")}onKeypress(D,$){if(this._track&&$.name!=="return"&&($.name&&this._isActionKey(D,$)&&this.rl?.write(null,{ctrl:!0,name:"h"}),this._cursor=this.rl?.cursor??0,this._setUserInput(this.rl?.line)),this.state==="error"&&(this.state="active"),$?.name&&(!this._track&&O$.aliases.has($.name)&&this.emit("cursor",O$.aliases.get($.name)),O$.actions.has($.name)&&this.emit("cursor",$.name)),D&&(D.toLowerCase()==="y"||D.toLowerCase()==="n")&&this.emit("confirm",D.toLowerCase()==="y"),this.emit("key",D,$),$?.name==="return"&&this._shouldSubmit(D,$)){if(this.opts.validate){let J=JV(this.opts.validate,this.value);J&&(this.error=J instanceof Error?J.message:J,this.state="error",this.rl?.write(this.userInput))}this.state!=="error"&&(this.state="submit")}sY([D,$?.name,$?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
`),E7(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let D=T6(this._prevFrame,process.stdout.columns,{hard:!0,trim:!1}).split(`
`).length-1;this.output.write(y$.cursor.move(-999,D*-1))}render(){let D=T6(this._render(this)??"",process.stdout.columns,{hard:!0,trim:!1});if(D!==this._prevFrame){if(this.state==="initial")this.output.write(y$.cursor.hide);else{let $=im(this._prevFrame,D),J=eY(this.output);if(this.restoreCursor(),$){let F=Math.max(0,$.numLinesAfter-J),U=Math.max(0,$.numLinesBefore-J),X=$.lines.find((Y)=>Y>=F);if(X===void 0){this._prevFrame=D;return}if($.lines.length===1){this.output.write(y$.cursor.move(0,X-U)),this.output.write(y$.erase.lines(1));let Y=D.split(`
`);this.output.write(Y[X]),this._prevFrame=D,this.output.write(y$.cursor.move(0,Y.length-X-1));return}else if($.lines.length>1){if(F<U)X=F;else{let Q=X-U;Q>0&&this.output.write(y$.cursor.move(0,Q))}this.output.write(y$.erase.down());let Y=D.split(`
`).slice(X);this.output.write(Y.join(`
`)),this._prevFrame=D;return}}this.output.write(y$.erase.down())}this.output.write(D),this.state==="initial"&&(this.state="active"),this._prevFrame=D}}}function cm(D,$){if(D===void 0||$.length===0)return 0;let J=$.findIndex((F)=>F.value===D);return J!==-1?J:0}function nm(D,$){return($.label??String($.value)).toLowerCase().includes(D.toLowerCase())}function pm(D,$){if($)return D?$:$[0]}function sN(D){return[...D].map(($)=>tm[$])}function om(D){let $=new Intl.DateTimeFormat(D,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date(2000,0,15)),J=[],F="/";for(let U of $)U.type==="literal"?F=U.value.trim()||U.value:(U.type==="year"||U.type==="month"||U.type==="day")&&J.push({type:U.type,len:U.type==="year"?4:2});return{segments:J,separator:F}}function rY(D){return Number.parseInt((D||"0").replace(/_/g,"0"),10)||0}function A7(D){return{year:rY(D.year),month:rY(D.month),day:rY(D.day)}}function oY(D,$){return new Date(D||2001,$||1,0).getDate()}function FV(D){let{year:$,month:J,day:F}=A7(D);if(!$||$<0||$>9999||!J||J<1||J>12||!F||F<1)return;let U=new Date(Date.UTC($,J-1,F));if(!(U.getUTCFullYear()!==$||U.getUTCMonth()!==J-1||U.getUTCDate()!==F))return{year:$,month:J,day:F}}function eN(D){let $=FV(D);return $?new Date(Date.UTC($.year,$.month-1,$.day)):void 0}function am(D,$,J,F){let U=J?{year:J.getUTCFullYear(),month:J.getUTCMonth()+1,day:J.getUTCDate()}:null,X=F?{year:F.getUTCFullYear(),month:F.getUTCMonth()+1,day:F.getUTCDate()}:null;return D==="year"?{min:U?.year??1,max:X?.year??9999}:D==="month"?{min:U&&$.year===U.year?U.month:1,max:X&&$.year===X.year?X.month:12}:{min:U&&$.year===U.year&&$.month===U.month?U.day:1,max:X&&$.year===X.year&&$.month===X.month?X.day:oY($.year,$.month)}}var y$,mm,lm,O$,dm,tY,f3=(D)=>("columns"in D)&&typeof D.columns=="number"?D.columns:80,eY=(D)=>("rows"in D)&&typeof D.rows=="number"?D.rows:20,rm,DQ,tm,UV,sm,em,XV,YV,QV,$Q;var JQ=S(()=>{cY();y$=N0(pY(),1);mm=["up","down","left","right","space","enter","cancel"],lm=["January","February","March","April","May","June","July","August","September","October","November","December"],O$={actions:new Set(mm),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["\x03","cancel"],["escape","cancel"]]),messages:{cancel:"Canceled",error:"Something went wrong"},withGuide:!0,date:{monthNames:[...lm],messages:{required:"Please enter a valid date",invalidMonth:"There are only 12 months in a year",invalidDay:(D,$)=>`There are only ${D} days in ${$}`,afterMin:(D)=>`Date must be on or after ${D.toISOString().slice(0,10)}`,beforeMax:(D)=>`Date must be on or before ${D.toISOString().slice(0,10)}`}}};dm=globalThis.process.platform.startsWith("win"),tY=Symbol("clack:cancel");rm=class extends b6{filteredOptions;multiple;isNavigating=!1;selectedValues=[];focusedValue;#$=0;#U="";#D;#X;#Q;get cursor(){return this.#$}get userInputWithCursor(){if(!this.userInput)return M2(["inverse","hidden"],"_");if(this._cursor>=this.userInput.length)return`${this.userInput}█`;let $=this.userInput.slice(0,this.cursor),J=this.userInput.slice(this.cursor,this.cursor+1),F=this.userInput.slice(this.cursor+1);return`${$}${M2("inverse",J)}${F}`}get options(){return typeof this.#X=="function"?this.#X():this.#X}constructor($){super($),this.#X=$.options,this.#Q=$.placeholder;let J=this.options;this.filteredOptions=[...J],this.multiple=$.multiple===!0,this.#D=typeof $.options=="function"?$.filter:$.filter??nm;let F;if($.initialValue&&Array.isArray($.initialValue)?this.multiple?F=$.initialValue:F=$.initialValue.slice(0,1):!this.multiple&&this.options.length>0&&(F=[this.options[0]?.value]),F)for(let U of F){let X=J.findIndex((Y)=>Y.value===U);X!==-1&&(this.toggleSelected(U),this.#$=X)}this.focusedValue=this.options[this.#$]?.value,this.on("key",(U,X)=>this.#J(U,X)),this.on("userInput",(U)=>this.#F(U))}_isActionKey($,J){return $==="\t"||this.multiple&&this.isNavigating&&J.name==="space"&&$!==void 0&&$!==""}#J($,J){let F=J.name==="up",U=J.name==="down",X=J.name==="return",Y=this.userInput===""||this.userInput==="\t",Q=this.#Q,q=this.options,K=Q!==void 0&&Q!==""&&q.some((W)=>!W.disabled&&(this.#D?this.#D(Q,W):!0));if(J.name==="tab"&&Y&&K){this.userInput==="\t"&&this._clearUserInput(),this._setUserInput(Q,!0),this.isNavigating=!1;return}F||U?(this.#$=R2(this.#$,F?-1:1,this.filteredOptions),this.focusedValue=this.filteredOptions[this.#$]?.value,this.multiple||(this.selectedValues=[this.focusedValue]),this.isNavigating=!0):X?this.value=pm(this.multiple,this.selectedValues):this.multiple?this.focusedValue!==void 0&&(J.name==="tab"||this.isNavigating&&J.name==="space")?this.toggleSelected(this.focusedValue):this.isNavigating=!1:(this.focusedValue&&(this.selectedValues=[this.focusedValue]),this.isNavigating=!1)}deselectAll(){this.selectedValues=[]}toggleSelected($){this.filteredOptions.length!==0&&(this.multiple?this.selectedValues.includes($)?this.selectedValues=this.selectedValues.filter((J)=>J!==$):this.selectedValues=[...this.selectedValues,$]:this.selectedValues=[$])}#F($){if($!==this.#U){this.#U=$;let J=this.options;$&&this.#D?this.filteredOptions=J.filter((X)=>this.#D?.($,X)):this.filteredOptions=[...J];let F=cm(this.focusedValue,this.filteredOptions);this.#$=R2(F,0,this.filteredOptions);let U=this.filteredOptions[this.#$];U&&!U.disabled?this.focusedValue=U.value:this.focusedValue=void 0,this.multiple||(this.focusedValue!==void 0?this.toggleSelected(this.focusedValue):this.deselectAll())}}};DQ=class DQ extends b6{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(D){super(D,!1),this.value=!!D.initialValue,this.on("userInput",()=>{this.value=this._value}),this.on("confirm",($)=>{this.output.write(y$.cursor.move(0,-1)),this.value=$,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}};tm={Y:{type:"year",len:4},M:{type:"month",len:2},D:{type:"day",len:2}};UV=class UV extends b6{#$;#U;#D;#X;#Q;#J={segmentIndex:0,positionInSegment:0};#F=!0;#Y=null;inlineError="";get segmentCursor(){return{...this.#J}}get segmentValues(){return{...this.#D}}get segments(){return this.#$}get separator(){return this.#U}get formattedValue(){return this.#G(this.#D)}#G(D){return this.#$.map(($)=>D[$.type]).join(this.#U)}#q(){this._setUserInput(this.#G(this.#D)),this._setValue(eN(this.#D)??void 0)}constructor(D){let $=D.format?{segments:sN(D.format),separator:D.separator??"/"}:om(D.locale),J=D.separator??$.separator,F=D.format?sN(D.format):$.segments,U=D.initialValue??D.defaultValue,X=U?{year:String(U.getUTCFullYear()).padStart(4,"0"),month:String(U.getUTCMonth()+1).padStart(2,"0"),day:String(U.getUTCDate()).padStart(2,"0")}:{year:"____",month:"__",day:"__"},Y=F.map((Q)=>X[Q.type]).join(J);super({...D,initialUserInput:Y},!1),this.#$=F,this.#U=J,this.#D=X,this.#X=D.minDate,this.#Q=D.maxDate,this.#q(),this.on("cursor",(Q)=>this.#Z(Q)),this.on("key",(Q,q)=>this.#H(Q,q)),this.on("finalize",()=>this.#B(D))}#K(){let D=Math.max(0,Math.min(this.#J.segmentIndex,this.#$.length-1)),$=this.#$[D];if($)return this.#J.positionInSegment=Math.max(0,Math.min(this.#J.positionInSegment,$.len-1)),{segment:$,index:D}}#W(D){this.inlineError="",this.#Y=null;let $=this.#K();$&&(this.#J.segmentIndex=Math.max(0,Math.min(this.#$.length-1,$.index+D)),this.#J.positionInSegment=0,this.#F=!0)}#I(D){let $=this.#K();if(!$)return;let{segment:J}=$,F=this.#D[J.type],U=!F||F.replace(/_/g,"")==="",X=Number.parseInt((F||"0").replace(/_/g,"0"),10)||0,Y=am(J.type,A7(this.#D),this.#X,this.#Q),Q;U?Q=D===1?Y.min:Y.max:Q=Math.max(Math.min(Y.max,X+D),Y.min),this.#D={...this.#D,[J.type]:Q.toString().padStart(J.len,"0")},this.#F=!0,this.#Y=null,this.#q()}#Z(D){if(D)switch(D){case"right":return this.#W(1);case"left":return this.#W(-1);case"up":return this.#I(1);case"down":return this.#I(-1)}}#H(D,$){if($?.name==="backspace"||$?.sequence===""||$?.sequence==="\b"||D===""||D==="\b"){this.inlineError="";let J=this.#K();if(!J)return;if(!this.#D[J.segment.type].replace(/_/g,"")){this.#W(-1);return}this.#D[J.segment.type]="_".repeat(J.segment.len),this.#F=!0,this.#J.positionInSegment=0,this.#q();return}if($?.name==="tab"){this.inlineError="";let J=this.#K();if(!J)return;let F=$.shift?-1:1,U=J.index+F;U>=0&&U<this.#$.length&&(this.#J.segmentIndex=U,this.#J.positionInSegment=0,this.#F=!0);return}if(D&&/^[0-9]$/.test(D)){let J=this.#K();if(!J)return;let{segment:F}=J,U=!this.#D[F.type].replace(/_/g,"");if(this.#F&&this.#Y!==null&&!U){let I=this.#Y+D,z={...this.#D,[F.type]:I},Z=this.#z(z,F);if(Z){this.inlineError=Z,this.#Y=null,this.#F=!1;return}this.inlineError="",this.#D[F.type]=I,this.#Y=null,this.#F=!1,this.#q(),J.index<this.#$.length-1&&(this.#J.segmentIndex=J.index+1,this.#J.positionInSegment=0,this.#F=!0);return}this.#F&&!U&&(this.#D[F.type]="_".repeat(F.len),this.#J.positionInSegment=0),this.#F=!1,this.#Y=null;let X=this.#D[F.type],Y=X.indexOf("_"),Q=Y>=0?Y:Math.min(this.#J.positionInSegment,F.len-1);if(Q<0||Q>=F.len)return;let q=X.slice(0,Q)+D+X.slice(Q+1),K=!1;if(Q===0&&X==="__"&&(F.type==="month"||F.type==="day")){let I=Number.parseInt(D,10);q=`0${D}`,K=I<=(F.type==="month"?1:2)}if(F.type==="year"&&(q=(X.replace(/_/g,"")+D).padStart(F.len,"_")),!q.includes("_")){let I={...this.#D,[F.type]:q},z=this.#z(I,F);if(z){this.inlineError=z;return}}this.inlineError="",this.#D[F.type]=q;let W=q.includes("_")?void 0:FV(this.#D);if(W){let{year:I,month:z}=W,Z=oY(I,z);this.#D={year:String(Math.max(0,Math.min(9999,I))).padStart(4,"0"),month:String(Math.max(1,Math.min(12,z))).padStart(2,"0"),day:String(Math.max(1,Math.min(Z,W.day))).padStart(2,"0")}}this.#q();let G=q.indexOf("_");K?(this.#F=!0,this.#Y=D):G>=0?this.#J.positionInSegment=G:Y>=0&&J.index<this.#$.length-1?(this.#J.segmentIndex=J.index+1,this.#J.positionInSegment=0,this.#F=!0):this.#J.positionInSegment=Math.min(Q+1,F.len-1)}}#z(D,$){let{month:J,day:F}=A7(D);if($.type==="month"&&(J<0||J>12))return O$.date.messages.invalidMonth;if($.type==="day"&&(F<0||F>31))return O$.date.messages.invalidDay(31,"any month")}#B(D){let{year:$,month:J,day:F}=A7(this.#D);if($&&J&&F){let U=oY($,J);this.#D={...this.#D,day:String(Math.min(F,U)).padStart(2,"0")}}this.value=eN(this.#D)??D.defaultValue??void 0}};sm=class extends b6{options;cursor=0;#$;getGroupItems($){return this.options.filter((J)=>J.group===$)}isGroupSelected($){let J=this.getGroupItems($),F=this.value;return F===void 0?!1:J.every((U)=>F.includes(U.value))}toggleValue(){let $=this.options[this.cursor];if($!==void 0)if(this.value===void 0&&(this.value=[]),$.group===!0){let J=$.value,F=this.getGroupItems(J);this.isGroupSelected(J)?this.value=this.value.filter((U)=>F.findIndex((X)=>X.value===U)===-1):this.value=[...this.value,...F.map((U)=>U.value)],this.value=Array.from(new Set(this.value))}else{let J=this.value.includes($.value);this.value=J?this.value.filter((F)=>F!==$.value):[...this.value,$.value]}}constructor($){super($,!1);let{options:J}=$;this.#$=$.selectableGroups!==!1,this.options=Object.entries(J).flatMap(([F,U])=>[{value:F,group:!0,label:F},...U.map((X)=>({...X,group:F}))]),this.value=[...$.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:F})=>F===$.cursorAt),this.#$?0:1),this.on("cursor",(F)=>{switch(F){case"left":case"up":{this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;let U=this.options[this.cursor]?.group===!0;!this.#$&&U&&(this.cursor=this.cursor===0?this.options.length-1:this.cursor-1);break}case"down":case"right":{this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;let U=this.options[this.cursor]?.group===!0;!this.#$&&U&&(this.cursor=this.cursor===this.options.length-1?0:this.cursor+1);break}case"space":this.toggleValue();break}})}},em=new Set(["up","down","left","right"]);XV=class XV extends b6{#$=!1;#U;focused="editor";get userInputWithCursor(){if(this.state==="submit")return this.userInput;let D=this.userInput;if(this.cursor>=D.length)return`${D}█`;let $=D.slice(0,this.cursor),J=D.slice(this.cursor,this.cursor+1),F=D.slice(this.cursor+1);return J===`
`?`${$}█
${F}`:`${$}${M2("inverse",J)}${F}`}get cursor(){return this._cursor}#D(D){if(this.userInput.length===0){this._setUserInput(D);return}this._setUserInput(this.userInput.slice(0,this.cursor)+D+this.userInput.slice(this.cursor))}#X(D){let $=this.value??"";switch(D){case"up":this._cursor=M7(this._cursor,0,-1,$);return;case"down":this._cursor=M7(this._cursor,0,1,$);return;case"left":this._cursor=M7(this._cursor,-1,0,$);return;case"right":this._cursor=M7(this._cursor,1,0,$);return}}_shouldSubmit(D,$){if(this.#U)return this.focused==="submit"?!0:(this.#D(`
`),this._cursor++,!1);let J=this.#$;return this.#$=!0,J&&this.cursor===this.userInput.length?(this.userInput[this.cursor-1]===`
`&&(this._setUserInput(this.userInput.slice(0,this.cursor-1)+this.userInput.slice(this.cursor)),this._cursor--),!0):(this.#D(`
`),this._cursor++,!1)}constructor(D){let $=D.initialUserInput??D.initialValue;super({...D,initialUserInput:$},!1),$!==void 0&&(this._cursor=$.length),this.#U=D.showSubmit??!1,this.on("key",(J,F)=>{if(F?.name&&em.has(F.name)){this.#$=!1,this.#X(F.name);return}if(J==="\t"&&this.#U){this.focused=this.focused==="editor"?"submit":"editor";return}if(F?.name!=="return"){if(this.#$=!1,F?.name==="backspace"&&this.cursor>0){this._setUserInput(this.userInput.slice(0,this.cursor-1)+this.userInput.slice(this.cursor)),this._cursor--;return}if(F?.name==="delete"&&this.cursor<this.userInput.length){this._setUserInput(this.userInput.slice(0,this.cursor)+this.userInput.slice(this.cursor+1));return}J&&(this.#U&&this.focused==="submit"&&(this.focused="editor"),this.#D(J??""),this._cursor++)}}),this.on("userInput",(J)=>{this._setValue(J)}),this.on("finalize",()=>{this.value||(this.value=D.defaultValue),this.value===void 0&&(this.value="")})}};YV=class extends b6{_mask="•";get cursor(){return this._cursor}get masked(){return this.userInput.replaceAll(/./g,this._mask)}get userInputWithCursor(){if(this.state==="submit"||this.state==="cancel")return this.masked;let $=this.userInput;if(this.cursor>=$.length)return`${this.masked}${M2(["inverse","hidden"],"_")}`;let J=this.masked,F=J.slice(0,this.cursor),U=J.slice(this.cursor,this.cursor+1),X=J.slice(this.cursor+1);return`${F}${M2("inverse",U)}${X}`}clear(){this._clearUserInput()}constructor({mask:$,...J}){super(J),this._mask=$??"•",this.on("userInput",(F)=>{this._setValue(F)}),this.on("finalize",()=>{this.value===void 0&&(this.value="")})}},QV=class extends b6{options;cursor=0;get _selectedValue(){return this.options[this.cursor]}changeValue(){let $=this._selectedValue;this.value=$===void 0?void 0:$.value}constructor($){super($,!1),this.options=$.options;let J=this.options.findIndex(({value:U})=>U===$.initialValue),F=J===-1?0:J;this.cursor=this.options[F]?.disabled?R2(F,1,this.options):F,this.changeValue(),this.on("cursor",(U)=>{switch(U){case"left":case"up":this.cursor=R2(this.cursor,-1,this.options);break;case"down":case"right":this.cursor=R2(this.cursor,1,this.options);break}this.changeValue()})}};$Q=class $Q extends b6{get userInputWithCursor(){if(this.state==="submit")return this.userInput;let D=this.userInput;if(this.cursor>=D.length)return`${this.userInput}█`;let $=D.slice(0,this.cursor),J=D.slice(this.cursor,this.cursor+1),F=D.slice(this.cursor+1);return`${$}${M2("inverse",J)}${F}`}get cursor(){return this._cursor}constructor(D){super({...D,initialUserInput:D.initialUserInput??D.initialValue}),this.on("userInput",($)=>{this._setValue($)}),this.on("finalize",()=>{this.value||(this.value=D.defaultValue),this.value===void 0&&(this.value="")})}}});import{styleText as r,stripVTControlCharacters as mZD}from"node:util";import t0 from"node:process";function Dl(){if(t0.platform!=="win32")return t0.env.TERM!=="linux";return Boolean(t0.env.CI)||Boolean(t0.env.WT_SESSION)||Boolean(t0.env.TERMINUS_SUBLIME)||t0.env.ConEmuTask==="{cmd::Cmder}"||t0.env.TERM_PROGRAM==="Terminus-Sublime"||t0.env.TERM_PROGRAM==="vscode"||t0.env.TERM==="xterm-256color"||t0.env.TERM==="alacritty"||t0.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}function Bl(D,$){let J=[`${$?`${r("cyan",SD)} `:""}${D.join(" • ")}`];return $&&J.push(r("cyan",q6)),J}function KV(D,$,J,F){let U=J,X=J;return F==="center"?U=Math.floor(($-D)/2):F==="right"&&(U=$-D-J),X=$-U-D,[U,X]}var y3,FQ,$l=()=>process.env.CI==="true",cD=(D,$)=>FQ?D:$,Jl,WV,GV,XQ,IV,SD,q6,Fl,Ul,UQ,T7,cZD,nZD,pZD,Xl,Yl,Ql,rZD,ql,Kl,Wl,Gl,Il,zl,Zl,b7=(D)=>{switch(D){case"initial":case"active":return r("cyan",Jl);case"cancel":return r("red",WV);case"error":return r("yellow",GV);case"submit":return r("green",XQ)}},Hl=(D)=>{switch(D){case"initial":case"active":return r("cyan",SD);case"cancel":return r("red",SD);case"error":return r("yellow",SD);case"submit":return r("green",SD)}},qV=(D,$,J,F,U,X=!1)=>{let Y=$,Q=0;if(X)for(let q=F-1;q>=J;q--){let K=D[q];if(K&&(Y-=K.length),Q++,Y<=U)break}else for(let q=J;q<F;q++){let K=D[q];if(K&&(Y-=K.length),Q++,Y<=U)break}return{lineCount:Y,removals:Q}},Ol=({cursor:D,options:$,style:J,output:F=process.stdout,maxItems:U=Number.POSITIVE_INFINITY,columnPadding:X=0,rowPadding:Y=4})=>{let Q=f3(F)-X,q=eY(F),K=r("dim","..."),W=Math.max(q-Y,0),G=Math.max(Math.min(U,W),5),I=0;D>=G-3&&(I=Math.max(Math.min(D-G+3,$.length-G),0));let z=G<$.length&&I>0,Z=G<$.length&&I+G<$.length,H=Math.min(I+G,$.length),B=[],j=0;z&&j++,Z&&j++;let N=I+(z?1:0),O=H-(Z?1:0);for(let A=N;A<O;A++){let E=$[A],_=E?J(E,A===D):"",k=T6(_,Q,{hard:!0,trim:!1}).split(`
`);B.push(k),j+=k.length}if(j>W){let A=0,E=0,_=j,k=D-N,C=W,y=()=>qV(B,_,0,k,C),v=()=>qV(B,_,k+1,B.length,C,!0);z?({lineCount:_,removals:A}=y(),_>C&&(Z||(C-=1),{lineCount:_,removals:E}=v())):(Z||(C-=1),{lineCount:_,removals:E}=v(),_>C&&(C-=1,{lineCount:_,removals:A}=y())),A>0&&(z=!0,B.splice(0,A)),E>0&&(Z=!0,B.splice(B.length-E,E))}let L=[];z&&L.push(K);for(let A of B)for(let E of A)L.push(E);return Z&&L.push(K),L},jl,Nl,Vl=(D)=>D,tZD=(D="",$="",J)=>{let F=J?.output??process.stdout,U=f3(F),Y=J?.titlePadding??1,Q=J?.contentPadding??2,q=J?.width===void 0||J.width==="auto"?1:Math.min(1,J.width),K=J?.withGuide??O$.withGuide?`${SD} `:"",W=J?.formatBorder??Vl,G=((J?.rounded)?jl:Nl).map(W),I=W(Yl),z=W(SD),Z=n$(K),H=n$($),B=U-Z,j=Math.floor(U*q)-Z;if(J?.width==="auto"){let C=D.split(`
`),y=H+Y*2;for(let i of C){let c=n$(i)+Q*2;c>y&&(y=c)}let v=y+2;v<j&&(j=v)}j%2!==0&&(j<B?j++:j--);let N=j-2,O=N-Y*2,L=H>O?`${$.slice(0,O-3)}...`:$,[A,E]=KV(n$(L),N,Y,J?.titleAlign),_=T6(D,N-Q*2,{hard:!0,trim:!1});F.write(`${K}${G[0]}${I.repeat(A)}${L}${I.repeat(E)}${G[1]}
`);let k=_.split(`
`);for(let C of k){let[y,v]=KV(n$(C),N,Q,J?.contentAlign);F.write(`${K}${z}${" ".repeat(y)}${C}${" ".repeat(v)}${z}
`)}F.write(`${K}${G[2]}${I.repeat(N)}${G[3]}
`)},J1=(D)=>{let $=D.active??"Yes",J=D.inactive??"No";return new DQ({active:$,inactive:J,signal:D.signal,input:D.input,output:D.output,initialValue:D.initialValue??!0,render(){let F=D.withGuide??O$.withGuide,U=`${b7(this.state)} `,X=F?`${r("gray",SD)} `:"",Y=x3(D.output,D.message,X,U),Q=`${F?`${r("gray",SD)}
`:""}${Y}
`,q=this.value?$:J;switch(this.state){case"submit":{let K=F?`${r("gray",SD)} `:"";return`${Q}${K}${r("dim",q)}`}case"cancel":{let K=F?`${r("gray",SD)} `:"";return`${Q}${K}${r(["strikethrough","dim"],q)}${F?`
${r("gray",SD)}`:""}`}default:{let K=F?`${r("cyan",SD)} `:"",W=F?r("cyan",q6):"";return`${Q}${K}${this.value?`${r("green",UQ)} ${$}`:`${r("dim",T7)} ${r("dim",$)}`}${D.vertical?F?`
${r("cyan",SD)} `:`
`:` ${r("dim","/")} `}${this.value?`${r("dim",T7)} ${r("dim",J)}`:`${r("green",UQ)} ${J}`}
${W}
`}}}}).prompt()},oZD,zD,aZD=(D="",$)=>{let J=$?.output??process.stdout,F=$?.withGuide??O$.withGuide?`${r("gray",q6)} `:"";J.write(`${F}${r("red",D)}
`)},E2=(D="",$)=>{let J=$?.output??process.stdout,F=$?.withGuide??O$.withGuide?`${r("gray",IV)} `:"";J.write(`${F}${D}
`)},D4=(D="",$)=>{let J=$?.output??process.stdout,F=$?.withGuide??O$.withGuide?`${r("gray",SD)}
${r("gray",q6)} `:"";J.write(`${F}${D}
`)},sZD=(D)=>new YV({validate:D.validate,mask:D.mask??Xl,signal:D.signal,input:D.input,output:D.output,render(){let $=D.withGuide??O$.withGuide,J=`${$?`${r("gray",SD)}
`:""}${b7(this.state)} ${D.message}
`,F=this.userInputWithCursor,U=this.masked;switch(this.state){case"error":{let X=$?`${r("yellow",SD)} `:"",Y=$?`${r("yellow",q6)} `:"",Q=U??"";return D.clearOnError&&this.clear(),`${J.trim()}
${X}${Q}
${Y}${r("yellow",this.error)}
`}case"submit":{let X=$?`${r("gray",SD)} `:"",Y=U?r("dim",U):"";return`${J}${X}${Y}`}case"cancel":{let X=$?`${r("gray",SD)} `:"",Y=U?r(["strikethrough","dim"],U):"";return`${J}${X}${Y}${U&&$?`
${r("gray",SD)}`:""}`}default:{let X=$?`${r("cyan",SD)} `:"",Y=$?r("cyan",q6):"";return`${J}${X}${F}
${Y}
`}}}}).prompt(),Ll=(D)=>r("magenta",D),F1=({indicator:D="dots",onCancel:$,output:J=process.stdout,cancelMessage:F,errorMessage:U,frames:X=FQ?["◒","◐","◓","◑"]:["•","o","O","0"],delay:Y=FQ?80:120,signal:Q,...q}={})=>{let K=$l(),W,G,I=!1,z=!1,Z="",H,B=performance.now(),j=f3(J),N=q?.styleFrame??Ll,O=(n)=>{let t=n>1?U??O$.messages.error:F??O$.messages.cancel;z=n===1,I&&(c(t,n),z&&typeof $=="function"&&$())},L=()=>O(2),A=()=>O(1),E=()=>{process.on("uncaughtExceptionMonitor",L),process.on("unhandledRejection",L),process.on("SIGINT",A),process.on("SIGTERM",A),process.on("exit",O),Q&&Q.addEventListener("abort",A)},_=()=>{process.removeListener("uncaughtExceptionMonitor",L),process.removeListener("unhandledRejection",L),process.removeListener("SIGINT",A),process.removeListener("SIGTERM",A),process.removeListener("exit",O),Q&&Q.removeEventListener("abort",A)},k=()=>{if(H===void 0)return;K&&J.write(`
`);let n=T6(H,j,{hard:!0,trim:!1}).split(`
`);n.length>1&&J.write(y3.cursor.up(n.length-1)),J.write(y3.cursor.to(0)),J.write(y3.erase.down())},C=(n)=>n.replace(/\.+$/,""),y=(n)=>{let t=(performance.now()-n)/1000,R=Math.floor(t/60),V=Math.floor(t%60);return R>0?`[${R}m ${V}s]`:`[${V}s]`},v=q.withGuide??O$.withGuide,i=(n="")=>{I=!0,W=$V({output:J}),Z=C(n),B=performance.now(),v&&J.write(`${r("gray",SD)}
`);let t=0,R=0;E(),G=setInterval(()=>{if(K&&Z===H)return;k(),H=Z;let V=N(X[t]),w;if(K)w=`${V} ${Z}...`;else if(D==="timer")w=`${V} ${Z} ${y(B)}`;else{let x=".".repeat(Math.floor(R)).slice(0,3);w=`${V} ${Z}${x}`}let b=T6(w,j,{hard:!0,trim:!1});J.write(b),t=t+1<X.length?t+1:0,R=R<4?R+0.125:0},Y)},c=(n="",t=0,R=!1)=>{if(!I)return;I=!1,clearInterval(G),k();let V=t===0?r("green",XQ):t===1?r("red",WV):r("red",GV);Z=n??Z,R||(D==="timer"?J.write(`${V} ${Z} ${y(B)}
`):J.write(`${V} ${Z}
`)),_(),W()};return{start:i,stop:(n="")=>c(n,0),message:(n="")=>{Z=C(n??Z)},cancel:(n="")=>c(n,1),error:(n="")=>c(n,2),clear:()=>c("",0,!0),get isCancelled(){return z}}},eZD,wl,v7=(D,$)=>D.includes(`
`)?D.split(`
`).map((J)=>$(J)).join(`
`):$(D),zV=(D)=>{let $=(F,U)=>{if(F===void 0)return"";let X=F.label??String(F.value);switch(U){case"disabled":return`${r("gray",T7)} ${v7(X,(Y)=>r("gray",Y))}${F.hint?` ${r("dim",`(${F.hint??"disabled"})`)}`:""}`;case"selected":return`${v7(X,(Y)=>r("dim",Y))}`;case"active":return`${r("green",UQ)} ${X}${F.hint?` ${r("dim",`(${F.hint})`)}`:""}`;case"cancelled":return`${v7(X,(Y)=>r(["strikethrough","dim"],Y))}`;default:return`${r("dim",T7)} ${v7(X,(Y)=>r("dim",Y))}`}},J=D.showInstructions??!0;return new QV({options:D.options,signal:D.signal,input:D.input,output:D.output,initialValue:D.initialValue,render(){let F=D.withGuide??O$.withGuide,U=`${b7(this.state)} `,X=`${Hl(this.state)} `,Y=x3(D.output,D.message,X,U),Q=`${F?`${r("gray",SD)}
`:""}${Y}
`;switch(this.state){case"submit":{let q=F?`${r("gray",SD)} `:"",K=x3(D.output,$(this.options[this.cursor],"selected"),q);return`${Q}${K}`}case"cancel":{let q=F?`${r("gray",SD)} `:"",K=x3(D.output,$(this.options[this.cursor],"cancelled"),q);return`${Q}${K}${F?`
${r("gray",SD)}`:""}`}default:{let q=F?`${r("cyan",SD)} `:"",K=Q.split(`
`).length,W=J?Bl(wl,F):F?[r("cyan",q6)]:[],G=W.join(`
`),I=W.length+1;return`${Q}${q}${Ol({output:D.output,cursor:this.cursor,options:this.options,maxItems:D.maxItems,columnPadding:q.length,rowPadding:K+I,style:(z,Z)=>$(z,z.disabled?"disabled":Z?"active":"inactive")}).join(`
${q}`)}
${G}
`}}}}).prompt()},DHD,$HD=(D)=>new $Q({validate:D.validate,placeholder:D.placeholder,defaultValue:D.defaultValue,initialValue:D.initialValue,output:D.output,signal:D.signal,input:D.input,render(){let $=D?.withGuide??O$.withGuide,J=`${`${$?`${r("gray",SD)}
`:""}${b7(this.state)} `}${D.message}
`,F=D.placeholder&&D.placeholder.length>0?r("inverse",D.placeholder[0])+r("dim",D.placeholder.slice(1)):r(["inverse","hidden"],"_"),U=this.userInput?this.userInputWithCursor:F,X=this.value??"";switch(this.state){case"error":{let Y=this.error?` ${r("yellow",this.error)}`:"",Q=$?`${r("yellow",SD)} `:"",q=$?r("yellow",q6):"";return`${J.trim()}
${Q}${U}
${q}${Y}
`}case"submit":{let Y=X?` ${r("dim",X)}`:"",Q=$?r("gray",SD):"";return`${J}${Q}${Y}`}case"cancel":{let Y=X?` ${r(["strikethrough","dim"],X)}`:"",Q=$?r("gray",SD):"";return`${J}${Q}${Y}${X.trim()?`
${Q}`:""}`}default:{let Y=$?`${r("cyan",SD)} `:"",Q=$?r("cyan",q6):"";return`${J}${Y}${U}
${Q}
`}}}}).prompt();var P6=S(()=>{JQ();JQ();cY();mY();y3=N0(pY(),1);FQ=Dl(),Jl=cD("◆","*"),WV=cD("■","x"),GV=cD("▲","x"),XQ=cD("◇","o"),IV=cD("┌","T"),SD=cD("│","|"),q6=cD("└","—"),Fl=cD("┐","T"),Ul=cD("┘","—"),UQ=cD("●",">"),T7=cD("○"," "),cZD=cD("◻","[•]"),nZD=cD("◼","[+]"),pZD=cD("◻","[ ]"),Xl=cD("▪","•"),Yl=cD("─","-"),Ql=cD("╮","+"),rZD=cD("├","+"),ql=cD("╯","+"),Kl=cD("╰","+"),Wl=cD("╭","+"),Gl=cD("●","•"),Il=cD("◆","*"),zl=cD("▲","!"),Zl=cD("■","x");jl=[Wl,Ql,Kl,ql],Nl=[IV,Fl,q6,Ul];oZD=[`${r("dim","↑/↓")} to navigate`,`${r("dim","Space:")} select`,`${r("dim","Enter:")} confirm`],zD={message:(D=[],{symbol:$=r("gray",SD),secondarySymbol:J=r("gray",SD),output:F=process.stdout,spacing:U=1,withGuide:X}={})=>{let Y=[],Q=X??O$.withGuide,q=Q?J:"",K=Q?`${$} `:"",W=Q?`${J} `:"";for(let I=0;I<U;I++)Y.push(q);let G=Array.isArray(D)?D:D.split(`
`);if(G.length>0){let[I,...z]=G;I.length>0?Y.push(`${K}${I}`):Y.push(Q?$:"");for(let Z of z)Z.length>0?Y.push(`${W}${Z}`):Y.push(Q?J:"")}F.write(`${Y.join(`
`)}
`)},info:(D,$)=>{zD.message(D,{...$,symbol:r("blue",Gl)})},success:(D,$)=>{zD.message(D,{...$,symbol:r("green",Il)})},step:(D,$)=>{zD.message(D,{...$,symbol:r("green",XQ)})},warn:(D,$)=>{zD.message(D,{...$,symbol:r("yellow",zl)})},warning:(D,$)=>{zD.warn(D,$)},error:(D,$)=>{zD.message(D,{...$,symbol:r("red",Zl)})}},eZD={light:cD("─","-"),heavy:cD("━","="),block:cD("█","#")},wl=[`${r("dim","↑/↓")} to navigate`,`${r("dim","Enter:")} confirm`],DHD=`${r("gray",SD)} `});function P7(D,$){if(isNaN(D)||isNaN($))throw Error("Cannot compare against non-numbers");return D===$?0:D<$?-1:1}function BV(D=[],$=[]){if(D.length&&!$.length)return-1;if(!D.length&&$.length)return 1;return 0}function S7(D=[],$=[]){let J=Math.max(D.length,$.length);for(let F=0;F<J;F++){let U=D[F],X=$[F];if(U===void 0&&X===void 0)return 0;if(X===void 0)return 1;if(U===void 0)return-1;if(typeof U==="string"&&typeof X==="number")return 1;if(typeof U==="number"&&typeof X==="string")return-1;if(U<X)return-1;if(U>X)return 1}return 0}function QQ(D){return typeof D==="number"&&!Number.isNaN(D)&&(!Number.isFinite(D)||0<=D&&D<=Number.MAX_SAFE_INTEGER)}function G0(D){return D.split(".").filter(Boolean).map(($)=>{if(Al.test($)){let J=Number($);if(QQ(J))return J}return $})}function K6(D){return D.split(".").filter(Boolean)}function k7(D,$){let J=Number(D);if(!QQ(J))throw TypeError($);return J}function S6(D){return Number.isNaN(D.major)&&Number.isNaN(D.minor)&&Number.isNaN(D.patch)&&(D.prerelease===void 0||D.prerelease.length===0)&&(D.build===void 0||D.build.length===0)}var A2="0|[1-9]\\d*",Rl="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Ml,ZV,OV,HV="[0-9A-Za-z-]+",jV,NV,VV,LV="(?:<|>)?=?",El="x|X|\\*",YQ,_7,wV,RV,qQ=256,Al;var V0=S(()=>{Ml=`(?<major>${A2})\\.(?<minor>${A2})\\.(?<patch>${A2})`,ZV=`(?:${A2}|${Rl})`,OV=`(?:-(?<prerelease>${ZV}(?:\\.${ZV})*))`,jV=`(?:\\+(?<buildmetadata>${HV}(?:\\.${HV})*))`,NV=`v?${Ml}${OV}?${jV}?`,VV=new RegExp(`^${NV}$`),YQ=`${A2}|${El}`,_7=`[v=\\s]*(?<major>${YQ})(?:\\.(?<minor>${YQ})(?:\\.(?<patch>${YQ})${OV}?${jV}?)?)?`,wV=new RegExp(`^(?<operator>~>?|\\^|${LV})\\s*${_7}$`),RV=new RegExp(`^(?<operator>${LV})\\s*(${NV})$|^$`);Al=new RegExp(`^${A2}$`)});function p$(D,$){if(D===$)return 0;return P7(D.major,$.major)||P7(D.minor,$.minor)||P7(D.patch,$.patch)||BV(D.prerelease,$.prerelease)||S7(D.prerelease,$.prerelease)}var f0=S(()=>{V0()});function qHD(D,$){let J=D.prerelease?.length||$.prerelease?.length;if(D.major!==$.major)return J?"premajor":"major";if(D.minor!==$.minor)return J?"preminor":"minor";if(D.patch!==$.patch)return J?"prepatch":"patch";if(S7(D.prerelease,$.prerelease)!==0)return"prerelease"}var MV=S(()=>{V0()});function KQ(D){return D.toFixed(0)}function WQ(D){let $=KQ(D.major),J=KQ(D.minor),F=KQ(D.patch),U=D.prerelease?.join(".")??"",X=D.build?.join(".")??"";return[[`${$}.${J}.${F}`,U].filter((q)=>q).join("-"),X].filter((q)=>q).join("+")}function vl(D,$){if(S6($))return!0;let J=p$(D,$);switch($.operator){case"=":case void 0:return J===0;case"!=":return J!==0;case">":return J>0;case"<":return J<0;case">=":return J>=0;case"<=":return J<=0}}function C7(D,$){for(let J of $)if(!vl(D,J))return!1;if(!D.prerelease?.length)return!0;for(let J of $){if(S6(J))continue;if(!J.prerelease?.length)continue;let{major:F,minor:U,patch:X}=J;if(D.major===F&&D.minor===U&&D.patch===X)return!0}return!1}var u7=S(()=>{V0();f0()});function h3(D,$){return $.some((J)=>C7(D,J))}var m3=S(()=>{u7()});function Tl(D=[]){let $=[...D],J=$.length;while(J>=0){let F=$[J];if(typeof F==="number"){$[J]=F+1;break}J-=1}if(J===-1)$.push(0);return $}function l3(D=[],$){let J=Tl(D);if(!$)return J;let F=G0($);if(F.every((U)=>typeof U==="string")){if(F.every((U,X)=>U===J[X])&&typeof J[F.length]==="number")return J;F=[...F,0]}return F}function OHD(D,$,J={}){let F=J.build!==void 0?K6(J.build):D.build??[];switch($){case"premajor":return{major:D.major+1,minor:0,patch:0,prerelease:l3(D.prerelease,J.prerelease),build:F};case"preminor":return{major:D.major,minor:D.minor+1,patch:0,prerelease:l3(D.prerelease,J.prerelease),build:F};case"prepatch":return{major:D.major,minor:D.minor,patch:D.patch+1,prerelease:l3(D.prerelease,J.prerelease),build:F};case"prerelease":{let X=(D.prerelease??[]).length===0?D.patch+1:D.patch;return{major:D.major,minor:D.minor,patch:X,prerelease:l3(D.prerelease,J.prerelease),build:F}}case"major":return{major:(D.prerelease??[]).length===0||D.minor!==0||D.patch!==0?D.major+1:D.major,minor:0,patch:0,prerelease:[],build:F};case"minor":{let X=(D.prerelease??[]).length===0||D.patch!==0?D.minor+1:D.minor;return{major:D.major,minor:X,patch:0,prerelease:[],build:F}}case"patch":{let X=(D.prerelease??[]).length===0?D.patch+1:D.patch;return{major:D.major,minor:D.minor,patch:X,prerelease:[],build:F}}case"pre":return{major:D.major,minor:D.minor,patch:D.patch,prerelease:l3(D.prerelease,J.prerelease),build:F};default:throw TypeError(`Cannot increment version: invalid argument ${$}`)}}var EV=S(()=>{V0()});var g7,v2;var i3=S(()=>{g7={major:Number.NaN,minor:Number.NaN,patch:Number.NaN,prerelease:[],build:[]},v2={operator:void 0,...g7}});var GQ=S(()=>{i3();V0()});function bl(D,$){return p$(D,$)>0}var IQ=S(()=>{f0()});var AV=S(()=>{m3();IQ()});function _6(D,$){return p$(D,$)<0}var zQ=S(()=>{f0()});var vV=S(()=>{m3();zQ()});function Pl(D){let J=D.match(RV)?.groups;if(!J)return null;let{operator:F}=J;return{operator:F||void 0,...g7}}function rD(D){return!D||D.toLowerCase()==="x"||D==="*"}function Sl(D){if(rD(D.major))return;if(rD(D.minor))return{operator:">=",major:+D.major,minor:0,patch:0,prerelease:[],build:[]};if(rD(D.patch))return{operator:">=",major:+D.major,minor:+D.minor,patch:0,prerelease:[],build:[]};return{operator:">=",major:+D.major,minor:+D.minor,patch:+D.patch,prerelease:D.prerelease?G0(D.prerelease):[],build:[]}}function _l(D){if(rD(D.major))return;if(rD(D.minor))return{operator:"<",major:+D.major+1,minor:0,patch:0,prerelease:[],build:[]};if(rD(D.patch))return{operator:"<",major:+D.major,minor:+D.minor+1,patch:0,prerelease:[],build:[]};if(D.prerelease)return{operator:"<=",major:+D.major,minor:+D.minor,patch:+D.patch,prerelease:G0(D.prerelease),build:[]};return{operator:"<=",major:+D.major,minor:+D.minor,patch:+D.patch,prerelease:[],build:[]}}function kl(D){let $=D.match(new RegExp(`^${_7}`)),J=$?.groups;if(!J)return null;let F=$[0].length,U=D.slice(F).match(/^\s+-\s+/);if(!U)return null;let X=U[0].length,Q=D.slice(F+X).match(new RegExp(`^${_7}\\s*$`))?.groups,q=Sl(J),K=_l(Q);return[q,K].filter(Boolean)}function Cl(D){let $=rD(D.major),J=rD(D.minor),F=rD(D.patch),U=+D.major,X=+D.minor,Y=+D.patch;if($)return[v2];if(J)return[{operator:">=",major:U,minor:0,patch:0},{operator:"<",major:U+1,minor:0,patch:0}];if(F){if(U===0)return[{operator:">=",major:U,minor:X,patch:0},{operator:"<",major:U,minor:X+1,patch:0}];return[{operator:">=",major:U,minor:X,patch:0},{operator:"<",major:U+1,minor:0,patch:0}]}let Q=G0(D.prerelease??"");if(U===0){if(X===0)return[{operator:">=",major:U,minor:X,patch:Y,prerelease:Q},{operator:"<",major:U,minor:X,patch:Y+1}];return[{operator:">=",major:U,minor:X,patch:Y,prerelease:Q},{operator:"<",major:U,minor:X+1,patch:0}]}return[{operator:">=",major:U,minor:X,patch:Y,prerelease:Q},{operator:"<",major:U+1,minor:0,patch:0}]}function ul(D){let $=rD(D.major),J=rD(D.minor),F=rD(D.patch),U=+D.major,X=+D.minor,Y=+D.patch;if($)return[v2];if(J)return[{operator:">=",major:U,minor:0,patch:0},{operator:"<",major:U+1,minor:0,patch:0}];if(F)return[{operator:">=",major:U,minor:X,patch:0},{operator:"<",major:U,minor:X+1,patch:0}];let Q=G0(D.prerelease??"");return[{operator:">=",major:U,minor:X,patch:Y,prerelease:Q},{operator:"<",major:U,minor:X+1,patch:0}]}function gl(D){let $=rD(D.major),J=rD(D.minor),F=rD(D.patch),U=+D.major,X=+D.minor,Y=+D.patch;if($)return[{operator:"<",major:0,minor:0,patch:0}];if(J){if(F)return[{operator:"<",major:U,minor:0,patch:0}];return[{operator:"<",major:U,minor:0,patch:0}]}if(F)return[{operator:"<",major:U,minor:X,patch:0}];let Q=G0(D.prerelease??""),q=K6(D.build??"");return[{operator:"<",major:U,minor:X,patch:Y,prerelease:Q,build:q}]}function fl(D){let $=rD(D.minor),J=rD(D.patch),F=+D.major,U=+D.minor,X=+D.patch;if($)return[{operator:"<",major:F+1,minor:0,patch:0}];if(J)return[{operator:"<",major:F,minor:U+1,patch:0}];let Y=G0(D.prerelease??""),Q=K6(D.build??"");return[{operator:"<=",major:F,minor:U,patch:X,prerelease:Y,build:Q}]}function xl(D){let $=rD(D.major),J=rD(D.minor),F=rD(D.patch),U=+D.major,X=+D.minor,Y=+D.patch;if($)return[{operator:"<",major:0,minor:0,patch:0}];if(J)return[{operator:">=",major:U+1,minor:0,patch:0}];if(F)return[{operator:">=",major:U,minor:X+1,patch:0}];let Q=G0(D.prerelease??""),q=K6(D.build??"");return[{operator:">",major:U,minor:X,patch:Y,prerelease:Q,build:q}]}function yl(D){let $=rD(D.major),J=rD(D.minor),F=rD(D.patch),U=+D.major,X=+D.minor,Y=+D.patch;if($)return[v2];if(J)return[{operator:">=",major:U,minor:0,patch:0}];if(F)return[{operator:">=",major:U,minor:X,patch:0}];let Q=G0(D.prerelease??""),q=K6(D.build??"");return[{operator:">=",major:U,minor:X,patch:Y,prerelease:Q,build:q}]}function hl(D){let $=rD(D.major),J=rD(D.minor),F=rD(D.patch),U=+D.major,X=+D.minor,Y=+D.patch;if($)return[v2];if(J)return[{operator:">=",major:U,minor:0,patch:0},{operator:"<",major:U+1,minor:0,patch:0}];if(F)return[{operator:">=",major:U,minor:X,patch:0},{operator:"<",major:U,minor:X+1,patch:0}];let Q=G0(D.prerelease??""),q=K6(D.build??"");return[{operator:D.operator==="="?"=":void 0,major:U,minor:X,patch:Y,prerelease:Q,build:q}]}function ml(D){let $=D.match(wV)?.groups;if(!$)return Pl(D);switch($.operator){case"^":return Cl($);case"~":case"~>":return ul($);case"<":return gl($);case"<=":return fl($);case">":return xl($);case">=":return yl($);default:return hl($)}}function ll(D){return D.split(/\s+/).flatMap(ml)}function f7(D){let $=D.replaceAll(/(?<=[<>=~^])(\s+)/g,"").split(/\s*\|\|\s*/).map((J)=>kl(J)||ll(J));if($.some((J)=>J.includes(null)))throw TypeError(`Cannot parse version range: range "${D}" is invalid`);return $}var ZQ=S(()=>{V0();i3()});function I0(D){if(typeof D!=="string")throw TypeError(`Cannot parse version as version must be a string: received ${typeof D}`);if(D.length>qQ)throw TypeError(`Cannot parse version as version length is too long: length is ${D.length}, max length is ${qQ}`);D=D.trim();let $=D.match(VV)?.groups;if(!$)throw TypeError(`Cannot parse version: ${D}`);let J=k7($.major,`Cannot parse version ${D}: invalid major version`),F=k7($.minor,`Cannot parse version ${D}: invalid minor version`),U=k7($.patch,`Cannot parse version ${D}: invalid patch version`),X=$.prerelease?G0($.prerelease):[],Y=$.buildmetadata?K6($.buildmetadata):[];return{major:J,minor:F,patch:U,prerelease:X,build:Y}}var x7=S(()=>{V0();V0()});function TV(D,$){let J=D.operator,F=$.operator;if(J===void 0){if(S6(D))return!0;return h3(D,[[$]])}if(F===void 0){if(S6($))return!0;return h3($,[[D]])}let U=p$(D,$);return(J===">="||J===">")&&(F===">="||F===">")||(J==="<="||J==="<")&&(F==="<="||F==="<")||U===0&&((J===">="||J==="<=")&&(F===">="||F==="<="))||U===-1&&(J===">="||J===">")&&(F==="<="||F==="<")||U===1&&(J==="<="||J==="<")&&(F===">="||F===">")}function il(D){return D.every(($)=>{return $.some((J)=>dl(J))})}function dl(D){for(let $=0;$<D.length-1;$++){let J=D[$];for(let F of D.slice($+1))if(!TV(J,F))return!1}return!0}function bV(D,$){return il([D,$])&&D.some((J)=>{return $.some((F)=>{return J.every((U)=>{return F.every((X)=>TV(U,X))})})})}var PV=S(()=>{V0();f0();m3()});var SV=S(()=>{ZQ()});var _V=S(()=>{i3();i3();GQ()});function U1(D){try{return I0(D),!0}catch{return!1}}var kV=S(()=>{x7()});var CV=S(()=>{x7()});var uV=S(()=>{V0()});var gV=S(()=>{f0()});var fV=S(()=>{f0()});var xV=S(()=>{u7();V0();f0()});function ZBD(D,$){return p$(D,$)>=0}var yV=S(()=>{f0()});var hV=S(()=>{u7();V0();f0()});var mV=S(()=>{f0()});var y7=S(()=>{f0();MV();m3();EV();GQ();AV();vV();ZQ();x7();PV();SV();_V();kV();CV();uV();gV();fV();IQ();xV();yV();zQ();hV();mV()});var HQ=u((rBD,lV)=>{lV.exports={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24}});var h7=u((dV)=>{var iV={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",DESCRIPTOR_NOT_EXIST:"No descriptor present",DESCRIPTOR_UNKNOWN:"Unknown descriptor format",DESCRIPTOR_FAULTY:"Descriptor data is malformed",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed {0}",FILE_IN_THE_WAY:"There is a file in the way: {0}",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",DISK_ENTRY_TOO_LARGE:"Number of disk entries is too large",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:'File not found: "{0}"',NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found",INVALID_PASS_PARAM:"Incompatible password parameter",WRONG_PASSWORD:"Wrong Password",COMMENT_TOO_LONG:"Comment is too long",EXTRA_FIELD_PARSE_ERROR:"Extra field parsing error"};function cl(D){return function(...$){if($.length)D=D.replace(/\{(\d)\}/g,(J,F)=>$[F]||"");return Error("ADM-ZIP: "+D)}}for(let D of Object.keys(iV))dV[D]=cl(iV[D])});var tV=u((oBD,rV)=>{var nl=FD("fs"),j$=FD("path"),cV=HQ(),pl=h7(),rl=typeof process==="object"&&process.platform==="win32",nV=(D)=>typeof D==="object"&&D!==null,pV=new Uint32Array(256).map((D,$)=>{for(let J=0;J<8;J++)if(($&1)!==0)$=3988292384^$>>>1;else $>>>=1;return $>>>0});function X$(D){if(this.sep=j$.sep,this.fs=nl,nV(D)){if(nV(D.fs)&&typeof D.fs.statSync==="function")this.fs=D.fs}}rV.exports=X$;X$.prototype.makeDir=function(D){let $=this;function J(F){let U=F.split($.sep)[0];F.split($.sep).forEach(function(X){if(!X||X.substr(-1,1)===":")return;U+=$.sep+X;var Y;try{Y=$.fs.statSync(U)}catch(Q){if(Q.message&&Q.message.startsWith("ENOENT"))$.fs.mkdirSync(U);else throw Q}if(Y&&Y.isFile())throw pl.FILE_IN_THE_WAY(`"${U}"`)})}J(D)};X$.prototype.writeFileTo=function(D,$,J,F){let U=this;if(U.fs.existsSync(D)){if(!J)return!1;var X=U.fs.statSync(D);if(X.isDirectory())return!1}var Y=j$.dirname(D);if(!U.fs.existsSync(Y))U.makeDir(Y);var Q;try{Q=U.fs.openSync(D,"w",438)}catch(q){U.fs.chmodSync(D,438),Q=U.fs.openSync(D,"w",438)}if(Q)try{U.fs.writeSync(Q,$,0,$.length,0)}finally{U.fs.closeSync(Q)}return U.fs.chmodSync(D,F||438),!0};X$.prototype.writeFileToAsync=function(D,$,J,F,U){if(typeof F==="function")U=F,F=void 0;let X=this;X.fs.exists(D,function(Y){if(Y&&!J)return U(!1);X.fs.stat(D,function(Q,q){if(Y&&q&&q.isDirectory())return U(!1);var K=j$.dirname(D);X.fs.exists(K,function(W){if(!W)try{X.makeDir(K)}catch(I){return U(!1)}let G=function(I){X.fs.write(I,$,0,$.length,0,function(z){X.fs.close(I,function(){if(z)return U(!1);X.fs.chmod(D,F||438,function(){U(!0)})})})};X.fs.open(D,"w",438,function(I,z){if(I)X.fs.chmod(D,438,function(){X.fs.open(D,"w",438,function(Z,H){if(Z||!H)return U(!1);G(H)})});else if(z)G(z);else U(!1)})})})})};X$.prototype.findFiles=function(D){let $=this;function J(F,U,X,Y){if(typeof U==="boolean")X=U,U=void 0;let Q=[];return $.fs.readdirSync(F).forEach(function(q){let K=j$.join(F,q),W=$.fs.statSync(K);if(!U||U.test(K))Q.push(j$.normalize(K)+(W.isDirectory()?$.sep:""));if(W.isDirectory()&&X){let G=$.fs.realpathSync(K);if(!Y.has(G))Y.add(G),Q=Q.concat(J(K,U,X,Y))}}),Q}return J(D,void 0,!0,new Set([$.fs.realpathSync(D)]))};X$.prototype.findFilesAsync=function(D,$){let J=this,F=[],U=!1,X=function(Q){if(U)return;U=!0,$(Q,Q?void 0:F)},Y=function(Q,q,K){J.fs.readdir(Q,function(W,G){if(W)return K(W);let I=G.length;if(!I)return K();G.forEach(function(z){let Z=j$.join(Q,z);J.fs.stat(Z,function(H,B){if(H)return K(H);if(!B){if(!--I)K();return}if(F.push(j$.normalize(Z)+(B.isDirectory()?J.sep:"")),!B.isDirectory()){if(!--I)K();return}J.fs.realpath(Z,function(j,N){if(j)return K(j);if(q.has(N)){if(!--I)K();return}q.add(N),Y(Z,q,function(O){if(O)return K(O);if(!--I)K()})})})})})};J.fs.realpath(D,function(Q,q){if(Q)return X(Q);Y(D,new Set([q]),X)})};X$.prototype.getAttributes=function(){};X$.prototype.setAttributes=function(){};X$.crc32update=function(D,$){return pV[(D^$)&255]^D>>>8};X$.crc32=function(D){if(typeof D==="string")D=Buffer.from(D,"utf8");let $=D.length,J=-1;for(let F=0;F<$;)J=X$.crc32update(J,D[F++]);return~J>>>0};X$.methodToString=function(D){switch(D){case cV.STORED:return"STORED ("+D+")";case cV.DEFLATED:return"DEFLATED ("+D+")";default:return"UNSUPPORTED ("+D+")"}};X$.canonical=function(D){if(!D)return"";let $=j$.posix.normalize("/"+D.split("\\").join("/"));return j$.join(".",$)};X$.zipnamefix=function(D){if(!D)return"";let $=j$.posix.normalize("/"+D.split("\\").join("/"));return j$.posix.join(".",$)};X$.findLast=function(D,$){if(!Array.isArray(D))throw TypeError("arr is not array");let J=D.length>>>0;for(let F=J-1;F>=0;F--)if($(D[F],F,D))return D[F];return};X$.sanitize=function(D,$){D=j$.resolve(j$.normalize(D));var J=$.split("/");for(var F=0,U=J.length;F<U;F++){var X=j$.normalize(j$.join(D,J.slice(F,U).join(j$.sep)));if(X===D||X.startsWith(D+j$.sep))return X}return j$.normalize(j$.join(D,j$.basename($)))};X$.toBuffer=function($,J){if(Buffer.isBuffer($))return $;else if($ instanceof Uint8Array)return Buffer.from($);else return typeof $==="string"?J($):Buffer.alloc(0)};X$.readBigUInt64LE=function(D,$){let J=D.readUInt32LE($);return D.readUInt32LE($+4)*4294967296+J};X$.writeBigUInt64LE=function(D,$,J){let F=$>>>0,U=Math.floor($/4294967296)>>>0;D.writeUInt32LE(F,J),D.writeUInt32LE(U,J+4)};X$.fromDOS2Date=function(D){return new Date((D>>25&127)+1980,Math.max((D>>21&15)-1,0),Math.max(D>>16&31,1),D>>11&31,D>>5&63,(D&31)<<1)};X$.fromDate2DOS=function(D){let $=0,J=0;if(D.getFullYear()>1979)$=(D.getFullYear()-1980&127)<<9|D.getMonth()+1<<5|D.getDate(),J=D.getHours()<<11|D.getMinutes()<<5|D.getSeconds()>>1;return $<<16|J};X$.isWin=rl;X$.crcTable=pV});var aV=u((aBD,oV)=>{var tl=FD("path");oV.exports=function(D,{fs:$}){var J=D||"",F=X(),U=null;function X(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}if(J&&$.existsSync(J))U=$.statSync(J),F.directory=U.isDirectory(),F.mtime=U.mtime,F.atime=U.atime,F.executable=(73&U.mode)!==0,F.readonly=(128&U.mode)===0,F.hidden=tl.basename(J)[0]===".";else console.warn("Invalid path: "+J);return{get directory(){return F.directory},get readOnly(){return F.readonly},get hidden(){return F.hidden},get mtime(){return F.mtime},get atime(){return F.atime},get executable(){return F.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:J,isDirectory:F.directory,isReadOnly:F.readonly,isHidden:F.hidden,isExecutable:F.executable,mTime:F.mtime,aTime:F.atime}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var eV=u((sBD,sV)=>{sV.exports={efs:!0,encode:(D)=>Buffer.from(D,"utf8"),decode:(D)=>D.toString("utf8")}});var b2=u((eBD,T2)=>{T2.exports=tV();T2.exports.Constants=HQ();T2.exports.Errors=h7();T2.exports.FileAttr=aV();T2.exports.decoder=eV()});var $L=u((DOD,DL)=>{var X1=b2(),$D=X1.Constants;DL.exports=function(){var D=20,$=10,J=0,F=0,U=0,X=0,Y=0,Q=0,q=0,K=0,W=0,G=0,I=0,z=0,Z=0;D|=X1.isWin?2560:768,J|=$D.FLG_EFS;let H={extraLen:0},B=(O)=>Math.max(0,O)>>>0,j=(O)=>Math.max(0,O)&65535,N=(O)=>Math.max(0,O)&255;return U=X1.fromDate2DOS(new Date),{get made(){return D},set made(O){D=O},get version(){return $},set version(O){$=O},get flags(){return J},set flags(O){J=O},get flags_efs(){return(J&$D.FLG_EFS)>0},set flags_efs(O){if(O)J|=$D.FLG_EFS;else J&=~$D.FLG_EFS},get flags_desc(){return(J&$D.FLG_DESC)>0},set flags_desc(O){if(O)J|=$D.FLG_DESC;else J&=~$D.FLG_DESC},get method(){return F},set method(O){switch(O){case $D.STORED:this.version=10;break;case $D.DEFLATED:default:this.version=20}F=O},get time(){return X1.fromDOS2Date(this.timeval)},set time(O){O=new Date(O),this.timeval=X1.fromDate2DOS(O)},get timeval(){return U},set timeval(O){U=B(O)},get timeHighByte(){return N(U>>>8)},get crc(){return X},set crc(O){X=B(O)},get compressedSize(){return Y},set compressedSize(O){Y=B(O)},get size(){return Q},set size(O){Q=B(O)},get fileNameLength(){return q},set fileNameLength(O){q=O},get extraLength(){return K},set extraLength(O){K=O},get extraLocalLength(){return H.extraLen},set extraLocalLength(O){H.extraLen=O},get commentLength(){return W},set commentLength(O){W=O},get diskNumStart(){return G},set diskNumStart(O){G=B(O)},get inAttr(){return I},set inAttr(O){I=B(O)},get attr(){return z},set attr(O){z=B(O)},get fileAttr(){return(z||0)>>16&4095},get offset(){return Z},set offset(O){Z=B(O)},get encrypted(){return(J&$D.FLG_ENC)===$D.FLG_ENC},get centralHeaderSize(){return $D.CENHDR+q+K+W},get realDataOffset(){return Z+$D.LOCHDR+H.fnameLen+H.extraLen},get localHeader(){return H},loadLocalHeaderFromBinary:function(O){var L=O.slice(Z,Z+$D.LOCHDR);if(L.readUInt32LE(0)!==$D.LOCSIG)throw X1.Errors.INVALID_LOC();H.version=L.readUInt16LE($D.LOCVER),H.flags=L.readUInt16LE($D.LOCFLG),H.flags_desc=(H.flags&$D.FLG_DESC)>0,H.method=L.readUInt16LE($D.LOCHOW),H.time=L.readUInt32LE($D.LOCTIM),H.crc=L.readUInt32LE($D.LOCCRC),H.compressedSize=L.readUInt32LE($D.LOCSIZ),H.size=L.readUInt32LE($D.LOCLEN),H.fnameLen=L.readUInt16LE($D.LOCNAM),H.extraLen=L.readUInt16LE($D.LOCEXT);let A=Z+$D.LOCHDR+H.fnameLen,E=A+H.extraLen;return O.slice(A,E)},loadFromBinary:function(O){if(O.length!==$D.CENHDR||O.readUInt32LE(0)!==$D.CENSIG)throw X1.Errors.INVALID_CEN();D=O.readUInt16LE($D.CENVEM),$=O.readUInt16LE($D.CENVER),J=O.readUInt16LE($D.CENFLG),F=O.readUInt16LE($D.CENHOW),U=O.readUInt32LE($D.CENTIM),X=O.readUInt32LE($D.CENCRC),Y=O.readUInt32LE($D.CENSIZ),Q=O.readUInt32LE($D.CENLEN),q=O.readUInt16LE($D.CENNAM),K=O.readUInt16LE($D.CENEXT),W=O.readUInt16LE($D.CENCOM),G=O.readUInt16LE($D.CENDSK),I=O.readUInt16LE($D.CENATT),z=O.readUInt32LE($D.CENATX),Z=O.readUInt32LE($D.CENOFF)},localHeaderToBinary:function(){var O=Buffer.alloc($D.LOCHDR);return O.writeUInt32LE($D.LOCSIG,0),O.writeUInt16LE($,$D.LOCVER),O.writeUInt16LE(J&~$D.FLG_DESC,$D.LOCFLG),O.writeUInt16LE(F,$D.LOCHOW),O.writeUInt32LE(U,$D.LOCTIM),O.writeUInt32LE(X,$D.LOCCRC),O.writeUInt32LE(Y,$D.LOCSIZ),O.writeUInt32LE(Q,$D.LOCLEN),O.writeUInt16LE(q,$D.LOCNAM),O.writeUInt16LE(H.extraLen,$D.LOCEXT),O},centralHeaderToBinary:function(){var O=Buffer.alloc($D.CENHDR+q+K+W);return O.writeUInt32LE($D.CENSIG,0),O.writeUInt16LE(D,$D.CENVEM),O.writeUInt16LE($,$D.CENVER),O.writeUInt16LE(J&~$D.FLG_DESC,$D.CENFLG),O.writeUInt16LE(F,$D.CENHOW),O.writeUInt32LE(U,$D.CENTIM),O.writeUInt32LE(X,$D.CENCRC),O.writeUInt32LE(Y,$D.CENSIZ),O.writeUInt32LE(Q,$D.CENLEN),O.writeUInt16LE(q,$D.CENNAM),O.writeUInt16LE(K,$D.CENEXT),O.writeUInt16LE(W,$D.CENCOM),O.writeUInt16LE(G,$D.CENDSK),O.writeUInt16LE(I,$D.CENATT),O.writeUInt32LE(z,$D.CENATX),O.writeUInt32LE(Z,$D.CENOFF),O},toJSON:function(){let O=function(L){return L+" bytes"};return{made:D,version:$,flags:J,method:X1.methodToString(F),time:this.time,crc:"0x"+X.toString(16).toUpperCase(),compressedSize:O(Y),size:O(Q),fileNameLength:O(q),extraLength:O(K),commentLength:O(W),diskNumStart:G,inAttr:I,attr:z,offset:Z,centralHeaderSize:O($D.CENHDR+q+K+W)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var FL=u(($OD,JL)=>{var x0=b2(),QD=x0.Constants;JL.exports=function(){var D=0,$=0,J=0,F=0,U=0;let X=()=>D>QD.EF_ZIP64_OR_16||$>QD.EF_ZIP64_OR_16||J>QD.EF_ZIP64_OR_32||F>QD.EF_ZIP64_OR_32;return{get diskEntries(){return D},set diskEntries(Y){D=$=Y},get totalEntries(){return $},set totalEntries(Y){$=D=Y},get size(){return J},set size(Y){J=Y},get offset(){return F},set offset(Y){F=Y},get commentLength(){return U},set commentLength(Y){U=Y},get mainHeaderSize(){return(X()?QD.ZIP64HDR+QD.END64HDR:0)+QD.ENDHDR+U},loadFromBinary:function(Y){if((Y.length!==QD.ENDHDR||Y.readUInt32LE(0)!==QD.ENDSIG)&&(Y.length<QD.ZIP64HDR||Y.readUInt32LE(0)!==QD.ZIP64SIG))throw x0.Errors.INVALID_END();if(Y.readUInt32LE(0)===QD.ENDSIG)D=Y.readUInt16LE(QD.ENDSUB),$=Y.readUInt16LE(QD.ENDTOT),J=Y.readUInt32LE(QD.ENDSIZ),F=Y.readUInt32LE(QD.ENDOFF),U=Y.readUInt16LE(QD.ENDCOM);else D=x0.readBigUInt64LE(Y,QD.ZIP64SUB),$=x0.readBigUInt64LE(Y,QD.ZIP64TOT),J=x0.readBigUInt64LE(Y,QD.ZIP64SIZB),F=x0.readBigUInt64LE(Y,QD.ZIP64OFF),U=0},toBinary:function(){if(!X()){var Y=Buffer.alloc(QD.ENDHDR+U);return Y.writeUInt32LE(QD.ENDSIG,0),Y.writeUInt32LE(0,4),Y.writeUInt16LE(D,QD.ENDSUB),Y.writeUInt16LE($,QD.ENDTOT),Y.writeUInt32LE(J,QD.ENDSIZ),Y.writeUInt32LE(F,QD.ENDOFF),Y.writeUInt16LE(U,QD.ENDCOM),Y.fill(" ",QD.ENDHDR),Y}var Y=Buffer.alloc(this.mainHeaderSize);let Q=0;Y.writeUInt32LE(QD.ZIP64SIG,Q),x0.writeBigUInt64LE(Y,QD.ZIP64HDR-QD.ZIP64LEAD,Q+QD.ZIP64SIZE),Y.writeUInt16LE(45,Q+QD.ZIP64VEM),Y.writeUInt16LE(45,Q+QD.ZIP64VER),Y.writeUInt32LE(0,Q+QD.ZIP64DSK),Y.writeUInt32LE(0,Q+QD.ZIP64DSKDIR),x0.writeBigUInt64LE(Y,D,Q+QD.ZIP64SUB),x0.writeBigUInt64LE(Y,$,Q+QD.ZIP64TOT),x0.writeBigUInt64LE(Y,J,Q+QD.ZIP64SIZB),x0.writeBigUInt64LE(Y,F,Q+QD.ZIP64OFF);let q=F+J;return Q+=QD.ZIP64HDR,Y.writeUInt32LE(QD.END64SIG,Q),Y.writeUInt32LE(0,Q+QD.END64START),x0.writeBigUInt64LE(Y,q,Q+QD.END64OFF),Y.writeUInt32LE(1,Q+QD.END64NUMDISKS),Q+=QD.END64HDR,Y.writeUInt32LE(QD.ENDSIG,Q),Y.writeUInt32LE(0,Q+4),Y.writeUInt16LE(Math.min(D,QD.EF_ZIP64_OR_16),Q+QD.ENDSUB),Y.writeUInt16LE(Math.min($,QD.EF_ZIP64_OR_16),Q+QD.ENDTOT),Y.writeUInt32LE(Math.min(J,QD.EF_ZIP64_OR_32),Q+QD.ENDSIZ),Y.writeUInt32LE(Math.min(F,QD.EF_ZIP64_OR_32),Q+QD.ENDOFF),Y.writeUInt16LE(U,Q+QD.ENDCOM),Y.fill(" ",Q+QD.ENDHDR),Y},toJSON:function(){let Y=function(Q,q){let K=Q.toString(16).toUpperCase();while(K.length<q)K="0"+K;return"0x"+K};return{diskEntries:D,totalEntries:$,size:J+" bytes",offset:Y(F,4),commentLength:U}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var BQ=u((ol)=>{ol.EntryHeader=$L();ol.MainHeader=FL()});var XL=u((FOD,UL)=>{UL.exports=function(D){var $=FD("zlib"),J={chunkSize:(parseInt(D.length/1024)+1)*1024};return{deflate:function(){return $.deflateRawSync(D,J)},deflateAsync:function(F){var U=$.createDeflateRaw(J),X=[],Y=0;U.on("data",function(Q){X.push(Q),Y+=Q.length}),U.on("end",function(){var Q=Buffer.alloc(Y),q=0;Q.fill(0);for(var K=0;K<X.length;K++){var W=X[K];W.copy(Q,q),q+=W.length}F&&F(Q)}),U.end(D)}}}});var QL=u((UOD,YL)=>{var el=+(process?.versions?.node??"").split(".")[0]||0;YL.exports=function(D,$){var J=FD("zlib");let F=el>=15&&$>0?{maxOutputLength:$}:{};return{inflate:function(){return J.inflateRawSync(D,F)},inflateAsync:function(U){var X=J.createInflateRaw(F),Y=[],Q=0;X.on("data",function(q){Y.push(q),Q+=q.length}),X.on("end",function(){var q=Buffer.alloc(Q),K=0;q.fill(0);for(var W=0;W<Y.length;W++){var G=Y[W];G.copy(q,K),K+=G.length}U&&U(q)}),X.end(D)}}}});var IL=u((XOD,GL)=>{var{randomFillSync:qL}=FD("crypto"),Di=h7(),$i=new Uint32Array(256).map((D,$)=>{for(let J=0;J<8;J++)if(($&1)!==0)$=$>>>1^3988292384;else $>>>=1;return $>>>0}),WL=(D,$)=>Math.imul(D,$)>>>0,KL=(D,$)=>{return $i[(D^$)&255]^D>>>8},d3=()=>{if(typeof qL==="function")return qL(Buffer.alloc(12));else return d3.node()};d3.node=()=>{let D=Buffer.alloc(12),$=D.length;for(let J=0;J<$;J++)D[J]=Math.random()*256&255;return D};var m7={genSalt:d3};function l7(D){let $=Buffer.isBuffer(D)?D:Buffer.from(D);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let J=0;J<$.length;J++)this.updateKeys($[J])}l7.prototype.updateKeys=function(D){let $=this.keys;return $[0]=KL($[0],D),$[1]+=$[0]&255,$[1]=WL($[1],134775813)+1,$[2]=KL($[2],$[1]>>>24),D};l7.prototype.next=function(){let D=(this.keys[2]|2)>>>0;return WL(D,D^1)>>8&255};function Ji(D){let $=new l7(D);return function(J){let F=Buffer.alloc(J.length),U=0;for(let X of J)F[U++]=$.updateKeys(X^$.next());return F}}function Fi(D){let $=new l7(D);return function(J,F,U=0){if(!F)F=Buffer.alloc(J.length);for(let X of J){let Y=$.next();F[U++]=X^Y,$.updateKeys(X)}return F}}function Ui(D,$,J){if(!D||!Buffer.isBuffer(D)||D.length<12)return Buffer.alloc(0);let F=Ji(J),U=F(D.slice(0,12)),X=($.flags&8)===8?$.timeHighByte:$.crc>>>24;if(U[11]!==X)throw Di.WRONG_PASSWORD();return F(D.slice(12))}function Xi(D){if(Buffer.isBuffer(D)&&D.length>=12)m7.genSalt=function(){return D.slice(0,12)};else if(D==="node")m7.genSalt=d3.node;else m7.genSalt=d3}function Yi(D,$,J,F=!1){if(D==null)D=Buffer.alloc(0);if(!Buffer.isBuffer(D))D=Buffer.from(D.toString());let U=Fi(J),X=m7.genSalt();if(X[11]=$.crc>>>24&255,F)X[10]=$.crc>>>16&255;let Y=Buffer.alloc(D.length+12);return U(X,Y),U(D,Y,12)}GL.exports={decrypt:Ui,encrypt:Yi,_salter:Xi}});var zL=u((Qi)=>{Qi.Deflater=XL();Qi.Inflater=QL();Qi.ZipCrypto=IL()});var jQ=u((QOD,ZL)=>{var tD=b2(),Gi=BQ(),L0=tD.Constants,OQ=zL();ZL.exports=function(D,$){var J=new Gi.EntryHeader,F=Buffer.alloc(0),U=Buffer.alloc(0),X=!1,Y=null,Q=Buffer.alloc(0),q=Buffer.alloc(0),K=!0;let W=D,G=typeof W.decoder==="object"?W.decoder:tD.decoder;K=G.hasOwnProperty("efs")?G.efs:!1;function I(){if(!$||!($ instanceof Uint8Array))return Buffer.alloc(0);return q=J.loadLocalHeaderFromBinary($),$.slice(J.realDataOffset,J.realDataOffset+J.compressedSize)}function z(O){let L=J.flags_desc||J.localHeader.flags_desc?J.crc:J.localHeader.crc;return tD.crc32(O)===L}function Z(O,L,A){if(typeof L>"u"&&typeof O==="string")A=O,O=void 0;if(X){if(O&&L)L(Buffer.alloc(0),tD.Errors.DIRECTORY_CONTENT_ERROR());return Buffer.alloc(0)}var E=I();if(E.length===0){if(O&&L)L(E);return E}if(J.encrypted){if(typeof A!=="string"&&!Buffer.isBuffer(A))throw tD.Errors.INVALID_PASS_PARAM();E=OQ.ZipCrypto.decrypt(E,J,A)}var _;switch(J.method){case tD.Constants.STORED:if(_=Buffer.alloc(E.length),E.copy(_),!z(_)){if(O&&L)L(_,tD.Errors.BAD_CRC());throw tD.Errors.BAD_CRC()}else{if(O&&L)L(_);return _}case tD.Constants.DEFLATED:var k=new OQ.Inflater(E,J.size);if(!O){if(_=k.inflate(),!z(_))throw tD.Errors.BAD_CRC(`"${G.decode(F)}"`);return _}else k.inflateAsync(function(C){if(L)if(!z(C))L(C,tD.Errors.BAD_CRC());else L(C)});break;default:if(O&&L)L(Buffer.alloc(0),tD.Errors.UNKNOWN_METHOD());throw tD.Errors.UNKNOWN_METHOD()}}function H(O,L){if((!Y||!Y.length)&&Buffer.isBuffer($)){if(O&&L)L(I());return I()}if(Y.length&&!X){var A;switch(J.method){case tD.Constants.STORED:if(J.compressedSize=J.size,A=Buffer.alloc(Y.length),Y.copy(A),O&&L)L(A);return A;default:case tD.Constants.DEFLATED:var E=new OQ.Deflater(Y);if(!O){var _=E.deflate();return J.compressedSize=_.length,_}else E.deflateAsync(function(k){A=Buffer.alloc(k.length),J.compressedSize=k.length,k.copy(A),L&&L(A)});E=null;break}}else if(O&&L)L(Buffer.alloc(0));else return Buffer.alloc(0)}function B(O,L){return tD.readBigUInt64LE(O,L)}function j(O){try{var L=0,A,E,_;while(L+4<O.length)if(A=O.readUInt16LE(L),L+=2,E=O.readUInt16LE(L),L+=2,_=O.slice(L,L+E),L+=E,L0.ID_ZIP64===A)N(_)}catch(k){throw tD.Errors.EXTRA_FIELD_PARSE_ERROR()}}function N(O){var L,A,E,_;if(O.length>=L0.EF_ZIP64_SCOMP){if(L=B(O,L0.EF_ZIP64_SUNCOMP),J.size===L0.EF_ZIP64_OR_32)J.size=L}if(O.length>=L0.EF_ZIP64_RHO){if(A=B(O,L0.EF_ZIP64_SCOMP),J.compressedSize===L0.EF_ZIP64_OR_32)J.compressedSize=A}if(O.length>=L0.EF_ZIP64_DSN){if(E=B(O,L0.EF_ZIP64_RHO),J.offset===L0.EF_ZIP64_OR_32)J.offset=E}if(O.length>=L0.EF_ZIP64_DSN+4){if(_=O.readUInt32LE(L0.EF_ZIP64_DSN),J.diskNumStart===L0.EF_ZIP64_OR_16)J.diskNumStart=_}}return{get entryName(){return G.decode(F)},get rawEntryName(){return F},set entryName(O){F=tD.toBuffer(O,G.encode);var L=F[F.length-1];X=L===47||L===92,J.fileNameLength=F.length},get efs(){if(typeof K==="function")return K(this.entryName);else return K},get extra(){return Q},set extra(O){Q=O,J.extraLength=O.length,j(O)},get comment(){return G.decode(U)},set comment(O){if(U=tD.toBuffer(O,G.encode),J.commentLength=U.length,U.length>65535)throw tD.Errors.COMMENT_TOO_LONG()},get name(){let O=G.decode(F);return X?O.replace(/[/\\]$/,"").split("/").pop():O.split("/").pop()},get isDirectory(){return X},getCompressedData:function(){return H(!1,null)},getCompressedDataAsync:function(O){H(!0,O)},setData:function(O){if(Y=tD.toBuffer(O,tD.decoder.encode),!X&&Y.length)J.size=Y.length,J.method=tD.Constants.DEFLATED,J.crc=tD.crc32(O),J.changed=!0;else J.method=tD.Constants.STORED},getData:function(O){if(J.changed)return Y;else return Z(!1,null,O)},getDataAsync:function(O,L){if(J.changed)O(Y);else Z(!0,O,L)},set attr(O){J.attr=O},get attr(){return J.attr},set header(O){J.loadFromBinary(O)},get header(){return J},packCentralHeader:function(){J.flags_efs=this.efs,J.extraLength=Q.length;var O=J.centralHeaderToBinary(),L=tD.Constants.CENHDR;return F.copy(O,L),L+=F.length,Q.copy(O,L),L+=J.extraLength,U.copy(O,L),O},packLocalHeader:function(){let O=0;J.flags_efs=this.efs,J.extraLocalLength=q.length;let L=J.localHeaderToBinary(),A=Buffer.alloc(L.length+F.length+J.extraLocalLength);return L.copy(A,O),O+=L.length,F.copy(A,O),O+=F.length,q.copy(A,O),O+=q.length,A},toJSON:function(){let O=function(L){return"<"+(L&&L.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:J.toJSON(),compressedData:O($),data:O(Y)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var OL=u((qOD,BL)=>{var HL=jQ(),Ii=BQ(),r$=b2();BL.exports=function(D,$){var J=[],F=Object.create(null),U=Buffer.alloc(0),X=new Ii.MainHeader,Y=!1,Q=null;let q=new Set,K=$,{noSort:W,decoder:G}=K;if(D)Z(K.readEntries);else Y=!0;function I(){let B=new Set;for(let j of Object.keys(F)){let N=j.split("/");if(N.pop(),!N.length)continue;for(let O=0;O<N.length;O++){let L=N.slice(0,O+1).join("/")+"/";B.add(L)}}for(let j of B)if(!(j in F)){let N=new HL(K);N.entryName=j,N.attr=16,N.temporary=!0,J.push(N),F[N.entryName]=N,q.add(N)}}function z(){if(Y=!0,F=Object.create(null),X.diskEntries>(D.length-X.offset)/r$.Constants.CENHDR)throw r$.Errors.DISK_ENTRY_TOO_LARGE();J=Array(X.diskEntries);var B=X.offset;for(var j=0;j<J.length;j++){var N=B,O=new HL(K,D);if(O.header=D.slice(N,N+=r$.Constants.CENHDR),O.entryName=D.slice(N,N+=O.header.fileNameLength),O.header.extraLength)O.extra=D.slice(N,N+=O.header.extraLength);if(O.header.commentLength)O.comment=D.slice(N,N+O.header.commentLength);B+=O.header.centralHeaderSize,J[j]=O,F[O.entryName]=O}q.clear(),I()}function Z(B){var j=D.length-r$.Constants.ENDHDR,N=Math.max(0,j-65535),O=N,L=D.length,A=-1,E=0;if(typeof K.trailingSpace==="boolean"?K.trailingSpace:!1)N=0;for(j;j>=O;j--){if(D[j]!==80)continue;if(D.readUInt32LE(j)===r$.Constants.ENDSIG){A=j,E=j,L=j+r$.Constants.ENDHDR,O=j-r$.Constants.END64HDR;continue}if(D.readUInt32LE(j)===r$.Constants.END64SIG){O=N;continue}if(D.readUInt32LE(j)===r$.Constants.ZIP64SIG){A=j,L=j+r$.readBigUInt64LE(D,j+r$.Constants.ZIP64SIZE)+r$.Constants.ZIP64LEAD;break}}if(A==-1)throw r$.Errors.INVALID_FORMAT();if(X.loadFromBinary(D.slice(A,L)),X.commentLength)U=D.slice(E+r$.Constants.ENDHDR);if(B)z()}function H(){if(J.length>1&&!W)J=J.map((B)=>({entry:B,key:B.entryName.toLowerCase()})).sort((B,j)=>B.key.localeCompare(j.key)).map((B)=>B.entry)}return{get entries(){if(!Y)z();return J.filter((B)=>!q.has(B))},get comment(){return G.decode(U)},set comment(B){U=r$.toBuffer(B,G.encode),X.commentLength=U.length},getEntryCount:function(){if(!Y)return X.diskEntries;return J.length},forEach:function(B){this.entries.forEach(B)},getEntry:function(B){if(!Y)z();return F[B]||null},setEntry:function(B){if(!Y)z();J.push(B),F[B.entryName]=B,X.totalEntries=J.length},deleteFile:function(B,j=!0){if(!Y)z();let N=F[B];this.getEntryChildren(N,j).map((L)=>L.entryName).forEach(this.deleteEntry)},deleteEntry:function(B){if(!Y)z();let j=F[B],N=J.indexOf(j);if(N>=0)J.splice(N,1),delete F[B],X.totalEntries=J.length},getEntryChildren:function(B,j=!0){if(!Y)z();if(typeof B==="object")if(B.isDirectory&&j){let N=[],O=B.entryName;for(let L of J)if(L.entryName.startsWith(O))N.push(L);return N}else return[B];return[]},getChildCount:function(B){if(B&&B.isDirectory){let j=this.getEntryChildren(B);return j.includes(B)?j.length-1:j.length}return 0},compressToBuffer:function(){if(!Y)z();H();let B=[],j=[],N=0,O=0;X.size=0,X.offset=0;let L=0;for(let _ of this.entries){let k=_.getCompressedData();_.header.offset=O;let C=_.packLocalHeader(),y=C.length+k.length;O+=y,B.push(C),B.push(k);let v=_.packCentralHeader();j.push(v),X.size+=v.length,N+=y+v.length,L++}N+=X.mainHeaderSize,X.offset=O,X.totalEntries=L,O=0;let A=Buffer.alloc(N);for(let _ of B)_.copy(A,O),O+=_.length;for(let _ of j)_.copy(A,O),O+=_.length;let E=X.toBinary();if(U)U.copy(E,E.length-U.length);return E.copy(A,O),D=A,Y=!1,A},toAsyncBuffer:function(B,j,N,O){try{if(!Y)z();H();let L=[],A=[],E=0,_=0,k=0;X.size=0,X.offset=0;let C=function(y){if(y.length>0){let v=y.shift(),i=v.entryName+v.extra.toString();if(N)N(i);v.getCompressedDataAsync(function(c){if(O)O(i);v.header.offset=_;let n=v.packLocalHeader(),t=n.length+c.length;_+=t,L.push(n),L.push(c);let R=v.packCentralHeader();A.push(R),X.size+=R.length,E+=t+R.length,k++,C(y)})}else{E+=X.mainHeaderSize,X.offset=_,X.totalEntries=k,_=0;let v=Buffer.alloc(E);L.forEach(function(c){c.copy(v,_),_+=c.length}),A.forEach(function(c){c.copy(v,_),_+=c.length});let i=X.toBinary();if(U)U.copy(i,i.length-U.length);i.copy(v,_),D=v,Y=!1,B(v)}};C(Array.from(this.entries))}catch(L){j(L)}}}}});var VL=u((KOD,NL)=>{var G$=b2(),W$=FD("path"),zi=jQ(),Zi=OL(),$4=(...D)=>G$.findLast(D,($)=>typeof $==="boolean"),jL=(...D)=>G$.findLast(D,($)=>typeof $==="string"),Hi=(...D)=>G$.findLast(D,($)=>typeof $==="function"),Bi={noSort:!1,readEntries:!1,method:G$.Constants.NONE,fs:null};NL.exports=function(D,$){let J=null,F=Object.assign(Object.create(null),Bi);if(D&&typeof D==="object"){if(!(D instanceof Uint8Array)){if(Object.assign(F,D),D=F.input?F.input:void 0,F.input)delete F.input}if(Buffer.isBuffer(D))J=D,F.method=G$.Constants.BUFFER,D=void 0}Object.assign(F,$);let U=new G$(F),X=(Z)=>{Z.filter((H)=>H.attr).sort((H,B)=>B.path.length-H.path.length).forEach((H)=>U.fs.chmodSync(H.path,H.attr))};if(typeof F.decoder!=="object"||typeof F.decoder.encode!=="function"||typeof F.decoder.decode!=="function")F.decoder=G$.decoder;if(D&&typeof D==="string")if(U.fs.existsSync(D))F.method=G$.Constants.FILE,F.filename=D,J=U.fs.readFileSync(D);else throw G$.Errors.INVALID_FILENAME();let Y=new Zi(J,F),{canonical:Q,sanitize:q,zipnamefix:K}=G$;function W(Z){if(Z&&Y){var H;if(typeof Z==="string")H=Y.getEntry(W$.posix.normalize(Z));if(typeof Z==="object"&&typeof Z.entryName<"u"&&typeof Z.header<"u")H=Y.getEntry(Z.entryName);if(H)return H}return null}function G(Z){let{join:H,normalize:B,sep:j}=W$.posix;return H(W$.isAbsolute(Z)?"/":".",B(j+Z.split("\\").join(j)+j))}function I(Z){if(Z instanceof RegExp)return function(H){return function(B){return H.test(B)}}(Z);else if(typeof Z!=="function")return()=>!0;return Z}let z=(Z,H)=>{let B=H.slice(-1);return B=B===U.sep?U.sep:"",W$.relative(Z,H)+B};return{readFile:function(Z,H){var B=W(Z);return B&&B.getData(H)||null},childCount:function(Z){let H=W(Z);if(H)return Y.getChildCount(H)},readFileAsync:function(Z,H){var B=W(Z);if(B)B.getDataAsync(H);else H(null,"getEntry failed for:"+Z)},readAsText:function(Z,H){var B=W(Z);if(B){var j=B.getData();if(j&&j.length)return j.toString(H||"utf8")}return""},readAsTextAsync:function(Z,H,B){var j=W(Z);if(j)j.getDataAsync(function(N,O){if(O){H(N,O);return}if(N&&N.length)H(N.toString(B||"utf8"));else H("")});else H("")},deleteFile:function(Z,H=!0){var B=W(Z);if(B)Y.deleteFile(B.entryName,H)},deleteEntry:function(Z){var H=W(Z);if(H)Y.deleteEntry(H.entryName)},addZipComment:function(Z){Y.comment=Z},getZipComment:function(){return Y.comment||""},addZipEntryComment:function(Z,H){var B=W(Z);if(B)B.comment=H},getZipEntryComment:function(Z){var H=W(Z);if(H)return H.comment||"";return""},updateFile:function(Z,H){var B=W(Z);if(B)B.setData(H)},addLocalFile:function(Z,H,B,j){if(U.fs.existsSync(Z)){H=H?G(H):"";let N=W$.win32.basename(W$.win32.normalize(Z));H+=B?B:N;let O=U.fs.statSync(Z),L=O.isFile()?U.fs.readFileSync(Z):Buffer.alloc(0);if(O.isDirectory())H+=U.sep;this.addFile(H,L,j,O)}else throw G$.Errors.FILE_NOT_FOUND(Z)},addLocalFileAsync:function(Z,H){Z=typeof Z==="object"?Z:{localPath:Z};let B=W$.resolve(Z.localPath),{comment:j}=Z,{zipPath:N,zipName:O}=Z,L=this;U.fs.stat(B,function(A,E){if(A)return H(A,!1);N=N?G(N):"";let _=W$.win32.basename(W$.win32.normalize(B));if(N+=O?O:_,E.isFile())U.fs.readFile(B,function(k,C){if(k)return H(k,!1);return L.addFile(N,C,j,E),setImmediate(H,void 0,!0)});else if(E.isDirectory())return N+=U.sep,L.addFile(N,Buffer.alloc(0),j,E),setImmediate(H,void 0,!0)})},addLocalFolder:function(Z,H,B){if(B=I(B),H=H?G(H):"",Z=W$.normalize(Z),U.fs.existsSync(Z)){let j=U.findFiles(Z),N=this;if(j.length)for(let O of j){let L=W$.join(H,z(Z,O));if(B(L))N.addLocalFile(O,W$.dirname(L))}}else throw G$.Errors.FILE_NOT_FOUND(Z)},addLocalFolderAsync:function(Z,H,B,j){j=I(j),B=B?G(B):"",Z=W$.normalize(Z);var N=this;U.fs.open(Z,"r",function(O){if(O&&O.code==="ENOENT")H(void 0,G$.Errors.FILE_NOT_FOUND(Z));else if(O)H(void 0,O);else{var L=U.findFiles(Z),A=-1,E=function(){if(A+=1,A<L.length){var _=L[A],k=z(Z,_).split("\\").join("/");if(k=k.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),j(k))U.fs.stat(_,function(C,y){if(C)H(void 0,C);if(y.isFile())U.fs.readFile(_,function(v,i){if(v)H(void 0,v);else N.addFile(B+k,i,"",y),E()});else N.addFile(B+k+"/",Buffer.alloc(0),"",y),E()});else process.nextTick(()=>{E()})}else H(!0,void 0)};E()}})},addLocalFolderAsync2:function(Z,H){let B=this;Z=typeof Z==="object"?Z:{localPath:Z};let j=W$.resolve(G(Z.localPath)),{zipPath:N,filter:O,namefix:L}=Z;if(O instanceof RegExp)O=function(_){return function(k){return _.test(k)}}(O);else if(typeof O!=="function")O=function(){return!0};if(N=N?G(N):"",L==="latin1")L=(_)=>_.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,"");if(typeof L!=="function")L=(_)=>_;let A=(_)=>W$.join(N,L(z(j,_))),E=(_)=>W$.win32.basename(W$.win32.normalize(L(_)));U.fs.open(j,"r",function(_){if(_&&_.code==="ENOENT")H(void 0,G$.Errors.FILE_NOT_FOUND(j));else if(_)H(void 0,_);else U.findFilesAsync(j,function(k,C){if(k)return H(k);if(C=C.filter((y)=>O(A(y))),!C.length)H(void 0,!1);setImmediate(C.reverse().reduce(function(y,v){return function(i,c){if(i||c===!1)return setImmediate(y,i,!1);B.addLocalFileAsync({localPath:v,zipPath:W$.dirname(A(v)),zipName:E(v)},y)}},H))})})},addLocalFolderPromise:function(Z,H){return new Promise((B,j)=>{this.addLocalFolderAsync2(Object.assign({localPath:Z},H),(N,O)=>{if(N)j(N);if(O)B(this)})})},addFile:function(Z,H,B,j){Z=K(Z);let N=W(Z),O=N!=null;if(!O)N=new zi(F),N.entryName=Z;N.comment=B||"";let L=typeof j==="object"&&j instanceof U.fs.Stats;if(L)N.header.time=j.mtime;var A=N.isDirectory?16:0;let E=N.isDirectory?16384:32768;if(L)E|=4095&j.mode;else if(typeof j==="number")E|=4095&j;else E|=N.isDirectory?493:420;if(A=(A|E<<16)>>>0,N.attr=A,N.setData(H),!O)Y.setEntry(N);return N},getEntries:function(Z){return Y.password=Z,Y?Y.entries:[]},getEntry:function(Z){return W(Z)},getEntryCount:function(){return Y.getEntryCount()},forEach:function(Z){return Y.forEach(Z)},extractEntryTo:function(Z,H,B,j,N,O){j=$4(!1,j),N=$4(!1,N),B=$4(!0,B),O=jL(N,O);var L=W(Z);if(!L)throw G$.Errors.NO_ENTRY();var A=Q(L.entryName),E=q(H,O&&!L.isDirectory?Q(O):B?A:W$.basename(A));if(L.isDirectory){var _=Y.getEntryChildren(L);return _.forEach(function(y){if(y.isDirectory)return;var v=y.getData();if(!v)throw G$.Errors.CANT_EXTRACT_FILE();var i=Q(B?y.entryName:y.entryName.substring(L.entryName.length)),c=q(H,i);let n=N?y.header.fileAttr:void 0;U.writeFileTo(c,v,j,n)}),!0}var k=L.getData(Y.password);if(!k)throw G$.Errors.CANT_EXTRACT_FILE();if(U.fs.existsSync(E)&&!j)throw G$.Errors.CANT_OVERRIDE();let C=N?Z.header.fileAttr:void 0;return U.writeFileTo(E,k,j,C),!0},test:function(Z){if(!Y)return!1;for(var H of Y.entries)try{if(H.isDirectory)continue;var B=H.getData(Z);if(!B)return!1}catch(j){return!1}return!0},extractAllTo:function(Z,H,B,j){if(B=$4(!1,B),j=jL(B,j),H=$4(!1,H),!Y)throw G$.Errors.NO_ZIP();let N=[];Y.entries.forEach(function(O){var L=q(Z,Q(O.entryName));if(O.isDirectory){if(U.makeDir(L),B)N.push({path:L,attr:O.header.fileAttr});return}var A=O.getData(j);if(!A)throw G$.Errors.CANT_EXTRACT_FILE();let E=B?O.header.fileAttr:void 0;U.writeFileTo(L,A,H,E);try{U.fs.utimesSync(L,O.header.time,O.header.time)}catch(_){}}),X(N)},extractAllToAsync:function(Z,H,B,j){if(j=Hi(H,B,j),B=$4(!1,B),H=$4(!1,H),!j)return new Promise((k,C)=>{this.extractAllToAsync(Z,H,B,function(y){if(y)C(y);else k(this)})});if(!Y){j(G$.Errors.NO_ZIP());return}Z=W$.resolve(Z);let N=(k)=>q(Z,W$.normalize(Q(k.entryName))),O=(k,C)=>Error(k+': "'+C+'"'),L=[],A=[];Y.entries.forEach((k)=>{if(k.isDirectory)L.push(k);else A.push(k)});let E=[];for(let k of L){let C=N(k),y=B?k.header.fileAttr:void 0;try{U.makeDir(C)}catch(v){j(O("Unable to create folder",C));continue}if(y)E.push({path:C,attr:y});try{U.fs.utimesSync(C,k.header.time,k.header.time)}catch(v){}}let _=(k)=>{if(!k)try{X(E)}catch(C){return j(O("Unable to set folder permissions",C.path||""))}j(k)};A.reverse().reduce(function(k,C){return function(y){if(y)k(y);else{let v=W$.normalize(Q(C.entryName)),i=q(Z,v);C.getDataAsync(function(c,n){if(n)k(n);else if(!c)k(G$.Errors.CANT_EXTRACT_FILE());else{let t=B?C.header.fileAttr:void 0;U.writeFileToAsync(i,c,H,t,function(R){if(!R)return k(O("Unable to write file",i));U.fs.utimes(i,C.header.time,C.header.time,function(){k()})})}})}}},_)()},writeZip:function(Z,H){if(arguments.length===1){if(typeof Z==="function")H=Z,Z=""}if(!Z&&F.filename)Z=F.filename;if(!Z)return;var B=Y.compressToBuffer();if(B){var j=U.writeFileTo(Z,B,!0);if(typeof H==="function")H(!j?Error("failed"):null,"")}},writeZipPromise:function(Z,H){let{overwrite:B,perm:j}=Object.assign({overwrite:!0},H);return new Promise((N,O)=>{if(!Z&&F.filename)Z=F.filename;if(!Z)O("ADM-ZIP: ZIP File Name Missing");this.toBufferPromise().then((L)=>{let A=(E)=>E?N(E):O("ADM-ZIP: Wasn't able to write zip file");U.writeFileToAsync(Z,L,B,j,A)},O)})},toBufferPromise:function(){return new Promise((Z,H)=>{Y.toAsyncBuffer(Z,H)})},toBuffer:function(Z,H,B,j){if(typeof Z==="function")return Y.toAsyncBuffer(Z,H,B,j),null;return Y.compressToBuffer()}}}});var ML=u((WOD,RL)=>{var wL={};RL.exports=wL;var LL={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(LL).forEach(function(D){var $=LL[D],J=wL[D]=[];J.open="\x1B["+$[0]+"m",J.close="\x1B["+$[1]+"m"})});var AL=u((GOD,EL)=>{EL.exports=function(D,$){$=$||process.argv;var J=$.indexOf("--"),F=/^-{1,2}/.test(D)?"":"--",U=$.indexOf(F+D);return U!==-1&&(J===-1?!0:U<J)}});var TL=u((IOD,vL)=>{var Oi=FD("os"),o0=AL(),t$=process.env,P2=void 0;if(o0("no-color")||o0("no-colors")||o0("color=false"))P2=!1;else if(o0("color")||o0("colors")||o0("color=true")||o0("color=always"))P2=!0;if("FORCE_COLOR"in t$)P2=t$.FORCE_COLOR.length===0||parseInt(t$.FORCE_COLOR,10)!==0;function ji(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function Ni(D){if(P2===!1)return 0;if(o0("color=16m")||o0("color=full")||o0("color=truecolor"))return 3;if(o0("color=256"))return 2;if(D&&!D.isTTY&&P2!==!0)return 0;var $=P2?1:0;if(process.platform==="win32"){var J=Oi.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(J[0])>=10&&Number(J[2])>=10586)return Number(J[2])>=14931?3:2;return 1}if("CI"in t$){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(U){return U in t$})||t$.CI_NAME==="codeship")return 1;return $}if("TEAMCITY_VERSION"in t$)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(t$.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in t$){var F=parseInt((t$.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(t$.TERM_PROGRAM){case"iTerm.app":return F>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(t$.TERM))return 2;if(/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(t$.TERM))return 1;if("COLORTERM"in t$)return 1;if(t$.TERM==="dumb")return $;return $}function NQ(D){var $=Ni(D);return ji($)}vL.exports={supportsColor:NQ,stdout:NQ(process.stdout),stderr:NQ(process.stderr)}});var PL=u((zOD,bL)=>{bL.exports=function($,J){var F="";$=$||"Run the trap, drop the bass",$=$.split("");var U={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return $.forEach(function(X){X=X.toLowerCase();var Y=U[X]||[" "],Q=Math.floor(Math.random()*Y.length);if(typeof U[X]<"u")F+=U[X][Q];else F+=X}),F}});var _L=u((ZOD,SL)=>{SL.exports=function($,J){$=$||" he is here ";var F={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},U=[].concat(F.up,F.down,F.mid);function X(q){var K=Math.floor(Math.random()*q);return K}function Y(q){var K=!1;return U.filter(function(W){K=W===q}),K}function Q(q,K){var W="",G,I;K=K||{},K.up=typeof K.up<"u"?K.up:!0,K.mid=typeof K.mid<"u"?K.mid:!0,K.down=typeof K.down<"u"?K.down:!0,K.size=typeof K.size<"u"?K.size:"maxi",q=q.split("");for(I in q){if(Y(I))continue;switch(W=W+q[I],G={up:0,down:0,mid:0},K.size){case"mini":G.up=X(8),G.mid=X(2),G.down=X(8);break;case"maxi":G.up=X(16)+3,G.mid=X(4)+1,G.down=X(64)+3;break;default:G.up=X(8)+1,G.mid=X(6)/2,G.down=X(8)+1;break}var z=["up","mid","down"];for(var Z in z){var H=z[Z];for(var B=0;B<=G[H];B++)if(K[H])W=W+F[H][X(F[H].length)]}}return W}return Q($,J)}});var CL=u((HOD,kL)=>{kL.exports=function(D){return function($,J,F){if($===" ")return $;switch(J%3){case 0:return D.red($);case 1:return D.white($);case 2:return D.blue($)}}}});var gL=u((BOD,uL)=>{uL.exports=function(D){return function($,J,F){return J%2===0?$:D.inverse($)}}});var xL=u((OOD,fL)=>{fL.exports=function(D){var $=["red","yellow","green","blue","magenta"];return function(J,F,U){if(J===" ")return J;else return D[$[F++%$.length]](J)}}});var hL=u((jOD,yL)=>{yL.exports=function(D){var $=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(J,F,U){return J===" "?J:D[$[Math.round(Math.random()*($.length-2))]](J)}}});var cL=u((VOD,dL)=>{var vD={};dL.exports=vD;vD.themes={};var Vi=FD("util"),J4=vD.styles=ML(),mL=Object.defineProperties,Li=new RegExp(/[\r\n]+/g);vD.supportsColor=TL().supportsColor;if(typeof vD.enabled>"u")vD.enabled=vD.supportsColor()!==!1;vD.enable=function(){vD.enabled=!0};vD.disable=function(){vD.enabled=!1};vD.stripColors=vD.strip=function(D){return(""+D).replace(/\x1B\[\d+m/g,"")};var NOD=vD.stylize=function($,J){if(!vD.enabled)return $+"";var F=J4[J];if(!F&&J in vD)return vD[J]($);return F.open+$+F.close},wi=/[|\\{}()[\]^$+*?.]/g,Ri=function(D){if(typeof D!=="string")throw TypeError("Expected a string");return D.replace(wi,"\\$&")};function lL(D){var $=function J(){return Ei.apply(J,arguments)};return $._styles=D,$.__proto__=Mi,$}var iL=function(){var D={};return J4.grey=J4.gray,Object.keys(J4).forEach(function($){J4[$].closeRe=new RegExp(Ri(J4[$].close),"g"),D[$]={get:function(){return lL(this._styles.concat($))}}}),D}(),Mi=mL(function(){},iL);function Ei(){var D=Array.prototype.slice.call(arguments),$=D.map(function(Y){if(Y!=null&&Y.constructor===String)return Y;else return Vi.inspect(Y)}).join(" ");if(!vD.enabled||!$)return $;var J=$.indexOf(`
`)!=-1,F=this._styles,U=F.length;while(U--){var X=J4[F[U]];if($=X.open+$.replace(X.closeRe,X.open)+X.close,J)$=$.replace(Li,function(Y){return X.close+Y+X.open})}return $}vD.setTheme=function(D){if(typeof D==="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var $ in D)(function(J){vD[J]=function(F){if(typeof D[J]==="object"){var U=F;for(var X in D[J])U=vD[D[J][X]](U);return U}return vD[D[J]](F)}})($)};function Ai(){var D={};return Object.keys(iL).forEach(function($){D[$]={get:function(){return lL([$])}}}),D}var vi=function($,J){var F=J.split("");return F=F.map($),F.join("")};vD.trap=PL();vD.zalgo=_L();vD.maps={};vD.maps.america=CL()(vD);vD.maps.zebra=gL()(vD);vD.maps.rainbow=xL()(vD);vD.maps.random=hL()(vD);for(VQ in vD.maps)(function(D){vD[D]=function($){return vi(vD.maps[D],$)}})(VQ);var VQ;mL(vD,Ai())});var pL=u((LOD,nL)=>{var Ti=cL();nL.exports=Ti});var rL=u((bi)=>{bi.indent=function($){return Array($+1).join(" ")};bi.getMaxIndexLength=function(D){var $=0;return Object.getOwnPropertyNames(D).forEach(function(J){if(D[J]===void 0)return;$=Math.max($,J.length)}),$}});var tL=u((ROD,_i)=>{_i.exports={author:"Rafael de Oleza <rafeca@gmail.com> (https://github.com/rafeca)",name:"prettyjson",description:"Package for formatting JSON data in a coloured YAML-style, perfect for CLI output",version:"1.2.5",homepage:"http://rafeca.com/prettyjson",keywords:["json","cli","formatting","colors"],repository:{type:"git",url:"https://github.com/rafeca/prettyjson.git"},bugs:{url:"https://github.com/rafeca/prettyjson/issues"},main:"./lib/prettyjson",files:["bin/prettyjson","lib/*.js"],license:"MIT",scripts:{test:"npm run jshint && mocha --reporter spec",testwin:"node ./node_modules/mocha/bin/mocha --reporter spec",jshint:"jshint lib/*.js test/*.js",coverage:"istanbul cover _mocha --report lcovonly -- -R spec",coveralls:"npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",changelog:"git log $(git describe --tags --abbrev=0)..HEAD --pretty='* %s' --first-parent"},bin:{prettyjson:"./bin/prettyjson"},dependencies:{colors:"1.4.0",minimist:"^1.2.0"},devDependencies:{coveralls:"^2.11.15",istanbul:"^0.4.5",jshint:"^2.9.4",mocha:"^3.1.2","mocha-lcov-reporter":"^1.2.0",should:"^11.1.1"}}});var aL=u((gi)=>{var W6=pL(),Y1=rL(),ki=/[^\w\s\n\r\v\t\.,]/i;gi.version=tL().version;var LQ=function(D,$){return D!==void 0||$.renderUndefined},i7=function(D,$,J){if(typeof D==="boolean"||typeof D==="number"||typeof D==="function"||D===null||D===void 0||D instanceof Date)return!0;if(typeof D==="string"&&D.indexOf(`
`)===-1)return!0;if(J.inlineArrays&&!$){if(Array.isArray(D)&&i7(D[0],!0,J))return!0}return!1},Ci=function(D,$){if($.noColor)return D;if(typeof D==="string")return $.stringColor?W6[$.stringColor](D):D;var J=D+"";if(D===!0)return W6.green(J);if(D===!1)return W6.red(J);if(D===null||D===void 0)return W6.grey(J);if(typeof D==="number")if(D>=0)return W6[$.positiveNumberColor](J);else return W6[$.negativeNumberColor](J);if(typeof D==="function")return"function() {}";if(Array.isArray(D))return D.join(", ");return J},wQ=function(D,$){if(D.multilineStringColor===null||D.noColor)return $;else return W6[D.multilineStringColor]($)},ui=function(D,$,J){var F=D.split(`
`);return F=F.map(function(U){return Y1.indent($)+wQ(J,U)}),F.join(`
`)},S2=function(D,$,J){if(typeof D==="string"&&D.match(ki)&&$.escape)D=JSON.stringify(D);if(!LQ(D,$))return[];if(i7(D,!1,$))return[Y1.indent(J)+Ci(D,$)];if(typeof D==="string")return[Y1.indent(J)+wQ($,'"""'),ui(D,J+$.defaultIndentation,$),Y1.indent(J)+wQ($,'"""')];if(Array.isArray(D)){if(D.length===0)return[Y1.indent(J)+$.emptyArrayMsg];var F=[];return D.forEach(function(Q){if(!LQ(Q,$))return;var q="- ";if(!$.noColor)q=W6[$.dashColor](q);if(q=Y1.indent(J)+q,i7(Q,!1,$))q+=S2(Q,$,0)[0],F.push(q);else F.push(q),F.push.apply(F,S2(Q,$,J+$.defaultIndentation))}),F}if(D instanceof Error)return S2({message:D.message,stack:D.stack.split(`
`)},$,J);var U=$.noAlign?0:Y1.getMaxIndexLength(D),X,Y=[];return Object.getOwnPropertyNames(D).forEach(function(Q){if(!LQ(D[Q],$))return;if(X=Q+": ",!$.noColor)X=W6[$.keysColor](X);if(X=Y1.indent(J)+X,i7(D[Q],!1,$)){var q=$.noAlign?0:U-Q.length;X+=S2(D[Q],$,q)[0],Y.push(X)}else Y.push(X),Y.push.apply(Y,S2(D[Q],$,J+$.defaultIndentation))}),Y};gi.render=function($,J,F){return F=F||0,J=J||{},J.emptyArrayMsg=J.emptyArrayMsg||"(empty array)",J.keysColor=J.keysColor||"green",J.dashColor=J.dashColor||"green",J.numberColor=J.numberColor||"blue",J.positiveNumberColor=J.positiveNumberColor||J.numberColor,J.negativeNumberColor=J.negativeNumberColor||J.numberColor,J.defaultIndentation=J.defaultIndentation||2,J.noColor=!!J.noColor,J.noAlign=!!J.noAlign,J.escape=!!J.escape,J.renderUndefined=!!J.renderUndefined,J.stringColor=J.stringColor||null,J.multilineStringColor=J.multilineStringColor||null,S2($,J,F).join(`
`)};gi.renderString=function($,J,F){var U="",X;if(typeof $!=="string"||$==="")return"";if($[0]!=="{"&&$[0]!=="["){var Y;if($.indexOf("{")===-1)Y=$.indexOf("[");else if($.indexOf("[")===-1)Y=$.indexOf("{");else if($.indexOf("{")<$.indexOf("["))Y=$.indexOf("{");else Y=$.indexOf("[");U+=$.substr(0,Y)+`
`,$=$.substr(Y)}try{X=JSON.parse($)}catch(Q){return W6.red("Error:")+" Not valid JSON!"}return U+=gi.render(X,J,F),U}});var EQ=u((eL)=>{Object.defineProperty(eL,"__esModule",{value:!0});eL.default=void 0;function _2(D){return _2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},_2(D)}function sL(D,$){for(var J=0;J<$.length;J++){var F=$[J];if(F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F)F.writable=!0;Object.defineProperty(D,hi(F.key),F)}}function yi(D,$,J){if($)sL(D.prototype,$);if(J)sL(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function hi(D){var $=mi(D,"string");return _2($)=="symbol"?$:$+""}function mi(D,$){if(_2(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var F=J.call(D,$||"default");if(_2(F)!="object")return F;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function li(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function ii(D,$,J){return $=n3($),di(D,MQ()?Reflect.construct($,J||[],n3(D).constructor):$.apply(D,J))}function di(D,$){if($&&(_2($)==="object"||typeof $==="function"))return $;else if($!==void 0)throw TypeError("Derived constructors may only return object or undefined");return ci(D)}function ci(D){if(D===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function ni(D,$){if(typeof $!=="function"&&$!==null)throw TypeError("Super expression must either be null or a function");if(D.prototype=Object.create($&&$.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),$)c3(D,$)}function RQ(D){var $=typeof Map==="function"?new Map:void 0;return RQ=function(F){if(F===null||!ri(F))return F;if(typeof F!=="function")throw TypeError("Super expression must either be null or a function");if(typeof $<"u"){if($.has(F))return $.get(F);$.set(F,U)}function U(){return pi(F,arguments,n3(this).constructor)}return U.prototype=Object.create(F.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}),c3(U,F)},RQ(D)}function pi(D,$,J){if(MQ())return Reflect.construct.apply(null,arguments);var F=[null];F.push.apply(F,$);var U=new(D.bind.apply(D,F));return J&&c3(U,J.prototype),U}function MQ(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch($){}return(MQ=function(){return!!D})()}function ri(D){try{return Function.toString.call(D).indexOf("[native code]")!==-1}catch($){return typeof D==="function"}}function c3(D,$){return c3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,U){return F.__proto__=U,F},c3(D,$)}function n3(D){return n3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},n3(D)}var ti=function(D){function $(J){var F,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(li(this,$),F=ii(this,$,[J]),F.originalRequest=X,F.originalResponse=Y,F.causingError=U,U!=null)J+=", caused by ".concat(U.toString());if(X!=null){var Q=X.getHeader("X-Request-ID")||"n/a",q=X.getMethod(),K=X.getURL(),W=Y?Y.getStatus():"n/a",G=Y?Y.getBody()||"":"n/a";J+=", originated from request (method: ".concat(q,", url: ").concat(K,", response code: ").concat(W,", response text: ").concat(G,", request id: ").concat(Q,")")}return F.message=J,F}return ni($,D),yi($)}(RQ(Error)),EOD=eL.default=ti});var AQ=u((Jw)=>{Object.defineProperty(Jw,"__esModule",{value:!0});Jw.enableDebugLog=oi;Jw.log=ai;var $w=!1;function oi(){$w=!0}function ai(D){if(!$w)return;console.log(D)}});var Yw=u((Uw)=>{Object.defineProperty(Uw,"__esModule",{value:!0});Uw.default=void 0;function p3(D){return p3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},p3(D)}function Dd(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function Fw(D,$){for(var J=0;J<$.length;J++){var F=$[J];if(F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F)F.writable=!0;Object.defineProperty(D,Jd(F.key),F)}}function $d(D,$,J){if($)Fw(D.prototype,$);if(J)Fw(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function Jd(D){var $=Fd(D,"string");return p3($)=="symbol"?$:$+""}function Fd(D,$){if(p3(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var F=J.call(D,$||"default");if(p3(F)!="object")return F;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var TOD=Uw.default=function(){function D(){Dd(this,D)}return $d(D,[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(J){return Promise.resolve([])}},{key:"removeUpload",value:function(J){return Promise.resolve()}},{key:"addUpload",value:function(J,F){return Promise.resolve(null)}}])}()});var Qw=u((vQ,TQ)=>{(function(D,$){typeof vQ==="object"&&typeof TQ<"u"?TQ.exports=$():typeof define==="function"&&define.amd?define($):function(){var J=D.Base64,F=$();if(F.noConflict=function(){return D.Base64=J,F},D.Meteor)Base64=F;D.Base64=F}()})(typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:vQ,function(){var D="3.7.8",$=D,J=typeof Buffer==="function",F=typeof TextDecoder==="function"?new TextDecoder:void 0,U=typeof TextEncoder==="function"?new TextEncoder:void 0,X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Y=Array.prototype.slice.call(X),Q=function(g){var d={};return g.forEach(function(ZD,jD){return d[ZD]=jD}),d}(Y),q=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,K=String.fromCharCode.bind(String),W=typeof Uint8Array.from==="function"?Uint8Array.from.bind(Uint8Array):function(g){return new Uint8Array(Array.prototype.slice.call(g,0))},G=function(g){return g.replace(/=/g,"").replace(/[+\/]/g,function(d){return d=="+"?"-":"_"})},I=function(g){return g.replace(/[^A-Za-z0-9\+\/]/g,"")},z=function(g){var d,ZD,jD,PD,g0="",V2=g.length%3;for(var s1=0;s1<g.length;){if((ZD=g.charCodeAt(s1++))>255||(jD=g.charCodeAt(s1++))>255||(PD=g.charCodeAt(s1++))>255)throw TypeError("invalid character found");d=ZD<<16|jD<<8|PD,g0+=Y[d>>18&63]+Y[d>>12&63]+Y[d>>6&63]+Y[d&63]}return V2?g0.slice(0,V2-3)+"===".substring(V2):g0},Z=typeof btoa==="function"?function(g){return btoa(g)}:J?function(g){return Buffer.from(g,"binary").toString("base64")}:z,H=J?function(g){return Buffer.from(g).toString("base64")}:function(g){var d=4096,ZD=[];for(var jD=0,PD=g.length;jD<PD;jD+=d)ZD.push(K.apply(null,g.subarray(jD,jD+d)));return Z(ZD.join(""))},B=function(g,d){if(d===void 0)d=!1;return d?G(H(g)):H(g)},j=function(g){if(g.length<2){var d=g.charCodeAt(0);return d<128?g:d<2048?K(192|d>>>6)+K(128|d&63):K(224|d>>>12&15)+K(128|d>>>6&63)+K(128|d&63)}else{var d=65536+(g.charCodeAt(0)-55296)*1024+(g.charCodeAt(1)-56320);return K(240|d>>>18&7)+K(128|d>>>12&63)+K(128|d>>>6&63)+K(128|d&63)}},N=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,O=function(g){return g.replace(N,j)},L=J?function(g){return Buffer.from(g,"utf8").toString("base64")}:U?function(g){return H(U.encode(g))}:function(g){return Z(O(g))},A=function(g,d){if(d===void 0)d=!1;return d?G(L(g)):L(g)},E=function(g){return A(g,!0)},_=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,k=function(g){switch(g.length){case 4:var d=(7&g.charCodeAt(0))<<18|(63&g.charCodeAt(1))<<12|(63&g.charCodeAt(2))<<6|63&g.charCodeAt(3),ZD=d-65536;return K((ZD>>>10)+55296)+K((ZD&1023)+56320);case 3:return K((15&g.charCodeAt(0))<<12|(63&g.charCodeAt(1))<<6|63&g.charCodeAt(2));default:return K((31&g.charCodeAt(0))<<6|63&g.charCodeAt(1))}},C=function(g){return g.replace(_,k)},y=function(g){if(g=g.replace(/\s+/g,""),!q.test(g))throw TypeError("malformed base64.");g+="==".slice(2-(g.length&3));var d,ZD,jD,PD=[];for(var g0=0;g0<g.length;)if(d=Q[g.charAt(g0++)]<<18|Q[g.charAt(g0++)]<<12|(ZD=Q[g.charAt(g0++)])<<6|(jD=Q[g.charAt(g0++)]),ZD===64)PD.push(K(d>>16&255));else if(jD===64)PD.push(K(d>>16&255,d>>8&255));else PD.push(K(d>>16&255,d>>8&255,d&255));return PD.join("")},v=typeof atob==="function"?function(g){return atob(I(g))}:J?function(g){return Buffer.from(g,"base64").toString("binary")}:y,i=J?function(g){return W(Buffer.from(g,"base64"))}:function(g){return W(v(g).split("").map(function(d){return d.charCodeAt(0)}))},c=function(g){return i(t(g))},n=J?function(g){return Buffer.from(g,"base64").toString("utf8")}:F?function(g){return F.decode(i(g))}:function(g){return C(v(g))},t=function(g){return I(g.replace(/[-_]/g,function(d){return d=="-"?"+":"/"}))},R=function(g){return n(t(g))},V=function(g){if(typeof g!=="string")return!1;var d=g.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(d)||!/[^\s0-9a-zA-Z\-_]/.test(d)},w=function(g){return{value:g,enumerable:!1,writable:!0,configurable:!0}},b=function(){var g=function(d,ZD){return Object.defineProperty(String.prototype,d,w(ZD))};g("fromBase64",function(){return R(this)}),g("toBase64",function(d){return A(this,d)}),g("toBase64URI",function(){return A(this,!0)}),g("toBase64URL",function(){return A(this,!0)}),g("toUint8Array",function(){return c(this)})},x=function(){var g=function(d,ZD){return Object.defineProperty(Uint8Array.prototype,d,w(ZD))};g("toBase64",function(d){return B(this,d)}),g("toBase64URI",function(){return B(this,!0)}),g("toBase64URL",function(){return B(this,!0)})},f=function(){b(),x()},a={version:D,VERSION:$,atob:v,atobPolyfill:y,btoa:Z,btoaPolyfill:z,fromBase64:R,toBase64:A,encode:A,encodeURI:E,encodeURL:E,utob:O,btou:C,decode:R,isValid:V,fromUint8Array:B,toUint8Array:c,extendString:b,extendUint8Array:x,extendBuiltins:f};return a.Base64={},Object.keys(a).forEach(function(g){return a.Base64[g]=a[g]}),a})});var Kw=u((POD,qw)=>{qw.exports=function($,J){if(J=J.split(":")[0],$=+$,!$)return!1;switch(J){case"http":case"ws":return $!==80;case"https":case"wss":return $!==443;case"ftp":return $!==21;case"gopher":return $!==70;case"file":return!1}return $!==0}});var Iw=u((qd)=>{var Ud=Object.prototype.hasOwnProperty,Xd;function Ww(D){try{return decodeURIComponent(D.replace(/\+/g," "))}catch($){return null}}function Gw(D){try{return encodeURIComponent(D)}catch($){return null}}function Yd(D){var $=/([^=?#&]+)=?([^&]*)/g,J={},F;while(F=$.exec(D)){var U=Ww(F[1]),X=Ww(F[2]);if(U===null||X===null||U in J)continue;J[U]=X}return J}function Qd(D,$){$=$||"";var J=[],F,U;if(typeof $!=="string")$="?";for(U in D)if(Ud.call(D,U)){if(F=D[U],!F&&(F===null||F===Xd||isNaN(F)))F="";if(U=Gw(U),F=Gw(F),U===null||F===null)continue;J.push(U+"="+F)}return J.length?$+J.join("&"):""}qd.stringify=Qd;qd.parse=Yd});var Vw=u((_OD,Nw)=>{var Zw=Kw(),d7=Iw(),Gd=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Hw=/[\n\r\t]/g,Id=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Bw=/:\d+$/,zd=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,Zd=/^[a-zA-Z]:/;function PQ(D){return(D?D:"").toString().replace(Gd,"")}var bQ=[["#","hash"],["?","query"],function($,J){return G6(J.protocol)?$.replace(/\\/g,"/"):$},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],zw={hash:1,query:1};function Ow(D){var $;if(typeof window<"u")$=window;else if(typeof global<"u")$=global;else if(typeof self<"u")$=self;else $={};var J=$.location||{};D=D||J;var F={},U=typeof D,X;if(D.protocol==="blob:")F=new I6(unescape(D.pathname),{});else if(U==="string"){F=new I6(D,{});for(X in zw)delete F[X]}else if(U==="object"){for(X in D){if(X in zw)continue;F[X]=D[X]}if(F.slashes===void 0)F.slashes=Id.test(D.href)}return F}function G6(D){return D==="file:"||D==="ftp:"||D==="http:"||D==="https:"||D==="ws:"||D==="wss:"}function jw(D,$){D=PQ(D),D=D.replace(Hw,""),$=$||{};var J=zd.exec(D),F=J[1]?J[1].toLowerCase():"",U=!!J[2],X=!!J[3],Y=0,Q;if(U)if(X)Q=J[2]+J[3]+J[4],Y=J[2].length+J[3].length;else Q=J[2]+J[4],Y=J[2].length;else if(X)Q=J[3]+J[4],Y=J[3].length;else Q=J[4];if(F==="file:"){if(Y>=2)Q=Q.slice(2)}else if(G6(F))Q=J[4];else if(F){if(U)Q=Q.slice(2)}else if(Y>=2&&G6($.protocol))Q=J[4];return{protocol:F,slashes:U||G6(F),slashesCount:Y,rest:Q}}function Hd(D,$){if(D==="")return $;var J=($||"/").split("/").slice(0,-1).concat(D.split("/")),F=J.length,U=J[F-1],X=!1,Y=0;while(F--)if(J[F]===".")J.splice(F,1);else if(J[F]==="..")J.splice(F,1),Y++;else if(Y){if(F===0)X=!0;J.splice(F,1),Y--}if(X)J.unshift("");if(U==="."||U==="..")J.push("");return J.join("/")}function I6(D,$,J){if(D=PQ(D),D=D.replace(Hw,""),!(this instanceof I6))return new I6(D,$,J);var F,U,X,Y,Q,q,K=bQ.slice(),W=typeof $,G=this,I=0;if(W!=="object"&&W!=="string")J=$,$=null;if(J&&typeof J!=="function")J=d7.parse;if($=Ow($),U=jw(D||"",$),F=!U.protocol&&!U.slashes,G.slashes=U.slashes||F&&$.slashes,G.protocol=U.protocol||$.protocol||"",D=U.rest,U.protocol==="file:"&&(U.slashesCount!==2||Zd.test(D))||!U.slashes&&(U.protocol||U.slashesCount<2||!G6(G.protocol)))K[3]=[/(.*)/,"pathname"];for(;I<K.length;I++){if(Y=K[I],typeof Y==="function"){D=Y(D,G);continue}if(X=Y[0],q=Y[1],X!==X)G[q]=D;else if(typeof X==="string"){if(Q=X==="@"?D.lastIndexOf(X):D.indexOf(X),~Q)if(typeof Y[2]==="number")G[q]=D.slice(0,Q),D=D.slice(Q+Y[2]);else G[q]=D.slice(Q),D=D.slice(0,Q)}else if(Q=X.exec(D))G[q]=Q[1],D=D.slice(0,Q.index);if(G[q]=G[q]||(F&&Y[3]?$[q]||"":""),Y[4])G[q]=G[q].toLowerCase()}if(J)G.query=J(G.query);if(F&&$.slashes&&G.pathname.charAt(0)!=="/"&&(G.pathname!==""||$.pathname!==""))G.pathname=Hd(G.pathname,$.pathname);if(G.pathname.charAt(0)!=="/"&&G6(G.protocol))G.pathname="/"+G.pathname;if(!Zw(G.port,G.protocol))G.host=G.hostname,G.port="";if(G.username=G.password="",G.auth){if(Q=G.auth.indexOf(":"),~Q)G.username=G.auth.slice(0,Q),G.username=encodeURIComponent(decodeURIComponent(G.username)),G.password=G.auth.slice(Q+1),G.password=encodeURIComponent(decodeURIComponent(G.password));else G.username=encodeURIComponent(decodeURIComponent(G.auth));G.auth=G.password?G.username+":"+G.password:G.username}G.origin=G.protocol!=="file:"&&G6(G.protocol)&&G.host?G.protocol+"//"+G.host:"null",G.href=G.toString()}function Bd(D,$,J){var F=this;switch(D){case"query":if(typeof $==="string"&&$.length)$=(J||d7.parse)($);F[D]=$;break;case"port":if(F[D]=$,!Zw($,F.protocol))F.host=F.hostname,F[D]="";else if($)F.host=F.hostname+":"+$;break;case"hostname":if(F[D]=$,F.port)$+=":"+F.port;F.host=$;break;case"host":if(F[D]=$,Bw.test($))$=$.split(":"),F.port=$.pop(),F.hostname=$.join(":");else F.hostname=$,F.port="";break;case"protocol":F.protocol=$.toLowerCase(),F.slashes=!J;break;case"pathname":case"hash":if($){var U=D==="pathname"?"/":"#";F[D]=$.charAt(0)!==U?U+$:$}else F[D]=$;break;case"username":case"password":F[D]=encodeURIComponent($);break;case"auth":var X=$.indexOf(":");if(~X)F.username=$.slice(0,X),F.username=encodeURIComponent(decodeURIComponent(F.username)),F.password=$.slice(X+1),F.password=encodeURIComponent(decodeURIComponent(F.password));else F.username=encodeURIComponent(decodeURIComponent($))}for(var Y=0;Y<bQ.length;Y++){var Q=bQ[Y];if(Q[4])F[Q[1]]=F[Q[1]].toLowerCase()}return F.auth=F.password?F.username+":"+F.password:F.username,F.origin=F.protocol!=="file:"&&G6(F.protocol)&&F.host?F.protocol+"//"+F.host:"null",F.href=F.toString(),F}function Od(D){if(!D||typeof D!=="function")D=d7.stringify;var $,J=this,F=J.host,U=J.protocol;if(U&&U.charAt(U.length-1)!==":")U+=":";var X=U+(J.protocol&&J.slashes||G6(J.protocol)?"//":"");if(J.username){if(X+=J.username,J.password)X+=":"+J.password;X+="@"}else if(J.password)X+=":"+J.password,X+="@";else if(J.protocol!=="file:"&&G6(J.protocol)&&!F&&J.pathname!=="/")X+="@";if(F[F.length-1]===":"||Bw.test(J.hostname)&&!J.port)F+=":";if(X+=F+J.pathname,$=typeof J.query==="object"?D(J.query):J.query,$)X+=$.charAt(0)!=="?"?"?"+$:$;if(J.hash)X+=J.hash;return X}I6.prototype={set:Bd,toString:Od};I6.extractProtocol=jw;I6.location=Ow;I6.trimLeft=PQ;I6.qs=d7;Nw.exports=I6});var ww=u((Lw)=>{Object.defineProperty(Lw,"__esModule",{value:!0});Lw.default=jd;function jd(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(D){var $=Math.random()*16|0,J=D==="x"?$:$&3|8;return J.toString(16)})}});var yw=u((fw)=>{Object.defineProperty(fw,"__esModule",{value:!0});fw.default=void 0;var Vd=Qw(),Ld=kQ(Vw()),c7=kQ(EQ()),F4=AQ(),wd=kQ(ww());function kQ(D){return D&&D.__esModule?D:{default:D}}function SQ(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */SQ=function(){return $};var D,$={},J=Object.prototype,F=J.hasOwnProperty,U=Object.defineProperty||function(R,V,w){R[V]=w.value},X=typeof Symbol=="function"?Symbol:{},Y=X.iterator||"@@iterator",Q=X.asyncIterator||"@@asyncIterator",q=X.toStringTag||"@@toStringTag";function K(R,V,w){return Object.defineProperty(R,V,{value:w,enumerable:!0,configurable:!0,writable:!0}),R[V]}try{K({},"")}catch(R){K=function(w,b,x){return w[b]=x}}function W(R,V,w,b){var x=V&&V.prototype instanceof j?V:j,f=Object.create(x.prototype),a=new n(b||[]);return U(f,"_invoke",{value:y(R,w,a)}),f}function G(R,V,w){try{return{type:"normal",arg:R.call(V,w)}}catch(b){return{type:"throw",arg:b}}}$.wrap=W;var I="suspendedStart",z="suspendedYield",Z="executing",H="completed",B={};function j(){}function N(){}function O(){}var L={};K(L,Y,function(){return this});var A=Object.getPrototypeOf,E=A&&A(A(t([])));E&&E!==J&&F.call(E,Y)&&(L=E);var _=O.prototype=j.prototype=Object.create(L);function k(R){["next","throw","return"].forEach(function(V){K(R,V,function(w){return this._invoke(V,w)})})}function C(R,V){function w(x,f,a,g){var d=G(R[x],R,f);if(d.type!=="throw"){var ZD=d.arg,jD=ZD.value;return jD&&U4(jD)=="object"&&F.call(jD,"__await")?V.resolve(jD.__await).then(function(PD){w("next",PD,a,g)},function(PD){w("throw",PD,a,g)}):V.resolve(jD).then(function(PD){ZD.value=PD,a(ZD)},function(PD){return w("throw",PD,a,g)})}g(d.arg)}var b;U(this,"_invoke",{value:function(f,a){function g(){return new V(function(d,ZD){w(f,a,d,ZD)})}return b=b?b.then(g,g):g()}})}function y(R,V,w){var b=I;return function(x,f){if(b===Z)throw Error("Generator is already running");if(b===H){if(x==="throw")throw f;return{value:D,done:!0}}for(w.method=x,w.arg=f;;){var a=w.delegate;if(a){var g=v(a,w);if(g){if(g===B)continue;return g}}if(w.method==="next")w.sent=w._sent=w.arg;else if(w.method==="throw"){if(b===I)throw b=H,w.arg;w.dispatchException(w.arg)}else w.method==="return"&&w.abrupt("return",w.arg);b=Z;var d=G(R,V,w);if(d.type==="normal"){if(b=w.done?H:z,d.arg===B)continue;return{value:d.arg,done:w.done}}d.type==="throw"&&(b=H,w.method="throw",w.arg=d.arg)}}}function v(R,V){var w=V.method,b=R.iterator[w];if(b===D)return V.delegate=null,w==="throw"&&R.iterator.return&&(V.method="return",V.arg=D,v(R,V),V.method==="throw")||w!=="return"&&(V.method="throw",V.arg=TypeError("The iterator does not provide a '"+w+"' method")),B;var x=G(b,R.iterator,V.arg);if(x.type==="throw")return V.method="throw",V.arg=x.arg,V.delegate=null,B;var f=x.arg;return f?f.done?(V[R.resultName]=f.value,V.next=R.nextLoc,V.method!=="return"&&(V.method="next",V.arg=D),V.delegate=null,B):f:(V.method="throw",V.arg=TypeError("iterator result is not an object"),V.delegate=null,B)}function i(R){var V={tryLoc:R[0]};1 in R&&(V.catchLoc=R[1]),2 in R&&(V.finallyLoc=R[2],V.afterLoc=R[3]),this.tryEntries.push(V)}function c(R){var V=R.completion||{};V.type="normal",delete V.arg,R.completion=V}function n(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(i,this),this.reset(!0)}function t(R){if(R||R===""){var V=R[Y];if(V)return V.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var w=-1,b=function x(){for(;++w<R.length;)if(F.call(R,w))return x.value=R[w],x.done=!1,x;return x.value=D,x.done=!0,x};return b.next=b}}throw TypeError(U4(R)+" is not iterable")}return N.prototype=O,U(_,"constructor",{value:O,configurable:!0}),U(O,"constructor",{value:N,configurable:!0}),N.displayName=K(O,q,"GeneratorFunction"),$.isGeneratorFunction=function(R){var V=typeof R=="function"&&R.constructor;return!!V&&(V===N||(V.displayName||V.name)==="GeneratorFunction")},$.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,O):(R.__proto__=O,K(R,q,"GeneratorFunction")),R.prototype=Object.create(_),R},$.awrap=function(R){return{__await:R}},k(C.prototype),K(C.prototype,Q,function(){return this}),$.AsyncIterator=C,$.async=function(R,V,w,b,x){x===void 0&&(x=Promise);var f=new C(W(R,V,w,b),x);return $.isGeneratorFunction(V)?f:f.next().then(function(a){return a.done?a.value:f.next()})},k(_),K(_,q,"Generator"),K(_,Y,function(){return this}),K(_,"toString",function(){return"[object Generator]"}),$.keys=function(R){var V=Object(R),w=[];for(var b in V)w.push(b);return w.reverse(),function x(){for(;w.length;){var f=w.pop();if(f in V)return x.value=f,x.done=!1,x}return x.done=!0,x}},$.values=t,n.prototype={constructor:n,reset:function(V){if(this.prev=0,this.next=0,this.sent=this._sent=D,this.done=!1,this.delegate=null,this.method="next",this.arg=D,this.tryEntries.forEach(c),!V)for(var w in this)w.charAt(0)==="t"&&F.call(this,w)&&!isNaN(+w.slice(1))&&(this[w]=D)},stop:function(){this.done=!0;var V=this.tryEntries[0].completion;if(V.type==="throw")throw V.arg;return this.rval},dispatchException:function(V){if(this.done)throw V;var w=this;function b(ZD,jD){return a.type="throw",a.arg=V,w.next=ZD,jD&&(w.method="next",w.arg=D),!!jD}for(var x=this.tryEntries.length-1;x>=0;--x){var f=this.tryEntries[x],a=f.completion;if(f.tryLoc==="root")return b("end");if(f.tryLoc<=this.prev){var g=F.call(f,"catchLoc"),d=F.call(f,"finallyLoc");if(g&&d){if(this.prev<f.catchLoc)return b(f.catchLoc,!0);if(this.prev<f.finallyLoc)return b(f.finallyLoc)}else if(g){if(this.prev<f.catchLoc)return b(f.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<f.finallyLoc)return b(f.finallyLoc)}}}},abrupt:function(V,w){for(var b=this.tryEntries.length-1;b>=0;--b){var x=this.tryEntries[b];if(x.tryLoc<=this.prev&&F.call(x,"finallyLoc")&&this.prev<x.finallyLoc){var f=x;break}}f&&(V==="break"||V==="continue")&&f.tryLoc<=w&&w<=f.finallyLoc&&(f=null);var a=f?f.completion:{};return a.type=V,a.arg=w,f?(this.method="next",this.next=f.finallyLoc,B):this.complete(a)},complete:function(V,w){if(V.type==="throw")throw V.arg;return V.type==="break"||V.type==="continue"?this.next=V.arg:V.type==="return"?(this.rval=this.arg=V.arg,this.method="return",this.next="end"):V.type==="normal"&&w&&(this.next=w),B},finish:function(V){for(var w=this.tryEntries.length-1;w>=0;--w){var b=this.tryEntries[w];if(b.finallyLoc===V)return this.complete(b.completion,b.afterLoc),c(b),B}},catch:function(V){for(var w=this.tryEntries.length-1;w>=0;--w){var b=this.tryEntries[w];if(b.tryLoc===V){var x=b.completion;if(x.type==="throw"){var f=x.arg;c(b)}return f}}throw Error("illegal catch attempt")},delegateYield:function(V,w,b){return this.delegate={iterator:t(V),resultName:w,nextLoc:b},this.method==="next"&&(this.arg=D),B}},$}function Rw(D,$,J,F,U,X,Y){try{var Q=D[X](Y),q=Q.value}catch(K){J(K);return}if(Q.done)$(q);else Promise.resolve(q).then(F,U)}function Rd(D){return function(){var $=this,J=arguments;return new Promise(function(F,U){var X=D.apply($,J);function Y(q){Rw(X,F,U,Y,Q,"next",q)}function Q(q){Rw(X,F,U,Y,Q,"throw",q)}Y(void 0)})}}function _w(D,$){return Ad(D)||Ed(D,$)||kw(D,$)||Md()}function Md(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ed(D,$){var J=D==null?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(J!=null){var F,U,X,Y,Q=[],q=!0,K=!1;try{if(X=(J=J.call(D)).next,$===0){if(Object(J)!==J)return;q=!1}else for(;!(q=(F=X.call(J)).done)&&(Q.push(F.value),Q.length!==$);q=!0);}catch(W){K=!0,U=W}finally{try{if(!q&&J.return!=null&&(Y=J.return(),Object(Y)!==Y))return}finally{if(K)throw U}}return Q}}function Ad(D){if(Array.isArray(D))return D}function U4(D){return U4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},U4(D)}function vd(D,$){var J=typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(!J){if(Array.isArray(D)||(J=kw(D))||$&&D&&typeof D.length==="number"){if(J)D=J;var F=0,U=function(){};return{s:U,n:function(){if(F>=D.length)return{done:!0};return{done:!1,value:D[F++]}},e:function(K){throw K},f:U}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var X=!0,Y=!1,Q;return{s:function(){J=J.call(D)},n:function(){var K=J.next();return X=K.done,K},e:function(K){Y=!0,Q=K},f:function(){try{if(!X&&J.return!=null)J.return()}finally{if(Y)throw Q}}}}function kw(D,$){if(!D)return;if(typeof D==="string")return Mw(D,$);var J=Object.prototype.toString.call(D).slice(8,-1);if(J==="Object"&&D.constructor)J=D.constructor.name;if(J==="Map"||J==="Set")return Array.from(D);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return Mw(D,$)}function Mw(D,$){if($==null||$>D.length)$=D.length;for(var J=0,F=Array($);J<$;J++)F[J]=D[J];return F}function Ew(D,$){var J=Object.keys(D);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(D);$&&(F=F.filter(function(U){return Object.getOwnPropertyDescriptor(D,U).enumerable})),J.push.apply(J,F)}return J}function k2(D){for(var $=1;$<arguments.length;$++){var J=arguments[$]!=null?arguments[$]:{};$%2?Ew(Object(J),!0).forEach(function(F){Td(D,F,J[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(J)):Ew(Object(J)).forEach(function(F){Object.defineProperty(D,F,Object.getOwnPropertyDescriptor(J,F))})}return D}function Td(D,$,J){if($=Cw($),$ in D)Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0,writable:!0});else D[$]=J;return D}function bd(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function Aw(D,$){for(var J=0;J<$.length;J++){var F=$[J];if(F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F)F.writable=!0;Object.defineProperty(D,Cw(F.key),F)}}function Pd(D,$,J){if($)Aw(D.prototype,$);if(J)Aw(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function Cw(D){var $=Sd(D,"string");return U4($)=="symbol"?$:$+""}function Sd(D,$){if(U4(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var F=J.call(D,$||"default");if(U4(F)!="object")return F;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var n7="tus-v1",p7="ietf-draft-03",r3="ietf-draft-05",_d={endpoint:null,uploadUrl:null,metadata:{},metadataForPartialUploads:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:gw,chunkSize:Number.POSITIVE_INFINITY,retryDelays:[0,1000,3000,5000],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null,protocol:n7},uw=function(){function D($,J){if(bd(this,D),"resume"in J)console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead.");this.options=J,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=$,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}return Pd(D,[{key:"findPreviousUploads",value:function(){var J=this;return this.options.fingerprint(this.file,this.options).then(function(F){return J._urlStorage.findUploadsByFingerprint(F)})}},{key:"resumeFromPreviousUpload",value:function(J){this.url=J.uploadUrl||null,this._parallelUploadUrls=J.parallelUploadUrls||null,this._urlStorageKey=J.urlStorageKey}},{key:"start",value:function(){var J=this,F=this.file;if(!F){this._emitError(Error("tus: no file or stream to upload provided"));return}if(![n7,p7,r3].includes(this.options.protocol)){this._emitError(Error("tus: unsupported protocol ".concat(this.options.protocol)));return}if(!this.options.endpoint&&!this.options.uploadUrl&&!this.url){this._emitError(Error("tus: neither an endpoint or an upload URL is provided"));return}var U=this.options.retryDelays;if(U!=null&&Object.prototype.toString.call(U)!=="[object Array]"){this._emitError(Error("tus: the `retryDelays` option must either be an array or null"));return}if(this.options.parallelUploads>1)for(var X=0,Y=["uploadUrl","uploadSize","uploadLengthDeferred"];X<Y.length;X++){var Q=Y[X];if(this.options[Q]){this._emitError(Error("tus: cannot use the ".concat(Q," option when parallelUploads is enabled")));return}}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1){this._emitError(Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));return}if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length){this._emitError(Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"));return}}this.options.fingerprint(F,this.options).then(function(q){if(q==null)(0,F4.log)("No fingerprint was calculated meaning that the upload cannot be stored in the URL storage.");else(0,F4.log)("Calculated fingerprint: ".concat(q));if(J._fingerprint=q,J._source)return J._source;return J.options.fileReader.openFile(F,J.options.chunkSize)}).then(function(q){if(J._source=q,J.options.uploadLengthDeferred)J._size=null;else if(J.options.uploadSize!=null){if(J._size=Number(J.options.uploadSize),Number.isNaN(J._size)){J._emitError(Error("tus: cannot convert `uploadSize` option into a number"));return}}else if(J._size=J._source.size,J._size==null){J._emitError(Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));return}if(J.options.parallelUploads>1||J._parallelUploadUrls!=null)J._startParallelUpload();else J._startSingleUpload()}).catch(function(q){J._emitError(q)})}},{key:"_startParallelUpload",value:function(){var J,F=this,U=this._size,X=0;this._parallelUploads=[];var Y=this._parallelUploadUrls!=null?this._parallelUploadUrls.length:this.options.parallelUploads,Q=(J=this.options.parallelUploadBoundaries)!==null&&J!==void 0?J:Cd(this._source.size,Y);if(this._parallelUploadUrls)Q.forEach(function(W,G){W.uploadUrl=F._parallelUploadUrls[G]||null});this._parallelUploadUrls=Array(Q.length);var q=Q.map(function(W,G){var I=0;return F._source.slice(W.start,W.end).then(function(z){var Z=z.value;return new Promise(function(H,B){var j=k2(k2({},F.options),{},{uploadUrl:W.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:F.options.metadataForPartialUploads,headers:k2(k2({},F.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:H,onError:B,onProgress:function(L){X=X-I+L,I=L,F._emitProgress(X,U)},onUploadUrlAvailable:function(){if(F._parallelUploadUrls[G]=N.url,F._parallelUploadUrls.filter(function(L){return Boolean(L)}).length===Q.length)F._saveUploadInUrlStorage()}}),N=new D(Z,j);N.start(),F._parallelUploads.push(N)})})}),K;Promise.all(q).then(function(){K=F._openRequest("POST",F.options.endpoint),K.setHeader("Upload-Concat","final;".concat(F._parallelUploadUrls.join(" ")));var W=vw(F.options.metadata);if(W!=="")K.setHeader("Upload-Metadata",W);return F._sendRequest(K,null)}).then(function(W){if(!C2(W.getStatus(),200)){F._emitHttpError(K,W,"tus: unexpected response while creating upload");return}var G=W.getHeader("Location");if(G==null){F._emitHttpError(K,W,"tus: invalid or missing Location header");return}F.url=Sw(F.options.endpoint,G),(0,F4.log)("Created upload at ".concat(F.url)),F._emitSuccess(W)}).catch(function(W){F._emitError(W)})}},{key:"_startSingleUpload",value:function(){if(this._aborted=!1,this.url!=null){(0,F4.log)("Resuming upload from previous URL: ".concat(this.url)),this._resumeUpload();return}if(this.options.uploadUrl!=null){(0,F4.log)("Resuming upload from provided URL: ".concat(this.options.uploadUrl)),this.url=this.options.uploadUrl,this._resumeUpload();return}(0,F4.log)("Creating a new upload"),this._createUpload()}},{key:"abort",value:function(J){var F=this;if(this._parallelUploads!=null){var U=vd(this._parallelUploads),X;try{for(U.s();!(X=U.n()).done;){var Y=X.value;Y.abort(J)}}catch(Q){U.e(Q)}finally{U.f()}}if(this._req!==null)this._req.abort();if(this._aborted=!0,this._retryTimeout!=null)clearTimeout(this._retryTimeout),this._retryTimeout=null;if(!J||this.url==null)return Promise.resolve();return D.terminate(this.url,this.options).then(function(){return F._removeFromUrlStorage()})}},{key:"_emitHttpError",value:function(J,F,U,X){this._emitError(new c7.default(U,X,J,F))}},{key:"_emitError",value:function(J){var F=this;if(this._aborted)return;if(this.options.retryDelays!=null){var U=this._offset!=null&&this._offset>this._offsetBeforeRetry;if(U)this._retryAttempt=0;if(Pw(J,this._retryAttempt,this.options)){var X=this.options.retryDelays[this._retryAttempt++];this._offsetBeforeRetry=this._offset,this._retryTimeout=setTimeout(function(){F.start()},X);return}}if(typeof this.options.onError==="function")this.options.onError(J);else throw J}},{key:"_emitSuccess",value:function(J){if(this.options.removeFingerprintOnSuccess)this._removeFromUrlStorage();if(typeof this.options.onSuccess==="function")this.options.onSuccess({lastResponse:J})}},{key:"_emitProgress",value:function(J,F){if(typeof this.options.onProgress==="function")this.options.onProgress(J,F)}},{key:"_emitChunkComplete",value:function(J,F,U){if(typeof this.options.onChunkComplete==="function")this.options.onChunkComplete(J,F,U)}},{key:"_createUpload",value:function(){var J=this;if(!this.options.endpoint){this._emitError(Error("tus: unable to create upload because no endpoint is provided"));return}var F=this._openRequest("POST",this.options.endpoint);if(this.options.uploadLengthDeferred)F.setHeader("Upload-Defer-Length","1");else F.setHeader("Upload-Length","".concat(this._size));var U=vw(this.options.metadata);if(U!=="")F.setHeader("Upload-Metadata",U);var X;if(this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred)this._offset=0,X=this._addChunkToRequest(F);else{if(this.options.protocol===p7||this.options.protocol===r3)F.setHeader("Upload-Complete","?0");X=this._sendRequest(F,null)}X.then(function(Y){if(!C2(Y.getStatus(),200)){J._emitHttpError(F,Y,"tus: unexpected response while creating upload");return}var Q=Y.getHeader("Location");if(Q==null){J._emitHttpError(F,Y,"tus: invalid or missing Location header");return}if(J.url=Sw(J.options.endpoint,Q),(0,F4.log)("Created upload at ".concat(J.url)),typeof J.options.onUploadUrlAvailable==="function")J.options.onUploadUrlAvailable();if(J._size===0){J._emitSuccess(Y),J._source.close();return}J._saveUploadInUrlStorage().then(function(){if(J.options.uploadDataDuringCreation)J._handleUploadResponse(F,Y);else J._offset=0,J._performUpload()})}).catch(function(Y){J._emitHttpError(F,null,"tus: failed to create upload",Y)})}},{key:"_resumeUpload",value:function(){var J=this,F=this._openRequest("HEAD",this.url),U=this._sendRequest(F,null);U.then(function(X){var Y=X.getStatus();if(!C2(Y,200)){if(Y===423){J._emitHttpError(F,X,"tus: upload is currently locked; retry later");return}if(C2(Y,400))J._removeFromUrlStorage();if(!J.options.endpoint){J._emitHttpError(F,X,"tus: unable to resume upload (new upload cannot be created without an endpoint)");return}J.url=null,J._createUpload();return}var Q=Number.parseInt(X.getHeader("Upload-Offset"),10);if(Number.isNaN(Q)){J._emitHttpError(F,X,"tus: invalid or missing offset value");return}var q=Number.parseInt(X.getHeader("Upload-Length"),10);if(Number.isNaN(q)&&!J.options.uploadLengthDeferred&&J.options.protocol===n7){J._emitHttpError(F,X,"tus: invalid or missing length value");return}if(typeof J.options.onUploadUrlAvailable==="function")J.options.onUploadUrlAvailable();J._saveUploadInUrlStorage().then(function(){if(Q===q){J._emitProgress(q,q),J._emitSuccess(X);return}J._offset=Q,J._performUpload()})}).catch(function(X){J._emitHttpError(F,null,"tus: failed to resume upload",X)})}},{key:"_performUpload",value:function(){var J=this;if(this._aborted)return;var F;if(this.options.overridePatchMethod)F=this._openRequest("POST",this.url),F.setHeader("X-HTTP-Method-Override","PATCH");else F=this._openRequest("PATCH",this.url);F.setHeader("Upload-Offset","".concat(this._offset));var U=this._addChunkToRequest(F);U.then(function(X){if(!C2(X.getStatus(),200)){J._emitHttpError(F,X,"tus: unexpected response while uploading chunk");return}J._handleUploadResponse(F,X)}).catch(function(X){if(J._aborted)return;J._emitHttpError(F,null,"tus: failed to upload chunk at offset ".concat(J._offset),X)})}},{key:"_addChunkToRequest",value:function(J){var F=this,U=this._offset,X=this._offset+this.options.chunkSize;if(J.setProgressHandler(function(Y){F._emitProgress(U+Y,F._size)}),this.options.protocol===n7)J.setHeader("Content-Type","application/offset+octet-stream");else if(this.options.protocol===r3)J.setHeader("Content-Type","application/partial-upload");if((X===Number.POSITIVE_INFINITY||X>this._size)&&!this.options.uploadLengthDeferred)X=this._size;return this._source.slice(U,X).then(function(Y){var{value:Q,done:q}=Y,K=Q!==null&&Q!==void 0&&Q.size?Q.size:0;if(F.options.uploadLengthDeferred&&q)F._size=F._offset+K,J.setHeader("Upload-Length","".concat(F._size));var W=F._offset+K;if(!F.options.uploadLengthDeferred&&q&&W!==F._size)return Promise.reject(Error("upload was configured with a size of ".concat(F._size," bytes, but the source is done after ").concat(W," bytes")));if(Q===null)return F._sendRequest(J);if(F.options.protocol===p7||F.options.protocol===r3)J.setHeader("Upload-Complete",q?"?1":"?0");return F._emitProgress(F._offset,F._size),F._sendRequest(J,Q)})}},{key:"_handleUploadResponse",value:function(J,F){var U=Number.parseInt(F.getHeader("Upload-Offset"),10);if(Number.isNaN(U)){this._emitHttpError(J,F,"tus: invalid or missing offset value");return}if(this._emitProgress(U,this._size),this._emitChunkComplete(U-this._offset,U,this._size),this._offset=U,U===this._size){this._emitSuccess(F),this._source.close();return}this._performUpload()}},{key:"_openRequest",value:function(J,F){var U=Tw(J,F,this.options);return this._req=U,U}},{key:"_removeFromUrlStorage",value:function(){var J=this;if(!this._urlStorageKey)return;this._urlStorage.removeUpload(this._urlStorageKey).catch(function(F){J._emitError(F)}),this._urlStorageKey=null}},{key:"_saveUploadInUrlStorage",value:function(){var J=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||this._urlStorageKey!==null)return Promise.resolve();var F={size:this._size,metadata:this.options.metadata,creationTime:new Date().toString()};if(this._parallelUploads)F.parallelUploadUrls=this._parallelUploadUrls;else F.uploadUrl=this.url;return this._urlStorage.addUpload(this._fingerprint,F).then(function(U){J._urlStorageKey=U})}},{key:"_sendRequest",value:function(J){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return bw(J,F,this.options)}}],[{key:"terminate",value:function(J){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=Tw("DELETE",J,F);return bw(U,null,F).then(function(X){if(X.getStatus()===204)return;throw new c7.default("tus: unexpected response while terminating upload",null,U,X)}).catch(function(X){if(!(X instanceof c7.default))X=new c7.default("tus: failed to terminate upload",X,U,null);if(!Pw(X,0,F))throw X;var Y=F.retryDelays[0],Q=F.retryDelays.slice(1),q=k2(k2({},F),{},{retryDelays:Q});return new Promise(function(K){return setTimeout(K,Y)}).then(function(){return D.terminate(J,q)})})}}])}();function vw(D){return Object.entries(D).map(function($){var J=_w($,2),F=J[0],U=J[1];return"".concat(F," ").concat(Vd.Base64.encode(String(U)))}).join(",")}function C2(D,$){return D>=$&&D<$+100}function Tw(D,$,J){var F=J.httpStack.createRequest(D,$);if(J.protocol===p7)F.setHeader("Upload-Draft-Interop-Version","5");else if(J.protocol===r3)F.setHeader("Upload-Draft-Interop-Version","6");else F.setHeader("Tus-Resumable","1.0.0");var U=J.headers||{};for(var X=0,Y=Object.entries(U);X<Y.length;X++){var Q=_w(Y[X],2),q=Q[0],K=Q[1];F.setHeader(q,K)}if(J.addRequestId){var W=(0,wd.default)();F.setHeader("X-Request-ID",W)}return F}function bw(D,$,J){return _Q.apply(this,arguments)}function _Q(){return _Q=Rd(SQ().mark(function D($,J,F){var U;return SQ().wrap(function(Y){while(!0)switch(Y.prev=Y.next){case 0:if(typeof F.onBeforeRequest!=="function"){Y.next=3;break}return Y.next=3,F.onBeforeRequest($);case 3:return Y.next=5,$.send(J);case 5:if(U=Y.sent,typeof F.onAfterResponse!=="function"){Y.next=9;break}return Y.next=9,F.onAfterResponse($,U);case 9:return Y.abrupt("return",U);case 10:case"end":return Y.stop()}},D)})),_Q.apply(this,arguments)}function kd(){var D=!0;if(typeof navigator<"u"&&navigator.onLine===!1)D=!1;return D}function Pw(D,$,J){if(J.retryDelays==null||$>=J.retryDelays.length||D.originalRequest==null)return!1;if(J&&typeof J.onShouldRetry==="function")return J.onShouldRetry(D,$,J);return gw(D)}function gw(D){var $=D.originalResponse?D.originalResponse.getStatus():0;return(!C2($,400)||$===409||$===423)&&kd()}function Sw(D,$){return new Ld.default($,D).toString()}function Cd(D,$){var J=Math.floor(D/$),F=[];for(var U=0;U<$;U++)F.push({start:J*U,end:J*(U+1)});return F[$-1].end=D,F}uw.defaultOptions=_d;var COD=fw.default=uw});var mw=u((gOD,hw)=>{var z6=(D)=>D!==null&&typeof D==="object"&&typeof D.pipe==="function";z6.writable=(D)=>z6(D)&&D.writable!==!1&&typeof D._write==="function"&&typeof D._writableState==="object";z6.readable=(D)=>z6(D)&&D.readable!==!1&&typeof D._read==="function"&&typeof D._readableState==="object";z6.duplex=(D)=>z6.writable(D)&&z6.readable(D);z6.transform=(D)=>z6.duplex(D)&&typeof D._transform==="function";hw.exports=z6});var cw=u((iw)=>{Object.defineProperty(iw,"__esModule",{value:!0});iw.default=void 0;function t3(D){return t3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},t3(D)}function ud(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function lw(D,$){for(var J=0;J<$.length;J++){var F=$[J];if(F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F)F.writable=!0;Object.defineProperty(D,fd(F.key),F)}}function gd(D,$,J){if($)lw(D.prototype,$);if(J)lw(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function fd(D){var $=xd(D,"string");return t3($)=="symbol"?$:$+""}function xd(D,$){if(t3(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var F=J.call(D,$||"default");if(t3(F)!="object")return F;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var fOD=iw.default=function(){function D($){ud(this,D),this._buffer=$,this.size=$.length}return gd(D,[{key:"slice",value:function(J,F){var U=this._buffer.slice(J,F);U.size=U.length;var X=F>=this.size;return Promise.resolve({value:U,done:X})}},{key:"close",value:function(){}}])}()});var ow=u((tw)=>{Object.defineProperty(tw,"__esModule",{value:!0});tw.default=dd;var rw=FD("fs");function X4(D){return X4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},X4(D)}function CQ(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */CQ=function(){return $};var D,$={},J=Object.prototype,F=J.hasOwnProperty,U=Object.defineProperty||function(R,V,w){R[V]=w.value},X=typeof Symbol=="function"?Symbol:{},Y=X.iterator||"@@iterator",Q=X.asyncIterator||"@@asyncIterator",q=X.toStringTag||"@@toStringTag";function K(R,V,w){return Object.defineProperty(R,V,{value:w,enumerable:!0,configurable:!0,writable:!0}),R[V]}try{K({},"")}catch(R){K=function(w,b,x){return w[b]=x}}function W(R,V,w,b){var x=V&&V.prototype instanceof j?V:j,f=Object.create(x.prototype),a=new n(b||[]);return U(f,"_invoke",{value:y(R,w,a)}),f}function G(R,V,w){try{return{type:"normal",arg:R.call(V,w)}}catch(b){return{type:"throw",arg:b}}}$.wrap=W;var I="suspendedStart",z="suspendedYield",Z="executing",H="completed",B={};function j(){}function N(){}function O(){}var L={};K(L,Y,function(){return this});var A=Object.getPrototypeOf,E=A&&A(A(t([])));E&&E!==J&&F.call(E,Y)&&(L=E);var _=O.prototype=j.prototype=Object.create(L);function k(R){["next","throw","return"].forEach(function(V){K(R,V,function(w){return this._invoke(V,w)})})}function C(R,V){function w(x,f,a,g){var d=G(R[x],R,f);if(d.type!=="throw"){var ZD=d.arg,jD=ZD.value;return jD&&X4(jD)=="object"&&F.call(jD,"__await")?V.resolve(jD.__await).then(function(PD){w("next",PD,a,g)},function(PD){w("throw",PD,a,g)}):V.resolve(jD).then(function(PD){ZD.value=PD,a(ZD)},function(PD){return w("throw",PD,a,g)})}g(d.arg)}var b;U(this,"_invoke",{value:function(f,a){function g(){return new V(function(d,ZD){w(f,a,d,ZD)})}return b=b?b.then(g,g):g()}})}function y(R,V,w){var b=I;return function(x,f){if(b===Z)throw Error("Generator is already running");if(b===H){if(x==="throw")throw f;return{value:D,done:!0}}for(w.method=x,w.arg=f;;){var a=w.delegate;if(a){var g=v(a,w);if(g){if(g===B)continue;return g}}if(w.method==="next")w.sent=w._sent=w.arg;else if(w.method==="throw"){if(b===I)throw b=H,w.arg;w.dispatchException(w.arg)}else w.method==="return"&&w.abrupt("return",w.arg);b=Z;var d=G(R,V,w);if(d.type==="normal"){if(b=w.done?H:z,d.arg===B)continue;return{value:d.arg,done:w.done}}d.type==="throw"&&(b=H,w.method="throw",w.arg=d.arg)}}}function v(R,V){var w=V.method,b=R.iterator[w];if(b===D)return V.delegate=null,w==="throw"&&R.iterator.return&&(V.method="return",V.arg=D,v(R,V),V.method==="throw")||w!=="return"&&(V.method="throw",V.arg=TypeError("The iterator does not provide a '"+w+"' method")),B;var x=G(b,R.iterator,V.arg);if(x.type==="throw")return V.method="throw",V.arg=x.arg,V.delegate=null,B;var f=x.arg;return f?f.done?(V[R.resultName]=f.value,V.next=R.nextLoc,V.method!=="return"&&(V.method="next",V.arg=D),V.delegate=null,B):f:(V.method="throw",V.arg=TypeError("iterator result is not an object"),V.delegate=null,B)}function i(R){var V={tryLoc:R[0]};1 in R&&(V.catchLoc=R[1]),2 in R&&(V.finallyLoc=R[2],V.afterLoc=R[3]),this.tryEntries.push(V)}function c(R){var V=R.completion||{};V.type="normal",delete V.arg,R.completion=V}function n(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(i,this),this.reset(!0)}function t(R){if(R||R===""){var V=R[Y];if(V)return V.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var w=-1,b=function x(){for(;++w<R.length;)if(F.call(R,w))return x.value=R[w],x.done=!1,x;return x.value=D,x.done=!0,x};return b.next=b}}throw TypeError(X4(R)+" is not iterable")}return N.prototype=O,U(_,"constructor",{value:O,configurable:!0}),U(O,"constructor",{value:N,configurable:!0}),N.displayName=K(O,q,"GeneratorFunction"),$.isGeneratorFunction=function(R){var V=typeof R=="function"&&R.constructor;return!!V&&(V===N||(V.displayName||V.name)==="GeneratorFunction")},$.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,O):(R.__proto__=O,K(R,q,"GeneratorFunction")),R.prototype=Object.create(_),R},$.awrap=function(R){return{__await:R}},k(C.prototype),K(C.prototype,Q,function(){return this}),$.AsyncIterator=C,$.async=function(R,V,w,b,x){x===void 0&&(x=Promise);var f=new C(W(R,V,w,b),x);return $.isGeneratorFunction(V)?f:f.next().then(function(a){return a.done?a.value:f.next()})},k(_),K(_,q,"Generator"),K(_,Y,function(){return this}),K(_,"toString",function(){return"[object Generator]"}),$.keys=function(R){var V=Object(R),w=[];for(var b in V)w.push(b);return w.reverse(),function x(){for(;w.length;){var f=w.pop();if(f in V)return x.value=f,x.done=!1,x}return x.done=!0,x}},$.values=t,n.prototype={constructor:n,reset:function(V){if(this.prev=0,this.next=0,this.sent=this._sent=D,this.done=!1,this.delegate=null,this.method="next",this.arg=D,this.tryEntries.forEach(c),!V)for(var w in this)w.charAt(0)==="t"&&F.call(this,w)&&!isNaN(+w.slice(1))&&(this[w]=D)},stop:function(){this.done=!0;var V=this.tryEntries[0].completion;if(V.type==="throw")throw V.arg;return this.rval},dispatchException:function(V){if(this.done)throw V;var w=this;function b(ZD,jD){return a.type="throw",a.arg=V,w.next=ZD,jD&&(w.method="next",w.arg=D),!!jD}for(var x=this.tryEntries.length-1;x>=0;--x){var f=this.tryEntries[x],a=f.completion;if(f.tryLoc==="root")return b("end");if(f.tryLoc<=this.prev){var g=F.call(f,"catchLoc"),d=F.call(f,"finallyLoc");if(g&&d){if(this.prev<f.catchLoc)return b(f.catchLoc,!0);if(this.prev<f.finallyLoc)return b(f.finallyLoc)}else if(g){if(this.prev<f.catchLoc)return b(f.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<f.finallyLoc)return b(f.finallyLoc)}}}},abrupt:function(V,w){for(var b=this.tryEntries.length-1;b>=0;--b){var x=this.tryEntries[b];if(x.tryLoc<=this.prev&&F.call(x,"finallyLoc")&&this.prev<x.finallyLoc){var f=x;break}}f&&(V==="break"||V==="continue")&&f.tryLoc<=w&&w<=f.finallyLoc&&(f=null);var a=f?f.completion:{};return a.type=V,a.arg=w,f?(this.method="next",this.next=f.finallyLoc,B):this.complete(a)},complete:function(V,w){if(V.type==="throw")throw V.arg;return V.type==="break"||V.type==="continue"?this.next=V.arg:V.type==="return"?(this.rval=this.arg=V.arg,this.method="return",this.next="end"):V.type==="normal"&&w&&(this.next=w),B},finish:function(V){for(var w=this.tryEntries.length-1;w>=0;--w){var b=this.tryEntries[w];if(b.finallyLoc===V)return this.complete(b.completion,b.afterLoc),c(b),B}},catch:function(V){for(var w=this.tryEntries.length-1;w>=0;--w){var b=this.tryEntries[w];if(b.tryLoc===V){var x=b.completion;if(x.type==="throw"){var f=x.arg;c(b)}return f}}throw Error("illegal catch attempt")},delegateYield:function(V,w,b){return this.delegate={iterator:t(V),resultName:w,nextLoc:b},this.method==="next"&&(this.arg=D),B}},$}function yd(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function nw(D,$){for(var J=0;J<$.length;J++){var F=$[J];if(F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F)F.writable=!0;Object.defineProperty(D,md(F.key),F)}}function hd(D,$,J){if($)nw(D.prototype,$);if(J)nw(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function md(D){var $=ld(D,"string");return X4($)=="symbol"?$:$+""}function ld(D,$){if(X4(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var F=J.call(D,$||"default");if(X4(F)!="object")return F;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function pw(D,$,J,F,U,X,Y){try{var Q=D[X](Y),q=Q.value}catch(K){J(K);return}if(Q.done)$(q);else Promise.resolve(q).then(F,U)}function id(D){return function(){var $=this,J=arguments;return new Promise(function(F,U){var X=D.apply($,J);function Y(q){pw(X,F,U,Y,Q,"next",q)}function Q(q){pw(X,F,U,Y,Q,"throw",q)}Y(void 0)})}}function dd(D){return uQ.apply(this,arguments)}function uQ(){return uQ=id(CQ().mark(function D($){var J,F,U,X,Y,Q,q;return CQ().wrap(function(W){while(!0)switch(W.prev=W.next){case 0:return F=$.path.toString(),W.next=3,rw.promises.stat(F);case 3:return U=W.sent,X=U.size,Y=(J=$.start)!==null&&J!==void 0?J:0,Q=Number.isFinite($.end)?$.end+1:X,q=Q-Y,W.abrupt("return",new cd($,F,q));case 9:case"end":return W.stop()}},D)})),uQ.apply(this,arguments)}var cd=function(){function D($,J,F){yd(this,D),this._stream=$,this._path=J,this.size=F}return hd(D,[{key:"slice",value:function(J,F){var U,X=(U=this._stream.start)!==null&&U!==void 0?U:0,Y=(0,rw.createReadStream)(this._path,{start:X+J,end:X+F-1,autoClose:!0});Y.size=Math.min(F-J,this.size);var Q=Y.size>=this.size;return Promise.resolve({value:Y,done:Q})}},{key:"close",value:function(){this._stream.destroy()}}])}()});var fQ=u((DR)=>{Object.defineProperty(DR,"__esModule",{value:!0});DR.default=void 0;function Y4(D){return Y4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},Y4(D)}function o3(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o3=function(){return $};var D,$={},J=Object.prototype,F=J.hasOwnProperty,U=Object.defineProperty||function(R,V,w){R[V]=w.value},X=typeof Symbol=="function"?Symbol:{},Y=X.iterator||"@@iterator",Q=X.asyncIterator||"@@asyncIterator",q=X.toStringTag||"@@toStringTag";function K(R,V,w){return Object.defineProperty(R,V,{value:w,enumerable:!0,configurable:!0,writable:!0}),R[V]}try{K({},"")}catch(R){K=function(w,b,x){return w[b]=x}}function W(R,V,w,b){var x=V&&V.prototype instanceof j?V:j,f=Object.create(x.prototype),a=new n(b||[]);return U(f,"_invoke",{value:y(R,w,a)}),f}function G(R,V,w){try{return{type:"normal",arg:R.call(V,w)}}catch(b){return{type:"throw",arg:b}}}$.wrap=W;var I="suspendedStart",z="suspendedYield",Z="executing",H="completed",B={};function j(){}function N(){}function O(){}var L={};K(L,Y,function(){return this});var A=Object.getPrototypeOf,E=A&&A(A(t([])));E&&E!==J&&F.call(E,Y)&&(L=E);var _=O.prototype=j.prototype=Object.create(L);function k(R){["next","throw","return"].forEach(function(V){K(R,V,function(w){return this._invoke(V,w)})})}function C(R,V){function w(x,f,a,g){var d=G(R[x],R,f);if(d.type!=="throw"){var ZD=d.arg,jD=ZD.value;return jD&&Y4(jD)=="object"&&F.call(jD,"__await")?V.resolve(jD.__await).then(function(PD){w("next",PD,a,g)},function(PD){w("throw",PD,a,g)}):V.resolve(jD).then(function(PD){ZD.value=PD,a(ZD)},function(PD){return w("throw",PD,a,g)})}g(d.arg)}var b;U(this,"_invoke",{value:function(f,a){function g(){return new V(function(d,ZD){w(f,a,d,ZD)})}return b=b?b.then(g,g):g()}})}function y(R,V,w){var b=I;return function(x,f){if(b===Z)throw Error("Generator is already running");if(b===H){if(x==="throw")throw f;return{value:D,done:!0}}for(w.method=x,w.arg=f;;){var a=w.delegate;if(a){var g=v(a,w);if(g){if(g===B)continue;return g}}if(w.method==="next")w.sent=w._sent=w.arg;else if(w.method==="throw"){if(b===I)throw b=H,w.arg;w.dispatchException(w.arg)}else w.method==="return"&&w.abrupt("return",w.arg);b=Z;var d=G(R,V,w);if(d.type==="normal"){if(b=w.done?H:z,d.arg===B)continue;return{value:d.arg,done:w.done}}d.type==="throw"&&(b=H,w.method="throw",w.arg=d.arg)}}}function v(R,V){var w=V.method,b=R.iterator[w];if(b===D)return V.delegate=null,w==="throw"&&R.iterator.return&&(V.method="return",V.arg=D,v(R,V),V.method==="throw")||w!=="return"&&(V.method="throw",V.arg=TypeError("The iterator does not provide a '"+w+"' method")),B;var x=G(b,R.iterator,V.arg);if(x.type==="throw")return V.method="throw",V.arg=x.arg,V.delegate=null,B;var f=x.arg;return f?f.done?(V[R.resultName]=f.value,V.next=R.nextLoc,V.method!=="return"&&(V.method="next",V.arg=D),V.delegate=null,B):f:(V.method="throw",V.arg=TypeError("iterator result is not an object"),V.delegate=null,B)}function i(R){var V={tryLoc:R[0]};1 in R&&(V.catchLoc=R[1]),2 in R&&(V.finallyLoc=R[2],V.afterLoc=R[3]),this.tryEntries.push(V)}function c(R){var V=R.completion||{};V.type="normal",delete V.arg,R.completion=V}function n(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(i,this),this.reset(!0)}function t(R){if(R||R===""){var V=R[Y];if(V)return V.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var w=-1,b=function x(){for(;++w<R.length;)if(F.call(R,w))return x.value=R[w],x.done=!1,x;return x.value=D,x.done=!0,x};return b.next=b}}throw TypeError(Y4(R)+" is not iterable")}return N.prototype=O,U(_,"constructor",{value:O,configurable:!0}),U(O,"constructor",{value:N,configurable:!0}),N.displayName=K(O,q,"GeneratorFunction"),$.isGeneratorFunction=function(R){var V=typeof R=="function"&&R.constructor;return!!V&&(V===N||(V.displayName||V.name)==="GeneratorFunction")},$.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,O):(R.__proto__=O,K(R,q,"GeneratorFunction")),R.prototype=Object.create(_),R},$.awrap=function(R){return{__await:R}},k(C.prototype),K(C.prototype,Q,function(){return this}),$.AsyncIterator=C,$.async=function(R,V,w,b,x){x===void 0&&(x=Promise);var f=new C(W(R,V,w,b),x);return $.isGeneratorFunction(V)?f:f.next().then(function(a){return a.done?a.value:f.next()})},k(_),K(_,q,"Generator"),K(_,Y,function(){return this}),K(_,"toString",function(){return"[object Generator]"}),$.keys=function(R){var V=Object(R),w=[];for(var b in V)w.push(b);return w.reverse(),function x(){for(;w.length;){var f=w.pop();if(f in V)return x.value=f,x.done=!1,x}return x.done=!0,x}},$.values=t,n.prototype={constructor:n,reset:function(V){if(this.prev=0,this.next=0,this.sent=this._sent=D,this.done=!1,this.delegate=null,this.method="next",this.arg=D,this.tryEntries.forEach(c),!V)for(var w in this)w.charAt(0)==="t"&&F.call(this,w)&&!isNaN(+w.slice(1))&&(this[w]=D)},stop:function(){this.done=!0;var V=this.tryEntries[0].completion;if(V.type==="throw")throw V.arg;return this.rval},dispatchException:function(V){if(this.done)throw V;var w=this;function b(ZD,jD){return a.type="throw",a.arg=V,w.next=ZD,jD&&(w.method="next",w.arg=D),!!jD}for(var x=this.tryEntries.length-1;x>=0;--x){var f=this.tryEntries[x],a=f.completion;if(f.tryLoc==="root")return b("end");if(f.tryLoc<=this.prev){var g=F.call(f,"catchLoc"),d=F.call(f,"finallyLoc");if(g&&d){if(this.prev<f.catchLoc)return b(f.catchLoc,!0);if(this.prev<f.finallyLoc)return b(f.finallyLoc)}else if(g){if(this.prev<f.catchLoc)return b(f.catchLoc,!0)}else{if(!d)throw Error("try statement without catch or finally");if(this.prev<f.finallyLoc)return b(f.finallyLoc)}}}},abrupt:function(V,w){for(var b=this.tryEntries.length-1;b>=0;--b){var x=this.tryEntries[b];if(x.tryLoc<=this.prev&&F.call(x,"finallyLoc")&&this.prev<x.finallyLoc){var f=x;break}}f&&(V==="break"||V==="continue")&&f.tryLoc<=w&&w<=f.finallyLoc&&(f=null);var a=f?f.completion:{};return a.type=V,a.arg=w,f?(this.method="next",this.next=f.finallyLoc,B):this.complete(a)},complete:function(V,w){if(V.type==="throw")throw V.arg;return V.type==="break"||V.type==="continue"?this.next=V.arg:V.type==="return"?(this.rval=this.arg=V.arg,this.method="return",this.next="end"):V.type==="normal"&&w&&(this.next=w),B},finish:function(V){for(var w=this.tryEntries.length-1;w>=0;--w){var b=this.tryEntries[w];if(b.finallyLoc===V)return this.complete(b.completion,b.afterLoc),c(b),B}},catch:function(V){for(var w=this.tryEntries.length-1;w>=0;--w){var b=this.tryEntries[w];if(b.tryLoc===V){var x=b.completion;if(x.type==="throw"){var f=x.arg;c(b)}return f}}throw Error("illegal catch attempt")},delegateYield:function(V,w,b){return this.delegate={iterator:t(V),resultName:w,nextLoc:b},this.method==="next"&&(this.arg=D),B}},$}function pd(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function aw(D,$){for(var J=0;J<$.length;J++){var F=$[J];if(F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F)F.writable=!0;Object.defineProperty(D,td(F.key),F)}}function rd(D,$,J){if($)aw(D.prototype,$);if(J)aw(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function td(D){var $=od(D,"string");return Y4($)=="symbol"?$:$+""}function od(D,$){if(Y4(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var F=J.call(D,$||"default");if(Y4(F)!="object")return F;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}function sw(D,$,J,F,U,X,Y){try{var Q=D[X](Y),q=Q.value}catch(K){J(K);return}if(Q.done)$(q);else Promise.resolve(q).then(F,U)}function ew(D){return function(){var $=this,J=arguments;return new Promise(function(F,U){var X=D.apply($,J);function Y(q){sw(X,F,U,Y,Q,"next",q)}function Q(q){sw(X,F,U,Y,Q,"throw",q)}Y(void 0)})}}function ad(D,$){return gQ.apply(this,arguments)}function gQ(){return gQ=ew(o3().mark(function D($,J){return o3().wrap(function(U){while(!0)switch(U.prev=U.next){case 0:return U.abrupt("return",new Promise(function(X,Y){var Q=function(W){$.off("readable",q),Y(W)},q=function K(){var W=$.read(J);if(W!==null)$.off("error",Q),$.off("readable",K),X(W)};$.once("error",Q),$.on("readable",q)}));case 1:case"end":return U.stop()}},D)})),gQ.apply(this,arguments)}var hOD=DR.default=function(){function D($){var J=this;pd(this,D),this._stream=$,this.size=null,this._buf=Buffer.alloc(0),this._bufPos=0,this._ended=!1,this._error=null,$.pause(),$.on("end",function(){J._ended=!0}),$.on("error",function(F){J._error=F})}return rd(D,[{key:"slice",value:function(){var $=ew(o3().mark(function F(U,X){var Y,Q,q,K,W;return o3().wrap(function(I){while(!0)switch(I.prev=I.next){case 0:if(!(U<this._bufPos)){I.next=2;break}throw Error("cannot slice from position which we already seeked away");case 2:if(!(U>this._bufPos+this._buf.length)){I.next=4;break}throw Error("slice start is outside of buffer (currently not implemented)");case 4:if(!this._error){I.next=6;break}throw this._error;case 6:if(U<this._bufPos+this._buf.length)Q=U-this._bufPos,q=Math.min(this._buf.length,X-this._bufPos),Y=this._buf.slice(Q,q);else Y=Buffer.alloc(0);if(!this._ended){I.next=10;break}return Y.size=Y.length,I.abrupt("return",{value:Y,done:!0});case 10:if(K=X-U,!(K>Y.length)){I.next=16;break}return I.next=14,ad(this._stream,K-Y.length);case 14:W=I.sent,Y=Buffer.concat([Y,W]);case 16:return this._buf=Y,this._bufPos=U,Y.size=Y.length,I.abrupt("return",{value:Y,done:this._ended});case 20:case"end":return I.stop()}},F,this)}));function J(F,U){return $.apply(this,arguments)}return J}()},{key:"close",value:function(){this._stream.destroy()}}])}()});var XR=u((FR)=>{Object.defineProperty(FR,"__esModule",{value:!0});FR.default=void 0;var sd=FD("fs"),ed=r7(mw()),Dc=r7(cw()),$c=r7(ow()),Jc=r7(fQ());function r7(D){return D&&D.__esModule?D:{default:D}}function a3(D){return a3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},a3(D)}function Fc(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function JR(D,$){for(var J=0;J<$.length;J++){var F=$[J];if(F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F)F.writable=!0;Object.defineProperty(D,Xc(F.key),F)}}function Uc(D,$,J){if($)JR(D.prototype,$);if(J)JR(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function Xc(D){var $=Yc(D,"string");return a3($)=="symbol"?$:$+""}function Yc(D,$){if(a3(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var F=J.call(D,$||"default");if(a3(F)!="object")return F;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var lOD=FR.default=function(){function D(){Fc(this,D)}return Uc(D,[{key:"openFile",value:function(J,F){if(Buffer.isBuffer(J))return Promise.resolve(new Dc.default(J));if(J instanceof sd.ReadStream&&J.path!=null)return(0,$c.default)(J);if(ed.default.readable(J)){if(F=Number(F),!Number.isFinite(F))return Promise.reject(Error("cannot create source for stream without a finite value for the `chunkSize` option; specify a chunkSize to control the memory consumption"));return Promise.resolve(new Jc.default(J))}return Promise.reject(Error("source object may only be an instance of Buffer or Readable in this environment"))}}])}()});var WR=u((KR)=>{Object.defineProperty(KR,"__esModule",{value:!0});KR.default=Kc;var Qc=FD("crypto"),YR=qR(FD("fs")),qc=qR(FD("path"));function QR(D){if(typeof WeakMap!="function")return null;var $=new WeakMap,J=new WeakMap;return(QR=function(F){return F?J:$})(D)}function qR(D,$){if(!$&&D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var J=QR($);if(J&&J.has(D))return J.get(D);var F={__proto__:null},U=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var X in D)if(X!=="default"&&{}.hasOwnProperty.call(D,X)){var Y=U?Object.getOwnPropertyDescriptor(D,X):null;Y&&(Y.get||Y.set)?Object.defineProperty(F,X,Y):F[X]=D[X]}return F.default=D,J&&J.set(D,F),F}function Kc(D,$){if(Buffer.isBuffer(D)){var J=65536,F=D.slice(0,Math.min(J,D.length)),U=(0,Qc.createHash)("md5").update(F).digest("hex"),X=["node-buffer",U,D.length,$.endpoint].join("-");return Promise.resolve(X)}if(D instanceof YR.ReadStream&&D.path!=null)return new Promise(function(Y,Q){var q=qc.resolve(D.path);YR.stat(D.path,function(K,W){if(K){Q(K);return}var G=["node-file",q,W.size,W.mtime.getTime(),$.endpoint].join("-");Y(G)})});return Promise.resolve(null)}});var HR=u((cOD,ZR)=>{var zR="Expected a function",GR=NaN,Gc="[object Symbol]",Ic=/^\s+|\s+$/g,zc=/^[-+]0x[0-9a-f]+$/i,Zc=/^0b[01]+$/i,Hc=/^0o[0-7]+$/i,Bc=parseInt,Oc=typeof global=="object"&&global&&global.Object===Object&&global,jc=typeof self=="object"&&self&&self.Object===Object&&self,Nc=Oc||jc||Function("return this")(),Vc=Object.prototype,Lc=Vc.toString,wc=Math.max,Rc=Math.min,xQ=function(){return Nc.Date.now()};function Mc(D,$,J){var F,U,X,Y,Q,q,K=0,W=!1,G=!1,I=!0;if(typeof D!="function")throw TypeError(zR);if($=IR($)||0,t7(J))W=!!J.leading,G="maxWait"in J,X=G?wc(IR(J.maxWait)||0,$):X,I="trailing"in J?!!J.trailing:I;function z(E){var _=F,k=U;return F=U=void 0,K=E,Y=D.apply(k,_),Y}function Z(E){return K=E,Q=setTimeout(j,$),W?z(E):Y}function H(E){var _=E-q,k=E-K,C=$-_;return G?Rc(C,X-k):C}function B(E){var _=E-q,k=E-K;return q===void 0||_>=$||_<0||G&&k>=X}function j(){var E=xQ();if(B(E))return N(E);Q=setTimeout(j,H(E))}function N(E){if(Q=void 0,I&&F)return z(E);return F=U=void 0,Y}function O(){if(Q!==void 0)clearTimeout(Q);K=0,F=q=U=Q=void 0}function L(){return Q===void 0?Y:N(xQ())}function A(){var E=xQ(),_=B(E);if(F=arguments,U=this,q=E,_){if(Q===void 0)return Z(q);if(G)return Q=setTimeout(j,$),z(q)}if(Q===void 0)Q=setTimeout(j,$);return Y}return A.cancel=O,A.flush=L,A}function Ec(D,$,J){var F=!0,U=!0;if(typeof D!="function")throw TypeError(zR);if(t7(J))F="leading"in J?!!J.leading:F,U="trailing"in J?!!J.trailing:U;return Mc(D,$,{leading:F,maxWait:$,trailing:U})}function t7(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function Ac(D){return!!D&&typeof D=="object"}function vc(D){return typeof D=="symbol"||Ac(D)&&Lc.call(D)==Gc}function IR(D){if(typeof D=="number")return D;if(vc(D))return GR;if(t7(D)){var $=typeof D.valueOf=="function"?D.valueOf():D;D=t7($)?$+"":$}if(typeof D!="string")return D===0?D:+D;D=D.replace(Ic,"");var J=Zc.test(D);return J||Hc.test(D)?Bc(D.slice(2),J?2:8):zc.test(D)?GR:+D}ZR.exports=Ec});var AR=u((MR)=>{Object.defineProperty(MR,"__esModule",{value:!0});MR.default=void 0;var Tc=LR(FD("http")),bc=LR(FD("https")),jR=FD("stream"),Pc=FD("url"),NR=Sc(HR());function Sc(D){return D&&D.__esModule?D:{default:D}}function VR(D){if(typeof WeakMap!="function")return null;var $=new WeakMap,J=new WeakMap;return(VR=function(F){return F?J:$})(D)}function LR(D,$){if(!$&&D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var J=VR($);if(J&&J.has(D))return J.get(D);var F={__proto__:null},U=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var X in D)if(X!=="default"&&{}.hasOwnProperty.call(D,X)){var Y=U?Object.getOwnPropertyDescriptor(D,X):null;Y&&(Y.get||Y.set)?Object.defineProperty(F,X,Y):F[X]=D[X]}return F.default=D,J&&J.set(D,F),F}function _c(D,$,J){return $=o7($),kc(D,wR()?Reflect.construct($,J||[],o7(D).constructor):$.apply(D,J))}function kc(D,$){if($&&(u2($)==="object"||typeof $==="function"))return $;else if($!==void 0)throw TypeError("Derived constructors may only return object or undefined");return Cc(D)}function Cc(D){if(D===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function wR(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch($){}return(wR=function(){return!!D})()}function o7(D){return o7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},o7(D)}function uc(D,$){if(typeof $!=="function"&&$!==null)throw TypeError("Super expression must either be null or a function");if(D.prototype=Object.create($&&$.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),$)yQ(D,$)}function yQ(D,$){return yQ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,U){return F.__proto__=U,F},yQ(D,$)}function BR(D,$){var J=Object.keys(D);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(D);$&&(F=F.filter(function(U){return Object.getOwnPropertyDescriptor(D,U).enumerable})),J.push.apply(J,F)}return J}function s3(D){for(var $=1;$<arguments.length;$++){var J=arguments[$]!=null?arguments[$]:{};$%2?BR(Object(J),!0).forEach(function(F){gc(D,F,J[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(J)):BR(Object(J)).forEach(function(F){Object.defineProperty(D,F,Object.getOwnPropertyDescriptor(J,F))})}return D}function gc(D,$,J){if($=RR($),$ in D)Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0,writable:!0});else D[$]=J;return D}function u2(D){return u2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},u2(D)}function a7(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function OR(D,$){for(var J=0;J<$.length;J++){var F=$[J];if(F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F)F.writable=!0;Object.defineProperty(D,RR(F.key),F)}}function s7(D,$,J){if($)OR(D.prototype,$);if(J)OR(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function RR(D){var $=fc(D,"string");return u2($)=="symbol"?$:$+""}function fc(D,$){if(u2(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var F=J.call(D,$||"default");if(u2(F)!="object")return F;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var nOD=MR.default=function(){function D(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};a7(this,D),this._requestOptions=$}return s7(D,[{key:"createRequest",value:function(J,F){return new xc(J,F,this._requestOptions)}},{key:"getName",value:function(){return"NodeHttpStack"}}])}(),xc=function(){function D($,J,F){a7(this,D),this._method=$,this._url=J,this._headers={},this._request=null,this._progressHandler=function(){},this._requestOptions=F||{}}return s7(D,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(J,F){this._headers[J]=F}},{key:"getHeader",value:function(J){return this._headers[J]}},{key:"setProgressHandler",value:function(J){this._progressHandler=J}},{key:"send",value:function(){var J=this,F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return new Promise(function(U,X){var Y=s3(s3(s3({},(0,Pc.parse)(J._url)),J._requestOptions),{},{method:J._method,headers:s3(s3({},J._requestOptions.headers||{}),J._headers)});if(F!==null&&F!==void 0&&F.size)Y.headers["Content-Length"]=F.size;var Q=Y.protocol==="https:"?bc:Tc;J._request=Q.request(Y);var q=J._request;if(q.on("response",function(K){var W=[];K.on("data",function(G){W.push(G)}),K.on("end",function(){var G=Buffer.concat(W).toString("utf8");U(new yc(K,G))})}),q.on("error",function(K){X(K)}),F instanceof jR.Readable)F.pipe(new hc(J._progressHandler)).pipe(q);else if(F instanceof Uint8Array)mc(q,F,J._progressHandler);else q.end(F)})}},{key:"abort",value:function(){if(this._request!==null)this._request.abort();return Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._request}}])}(),yc=function(){function D($,J){a7(this,D),this._response=$,this._body=J}return s7(D,[{key:"getStatus",value:function(){return this._response.statusCode}},{key:"getHeader",value:function(J){return this._response.headers[J.toLowerCase()]}},{key:"getBody",value:function(){return this._body}},{key:"getUnderlyingObject",value:function(){return this._response}}])}(),hc=function(D){function $(J){var F;return a7(this,$),F=_c(this,$),F._onprogress=(0,NR.default)(J,100,{leading:!0,trailing:!1}),F._position=0,F}return uc($,D),s7($,[{key:"_transform",value:function(F,U,X){this._position+=F.length,this._onprogress(this._position),X(null,F)}}])}(jR.Transform),mc=function($,J,F){F=(0,NR.default)(F,100,{leading:!0,trailing:!1});var U=0;function X(){var Y=Math.min($.writableHighWaterMark,J.length-U),Q=J.subarray(U,U+Y);U+=Q.length;var q=$.write(Q);if(!q)$.once("drain",X),F(U);else if(U<J.length)X();else $.end()}X()}});var vR=u((lc)=>{lc.expectReceive=function(D,$,J){var F;if(J.root(D,$,J),F=this.message,D.hasOwnProperty("expected"))F+=" Expected "+D.expected+".";if(D.hasOwnProperty("received"))F+=" Received: "+D.received+".";this.message=F};lc.root=function(D,$,J){var F=this,U,X={stackLength:Error.stackTraceLimit,rootOnly:!0},Y="",Q=Error.stackTraceLimit,q;function K(){q[0]=F.toString(),F.stack=q.join(`
`)}if(!$||typeof $!=="object")$={};if($.hasOwnProperty("stackLength")&&typeof $.stackLength==="number"&&!isNaN($.stackLength)&&$.stackLength>=0)X.stackLength=$.stackLength;if(!$.hasOwnProperty("rootOnly"))X.rootOnly=$.rootOnly;if(!X.rootOnly||this.CustomError.parent===Error)Object.keys(D).forEach(function(W){switch(W){case"code":U=D.code||void 0;break;case"message":Y=D.message||"";break;default:F[W]=D[W]}}),Error.stackTraceLimit=X.stackLength+2,q=Error().stack.split(`
`),q.splice(0,3),q.unshift(""),Error.stackTraceLimit=Q,this.stack=q.join(`
`),Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,get:function(){return U},set:function(W){U=W,K()}}),Object.defineProperty(this,"message",{configurable:!0,enumerable:!0,get:function(){return Y},set:function(W){Y=W,K()}}),K()}});var PR=u((tOD,bR)=>{bR.exports=Q4;Q4.factory=vR();var lQ=Q4("CustomError");lQ.order=Q4(lQ,{message:"Arguments out of order.",code:"EOARG"});function Q4(D,$,J,F){var U,X;if($=e7(arguments,1,Error,TR,[hQ,DJ]),J=e7(arguments,2,{},hQ,[DJ]),F=e7(arguments,3,mQ,DJ,[]),D=e7(arguments,0,$===Error?"Error":$.prototype.CustomError.name,cc,[TR,hQ,DJ]),X=$===Error,X&&F===mQ)F=Q4.factory.root;return U=function(Y,Q){var q,K,W,G,I,z;if(!(this instanceof U))return new U(Y,Q);if(delete this.constructor.name,Object.defineProperty(this.constructor,"name",{enumerable:!1,configurable:!0,value:D,writable:!1}),typeof Y==="string")Y={message:Y};if(!Y)Y={};K=this.CustomError.chain.slice(0).reverse().map(function(Z){return Z.properties}),K.push(Y),K.unshift({}),z=Object.assign.apply(Object,K),q=this,W={},Object.keys(Q4.factory).forEach(function(Z){W[Z]=function(H,B){Q4.factory[Z].call(q,H,B,W)}});for(G=this.CustomError.chain.length-1;G>=0;G--)if(I=this.CustomError.chain[G],I.factory!==mQ)I.factory.call(this,z,Q,W)},U.prototype=Object.create($.prototype),U.prototype.constructor=U,U.prototype.name=D,U.prototype.CustomError={chain:X?[]:$.prototype.CustomError.chain.slice(0),factory:F,name:D,parent:$,properties:J},U.prototype.CustomError.chain.unshift(U.prototype.CustomError),U.prototype.toString=function(){var Y=this.CustomError.chain[this.CustomError.chain.length-1].name;if(this.code)Y+=" "+this.code;if(this.message)Y+=": "+this.message;return Y},U}function e7(D,$,J,F,U){var X=-1,Y=-1,Q,q,K=$<D.length?$:D.length,W;for(Q=0;Q<=K;Q++){if(W=D[Q],X===-1){for(q=0;q<U.length;q++)if(U[q](W))X=Q}if(Y===-1&&F(W))Y=Q}if(Y!==-1&&X!==-1&&X<Y)throw new lQ.order;return Y!==-1?D[Y]:J}function DJ(D){return typeof D==="function"&&D!==Error&&!D.prototype.CustomError}function cc(D){return typeof D==="string"}function TR(D){return typeof D==="function"&&(D===Error||D.prototype.CustomError)}function hQ(D){return D&&typeof D==="object"}function mQ(){}});var uR=u((f2,g2)=>{var nc=1/0,pc="[object Symbol]",e3={function:!0,object:!0},rc=e3[typeof f2]&&f2&&!f2.nodeType?f2:void 0,tc=e3[typeof g2]&&g2&&!g2.nodeType?g2:void 0,oc=$J(rc&&tc&&typeof global=="object"&&global),ac=$J(e3[typeof self]&&self),SR=$J(e3[typeof window]&&window),iQ=$J(e3[typeof f2]&&f2),sc=oc||SR!==(iQ&&iQ.window)&&SR||ac||iQ||Function("return this")();function $J(D){return D&&D.Object===Object?D:null}var ec=Object.prototype,Dn=ec.toString,_R=sc.Symbol,kR=_R?_R.prototype:void 0,CR=kR?kR.toString:void 0;function $n(D){if(typeof D=="string")return D;if(Fn(D))return CR?CR.call(D):"";var $=D+"";return $=="0"&&1/D==-nc?"-0":$}function Jn(D){return!!D&&typeof D=="object"}function Fn(D){return typeof D=="symbol"||Jn(D)&&Dn.call(D)==pc}g2.exports=$n});var lR=u((y2,x2)=>{var Un=uR(),Xn="Expected a function",fR="__lodash_hash_undefined__",Yn="[object Function]",Qn="[object GeneratorFunction]",qn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,Kn=/[\\^$.*+?()[\]{}|]/g,Wn=/\\(\\)?/g,Gn=/^\[object .+?Constructor\]$/,$9={function:!0,object:!0},In=$9[typeof y2]&&y2&&!y2.nodeType?y2:void 0,zn=$9[typeof x2]&&x2&&!x2.nodeType?x2:void 0,Zn=JJ(In&&zn&&typeof global=="object"&&global),Hn=JJ($9[typeof self]&&self),gR=JJ($9[typeof window]&&window),dQ=JJ($9[typeof y2]&&y2),Bn=Zn||gR!==(dQ&&dQ.window)&&gR||Hn||dQ||Function("return this")();function JJ(D){return D&&D.Object===Object?D:null}function On(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(J){}return $}var jn=Array.prototype,xR=Object.prototype,yR=Function.prototype.toString,cQ=xR.hasOwnProperty,Nn=xR.toString,Vn=RegExp("^"+yR.call(cQ).replace(Kn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ln=jn.splice,wn=hR(Bn,"Map"),D9=hR(Object,"create");function q4(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var F=D[$];this.set(F[0],F[1])}}function Rn(){this.__data__=D9?D9(null):{}}function Mn(D){return this.has(D)&&delete this.__data__[D]}function En(D){var $=this.__data__;if(D9){var J=$[D];return J===fR?void 0:J}return cQ.call($,D)?$[D]:void 0}function An(D){var $=this.__data__;return D9?$[D]!==void 0:cQ.call($,D)}function vn(D,$){var J=this.__data__;return J[D]=D9&&$===void 0?fR:$,this}q4.prototype.clear=Rn;q4.prototype.delete=Mn;q4.prototype.get=En;q4.prototype.has=An;q4.prototype.set=vn;function h2(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var F=D[$];this.set(F[0],F[1])}}function Tn(){this.__data__=[]}function bn(D){var $=this.__data__,J=FJ($,D);if(J<0)return!1;var F=$.length-1;if(J==F)$.pop();else Ln.call($,J,1);return!0}function Pn(D){var $=this.__data__,J=FJ($,D);return J<0?void 0:$[J][1]}function Sn(D){return FJ(this.__data__,D)>-1}function _n(D,$){var J=this.__data__,F=FJ(J,D);if(F<0)J.push([D,$]);else J[F][1]=$;return this}h2.prototype.clear=Tn;h2.prototype.delete=bn;h2.prototype.get=Pn;h2.prototype.has=Sn;h2.prototype.set=_n;function K4(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var F=D[$];this.set(F[0],F[1])}}function kn(){this.__data__={hash:new q4,map:new(wn||h2),string:new q4}}function Cn(D){return UJ(this,D).delete(D)}function un(D){return UJ(this,D).get(D)}function gn(D){return UJ(this,D).has(D)}function fn(D,$){return UJ(this,D).set(D,$),this}K4.prototype.clear=kn;K4.prototype.delete=Cn;K4.prototype.get=un;K4.prototype.has=gn;K4.prototype.set=fn;function FJ(D,$){var J=D.length;while(J--)if(mn(D[J][0],$))return J;return-1}function UJ(D,$){var J=D.__data__;return xn($)?J[typeof $=="string"?"string":"hash"]:J.map}function hR(D,$){var J=D[$];return dn(J)?J:void 0}function xn(D){var $=typeof D;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?D!=="__proto__":D===null}var yn=nQ(function(D){var $=[];return cn(D).replace(qn,function(J,F,U,X){$.push(U?X.replace(Wn,"$1"):F||J)}),$});function hn(D){if(D!=null){try{return yR.call(D)}catch($){}try{return D+""}catch($){}}return""}function nQ(D,$){if(typeof D!="function"||$&&typeof $!="function")throw TypeError(Xn);var J=function(){var F=arguments,U=$?$.apply(this,F):F[0],X=J.cache;if(X.has(U))return X.get(U);var Y=D.apply(this,F);return J.cache=X.set(U,Y),Y};return J.cache=new(nQ.Cache||K4),J}nQ.Cache=K4;function mn(D,$){return D===$||D!==D&&$!==$}function ln(D){var $=mR(D)?Nn.call(D):"";return $==Yn||$==Qn}function mR(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function dn(D){if(!mR(D))return!1;var $=ln(D)||On(D)?Vn:Gn;return $.test(hn(D))}function cn(D){return D==null?"":Un(D)}x2.exports=yn});var jM=u((i2,l2)=>{var nn=lR(),pn=200,Fq="__lodash_hash_undefined__",KJ=1,d2=2,rn=1/0,rR=9007199254740991,XJ="[object Arguments]",tQ="[object Array]",tR="[object Boolean]",oR="[object Date]",aR="[object Error]",sR="[object Function]",tn="[object GeneratorFunction]",J9="[object Map]",eR="[object Number]",m2="[object Object]",iR="[object Promise]",DM="[object RegExp]",F9="[object Set]",Uq="[object String]",$M="[object Symbol]",oQ="[object WeakMap]",JM="[object ArrayBuffer]",YJ="[object DataView]",on="[object Float32Array]",an="[object Float64Array]",sn="[object Int8Array]",en="[object Int16Array]",Dp="[object Int32Array]",$p="[object Uint8Array]",Jp="[object Uint8ClampedArray]",Fp="[object Uint16Array]",Up="[object Uint32Array]",Xp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yp=/^\w*$/,Qp=/[\\^$.*+?()[\]{}|]/g,qp=/^\[object .+?Constructor\]$/,Kp=/^(?:0|[1-9]\d*)$/,eD={};eD[on]=eD[an]=eD[sn]=eD[en]=eD[Dp]=eD[$p]=eD[Jp]=eD[Fp]=eD[Up]=!0;eD[XJ]=eD[tQ]=eD[JM]=eD[tR]=eD[YJ]=eD[oR]=eD[aR]=eD[sR]=eD[J9]=eD[eR]=eD[m2]=eD[DM]=eD[F9]=eD[Uq]=eD[oQ]=!1;var X9={function:!0,object:!0},Wp=X9[typeof i2]&&i2&&!i2.nodeType?i2:void 0,Gp=X9[typeof l2]&&l2&&!l2.nodeType?l2:void 0,Ip=WJ(Wp&&Gp&&typeof global=="object"&&global),zp=WJ(X9[typeof self]&&self),dR=WJ(X9[typeof window]&&window),pQ=WJ(X9[typeof i2]&&i2),I4=Ip||dR!==(pQ&&pQ.window)&&dR||zp||pQ||Function("return this")();function Zp(D,$){var J=-1,F=D.length,U=Array(F);while(++J<F)U[J]=$(D[J],J,D);return U}function Hp(D,$){var J=-1,F=D.length;while(++J<F)if($(D[J],J,D))return!0;return!1}function Bp(D,$){var J=-1,F=Array(D);while(++J<D)F[J]=$(J);return F}function Op(D,$){return Zp($,function(J){return[J,D[J]]})}function WJ(D){return D&&D.Object===Object?D:null}function aQ(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(J){}return $}function FM(D){var $=-1,J=Array(D.size);return D.forEach(function(F,U){J[++$]=[U,F]}),J}function jp(D){var $=-1,J=Array(D.size);return D.forEach(function(F){J[++$]=F}),J}function Np(D){var $=-1,J=Array(D.size);return D.forEach(function(F){J[++$]=[F,F]}),J}var Vp=Array.prototype,GJ=Object.prototype,UM=Function.prototype.toString,W4=GJ.hasOwnProperty,z4=GJ.toString,Lp=RegExp("^"+UM.call(W4).replace(Qp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cR=I4.Symbol,nR=I4.Uint8Array,wp=GJ.propertyIsEnumerable,Rp=Vp.splice,Mp=Object.getPrototypeOf,Ep=Object.keys,sQ=c2(I4,"DataView"),QJ=c2(I4,"Map"),eQ=c2(I4,"Promise"),Dq=c2(I4,"Set"),$q=c2(I4,"WeakMap"),U9=c2(Object,"create"),Ap=H4(sQ),vp=H4(QJ),Tp=H4(eQ),bp=H4(Dq),Pp=H4($q),pR=cR?cR.prototype:void 0,rQ=pR?pR.valueOf:void 0;function G4(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var F=D[$];this.set(F[0],F[1])}}function Sp(){this.__data__=U9?U9(null):{}}function _p(D){return this.has(D)&&delete this.__data__[D]}function kp(D){var $=this.__data__;if(U9){var J=$[D];return J===Fq?void 0:J}return W4.call($,D)?$[D]:void 0}function Cp(D){var $=this.__data__;return U9?$[D]!==void 0:W4.call($,D)}function up(D,$){var J=this.__data__;return J[D]=U9&&$===void 0?Fq:$,this}G4.prototype.clear=Sp;G4.prototype.delete=_p;G4.prototype.get=kp;G4.prototype.has=Cp;G4.prototype.set=up;function u6(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var F=D[$];this.set(F[0],F[1])}}function gp(){this.__data__=[]}function fp(D){var $=this.__data__,J=IJ($,D);if(J<0)return!1;var F=$.length-1;if(J==F)$.pop();else Rp.call($,J,1);return!0}function xp(D){var $=this.__data__,J=IJ($,D);return J<0?void 0:$[J][1]}function yp(D){return IJ(this.__data__,D)>-1}function hp(D,$){var J=this.__data__,F=IJ(J,D);if(F<0)J.push([D,$]);else J[F][1]=$;return this}u6.prototype.clear=gp;u6.prototype.delete=fp;u6.prototype.get=xp;u6.prototype.has=yp;u6.prototype.set=hp;function Z4(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var F=D[$];this.set(F[0],F[1])}}function mp(){this.__data__={hash:new G4,map:new(QJ||u6),string:new G4}}function lp(D){return zJ(this,D).delete(D)}function ip(D){return zJ(this,D).get(D)}function dp(D){return zJ(this,D).has(D)}function cp(D,$){return zJ(this,D).set(D,$),this}Z4.prototype.clear=mp;Z4.prototype.delete=lp;Z4.prototype.get=ip;Z4.prototype.has=dp;Z4.prototype.set=cp;function qJ(D){var $=-1,J=D?D.length:0;this.__data__=new Z4;while(++$<J)this.add(D[$])}function np(D){return this.__data__.set(D,Fq),this}function pp(D){return this.__data__.has(D)}qJ.prototype.add=qJ.prototype.push=np;qJ.prototype.has=pp;function C6(D){this.__data__=new u6(D)}function rp(){this.__data__=new u6}function tp(D){return this.__data__.delete(D)}function op(D){return this.__data__.get(D)}function ap(D){return this.__data__.has(D)}function sp(D,$){var J=this.__data__;if(J instanceof u6&&J.__data__.length==pn)J=this.__data__=new Z4(J.__data__);return J.set(D,$),this}C6.prototype.clear=rp;C6.prototype.delete=tp;C6.prototype.get=op;C6.prototype.has=ap;C6.prototype.set=sp;function IJ(D,$){var J=D.length;while(J--)if(Or(D[J][0],$))return J;return-1}function XM(D,$){$=ZJ($,D)?[$]:qM($);var J=0,F=$.length;while(D!=null&&J<F)D=D[HJ($[J++])];return J&&J==F?D:void 0}function YM(D,$){return W4.call(D,$)||typeof D=="object"&&$ in D&&Ir(D)===null}function ep(D,$){return $ in Object(D)}function Xq(D,$,J,F,U){if(D===$)return!0;if(D==null||$==null||!OJ(D)&&!Y9($))return D!==D&&$!==$;return Dr(D,$,Xq,J,F,U)}function Dr(D,$,J,F,U,X){var Y=Q1(D),Q=Q1($),q=tQ,K=tQ;if(!Y)q=k6(D),q=q==XJ?m2:q;if(!Q)K=k6($),K=K==XJ?m2:K;var W=q==m2&&!aQ(D),G=K==m2&&!aQ($),I=q==K;if(I&&!W)return X||(X=new C6),Y||Vr(D)?KM(D,$,J,F,U,X):qr(D,$,q,J,F,U,X);if(!(U&d2)){var z=W&&W4.call(D,"__wrapped__"),Z=G&&W4.call($,"__wrapped__");if(z||Z){var H=z?D.value():D,B=Z?$.value():$;return X||(X=new C6),J(H,B,F,U,X)}}if(!I)return!1;return X||(X=new C6),Kr(D,$,J,F,U,X)}function $r(D,$,J,F){var U=J.length,X=U,Y=!F;if(D==null)return!X;D=Object(D);while(U--){var Q=J[U];if(Y&&Q[2]?Q[1]!==D[Q[0]]:!(Q[0]in D))return!1}while(++U<X){Q=J[U];var q=Q[0],K=D[q],W=Q[1];if(Y&&Q[2]){if(K===void 0&&!(q in D))return!1}else{var G=new C6;if(F)var I=F(K,W,q,D,$,G);if(!(I===void 0?Xq(W,K,F,KJ|d2,G):I))return!1}}return!0}function Jr(D){if(typeof D=="function")return D;if(D==null)return Mr;if(typeof D=="object")return Q1(D)?Xr(D[0],D[1]):Ur(D);return Er(D)}function Fr(D){return Ep(Object(D))}function Ur(D){var $=Gr(D);if($.length==1&&$[0][2])return IM($[0][0],$[0][1]);return function(J){return J===D||$r(J,D,$)}}function Xr(D,$){if(ZJ(D)&&GM($))return IM(HJ(D),$);return function(J){var F=Lr(J,D);return F===void 0&&F===$?wr(J,D):Xq($,F,void 0,KJ|d2)}}function QM(D){return function($){return $==null?void 0:$[D]}}function Yr(D){return function($){return XM($,D)}}function qM(D){return Q1(D)?D:nn(D)}function Qr(D){return function($){var J=k6($);if(J==J9)return FM($);if(J==F9)return Np($);return Op($,D($))}}function KM(D,$,J,F,U,X){var Y=U&d2,Q=D.length,q=$.length;if(Q!=q&&!(Y&&q>Q))return!1;var K=X.get(D);if(K)return K==$;var W=-1,G=!0,I=U&KJ?new qJ:void 0;X.set(D,$);while(++W<Q){var z=D[W],Z=$[W];if(F)var H=Y?F(Z,z,W,$,D,X):F(z,Z,W,D,$,X);if(H!==void 0){if(H)continue;G=!1;break}if(I){if(!Hp($,function(B,j){if(!I.has(j)&&(z===B||J(z,B,F,U,X)))return I.add(j)})){G=!1;break}}else if(!(z===Z||J(z,Z,F,U,X))){G=!1;break}}return X.delete(D),G}function qr(D,$,J,F,U,X,Y){switch(J){case YJ:if(D.byteLength!=$.byteLength||D.byteOffset!=$.byteOffset)return!1;D=D.buffer,$=$.buffer;case JM:if(D.byteLength!=$.byteLength||!F(new nR(D),new nR($)))return!1;return!0;case tR:case oR:return+D==+$;case aR:return D.name==$.name&&D.message==$.message;case eR:return D!=+D?$!=+$:D==+$;case DM:case Uq:return D==$+"";case J9:var Q=FM;case F9:var q=X&d2;if(Q||(Q=jp),D.size!=$.size&&!q)return!1;var K=Y.get(D);if(K)return K==$;return X|=KJ,Y.set(D,$),KM(Q(D),Q($),F,U,X,Y);case $M:if(rQ)return rQ.call(D)==rQ.call($)}return!1}function Kr(D,$,J,F,U,X){var Y=U&d2,Q=Jq(D),q=Q.length,K=Jq($),W=K.length;if(q!=W&&!Y)return!1;var G=q;while(G--){var I=Q[G];if(!(Y?I in $:YM($,I)))return!1}var z=X.get(D);if(z)return z==$;var Z=!0;X.set(D,$);var H=Y;while(++G<q){I=Q[G];var B=D[I],j=$[I];if(F)var N=Y?F(j,B,I,$,D,X):F(B,j,I,D,$,X);if(!(N===void 0?B===j||J(B,j,F,U,X):N)){Z=!1;break}H||(H=I=="constructor")}if(Z&&!H){var O=D.constructor,L=$.constructor;if(O!=L&&(("constructor"in D)&&("constructor"in $))&&!(typeof O=="function"&&O instanceof O&&typeof L=="function"&&L instanceof L))Z=!1}return X.delete(D),Z}var Wr=QM("length");function zJ(D,$){var J=D.__data__;return Hr($)?J[typeof $=="string"?"string":"hash"]:J.map}function Gr(D){var $=Rr(D),J=$.length;while(J--)$[J][2]=GM($[J][1]);return $}function c2(D,$){var J=D[$];return Nr(J)?J:void 0}function Ir(D){return Mp(Object(D))}function k6(D){return z4.call(D)}if(sQ&&k6(new sQ(new ArrayBuffer(1)))!=YJ||QJ&&k6(new QJ)!=J9||eQ&&k6(eQ.resolve())!=iR||Dq&&k6(new Dq)!=F9||$q&&k6(new $q)!=oQ)k6=function(D){var $=z4.call(D),J=$==m2?D.constructor:void 0,F=J?H4(J):void 0;if(F)switch(F){case Ap:return YJ;case vp:return J9;case Tp:return iR;case bp:return F9;case Pp:return oQ}return $};function zr(D,$,J){$=ZJ($,D)?[$]:qM($);var F,U=-1,Y=$.length;while(++U<Y){var X=HJ($[U]);if(!(F=D!=null&&J(D,X)))break;D=D[X]}if(F)return F;var Y=D?D.length:0;return!!Y&&BJ(Y)&&WM(X,Y)&&(Q1(D)||BM(D)||zM(D))}function Zr(D){var $=D?D.length:void 0;if(BJ($)&&(Q1(D)||BM(D)||zM(D)))return Bp($,String);return null}function WM(D,$){return $=$==null?rR:$,!!$&&(typeof D=="number"||Kp.test(D))&&(D>-1&&D%1==0&&D<$)}function ZJ(D,$){if(Q1(D))return!1;var J=typeof D;if(J=="number"||J=="symbol"||J=="boolean"||D==null||OM(D))return!0;return Yp.test(D)||!Xp.test(D)||$!=null&&D in Object($)}function Hr(D){var $=typeof D;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?D!=="__proto__":D===null}function Br(D){var $=D&&D.constructor,J=typeof $=="function"&&$.prototype||GJ;return D===J}function GM(D){return D===D&&!OJ(D)}function IM(D,$){return function(J){if(J==null)return!1;return J[D]===$&&($!==void 0||(D in Object(J)))}}function HJ(D){if(typeof D=="string"||OM(D))return D;var $=D+"";return $=="0"&&1/D==-rn?"-0":$}function H4(D){if(D!=null){try{return UM.call(D)}catch($){}try{return D+""}catch($){}}return""}function Or(D,$){return D===$||D!==D&&$!==$}function zM(D){return jr(D)&&W4.call(D,"callee")&&(!wp.call(D,"callee")||z4.call(D)==XJ)}var Q1=Array.isArray;function ZM(D){return D!=null&&BJ(Wr(D))&&!HM(D)}function jr(D){return Y9(D)&&ZM(D)}function HM(D){var $=OJ(D)?z4.call(D):"";return $==sR||$==tn}function BJ(D){return typeof D=="number"&&D>-1&&D%1==0&&D<=rR}function OJ(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function Y9(D){return!!D&&typeof D=="object"}function Nr(D){if(!OJ(D))return!1;var $=HM(D)||aQ(D)?Lp:qp;return $.test(H4(D))}function BM(D){return typeof D=="string"||!Q1(D)&&Y9(D)&&z4.call(D)==Uq}function OM(D){return typeof D=="symbol"||Y9(D)&&z4.call(D)==$M}function Vr(D){return Y9(D)&&BJ(D.length)&&!!eD[z4.call(D)]}function Lr(D,$,J){var F=D==null?void 0:XM(D,$);return F===void 0?J:F}function wr(D,$){return D!=null&&zr(D,$,ep)}function Jq(D){var $=Br(D);if(!($||ZM(D)))return Fr(D);var J=Zr(D),F=!!J,U=J||[],X=U.length;for(var Y in D)if(YM(D,Y)&&!(F&&(Y=="length"||WM(Y,X)))&&!($&&Y=="constructor"))U.push(Y);return U}var Rr=Qr(Jq);function Mr(D){return D}function Er(D){return ZJ(D)?QM(HJ(D)):Yr(D)}l2.exports=Jr});var RM=u((p2,n2)=>{var Ar=1/0,vr="[object Function]",Tr="[object GeneratorFunction]",br=/[\\^$.*+?()[\]{}|]/g,Pr=/^\[object .+?Constructor\]$/,Q9={function:!0,object:!0},Sr=Q9[typeof p2]&&p2&&!p2.nodeType?p2:void 0,_r=Q9[typeof n2]&&n2&&!n2.nodeType?n2:void 0,kr=jJ(Sr&&_r&&typeof global=="object"&&global),Cr=jJ(Q9[typeof self]&&self),NM=jJ(Q9[typeof window]&&window),Yq=jJ(Q9[typeof p2]&&p2),ur=kr||NM!==(Yq&&Yq.window)&&NM||Cr||Yq||Function("return this")();function jJ(D){return D&&D.Object===Object?D:null}function gr(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(J){}return $}function fr(D){var $=-1,J=Array(D.size);return D.forEach(function(F){J[++$]=F}),J}var VM=Object.prototype,LM=Function.prototype.toString,xr=VM.hasOwnProperty,yr=VM.toString,hr=RegExp("^"+LM.call(xr).replace(br,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qq=lr(ur,"Set"),mr=!(Qq&&1/fr(new Qq([,-0]))[1]==Ar)?nr:function(D){return new Qq(D)};function lr(D,$){var J=D[$];return cr(J)?J:void 0}function ir(D){if(D!=null){try{return LM.call(D)}catch($){}try{return D+""}catch($){}}return""}function dr(D){var $=wM(D)?yr.call(D):"";return $==vr||$==Tr}function wM(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function cr(D){if(!wM(D))return!1;var $=dr(D)||gr(D)?hr:Pr;return $.test(ir(D))}function nr(){}n2.exports=mr});var EM=u((t2,r2)=>{var q9={function:!0,object:!0},pr=q9[typeof t2]&&t2&&!t2.nodeType?t2:void 0,rr=q9[typeof r2]&&r2&&!r2.nodeType?r2:void 0,tr=NJ(pr&&rr&&typeof global=="object"&&global),or=NJ(q9[typeof self]&&self),MM=NJ(q9[typeof window]&&window),qq=NJ(q9[typeof t2]&&t2),ar=tr||MM!==(qq&&qq.window)&&MM||or||qq||Function("return this")();function NJ(D){return D&&D.Object===Object?D:null}r2.exports=ar});var SM=u(($jD,PM)=>{var sr=RM(),er=EM(),Dt=200,Kq="__lodash_hash_undefined__",$t="[object Function]",Jt="[object GeneratorFunction]",Ft=/[\\^$.*+?()[\]{}|]/g,Ut=/^\[object .+?Constructor\]$/;function Xt(D,$){return!!D.length&&Qt(D,$,0)>-1}function Yt(D,$,J){var F=-1,U=D.length;while(++F<U)if(J($,D[F]))return!0;return!1}function Qt(D,$,J){if($!==$)return Kt(D,J);var F=J-1,U=D.length;while(++F<U)if(D[F]===$)return F;return-1}function qt(D,$){return D.has($)}function Kt(D,$,J){var F=D.length,U=$+(J?0:-1);while(J?U--:++U<F){var X=D[U];if(X!==X)return U}return-1}function Wt(D){var $=!1;if(D!=null&&typeof D.toString!="function")try{$=!!(D+"")}catch(J){}return $}function Gt(D){var $=-1,J=Array(D.size);return D.forEach(function(F){J[++$]=F}),J}var It=Array.prototype,AM=Object.prototype,vM=Function.prototype.toString,Wq=AM.hasOwnProperty,zt=AM.toString,Zt=RegExp("^"+vM.call(Wq).replace(Ft,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=It.splice,Bt=TM(er,"Map"),K9=TM(Object,"create");function B4(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var F=D[$];this.set(F[0],F[1])}}function Ot(){this.__data__=K9?K9(null):{}}function jt(D){return this.has(D)&&delete this.__data__[D]}function Nt(D){var $=this.__data__;if(K9){var J=$[D];return J===Kq?void 0:J}return Wq.call($,D)?$[D]:void 0}function Vt(D){var $=this.__data__;return K9?$[D]!==void 0:Wq.call($,D)}function Lt(D,$){var J=this.__data__;return J[D]=K9&&$===void 0?Kq:$,this}B4.prototype.clear=Ot;B4.prototype.delete=jt;B4.prototype.get=Nt;B4.prototype.has=Vt;B4.prototype.set=Lt;function o2(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var F=D[$];this.set(F[0],F[1])}}function wt(){this.__data__=[]}function Rt(D){var $=this.__data__,J=LJ($,D);if(J<0)return!1;var F=$.length-1;if(J==F)$.pop();else Ht.call($,J,1);return!0}function Mt(D){var $=this.__data__,J=LJ($,D);return J<0?void 0:$[J][1]}function Et(D){return LJ(this.__data__,D)>-1}function At(D,$){var J=this.__data__,F=LJ(J,D);if(F<0)J.push([D,$]);else J[F][1]=$;return this}o2.prototype.clear=wt;o2.prototype.delete=Rt;o2.prototype.get=Mt;o2.prototype.has=Et;o2.prototype.set=At;function a2(D){var $=-1,J=D?D.length:0;this.clear();while(++$<J){var F=D[$];this.set(F[0],F[1])}}function vt(){this.__data__={hash:new B4,map:new(Bt||o2),string:new B4}}function Tt(D){return wJ(this,D).delete(D)}function bt(D){return wJ(this,D).get(D)}function Pt(D){return wJ(this,D).has(D)}function St(D,$){return wJ(this,D).set(D,$),this}a2.prototype.clear=vt;a2.prototype.delete=Tt;a2.prototype.get=bt;a2.prototype.has=Pt;a2.prototype.set=St;function VJ(D){var $=-1,J=D?D.length:0;this.__data__=new a2;while(++$<J)this.add(D[$])}function _t(D){return this.__data__.set(D,Kq),this}function kt(D){return this.__data__.has(D)}VJ.prototype.add=VJ.prototype.push=_t;VJ.prototype.has=kt;function LJ(D,$){var J=D.length;while(J--)if(ft(D[J][0],$))return J;return-1}function Ct(D,$,J){var F=-1,U=Xt,X=D.length,Y=!0,Q=[],q=Q;if(J)Y=!1,U=Yt;else if(X>=Dt){var K=$?null:sr(D);if(K)return Gt(K);Y=!1,U=qt,q=new VJ}else q=$?[]:Q;D:while(++F<X){var W=D[F],G=$?$(W):W;if(W=J||W!==0?W:0,Y&&G===G){var I=q.length;while(I--)if(q[I]===G)continue D;if($)q.push(G);Q.push(W)}else if(!U(q,G,J)){if(q!==Q)q.push(G);Q.push(W)}}return Q}function wJ(D,$){var J=D.__data__;return ut($)?J[typeof $=="string"?"string":"hash"]:J.map}function TM(D,$){var J=D[$];return yt(J)?J:void 0}function ut(D){var $=typeof D;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?D!=="__proto__":D===null}function gt(D){if(D!=null){try{return vM.call(D)}catch($){}try{return D+""}catch($){}}return""}function ft(D,$){return D===$||D!==D&&$!==$}function xt(D){var $=bM(D)?zt.call(D):"";return $==$t||$==Jt}function bM(D){var $=typeof D;return!!D&&($=="object"||$=="function")}function yt(D){if(!bM(D))return!1;var $=xt(D)||Wt(D)?Zt:Ut;return $.test(gt(D))}PM.exports=Ct});var kM=u((JjD,_M)=>{var ht=jM(),mt=SM();function lt(D,$){return D&&D.length?mt(D,ht($)):[]}_M.exports=lt});var uM=u((FjD,CM)=>{var it=PR(),dt=kM(),ct=it("MultiError");CM.exports=Gq;function Gq(D){if(!(this instanceof Gq))return new Gq(D);if(D=Array.isArray(D)?D:[D],D=dt(D,function(J){return J.stack}),D.length===1)return D[0];var $=new ct({message:D.map(function(J){return J.message}).join("; "),errors:D.reduce(function(J,F){return J.concat(F.errors||F)},[])});return $.__defineGetter__("stack",function(){return D.map(function(J){return J.stack}).join(`
`)}),$.__defineSetter__("stack",function(J){return[J].concat($.stack).join(`
`)}),$}});var fM=u((UjD,gM)=>{var q1=FD("constants"),nt=process.cwd,RJ=null,pt=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!RJ)RJ=nt.call(process);return RJ};try{process.cwd()}catch(D){}if(typeof process.chdir==="function"){if(MJ=process.chdir,process.chdir=function(D){RJ=null,MJ.call(process,D)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,MJ)}var MJ;gM.exports=rt;function rt(D){if(q1.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))$(D);if(!D.lutimes)J(D);if(D.chown=X(D.chown),D.fchown=X(D.fchown),D.lchown=X(D.lchown),D.chmod=F(D.chmod),D.fchmod=F(D.fchmod),D.lchmod=F(D.lchmod),D.chownSync=Y(D.chownSync),D.fchownSync=Y(D.fchownSync),D.lchownSync=Y(D.lchownSync),D.chmodSync=U(D.chmodSync),D.fchmodSync=U(D.fchmodSync),D.lchmodSync=U(D.lchmodSync),D.stat=Q(D.stat),D.fstat=Q(D.fstat),D.lstat=Q(D.lstat),D.statSync=q(D.statSync),D.fstatSync=q(D.fstatSync),D.lstatSync=q(D.lstatSync),D.chmod&&!D.lchmod)D.lchmod=function(W,G,I){if(I)process.nextTick(I)},D.lchmodSync=function(){};if(D.chown&&!D.lchown)D.lchown=function(W,G,I,z){if(z)process.nextTick(z)},D.lchownSync=function(){};if(pt==="win32")D.rename=typeof D.rename!=="function"?D.rename:function(W){function G(I,z,Z){var H=Date.now(),B=0;W(I,z,function j(N){if(N&&(N.code==="EACCES"||N.code==="EPERM"||N.code==="EBUSY")&&Date.now()-H<60000){if(setTimeout(function(){D.stat(z,function(O,L){if(O&&O.code==="ENOENT")W(I,z,j);else Z(N)})},B),B<100)B+=10;return}if(Z)Z(N)})}if(Object.setPrototypeOf)Object.setPrototypeOf(G,W);return G}(D.rename);D.read=typeof D.read!=="function"?D.read:function(W){function G(I,z,Z,H,B,j){var N;if(j&&typeof j==="function"){var O=0;N=function(L,A,E){if(L&&L.code==="EAGAIN"&&O<10)return O++,W.call(D,I,z,Z,H,B,N);j.apply(this,arguments)}}return W.call(D,I,z,Z,H,B,N)}if(Object.setPrototypeOf)Object.setPrototypeOf(G,W);return G}(D.read),D.readSync=typeof D.readSync!=="function"?D.readSync:function(W){return function(G,I,z,Z,H){var B=0;while(!0)try{return W.call(D,G,I,z,Z,H)}catch(j){if(j.code==="EAGAIN"&&B<10){B++;continue}throw j}}}(D.readSync);function $(W){W.lchmod=function(G,I,z){W.open(G,q1.O_WRONLY|q1.O_SYMLINK,I,function(Z,H){if(Z){if(z)z(Z);return}W.fchmod(H,I,function(B){W.close(H,function(j){if(z)z(B||j)})})})},W.lchmodSync=function(G,I){var z=W.openSync(G,q1.O_WRONLY|q1.O_SYMLINK,I),Z=!0,H;try{H=W.fchmodSync(z,I),Z=!1}finally{if(Z)try{W.closeSync(z)}catch(B){}else W.closeSync(z)}return H}}function J(W){if(q1.hasOwnProperty("O_SYMLINK")&&W.futimes)W.lutimes=function(G,I,z,Z){W.open(G,q1.O_SYMLINK,function(H,B){if(H){if(Z)Z(H);return}W.futimes(B,I,z,function(j){W.close(B,function(N){if(Z)Z(j||N)})})})},W.lutimesSync=function(G,I,z){var Z=W.openSync(G,q1.O_SYMLINK),H,B=!0;try{H=W.futimesSync(Z,I,z),B=!1}finally{if(B)try{W.closeSync(Z)}catch(j){}else W.closeSync(Z)}return H};else if(W.futimes)W.lutimes=function(G,I,z,Z){if(Z)process.nextTick(Z)},W.lutimesSync=function(){}}function F(W){if(!W)return W;return function(G,I,z){return W.call(D,G,I,function(Z){if(K(Z))Z=null;if(z)z.apply(this,arguments)})}}function U(W){if(!W)return W;return function(G,I){try{return W.call(D,G,I)}catch(z){if(!K(z))throw z}}}function X(W){if(!W)return W;return function(G,I,z,Z){return W.call(D,G,I,z,function(H){if(K(H))H=null;if(Z)Z.apply(this,arguments)})}}function Y(W){if(!W)return W;return function(G,I,z){try{return W.call(D,G,I,z)}catch(Z){if(!K(Z))throw Z}}}function Q(W){if(!W)return W;return function(G,I,z){if(typeof I==="function")z=I,I=null;function Z(H,B){if(B){if(B.uid<0)B.uid+=4294967296;if(B.gid<0)B.gid+=4294967296}if(z)z.apply(this,arguments)}return I?W.call(D,G,I,Z):W.call(D,G,Z)}}function q(W){if(!W)return W;return function(G,I){var z=I?W.call(D,G,I):W.call(D,G);if(z){if(z.uid<0)z.uid+=4294967296;if(z.gid<0)z.gid+=4294967296}return z}}function K(W){if(!W)return!0;if(W.code==="ENOSYS")return!0;var G=!process.getuid||process.getuid()!==0;if(G){if(W.code==="EINVAL"||W.code==="EPERM")return!0}return!1}}});var hM=u((XjD,yM)=>{var xM=FD("stream").Stream;yM.exports=tt;function tt(D){return{ReadStream:$,WriteStream:J};function $(F,U){if(!(this instanceof $))return new $(F,U);xM.call(this);var X=this;this.path=F,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,U=U||{};var Y=Object.keys(U);for(var Q=0,q=Y.length;Q<q;Q++){var K=Y[Q];this[K]=U[K]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){X._read()});return}D.open(this.path,this.flags,this.mode,function(W,G){if(W){X.emit("error",W),X.readable=!1;return}X.fd=G,X.emit("open",G),X._read()})}function J(F,U){if(!(this instanceof J))return new J(F,U);xM.call(this),this.path=F,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,U=U||{};var X=Object.keys(U);for(var Y=0,Q=X.length;Y<Q;Y++){var q=X[Y];this[q]=U[q]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=D.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var lM=u((YjD,mM)=>{mM.exports=at;var ot=Object.getPrototypeOf||function(D){return D.__proto__};function at(D){if(D===null||typeof D!=="object")return D;if(D instanceof Object)var $={__proto__:ot(D)};else var $=Object.create(null);return Object.getOwnPropertyNames(D).forEach(function(J){Object.defineProperty($,J,Object.getOwnPropertyDescriptor(D,J))}),$}});var K1=u((QjD,Hq)=>{var Y$=FD("fs"),st=fM(),et=hM(),Do=lM(),EJ=FD("util"),P$,vJ;if(typeof Symbol==="function"&&typeof Symbol.for==="function")P$=Symbol.for("graceful-fs.queue"),vJ=Symbol.for("graceful-fs.previous");else P$="___graceful-fs.queue",vJ="___graceful-fs.previous";function $o(){}function dM(D,$){Object.defineProperty(D,P$,{get:function(){return $}})}var O4=$o;if(EJ.debuglog)O4=EJ.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))O4=function(){var D=EJ.format.apply(EJ,arguments);D="GFS4: "+D.split(/\n/).join(`
GFS4: `),console.error(D)};if(!Y$[P$]){if(Iq=global[P$]||[],dM(Y$,Iq),Y$.close=function(D){function $(J,F){return D.call(Y$,J,function(U){if(!U)iM();if(typeof F==="function")F.apply(this,arguments)})}return Object.defineProperty($,vJ,{value:D}),$}(Y$.close),Y$.closeSync=function(D){function $(J){D.apply(Y$,arguments),iM()}return Object.defineProperty($,vJ,{value:D}),$}(Y$.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){O4(Y$[P$]),FD("assert").equal(Y$[P$].length,0)})}var Iq;if(!global[P$])dM(global,Y$[P$]);Hq.exports=zq(Do(Y$));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Y$.__patched)Hq.exports=zq(Y$),Y$.__patched=!0;function zq(D){st(D),D.gracefulify=zq,D.createReadStream=A,D.createWriteStream=E;var $=D.readFile;D.readFile=J;function J(C,y,v){if(typeof y==="function")v=y,y=null;return i(C,y,v);function i(c,n,t,R){return $(c,n,function(V){if(V&&(V.code==="EMFILE"||V.code==="ENFILE"))s2([i,[c,n,t],V,R||Date.now(),Date.now()]);else if(typeof t==="function")t.apply(this,arguments)})}}var F=D.writeFile;D.writeFile=U;function U(C,y,v,i){if(typeof v==="function")i=v,v=null;return c(C,y,v,i);function c(n,t,R,V,w){return F(n,t,R,function(b){if(b&&(b.code==="EMFILE"||b.code==="ENFILE"))s2([c,[n,t,R,V],b,w||Date.now(),Date.now()]);else if(typeof V==="function")V.apply(this,arguments)})}}var X=D.appendFile;if(X)D.appendFile=Y;function Y(C,y,v,i){if(typeof v==="function")i=v,v=null;return c(C,y,v,i);function c(n,t,R,V,w){return X(n,t,R,function(b){if(b&&(b.code==="EMFILE"||b.code==="ENFILE"))s2([c,[n,t,R,V],b,w||Date.now(),Date.now()]);else if(typeof V==="function")V.apply(this,arguments)})}}var Q=D.copyFile;if(Q)D.copyFile=q;function q(C,y,v,i){if(typeof v==="function")i=v,v=0;return c(C,y,v,i);function c(n,t,R,V,w){return Q(n,t,R,function(b){if(b&&(b.code==="EMFILE"||b.code==="ENFILE"))s2([c,[n,t,R,V],b,w||Date.now(),Date.now()]);else if(typeof V==="function")V.apply(this,arguments)})}}var K=D.readdir;D.readdir=G;var W=/^v[0-5]\./;function G(C,y,v){if(typeof y==="function")v=y,y=null;var i=W.test(process.version)?function(t,R,V,w){return K(t,c(t,R,V,w))}:function(t,R,V,w){return K(t,R,c(t,R,V,w))};return i(C,y,v);function c(n,t,R,V){return function(w,b){if(w&&(w.code==="EMFILE"||w.code==="ENFILE"))s2([i,[n,t,R],w,V||Date.now(),Date.now()]);else{if(b&&b.sort)b.sort();if(typeof R==="function")R.call(this,w,b)}}}}if(process.version.substr(0,4)==="v0.8"){var I=et(D);j=I.ReadStream,O=I.WriteStream}var z=D.ReadStream;if(z)j.prototype=Object.create(z.prototype),j.prototype.open=N;var Z=D.WriteStream;if(Z)O.prototype=Object.create(Z.prototype),O.prototype.open=L;Object.defineProperty(D,"ReadStream",{get:function(){return j},set:function(C){j=C},enumerable:!0,configurable:!0}),Object.defineProperty(D,"WriteStream",{get:function(){return O},set:function(C){O=C},enumerable:!0,configurable:!0});var H=j;Object.defineProperty(D,"FileReadStream",{get:function(){return H},set:function(C){H=C},enumerable:!0,configurable:!0});var B=O;Object.defineProperty(D,"FileWriteStream",{get:function(){return B},set:function(C){B=C},enumerable:!0,configurable:!0});function j(C,y){if(this instanceof j)return z.apply(this,arguments),this;else return j.apply(Object.create(j.prototype),arguments)}function N(){var C=this;k(C.path,C.flags,C.mode,function(y,v){if(y){if(C.autoClose)C.destroy();C.emit("error",y)}else C.fd=v,C.emit("open",v),C.read()})}function O(C,y){if(this instanceof O)return Z.apply(this,arguments),this;else return O.apply(Object.create(O.prototype),arguments)}function L(){var C=this;k(C.path,C.flags,C.mode,function(y,v){if(y)C.destroy(),C.emit("error",y);else C.fd=v,C.emit("open",v)})}function A(C,y){return new D.ReadStream(C,y)}function E(C,y){return new D.WriteStream(C,y)}var _=D.open;D.open=k;function k(C,y,v,i){if(typeof v==="function")i=v,v=null;return c(C,y,v,i);function c(n,t,R,V,w){return _(n,t,R,function(b,x){if(b&&(b.code==="EMFILE"||b.code==="ENFILE"))s2([c,[n,t,R,V],b,w||Date.now(),Date.now()]);else if(typeof V==="function")V.apply(this,arguments)})}}return D}function s2(D){O4("ENQUEUE",D[0].name,D[1]),Y$[P$].push(D),Zq()}var AJ;function iM(){var D=Date.now();for(var $=0;$<Y$[P$].length;++$)if(Y$[P$][$].length>2)Y$[P$][$][3]=D,Y$[P$][$][4]=D;Zq()}function Zq(){if(clearTimeout(AJ),AJ=void 0,Y$[P$].length===0)return;var D=Y$[P$].shift(),$=D[0],J=D[1],F=D[2],U=D[3],X=D[4];if(U===void 0)O4("RETRY",$.name,J),$.apply(null,J);else if(Date.now()-U>=60000){O4("TIMEOUT",$.name,J);var Y=J.pop();if(typeof Y==="function")Y.call(null,F)}else{var Q=Date.now()-X,q=Math.max(X-U,1),K=Math.min(q*1.2,100);if(Q>=K)O4("RETRY",$.name,J),$.apply(null,J.concat([U]));else Y$[P$].push(D)}if(AJ===void 0)AJ=setTimeout(Zq,0)}});var nM=u((qjD,cM)=>{function y0(D,$){if(typeof $==="boolean")$={forever:$};if(this._originalTimeouts=JSON.parse(JSON.stringify(D)),this._timeouts=D,this._options=$||{},this._maxRetryTime=$&&$.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever)this._cachedTimeouts=this._timeouts.slice(0)}cM.exports=y0;y0.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};y0.prototype.stop=function(){if(this._timeout)clearTimeout(this._timeout);this._timeouts=[],this._cachedTimeouts=null};y0.prototype.retry=function(D){if(this._timeout)clearTimeout(this._timeout);if(!D)return!1;var $=new Date().getTime();if(D&&$-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(D);var J=this._timeouts.shift();if(J===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),J=this._timeouts.shift();else return!1;var F=this,U=setTimeout(function(){if(F._attempts++,F._operationTimeoutCb){if(F._timeout=setTimeout(function(){F._operationTimeoutCb(F._attempts)},F._operationTimeout),F._options.unref)F._timeout.unref()}F._fn(F._attempts)},J);if(this._options.unref)U.unref();return!0};y0.prototype.attempt=function(D,$){if(this._fn=D,$){if($.timeout)this._operationTimeout=$.timeout;if($.cb)this._operationTimeoutCb=$.cb}var J=this;if(this._operationTimeoutCb)this._timeout=setTimeout(function(){J._operationTimeoutCb()},J._operationTimeout);this._operationStart=new Date().getTime(),this._fn(this._attempts)};y0.prototype.try=function(D){console.log("Using RetryOperation.try() is deprecated"),this.attempt(D)};y0.prototype.start=function(D){console.log("Using RetryOperation.start() is deprecated"),this.attempt(D)};y0.prototype.start=y0.prototype.try;y0.prototype.errors=function(){return this._errors};y0.prototype.attempts=function(){return this._attempts};y0.prototype.mainError=function(){if(this._errors.length===0)return null;var D={},$=null,J=0;for(var F=0;F<this._errors.length;F++){var U=this._errors[F],X=U.message,Y=(D[X]||0)+1;if(D[X]=Y,Y>=J)$=U,J=Y}return $}});var rM=u((Fo)=>{var Jo=nM();Fo.operation=function(D){var $=Fo.timeouts(D);return new Jo($,{forever:D&&D.forever,unref:D&&D.unref,maxRetryTime:D&&D.maxRetryTime})};Fo.timeouts=function(D){if(D instanceof Array)return[].concat(D);var $={retries:10,factor:2,minTimeout:1000,maxTimeout:1/0,randomize:!1};for(var J in D)$[J]=D[J];if($.minTimeout>$.maxTimeout)throw Error("minTimeout is greater than maxTimeout");var F=[];for(var U=0;U<$.retries;U++)F.push(this.createTimeout(U,$));if(D&&D.forever&&!F.length)F.push(this.createTimeout(U,$));return F.sort(function(X,Y){return X-Y}),F};Fo.createTimeout=function(D,$){var J=$.randomize?Math.random()+1:1,F=Math.round(J*$.minTimeout*Math.pow($.factor,D));return F=Math.min(F,$.maxTimeout),F};Fo.wrap=function(D,$,J){if($ instanceof Array)J=$,$=null;if(!J){J=[];for(var F in D)if(typeof D[F]==="function")J.push(F)}for(var U=0;U<J.length;U++){var X=J[U],Y=D[X];D[X]=function(q){var K=Fo.operation($),W=Array.prototype.slice.call(arguments,1),G=W.pop();W.push(function(I){if(K.retry(I))return;if(I)arguments[0]=K.mainError();G.apply(this,arguments)}),K.attempt(function(){q.apply(D,W)})}.bind(D,Y),D[X].options=$}}});var tM=u((WjD,TJ)=>{TJ.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32")TJ.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")TJ.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Vq=u((GjD,D8)=>{var $$=global.process,j4=function(D){return D&&typeof D==="object"&&typeof D.removeListener==="function"&&typeof D.emit==="function"&&typeof D.reallyExit==="function"&&typeof D.listeners==="function"&&typeof D.kill==="function"&&typeof D.pid==="number"&&typeof D.on==="function"};if(!j4($$))D8.exports=function(){return function(){}};else{if(Bq=FD("assert"),N4=tM(),Oq=/^win/i.test($$.platform),e2=FD("events"),typeof e2!=="function")e2=e2.EventEmitter;if($$.__signal_exit_emitter__)L$=$$.__signal_exit_emitter__;else L$=$$.__signal_exit_emitter__=new e2,L$.count=0,L$.emitted={};if(!L$.infinite)L$.setMaxListeners(1/0),L$.infinite=!0;D8.exports=function(D,$){if(!j4(global.process))return function(){};if(Bq.equal(typeof D,"function","a callback must be provided for exit handler"),V4===!1)bJ();var J="exit";if($&&$.alwaysLast)J="afterexit";var F=function(){if(L$.removeListener(J,D),L$.listeners("exit").length===0&&L$.listeners("afterexit").length===0)W9()};return L$.on(J,D),F},W9=function(){if(!V4||!j4(global.process))return;V4=!1,N4.forEach(function($){try{$$.removeListener($,G9[$])}catch(J){}}),$$.emit=I9,$$.reallyExit=PJ,L$.count-=1},D8.exports.unload=W9,W1=function($,J,F){if(L$.emitted[$])return;L$.emitted[$]=!0,L$.emit($,J,F)},G9={},N4.forEach(function(D){G9[D]=function(){if(!j4(global.process))return;var J=$$.listeners(D);if(J.length===L$.count){if(W9(),W1("exit",null,D),W1("afterexit",null,D),Oq&&D==="SIGHUP")D="SIGINT";$$.kill($$.pid,D)}}}),D8.exports.signals=function(){return N4},V4=!1,bJ=function(){if(V4||!j4(global.process))return;V4=!0,L$.count+=1,N4=N4.filter(function($){try{return $$.on($,G9[$]),!0}catch(J){return!1}}),$$.emit=Nq,$$.reallyExit=jq},D8.exports.load=bJ,PJ=$$.reallyExit,jq=function($){if(!j4(global.process))return;$$.exitCode=$||0,W1("exit",$$.exitCode,null),W1("afterexit",$$.exitCode,null),PJ.call($$,$$.exitCode)},I9=$$.emit,Nq=function($,J){if($==="exit"&&j4(global.process)){if(J!==void 0)$$.exitCode=J;var F=I9.apply(this,arguments);return W1("exit",$$.exitCode,null),W1("afterexit",$$.exitCode,null),F}else return I9.apply(this,arguments)}}var Bq,N4,Oq,e2,L$,W9,W1,G9,V4,bJ,PJ,jq,I9,Nq});var aM=u((Ko,Lq)=>{var oM=Symbol();function Qo(D,$,J){let F=$[oM];if(F)return $.stat(D,(X,Y)=>{if(X)return J(X);J(null,Y.mtime,F)});let U=new Date(Math.ceil(Date.now()/1000)*1000+5);$.utimes(D,U,U,(X)=>{if(X)return J(X);$.stat(D,(Y,Q)=>{if(Y)return J(Y);let q=Q.mtime.getTime()%1000===0?"s":"ms";Object.defineProperty($,oM,{value:q}),J(null,Q.mtime,q)})})}function qo(D){let $=Date.now();if(D==="s")$=Math.ceil($/1000)*1000;return new Date($)}Ko.probe=Qo;Ko.getMtime=qo});var JE=u((jo,Z9)=>{var Io=FD("path"),Mq=K1(),zo=rM(),Zo=Vq(),sM=aM(),g6={};function z9(D,$){return $.lockfilePath||`${D}.lock`}function Eq(D,$,J){if(!$.realpath)return J(null,Io.resolve(D));$.fs.realpath(D,J)}function Rq(D,$,J){let F=z9(D,$);$.fs.mkdir(F,(U)=>{if(!U)return sM.probe(F,$.fs,(X,Y,Q)=>{if(X)return $.fs.rmdir(F,()=>{}),J(X);J(null,Y,Q)});if(U.code!=="EEXIST")return J(U);if($.stale<=0)return J(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:D}));$.fs.stat(F,(X,Y)=>{if(X){if(X.code==="ENOENT")return Rq(D,{...$,stale:0},J);return J(X)}if(!eM(Y,$))return J(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:D}));DE(D,$,(Q)=>{if(Q)return J(Q);Rq(D,{...$,stale:0},J)})})})}function eM(D,$){return D.mtime.getTime()<Date.now()-$.stale}function DE(D,$,J){$.fs.rmdir(z9(D,$),(F)=>{if(F&&F.code!=="ENOENT")return J(F);J()})}function SJ(D,$){let J=g6[D];if(J.updateTimeout)return;if(J.updateDelay=J.updateDelay||$.update,J.updateTimeout=setTimeout(()=>{J.updateTimeout=null,$.fs.stat(J.lockfilePath,(F,U)=>{let X=J.lastUpdate+$.stale<Date.now();if(F){if(F.code==="ENOENT"||X)return wq(D,J,Object.assign(F,{code:"ECOMPROMISED"}));return J.updateDelay=1000,SJ(D,$)}if(J.mtime.getTime()!==U.mtime.getTime())return wq(D,J,Object.assign(Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let Q=sM.getMtime(J.mtimePrecision);$.fs.utimes(J.lockfilePath,Q,Q,(q)=>{let K=J.lastUpdate+$.stale<Date.now();if(J.released)return;if(q){if(q.code==="ENOENT"||K)return wq(D,J,Object.assign(q,{code:"ECOMPROMISED"}));return J.updateDelay=1000,SJ(D,$)}J.mtime=Q,J.lastUpdate=Date.now(),J.updateDelay=null,SJ(D,$)})})},J.updateDelay),J.updateTimeout.unref)J.updateTimeout.unref()}function wq(D,$,J){if($.released=!0,$.updateTimeout)clearTimeout($.updateTimeout);if(g6[D]===$)delete g6[D];$.options.onCompromised(J)}function Ho(D,$,J){$={stale:1e4,update:null,realpath:!0,retries:0,fs:Mq,onCompromised:(F)=>{throw F},...$},$.retries=$.retries||0,$.retries=typeof $.retries==="number"?{retries:$.retries}:$.retries,$.stale=Math.max($.stale||0,2000),$.update=$.update==null?$.stale/2:$.update||0,$.update=Math.max(Math.min($.update,$.stale/2),1000),Eq(D,$,(F,U)=>{if(F)return J(F);let X=zo.operation($.retries);X.attempt(()=>{Rq(U,$,(Y,Q,q)=>{if(X.retry(Y))return;if(Y)return J(X.mainError());let K=g6[U]={lockfilePath:z9(U,$),mtime:Q,mtimePrecision:q,options:$,lastUpdate:Date.now()};SJ(U,$),J(null,(W)=>{if(K.released)return W&&W(Object.assign(Error("Lock is already released"),{code:"ERELEASED"}));$E(U,{...$,realpath:!1},W)})})})})}function $E(D,$,J){$={fs:Mq,realpath:!0,...$},Eq(D,$,(F,U)=>{if(F)return J(F);let X=g6[U];if(!X)return J(Object.assign(Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));X.updateTimeout&&clearTimeout(X.updateTimeout),X.released=!0,delete g6[U],DE(U,$,J)})}function Bo(D,$,J){$={stale:1e4,realpath:!0,fs:Mq,...$},$.stale=Math.max($.stale||0,2000),Eq(D,$,(F,U)=>{if(F)return J(F);$.fs.stat(z9(U,$),(X,Y)=>{if(X)return X.code==="ENOENT"?J(null,!1):J(X);return J(null,!eM(Y,$))})})}function Oo(){return g6}Zo(()=>{for(let D in g6){let $=g6[D].options;try{$.fs.rmdirSync(z9(D,$))}catch(J){}}});jo.lock=Ho;jo.unlock=$E;jo.check=Bo;jo.getLocks=Oo});var UE=u((IjD,FE)=>{var Ro=K1();function Mo(D){let $=["mkdir","realpath","stat","rmdir","utimes"],J={...D};return $.forEach((F)=>{J[F]=(...U)=>{let X=U.pop(),Y;try{Y=D[`${F}Sync`](...U)}catch(Q){return X(Q)}X(null,Y)}}),J}function Eo(D){return(...$)=>new Promise((J,F)=>{$.push((U,X)=>{if(U)F(U);else J(X)}),D(...$)})}function Ao(D){return(...$)=>{let J,F;if($.push((U,X)=>{J=U,F=X}),D(...$),J)throw J;return F}}function vo(D){if(D={...D},D.fs=Mo(D.fs||Ro),typeof D.retries==="number"&&D.retries>0||D.retries&&typeof D.retries.retries==="number"&&D.retries.retries>0)throw Object.assign(Error("Cannot use retries with the sync api"),{code:"ESYNC"});return D}FE.exports={toPromise:Eo,toSync:Ao,toSyncOptions:vo}});var YE=u((zjD,G1)=>{var $8=JE(),{toPromise:_J,toSync:kJ,toSyncOptions:Aq}=UE();async function XE(D,$){let J=await _J($8.lock)(D,$);return _J(J)}function To(D,$){let J=kJ($8.lock)(D,Aq($));return kJ(J)}function bo(D,$){return _J($8.unlock)(D,$)}function Po(D,$){return kJ($8.unlock)(D,Aq($))}function So(D,$){return _J($8.check)(D,$)}function _o(D,$){return kJ($8.check)(D,Aq($))}G1.exports=XE;G1.exports.lock=XE;G1.exports.unlock=bo;G1.exports.lockSync=To;G1.exports.unlockSync=Po;G1.exports.check=So;G1.exports.checkSync=_o});var zE=u((GE)=>{Object.defineProperty(GE,"__esModule",{value:!0});GE.canStoreURLs=GE.FileUrlStorage=void 0;var QE=FD("fs"),ko=uo(uM()),qE=Co(YE());function WE(D){if(typeof WeakMap!="function")return null;var $=new WeakMap,J=new WeakMap;return(WE=function(F){return F?J:$})(D)}function Co(D,$){if(!$&&D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var J=WE($);if(J&&J.has(D))return J.get(D);var F={__proto__:null},U=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var X in D)if(X!=="default"&&{}.hasOwnProperty.call(D,X)){var Y=U?Object.getOwnPropertyDescriptor(D,X):null;Y&&(Y.get||Y.set)?Object.defineProperty(F,X,Y):F[X]=D[X]}return F.default=D,J&&J.set(D,F),F}function uo(D){return D&&D.__esModule?D:{default:D}}function H9(D){return H9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},H9(D)}function go(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function KE(D,$){for(var J=0;J<$.length;J++){var F=$[J];if(F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F)F.writable=!0;Object.defineProperty(D,xo(F.key),F)}}function fo(D,$,J){if($)KE(D.prototype,$);if(J)KE(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function xo(D){var $=yo(D,"string");return H9($)=="symbol"?$:$+""}function yo(D,$){if(H9(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var F=J.call(D,$||"default");if(H9(F)!="object")return F;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var ZjD=GE.canStoreURLs=!0,HjD=GE.FileUrlStorage=function(){function D($){go(this,D),this.path=$}return fo(D,[{key:"findAllUploads",value:function(){var J=this;return new Promise(function(F,U){J._getItems("tus::",function(X,Y){if(X)U(X);else F(Y)})})}},{key:"findUploadsByFingerprint",value:function(J){var F=this;return new Promise(function(U,X){F._getItems("tus::".concat(J),function(Y,Q){if(Y)X(Y);else U(Q)})})}},{key:"removeUpload",value:function(J){var F=this;return new Promise(function(U,X){F._removeItem(J,function(Y){if(Y)X(Y);else U()})})}},{key:"addUpload",value:function(J,F){var U=this,X=Math.round(Math.random()*1000000000000),Y="tus::".concat(J,"::").concat(X);return new Promise(function(Q,q){U._setItem(Y,F,function(K){if(K)q(K);else Q(Y)})})}},{key:"_setItem",value:function(J,F,U){var X=this;qE.lock(this.path,this._lockfileOptions()).then(function(Y){U=X._releaseAndCb(Y,U),X._getData(function(Q,q){if(Q){U(Q);return}q[J]=F,X._writeData(q,function(K){return U(K)})})}).catch(U)}},{key:"_getItems",value:function(J,F){this._getData(function(U,X){if(U){F(U);return}var Y=Object.keys(X).filter(function(Q){return Q.startsWith(J)}).map(function(Q){var q=X[Q];return q.urlStorageKey=Q,q});F(null,Y)})}},{key:"_removeItem",value:function(J,F){var U=this;qE.lock(this.path,this._lockfileOptions()).then(function(X){F=U._releaseAndCb(X,F),U._getData(function(Y,Q){if(Y){F(Y);return}delete Q[J],U._writeData(Q,function(q){return F(q)})})}).catch(F)}},{key:"_lockfileOptions",value:function(){return{realpath:!1,retries:{retries:5,minTimeout:20}}}},{key:"_releaseAndCb",value:function(J,F){return function(U){if(U){J().then(function(){return F(U)}).catch(function(X){return F((0,ko.default)([U,X]))});return}J().then(F).catch(F)}}},{key:"_writeData",value:function(J,F){var U={encoding:"utf8",mode:432,flag:"w"};(0,QE.writeFile)(this.path,JSON.stringify(J),U,function(X){return F(X)})}},{key:"_getData",value:function(J){(0,QE.readFile)(this.path,"utf8",function(F,U){if(F){if(F.code==="ENOENT")J(null,{});else J(F);return}try{U=!U.trim().length?{}:JSON.parse(U)}catch(X){J(X);return}J(null,U)})}}])}()});var ME=u((I1)=>{Object.defineProperty(I1,"__esModule",{value:!0});Object.defineProperty(I1,"DefaultHttpStack",{enumerable:!0,get:function(){return OE.default}});Object.defineProperty(I1,"DetailedError",{enumerable:!0,get:function(){return mo.default}});Object.defineProperty(I1,"FileUrlStorage",{enumerable:!0,get:function(){return jE.FileUrlStorage}});Object.defineProperty(I1,"StreamSource",{enumerable:!0,get:function(){return po.default}});I1.Upload=void 0;Object.defineProperty(I1,"canStoreURLs",{enumerable:!0,get:function(){return jE.canStoreURLs}});I1.defaultOptions=void 0;Object.defineProperty(I1,"enableDebugLog",{enumerable:!0,get:function(){return lo.enableDebugLog}});I1.isSupported=void 0;var mo=L4(EQ()),lo=AQ(),io=L4(Yw()),vq=L4(yw()),co=L4(XR()),no=L4(WR()),OE=L4(AR()),po=L4(fQ()),jE=zE();function L4(D){return D&&D.__esModule?D:{default:D}}function F8(D){return F8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},F8(D)}function ro(D,$){if(!(D instanceof $))throw TypeError("Cannot call a class as a function")}function ZE(D,$){for(var J=0;J<$.length;J++){var F=$[J];if(F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F)F.writable=!0;Object.defineProperty(D,VE(F.key),F)}}function to(D,$,J){if($)ZE(D.prototype,$);if(J)ZE(D,J);return Object.defineProperty(D,"prototype",{writable:!1}),D}function oo(D,$,J){return $=CJ($),ao(D,NE()?Reflect.construct($,J||[],CJ(D).constructor):$.apply(D,J))}function ao(D,$){if($&&(F8($)==="object"||typeof $==="function"))return $;else if($!==void 0)throw TypeError("Derived constructors may only return object or undefined");return so(D)}function so(D){if(D===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function NE(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch($){}return(NE=function(){return!!D})()}function CJ(D){return CJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},CJ(D)}function eo(D,$){if(typeof $!=="function"&&$!==null)throw TypeError("Super expression must either be null or a function");if(D.prototype=Object.create($&&$.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),$)Tq(D,$)}function Tq(D,$){return Tq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(F,U){return F.__proto__=U,F},Tq(D,$)}function HE(D,$){var J=Object.keys(D);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(D);$&&(F=F.filter(function(U){return Object.getOwnPropertyDescriptor(D,U).enumerable})),J.push.apply(J,F)}return J}function J8(D){for(var $=1;$<arguments.length;$++){var J=arguments[$]!=null?arguments[$]:{};$%2?HE(Object(J),!0).forEach(function(F){Da(D,F,J[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(J)):HE(Object(J)).forEach(function(F){Object.defineProperty(D,F,Object.getOwnPropertyDescriptor(J,F))})}return D}function Da(D,$,J){if($=VE($),$ in D)Object.defineProperty(D,$,{value:J,enumerable:!0,configurable:!0,writable:!0});else D[$]=J;return D}function VE(D){var $=$a(D,"string");return F8($)=="symbol"?$:$+""}function $a(D,$){if(F8(D)!="object"||!D)return D;var J=D[Symbol.toPrimitive];if(J!==void 0){var F=J.call(D,$||"default");if(F8(F)!="object")return F;throw TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(D)}var BE=I1.defaultOptions=J8(J8({},vq.default.defaultOptions),{},{httpStack:new OE.default,fileReader:new co.default,urlStorage:new io.default,fingerprint:no.default}),OjD=I1.Upload=function(D){function $(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ro(this,$),F=J8(J8({},BE),F),oo(this,$,[J,F])}return eo($,D),to($,null,[{key:"terminate",value:function(F){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return U=J8(J8({},BE),U),vq.default.terminate(F,U)}}])}(vq.default),jjD=I1.isSupported=!0});import{execFileSync as Ya}from"child_process";import Qa from"path";function Ua(D,$){if($===void 0)return!0;if(typeof $==="string")return D===$;if($ instanceof RegExp)return $.test(D);return $(D)}function Xa(D,$,J){return{agent:{id:D.id,name:D.name},strategy:"environment",signal:$.name,value:J}}function Wa(D,$){let J=[],F=AE($.command);for(let U of D)for(let X of U.process??[]){if(!X.pattern.test(F))continue;J.push(Ga(U,X,{...$,command:F}))}return J}function Ga(D,$,J){return{agent:{id:D.id,name:D.name},strategy:"process-tree",signal:$.pattern.toString(),value:`${J.pid}:${J.command}`}}function EE(D,$){try{return Ya("ps",["-o",`${$}=`,"-p",String(D)],{encoding:"utf8",stdio:["ignore","pipe","ignore"]}).trim()}catch{return""}}function AE(D){return Qa.basename(D.trim()).replace(/^-+/,"")}function vE(D={}){let $=D.agents??Ja,J=D.strategies??Ia(D.experimentalProcessTree),F={env:D.env??process.env,pid:D.pid??process.pid,agents:$,maxProcessDepth:D.maxProcessDepth??20},U=J.flatMap((Y)=>Y.detect(F)),X=za($,U,F.env);if(X===void 0)return{detected:!1};return{detected:!0,agent:X}}function Ia(D=!1){let $=[new Fa];if(D)$.push(new Ka);return $}function za(D,$,J){let F=new Set($.map((U)=>U.agent.id));for(let U of D){if(!F.has(U.id))continue;return{id:U.id,name:U.name,...Za(U,J)}}return}function Za(D,$){for(let J of D.sessionEnv??[]){let F=$[J];if(F!==void 0&&F.length>0)return{sessionId:F}}return{}}var Ja,Fa=class{name="environment";detect(D){let $=[];for(let J of D.agents)for(let F of J.env??[]){let U=D.env[F.name];if(U===void 0||!Ua(U,F.value))continue;$.push(Xa(J,F,U))}return $}},qa=class{read(D){let $=EE(D,"comm"),J=Number.parseInt(EE(D,"ppid"),10);if(!$||!Number.isInteger(J))return;return{pid:D,ppid:J,command:AE($)}}},Ka=class{constructor(D=new qa){this.reader=D}reader;name="process-tree";detect(D){let $=[],J=D.pid;for(let F=0;F<D.maxProcessDepth;F+=1){let U=this.reader.read(J);if(U===void 0)break;if($.push(...Wa(D.agents,U)),U.ppid===void 0||U.ppid<=1||U.ppid===J)break;J=U.ppid}return $}};var TE=S(()=>{Ja=[{id:"codex",name:"Codex",env:[{name:"CODEX_CI",value:"1"},{name:"CODEX_SHELL",value:"1"},{name:"CODEX_THREAD_ID"}],process:[{pattern:/^codex$/i}],sessionEnv:["CODEX_THREAD_ID"]},{id:"cursor",name:"Cursor",env:[{name:"CURSOR_AGENT",value:"1"},{name:"CURSOR_CONVERSATION_ID"}],process:[{pattern:/^cursor$/i}],sessionEnv:["CURSOR_CONVERSATION_ID"]},{id:"claude-code",name:"Claude Code",env:[{name:"CLAUDECODE",value:"1"},{name:"CLAUDE_CODE_SESSION_ID"}],process:[{pattern:/^claude$/i}],sessionEnv:["CLAUDE_CODE_SESSION_ID"]},{id:"opencode",name:"OpenCode",env:[{name:"OPENCODE",value:"1"},{name:"OPENCODE_PID"}],process:[{pattern:/^opencode$/i}]},{id:"devin",name:"Devin",process:[{pattern:/devin/i}]},{id:"gemini",name:"Gemini CLI",env:[{name:"GEMINI_CLI",value:"1"}],process:[{pattern:/^gemini$/i}]},{id:"antigravity",name:"Antigravity",env:[{name:"ANTIGRAVITY_AGENT",value:"1"},{name:"ANTIGRAVITY_TRAJECTORY_ID"}],process:[{pattern:/^antigravity$/i}],sessionEnv:["ANTIGRAVITY_TRAJECTORY_ID"]},{id:"bolt",name:"Bolt",env:[{name:"BOLT_ENV"},{name:"BOLT_ORIGIN"},{name:"BOLT_SERVER_URL"}]},{id:"pi",name:"Pi",env:[{name:"PI_CODING_AGENT",value:"true"}]},{id:"replit",name:"Replit",env:[{name:"REPLIT_SESSION"}],sessionEnv:["REPLIT_SESSION"]},{id:"rork",name:"Rork",env:[{name:"RORK_API_URL"}]},{id:"kiro",name:"Kiro",env:[{name:"KIRO_SESSION_ID"}],process:[{pattern:/kiro/i}],sessionEnv:["KIRO_SESSION_ID"]},{id:"muse",name:"Muse Code",env:[{name:"MUSE_RELEASE_INFO"}]},{id:"cline",name:"Cline",env:[{name:"CLINE_WRAPPER_PATH"}],process:[{pattern:/^cline$/i}]},{id:"kilocode",name:"Kilo Code",env:[{name:"KILO",value:"1"},{name:"KILOCODE_VERSION"},{name:"KILO_RUN_ID"}],process:[{pattern:/^(kilo|kilocode)$/i}],sessionEnv:["KILO_RUN_ID"]},{id:"copilot",name:"GitHub Copilot CLI",env:[{name:"COPILOT_CLI",value:"1"},{name:"COPILOT_AGENT_SESSION_ID"},{name:"COPILOT_RUN_APP",value:"1"}],process:[{pattern:/^(github-copilot-cli|copilot)$/i}],sessionEnv:["COPILOT_AGENT_SESSION_ID"]}]});import{platform as Ha,release as Ba}from"node:os";import{arch as Oa,env as ja,version as Na}from"node:process";function PjD(D){bq=D}function SjD(){return bq}function bE(D=ja){let $=vE({env:D}),J={cli_version:r0.version,node_version:Na,os_platform:Ha(),os_arch:Oa,os_release:Ba(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"undefined",is_ci:B9.isCI,is_tty:Boolean(process.stdout.isTTY),invocation_source:bq,agent_invoker:$.detected};if($.detected&&$.agent)J.agent_identity=$.agent;if(B9.name)J.ci_provider=B9.name;return J}var B9,bq="cli";var PE=S(()=>{TE();L2();B9=N0(N7(),1)});import{AsyncLocalStorage as Va}from"node:async_hooks";function wa(){return La.getStore()}function CjD(){_E=!0}function kE(){return _E}function ujD(D){CE=D}function SE(D){try{CE?.(D)}catch{}}function fjD(D,$){let J;try{J=new URL(D).pathname}catch{J=D.split("?")[0]}let F=[];for(let U of J.split("/").filter(Boolean)){if(F.length>=4||!/^(?:[a-z_-]+|2fa)$/.test(U))break;F.push(U)}return`${$} ${F.join("/")||J}`}function Ra(D){let $=D?.headers;if(!$)return;let J=$.get;if(typeof J==="function")return J.call($,"capgkey")??void 0;if(Array.isArray($))return $.find(([F])=>F.toLowerCase()==="capgkey")?.[1];return $.capgkey}function uE(D){return async(J,F)=>{let U=(F?.method??"GET").toUpperCase(),X=typeof J==="string"?J:J instanceof URL?J.href:J.url,Y=wa(),Q=Ra(F),q=Date.now();try{let K=await globalThis.fetch(J,F);return SE({url:X,route:D,method:U,status:K.status,ok:K.ok,durationMs:Date.now()-q,source:Y,apikey:Q}),K}catch(K){throw SE({url:X,route:D,method:U,status:0,ok:!1,durationMs:Date.now()-q,source:Y,apikey:Q,error:K}),K}}}var La,_E=!1,CE,gjD=5000;var gE=S(()=>{La=new Va});function Z6(D){let $=D?.context;return typeof $?.status==="number"?$.status:void 0}async function h$(D){let $=D?.context;if(!$||typeof $.clone!=="function")return null;try{let J=await $.clone().text();try{return JSON.parse(J)}catch{return J?{message:J}:null}}catch{return null}}var U8;var fE=S(()=>{U8=class U8 extends Error{context;status;constructor(D){super(`Capgo API request failed with status ${D.status}`);this.name="CapgoApiHttpError",this.context=D,this.status=D.status}}});function xE(D){let $=D;if(typeof $.status==="number")return $.status;let J=$.context&&typeof $.context==="object"?$.context.status:void 0;return typeof J==="number"?J:void 0}function Ma(D){if(!D||typeof D!=="object")return;let $=xE(D);if($!==void 0)return $;let J=D.cause;if(J&&typeof J==="object")return xE(J);return}function Ea(D){let $=[],J=new Set,F=D;if(typeof D==="string")return D;while(F){if(typeof F==="string"){$.push(F);break}if(typeof F!=="object")break;if(J.has(F))break;if(J.add(F),F instanceof Error){$.push(F.message),F=F.cause;continue}let U=F;if(typeof U.message==="string")$.push(U.message);F=U.cause}return $.join(" ")}function Aa(D){return Ea(D)}function yE(D){if(D&&typeof D==="object"&&"code"in D){let F=D.code;if(typeof F==="string"&&F.startsWith("commander."))return"commander"}let $=Ma(D);if($!==void 0){if($===401)return"unauthorized";if($===403)return"forbidden";if($===404)return"not_found";if($===413)return"payload_too_large";if($===429)return"rate_limited";if($>=500)return"server_error"}let J=Aa(D).toLowerCase();if(/econnrefused|econnreset|enotfound|eai_again|fetch failed|failed to fetch|connect timeout|und_err/.test(J))return"network_error";if(/timed out|timeout|etimedout|aborted/.test(J))return"timeout";if(/invalid|must be|required|not allowed|malformed|validation/.test(J))return"validation_error";return"unknown"}function mjD(D){if(D===401)return"unauthorized";if(D===403)return"forbidden";if(D===404)return"not_found";if(D===408||D===504)return"timeout";if(D===413)return"payload_too_large";if(D===429)return"rate_limited";if(D===400||D===422)return"validation_error";if(D>=500)return"server_error";return"unknown"}function Pq(D){let $=yE(D);return $==="network_error"||$==="timeout"}var hE=()=>{};function _a(D){return new Promise(($)=>setTimeout($,D))}function Sq(D){return Math.min(Math.max(0,D),Sa)}function mE(D){let $=D.headers.get("Retry-After")?.trim();if(!$)return null;if(/^\d+$/.test($)){let F=Number($);if(!Number.isSafeInteger(F)||F<0)return null;return Sq(F*1000)}let J=Date.parse($);if(Number.isFinite(J)){let F=J-Date.now();if(F>=0)return Sq(F)}return null}function lE(D){let $=D?.moreInfo?.retryAfterSeconds;if(typeof $!=="number"||!Number.isFinite($)||$<0)return null;return Sq($*1000)}async function ka(D,$={}){if($.retryTransientNetwork!==!1&&Pq(D))return!0;if(Z6(D)!==503)return!1;let J=await h$(D);if(J?.error&&Ta.has(J.error))return!0;if(lE(J)!==null)return!0;let F=D?.context;if(F instanceof Response&&mE(F)!==null)return!0;return!1}async function Ca(D,$){if(Pq(D))return ba[$]??1000;let J=await h$(D),F=lE(J);if(F!==null)return F;let U=D?.context;if(U instanceof Response){let X=mE(U);if(X!==null)return X}return Pa}async function uJ(D,$=_a,J={}){let F=await D();if(!F.error)return F;for(let U=1;U<va;U++){if(!await ka(F.error,J))return F;if(await $(await Ca(F.error,U-1)),F=await D(),!F.error)return F}return F}var va=3,Ta,ba,Pa=2000,Sa=1e4;var _q=S(()=>{hE();Ta=new Set(["database_unavailable","upstream_unavailable","upload_authorization_unavailable","event_queue_unavailable"]),ba=[500,1000]});function ua(D,$){if(!U1(D)||!U1($))return!1;return _6(I0(D),I0($))}function ga(D,$,J){let F=J?.trim()?`
${J.trim()}`:"";return`This Capgo API requires @capgo/cli@${$} or newer. You are using @capgo/cli@${D}.${F}
Please update: npx @capgo/cli@latest`}function iE(D,$,J=!1){let F=$||r0.version,U=D.minCliVersion?.trim();if(!U||!ua(F,U))return;let X=ga(F,U,D.minCliVersionReason);if(!J)zD.error(X);throw new MD(X,{minCliVersion:U,currentVersion:F})}var dE=S(()=>{P6();y7();L2();v6()});function cE(D,$){let F=["normal","bold","dim","italic","underline","strikethrough"].indexOf(D),U="\x1B[";return"\x1B["+F+"m"+$+"\x1B[0m"}var z1;var nE=S(()=>{z1=class z1{title=null;headers=[];rows=[];static narrowTheme={top:["╔","═","╤","╗"],row:["║"," ","│","║"],div:["╟","─","┼","╢"],bot:["╚","═","╧","╝"]};static wideTheme={top:["╔═","═","═╤═","═╗"],row:["║ "," "," │ "," ║"],div:["╟─","─","─┼─","─╢"],bot:["╚═","═","═╧═","═╝"]};static roundTheme={top:["╭─","─","─┬─","─╮"],row:["│ "," "," │ "," │"],div:["├─","─","─┼─","─┤"],bot:["╰─","─","─┴─","─╯"]};theme=z1.wideTheme;columnWidth(){let D=[this.headers,...this.rows].filter((J)=>J.length>0),$=D[0].map((J)=>this.cast(J).length);for(let J of D.slice(1))for(let F=0;F<$.length;F++){let U=this.cast(J[F]).length;if(U>$[F])$[F]=U}return $}cast(D){if(typeof D==="object")return"obj";if(D!==void 0&&typeof D.toString==="function")return D.toString();else return""}renderTitle(){return"[ "+this.title+" ]"}renderLine(D){let $=this.columnWidth();return D[0]+$.map((J)=>D[1].repeat(J)).join(D[2])+D[3]}renderCell(D,$,J=!1){let F=this.cast(D),U=J?cE("bold",F):F,X=$-F.length,Y=this.theme.row[1];switch(typeof D){case"number":return Y.repeat(X)+U;case"string":return U+Y.repeat(X);case"boolean":case"object":return Y.repeat(Math.ceil(X/2))+cE("italic",F)+Y.repeat(Math.floor(X/2));default:return Y.repeat(X)}}renderRow(D,$=!1){let J=this.theme.row,F=this.columnWidth();return J[0]+D.map((U,X)=>this.renderCell(U,F[X],$)).join(J[2])+J[3]}toString(){let D=this.theme,$=this.headers.length>0,J=this.rows.length>0;return[this.title?this.renderTitle():"",$||J?this.renderLine(D.top):"",$?this.renderRow(this.headers,!0):"",$&&J?this.renderLine(D.div):"",...this.rows.map((F)=>this.renderRow(F)),$||J?this.renderLine(D.bot):""].filter((F)=>F.length>0).join(`
`)}}});var kq=S(()=>{nE()});async function pE(D){try{let J=`https://registry.npmjs.org/${encodeURIComponent(D.toLowerCase())}`,F=await fetch(J,{headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"}});if(!F.ok)return null;return(await F.json())["dist-tags"]?.latest||null}catch{return null}}function fa(D,$){return U1(D)&&U1($)&&_6(I0(D),I0($))}async function xa(){let D=await pE("@capgo/cli")??"",$=D?.split(".")[0]??"";return{currentVersion:r0.version,latestVersion:D,isOutdated:fa(r0.version,D),majorVersion:$}}function ya(D,$,J){return`Update available for @capgo/cli: ${D} → ${$}
Run: ${J} -D @capgo/cli@latest
Pinned in CI? Commit the updated lockfile. Using npx? Run npx @capgo/cli@latest.`}async function rE(D={warn:($)=>zD.warning($)}){let{isOutdated:$,currentVersion:J,latestVersion:F}=await xa();if($)D.warn(ya(J,F,O9().installCommand))}var tE=S(()=>{P6();y7();L2();w4()});function aE(D,$,J=new Date,F=300000){return{appId:D,devicesId:$?[$]:void 0,order:[{key:"created_at",sortable:"desc"}],rangeStart:new Date(J.getTime()-F).toISOString()}}function sE(D,$=!1){if($)return!1;let J=D.replace(/\r|\n/g,"");return J==="c"||J==="C"}var oE=5000,Cq="Press C to continue if you already verified the update in the Capgo dashboard";var ra={};M$(ra,{waitLog:()=>$A,sendCliEvent:()=>X8,getStats:()=>DA,debugApp:()=>pa,cancelCommand:()=>eE});import ha from"node:process";function ma(D,$){return new Promise((J)=>{if($?.aborted){J();return}let F=()=>{clearTimeout(U),J()},U=setTimeout(()=>{$?.removeEventListener("abort",F),J()},D);$?.addEventListener("abort",F,{once:!0})})}function la(D){return new Date(D||"").toLocaleTimeString()}function ia(D,$){let J=D,F=J?.cause?.name,U=J?.cause?.code||J?.code,X=(J?.message||"").toLowerCase();if(U==="UND_ERR_CONNECT_TIMEOUT"||F==="UND_ERR_CONNECT_TIMEOUT"||/connect timeout/.test(X)||/timed out/.test(X))return`Cannot reach ${$} (connection timeout after 10s). Check VPN/firewall/network rules or update API host settings in capacitor.config.json.`;if(U==="ENOTFOUND"||U==="ECONNREFUSED"||X.includes("fetch failed"))return`Cannot reach ${$} (network error). Verify internet connectivity and that ${$} is reachable from this machine.`;if(X.startsWith("http error! status: "))return J?.message||"Capgo API returned an HTTP error.";return Q$(D)}async function X8(D,$,J,F,U,X){await UA(J,{channel:D,event:F,org_id:$,tracking_version:2,...U||X?{tags:{...U?{"app-id":U}:{},...X}}:{}})}async function eE(D,$,J,F){if(!e1($))return;throw await X8(D,J,F,"canceled"),zD.warn("Command cancelled"),new MD("Command cancelled")}async function DA(D,$,J,F){let X=`${(await Y8()).hostApi}/private/stats`;try{let Y=J?{...$,rangeStart:J}:{...$},Q=await fetch(X,{method:"POST",headers:Q6({"Content-Type":"application/json",capgkey:D}),body:JSON.stringify(Y),signal:F});if(!Q.ok)throw Error(`HTTP error! status: ${Q.status}`);let q=await Q.json();if(q?.length>0)return q}catch(Y){if(F?.aborted||Y instanceof Error&&Y.name==="AbortError")return[];zD.error(`Cannot get stats: ${ia(Y,X)}`)}return[]}function da(D){let $={get:{summary:()=>"Update request by device. Waiting for download…",level:"info",trackingEvent:"done"},delete:{summary:()=>"Bundle deleted on device",level:"info"},set:{summary:()=>"Bundle set on device ❤️",level:"info",trackingEvent:"set",stop:!0},NoChannelOrOverride:{summary:()=>"No default channel/override; create it in channel settings",level:"error"},needPlanUpgrade:{summary:({baseUrl:J})=>`Out of quota. Upgrade plan: ${J}/settings/organization/plans`,level:"error"},missingBundle:{summary:()=>"Requested bundle not found on server",level:"error"},noNew:{summary:()=>"Device already has latest available version",level:"info"},disablePlatformIos:{summary:()=>"iOS platform disabled in channel",level:"error"},disablePlatformAndroid:{summary:()=>"Android platform disabled in channel",level:"error"},disableAutoUpdate:{summary:()=>"Automatic updates disabled in channel",level:"error"},disableAutoUpdateToMajor:{summary:()=>"Auto-update to major versions disabled",level:"error"},disableAutoUpdateToMinor:{summary:()=>"Auto-update to minor versions disabled",level:"error"},disableAutoUpdateToPatch:{summary:()=>"Auto-update to patch versions disabled",level:"error"},disableAutoUpdateUnderNative:{summary:()=>"Channel update version is lower than device native",level:"error"},disableDevBuild:{summary:()=>"Dev build updates disabled in channel",level:"error"},disableProdBuild:{summary:()=>"Prod build updates disabled in channel",level:"error"},disableEmulator:{summary:()=>"Emulator updates disabled in channel",level:"error"},disableDevice:{summary:()=>"Physical device updates disabled in channel",level:"error"},cannotGetBundle:{summary:()=>"Cannot retrieve bundle from channel",level:"error"},cannotUpdateViaPrivateChannel:{summary:()=>"No access to private channel",level:"error"},channelMisconfigured:{summary:()=>"Channel configuration invalid or incomplete",level:"error"},disableAutoUpdateMetadata:{summary:()=>"Auto-update on metadata disabled",level:"error"},set_fail:{summary:()=>"Bundle set failed. Possibly corrupted",level:"error"},reset:{summary:()=>"Device reset to builtin bundle",level:"warn"},update_fail:{summary:()=>"Installed bundle failed to call notifyAppReady",level:"error"},checksum_fail:{summary:()=>"Downloaded bundle checksum validation failed",level:"error"},windows_path_fail:{summary:()=>"Bundle contains illegal Windows-style paths",level:"error"},canonical_path_fail:{summary:()=>"Bundle contains non-canonical paths",level:"error"},directory_path_fail:{summary:()=>"Bundle ZIP contains invalid directory paths",level:"error"},unzip_fail:{summary:()=>"Failed to unzip bundle on device",level:"error"},low_mem_fail:{summary:()=>"Download failed due to low device memory",level:"error"},app_moved_to_background:{summary:()=>"App moved to background",level:"info"},app_moved_to_foreground:{summary:()=>"App moved to foreground",level:"info"},decrypt_fail:{summary:()=>"Failed to decrypt downloaded bundle",level:"error"},getChannel:{summary:()=>"Queried current channel on device",level:"info"},setChannel:{summary:()=>"Channel set on device",level:"info"},InvalidIp:{summary:()=>"Device appears in Google datacenter; blocking recent updates (<4h)",level:"warn"},uninstall:{summary:()=>"App uninstalled or Capgo data cleared on device",level:"warn"}};if(D.action.startsWith("download_")){let J=D.action.split("_")[1];if(J==="complete")return{summary:()=>"Download complete; relaunch app to apply",level:"info",trackingEvent:"downloaded"};if(J==="fail")return{summary:()=>"Download failed on device",level:"error"};return{summary:()=>`Downloading ${J}%`,level:"info"}}return $[D.action]||null}async function ca(D,$,J,F,U,X){let Y=da(D);if(!Y)return{};if(Y.trackingEvent)await X8($,J,F,Y.trackingEvent);let Q=la(D.created_at),q=D.action,K=D.version_id?`(version #${D.version_id})`:"",W=D.version?` (version ${D.version})`:K,G=`${Y.summary({data:D,baseAppUrl:U,baseUrl:X})}${W}`;return{row:[Q,D.device_id,q,G],stop:Y.stop}}function na(D){return new Promise(($)=>{let J=ha.stdin,F=Boolean(J.isTTY&&typeof J.setRawMode==="function"),U=F?J.isRaw:void 0,X=J.readableFlowing===!0,Y=()=>{q(),$()},Q=(K)=>{let W=String(K);if(W==="\x03"||sE(W))Y()},q=()=>{if(J.off("data",Q),D.removeEventListener("abort",Y),F&&U!==void 0)J.setRawMode(U);if(!X)J.pause()};if(D.addEventListener("abort",Y,{once:!0}),F)J.setRawMode(!0),J.resume();if(J.isTTY)J.on("data",Q)})}async function $A(D,$,J,F,U={}){let X=await Y8(),Y=`${X.hostWeb}/app/${J}`;await X8(D,F,$,"Use waitlog",J);let Q=aE(J,U.deviceId,U.now,U.lookbackMs),q=null,K=new Set,W=U.spinner??F1(),G=U.logInfo??((L)=>{zD.info(L)}),I=U.sleep??ma,z=U.pollMs??oE,Z=`${X.host}/docs/plugins/updater/debugging/#sent-from-the-backend`,H=`Waiting for logs (expect ~30s delay). ${Cq}. More info: ${Z}`;W.start(H);let B=new AbortController,j=U.waitForSkip?U.waitForSkip(B.signal):na(B.signal),O=(async()=>{let L=!0;while(!B.signal.aborted){if(!L)await I(z,B.signal);if(L=!1,B.signal.aborted)return"aborted";let A=await DA($,Q,q,B.signal);if(B.signal.aborted)return"aborted";if(A.length===0)continue;let E=A.reduce((y,v)=>{let i=new Date(v.created_at).getTime();return Math.max(y,i)},q?new Date(q).getTime():0);if(E>0)q=new Date(E).toISOString();let _=A.filter((y)=>{let v=`${y.app_id}|${y.device_id}|${y.action}|${y.version_id}|${y.created_at}`;if(K.has(v))return!1;return K.add(v),!0}).sort((y,v)=>new Date(y.created_at).getTime()-new Date(v.created_at).getTime()),k=new z1;k.headers=["Time","Device","Key","Message"],k.theme=z1.roundTheme,k.rows=[];let C=!1;for(let y of _){let{row:v,stop:i}=await ca(y,D,F,$,Y,X.hostWeb);if(v)k.rows.push(v);if(i)C=!0}if(B.signal.aborted)return"aborted";if(k.rows.length){if(W.stop(""),G(k.toString()),!C)W.start(H)}if(C)return"set"}return"aborted"})();try{let L=await Promise.race([O,j.then(()=>"skip")]);if(B.abort(),await O,L==="skip")return W.stop("Skipped waiting for logs"),G("You can confirm the update in the Capgo dashboard anytime."),{skipped:!0};return W.stop("Stop watching logs"),{skipped:!1}}catch(L){throw B.abort(),await O.catch(()=>{return}),W.stop("Stop watching logs"),L}}async function pa(D,$){E2("Debug Live update in Capgo"),await rE(),$.apikey=$.apikey||FA();let J=await uq();D=YA(D,J?.config);let F=$.device;if(!$.apikey)throw zD.error("Missing API key, you need to provide an API key to delete your app"),Error("Missing API key");if(!D)throw zD.error("Missing argument, you need to provide a appId, or be in a capacitor project"),new MD("Missing appId");let U=await XA($.apikey,D,{apiHost:$.apiHost}),X=await J1({message:"Automatic check if update working in device ?"});if(await eE("debug",X,U,$.apikey),X)zD.info(`Wait logs sent to Capgo from ${D} device, Please background your app and open it again \uD83D\uDCAA`),zD.info(Cq),await $A("debug",$.apikey,D,U,{deviceId:F}),D4("Done ✅");else D4("Canceled ❌")}var JA=S(()=>{P6();kq();L7();tE();v6();w4()});import{AsyncLocalStorage as ta}from"node:async_hooks";function VND(){return gq.getStore()??QA}function qA(){let D=gq.getStore();return D===QA?void 0:D}function LND(D,$){if(!D)return $();return gq.run(D,$)}var QA,gq;var KA=S(()=>{P6();QA={info:(D)=>zD.info(D),warn:(D)=>zD.warn(D),error:(D)=>zD.error(D),success:(D)=>zD.success(D),intro:E2,outro:D4,spinner:F1},gq=new ta});var w0=u((RND,xJ)=>{var WA,GA,IA,zA,ZA,HA,BA,OA,jA,NA,VA,LA,wA,gJ,fq,RA,MA,EA,Q8,AA,vA,TA,bA,PA,SA,_A,kA,CA,fJ,uA,gA,fA;(function(D){var $=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(F){D(J($,J(F)))});else if(typeof xJ==="object"&&typeof RND==="object")D(J($,J(RND)));else D(J($));function J(F,U){if(F!==$)if(typeof Object.create==="function")Object.defineProperty(F,"__esModule",{value:!0});else F.__esModule=!0;return function(X,Y){return F[X]=U?U(X,Y):Y}}})(function(D){var $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,Y){X.__proto__=Y}||function(X,Y){for(var Q in Y)if(Object.prototype.hasOwnProperty.call(Y,Q))X[Q]=Y[Q]};WA=function(X,Y){if(typeof Y!=="function"&&Y!==null)throw TypeError("Class extends value "+String(Y)+" is not a constructor or null");$(X,Y);function Q(){this.constructor=X}X.prototype=Y===null?Object.create(Y):(Q.prototype=Y.prototype,new Q)},GA=Object.assign||function(X){for(var Y,Q=1,q=arguments.length;Q<q;Q++){Y=arguments[Q];for(var K in Y)if(Object.prototype.hasOwnProperty.call(Y,K))X[K]=Y[K]}return X},IA=function(X,Y){var Q={};for(var q in X)if(Object.prototype.hasOwnProperty.call(X,q)&&Y.indexOf(q)<0)Q[q]=X[q];if(X!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var K=0,q=Object.getOwnPropertySymbols(X);K<q.length;K++)if(Y.indexOf(q[K])<0&&Object.prototype.propertyIsEnumerable.call(X,q[K]))Q[q[K]]=X[q[K]]}return Q},zA=function(X,Y,Q,q){var K=arguments.length,W=K<3?Y:q===null?q=Object.getOwnPropertyDescriptor(Y,Q):q,G;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")W=Reflect.decorate(X,Y,Q,q);else for(var I=X.length-1;I>=0;I--)if(G=X[I])W=(K<3?G(W):K>3?G(Y,Q,W):G(Y,Q))||W;return K>3&&W&&Object.defineProperty(Y,Q,W),W},ZA=function(X,Y){return function(Q,q){Y(Q,q,X)}},HA=function(X,Y,Q,q,K,W){function G(E){if(E!==void 0&&typeof E!=="function")throw TypeError("Function expected");return E}var I=q.kind,z=I==="getter"?"get":I==="setter"?"set":"value",Z=!Y&&X?q.static?X:X.prototype:null,H=Y||(Z?Object.getOwnPropertyDescriptor(Z,q.name):{}),B,j=!1;for(var N=Q.length-1;N>=0;N--){var O={};for(var L in q)O[L]=L==="access"?{}:q[L];for(var L in q.access)O.access[L]=q.access[L];O.addInitializer=function(E){if(j)throw TypeError("Cannot add initializers after decoration has completed");W.push(G(E||null))};var A=(0,Q[N])(I==="accessor"?{get:H.get,set:H.set}:H[z],O);if(I==="accessor"){if(A===void 0)continue;if(A===null||typeof A!=="object")throw TypeError("Object expected");if(B=G(A.get))H.get=B;if(B=G(A.set))H.set=B;if(B=G(A.init))K.unshift(B)}else if(B=G(A))if(I==="field")K.unshift(B);else H[z]=B}if(Z)Object.defineProperty(Z,q.name,H);j=!0},BA=function(X,Y,Q){var q=arguments.length>2;for(var K=0;K<Y.length;K++)Q=q?Y[K].call(X,Q):Y[K].call(X);return q?Q:void 0},OA=function(X){return typeof X==="symbol"?X:"".concat(X)},jA=function(X,Y,Q){if(typeof Y==="symbol")Y=Y.description?"[".concat(Y.description,"]"):"";return Object.defineProperty(X,"name",{configurable:!0,value:Q?"".concat(Q," ",Y):Y})},NA=function(X,Y){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(X,Y)},VA=function(X,Y,Q,q){function K(W){return W instanceof Q?W:new Q(function(G){G(W)})}return new(Q||(Q=Promise))(function(W,G){function I(H){try{Z(q.next(H))}catch(B){G(B)}}function z(H){try{Z(q.throw(H))}catch(B){G(B)}}function Z(H){H.done?W(H.value):K(H.value).then(I,z)}Z((q=q.apply(X,Y||[])).next())})},LA=function(X,Y){var Q={label:0,sent:function(){if(W[0]&1)throw W[1];return W[1]},trys:[],ops:[]},q,K,W,G=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return G.next=I(0),G.throw=I(1),G.return=I(2),typeof Symbol==="function"&&(G[Symbol.iterator]=function(){return this}),G;function I(Z){return function(H){return z([Z,H])}}function z(Z){if(q)throw TypeError("Generator is already executing.");while(G&&(G=0,Z[0]&&(Q=0)),Q)try{if(q=1,K&&(W=Z[0]&2?K.return:Z[0]?K.throw||((W=K.return)&&W.call(K),0):K.next)&&!(W=W.call(K,Z[1])).done)return W;if(K=0,W)Z=[Z[0]&2,W.value];switch(Z[0]){case 0:case 1:W=Z;break;case 4:return Q.label++,{value:Z[1],done:!1};case 5:Q.label++,K=Z[1],Z=[0];continue;case 7:Z=Q.ops.pop(),Q.trys.pop();continue;default:if((W=Q.trys,!(W=W.length>0&&W[W.length-1]))&&(Z[0]===6||Z[0]===2)){Q=0;continue}if(Z[0]===3&&(!W||Z[1]>W[0]&&Z[1]<W[3])){Q.label=Z[1];break}if(Z[0]===6&&Q.label<W[1]){Q.label=W[1],W=Z;break}if(W&&Q.label<W[2]){Q.label=W[2],Q.ops.push(Z);break}if(W[2])Q.ops.pop();Q.trys.pop();continue}Z=Y.call(X,Q)}catch(H){Z=[6,H],K=0}finally{q=W=0}if(Z[0]&5)throw Z[1];return{value:Z[0]?Z[1]:void 0,done:!0}}},wA=function(X,Y){for(var Q in X)if(Q!=="default"&&!Object.prototype.hasOwnProperty.call(Y,Q))fJ(Y,X,Q)},fJ=Object.create?function(X,Y,Q,q){if(q===void 0)q=Q;var K=Object.getOwnPropertyDescriptor(Y,Q);if(!K||("get"in K?!Y.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Y[Q]}};Object.defineProperty(X,q,K)}:function(X,Y,Q,q){if(q===void 0)q=Q;X[q]=Y[Q]},gJ=function(X){var Y=typeof Symbol==="function"&&Symbol.iterator,Q=Y&&X[Y],q=0;if(Q)return Q.call(X);if(X&&typeof X.length==="number")return{next:function(){if(X&&q>=X.length)X=void 0;return{value:X&&X[q++],done:!X}}};throw TypeError(Y?"Object is not iterable.":"Symbol.iterator is not defined.")},fq=function(X,Y){var Q=typeof Symbol==="function"&&X[Symbol.iterator];if(!Q)return X;var q=Q.call(X),K,W=[],G;try{while((Y===void 0||Y-- >0)&&!(K=q.next()).done)W.push(K.value)}catch(I){G={error:I}}finally{try{if(K&&!K.done&&(Q=q.return))Q.call(q)}finally{if(G)throw G.error}}return W},RA=function(){for(var X=[],Y=0;Y<arguments.length;Y++)X=X.concat(fq(arguments[Y]));return X},MA=function(){for(var X=0,Y=0,Q=arguments.length;Y<Q;Y++)X+=arguments[Y].length;for(var q=Array(X),K=0,Y=0;Y<Q;Y++)for(var W=arguments[Y],G=0,I=W.length;G<I;G++,K++)q[K]=W[G];return q},EA=function(X,Y,Q){if(Q||arguments.length===2){for(var q=0,K=Y.length,W;q<K;q++)if(W||!(q in Y)){if(!W)W=Array.prototype.slice.call(Y,0,q);W[q]=Y[q]}}return X.concat(W||Array.prototype.slice.call(Y))},Q8=function(X){return this instanceof Q8?(this.v=X,this):new Q8(X)},AA=function(X,Y,Q){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var q=Q.apply(X,Y||[]),K,W=[];return K=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),I("next"),I("throw"),I("return",G),K[Symbol.asyncIterator]=function(){return this},K;function G(N){return function(O){return Promise.resolve(O).then(N,B)}}function I(N,O){if(q[N]){if(K[N]=function(L){return new Promise(function(A,E){W.push([N,L,A,E])>1||z(N,L)})},O)K[N]=O(K[N])}}function z(N,O){try{Z(q[N](O))}catch(L){j(W[0][3],L)}}function Z(N){N.value instanceof Q8?Promise.resolve(N.value.v).then(H,B):j(W[0][2],N)}function H(N){z("next",N)}function B(N){z("throw",N)}function j(N,O){if(N(O),W.shift(),W.length)z(W[0][0],W[0][1])}},vA=function(X){var Y,Q;return Y={},q("next"),q("throw",function(K){throw K}),q("return"),Y[Symbol.iterator]=function(){return this},Y;function q(K,W){Y[K]=X[K]?function(G){return(Q=!Q)?{value:Q8(X[K](G)),done:!1}:W?W(G):G}:W}},TA=function(X){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var Y=X[Symbol.asyncIterator],Q;return Y?Y.call(X):(X=typeof gJ==="function"?gJ(X):X[Symbol.iterator](),Q={},q("next"),q("throw"),q("return"),Q[Symbol.asyncIterator]=function(){return this},Q);function q(W){Q[W]=X[W]&&function(G){return new Promise(function(I,z){G=X[W](G),K(I,z,G.done,G.value)})}}function K(W,G,I,z){Promise.resolve(z).then(function(Z){W({value:Z,done:I})},G)}},bA=function(X,Y){if(Object.defineProperty)Object.defineProperty(X,"raw",{value:Y});else X.raw=Y;return X};var J=Object.create?function(X,Y){Object.defineProperty(X,"default",{enumerable:!0,value:Y})}:function(X,Y){X.default=Y},F=function(X){return F=Object.getOwnPropertyNames||function(Y){var Q=[];for(var q in Y)if(Object.prototype.hasOwnProperty.call(Y,q))Q[Q.length]=q;return Q},F(X)};PA=function(X){if(X&&X.__esModule)return X;var Y={};if(X!=null){for(var Q=F(X),q=0;q<Q.length;q++)if(Q[q]!=="default")fJ(Y,X,Q[q])}return J(Y,X),Y},SA=function(X){return X&&X.__esModule?X:{default:X}},_A=function(X,Y,Q,q){if(Q==="a"&&!q)throw TypeError("Private accessor was defined without a getter");if(typeof Y==="function"?X!==Y||!q:!Y.has(X))throw TypeError("Cannot read private member from an object whose class did not declare it");return Q==="m"?q:Q==="a"?q.call(X):q?q.value:Y.get(X)},kA=function(X,Y,Q,q,K){if(q==="m")throw TypeError("Private method is not writable");if(q==="a"&&!K)throw TypeError("Private accessor was defined without a setter");if(typeof Y==="function"?X!==Y||!K:!Y.has(X))throw TypeError("Cannot write private member to an object whose class did not declare it");return q==="a"?K.call(X,Q):K?K.value=Q:Y.set(X,Q),Q},CA=function(X,Y){if(Y===null||typeof Y!=="object"&&typeof Y!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof X==="function"?Y===X:X.has(Y)},uA=function(X,Y,Q){if(Y!==null&&Y!==void 0){if(typeof Y!=="object"&&typeof Y!=="function")throw TypeError("Object expected.");var q,K;if(Q){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");q=Y[Symbol.asyncDispose]}if(q===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(q=Y[Symbol.dispose],Q)K=q}if(typeof q!=="function")throw TypeError("Object not disposable.");if(K)q=function(){try{K.call(this)}catch(W){return Promise.reject(W)}};X.stack.push({value:Y,dispose:q,async:Q})}else if(Q)X.stack.push({async:!0});return Y};var U=typeof SuppressedError==="function"?SuppressedError:function(X,Y,Q){var q=Error(Q);return q.name="SuppressedError",q.error=X,q.suppressed=Y,q};gA=function(X){function Y(W){X.error=X.hasError?new U(W,X.error,"An error was suppressed during disposal."):W,X.hasError=!0}var Q,q=0;function K(){while(Q=X.stack.pop())try{if(!Q.async&&q===1)return q=0,X.stack.push(Q),Promise.resolve().then(K);if(Q.dispose){var W=Q.dispose.call(Q.value);if(Q.async)return q|=2,Promise.resolve(W).then(K,function(G){return Y(G),K()})}else q|=1}catch(G){Y(G)}if(q===1)return X.hasError?Promise.reject(X.error):Promise.resolve();if(X.hasError)throw X.error}return K()},fA=function(X,Y){if(typeof X==="string"&&/^\.\.?\//.test(X))return X.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(Q,q,K,W,G){return q?Y?".jsx":".js":K&&(!W||!G)?Q:K+W+"."+G.toLowerCase()+"js"});return X},D("__extends",WA),D("__assign",GA),D("__rest",IA),D("__decorate",zA),D("__param",ZA),D("__esDecorate",HA),D("__runInitializers",BA),D("__propKey",OA),D("__setFunctionName",jA),D("__metadata",NA),D("__awaiter",VA),D("__generator",LA),D("__exportStar",wA),D("__createBinding",fJ),D("__values",gJ),D("__read",fq),D("__spread",RA),D("__spreadArrays",MA),D("__spreadArray",EA),D("__await",Q8),D("__asyncGenerator",AA),D("__asyncDelegator",vA),D("__asyncValues",TA),D("__makeTemplateObject",bA),D("__importStar",PA),D("__importDefault",SA),D("__classPrivateFieldGet",_A),D("__classPrivateFieldSet",kA),D("__classPrivateFieldIn",CA),D("__addDisposableResource",uA),D("__disposeResources",gA),D("__rewriteRelativeImportExtension",fA)})});var yA=u((MND,xA)=>{var q8=1000,K8=q8*60,W8=K8*60,R4=W8*24,oa=R4*7,aa=R4*365.25;xA.exports=function(D,$){$=$||{};var J=typeof D;if(J==="string"&&D.length>0)return sa(D);else if(J==="number"&&isFinite(D))return $.long?Ds(D):ea(D);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(D))};function sa(D){if(D=String(D),D.length>100)return;var $=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(D);if(!$)return;var J=parseFloat($[1]),F=($[2]||"ms").toLowerCase();switch(F){case"years":case"year":case"yrs":case"yr":case"y":return J*aa;case"weeks":case"week":case"w":return J*oa;case"days":case"day":case"d":return J*R4;case"hours":case"hour":case"hrs":case"hr":case"h":return J*W8;case"minutes":case"minute":case"mins":case"min":case"m":return J*K8;case"seconds":case"second":case"secs":case"sec":case"s":return J*q8;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return J;default:return}}function ea(D){var $=Math.abs(D);if($>=R4)return Math.round(D/R4)+"d";if($>=W8)return Math.round(D/W8)+"h";if($>=K8)return Math.round(D/K8)+"m";if($>=q8)return Math.round(D/q8)+"s";return D+"ms"}function Ds(D){var $=Math.abs(D);if($>=R4)return yJ(D,$,R4,"day");if($>=W8)return yJ(D,$,W8,"hour");if($>=K8)return yJ(D,$,K8,"minute");if($>=q8)return yJ(D,$,q8,"second");return D+" ms"}function yJ(D,$,J,F){var U=$>=J*1.5;return Math.round(D/J)+" "+F+(U?"s":"")}});var xq=u((END,hA)=>{function $s(D){J.debug=J,J.default=J,J.coerce=q,J.disable=Y,J.enable=U,J.enabled=Q,J.humanize=yA(),J.destroy=K,Object.keys(D).forEach((W)=>{J[W]=D[W]}),J.names=[],J.skips=[],J.formatters={};function $(W){let G=0;for(let I=0;I<W.length;I++)G=(G<<5)-G+W.charCodeAt(I),G|=0;return J.colors[Math.abs(G)%J.colors.length]}J.selectColor=$;function J(W){let G,I=null,z,Z;function H(...B){if(!H.enabled)return;let j=H,N=Number(new Date),O=N-(G||N);if(j.diff=O,j.prev=G,j.curr=N,G=N,B[0]=J.coerce(B[0]),typeof B[0]!=="string")B.unshift("%O");let L=0;B[0]=B[0].replace(/%([a-zA-Z%])/g,(E,_)=>{if(E==="%%")return"%";L++;let k=J.formatters[_];if(typeof k==="function"){let C=B[L];E=k.call(j,C),B.splice(L,1),L--}return E}),J.formatArgs.call(j,B),(j.log||J.log).apply(j,B)}if(H.namespace=W,H.useColors=J.useColors(),H.color=J.selectColor(W),H.extend=F,H.destroy=J.destroy,Object.defineProperty(H,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(I!==null)return I;if(z!==J.namespaces)z=J.namespaces,Z=J.enabled(W);return Z},set:(B)=>{I=B}}),typeof J.init==="function")J.init(H);return H}function F(W,G){let I=J(this.namespace+(typeof G>"u"?":":G)+W);return I.log=this.log,I}function U(W){J.save(W),J.namespaces=W,J.names=[],J.skips=[];let G=(typeof W==="string"?W:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let I of G)if(I[0]==="-")J.skips.push(I.slice(1));else J.names.push(I)}function X(W,G){let I=0,z=0,Z=-1,H=0;while(I<W.length)if(z<G.length&&(G[z]===W[I]||G[z]==="*"))if(G[z]==="*")Z=z,H=I,z++;else I++,z++;else if(Z!==-1)z=Z+1,H++,I=H;else return!1;while(z<G.length&&G[z]==="*")z++;return z===G.length}function Y(){let W=[...J.names,...J.skips.map((G)=>"-"+G)].join(",");return J.enable(""),W}function Q(W){for(let G of J.skips)if(X(W,G))return!1;for(let G of J.names)if(X(W,G))return!0;return!1}function q(W){if(W instanceof Error)return W.stack||W.message;return W}function K(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return J.enable(J.load()),J}hA.exports=$s});var lA=u((mA,hJ)=>{mA.formatArgs=Fs;mA.save=Us;mA.load=Xs;mA.useColors=Js;mA.storage=Ys();mA.destroy=(()=>{let D=!1;return()=>{if(!D)D=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();mA.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Js(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let D;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(D=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(D[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Fs(D){if(D[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+D[0]+(this.useColors?"%c ":" ")+"+"+hJ.exports.humanize(this.diff),!this.useColors)return;let $="color: "+this.color;D.splice(1,0,$,"color: inherit");let J=0,F=0;D[0].replace(/%[a-zA-Z%]/g,(U)=>{if(U==="%%")return;if(J++,U==="%c")F=J}),D.splice(F,0,$)}mA.log=console.debug||console.log||(()=>{});function Us(D){try{if(D)mA.storage.setItem("debug",D);else mA.storage.removeItem("debug")}catch($){}}function Xs(){let D;try{D=mA.storage.getItem("debug")||mA.storage.getItem("DEBUG")}catch($){}if(!D&&typeof process<"u"&&"env"in process)D=process.env.DEBUG;return D}function Ys(){try{return localStorage}catch(D){}}hJ.exports=xq()(mA);var{formatters:Qs}=hJ.exports;Qs.j=function(D){try{return JSON.stringify(D)}catch($){return"[UnexpectedJSONParseError]: "+$.message}}});var dA=u((vND,iA)=>{iA.exports=(D,$=process.argv)=>{let J=D.startsWith("-")?"":D.length===1?"-":"--",F=$.indexOf(J+D),U=$.indexOf("--");return F!==-1&&(U===-1||F<U)}});var pA=u((TND,nA)=>{var Hs=FD("os"),cA=FD("tty"),h0=dA(),{env:E$}=process,Z1;if(h0("no-color")||h0("no-colors")||h0("color=false")||h0("color=never"))Z1=0;else if(h0("color")||h0("colors")||h0("color=true")||h0("color=always"))Z1=1;if("FORCE_COLOR"in E$)if(E$.FORCE_COLOR==="true")Z1=1;else if(E$.FORCE_COLOR==="false")Z1=0;else Z1=E$.FORCE_COLOR.length===0?1:Math.min(parseInt(E$.FORCE_COLOR,10),3);function yq(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function hq(D,$){if(Z1===0)return 0;if(h0("color=16m")||h0("color=full")||h0("color=truecolor"))return 3;if(h0("color=256"))return 2;if(D&&!$&&Z1===void 0)return 0;let J=Z1||0;if(E$.TERM==="dumb")return J;if(process.platform==="win32"){let F=Hs.release().split(".");if(Number(F[0])>=10&&Number(F[2])>=10586)return Number(F[2])>=14931?3:2;return 1}if("CI"in E$){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((F)=>(F in E$))||E$.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in E$)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(E$.TEAMCITY_VERSION)?1:0;if(E$.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in E$){let F=parseInt((E$.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(E$.TERM_PROGRAM){case"iTerm.app":return F>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(E$.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(E$.TERM))return 1;if("COLORTERM"in E$)return 1;return J}function Bs(D){let $=hq(D,D&&D.isTTY);return yq($)}nA.exports={supportsColor:Bs,stdout:yq(hq(!0,cA.isatty(1))),stderr:yq(hq(!0,cA.isatty(2)))}});var aA=u((tA,lJ)=>{var Os=FD("tty"),mJ=FD("util");tA.init=Ms;tA.log=Ls;tA.formatArgs=Ns;tA.save=ws;tA.load=Rs;tA.useColors=js;tA.destroy=mJ.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");tA.colors=[6,2,3,4,5,1];try{let D=pA();if(D&&(D.stderr||D).level>=2)tA.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(D){}tA.inspectOpts=Object.keys(process.env).filter((D)=>{return/^debug_/i.test(D)}).reduce((D,$)=>{let J=$.substring(6).toLowerCase().replace(/_([a-z])/g,(U,X)=>{return X.toUpperCase()}),F=process.env[$];if(/^(yes|on|true|enabled)$/i.test(F))F=!0;else if(/^(no|off|false|disabled)$/i.test(F))F=!1;else if(F==="null")F=null;else F=Number(F);return D[J]=F,D},{});function js(){return"colors"in tA.inspectOpts?Boolean(tA.inspectOpts.colors):Os.isatty(process.stderr.fd)}function Ns(D){let{namespace:$,useColors:J}=this;if(J){let F=this.color,U="\x1B[3"+(F<8?F:"8;5;"+F),X=` ${U};1m${$} \x1B[0m`;D[0]=X+D[0].split(`
`).join(`
`+X),D.push(U+"m+"+lJ.exports.humanize(this.diff)+"\x1B[0m")}else D[0]=Vs()+$+" "+D[0]}function Vs(){if(tA.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function Ls(...D){return process.stderr.write(mJ.formatWithOptions(tA.inspectOpts,...D)+`
`)}function ws(D){if(D)process.env.DEBUG=D;else delete process.env.DEBUG}function Rs(){return process.env.DEBUG}function Ms(D){D.inspectOpts={};let $=Object.keys(tA.inspectOpts);for(let J=0;J<$.length;J++)D.inspectOpts[$[J]]=tA.inspectOpts[$[J]]}lJ.exports=xq()(tA);var{formatters:rA}=lJ.exports;rA.o=function(D){return this.inspectOpts.colors=this.useColors,mJ.inspect(D,this.inspectOpts).split(`
`).map(($)=>$.trim()).join(" ")};rA.O=function(D){return this.inspectOpts.colors=this.useColors,mJ.inspect(D,this.inspectOpts)}});var lq=u((PND,mq)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)mq.exports=lA();else mq.exports=aA()});var A$=u((_s)=>{_s.fromCallback=function(D){return Object.defineProperty(function(...$){if(typeof $[$.length-1]==="function")D.apply(this,$);else return new Promise((J,F)=>{$.push((U,X)=>U!=null?F(U):J(X)),D.apply(this,$)})},"name",{value:D.name})};_s.fromPromise=function(D){return Object.defineProperty(function(...$){let J=$[$.length-1];if(typeof J!=="function")return D.apply(this,$);else $.pop(),D.apply(this,$).then((F)=>J(null,F),J)},"name",{value:D.name})}});var a$=u((iq)=>{var sA=A$().fromCallback,o$=K1(),us=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter((D)=>{return typeof o$[D]==="function"});Object.assign(iq,o$);us.forEach((D)=>{iq[D]=sA(o$[D])});iq.exists=function(D,$){if(typeof $==="function")return o$.exists(D,$);return new Promise((J)=>{return o$.exists(D,J)})};iq.read=function(D,$,J,F,U,X){if(typeof X==="function")return o$.read(D,$,J,F,U,X);return new Promise((Y,Q)=>{o$.read(D,$,J,F,U,(q,K,W)=>{if(q)return Q(q);Y({bytesRead:K,buffer:W})})})};iq.write=function(D,$,...J){if(typeof J[J.length-1]==="function")return o$.write(D,$,...J);return new Promise((F,U)=>{o$.write(D,$,...J,(X,Y,Q)=>{if(X)return U(X);F({bytesWritten:Y,buffer:Q})})})};iq.readv=function(D,$,...J){if(typeof J[J.length-1]==="function")return o$.readv(D,$,...J);return new Promise((F,U)=>{o$.readv(D,$,...J,(X,Y,Q)=>{if(X)return U(X);F({bytesRead:Y,buffers:Q})})})};iq.writev=function(D,$,...J){if(typeof J[J.length-1]==="function")return o$.writev(D,$,...J);return new Promise((F,U)=>{o$.writev(D,$,...J,(X,Y,Q)=>{if(X)return U(X);F({bytesWritten:Y,buffers:Q})})})};if(typeof o$.realpath.native==="function")iq.realpath.native=sA(o$.realpath.native);else process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var Dv=u((ls,eA)=>{var ms=FD("path");ls.checkPath=function($){if(process.platform==="win32"){if(/[<>:"|?*]/.test($.replace(ms.parse($).root,""))){let F=Error(`Path contains invalid characters: ${$}`);throw F.code="EINVAL",F}}}});var Uv=u((ds,dq)=>{var $v=a$(),{checkPath:Jv}=Dv(),Fv=(D)=>{let $={mode:511};if(typeof D==="number")return D;return{...$,...D}.mode};ds.makeDir=async(D,$)=>{return Jv(D),$v.mkdir(D,{mode:Fv($),recursive:!0})};ds.makeDirSync=(D,$)=>{return Jv(D),$v.mkdirSync(D,{mode:Fv($),recursive:!0})}});var a0=u((CND,Xv)=>{var ps=A$().fromPromise,{makeDir:rs,makeDirSync:cq}=Uv(),nq=ps(rs);Xv.exports={mkdirs:nq,mkdirsSync:cq,mkdirp:nq,mkdirpSync:cq,ensureDir:nq,ensureDirSync:cq}});var H1=u((uND,Qv)=>{var ts=A$().fromPromise,Yv=a$();function os(D){return Yv.access(D).then(()=>!0).catch(()=>!1)}Qv.exports={pathExists:ts(os),pathExistsSync:Yv.existsSync}});var pq=u((gND,qv)=>{var G8=a$(),as=A$().fromPromise;async function ss(D,$,J){let F=await G8.open(D,"r+"),U=null;try{await G8.futimes(F,$,J)}catch(X){U=X}finally{try{await G8.close(F)}catch(X){if(!U)U=X}}if(U)throw U}function es(D,$,J){let F=G8.openSync(D,"r+"),U=null;try{G8.futimesSync(F,$,J)}catch(X){U=X}finally{try{G8.closeSync(F)}catch(X){if(!U)U=X}}if(U)throw U}qv.exports={utimesMillis:as(ss),utimesMillisSync:es}});var E4=u((fND,Iv)=>{var I8=a$(),v$=FD("path"),Kv=A$().fromPromise;function De(D,$,J){let F=J.dereference?(U)=>I8.stat(U,{bigint:!0}):(U)=>I8.lstat(U,{bigint:!0});return Promise.all([F(D),F($).catch((U)=>{if(U.code==="ENOENT")return null;throw U})]).then(([U,X])=>({srcStat:U,destStat:X}))}function $e(D,$,J){let F,U=J.dereference?(Y)=>I8.statSync(Y,{bigint:!0}):(Y)=>I8.lstatSync(Y,{bigint:!0}),X=U(D);try{F=U($)}catch(Y){if(Y.code==="ENOENT")return{srcStat:X,destStat:null};throw Y}return{srcStat:X,destStat:F}}async function Je(D,$,J,F){let{srcStat:U,destStat:X}=await De(D,$,F);if(X){if(N9(U,X)){let Y=v$.basename(D),Q=v$.basename($);if(J==="move"&&Y!==Q&&Y.toLowerCase()===Q.toLowerCase())return{srcStat:U,destStat:X,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(U.isDirectory()&&!X.isDirectory())throw Error(`Cannot overwrite non-directory '${$}' with directory '${D}'.`);if(!U.isDirectory()&&X.isDirectory())throw Error(`Cannot overwrite directory '${$}' with non-directory '${D}'.`)}if(U.isDirectory()&&rq(D,$))throw Error(iJ(D,$,J));return{srcStat:U,destStat:X}}function Fe(D,$,J,F){let{srcStat:U,destStat:X}=$e(D,$,F);if(X){if(N9(U,X)){let Y=v$.basename(D),Q=v$.basename($);if(J==="move"&&Y!==Q&&Y.toLowerCase()===Q.toLowerCase())return{srcStat:U,destStat:X,isChangingCase:!0};throw Error("Source and destination must not be the same.")}if(U.isDirectory()&&!X.isDirectory())throw Error(`Cannot overwrite non-directory '${$}' with directory '${D}'.`);if(!U.isDirectory()&&X.isDirectory())throw Error(`Cannot overwrite directory '${$}' with non-directory '${D}'.`)}if(U.isDirectory()&&rq(D,$))throw Error(iJ(D,$,J));return{srcStat:U,destStat:X}}async function Wv(D,$,J,F){let U=v$.resolve(v$.dirname(D)),X=v$.resolve(v$.dirname(J));if(X===U||X===v$.parse(X).root)return;let Y;try{Y=await I8.stat(X,{bigint:!0})}catch(Q){if(Q.code==="ENOENT")return;throw Q}if(N9($,Y))throw Error(iJ(D,J,F));return Wv(D,$,X,F)}function Gv(D,$,J,F){let U=v$.resolve(v$.dirname(D)),X=v$.resolve(v$.dirname(J));if(X===U||X===v$.parse(X).root)return;let Y;try{Y=I8.statSync(X,{bigint:!0})}catch(Q){if(Q.code==="ENOENT")return;throw Q}if(N9($,Y))throw Error(iJ(D,J,F));return Gv(D,$,X,F)}function N9(D,$){return $.ino!==void 0&&$.dev!==void 0&&$.ino===D.ino&&$.dev===D.dev}function rq(D,$){let J=v$.resolve(D).split(v$.sep).filter((U)=>U),F=v$.resolve($).split(v$.sep).filter((U)=>U);return J.every((U,X)=>F[X]===U)}function iJ(D,$,J){return`Cannot ${J} '${D}' to a subdirectory of itself, '${$}'.`}Iv.exports={checkPaths:Kv(Je),checkPathsSync:Fe,checkParentPaths:Kv(Wv),checkParentPathsSync:Gv,isSrcSubdir:rq,areIdentical:N9}});var Zv=u((xND,zv)=>{async function Ue(D,$){let J=[];for await(let F of D)J.push($(F).then(()=>null,(U)=>U??Error("unknown error")));await Promise.all(J.map((F)=>F.then((U)=>{if(U!==null)throw U})))}zv.exports={asyncIteratorConcurrentProcess:Ue}});var Nv=u((yND,jv)=>{var m$=a$(),V9=FD("path"),{mkdirs:Xe}=a0(),{pathExists:Ye}=H1(),{utimesMillis:Qe}=pq(),L9=E4(),{asyncIteratorConcurrentProcess:qe}=Zv();async function Ke(D,$,J={}){if(typeof J==="function")J={filter:J};if(J.clobber="clobber"in J?!!J.clobber:!0,J.overwrite="overwrite"in J?!!J.overwrite:J.clobber,J.preserveTimestamps&&process.arch==="ia32")process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:F,destStat:U}=await L9.checkPaths(D,$,"copy",J);if(await L9.checkParentPaths(D,F,$,"copy"),!await Bv(D,$,J))return;let Y=V9.dirname($);if(!await Ye(Y))await Xe(Y);await Ov(U,D,$,J)}async function Bv(D,$,J){if(!J.filter)return!0;return J.filter(D,$)}async function Ov(D,$,J,F){let X=await(F.dereference?m$.stat:m$.lstat)($);if(X.isDirectory())return ze(X,D,$,J,F);if(X.isFile()||X.isCharacterDevice()||X.isBlockDevice())return We(X,D,$,J,F);if(X.isSymbolicLink())return Ze(D,$,J,F);if(X.isSocket())throw Error(`Cannot copy a socket file: ${$}`);if(X.isFIFO())throw Error(`Cannot copy a FIFO pipe: ${$}`);throw Error(`Unknown file: ${$}`)}async function We(D,$,J,F,U){if(!$)return Hv(D,J,F,U);if(U.overwrite)return await m$.unlink(F),Hv(D,J,F,U);if(U.errorOnExist)throw Error(`'${F}' already exists`)}async function Hv(D,$,J,F){if(await m$.copyFile($,J),F.preserveTimestamps){if(Ge(D.mode))await Ie(J,D.mode);let U=await m$.stat($);await Qe(J,U.atime,U.mtime)}return m$.chmod(J,D.mode)}function Ge(D){return(D&128)===0}function Ie(D,$){return m$.chmod(D,$|128)}async function ze(D,$,J,F,U){if(!$)await m$.mkdir(F);if(await qe(await m$.opendir(J),async(X)=>{let Y=V9.join(J,X.name),Q=V9.join(F,X.name);if(await Bv(Y,Q,U)){let{destStat:K}=await L9.checkPaths(Y,Q,"copy",U);await Ov(K,Y,Q,U)}}),!$)await m$.chmod(F,D.mode)}async function Ze(D,$,J,F){let U=await m$.readlink($);if(F.dereference)U=V9.resolve(process.cwd(),U);if(!D)return m$.symlink(U,J);let X=null;try{X=await m$.readlink(J)}catch(Y){if(Y.code==="EINVAL"||Y.code==="UNKNOWN")return m$.symlink(U,J);throw Y}if(F.dereference)X=V9.resolve(process.cwd(),X);if(U!==X){if(L9.isSrcSubdir(U,X))throw Error(`Cannot copy '${U}' to a subdirectory of itself, '${X}'.`);if(L9.isSrcSubdir(X,U))throw Error(`Cannot overwrite '${X}' with '${U}'.`)}return await m$.unlink(J),m$.symlink(U,J)}jv.exports=Ke});var Mv=u((hND,Rv)=>{var s$=K1(),w9=FD("path"),He=a0().mkdirsSync,Be=pq().utimesMillisSync,R9=E4();function Oe(D,$,J){if(typeof J==="function")J={filter:J};if(J=J||{},J.clobber="clobber"in J?!!J.clobber:!0,J.overwrite="overwrite"in J?!!J.overwrite:J.clobber,J.preserveTimestamps&&process.arch==="ia32")process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:F,destStat:U}=R9.checkPathsSync(D,$,"copy",J);if(R9.checkParentPathsSync(D,F,$,"copy"),J.filter&&!J.filter(D,$))return;let X=w9.dirname($);if(!s$.existsSync(X))He(X);return Vv(U,D,$,J)}function Vv(D,$,J,F){let X=(F.dereference?s$.statSync:s$.lstatSync)($);if(X.isDirectory())return Me(X,D,$,J,F);else if(X.isFile()||X.isCharacterDevice()||X.isBlockDevice())return je(X,D,$,J,F);else if(X.isSymbolicLink())return ve(D,$,J,F);else if(X.isSocket())throw Error(`Cannot copy a socket file: ${$}`);else if(X.isFIFO())throw Error(`Cannot copy a FIFO pipe: ${$}`);throw Error(`Unknown file: ${$}`)}function je(D,$,J,F,U){if(!$)return Lv(D,J,F,U);return Ne(D,J,F,U)}function Ne(D,$,J,F){if(F.overwrite)return s$.unlinkSync(J),Lv(D,$,J,F);else if(F.errorOnExist)throw Error(`'${J}' already exists`)}function Lv(D,$,J,F){if(s$.copyFileSync($,J),F.preserveTimestamps)Ve(D.mode,$,J);return tq(J,D.mode)}function Ve(D,$,J){if(Le(D))we(J,D);return Re($,J)}function Le(D){return(D&128)===0}function we(D,$){return tq(D,$|128)}function tq(D,$){return s$.chmodSync(D,$)}function Re(D,$){let J=s$.statSync(D);return Be($,J.atime,J.mtime)}function Me(D,$,J,F,U){if(!$)return Ee(D.mode,J,F,U);return wv(J,F,U)}function Ee(D,$,J,F){return s$.mkdirSync(J),wv($,J,F),tq(J,D)}function wv(D,$,J){let F=s$.opendirSync(D);try{let U;while((U=F.readSync())!==null)Ae(U.name,D,$,J)}finally{F.closeSync()}}function Ae(D,$,J,F){let U=w9.join($,D),X=w9.join(J,D);if(F.filter&&!F.filter(U,X))return;let{destStat:Y}=R9.checkPathsSync(U,X,"copy",F);return Vv(Y,U,X,F)}function ve(D,$,J,F){let U=s$.readlinkSync($);if(F.dereference)U=w9.resolve(process.cwd(),U);if(!D)return s$.symlinkSync(U,J);else{let X;try{X=s$.readlinkSync(J)}catch(Y){if(Y.code==="EINVAL"||Y.code==="UNKNOWN")return s$.symlinkSync(U,J);throw Y}if(F.dereference)X=w9.resolve(process.cwd(),X);if(U!==X){if(R9.isSrcSubdir(U,X))throw Error(`Cannot copy '${U}' to a subdirectory of itself, '${X}'.`);if(R9.isSrcSubdir(X,U))throw Error(`Cannot overwrite '${X}' with '${U}'.`)}return Te(U,J)}}function Te(D,$){return s$.unlinkSync($),s$.symlinkSync(D,$)}Rv.exports=Oe});var dJ=u((mND,Ev)=>{var be=A$().fromPromise;Ev.exports={copy:be(Nv()),copySync:Mv()}});var M9=u((lND,vv)=>{var Av=K1(),Pe=A$().fromCallback;function Se(D,$){Av.rm(D,{recursive:!0,force:!0},$)}function _e(D){Av.rmSync(D,{recursive:!0,force:!0})}vv.exports={remove:Pe(Se),removeSync:_e}});var uv=u((iND,Cv)=>{var ke=A$().fromPromise,Pv=a$(),Sv=FD("path"),_v=a0(),kv=M9(),Tv=ke(async function($){let J;try{J=await Pv.readdir($)}catch{return _v.mkdirs($)}return Promise.all(J.map((F)=>kv.remove(Sv.join($,F))))});function bv(D){let $;try{$=Pv.readdirSync(D)}catch{return _v.mkdirsSync(D)}$.forEach((J)=>{J=Sv.join(D,J),kv.removeSync(J)})}Cv.exports={emptyDirSync:bv,emptydirSync:bv,emptyDir:Tv,emptydir:Tv}});var yv=u((dND,xv)=>{var Ce=A$().fromPromise,gv=FD("path"),f6=a$(),fv=a0();async function ue(D){let $;try{$=await f6.stat(D)}catch{}if($&&$.isFile())return;let J=gv.dirname(D),F=null;try{F=await f6.stat(J)}catch(U){if(U.code==="ENOENT"){await fv.mkdirs(J),await f6.writeFile(D,"");return}else throw U}if(F.isDirectory())await f6.writeFile(D,"");else await f6.readdir(J)}function ge(D){let $;try{$=f6.statSync(D)}catch{}if($&&$.isFile())return;let J=gv.dirname(D);try{if(!f6.statSync(J).isDirectory())f6.readdirSync(J)}catch(F){if(F&&F.code==="ENOENT")fv.mkdirsSync(J);else throw F}f6.writeFileSync(D,"")}xv.exports={createFile:Ce(ue),createFileSync:ge}});var dv=u((cND,iv)=>{var fe=A$().fromPromise,hv=FD("path"),B1=a$(),mv=a0(),{pathExists:xe}=H1(),{areIdentical:lv}=E4();async function ye(D,$){let J;try{J=await B1.lstat($,{bigint:!0})}catch{}let F;try{F=await B1.lstat(D,{bigint:!0})}catch(Y){throw Y.message=Y.message.replace("lstat","ensureLink"),Y}if(J&&lv(F,J))return;let U=hv.dirname($);if(!await xe(U))await mv.mkdirs(U);await B1.link(D,$)}function he(D,$){let J;try{J=B1.lstatSync($,{bigint:!0})}catch{}try{let X=B1.lstatSync(D,{bigint:!0});if(J&&lv(X,J))return}catch(X){throw X.message=X.message.replace("lstat","ensureLink"),X}let F=hv.dirname($);if(B1.existsSync(F))return B1.linkSync(D,$);return mv.mkdirsSync(F),B1.linkSync(D,$)}iv.exports={createLink:fe(ye),createLinkSync:he}});var nv=u((nND,cv)=>{var O1=FD("path"),E9=a$(),{pathExists:me}=H1(),le=A$().fromPromise;async function ie(D,$){if(O1.isAbsolute(D)){try{await E9.lstat(D)}catch(X){throw X.message=X.message.replace("lstat","ensureSymlink"),X}return{toCwd:D,toDst:D}}let J=O1.dirname($),F=O1.join(J,D);if(await me(F))return{toCwd:F,toDst:D};try{await E9.lstat(D)}catch(X){throw X.message=X.message.replace("lstat","ensureSymlink"),X}return{toCwd:D,toDst:O1.relative(J,D)}}function de(D,$){if(O1.isAbsolute(D)){if(!E9.existsSync(D))throw Error("absolute srcpath does not exist");return{toCwd:D,toDst:D}}let J=O1.dirname($),F=O1.join(J,D);if(E9.existsSync(F))return{toCwd:F,toDst:D};if(!E9.existsSync(D))throw Error("relative srcpath does not exist");return{toCwd:D,toDst:O1.relative(J,D)}}cv.exports={symlinkPaths:le(ie),symlinkPathsSync:de}});var tv=u((pND,rv)=>{var pv=a$(),ce=A$().fromPromise;async function ne(D,$){if($)return $;let J;try{J=await pv.lstat(D)}catch{return"file"}return J&&J.isDirectory()?"dir":"file"}function pe(D,$){if($)return $;let J;try{J=pv.lstatSync(D)}catch{return"file"}return J&&J.isDirectory()?"dir":"file"}rv.exports={symlinkType:ce(ne),symlinkTypeSync:pe}});var sv=u((rND,av)=>{var re=A$().fromPromise,j1=FD("path"),z0=a$(),{mkdirs:te,mkdirsSync:oe}=a0(),{symlinkPaths:ae,symlinkPathsSync:se}=nv(),{symlinkType:ee,symlinkTypeSync:DDD}=tv(),{pathExists:$DD}=H1(),{areIdentical:ov}=E4();async function JDD(D,$,J){let F;try{F=await z0.lstat($)}catch{}if(F&&F.isSymbolicLink()){let Q;if(j1.isAbsolute(D))Q=await z0.stat(D,{bigint:!0});else{let K=j1.dirname($),W=j1.join(K,D);try{Q=await z0.stat(W,{bigint:!0})}catch{Q=await z0.stat(D,{bigint:!0})}}let q=await z0.stat($,{bigint:!0});if(ov(Q,q))return}let U=await ae(D,$);D=U.toDst;let X=await ee(U.toCwd,J),Y=j1.dirname($);if(!await $DD(Y))await te(Y);return z0.symlink(D,$,X)}function FDD(D,$,J){let F;try{F=z0.lstatSync($)}catch{}if(F&&F.isSymbolicLink()){let Q;if(j1.isAbsolute(D))Q=z0.statSync(D,{bigint:!0});else{let K=j1.dirname($),W=j1.join(K,D);try{Q=z0.statSync(W,{bigint:!0})}catch{Q=z0.statSync(D,{bigint:!0})}}let q=z0.statSync($,{bigint:!0});if(ov(Q,q))return}let U=se(D,$);D=U.toDst,J=DDD(U.toCwd,J);let X=j1.dirname($);if(z0.existsSync(X))return z0.symlinkSync(D,$,J);return oe(X),z0.symlinkSync(D,$,J)}av.exports={createSymlink:re(JDD),createSymlinkSync:FDD}});var YT=u((tND,XT)=>{var{createFile:ev,createFileSync:DT}=yv(),{createLink:$T,createLinkSync:JT}=dv(),{createSymlink:FT,createSymlinkSync:UT}=sv();XT.exports={createFile:ev,createFileSync:DT,ensureFile:ev,ensureFileSync:DT,createLink:$T,createLinkSync:JT,ensureLink:$T,ensureLinkSync:JT,createSymlink:FT,createSymlinkSync:UT,ensureSymlink:FT,ensureSymlinkSync:UT}});var cJ=u((oND,QT)=>{function UDD(D,{EOL:$=`
`,finalEOL:J=!0,replacer:F=null,spaces:U}={}){let X=J?$:"",Y=JSON.stringify(D,F,U);if(Y===void 0)throw TypeError(`Converting ${typeof D} value to JSON is not supported`);return Y.replace(/\n/g,$)+X}function XDD(D){if(Buffer.isBuffer(D))D=D.toString("utf8");return D.replace(/^\uFEFF/,"")}QT.exports={stringify:UDD,stripBom:XDD}});var GT=u((aND,WT)=>{var z8;try{z8=K1()}catch(D){z8=FD("fs")}var nJ=A$(),{stringify:qT,stripBom:KT}=cJ();async function YDD(D,$={}){if(typeof $==="string")$={encoding:$};let J=$.fs||z8,F="throws"in $?$.throws:!0,U=await nJ.fromCallback(J.readFile)(D,$);U=KT(U);let X;try{X=JSON.parse(U,$?$.reviver:null)}catch(Y){if(F)throw Y.message=`${D}: ${Y.message}`,Y;else return null}return X}var QDD=nJ.fromPromise(YDD);function qDD(D,$={}){if(typeof $==="string")$={encoding:$};let J=$.fs||z8,F="throws"in $?$.throws:!0;try{let U=J.readFileSync(D,$);return U=KT(U),JSON.parse(U,$.reviver)}catch(U){if(F)throw U.message=`${D}: ${U.message}`,U;else return null}}async function KDD(D,$,J={}){let F=J.fs||z8,U=qT($,J);await nJ.fromCallback(F.writeFile)(D,U,J)}var WDD=nJ.fromPromise(KDD);function GDD(D,$,J={}){let F=J.fs||z8,U=qT($,J);return F.writeFileSync(D,U,J)}WT.exports={readFile:QDD,readFileSync:qDD,writeFile:WDD,writeFileSync:GDD}});var zT=u((sND,IT)=>{var pJ=GT();IT.exports={readJson:pJ.readFile,readJsonSync:pJ.readFileSync,writeJson:pJ.writeFile,writeJsonSync:pJ.writeFileSync}});var rJ=u((eND,BT)=>{var IDD=A$().fromPromise,oq=a$(),ZT=FD("path"),HT=a0(),zDD=H1().pathExists;async function ZDD(D,$,J="utf-8"){let F=ZT.dirname(D);if(!await zDD(F))await HT.mkdirs(F);return oq.writeFile(D,$,J)}function HDD(D,...$){let J=ZT.dirname(D);if(!oq.existsSync(J))HT.mkdirsSync(J);oq.writeFileSync(D,...$)}BT.exports={outputFile:IDD(ZDD),outputFileSync:HDD}});var jT=u((DVD,OT)=>{var{stringify:BDD}=cJ(),{outputFile:ODD}=rJ();async function jDD(D,$,J={}){let F=BDD($,J);await ODD(D,F,J)}OT.exports=jDD});var VT=u(($VD,NT)=>{var{stringify:NDD}=cJ(),{outputFileSync:VDD}=rJ();function LDD(D,$,J){let F=NDD($,J);VDD(D,F,J)}NT.exports=LDD});var wT=u((JVD,LT)=>{var wDD=A$().fromPromise,e$=zT();e$.outputJson=wDD(jT());e$.outputJsonSync=VT();e$.outputJSON=e$.outputJson;e$.outputJSONSync=e$.outputJsonSync;e$.writeJSON=e$.writeJson;e$.writeJSONSync=e$.writeJsonSync;e$.readJSON=e$.readJson;e$.readJSONSync=e$.readJsonSync;LT.exports=e$});var vT=u((FVD,AT)=>{var RDD=a$(),RT=FD("path"),{copy:MDD}=dJ(),{remove:ET}=M9(),{mkdirp:EDD}=a0(),{pathExists:ADD}=H1(),MT=E4();async function vDD(D,$,J={}){let F=J.overwrite||J.clobber||!1,{srcStat:U,isChangingCase:X=!1}=await MT.checkPaths(D,$,"move",J);await MT.checkParentPaths(D,U,$,"move");let Y=RT.dirname($);if(RT.parse(Y).root!==Y)await EDD(Y);return TDD(D,$,F,X)}async function TDD(D,$,J,F){if(!F){if(J)await ET($);else if(await ADD($))throw Error("dest already exists.")}try{await RDD.rename(D,$)}catch(U){if(U.code!=="EXDEV")throw U;await bDD(D,$,J)}}async function bDD(D,$,J){return await MDD(D,$,{overwrite:J,errorOnExist:!0,preserveTimestamps:!0}),ET(D)}AT.exports=vDD});var _T=u((UVD,ST)=>{var bT=K1(),sq=FD("path"),PDD=dJ().copySync,PT=M9().removeSync,SDD=a0().mkdirpSync,TT=E4();function _DD(D,$,J){J=J||{};let F=J.overwrite||J.clobber||!1,{srcStat:U,isChangingCase:X=!1}=TT.checkPathsSync(D,$,"move",J);if(TT.checkParentPathsSync(D,U,$,"move"),!kDD($))SDD(sq.dirname($));return CDD(D,$,F,X)}function kDD(D){let $=sq.dirname(D);return sq.parse($).root===$}function CDD(D,$,J,F){if(F)return aq(D,$,J);if(J)return PT($),aq(D,$,J);if(bT.existsSync($))throw Error("dest already exists.");return aq(D,$,J)}function aq(D,$,J){try{bT.renameSync(D,$)}catch(F){if(F.code!=="EXDEV")throw F;return uDD(D,$,J)}}function uDD(D,$,J){return PDD(D,$,{overwrite:J,errorOnExist:!0,preserveTimestamps:!0}),PT(D)}ST.exports=_DD});var CT=u((XVD,kT)=>{var gDD=A$().fromPromise;kT.exports={move:gDD(vT()),moveSync:_T()}});var Z8=u((YVD,uT)=>{uT.exports={...a$(),...dJ(),...uv(),...YT(),...wT(),...a0(),...CT(),...rJ(),...H1(),...M9()}});var lT=u((QVD,mT)=>{var eq,fT,xT,yT,hT=!0;if(typeof process<"u")({FORCE_COLOR:eq,NODE_DISABLE_COLORS:fT,NO_COLOR:xT,TERM:yT}=process.env||{}),hT=process.stdout&&process.stdout.isTTY;var lD={enabled:!fT&&xT==null&&yT!=="dumb"&&(eq!=null&&eq!=="0"||hT),reset:oD(0,0),bold:oD(1,22),dim:oD(2,22),italic:oD(3,23),underline:oD(4,24),inverse:oD(7,27),hidden:oD(8,28),strikethrough:oD(9,29),black:oD(30,39),red:oD(31,39),green:oD(32,39),yellow:oD(33,39),blue:oD(34,39),magenta:oD(35,39),cyan:oD(36,39),white:oD(37,39),gray:oD(90,39),grey:oD(90,39),bgBlack:oD(40,49),bgRed:oD(41,49),bgGreen:oD(42,49),bgYellow:oD(43,49),bgBlue:oD(44,49),bgMagenta:oD(45,49),bgCyan:oD(46,49),bgWhite:oD(47,49)};function gT(D,$){let J=0,F,U="",X="";for(;J<D.length;J++)if(F=D[J],U+=F.open,X+=F.close,~$.indexOf(F.close))$=$.replace(F.rgx,F.close+F.open);return U+$+X}function fDD(D,$){let J={has:D,keys:$};return J.reset=lD.reset.bind(J),J.bold=lD.bold.bind(J),J.dim=lD.dim.bind(J),J.italic=lD.italic.bind(J),J.underline=lD.underline.bind(J),J.inverse=lD.inverse.bind(J),J.hidden=lD.hidden.bind(J),J.strikethrough=lD.strikethrough.bind(J),J.black=lD.black.bind(J),J.red=lD.red.bind(J),J.green=lD.green.bind(J),J.yellow=lD.yellow.bind(J),J.blue=lD.blue.bind(J),J.magenta=lD.magenta.bind(J),J.cyan=lD.cyan.bind(J),J.white=lD.white.bind(J),J.gray=lD.gray.bind(J),J.grey=lD.grey.bind(J),J.bgBlack=lD.bgBlack.bind(J),J.bgRed=lD.bgRed.bind(J),J.bgGreen=lD.bgGreen.bind(J),J.bgYellow=lD.bgYellow.bind(J),J.bgBlue=lD.bgBlue.bind(J),J.bgMagenta=lD.bgMagenta.bind(J),J.bgCyan=lD.bgCyan.bind(J),J.bgWhite=lD.bgWhite.bind(J),J}function oD(D,$){let J={open:`\x1B[${D}m`,close:`\x1B[${$}m`,rgx:new RegExp(`\\x1b\\[${$}m`,"g")};return function(F){if(this!==void 0&&this.has!==void 0)return!!~this.has.indexOf(D)||(this.has.push(D),this.keys.push(J)),F===void 0?this:lD.enabled?gT(this.keys,F+""):F+"";return F===void 0?fDD([D],[J]):lD.enabled?gT([J],F+""):F+""}}mT.exports=lD});var H8=u((iT)=>{Object.defineProperty(iT,"__esModule",{value:!0});iT.ancillary=iT.failure=iT.success=iT.input=iT.weak=iT.strong=void 0;var xDD=w0(),H6=xDD.__importDefault(lT());iT.strong=H6.default.bold;iT.weak=H6.default.dim;iT.input=H6.default.cyan;iT.success=H6.default.green;iT.failure=H6.default.red;iT.ancillary=H6.default.cyan;var yDD={strong:iT.strong,weak:iT.weak,input:iT.input,success:iT.success,failure:iT.failure,ancillary:iT.ancillary,log:{DEBUG:H6.default.magenta,INFO:H6.default.cyan,WARN:H6.default.yellow,ERROR:H6.default.red}};iT.default=yDD});var $K=u((tT)=>{Object.defineProperty(tT,"__esModule",{value:!0});tT.EscapeCode=void 0;var s0="\x1B[";class S${}tT.EscapeCode=S$;S$.cursorLeft=()=>`${s0}G`;S$.cursorUp=(D=1)=>`${s0}${D}A`;S$.cursorDown=(D=1)=>`${s0}${D}B`;S$.cursorForward=(D=1)=>`${s0}${D}C`;S$.cursorBackward=(D=1)=>`${s0}${D}D`;S$.cursorHide=()=>`${s0}?25l`;S$.cursorShow=()=>`${s0}?25h`;S$.eraseLine=()=>`${s0}2K`;S$.eraseLines=(D)=>{let $="";for(let J=0;J<D;J++)if($+=S$.eraseLine(),J<D-1)$+=S$.cursorUp();return`${$}${S$.cursorLeft()}`};S$.eraseUp=()=>`${s0}1J`;S$.eraseDown=()=>`${s0}J`;S$.eraseScreen=()=>`${s0}2J`});var Db=u((sT)=>{Object.defineProperty(sT,"__esModule",{value:!0});sT.Cursor=void 0;var mDD=w0(),lDD=mDD.__importDefault(Vq()),aT=$K();class _${static show(){if(_$.stream.isTTY)_$._isVisible=!0,_$.stream.write(aT.EscapeCode.cursorShow())}static hide(){if(_$.stream.isTTY){if(!_$._listenerAttached)(0,lDD.default)(()=>{_$.show()}),_$._listenerAttached=!0;_$._isVisible=!1,_$.stream.write(aT.EscapeCode.cursorHide())}}static toggle(){if(_$._isVisible)_$.hide();else _$.show()}}sT.Cursor=_$;_$.stream=process.stderr;_$._isVisible=!0;_$._listenerAttached=!1});var Jb=u((GVD,JK)=>{var $b=(D)=>{if(Number.isNaN(D))return!1;if(D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141))return!0;return!1};JK.exports=$b;JK.exports.default=$b});var Ub=u((IVD,Fb)=>{var iDD=(D)=>D&&D.exact?new RegExp(`^${"[\uD800-\uDBFF][\uDC00-\uDFFF]"}$`):new RegExp("[\uD800-\uDBFF][\uDC00-\uDFFF]","g");Fb.exports=iDD});var Yb=u((zVD,Xb)=>{Xb.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var FK=u((ZVD,qb)=>{var A9=Yb(),Qb={};for(let D of Object.keys(A9))Qb[A9[D]]=D;var YD={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};qb.exports=YD;for(let D of Object.keys(YD)){if(!("channels"in YD[D]))throw Error("missing channels property: "+D);if(!("labels"in YD[D]))throw Error("missing channel labels property: "+D);if(YD[D].labels.length!==YD[D].channels)throw Error("channel and label counts mismatch: "+D);let{channels:$,labels:J}=YD[D];delete YD[D].channels,delete YD[D].labels,Object.defineProperty(YD[D],"channels",{value:$}),Object.defineProperty(YD[D],"labels",{value:J})}YD.rgb.hsl=function(D){let $=D[0]/255,J=D[1]/255,F=D[2]/255,U=Math.min($,J,F),X=Math.max($,J,F),Y=X-U,Q,q;if(X===U)Q=0;else if($===X)Q=(J-F)/Y;else if(J===X)Q=2+(F-$)/Y;else if(F===X)Q=4+($-J)/Y;if(Q=Math.min(Q*60,360),Q<0)Q+=360;let K=(U+X)/2;if(X===U)q=0;else if(K<=0.5)q=Y/(X+U);else q=Y/(2-X-U);return[Q,q*100,K*100]};YD.rgb.hsv=function(D){let $,J,F,U,X,Y=D[0]/255,Q=D[1]/255,q=D[2]/255,K=Math.max(Y,Q,q),W=K-Math.min(Y,Q,q),G=function(I){return(K-I)/6/W+0.5};if(W===0)U=0,X=0;else{if(X=W/K,$=G(Y),J=G(Q),F=G(q),Y===K)U=F-J;else if(Q===K)U=0.3333333333333333+$-F;else if(q===K)U=0.6666666666666666+J-$;if(U<0)U+=1;else if(U>1)U-=1}return[U*360,X*100,K*100]};YD.rgb.hwb=function(D){let $=D[0],J=D[1],F=D[2],U=YD.rgb.hsl(D)[0],X=0.00392156862745098*Math.min($,Math.min(J,F));return F=1-0.00392156862745098*Math.max($,Math.max(J,F)),[U,X*100,F*100]};YD.rgb.cmyk=function(D){let $=D[0]/255,J=D[1]/255,F=D[2]/255,U=Math.min(1-$,1-J,1-F),X=(1-$-U)/(1-U)||0,Y=(1-J-U)/(1-U)||0,Q=(1-F-U)/(1-U)||0;return[X*100,Y*100,Q*100,U*100]};function dDD(D,$){return(D[0]-$[0])**2+(D[1]-$[1])**2+(D[2]-$[2])**2}YD.rgb.keyword=function(D){let $=Qb[D];if($)return $;let J=1/0,F;for(let U of Object.keys(A9)){let X=A9[U],Y=dDD(D,X);if(Y<J)J=Y,F=U}return F};YD.keyword.rgb=function(D){return A9[D]};YD.rgb.xyz=function(D){let $=D[0]/255,J=D[1]/255,F=D[2]/255;$=$>0.04045?(($+0.055)/1.055)**2.4:$/12.92,J=J>0.04045?((J+0.055)/1.055)**2.4:J/12.92,F=F>0.04045?((F+0.055)/1.055)**2.4:F/12.92;let U=$*0.4124+J*0.3576+F*0.1805,X=$*0.2126+J*0.7152+F*0.0722,Y=$*0.0193+J*0.1192+F*0.9505;return[U*100,X*100,Y*100]};YD.rgb.lab=function(D){let $=YD.rgb.xyz(D),J=$[0],F=$[1],U=$[2];J/=95.047,F/=100,U/=108.883,J=J>0.008856?J**0.3333333333333333:7.787*J+0.13793103448275862,F=F>0.008856?F**0.3333333333333333:7.787*F+0.13793103448275862,U=U>0.008856?U**0.3333333333333333:7.787*U+0.13793103448275862;let X=116*F-16,Y=500*(J-F),Q=200*(F-U);return[X,Y,Q]};YD.hsl.rgb=function(D){let $=D[0]/360,J=D[1]/100,F=D[2]/100,U,X,Y;if(J===0)return Y=F*255,[Y,Y,Y];if(F<0.5)U=F*(1+J);else U=F+J-F*J;let Q=2*F-U,q=[0,0,0];for(let K=0;K<3;K++){if(X=$+0.3333333333333333*-(K-1),X<0)X++;if(X>1)X--;if(6*X<1)Y=Q+(U-Q)*6*X;else if(2*X<1)Y=U;else if(3*X<2)Y=Q+(U-Q)*(0.6666666666666666-X)*6;else Y=Q;q[K]=Y*255}return q};YD.hsl.hsv=function(D){let $=D[0],J=D[1]/100,F=D[2]/100,U=J,X=Math.max(F,0.01);F*=2,J*=F<=1?F:2-F,U*=X<=1?X:2-X;let Y=(F+J)/2,Q=F===0?2*U/(X+U):2*J/(F+J);return[$,Q*100,Y*100]};YD.hsv.rgb=function(D){let $=D[0]/60,J=D[1]/100,F=D[2]/100,U=Math.floor($)%6,X=$-Math.floor($),Y=255*F*(1-J),Q=255*F*(1-J*X),q=255*F*(1-J*(1-X));switch(F*=255,U){case 0:return[F,q,Y];case 1:return[Q,F,Y];case 2:return[Y,F,q];case 3:return[Y,Q,F];case 4:return[q,Y,F];case 5:return[F,Y,Q]}};YD.hsv.hsl=function(D){let $=D[0],J=D[1]/100,F=D[2]/100,U=Math.max(F,0.01),X,Y;Y=(2-J)*F;let Q=(2-J)*U;return X=J*U,X/=Q<=1?Q:2-Q,X=X||0,Y/=2,[$,X*100,Y*100]};YD.hwb.rgb=function(D){let $=D[0]/360,J=D[1]/100,F=D[2]/100,U=J+F,X;if(U>1)J/=U,F/=U;let Y=Math.floor(6*$),Q=1-F;if(X=6*$-Y,(Y&1)!==0)X=1-X;let q=J+X*(Q-J),K,W,G;switch(Y){default:case 6:case 0:K=Q,W=q,G=J;break;case 1:K=q,W=Q,G=J;break;case 2:K=J,W=Q,G=q;break;case 3:K=J,W=q,G=Q;break;case 4:K=q,W=J,G=Q;break;case 5:K=Q,W=J,G=q;break}return[K*255,W*255,G*255]};YD.cmyk.rgb=function(D){let $=D[0]/100,J=D[1]/100,F=D[2]/100,U=D[3]/100,X=1-Math.min(1,$*(1-U)+U),Y=1-Math.min(1,J*(1-U)+U),Q=1-Math.min(1,F*(1-U)+U);return[X*255,Y*255,Q*255]};YD.xyz.rgb=function(D){let $=D[0]/100,J=D[1]/100,F=D[2]/100,U,X,Y;return U=$*3.2406+J*-1.5372+F*-0.4986,X=$*-0.9689+J*1.8758+F*0.0415,Y=$*0.0557+J*-0.204+F*1.057,U=U>0.0031308?1.055*U**0.4166666666666667-0.055:U*12.92,X=X>0.0031308?1.055*X**0.4166666666666667-0.055:X*12.92,Y=Y>0.0031308?1.055*Y**0.4166666666666667-0.055:Y*12.92,U=Math.min(Math.max(0,U),1),X=Math.min(Math.max(0,X),1),Y=Math.min(Math.max(0,Y),1),[U*255,X*255,Y*255]};YD.xyz.lab=function(D){let $=D[0],J=D[1],F=D[2];$/=95.047,J/=100,F/=108.883,$=$>0.008856?$**0.3333333333333333:7.787*$+0.13793103448275862,J=J>0.008856?J**0.3333333333333333:7.787*J+0.13793103448275862,F=F>0.008856?F**0.3333333333333333:7.787*F+0.13793103448275862;let U=116*J-16,X=500*($-J),Y=200*(J-F);return[U,X,Y]};YD.lab.xyz=function(D){let $=D[0],J=D[1],F=D[2],U,X,Y;X=($+16)/116,U=J/500+X,Y=X-F/200;let Q=X**3,q=U**3,K=Y**3;return X=Q>0.008856?Q:(X-0.13793103448275862)/7.787,U=q>0.008856?q:(U-0.13793103448275862)/7.787,Y=K>0.008856?K:(Y-0.13793103448275862)/7.787,U*=95.047,X*=100,Y*=108.883,[U,X,Y]};YD.lab.lch=function(D){let $=D[0],J=D[1],F=D[2],U;if(U=Math.atan2(F,J)*360/2/Math.PI,U<0)U+=360;let Y=Math.sqrt(J*J+F*F);return[$,Y,U]};YD.lch.lab=function(D){let $=D[0],J=D[1],U=D[2]/360*2*Math.PI,X=J*Math.cos(U),Y=J*Math.sin(U);return[$,X,Y]};YD.rgb.ansi16=function(D,$=null){let[J,F,U]=D,X=$===null?YD.rgb.hsv(D)[2]:$;if(X=Math.round(X/50),X===0)return 30;let Y=30+(Math.round(U/255)<<2|Math.round(F/255)<<1|Math.round(J/255));if(X===2)Y+=60;return Y};YD.hsv.ansi16=function(D){return YD.rgb.ansi16(YD.hsv.rgb(D),D[2])};YD.rgb.ansi256=function(D){let $=D[0],J=D[1],F=D[2];if($===J&&J===F){if($<8)return 16;if($>248)return 231;return Math.round(($-8)/247*24)+232}return 16+36*Math.round($/255*5)+6*Math.round(J/255*5)+Math.round(F/255*5)};YD.ansi16.rgb=function(D){let $=D%10;if($===0||$===7){if(D>50)$+=3.5;return $=$/10.5*255,[$,$,$]}let J=(~~(D>50)+1)*0.5,F=($&1)*J*255,U=($>>1&1)*J*255,X=($>>2&1)*J*255;return[F,U,X]};YD.ansi256.rgb=function(D){if(D>=232){let X=(D-232)*10+8;return[X,X,X]}D-=16;let $,J=Math.floor(D/36)/5*255,F=Math.floor(($=D%36)/6)/5*255,U=$%6/5*255;return[J,F,U]};YD.rgb.hex=function(D){let J=(((Math.round(D[0])&255)<<16)+((Math.round(D[1])&255)<<8)+(Math.round(D[2])&255)).toString(16).toUpperCase();return"000000".substring(J.length)+J};YD.hex.rgb=function(D){let $=D.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!$)return[0,0,0];let J=$[0];if($[0].length===3)J=J.split("").map((Q)=>{return Q+Q}).join("");let F=parseInt(J,16),U=F>>16&255,X=F>>8&255,Y=F&255;return[U,X,Y]};YD.rgb.hcg=function(D){let $=D[0]/255,J=D[1]/255,F=D[2]/255,U=Math.max(Math.max($,J),F),X=Math.min(Math.min($,J),F),Y=U-X,Q,q;if(Y<1)Q=X/(1-Y);else Q=0;if(Y<=0)q=0;else if(U===$)q=(J-F)/Y%6;else if(U===J)q=2+(F-$)/Y;else q=4+($-J)/Y;return q/=6,q%=1,[q*360,Y*100,Q*100]};YD.hsl.hcg=function(D){let $=D[1]/100,J=D[2]/100,F=J<0.5?2*$*J:2*$*(1-J),U=0;if(F<1)U=(J-0.5*F)/(1-F);return[D[0],F*100,U*100]};YD.hsv.hcg=function(D){let $=D[1]/100,J=D[2]/100,F=$*J,U=0;if(F<1)U=(J-F)/(1-F);return[D[0],F*100,U*100]};YD.hcg.rgb=function(D){let $=D[0]/360,J=D[1]/100,F=D[2]/100;if(J===0)return[F*255,F*255,F*255];let U=[0,0,0],X=$%1*6,Y=X%1,Q=1-Y,q=0;switch(Math.floor(X)){case 0:U[0]=1,U[1]=Y,U[2]=0;break;case 1:U[0]=Q,U[1]=1,U[2]=0;break;case 2:U[0]=0,U[1]=1,U[2]=Y;break;case 3:U[0]=0,U[1]=Q,U[2]=1;break;case 4:U[0]=Y,U[1]=0,U[2]=1;break;default:U[0]=1,U[1]=0,U[2]=Q}return q=(1-J)*F,[(J*U[0]+q)*255,(J*U[1]+q)*255,(J*U[2]+q)*255]};YD.hcg.hsv=function(D){let $=D[1]/100,J=D[2]/100,F=$+J*(1-$),U=0;if(F>0)U=$/F;return[D[0],U*100,F*100]};YD.hcg.hsl=function(D){let $=D[1]/100,F=D[2]/100*(1-$)+0.5*$,U=0;if(F>0&&F<0.5)U=$/(2*F);else if(F>=0.5&&F<1)U=$/(2*(1-F));return[D[0],U*100,F*100]};YD.hcg.hwb=function(D){let $=D[1]/100,J=D[2]/100,F=$+J*(1-$);return[D[0],(F-$)*100,(1-F)*100]};YD.hwb.hcg=function(D){let $=D[1]/100,F=1-D[2]/100,U=F-$,X=0;if(U<1)X=(F-U)/(1-U);return[D[0],U*100,X*100]};YD.apple.rgb=function(D){return[D[0]/65535*255,D[1]/65535*255,D[2]/65535*255]};YD.rgb.apple=function(D){return[D[0]/255*65535,D[1]/255*65535,D[2]/255*65535]};YD.gray.rgb=function(D){return[D[0]/100*255,D[0]/100*255,D[0]/100*255]};YD.gray.hsl=function(D){return[0,0,D[0]]};YD.gray.hsv=YD.gray.hsl;YD.gray.hwb=function(D){return[0,100,D[0]]};YD.gray.cmyk=function(D){return[0,0,0,D[0]]};YD.gray.lab=function(D){return[D[0],0,0]};YD.gray.hex=function(D){let $=Math.round(D[0]/100*255)&255,F=(($<<16)+($<<8)+$).toString(16).toUpperCase();return"000000".substring(F.length)+F};YD.rgb.gray=function(D){return[(D[0]+D[1]+D[2])/3/255*100]}});var Wb=u((HVD,Kb)=>{var tJ=FK();function cDD(){let D={},$=Object.keys(tJ);for(let J=$.length,F=0;F<J;F++)D[$[F]]={distance:-1,parent:null};return D}function nDD(D){let $=cDD(),J=[D];$[D].distance=0;while(J.length){let F=J.pop(),U=Object.keys(tJ[F]);for(let X=U.length,Y=0;Y<X;Y++){let Q=U[Y],q=$[Q];if(q.distance===-1)q.distance=$[F].distance+1,q.parent=F,J.unshift(Q)}}return $}function pDD(D,$){return function(J){return $(D(J))}}function rDD(D,$){let J=[$[D].parent,D],F=tJ[$[D].parent][D],U=$[D].parent;while($[U].parent)J.unshift($[U].parent),F=pDD(tJ[$[U].parent][U],F),U=$[U].parent;return F.conversion=J,F}Kb.exports=function(D){let $=nDD(D),J={},F=Object.keys($);for(let U=F.length,X=0;X<U;X++){let Y=F[X];if($[Y].parent===null)continue;J[Y]=rDD(Y,$)}return J}});var XK=u((BVD,Gb)=>{var UK=FK(),tDD=Wb(),B8={},oDD=Object.keys(UK);function aDD(D){let $=function(...J){let F=J[0];if(F===void 0||F===null)return F;if(F.length>1)J=F;return D(J)};if("conversion"in D)$.conversion=D.conversion;return $}function sDD(D){let $=function(...J){let F=J[0];if(F===void 0||F===null)return F;if(F.length>1)J=F;let U=D(J);if(typeof U==="object")for(let X=U.length,Y=0;Y<X;Y++)U[Y]=Math.round(U[Y]);return U};if("conversion"in D)$.conversion=D.conversion;return $}oDD.forEach((D)=>{B8[D]={},Object.defineProperty(B8[D],"channels",{value:UK[D].channels}),Object.defineProperty(B8[D],"labels",{value:UK[D].labels});let $=tDD(D);Object.keys($).forEach((F)=>{let U=$[F];B8[D][F]=sDD(U),B8[D][F].raw=aDD(U)})});Gb.exports=B8});var Ob=u((OVD,Bb)=>{var Ib=(D,$)=>(...J)=>{return`\x1B[${D(...J)+$}m`},zb=(D,$)=>(...J)=>{let F=D(...J);return`\x1B[${38+$};5;${F}m`},Zb=(D,$)=>(...J)=>{let F=D(...J);return`\x1B[${38+$};2;${F[0]};${F[1]};${F[2]}m`},oJ=(D)=>D,Hb=(D,$,J)=>[D,$,J],O8=(D,$,J)=>{Object.defineProperty(D,$,{get:()=>{let F=J();return Object.defineProperty(D,$,{value:F,enumerable:!0,configurable:!0}),F},enumerable:!0,configurable:!0})},YK,j8=(D,$,J,F)=>{if(YK===void 0)YK=XK();let U=F?10:0,X={};for(let[Y,Q]of Object.entries(YK)){let q=Y==="ansi16"?"ansi":Y;if(Y===$)X[q]=D(J,U);else if(typeof Q==="object")X[q]=D(Q[$],U)}return X};function eDD(){let D=new Map,$={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};$.color.gray=$.color.blackBright,$.bgColor.bgGray=$.bgColor.bgBlackBright,$.color.grey=$.color.blackBright,$.bgColor.bgGrey=$.bgColor.bgBlackBright;for(let[J,F]of Object.entries($)){for(let[U,X]of Object.entries(F))$[U]={open:`\x1B[${X[0]}m`,close:`\x1B[${X[1]}m`},F[U]=$[U],D.set(X[0],X[1]);Object.defineProperty($,J,{value:F,enumerable:!1})}return Object.defineProperty($,"codes",{value:D,enumerable:!1}),$.color.close="\x1B[39m",$.bgColor.close="\x1B[49m",O8($.color,"ansi",()=>j8(Ib,"ansi16",oJ,!1)),O8($.color,"ansi256",()=>j8(zb,"ansi256",oJ,!1)),O8($.color,"ansi16m",()=>j8(Zb,"rgb",Hb,!1)),O8($.bgColor,"ansi",()=>j8(Ib,"ansi16",oJ,!0)),O8($.bgColor,"ansi256",()=>j8(zb,"ansi256",oJ,!0)),O8($.bgColor,"ansi16m",()=>j8(Zb,"rgb",Hb,!0)),$}Object.defineProperty(Bb,"exports",{enumerable:!0,get:eDD})});var wb=u((jVD,Lb)=>{var D$D=Jb(),$$D=Ub(),jb=Ob(),Vb=["\x1B",""],aJ=(D)=>`${Vb[0]}[${D}m`,Nb=(D,$,J)=>{let F=[];D=[...D];for(let U of D){let X=U;if(U.includes(";"))U=U.split(";")[0][0]+"0";let Y=jb.codes.get(Number.parseInt(U,10));if(Y){let Q=D.indexOf(Y.toString());if(Q===-1)F.push(aJ($?Y:X));else D.splice(Q,1)}else if($){F.push(aJ(0));break}else F.push(aJ(X))}if($){if(F=F.filter((U,X)=>F.indexOf(U)===X),J!==void 0){let U=aJ(jb.codes.get(Number.parseInt(J,10)));F=F.reduce((X,Y)=>Y===U?[Y,...X]:[...X,Y],[])}}return F.join("")};Lb.exports=(D,$,J)=>{let F=[...D],U=[],X=typeof J==="number"?J:F.length,Y=!1,Q,q=0,K="";for(let[W,G]of F.entries()){let I=!1;if(Vb.includes(G)){let z=/\d[^m]*/.exec(D.slice(W,W+18));if(Q=z&&z.length>0?z[0]:void 0,q<X){if(Y=!0,Q!==void 0)U.push(Q)}}else if(Y&&G==="m")Y=!1,I=!0;if(!Y&&!I)q++;if(!$$D({exact:!0}).test(G)&&D$D(G.codePointAt())){if(q++,typeof J!=="number")X++}if(q>$&&q<=X)K+=G;else if(q===$&&!Y&&Q!==void 0)K=Nb(U);else if(q>=X){K+=Nb(U,!0,Q);break}}return K}});var Mb=u((NVD,Rb)=>{Rb.exports=({onlyFirst:D=!1}={})=>{let $=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp($,D?void 0:"g")}});var sJ=u((VVD,Eb)=>{var J$D=Mb();Eb.exports=(D)=>typeof D==="string"?D.replace(J$D(),""):D});var vb=u((LVD,QK)=>{var Ab=(D)=>{if(Number.isNaN(D))return!1;if(D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141))return!0;return!1};QK.exports=Ab;QK.exports.default=Ab});var bb=u((wVD,Tb)=>{Tb.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var KK=u((RVD,qK)=>{var F$D=sJ(),U$D=vb(),X$D=bb(),Pb=(D)=>{if(typeof D!=="string"||D.length===0)return 0;if(D=F$D(D),D.length===0)return 0;D=D.replace(X$D()," ");let $=0;for(let J=0;J<D.length;J++){let F=D.codePointAt(J);if(F<=31||F>=127&&F<=159)continue;if(F>=768&&F<=879)continue;if(F>65535)J++;$+=U$D(F)?2:1}return $};qK.exports=Pb;qK.exports.default=Pb});var gb=u((MVD,ub)=>{var Sb=(D,$)=>(...J)=>{return`\x1B[${D(...J)+$}m`},_b=(D,$)=>(...J)=>{let F=D(...J);return`\x1B[${38+$};5;${F}m`},kb=(D,$)=>(...J)=>{let F=D(...J);return`\x1B[${38+$};2;${F[0]};${F[1]};${F[2]}m`},eJ=(D)=>D,Cb=(D,$,J)=>[D,$,J],N8=(D,$,J)=>{Object.defineProperty(D,$,{get:()=>{let F=J();return Object.defineProperty(D,$,{value:F,enumerable:!0,configurable:!0}),F},enumerable:!0,configurable:!0})},WK,V8=(D,$,J,F)=>{if(WK===void 0)WK=XK();let U=F?10:0,X={};for(let[Y,Q]of Object.entries(WK)){let q=Y==="ansi16"?"ansi":Y;if(Y===$)X[q]=D(J,U);else if(typeof Q==="object")X[q]=D(Q[$],U)}return X};function Y$D(){let D=new Map,$={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};$.color.gray=$.color.blackBright,$.bgColor.bgGray=$.bgColor.bgBlackBright,$.color.grey=$.color.blackBright,$.bgColor.bgGrey=$.bgColor.bgBlackBright;for(let[J,F]of Object.entries($)){for(let[U,X]of Object.entries(F))$[U]={open:`\x1B[${X[0]}m`,close:`\x1B[${X[1]}m`},F[U]=$[U],D.set(X[0],X[1]);Object.defineProperty($,J,{value:F,enumerable:!1})}return Object.defineProperty($,"codes",{value:D,enumerable:!1}),$.color.close="\x1B[39m",$.bgColor.close="\x1B[49m",N8($.color,"ansi",()=>V8(Sb,"ansi16",eJ,!1)),N8($.color,"ansi256",()=>V8(_b,"ansi256",eJ,!1)),N8($.color,"ansi16m",()=>V8(kb,"rgb",Cb,!1)),N8($.bgColor,"ansi",()=>V8(Sb,"ansi16",eJ,!0)),N8($.bgColor,"ansi256",()=>V8(_b,"ansi256",eJ,!0)),N8($.bgColor,"ansi16m",()=>V8(kb,"rgb",Cb,!0)),$}Object.defineProperty(ub,"exports",{enumerable:!0,get:Y$D})});var hb=u((EVD,yb)=>{var v9=KK(),Q$D=sJ(),q$D=gb(),DF=new Set(["\x1B",""]),fb=(D)=>`${DF.values().next().value}[${D}m`,xb=(D)=>`${DF.values().next().value}]8;;${D}\x07`,K$D=(D)=>D.split(" ").map(($)=>v9($)),GK=(D,$,J)=>{let F=[...$],U=!1,X=!1,Y=v9(Q$D(D[D.length-1]));for(let[Q,q]of F.entries()){let K=v9(q);if(Y+K<=J)D[D.length-1]+=q;else D.push(q),Y=0;if(DF.has(q))U=!0,X=F.slice(Q+1).join("").startsWith("]8;;");if(U){if(X){if(q==="\x07")U=!1,X=!1}else if(q==="m")U=!1;continue}if(Y+=K,Y===J&&Q<F.length-1)D.push(""),Y=0}if(!Y&&D[D.length-1].length>0&&D.length>1)D[D.length-2]+=D.pop()},W$D=(D)=>{let $=D.split(" "),J=$.length;while(J>0){if(v9($[J-1])>0)break;J--}if(J===$.length)return D;return $.slice(0,J).join(" ")+$.slice(J).join("")},G$D=(D,$,J={})=>{if(J.trim!==!1&&D.trim()==="")return"";let F="",U,X,Y=K$D(D),Q=[""];for(let[K,W]of D.split(" ").entries()){if(J.trim!==!1)Q[Q.length-1]=Q[Q.length-1].trimStart();let G=v9(Q[Q.length-1]);if(K!==0){if(G>=$&&(J.wordWrap===!1||J.trim===!1))Q.push(""),G=0;if(G>0||J.trim===!1)Q[Q.length-1]+=" ",G++}if(J.hard&&Y[K]>$){let I=$-G,z=1+Math.floor((Y[K]-I-1)/$);if(Math.floor((Y[K]-1)/$)<z)Q.push("");GK(Q,W,$);continue}if(G+Y[K]>$&&G>0&&Y[K]>0){if(J.wordWrap===!1&&G<$){GK(Q,W,$);continue}Q.push("")}if(G+Y[K]>$&&J.wordWrap===!1){GK(Q,W,$);continue}Q[Q.length-1]+=W}if(J.trim!==!1)Q=Q.map(W$D);let q=[...Q.join(`
`)];for(let[K,W]of q.entries()){if(F+=W,DF.has(W)){let{groups:I}=new RegExp("(?:\\[(?<code>\\d+)m|\\]8;;(?<uri>.*)\x07)").exec(q.slice(K).join(""))||{groups:{}};if(I.code!==void 0){let z=Number.parseFloat(I.code);U=z===39?void 0:z}else if(I.uri!==void 0)X=I.uri.length===0?void 0:I.uri}let G=q$D.codes.get(Number(U));if(q[K+1]===`
`){if(X)F+=xb("");if(U&&G)F+=fb(G)}else if(W===`
`){if(U&&G)F+=fb(U);if(X)F+=xb(X)}}return F};yb.exports=(D,$,J)=>{return String(D).normalize().replace(/\r\n/g,`
`).split(`
`).map((F)=>G$D(F,$,J)).join(`
`)}});var ib=u((AVD,lb)=>{var I$D=FD("os"),mb=I$D.homedir();lb.exports=(D)=>{if(typeof D!=="string")throw TypeError(`Expected a string, got ${typeof D}`);return mb?D.replace(/^~(?=$|\/|\\)/,mb):D}});var sb=u((tb)=>{Object.defineProperty(tb,"__esModule",{value:!0});tb.columnar=tb.generateFillSpaceStringList=tb.expandPath=tb.prettyPath=tb.wordWrap=tb.indent=tb.TTY_WIDTH=tb.stripAnsi=tb.stringWidth=tb.sliceAnsi=void 0;var db=w0(),z$D=db.__importStar(FD("os")),x6=db.__importStar(FD("path")),cb=wb();tb.sliceAnsi=cb;var $F=KK();tb.stringWidth=$F;var Z$D=sJ();tb.stripAnsi=Z$D;var H$D=hb(),B$D=ib(),O$D=80,j$D=120;tb.TTY_WIDTH=process.stdout.columns?Math.max(O$D,Math.min(process.stdout.columns,j$D)):1/0;function nb(D=4){return" ".repeat(D)}tb.indent=nb;function N$D(D,{width:$=tb.TTY_WIDTH,indentation:J=0,append:F=""}){return H$D(D,$-J-F.length,{trim:!0}).split(`
`).join(`${F}
${nb(J)}`)}tb.wordWrap=N$D;function V$D(D){D=pb(D);let $=process.cwd(),J=x6.dirname(D),F=z$D.homedir(),U=Math.abs(J.split(x6.sep).length-$.split(x6.sep).length);if($===J)return"."+x6.sep+x6.basename(D);else if(J.startsWith($))return"."+x6.sep+D.substring($.length+1);else if(U<=2){let X=x6.relative($,D);return X?X:"."}else if(D===F)return"~";else if(D.indexOf(F)===0)return"~"+x6.sep+D.substring(F.length+1);return D}tb.prettyPath=V$D;function pb(D){return x6.resolve(B$D(D))}tb.expandPath=pb;function rb(D,$=1,J=" "){if($<2)$=2;let F=Math.max(...D.map((Y)=>$F(Y))),U=F>$?F+1:$,X=J.repeat(U);return D.map((Y)=>cb(X,0,U-$F(Y)))}tb.generateFillSpaceStringList=rb;function L$D(D,{hsep:$="-",vsep:J="|",headers:F}){let U=F?!0:!1;if(!D[0])return"";let X=F?F.length:D[0].length,Y=F?F.map((W)=>[W]):D[0].map(()=>[]);for(let W of D){let G=0,I=W.map((z)=>{let Z=z.split(`
`);return G=Math.max(G,Z.length),Z});for(let z in W)if(Y[z])Y[z].push(...I[z],...Array(G-I[z].length).fill(""))}let Q=Y.map((W,G)=>{if(G<X-1){let I=rb(W);return W.map((z,Z)=>`${z}${I[Z]}${J===""?"":`${J} `}`)}else return W}),q=0,K=Q.reduce((W,G)=>{return W.map((I,z)=>{let Z=W[z]+G[z];return q=Math.max(q,$F(Z)),Z})});if(U&&$!=="")K.splice(1,0,$.repeat(q));return K.join(`
`)}tb.columnar=L$D});var JP=u((eb)=>{Object.defineProperty(eb,"__esModule",{value:!0});eb.TERMINAL_INFO=eb.CI_ENVIRONMENT_VARIABLES_DETECTED=eb.CI_ENVIRONMENT_VARIABLES=void 0;var P$D=w0(),S$D=lq(),_$D=P$D.__importStar(FD("os")),k$D=(0,S$D.debug)("ionic:utils-terminal:info");eb.CI_ENVIRONMENT_VARIABLES=["CI","BUILD_ID","BUILD_NUMBER","BITBUCKET_COMMIT","CODEBUILD_BUILD_ARN","GITHUB_ACTIONS"];eb.CI_ENVIRONMENT_VARIABLES_DETECTED=eb.CI_ENVIRONMENT_VARIABLES.filter((D)=>!!process.env[D]);function C$D(){let{shell:D}=_$D.userInfo();if(D)return D;if(process.env.SHELL)return process.env.SHELL;if(process.platform==="darwin")return"/bin/bash";if(process.platform==="win32")return process.env.COMSPEC?process.env.COMSPEC:"cmd.exe";return"/bin/sh"}if(eb.CI_ENVIRONMENT_VARIABLES_DETECTED.length>0)k$D(`Environment variables for CI detected: ${eb.CI_ENVIRONMENT_VARIABLES_DETECTED.join(", ")}`);eb.TERMINAL_INFO=Object.freeze({ci:eb.CI_ENVIRONMENT_VARIABLES_DETECTED.length>0,shell:C$D(),tty:Boolean(process.stdin.isTTY&&process.stdout.isTTY&&process.stderr.isTTY),windows:process.platform==="win32"||!!(process.env.OSTYPE&&/^(msys|cygwin)$/.test(process.env.OSTYPE)||process.env.MSYSTEM&&/^MINGW(32|64)$/.test(process.env.MSYSTEM))})});var IK=u((L8)=>{Object.defineProperty(L8,"__esModule",{value:!0});var FF=w0();FF.__exportStar($K(),L8);FF.__exportStar(Db(),L8);FF.__exportStar(sb(),L8);FF.__exportStar(JP(),L8)});var XF=u((FP)=>{Object.defineProperty(FP,"__esModule",{value:!0});FP.isFatal=FP.fatal=FP.FatalException=FP.BaseException=void 0;class zK extends Error{constructor(D,$){super(D);this.message=D,this.code=$}}FP.BaseException=zK;class UF extends zK{constructor(D,$=1){super(D,"FATAL");this.message=D,this.exitCode=$}}FP.FatalException=UF;function u$D(D){throw new UF(D)}FP.fatal=u$D;function g$D(D){return D&&D instanceof UF}FP.isFatal=g$D});var HK={};M$(HK,{wordWrap:()=>c$D,stripAnsi:()=>d$D,stringWidth:()=>i$D,sliceAnsi:()=>l$D,indent:()=>m$D,createDefaultLogger:()=>n$D,TTY_WIDTH:()=>h$D,TTYOutputStrategy:()=>YP,StreamOutputStrategy:()=>ZK,NO_COLORS:()=>XP,Logger:()=>QP,LOGGER_LEVELS:()=>p$D});class ZK{constructor(){this.colors=XP,this.stream=process.stdout}}class QP{constructor(){}info(){}warn(){}error(){}debug(){}}var h$D=80,m$D=(D)=>D,l$D=(D)=>D,i$D=(D)=>D.length,d$D=(D)=>D,c$D=(D)=>D,n$D=()=>({info:console.log,warn:console.warn,error:console.error,debug:console.debug}),XP,YP,p$D;var BK=S(()=>{XP={};YP=class YP extends ZK{constructor(D){super();this.options=D}};p$D={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN",ERROR:"ERROR"}});var WP=u((KP)=>{Object.defineProperty(KP,"__esModule",{value:!0});KP.isInteractive=KP.checkInteractive=void 0;var r$D=w0(),qP=IK(),t$D=r$D.__importDefault(H8()),o$D=T9(),a$D=(...D)=>{if(KP.isInteractive())return!0;if(!D.length)return!1;if(D.filter(($)=>!$).length)return o$D.logger.error(`Non-interactive shell detected.
Run the command with ${t$D.default.input("--help")} to see a list of arguments that must be provided.`),!1;return!0};KP.checkInteractive=a$D;var s$D=()=>qP.TERMINAL_INFO.tty&&!qP.TERMINAL_INFO.ci;KP.isInteractive=s$D});var YF={};M$(YF,{default:()=>GP});function GP(){throw Error("Prompts are not supported in this CLI build")}var T9=u((zP)=>{Object.defineProperty(zP,"__esModule",{value:!0});zP.logSuccess=zP.logPrompt=zP.logger=zP.output=void 0;var jK=w0(),A4=(BK(),D1(HK)),v4=jK.__importDefault(H8()),D0D=WP(),IP={colors:v4.default,stream:process.argv.includes("--json")?process.stderr:process.stdout};zP.output=(0,D0D.isInteractive)()?new A4.TTYOutputStrategy(IP):new A4.StreamOutputStrategy(IP);zP.logger=(0,A4.createDefaultLogger)({output:zP.output,formatterOptions:{titleize:!1,tags:new Map([[A4.LOGGER_LEVELS.DEBUG,v4.default.log.DEBUG("[debug]")],[A4.LOGGER_LEVELS.INFO,v4.default.log.INFO("[info]")],[A4.LOGGER_LEVELS.WARN,v4.default.log.WARN("[warn]")],[A4.LOGGER_LEVELS.ERROR,v4.default.log.ERROR("[error]")]])}});async function $0D(D,$){let{wordWrap:J}=await Promise.resolve().then(()=>jK.__importStar((BK(),D1(HK)))),{prompt:F}=await Promise.resolve().then(()=>jK.__importStar(D1(YF)));return zP.logger.log({msg:`${v4.default.input("[?]")} ${J(D,{indentation:4})}`,logger:zP.logger,format:!1}),F($,{onCancel:()=>process.exit(1)})}zP.logPrompt=$0D;function J0D(D){zP.logger.msg(`${v4.default.success("[success]")} ${D}`)}zP.logSuccess=J0D});var b9=u((BP)=>{Object.defineProperty(BP,"__esModule",{value:!0});BP.resolveNode=BP.requireTS=void 0;var U0D=FD("fs"),X0D=Z8(),Y0D=FD("path"),Q0D=FD("url");function q0D(D){return typeof D.transpileModule==="function"}var NK;function K0D(){if(!NK)NK=Function("specifier","return import(specifier)");return NK}var W0D=async(D,$)=>{let J=(0,Y0D.resolve)($);if(!q0D(D))try{return await K0D()((0,Q0D.pathToFileURL)(J).href)}catch(U){if((U===null||U===void 0?void 0:U.code)==="ERR_UNKNOWN_FILE_EXTENSION")throw Error(`Your installed version of TypeScript (${D.version}) no longer provides the compiler API Capacitor previously used to load .ts config files, and your Node.js runtime (${process.version}) doesn't support loading them natively either.
Upgrade to Node.js 22.6+ (running with --experimental-strip-types), or Node.js 23.6+, to continue using capacitor.config.ts.`);throw U}delete FD.cache[J],FD.extensions[".ts"]=(U,X)=>{var Y;let Q=(0,X0D.readFileSync)(X,"utf8");if(X.endsWith(".ts"))Q=D.transpileModule(Q,{fileName:X,compilerOptions:{module:D.ModuleKind.CommonJS,moduleResolution:D.ModuleResolutionKind.NodeJs,esModuleInterop:!0,strict:!0,target:D.ScriptTarget.ES2017},reportDiagnostics:!0}).outputText;else Q=Q.replace(/export\s+\w+\s+(\w+)/gm,"exports.$1");(Y=U._compile)===null||Y===void 0||Y.call(U,Q,X)};let F=FD(J);return delete FD.extensions[".ts"],F};BP.requireTS=W0D;function G0D(D,...$){try{return FD.resolve($.join("/"),{paths:[D]})}catch(J){let F=[D,"node_modules",...$].join("/");if((0,U0D.existsSync)(F))return F;return null}}BP.resolveNode=G0D});var jP={};M$(jP,{default:()=>z0D});var z0D;var NP=S(()=>{z0D={}});var wP=u((VP)=>{Object.defineProperty(VP,"__esModule",{value:!0});VP.buildXmlElement=VP.writeXML=VP.parseXML=VP.readXML=void 0;var Z0D=w0(),H0D=Z8(),P9=Z0D.__importDefault((NP(),D1(jP)));async function B0D(D){var $;try{let J=await(0,H0D.readFile)(D,{encoding:"utf-8"});try{return await P9.default.parseStringPromise(J)}catch(F){throw`Error parsing: ${D}, ${($=F.stack)!==null&&$!==void 0?$:F}`}}catch(J){throw`Unable to read: ${D}`}}VP.readXML=B0D;function O0D(D,$){let J=$!==void 0?new P9.default.Parser({...$}):new P9.default.Parser,F;return J.parseString(D,(U,X)=>{if(!U)F=X}),F}VP.parseXML=O0D;async function j0D(D){return new Promise(($)=>{let F=new P9.default.Builder({headless:!0,explicitRoot:!1,rootName:"deleteme"}).buildObject(D);F=F.replace("<deleteme>","").replace("</deleteme>",""),$(F)})}VP.writeXML=j0D;function N0D(D,$){return new P9.default.Builder({headless:!0,explicitRoot:!1,rootName:$}).buildObject(D)}VP.buildXmlElement=N0D});var bP=u((vP)=>{Object.defineProperty(vP,"__esModule",{value:!0});vP.getAllElements=vP.getFilePath=vP.getAssets=vP.getJSModules=vP.getPluginType=vP.getPlatformElement=vP.getPluginPlatform=vP.printPlugins=vP.fixName=vP.getDependencies=vP.resolvePlugin=vP.getPlugins=vP.getIncludedPluginPackages=void 0;var R0D=w0(),M0D=Z8(),VK=FD("path"),w8=R0D.__importDefault(H8()),E0D=XF(),A0D=T9(),RP=b9(),v0D=wP();function MP(D,$){var J,F,U,X;let{extConfig:Y}=D.app;switch($){case"android":return(F=(J=Y.android)===null||J===void 0?void 0:J.includePlugins)!==null&&F!==void 0?F:Y.includePlugins;case"ios":return(X=(U=Y.ios)===null||U===void 0?void 0:U.includePlugins)!==null&&X!==void 0?X:Y.includePlugins}}vP.getIncludedPluginPackages=MP;async function T0D(D,$){var J;let F=(J=MP(D,$))!==null&&J!==void 0?J:AP(D);return(await Promise.all(F.map(async(X)=>EP(D,X)))).filter((X)=>!!X)}vP.getPlugins=T0D;async function EP(D,$){try{let J=(0,RP.resolveNode)(D.app.rootDir,$,"package.json");if(!J)(0,E0D.fatal)(`Unable to find ${w8.default.strong(`node_modules/${$}`)}.
Are you sure ${w8.default.strong($)} is installed?`);let F=(0,VK.dirname)(J),U=await(0,M0D.readJSON)(J);if(!U)return null;if(U.capacitor)return{id:$,name:LK($),version:U.version,rootPath:F,repository:U.repository,manifest:U.capacitor};let X=(0,VK.join)(F,"plugin.xml"),Y=await(0,v0D.readXML)(X);return{id:$,name:LK($),version:U.version,rootPath:F,repository:U.repository,xml:Y.plugin}}catch(J){}return null}vP.resolvePlugin=EP;function AP(D){var $,J;return[...Object.keys(($=D.app.package.dependencies)!==null&&$!==void 0?$:{}),...Object.keys((J=D.app.package.devDependencies)!==null&&J!==void 0?J:{})]}vP.getDependencies=AP;function LK(D){return D=D.replace(/\//g,"_").replace(/-/g,"_").replace(/@/g,"").replace(/_\w/g,($)=>$[1].toUpperCase()),D.charAt(0).toUpperCase()+D.slice(1)}vP.fixName=LK;function b0D(D,$,J="capacitor"){if(D.length===0)return;let F,U=D.length===1?"":"s";switch(J){case"cordova":F=`Found ${D.length} Cordova plugin${U} for ${w8.default.strong($)}:
`;break;case"incompatible":F=`Found ${D.length} incompatible Cordova plugin${U} for ${w8.default.strong($)}, skipped install:
`;break;case"capacitor":F=`Found ${D.length} Capacitor plugin${U} for ${w8.default.strong($)}:
`;break}F+=D.map((X)=>`${X.id}${w8.default.weak(`@${X.version}`)}`).join(`
`),A0D.logger.info(F)}vP.printPlugins=b0D;function wK(D,$){if(D.xml.platform)return D.xml.platform.filter(function(U){return U.$.name===$})[0];return[]}vP.getPluginPlatform=wK;function P0D(D,$,J){let F=wK(D,$);if(F){let U=F[J];if(U)return U}return[]}vP.getPlatformElement=P0D;function S0D(D,$){var J,F,U,X;switch($){case"ios":return(F=(J=D.ios)===null||J===void 0?void 0:J.type)!==null&&F!==void 0?F:0;case"android":return(X=(U=D.android)===null||U===void 0?void 0:U.type)!==null&&X!==void 0?X:0}return 0}vP.getPluginType=S0D;function _0D(D,$){return RK(D,$,"js-module")}vP.getJSModules=_0D;function k0D(D,$){return RK(D,$,"asset")}vP.getAssets=k0D;function C0D(D,$,J){if(J.startsWith("node_modules")){let F=J.split("/").slice(1);if(F[0].startsWith("@"))F=[F[0]+"/"+F[1],...F.slice(2)];let U=(0,RP.resolveNode)(D.app.rootDir,...F);if(!U)throw Error(`Can't resolve module ${F[0]}`);return U}return(0,VK.join)($.rootPath,J)}vP.getFilePath=C0D;function RK(D,$,J){let F=[];if(D.xml[J])F=F.concat(D.xml[J]);let U=wK(D,$);if(U===null||U===void 0?void 0:U[J])F=F.concat(U[J]);return F}vP.getAllElements=RK});var KF=u((PP)=>{Object.defineProperty(PP,"__esModule",{value:!0});PP.isNXMonorepo=PP.isMonorepo=PP.findPackageRelativePathInMonorepo=PP.findPackagePath=PP.findNXMonorepoRoot=PP.findMonorepoRoot=void 0;var S9=FD("node:fs"),N1=FD("node:path");function qF(D){let $=(0,N1.join)(D,"package.json"),J=(0,N1.join)(D,"pnpm-workspace.yaml");if((0,S9.existsSync)(J)||(0,S9.existsSync)($)&&JSON.parse((0,S9.readFileSync)($,"utf-8")).workspaces)return D;let F=(0,N1.dirname)(D);if(F===D)throw Error("Monorepo root not found");return qF(F)}PP.findMonorepoRoot=qF;function MK(D){let $=(0,N1.join)(D,"nx.json");if((0,S9.existsSync)($))return D;let J=(0,N1.dirname)(D);if(J===D)throw Error("Monorepo root not found");return MK(J)}PP.findNXMonorepoRoot=MK;function EK(D,$,J){let F=(0,N1.join)($,"node_modules",D);if((0,S9.existsSync)(F))return F;if($===J)return null;let U=(0,N1.dirname)($);return EK(D,U,J)}PP.findPackagePath=EK;function p0D(D,$){let J=qF($),F=EK(D,$,J);if(F)return(0,N1.relative)($,F);return null}PP.findPackageRelativePathInMonorepo=p0D;function r0D(D){try{return qF(D),!0}catch($){return!1}}PP.isMonorepo=r0D;function t0D(D){try{return MK(D),!0}catch($){return!1}}PP.isNXMonorepo=t0D});var _P={};M$(_P,{default:()=>$6D});var $6D;var kP=S(()=>{$6D={}});var WF=u((uP)=>{Object.defineProperty(uP,"__esModule",{value:!0});uP.isInstalled=uP.getCommandOutput=uP.runCommand=void 0;var AK=(kP(),D1(_P));async function CP(D,$,J={}){let F=new AK.Subprocess(D,$,J);try{return await F.output()}catch(U){if(U instanceof AK.SubprocessError)throw U.output?U.output:U.cause?`${U.message} ${U.cause.toString()}`:U.code?U.code:"Unknown error";throw U}}uP.runCommand=CP;async function J6D(D,$,J={}){try{return(await CP(D,$,J)).trim()}catch(F){return null}}uP.getCommandOutput=J6D;async function F6D(D){try{await(0,AK.which)(D)}catch($){return!1}return!0}uP.isInstalled=F6D});var fP={};M$(fP,{validRange:()=>E6D,valid:()=>q6D,satisfies:()=>w6D,rcompare:()=>H6D,patch:()=>z6D,parse:()=>Q6D,outside:()=>A6D,neq:()=>N6D,minor:()=>I6D,minSatisfying:()=>M6D,maxSatisfying:()=>R6D,major:()=>G6D,ltr:()=>T6D,lte:()=>L6D,lt:()=>O6D,intersects:()=>b6D,inc:()=>W6D,gtr:()=>v6D,gte:()=>V6D,gt:()=>B6D,eq:()=>j6D,diff:()=>Y6D,compare:()=>Z6D,coerce:()=>P6D,clean:()=>K6D,SemVer:()=>_6D,Range:()=>S6D,Comparator:()=>k6D});var Y6D=()=>null,Q6D=()=>null,q6D=()=>null,K6D=()=>null,W6D=()=>null,G6D=()=>null,I6D=()=>null,z6D=()=>null,Z6D=()=>0,H6D=()=>0,B6D=()=>!1,O6D=()=>!1,j6D=()=>!1,N6D=()=>!0,V6D=()=>!1,L6D=()=>!1,w6D=()=>!1,R6D=()=>null,M6D=()=>null,E6D=()=>null,A6D=()=>!1,v6D=()=>!1,T6D=()=>!1,b6D=()=>!1,P6D=()=>null,S6D=class{},_6D=class{},k6D=class{};var aP=u((tP)=>{Object.defineProperty(tP,"__esModule",{value:!0});tP.parseApkNameFromFlavor=tP.checkJDKMajorVersion=tP.resolvePlatform=tP.checkPlatformVersions=tP.getAddedPlatforms=tP.getPlatformTargetName=tP.promptForPlatformTarget=tP.promptForPlatform=tP.isValidEnterprisePlatform=tP.getKnownEnterprisePlatforms=tP.isValidCommunityPlatform=tP.getKnownCommunityPlatforms=tP.isValidPlatform=tP.getKnownPlatforms=tP.selectPlatforms=tP.getProjectPlatformDirectory=tP.getCLIVersion=tP.getCoreVersion=tP.getCapacitorPackageVersion=tP.requireCapacitorPackage=tP.getCapacitorPackage=tP.runTask=tP.runPlatformHook=tP.runHooks=tP.wait=tP.checkAppName=tP.checkAppId=tP.checkAppDir=tP.checkAppConfig=tP.checkCapacitorPlatform=tP.checkPackage=tP.checkWebDir=tP.check=void 0;var k9=w0(),xP=IK(),V1=Z8(),T4=FD("path"),iD=k9.__importDefault(H8()),b4=XF(),hP=T9(),C6D=bP(),yP=KF(),_9=b9(),u6D=WF();async function g6D(D){let J=(await Promise.all(D.map((F)=>F()))).filter((F)=>F!=null);if(J.length>0)throw J.join(`
`)}tP.check=g6D;async function f6D(D){var $;if(($=D.app.extConfig.server)===null||$===void 0?void 0:$.url)return null;if(["",".","..","../","./"].includes(D.app.webDir))return`"${D.app.webDir}" is not a valid value for webDir`;if(!await(0,V1.pathExists)(D.app.webDirAbs))return`Could not find the web assets directory: ${iD.default.strong((0,xP.prettyPath)(D.app.webDirAbs))}.
Please create it and make sure it has an ${iD.default.strong("index.html")} file. You can change the path of this directory in ${iD.default.strong(D.app.extConfigName)} (${iD.default.input("webDir")} option). You may need to compile the web assets for your app (typically ${iD.default.input("npm run build")}). More info: ${iD.default.strong("https://capacitorjs.com/docs/basics/workflow#sync-your-project")}`;if(!await(0,V1.pathExists)((0,T4.join)(D.app.webDirAbs,"index.html")))return`The web assets directory (${iD.default.strong((0,xP.prettyPath)(D.app.webDirAbs))}) must contain an ${iD.default.strong("index.html")} file.
It will be the entry point for the web portion of the Capacitor app.`;return null}tP.checkWebDir=f6D;async function x6D(){if(!await(0,V1.pathExists)("package.json"))if(await(0,V1.pathExists)("project.json"))return null;else return`The Capacitor CLI needs to run at the root of an npm package or in a valid NX monorepo.
Make sure you have a package.json or project.json file in the directory where you run the Capacitor CLI.
More info: ${iD.default.strong("https://docs.npmjs.com/cli/init")}`;return null}tP.checkPackage=x6D;async function y6D(D,$){if(!await TK(D,$))return`Could not find the ${iD.default.input($)} platform.
You must install it in your project first, e.g. w/ ${iD.default.input(`npm install @capacitor/${$}`)}`;return null}tP.checkCapacitorPlatform=y6D;async function h6D(D){if(!D.app.appId)return`Missing ${iD.default.input("appId")} for new platform.
Please add it in ${D.app.extConfigName} or run ${iD.default.input("npx cap init")}.`;if(!D.app.appName)return`Missing ${iD.default.input("appName")} for new platform.
Please add it in ${D.app.extConfigName} or run ${iD.default.input("npx cap init")}.`;let $=await mP(D,D.app.appId);if($)return $;let J=await lP(D,D.app.appName);if(J)return J;return null}tP.checkAppConfig=h6D;async function m6D(D,$){if(!/^\S*$/.test($))return"Your app directory should not contain spaces";return null}tP.checkAppDir=m6D;async function mP(D,$){if(!$)return"Invalid App ID. App ID is required and cannot be blank.";if(/^[a-zA-Z][\w]*(?:\.[a-zA-Z][\w]*)+$/.test($.toLowerCase()))return null;return`
Invalid App ID "${$}". Your App ID must meet the following requirements to be valid on both iOS and Android:
- Must be in Java package form with no dashes (ex: com.example.app)
- It must have at least two segments (one or more dots).
- Each segment must start with a letter.
- All characters must be alphanumeric or an underscore [a-zA-Z][a-zA-Z0-9]+.
If you would like to skip validation, run "cap init" with the "--skip-appid-validation" flag.
`}tP.checkAppId=mP;async function lP(D,$){if(!($===null||$===void 0?void 0:$.length))return"Must provide an app name. For example: 'Spacebook'";return null}tP.checkAppName=lP;async function l6D(D){return new Promise(($)=>setTimeout($,D))}tP.wait=l6D;async function i6D(D,$,J,F){await vK(D,$,J,F);let U=await(0,C6D.getPlugins)(D,$);for(let X of U)await vK(D,$,X.rootPath,F)}tP.runHooks=i6D;async function vK(D,$,J,F){var U;let{spawn:X}=await Promise.resolve().then(()=>k9.__importStar(FD("child_process"))),Y;if((0,yP.isNXMonorepo)(J))Y=await(0,V1.readJSON)((0,T4.join)((0,yP.findNXMonorepoRoot)(J),"package.json"));else Y=await(0,V1.readJSON)((0,T4.join)(J,"package.json"));let Q=(U=Y.scripts)===null||U===void 0?void 0:U[F];if(!Q)return;return new Promise((q,K)=>{let W=X(Q,{stdio:"inherit",shell:!0,cwd:J,env:{INIT_CWD:J,CAPACITOR_ROOT_DIR:D.app.rootDir,CAPACITOR_WEB_DIR:D.app.webDirAbs,CAPACITOR_CONFIG:JSON.stringify(D.app.extConfig),CAPACITOR_PLATFORM_NAME:$,...process.env}});W.on("close",(G)=>{if(G===0)q();else K(Error(`${F} hook on ${$} failed with error code: ${G} while running command: ${Q}`))}),W.on("error",(G)=>{K(G)})})}tP.runPlatformHook=vK;async function d6D(D,$){let J=hP.output.createTaskChain();J.next(D);try{let F=await $();return J.end(),F}catch(F){throw J.fail(),F}}tP.runTask=d6D;async function TK(D,$){let J=(0,_9.resolveNode)(D.app.rootDir,`@capacitor/${$}`,"package.json");if(!J)return null;return(0,V1.readJSON)(J)}tP.getCapacitorPackage=TK;async function iP(D,$){let J=await TK(D,$);if(!J)(0,b4.fatal)(`Unable to find node_modules/@capacitor/${$}.
Are you sure ${iD.default.strong(`@capacitor/${$}`)} is installed?`);return J}tP.requireCapacitorPackage=iP;async function IF(D,$){return(await iP(D,$)).version}tP.getCapacitorPackageVersion=IF;async function dP(D){return IF(D,"core")}tP.getCoreVersion=dP;async function c6D(D){return IF(D,"cli")}tP.getCLIVersion=c6D;function n6D(D,$){switch($){case"android":return D.android.platformDirAbs;case"ios":return D.ios.platformDirAbs;case"web":return D.web.platformDirAbs}return null}async function GF(D,$){let J=n6D(D,$);if(J&&await(0,V1.pathExists)(J))return J;return null}tP.getProjectPlatformDirectory=GF;async function p6D(D,$){if($){let J=$.toLowerCase().trim();if(!await PK(J))(0,b4.fatal)(`Invalid platform: ${iD.default.input(J)}`);else if(!await GF(D,J)){if(J==="web")(0,b4.fatal)(`Could not find the web platform directory.
Make sure ${iD.default.strong(D.app.webDir)} exists.`);(0,b4.fatal)(`${iD.default.strong(J)} platform has not been added yet.
See the docs for adding the ${iD.default.strong(J)} platform: ${iD.default.strong(`https://capacitorjs.com/docs/${J}#adding-the-${J}-platform`)}`)}return[J]}return rP(D)}tP.selectPlatforms=p6D;async function bK(){return["web","android","ios"]}tP.getKnownPlatforms=bK;async function PK(D){return(await bK()).includes(D)}tP.isValidPlatform=PK;async function cP(){return["electron"]}tP.getKnownCommunityPlatforms=cP;async function r6D(D){return(await cP()).includes(D)}tP.isValidCommunityPlatform=r6D;async function nP(){return["windows"]}tP.getKnownEnterprisePlatforms=nP;async function t6D(D){return(await nP()).includes(D)}tP.isValidEnterprisePlatform=t6D;async function o6D(D,$,J){let{prompt:F}=await Promise.resolve().then(()=>k9.__importStar(D1(YF)));if(!J)return(await F([{type:"select",name:"mode",message:$,choices:D.map((Y)=>({title:Y,value:Y}))}],{onCancel:()=>process.exit(1)})).mode.toLowerCase().trim();let U=J.toLowerCase().trim();if(!await PK(U)){let X=await bK();(0,b4.fatal)(`Invalid platform: ${iD.default.input(U)}.
Valid platforms include: ${X.join(", ")}`)}return U}tP.promptForPlatform=o6D;async function a6D(D,$,J,F){let{prompt:U}=await Promise.resolve().then(()=>k9.__importStar(D1(YF))),X=D.filter((q)=>q.id!==void 0);if(!$)if(X.length===1)return X[0];else return(await U([{type:"select",name:"target",message:"Please choose a target device:",choices:X.map((K)=>({title:`${pP(K)} (${K.id})`,value:K}))}],{onCancel:()=>process.exit(1)})).target;let Y=$.trim(),Q=D.find((q)=>{var K;if(F===!0){let W=(K=q.name)!==null&&K!==void 0?K:q.model;if(W)W=W.replace(/[\u2018\u2019]/g,"'").replace(/[\u201C\u201D]/g,'"');if(J)return W===Y&&q.sdkVersion===J;return W===Y}return q.id===Y});if(!Q){if(F){let q=Y;if(J)q+=` [${J}]`;(0,b4.fatal)(`Invalid target name: ${iD.default.input(q)}.
Valid targets are:
${D.map((K)=>{var W;return`${(W=K.name)!==null&&W!==void 0?W:K.model} [${K.sdkVersion}]`}).join(`
`)}`)}(0,b4.fatal)(`Invalid target ID: ${iD.default.input(Y)}.
Valid targets are:
${D.map((q)=>q.id).join(`
`)}`)}return Q}tP.promptForPlatformTarget=a6D;function pP(D){var $,J,F;return`${(F=(J=($=D.name)!==null&&$!==void 0?$:D.model)!==null&&J!==void 0?J:D.id)!==null&&F!==void 0?F:"?"}${D.virtual?` (${D.platform==="ios"?"simulator":"emulator"})`:""}`}tP.getPlatformTargetName=pP;async function rP(D){let $=[];if(await GF(D,D.android.name))$.push(D.android.name);if(await GF(D,D.ios.name))$.push(D.ios.name);return $.push(D.web.name),$}tP.getAddedPlatforms=rP;async function s6D(D,$){let J=await Promise.resolve().then(()=>k9.__importStar(D1(fP))),F=await dP(D),U=await IF(D,$);if(J.diff(F,U)==="minor"||J.diff(F,U)==="major")hP.logger.warn(`${iD.default.strong("@capacitor/core")}${iD.default.weak(`@${F}`)} version doesn't match ${iD.default.strong(`@capacitor/${$}`)}${iD.default.weak(`@${U}`)} version.
Consider updating to a matching version, e.g. w/ ${iD.default.input(`npm install @capacitor/core@${U}`)}`)}tP.checkPlatformVersions=s6D;function e6D(D,$){if($[0]!=="@"){let F=(0,_9.resolveNode)(D.app.rootDir,`@capacitor/${$}`,"package.json");if(F)return(0,T4.dirname)(F);let U=(0,_9.resolveNode)(D.app.rootDir,`@capacitor-community/${$}`,"package.json");if(U)return(0,T4.dirname)(U);let X=(0,_9.resolveNode)(D.app.rootDir,`@ionic-enterprise/capacitor-${$}`,"package.json");if(X)return(0,T4.dirname)(X)}let J=(0,_9.resolveNode)(D.app.rootDir,$,"package.json");if(J)return(0,T4.dirname)(J);return null}tP.resolvePlatform=e6D;async function D1D(){try{let D=await(0,u6D.runCommand)("java",["--version"]),J=RegExp(/([0-9]+)\.?([0-9]*)\.?([0-9]*)/).exec(D);if(J===null)return-1;let F=parseInt(J[1]),U=parseInt(J[2]);if(typeof F==="number"&&F!=1)return F;else if(typeof U==="number"&&F==1&&U<9)return U;else return-1}catch(D){return-1}}tP.checkJDKMajorVersion=D1D;function $1D(D){let $=D.replace(/([A-Z])/g,"-$1").toLowerCase();if($.startsWith("-"))$=$.replace("-","");return`app-${$?`${$}-`:""}debug.apk`}tP.parseApkNameFromFlavor=$1D});var DS=u((sP)=>{Object.defineProperty(sP,"__esModule",{value:!0});sP.tryFn=void 0;var C1D=async(D,...$)=>{try{return await D(...$)}catch{}return null};sP.tryFn=C1D});var SK=u(($S)=>{Object.defineProperty($S,"__esModule",{value:!0});$S.formatJSObject=void 0;var u1D=w0(),g1D=u1D.__importDefault(FD("util"));function f1D(D){try{D=JSON.parse(JSON.stringify(D))}catch($){throw Error(`Cannot parse object as JSON: ${$.stack?$.stack:$}`)}return g1D.default.inspect(D,{compact:!1,breakLength:1/0,depth:1/0,maxArrayLength:1/0,maxStringLength:1/0})}$S.formatJSObject=f1D});var XS=u((FS)=>{Object.defineProperty(FS,"__esModule",{value:!0});FS.lazy=FS.LazyPromise=FS.allSerial=void 0;function x1D(D){return D.reduce(($,J)=>$.then((F)=>J().then((U)=>F.concat(U))),Promise.resolve([]))}FS.allSerial=x1D;class _K extends Promise{constructor(D){super(()=>{});this._executor=D}then(D,$){return this._promise=this._promise||new Promise(this._executor),this._promise.then(D,$)}catch(D){return this._promise=this._promise||new Promise(this._executor),this._promise.catch(D)}}FS.LazyPromise=_K;function y1D(D){return new _K(async($,J)=>{try{$(await D())}catch(F){J(F)}})}FS.lazy=y1D});var GS=u((KS)=>{Object.defineProperty(KS,"__esModule",{value:!0});KS.writeConfig=KS.loadConfig=KS.CONFIG_FILE_NAME_JSON=KS.CONFIG_FILE_NAME_JS=KS.CONFIG_FILE_NAME_TS=void 0;var xK=w0(),l1D=xK.__importDefault(lq()),l$=Z8(),BD=FD("path"),S4=xK.__importDefault(H8()),i1D=aP(),zF=XF(),d1D=T9(),kK=DS(),c1D=SK(),YS=KF(),QS=b9(),P4=XS(),qS=WF(),CK=(0,l1D.default)("capacitor:config");KS.CONFIG_FILE_NAME_TS="capacitor.config.ts";KS.CONFIG_FILE_NAME_JS="capacitor.config.js";KS.CONFIG_FILE_NAME_JSON="capacitor.config.json";async function n1D(){var D,$,J,F;let U=process.cwd(),X=(0,BD.dirname)(FD("path").dirname(FD("url").fileURLToPath(import.meta.url))),Y=await o1D(U),Q=await(async()=>{var z,Z;if((0,YS.isNXMonorepo)(U)){let H=(0,YS.findNXMonorepoRoot)(U),B=await(0,kK.tryFn)(l$.readJSON,(0,BD.resolve)(H,"package.json")),j=(z=B===null||B===void 0?void 0:B.devDependencies)!==null&&z!==void 0?z:{},N=(Z=B===null||B===void 0?void 0:B.dependencies)!==null&&Z!==void 0?Z:{};return{devDependencies:j,dependencies:N}}return{}})(),q=(D=Y.extConfig.appId)!==null&&D!==void 0?D:"",K=($=Y.extConfig.appName)!==null&&$!==void 0?$:"",W=(J=Y.extConfig.webDir)!==null&&J!==void 0?J:"www",G=await a1D(X),I={android:await s1D(U,Y.extConfig,G),ios:await e1D(U,Y.extConfig),web:await D4D(U,W),cli:G,app:{rootDir:U,appId:q,appName:K,webDir:W,webDirAbs:(0,BD.resolve)(U,W),package:(F=await(0,kK.tryFn)(l$.readJSON,(0,BD.resolve)(U,"package.json")))!==null&&F!==void 0?F:{name:K,version:"1.0.0",...Q},...Y}};return CK("config: %O",I),I}KS.loadConfig=n1D;async function p1D(D,$){switch((0,BD.extname)($)){case".json":{await(0,l$.writeJSON)($,D,{spaces:2});break}case".ts":{await(0,l$.writeFile)($,Q4D(D));break}}}KS.writeConfig=p1D;async function r1D(D,$,J){var F;try{let U=(0,QS.resolveNode)(D,"typescript");if(!U)(0,zF.fatal)(`Could not find installation of TypeScript.
To use ${S4.default.strong($)} files, you must install TypeScript in your project, e.g. w/ ${S4.default.input("npm install -D typescript")}`);let X=FD(U),Y=await(0,QS.requireTS)(X,J),Q=Y.default?await Y.default:Y;return{extConfigType:"ts",extConfigName:$,extConfigFilePath:J,extConfig:Q}}catch(U){if(!(0,zF.isFatal)(U))(0,zF.fatal)(`Parsing ${S4.default.strong($)} failed.
${(F=U.stack)!==null&&F!==void 0?F:U}`);throw U}}async function t1D(D,$,J){var F;try{return{extConfigType:"js",extConfigName:$,extConfigFilePath:J,extConfig:await FD(J)}}catch(U){(0,zF.fatal)(`Parsing ${S4.default.strong($)} failed.
${(F=U.stack)!==null&&F!==void 0?F:U}`)}}async function o1D(D){var $;let J=(0,BD.resolve)(D,KS.CONFIG_FILE_NAME_TS);if(await(0,l$.pathExists)(J))return r1D(D,KS.CONFIG_FILE_NAME_TS,J);let F=(0,BD.resolve)(D,KS.CONFIG_FILE_NAME_JS);if(await(0,l$.pathExists)(F))return t1D(D,KS.CONFIG_FILE_NAME_JS,F);let U=(0,BD.resolve)(D,KS.CONFIG_FILE_NAME_JSON);return{extConfigType:"json",extConfigName:KS.CONFIG_FILE_NAME_JSON,extConfigFilePath:U,extConfig:($=await(0,kK.tryFn)(l$.readJSON,U))!==null&&$!==void 0?$:{}}}async function a1D(D){let J=(0,BD.join)(D,"assets"),F="ios-spm-template.tar.gz",U="capacitor-cordova-ios-plugins.tar.gz",X="android-template.tar.gz",Y="capacitor-cordova-android-plugins.tar.gz";return{rootDir:D,assetsDir:"assets",assetsDirAbs:J,assets:{ios:{platformTemplateArchive:"ios-spm-template.tar.gz",platformTemplateArchiveAbs:(0,BD.resolve)(J,"ios-spm-template.tar.gz"),cordovaPluginsTemplateArchive:"capacitor-cordova-ios-plugins.tar.gz",cordovaPluginsTemplateArchiveAbs:(0,BD.resolve)(J,"capacitor-cordova-ios-plugins.tar.gz")},android:{platformTemplateArchive:"android-template.tar.gz",platformTemplateArchiveAbs:(0,BD.resolve)(J,"android-template.tar.gz"),cordovaPluginsTemplateArchive:"capacitor-cordova-android-plugins.tar.gz",cordovaPluginsTemplateArchiveAbs:(0,BD.resolve)(J,"capacitor-cordova-android-plugins.tar.gz")}},package:await(0,l$.readJSON)((0,BD.resolve)(D,"package.json")).catch(()=>({name:"@capacitor/cli",version:"0.0.0"})),os:$4D(process.platform)}}async function s1D(D,$,J){var F,U,X,Y,Q,q,K,W,G,I,z,Z,H,B,j,N,O;let L="android",A=(U=(F=$.android)===null||F===void 0?void 0:F.path)!==null&&U!==void 0?U:"android",E=(0,BD.resolve)(D,A),_="app",k="app/src",C="app/src/main",y="app/src/main/assets",v="app/src/main/assets/public",i="app/src/main/res",c="app/build/outputs/apk/",n=((X=$.android)===null||X===void 0?void 0:X.flavor)||"";if((Y=$.android)===null||Y===void 0?void 0:Y.flavor)c=`${c}/${(Q=$.android)===null||Q===void 0?void 0:Q.flavor}`;let t=(0,i1D.parseApkNameFromFlavor)(n),R=`${c}/debug`,V="capacitor-cordova-android-plugins",w=(0,P4.lazy)(()=>U4D(J.os)),b={keystorePath:(K=(q=$.android)===null||q===void 0?void 0:q.buildOptions)===null||K===void 0?void 0:K.keystorePath,keystorePassword:(G=(W=$.android)===null||W===void 0?void 0:W.buildOptions)===null||G===void 0?void 0:G.keystorePassword,keystoreAlias:(z=(I=$.android)===null||I===void 0?void 0:I.buildOptions)===null||z===void 0?void 0:z.keystoreAlias,keystoreAliasPassword:(H=(Z=$.android)===null||Z===void 0?void 0:Z.buildOptions)===null||H===void 0?void 0:H.keystoreAliasPassword,signingType:(j=(B=$.android)===null||B===void 0?void 0:B.buildOptions)===null||j===void 0?void 0:j.signingType,releaseType:(O=(N=$.android)===null||N===void 0?void 0:N.buildOptions)===null||O===void 0?void 0:O.releaseType};return{name:"android",minVersion:"24",studioPath:w,platformDir:A,platformDirAbs:E,cordovaPluginsDir:V,cordovaPluginsDirAbs:(0,BD.resolve)(E,V),appDir:"app",appDirAbs:(0,BD.resolve)(E,"app"),srcDir:"app/src",srcDirAbs:(0,BD.resolve)(E,"app/src"),srcMainDir:"app/src/main",srcMainDirAbs:(0,BD.resolve)(E,"app/src/main"),assetsDir:"app/src/main/assets",assetsDirAbs:(0,BD.resolve)(E,"app/src/main/assets"),webDir:"app/src/main/assets/public",webDirAbs:(0,BD.resolve)(E,"app/src/main/assets/public"),resDir:"app/src/main/res",resDirAbs:(0,BD.resolve)(E,"app/src/main/res"),apkName:t,buildOutputDir:R,buildOutputDirAbs:(0,BD.resolve)(E,R),flavor:n,buildOptions:b}}async function e1D(D,$){var J,F,U,X,Y,Q,q,K,W,G,I,z;let Z="ios",H=(F=(J=$.ios)===null||J===void 0?void 0:J.path)!==null&&F!==void 0?F:"ios",B=(0,BD.resolve)(D,H),j=(X=(U=$.ios)===null||U===void 0?void 0:U.scheme)!==null&&X!==void 0?X:"App",N="App",O=(0,BD.resolve)(B,"App"),L="App/App",A=(0,BD.resolve)(B,"App/App"),E="App/App.xcodeproj",_=(0,BD.resolve)(B,"App/App.xcodeproj"),k=(0,P4.lazy)(()=>J4D(O)),C=(0,P4.lazy)(()=>X4D()),y=(0,P4.lazy)(()=>Y4D(D,B,O)),v=(0,P4.lazy)(()=>F4D(O,A,_)),i="capacitor-cordova-ios-plugins",c={exportMethod:(Q=(Y=$.ios)===null||Y===void 0?void 0:Y.buildOptions)===null||Q===void 0?void 0:Q.exportMethod,xcodeSigningStyle:(K=(q=$.ios)===null||q===void 0?void 0:q.buildOptions)===null||K===void 0?void 0:K.signingStyle,signingCertificate:(G=(W=$.ios)===null||W===void 0?void 0:W.buildOptions)===null||G===void 0?void 0:G.signingCertificate,provisioningProfile:(z=(I=$.ios)===null||I===void 0?void 0:I.buildOptions)===null||z===void 0?void 0:z.provisioningProfile};return{name:"ios",minVersion:"15.0",platformDir:H,platformDirAbs:B,scheme:j,cordovaPluginsDir:"capacitor-cordova-ios-plugins",cordovaPluginsDirAbs:(0,BD.resolve)(B,"capacitor-cordova-ios-plugins"),nativeProjectDir:"App",nativeProjectDirAbs:O,nativeTargetDir:"App/App",nativeTargetDirAbs:A,nativeXcodeProjDir:"App/App.xcodeproj",nativeXcodeProjDirAbs:_,nativeXcodeWorkspaceDir:(0,P4.lazy)(async()=>(0,BD.relative)(B,await k)),nativeXcodeWorkspaceDirAbs:k,webDir:(0,P4.lazy)(async()=>(0,BD.relative)(B,await v)),webDirAbs:v,podPath:C,packageManager:y,buildOptions:c}}async function D4D(D,$){let J=$,F=(0,BD.resolve)(D,J);return{name:"web",platformDir:J,platformDirAbs:F}}function $4D(D){switch(D){case"darwin":return"mac";case"win32":return"windows";case"linux":return"linux"}return"unknown"}async function J4D(D){return(0,BD.resolve)(D,"App.xcworkspace")}async function F4D(D,$,J){let F=/path\s=\spublic[\s\S]+?sourceTree\s=\s([^;]+)/,U=(0,BD.resolve)(J,"project.pbxproj");try{let Y=(await(0,l$.readFile)(U,{encoding:"utf8"})).match(F);if(Y&&Y[1]==="SOURCE_ROOT")return d1D.logger.warn(`Using the iOS project root for the ${S4.default.strong("public")} directory is deprecated.
Please follow the Upgrade Guide to move ${S4.default.strong("public")} inside the iOS target directory: ${S4.default.strong("https://capacitorjs.com/docs/updating/3-0#move-public-into-the-ios-target-directory")}`),(0,BD.resolve)(D,"public")}catch(X){}return(0,BD.resolve)($,"public")}async function U4D(D){if(process.env.CAPACITOR_ANDROID_STUDIO_PATH)return process.env.CAPACITOR_ANDROID_STUDIO_PATH;switch(D){case"mac":return"/Applications/Android Studio.app";case"windows":{let{runCommand:$}=await Promise.resolve().then(()=>xK.__importStar(WF())),J="C:\\Program Files\\Android\\Android Studio\\bin\\studio64.exe";try{if(!await(0,l$.pathExists)(J)){let F=await $("REG",["QUERY","HKEY_LOCAL_MACHINE\\SOFTWARE\\Android Studio","/v","Path"]);F=F.replace(/(\r\n|\n|\r)/gm,"");let U=F.indexOf("REG_SZ");if(U>0)J=F.substring(U+6).trim()+"\\bin\\studio64.exe"}}catch(F){CK("Error checking registry for Android Studio path: %O",F);break}return J}case"linux":{try{if(await(0,l$.pathExists)("/usr/local/android-studio/bin/studio"))return"/usr/local/android-studio/bin/studio"}catch(F){CK("Error checking for studio executable: %O",F)}return"/usr/local/android-studio/bin/studio.sh"}}return""}async function X4D(){if(process.env.CAPACITOR_COCOAPODS_PATH)return process.env.CAPACITOR_COCOAPODS_PATH;return"pod"}async function Y4D(D,$,J){if((0,l$.existsSync)((0,BD.resolve)(J,"CapApp-SPM")))return"SPM";if(process.env.CAPACITOR_COCOAPODS_PATH)return"Cocoapods";let F="";if(await(0,l$.pathExists)((0,BD.resolve)(D,"Gemfile")))F=(0,BD.resolve)(D,"Gemfile");else if(await(0,l$.pathExists)((0,BD.resolve)($,"Gemfile")))F=(0,BD.resolve)($,"Gemfile");else if(await(0,l$.pathExists)((0,BD.resolve)(J,"Gemfile")))F=(0,BD.resolve)(J,"Gemfile");if(F=="")try{let X=await(0,qS.getCommandOutput)("git",["rev-parse","--show-toplevel"],{cwd:D});if(X!=null)F=(0,BD.resolve)(X,"Gemfile")}catch(X){}try{let X=(await(0,l$.readFile)(F)).toString();if(!X)return"Cocoapods";if(new RegExp(/gem\s+['"]cocoapods/).test(X)&&await(0,qS.isInstalled)("bundle"))return"bundler";else return"Cocoapods"}catch{return"Cocoapods"}}function Q4D(D){return`import type { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = ${(0,c1D.formatJSObject)(D)};
export default config;
`}});var ZF,L1,IS,zS,ZS,HS,BS,OS,jS,NS,yK,hK;var mK=S(()=>{ZF=N0(GS(),1),L1=N0(KF(),1),IS=N0(SK(),1),zS=N0(b9(),1),ZS=zS.requireTS,HS=IS.formatJSObject,BS=ZF.loadConfig,OS=ZF.writeConfig,jS=L1.findMonorepoRoot,NS=L1.findNXMonorepoRoot,yK=L1.isMonorepo,hK=L1.isNXMonorepo});import{Buffer as VS}from"node:buffer";import{createHash as K4D}from"node:crypto";function G4D(D){let $=4294967295;for(let J=0;J<D.length;J++){let F=D[J];$=W4D[($^F)&255]^$>>>8}return $=$^4294967295,($>>>0).toString(16).padStart(8,"0")}async function LS(D,$="sha256"){let J=VS.isBuffer(D)?D:VS.from(D);if($==="crc32")return G4D(J);let F=K4D($);return F.update(J),F.digest("hex")}var W4D;var wS=S(()=>{W4D=(()=>{let D=[];for(let $=0;$<256;$++){let J=$;for(let F=0;F<8;F++)J=J&1?3988292384^J>>>1:J>>>1;D[$]=J}return D})()});import{AsyncLocalStorage as I4D}from"node:async_hooks";import{existsSync as jF,realpathSync as RS,statSync as vS}from"node:fs";import{readFile as TS,writeFile as z4D}from"node:fs/promises";import{createRequire as pK}from"node:module";import{basename as Z4D,dirname as MS,extname as rK,isAbsolute as H4D,join as B4D,parse as O4D,relative as j4D,resolve as R8,sep as N4D}from"node:path";import{cwd as dK}from"node:process";import{pathToFileURL as lK}from"node:url";function iK(D){return Function("specifier","return import(specifier)")(D)}function V4D(){return ES+=1,String(ES)}async function bS(D){let $=MS(D),J=O4D($).root;while(!0){let F=B4D($,"package.json");if(jF(F))try{return JSON.parse(await TS(F,"utf8")).type==="module"}catch{return!1}if($===J)return!1;let U=MS($);if(U===$)return!1;$=U}}function HF(D,$,J=!1){if(J){let F=$?.path;zD.error(typeof F==="string"?`${D}: ${F}`:D)}throw new MD(D,$)}function XLD(D){PS=D}function OF(){let D=SS.getStore();return D===void 0?PS:D.filePath}function YLD(D,$){return SS.run({filePath:D},$)}function QLD(D,$=dK(),J){let F=J?.logError??!1;if(D===void 0)return;if(!D.trim())HF("Capacitor config path must not be empty",void 0,F);let U=R8($,D);if(!jF(U)||!vS(U).isFile())HF("Capacitor config path does not exist",{path:U},F);if(!L4D.test(Z4D(U)))HF("Capacitor config path must point to a capacitor.config.*.ts, capacitor.config.*.js, or capacitor.config.*.json file",{path:U},F);let X=RS($),Y=RS(U),Q=j4D(X,Y);if(Q===".."||Q.startsWith(`..${N4D}`)||H4D(Q))HF("Capacitor config path must stay within the current working directory",{path:U},F);return Y}function cK(D){if(D===null||typeof D!=="object")return!1;let $=D;return typeof $.transpileModule==="function"&&typeof $.ModuleKind?.CommonJS==="number"}function R4D(D){for(let $ of w4D){let J=R8(D,$);if(jF(J)&&vS(J).isFile())return J}return}function M4D(D){let $=R8(D,"package.json");try{return pK(jF($)?$:R8(D,"capacitor.config.ts"))("typescript")}catch{return}}function E4D(D){return!cK(M4D(D))}function A4D(){if(BF===void 0)try{BF=pK(import.meta.url)("typescript")}catch{BF=null}return BF}function AS(){if(process.versions.bun)return!0;let D=Number(process.versions.node.split(".")[0]);return Number.isFinite(D)&&D>=22}async function nK(D){let $=rK(D);if($===".json")return JSON.parse(await TS(D,"utf8"));let J=pK(D);if($===".js"){let Q=J.resolve(D);delete J.cache[Q];let q=await bS(Q)?await iK(`${lK(Q).href}?capgo-reload=${V4D()}`):J(D),K=q.default??q;return typeof K==="function"?await K():await K}let F;try{F=J("typescript")}catch{F=void 0}let U=cK(F)?F:A4D(),X;if(cK(U))try{X=await Promise.resolve(ZS(U,D))}catch(Q){if(!AS())throw Q;X=await iK(lK(R8(D)).href)}else if(AS())X=await iK(lK(R8(D)).href);else throw Error("Could not load a usable TypeScript compiler for the Capacitor config");let Y=X.default??X;return typeof Y==="function"?await Y():await Y}async function v4D(D,$){if(rK($)===".js"){let J=HS(D),F=await bS($)?"export default config":"module.exports = config",U=`/** @type {import('@capacitor/cli').CapacitorConfig} */
const config = ${J}
${F}
`;await z4D($,U);return}await OS(D,$)}async function tK(){let D=R4D(dK());if(D){let J=rK(D);if(J===".json"||J===".js")return{config:await nK(D),path:OF()??D};if(J===".ts"&&E4D(dK()))return{config:await nK(D),path:OF()??D}}let $=await BS();return{config:$.app.extConfig,path:OF()??$.app.extConfigFilePath}}async function oK(){let D=OF();if(D)return{config:await nK(D),path:D};return tK()}async function aK(D,$,J=!1){let F=await oK();if(!F)return;let{config:U}=F;if(U){if(!U.plugins)U.plugins={extConfig:{},[D]:{}};if(!U.plugins[D])U.plugins[D]={};if(!J)U.plugins[D]=$.config.plugins?.[D];else U=$.config;await v4D(U,F.path)}}async function qLD(D,$=!1){await aK("CapacitorUpdater",D,$)}var ES=0,PS,SS,L4D,w4D,BF;var _S=S(()=>{P6();mK();v6();SS=new I4D,L4D=/^capacitor\.config(?:\.[^.]+)*\.(?:ts|js|json)$/;w4D=["capacitor.config.ts","capacitor.config.js","capacitor.config.json"]});import{writeSync as T4D}from"node:fs";import{performance as b4D}from"node:perf_hooks";import{env as CS}from"node:process";import{parentPort as kS,threadId as P4D}from"node:worker_threads";function uS(D){try{if(kS)kS.postMessage({type:"setup-debug",line:D});else T4D(2,`${D}
`)}catch{}}function B6(D,$={}){if(CS.CAPGO_SETUP_DEBUG!=="1")return;let J=Object.entries({thread:P4D,...$}).filter(([,F])=>F!==void 0).map(([F,U])=>`${F}=${U}`).join(" ");uS(`[setup-debug +${Math.round(b4D.now())}ms] ${D} ${J}`)}function ZLD(D){if(CS.CAPGO_SETUP_DEBUG==="1"&&D?.type==="setup-debug"&&typeof D.line==="string"&&D.line.startsWith("[setup-debug "))uS(D.line)}function NF(D){let $=D instanceof Error?D.name:"",F=(D instanceof Error?D.cause:void 0)?.code,U=typeof F==="string"&&["ENOTFOUND","ECONNRESET","ECONNREFUSED","ETIMEDOUT","UND_ERR_CONNECT_TIMEOUT","CERT_HAS_EXPIRED","UNABLE_TO_VERIFY_LEAF_SIGNATURE"].includes(F)?F:void 0;return[["AbortError","TimeoutError","TypeError","SyntaxError","Error"].includes($)?$:"unknown",U].filter(Boolean).join(":")}var sK=()=>{};function w1(D){let $=D.length;while($>0&&D[$-1]==="/")$-=1;return D.slice(0,$)}import{randomUUID as gS}from"node:crypto";import{existsSync as S4D,mkdirSync as _4D,readFileSync as k4D,writeFileSync as C4D}from"node:fs";import{homedir as DW,platform as u4D,release as g4D}from"node:os";import{join as fS}from"node:path";import{arch as f4D,cwd as xS,env as _4,version as x4D}from"node:process";function C9(D){return D==="1"||D?.toLowerCase()==="true"||D?.toLowerCase()==="yes"}function i4D(){if(C9(_4.CAPGO_DISABLE_TELEMETRY)||C9(_4.CAPGO_DISABLE_POSTHOG))return;return _4.CAPGO_CLI_POSTHOG_API_KEY?.trim()||_4.POSTHOG_API_KEY?.trim()||h4D}function d4D(D){let $=w1(D);if($.endsWith("/i/v0/e"))return`${$}/`;let J=$.replace(/\/capture$/,"/");return new URL("i/v0/e/",J.endsWith("/")?J:`${J}/`).toString()}function c4D(D){if(D instanceof Error)return{cause:D.cause,message:D.message,name:D.name||"Error",stack:D.stack};if(typeof D==="string")return{message:D,name:"Error",stack:void 0};try{return{message:JSON.stringify(D)??String(D),name:"Error",stack:void 0}}catch{return{message:String(D),name:"Error",stack:void 0}}}function n4D(D){let $=D,J=xS(),F=DW();if(J)$=$.replaceAll(J,"<cwd>");if(F)$=$.replaceAll(F,"~");return $}function p4D(D){let $=D,J=xS(),F=DW();if(J)$=$.replaceAll(J,"<cwd>");if(F)$=$.replaceAll(F,"~");return $.replace(/<cwd>\/[^\s"',)]+/g,"<cwd>/<path>").replace(/~\/[^\s"',)]+/g,"~/<path>").replace(/[\w.%+-]+@[\w.-]+\.[A-Z]{2,}/gi,"<email>").replace(/(https?:\/\/)([^/\s:@]+):([^/\s@]+)@/gi,"$1<redacted>@").replace(/\b[a-z][\w-]*(?:\.[\w-]+){1,}\b/gi,"<app_id>").replace(/\b[a-z]:\\[^\s"',)]+/gi,"<path>").replace(/(^|[\s"'(])\/[^\s"',)]+/g,"$1<path>").replace(/(--(?:token|api[-_]?key|key|password|secret|private[-_]?key|jwt|session|auth)(?:=|\s+))("[^"]+"|'[^']+'|\S+)/gi,"$1<redacted>").replace(/\b((?:token|api[-_]?key|password|secret|authorization)\s*[:=]\s*)[^\s,;]+/gi,"$1<redacted>")}function r4D(D,$){let J=D?.split(`
`).slice(1).map((F)=>{let U=F.trim(),X=U.startsWith("at ")?U.slice(3):U,Y=$,Q=X,q=X.lastIndexOf(" (");if(q!==-1&&X.endsWith(")"))Y=X.slice(0,q).trim()||$,Q=X.slice(q+2,-1);else{let G=X.lastIndexOf(" "),I=G===-1?"":X.slice(G+1);if(/:\d+:\d+$/.test(I))Y=X.slice(0,G).trim()||$,Q=I}let K=Q.lastIndexOf(":"),W=K===-1?-1:Q.lastIndexOf(":",K-1);if(K===-1||W===-1)return{function:$,platform:"custom",lang:"javascript"};return{function:Y,filename:n4D(Q.slice(0,W)),lineno:Number.parseInt(Q.slice(W+1,K),10),colno:Number.parseInt(Q.slice(K+1),10),platform:"custom",lang:"javascript"}}).filter(Boolean);return J&&J.length>0?J:[{function:$,platform:"custom",lang:"javascript"}]}function t4D(D){if(!D||typeof D!=="object"||!("code"in D))return;let{code:$}=D;return typeof $==="string"?$:void 0}function a4D(D){if(!D||typeof D!=="object")return;let $=D;if(typeof $.status==="number")return $.status;if(typeof $.statusCode==="number")return $.statusCode;let J=$.context&&typeof $.context==="object"?$.context.status:void 0;return typeof J==="number"?J:void 0}function s4D(D){let $=(D instanceof Error?D.message:typeof D==="string"?D:"").toLowerCase();if(o4D.some((J)=>$.includes(J)))return!0;return a4D(D)===401}function ELD(D){if(D instanceof MD){if(l4D.has(D.message))return!0;return!1}if(s4D(D))return!1;return!t4D(D)?.startsWith("commander.")}function ALD(D){let $=[],J=D;while(J?.parent){let F=J.name();if(F)$.push(F);J=J.parent}return $.reverse().join(" ")||"unknown"}function e4D(D=fS(DW(),".capgo-credentials")){if(eK)return eK;let $=fS(D,"install-id"),J;try{let F=S4D($)?k4D($,"utf8").trim():"";if(F)J=F;else J=gS(),_4D(D,{recursive:!0}),C4D($,J,{encoding:"utf8",mode:384})}catch{J=gS()}return eK=J,J}async function vLD(D){let $=i4D();if(!$)return!1;let J=_4.CAPGO_CLI_POSTHOG_API_HOST?.trim()||_4.POSTHOG_API_HOST?.trim()||y4D,F;try{F=d4D(J)}catch{return!1}let U=c4D(D.error),X=p4D(U.message),Y=e4D(),Q=r4D(U.stack,D.functionName),q=[D.functionName,D.kind,U.name||"Error",String(D.status??1)].join(":"),K={token:$,event:"$exception",properties:{distinct_id:Y,$exception_list:[{type:U.name||"Error",value:X,mechanism:{handled:!0,synthetic:!1},stacktrace:{type:"raw",frames:Q}}],$exception_fingerprint:q,architecture:f4D,cli_version:r0.version,error_kind:D.kind,function_name:D.functionName,is_ci:Boolean(_4.CI),node_version:x4D,os_platform:u4D(),os_release:g4D(),runtime:"cli",status:D.status},timestamp:new Date().toISOString()};try{let W=new AbortController,G=setTimeout(()=>W.abort(),m4D);try{return(await fetch(F,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(K),signal:W.signal})).ok}finally{clearTimeout(G)}}catch{return!1}}var y4D="https://eu.i.posthog.com/i/v0/e/",h4D="phc_NXDyDajQaTQVwb25DEhIVZfxVUn4R0Y348Z7vWYHZUi",m4D=1500,$W="iOS sync validation failed. Delete your iOS folder, then rerun the add and sync commands above and retry.",l4D,o4D,eK;var yS=S(()=>{L2();v6();l4D=new Set([$W]);o4D=["invalid_apikey","invalid apikey","no_key_provided","no key provided","invalid api key or insufficient permissions","does not exist, run first"]});import{env as D2D}from"node:process";function F2D(D,$){return`${D} ${$.join(" ")}`}function U2D(D){let[$=""]=D.npm_config_user_agent?.trim().toLowerCase().split(/\s+/,1)??[],[J,F]=$.split("/",2);if(J==="bun")return"bunx";if(J==="pnpm")return"pnpm dlx";if(J==="yarn"){let X=Number.parseInt(F??"",10);return Number.isNaN(X)||X<2?"npx -y":"yarn dlx"}if(J==="npm")return"npx -y";let U=D.npm_execpath?.toLowerCase()??"";if(U.includes("pnpm"))return"pnpm dlx";if(U.includes("yarn"))return"npx -y";if(U.includes("bun"))return"bunx";return"npx -y"}function hS(D=D2D){return F2D(U2D(D),["@capgo/cli@latest","login"])}function PLD(D){let $=D.trim().replaceAll($2D," ");if(!J2D.has($))throw Error(`Unsupported package manager runner: "${D}"`);let J=$.split(" ").map((X)=>X.trim()).filter(Boolean),[F=D,...U]=J;return{command:F,args:U}}var $2D,J2D;var mS=S(()=>{$2D=/\s+/g,J2D=new Set(["bunx","npx","pnpm exec","yarn dlx"])});var h={};M$(h,{unwrapMessage:()=>M8,uint8ArrayToHex:()=>S2D,uint8ArrayToBase64url:()=>b2D,uint8ArrayToBase64:()=>rS,toZod:()=>u9,stringifyPrimitive:()=>m,slugify:()=>UW,shallowClone:()=>f9,safeExtend:()=>w2D,required:()=>E2D,rawShape:()=>T8,randomString:()=>H2D,propertyKeyTypes:()=>x9,promiseAllObject:()=>Z2D,primitiveTypes:()=>YW,prefixIssues:()=>Z0,pick:()=>N2D,partial:()=>M2D,parsedType:()=>l,own:()=>M1,optionalKeys:()=>QW,omit:()=>V2D,objectClone:()=>W2D,numKeys:()=>B2D,nullish:()=>VF,normalizeParams:()=>p,mergeDefs:()=>e0,merge:()=>R2D,members:()=>KW,jsonStringifyReplacer:()=>A8,joinValues:()=>P,issue:()=>b8,isPlainObject:()=>m0,isObject:()=>C4,installLazyProp:()=>g2D,hide:()=>i9,hexToUint8Array:()=>P2D,getSizableOrigin:()=>m9,getParsedType:()=>O2D,getLengthableOrigin:()=>l9,getEnumValues:()=>E8,getElementAtPath:()=>z2D,floatSafeRemainder:()=>g9,finalizeIssue:()=>H0,extend:()=>L2D,explicitlyAborted:()=>qW,escapeRegex:()=>l0,esc:()=>D0,derived:()=>_2D,defineLazyInternal:()=>VD,defineLazy:()=>FW,createTransparentProxy:()=>j2D,constantCatch:()=>WW,codePointLength:()=>u4,cloneDef:()=>I2D,clone:()=>xD,cleanRegex:()=>h6,cleanEnum:()=>v2D,captureStackTrace:()=>LF,cached:()=>v8,base64urlToUint8Array:()=>T2D,base64ToUint8Array:()=>pS,attachSchema:()=>RF,assignProp:()=>k$,assertNotEqual:()=>Y2D,assertNever:()=>q2D,assertIs:()=>Q2D,assertEqual:()=>X2D,assert:()=>K2D,allowsEval:()=>XW,aborted:()=>$0,NUMBER_FORMAT_RANGES:()=>y9,Class:()=>tS,CONSTANT_CATCH:()=>MF,BIGINT_FORMAT_RANGES:()=>h9});function X2D(D){return D}function Y2D(D){return D}function u9(){return(D)=>D}function Q2D(D){}function q2D(D){throw Error("Unexpected value in exhaustive check")}function K2D(D){}function E8(D){let $=Object.values(D).filter((F)=>typeof F==="number");return Object.entries(D).filter(([F,U])=>$.indexOf(+F)===-1).map(([F,U])=>U)}function P(D,$="|"){return D.map((J)=>m(J)).join($)}function A8(D,$){if(typeof $==="bigint")return $.toString();return $}class iS{constructor(D){this._getter=D,this._value=void 0}get value(){let D=this._getter;if(D!==void 0)this._value=D(),this._getter=void 0;return this._value}}function v8(D){return new iS(D)}function VF(D){return D===null||D===void 0}function h6(D){let $=D.startsWith("^")?1:0,J=D.endsWith("$")?D.length-1:D.length;return D.slice($,J)}function g9(D,$){let J=D/$,F=Math.round(J),U=4*Number.EPSILON*Math.max(Math.abs(J),1);if(Math.abs(J-F)<U)return 0;return J-F}function FW(D,$,J){let F=void 0;Object.defineProperty(D,$,{get(){if(F===lS)return;if(F===void 0)F=lS,F=J();return F},set(U){Object.defineProperty(D,$,{value:U})},configurable:!0})}function W2D(D){return Object.create(Object.getPrototypeOf(D),Object.getOwnPropertyDescriptors(D))}function k$(D,$,J){Object.defineProperty(D,$,{value:J,writable:!0,enumerable:!0,configurable:!0})}function T8(D){let $=Object.getOwnPropertyDescriptor(D,"shape");return $?.get?$.get.raw:$?.value}function y6(D){return T8(D._zod.def)??D._zod.def.shape}function dS(D,$,J){Object.defineProperty(D,$,{get(){let F=J();return k$(this,$,F),F},enumerable:!0,configurable:!0})}function cS(D,$,J){if($ in D)k$(D,$,J);else D[$]=J}function k4(D,$,J,F){let U=y6($);for(let X of J){let Y=Object.getOwnPropertyDescriptor(U,X);if(!Y.enumerable)continue;if(Y.get)dS(D,X,()=>{let Q=$._zod.def.shape[X];return F?F(Q,X):Q});else cS(D,X,F?F(Y.value,X):Y.value)}}function G2D(D,$){for(let J of Reflect.ownKeys($)){let F=Object.getOwnPropertyDescriptor($,J);if(!F.enumerable)continue;if(F.get)dS(D,J,()=>$[J]);else cS(D,J,F.value)}}function e0(...D){let $={};for(let J of D){let F=Object.getOwnPropertyDescriptors(J);Object.assign($,F)}return Object.defineProperties({},$)}function I2D(D){return e0(D._zod.def)}function z2D(D,$){if(!$)return D;return $.reduce((J,F)=>J?.[F],D)}function Z2D(D){let $=Object.keys(D),J=$.map((F)=>D[F]);return Promise.all(J).then((F)=>{let U={};for(let X=0;X<$.length;X++)U[$[X]]=F[X];return U})}function H2D(D=10){let J="";for(let F=0;F<D;F++)J+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return J}function D0(D){return JSON.stringify(D)}function UW(D){return D.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function C4(D){return typeof D==="object"&&D!==null&&!Array.isArray(D)}function m0(D){if(C4(D)===!1)return!1;let $=D.constructor;if($===void 0)return!0;if(typeof $!=="function")return!0;let J=$.prototype;if(C4(J)===!1)return!1;if(Object.prototype.hasOwnProperty.call(J,"isPrototypeOf")===!1)return!1;return!0}function f9(D){if(m0(D))return{...D};if(Array.isArray(D))return[...D];if(D instanceof Map)return new Map(D);if(D instanceof Set)return new Set(D);return D}function B2D(D){let $=0;for(let J in D)if(Object.prototype.hasOwnProperty.call(D,J))$++;return $}function l0(D){return D.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xD(D,$,J){let F=new D._zod.constr($??D._zod.def);if(!$||J?.parent)F._zod.parent=D;return F}function p(D){let $=D;if(!$)return{};if(typeof $==="string")return{error:()=>$};if($?.message!==void 0){if($?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");$.error=$.message}if(delete $.message,typeof $.error==="string")return{...$,error:()=>$.error};return $}function j2D(D){let $;return new Proxy({},{get(J,F,U){return $??($=D()),Reflect.get($,F,U)},set(J,F,U,X){return $??($=D()),Reflect.set($,F,U,X)},has(J,F){return $??($=D()),Reflect.has($,F)},deleteProperty(J,F){return $??($=D()),Reflect.deleteProperty($,F)},ownKeys(J){return $??($=D()),Reflect.ownKeys($)},getOwnPropertyDescriptor(J,F){return $??($=D()),Reflect.getOwnPropertyDescriptor($,F)},defineProperty(J,F,U){return $??($=D()),Reflect.defineProperty($,F,U)}})}function m(D){if(typeof D==="bigint")return D.toString()+"n";if(typeof D==="string")return`"${D}"`;return`${D}`}function QW(D){return Object.keys(D).filter(($)=>{return D[$]._zod.optin!==void 0&&D[$]._zod.optout==="optional"})}function N2D(D,$){let J=D._zod.def,F=J.checks;if(F&&F.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let X={};return k4(X,D,wF(D,$)),xD(D,e0(J,{shape:X,checks:[]}))}function wF(D,$){let J=y6(D),F=[];for(let U of Reflect.ownKeys($)){if(!Object.getOwnPropertyDescriptor(J,U)?.enumerable)throw Error(`Unrecognized key: "${String(U)}"`);if($[U])F.push(U)}return F}function V2D(D,$){let J=D._zod.def,F=J.checks;if(F&&F.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let X=new Set(wF(D,$)),Y={};return k4(Y,D,Reflect.ownKeys(y6(D)).filter((Q)=>!X.has(Q))),xD(D,e0(J,{shape:Y,checks:[]}))}function L2D(D,$){if(!m0($))throw Error("Invalid input to extend: expected a plain object");let J=D._zod.def.checks;if(J&&J.length>0){let U=y6(D);for(let X of Reflect.ownKeys($))if(Object.getOwnPropertyDescriptor(U,X)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return xD(D,e0(D._zod.def,{shape:nS(D,$)}))}function nS(D,$){let J={};return k4(J,D,Reflect.ownKeys(y6(D))),G2D(J,$),J}function w2D(D,$){if(!m0($))throw Error("Invalid input to safeExtend: expected a plain object");return xD(D,e0(D._zod.def,{shape:nS(D,$)}))}function R2D(D,$){if(!$?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(D._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let J={};k4(J,D,Reflect.ownKeys(y6(D))),k4(J,$,Reflect.ownKeys(y6($)));let F=e0(D._zod.def,{shape:J,get catchall(){return $._zod.def.catchall},checks:$._zod.def.checks??[]});return xD(D,F)}function M2D(D,$,J,F="partial"){let X=$._zod.def.checks;if(X&&X.length>0)throw Error(`.${F}() cannot be used on object schemas containing refinements`);let Q=J?new Set(wF($,J)):void 0,q={};return k4(q,$,Reflect.ownKeys(y6($)),D&&((K,W)=>Q&&!Q.has(W)?K:new D({type:"optional",innerType:K}))),xD($,e0($._zod.def,{shape:q,checks:[]}))}function E2D(D,$,J){let F=J?new Set(wF($,J)):void 0,U={};return k4(U,$,Reflect.ownKeys(y6($)),(X,Y)=>F&&!F.has(Y)?X:new D({type:"nonoptional",innerType:X})),xD($,e0($._zod.def,{shape:U}))}function $0(D,$=0){if(D.aborted===!0)return!0;for(let J=$;J<D.issues.length;J++)if(D.issues[J]?.continue!==!0)return!0;return!1}function qW(D,$=0){if(D.aborted===!0)return!0;for(let J=$;J<D.issues.length;J++)if(D.issues[J]?.continue===!1)return!0;return!1}function Z0(D,$){return $.map((J)=>{var F;return(F=J).path??(F.path=[]),J.path.unshift(D),J})}function M8(D){return typeof D==="string"?D:D?.message}function RF(D,$,J){var F;for(let U=$;U<D.length;U++)(F=D[U]).schema??(F.schema=J)}function H0(D,$,J){var F;let U=D.inst?._zod?.traits;if(U?.has("$ZodType"))if(U.has("$ZodCheck"))(F=D).schema??(F.schema=D.inst);else D.schema=D.inst;let X=D.schema!==D.inst?D.schema?._zod.def?.error:void 0,Y=D.message?D.message:M8(D.inst?._zod.def?.error?.(D))??M8(X?.(D))??M8($?.error?.(D))??M8(J.customError?.(D))??M8(J.localeError?.(D))??"Invalid input",Q={};for(let q of Object.keys(D)){if(q==="inst"||q==="schema"||q==="continue"||q==="input"||q==="__proto__")continue;Q[q]=D[q]}if(Q.path??(Q.path=[]),Q.message=Y,$?.reportInput)Q.input=D.input;return Q}function m9(D){if(D instanceof Set)return"set";if(D instanceof Map)return"map";if(D instanceof File)return"file";return"unknown"}function u4(D){let $=D.length;if(!A2D.test(D))return $;let J=$;for(let F=0;F<$-1;F++)if((D.charCodeAt(F)&64512)===55296&&(D.charCodeAt(F+1)&64512)===56320)J--,F++;return J}function l9(D){if(Array.isArray(D))return"array";if(typeof D==="string")return"string";return"unknown"}function l(D){let $=typeof D;switch($){case"number":return Number.isNaN(D)?"nan":"number";case"object":{if(D===null)return"null";if(Array.isArray(D))return"array";let J=D;if(J&&Object.getPrototypeOf(J)!==Object.prototype&&"constructor"in J&&J.constructor)return J.constructor.name}}return $}function b8(...D){let[$,J,F]=D;if(typeof $==="string")return{message:$,code:"custom",input:J,inst:F};return{...$}}function v2D(D){return Object.entries(D).filter(([$,J])=>{return Number.isNaN(Number.parseInt($,10))}).map(($)=>$[1])}function pS(D){let $=atob(D),J=new Uint8Array($.length);for(let F=0;F<$.length;F++)J[F]=$.charCodeAt(F);return J}function rS(D){let $="";for(let J=0;J<D.length;J++)$+=String.fromCharCode(D[J]);return btoa($)}function T2D(D){let $=D.replace(/-/g,"+").replace(/_/g,"/"),J="=".repeat((4-$.length%4)%4);return pS($+J)}function b2D(D){return rS(D).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function P2D(D){let $=D.replace(/^0x/,"");if($.length%2!==0)throw Error("Invalid hex string length");let J=new Uint8Array($.length/2);for(let F=0;F<$.length;F+=2)J[F/2]=Number.parseInt($.slice(F,F+2),16);return J}function S2D(D){return Array.from(D).map(($)=>$.toString(16).padStart(2,"0")).join("")}class tS{constructor(...D){}}function KW(D,$){for(let J in $){let F=Object.getOwnPropertyDescriptor($,J);if(F.get)Object.defineProperty(D,J,{...F,enumerable:!1});else k2D(D,J,F.value)}}function M1(D,$,J,F=!0){return Object.defineProperty(D,$,{configurable:!0,writable:!0,enumerable:F,value:J}),J}function i9(D,$,J){return M1(D,$,J,!1)}function _2D(D,$){for(let J in D){let F=D[J];Object.defineProperty($,J,{configurable:!0,enumerable:!0,get(){return M1(this,J,F(this))},set(U){M1(this,J,U)}})}return $}function k2D(D,$,J){Object.defineProperty(D,$,{configurable:!0,get(){return this==null?J:M1(this,$,J.bind(this))},set(F){M1(this,$,F)}})}function C2D(D,$){let J=Object.getPrototypeOf(D);return $ in J?void 0:J}function VD(D,$,J){let F=Object.getPrototypeOf(D._zod);if($ in F&&JW!==D._zod){JW=void 0;return}JW=D._zod,Object.defineProperty(F,$,{configurable:!0,get(){Object.defineProperty(this,$,u2D);let U=R1;R1=!1;try{let X=J(this);if(R1)delete this[$];else Object.defineProperty(this,$,{configurable:!0,writable:!0,value:X});return R1=R1||U,X}catch(X){throw delete this[$],R1=R1||U,X}},set(U){Object.defineProperty(this,$,{configurable:!0,writable:!0,value:U})}})}function g2D(D,$,J,F){let U=C2D(D,$);if(!U)return;Object.defineProperty(U,$,{configurable:!0,get(){let X={configurable:!0,writable:!0,enumerable:F,value:void 0};return Object.defineProperty(this,$,X),X.value=J(this),Object.defineProperty(this,$,X),X.value},set(X){Object.defineProperty(this,$,{configurable:!0,writable:!0,enumerable:F,value:X})}})}function WW(D){let $=()=>D;return $[MF]=!0,$}var lS,LF,XW,O2D=(D)=>{let $=typeof D;switch($){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(D)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(D))return"array";if(D===null)return"null";if(D.then&&typeof D.then==="function"&&D.catch&&typeof D.catch==="function")return"promise";if(typeof Map<"u"&&D instanceof Map)return"map";if(typeof Set<"u"&&D instanceof Set)return"set";if(typeof Date<"u"&&D instanceof Date)return"date";if(typeof File<"u"&&D instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${$}`)}},x9,YW,y9,h9,A2D,JW,R1=!1,u2D,MF="~constantCatch";var s=S(()=>{E1();lS=Symbol("evaluating");LF="captureStackTrace"in Error?Error.captureStackTrace:(...D)=>{};XW=v8(()=>{if(T$.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(D){return!1}});x9=new Set(["string","number","symbol"]),YW=new Set(["string","number","bigint","boolean","symbol","undefined"]);y9=(()=>({safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]}))(),h9={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};A2D=/[\uD800-\uDBFF]/;u2D={configurable:!0,get(){R1=!0;return}}});function f2D(D){let $=aS;if($){let J=$.stackTraceLimit;if(typeof J==="number"){try{$.stackTraceLimit=0}catch{return aS=null,new D}try{return new D}finally{$.stackTraceLimit=J}}}return new D}function T(D,$,J,F){let U={};function X(I){this.def=I,this.constr=G,this.traits=new Set}X.prototype=U;let Y=J,Q=Y&&new WeakSet;function q(I,z){if(!I._zod){GW.value=new X(z);try{Object.defineProperty(I,"_zod",GW)}finally{GW.value=void 0}}else if(I._zod.traits.has(D))return;if(I._zod.traits.add(D),$(I,z),Q){let H=Object.getPrototypeOf(I),B=I._zod.constr.prototype,j=H;while(j&&j!==B)j=Object.getPrototypeOf(j);let N=j??H;if(!Q.has(N))Q.add(N),KW(N,Y)}let Z=G.prototype;for(let H in Z){if(!Object.prototype.hasOwnProperty.call(Z,H))continue;if(!(H in I))I[H]=Z[H].bind(I)}}let K=F?.Parent??Object;class W extends K{}Object.defineProperty(W,"name",{value:D});function G(I){let z=F?.Parent?f2D(W):this;q(z,I);let Z=z._zod.deferred;if(Z){for(let B of Z)B();z._zod.deferred=void 0}let H=globalThis.__zod_globalConfig?.postProcessor;if(H)H(z);return z}return Object.defineProperty(G,"init",{value:q}),Object.defineProperty(G,Symbol.hasInstance,{value:(I)=>{if(F?.Parent&&I instanceof F.Parent)return!0;return I?._zod?.traits?.has(D)}}),Object.defineProperty(G,"name",{value:D}),G}function I$(D){if(D)Object.assign(T$,D);return T$}var oS,IW,GW,aS,zW,R0,g4,T$;var E1=S(()=>{s();IW=Object.freeze({status:"aborted"}),GW={value:void 0,enumerable:!1},aS="captureStackTrace"in Error?Error:null;zW=Symbol("zod_brand");R0=class R0 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};g4=class g4 extends Error{constructor(D){super(`Encountered unidirectional transform during encode: ${D}`);this.name="ZodEncodeError"}};(oS=globalThis).__zod_globalConfig??(oS.__zod_globalConfig={});T$=globalThis.__zod_globalConfig});function x2D(){let D=this._zod;return D.message??(D.message=JSON.stringify(D.def,A8,2)),D.message}function y2D(D){this._zod.message=D}function m2D(D,$,J){if(!Object.prototype.hasOwnProperty.call(D,$))if($==="__proto__")Object.defineProperty(D,$,{value:J(),writable:!0,enumerable:!0,configurable:!0});else D[$]=J();return D[$]}function d9(D,$=(J)=>J.message){let J={},F=[];for(let U of D.issues)if(U.path.length>0)m2D(J,U.path[0],()=>[]).push($(U));else F.push($(U));return{formErrors:F,fieldErrors:J}}function c9(D,$=(J)=>J.message){let J={_errors:[]},F=(U,X=[])=>{for(let Y of U.issues)if(Y.code==="invalid_union"&&Y.errors.length)Y.errors.map((Q)=>F({issues:Q},[...X,...Y.path]));else if(Y.code==="invalid_key")F({issues:Y.issues},[...X,...Y.path]);else if(Y.code==="invalid_element")F({issues:Y.issues},[...X,...Y.path]);else{let Q=[...X,...Y.path];if(Q.length===0)J._errors.push($(Y));else{let q=J,K=0;while(K<Q.length){let W=Q[K],G=K===Q.length-1;if(W==="_errors"){if(G)q._errors.push($(Y));K++;continue}if(!Object.prototype.hasOwnProperty.call(q,W))Object.defineProperty(q,W,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let I=q[W];if(G)I._errors.push($(Y));q=I,K++}}}};return F(D),J}function OW(D,$=(J)=>J.message){let J={errors:[]},F=(U,X=[])=>{var Y;for(let Q of U.issues)if(Q.code==="invalid_union"&&Q.errors.length)Q.errors.map((q)=>F({issues:q},[...X,...Q.path]));else if(Q.code==="invalid_key")F({issues:Q.issues},[...X,...Q.path]);else if(Q.code==="invalid_element")F({issues:Q.issues},[...X,...Q.path]);else{let q=[...X,...Q.path];if(q.length===0){J.errors.push($(Q));continue}let K=J,W=0;while(W<q.length){let G=q[W],I=W===q.length-1;if(typeof G==="string"){if(K.properties??(K.properties={}),!Object.prototype.hasOwnProperty.call(K.properties,G))Object.defineProperty(K.properties,G,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0});K=K.properties[G]}else K.items??(K.items=[]),(Y=K.items)[G]??(Y[G]={errors:[]}),K=K.items[G];if(I)K.errors.push($(Q));W++}}};return F(D),J}function D_(D){let $=[],J=D.map((F)=>typeof F==="object"?F.key:F);for(let F of J)if(typeof F==="number")$.push(`[${F}]`);else if(typeof F==="symbol")$.push(`[${JSON.stringify(String(F))}]`);else if(/[^\w$]/.test(F))$.push(`[${JSON.stringify(F)}]`);else{if($.length)$.push(".");$.push(F)}return $.join("")}function jW(D){let $=[],J=[...D.issues].sort((F,U)=>(F.path??[]).length-(U.path??[]).length);for(let F of J)if($.push(`✖ ${F.message}`),F.path?.length)$.push(` → at ${D_(F.path)}`);return $.join(`
`)}var h2D,HW,sS,eS=(D,$)=>{D.name="$ZodError",HW.value=$,Object.defineProperty(D,"issues",HW),HW.value=void 0,Object.defineProperty(D,"message",h2D);let J=Object.getPrototypeOf(D);if(!sS.has(J))sS.add(J),Object.defineProperty(J,"toString",{configurable:!0,enumerable:!1,get(){let F=()=>this.message;return Object.defineProperty(this,"toString",{value:F,configurable:!0,writable:!0}),F},set(F){Object.defineProperty(this,"toString",{value:F,configurable:!0,writable:!0})}})},BW,B0;var NW=S(()=>{E1();s();h2D={get:x2D,set:y2D,enumerable:!0,configurable:!0},HW={value:void 0,enumerable:!1},sS=new WeakSet([Object.prototype,Error.prototype]),BW=T("$ZodError",eS),B0=T("$ZodError",eS,void 0,{Parent:Error})});function EF(D,$){return{callee:$?.callee??D,Err:$?.Err}}function $_(D,$,J){let F;return{success:!1,get error(){if(!F)F=new D($.map((U)=>H0(U,J,I$()))),$=void 0,J=void 0;return F},set error(U){F=U,$=void 0,J=void 0}}}function p2D(D,$,J){let F=J?{...J,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},U=D._zod.bag.fallbackRun,X;if(U)F[n2D]=!0,X=U({value:$,issues:[]},F);else X=D._zod.run({value:$,issues:[]},F);if(X instanceof Promise)throw new R0;return X.issues.length===0}var P8=(D)=>{let $=(J,F,U,X)=>{let Y=U?{...U,async:!1}:{async:!1},Q=J._zod.run({value:F,issues:[]},Y);if(Q instanceof Promise)throw new R0;if(Q.issues.length){let q=new(X?.Err??D)(Q.issues.map((K)=>H0(K,Y,I$())));throw LF(q,X?.callee??$),q}return Q.value};return $},AF,S8=(D)=>{let $=async(J,F,U,X)=>{let Y=U?{...U,async:!0}:{async:!0},Q=J._zod.run({value:F,issues:[]},Y);if(Q instanceof Promise)Q=await Q;if(Q.issues.length){let q=new(X?.Err??D)(Q.issues.map((K)=>H0(K,Y,I$())));throw LF(q,X?.callee??$),q}return Q.value};return $},vF,_8=(D)=>($,J,F)=>{let U=F?{...F,async:!1}:{async:!1},X=$._zod.run({value:J,issues:[]},U);if(X instanceof Promise)throw new R0;return X.issues.length?$_(D,X.issues,U):{success:!0,data:X.value}},i2D,k8=(D)=>async($,J,F)=>{let U=F?{...F,async:!0}:{async:!0},X=$._zod.run({value:J,issues:[]},U);if(X instanceof Promise)X=await X;return X.issues.length?$_(D,X.issues,U):{success:!0,data:X.value}},d2D,c2D,n2D,n9=(D,$,J)=>{let F=D._zod.bag.validator;if(F!==void 0){if(F($)!==c2D)return!0;if(F.definite===!0&&J===void 0)return!1}return p2D(D,$,J)},p9=async(D,$,J)=>{let F=J?{...J,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},U=D._zod.run({value:$,issues:[]},F);if(U instanceof Promise)U=await U;return U.issues.length===0},TF=(D)=>{let $=P8(D),J=(F,U,X,Y)=>{let Q=X?{...X,direction:"backward"}:{direction:"backward"};return $(F,U,Q,EF(J,Y))};return J},r2D,bF=(D)=>{let $=P8(D),J=(F,U,X,Y)=>{return $(F,U,X,EF(J,Y))};return J},t2D,PF=(D)=>{let $=S8(D),J=async(F,U,X,Y)=>{let Q=X?{...X,direction:"backward"}:{direction:"backward"};return await $(F,U,Q,EF(J,Y))};return J},o2D,SF=(D)=>{let $=S8(D),J=async(F,U,X,Y)=>{return await $(F,U,X,EF(J,Y))};return J},a2D,_F=(D)=>($,J,F)=>{let U=F?{...F,direction:"backward"}:{direction:"backward"};return _8(D)($,J,U)},s2D,kF=(D)=>($,J,F)=>{return _8(D)($,J,F)},e2D,CF=(D)=>async($,J,F)=>{let U=F?{...F,direction:"backward"}:{direction:"backward"};return k8(D)($,J,U)},D8D,uF=(D)=>async($,J,F)=>{return k8(D)($,J,F)},$8D;var VW=S(()=>{E1();NW();s();AF=P8(B0),vF=S8(B0),i2D=_8(B0);d2D=k8(B0),c2D=Symbol.for("zod.compile.invalid"),n2D=Symbol.for("zod.compile.fallback");r2D=TF(B0),t2D=bF(B0),o2D=PF(B0),a2D=SF(B0),s2D=_F(B0),e2D=kF(B0),D8D=CF(B0),$8D=uF(B0)});var i0={};M$(i0,{xid:()=>EW,uuid7:()=>X8D,uuid6:()=>U8D,uuid4:()=>F8D,uuid:()=>f4,uppercase:()=>DG,unicodeEmail:()=>J_,undefined:()=>sW,ulid:()=>MW,time:()=>cW,string:()=>rW,sha512_hex:()=>M8D,sha512_base64url:()=>A8D,sha512_base64:()=>E8D,sha384_hex:()=>L8D,sha384_base64url:()=>R8D,sha384_base64:()=>w8D,sha256_hex:()=>j8D,sha256_base64url:()=>V8D,sha256_base64:()=>N8D,sha1_hex:()=>H8D,sha1_base64url:()=>O8D,sha1_base64:()=>B8D,rfc5322Email:()=>Q8D,number:()=>O6,null:()=>aW,nanoidOfLength:()=>TW,nanoid:()=>vW,md5_hex:()=>I8D,md5_base64url:()=>Z8D,md5_base64:()=>z8D,mac:()=>uW,lowercase:()=>eW,ksuid:()=>AW,ipv6:()=>CW,ipv4:()=>kW,integer:()=>t9,idnEmail:()=>q8D,iban:()=>fF,httpProtocol:()=>r9,html5Email:()=>Y8D,hostname:()=>hW,hex:()=>$G,guid:()=>PW,extendedDuration:()=>J8D,emoji:()=>_W,email:()=>SW,e164:()=>lW,duration:()=>bW,domain:()=>mW,datetime:()=>nW,date:()=>dW,currencyCode:()=>iW,cuid2:()=>RW,cuid:()=>wW,creditCard:()=>gF,cidrv6:()=>fW,cidrv4:()=>gW,browserEmail:()=>K8D,boolean:()=>oW,bigint:()=>tW,base64url:()=>yW,base64:()=>xW,anyString:()=>pW});function TW(D){return new RegExp(`^[a-zA-Z0-9_-]{${D}}$`)}function _W(){return new RegExp(W8D,"u")}function G8D(D){return new RegExp(`^${D}$`)}function LW(D){return typeof D.precision==="number"?D.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":D.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${D.precision}}`:D.seconds?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?":"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function cW(D){return new RegExp(`^${LW(D)}$`)}function nW(D){let $=["Z"];if(D.offset)$.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let J=`${LW({precision:D.precision,seconds:!0})}(?:${$.join("|")})`,F=D.local?`${J}|${LW({precision:D.precision})}`:J;return new RegExp(`^${F_}T(?:${F})$`)}function o9(D,$){return new RegExp(`^[A-Za-z0-9+/]{${D}}${$}$`)}function a9(D){return new RegExp(`^[A-Za-z0-9_-]{${D}}$`)}var wW,RW,MW,EW,AW,vW,bW,J8D,PW,f4=(D)=>{if(!D)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${D}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},F8D,U8D,X8D,SW,Y8D,Q8D,J_,q8D,K8D,W8D="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$",kW,CW,uW=(D)=>{let $=l0(D??":");return new RegExp(`^(?:[0-9A-F]{2}${$}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${$}){5}[0-9a-f]{2}$`)},gW,fW,xW,yW,hW,mW,r9,lW,gF,iW,fF,F_="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",dW,pW,rW=(D)=>{let $=D?`[\\s\\S]{${D?.minimum??0},${D?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${$}$`)},tW,t9,O6,oW,aW,sW,eW,DG,$G,I8D,z8D,Z8D,H8D,B8D,O8D,j8D,N8D,V8D,L8D,w8D,R8D,M8D,E8D,A8D;var x4=S(()=>{s();wW=/^[cC][0-9a-z]{6,}$/,RW=/^[0-9a-z]+$/,MW=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,EW=/^[0-9a-vA-V]{20}$/,AW=/^[A-Za-z0-9]{27}$/,vW=/^[a-zA-Z0-9_-]{21}$/;bW=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,J8D=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,PW=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,F8D=f4(4),U8D=f4(6),X8D=f4(7),SW=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Y8D=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Q8D=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,J_=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,q8D=J_,K8D=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;kW=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,CW=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,gW=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,fW=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xW=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,yW=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,hW=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,mW=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,r9=/^https?$/,lW=/^\+[1-9]\d{6,14}$/,gF=/^\d(?:[ -]?\d){11,18}$/,iW=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,fF=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/;dW=G8D(F_);pW=/^[\s\S]{0,}$/,tW=/^-?\d+n?$/,t9=/^-?\d+$/,O6=/^-?\d+(?:\.\d+)?$/,oW=/^(?:true|false)$/i,aW=/^null$/i,sW=/^undefined$/i,eW=/^[^A-Z]*$/,DG=/^[^a-z]*$/,$G=/^[0-9a-fA-F]*$/;I8D=/^[0-9a-fA-F]{32}$/,z8D=o9(22,"=="),Z8D=a9(22),H8D=/^[0-9a-fA-F]{40}$/,B8D=o9(27,"="),O8D=a9(27),j8D=/^[0-9a-fA-F]{64}$/,N8D=o9(43,"="),V8D=a9(43),L8D=/^[0-9a-fA-F]{96}$/,w8D=o9(64,""),R8D=a9(64),M8D=/^[0-9a-fA-F]{128}$/,E8D=o9(86,"=="),A8D=a9(86)});function yF(D,$,J){if(D.issues.length)$.issues.push(...Z0(J,D.issues))}var nD,JG=(D)=>{let $=D.value;return!VF($)&&$.size!==void 0},FG=(D)=>{let $=D.value;return!VF($)&&$.length!==void 0},xF,hF,mF,UG,XG,YG,QG,qG,KG,WG,GG,IG,C8,zG,ZG,HG,BG,OG,jG,NG,VG,LG,wG;var lF=S(()=>{E1();x4();s();nD=T("$ZodCheck",(D,$)=>{var J;D._zod??(D._zod={}),D._zod.def=$,(J=D._zod).onattach??(J.onattach=[])}),xF={number:"number",bigint:"bigint",object:"date"},hF=T("$ZodCheckLessThan",(D,$)=>{nD.init(D,$);let J=xF[typeof $.value];D._zod.check=(F)=>{if($.inclusive?F.value<=$.value:F.value<$.value)return;F.issues.push({origin:xF[typeof F.value]??J,code:"too_big",maximum:typeof $.value==="object"?$.value.getTime():$.value,input:F.value,inclusive:$.inclusive,inst:D,continue:!$.abort})}}),mF=T("$ZodCheckGreaterThan",(D,$)=>{nD.init(D,$);let J=xF[typeof $.value];D._zod.check=(F)=>{if($.inclusive?F.value>=$.value:F.value>$.value)return;F.issues.push({origin:xF[typeof F.value]??J,code:"too_small",minimum:typeof $.value==="object"?$.value.getTime():$.value,input:F.value,inclusive:$.inclusive,inst:D,continue:!$.abort})}}),UG=T("$ZodCheckMultipleOf",(D,$)=>{nD.init(D,$),D._zod.check=(J)=>{if(typeof J.value!==typeof $.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof J.value==="bigint"?$.value!==BigInt(0)&&J.value%$.value===BigInt(0):g9(J.value,$.value)===0)return;J.issues.push({origin:typeof J.value,code:"not_multiple_of",divisor:$.value,input:J.value,inst:D,continue:!$.abort})}}),XG=T("$ZodCheckNumberFormat",(D,$)=>{nD.init(D,$),$.format=$.format||"float64";let J=$.format?.includes("int"),F=J?"int":"number",[U,X]=y9[$.format];D._zod.check=(Y)=>{let Q=Y.value;if(J){if(!Number.isInteger(Q)){Y.issues.push({expected:F,format:$.format,code:"invalid_type",continue:!1,input:Q,inst:D});return}if(!Number.isSafeInteger(Q)){if(Q>0)Y.issues.push({input:Q,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:D,origin:F,inclusive:!0,continue:!$.abort});else Y.issues.push({input:Q,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:D,origin:F,inclusive:!0,continue:!$.abort});return}}if(Q<U)Y.issues.push({origin:"number",input:Q,code:"too_small",minimum:U,inclusive:!0,inst:D,continue:!$.abort});if(Q>X)Y.issues.push({origin:"number",input:Q,code:"too_big",maximum:X,inclusive:!0,inst:D,continue:!$.abort})}}),YG=T("$ZodCheckBigIntFormat",(D,$)=>{nD.init(D,$);let[J,F]=h9[$.format];D._zod.check=(U)=>{let X=U.value;if(X<J)U.issues.push({origin:"bigint",input:X,code:"too_small",minimum:J,inclusive:!0,inst:D,continue:!$.abort});if(X>F)U.issues.push({origin:"bigint",input:X,code:"too_big",maximum:F,inclusive:!0,inst:D,continue:!$.abort})}}),QG=T("$ZodCheckMaxSize",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=JG),D._zod.check=(F)=>{let U=F.value;if(U.size<=$.maximum)return;F.issues.push({origin:m9(U),code:"too_big",maximum:$.maximum,inclusive:!0,input:U,inst:D,continue:!$.abort})}}),qG=T("$ZodCheckMinSize",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=JG),D._zod.check=(F)=>{let U=F.value;if(U.size>=$.minimum)return;F.issues.push({origin:m9(U),code:"too_small",minimum:$.minimum,inclusive:!0,input:U,inst:D,continue:!$.abort})}}),KG=T("$ZodCheckSizeEquals",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=JG),D._zod.check=(F)=>{let U=F.value,X=U.size;if(X===$.size)return;let Y=X>$.size;F.issues.push({origin:m9(U),...Y?{code:"too_big",maximum:$.size}:{code:"too_small",minimum:$.size},inclusive:!0,exact:!0,input:F.value,inst:D,continue:!$.abort})}}),WG=T("$ZodCheckMaxLength",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=FG),D._zod.check=(F)=>{let U=F.value,X=U.length;if((typeof U==="string"&&X>$.maximum?u4(U):X)<=$.maximum)return;let Q=l9(U);F.issues.push({origin:Q,code:"too_big",maximum:$.maximum,inclusive:!0,input:U,inst:D,continue:!$.abort})}}),GG=T("$ZodCheckMinLength",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=FG),D._zod.check=(F)=>{let U=F.value,X=U.length;if((typeof U==="string"&&X>=$.minimum&&X<$.minimum*2?u4(U):X)>=$.minimum)return;let Q=l9(U);F.issues.push({origin:Q,code:"too_small",minimum:$.minimum,inclusive:!0,input:U,inst:D,continue:!$.abort})}}),IG=T("$ZodCheckLengthEquals",(D,$)=>{var J;nD.init(D,$),(J=D._zod.def).when??(J.when=FG),D._zod.check=(F)=>{let U=F.value,X=U.length,Y=typeof U==="string"&&X>=$.length&&X<=$.length*2?u4(U):X;if(Y===$.length)return;let Q=l9(U),q=Y>$.length;F.issues.push({origin:Q,...q?{code:"too_big",maximum:$.length}:{code:"too_small",minimum:$.length},inclusive:!0,exact:!0,input:F.value,inst:D,continue:!$.abort})}}),C8=T("$ZodCheckStringFormat",(D,$)=>{var J,F;if(nD.init(D,$),$.pattern)(J=D._zod).check??(J.check=(U)=>{if($.pattern.lastIndex=0,$.pattern.test(U.value))return;U.issues.push({origin:"string",code:"invalid_format",format:$.format,input:U.value,...$.pattern?{pattern:$.pattern.toString()}:{},inst:D,continue:!$.abort})});else(F=D._zod).check??(F.check=()=>{})}),zG=T("$ZodCheckRegex",(D,$)=>{C8.init(D,$),D._zod.check=(J)=>{if($.pattern.lastIndex=0,$.pattern.test(J.value))return;J.issues.push({origin:"string",code:"invalid_format",format:"regex",input:J.value,pattern:$.pattern.toString(),inst:D,continue:!$.abort})}}),ZG=T("$ZodCheckLowerCase",(D,$)=>{$.pattern??($.pattern=eW),C8.init(D,$)}),HG=T("$ZodCheckUpperCase",(D,$)=>{$.pattern??($.pattern=DG),C8.init(D,$)}),BG=T("$ZodCheckIncludes",(D,$)=>{nD.init(D,$);let J=l0($.includes),F=new RegExp(typeof $.position==="number"?`^.{${$.position},}${J}`:J);$.pattern=F,D._zod.check=(U)=>{if(U.value.includes($.includes,$.position))return;U.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:$.includes,input:U.value,inst:D,continue:!$.abort})}}),OG=T("$ZodCheckStartsWith",(D,$)=>{nD.init(D,$);let J=new RegExp(`^${l0($.prefix)}.*`);$.pattern??($.pattern=J),D._zod.check=(F)=>{if(F.value.startsWith($.prefix))return;F.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:$.prefix,input:F.value,inst:D,continue:!$.abort})}}),jG=T("$ZodCheckEndsWith",(D,$)=>{nD.init(D,$);let J=new RegExp(`.*${l0($.suffix)}$`);$.pattern??($.pattern=J),D._zod.check=(F)=>{if(F.value.endsWith($.suffix))return;F.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:$.suffix,input:F.value,inst:D,continue:!$.abort})}});NG=T("$ZodCheckProperty",(D,$)=>{nD.init(D,$),D._zod.check=(J)=>{let F=$.schema._zod.run({value:J.value[$.property],issues:[]},{});if(F instanceof Promise)return F.then((U)=>yF(U,J,$.property));yF(F,J,$.property);return}}),VG=T("$ZodCheckProperties",(D,$)=>{nD.init(D,$),i9(D,Symbol.iterator,function*(){yield D});let J;D._zod.check=(F)=>{if(F.value==null){F.issues.push({expected:"object",code:"invalid_type",input:F.value,inst:D});return}J??(J=Reflect.ownKeys($.shape).map((Y)=>[Y,$.shape[Y]]));let U=F.value,X;for(let[Y,Q]of J){let q=Q._zod.run({value:U[Y],issues:[]},{});if(q instanceof Promise)X??(X=[]),X.push(q.then((K)=>yF(K,F,Y)));else yF(q,F,Y)}if(X)return Promise.all(X).then(()=>{return});return}}),LG=T("$ZodCheckMimeType",(D,$)=>{nD.init(D,$);let J=new Set($.mime);D._zod.check=(F)=>{if(J.has(F.value.type))return;F.issues.push({code:"invalid_value",values:$.mime,input:F.value.type,inst:D,continue:!$.abort})}}),wG=T("$ZodCheckOverwrite",(D,$)=>{nD.init(D,$),D._zod.check=(J)=>{J.value=$.tx(J.value)}})});class u8{constructor(D=[],$={}){this.content=[],this.indent=0,this.args=D,this.closed=$}indented(D){this.indent+=1;try{D(this)}finally{this.indent-=1}}write(D){if(typeof D==="function"){D(this,{execution:"sync"}),D(this,{execution:"async"});return}let J=D.split(`
`).filter((X)=>X),F=Math.min(...J.map((X)=>X.length-X.trimStart().length)),U=J.map((X)=>X.slice(F)).map((X)=>" ".repeat(this.indent*2)+X);for(let X of U)this.content.push(X)}compile(){let D=Function,$=this?.content??[""];return new D(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
${$.join(`
`)}
};`)(...Object.values(this.closed))}}var RG;var MG=S(()=>{RG={major:4,minor:6,patch:5}});async function v8D(D,$){let J={async:!0};return V_(await D._zod.run({value:$,issues:[]},J),J)}function pF(D){return{validate:($)=>{let J={async:!1};try{let F=D._zod.run({value:$,issues:[]},J);if(!(F instanceof Promise))return V_(F,J)}catch(F){}return v8D(D,$)},vendor:"zod",version:1}}function PG(D){try{if(typeof URL<"u"&&typeof URL.canParse==="function")return URL.canParse(D);return new URL(D),!0}catch{return!1}}function rF(D,$){if(!("normalize"in $)&&!("hostname"in $)&&!("protocol"in $))return PG(D)||s9;return L_(D,$)}function L_(D,$){if(!$.normalize&&$.protocol?.source===r9.source&&!/^https?:\/\//i.test(D))return bG;try{if(typeof URL<"u"){let J=URL;if(typeof J.parse==="function")return J.parse(D)??s9}return new URL(D)}catch{return s9}}function e9(D){return D.replace(T8D,"")}function tF(D,$){return $.lastIndex=0,$.test(D.hostname)}function oF(D,$){return $.lastIndex=0,$.test(D.protocol.endsWith(":")?D.protocol.slice(0,-1):D.protocol)}function D5(D){if(!b8D.test(D))return!1;return PG(`http://[${D}]`)}function aF(D){let $=D.split("/");if($.length!==2)return!1;let[J,F]=$;if(!F)return!1;let U=Number(F);if(`${U}`!==F)return!1;if(U<0||U>128)return!1;return D5(J)}function $5(D){if(D==="")return!0;if(/\s/.test(D))return!1;if(D.length%4!==0)return!1;try{return atob(D),!0}catch{return!1}}function eF(D){if(!J5.test(D))return!1;let $=D.replace(/[-_]/g,(F)=>F==="-"?"+":"/"),J=$.padEnd(Math.ceil($.length/4)*4,"=");return $5(J)}function S8D(D){let $=D.length,J=1,F=0;while($){let U=D.charCodeAt(--$)-48;J^=1,F+=J?[0,2,4,6,8,1,3,5,7,9][U]:U}return F%10===0}function DU(D){if(!gF.test(D))return!1;return S8D(D.replace(P8D,""))}function _8D(D){let $=0,J=D.length;for(let F=4;F<J;F++){let U=D.charCodeAt(F);$=(U>=65?$*100+(U-55):$*10+(U-48))%97}for(let F=0;F<4;F++){let U=D.charCodeAt(F);$=(U>=65?$*100+(U-55):$*10+(U-48))%97}return $===1}function $U(D){if(!fF.test(D))return!1;return _8D(D)}function JU(D,$=null){try{let J=D.split(".");if(J.length!==3)return!1;let[F]=J;if(!F)return!1;let U=JSON.parse(atob(F));if("typ"in U&&U?.typ!=="JWT")return!1;if(!U.alg)return!1;if($&&(!("alg"in U)||U.alg!==$))return!1;return!0}catch{return!1}}function X_(D,$,J){if(D.issues.length)$.issues.push(...Z0(J,D.issues));$.value[J]=D.value}function nF(D,$,J,F,U,X){let Y=J in F,Q=X==="optional";if(!Y&&Q&&U==="optional")return;if(D.issues.length){if(U!==void 0&&Q&&!Y)return;$.issues.push(...Z0(J,D.issues))}if(!Y&&U===void 0){if(!D.issues.length)$.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[J]});return}if(D.value===void 0){if(Y||U==="defaulted"&&!Q)$.value[J]=void 0}else $.value[J]=D.value}function w_(D){let $=Object.keys(D.shape),J=Object.getOwnPropertySymbols(D.shape),F=J.length?J:k8D,U=F.length?[...$,...F]:$;for(let Y of U)if(!D.shape?.[Y]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(Y)}": expected a Zod schema`);let X=QW(D.shape);return{...D,allKeys:U,symbolKeys:F,keySet:new Set($),numKeys:$.length,optionalKeys:new Set(X)}}function R_(D,$,J,F,U,X,Y){let Q=[],q=U.keySet,K=U.catchall._zod,W=K.def.type,G=K.optin,I=K.optout,z=0;for(let Z in $){if(Y&&J.issues.length!==z){if($0(J,z))break;z=J.issues.length}if(q.has(Z))continue;if(Z==="__proto__"){if(W==="never")Q.push(Z);continue}if(W==="never"){Q.push(Z);continue}let H=K.run({value:$[Z],issues:[]},F);if(H instanceof Promise)D.push(H.then((B)=>nF(B,J,Z,$,G,I)));else nF(H,J,Z,$,G,I)}if(Q.length)J.issues.push({code:"unrecognized_keys",keys:Q,input:$,inst:X,continue:!0});if(!D.length)return J;return Promise.all(D).then(()=>{return J})}function Y_(D,$,J,F){for(let X of D)if(X.issues.length===0)return $.value=X.value,$;let U=D.filter((X)=>!$0(X));if(U.length===1)return $.value=U[0].value,U[0];return $.issues.push({code:"invalid_union",input:$.value,inst:J,errors:D.map((X)=>X.issues.map((Y)=>H0(Y,F,I$())))}),$}function Q_(D,$,J,F){let U=[];for(let X=0;X<D.length;X++)if(D[X].issues.length===0)U.push(X);if(U.length===1)return $.value=D[U[0]].value,$;if(U.length===0)$.issues.push({code:"invalid_union",input:$.value,inst:J,errors:D.map((X)=>X.issues.map((Y)=>H0(Y,F,I$())))});else $.issues.push({code:"invalid_union",input:$.value,inst:J,errors:[],inclusive:!1,matches:U});return $}function ZI(D,$){let J=D._zod,F=J.bag.optionsMap;if(!F)F=E_(J.def),J.bag.optionsMap=F;let U=F.get($);if(U===null)throw Error(`Ambiguous discriminator value "${String($)}"`);return U}function E_(D){let $=new Map;for(let J of D.options){let F=J._zod.propValues?.[D.discriminator];if(!F||F.size===0)throw Error(`Invalid discriminated union option at index "${D.options.indexOf(J)}"`);for(let U of F)if($.has(U)){if(U!==void 0)throw Error(`Duplicate discriminator value "${String(U)}"`);$.set(U,null)}else $.set(U,J)}return $}function g8(D,$){if(D===$)return{valid:!0,data:D};if(D instanceof Date&&$ instanceof Date&&+D===+$)return{valid:!0,data:D};if(m0(D)&&m0($)){let J=Object.keys($),F=Object.keys(D).filter((X)=>J.indexOf(X)!==-1),U={...D,...$};if(Object.prototype.hasOwnProperty.call(U,"__proto__"))delete U.__proto__;for(let X of F){if(X==="__proto__")continue;let Y=g8(D[X],$[X]);if(!Y.valid)return{valid:!1,mergeErrorPath:[X,...Y.mergeErrorPath]};U[X]=Y.data}return{valid:!0,data:U}}if(Array.isArray(D)&&Array.isArray($)){if(D.length!==$.length)return{valid:!1,mergeErrorPath:[]};let J=[];for(let F=0;F<D.length;F++){let U=D[F],X=$[F],Y=g8(U,X);if(!Y.valid)return{valid:!1,mergeErrorPath:[F,...Y.mergeErrorPath]};J.push(Y.data)}return{valid:!0,data:J}}return{valid:!1,mergeErrorPath:[]}}function q_(D,$,J){let F=new Map,U,X=new Map,Y=(K,W)=>{let G;if(K.code==="unrecognized_keys"&&!K.path?.length)U??(U=K),G=K.keys;else if(K.code==="invalid_key"&&K.origin==="record"&&K.path?.length===1){let I=String(K.path[0]);if(!X.has(I))X.set(I,K);G=[I]}else return!1;for(let I of G){if(!F.has(I))F.set(I,{});F.get(I)[W]=!0}return!0};for(let K of $.issues)if(!Y(K,"l"))D.issues.push(K);for(let K of J.issues)if(!Y(K,"r"))D.issues.push(K);let Q=[...F].filter(([,K])=>K.l&&K.r).map(([K])=>K);if(Q.length){let K=U?Q.filter((W)=>U.keys.includes(W)):[];if(K.length)D.issues.push({...U,keys:K});for(let W of Q)if(!K.includes(W)&&X.has(W))D.issues.push(X.get(W))}let q=g8($.value,J.value);if(!q.valid){if($0(D))return D;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(q.mergeErrorPath)}`)}return D.value=q.data,D}function K_(D,$){for(let J=D.length-1;J>=0;J--)if(!($==="optin"?D[J]._zod.optin!==void 0:D[J]._zod.optout==="optional"))return J+1;return 0}function W_(D,$,J){if(D.issues.length)$.issues.push(...Z0(J,D.issues));$.value[J]=D.value}function G_(D,$,J,F,U){for(let X=0;X<J.length;X++){let Y=D[X],Q=X<F.length;if(!Q&&X>=U&&J[X]._zod.optin==="optional"){$.value.length=X;break}if(Y.issues.length){if(!Q&&X>=U){$.value.length=X;break}$.issues.push(...Z0(X,Y.issues))}$.value[X]=Y.value}for(let X=$.value.length-1;X>=F.length;X--)if(J[X]._zod.optout==="optional"&&$.value[X]===void 0)$.value.length=X;else break;return $}function I_(D,$,J,F,U,X,Y){if(D.issues.length)if(x9.has(typeof F))J.issues.push(...Z0(F,D.issues));else J.issues.push({code:"invalid_key",origin:"map",input:U,inst:X,issues:D.issues.map((Q)=>H0(Q,Y,I$()))});if($.issues.length)if(x9.has(typeof F))J.issues.push(...Z0(F,$.issues));else J.issues.push({origin:"map",code:"invalid_element",input:U,inst:X,key:F,issues:$.issues.map((Q)=>H0(Q,Y,I$()))});J.value.set(D.value,$.value)}function z_(D,$){if(D.issues.length)$.issues.push(...D.issues);$.value.add(D.value)}function Z_(D,$){return D.value=$.issues.length?void 0:$.value,D}function H_(D,$){if(D.value===void 0)D.value=$.defaultValue;return D}function B_(D,$){if(!D.issues.length&&D.value===void 0)D.issues.push({code:"invalid_type",expected:"nonoptional",input:D.value,inst:$});return D}function O_(D,$,J,F){if(!$.issues.length){if(D.value=$.value,$.memo)D.memo=!0;return D}return D.value=J.catchValue({...$,value:D.value,error:{issues:$.issues.map((U)=>H0(U,F,I$()))},input:D.value}),D}function iF(D,$,J){if(D.issues.some((F)=>F.code!=="unrecognized_keys"))return D.aborted=!0,D;return $._zod.run({value:D.value,issues:D.issues},J)}function dF(D,$,J){if(D.issues.length)return D.aborted=!0,D;if((J.direction||"forward")==="forward"){let U=$.transform(D.value,D);if(U instanceof Promise)return U.then((X)=>cF(D,X,$.out,J));return cF(D,U,$.out,J)}else{let U=$.reverseTransform(D.value,D);if(U instanceof Promise)return U.then((X)=>cF(D,X,$.in,J));return cF(D,U,$.in,J)}}function cF(D,$,J,F){if(D.issues.length)return D.aborted=!0,D;return J._zod.run({value:$,issues:D.issues},F)}function j_(D){if(!D.memo)D.value=Object.freeze(D.value);return D}function C8D(D){let $=D._zod.def,J=$.pattern,F=!!$.format?.includes("int"),U,X;for(let Q of $.checks??[]){let q=Q._zod.def;if(q.pattern)J=q.pattern;F||(F=!!q.format?.includes("int"));let K=q.minimum??q.length,W=q.maximum??q.length;if(K!==void 0&&(U===void 0||K>U))U=K;if(W!==void 0&&(X===void 0||W<X))X=W}if(J)return J.source;if(U!==void 0&&X!==void 0&&U>X)return"(?!)";if(U!==void 0||X!==void 0)return rW({minimum:U,maximum:X}).source;let Y=D._zod.pattern;return(F&&Y===O6?t9:Y)?.source}function EG(D){let $=D._zod.def,J=D._zod.pattern?.source,F=$.innerType??D._zod.innerType;if(F){let U=F._zod.pattern?.source,X=EG(F);if(J&&U&&X&&X!==U)return J.replace(h6(U),()=>h6(X));return J}if($.options){let U=$.options.map(EG);if(U.every(Boolean))return`^(${U.map((X)=>h6(X)).join("|")})$`}return C8D(D)}function N_(D,$,J,F){if(!D){let U={code:"custom",input:J,inst:F,path:[...F._zod.def.path??[]],continue:!F._zod.def.abort};if(F._zod.def.params)U.params=F._zod.def.params;$.issues.push(b8(U))}}var ID,V_=(D,$)=>D.issues.length?{issues:D.issues.map((J)=>H0(J,$,I$()))}:{value:D.value},y4,yD,AG,vG,TG,bG=1,s9=2,T8D,SG,_G,kG,CG,uG,gG,fG,xG,yG,hG,mG,lG,iG,b8D,dG,cG,nG,pG,sF,rG,J5,tG,oG,P8D,aG,sG,eG,DI,FU,$I,F5,UU,JI,FI,UI,XI,YI,QI,qI,KI,WI,GI,k8D,M_,II,U5,zI,HI,BI,XU,OI,jI,NI,VI,LI,wI,RI,YU,MI,EI,AI,vI,TI,bI,PI,SI,QU,X5,_I,kI,CI,uI,gI,Y5,fI;var f8=S(()=>{lF();E1();VW();x4();s();MG();s();ID=T("$ZodType",(D,$)=>{var J;D??(D={}),D._zod.def=$,D._zod.bag=D._zod.bag||{},D._zod.version=RG;let F=D._zod.def.checks,U=D._zod.traits.has("$ZodCheck")?[D,...F??[]]:F?.length?[...F]:[];for(let X of U)for(let Y of X._zod.onattach)Y(D);if(U.length===0)(J=D._zod).deferred??(J.deferred=[]),D._zod.deferred?.push(()=>{D._zod.run=D._zod.parse});else{let X=(Q,q,K)=>{if(Q.memo)return Q;let W=$0(Q),G;for(let I of q){if(I._zod.def.when){if(qW(Q))continue;if(!I._zod.def.when(Q))continue}else if(W)continue;let z=Q.issues.length,Z=I._zod.check(Q);if(Z instanceof Promise&&K?.async===!1)throw new R0;if(G||Z instanceof Promise)G=(G??Promise.resolve()).then(async()=>{if(await Z,Q.issues.length===z)return;if(RF(Q.issues,z,D),!W)W=$0(Q,z)});else{if(Q.issues.length===z)continue;if(RF(Q.issues,z,D),!W)W=$0(Q,z)}}if(G)return G.then(()=>{return Q});return Q},Y=(Q,q,K)=>{if($0(Q))return Q.aborted=!0,Q;let W=X(q,U,K);if(W instanceof Promise){if(K.async===!1)throw new R0;return W.then((G)=>D._zod.parse(G,K))}return D._zod.parse(W,K)};D._zod.run=(Q,q)=>{if(q.skipChecks)return D._zod.parse(Q,q);if(q.direction==="backward"){let W=D._zod.parse({value:Q.value,issues:[]},{...q,skipChecks:!0});if(W instanceof Promise)return W.then((G)=>{return Y(G,Q,q)});return Y(W,Q,q)}let K=D._zod.parse(Q,q);if(K instanceof Promise){if(q.async===!1)throw new R0;return K.then((W)=>X(W,U,q))}return X(K,U,q)}}},{get "~standard"(){return i9(this,"~standard",pF(this))},set "~standard"(D){M1(this,"~standard",D)}});y4=T("$ZodString",(D,$)=>{ID.init(D,$),D._zod.pattern=$.pattern??pW,D._zod.parse=(J,F)=>{if($.coerce)try{J.value=String(J.value)}catch(U){}if(typeof J.value==="string")return J;return J.issues.push({expected:"string",code:"invalid_type",input:J.value,inst:D}),J}}),yD=T("$ZodStringFormat",(D,$)=>{C8.init(D,$),y4.init(D,$)}),AG=T("$ZodGUID",(D,$)=>{$.pattern??($.pattern=PW),yD.init(D,$)}),vG=T("$ZodUUID",(D,$)=>{if($.version){let F={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[$.version];if(F===void 0)throw Error(`Invalid UUID version: "${$.version}"`);$.pattern??($.pattern=f4(F))}else $.pattern??($.pattern=f4());yD.init(D,$)}),TG=T("$ZodEmail",(D,$)=>{$.pattern??($.pattern=SW),yD.init(D,$)});T8D=/[\t\n\r]/g;SG=T("$ZodURL",(D,$)=>{yD.init(D,$),D._zod.check=(J)=>{try{let F=J.value.trim(),U=rF(F,$);if(U===bG){J.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:J.value,inst:D,continue:!$.abort});return}if(U===s9){J.issues.push({code:"invalid_format",format:"url",input:J.value,inst:D,continue:!$.abort});return}if(U===!0){J.value=e9(F);return}if($.hostname&&!tF(U,$.hostname))J.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:$.hostname.source,input:J.value,inst:D,continue:!$.abort});if($.protocol&&!oF(U,$.protocol))J.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:$.protocol.source,input:J.value,inst:D,continue:!$.abort});J.value=$.normalize?U.href:e9(F);return}catch(F){J.issues.push({code:"invalid_format",format:"url",input:J.value,inst:D,continue:!$.abort})}}}),_G=T("$ZodEmoji",(D,$)=>{$.pattern??($.pattern=_W()),yD.init(D,$)}),kG=T("$ZodNanoID",(D,$)=>{if($.length!==void 0&&(!Number.isInteger($.length)||$.length<1))throw Error(`Invalid nanoid length: ${$.length}`);$.pattern??($.pattern=$.length===void 0?vW:TW($.length)),yD.init(D,$)}),CG=T("$ZodCUID",(D,$)=>{$.pattern??($.pattern=wW),yD.init(D,$)}),uG=T("$ZodCUID2",(D,$)=>{$.pattern??($.pattern=RW),yD.init(D,$)}),gG=T("$ZodULID",(D,$)=>{$.pattern??($.pattern=MW),yD.init(D,$)}),fG=T("$ZodXID",(D,$)=>{$.pattern??($.pattern=EW),yD.init(D,$)}),xG=T("$ZodKSUID",(D,$)=>{$.pattern??($.pattern=AW),yD.init(D,$)}),yG=T("$ZodISODateTime",(D,$)=>{$.pattern??($.pattern=nW($)),yD.init(D,$)}),hG=T("$ZodISODate",(D,$)=>{$.pattern??($.pattern=dW),yD.init(D,$)}),mG=T("$ZodISOTime",(D,$)=>{$.pattern??($.pattern=cW($)),yD.init(D,$)}),lG=T("$ZodISODuration",(D,$)=>{$.pattern??($.pattern=bW),yD.init(D,$)}),iG=T("$ZodIPv4",(D,$)=>{$.pattern??($.pattern=kW),yD.init(D,$)}),b8D=/^[0-9a-fA-F:.]+$/;dG=T("$ZodIPv6",(D,$)=>{$.pattern??($.pattern=CW),yD.init(D,$),D._zod.check=(J)=>{if(!D5(J.value))J.issues.push({code:"invalid_format",format:"ipv6",input:J.value,inst:D,continue:!$.abort})}}),cG=T("$ZodMAC",(D,$)=>{$.pattern??($.pattern=uW($.delimiter)),yD.init(D,$)}),nG=T("$ZodCIDRv4",(D,$)=>{$.pattern??($.pattern=gW),yD.init(D,$)});pG=T("$ZodCIDRv6",(D,$)=>{$.pattern??($.pattern=fW),yD.init(D,$),D._zod.check=(J)=>{if(!aF(J.value))J.issues.push({code:"invalid_format",format:"cidrv6",input:J.value,inst:D,continue:!$.abort})}});sF=/^[0-9a-zA-Z+/]*={0,2}$/,rG=T("$ZodBase64",(D,$)=>{$.pattern??($.pattern=sF),yD.init(D,$),D._zod.check=(J)=>{if($5(J.value))return;J.issues.push({code:"invalid_format",format:"base64",input:J.value,inst:D,continue:!$.abort})}}),J5=/^[A-Za-z0-9_-]*$/;tG=T("$ZodBase64URL",(D,$)=>{$.pattern??($.pattern=J5),yD.init(D,$),D._zod.check=(J)=>{if(eF(J.value))return;J.issues.push({code:"invalid_format",format:"base64url",input:J.value,inst:D,continue:!$.abort})}}),oG=T("$ZodE164",(D,$)=>{$.pattern??($.pattern=lW),yD.init(D,$)}),P8D=/[- ]/g;aG=T("$ZodCreditCard",(D,$)=>{$.pattern??($.pattern=gF),yD.init(D,$),D._zod.check=(J)=>{if(DU(J.value))return;J.issues.push({code:"invalid_format",format:"credit_card",input:J.value,inst:D,continue:!$.abort})}});sG=T("$ZodIBAN",(D,$)=>{$.pattern??($.pattern=fF),yD.init(D,$),D._zod.check=(J)=>{if($U(J.value))return;J.issues.push({code:"invalid_format",format:"iban",input:J.value,inst:D,continue:!$.abort})}});eG=T("$ZodJWT",(D,$)=>{yD.init(D,$),D._zod.check=(J)=>{if(JU(J.value,$.alg))return;J.issues.push({code:"invalid_format",format:"jwt",input:J.value,inst:D,continue:!$.abort})}}),DI=T("$ZodCustomStringFormat",(D,$)=>{yD.init(D,$),D._zod.check=(J)=>{if($.fn(J.value))return;J.issues.push({code:"invalid_format",format:$.format,input:J.value,inst:D,continue:!$.abort})}}),FU=T("$ZodNumber",(D,$)=>{ID.init(D,$),D._zod.pattern=O6,D._zod.parse=(J,F)=>{if($.coerce)try{J.value=Number(J.value)}catch(Y){}let U=J.value;if(typeof U==="number"&&!Number.isNaN(U)&&Number.isFinite(U))return J;let X=typeof U==="number"?Number.isNaN(U)?"NaN":!Number.isFinite(U)?String(U):void 0:void 0;return J.issues.push({expected:"number",code:"invalid_type",input:U,inst:D,...X?{received:X}:{}}),J}}),$I=T("$ZodNumberFormat",(D,$)=>{XG.init(D,$),FU.init(D,$)}),F5=T("$ZodBoolean",(D,$)=>{ID.init(D,$),D._zod.pattern=oW,D._zod.parse=(J,F)=>{if($.coerce)try{J.value=Boolean(J.value)}catch(X){}let U=J.value;if(typeof U==="boolean")return J;return J.issues.push({expected:"boolean",code:"invalid_type",input:U,inst:D}),J}}),UU=T("$ZodBigInt",(D,$)=>{ID.init(D,$),D._zod.pattern=tW,D._zod.parse=(J,F)=>{if($.coerce)try{J.value=BigInt(J.value)}catch(U){}if(typeof J.value==="bigint")return J;return J.issues.push({expected:"bigint",code:"invalid_type",input:J.value,inst:D}),J}}),JI=T("$ZodBigIntFormat",(D,$)=>{YG.init(D,$),UU.init(D,$)}),FI=T("$ZodSymbol",(D,$)=>{ID.init(D,$),D._zod.parse=(J,F)=>{let U=J.value;if(typeof U==="symbol")return J;return J.issues.push({expected:"symbol",code:"invalid_type",input:U,inst:D}),J}}),UI=T("$ZodUndefined",(D,$)=>{ID.init(D,$),D._zod.pattern=sW,D._zod.values=new Set([void 0]),D._zod.parse=(J,F)=>{let U=J.value;if(typeof U>"u")return J;return J.issues.push({expected:"undefined",code:"invalid_type",input:U,inst:D}),J}}),XI=T("$ZodNull",(D,$)=>{ID.init(D,$),D._zod.pattern=aW,D._zod.values=new Set([null]),D._zod.parse=(J,F)=>{let U=J.value;if(U===null)return J;return J.issues.push({expected:"null",code:"invalid_type",input:U,inst:D}),J}}),YI=T("$ZodAny",(D,$)=>{ID.init(D,$),D._zod.parse=(J)=>J}),QI=T("$ZodUnknown",(D,$)=>{ID.init(D,$),D._zod.parse=(J)=>J}),qI=T("$ZodNever",(D,$)=>{ID.init(D,$),D._zod.parse=(J,F)=>{return J.issues.push({expected:"never",code:"invalid_type",input:J.value,inst:D}),J}}),KI=T("$ZodVoid",(D,$)=>{ID.init(D,$),D._zod.parse=(J,F)=>{let U=J.value;if(typeof U>"u")return J;return J.issues.push({expected:"void",code:"invalid_type",input:U,inst:D}),J}}),WI=T("$ZodDate",(D,$)=>{ID.init(D,$),D._zod.parse=(J,F)=>{if($.coerce)try{J.value=new Date(J.value)}catch(Q){}let U=J.value,X=U instanceof Date;if(X&&!Number.isNaN(U.getTime()))return J;return J.issues.push({expected:"date",code:"invalid_type",input:U,...X?{received:"Invalid Date"}:{},inst:D}),J}});GI=T("$ZodArray",(D,$)=>{ID.init(D,$);let J=T$.memoizer;J?.attach(D),D._zod.parse=(F,U)=>{let X=F.value;if(!Array.isArray(X))return F.issues.push({expected:"array",code:"invalid_type",input:X,inst:D}),F;F.value=J?J.alloc(D,F,Array(X.length),U):Array(X.length);let Y=[],Q=U?.abortEarly;for(let q=0;q<X.length;q++){let K=X[q],W=$.element._zod.run({value:K,issues:[]},U);if(W instanceof Promise)Y.push(W.then((G)=>X_(G,F,q)));else if(X_(W,F,q),Q&&W.issues.length!==0&&$0(W))break}if(Y.length)return Promise.all(Y).then(()=>F);return F}});k8D=[];M_=T("$ZodObject",(D,$)=>{ID.init(D,$);let J=Object.getOwnPropertyDescriptor($,"shape"),F=J?.get?J.get.raw:$.shape??{};if(F){let K=()=>{let W={...F};return Object.defineProperty($,"shape",{value:W}),K.raw=W,W};K.raw=F,Object.defineProperty($,"shape",{get:K})}let U=v8(()=>w_($));VD(D,"propValues",(K)=>{let W=K.def.shape,G={};for(let I in W){let z=W[I]._zod;if(z.values){if(!Object.prototype.hasOwnProperty.call(G,I))k$(G,I,new Set);for(let Z of z.values)G[I].add(Z);if(z.optin!==void 0)G[I].add(void 0)}}return G});let X=C4,Y=$.catchall,Q,q=T$.memoizer;q?.attach(D),D._zod.parse=(K,W)=>{Q??(Q=U.value);let G=K.value;if(!X(G))return K.issues.push({expected:"object",code:"invalid_type",input:G,inst:D}),K;K.value=q?q.alloc(D,K,{},W):{};let I=[],z=Q.shape,Z=W?.abortEarly,H=K.issues.length;for(let B of Q.allKeys){if(Z&&K.issues.length!==H){if($0(K,H))break;H=K.issues.length}if(B==="__proto__")continue;let j=z[B],N=j._zod.optin,O=j._zod.optout,L=j._zod.run({value:G[B],issues:[]},W);if(L instanceof Promise)I.push(L.then((A)=>nF(A,K,B,G,N,O)));else nF(L,K,B,G,N,O)}if(!Y)return I.length?Promise.all(I).then(()=>K):K;return R_(I,G,K,W,U.value,D,Z===!0)}}),II=T("$ZodObjectJIT",(D,$)=>{M_.init(D,$);let J=D._zod.parse,F=v8(()=>w_($)),U=T$.memoizer,X=(z)=>{let Z=F.value,H=Z.symbolKeys,B=new u8(["payload","ctx"],{shape:z,inst:D,memo:U,syms:H}),j=(A)=>`shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`,N=(A,E)=>`
let ${A}_ab = false;
for (let i = 0; i < ${A}.issues.length; i++) {
const iss = ${A}.issues[i];
iss.path = iss.path ? [${E}, ...iss.path] : [${E}];
payload.issues.push(iss);
if (iss.continue !== true) ${A}_ab = true;
}
if (${A}_ab && ctx && ctx.abortEarly) {
payload.value = newResult;
return payload;
}`;B.write("const input = payload.value;");let O=Object.create(null),L=0;for(let A of Z.allKeys)O[A]=`key_${L++}`;B.write(U?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let A of Z.allKeys){if(A==="__proto__")continue;let E=O[A],_=typeof A==="symbol"?`syms[${H.indexOf(A)}]`:D0(A),k=`${_} in input`,C=z[A],y=C?._zod?.optin,v=y!==void 0,i=C?._zod?.optout==="optional";if(B.write(`const ${E} = ${j(_)};`),v&&i){let c=y==="optional"?`${E}_present`:`${E}.value !== undefined || ${E}_present`;B.write(`
const ${E}_present = ${k};
if (!${E}.issues.length || ${E}_present) {
if (${E}.issues.length) {${N(E,_)}
}
if (${c}) {
newResult[${_}] = ${E}.value;
}
}
`)}else if(!v)B.write(`
const ${E}_present = ${k};
if (${E}.issues.length) {${N(E,_)}
}
if (!${E}_present && !${E}.issues.length) {
payload.issues.push({
code: "invalid_type",
expected: "nonoptional",
input: undefined,
path: [${_}]
});
if (ctx && ctx.abortEarly) {
payload.value = newResult;
return payload;
}
}
if (${E}_present) {
newResult[${_}] = ${E}.value;
}
`);else if(B.write(`
if (${E}.issues.length) {${N(E,_)}
}
`),y==="defaulted")B.write(`newResult[${_}] = ${E}.value;`);else B.write(`
if (${E}.value !== undefined || ${k}) {
newResult[${_}] = ${E}.value;
}
`)}return B.write("payload.value = newResult;"),B.write("return payload;"),B.compile()},Y,Q=C4,q=!T$.jitless,W=q&&XW.value,G=$.catchall,I;D._zod.parse=(z,Z)=>{I??(I=F.value);let H=z.value;if(!Q(H))return z.issues.push({expected:"object",code:"invalid_type",input:H,inst:D}),z;if(q&&W&&Z?.async===!1&&Z.jitless!==!0){if(!Y)Y=X($.shape);if(z=Y(z,Z),!G)return z;return R_([],H,z,Z,I,D,Z?.abortEarly===!0)}return J(z,Z)}});U5=T("$ZodUnion",(D,$)=>{ID.init(D,$),VD(D,"optin",(F)=>F.def.options.some((U)=>U._zod.optin==="defaulted")?"defaulted":F.def.options.some((U)=>U._zod.optin!==void 0)?"optional":void 0),VD(D,"optout",(F)=>F.def.options.some((U)=>U._zod.optout==="optional")?"optional":void 0),VD(D,"values",(F)=>{if(F.def.options.every((U)=>U._zod.values))return new Set(F.def.options.flatMap((U)=>Array.from(U._zod.values)));return}),VD(D,"pattern",(F)=>{if(F.def.options.every((U)=>U._zod.pattern)){let U=F.def.options.map((X)=>X._zod.pattern);return new RegExp(`^(${U.map((X)=>h6(X.source)).join("|")})$`)}return});let J=$.options.length===1?$.options[0]._zod.run:null;D._zod.parse=(F,U)=>{if(J)return J(F,U);let X=!1,Y=[];for(let Q of $.options){let q=Q._zod.run({value:F.value,issues:[]},U);if(q instanceof Promise)Y.push(q),X=!0;else{if(q.issues.length===0)return q;Y.push(q)}}if(!X)return Y_(Y,F,D,U);return Promise.all(Y).then((Q)=>{return Y_(Q,F,D,U)})}});zI=T("$ZodXor",(D,$)=>{U5.init(D,$),$.inclusive=!1;let J=$.options.length===1?$.options[0]._zod.run:null;D._zod.parse=(F,U)=>{if(J)return J(F,U);let X=!1,Y=[];for(let Q of $.options){let q=Q._zod.run({value:F.value,issues:[]},U);if(q instanceof Promise)Y.push(q),X=!0;else Y.push(q)}if(!X)return Q_(Y,F,D,U);return Promise.all(Y).then((Q)=>{return Q_(Q,F,D,U)})}});HI=T("$ZodDiscriminatedUnion",(D,$)=>{$.inclusive=!1,U5.init(D,$);let J=D._zod.parse;VD(D,"propValues",(U)=>{let X={},Y=0;for(let Q of U.def.options){let q=Q._zod.propValues;if(!q||Object.keys(q).length===0)throw Error(`Invalid discriminated union option at index "${U.def.options.indexOf(Q)}"`);if(q[U.def.discriminator]?.has(void 0))Y++;for(let[K,W]of Object.entries(q)){if(!Object.prototype.hasOwnProperty.call(X,K))k$(X,K,new Set);for(let G of W)X[K].add(G)}}if(!U.def.unionFallback&&Y>1)X[U.def.discriminator]?.delete(void 0);return X}),$.options.forEach((U,X)=>{let Y=T8(U._zod.def);if(Y&&!Object.prototype.hasOwnProperty.call(Y,$.discriminator))throw Error(`Invalid discriminated union option at index "${X}"`)});let F=v8(()=>E_($));D._zod.parse=(U,X)=>{let Y=U.value;if(!C4(Y))return U.issues.push({code:"invalid_type",expected:"object",input:Y,inst:D}),U;let Q=Y?.[$.discriminator],q=F.value.get(Q);if(q&&(Q!==void 0||X.direction!=="backward"))return q._zod.run(U,X);if($.unionFallback||X.direction==="backward")return J(U,X);return U.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:$.discriminator,options:Array.from(F.value.keys()).filter((K)=>F.value.get(K)!==null),input:Y,path:[$.discriminator],inst:D}),U}}),BI=T("$ZodIntersection",(D,$)=>{ID.init(D,$),D._zod.parse=(J,F)=>{let U=J.value,X=$.left._zod.run({value:U,issues:[]},F),Y=$.right._zod.run({value:U,issues:[]},F);if(X instanceof Promise||Y instanceof Promise)return Promise.all([X,Y]).then(([q,K])=>{return q_(J,q,K)});return q_(J,X,Y)}});XU=T("$ZodTuple",(D,$)=>{ID.init(D,$);let J=$.items,F=T$.memoizer;F?.attach(D),D._zod.parse=(U,X)=>{let Y=U.value;if(!Array.isArray(Y))return U.issues.push({input:Y,inst:D,expected:"tuple",code:"invalid_type"}),U;U.value=F?F.alloc(D,U,[],X):[];let Q=[],q=K_(J,"optin"),K=K_(J,"optout");if(!$.rest){if(Y.length<q)return U.issues.push({code:"too_small",minimum:q,inclusive:!0,input:Y,inst:D,origin:"array"}),U;if(Y.length>J.length)U.issues.push({code:"too_big",maximum:J.length,inclusive:!0,input:Y,inst:D,origin:"array"})}let W=Array(J.length),G=$.rest?X?.abortEarly:void 0,I=!1;for(let z=0;z<J.length;z++){let Z=J[z]._zod.run({value:Y[z],issues:[]},X);if(Z instanceof Promise)Q.push(Z.then((H)=>{W[z]=H}));else if(W[z]=Z,G&&!I&&Z.issues.length)I=$0(Z)}if($.rest&&!I){let z=J.length-1,Z=Y.slice(J.length),H=U.issues.length;for(let B of Z){if(G&&U.issues.length!==H){if($0(U,H))break;H=U.issues.length}z++;let j=$.rest._zod.run({value:B,issues:[]},X);if(j instanceof Promise)Q.push(j.then((N)=>W_(N,U,z)));else W_(j,U,z)}}if(Q.length)return Promise.all(Q).then(()=>G_(W,U,J,Y,K));return G_(W,U,J,Y,K)}});OI=T("$ZodRecord",(D,$)=>{ID.init(D,$);let J=T$.memoizer;J?.attach(D),D._zod.parse=(F,U)=>{let X=F.value;if(!m0(X))return F.issues.push({expected:"record",code:"invalid_type",input:X,inst:D}),F;let Y=[],Q=$.keyType._zod.values;if(Q&&!$.partial){F.value=J?J.alloc(D,F,{},U):{};let q=new Set;for(let W of Q)if(typeof W==="string"||typeof W==="number"||typeof W==="symbol"){if(q.add(typeof W==="number"?W.toString():W),W==="__proto__")continue;let G=$.keyType._zod.run({value:W,issues:[]},U);if(G instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(G.issues.length){F.issues.push({code:"invalid_key",origin:"record",issues:G.issues.map((Z)=>H0(Z,U,I$())),input:W,path:[W],inst:D});continue}let I=G.value;if(I==="__proto__")continue;let z=$.valueType._zod.run({value:X[W],issues:[]},U);if(z instanceof Promise)Y.push(z.then((Z)=>{if(Z.issues.length)F.issues.push(...Z0(W,Z.issues));F.value[I]=Z.value}));else{if(z.issues.length)F.issues.push(...Z0(W,z.issues));F.value[I]=z.value}}let K;for(let W in X)if(!q.has(W))if($.mode==="loose"){if(W==="__proto__")continue;F.value[W]=X[W]}else K=K??[],K.push(W);if(K&&K.length>0)F.issues.push({code:"unrecognized_keys",input:X,inst:D,keys:K,continue:!0})}else{F.value=J?J.alloc(D,F,{},U):{};let q;for(let K of Reflect.ownKeys(X)){if(K==="__proto__")continue;if(!Object.prototype.propertyIsEnumerable.call(X,K))continue;let W=$.keyType._zod.run({value:K,issues:[]},U);if(W instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof K==="string"&&O6.test(K)&&W.issues.length){let Z=$.keyType._zod.run({value:Number(K),issues:[]},U);if(Z instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(Z.issues.length===0)W=Z}if(W.issues.length){if($.mode==="loose")F.value[K]=X[K];else if(Q)q=q??[],q.push(K);else F.issues.push({code:"invalid_key",origin:"record",issues:W.issues.map((Z)=>H0(Z,U,I$())),input:K,path:[K],inst:D});continue}let I=W.value;if(I==="__proto__")continue;let z=$.valueType._zod.run({value:X[K],issues:[]},U);if(z instanceof Promise)Y.push(z.then((Z)=>{if(Z.issues.length)F.issues.push(...Z0(K,Z.issues));F.value[I]=Z.value}));else{if(z.issues.length)F.issues.push(...Z0(K,z.issues));F.value[I]=z.value}}if(q&&q.length>0)F.issues.push({code:"unrecognized_keys",input:X,inst:D,keys:q,continue:!0})}if(Y.length)return Promise.all(Y).then(()=>F);return F}}),jI=T("$ZodMap",(D,$)=>{ID.init(D,$);let J=T$.memoizer;J?.attach(D),D._zod.parse=(F,U)=>{let X=F.value;if(!(X instanceof Map))return F.issues.push({expected:"map",code:"invalid_type",input:X,inst:D}),F;let Y=[];F.value=J?J.alloc(D,F,new Map,U):new Map;let Q=U?.abortEarly,q=F.issues.length;for(let[K,W]of X){if(Q&&F.issues.length!==q){if($0(F,q))break;q=F.issues.length}let G=$.keyType._zod.run({value:K,issues:[]},U),I=$.valueType._zod.run({value:W,issues:[]},U);if(G instanceof Promise||I instanceof Promise)Y.push(Promise.all([G,I]).then(([z,Z])=>{I_(z,Z,F,K,X,D,U)}));else I_(G,I,F,K,X,D,U)}if(Y.length)return Promise.all(Y).then(()=>F);return F}});NI=T("$ZodSet",(D,$)=>{ID.init(D,$);let J=T$.memoizer;J?.attach(D),D._zod.parse=(F,U)=>{let X=F.value;if(!(X instanceof Set))return F.issues.push({input:X,inst:D,expected:"set",code:"invalid_type"}),F;let Y=[];F.value=J?J.alloc(D,F,new Set,U):new Set;let Q=U?.abortEarly,q=F.issues.length;for(let K of X){if(Q&&F.issues.length!==q){if($0(F,q))break;q=F.issues.length}let W=$.valueType._zod.run({value:K,issues:[]},U);if(W instanceof Promise)Y.push(W.then((G)=>z_(G,F)));else z_(W,F)}if(Y.length)return Promise.all(Y).then(()=>F);return F}});VI=T("$ZodEnum",(D,$)=>{ID.init(D,$);let J=E8($.entries),F=new Set(J);D._zod.values=F,VD(D,"pattern",(U)=>{let X=E8(U.def.entries).filter((Y)=>x9.has(typeof Y));return new RegExp(X.length?`^(${X.map((Y)=>l0(Y.toString())).join("|")})$`:"^[^\\s\\S]$")}),D._zod.parse=(U,X)=>{let Y=U.value;if(F.has(Y))return U;return U.issues.push({code:"invalid_value",values:J,input:Y,inst:D}),U}}),LI=T("$ZodLiteral",(D,$)=>{ID.init(D,$);let J=new Set($.values);D._zod.values=J,VD(D,"pattern",(F)=>{let U=F.def.values;return new RegExp(U.length?`^(${U.map((X)=>typeof X==="string"?l0(X):X?l0(X.toString()):String(X)).join("|")})$`:"^[^\\s\\S]$")}),D._zod.parse=(F,U)=>{let X=F.value;if(J.has(X))return F;return F.issues.push({code:"invalid_value",values:$.values,input:X,inst:D}),F}}),wI=T("$ZodFile",(D,$)=>{ID.init(D,$),D._zod.parse=(J,F)=>{let U=J.value;if(U instanceof File)return J;return J.issues.push({expected:"file",code:"invalid_type",input:U,inst:D}),J}}),RI=T("$ZodTransform",(D,$)=>{ID.init(D,$),D._zod.optin="optional",T$.memoizer?.guard(D),D._zod.parse=(J,F)=>{if(F.direction==="backward")throw new g4(D.constructor.name);let U=$.transform(J.value,J);if(F.async)return(U instanceof Promise?U:Promise.resolve(U)).then((Y)=>{return J.value=Y,J});if(U instanceof Promise)throw new R0;return J.value=U,J}});YU=T("$ZodOptional",(D,$)=>{ID.init(D,$),VD(D,"optin",(J)=>J.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),D._zod.optout="optional",VD(D,"values",(J)=>{let F=J.def.innerType._zod.values;return F?new Set([...F,void 0]):void 0}),VD(D,"pattern",(J)=>{let F=J.def.innerType._zod.pattern;return F?new RegExp(`^(${h6(F.source)})?$`):void 0}),D._zod.parse=(J,F)=>{if(J.value===void 0){if($.innerType._zod.optin!=="defaulted")return J;let U=$.innerType._zod.run({value:J.value,issues:[]},F);if(U instanceof Promise)return U.then((X)=>Z_(J,X));return Z_(J,U)}return $.innerType._zod.run(J,F)}}),MI=T("$ZodExactOptional",(D,$)=>{YU.init(D,$),VD(D,"values",(J)=>J.def.innerType._zod.values),VD(D,"pattern",(J)=>J.def.innerType._zod.pattern),D._zod.parse=(J,F)=>{return $.innerType._zod.run(J,F)}}),EI=T("$ZodNullable",(D,$)=>{ID.init(D,$),VD(D,"optin",(J)=>J.def.innerType._zod.optin),VD(D,"optout",(J)=>J.def.innerType._zod.optout),VD(D,"pattern",(J)=>{let F=J.def.innerType._zod.pattern;return F?new RegExp(`^(${h6(F.source)}|null)$`):void 0}),VD(D,"values",(J)=>{return J.def.innerType._zod.values?new Set([...J.def.innerType._zod.values,null]):void 0}),D._zod.parse=(J,F)=>{if(J.value===null)return J;return $.innerType._zod.run(J,F)}}),AI=T("$ZodDefault",(D,$)=>{ID.init(D,$),D._zod.optin="defaulted",VD(D,"values",(J)=>J.def.innerType._zod.values),D._zod.parse=(J,F)=>{if(F.direction==="backward")return $.innerType._zod.run(J,F);if(J.value===void 0)return J.value=$.defaultValue,J;let U=$.innerType._zod.run(J,F);if(U instanceof Promise)return U.then((X)=>H_(X,$));return H_(U,$)}});vI=T("$ZodPrefault",(D,$)=>{ID.init(D,$),D._zod.optin="defaulted",VD(D,"values",(J)=>J.def.innerType._zod.values),D._zod.parse=(J,F)=>{if(F.direction==="backward")return $.innerType._zod.run(J,F);if(J.value===void 0)J.value=$.defaultValue;return $.innerType._zod.run(J,F)}}),TI=T("$ZodNonOptional",(D,$)=>{ID.init(D,$),VD(D,"values",(J)=>{let F=J.def.innerType._zod.values;return F?new Set([...F].filter((U)=>U!==void 0)):void 0}),D._zod.parse=(J,F)=>{let U=$.innerType._zod.run(J,F);if(U instanceof Promise)return U.then((X)=>B_(X,D));return B_(U,D)}});bI=T("$ZodSuccess",(D,$)=>{ID.init(D,$),D._zod.parse=(J,F)=>{if(F.direction==="backward")throw new g4("ZodSuccess");let U=$.innerType._zod.run(J,F);if(U instanceof Promise)return U.then((X)=>{return J.value=X.issues.length===0,J});return J.value=U.issues.length===0,J}});PI=T("$ZodCatch",(D,$)=>{ID.init(D,$),VD(D,"optin",(J)=>J.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),VD(D,"optout",(J)=>J.def.innerType._zod.optout),VD(D,"values",(J)=>J.def.innerType._zod.values),D._zod.parse=(J,F)=>{if(F.direction==="backward")return $.innerType._zod.run(J,F);let U=$.innerType._zod.run({value:J.value,issues:[]},F);if(U instanceof Promise)return U.then((X)=>O_(J,X,$,F));return O_(J,U,$,F)}}),SI=T("$ZodNaN",(D,$)=>{ID.init(D,$),D._zod.parse=(J,F)=>{if(typeof J.value!=="number"||!Number.isNaN(J.value))return J.issues.push({input:J.value,inst:D,expected:"nan",code:"invalid_type"}),J;return J}}),QU=T("$ZodPipe",(D,$)=>{ID.init(D,$),VD(D,"values",(J)=>J.def.in._zod.values),VD(D,"optin",(J)=>J.def.in._zod.optin),VD(D,"optout",(J)=>J.def.out._zod.optout),VD(D,"propValues",(J)=>J.def.in._zod.propValues),D._zod.parse=(J,F)=>{if(F.direction==="backward"){let X=$.out._zod.run(J,F);if(X instanceof Promise)return X.then((Y)=>iF(Y,$.in,F));return iF(X,$.in,F)}let U=$.in._zod.run(J,F);if(U instanceof Promise)return U.then((X)=>iF(X,$.out,F));return iF(U,$.out,F)}});X5=T("$ZodCodec",(D,$)=>{ID.init(D,$),VD(D,"values",(J)=>J.def.in._zod.values),VD(D,"optin",(J)=>J.def.in._zod.optin),VD(D,"optout",(J)=>J.def.out._zod.optout),VD(D,"propValues",(J)=>J.def.in._zod.propValues),D._zod.parse=(J,F)=>{if((F.direction||"forward")==="forward"){let X=$.in._zod.run(J,F);if(X instanceof Promise)return X.then((Y)=>dF(Y,$,F));return dF(X,$,F)}else{let X=$.out._zod.run(J,F);if(X instanceof Promise)return X.then((Y)=>dF(Y,$,F));return dF(X,$,F)}}});_I=T("$ZodPreprocess",(D,$)=>{QU.init(D,$)}),kI=T("$ZodReadonly",(D,$)=>{ID.init(D,$),VD(D,"propValues",(J)=>J.def.innerType._zod.propValues),VD(D,"values",(J)=>J.def.innerType._zod.values),VD(D,"optin",(J)=>J.def.innerType?._zod?.optin),VD(D,"optout",(J)=>J.def.innerType?._zod?.optout),D._zod.parse=(J,F)=>{if(F.direction==="backward")return $.innerType._zod.run(J,F);let U=$.innerType._zod.run(J,F);if(U instanceof Promise)return U.then(j_);return j_(U)}});CI=T("$ZodTemplateLiteral",(D,$)=>{ID.init(D,$);let J=[];for(let F of $.parts)if(typeof F==="object"&&F!==null){let U=EG(F);if(!U)throw Error(`Invalid template literal part, no pattern found: ${[...F._zod.traits].shift()}`);J.push(h6(U))}else if(F===null||YW.has(typeof F))J.push(l0(`${F}`));else throw Error(`Invalid template literal part: ${F}`);D._zod.pattern=new RegExp(`^${J.join("")}$`),D._zod.parse=(F,U)=>{if(typeof F.value!=="string")return F.issues.push({input:F.value,inst:D,expected:"string",code:"invalid_type"}),F;if(D._zod.pattern.lastIndex=0,!D._zod.pattern.test(F.value))return F.issues.push({input:F.value,inst:D,code:"invalid_format",format:$.format??"template_literal",pattern:D._zod.pattern.source}),F;return F}}),uI=T("$ZodFunction",(D,$)=>{return ID.init(D,$),Object.defineProperty(D,"_def",{value:$}),D._zod.def=$,D.implement=(J)=>{if(typeof J!=="function")throw Error("implement() must be called with a function");return Object.defineProperty(function(...F){let U=D._def.input?AF(D._def.input,F):F,X=Reflect.apply(J,this,U);if(D._def.output)return AF(D._def.output,X);return X},"_zod",{value:D._zod,enumerable:!1})},D.implementAsync=(J)=>{if(typeof J!=="function")throw Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...F){let U=D._def.input?await vF(D._def.input,F):F,X=await Reflect.apply(J,this,U);if(D._def.output)return await vF(D._def.output,X);return X},"_zod",{value:D._zod,enumerable:!1})},D._zod.parse=(J,F)=>{if(typeof J.value!=="function")return J.issues.push({code:"invalid_type",expected:"function",input:J.value,inst:D}),J;if(D._def.output&&D._def.output._zod.def.type==="promise")J.value=D.implementAsync(J.value);else J.value=D.implement(J.value);return J},D.input=(...J)=>{let F=D.constructor;if(Array.isArray(J[0]))return new F({type:"function",input:new XU({type:"tuple",items:J[0],rest:J[1]}),output:D._def.output});return new F({type:"function",input:J[0],output:D._def.output})},D.output=(J)=>{return new D.constructor({type:"function",input:D._def.input,output:J})},D}),gI=T("$ZodPromise",(D,$)=>{ID.init(D,$),D._zod.parse=(J,F)=>{return Promise.resolve(J.value).then((U)=>$.innerType._zod.run({value:U,issues:[]},F))}}),Y5=T("$ZodLazy",(D,$)=>{ID.init(D,$),FW(D._zod,"innerType",()=>{let J=$;if(!J._cachedInner)J._cachedInner=$.getter();return J._cachedInner}),VD(D,"pattern",(J)=>J.innerType?._zod?.pattern),VD(D,"propValues",(J)=>J.innerType?._zod?.propValues),VD(D,"optin",(J)=>J.innerType?._zod?.optin??void 0),VD(D,"optout",(J)=>J.innerType?._zod?.optout??void 0),D._zod.parse=(J,F)=>{return D._zod.innerType._zod.run(J,F)}}),fI=T("$ZodCustom",(D,$)=>{nD.init(D,$),ID.init(D,$),D._zod.parse=(J,F)=>{return J},D._zod.check=(J)=>{let F=J.value,U=$.fn(F);if(U instanceof Promise)return U.then((X)=>N_(X,J,F,D));N_(U,J,F,D);return}})});function T_(D){return D!==null&&typeof D==="object"}function xI(D){return D.map(($)=>$.path?{...$,path:$.path.slice()}:{...$})}function q5(D,$,J){let F=b_.get(D);if(F!==void 0)return F?Q5:x8;if($.has(D))return Q5;$.add(D);let U=x8,X=(W)=>{if(U!==Q5&&W?._zod){let G=q5(W,$,J);if(G>U)U=G}},Y=(W,G)=>{let I=x8;for(let z of Reflect.ownKeys(W)){let Z=Object.getOwnPropertyDescriptor(W,z);if(G&&!Z.enumerable)continue;let H=Z.get?WU:Z.value?._zod?q5(Z.value,$,J):x8;if(H>I)I=H}return I},Q=(W)=>{if(W>U)U=W},q=D._zod.def,K=q.type;switch(K){case"object":{let W=T8(q);Q(W?Y(W,!0):WU),X(q.catchall);break}case"array":X(q.element);break;case"tuple":for(let W of q.items)X(W);X(q.rest);break;case"record":case"map":X(q.keyType),X(q.valueType);break;case"set":X(q.valueType);break;case"union":for(let W of q.options)X(W);break;case"intersection":X(q.left),X(q.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":X(q.innerType);break;case"pipe":X(q.in),X(q.out);break;case"function":X(q.input),X(q.output);break;case"lazy":{let W=q._cachedInner??(J?D._zod.innerType:void 0);Q(W?q5(W,$,!1):WU);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let W in q){let G=Object.getOwnPropertyDescriptor(q,W);if(!G||G.get)continue;let I=G.value;if(!I||typeof I!=="object")continue;if(I._zod)X(I);else if(Array.isArray(I))for(let z of I)X(z)}}return $.delete(D),u8D(D,U)}function u8D(D,$){if($!==WU)b_.set(D,$===Q5);return $}function GU(D){return q5(D,new Set,!0)!==x8}function g8D(D,$){let J=D.buckets.get($);if(!J)J=new WeakMap,D.buckets.set($,J);return J}function K5(){return f8D}function IU(D,$){let J=D[yI]?.backEdges;return J!==void 0&&T_($)&&J.has($)}var hI,yI="~memo",v_,b_,x8=0,WU=1,Q5=2,qU,KU,f8D;var mI=S(()=>{s();hI=class hI extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform");this.name="ZodCyclicError"}};v_=[];b_=new WeakMap;KU=[],f8D={alloc(D,$,J){let F=qU;if(!F)return J;qU=void 0;let U={value:J,issues:null};return F.set($.value,U),KU.push(U),J},guard(D){var $;($=D._zod).deferred??($.deferred=[]),D._zod.deferred.push(()=>{let J=D._zod.parse,F=(U,X)=>{if(X.direction!=="backward"&&IU(X,U.value))throw new hI;return J(U,X)};if(D._zod.parse=F,D._zod.run===J)D._zod.run=F})},attach(D){var $;let J,F=!1,U,X;($=D._zod).deferred??($.deferred=[]),D._zod.deferred.push(()=>{let Y=D._zod.parse,Q=(q,K)=>{if(J===void 0){let j=q5(D,new Set,!1);if(j===x8){if(D._zod.parse=Y,D._zod.run===Q)D._zod.run=Y;return Y(q,K)}if(j===Q5||F)J=!0;else F=!0}let W=q.value;if(!T_(W))return Y(q,K);let G=K[yI];if(!G)G={buckets:new WeakMap,backEdges:void 0},K[yI]=G;let I;if(U===K)I=X;else I=g8D(G,D),U=K,X=I;let z=I.get(W);if(z){if(q.value=z.value,z.issues){if(z.issues.length)q.issues.push(...xI(z.issues))}else q.memo=!0,G.backEdges??(G.backEdges=new WeakSet),G.backEdges.add(z.value);return q}qU=I;let Z=KU.length,H=Y(q,K);qU=void 0;let B=KU.length>Z?KU.pop():void 0;if(H instanceof Promise)return H.then((j)=>{if(B)B.issues=j.issues.length?xI(j.issues):v_;return j});if(B)B.issues=H.issues.length?xI(H.issues):v_;return H};if(D._zod.parse=Q,D._zod.run===Y)D._zod.run=Q})}}});function lI(){return{localeError:x8D()}}var x8D=()=>{let D={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"},map:{unit:"عنصر",verb:"أن يحوي"}};function $(U){return D[U]??null}let J={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",mac:"عنوان MAC",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",credit_card:"رقم بطاقة الائتمان",currency_code:"رمز العملة",iban:"IBAN",jwt:"JWT",template_literal:"مدخل"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${U.expected}، ولكن تم إدخال ${Q}`;return`مدخلات غير مقبولة: يفترض إدخال ${X}، ولكن تم إدخال ${Q}`}case"invalid_value":if(U.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${m(U.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return` أكبر من اللازم: يفترض أن تكون ${U.origin??"القيمة"} ${X} ${U.maximum.toString()} ${Y.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${U.origin??"القيمة"} ${X} ${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`أصغر من اللازم: يفترض لـ ${U.origin} أن يكون ${X} ${U.minimum.toString()} ${Y.unit}`;return`أصغر من اللازم: يفترض لـ ${U.origin} أن يكون ${X} ${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`نَص غير مقبول: يجب أن يبدأ بـ "${U.prefix}"`;if(X.format==="ends_with")return`نَص غير مقبول: يجب أن ينتهي بـ "${X.suffix}"`;if(X.format==="includes")return`نَص غير مقبول: يجب أن يتضمَّن "${X.includes}"`;if(X.format==="regex")return`نَص غير مقبول: يجب أن يطابق النمط ${X.pattern}`;return`${J[X.format]??U.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${U.divisor}`;case"unrecognized_keys":return`معرف${U.keys.length>1?"ات":""} غريب${U.keys.length>1?"ة":""}: ${P(U.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${U.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${U.origin}`;default:return"مدخل غير مقبول"}}};var P_=S(()=>{s()});function iI(){return{localeError:y8D()}}var y8D=()=>{let D={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"},map:{unit:"element",verb:"olmalıdır"}};function $(U){return D[U]??null}let J={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"kredit kartı nömrəsi",currency_code:"valyuta kodu",iban:"IBAN",jwt:"JWT",template_literal:"input"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Yanlış dəyər: gözlənilən instanceof ${U.expected}, daxil olan ${Q}`;return`Yanlış dəyər: gözlənilən ${X}, daxil olan ${Q}`}case"invalid_value":if(U.values.length===1)return`Yanlış dəyər: gözlənilən ${m(U.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Çox böyük: gözlənilən ${U.origin??"dəyər"} ${X}${U.maximum.toString()} ${Y.unit??"element"}`;return`Çox böyük: gözlənilən ${U.origin??"dəyər"} ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Çox kiçik: gözlənilən ${U.origin} ${X}${U.minimum.toString()} ${Y.unit}`;return`Çox kiçik: gözlənilən ${U.origin} ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Yanlış mətn: "${X.prefix}" ilə başlamalıdır`;if(X.format==="ends_with")return`Yanlış mətn: "${X.suffix}" ilə bitməlidir`;if(X.format==="includes")return`Yanlış mətn: "${X.includes}" daxil olmalıdır`;if(X.format==="regex")return`Yanlış mətn: ${X.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${J[X.format]??U.format}`}case"not_multiple_of":return`Yanlış ədəd: ${U.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${U.keys.length>1?"lar":""}: ${P(U.keys,", ")}`;case"invalid_key":return`${U.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${U.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};var S_=S(()=>{s()});function __(D,$,J,F){let U=Math.abs(D),X=U%10,Y=U%100;if(Y>=11&&Y<=19)return F;if(X===1)return $;if(X>=2&&X<=4)return J;return F}function dI(){return{localeError:h8D()}}var h8D=()=>{let D={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},map:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function $(U){return D[U]??null}let J={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",mac:"MAC адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",credit_card:"нумар крэдытнай карты",currency_code:"код валюты",iban:"IBAN",jwt:"JWT",template_literal:"увод"},F={nan:"NaN",number:"лік",array:"масіў"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Няправільны ўвод: чакаўся instanceof ${U.expected}, атрымана ${Q}`;return`Няправільны ўвод: чакаўся ${X}, атрымана ${Q}`}case"invalid_value":if(U.values.length===1)return`Няправільны ўвод: чакалася ${m(U.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y){let Q=Number(U.maximum),q=__(Q,Y.unit.one,Y.unit.few,Y.unit.many);return`Занадта вялікі: чакалася, што ${U.origin??"значэнне"} павінна ${Y.verb} ${X}${U.maximum.toString()} ${q}`}return`Занадта вялікі: чакалася, што ${U.origin??"значэнне"} павінна быць ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y){let Q=Number(U.minimum),q=__(Q,Y.unit.one,Y.unit.few,Y.unit.many);return`Занадта малы: чакалася, што ${U.origin} павінна ${Y.verb} ${X}${U.minimum.toString()} ${q}`}return`Занадта малы: чакалася, што ${U.origin} павінна быць ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Няправільны радок: павінен пачынацца з "${X.prefix}"`;if(X.format==="ends_with")return`Няправільны радок: павінен заканчвацца на "${X.suffix}"`;if(X.format==="includes")return`Няправільны радок: павінен змяшчаць "${X.includes}"`;if(X.format==="regex")return`Няправільны радок: павінен адпавядаць шаблону ${X.pattern}`;return`Няправільны ${J[X.format]??U.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${U.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${U.keys.length>1?"ключы":"ключ"}: ${P(U.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${U.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${U.origin}`;default:return"Няправільны ўвод"}}};var k_=S(()=>{s()});function cI(){return{localeError:m8D()}}var m8D=()=>{let D={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"},map:{unit:"елемента",verb:"да съдържа"}};function $(U){return D[U]??null}let J={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",mac:"MAC адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",credit_card:"номер на кредитна карта",currency_code:"код на валута",iban:"IBAN",jwt:"JWT",template_literal:"вход"},F={nan:"NaN",number:"число",array:"масив"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Невалиден вход: очакван instanceof ${U.expected}, получен ${Q}`;return`Невалиден вход: очакван ${X}, получен ${Q}`}case"invalid_value":if(U.values.length===1)return`Невалиден вход: очакван ${m(U.values[0])}`;return`Невалидна опция: очаквано едно от ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Твърде голямо: очаква се ${U.origin??"стойност"} да съдържа ${X}${U.maximum.toString()} ${Y.unit??"елемента"}`;return`Твърде голямо: очаква се ${U.origin??"стойност"} да бъде ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Твърде малко: очаква се ${U.origin} да съдържа ${X}${U.minimum.toString()} ${Y.unit}`;return`Твърде малко: очаква се ${U.origin} да бъде ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Невалиден низ: трябва да започва с "${X.prefix}"`;if(X.format==="ends_with")return`Невалиден низ: трябва да завършва с "${X.suffix}"`;if(X.format==="includes")return`Невалиден низ: трябва да включва "${X.includes}"`;if(X.format==="regex")return`Невалиден низ: трябва да съвпада с ${X.pattern}`;let Y="Невалиден";if(X.format==="emoji")Y="Невалидно";if(X.format==="datetime")Y="Невалидно";if(X.format==="date")Y="Невалидна";if(X.format==="time")Y="Невалидно";if(X.format==="duration")Y="Невалидна";return`${Y} ${J[X.format]??U.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${U.divisor}`;case"unrecognized_keys":return`Неразпознат${U.keys.length>1?"и":""} ключ${U.keys.length>1?"ове":""}: ${P(U.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${U.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${U.origin}`;default:return"Невалиден вход"}}};var C_=S(()=>{s()});function nI(){return{localeError:l8D()}}var l8D=()=>{let D={string:{unit:"অক্ষর",verb:"থাকতে হবে"},file:{unit:"বাইট",verb:"থাকতে হবে"},array:{unit:"আইটেম",verb:"থাকতে হবে"},set:{unit:"আইটেম",verb:"থাকতে হবে"},map:{unit:"এন্ট্রি",verb:"থাকতে হবে"}};function $(U){return D[U]??null}let J={regex:"ইনপুট",email:"ইমেইল ঠিকানা",url:"URL",emoji:"ইমোজি",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO তারিখ ও সময়",date:"ISO তারিখ",time:"ISO সময়",duration:"ISO সময়কাল",ipv4:"IPv4 ঠিকানা",ipv6:"IPv6 ঠিকানা",mac:"MAC ঠিকানা",cidrv4:"IPv4 রেঞ্জ",cidrv6:"IPv6 রেঞ্জ",base64:"base64-এনকোডেড স্ট্রিং",base64url:"base64url-এনকোডেড স্ট্রিং",json_string:"JSON স্ট্রিং",e164:"E.164 নম্বর",credit_card:"ক্রেডিট কার্ড নম্বর",currency_code:"মুদ্রা কোড",iban:"IBAN",jwt:"JWT",template_literal:"ইনপুট"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;return`অবৈধ ইনপুট: প্রত্যাশিত ${X}, প্রাপ্ত ${Q}`}case"invalid_value":if(U.values.length===1)return`অবৈধ ইনপুট: প্রত্যাশিত ${m(U.values[0])}`;return`অবৈধ অপশন: ${P(U.values," | ")} এর মধ্যে একটি প্রত্যাশিত`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`অনেক বড়: ${U.origin??"মান"} ${X}${U.maximum.toString()} ${Y.unit??"এলিমেন্ট"} হতে হবে`;return`অনেক বড়: ${U.origin??"মান"} ${X}${U.maximum.toString()} হতে হবে`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`অনেক ছোট: ${U.origin} ${X}${U.minimum.toString()} ${Y.unit} হতে হবে`;return`অনেক ছোট: ${U.origin} ${X}${U.minimum.toString()} হতে হবে`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`অবৈধ স্ট্রিং: "${X.prefix}" দিয়ে শুরু হতে হবে`;if(X.format==="ends_with")return`অবৈধ স্ট্রিং: "${X.suffix}" দিয়ে শেষ হতে হবে`;if(X.format==="includes")return`অবৈধ স্ট্রিং: "${X.includes}" অন্তর্ভুক্ত থাকতে হবে`;if(X.format==="regex")return`অবৈধ স্ট্রিং: ${X.pattern} প্যাটার্ন মিলতে হবে`;return`অবৈধ ${J[X.format]??U.format}`}case"not_multiple_of":return`অবৈধ নম্বর: ${U.divisor} এর গুণিতক হতে হবে`;case"unrecognized_keys":return`অচেনা কী${U.keys.length>1?"গুলো":""}: ${P(U.keys,", ")}`;case"invalid_key":return`${U.origin} এ অবৈধ কী`;case"invalid_union":if(U.options&&Array.isArray(U.options)&&U.options.length>0)return`অবৈধ ডিসক্রিমিনেটর মান। প্রত্যাশিত ${U.options.map((Y)=>`'${Y}'`).join(" | ")}`;return"অবৈধ ইনপুট";case"invalid_element":return`${U.origin} এ অবৈধ মান`;default:return"অবৈধ ইনপুট"}}};var u_=S(()=>{s()});function pI(){return{localeError:i8D()}}var i8D=()=>{let D={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{unit:"elements",verb:"contenir"}};function $(U){return D[U]??null}let J={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",mac:"adreça MAC",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",credit_card:"número de targeta de crèdit",currency_code:"codi de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Tipus invàlid: s'esperava instanceof ${U.expected}, s'ha rebut ${Q}`;return`Tipus invàlid: s'esperava ${X}, s'ha rebut ${Q}`}case"invalid_value":if(U.values.length===1)return`Valor invàlid: s'esperava ${m(U.values[0])}`;return`Opció invàlida: s'esperava una de ${P(U.values," o ")}`;case"too_big":{let X=U.inclusive?"com a màxim":"menys de",Y=$(U.origin);if(Y)return`Massa gran: s'esperava que ${U.origin??"el valor"} contingués ${X} ${U.maximum.toString()} ${Y.unit??"elements"}`;return`Massa gran: s'esperava que ${U.origin??"el valor"} fos ${X} ${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?"com a mínim":"més de",Y=$(U.origin);if(Y)return`Massa petit: s'esperava que ${U.origin} contingués ${X} ${U.minimum.toString()} ${Y.unit}`;return`Massa petit: s'esperava que ${U.origin} fos ${X} ${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Format invàlid: ha de començar amb "${X.prefix}"`;if(X.format==="ends_with")return`Format invàlid: ha d'acabar amb "${X.suffix}"`;if(X.format==="includes")return`Format invàlid: ha d'incloure "${X.includes}"`;if(X.format==="regex")return`Format invàlid: ha de coincidir amb el patró ${X.pattern}`;return`Format invàlid per a ${J[X.format]??U.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${U.divisor}`;case"unrecognized_keys":return`Clau${U.keys.length>1?"s":""} no reconeguda${U.keys.length>1?"s":""}: ${P(U.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${U.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${U.origin}`;default:return"Entrada invàlida"}}};var g_=S(()=>{s()});function rI(){return{localeError:d8D()}}var d8D=()=>{let D={string:{unit:"پیت",verb:"بێت"},file:{unit:"بایت",verb:"بێت"},array:{unit:"دانە",verb:"بێت"},set:{unit:"دانە",verb:"بێت"},map:{unit:"دانە",verb:"بێت"}};function $(U){return D[U]??null}let J={regex:"regex",email:"ئیمەیڵ",url:"بەستەر (URL)",emoji:"ئیمۆجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ڕێکەوت و کات",date:"ڕێکەوت",time:"کات",duration:"ماوە",ipv4:"ناونیشانی IPv4",ipv6:"ناونیشانی IPv6",mac:"ناونیشانی MAC",cidrv4:"مەودای IPv4",cidrv6:"مەودای IPv6",base64:"دەقی base64",base64url:"دەقی base64url",json_string:"دەقی JSON",e164:"ژمارەی E.164",credit_card:"ژمارەی کارتی کرێدیت",currency_code:"کۆدی دراو",iban:"IBAN",jwt:"JWT",template_literal:"تێکردە"},F={nan:"NaN",string:"نووسین",number:"ژمارە",boolean:"boolean",array:"array",object:"object",date:"ڕێکەوت",integer:"ژمارە",float:"ژمارە",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y,q=["ا","و","ۆ","وو","ە","ی","ێ"].some((W)=>Q.endsWith(W))?"یە":"ە",K=/^[a-zA-Z]+$/.test(Q);if(Y==="null"||Y==="undefined")return"داواکراوە";return`چاوەڕوانکراوە ${X} بێت، بەڵام ${Q}${K?"":q}`}case"invalid_value":if(U.values.length===1)return`بەهاکە نادرووستە: چاوەڕوانکراوە ${m(U.values[0])} بێت`;return`هەڵبژاردەی نادروست: چاوەڕوانکراوە یەکێک بێت لە ${P(U.values,"|")}`;case"too_big":{let X=$(U.origin);if(X)return`پێویستە بە لایەنی زۆرەوە ${U.maximum.toString()} ${X.unit} ${X.verb}`;return`پێویستە بە لایەنی زۆرەوە ${U.maximum.toString()} بێت`}case"too_small":{let X=$(U.origin);if(X)return`پێویستە بە لایەنی کەمەوە ${U.minimum.toString()} ${X.unit} ${X.verb}`;return`پێویستە بە لایەنی کەمەوە ${U.minimum.toString()} بێت`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`دەقی نادروست: پێویستە دەستپێبکات بە "${X.prefix}"`;if(X.format==="ends_with")return`دەقی نادروست: پێویستە کۆتاییبێت بە "${X.suffix}"`;if(X.format==="includes")return`دەقی نادروست: پێویستە "${X.includes}" لەخۆبگرێت`;if(X.format==="regex")return`دەقی نادروست: پێویستە لەگەڵ پاتێرنی ${X.pattern} بگونجێت`;return`بەهای ${J[X.format]??U.format} نادروستە`}case"not_multiple_of":return`ژمارەی نادروست: دەبێت چەند هێندە بێت بۆ ${U.divisor}`;case"unrecognized_keys":return`کلیلی نەناسراو: ${P(U.keys,", ")}`;case"invalid_key":return`کلیلی نادروست لە ${U.origin}`;case"invalid_union":if(U.options&&Array.isArray(U.options)&&U.options.length>0)return`بەهای نەناسراو هەیە. بەهای چاوەڕوانکراو: ${U.options.map((Y)=>`'${Y}'`).join(" | ")}`;return"یەکگرتنی نادروست";case"invalid_element":return`${U.origin} بەهاکە نادروستە`;default:return"تێکردەی نادروست"}}};var f_=S(()=>{s()});function tI(){return{localeError:c8D()}}var c8D=()=>{let D={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"},map:{unit:"prvků",verb:"mít"}};function $(U){return D[U]??null}let J={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",credit_card:"číslo kreditní karty",currency_code:"kód měny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},F={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Neplatný vstup: očekáváno instanceof ${U.expected}, obdrženo ${Q}`;return`Neplatný vstup: očekáváno ${X}, obdrženo ${Q}`}case"invalid_value":if(U.values.length===1)return`Neplatný vstup: očekáváno ${m(U.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Hodnota je příliš velká: ${U.origin??"hodnota"} musí mít ${X}${U.maximum.toString()} ${Y.unit??"prvků"}`;return`Hodnota je příliš velká: ${U.origin??"hodnota"} musí být ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Hodnota je příliš malá: ${U.origin??"hodnota"} musí mít ${X}${U.minimum.toString()} ${Y.unit??"prvků"}`;return`Hodnota je příliš malá: ${U.origin??"hodnota"} musí být ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Neplatný řetězec: musí začínat na "${X.prefix}"`;if(X.format==="ends_with")return`Neplatný řetězec: musí končit na "${X.suffix}"`;if(X.format==="includes")return`Neplatný řetězec: musí obsahovat "${X.includes}"`;if(X.format==="regex")return`Neplatný řetězec: musí odpovídat vzoru ${X.pattern}`;return`Neplatný formát ${J[X.format]??U.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${U.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${P(U.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${U.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${U.origin}`;default:return"Neplatný vstup"}}};var x_=S(()=>{s()});function oI(){return{localeError:n8D()}}var n8D=()=>{let D={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{unit:"elementer",verb:"indeholdt"}};function $(U){return D[U]??null}let J={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},F={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Ugyldigt input: forventede instanceof ${U.expected}, fik ${Q}`;return`Ugyldigt input: forventede ${X}, fik ${Q}`}case"invalid_value":if(U.values.length===1)return`Ugyldig værdi: forventede ${m(U.values[0])}`;return`Ugyldigt valg: forventede en af følgende ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin),Q=F[U.origin]??U.origin;if(Y)return`For stor: forventede ${Q??"value"} ${Y.verb} ${X} ${U.maximum.toString()} ${Y.unit??"elementer"}`;return`For stor: forventede ${Q??"value"} havde ${X} ${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin),Q=F[U.origin]??U.origin;if(Y)return`For lille: forventede ${Q} ${Y.verb} ${X} ${U.minimum.toString()} ${Y.unit}`;return`For lille: forventede ${Q} havde ${X} ${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Ugyldig streng: skal starte med "${X.prefix}"`;if(X.format==="ends_with")return`Ugyldig streng: skal ende med "${X.suffix}"`;if(X.format==="includes")return`Ugyldig streng: skal indeholde "${X.includes}"`;if(X.format==="regex")return`Ugyldig streng: skal matche mønsteret ${X.pattern}`;return`Ugyldig ${J[X.format]??U.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${U.divisor}`;case"unrecognized_keys":return`${U.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${P(U.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${U.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${U.origin}`;default:return"Ugyldigt input"}}};var y_=S(()=>{s()});function aI(){return{localeError:p8D()}}var p8D=()=>{let D={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"},map:{unit:"Elemente",verb:"zu haben"}};function $(U){return D[U]??null}let J={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",currency_code:"Währungscode",iban:"IBAN",jwt:"JWT",template_literal:"Eingabe"},F={nan:"NaN",number:"Zahl",array:"Array"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Ungültige Eingabe: erwartet instanceof ${U.expected}, erhalten ${Q}`;return`Ungültige Eingabe: erwartet ${X}, erhalten ${Q}`}case"invalid_value":if(U.values.length===1)return`Ungültige Eingabe: erwartet ${m(U.values[0])}`;return`Ungültige Option: erwartet eine von ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Zu groß: erwartet, dass ${U.origin??"Wert"} ${X}${U.maximum.toString()} ${Y.unit??"Elemente"} hat`;return`Zu groß: erwartet, dass ${U.origin??"Wert"} ${X}${U.maximum.toString()} ist`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Zu klein: erwartet, dass ${U.origin} ${X}${U.minimum.toString()} ${Y.unit} hat`;return`Zu klein: erwartet, dass ${U.origin} ${X}${U.minimum.toString()} ist`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Ungültiger String: muss mit "${X.prefix}" beginnen`;if(X.format==="ends_with")return`Ungültiger String: muss mit "${X.suffix}" enden`;if(X.format==="includes")return`Ungültiger String: muss "${X.includes}" enthalten`;if(X.format==="regex")return`Ungültiger String: muss dem Muster ${X.pattern} entsprechen`;return`Ungültig: ${J[X.format]??U.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${U.divisor} sein`;case"unrecognized_keys":return`${U.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${P(U.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${U.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${U.origin}`;default:return"Ungültige Eingabe"}}};var h_=S(()=>{s()});function sI(){return{localeError:r8D()}}var r8D=()=>{let D={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function $(U){return D[U]??null}let J={regex:"είσοδος",email:"διεύθυνση email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",credit_card:"αριθμός πιστωτικής κάρτας",currency_code:"κωδικός νομίσματος",iban:"IBAN",jwt:"JWT",template_literal:"είσοδος"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(typeof U.expected==="string"&&/^[A-Z]/.test(U.expected))return`Μη έγκυρη είσοδος: αναμενόταν instanceof ${U.expected}, λήφθηκε ${Q}`;return`Μη έγκυρη είσοδος: αναμενόταν ${X}, λήφθηκε ${Q}`}case"invalid_value":if(U.values.length===1)return`Μη έγκυρη είσοδος: αναμενόταν ${m(U.values[0])}`;return`Μη έγκυρη επιλογή: αναμενόταν ένα από ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Πολύ μεγάλο: αναμενόταν ${U.origin??"τιμή"} να έχει ${X}${U.maximum.toString()} ${Y.unit??"στοιχεία"}`;return`Πολύ μεγάλο: αναμενόταν ${U.origin??"τιμή"} να είναι ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Πολύ μικρό: αναμενόταν ${U.origin} να έχει ${X}${U.minimum.toString()} ${Y.unit}`;return`Πολύ μικρό: αναμενόταν ${U.origin} να είναι ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${X.prefix}"`;if(X.format==="ends_with")return`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${X.suffix}"`;if(X.format==="includes")return`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${X.includes}"`;if(X.format==="regex")return`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${X.pattern}`;return`Μη έγκυρο: ${J[X.format]??U.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${U.divisor}`;case"unrecognized_keys":return`Άγνωστ${U.keys.length>1?"α":"ο"} κλειδ${U.keys.length>1?"ιά":"ί"}: ${P(U.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${U.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${U.origin}`;default:return"Μη έγκυρη είσοδος"}}};var m_=S(()=>{s()});function W5(){return{localeError:t8D()}}var t8D=()=>{let D={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function $(X){return D[X]??null}let J={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},F={nan:"NaN"};function U(X,Y){if(X==="number"&&typeof Y==="number"&&!Number.isFinite(Y))return String(Y);return F[X]??X}return(X)=>{switch(X.code){case"invalid_type":{let Y=U(X.expected),Q=l(X.input),q=U(Q,X.input);return`Invalid input: expected ${Y}, received ${q}`}case"invalid_value":if(X.values.length===1)return`Invalid input: expected ${m(X.values[0])}`;return`Invalid option: expected one of ${P(X.values,"|")}`;case"too_big":{let Y=X.exact?"exactly ":X.inclusive?"<=":"<",Q=$(X.origin);if(Q)return`Too big: expected ${X.origin??"value"} to have ${Y}${X.maximum.toString()} ${Q.unit??"elements"}`;return`Too big: expected ${X.origin??"value"} to be ${Y}${X.maximum.toString()}`}case"too_small":{let Y=X.exact?"exactly ":X.inclusive?">=":">",Q=$(X.origin);if(Q)return`Too small: expected ${X.origin} to have ${Y}${X.minimum.toString()} ${Q.unit}`;return`Too small: expected ${X.origin} to be ${Y}${X.minimum.toString()}`}case"invalid_format":{let Y=X;if(Y.format==="starts_with")return`Invalid string: must start with "${Y.prefix}"`;if(Y.format==="ends_with")return`Invalid string: must end with "${Y.suffix}"`;if(Y.format==="includes")return`Invalid string: must include "${Y.includes}"`;if(Y.format==="regex")return`Invalid string: must match pattern ${Y.pattern}`;return`Invalid ${J[Y.format]??X.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${X.divisor}`;case"unrecognized_keys":return`Unrecognized key${X.keys.length>1?"s":""}: ${P(X.keys,", ")}`;case"invalid_key":return`Invalid key in ${X.origin}`;case"invalid_union":if(X.options&&Array.isArray(X.options)&&X.options.length>0)return`Invalid discriminator value. Expected ${X.options.map((Q)=>`'${Q}'`).join(" | ")}`;if(X.inclusive===!1)return"Invalid input: more than one option matched";return"Invalid input";case"invalid_element":return`Invalid value in ${X.origin}`;default:return"Invalid input"}}};var eI=S(()=>{s()});function Dz(){return{localeError:o8D()}}var o8D=()=>{let D={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{unit:"elementojn",verb:"havi"}};function $(U){return D[U]??null}let J={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",mac:"MAC-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",credit_card:"kreditkarta numero",currency_code:"valuta kodo",iban:"IBAN",jwt:"JWT",template_literal:"enigo"},F={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Nevalida enigo: atendiĝis instanceof ${U.expected}, riceviĝis ${Q}`;return`Nevalida enigo: atendiĝis ${X}, riceviĝis ${Q}`}case"invalid_value":if(U.values.length===1)return`Nevalida enigo: atendiĝis ${m(U.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Tro granda: atendiĝis ke ${U.origin??"valoro"} havu ${X}${U.maximum.toString()} ${Y.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${U.origin??"valoro"} havu ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Tro malgranda: atendiĝis ke ${U.origin} havu ${X}${U.minimum.toString()} ${Y.unit}`;return`Tro malgranda: atendiĝis ke ${U.origin} estu ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Nevalida karaktraro: devas komenciĝi per "${X.prefix}"`;if(X.format==="ends_with")return`Nevalida karaktraro: devas finiĝi per "${X.suffix}"`;if(X.format==="includes")return`Nevalida karaktraro: devas inkluzivi "${X.includes}"`;if(X.format==="regex")return`Nevalida karaktraro: devas kongrui kun la modelo ${X.pattern}`;return`Nevalida ${J[X.format]??U.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${U.divisor}`;case"unrecognized_keys":return`Nekonata${U.keys.length>1?"j":""} ŝlosilo${U.keys.length>1?"j":""}: ${P(U.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${U.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${U.origin}`;default:return"Nevalida enigo"}}};var l_=S(()=>{s()});function $z(){return{localeError:a8D()}}var a8D=()=>{let D={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function $(U){return D[U]??null}let J={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",mac:"dirección MAC",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",credit_card:"número de tarjeta de crédito",currency_code:"código de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},F={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Entrada inválida: se esperaba instanceof ${U.expected}, recibido ${Q}`;return`Entrada inválida: se esperaba ${X}, recibido ${Q}`}case"invalid_value":if(U.values.length===1)return`Entrada inválida: se esperaba ${m(U.values[0])}`;return`Opción inválida: se esperaba una de ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin),Q=F[U.origin]??U.origin;if(Y)return`Demasiado grande: se esperaba que ${Q??"valor"} tuviera ${X}${U.maximum.toString()} ${Y.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${Q??"valor"} fuera ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin),Q=F[U.origin]??U.origin;if(Y)return`Demasiado pequeño: se esperaba que ${Q} tuviera ${X}${U.minimum.toString()} ${Y.unit}`;return`Demasiado pequeño: se esperaba que ${Q} fuera ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Cadena inválida: debe comenzar con "${X.prefix}"`;if(X.format==="ends_with")return`Cadena inválida: debe terminar en "${X.suffix}"`;if(X.format==="includes")return`Cadena inválida: debe incluir "${X.includes}"`;if(X.format==="regex")return`Cadena inválida: debe coincidir con el patrón ${X.pattern}`;return`Inválido ${J[X.format]??U.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${U.divisor}`;case"unrecognized_keys":return`Llave${U.keys.length>1?"s":""} desconocida${U.keys.length>1?"s":""}: ${P(U.keys,", ")}`;case"invalid_key":return`Llave inválida en ${F[U.origin]??U.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${F[U.origin]??U.origin}`;default:return"Entrada inválida"}}};var i_=S(()=>{s()});function Jz(){return{localeError:s8D()}}var s8D=()=>{let D={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"},map:{unit:"آیتم",verb:"داشته باشد"}};function $(U){return D[U]??null}let J={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",mac:"MAC آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",credit_card:"شماره کارت اعتباری",currency_code:"کد ارز",iban:"IBAN",jwt:"JWT",template_literal:"ورودی"},F={nan:"NaN",number:"عدد",array:"آرایه"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`ورودی نامعتبر: میبایست instanceof ${U.expected} میبود، ${Q} دریافت شد`;return`ورودی نامعتبر: میبایست ${X} میبود، ${Q} دریافت شد`}case"invalid_value":if(U.values.length===1)return`ورودی نامعتبر: میبایست ${m(U.values[0])} میبود`;return`گزینه نامعتبر: میبایست یکی از ${P(U.values,"|")} میبود`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`خیلی بزرگ: ${U.origin??"مقدار"} باید ${X}${U.maximum.toString()} ${Y.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${U.origin??"مقدار"} باید ${X}${U.maximum.toString()} باشد`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`خیلی کوچک: ${U.origin} باید ${X}${U.minimum.toString()} ${Y.unit} باشد`;return`خیلی کوچک: ${U.origin} باید ${X}${U.minimum.toString()} باشد`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`رشته نامعتبر: باید با "${X.prefix}" شروع شود`;if(X.format==="ends_with")return`رشته نامعتبر: باید با "${X.suffix}" تمام شود`;if(X.format==="includes")return`رشته نامعتبر: باید شامل "${X.includes}" باشد`;if(X.format==="regex")return`رشته نامعتبر: باید با الگوی ${X.pattern} مطابقت داشته باشد`;return`${J[X.format]??U.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${U.divisor} باشد`;case"unrecognized_keys":return`کلید${U.keys.length>1?"های":""} ناشناس: ${P(U.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${U.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${U.origin}`;default:return"ورودی نامعتبر"}}};var d_=S(()=>{s()});function Fz(){return{localeError:e8D()}}var e8D=()=>{let D={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function $(U){return D[U]??null}let J={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",currency_code:"valuuttakoodi",iban:"IBAN",jwt:"JWT",template_literal:"templaattimerkkijono"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Virheellinen tyyppi: odotettiin instanceof ${U.expected}, oli ${Q}`;return`Virheellinen tyyppi: odotettiin ${X}, oli ${Q}`}case"invalid_value":if(U.values.length===1)return`Virheellinen syöte: täytyy olla ${m(U.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Liian suuri: ${Y.subject} täytyy olla ${X}${U.maximum.toString()} ${Y.unit}`.trim();return`Liian suuri: arvon täytyy olla ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Liian pieni: ${Y.subject} täytyy olla ${X}${U.minimum.toString()} ${Y.unit}`.trim();return`Liian pieni: arvon täytyy olla ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Virheellinen syöte: täytyy alkaa "${X.prefix}"`;if(X.format==="ends_with")return`Virheellinen syöte: täytyy loppua "${X.suffix}"`;if(X.format==="includes")return`Virheellinen syöte: täytyy sisältää "${X.includes}"`;if(X.format==="regex")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${X.pattern}`;return`Virheellinen ${J[X.format]??U.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${U.divisor} monikerta`;case"unrecognized_keys":return`${U.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${P(U.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};var c_=S(()=>{s()});function Uz(){return{localeError:D3D()}}var D3D=()=>{let D={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function $(U){return D[U]??null}let J={regex:"expression régulière",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne de caractères encodée en base64",base64url:"chaîne de caractères encodée en base64url",json_string:"chaîne de caractères JSON",e164:"numéro au format E.164",credit_card:"numéro de carte de crédit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entrée"},F={string:"chaîne de caractères",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Entrée invalide : instance de ${U.expected} attendu, ${Q} reçu`;return`Entrée invalide : ${X} attendu, ${Q} reçu`}case"invalid_value":if(U.values.length===1)return`Entrée invalide : ${m(U.values[0])} attendu`;return`Option invalide : une valeur parmi ${P(U.values,"|")} attendue`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Trop grand : ${F[U.origin]??"valeur"} doit ${Y.verb} ${X}${U.maximum.toString()} ${Y.unit??"élément(s)"}`;return`Trop grand : ${F[U.origin]??"valeur"} doit être ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Trop petit : ${F[U.origin]??"valeur"} doit ${Y.verb} ${X}${U.minimum.toString()} ${Y.unit}`;return`Trop petit : ${F[U.origin]??"valeur"} doit être ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Chaîne de caractères invalide : doit commencer par "${X.prefix}"`;if(X.format==="ends_with")return`Chaîne de caractères invalide : doit se terminer par "${X.suffix}"`;if(X.format==="includes")return`Chaîne de caractères invalide : doit inclure "${X.includes}"`;if(X.format==="regex")return`Chaîne de caractères invalide : doit correspondre au motif ${X.pattern}`;return`${J[X.format]??U.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${U.divisor}`;case"unrecognized_keys":return`Clé${U.keys.length>1?"s":""} non reconnue${U.keys.length>1?"s":""} : ${P(U.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${U.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${U.origin}`;default:return"Entrée invalide"}}};var n_=S(()=>{s()});function Xz(){return{localeError:$3D()}}var $3D=()=>{let D={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"},map:{unit:"éléments",verb:"avoir"}};function $(U){return D[U]??null}let J={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",credit_card:"numéro de carte de crédit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entrée"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Entrée invalide : attendu instanceof ${U.expected}, reçu ${Q}`;return`Entrée invalide : attendu ${X}, reçu ${Q}`}case"invalid_value":if(U.values.length===1)return`Entrée invalide : attendu ${m(U.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"≤":"<",Y=$(U.origin);if(Y)return`Trop grand : attendu que ${U.origin??"la valeur"} ait ${X}${U.maximum.toString()} ${Y.unit}`;return`Trop grand : attendu que ${U.origin??"la valeur"} soit ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?"≥":">",Y=$(U.origin);if(Y)return`Trop petit : attendu que ${U.origin} ait ${X}${U.minimum.toString()} ${Y.unit}`;return`Trop petit : attendu que ${U.origin} soit ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Chaîne invalide : doit commencer par "${X.prefix}"`;if(X.format==="ends_with")return`Chaîne invalide : doit se terminer par "${X.suffix}"`;if(X.format==="includes")return`Chaîne invalide : doit inclure "${X.includes}"`;if(X.format==="regex")return`Chaîne invalide : doit correspondre au motif ${X.pattern}`;return`${J[X.format]??U.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${U.divisor}`;case"unrecognized_keys":return`Clé${U.keys.length>1?"s":""} non reconnue${U.keys.length>1?"s":""} : ${P(U.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${U.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${U.origin}`;default:return"Entrée invalide"}}};var p_=S(()=>{s()});function Yz(){return{localeError:J3D()}}var J3D=()=>{let D={string:{unit:"અક્ષર",verb:"હોવા જોઈએ"},file:{unit:"બાયટ",verb:"હોવા જોઈએ"},array:{unit:"આઇટમ",verb:"હોવા જોઈએ"},set:{unit:"આઇટમ",verb:"હોવા જોઈએ"},map:{unit:"એન્ટ્રી",verb:"હોવા જોઈએ"}};function $(U){return D[U]??null}let J={regex:"ઇનપુટ",email:"ઈમેઇલ એડ્રેસ",url:"URL",emoji:"ઇમોજી",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO તારીખ અને સમય",date:"ISO તારીખ",time:"ISO સમય",duration:"ISO અવધિ",ipv4:"IPv4 એડ્રેસ",ipv6:"IPv6 એડ્રેસ",mac:"MAC એડ્રેસ",cidrv4:"IPv4 શ્રેણી",cidrv6:"IPv6 શ્રેણી",base64:"base64-એન્કોડેડ સ્ટ્રિંગ",base64url:"base64url-એન્કોડેડ સ્ટ્રિંગ",json_string:"JSON સ્ટ્રિંગ",e164:"E.164 નંબર",credit_card:"ક્રેડિટ કાર્ડ નંબર",currency_code:"ચલણ કોડ",iban:"IBAN",jwt:"JWT",template_literal:"ઇનપુટ"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;return`અમાન્ય ઇનપુટ: અપેક્ષિત ${X}, પ્રાપ્ત ${Q}`}case"invalid_value":if(U.values.length===1)return`અમાન્ય ઇનપુટ: અપેક્ષિત ${m(U.values[0])}`;return`અમાન્ય વિકલ્પ: ${P(U.values," | ")} માધ્યમથી એક અપેક્ષિત`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`ખૂબ મોટું: ${U.origin??"મૂલ્ય"} ${X}${U.maximum.toString()} ${Y.unit??"એલિમેન્ટ"} હોવા જોઈએ`;return`ખૂબ મોટું: ${U.origin??"મૂલ્ય"} ${X}${U.maximum.toString()} હોવું જોઈએ`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`ખૂબ નાનું: ${U.origin} ${X}${U.minimum.toString()} ${Y.unit} હોવા જોઈએ`;return`ખૂબ નાનું: ${U.origin} ${X}${U.minimum.toString()} હોવું જોઈએ`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`અમાન્ય સ્ટ્રિંગ: "${X.prefix}" થી શરૂ થવું જોઈએ`;if(X.format==="ends_with")return`અમાન્ય સ્ટ્રિંગ: "${X.suffix}" પર સમાપ્ત થવું જોઈએ`;if(X.format==="includes")return`અમાન્ય સ્ટ્રિંગ: "${X.includes}" શામેલ હોવું જોઈએ`;if(X.format==="regex")return`અમાન્ય સ્ટ્રિંગ: પેટર્ન ${X.pattern} સાથે મેળ ખાવું જોઈએ`;return`અમાન્ય ${J[X.format]??U.format}`}case"not_multiple_of":return`અમાન્ય નંબર: ${U.divisor} નો ગુણાંક હોવો જોઈએ`;case"unrecognized_keys":return`ઓળખી શકાતા નહીં તે કી${U.keys.length>1?"ઓ":""}: ${P(U.keys,", ")}`;case"invalid_key":return`${U.origin} માં અમાન્ય કી`;case"invalid_union":if(U.options&&Array.isArray(U.options)&&U.options.length>0)return`અમાન્ય ડિસ્ક્રિમિનેટર મૂલ્ય. અપેક્ષિત ${U.options.map((Y)=>`'${Y}'`).join(" | ")}`;return"અમાન્ય ઇનપુટ";case"invalid_element":return`${U.origin} માં અમાન્ય મૂલ્ય`;default:return"અમાન્ય ઇનપુટ"}}};var r_=S(()=>{s()});function Qz(){return{localeError:F3D()}}var F3D=()=>{let D={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},$={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},J=(K)=>K?D[K]:void 0,F=(K)=>{let W=J(K);if(W)return W.label;return K??D.unknown.label},U=(K)=>`ה${F(K)}`,X=(K)=>{return(J(K)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות"},Y=(K)=>{if(!K)return null;return $[K]??null},Q={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},mac:{label:"כתובת MAC",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},credit_card:{label:"מספר כרטיס אשראי",gender:"m"},currency_code:{label:"קוד מטבע",gender:"m"},iban:{label:"IBAN",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"קלט",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},q={nan:"NaN"};return(K)=>{switch(K.code){case"invalid_type":{let W=K.expected,G=q[W??""]??F(W),I=l(K.input),z=q[I]??D[I]?.label??I;if(/^[A-Z]/.test(K.expected))return`קלט לא תקין: צריך להיות instanceof ${K.expected}, התקבל ${z}`;return`קלט לא תקין: צריך להיות ${G}, התקבל ${z}`}case"invalid_value":{if(K.values.length===1)return`ערך לא תקין: הערך חייב להיות ${m(K.values[0])}`;let W=K.values.map((z)=>m(z));if(K.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${W[0]} או ${W[1]}`;let G=W[W.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${W.slice(0,-1).join(", ")} או ${G}`}case"too_big":{let W=Y(K.origin),G=U(K.origin??"value");if(K.origin==="string")return`${W?.longLabel??"ארוך"} מדי: ${G} צריכה להכיל ${K.maximum.toString()} ${W?.unit??""} ${K.inclusive?"או פחות":"לכל היותר"}`.trim();if(K.origin==="number"){let Z=K.inclusive?`קטן או שווה ל-${K.maximum}`:`קטן מ-${K.maximum}`;return`גדול מדי: ${G} צריך להיות ${Z}`}if(K.origin==="array"||K.origin==="set"){let Z=K.origin==="set"?"צריכה":"צריך",H=K.inclusive?`${K.maximum} ${W?.unit??""} או פחות`:`פחות מ-${K.maximum} ${W?.unit??""}`;return`גדול מדי: ${G} ${Z} להכיל ${H}`.trim()}let I=K.inclusive?"<=":"<",z=X(K.origin??"value");if(W?.unit)return`${W.longLabel} מדי: ${G} ${z} ${I}${K.maximum.toString()} ${W.unit}`;return`${W?.longLabel??"גדול"} מדי: ${G} ${z} ${I}${K.maximum.toString()}`}case"too_small":{let W=Y(K.origin),G=U(K.origin??"value");if(K.origin==="string")return`${W?.shortLabel??"קצר"} מדי: ${G} צריכה להכיל ${K.minimum.toString()} ${W?.unit??""} ${K.inclusive?"או יותר":"לפחות"}`.trim();if(K.origin==="number"){let Z=K.inclusive?`גדול או שווה ל-${K.minimum}`:`גדול מ-${K.minimum}`;return`קטן מדי: ${G} צריך להיות ${Z}`}if(K.origin==="array"||K.origin==="set"){let Z=K.origin==="set"?"צריכה":"צריך";if(K.minimum===1&&K.inclusive){let B=K.origin==="set"?"לפחות פריט אחד":"לפחות פריט אחד";return`קטן מדי: ${G} ${Z} להכיל ${B}`}let H=K.inclusive?`${K.minimum} ${W?.unit??""} או יותר`:`יותר מ-${K.minimum} ${W?.unit??""}`;return`קטן מדי: ${G} ${Z} להכיל ${H}`.trim()}let I=K.inclusive?">=":">",z=X(K.origin??"value");if(W?.unit)return`${W.shortLabel} מדי: ${G} ${z} ${I}${K.minimum.toString()} ${W.unit}`;return`${W?.shortLabel??"קטן"} מדי: ${G} ${z} ${I}${K.minimum.toString()}`}case"invalid_format":{let W=K;if(W.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${W.prefix}"`;if(W.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${W.suffix}"`;if(W.format==="includes")return`המחרוזת חייבת לכלול "${W.includes}"`;if(W.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${W.pattern}`;let G=Q[W.format],I=G?.label??W.format,Z=(G?.gender??"m")==="f"?"תקינה":"תקין";return`${I} לא ${Z}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${K.divisor}`;case"unrecognized_keys":return`מפתח${K.keys.length>1?"ות":""} לא מזוה${K.keys.length>1?"ים":"ה"}: ${P(K.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${U(K.origin??"array")}`;default:return"קלט לא תקין"}}};var t_=S(()=>{s()});function qz(){return{localeError:U3D()}}var U3D=()=>{let D={string:{unit:"अक्षर",verb:"रखने के लिए"},file:{unit:"बाइट्स",verb:"रखने के लिए"},array:{unit:"तत्व",verb:"रखने के लिए"},set:{unit:"तत्व",verb:"रखने के लिए"},map:{unit:"प्रविष्टियाँ",verb:"रखने के लिए"}};function $(U){return D[U]??null}let J={regex:"इनपुट",email:"ईमेल पता",url:"URL",emoji:"इमोजी",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO तिथि और समय",date:"ISO तिथि",time:"ISO समय",duration:"ISO अवधि",ipv4:"IPv4 पता",ipv6:"IPv6 पता",mac:"MAC पता",cidrv4:"IPv4 श्रेणी",cidrv6:"IPv6 श्रेणी",base64:"Base64-एन्कोडेड स्ट्रिंग",base64url:"Base64URL-एन्कोडेड स्ट्रिंग",json_string:"JSON स्ट्रिंग",e164:"E.164 संख्या",credit_card:"क्रेडिट कार्ड संख्या",currency_code:"मुद्रा कोड",iban:"IBAN",jwt:"JWT",template_literal:"इनपुट"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;return`अमान्य इनपुट: अपेक्षित ${X}, प्राप्त ${Q}`}case"invalid_value":if(U.values.length===1)return`अमान्य इनपुट: अपेक्षित ${m(U.values[0])}`;return`अमान्य विकल्प: अपेक्षित मानों में से एक ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`बहुत बड़ा: अपेक्षित था कि ${U.origin??"मान"} में ${X}${U.maximum} ${Y.unit} हों`;return`बहुत बड़ा: अपेक्षित था कि ${U.origin??"मान"} ${X}${U.maximum} हो`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`बहुत छोटा: अपेक्षित था कि ${U.origin} में ${X}${U.minimum} ${Y.unit} हों`;return`बहुत छोटा: अपेक्षित था कि ${U.origin} ${X}${U.minimum} हो`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`अमान्य स्ट्रिंग: "${X.prefix}" से शुरू होना चाहिए`;if(X.format==="ends_with")return`अमान्य स्ट्रिंग: "${X.suffix}" पर समाप्त होना चाहिए`;if(X.format==="includes")return`अमान्य स्ट्रिंग: इसमें "${X.includes}" शामिल होना चाहिए`;if(X.format==="regex")return`अमान्य स्ट्रिंग: पैटर्न ${X.pattern} से मेल खाना चाहिए`;return`अमान्य ${J[X.format]??U.format}`}case"not_multiple_of":return`अमान्य संख्या: यह ${U.divisor} का गुणज होना चाहिए`;case"unrecognized_keys":return`अपरिचित कुंजी${U.keys.length>1?"याँ":""}: ${P(U.keys,", ")}`;case"invalid_key":return`अमान्य कुंजी: ${U.origin} में`;case"invalid_union":if(U.options&&Array.isArray(U.options)&&U.options.length>0)return`अमान्य डिस्क्रिमिनेटर मान: अपेक्षित ${U.options.map((Y)=>`'${Y}'`).join(" | ")}`;return"अमान्य इनपुट";case"invalid_element":return`अमान्य मान: ${U.origin} में`;default:return"अमान्य इनपुट"}}};var o_=S(()=>{s()});function Kz(){return{localeError:X3D()}}var X3D=()=>{let D={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function $(U){return D[U]??null}let J={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",currency_code:"kod valute",iban:"IBAN",jwt:"JWT",template_literal:"unos"},F={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Neispravan unos: očekuje se instanceof ${U.expected}, a primljeno je ${Q}`;return`Neispravan unos: očekuje se ${X}, a primljeno je ${Q}`}case"invalid_value":if(U.values.length===1)return`Neispravna vrijednost: očekivano ${m(U.values[0])}`;return`Neispravna opcija: očekivano jedno od ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin),Q=F[U.origin]??U.origin;if(Y)return`Preveliko: očekivano da ${Q??"vrijednost"} ima ${X}${U.maximum.toString()} ${Y.unit??"elemenata"}`;return`Preveliko: očekivano da ${Q??"vrijednost"} bude ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin),Q=F[U.origin]??U.origin;if(Y)return`Premalo: očekivano da ${Q} ima ${X}${U.minimum.toString()} ${Y.unit}`;return`Premalo: očekivano da ${Q} bude ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Neispravan tekst: mora započinjati s "${X.prefix}"`;if(X.format==="ends_with")return`Neispravan tekst: mora završavati s "${X.suffix}"`;if(X.format==="includes")return`Neispravan tekst: mora sadržavati "${X.includes}"`;if(X.format==="regex")return`Neispravan tekst: mora odgovarati uzorku ${X.pattern}`;return`Neispravna ${J[X.format]??U.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${U.divisor}`;case"unrecognized_keys":return`Neprepoznat${U.keys.length>1?"i ključevi":" ključ"}: ${P(U.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${F[U.origin]??U.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${F[U.origin]??U.origin}`;default:return"Neispravan unos"}}};var a_=S(()=>{s()});function Wz(){return{localeError:Y3D()}}var Y3D=()=>{let D={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{unit:"elem",verb:"legyen"}};function $(U){return D[U]??null}let J={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",mac:"MAC cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",credit_card:"hitelkártyaszám",currency_code:"pénznemkód",iban:"IBAN",jwt:"JWT",template_literal:"bemenet"},F={nan:"NaN",number:"szám",array:"tömb"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Érvénytelen bemenet: a várt érték instanceof ${U.expected}, a kapott érték ${Q}`;return`Érvénytelen bemenet: a várt érték ${X}, a kapott érték ${Q}`}case"invalid_value":if(U.values.length===1)return`Érvénytelen bemenet: a várt érték ${m(U.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Túl nagy: ${U.origin??"érték"} mérete túl nagy ${X}${U.maximum.toString()} ${Y.unit??"elem"}`;return`Túl nagy: a bemeneti érték ${U.origin??"érték"} túl nagy: ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Túl kicsi: a bemeneti érték ${U.origin} mérete túl kicsi ${X}${U.minimum.toString()} ${Y.unit}`;return`Túl kicsi: a bemeneti érték ${U.origin} túl kicsi ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Érvénytelen string: "${X.prefix}" értékkel kell kezdődnie`;if(X.format==="ends_with")return`Érvénytelen string: "${X.suffix}" értékkel kell végződnie`;if(X.format==="includes")return`Érvénytelen string: "${X.includes}" értéket kell tartalmaznia`;if(X.format==="regex")return`Érvénytelen string: ${X.pattern} mintának kell megfelelnie`;return`Érvénytelen ${J[X.format]??U.format}`}case"not_multiple_of":return`Érvénytelen szám: ${U.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${U.keys.length>1?"s":""}: ${P(U.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${U.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${U.origin}`;default:return"Érvénytelen bemenet"}}};var s_=S(()=>{s()});function e_(D,$,J){return Math.abs(D)===1?$:J}function y8(D){if(!D)return"";let $=["ա","ե","ը","ի","ո","ու","օ"],J=D[D.length-1];return D+($.includes(J)?"ն":"ը")}function Gz(){return{localeError:Q3D()}}var Q3D=()=>{let D={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},map:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function $(U){return D[U]??null}let J={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",mac:"MAC հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",credit_card:"կրեդիտ քարտի համար",currency_code:"արժույթի կոդ",iban:"IBAN",jwt:"JWT",template_literal:"մուտք"},F={nan:"NaN",number:"թիվ",array:"զանգված"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${U.expected}, ստացվել է ${Q}`;return`Սխալ մուտքագրում․ սպասվում էր ${X}, ստացվել է ${Q}`}case"invalid_value":if(U.values.length===1)return`Սխալ մուտքագրում․ սպասվում էր ${m(U.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y){let Q=Number(U.maximum),q=e_(Q,Y.unit.one,Y.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${y8(U.origin??"արժեք")} կունենա ${X}${U.maximum.toString()} ${q}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${y8(U.origin??"արժեք")} լինի ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y){let Q=Number(U.minimum),q=e_(Q,Y.unit.one,Y.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${y8(U.origin)} կունենա ${X}${U.minimum.toString()} ${q}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${y8(U.origin)} լինի ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Սխալ տող․ պետք է սկսվի "${X.prefix}"-ով`;if(X.format==="ends_with")return`Սխալ տող․ պետք է ավարտվի "${X.suffix}"-ով`;if(X.format==="includes")return`Սխալ տող․ պետք է պարունակի "${X.includes}"`;if(X.format==="regex")return`Սխալ տող․ պետք է համապատասխանի ${X.pattern} ձևաչափին`;return`Սխալ ${J[X.format]??U.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${U.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${U.keys.length>1?"ներ":""}. ${P(U.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${y8(U.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${y8(U.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};var Dk=S(()=>{s()});function Iz(){return{localeError:q3D()}}var q3D=()=>{let D={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{unit:"item",verb:"memiliki"}};function $(U){return D[U]??null}let J={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",credit_card:"nomor kartu kredit",currency_code:"kode mata uang",iban:"IBAN",jwt:"JWT",template_literal:"input"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Input tidak valid: diharapkan instanceof ${U.expected}, diterima ${Q}`;return`Input tidak valid: diharapkan ${X}, diterima ${Q}`}case"invalid_value":if(U.values.length===1)return`Input tidak valid: diharapkan ${m(U.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Terlalu besar: diharapkan ${U.origin??"value"} memiliki ${X}${U.maximum.toString()} ${Y.unit??"elemen"}`;return`Terlalu besar: diharapkan ${U.origin??"value"} menjadi ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Terlalu kecil: diharapkan ${U.origin} memiliki ${X}${U.minimum.toString()} ${Y.unit}`;return`Terlalu kecil: diharapkan ${U.origin} menjadi ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`String tidak valid: harus dimulai dengan "${X.prefix}"`;if(X.format==="ends_with")return`String tidak valid: harus berakhir dengan "${X.suffix}"`;if(X.format==="includes")return`String tidak valid: harus menyertakan "${X.includes}"`;if(X.format==="regex")return`String tidak valid: harus sesuai pola ${X.pattern}`;return`${J[X.format]??U.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${U.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${U.keys.length>1?"s":""}: ${P(U.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${U.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${U.origin}`;default:return"Input tidak valid"}}};var $k=S(()=>{s()});function zz(){return{localeError:K3D()}}var K3D=()=>{let D={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"},map:{unit:"hluti",verb:"að hafa"}};function $(U){return D[U]??null}let J={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",credit_card:"kreditkortanúmer",currency_code:"gjaldmiðilskóði",iban:"IBAN",jwt:"JWT",template_literal:"gildi"},F={nan:"NaN",number:"númer",array:"fylki"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Rangt gildi: Þú slóst inn ${Q} þar sem á að vera instanceof ${U.expected}`;return`Rangt gildi: Þú slóst inn ${Q} þar sem á að vera ${X}`}case"invalid_value":if(U.values.length===1)return`Rangt gildi: gert ráð fyrir ${m(U.values[0])}`;return`Ógilt val: má vera eitt af eftirfarandi ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Of stórt: gert er ráð fyrir að ${U.origin??"gildi"} hafi ${X}${U.maximum.toString()} ${Y.unit??"hluti"}`;return`Of stórt: gert er ráð fyrir að ${U.origin??"gildi"} sé ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Of lítið: gert er ráð fyrir að ${U.origin} hafi ${X}${U.minimum.toString()} ${Y.unit}`;return`Of lítið: gert er ráð fyrir að ${U.origin} sé ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Ógildur strengur: verður að byrja á "${X.prefix}"`;if(X.format==="ends_with")return`Ógildur strengur: verður að enda á "${X.suffix}"`;if(X.format==="includes")return`Ógildur strengur: verður að innihalda "${X.includes}"`;if(X.format==="regex")return`Ógildur strengur: verður að fylgja mynstri ${X.pattern}`;return`Rangt ${J[X.format]??U.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${U.divisor}`;case"unrecognized_keys":return`Óþekkt ${U.keys.length>1?"ir lyklar":"ur lykill"}: ${P(U.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${U.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${U.origin}`;default:return"Rangt gildi"}}};var Jk=S(()=>{s()});function Zz(){return{localeError:W3D()}}var W3D=()=>{let D={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{unit:"elementi",verb:"avere"}};function $(U){return D[U]??null}let J={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",currency_code:"codice valuta",iban:"IBAN",jwt:"JWT",template_literal:"input"},F={nan:"NaN",number:"numero",array:"vettore"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Input non valido: atteso instanceof ${U.expected}, ricevuto ${Q}`;return`Input non valido: atteso ${X}, ricevuto ${Q}`}case"invalid_value":if(U.values.length===1)return`Input non valido: atteso ${m(U.values[0])}`;return`Opzione non valida: atteso uno tra ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Troppo grande: ${U.origin??"valore"} deve avere ${X}${U.maximum.toString()} ${Y.unit??"elementi"}`;return`Troppo grande: ${U.origin??"valore"} deve essere ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Troppo piccolo: ${U.origin} deve avere ${X}${U.minimum.toString()} ${Y.unit}`;return`Troppo piccolo: ${U.origin} deve essere ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Stringa non valida: deve iniziare con "${X.prefix}"`;if(X.format==="ends_with")return`Stringa non valida: deve terminare con "${X.suffix}"`;if(X.format==="includes")return`Stringa non valida: deve includere "${X.includes}"`;if(X.format==="regex")return`Stringa non valida: deve corrispondere al pattern ${X.pattern}`;return`Input non valido: ${J[X.format]??U.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${U.divisor}`;case"unrecognized_keys":return`Chiav${U.keys.length>1?"i":"e"} non riconosciut${U.keys.length>1?"e":"a"}: ${P(U.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${U.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${U.origin}`;default:return"Input non valido"}}};var Fk=S(()=>{s()});function Hz(){return{localeError:G3D()}}var G3D=()=>{let D={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"},map:{unit:"要素",verb:"である"}};function $(U){return D[U]??null}let J={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",mac:"MACアドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",credit_card:"クレジットカード番号",currency_code:"通貨コード",iban:"IBAN",jwt:"JWT",template_literal:"入力値"},F={nan:"NaN",number:"数値",array:"配列"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`無効な入力: instanceof ${U.expected}が期待されましたが、${Q}が入力されました`;return`無効な入力: ${X}が期待されましたが、${Q}が入力されました`}case"invalid_value":if(U.values.length===1)return`無効な入力: ${m(U.values[0])}が期待されました`;return`無効な選択: ${P(U.values,"、")}のいずれかである必要があります`;case"too_big":{let X=U.inclusive?"以下である":"より小さい",Y=$(U.origin);if(Y)return`大きすぎる値: ${U.origin??"値"}は${U.maximum.toString()}${Y.unit??"要素"}${X}必要があります`;return`大きすぎる値: ${U.origin??"値"}は${U.maximum.toString()}${X}必要があります`}case"too_small":{let X=U.inclusive?"以上である":"より大きい",Y=$(U.origin);if(Y)return`小さすぎる値: ${U.origin}は${U.minimum.toString()}${Y.unit}${X}必要があります`;return`小さすぎる値: ${U.origin}は${U.minimum.toString()}${X}必要があります`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`無効な文字列: "${X.prefix}"で始まる必要があります`;if(X.format==="ends_with")return`無効な文字列: "${X.suffix}"で終わる必要があります`;if(X.format==="includes")return`無効な文字列: "${X.includes}"を含む必要があります`;if(X.format==="regex")return`無効な文字列: パターン${X.pattern}に一致する必要があります`;return`無効な${J[X.format]??U.format}`}case"not_multiple_of":return`無効な数値: ${U.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${U.keys.length>1?"群":""}: ${P(U.keys,"、")}`;case"invalid_key":return`${U.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${U.origin}内の無効な値`;default:return"無効な入力"}}};var Uk=S(()=>{s()});function Bz(){return{localeError:I3D()}}var I3D=()=>{let D={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},map:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function $(U){return D[U]??null}let J={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",mac:"MAC მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",credit_card:"საკრედიტო ბარათის ნომერი",currency_code:"ვალუტის კოდი",iban:"IBAN",jwt:"JWT",template_literal:"შეყვანა"},F={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${U.expected}, მიღებული ${Q}`;return`არასწორი შეყვანა: მოსალოდნელი ${X}, მიღებული ${Q}`}case"invalid_value":if(U.values.length===1)return`არასწორი შეყვანა: მოსალოდნელი ${m(U.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${P(U.values,"|")}-დან`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`ზედმეტად დიდი: მოსალოდნელი ${U.origin??"მნიშვნელობა"} ${Y.verb} ${X}${U.maximum.toString()} ${Y.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${U.origin??"მნიშვნელობა"} იყოს ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`ზედმეტად პატარა: მოსალოდნელი ${U.origin} ${Y.verb} ${X}${U.minimum.toString()} ${Y.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${U.origin} იყოს ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`არასწორი ველი: უნდა იწყებოდეს "${X.prefix}"-ით`;if(X.format==="ends_with")return`არასწორი ველი: უნდა მთავრდებოდეს "${X.suffix}"-ით`;if(X.format==="includes")return`არასწორი ველი: უნდა შეიცავდეს "${X.includes}"-ს`;if(X.format==="regex")return`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${X.pattern}`;return`არასწორი ${J[X.format]??U.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${U.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${U.keys.length>1?"ები":"ი"}: ${P(U.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${U.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${U.origin}-ში`;default:return"არასწორი შეყვანა"}}};var Xk=S(()=>{s()});function G5(){return{localeError:z3D()}}var z3D=()=>{let D={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"},map:{unit:"ធាតុ",verb:"គួរមាន"}};function $(U){return D[U]??null}let J={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",mac:"អាសយដ្ឋាន MAC",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",credit_card:"លេខប័ណ្ណឥណទាន",currency_code:"កូដរូបិយប័ណ្ណ",iban:"IBAN",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},F={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${U.expected} ប៉ុន្តែទទួលបាន ${Q}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${X} ប៉ុន្តែទទួលបាន ${Q}`}case"invalid_value":if(U.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${m(U.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`ធំពេក៖ ត្រូវការ ${U.origin??"តម្លៃ"} ${X} ${U.maximum.toString()} ${Y.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${U.origin??"តម្លៃ"} ${X} ${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`តូចពេក៖ ត្រូវការ ${U.origin} ${X} ${U.minimum.toString()} ${Y.unit}`;return`តូចពេក៖ ត្រូវការ ${U.origin} ${X} ${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${X.prefix}"`;if(X.format==="ends_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${X.suffix}"`;if(X.format==="includes")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${X.includes}"`;if(X.format==="regex")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${X.pattern}`;return`មិនត្រឹមត្រូវ៖ ${J[X.format]??U.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${U.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${P(U.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${U.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${U.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};var Oz=S(()=>{s()});function jz(){return G5()}var Yk=S(()=>{Oz()});function Nz(){return{localeError:Z3D()}}var Z3D=()=>{let D={string:{unit:"ಅಕ್ಷರಗಳು",verb:"ಹೊಂದಲು"},file:{unit:"ಬೈಟ್ಗಳು",verb:"ಹೊಂದಲು"},array:{unit:"ವಸ್ತುಗಳು",verb:"ಹೊಂದಲು"},set:{unit:"ವಸ್ತುಗಳು",verb:"ಹೊಂದಲು"},map:{unit:"entries",verb:"ಹೊಂದಲು"}};function $(U){return D[U]??null}let J={regex:"ಇನ್ಪುಟ್",email:"email ವಿಳಾಸ",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ದಿನಾಂಕದ ಸಮಯ",date:"ISO ದಿನಾಂಕ",time:"ISO ಸಮಯ",duration:"ISO ಅವಧಿ",ipv4:"IPv4 ವಿಳಾಸ",ipv6:"IPv6 ವಿಳಾಸ",mac:"MAC ವಿಳಾಸ",cidrv4:"IPv4 ವ್ಯಾಪ್ತಿಯ",cidrv6:"IPv6 ವ್ಯಾಪ್ತಿಯ",base64:"base64-encodedಸ್ಟ್ರಿಂಗ್",base64url:"base64url-encodedಸ್ಟ್ರಿಂಗ್",json_string:"JSONಸ್ಟ್ರಿಂಗ್",e164:"E.164 ಸಂಖ್ಯೆ",credit_card:"ಕ್ರೆಡಿಟ್ ಕಾರ್ಡ್ ಸಂಖ್ಯೆ",currency_code:"ಕರೆನ್ಸಿ ಕೋಡ್",iban:"IBAN",jwt:"JWT",template_literal:"ಇನ್ಪುಟ್"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;return`ಅಮಾನ್ಯ ಇನ್ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${X}, ಸ್ವೀಕರಿಸಿದನು ${Q}`}case"invalid_value":if(U.values.length===1)return`ಅಮಾನ್ಯ ಇನ್ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${m(U.values[0])}`;return`ಅಮಾನ್ಯ ಆಯ್ಕೆ: ಇವುಗಳಲ್ಲಿ ಒಂದನ್ನು ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${U.origin??"value"} ಹೊಂದಲು ${X}${U.maximum.toString()} ${Y.unit??"ಅಂಶಗಳು"}`;return`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${U.origin??"value"} ಎಂದು ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${U.origin} ಹೊಂದಲು ${X}${U.minimum.toString()} ${Y.unit}`;return`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${U.origin} ಎಂದು ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಪ್ರಾರಂಭಿಸಬೇಕು "${X.prefix}"`;if(X.format==="ends_with")return`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಕೊನೆಗೊಳ್ಳಬೇಕು "${X.suffix}"`;if(X.format==="includes")return`ಅಮಾನ್ಯ ಸ್ಟ್ರಿಂಗ್: ಒಳಗೊಂಡಿರಬೇಕು "${X.includes}"`;if(X.format==="regex")return`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಮಾದರಿಗೆ ಹೊಂದಿಕೆಯಾಗಬೇಕು ${X.pattern}`;return`ಅಮಾನ್ಯ ${J[X.format]??U.format}`}case"not_multiple_of":return`ಅಮಾನ್ಯ ಸಂಖ್ಯೆ: ಬಹುಸಂಖ್ಯೆಯಾಗಿರಬೇಕು ${U.divisor}`;case"unrecognized_keys":return`ಗುರುತಿಸಲಾಗದ ಕೀ ${U.keys.length>1?"s":""}: ${P(U.keys,", ")}`;case"invalid_key":return`ಅಮಾನ್ಯವಾದ ಕೀ ಇನ್ ${U.origin}`;case"invalid_union":if(U.options&&Array.isArray(U.options)&&U.options.length>0)return`ಅಮಾನ್ಯ ತಾರತಮ್ಯ ಮೌಲ್ಯ. ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${U.options.map((Y)=>`'${Y}'`).join(" | ")}`;return"ಅಮಾನ್ಯ ಇನ್ಪುಟ್";case"invalid_element":return`ರಲ್ಲಿ ಅಮಾನ್ಯ ಮೌಲ್ಯ ${U.origin}`;default:return"ಅಮಾನ್ಯ ಇನ್ಪುಟ್"}}};var Qk=S(()=>{s()});function Vz(){return{localeError:H3D()}}var H3D=()=>{let D={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"},map:{unit:"개",verb:"to have"}};function $(U){return D[U]??null}let J={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",mac:"MAC 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",credit_card:"신용카드 번호",currency_code:"통화 코드",iban:"IBAN",jwt:"JWT",template_literal:"입력"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`잘못된 입력: 예상 타입은 instanceof ${U.expected}, 받은 타입은 ${Q}입니다`;return`잘못된 입력: 예상 타입은 ${X}, 받은 타입은 ${Q}입니다`}case"invalid_value":if(U.values.length===1)return`잘못된 입력: 값은 ${m(U.values[0])} 이어야 합니다`;return`잘못된 옵션: ${P(U.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let X=U.inclusive?"이하":"미만",Y=X==="미만"?"이어야 합니다":"여야 합니다",Q=$(U.origin),q=Q?.unit??"요소";if(Q)return`${U.origin??"값"}이 너무 큽니다: ${U.maximum.toString()}${q} ${X}${Y}`;return`${U.origin??"값"}이 너무 큽니다: ${U.maximum.toString()} ${X}${Y}`}case"too_small":{let X=U.inclusive?"이상":"초과",Y=X==="이상"?"이어야 합니다":"여야 합니다",Q=$(U.origin),q=Q?.unit??"요소";if(Q)return`${U.origin??"값"}이 너무 작습니다: ${U.minimum.toString()}${q} ${X}${Y}`;return`${U.origin??"값"}이 너무 작습니다: ${U.minimum.toString()} ${X}${Y}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`잘못된 문자열: "${X.prefix}"(으)로 시작해야 합니다`;if(X.format==="ends_with")return`잘못된 문자열: "${X.suffix}"(으)로 끝나야 합니다`;if(X.format==="includes")return`잘못된 문자열: "${X.includes}"을(를) 포함해야 합니다`;if(X.format==="regex")return`잘못된 문자열: 정규식 ${X.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${J[X.format]??U.format}`}case"not_multiple_of":return`잘못된 숫자: ${U.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${P(U.keys,", ")}`;case"invalid_key":return`잘못된 키: ${U.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${U.origin}`;default:return"잘못된 입력"}}};var qk=S(()=>{s()});function Kk(D){let $=Math.abs(D),J=$%10,F=$%100;if(F>=11&&F<=19||J===0)return"many";if(J===1)return"one";return"few"}function Lz(){return{localeError:B3D()}}var I5=(D)=>{return D.charAt(0).toUpperCase()+D.slice(1)},B3D=()=>{let D={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function $(U,X,Y,Q){let q=D[U]??null;if(q===null)return q;return{unit:q.unit[X],verb:q.verb[Q][Y?"inclusive":"notInclusive"]}}let J={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",mac:"MAC adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",credit_card:"kredito kortelės numeris",currency_code:"valiutos kodas",iban:"IBAN",jwt:"JWT",template_literal:"įvestis"},F={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Gautas tipas ${Q}, o tikėtasi - instanceof ${U.expected}`;return`Gautas tipas ${Q}, o tikėtasi - ${X}`}case"invalid_value":if(U.values.length===1)return`Privalo būti ${m(U.values[0])}`;return`Privalo būti vienas iš ${P(U.values,"|")} pasirinkimų`;case"too_big":{let X=F[U.origin]??U.origin,Y=$(U.origin,Kk(Number(U.maximum)),U.inclusive??!1,"smaller");if(Y?.verb)return`${I5(X??U.origin??"reikšmė")} ${Y.verb} ${U.maximum.toString()} ${Y.unit??"elementų"}`;let Q=U.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${I5(X??U.origin??"reikšmė")} turi būti ${Q} ${U.maximum.toString()} ${Y?.unit}`}case"too_small":{let X=F[U.origin]??U.origin,Y=$(U.origin,Kk(Number(U.minimum)),U.inclusive??!1,"bigger");if(Y?.verb)return`${I5(X??U.origin??"reikšmė")} ${Y.verb} ${U.minimum.toString()} ${Y.unit??"elementų"}`;let Q=U.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${I5(X??U.origin??"reikšmė")} turi būti ${Q} ${U.minimum.toString()} ${Y?.unit}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Eilutė privalo prasidėti "${X.prefix}"`;if(X.format==="ends_with")return`Eilutė privalo pasibaigti "${X.suffix}"`;if(X.format==="includes")return`Eilutė privalo įtraukti "${X.includes}"`;if(X.format==="regex")return`Eilutė privalo atitikti ${X.pattern}`;return`Neteisingas ${J[X.format]??U.format}`}case"not_multiple_of":return`Skaičius privalo būti ${U.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${U.keys.length>1?"i":"as"} rakt${U.keys.length>1?"ai":"as"}: ${P(U.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{let X=F[U.origin]??U.origin;return`${I5(X??U.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};var Wk=S(()=>{s()});function wz(){return{localeError:O3D()}}var O3D=()=>{let D={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"},map:{unit:"ставки",verb:"да имаат"}};function $(U){return D[U]??null}let J={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",mac:"MAC адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",credit_card:"број на кредитна картичка",currency_code:"код на валута",iban:"IBAN",jwt:"JWT",template_literal:"внес"},F={nan:"NaN",number:"број",array:"низа"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Грешен внес: се очекува instanceof ${U.expected}, примено ${Q}`;return`Грешен внес: се очекува ${X}, примено ${Q}`}case"invalid_value":if(U.values.length===1)return`Invalid input: expected ${m(U.values[0])}`;return`Грешана опција: се очекува една ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Премногу голем: се очекува ${U.origin??"вредноста"} да има ${X}${U.maximum.toString()} ${Y.unit??"елементи"}`;return`Премногу голем: се очекува ${U.origin??"вредноста"} да биде ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Премногу мал: се очекува ${U.origin} да има ${X}${U.minimum.toString()} ${Y.unit}`;return`Премногу мал: се очекува ${U.origin} да биде ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Неважечка низа: мора да започнува со "${X.prefix}"`;if(X.format==="ends_with")return`Неважечка низа: мора да завршува со "${X.suffix}"`;if(X.format==="includes")return`Неважечка низа: мора да вклучува "${X.includes}"`;if(X.format==="regex")return`Неважечка низа: мора да одгоара на патернот ${X.pattern}`;return`Invalid ${J[X.format]??U.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${U.divisor}`;case"unrecognized_keys":return`${U.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${P(U.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${U.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${U.origin}`;default:return"Грешен внес"}}};var Gk=S(()=>{s()});function Rz(){return{localeError:j3D()}}var j3D=()=>{let D={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{unit:"elemen",verb:"mempunyai"}};function $(U){return D[U]??null}let J={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",currency_code:"kod mata wang",iban:"IBAN",jwt:"JWT",template_literal:"input"},F={nan:"NaN",number:"nombor"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Input tidak sah: dijangka instanceof ${U.expected}, diterima ${Q}`;return`Input tidak sah: dijangka ${X}, diterima ${Q}`}case"invalid_value":if(U.values.length===1)return`Input tidak sah: dijangka ${m(U.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Terlalu besar: dijangka ${U.origin??"nilai"} ${Y.verb} ${X}${U.maximum.toString()} ${Y.unit??"elemen"}`;return`Terlalu besar: dijangka ${U.origin??"nilai"} adalah ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Terlalu kecil: dijangka ${U.origin} ${Y.verb} ${X}${U.minimum.toString()} ${Y.unit}`;return`Terlalu kecil: dijangka ${U.origin} adalah ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`String tidak sah: mesti bermula dengan "${X.prefix}"`;if(X.format==="ends_with")return`String tidak sah: mesti berakhir dengan "${X.suffix}"`;if(X.format==="includes")return`String tidak sah: mesti mengandungi "${X.includes}"`;if(X.format==="regex")return`String tidak sah: mesti sepadan dengan corak ${X.pattern}`;return`${J[X.format]??U.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${U.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${P(U.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${U.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${U.origin}`;default:return"Input tidak sah"}}};var Ik=S(()=>{s()});function Mz(){return{localeError:N3D()}}var N3D=()=>{let D={string:{unit:"अक्षर",verb:"हुनुपर्छ"},file:{unit:"बाइट",verb:"हुनुपर्छ"},array:{unit:"तत्व",verb:"हुनुपर्छ"},set:{unit:"तत्व",verb:"हुनुपर्छ"},map:{unit:"प्रविष्टि",verb:"हुनुपर्छ"}};function $(U){return D[U]??null}let J={regex:"इनपुट",email:"इमेल ठेगाना",url:"URL",emoji:"इमोजी",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO मिति र समय",date:"ISO मिति",time:"ISO समय",duration:"ISO अवधि",ipv4:"IPv4 ठेगाना",ipv6:"IPv6 ठेगाना",mac:"MAC ठेगाना",cidrv4:"IPv4 दायरा",cidrv6:"IPv6 दायरा",base64:"base64-इन्कोड गरिएको स्ट्रिङ",base64url:"base64url-इन्कोड गरिएको स्ट्रिङ",json_string:"JSON स्ट्रिङ",e164:"E.164 नम्बर",credit_card:"क्रेडिट कार्ड नम्बर",currency_code:"मुद्रा कोड",iban:"IBAN",jwt:"JWT",template_literal:"इनपुट"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;return`अमान्य इनपुट: अपेक्षित ${X}, प्राप्त ${Q}`}case"invalid_value":if(U.values.length===1)return`अमान्य इनपुट: अपेक्षित ${m(U.values[0])}`;return`अमान्य विकल्प: अपेक्षित मानहरू मध्ये एक ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`धेरै ठूलो: ${U.origin??"मान"} मा ${X}${U.maximum.toString()} ${Y.unit} ${Y.verb}`;return`धेरै ठूलो: ${U.origin??"मान"} ${X}${U.maximum.toString()} हुनुपर्छ`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`धेरै सानो: ${U.origin} मा ${X}${U.minimum.toString()} ${Y.unit} ${Y.verb}`;return`धेरै सानो: ${U.origin} ${X}${U.minimum.toString()} हुनुपर्छ`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`अमान्य स्ट्रिङ: "${X.prefix}" बाट सुरु हुनुपर्छ`;if(X.format==="ends_with")return`अमान्य स्ट्रिङ: "${X.suffix}" मा समाप्त हुनुपर्छ`;if(X.format==="includes")return`अमान्य स्ट्रिङ: "${X.includes}" समावेश हुनुपर्छ`;if(X.format==="regex")return`अमान्य स्ट्रिङ: ढाँचा ${X.pattern} सँग मेल खानुपर्छ`;return`अमान्य ${J[X.format]??U.format}`}case"not_multiple_of":return`अमान्य संख्या: ${U.divisor} को गुणज हुनुपर्छ`;case"unrecognized_keys":return`अपरिचित कुञ्जी${U.keys.length>1?"हरू":""}: ${P(U.keys,", ")}`;case"invalid_key":return`अमान्य कुञ्जी: ${U.origin} मा`;case"invalid_union":if(U.options&&Array.isArray(U.options)&&U.options.length>0)return`अमान्य डिस्क्रिमिनेटर मान: अपेक्षित ${U.options.map((Y)=>`'${Y}'`).join(" | ")}`;return"अमान्य इनपुट";case"invalid_element":return`अमान्य मान: ${U.origin} मा`;default:return"अमान्य इनपुट"}}};var zk=S(()=>{s()});function Ez(){return{localeError:V3D()}}var V3D=()=>{let D={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{unit:"elementen",verb:"heeft"}};function $(U){return D[U]??null}let J={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",currency_code:"valutacode",iban:"IBAN",jwt:"JWT",template_literal:"invoer"},F={nan:"NaN",number:"getal"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Ongeldige invoer: verwacht instanceof ${U.expected}, ontving ${Q}`;return`Ongeldige invoer: verwacht ${X}, ontving ${Q}`}case"invalid_value":if(U.values.length===1)return`Ongeldige invoer: verwacht ${m(U.values[0])}`;return`Ongeldige optie: verwacht één van ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin),Q=U.origin==="date"?"laat":U.origin==="string"?"lang":"groot";if(Y)return`Te ${Q}: verwacht dat ${U.origin??"waarde"} ${X}${U.maximum.toString()} ${Y.unit??"elementen"} ${Y.verb}`;return`Te ${Q}: verwacht dat ${U.origin??"waarde"} ${X}${U.maximum.toString()} is`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin),Q=U.origin==="date"?"vroeg":U.origin==="string"?"kort":"klein";if(Y)return`Te ${Q}: verwacht dat ${U.origin} ${X}${U.minimum.toString()} ${Y.unit} ${Y.verb}`;return`Te ${Q}: verwacht dat ${U.origin} ${X}${U.minimum.toString()} is`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Ongeldige tekst: moet met "${X.prefix}" beginnen`;if(X.format==="ends_with")return`Ongeldige tekst: moet op "${X.suffix}" eindigen`;if(X.format==="includes")return`Ongeldige tekst: moet "${X.includes}" bevatten`;if(X.format==="regex")return`Ongeldige tekst: moet overeenkomen met patroon ${X.pattern}`;return`Ongeldig: ${J[X.format]??U.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${U.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${U.keys.length>1?"s":""}: ${P(U.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${U.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${U.origin}`;default:return"Ongeldige invoer"}}};var Zk=S(()=>{s()});function Az(){return{localeError:L3D()}}var L3D=()=>{let D={string:{unit:"teikn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"element",verb:"å innehalde"},set:{unit:"element",verb:"å innehalde"},map:{unit:"element",verb:"å innehalde"}};function $(U){return D[U]??null}let J={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},F={nan:"NaN",number:"tal",array:"liste"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Ugyldig input: forventa instanceof ${U.expected}, fekk ${Q}`;return`Ugyldig input: forventa ${X}, fekk ${Q}`}case"invalid_value":if(U.values.length===1)return`Ugyldig verdi: forventa ${m(U.values[0])}`;return`Ugyldig val: forventa eitt av ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`For stor(t): forventa ${U.origin??"value"} til å ha ${X}${U.maximum.toString()} ${Y.unit??"element"}`;return`For stor(t): forventa ${U.origin??"value"} til å ha ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`For lite(n): forventa ${U.origin} til å ha ${X}${U.minimum.toString()} ${Y.unit}`;return`For lite(n): forventa ${U.origin} til å ha ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Ugyldig streng: må starte med "${X.prefix}"`;if(X.format==="ends_with")return`Ugyldig streng: må slutte med "${X.suffix}"`;if(X.format==="includes")return`Ugyldig streng: må innehalde "${X.includes}"`;if(X.format==="regex")return`Ugyldig streng: må matche mønsteret ${X.pattern}`;return`Ugyldig ${J[X.format]??U.format}`}case"not_multiple_of":return`Ugyldig tal: må vere eit multiplum av ${U.divisor}`;case"unrecognized_keys":return`${U.keys.length>1?"Ukjende nøklar":"Ukjend nøkkel"}: ${P(U.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${U.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${U.origin}`;default:return"Ugyldig input"}}};var Hk=S(()=>{s()});function vz(){return{localeError:w3D()}}var w3D=()=>{let D={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"},map:{unit:"elementer",verb:"å inneholde"}};function $(U){return D[U]??null}let J={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},F={nan:"NaN",number:"tall",array:"liste"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Ugyldig input: forventet instanceof ${U.expected}, fikk ${Q}`;return`Ugyldig input: forventet ${X}, fikk ${Q}`}case"invalid_value":if(U.values.length===1)return`Ugyldig verdi: forventet ${m(U.values[0])}`;return`Ugyldig valg: forventet en av ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`For stor(t): forventet ${U.origin??"value"} til å ha ${X}${U.maximum.toString()} ${Y.unit??"elementer"}`;return`For stor(t): forventet ${U.origin??"value"} til å ha ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`For lite(n): forventet ${U.origin} til å ha ${X}${U.minimum.toString()} ${Y.unit}`;return`For lite(n): forventet ${U.origin} til å ha ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Ugyldig streng: må starte med "${X.prefix}"`;if(X.format==="ends_with")return`Ugyldig streng: må ende med "${X.suffix}"`;if(X.format==="includes")return`Ugyldig streng: må inneholde "${X.includes}"`;if(X.format==="regex")return`Ugyldig streng: må matche mønsteret ${X.pattern}`;return`Ugyldig ${J[X.format]??U.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${U.divisor}`;case"unrecognized_keys":return`${U.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${P(U.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${U.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${U.origin}`;default:return"Ugyldig input"}}};var Bk=S(()=>{s()});function Tz(){return{localeError:R3D()}}var R3D=()=>{let D={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"},map:{unit:"unsur",verb:"olmalıdır"}};function $(U){return D[U]??null}let J={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",mac:"MAC nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",credit_card:"i'tibâr kartı numarası",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"giren"},F={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Fâsit giren: umulan instanceof ${U.expected}, alınan ${Q}`;return`Fâsit giren: umulan ${X}, alınan ${Q}`}case"invalid_value":if(U.values.length===1)return`Fâsit giren: umulan ${m(U.values[0])}`;return`Fâsit tercih: mûteberler ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Fazla büyük: ${U.origin??"value"}, ${X}${U.maximum.toString()} ${Y.unit??"elements"} sahip olmalıydı.`;return`Fazla büyük: ${U.origin??"value"}, ${X}${U.maximum.toString()} olmalıydı.`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Fazla küçük: ${U.origin}, ${X}${U.minimum.toString()} ${Y.unit} sahip olmalıydı.`;return`Fazla küçük: ${U.origin}, ${X}${U.minimum.toString()} olmalıydı.`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Fâsit metin: "${X.prefix}" ile başlamalı.`;if(X.format==="ends_with")return`Fâsit metin: "${X.suffix}" ile bitmeli.`;if(X.format==="includes")return`Fâsit metin: "${X.includes}" ihtivâ etmeli.`;if(X.format==="regex")return`Fâsit metin: ${X.pattern} nakşına uymalı.`;return`Fâsit ${J[X.format]??U.format}`}case"not_multiple_of":return`Fâsit sayı: ${U.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${U.keys.length>1?"s":""}: ${P(U.keys,", ")}`;case"invalid_key":return`${U.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${U.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};var Ok=S(()=>{s()});function bz(){return{localeError:M3D()}}var M3D=()=>{let D={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"},map:{unit:"توکي",verb:"ولري"}};function $(U){return D[U]??null}let J={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",mac:"د MAC پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",credit_card:"د کریډیټ کارت شمیره",currency_code:"د اسعارو کوډ",iban:"IBAN",jwt:"JWT",template_literal:"ورودي"},F={nan:"NaN",number:"عدد",array:"ارې"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`ناسم ورودي: باید instanceof ${U.expected} وای, مګر ${Q} ترلاسه شو`;return`ناسم ورودي: باید ${X} وای, مګر ${Q} ترلاسه شو`}case"invalid_value":if(U.values.length===1)return`ناسم ورودي: باید ${m(U.values[0])} وای`;return`ناسم انتخاب: باید یو له ${P(U.values,"|")} څخه وای`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`ډیر لوی: ${U.origin??"ارزښت"} باید ${X}${U.maximum.toString()} ${Y.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${U.origin??"ارزښت"} باید ${X}${U.maximum.toString()} وي`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`ډیر کوچنی: ${U.origin} باید ${X}${U.minimum.toString()} ${Y.unit} ولري`;return`ډیر کوچنی: ${U.origin} باید ${X}${U.minimum.toString()} وي`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`ناسم متن: باید د "${X.prefix}" سره پیل شي`;if(X.format==="ends_with")return`ناسم متن: باید د "${X.suffix}" سره پای ته ورسيږي`;if(X.format==="includes")return`ناسم متن: باید "${X.includes}" ولري`;if(X.format==="regex")return`ناسم متن: باید د ${X.pattern} سره مطابقت ولري`;return`${J[X.format]??U.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${U.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${U.keys.length>1?"کلیډونه":"کلیډ"}: ${P(U.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${U.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${U.origin} کې`;default:return"ناسمه ورودي"}}};var jk=S(()=>{s()});function Pz(){return{localeError:E3D()}}var E3D=()=>{let D={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"},map:{unit:"elementów",verb:"mieć"}};function $(U){return D[U]??null}let J={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",mac:"adres MAC",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",credit_card:"numer karty kredytowej",currency_code:"kod waluty",iban:"IBAN",jwt:"JWT",template_literal:"wejście"},F={nan:"NaN",number:"liczba",array:"tablica"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${U.expected}, otrzymano ${Q}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${X}, otrzymano ${Q}`}case"invalid_value":if(U.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${m(U.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Za duża wartość: oczekiwano, że ${U.origin??"wartość"} będzie mieć ${X}${U.maximum.toString()} ${Y.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${U.origin??"wartość"} będzie wynosić ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Za mała wartość: oczekiwano, że ${U.origin??"wartość"} będzie mieć ${X}${U.minimum.toString()} ${Y.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${U.origin??"wartość"} będzie wynosić ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Nieprawidłowy ciąg znaków: musi zaczynać się od "${X.prefix}"`;if(X.format==="ends_with")return`Nieprawidłowy ciąg znaków: musi kończyć się na "${X.suffix}"`;if(X.format==="includes")return`Nieprawidłowy ciąg znaków: musi zawierać "${X.includes}"`;if(X.format==="regex")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${X.pattern}`;return`Nieprawidłow(y/a/e) ${J[X.format]??U.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${U.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${U.keys.length>1?"s":""}: ${P(U.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${U.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${U.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};var Nk=S(()=>{s()});function Sz(){return{localeError:A3D()}}var A3D=()=>{let D={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function $(Y){return D[Y]??null}let J={regex:"a entrada",email:"o endereço de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a duração ISO",ipv4:"o endereço IPv4",ipv6:"o endereço IPv6",mac:"o endereço MAC",cidrv4:"o intervalo de endereços IPv4",cidrv6:"o intervalo de endereços IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o número E.164",credit_card:"o número de cartão de crédito",currency_code:"o código de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},F={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},U={string:{name:"texto",articles:F.masculine},number:{name:"número",articles:F.masculine},int:{name:"número inteiro",articles:F.masculine},boolean:{name:"valor booleano",articles:F.masculine},bigint:{name:"número bigint",articles:F.masculine},symbol:{name:"símbolo",articles:F.masculine},undefined:{name:'valor "undefined"',articles:F.masculine},null:{name:'valor "nulo"',articles:F.masculine},never:{name:'valor "never"',articles:F.masculine},void:{name:'valor "void"',articles:F.masculine},date:{name:"data",articles:F.feminine},array:{name:"vetor",articles:F.masculine},object:{name:"objeto",articles:F.masculine},tuple:{name:"tuplo",articles:F.masculine},record:{name:"registo",articles:F.masculine},map:{name:"mapa",articles:F.masculine},set:{name:"conjunto",articles:F.masculine},file:{name:"ficheiro",articles:F.masculine},nonoptional:{name:"valor não opcional",articles:F.masculine},nan:{name:'valor "NaN"',articles:F.masculine},function:{name:"função",articles:F.feminine}};function X(Y,Q){let q=U[Y]??{name:`valor "${Y}"`,articles:F.masculine};return`${q.articles[Q]} ${q.name}`}return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X(Y.expected,"indefinite"),q=l(Y.input),K=X(q,"indefinite");return`Entrada inválida: esperava ${Q}, recebeu ${K}`}case"invalid_value":if(Y.values.length===1)return`Entrada inválida: esperava ${m(Y.values[0])}`;return`Opção inválida: esperava uma das seguintes opções: ${P(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",q=$(Y.origin);if(q)return`Demasiado grande: esperava que ${X(Y.origin,"definite")} tivesse ${Q} ${Y.maximum.toString()} ${q.unit??"elementos"}`;return`Demasiado grande: esperava que ${X(Y.origin,"definite")} fosse ${Q} ${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",q=$(Y.origin);if(q)return`Demasiado pequeno: esperava que ${X(Y.origin,"definite")} tivesse ${Q} ${Y.minimum.toString()} ${q.unit??"elementos"}`;return`Demasiado pequeno: esperava que ${X(Y.origin,"definite")} fosse ${Q} ${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Texto inválido: deve começar por "${Q.prefix}"`;if(Q.format==="ends_with")return`Texto inválido: deve terminar em "${Q.suffix}"`;if(Q.format==="includes")return`Texto inválido: deve incluir "${Q.includes}"`;if(Q.format==="regex")return`Texto inválido: deve corresponder ao padrão ${Q.pattern}`;return`Formato d${J[Q.format]??Y.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${Y.divisor}`;case"unrecognized_keys":{let Q=Y.keys.length>1?"s":"";return`Chave${Q} inválida${Q}: ${P(Y.keys,", ")}`}case"invalid_key":return`Entrada inválida n${X(Y.origin,"definite")}`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`Valor de discriminação inválido. Esperava ${Y.options.map((q)=>`'${q}'`).join(" | ")}`;return"Entrada inválida";case"invalid_element":return`Entrada inválida n${X(Y.origin,"definite")}`;default:return"Entrada inválida"}}};var Vk=S(()=>{s()});function _z(){return{localeError:v3D()}}var v3D=()=>{let D={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function $(Y){return D[Y]??null}let J={regex:"a entrada",email:"o endereço de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a duração ISO",ipv4:"o endereço IPv4",ipv6:"o endereço IPv6",mac:"o endereço MAC",cidrv4:"a faixa de endereços IPv4",cidrv6:"a faixa de endereços IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o número E.164",credit_card:"o número de cartão de crédito",currency_code:"o código de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},F={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},U={string:{name:"texto",articles:F.masculine},number:{name:"número",articles:F.masculine},int:{name:"número inteiro",articles:F.masculine},boolean:{name:"valor booleano",articles:F.masculine},bigint:{name:"número bigint",articles:F.masculine},symbol:{name:"símbolo",articles:F.masculine},undefined:{name:'valor "undefined"',articles:F.masculine},null:{name:'valor "nulo"',articles:F.masculine},never:{name:'valor "never"',articles:F.masculine},void:{name:'valor "void"',articles:F.masculine},date:{name:"data",articles:F.feminine},array:{name:"vetor",articles:F.masculine},object:{name:"objeto",articles:F.masculine},tuple:{name:"tupla",articles:F.feminine},record:{name:"registro",articles:F.masculine},map:{name:"mapa",articles:F.masculine},set:{name:"conjunto",articles:F.masculine},file:{name:"arquivo",articles:F.masculine},nonoptional:{name:"valor não opcional",articles:F.masculine},nan:{name:'valor "NaN"',articles:F.masculine},function:{name:"função",articles:F.feminine}};function X(Y,Q){let q=U[Y]??{name:`valor "${Y}"`,articles:F.masculine};return`${q.articles[Q]} ${q.name}`}return(Y)=>{switch(Y.code){case"invalid_type":{let Q=X(Y.expected,"indefinite"),q=l(Y.input),K=X(q,"indefinite");return`Entrada inválida: esperava ${Q}, recebeu ${K}`}case"invalid_value":if(Y.values.length===1)return`Entrada inválida: esperava ${m(Y.values[0])}`;return`Opção inválida: esperava uma das seguintes opções: ${P(Y.values,"|")}`;case"too_big":{let Q=Y.inclusive?"<=":"<",q=$(Y.origin);if(q)return`Grande demais: esperava que ${X(Y.origin,"definite")} tivesse ${Q} ${Y.maximum.toString()} ${q.unit??"elementos"}`;return`Grande demais: esperava que ${X(Y.origin,"definite")} fosse ${Q} ${Y.maximum.toString()}`}case"too_small":{let Q=Y.inclusive?">=":">",q=$(Y.origin);if(q)return`Pequeno demais: esperava que ${X(Y.origin,"definite")} tivesse ${Q} ${Y.minimum.toString()} ${q.unit??"elementos"}`;return`Pequeno demais: esperava que ${X(Y.origin,"definite")} fosse ${Q} ${Y.minimum.toString()}`}case"invalid_format":{let Q=Y;if(Q.format==="starts_with")return`Texto inválido: deve começar com "${Q.prefix}"`;if(Q.format==="ends_with")return`Texto inválido: deve terminar com "${Q.suffix}"`;if(Q.format==="includes")return`Texto inválido: deve incluir "${Q.includes}"`;if(Q.format==="regex")return`Texto inválido: deve corresponder ao padrão ${Q.pattern}`;return`Formato d${J[Q.format]??Y.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${Y.divisor}`;case"unrecognized_keys":{let Q=Y.keys.length>1?"s":"";return`Chave${Q} inválida${Q}: ${P(Y.keys,", ")}`}case"invalid_key":return`Entrada inválida n${X(Y.origin,"definite")}`;case"invalid_union":if(Y.options&&Array.isArray(Y.options)&&Y.options.length>0)return`Valor de discriminação inválido. Esperava ${Y.options.map((q)=>`'${q}'`).join(" | ")}`;return"Entrada inválida";case"invalid_element":return`Entrada inválida n${X(Y.origin,"definite")}`;default:return"Entrada inválida"}}};var Lk=S(()=>{s()});function kz(){return{localeError:T3D()}}var T3D=()=>{let D={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function $(U){return D[U]??null}let J={regex:"intrare",email:"adresă de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",credit_card:"număr de card de credit",currency_code:"cod valutar",iban:"IBAN",jwt:"JWT",template_literal:"intrare"},F={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;return`Intrare invalidă: așteptat ${X}, primit ${Q}`}case"invalid_value":if(U.values.length===1)return`Intrare invalidă: așteptat ${m(U.values[0])}`;return`Opțiune invalidă: așteptat una dintre ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Prea mare: așteptat ca ${U.origin??"valoarea"} ${Y.verb} ${X}${U.maximum.toString()} ${Y.unit??"elemente"}`;return`Prea mare: așteptat ca ${U.origin??"valoarea"} să fie ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Prea mic: așteptat ca ${U.origin} ${Y.verb} ${X}${U.minimum.toString()} ${Y.unit}`;return`Prea mic: așteptat ca ${U.origin} să fie ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Șir invalid: trebuie să înceapă cu "${X.prefix}"`;if(X.format==="ends_with")return`Șir invalid: trebuie să se termine cu "${X.suffix}"`;if(X.format==="includes")return`Șir invalid: trebuie să includă "${X.includes}"`;if(X.format==="regex")return`Șir invalid: trebuie să se potrivească cu modelul ${X.pattern}`;return`Format invalid: ${J[X.format]??U.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${U.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${P(U.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${U.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${U.origin}`;default:return"Intrare invalidă"}}};var wk=S(()=>{s()});function Rk(D,$,J,F){let U=Math.abs(D),X=U%10,Y=U%100;if(Y>=11&&Y<=19)return F;if(X===1)return $;if(X>=2&&X<=4)return J;return F}function Cz(){return{localeError:b3D()}}var b3D=()=>{let D={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},map:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function $(U){return D[U]??null}let J={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",mac:"MAC адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",credit_card:"номер кредитной карты",currency_code:"код валюты",iban:"IBAN",jwt:"JWT",template_literal:"ввод"},F={nan:"NaN",number:"число",array:"массив"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Неверный ввод: ожидалось instanceof ${U.expected}, получено ${Q}`;return`Неверный ввод: ожидалось ${X}, получено ${Q}`}case"invalid_value":if(U.values.length===1)return`Неверный ввод: ожидалось ${m(U.values[0])}`;return`Неверный вариант: ожидалось одно из ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y){let Q=Number(U.maximum),q=Rk(Q,Y.unit.one,Y.unit.few,Y.unit.many);return`Слишком большое значение: ожидалось, что ${U.origin??"значение"} будет иметь ${X}${U.maximum.toString()} ${q}`}return`Слишком большое значение: ожидалось, что ${U.origin??"значение"} будет ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y){let Q=Number(U.minimum),q=Rk(Q,Y.unit.one,Y.unit.few,Y.unit.many);return`Слишком маленькое значение: ожидалось, что ${U.origin} будет иметь ${X}${U.minimum.toString()} ${q}`}return`Слишком маленькое значение: ожидалось, что ${U.origin} будет ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Неверная строка: должна начинаться с "${X.prefix}"`;if(X.format==="ends_with")return`Неверная строка: должна заканчиваться на "${X.suffix}"`;if(X.format==="includes")return`Неверная строка: должна содержать "${X.includes}"`;if(X.format==="regex")return`Неверная строка: должна соответствовать шаблону ${X.pattern}`;return`Неверный ${J[X.format]??U.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${U.divisor}`;case"unrecognized_keys":return`Нераспознанн${U.keys.length>1?"ые":"ый"} ключ${U.keys.length>1?"и":""}: ${P(U.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${U.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${U.origin}`;default:return"Неверные входные данные"}}};var Mk=S(()=>{s()});function uz(){return{localeError:P3D()}}var P3D=()=>{let D={string:{unit:"znakov",verb:"mať"},file:{unit:"bajtov",verb:"mať"},array:{unit:"prvkov",verb:"mať"},set:{unit:"prvkov",verb:"mať"},map:{unit:"položiek",verb:"mať"}};function $(U){return D[U]??null}let J={regex:"regulárny výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dátum a čas vo formáte ISO",date:"dátum vo formáte ISO",time:"čas vo formáte ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"reťazec zakódovaný vo formáte base64",base64url:"reťazec zakódovaný vo formáte base64url",json_string:"reťazec vo formáte JSON",e164:"číslo E.164",credit_card:"číslo kreditnej karty",currency_code:"kód meny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},F={nan:"NaN",number:"číslo",string:"reťazec",function:"funkcia",array:"pole"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Neplatný vstup: očakávané instanceof ${U.expected}, obdržané ${Q}`;return`Neplatný vstup: očakávané ${X}, obdržané ${Q}`}case"invalid_value":if(U.values.length===1)return`Neplatný vstup: očakávané ${m(U.values[0])}`;return`Neplatný vstup: očakávaná jedna z hodnôt ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Hodnota je príliš veľká: ${U.origin??"hodnota"} musí mať ${X}${U.maximum.toString()} ${Y.unit??"prvkov"}`;return`Hodnota je príliš veľká: ${U.origin??"hodnota"} musí byť ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Hodnota je príliš malá: ${U.origin??"hodnota"} musí mať ${X}${U.minimum.toString()} ${Y.unit??"prvkov"}`;return`Hodnota je príliš malá: ${U.origin??"hodnota"} musí byť ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Neplatný reťazec: musí začínať na "${X.prefix}"`;if(X.format==="ends_with")return`Neplatný reťazec: musí končiť na "${X.suffix}"`;if(X.format==="includes")return`Neplatný reťazec: musí obsahovať "${X.includes}"`;if(X.format==="regex")return`Neplatný reťazec: musí zodpovedať vzoru ${X.pattern}`;return`Neplatný formát ${J[X.format]??U.format}`}case"not_multiple_of":return`Neplatné číslo: musí byť násobkom ${U.divisor}`;case"unrecognized_keys":return`Neznáme klúče: ${P(U.keys,", ")}`;case"invalid_key":return`Neplatný klúč v ${U.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${U.origin}`;default:return"Neplatný vstup"}}};var Ek=S(()=>{s()});function gz(){return{localeError:S3D()}}var S3D=()=>{let D={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{unit:"elementov",verb:"imeti"}};function $(U){return D[U]??null}let J={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",credit_card:"številka kreditne kartice",currency_code:"koda valute",iban:"IBAN",jwt:"JWT",template_literal:"vnos"},F={nan:"NaN",number:"število",array:"tabela"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Neveljaven vnos: pričakovano instanceof ${U.expected}, prejeto ${Q}`;return`Neveljaven vnos: pričakovano ${X}, prejeto ${Q}`}case"invalid_value":if(U.values.length===1)return`Neveljaven vnos: pričakovano ${m(U.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Preveliko: pričakovano, da bo ${U.origin??"vrednost"} imelo ${X}${U.maximum.toString()} ${Y.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${U.origin??"vrednost"} ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Premajhno: pričakovano, da bo ${U.origin} imelo ${X}${U.minimum.toString()} ${Y.unit}`;return`Premajhno: pričakovano, da bo ${U.origin} ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Neveljaven niz: mora se začeti z "${X.prefix}"`;if(X.format==="ends_with")return`Neveljaven niz: mora se končati z "${X.suffix}"`;if(X.format==="includes")return`Neveljaven niz: mora vsebovati "${X.includes}"`;if(X.format==="regex")return`Neveljaven niz: mora ustrezati vzorcu ${X.pattern}`;return`Neveljaven ${J[X.format]??U.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${U.divisor}`;case"unrecognized_keys":return`Neprepoznan${U.keys.length>1?"i ključi":" ključ"}: ${P(U.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${U.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${U.origin}`;default:return"Neveljaven vnos"}}};var Ak=S(()=>{s()});function fz(){return{localeError:_3D()}}var _3D=()=>{let D={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"},map:{unit:"objekt",verb:"att innehålla"}};function $(U){return D[U]??null}let J={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-adress",ipv6:"IPv6-adress",mac:"MAC-adress",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",credit_card:"kreditkortsnummer",currency_code:"valutakod",iban:"IBAN",jwt:"JWT",template_literal:"mall-literal"},F={nan:"NaN",number:"antal",array:"lista"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Ogiltig inmatning: förväntat instanceof ${U.expected}, fick ${Q}`;return`Ogiltig inmatning: förväntat ${X}, fick ${Q}`}case"invalid_value":if(U.values.length===1)return`Ogiltig inmatning: förväntat ${m(U.values[0])}`;return`Ogiltigt val: förväntade en av ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`För stor(t): förväntade ${U.origin??"värdet"} att ha ${X}${U.maximum.toString()} ${Y.unit??"element"}`;return`För stor(t): förväntat ${U.origin??"värdet"} att ha ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`För lite(t): förväntade ${U.origin??"värdet"} att ha ${X}${U.minimum.toString()} ${Y.unit}`;return`För lite(t): förväntade ${U.origin??"värdet"} att ha ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Ogiltig sträng: måste börja med "${X.prefix}"`;if(X.format==="ends_with")return`Ogiltig sträng: måste sluta med "${X.suffix}"`;if(X.format==="includes")return`Ogiltig sträng: måste innehålla "${X.includes}"`;if(X.format==="regex")return`Ogiltig sträng: måste matcha mönstret "${X.pattern}"`;return`Ogiltig(t) ${J[X.format]??U.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${U.divisor}`;case"unrecognized_keys":return`${U.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${P(U.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${U.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${U.origin??"värdet"}`;default:return"Ogiltig input"}}};var vk=S(()=>{s()});function xz(){return{localeError:k3D()}}var k3D=()=>{let D={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},map:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function $(U){return D[U]??null}let J={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",mac:"MAC முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",credit_card:"கடன் அட்டை எண்",currency_code:"நாணயக் குறியீடு",iban:"IBAN",jwt:"JWT",template_literal:"input"},F={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${U.expected}, பெறப்பட்டது ${Q}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${X}, பெறப்பட்டது ${Q}`}case"invalid_value":if(U.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${m(U.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${P(U.values,"|")} இல் ஒன்று`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${U.origin??"மதிப்பு"} ${X}${U.maximum.toString()} ${Y.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${U.origin??"மதிப்பு"} ${X}${U.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${U.origin} ${X}${U.minimum.toString()} ${Y.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${U.origin} ${X}${U.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`தவறான சரம்: "${X.prefix}" இல் தொடங்க வேண்டும்`;if(X.format==="ends_with")return`தவறான சரம்: "${X.suffix}" இல் முடிவடைய வேண்டும்`;if(X.format==="includes")return`தவறான சரம்: "${X.includes}" ஐ உள்ளடக்க வேண்டும்`;if(X.format==="regex")return`தவறான சரம்: ${X.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${J[X.format]??U.format}`}case"not_multiple_of":return`தவறான எண்: ${U.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${U.keys.length>1?"கள்":""}: ${P(U.keys,", ")}`;case"invalid_key":return`${U.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${U.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};var Tk=S(()=>{s()});function yz(){return{localeError:C3D()}}var C3D=()=>{let D={string:{unit:"аломат",verb:"дошта бошад"},file:{unit:"байт",verb:"дошта бошад"},array:{unit:"унсур",verb:"дошта бошад"},set:{unit:"унсур",verb:"дошта бошад"},map:{unit:"сабт",verb:"дошта бошад"}};function $(U){return D[U]??null}let J={regex:"вуруд",email:"суроғаи email",url:"URL",emoji:"эмоҷи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"санаву вақти ISO",date:"санаи ISO",time:"вақти ISO",duration:"давомнокии ISO",ipv4:"суроғаи IPv4",ipv6:"суроғаи IPv6",mac:"суроғаи MAC",cidrv4:"маҳдудаи IPv4",cidrv6:"маҳдудаи IPv6",base64:"сатри дар формати base64",base64url:"сатри дар формати base64url",json_string:"сатри JSON",e164:"рақами E.164",credit_card:"рақами корти кредитӣ",currency_code:"рамзи асъор",iban:"IBAN",jwt:"JWT",template_literal:"вуруд"},F={nan:"NaN",number:"рақам",string:"сатр",array:"массив",object:"объект",date:"сана"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;return`Вуруди нодуруст: ${X} интизор мерафт, ${Q} гирифта шуд`}case"invalid_value":if(U.values.length===1)return`Вуруди нодуруст: ${m(U.values[0])} интизор мерафт`;return`Интихоби нодуруст: яке аз ${P(U.values,"|")} интизор мерафт`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Хеле калон: ${U.origin??"қимат"} бояд ${X}${U.maximum.toString()} ${Y.unit} ${Y.verb}`;return`Хеле калон: ${U.origin??"қимат"} бояд ${X}${U.maximum.toString()} бошад`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Хеле хурд: ${U.origin} бояд ${X}${U.minimum.toString()} ${Y.unit} ${Y.verb}`;return`Хеле хурд: ${U.origin} бояд ${X}${U.minimum.toString()} бошад`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Сатри нодуруст: бояд бо "${X.prefix}" оғоз шавад`;if(X.format==="ends_with")return`Сатри нодуруст: бояд бо "${X.suffix}" анҷом ёбад`;if(X.format==="includes")return`Сатри нодуруст: бояд "${X.includes}"-ро дар бар гирад`;if(X.format==="regex")return`Сатри нодуруст: бояд ба намунаи ${X.pattern} мувофиқат кунад`;return`${J[X.format]??U.format}-и нодуруст`}case"not_multiple_of":return`Рақами нодуруст: бояд ба ${U.divisor} бе бақия тақсим шавад`;case"unrecognized_keys":return`Калид${U.keys.length>1?"ҳои":"и"} номаълум: ${P(U.keys,", ")}`;case"invalid_key":return`Калиди нодуруст дар ${U.origin}`;case"invalid_union":if(U.options&&Array.isArray(U.options)&&U.options.length>0)return`Қимати нодурусти дискриминатор: ${U.options.map((Y)=>`'${Y}'`).join(" | ")} интизор мерафт`;return"Вуруди нодуруст";case"invalid_element":return`Қимати нодуруст дар ${U.origin}`;default:return"Вуруди нодуруст"}}};var bk=S(()=>{s()});function hz(){return{localeError:u3D()}}var u3D=()=>{let D={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"},map:{unit:"รายการ",verb:"ควรมี"}};function $(U){return D[U]??null}let J={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",mac:"ที่อยู่ MAC",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",credit_card:"หมายเลขบัตรเครดิต",currency_code:"รหัสสกุลเงิน",iban:"IBAN",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},F={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${U.expected} แต่ได้รับ ${Q}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${X} แต่ได้รับ ${Q}`}case"invalid_value":if(U.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${m(U.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"ไม่เกิน":"น้อยกว่า",Y=$(U.origin);if(Y)return`เกินกำหนด: ${U.origin??"ค่า"} ควรมี${X} ${U.maximum.toString()} ${Y.unit??"รายการ"}`;return`เกินกำหนด: ${U.origin??"ค่า"} ควรมี${X} ${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?"อย่างน้อย":"มากกว่า",Y=$(U.origin);if(Y)return`น้อยกว่ากำหนด: ${U.origin} ควรมี${X} ${U.minimum.toString()} ${Y.unit}`;return`น้อยกว่ากำหนด: ${U.origin} ควรมี${X} ${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${X.prefix}"`;if(X.format==="ends_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${X.suffix}"`;if(X.format==="includes")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${X.includes}" อยู่ในข้อความ`;if(X.format==="regex")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${X.pattern}`;return`รูปแบบไม่ถูกต้อง: ${J[X.format]??U.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${U.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${P(U.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${U.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${U.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};var Pk=S(()=>{s()});function mz(){return{localeError:g3D()}}var g3D=()=>{let D={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"baýt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function $(U){return D[U]??null}let J={regex:"giriş",email:"e-poçta salgysy",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen şifrlenen setir",base64url:"base64url bilen şifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartynyň nomeri",currency_code:"walýuta kody",iban:"IBAN",jwt:"JWT",template_literal:"şablon"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;return`Nädogry baha: garaşylan ${X} ýerine ${Q} alyndy`}case"invalid_value":if(U.values.length===1)return`Nädogry baha: ${m(U.values[0])} bolmaly`;return`Nädogry saýlaw: aşakdakylardan biri bolmaly: ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Has uly: garaşylýan ${U.origin??"baha"} ${X} ${U.maximum.toString()} ${Y.unit??"element"}`;return`Has uly: garaşylýan ${U.origin??"baha"} ${X} ${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Has kiçi: garaşylýan ${U.origin} ${X} ${U.minimum.toString()} ${Y.unit}`;return`Has kiçi: garaşylýan ${U.origin} ${X} ${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Nädogry setir: "${X.prefix}" bilen başlamaly`;if(X.format==="ends_with")return`Nädogry setir: "${X.suffix}" bilen gutarmaly`;if(X.format==="includes")return`Nädogry setir: "${X.includes}" saklamaly`;if(X.format==="regex")return`Nädogry setir: ${X.pattern} nusga laýyk bolmaly`;return`Nädogry ${J[X.format]??U.format}`}case"not_multiple_of":return`Nädogry san: ${U.divisor} bilen galyndysyz bölünmeli`;case"unrecognized_keys":return`Tanalmaýan açar${U.keys.length>1?"lar":""}: ${P(U.keys,", ")}`;case"invalid_key":return`${U.origin} içinde nädogry açar`;case"invalid_union":return"Nädogry baha";case"invalid_element":return`${U.origin} içinde nädogry baha`;default:return"Nädogry baha"}}};var Sk=S(()=>{s()});function lz(){return{localeError:f3D()}}var f3D=()=>{let D={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"},map:{unit:"öğe",verb:"olmalı"}};function $(U){return D[U]??null}let J={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",mac:"MAC adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",credit_card:"kredi kartı numarası",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"Şablon dizesi"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Geçersiz değer: beklenen instanceof ${U.expected}, alınan ${Q}`;return`Geçersiz değer: beklenen ${X}, alınan ${Q}`}case"invalid_value":if(U.values.length===1)return`Geçersiz değer: beklenen ${m(U.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Çok büyük: beklenen ${U.origin??"değer"} ${X}${U.maximum.toString()} ${Y.unit??"öğe"}`;return`Çok büyük: beklenen ${U.origin??"değer"} ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Çok küçük: beklenen ${U.origin} ${X}${U.minimum.toString()} ${Y.unit}`;return`Çok küçük: beklenen ${U.origin} ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Geçersiz metin: "${X.prefix}" ile başlamalı`;if(X.format==="ends_with")return`Geçersiz metin: "${X.suffix}" ile bitmeli`;if(X.format==="includes")return`Geçersiz metin: "${X.includes}" içermeli`;if(X.format==="regex")return`Geçersiz metin: ${X.pattern} desenine uymalı`;return`Geçersiz ${J[X.format]??U.format}`}case"not_multiple_of":return`Geçersiz sayı: ${U.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${U.keys.length>1?"lar":""}: ${P(U.keys,", ")}`;case"invalid_key":return`${U.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${U.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};var _k=S(()=>{s()});function z5(){return{localeError:x3D()}}var x3D=()=>{let D={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"},map:{unit:"елементів",verb:"матиме"}};function $(U){return D[U]??null}let J={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",mac:"адреса MAC",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",credit_card:"номер кредитної картки",currency_code:"код валюти",iban:"IBAN",jwt:"JWT",template_literal:"вхідні дані"},F={nan:"NaN",number:"число",array:"масив"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Неправильні вхідні дані: очікується instanceof ${U.expected}, отримано ${Q}`;return`Неправильні вхідні дані: очікується ${X}, отримано ${Q}`}case"invalid_value":if(U.values.length===1)return`Неправильні вхідні дані: очікується ${m(U.values[0])}`;return`Неправильна опція: очікується одне з ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Занадто велике: очікується, що ${U.origin??"значення"} ${Y.verb} ${X}${U.maximum.toString()} ${Y.unit??"елементів"}`;return`Занадто велике: очікується, що ${U.origin??"значення"} буде ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Занадто мале: очікується, що ${U.origin} ${Y.verb} ${X}${U.minimum.toString()} ${Y.unit}`;return`Занадто мале: очікується, що ${U.origin} буде ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Неправильний рядок: повинен починатися з "${X.prefix}"`;if(X.format==="ends_with")return`Неправильний рядок: повинен закінчуватися на "${X.suffix}"`;if(X.format==="includes")return`Неправильний рядок: повинен містити "${X.includes}"`;if(X.format==="regex")return`Неправильний рядок: повинен відповідати шаблону ${X.pattern}`;return`Неправильний ${J[X.format]??U.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${U.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${U.keys.length>1?"і":""}: ${P(U.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${U.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${U.origin}`;default:return"Неправильні вхідні дані"}}};var iz=S(()=>{s()});function dz(){return z5()}var kk=S(()=>{iz()});function cz(){return{localeError:y3D()}}var y3D=()=>{let D={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"},map:{unit:"آئٹمز",verb:"ہونا"}};function $(U){return D[U]??null}let J={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",mac:"ایم اے سی ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",credit_card:"کریڈٹ کارڈ نمبر",currency_code:"کرنسی کوڈ",iban:"IBAN",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},F={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`غلط ان پٹ: instanceof ${U.expected} متوقع تھا، ${Q} موصول ہوا`;return`غلط ان پٹ: ${X} متوقع تھا، ${Q} موصول ہوا`}case"invalid_value":if(U.values.length===1)return`غلط ان پٹ: ${m(U.values[0])} متوقع تھا`;return`غلط آپشن: ${P(U.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`بہت بڑا: ${U.origin??"ویلیو"} کے ${X}${U.maximum.toString()} ${Y.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${U.origin??"ویلیو"} کا ${X}${U.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`بہت چھوٹا: ${U.origin} کے ${X}${U.minimum.toString()} ${Y.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${U.origin} کا ${X}${U.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`غلط سٹرنگ: "${X.prefix}" سے شروع ہونا چاہیے`;if(X.format==="ends_with")return`غلط سٹرنگ: "${X.suffix}" پر ختم ہونا چاہیے`;if(X.format==="includes")return`غلط سٹرنگ: "${X.includes}" شامل ہونا چاہیے`;if(X.format==="regex")return`غلط سٹرنگ: پیٹرن ${X.pattern} سے میچ ہونا چاہیے`;return`غلط ${J[X.format]??U.format}`}case"not_multiple_of":return`غلط نمبر: ${U.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${U.keys.length>1?"ز":""}: ${P(U.keys,"، ")}`;case"invalid_key":return`${U.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${U.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};var Ck=S(()=>{s()});function nz(){return{localeError:h3D()}}var h3D=()=>{let D={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function $(U){return D[U]??null}let J={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",credit_card:"kredit karta raqami",currency_code:"valyuta kodi",iban:"IBAN",jwt:"JWT",template_literal:"kirish"},F={nan:"NaN",number:"raqam",array:"massiv"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${U.expected}, qabul qilingan ${Q}`;return`Noto‘g‘ri kirish: kutilgan ${X}, qabul qilingan ${Q}`}case"invalid_value":if(U.values.length===1)return`Noto‘g‘ri kirish: kutilgan ${m(U.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Juda katta: kutilgan ${U.origin??"qiymat"} ${X}${U.maximum.toString()} ${Y.unit} ${Y.verb}`;return`Juda katta: kutilgan ${U.origin??"qiymat"} ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Juda kichik: kutilgan ${U.origin} ${X}${U.minimum.toString()} ${Y.unit} ${Y.verb}`;return`Juda kichik: kutilgan ${U.origin} ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Noto‘g‘ri satr: "${X.prefix}" bilan boshlanishi kerak`;if(X.format==="ends_with")return`Noto‘g‘ri satr: "${X.suffix}" bilan tugashi kerak`;if(X.format==="includes")return`Noto‘g‘ri satr: "${X.includes}" ni o‘z ichiga olishi kerak`;if(X.format==="regex")return`Noto‘g‘ri satr: ${X.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${J[X.format]??U.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${U.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${U.keys.length>1?"lar":""}: ${P(U.keys,", ")}`;case"invalid_key":return`${U.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${U.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};var uk=S(()=>{s()});function pz(){return{localeError:m3D()}}var m3D=()=>{let D={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"},map:{unit:"phần tử",verb:"có"}};function $(U){return D[U]??null}let J={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",mac:"địa chỉ MAC",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",credit_card:"số thẻ tín dụng",currency_code:"mã tiền tệ",iban:"IBAN",jwt:"JWT",template_literal:"đầu vào"},F={nan:"NaN",number:"số",array:"mảng"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Đầu vào không hợp lệ: mong đợi instanceof ${U.expected}, nhận được ${Q}`;return`Đầu vào không hợp lệ: mong đợi ${X}, nhận được ${Q}`}case"invalid_value":if(U.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${m(U.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Quá lớn: mong đợi ${U.origin??"giá trị"} ${Y.verb} ${X}${U.maximum.toString()} ${Y.unit??"phần tử"}`;return`Quá lớn: mong đợi ${U.origin??"giá trị"} ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Quá nhỏ: mong đợi ${U.origin} ${Y.verb} ${X}${U.minimum.toString()} ${Y.unit}`;return`Quá nhỏ: mong đợi ${U.origin} ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Chuỗi không hợp lệ: phải bắt đầu bằng "${X.prefix}"`;if(X.format==="ends_with")return`Chuỗi không hợp lệ: phải kết thúc bằng "${X.suffix}"`;if(X.format==="includes")return`Chuỗi không hợp lệ: phải bao gồm "${X.includes}"`;if(X.format==="regex")return`Chuỗi không hợp lệ: phải khớp với mẫu ${X.pattern}`;return`${J[X.format]??U.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${U.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${P(U.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${U.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${U.origin}`;default:return"Đầu vào không hợp lệ"}}};var gk=S(()=>{s()});function rz(){return{localeError:l3D()}}var l3D=()=>{let D={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"},map:{unit:"项",verb:"包含"}};function $(U){return D[U]??null}let J={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",mac:"MAC地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",credit_card:"信用卡号",currency_code:"货币代码",iban:"IBAN",jwt:"JWT",template_literal:"输入"},F={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`无效输入:期望 instanceof ${U.expected},实际接收 ${Q}`;return`无效输入:期望 ${X},实际接收 ${Q}`}case"invalid_value":if(U.values.length===1)return`无效输入:期望 ${m(U.values[0])}`;return`无效选项:期望以下之一 ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`数值过大:期望 ${U.origin??"值"} ${X}${U.maximum.toString()} ${Y.unit??"个元素"}`;return`数值过大:期望 ${U.origin??"值"} ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`数值过小:期望 ${U.origin} ${X}${U.minimum.toString()} ${Y.unit}`;return`数值过小:期望 ${U.origin} ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`无效字符串:必须以 "${X.prefix}" 开头`;if(X.format==="ends_with")return`无效字符串:必须以 "${X.suffix}" 结尾`;if(X.format==="includes")return`无效字符串:必须包含 "${X.includes}"`;if(X.format==="regex")return`无效字符串:必须满足正则表达式 ${X.pattern}`;return`无效${J[X.format]??U.format}`}case"not_multiple_of":return`无效数字:必须是 ${U.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${P(U.keys,", ")}`;case"invalid_key":return`${U.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${U.origin} 中包含无效值(value)`;default:return"无效输入"}}};var fk=S(()=>{s()});function tz(){return{localeError:i3D()}}var i3D=()=>{let D={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"},map:{unit:"項目",verb:"擁有"}};function $(U){return D[U]??null}let J={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",mac:"MAC 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",credit_card:"信用卡號",currency_code:"貨幣代碼",iban:"IBAN",jwt:"JWT",template_literal:"輸入"},F={nan:"NaN"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`無效的輸入值:預期為 instanceof ${U.expected},但收到 ${Q}`;return`無效的輸入值:預期為 ${X},但收到 ${Q}`}case"invalid_value":if(U.values.length===1)return`無效的輸入值:預期為 ${m(U.values[0])}`;return`無效的選項:預期為以下其中之一 ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`數值過大:預期 ${U.origin??"值"} 應為 ${X}${U.maximum.toString()} ${Y.unit??"個元素"}`;return`數值過大:預期 ${U.origin??"值"} 應為 ${X}${U.maximum.toString()}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`數值過小:預期 ${U.origin} 應為 ${X}${U.minimum.toString()} ${Y.unit}`;return`數值過小:預期 ${U.origin} 應為 ${X}${U.minimum.toString()}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`無效的字串:必須以 "${X.prefix}" 開頭`;if(X.format==="ends_with")return`無效的字串:必須以 "${X.suffix}" 結尾`;if(X.format==="includes")return`無效的字串:必須包含 "${X.includes}"`;if(X.format==="regex")return`無效的字串:必須符合格式 ${X.pattern}`;return`無效的 ${J[X.format]??U.format}`}case"not_multiple_of":return`無效的數字:必須為 ${U.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${U.keys.length>1?"們":""}:${P(U.keys,"、")}`;case"invalid_key":return`${U.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${U.origin} 中有無效的值`;default:return"無效的輸入值"}}};var xk=S(()=>{s()});function oz(){return{localeError:d3D()}}var d3D=()=>{let D={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"},map:{unit:"nkan",verb:"ní"}};function $(U){return D[U]??null}let J={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",mac:"àdírẹ́sì MAC",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",credit_card:"nọmba kaadi gbese",currency_code:"koodu owó",iban:"IBAN",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},F={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return(U)=>{switch(U.code){case"invalid_type":{let X=F[U.expected]??U.expected,Y=l(U.input),Q=F[Y]??Y;if(/^[A-Z]/.test(U.expected))return`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${U.expected}, àmọ̀ a rí ${Q}`;return`Ìbáwọlé aṣìṣe: a ní láti fi ${X}, àmọ̀ a rí ${Q}`}case"invalid_value":if(U.values.length===1)return`Ìbáwọlé aṣìṣe: a ní láti fi ${m(U.values[0])}`;return`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${P(U.values,"|")}`;case"too_big":{let X=U.inclusive?"<=":"<",Y=$(U.origin);if(Y)return`Tó pọ̀ jù: a ní láti jẹ́ pé ${U.origin??"iye"} ${Y.verb} ${X}${U.maximum} ${Y.unit}`;return`Tó pọ̀ jù: a ní láti jẹ́ ${X}${U.maximum}`}case"too_small":{let X=U.inclusive?">=":">",Y=$(U.origin);if(Y)return`Kéré ju: a ní láti jẹ́ pé ${U.origin} ${Y.verb} ${X}${U.minimum} ${Y.unit}`;return`Kéré ju: a ní láti jẹ́ ${X}${U.minimum}`}case"invalid_format":{let X=U;if(X.format==="starts_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${X.prefix}"`;if(X.format==="ends_with")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${X.suffix}"`;if(X.format==="includes")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${X.includes}"`;if(X.format==="regex")return`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${X.pattern}`;return`Aṣìṣe: ${J[X.format]??U.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${U.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${P(U.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${U.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${U.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};var yk=S(()=>{s()});var Z5={};M$(Z5,{zhTW:()=>tz,zhCN:()=>rz,yo:()=>oz,vi:()=>pz,uz:()=>nz,ur:()=>cz,uk:()=>z5,ua:()=>dz,tr:()=>lz,tk:()=>mz,th:()=>hz,tg:()=>yz,ta:()=>xz,sv:()=>fz,sl:()=>gz,sk:()=>uz,ru:()=>Cz,ro:()=>kz,ptBR:()=>_z,pt:()=>Sz,ps:()=>bz,pl:()=>Pz,ota:()=>Tz,no:()=>vz,nn:()=>Az,nl:()=>Ez,ne:()=>Mz,ms:()=>Rz,mk:()=>wz,lt:()=>Lz,ko:()=>Vz,kn:()=>Nz,km:()=>G5,kh:()=>jz,ka:()=>Bz,ja:()=>Hz,it:()=>Zz,is:()=>zz,id:()=>Iz,hy:()=>Gz,hu:()=>Wz,hr:()=>Kz,hi:()=>qz,he:()=>Qz,gu:()=>Yz,frCA:()=>Xz,fr:()=>Uz,fi:()=>Fz,fa:()=>Jz,es:()=>$z,eo:()=>Dz,en:()=>W5,el:()=>sI,de:()=>aI,da:()=>oI,cs:()=>tI,ckb:()=>rI,ca:()=>pI,bn:()=>nI,bg:()=>cI,be:()=>dI,az:()=>iI,ar:()=>lI});var az=S(()=>{P_();S_();k_();C_();u_();g_();f_();x_();y_();h_();m_();eI();l_();i_();d_();c_();n_();p_();r_();t_();o_();a_();s_();Dk();$k();Jk();Fk();Uk();Xk();Yk();Oz();Qk();qk();Wk();Gk();Ik();zk();Zk();Hk();Bk();Ok();jk();Nk();Vk();Lk();wk();Mk();Ek();Ak();vk();Tk();bk();Pk();Sk();_k();kk();iz();Ck();uk();gk();fk();xk();yk()});class DZ{constructor(){this._map=new WeakMap,this._idmap=new Map}add(D,...$){let J=$[0];if(this._map.set(D,J),J&&typeof J==="object"&&"id"in J)this._idmap.set(J.id,D);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(D){let $=this._map.get(D);if($&&typeof $==="object"&&"id"in $)this._idmap.delete($.id);return this._map.delete(D),this}get(D){let $=D._zod.parent;if($){let J={...this.get($)??{}};delete J.id;let F={...J,...this._map.get(D)};return Object.keys(F).length?F:void 0}return this._map.get(D)}has(D){return this._map.has(D)}}function zU(){return new DZ}var hk,sz,ez,C$;var H5=S(()=>{sz=Symbol("ZodOutput"),ez=Symbol("ZodInput");(hk=globalThis).__zod_globalRegistry??(hk.__zod_globalRegistry=zU());C$=globalThis.__zod_globalRegistry});function n3D(D,$){try{return HU(D,{assertOnly:!0})}catch{return $}}function UZ(D,$){try{let J=HU(D),F=ZU(D,J);return F._zod.bag.validator=n3D(D,J),F}catch(J){if($?.strict)throw J;return D}}function ZU(D,$){if(GU(D))throw new TD("a schema whose subtree contains a reference cycle");let J=xD(D),F=D._zod.run,U=F.__originalRun??F,X=(Y,Q)=>{if(Q?.async||Q?.direction==="backward"||Q?.skipChecks||Q?.[mk])return U(Y,Q);if(Q&&IU(Q,Y.value))return U(Y,Q);let q=$(Y.value);if(q!==J0)return Y.value=q,Y;if(Q)Q[mk]=!0;return U(Y,Q)};if(X.__originalRun=U,J._zod.bag.fallbackRun=U,J._zod.bag.validator=$,J._zod.run=X,!F.__originalRun)p3D(J,D,$);return J}function p3D(D,$,J){let F=D,U=$;if(typeof U.safeParse==="function"){let X=U.safeParse;F.safeParse=(Y,Q)=>{let q=J(Y);if(q!==J0)return{success:!0,data:q};return X(Y,Q)}}if(typeof U.parse==="function"){let X=U.parse;F.parse=(Y,Q)=>{let q=J(Y);if(q!==J0)return q;return X(Y,Q)}}}function HU(D,$){let J=!0;try{J=GU(D)}catch{}if(J)throw new TD("a schema whose subtree contains a reference cycle");let F={constants:new Map,constantCounter:0,varCounter:0,definite:!0},U=new u8(["input"]),X=J$(U,F,D,"input",!$?.assertOnly);U.write(X===null?"return true;":`return ${X};`);let Y=["INVALID",...F.constants.keys()],Q=[J0,...F.constants.values()],q=U.content.join(`
`),K=$?.debug?Y.length>0?`// Constants: ${Y.join(", ")}
${q}`:q:"",W=Function,G=`return (input) => {
${q}
}`,I;try{I=new W(...Y,G)(...Q)}catch(z){throw new TD(`this schema (generated code failed to evaluate: ${z.message})`)}if($?.debug)I.code=K;return I.definite=F.definite,I}function GD(D,$){for(let[F,U]of D.constants)if(U===$)return F;let J=`c${D.constantCounter++}`;return D.constants.set(J,$),J}function l4(D,$){return D.definite=!1,GD(D,$)}function KD(D){return`v${D.varCounter++}`}function r3D(D,$){let J=D._zod.run({value:$,issues:[]},{});if(J&&typeof J.then==="function")return J0;let F=J;return F.issues.length===0?F.value:J0}function i$(D,$,J,F,U=!0){let X=D.content.length,Y=$.constants.size,Q=$.constantCounter,q=$.varCounter;try{return J$(D,$,J,F,U)}catch(K){if(!(K instanceof TD)||!K.islandable)throw K;if(D.content.length=X,$.constants.size>Y){let W=Array.from($.constants.keys()).slice(Y);for(let G of W)$.constants.delete(G)}return $.constantCounter=Q,$.varCounter=q,t3D(D,$,J,F)}}function t3D(D,$,J,F){$.definite=!1;let U=GD($,J),X=GD($,r3D),Y=KD($);return D.write(`const ${Y} = ${X}(${U}, ${F});`),D.write(`if (${Y} === INVALID) return INVALID;`),Y}function a3D(D,$,J,F){let U=J._zod.def.checks;if(!U||U.length===0)return F;let X=F;for(let Y of U){let Q=Y._zod.def;if(Q.when&&!o3D.has(Q.check))throw new TD('check with a custom "when" condition');switch(Q.check){case"greater_than":s3D(D,$,Q,X);break;case"less_than":e3D(D,$,Q,X);break;case"multiple_of":D9D(D,$,Q,X);break;case"number_format":pk(D,Q,X);break;case"min_length":{let q=h4(Q.minimum,"min_length"),K=$Z(D,$,X,`${X}.length >= ${q} && ${X}.length < ${Q.minimum*2}`);D.write(`if (${K} < ${q}) return INVALID;`);break}case"max_length":{let q=h4(Q.maximum,"max_length"),K=$Z(D,$,X,`${X}.length > ${q}`);D.write(`if (${K} > ${q}) return INVALID;`);break}case"length_equals":{let q=h4(Q.length,"length_equals"),K=$Z(D,$,X,`${X}.length >= ${q} && ${X}.length <= ${Q.length*2}`);D.write(`if (${K} !== ${q}) return INVALID;`);break}case"min_size":D.write(`if (${X}.size < ${h4(Q.minimum,"min_size")}) return INVALID;`);break;case"max_size":D.write(`if (${X}.size > ${h4(Q.maximum,"max_size")}) return INVALID;`);break;case"size_equals":D.write(`if (${X}.size !== ${h4(Q.size,"size_equals")}) return INVALID;`);break;case"string_format":X=rk(D,$,Q,X);break;case"custom":X=Y9D(D,$,Y,X);break;case"bigint_format":$9D(D,Q,X);break;case"mime_type":J9D(D,$,Q,X);break;case"property":U9D(D,$,Q,X);break;case"properties":F9D(D,$,Q,X);break;case"overwrite":{let q=KD($);X9D(D,$,Y,X,q),X=q;break}default:throw new TD(`check type ${Q.check}`)}}return X}function $Z(D,$,J,F){let U=GD($,u4),X=KD($);return D.write(`const ${X} = typeof ${J} === "string" && ${F} ? ${U}(${J}) : ${J}.length;`),X}function h4(D,$){if(typeof D!=="number"||!Number.isFinite(D))throw new TD(`${$} bound of type ${typeof D}`);return`${D}`}function nk(D,$){if(typeof $==="bigint")return`${$}n`;if(typeof $==="number"){if(Number.isNaN($))throw new TD("comparison check with NaN bound");return`${$}`}if($ instanceof Date){if(Number.isNaN($.getTime()))throw new TD("comparison check with Invalid Date bound");return GD(D,$)}throw new TD(`comparison check bound of type ${typeof $}`)}function s3D(D,$,J,F){let U=J.inclusive?"<":"<=";D.write(`if (${F} ${U} ${nk($,J.value)}) return INVALID;`)}function e3D(D,$,J,F){let U=J.inclusive?">":">=";D.write(`if (${F} ${U} ${nk($,J.value)}) return INVALID;`)}function D9D(D,$,J,F){if(typeof J.value==="bigint"){if(J.value===BigInt(0))throw new TD("multiple_of check with a zero divisor");D.write(`if (${F} % ${J.value}n !== 0n) return INVALID;`)}else{let U=GD($,g9);D.write(`if (${U}(${F}, ${h4(J.value,"multiple_of")}) !== 0) return INVALID;`)}}function pk(D,$,J){let F=$.format;switch(F){case"safeint":D.write(`if (!Number.isSafeInteger(${J})) return INVALID;`);break;case"int32":D.write(`if (!Number.isInteger(${J}) || ${J} < -2147483648 || ${J} > 2147483647) return INVALID;`);break;case"uint32":D.write(`if (!Number.isInteger(${J}) || ${J} < 0 || ${J} > 4294967295) return INVALID;`);break;case"float32":D.write(`if (!Number.isFinite(${J}) || ${J} < -3.4028234663852886e38 || ${J} > 3.4028234663852886e38) return INVALID;`);break;case"float64":D.write(`if (!Number.isFinite(${J})) return INVALID;`);break;default:throw new TD(`number format ${F}`)}}function $9D(D,$,J){let F=$.format;if(!F)return;switch(F){case"int64":D.write(`if (${J} < -9223372036854775808n || ${J} > 9223372036854775807n) return INVALID;`);break;case"uint64":D.write(`if (${J} < 0n || ${J} > 18446744073709551615n) return INVALID;`);break;default:throw new TD(`bigint format ${F}`)}}function J9D(D,$,J,F){let U=J.mime;if(U&&U.length>0){let X=GD($,new Set(U));D.write(`if (!${X}.has(${F}.type)) return INVALID;`)}}function F9D(D,$,J,F){if(J.when)throw new TD('check with a custom "when" condition');D.write(`if (${F} == null) return INVALID;`);let U=J.shape;for(let X of Reflect.ownKeys(U)){let Y=typeof X==="symbol"?GD($,X):D0(X),Q=KD($);D.write(`const ${Q} = ${F}[${Y}];`),i$(D,$,U[X],Q,!1)}}function U9D(D,$,J,F){let U=`${F}[${JSON.stringify(J.property)}]`;J$(D,$,J.schema,U)}function X9D(D,$,J,F,U){let X=J._zod.def.tx;if(!X)throw new TD("overwrite check without a transform function");if(i4(X))throw new j6("z.compile: async overwrite transforms are not supported");let Y=GD($,X);D.write(`const ${U} = ${Y}(${F});`)}function JZ(){throw new R0}function XZ(D){this.issues.push(D)}function Y9D(D,$,J,F){let U=J._zod.def;if(U.fn){if(i4(U.fn))throw new j6("z.compile: async .refine() predicates are not supported");let X=l4($,U.fn),Y=GD($,JZ),Q=KD($);return D.write(`const ${Q} = ${X}(${F});`),D.write(`if (${Q} instanceof Promise) ${Y}();`),D.write(`if (!${Q}) return INVALID;`),F}if(J._zod.check){if(i4(J._zod.check))throw new j6("z.compile: async .superRefine() / check functions are not supported");let X=J._zod.check,Q=l4($,(K)=>{let W={value:K,issues:[],addIssue:XZ};if(X(W)instanceof Promise)JZ();return W.issues.length===0?W.value:J0}),q=KD($);return D.write(`const ${q} = ${Q}(${F});`),D.write(`if (${q} === INVALID) return INVALID;`),q}throw new TD("custom check without a predicate or check function")}function rk(D,$,J,F,U=!0){let X=J.format;if(X==="base64"){let K=GD($,$5);return D.write(`if (!${K}(${F})) return INVALID;`),F}if(X==="base64url"){let K=GD($,eF);return D.write(`if (!${K}(${F})) return INVALID;`),F}if(X==="jwt"){let K=GD($,JU),W=GD($,J.alg??null);return D.write(`if (!${K}(${F}, ${W})) return INVALID;`),F}if(X==="ipv6"){let K=GD($,D5);return D.write(`if (!${K}(${F})) return INVALID;`),F}if(X==="cidrv6"){let K=GD($,aF);return D.write(`if (!${K}(${F})) return INVALID;`),F}if(X==="credit_card"){let K=GD($,DU);return D.write(`if (!${K}(${F})) return INVALID;`),F}if(X==="iban"){let K=GD($,$U);return D.write(`if (!${K}(${F})) return INVALID;`),F}let Y=J;if(X==="url"||X==="httpurl"||Y.normalize||Y.hostname!==void 0||Y.protocol!==void 0){let K=GD($,rF),W=GD($,J),G=KD($),I=KD($);if(D.write(`const ${G} = ${F}.trim();`),D.write(`const ${I} = ${K}(${G}, ${W});`),D.write(`if (typeof ${I} === "number") return INVALID;`),Y.hostname!==void 0){let H=GD($,tF);D.write(`if (!${H}(${I}, ${W}.hostname)) return INVALID;`)}if(Y.protocol!==void 0){let H=GD($,oF);D.write(`if (!${H}(${I}, ${W}.protocol)) return INVALID;`)}if(!U)return null;let z=KD($),Z=Y.normalize?`${I}.href`:`${GD($,e9)}(${G})`;return D.write(`const ${z} = ${Z};`),z}let Q=J.fn;if(Q){if(i4(Q))throw new TD(`async string format ${X}`);let K=GD($,Q);return D.write(`if (!${K}(${F})) return INVALID;`),F}if(Q9D.has(X)&&J.pattern){let K=GD($,J.pattern);return D.write(`${K}.lastIndex = 0;`),D.write(`if (!${K}.test(${F})) return INVALID;`),F}let q=J.format;switch(q){case"regex":throw new TD("regex format without a pattern");case"lowercase":D.write(`if (${F} !== ${F}.toLowerCase()) return INVALID;`);break;case"uppercase":D.write(`if (${F} !== ${F}.toUpperCase()) return INVALID;`);break;case"includes":D.write(`if (!${F}.includes(${D0(J.includes)})) return INVALID;`);break;case"starts_with":{let K=J.prefix;D.write(`if (${F}.slice(0, ${K.length}) !== ${D0(K)}) return INVALID;`);break}case"ends_with":{let K=J.suffix;D.write(`if (${F}.slice(-${K.length}) !== ${D0(K)}) return INVALID;`);break}default:throw new TD(`string format ${q}`)}return F}function J$(D,$,J,F,U=!0){let X=J._zod.def,Y=X.type;if(X.coerce)throw new TD(`coercion (z.coerce.${Y}())`);let Q=U||!!X.checks?.length,q;switch(Y){case"string":q=q9D(D,$,J,F,Q);break;case"number":q=K9D(D,J,F);break;case"boolean":q=W9D(D,F);break;case"bigint":q=G9D(D,J,F);break;case"symbol":q=I9D(D,F);break;case"undefined":q=z9D(D,F);break;case"null":q=Z9D(D,F);break;case"any":case"unknown":q=F;break;case"never":D.write("return INVALID;"),q=F;break;case"void":q=H9D(D,F);break;case"nan":q=B9D(D,F);break;case"date":q=O9D(D,F);break;case"object":q=j9D(D,$,J,F,Q);break;case"optional":q=N9D(D,$,J,F,Q);break;case"nullable":q=w9D(D,$,J,F,Q);break;case"array":q=R9D(D,$,J,F,Q);break;case"literal":q=M9D(D,$,J,F);break;case"enum":q=E9D(D,$,J,F);break;case"readonly":{let K=ik(D,$,J,F),W=KD($);D.write(`const ${W} = Object.freeze(${K});`),q=W;break}case"success":ik(D,$,J,F),q="true";break;case"default":case"prefault":q=A9D(D,$,J,F);break;case"nonoptional":q=v9D(D,$,J,F);break;case"tuple":q=T9D(D,$,J,F);break;case"union":q=b9D(D,$,J,F);break;case"intersection":q=_9D(D,$,J,F);break;case"record":q=k9D(D,$,J,F);break;case"map":q=u9D(D,$,J,F);break;case"set":q=g9D(D,$,J,F);break;case"file":q=f9D(D,F);break;case"template_literal":q=x9D(D,$,J,F);break;case"lazy":q=y9D(D,$,J,F);break;case"pipe":q=h9D(D,$,J,F);break;case"custom":q=m9D(D,$,J,F);break;case"transform":q=d9D(D,$,J,F);break;case"catch":q=i9D(D,$,J,F);break;default:throw new TD(`schema type ${Y}`)}if(q===null)return null;return a3D(D,$,J,q)}function q9D(D,$,J,F,U=!0){D.write(`if (typeof ${F} !== "string") return INVALID;`);let X=J._zod.def;if(X.format===void 0)return F;return rk(D,$,X,F,U)}function K9D(D,$,J){D.write(`if (typeof ${J} !== "number" || !Number.isFinite(${J})) return INVALID;`);let F=$._zod.def;if(F.check==="number_format"&&F.format)pk(D,{format:F.format},J);return J}function W9D(D,$){return D.write(`if (typeof ${$} !== "boolean") return INVALID;`),$}function G9D(D,$,J){D.write(`if (typeof ${J} !== "bigint") return INVALID;`);let F=$._zod.def;if(F.format)switch(F.format){case"int64":D.write(`if (${J} < -9223372036854775808n || ${J} > 9223372036854775807n) return INVALID;`);break;case"uint64":D.write(`if (${J} < 0n || ${J} > 18446744073709551615n) return INVALID;`);break}return J}function I9D(D,$){return D.write(`if (typeof ${$} !== "symbol") return INVALID;`),$}function z9D(D,$){return D.write(`if (${$} !== undefined) return INVALID;`),$}function Z9D(D,$){return D.write(`if (${$} !== null) return INVALID;`),$}function H9D(D,$){return D.write(`if (${$} !== undefined) return INVALID;`),$}function B9D(D,$){return D.write(`if (typeof ${$} !== "number" || !Number.isNaN(${$})) return INVALID;`),$}function O9D(D,$){return D.write(`if (!(${$} instanceof Date) || Number.isNaN(${$}.getTime())) return INVALID;`),$}function j9D(D,$,J,F,U=!0){let X=J._zod.def;D.write(`if (typeof ${F} !== "object" || ${F} === null || Array.isArray(${F})) return INVALID;`);let Y=X.shape,Q=Object.keys(Y),q=Object.getOwnPropertySymbols(Y),K=q.length?[...Q,...q]:Q,W=(N)=>typeof N==="symbol"?GD($,N):D0(N),G=(N)=>typeof N==="symbol"?`[${W(N)}]`:D0(N),I=Y;if(Q.includes("__proto__"))throw new TD('object shape key "__proto__"');let z=new Map;for(let N of K){let O=I[N],L=W(N),A=KD($);if(D.write(`const ${A} = ${F}[${L}];`),O._zod.optin!==void 0){let E=KD($);if(D.write(`let ${E} = (() => {`),D.indented((_)=>{let k=i$(_,$,O,A);_.write(`return ${k};`)}),D.write("})();"),O._zod.optout==="optional")D.write(`if (${E} === INVALID) {`),D.indented((_)=>{_.write(`if (${L} in ${F}) return INVALID;`),_.write(`${E} = undefined;`)}),D.write("}");else D.write(`if (${E} === INVALID) return INVALID;`);z.set(N,E)}else{if(L9D(O))D.write(`if (!(${L} in ${F})) return INVALID;`);let E=i$(D,$,O,A,U);if(E!==null)z.set(N,E)}}let Z=X.catchall,H="none";if(Z){let N=Z._zod.def.type;if(N==="never"){let O=Q.map((L)=>`k !== ${D0(L)}`).join(" && ")||"true";D.write(`for (const k in ${F}) {`),D.indented((L)=>{L.write(`if (${O}) return INVALID;`)}),D.write("}")}else if((N==="unknown"||N==="any")&&!Z._zod.def.checks?.length)H="passthrough";else H="schema"}let B=KD($),j=K.some((N)=>lk(I[N])||FZ(I[N]));if(!U){if(H==="schema"){let N=Q.length>0?GD($,new Set(Q)):null;D.write(`for (const k in ${F}) {`),D.indented((O)=>{if(O.write('if (k === "__proto__") continue;'),N)O.write(`if (${N}.has(k)) continue;`);let L=KD($);O.write(`const ${L} = ${F}[k];`),i$(O,$,Z,L,!1)}),D.write("}")}return null}if(!j){let N=K.map((O)=>`${G(O)}: ${z.get(O)}`).join(", ");D.write(`const ${B} = { ${N} };`)}else{D.write(`const ${B} = {};`);for(let N of K){let O=W(N),L=z.get(N);if(FZ(I[N]))D.write(`if (${O} in ${F}) ${B}[${O}] = ${L};`);else if(lk(I[N]))D.write(`if (${L} !== undefined || ${O} in ${F}) ${B}[${O}] = ${L};`);else D.write(`${B}[${O}] = ${L};`)}}if(H!=="none"){let N=Q.length>0?GD($,new Set(Q)):null;D.write(`for (const k in ${F}) {`),D.indented((O)=>{if(O.write('if (k === "__proto__") continue;'),N)O.write(`if (${N}.has(k)) continue;`);if(H==="passthrough")O.write(`${B}[k] = ${F}[k];`);else{let L=KD($);O.write(`const ${L} = ${F}[k];`);let A=i$(O,$,Z,L);O.write(`${B}[k] = ${A};`)}}),D.write("}")}return B}function N9D(D,$,J,F,U=!0){let X=J._zod.def;if(V9D(J))return J$(D,$,X.innerType,F,U);if(X.innerType._zod.optin==="defaulted"){let Q=KD($),q=KD($);return D.write(`let ${Q};`),D.write(`if (${F} === undefined) {`),D.indented((K)=>{K.write(`const ${q} = (() => {`),K.indented((W)=>{let G=J$(W,$,X.innerType,F);W.write(`return ${G};`)}),K.write("})();"),K.write(`if (${q} !== INVALID) ${Q} = ${q};`)}),D.write("} else {"),D.indented((K)=>{let W=J$(K,$,X.innerType,F);K.write(`${Q} = ${W};`)}),D.write("}"),Q}let Y=U?KD($):null;if(Y)D.write(`let ${Y};`);return D.write(`if (${F} !== undefined) {`),D.indented((Q)=>{let q=J$(Q,$,X.innerType,F,U);if(Y&&q!==null)Q.write(`${Y} = ${q};`)}),D.write("}"),Y}function V9D(D){return D._zod.traits?.has("$ZodExactOptional")===!0}function L9D(D){return D._zod.optin===void 0&&m4(D)}function m4(D){if(D._zod.def.coerce)return!0;let $=D._zod.def;switch($.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return $.innerType?m4($.innerType):!1;case"literal":return!!$.values?.includes(void 0);case"enum":return!!D._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return $.innerType?m4($.innerType):!0;case"catch":return!0;case"union":return $.options?$.options.some(m4):!0;case"intersection":if(!$.left||!$.right)return!0;return m4($.left)&&m4($.right);case"pipe":return $.in?m4($.in):!0;default:return!0}}function FZ(D){return D._zod.optin==="optional"&&D._zod.optout==="optional"}function lk(D){return(D._zod.optin!=="defaulted"||D._zod.optout==="optional")&&h8(D)}function h8(D){let $=D._zod.def;switch($.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!$.values?.includes(void 0);case"enum":return!!D._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return $.innerType?h8($.innerType):!0;case"union":return $.options?$.options.some(h8):!0;case"intersection":return!$.left||!$.right||h8($.left)||h8($.right);case"pipe":return $.out?h8($.out):!0;default:return!0}}function w9D(D,$,J,F,U=!0){let X=J._zod.def,Y=U?KD($):null;if(Y)D.write(`let ${Y} = null;`);return D.write(`if (${F} !== null) {`),D.indented((Q)=>{let q=J$(Q,$,X.innerType,F,U);if(Y&&q!==null)Q.write(`${Y} = ${q};`)}),D.write("}"),Y}function R9D(D,$,J,F,U=!0){let X=J._zod.def;D.write(`if (!Array.isArray(${F})) return INVALID;`);let Y=U?KD($):null,Q=KD($),q=KD($);if(Y)D.write(`const ${Y} = new Array(${F}.length);`);return D.write(`for (let ${Q} = 0; ${Q} < ${F}.length; ${Q}++) {`),D.indented((K)=>{K.write(`const ${q} = ${F}[${Q}];`);let W=i$(K,$,X.element,q,U);if(Y&&W!==null)K.write(`${Y}[${Q}] = ${W};`)}),D.write("}"),Y}function M9D(D,$,J,F){let X=J._zod.def.values;if(X.length!==1){let Q=GD($,new Set(X));return D.write(`if (!${Q}.has(${F})) return INVALID;`),F}let Y=X[0];if(typeof Y==="number"&&Number.isNaN(Y)){let Q=GD($,new Set(X));return D.write(`if (!${Q}.has(${F})) return INVALID;`),F}if(typeof Y==="string")D.write(`if (${F} !== ${D0(Y)}) return INVALID;`);else if(typeof Y==="number"||typeof Y==="boolean")D.write(`if (${F} !== ${Y}) return INVALID;`);else if(Y===null)D.write(`if (${F} !== null) return INVALID;`);else if(Y===void 0)D.write(`if (${F} !== undefined) return INVALID;`);else if(typeof Y==="bigint")D.write(`if (${F} !== ${Y}n) return INVALID;`);else throw new TD(`literal type ${typeof Y}`);return F}function E9D(D,$,J,F){let U=J._zod.values;if(!U)throw new TD("enum schema without enumerated values");let X=GD($,U);return D.write(`if (!${X}.has(${F})) return INVALID;`),F}function ik(D,$,J,F){let U=J._zod.def;return J$(D,$,U.innerType,F)}function A9D(D,$,J,F){let U=J._zod.def,Y=Object.getOwnPropertyDescriptor(J._zod.def,"defaultValue")?()=>J._zod.def.defaultValue:void 0;if(J._zod.def.type==="prefault"){if(!Y)return J$(D,$,U.innerType,F);let q=GD($,Y),K=KD($);return D.write(`let ${K} = ${F};`),D.write(`if (${F} === undefined) ${K} = ${q}();`),J$(D,$,U.innerType,K)}let Q=KD($);if(Y){let q=GD($,Y),K=GD($,f9);D.write(`let ${Q};`),D.write(`if (${F} === undefined) {`),D.indented((W)=>{W.write(`${Q} = ${K}(${q}());`)}),D.write("} else {"),D.indented((W)=>{let G=J$(W,$,U.innerType,F);W.write(`${Q} = ${G} === undefined ? ${K}(${q}()) : ${G};`)}),D.write("}")}else D.write(`let ${Q};`),D.write(`if (${F} !== undefined) {`),D.indented((q)=>{let K=J$(q,$,U.innerType,F);q.write(`${Q} = ${K};`)}),D.write("}");return Q}function v9D(D,$,J,F){let U=J._zod.def,X=J$(D,$,U.innerType,F),Y=KD($);return D.write(`const ${Y} = ${X};`),D.write(`if (${Y} === undefined) return INVALID;`),Y}function T9D(D,$,J,F){let U=J._zod.def,X=U.items,Y=U.rest;D.write(`if (!Array.isArray(${F})) return INVALID;`);let Q=dk(X,"optin"),q=dk(X,"optout");if(Y)D.write(`if (${F}.length < ${Q}) return INVALID;`);else D.write(`if (${F}.length < ${Q} || ${F}.length > ${X.length}) return INVALID;`);let K=KD($);D.write(`const ${K} = [];`);for(let W=0;W<X.length;W++){let G=X[W];if(W>=q)D.write(`if (${K}.length === ${W}) {`),D.indented((I)=>{I.write(`if (${W} < ${F}.length) {`),I.indented((z)=>{let Z=KD($);z.write(`const ${Z} = ${F}[${W}];`);let H=i$(z,$,G,Z);z.write(`${K}[${W}] = ${H};`)}),I.write("} else {"),I.indented((z)=>{if(FZ(G)){z.write(`${K}.length = ${W};`);return}let Z=KD($),H=KD($);z.write(`const ${Z} = undefined;`),z.write(`const ${H} = (() => {`),z.indented((B)=>{let j=i$(B,$,G,Z);B.write(`return ${j};`)}),z.write("})();"),z.write(`if (${H} === INVALID || ${H} === undefined) ${K}.length = ${W};`),z.write(`else ${K}[${W}] = ${H};`)}),I.write("}")}),D.write("}");else{let I=KD($);D.write(`const ${I} = ${F}[${W}];`);let z=i$(D,$,G,I);D.write(`${K}[${W}] = ${z};`)}}if(Y){let W=KD($),G=KD($);D.write(`for (let ${W} = ${X.length}; ${W} < ${F}.length; ${W}++) {`),D.indented((I)=>{I.write(`const ${G} = ${F}[${W}];`);let z=i$(I,$,Y,G);I.write(`${K}[${W}] = ${z};`)}),D.write("}")}return K}function dk(D,$){for(let J=D.length-1;J>=0;J--)if(!($==="optin"?D[J]._zod.optin!==void 0:D[J]._zod.optout==="optional"))return J+1;return 0}function b9D(D,$,J,F){let U=J._zod.def,X=U.options;if(U.discriminator)return P9D(D,$,U,F);if(U.inclusive===!1)throw new TD("exclusive unions (z.xor)");if(X.length===0)return D.write("return INVALID;"),F;if(X.length===1)return J$(D,$,X[0],F);if(X.every((q)=>q._zod.def.type==="literal"&&!q._zod.def.checks?.length)){let q=new Set(X.flatMap((W)=>W._zod.def.values)),K=GD($,q);return D.write(`if (!${K}.has(${F})) return INVALID;`),F}let Q=KD($);D.write(`let ${Q};`);for(let q=0;q<X.length;q++){let K=X[q];if(q===0)D.write(`${Q} = (() => {`);else D.write(`if (${Q} === INVALID) ${Q} = (() => {`);D.indented((W)=>{let G=J$(W,$,K,F);W.write(`return ${G};`)}),D.write("})();")}return D.write(`if (${Q} === INVALID) return INVALID;`),Q}function P9D(D,$,J,F){if(J.unionFallback)throw new TD("discriminated union with unionFallback");if(J.options.length===0)return D.write("return INVALID;"),F;let U=KD($),X=KD($);D.write(`const ${U} = ${F}?.[${D0(J.discriminator)}];`),D.write(`let ${X};`);let Y=!0,Q=new Set;for(let q of J.options){let K=q._zod.propValues?.[J.discriminator];if(!K||K.size===0)throw new TD("discriminated union option without static discriminator values");for(let I of K){if(Q.has(I))throw new TD(`duplicate discriminator value ${String(I)}`);Q.add(I)}let W=Array.from(K,(I)=>S9D($,U,I)),G=Y?"if":"else if";D.write(`${G} (${W.join(" || ")}) {`),D.indented((I)=>{let z=J$(I,$,q,F);I.write(`${X} = ${z};`)}),D.write("}"),Y=!1}return D.write("else { return INVALID; }"),X}function S9D(D,$,J){if(typeof J==="string")return`${$} === ${D0(J)}`;if(typeof J==="number"){if(Number.isNaN(J))return`Number.isNaN(${$})`;return`${$} === ${J}`}if(typeof J==="boolean")return`${$} === ${J}`;if(J===null)return`${$} === null`;if(J===void 0)return`${$} === undefined`;if(typeof J==="bigint")return`${$} === ${J}n`;if(typeof J==="symbol"){let F=GD(D,J);return`${$} === ${F}`}throw new TD(`literal discriminator value ${String(J)}`)}function _9D(D,$,J,F){let U=J._zod.def;$.definite=!1;let X=i$(D,$,U.left,F),Y=i$(D,$,U.right,F),Q=GD($,g8),q=KD($);return D.write(`const ${q} = ${Q}(${X}, ${Y});`),D.write(`if (!${q}.valid) return INVALID;`),`${q}.data`}function k9D(D,$,J,F){let U=J._zod.def,X=GD($,m0);D.write(`if (!${X}(${F})) return INVALID;`);let Y=KD($),Q=KD($),q=KD($);D.write(`const ${Y} = {};`);let K=U,W=K.partial?void 0:U.keyType._zod.values;if(W){let z=[];for(let H of W){if(!(typeof H==="string"||typeof H==="number"||typeof H==="symbol"))throw new TD(`record key value ${String(H)}`);let B=typeof H==="number"?H.toString():H;if(B==="__proto__")throw new TD('record key "__proto__"');z.push(B);let j=GD($,H),N=J$(D,$,U.keyType,j),O=KD($);D.write(`const ${O} = ${F}[${C9D($,B)}];`);let L=i$(D,$,U.valueType,O);D.write(`${Y}[${N}] = ${L};`)}let Z=GD($,new Set(z));return D.write(`for (const ${Q} in ${F}) {`),D.indented((H)=>{if(H.write(`if (${Z}.has(${Q})) continue;`),K.mode==="loose")H.write(`if (${Q} !== "__proto__") ${Y}[${Q}] = ${F}[${Q}];`);else H.write("return INVALID;")}),D.write("}"),Y}let G=U.keyType._zod.def;if(!(G.type==="string"&&G.format===void 0&&!G.coerce&&(G.checks?.length??0)===0)){let z=U.mode==="loose",Z=HU(U.keyType);if(Z.definite===!1)$.definite=!1;let H=GD($,Z),B=GD($,O6),j=KD($);return ck(D,$,F,Q,(N)=>{if(N.write(`let ${j} = ${H}(${Q});`),N.write(`if (${j} === INVALID && typeof ${Q} === "string" && ${B}.test(${Q})) ${j} = ${H}(Number(${Q}));`),z)N.write(`if (${j} === INVALID) { ${Y}[${Q}] = ${F}[${Q}]; continue; }`);else N.write(`if (${j} === INVALID) return INVALID;`);N.write(`if (${j} === "__proto__") continue;`);let O=KD($);N.write(`const ${O} = ${F}[${Q}];`);let L=i$(N,$,U.valueType,O);N.write(`${Y}[${j}] = ${L};`)}),Y}return ck(D,$,F,Q,(z)=>{z.write(`const ${q} = ${F}[${Q}];`);let Z=i$(z,$,U.valueType,q);z.write(`${Y}[${Q}] = ${Z};`)},"return INVALID;"),Y}function ck(D,$,J,F,U,X){let Y=GD($,Object.prototype.propertyIsEnumerable),Q=KD($),q=KD($),K=KD($);D.write(`const ${Q} = Object.getOwnPropertySymbols(${J});`),D.write(`const ${q} = Object.getOwnPropertyNames(${J});`),D.write(`for (let ${K} = 0; ${K} < ${q}.length; ${K}++) {`),D.indented((W)=>{W.write(`const ${F} = ${q}[${K}];`),W.write(`if (${F} === "__proto__" || !${Y}.call(${J}, ${F})) continue;`),U(W)}),D.write("}"),D.write(`for (let ${K} = 0; ${K} < ${Q}.length; ${K}++) {`),D.indented((W)=>{if(W.write(`const ${F} = ${Q}[${K}];`),W.write(`if (!${Y}.call(${J}, ${F})) continue;`),X)W.write(X);else U(W)}),D.write("}")}function C9D(D,$){if(typeof $==="string")return D0($);return GD(D,$)}function u9D(D,$,J,F){let U=J._zod.def;D.write(`if (!(${F} instanceof Map)) return INVALID;`);let X=KD($),Y=KD($),Q=KD($);return D.write(`const ${X} = new Map();`),D.write(`for (const [${Y}, ${Q}] of ${F}) {`),D.indented((q)=>{let K=J$(q,$,U.keyType,Y),W=J$(q,$,U.valueType,Q);q.write(`${X}.set(${K}, ${W});`)}),D.write("}"),X}function g9D(D,$,J,F){let U=J._zod.def;D.write(`if (!(${F} instanceof Set)) return INVALID;`);let X=KD($),Y=KD($);return D.write(`const ${X} = new Set();`),D.write(`for (const ${Y} of ${F}) {`),D.indented((Q)=>{let q=J$(Q,$,U.valueType,Y);Q.write(`${X}.add(${q});`)}),D.write("}"),X}function f9D(D,$){return D.write(`if (!(${$} instanceof File)) return INVALID;`),$}function x9D(D,$,J,F){D.write(`if (typeof ${F} !== "string") return INVALID;`);let U=J._zod.pattern;if(U){let X=GD($,U);D.write(`${X}.lastIndex = 0;`),D.write(`if (!${X}.test(${F})) return INVALID;`)}return F}function y9D(D,$,J,F){let U=J._zod.def,X=l4($,U.getter),Y=GD($,{parser:null});D.write(`if (!${Y}.parser) {`),D.indented((q)=>{q.write(`const inner = ${X}();`),q.write(`${Y}.parser = function(input) {`),q.indented((K)=>{K.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),K.write("return result.issues.length === 0 ? result.value : INVALID;")}),q.write("};")}),D.write("}");let Q=KD($);return D.write(`const ${Q} = ${Y}.parser(${F});`),D.write(`if (${Q} === INVALID) return INVALID;`),Q}function h9D(D,$,J,F){let U=J._zod.def,X=J$(D,$,U.in,F);if(U.transform){if(i4(U.transform))throw new j6("z.compile: async transforms in pipes are not supported");let Y=U.transform,q=l4($,(W)=>{let G={value:W,issues:[],addIssue:XZ},I=Y(W,G);if(I instanceof Promise)return J0;return G.issues.length===0?I:J0}),K=KD($);return D.write(`const ${K} = ${q}(${X});`),D.write(`if (${K} === INVALID) return INVALID;`),J$(D,$,U.out,K)}else return J$(D,$,U.out,X)}function i4(D){return typeof D==="function"&&(D.constructor.name==="AsyncFunction"||D[Symbol.toStringTag]==="AsyncFunction")}function m9D(D,$,J,F){let U=J._zod.def;if(U.fn){if(i4(U.fn))throw new j6("z.compile: async custom predicates are not supported");let X=l4($,U.fn),Y=GD($,JZ),Q=KD($);D.write(`const ${Q} = ${X}(${F});`),D.write(`if (${Q} instanceof Promise) ${Y}();`),D.write(`if (!${Q}) return INVALID;`)}else throw new TD("custom schema without a predicate function");return F}function l9D(D,$,J){let F=D._zod.run({value:J,issues:[]},{});if(F&&typeof F.then==="function")return J0;let U=F;if(U.issues.length===0)return U.value;return $()}function i9D(D,$,J,F){let U=J._zod.def;if(!U.catchValue[MF])throw new TD("catch with a callback (only a constant catch value compiles)",!1);let X=KD($);D.write(`let ${X} = (() => {`),D.indented((K)=>{let W=i$(K,$,U.innerType,F);K.write(`return ${W};`)}),D.write("})();");let Y=GD($,U.innerType),Q=l4($,U.catchValue),q=GD($,l9D);return D.write(`if (${X} === INVALID) {`),D.indented((K)=>{K.write(`${X} = ${q}(${Y}, ${Q}, ${F});`),K.write(`if (${X} === INVALID) return INVALID;`)}),D.write("}"),X}function d9D(D,$,J,F){let U=J._zod.def;if(U.transform){if(i4(U.transform))throw new j6("z.compile: async transforms are not supported");let X=U.transform,Q=l4($,(K)=>{let W={value:K,issues:[],addIssue:XZ},G=X(K,W);if(G instanceof Promise)return J0;return W.issues.length===0?G:J0}),q=KD($);return D.write(`const ${q} = ${Q}(${F});`),D.write(`if (${q} === INVALID) return INVALID;`),q}return F}var J0,mk,j6,TD,o3D,Q9D;var tk=S(()=>{E1();mI();x4();f8();s();J0=Symbol.for("zod.compile.invalid"),mk=Symbol.for("zod.compile.fallback");j6=class j6 extends Error{constructor(D="z.compile does not support async refinements, transforms, or checks"){super(D);this.name="ZodCompileAsyncError"}};TD=class TD extends Error{constructor(D,$=!0){super(`z.compile does not support ${D}; this schema must use the runtime parser`);this.name="ZodCompileUnsupportedError",this.islandable=$}};o3D=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);Q9D=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"])});function BU(D){if(D.checks)D.checks=[...D.checks];return D}function YZ(D,$){return new D(BU({type:"string",...p($)}))}function QZ(D,$){return new D(BU({type:"string",coerce:!0,...p($)}))}function OU(D,$){return new D({type:"string",format:"email",check:"string_format",abort:!1,...p($)})}function jU(D,$){return new D({type:"string",format:"guid",check:"string_format",abort:!1,...p($)})}function NU(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,...p($)})}function VU(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...p($)})}function LU(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...p($)})}function wU(D,$){return new D({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...p($)})}function B5(D,$){return new D({type:"string",format:"url",check:"string_format",abort:!1,...p($)})}function RU(D,$){return new D({type:"string",format:"emoji",check:"string_format",abort:!1,...p($)})}function MU(D,$){return new D({type:"string",format:"nanoid",check:"string_format",abort:!1,...p($)})}function EU(D,$){return new D({type:"string",format:"cuid",check:"string_format",abort:!1,...p($)})}function AU(D,$){return new D({type:"string",format:"cuid2",check:"string_format",abort:!1,...p($)})}function vU(D,$){return new D({type:"string",format:"ulid",check:"string_format",abort:!1,...p($)})}function TU(D,$){return new D({type:"string",format:"xid",check:"string_format",abort:!1,...p($)})}function bU(D,$){return new D({type:"string",format:"ksuid",check:"string_format",abort:!1,...p($)})}function PU(D,$){return new D({type:"string",format:"ipv4",check:"string_format",abort:!1,...p($)})}function SU(D,$){return new D({type:"string",format:"ipv6",check:"string_format",abort:!1,...p($)})}function qZ(D,$){return new D({type:"string",format:"mac",check:"string_format",abort:!1,...p($)})}function _U(D,$){return new D({type:"string",format:"cidrv4",check:"string_format",abort:!1,...p($)})}function kU(D,$){return new D({type:"string",format:"cidrv6",check:"string_format",abort:!1,...p($)})}function CU(D,$){return new D({type:"string",format:"base64",check:"string_format",abort:!1,...p($)})}function uU(D,$){return new D({type:"string",format:"base64url",check:"string_format",abort:!1,...p($)})}function gU(D,$){return new D({type:"string",format:"e164",check:"string_format",abort:!1,...p($)})}function KZ(D,$){return new D({type:"string",format:"credit_card",check:"string_format",abort:!1,...p($)})}function WZ(D,$){return new D({type:"string",format:"iban",check:"string_format",abort:!1,...p($)})}function fU(D,$){return new D({type:"string",format:"jwt",check:"string_format",abort:!1,...p($)})}function O5(D,$){return new D({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...p($)})}function j5(D,$){return new D({type:"string",format:"date",check:"string_format",...p($)})}function N5(D,$){return new D({type:"string",format:"time",check:"string_format",precision:null,...p($)})}function V5(D,$){return new D({type:"string",format:"duration",check:"string_format",...p($)})}function IZ(D,$){return new D(BU({type:"number",checks:[],...p($)}))}function zZ(D,$){return new D(BU({type:"number",coerce:!0,checks:[],...p($)}))}function ZZ(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"safeint",...p($)})}function HZ(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"float32",...p($)})}function BZ(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"float64",...p($)})}function OZ(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"int32",...p($)})}function jZ(D,$){return new D({type:"number",check:"number_format",abort:!1,format:"uint32",...p($)})}function NZ(D,$){return new D({type:"boolean",...p($)})}function VZ(D,$){return new D({type:"boolean",coerce:!0,...p($)})}function LZ(D,$){return new D({type:"bigint",...p($)})}function wZ(D,$){return new D({type:"bigint",coerce:!0,...p($)})}function RZ(D,$){return new D({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...p($)})}function MZ(D,$){return new D({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...p($)})}function EZ(D,$){return new D({type:"symbol",...p($)})}function AZ(D,$){return new D({type:"undefined",...p($)})}function vZ(D,$){return new D({type:"null",...p($)})}function TZ(D){return new D({type:"any"})}function bZ(D){return new D({type:"unknown"})}function PZ(D,$){return new D({type:"never",...p($)})}function SZ(D,$){return new D({type:"void",...p($)})}function _Z(D,$){return new D({type:"date",...p($)})}function kZ(D,$){return new D({type:"date",coerce:!0,...p($)})}function CZ(D,$){return new D({type:"nan",...p($)})}function N6(D,$){return new hF({check:"less_than",...p($),value:D,inclusive:!1})}function M0(D,$){return new hF({check:"less_than",...p($),value:D,inclusive:!0})}function V6(D,$){return new mF({check:"greater_than",...p($),value:D,inclusive:!1})}function E0(D,$){return new mF({check:"greater_than",...p($),value:D,inclusive:!0})}function xU(D){return V6(0,D)}function yU(D){return N6(0,D)}function hU(D){return M0(0,D)}function mU(D){return E0(0,D)}function A1(D,$){return new UG({check:"multiple_of",...p($),value:D})}function v1(D,$){return new QG({check:"max_size",...p($),maximum:D})}function L6(D,$){return new qG({check:"min_size",...p($),minimum:D})}function d4(D,$){return new KG({check:"size_equals",...p($),size:D})}function c4(D,$){return new WG({check:"max_length",...p($),maximum:D})}function m6(D,$){return new GG({check:"min_length",...p($),minimum:D})}function n4(D,$){return new IG({check:"length_equals",...p($),length:D})}function m8(D,$){return new zG({check:"string_format",format:"regex",...p($),pattern:D})}function l8(D){return new ZG({check:"string_format",format:"lowercase",...p(D)})}function i8(D){return new HG({check:"string_format",format:"uppercase",...p(D)})}function d8(D,$){return new BG({check:"string_format",format:"includes",...p($),includes:D})}function c8(D,$){return new OG({check:"string_format",format:"starts_with",...p($),prefix:D})}function n8(D,$){return new jG({check:"string_format",format:"ends_with",...p($),suffix:D})}function lU(D,$,J){return new NG({check:"property",property:D,schema:$,...p(J)})}function p8(D,$){return new VG({check:"properties",shape:D,...p($)})}function r8(D,$){return new LG({check:"mime_type",mime:D,...p($)})}function D6(D){return new wG({check:"overwrite",tx:D})}function t8(D){return D6(($)=>$.normalize(D))}function o8(){return D6((D)=>D.trim())}function a8(){return D6((D)=>D.toLowerCase())}function s8(){return D6((D)=>D.toUpperCase())}function e8(){return D6((D)=>UW(D))}function uZ(D,$,J){return new D({type:"array",element:$,...p(J)})}function c9D(D,$,J){return new D({type:"union",options:$,...p(J)})}function n9D(D,$,J){return new D({type:"union",options:$,inclusive:!1,...p(J)})}function p9D(D,$,J,F){return new D({type:"union",options:J,discriminator:$,...p(F)})}function r9D(D,$,J){return new D({type:"intersection",left:$,right:J})}function t9D(D,$,J,F){let U=J instanceof ID;return new D({type:"tuple",items:$,rest:U?J:null,...p(U?F:J)})}function o9D(D,$,J,F){return new D({type:"record",keyType:$,valueType:J,...p(F)})}function a9D(D,$,J,F){return new D({type:"map",keyType:$,valueType:J,...p(F)})}function s9D(D,$,J){return new D({type:"set",valueType:$,...p(J)})}function e9D(D,$,J){let F=Array.isArray($)?Object.fromEntries($.map((U)=>[U,U])):$;return new D({type:"enum",entries:F,...p(J)})}function D5D(D,$,J){return new D({type:"enum",entries:$,...p(J)})}function $5D(D,$,J){return new D({type:"literal",values:Array.isArray($)?$:[$],...p(J)})}function gZ(D,$){return new D({type:"file",...p($)})}function J5D(D,$){return new D({type:"transform",transform:$})}function F5D(D,$){return new D({type:"optional",innerType:$})}function U5D(D,$){return new D({type:"nullable",innerType:$})}function X5D(D,$,J){return new D({type:"default",innerType:$,get defaultValue(){return typeof J==="function"?J():f9(J)}})}function Y5D(D,$,J){return new D({type:"nonoptional",innerType:$,...p(J)})}function Q5D(D,$){return new D({type:"success",innerType:$})}function q5D(D,$,J){return new D({type:"catch",innerType:$,catchValue:typeof J==="function"?J:WW(J)})}function K5D(D,$,J){return new D({type:"pipe",in:$,out:J})}function W5D(D,$){return new D({type:"readonly",innerType:$})}function G5D(D,$,J){return new D({type:"template_literal",parts:$,...p(J)})}function I5D(D,$){return new D({type:"lazy",getter:$})}function z5D(D,$){return new D({type:"promise",innerType:$})}function fZ(D,$,J){let F=p(J);return F.abort??(F.abort=!0),new D({type:"custom",check:"custom",fn:$,...F})}function xZ(D,$,J){return new D({type:"custom",check:"custom",fn:$,...p(J)})}function yZ(D,$){let J=ok((F)=>{return F.addIssue=(U)=>{if(typeof U==="string")F.issues.push(b8(U,F.value,J._zod.def));else{let X=U;if(X.fatal)X.continue=!1;if(X.code??(X.code="custom"),!("input"in X))X.input=F.value;X.inst??(X.inst=J),X.continue??(X.continue=!J._zod.def.abort),F.issues.push(b8(X))}},D(F.value,F)},$);return J}function ok(D,$){let J=new nD({check:"custom",...p($)});return J._zod.check=D,J}function hZ(D){let $=new nD({check:"describe"});return $._zod.onattach=[(J)=>{let F=C$.get(J)??{};C$.add(J,{...F,description:D})}],$._zod.check=()=>{},$}function mZ(D){let $=new nD({check:"meta"});return $._zod.onattach=[(J)=>{let F=C$.get(J)??{};C$.add(J,{...F,...D})}],$._zod.check=()=>{},$}function lZ(D,$){let J=p($),F=J.truthy??["true","1","yes","on","y","enabled"],U=J.falsy??["false","0","no","off","n","disabled"];if(J.case!=="sensitive")F=F.map((z)=>typeof z==="string"?z.toLowerCase():z),U=U.map((z)=>typeof z==="string"?z.toLowerCase():z);let X=new Set(F),Y=new Set(U),Q=D.Codec??X5,q=D.Boolean??F5,W=new(D.String??y4)({type:"string",error:J.error}),G=new q({type:"boolean",error:J.error}),I=new Q({type:"pipe",in:W,out:G,transform:(z,Z)=>{let H=z;if(J.case!=="sensitive")H=H.toLowerCase();if(X.has(H))return!0;else if(Y.has(H))return!1;else return Z.issues.push({code:"invalid_value",expected:"stringbool",values:[...X,...Y],input:Z.value,inst:I,continue:!1}),{}},reverseTransform:(z,Z)=>{if(z===!0)return F[0]||"true";else return U[0]||"false"},error:J.error});return I._zod.bag.truthy=F,I._zod.bag.falsy=U,I._zod.bag.case=J.case??"insensitive",I}function p4(D,$,J,F={}){let U=p(F),X={check:"string_format",type:"string",format:$,fn:typeof J==="function"?J:(Q)=>J.test(Q),...U};if(J instanceof RegExp)X.pattern=J;return new D(X)}var GZ;var ak=S(()=>{lF();H5();f8();s();GZ={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function L5(D,...$){for(let J of $)for(let F of Reflect.ownKeys(J))if(Object.prototype.propertyIsEnumerable.call(J,F))k$(D,F,J[F]);return D}function T1(D){let $=D?.target??"draft-2020-12";if($==="draft-4")$="draft-04";if($==="draft-7")$="draft-07";return{processors:D.processors??{},metadataRegistry:D?.metadata??C$,target:$,unrepresentable:D?.unrepresentable??"throw",override:D?.override??(()=>{}),io:D?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:D?.cycles??"ref",reused:D?.reused??"inline",intersections:[],deferred:[],external:D?.external??void 0}}function w$(D,$,J,F,U){let X=typeof $.unrepresentable==="function"?$.unrepresentable({zodSchema:D,path:F.path,message:U}):$.unrepresentable;if(X==="any")return!1;if(X===void 0||X==="throw")throw Error(U);return Object.assign(J,X),!0}function hD(D,$,J={path:[],schemaPath:[]}){var F;let U=D._zod.def,X=$.seen.get(D);if(X){if(X.count++,J.schemaPath.includes(D))X.cycle=J.path;return X.schema}let Y={schema:{},count:1,cycle:void 0,path:J.path};$.seen.set(D,Y),$.sharedDefsExtractedFor=void 0,$.sharedEmitDoneFor=void 0;let Q=D._zod.toJSONSchema?.();if(Q)Y.schema=Q;else{let W={...J,schemaPath:[...J.schemaPath,D],path:J.path};if(D._zod.processJSONSchema)D._zod.processJSONSchema($,Y.schema,W);else{let I=Y.schema,z=$.processors[U.type];if(!z)throw Error(`[toJSONSchema]: Non-representable type encountered: ${U.type}`);z(D,$,I,W)}let G=D._zod.parent;if(G){if(!Y.ref)Y.ref=G;hD(G,$,W),$.seen.get(G).isParent=!0}}let q=$.metadataRegistry.get(D);if(q)L5(Y.schema,q);if($.io==="input"&&F0(D))delete Y.schema.examples,delete Y.schema.default;if($.io==="input"&&"_prefault"in Y.schema)(F=Y.schema).default??(F.default=Y.schema._prefault);return delete Y.schema._prefault,$.seen.get(D).schema}function sk(D){return D.replace(/~/g,"~0").replace(/\//g,"~1")}function b1(D,$){let J=D.seen.get($);if(!J)throw Error("Unprocessed schema. This is a bug in Zod.");if(D.external&&D.sharedDefsExtractedFor===D.external)return;let F=new Map;for(let Y of D.seen.entries()){let Q=D.metadataRegistry.get(Y[0])?.id;if(Q){let q=F.get(Q);if(q&&q!==Y[0])throw Error(`Duplicate schema id "${Q}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);F.set(Q,Y[0])}}let U=(Y)=>{let Q=D.target==="draft-2020-12"?"$defs":"definitions";if(D.external){let G=D.external.registry.get(Y[0])?.id,I=D.external.uri??((Z)=>Z);if(G)return{ref:I(G)};let z=Y[1].defId??Y[1].schema.id??`schema${D.counter++}`;return Y[1].defId=z,{defId:z,ref:`${I("__shared")}#/${Q}/${sk(z)}`}}let q="#",K=`${q}/${Q}/`;if(Y[1]===J&&!Y[1].schema.id)return{ref:q};let W=Y[1].schema.id??`__schema${D.counter++}`;return{defId:W,ref:K+sk(W)}},X=(Y)=>{if(Y[1].schema.$ref)return;let Q=Y[1],{ref:q,defId:K}=U(Y);if(Q.def={...Q.schema},K)Q.defId=K;let W=Q.schema;for(let G in W)delete W[G];W.$ref=q};if(D.cycles==="throw")for(let Y of D.seen.entries()){let Q=Y[1];if(Q.cycle)throw Error(`Cycle detected: #/${Q.cycle?.join("/")}/<root>
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let Y of D.seen.entries()){let Q=Y[1];if($===Y[0]){X(Y);continue}if(D.external){let K=D.external.registry.get(Y[0])?.id;if($!==Y[0]&&K){X(Y);continue}}if(D.metadataRegistry.get(Y[0])?.id){X(Y);continue}if(Q.cycle){X(Y);continue}if(Q.count>1){if(D.reused==="ref")X(Y)}}if(D.external)D.sharedDefsExtractedFor=D.external}function $C(D){let $=D.anyOf;if(!Array.isArray($)||$.length===0||D.type!==void 0)return;let J=[];for(let F of $){if(!F||typeof F!=="object")return;$C(F);let U=Object.keys(F);if(U.length!==1||U[0]!=="type")return;let X=F.type;for(let Y of Array.isArray(X)?X:[X]){if(typeof Y!=="string")return;if(!J.includes(Y))J.push(Y)}}delete D.anyOf,D.type=J.length===1?J[0]:J}function DC(D){let $=D.additionalProperties;if($===void 0||$===!1||typeof $!=="object"||$===null)return null;return Object.keys($).length?$:null}function iZ(D){let $=[];for(let X of D){if(typeof X!=="object"||X.type!=="object")return null;for(let Y in X)if(!JC.has(Y))return null;$.push(X)}let J={},F=new Set;for(let X of $){for(let Y in X.properties){if(Object.prototype.hasOwnProperty.call(J,Y))continue;let Q=[];for(let K of $){let W=K.properties?.[Y]??DC(K);if(W===null||W===void 0)continue;if(!Q.some((G)=>JSON.stringify(G)===JSON.stringify(W)))Q.push(W)}let q=Q.length===1?Q[0]:iZ(Q)??{allOf:Q};k$(J,Y,q)}for(let Y of X.required??[])F.add(Y)}let U={type:"object",properties:J};if(F.size)U.required=[...F];if($.every((X)=>X.additionalProperties===!1))U.additionalProperties=!1;else{let X=[];for(let Y of $){let Q=DC(Y);if(Q&&!X.some((q)=>JSON.stringify(q)===JSON.stringify(Q)))X.push(Q)}if(X.length===1)U.additionalProperties=X[0];else if(X.length>1)U.additionalProperties={allOf:X}}return U}function Z5D(D){let $=D.allOf;if(!Array.isArray($)||$.length<2)return;for(let U of JC)if(U in D)return;let J=$.filter((U)=>ek.some((X)=>Array.isArray(U[X]))),F=null;if(!J.length)F=iZ($);else{let U=J[0],X=ek.find((q)=>Array.isArray(U[q]));if(Object.keys(U).length!==1)return;let Y=$.filter((q)=>q!==U),Q=U[X].map((q)=>iZ([...Y,q]));if(Q.some((q)=>!q))return;F={[X]:Q}}if(!F)return;delete D.allOf,L5(D,F)}function P1(D,$){let J=D.seen.get($);if(!J)throw Error("Unprocessed schema. This is a bug in Zod.");let F=(Q)=>{let q=D.seen.get(Q);if(q.ref===null)return;let K=q.def??q.schema,W={...K},G=q.ref;if(q.ref=null,G){F(G);let z=D.seen.get(G),Z=z.schema;if(Z.$ref&&(D.target==="draft-07"||D.target==="draft-04"||D.target==="openapi-3.0"))K.allOf=K.allOf??[],K.allOf.push(Z);else L5(K,Z);if(L5(K,W),Q._zod.parent===G)for(let B in K){if(B==="$ref"||B==="allOf")continue;if(!(B in W))delete K[B]}if(Z.$ref&&z.def)for(let B in K){if(B==="$ref"||B==="allOf")continue;if(B in z.def&&JSON.stringify(K[B])===JSON.stringify(z.def[B]))delete K[B]}}let I=Q._zod.parent;if(I&&I!==G){F(I);let z=D.seen.get(I);if(z?.schema.$ref){if(K.$ref=z.schema.$ref,z.def)for(let Z in K){if(Z==="$ref"||Z==="allOf")continue;if(Z in z.def&&JSON.stringify(K[Z])===JSON.stringify(z.def[Z]))delete K[Z]}}}D.override({zodSchema:Q,jsonSchema:K,path:q.path??[]})};if(!D.external||D.sharedEmitDoneFor!==D.external){for(let Q of[...D.seen.entries()].reverse())F(Q[0]);if(D.target!=="openapi-3.0")for(let Q of D.seen.entries())$C(Q[1].def??Q[1].schema);for(let Q of D.deferred)Q();if(D.intersections.length){let Q=new Map;for(let q of D.seen.values())for(let K of[q.schema,q.def]){let W=K?.allOf;if(!Array.isArray(W))continue;let G=Q.get(W);if(G)G.push(K);else Q.set(W,[K])}for(let q of D.intersections)for(let K of Q.get(q)??[])Z5D(K)}}let U={};if(D.target==="draft-2020-12")U.$schema="https://json-schema.org/draft/2020-12/schema";else if(D.target==="draft-07")U.$schema="http://json-schema.org/draft-07/schema#";else if(D.target==="draft-04")U.$schema="http://json-schema.org/draft-04/schema#";else if(D.target==="openapi-3.0");if(D.external?.uri){let Q=D.external.registry.get($)?.id;if(!Q)throw Error("Schema is missing an `id` property");U.$id=D.external.uri(Q)}L5(U,J.defId?J.schema:J.def??J.schema);let X=D.metadataRegistry.get($)?.id;if(X!==void 0&&U.id===X)delete U.id;let Y=D.external?.defs??{};if(!D.external||D.sharedEmitDoneFor!==D.external)for(let Q of D.seen.entries()){let q=Q[1];if(q.def&&q.defId){if(q.def.id===q.defId)delete q.def.id;k$(Y,q.defId,q.def)}}if(D.external)D.sharedEmitDoneFor=D.external;if(D.external);else if(Object.keys(Y).length>0)if(D.target==="draft-2020-12")U.$defs=Y;else U.definitions=Y;try{let Q=JSON.parse(JSON.stringify(U));return Object.defineProperty(Q,"~standard",{value:{...$["~standard"],jsonSchema:{input:D3($,"input",D.processors),output:D3($,"output",D.processors)}},enumerable:!1,writable:!1}),Q}catch(Q){throw Error("Error converting schema to JSON.")}}function F0(D,$){let J=$??{seen:new Set};if(J.seen.has(D))return!1;J.seen.add(D);let F=D._zod.def;if(F.type==="transform")return!0;if(F.type==="array")return F0(F.element,J);if(F.type==="set")return F0(F.valueType,J);if(F.type==="lazy")return F0(F.getter(),J);if(F.type==="promise"||F.type==="optional"||F.type==="nonoptional"||F.type==="nullable"||F.type==="readonly"||F.type==="default"||F.type==="prefault"||F.type==="catch")return F0(F.innerType,J);if(F.type==="intersection")return F0(F.left,J)||F0(F.right,J);if(F.type==="record"||F.type==="map")return F0(F.keyType,J)||F0(F.valueType,J);if(F.type==="pipe"){if(D._zod.traits.has("$ZodCodec"))return!0;return F0(F.in,J)||F0(F.out,J)}if(F.type==="object"){for(let U in F.shape)if(F0(F.shape[U],J))return!0;return!1}if(F.type==="union"){for(let U of F.options)if(F0(U,J))return!0;return!1}if(F.type==="tuple"){for(let U of F.items)if(F0(U,J))return!0;if(F.rest&&F0(F.rest,J))return!0;return!1}return!1}var JC,ek,dZ=(D,$={})=>(J)=>{let F=T1({...J,processors:$});return hD(D,F),b1(F,D),P1(F,D)},D3=(D,$,J={})=>(F)=>{let{libraryOptions:U,target:X}=F??{},Y=T1({...U??{},target:X,io:$,processors:J});return hD(D,Y),b1(Y,D),P1(Y,D)};var w5=S(()=>{H5();s();JC=new Set(["type","properties","required","additionalProperties"]),ek=["oneOf","anyOf"]});function R$(D){let $={},J=D._zod.def,F=D._zod.traits.has("$ZodCheck")?[D,...J.checks??[]]:J.checks??[];for(let X of F)H5D[X._zod.def.check]?.($,X._zod.def);let U=D._zod.bag;if(U.minimum!==void 0)$3($,"minimum",U.minimum);if(U.exclusiveMinimum!==void 0)$3($,"exclusiveMinimum",U.exclusiveMinimum);if(U.maximum!==void 0)J3($,"maximum",U.maximum);if(U.exclusiveMaximum!==void 0)J3($,"exclusiveMaximum",U.exclusiveMaximum);if(U.multipleOf!==void 0)QC($,U.multipleOf);if(U.format!==void 0){if($.format??($.format=U.format),U.format.includes("int"))$.isInt=!0}if(U.mime)KC($,U.mime);for(let X of U.patterns??[])qC($,X);return $}function R5(D){let $=D._zod.def;if($.type==="pipe"&&$.in._zod.traits.has("$ZodTransform"))return R5($.out);if($.type==="catch")return R5($.innerType);return D._zod.optin}function cZ(D,$,J){if($.$ref){if(J.has($))return $;J.add($);let Z=D.get($)?.def;if(!Z)return $;let H=cZ(D,Z,J);return H===Z?$:H}for(let Z of["anyOf","oneOf"]){let H=$[Z];if(!Array.isArray(H))continue;let B=H.map((j)=>cZ(D,j,J));if(B.some((j,N)=>j!==H[N]))$={...$,[Z]:B}}let F=Array.isArray($.type)?$.type:[$.type],U=!F.includes("string")&&F.some((Z)=>Z==="number"||Z==="integer"),X=$.enum??($.const!==void 0?[$.const]:void 0);if(!U&&!X?.some((Z)=>typeof Z==="number"))return $;let{minimum:Y,maximum:Q,exclusiveMinimum:q,exclusiveMaximum:K,multipleOf:W,format:G,id:I,...z}=$;if(z.enum)z.enum=z.enum.map((Z)=>typeof Z==="number"?String(Z):Z);else if(typeof z.const==="number")z.const=String(z.const);if(!U)return z;if(z.type="string",!X)z.pattern=(F.includes("number")?O6:t9).source;return z}function j5D(D){let $=new Map;for(let F of D.seen.values())if(F.def&&!$.has(F.schema))$.set(F.schema,F);let J=new Map;for(let F of nZ.get(D)??[]){let U=D.seen.get(F),X=(U?.def??U?.schema)?.propertyNames;if(!X||X===!0||J.has(X))continue;let Y=cZ($,X,new Set);if(Y!==X)J.set(X,Y)}if(!J.size)return;for(let F of D.seen.values())for(let U of[F.schema,F.def]){let X=U&&J.get(U.propertyNames);if(X)U.propertyNames=X}}function IC(D,$,J,F,U){let X=!1,Y=JSON.stringify(D,(Q,q)=>{if(typeof q!=="bigint")return q;return X=!0,null});if(!X)return JSON.parse(Y);return w$($,J,F,U,"BigInt defaults cannot be represented in JSON Schema"),RH}function nU(D,$){if("_idmap"in D){let F=D,U=T1({...$,processors:iU}),X={};for(let q of F._idmap.entries()){let[K,W]=q;hD(W,U)}let Y={},Q={registry:F,uri:$?.uri,defs:X};U.external=Q;for(let q of F._idmap.entries()){let[K,W]=q;b1(U,W),k$(Y,K,P1(U,W))}if(Object.keys(X).length>0){let q=U.target==="draft-2020-12"?"$defs":"definitions";Y.__shared={[q]:X}}return{schemas:Y}}let J=T1({...$,processors:iU});return hD(D,J),b1(J,D),P1(J,D)}var $3=(D,$,J)=>{if(D[$]===void 0||J>D[$])D[$]=J},J3=(D,$,J)=>{if(D[$]===void 0||J<D[$])D[$]=J},FC=(D,$)=>{$3(D,"minimum",$),J3(D,"maximum",$)},QC=(D,$)=>{if(D.multipleOf??(D.multipleOf=[]),!D.multipleOf.includes($))D.multipleOf.push($)},qC=(D,$)=>{D.patterns??(D.patterns=new Set),D.patterns.add($)},KC=(D,$)=>{D.mime=D.mime?D.mime.filter((J)=>$.includes(J)):[...$]},WC=(D,$)=>{if(D.format=$,$.includes("int"))D.isInt=!0},UC=(D,$)=>$3(D,"minimum",$.minimum),XC=(D,$)=>J3(D,"maximum",$.maximum),YC=(D)=>($,J)=>{WC($,J.format);let[F,U]=D[J.format];$3($,"minimum",F),J3($,"maximum",U)},H5D,B5D,O5D,GC=(D)=>O5D.get(D)??D,pZ=(D,$,J,F)=>{let U=J;U.type="string";let{minimum:X,maximum:Y,format:Q,patterns:q,contentEncoding:K,laxFormat:W}=R$(D);if(typeof X==="number")U.minLength=X;if(typeof Y==="number")U.maxLength=Y;if(Q){if(U.format=B5D[Q]??Q,U.format==="")delete U.format;if(Q==="time"||W)delete U.format}if(K)U.contentEncoding=K;if(q&&q.size>0){let G=[...q].map(GC);if(G.length===1)U.pattern=G[0].source;else if(G.length>1)U.allOf=[...G.map((I)=>({...$.target==="draft-07"||$.target==="draft-04"||$.target==="openapi-3.0"?{type:"string"}:{},pattern:I.source}))]}},rZ=(D,$,J,F)=>{let U=J,{minimum:X,maximum:Y,multipleOf:Q,exclusiveMaximum:q,exclusiveMinimum:K,isInt:W}=R$(D);U.type=W?"integer":"number";let G=typeof K==="number"&&K>=(X??Number.NEGATIVE_INFINITY),I=typeof q==="number"&&q<=(Y??Number.POSITIVE_INFINITY),z=$.target==="draft-04"||$.target==="openapi-3.0";if(G)if(z)U.minimum=K,U.exclusiveMinimum=!0;else U.exclusiveMinimum=K;else if(typeof X==="number")U.minimum=X;if(I)if(z)U.maximum=q,U.exclusiveMaximum=!0;else U.exclusiveMaximum=q;else if(typeof Y==="number")U.maximum=Y;if(Q){let Z=new Set;for(let j of Q)if(Number.isFinite(j)&&j!==0)Z.add(Math.abs(j));else w$(D,$,U,F,`A multipleOf divisor of ${j} cannot be represented in JSON Schema`);let[H,...B]=Z;if(H!==void 0)U.multipleOf=H;if(B.length)U.allOf=[...U.allOf??[],...B.map((j)=>({multipleOf:j}))]}},tZ=(D,$,J,F)=>{J.type="boolean"},oZ=(D,$,J,F)=>{w$(D,$,J,F,"BigInt cannot be represented in JSON Schema")},aZ=(D,$,J,F)=>{w$(D,$,J,F,"Symbols cannot be represented in JSON Schema")},sZ=(D,$,J,F)=>{if($.target==="openapi-3.0")J.type="string",J.nullable=!0,J.enum=[null];else J.type="null"},eZ=(D,$,J,F)=>{w$(D,$,J,F,"Undefined cannot be represented in JSON Schema")},DH=(D,$,J,F)=>{w$(D,$,J,F,"Void cannot be represented in JSON Schema")},$H=(D,$,J,F)=>{J.not={}},JH=(D,$,J,F)=>{},FH=(D,$,J,F)=>{},UH=(D,$,J,F)=>{w$(D,$,J,F,"Date cannot be represented in JSON Schema")},XH=(D,$,J,F)=>{let U=D._zod.def,X=E8(U.entries);if(X.length===0){J.not={};return}if(X.every((Y)=>typeof Y==="number"))J.type="number";if(X.every((Y)=>typeof Y==="string"))J.type="string";J.enum=X},YH=(D,$,J,F)=>{let U=D._zod.def;if(U.values.length===0){J.not={};return}let X=[];for(let Y of U.values)if(Y===void 0){if(w$(D,$,J,F,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof Y==="bigint"){if(w$(D,$,J,F,"BigInt literals cannot be represented in JSON Schema"))return;X.push(Number(Y))}else X.push(Y);if(X.length===0);else if(X.length===1){let Y=X[0];if(J.type=Y===null?"null":typeof Y,$.target==="draft-04"||$.target==="openapi-3.0")J.enum=[Y];else J.const=Y}else{if(X.every((Y)=>typeof Y==="number"))J.type="number";if(X.every((Y)=>typeof Y==="string"))J.type="string";if(X.every((Y)=>typeof Y==="boolean"))J.type="boolean";if(X.every((Y)=>Y===null))J.type="null";J.enum=X}},QH=(D,$,J,F)=>{w$(D,$,J,F,"NaN cannot be represented in JSON Schema")},qH=(D,$,J,F)=>{let U=J,X=D._zod.pattern;if(!X)throw Error("Pattern not found in template literal");U.type="string",U.pattern=X.source},KH=(D,$,J,F)=>{let U=J;U.type="string",U.format="binary",U.contentEncoding="binary";let{minimum:X,maximum:Y,mime:Q}=R$(D);if(X!==void 0)U.minLength=X;if(Y!==void 0)U.maxLength=Y;if(!Q)return;if(Q.length===0)U.not={};else if(Q.length===1)U.contentMediaType=Q[0];else U.anyOf=Q.map((q)=>({contentMediaType:q}))},WH=(D,$,J,F)=>{J.type="boolean"},GH=(D,$,J,F)=>{w$(D,$,J,F,"Custom types cannot be represented in JSON Schema")},IH=(D,$,J,F)=>{w$(D,$,J,F,"Function types cannot be represented in JSON Schema")},zH=(D,$,J,F)=>{w$(D,$,J,F,"Transforms cannot be represented in JSON Schema")},ZH=(D,$,J,F)=>{w$(D,$,J,F,"Map cannot be represented in JSON Schema")},HH=(D,$,J,F)=>{w$(D,$,J,F,"Set cannot be represented in JSON Schema")},BH=(D,$,J,F)=>{let U=J,X=D._zod.def,{minimum:Y,maximum:Q}=R$(D);if(typeof Y==="number")U.minItems=Y;if(typeof Q==="number")U.maxItems=Q;U.type="array",U.items=hD(X.element,$,{...F,path:[...F.path,"items"]})},OH=(D,$,J,F)=>{let U=J,X=D._zod.def,Y=X.shape;if(Object.getOwnPropertySymbols(Y).length&&w$(D,$,U,F,"Symbol keys cannot be represented in JSON Schema"))return;U.type="object",U.properties={};for(let K in Y)k$(U.properties,K,hD(Y[K],$,{...F,path:[...F.path,"properties",K]}));let q=[];for(let K of Object.keys(Y)){let W=X.shape[K];if($.io==="input"?R5(W)===void 0:W._zod.optout===void 0)q.push(K)}if(q.length>0)U.required=q;if(X.catchall?._zod.def.type==="never")U.additionalProperties=!1;else if(!X.catchall){if($.io==="output")U.additionalProperties=!1}else if(X.catchall)U.additionalProperties=hD(X.catchall,$,{...F,path:[...F.path,"additionalProperties"]})},dU=(D,$,J,F)=>{let U=D._zod.def,X=U.inclusive===!1,Y=U.options.map((Q,q)=>hD(Q,$,{...F,path:[...F.path,X?"oneOf":"anyOf",q]}));if(X)J.oneOf=Y;else J.anyOf=Y},jH=(D,$,J,F)=>{let U=D._zod.def,X=hD(U.left,$,{...F,path:[...F.path,"allOf",0]}),Y=hD(U.right,$,{...F,path:[...F.path,"allOf",1]}),Q=(K)=>("allOf"in K)&&Object.keys(K).length===1,q=[...Q(X)?X.allOf:[X],...Q(Y)?Y.allOf:[Y]];J.allOf=q,$.intersections.push(q)},NH=(D,$,J,F)=>{let U=J,X=D._zod.def;U.type="array";let Y=$.target==="draft-2020-12"?"prefixItems":"items",Q=$.target==="draft-2020-12"?"items":$.target==="openapi-3.0"?"items":"additionalItems",q=X.items.map((H,B)=>hD(H,$,{...F,path:[...F.path,Y,B]})),K=X.rest?hD(X.rest,$,{...F,path:[...F.path,Q,...$.target==="openapi-3.0"?[X.items.length]:[]]}):null,W=X.items.length;while(W>0){let H=X.items[W-1];if(!($.io==="input"?R5(H)!==void 0:H._zod.optout==="optional"))break;W--}let G=X.items.length,I=!X.rest;if($.target==="draft-2020-12"){if(U.prefixItems=q,I)U.items=!1;else if(K)U.items=K;if(W>0)U.minItems=W;if(I)U.maxItems=G}else if($.target==="openapi-3.0"){if(U.items={anyOf:q},K)U.items.anyOf.push(K);if(W>0)U.minItems=W;if(I)U.maxItems=G}else{if(U.items=q,I)U.additionalItems=!1;else if(K)U.additionalItems=K;if(W>0)U.minItems=W;if(I)U.maxItems=G}let{minimum:z,maximum:Z}=R$(D);if(typeof z==="number")U.minItems=z;if(typeof Z==="number")U.maxItems=Z},nZ,VH=(D,$,J,F)=>{let U=J,X=D._zod.def;U.type="object";let Y=X.keyType,Q=R$(Y).patterns;if(X.mode==="loose"&&Q&&Q.size>0){let W=hD(X.valueType,$,{...F,path:[...F.path,"patternProperties","*"]});U.patternProperties={};for(let G of Q)k$(U.patternProperties,GC(G).source,W)}else{if($.target==="draft-07"||$.target==="draft-2020-12"){U.propertyNames=hD(X.keyType,$,{...F,path:[...F.path,"propertyNames"]});let W=nZ.get($);if(!W)W=[],nZ.set($,W),$.deferred.push(()=>j5D($));W.push(D)}U.additionalProperties=hD(X.valueType,$,{...F,path:[...F.path,"additionalProperties"]})}let q=Y._zod.values,K=$.io==="input"&&R5(X.valueType)!==void 0;if(q&&!X.partial&&!K){let W=[...q].filter((G)=>typeof G==="string"||typeof G==="number");if(W.length>0)U.required=W.map(String)}},LH=(D,$,J,F)=>{let U=D._zod.def,X=hD(U.innerType,$,F),Y=$.seen.get(D);if($.target==="openapi-3.0")Y.ref=U.innerType,J.nullable=!0;else J.anyOf=[X,{type:"null"}]},wH=(D,$,J,F)=>{let U=D._zod.def;hD(U.innerType,$,F);let X=$.seen.get(D);X.ref=U.innerType},RH,MH=(D,$,J,F)=>{let U=D._zod.def;hD(U.innerType,$,F);let X=$.seen.get(D);X.ref=U.innerType;let Y=IC(U.defaultValue,D,$,J,F);if(Y!==RH)J.default=Y},EH=(D,$,J,F)=>{let U=D._zod.def;hD(U.innerType,$,F);let X=$.seen.get(D);if(X.ref=U.innerType,$.io!=="input")return;let Y=IC(U.defaultValue,D,$,J,F);if(Y!==RH)J._prefault=Y},AH=(D,$,J,F)=>{let U=D._zod.def;hD(U.innerType,$,F);let X=$.seen.get(D);X.ref=U.innerType;let Y;try{Y=U.catchValue(void 0)}catch{w$(D,$,J,F,"Dynamic catch values are not supported in JSON Schema");return}J.default=Y},vH=(D,$,J,F)=>{let U=D._zod.def,X=U.in._zod.traits.has("$ZodTransform"),Y=$.io==="input"?X?U.out:U.in:U.out;hD(Y,$,F);let Q=$.seen.get(D);Q.ref=Y},TH=(D,$,J,F)=>{let U=D._zod.def;hD(U.innerType,$,F);let X=$.seen.get(D);X.ref=U.innerType,J.readOnly=!0},bH=(D,$,J,F)=>{let U=D._zod.def;hD(U.innerType,$,F);let X=$.seen.get(D);X.ref=U.innerType},cU=(D,$,J,F)=>{let U=D._zod.def;hD(U.innerType,$,F);let X=$.seen.get(D);X.ref=U.innerType},PH=(D,$,J,F)=>{let U=D._zod.innerType;hD(U,$,F);let X=$.seen.get(D);X.ref=U},iU;var M5=S(()=>{x4();f8();w5();s();H5D={greater_than:(D,$)=>$3(D,$.inclusive?"minimum":"exclusiveMinimum",$.value),less_than:(D,$)=>J3(D,$.inclusive?"maximum":"exclusiveMaximum",$.value),multiple_of:(D,$)=>QC(D,$.value),number_format:YC(y9),bigint_format:YC(h9),min_length:UC,max_length:XC,length_equals:(D,$)=>FC(D,$.length),min_size:UC,max_size:XC,size_equals:(D,$)=>FC(D,$.size),string_format:(D,$)=>{if(WC(D,$.format),$.pattern)qC(D,$.pattern);if($.format==="base64"||$.format==="base64url")D.contentEncoding=$.format;if($.local||$.precision===-1)D.laxFormat=!0},mime_type:(D,$)=>KC(D,$.mime)};B5D={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},O5D=new Map([[sF,xW],[J5,yW]]);nZ=new WeakMap;RH=Symbol();iU={string:pZ,number:rZ,boolean:tZ,bigint:oZ,symbol:aZ,null:sZ,undefined:eZ,void:DH,never:$H,any:JH,unknown:FH,date:UH,enum:XH,literal:YH,nan:QH,template_literal:qH,file:KH,success:WH,custom:GH,function:IH,transform:zH,map:ZH,set:HH,array:BH,object:OH,union:dU,intersection:jH,tuple:NH,record:VH,nullable:LH,nonoptional:wH,default:MH,prefault:EH,catch:AH,pipe:vH,readonly:TH,promise:bH,optional:cU,lazy:PH}});class SH{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(D){this.ctx.counter=D}get seen(){return this.ctx.seen}constructor(D){let $=D?.target??"draft-2020-12";if($==="draft-4")$="draft-04";if($==="draft-7")$="draft-07";this.ctx=T1({processors:iU,target:$,...D?.metadata&&{metadata:D.metadata},...D?.unrepresentable&&{unrepresentable:D.unrepresentable},...D?.override&&{override:D.override},...D?.io&&{io:D.io}})}process(D,$={path:[],schemaPath:[]}){return hD(D,this.ctx,$)}emit(D,$){if($){if($.cycles)this.ctx.cycles=$.cycles;if($.reused)this.ctx.reused=$.reused;if($.external)this.ctx.external=$.external}this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,b1(this.ctx,D);let J=P1(this.ctx,D),{"~standard":F,...U}=J;return U}}var zC=S(()=>{M5();w5()});var ZC={};var HC=()=>{};var l6={};M$(l6,{withParser:()=>ZU,version:()=>RG,validateURL:()=>rF,validateAsync:()=>p9,validate:()=>n9,util:()=>h,urlProtocolOk:()=>oF,urlHostnameOk:()=>tF,treeifyError:()=>OW,toZod:()=>u9,toJSONSchema:()=>nU,toDotPath:()=>D_,stripTabAndNewline:()=>e9,standardProps:()=>pF,safeParseAsync:()=>d2D,safeParse:()=>i2D,safeEncodeAsync:()=>D8D,safeEncode:()=>s2D,safeDecodeAsync:()=>$8D,safeDecode:()=>e2D,registry:()=>zU,regexes:()=>i0,processSchema:()=>hD,process:()=>hD,prettifyError:()=>jW,parseURLObject:()=>L_,parseAsync:()=>vF,parse:()=>AF,meta:()=>mZ,mergeValues:()=>g8,memoizer:()=>K5,locales:()=>Z5,isValidJWT:()=>JU,isValidIPv6:()=>D5,isValidIBAN:()=>$U,isValidCreditCard:()=>DU,isValidCIDRv6:()=>aF,isValidBase64URL:()=>eF,isValidBase64:()=>$5,isRecursiveSchema:()=>GU,isBackEdge:()=>IU,initializeContext:()=>T1,handleUnrepresentable:()=>w$,globalRegistry:()=>C$,globalConfig:()=>T$,getDiscriminatedOption:()=>ZI,formatError:()=>c9,flattenError:()=>d9,finalize:()=>P1,extractDefs:()=>b1,encodeAsync:()=>o2D,encode:()=>r2D,describe:()=>hZ,decodeAsync:()=>a2D,decode:()=>t2D,createToJSONSchemaMethod:()=>dZ,createStandardJSONSchemaMethod:()=>D3,config:()=>I$,compileFn:()=>HU,compile:()=>UZ,clone:()=>xD,canParseURL:()=>PG,base64urlCharset:()=>J5,base64Charset:()=>sF,_xor:()=>n9D,_xid:()=>TU,_void:()=>SZ,_uuidv7:()=>wU,_uuidv6:()=>LU,_uuidv4:()=>VU,_uuid:()=>NU,_url:()=>B5,_uppercase:()=>i8,_unknown:()=>bZ,_union:()=>c9D,_undefined:()=>AZ,_ulid:()=>vU,_uint64:()=>MZ,_uint32:()=>jZ,_tuple:()=>t9D,_trim:()=>o8,_transform:()=>J5D,_toUpperCase:()=>s8,_toLowerCase:()=>a8,_templateLiteral:()=>G5D,_symbol:()=>EZ,_superRefine:()=>yZ,_success:()=>Q5D,_stringbool:()=>lZ,_stringFormat:()=>p4,_string:()=>YZ,_startsWith:()=>c8,_slugify:()=>e8,_size:()=>d4,_set:()=>s9D,_safeParseAsync:()=>k8,_safeParse:()=>_8,_safeEncodeAsync:()=>CF,_safeEncode:()=>_F,_safeDecodeAsync:()=>uF,_safeDecode:()=>kF,_regex:()=>m8,_refine:()=>xZ,_record:()=>o9D,_readonly:()=>W5D,_property:()=>lU,_properties:()=>p8,_promise:()=>z5D,_positive:()=>xU,_pipe:()=>K5D,_parseAsync:()=>S8,_parse:()=>P8,_overwrite:()=>D6,_optional:()=>F5D,_number:()=>IZ,_nullable:()=>U5D,_null:()=>vZ,_normalize:()=>t8,_nonpositive:()=>hU,_nonoptional:()=>Y5D,_nonnegative:()=>mU,_never:()=>PZ,_negative:()=>yU,_nativeEnum:()=>D5D,_nanoid:()=>MU,_nan:()=>CZ,_multipleOf:()=>A1,_minSize:()=>L6,_minLength:()=>m6,_min:()=>E0,_mime:()=>r8,_maxSize:()=>v1,_maxLength:()=>c4,_max:()=>M0,_map:()=>a9D,_mac:()=>qZ,_lte:()=>M0,_lt:()=>N6,_lowercase:()=>l8,_literal:()=>$5D,_length:()=>n4,_lazy:()=>I5D,_ksuid:()=>bU,_jwt:()=>fU,_isoTime:()=>N5,_isoDuration:()=>V5,_isoDateTime:()=>O5,_isoDate:()=>j5,_ipv6:()=>SU,_ipv4:()=>PU,_intersection:()=>r9D,_int64:()=>RZ,_int32:()=>OZ,_int:()=>ZZ,_includes:()=>d8,_iban:()=>WZ,_guid:()=>jU,_gte:()=>E0,_gt:()=>V6,_float64:()=>BZ,_float32:()=>HZ,_file:()=>gZ,_enum:()=>e9D,_endsWith:()=>n8,_encodeAsync:()=>PF,_encode:()=>TF,_emoji:()=>RU,_email:()=>OU,_e164:()=>gU,_discriminatedUnion:()=>p9D,_default:()=>X5D,_decodeAsync:()=>SF,_decode:()=>bF,_date:()=>_Z,_custom:()=>fZ,_cuid2:()=>AU,_cuid:()=>EU,_creditCard:()=>KZ,_coercedString:()=>QZ,_coercedNumber:()=>zZ,_coercedDate:()=>kZ,_coercedBoolean:()=>VZ,_coercedBigint:()=>wZ,_cidrv6:()=>kU,_cidrv4:()=>_U,_check:()=>ok,_catch:()=>q5D,_boolean:()=>NZ,_bigint:()=>LZ,_base64url:()=>uU,_base64:()=>CU,_array:()=>uZ,_any:()=>TZ,ZodCompileUnsupportedError:()=>TD,ZodCompileAsyncError:()=>j6,URL_UNPARSEABLE:()=>s9,URL_BAD_FORMAT:()=>bG,TimePrecision:()=>GZ,NEVER:()=>IW,JSONSchemaGenerator:()=>SH,JSONSchema:()=>ZC,INVALID:()=>J0,Doc:()=>u8,$output:()=>sz,$input:()=>ez,$constructor:()=>T,$brand:()=>zW,$ZodXor:()=>zI,$ZodXID:()=>fG,$ZodVoid:()=>KI,$ZodUnknown:()=>QI,$ZodUnion:()=>U5,$ZodUndefined:()=>UI,$ZodUUID:()=>vG,$ZodURL:()=>SG,$ZodULID:()=>gG,$ZodType:()=>ID,$ZodTuple:()=>XU,$ZodTransform:()=>RI,$ZodTemplateLiteral:()=>CI,$ZodSymbol:()=>FI,$ZodSuccess:()=>bI,$ZodStringFormat:()=>yD,$ZodString:()=>y4,$ZodSet:()=>NI,$ZodRegistry:()=>DZ,$ZodRecord:()=>OI,$ZodRealError:()=>B0,$ZodReadonly:()=>kI,$ZodPromise:()=>gI,$ZodPreprocess:()=>_I,$ZodPrefault:()=>vI,$ZodPipe:()=>QU,$ZodOptional:()=>YU,$ZodObjectJIT:()=>II,$ZodObject:()=>M_,$ZodNumberFormat:()=>$I,$ZodNumber:()=>FU,$ZodNullable:()=>EI,$ZodNull:()=>XI,$ZodNonOptional:()=>TI,$ZodNever:()=>qI,$ZodNanoID:()=>kG,$ZodNaN:()=>SI,$ZodMap:()=>jI,$ZodMAC:()=>cG,$ZodLiteral:()=>LI,$ZodLazy:()=>Y5,$ZodKSUID:()=>xG,$ZodJWT:()=>eG,$ZodIntersection:()=>BI,$ZodISOTime:()=>mG,$ZodISODuration:()=>lG,$ZodISODateTime:()=>yG,$ZodISODate:()=>hG,$ZodIPv6:()=>dG,$ZodIPv4:()=>iG,$ZodIBAN:()=>sG,$ZodGUID:()=>AG,$ZodFunction:()=>uI,$ZodFile:()=>wI,$ZodExactOptional:()=>MI,$ZodError:()=>BW,$ZodEnum:()=>VI,$ZodEncodeError:()=>g4,$ZodEmoji:()=>_G,$ZodEmail:()=>TG,$ZodE164:()=>oG,$ZodDiscriminatedUnion:()=>HI,$ZodDefault:()=>AI,$ZodDate:()=>WI,$ZodCyclicError:()=>hI,$ZodCustomStringFormat:()=>DI,$ZodCustom:()=>fI,$ZodCreditCard:()=>aG,$ZodCodec:()=>X5,$ZodCheckUpperCase:()=>HG,$ZodCheckStringFormat:()=>C8,$ZodCheckStartsWith:()=>OG,$ZodCheckSizeEquals:()=>KG,$ZodCheckRegex:()=>zG,$ZodCheckProperty:()=>NG,$ZodCheckProperties:()=>VG,$ZodCheckOverwrite:()=>wG,$ZodCheckNumberFormat:()=>XG,$ZodCheckMultipleOf:()=>UG,$ZodCheckMinSize:()=>qG,$ZodCheckMinLength:()=>GG,$ZodCheckMimeType:()=>LG,$ZodCheckMaxSize:()=>QG,$ZodCheckMaxLength:()=>WG,$ZodCheckLowerCase:()=>ZG,$ZodCheckLessThan:()=>hF,$ZodCheckLengthEquals:()=>IG,$ZodCheckIncludes:()=>BG,$ZodCheckGreaterThan:()=>mF,$ZodCheckEndsWith:()=>jG,$ZodCheckBigIntFormat:()=>YG,$ZodCheck:()=>nD,$ZodCatch:()=>PI,$ZodCUID2:()=>uG,$ZodCUID:()=>CG,$ZodCIDRv6:()=>pG,$ZodCIDRv4:()=>nG,$ZodBoolean:()=>F5,$ZodBigIntFormat:()=>JI,$ZodBigInt:()=>UU,$ZodBase64URL:()=>tG,$ZodBase64:()=>rG,$ZodAsyncError:()=>R0,$ZodArray:()=>GI,$ZodAny:()=>YI});var A0=S(()=>{s();s();x4();az();M5();zC();HC();E1();VW();NW();f8();mI();lF();MG();H5();tk();ak();w5()});var pU={};M$(pU,{uppercase:()=>i8,trim:()=>o8,toUpperCase:()=>s8,toLowerCase:()=>a8,startsWith:()=>c8,slugify:()=>e8,size:()=>d4,regex:()=>m8,property:()=>lU,properties:()=>p8,positive:()=>xU,overwrite:()=>D6,normalize:()=>t8,nonpositive:()=>hU,nonnegative:()=>mU,negative:()=>yU,multipleOf:()=>A1,minSize:()=>L6,minLength:()=>m6,mime:()=>r8,maxSize:()=>v1,maxLength:()=>c4,lte:()=>M0,lt:()=>N6,lowercase:()=>l8,length:()=>n4,includes:()=>d8,gte:()=>E0,gt:()=>V6,endsWith:()=>n8});var rU=S(()=>{A0()});function tU(D,$,J){Object.defineProperty(D,$,{configurable:!0,enumerable:!1,get(){let F=J(this);return Object.defineProperty(this,$,{value:F,configurable:!0,writable:!0}),F},set(F){Object.defineProperty(this,$,{value:F,configurable:!0,writable:!0})}})}var BC,OC=(D,$)=>{BW.init(D,$),D.name="ZodError";let J=Object.getPrototypeOf(D);if(BC.has(J))return;BC.add(J),tU(J,"format",(F)=>(U)=>c9(F,U)),tU(J,"flatten",(F)=>(U)=>d9(F,U)),tU(J,"addIssue",(F)=>(U)=>{F.issues.push(U),F.message=JSON.stringify(F.issues,A8,2)}),tU(J,"addIssues",(F)=>(U)=>{F.issues.push(...U),F.message=JSON.stringify(F.issues,A8,2)}),Object.defineProperty(J,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}})},V5D,O0;var _H=S(()=>{A0();A0();s();BC=new WeakSet([Object.prototype,Error.prototype]);V5D=T("ZodError",OC),O0=T("ZodError",OC,void 0,{Parent:Error})});var kH,CH,uH,gH,fH,xH,yH,hH,mH,lH,iH,dH;var cH=S(()=>{A0();_H();A0();kH=P8(O0),CH=S8(O0),uH=_8(O0),gH=k8(O0),fH=TF(O0),xH=bF(O0),yH=PF(O0),hH=SF(O0),mH=_F(O0),lH=kF(O0),iH=CF(O0),dH=uF(O0)});var W3={};M$(W3,{xor:()=>Gu,xid:()=>SC,void:()=>Xu,uuidv7:()=>RC,uuidv6:()=>wC,uuidv4:()=>LC,uuid:()=>VC,url:()=>MC,unknown:()=>r4,union:()=>K3,undefined:()=>Fu,ulid:()=>PC,uint64:()=>$u,uint32:()=>sC,tuple:()=>GB,transform:()=>NX,templateLiteral:()=>Eu,symbol:()=>Ju,superRefine:()=>xB,success:()=>Lu,stringbool:()=>ku,stringFormat:()=>dC,string:()=>E5,strictObject:()=>Ku,set:()=>Bu,refine:()=>fB,record:()=>IB,readonly:()=>SB,promise:()=>Au,preprocess:()=>uu,prefault:()=>RB,pipe:()=>aU,partialRecord:()=>zu,optional:()=>t4,object:()=>qu,number:()=>tH,nullish:()=>Vu,nullable:()=>A5,null:()=>DB,nonoptional:()=>MB,never:()=>OX,nativeEnum:()=>Ou,nanoid:()=>vC,nan:()=>wu,meta:()=>Su,map:()=>Hu,mac:()=>CC,looseRecord:()=>Zu,looseObject:()=>Wu,literal:()=>ju,lazy:()=>CB,ksuid:()=>_C,keyof:()=>Qu,jwt:()=>iC,json:()=>Cu,ipv6:()=>uC,ipv4:()=>kC,invertCodec:()=>Mu,intersection:()=>KB,int64:()=>Du,int32:()=>aC,int:()=>oU,instanceof:()=>_u,iban:()=>lC,httpUrl:()=>EC,hostname:()=>cC,hex:()=>nC,hash:()=>rC,guid:()=>NC,function:()=>vu,float64:()=>oC,float32:()=>tC,file:()=>Nu,exactOptional:()=>jB,enum:()=>jX,emoji:()=>AC,email:()=>jC,e164:()=>hC,discriminatedUnion:()=>Iu,describe:()=>Pu,date:()=>Yu,custom:()=>bu,currencyCode:()=>pC,cuid2:()=>bC,cuid:()=>TC,creditCard:()=>mC,codec:()=>Ru,cidrv6:()=>fC,cidrv4:()=>gC,check:()=>Tu,catch:()=>vB,boolean:()=>oH,bigint:()=>eC,base64url:()=>yC,base64:()=>xC,array:()=>b5,any:()=>Uu,_function:()=>vu,_default:()=>LB,_ZodString:()=>sU,ZodXor:()=>YB,ZodXID:()=>YX,ZodVoid:()=>UB,ZodUnknown:()=>JB,ZodUnion:()=>S5,ZodUndefined:()=>sH,ZodUUID:()=>w6,ZodURL:()=>v5,ZodULID:()=>XX,ZodType:()=>ND,ZodTuple:()=>WB,ZodTransform:()=>OB,ZodTemplateLiteral:()=>_B,ZodSymbol:()=>aH,ZodSuccess:()=>EB,ZodStringFormat:()=>dD,ZodString:()=>X3,ZodSet:()=>ZB,ZodRecord:()=>F3,ZodReadonly:()=>PB,ZodPromise:()=>uB,ZodPreprocess:()=>bB,ZodPrefault:()=>wB,ZodPipe:()=>k5,ZodOptional:()=>_5,ZodObject:()=>P5,ZodNumberFormat:()=>s4,ZodNumber:()=>Y3,ZodNullable:()=>NB,ZodNull:()=>eH,ZodNonOptional:()=>LX,ZodNever:()=>FB,ZodNanoID:()=>JX,ZodNaN:()=>TB,ZodMap:()=>zB,ZodMAC:()=>nH,ZodLiteral:()=>HB,ZodLazy:()=>kB,ZodKSUID:()=>QX,ZodJWT:()=>HX,ZodIntersection:()=>qB,ZodInstanceOf:()=>yB,ZodISOTime:()=>k1,ZodISODuration:()=>C1,ZodISODateTime:()=>S1,ZodISODate:()=>_1,ZodIPv6:()=>KX,ZodIPv4:()=>qX,ZodIBAN:()=>rH,ZodGUID:()=>DX,ZodFunction:()=>gB,ZodFile:()=>BB,ZodExactOptional:()=>VX,ZodEnum:()=>U3,ZodEmoji:()=>$X,ZodEmail:()=>eU,ZodE164:()=>ZX,ZodDiscriminatedUnion:()=>QB,ZodDefault:()=>VB,ZodDate:()=>T5,ZodCustomStringFormat:()=>a4,ZodCustom:()=>u5,ZodCreditCard:()=>pH,ZodCodec:()=>C5,ZodCatch:()=>AB,ZodCUID2:()=>UX,ZodCUID:()=>FX,ZodCIDRv6:()=>GX,ZodCIDRv4:()=>WX,ZodBoolean:()=>Q3,ZodBigIntFormat:()=>BX,ZodBigInt:()=>q3,ZodBase64URL:()=>zX,ZodBase64:()=>IX,ZodArray:()=>XB,ZodAny:()=>$B});function w5D(){if(!T$.localeError)I$(W5())}function o4(){if(!T$.memoizer)I$({memoizer:K5()})}function E5(D){return YZ(X3,D)}function jC(D){return OU(eU,D)}function NC(D){return jU(DX,D)}function VC(D){return NU(w6,D)}function LC(D){return VU(w6,D)}function wC(D){return LU(w6,D)}function RC(D){return wU(w6,D)}function MC(D){return B5(v5,D)}function EC(D){return B5(v5,{protocol:r9,hostname:mW,...h.normalizeParams(D)})}function AC(D){return RU($X,D)}function vC(D){return MU(JX,D)}function TC(D){return EU(FX,D)}function bC(D){return AU(UX,D)}function PC(D){return vU(XX,D)}function SC(D){return TU(YX,D)}function _C(D){return bU(QX,D)}function kC(D){return PU(qX,D)}function CC(D){return qZ(nH,D)}function uC(D){return SU(KX,D)}function gC(D){return _U(WX,D)}function fC(D){return kU(GX,D)}function xC(D){return CU(IX,D)}function yC(D){return uU(zX,D)}function hC(D){return gU(ZX,D)}function mC(D){return KZ(pH,D)}function lC(D){return WZ(rH,D)}function iC(D){return fU(HX,D)}function dC(D,$,J={}){return p4(a4,D,$,J)}function cC(D){return p4(a4,"hostname",hW,D)}function nC(D){return p4(a4,"hex",$G,D)}function pC(D){return p4(a4,"currency_code",iW,D)}function rC(D,$){let J=$?.enc??"hex",F=`${D}_${J}`,U=i0[F];if(!U)throw Error(`Unrecognized hash format: ${F}`);return p4(a4,F,U,$)}function tH(D){return IZ(Y3,D)}function oU(D){return ZZ(s4,D)}function tC(D){return HZ(s4,D)}function oC(D){return BZ(s4,D)}function aC(D){return OZ(s4,D)}function sC(D){return jZ(s4,D)}function oH(D){return NZ(Q3,D)}function eC(D){return LZ(q3,D)}function Du(D){return RZ(BX,D)}function $u(D){return MZ(BX,D)}function Ju(D){return EZ(aH,D)}function Fu(D){return AZ(sH,D)}function DB(D){return vZ(eH,D)}function Uu(){return TZ($B)}function r4(){return bZ(JB)}function OX(D){return PZ(FB,D)}function Xu(D){return SZ(UB,D)}function Yu(D){return _Z(T5,D)}function b5(D,$){return uZ(XB,D,$)}function Qu(D){let $=D._zod.def.shape;return jX(Object.keys($))}function qu(D,$){let J={type:"object",shape:D??{},...h.normalizeParams($)};return new P5(J)}function Ku(D,$){return new P5({type:"object",shape:D,catchall:OX(),...h.normalizeParams($)})}function Wu(D,$){return new P5({type:"object",shape:D,catchall:r4(),...h.normalizeParams($)})}function K3(D,$){return new S5({type:"union",options:D,...h.normalizeParams($)})}function Gu(D,$){return new YB({type:"union",options:D,inclusive:!1,...h.normalizeParams($)})}function Iu(D,$,J){return new QB({type:"union",options:$,discriminator:D,...h.normalizeParams(J)})}function KB(D,$){return new qB({type:"intersection",left:D,right:$})}function GB(D,$,J){let F=$ instanceof ID,U=F?J:$;return new WB({type:"tuple",items:D,rest:F?$:null,...h.normalizeParams(U)})}function IB(D,$,J){if(!$||!$._zod)return new F3({type:"record",keyType:E5(),valueType:D,...h.normalizeParams($)});return new F3({type:"record",keyType:D,valueType:$,...h.normalizeParams(J)})}function zu(D,$,J){return new F3({type:"record",keyType:D,valueType:$,...h.normalizeParams(J),partial:!0})}function Zu(D,$,J){return new F3({type:"record",keyType:D,valueType:$,mode:"loose",...h.normalizeParams(J)})}function Hu(D,$,J){return new zB({type:"map",keyType:D,valueType:$,...h.normalizeParams(J)})}function Bu(D,$){return new ZB({type:"set",valueType:D,...h.normalizeParams($)})}function jX(D,$){let J=Array.isArray(D)?Object.fromEntries(D.map((F)=>[F,F])):D;return new U3({type:"enum",entries:J,...h.normalizeParams($)})}function Ou(D,$){return new U3({type:"enum",entries:D,...h.normalizeParams($)})}function ju(D,$){return new HB({type:"literal",values:Array.isArray(D)?D:[D],...h.normalizeParams($)})}function Nu(D){return gZ(BB,D)}function NX(D){return new OB({type:"transform",transform:D})}function t4(D){return new _5({type:"optional",innerType:D})}function jB(D){return new VX({type:"optional",innerType:D})}function A5(D){return new NB({type:"nullable",innerType:D})}function Vu(D){return t4(A5(D))}function LB(D,$){return new VB({type:"default",innerType:D,get defaultValue(){return typeof $==="function"?$():h.shallowClone($)}})}function RB(D,$){return new wB({type:"prefault",innerType:D,get defaultValue(){return typeof $==="function"?$():h.shallowClone($)}})}function MB(D,$){return new LX({type:"nonoptional",innerType:D,...h.normalizeParams($)})}function Lu(D){return new EB({type:"success",innerType:D})}function vB(D,$){return new AB({type:"catch",innerType:D,catchValue:typeof $==="function"?$:h.constantCatch($)})}function wu(D){return CZ(TB,D)}function aU(D,$){return new k5({type:"pipe",in:D,out:$})}function Ru(D,$,J){return new C5({type:"pipe",in:D,out:$,transform:J.decode,reverseTransform:J.encode})}function Mu(D){let $=D._zod.def;return new C5({type:"pipe",in:$.out,out:$.in,transform:$.reverseTransform,reverseTransform:$.transform})}function SB(D){return new PB({type:"readonly",innerType:D})}function Eu(D,$){return new _B({type:"template_literal",parts:D,...h.normalizeParams($)})}function CB(D){return new kB({type:"lazy",getter:D})}function Au(D){return new uB({type:"promise",innerType:D})}function vu(D){return new gB({type:"function",input:Array.isArray(D?.input)?GB(D?.input):D?.input??b5(r4()),output:D?.output??r4()})}function Tu(D){let $=new nD({check:"custom"});return $._zod.check=D,$}function bu(D,$){return fZ(u5,D??(()=>!0),$)}function fB(D,$={}){return xZ(u5,D,$)}function xB(D,$){return yZ(D,$)}function _u(D,$={}){let J=new yB({type:"custom",check:"custom",fn:(F)=>F instanceof D,abort:!0,...h.normalizeParams($)});return J._zod.bag.Class=D,J._zod.check=(F)=>{if(!(F.value instanceof D))F.issues.push({code:"invalid_type",expected:D.name,input:F.value,inst:J,path:[...J._zod.def.path??[]]})},J}function Cu(D){let $=CB(()=>{return K3([E5(D),tH(),oH(),DB(),b5($),IB(E5(),$)])});return $}function uu(D,$){return new bB({type:"pipe",in:NX(D),out:$})}var ND,sU,X3,dD,S1,_1,k1,C1,eU,DX,w6,v5,$X,JX,FX,UX,XX,YX,QX,qX,nH,KX,WX,GX,IX,zX,ZX,pH,rH,HX,a4,Y3,s4,Q3,q3,BX,aH,sH,eH,$B,JB,FB,UB,T5,XB,P5,S5,YB,QB,qB,WB,F3,zB,ZB,U3,HB,BB,OB,_5,VX,NB,VB,wB,LX,EB,AB,TB,k5,C5,bB,PB,_B,kB,uB,gB,u5,Pu,Su,yB,ku=(...D)=>lZ({Codec:C5,Boolean:Q3,String:X3},...D);var u1=S(()=>{A0();A0();M5();x4();w5();eI();rU();cH();ND=T("ZodType",(D,$)=>{return w5D(),ID.init(D,$),D.def=$,D.type=$.type,D},{check(...D){let $=this.def;return this.clone(h.mergeDefs($,{checks:[...$.checks??[],...D.map((J)=>typeof J==="function"?{_zod:{check:J,def:{check:"custom"},onattach:[]}}:J)]}),{parent:!0})},with(...D){return this.check(...D)},clone(D,$){return xD(this,D,$)},brand(){return this},register(D,$){return D.add(this,$),this},refine(D,$){return this.check(fB(D,$))},superRefine(D,$){return this.check(xB(D,$))},overwrite(D){return this.check(D6(D))},optional(){return t4(this)},exactOptional(){return jB(this)},nullable(){return A5(this)},nullish(){return t4(A5(this))},nonoptional(D){return MB(this,D)},array(){return b5(this)},or(D){return K3([this,D])},and(D){return KB(this,D)},transform(D){return aU(this,NX(D))},default(D){return LB(this,D)},prefault(D){return RB(this,D)},catch(D){return vB(this,D)},pipe(D){return aU(this,D)},readonly(){return SB(this)},describe(D){let $=this.clone();return C$.add($,{description:D}),$},meta(...D){if(D.length===0)return C$.get(this);let $=this.clone();return C$.add($,D[0]),$},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(D,...$){return $.length===0?D(this):D(this,...$)},get "~standard"(){return h.hide(this,"~standard",{...pF(this),jsonSchema:{input:D3(this,"input"),output:D3(this,"output")}})},set "~standard"(D){h.own(this,"~standard",D)},parse:function D($,J){return kH(this,$,J,{callee:D})},parseAsync:async function D($,J){return await CH(this,$,J,{callee:D})},safeParse(D,$){return uH(this,D,$)},async safeParseAsync(D,$){return gH(this,D,$)},get spa(){return this?.safeParseAsync},set spa(D){h.own(this,"spa",D)},validate(D,$){return n9(this,D,$)},validateAsync(D,$){return p9(this,D,$)},encode:function D($,J){return fH(this,$,J,{callee:D})},decode:function D($,J){return xH(this,$,J,{callee:D})},encodeAsync:async function D($,J){return await yH(this,$,J,{callee:D})},decodeAsync:async function D($,J){return await hH(this,$,J,{callee:D})},safeEncode(D,$){return mH(this,D,$)},safeDecode(D,$){return lH(this,D,$)},async safeEncodeAsync(D,$){return iH(this,D,$)},async safeDecodeAsync(D,$){return dH(this,D,$)},toJSONSchema(D){return dZ(this,{})(D)},get description(){return C$.get(this)?.description},get _def(){return this._zod.def}}),sU=T("_ZodString",(D,$)=>{y4.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>pZ(D,J,F,U)},h.derived({format:(D)=>R$(D).format??null,minLength:(D)=>R$(D).minimum??null,maxLength:(D)=>R$(D).maximum??null},{regex(...D){return this.check(m8(...D))},includes(...D){return this.check(d8(...D))},startsWith(...D){return this.check(c8(...D))},endsWith(...D){return this.check(n8(...D))},min(...D){return this.check(m6(...D))},max(...D){return this.check(c4(...D))},length(...D){return this.check(n4(...D))},nonempty(...D){return this.check(m6(1,...D))},lowercase(D){return this.check(l8(D))},uppercase(D){return this.check(i8(D))},trim(){return this.check(o8())},normalize(...D){return this.check(t8(...D))},toLowerCase(){return this.check(a8())},toUpperCase(){return this.check(s8())},slugify(){return this.check(e8())}})),X3=T("ZodString",(D,$)=>{y4.init(D,$),sU.init(D,$)},{email(D){return this.check(OU(eU,D))},url(D){return this.check(B5(v5,D))},jwt(D){return this.check(fU(HX,D))},emoji(D){return this.check(RU($X,D))},guid(D){return this.check(jU(DX,D))},uuid(D){return this.check(NU(w6,D))},uuidv4(D){return this.check(VU(w6,D))},uuidv6(D){return this.check(LU(w6,D))},uuidv7(D){return this.check(wU(w6,D))},nanoid(D){return this.check(MU(JX,D))},cuid(D){return this.check(EU(FX,D))},cuid2(D){return this.check(AU(UX,D))},ulid(D){return this.check(vU(XX,D))},base64(D){return this.check(CU(IX,D))},base64url(D){return this.check(uU(zX,D))},xid(D){return this.check(TU(YX,D))},ksuid(D){return this.check(bU(QX,D))},ipv4(D){return this.check(PU(qX,D))},ipv6(D){return this.check(SU(KX,D))},cidrv4(D){return this.check(_U(WX,D))},cidrv6(D){return this.check(kU(GX,D))},e164(D){return this.check(gU(ZX,D))},datetime(D){return this.check(O5(S1,D))},date(D){return this.check(j5(_1,D))},time(D){return this.check(N5(k1,D))},duration(D){return this.check(V5(C1,D))}});dD=T("ZodStringFormat",(D,$)=>{yD.init(D,$),sU.init(D,$)}),S1=T("ZodISODateTime",(D,$)=>{yG.init(D,$),dD.init(D,$)}),_1=T("ZodISODate",(D,$)=>{hG.init(D,$),dD.init(D,$)}),k1=T("ZodISOTime",(D,$)=>{mG.init(D,$),dD.init(D,$)}),C1=T("ZodISODuration",(D,$)=>{lG.init(D,$),dD.init(D,$)}),eU=T("ZodEmail",(D,$)=>{TG.init(D,$),dD.init(D,$)});DX=T("ZodGUID",(D,$)=>{AG.init(D,$),dD.init(D,$)});w6=T("ZodUUID",(D,$)=>{vG.init(D,$),dD.init(D,$)});v5=T("ZodURL",(D,$)=>{SG.init(D,$),dD.init(D,$)});$X=T("ZodEmoji",(D,$)=>{_G.init(D,$),dD.init(D,$)});JX=T("ZodNanoID",(D,$)=>{kG.init(D,$),dD.init(D,$)});FX=T("ZodCUID",(D,$)=>{CG.init(D,$),dD.init(D,$)});UX=T("ZodCUID2",(D,$)=>{uG.init(D,$),dD.init(D,$)});XX=T("ZodULID",(D,$)=>{gG.init(D,$),dD.init(D,$)});YX=T("ZodXID",(D,$)=>{fG.init(D,$),dD.init(D,$)});QX=T("ZodKSUID",(D,$)=>{xG.init(D,$),dD.init(D,$)});qX=T("ZodIPv4",(D,$)=>{iG.init(D,$),dD.init(D,$)});nH=T("ZodMAC",(D,$)=>{cG.init(D,$),dD.init(D,$)});KX=T("ZodIPv6",(D,$)=>{dG.init(D,$),dD.init(D,$)});WX=T("ZodCIDRv4",(D,$)=>{nG.init(D,$),dD.init(D,$)});GX=T("ZodCIDRv6",(D,$)=>{pG.init(D,$),dD.init(D,$)});IX=T("ZodBase64",(D,$)=>{rG.init(D,$),dD.init(D,$)});zX=T("ZodBase64URL",(D,$)=>{tG.init(D,$),dD.init(D,$)});ZX=T("ZodE164",(D,$)=>{oG.init(D,$),dD.init(D,$)});pH=T("ZodCreditCard",(D,$)=>{aG.init(D,$),dD.init(D,$)});rH=T("ZodIBAN",(D,$)=>{sG.init(D,$),dD.init(D,$)});HX=T("ZodJWT",(D,$)=>{eG.init(D,$),dD.init(D,$)});a4=T("ZodCustomStringFormat",(D,$)=>{DI.init(D,$),dD.init(D,$)});Y3=T("ZodNumber",(D,$)=>{FU.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>rZ(D,J,F,U),D.isFinite=!0},h.derived({minValue:(D)=>{let{minimum:$,exclusiveMinimum:J}=R$(D);return Math.max($??Number.NEGATIVE_INFINITY,J??Number.NEGATIVE_INFINITY)},maxValue:(D)=>{let{maximum:$,exclusiveMaximum:J}=R$(D);return Math.min($??Number.POSITIVE_INFINITY,J??Number.POSITIVE_INFINITY)},isInt:(D)=>{let{isInt:$,multipleOf:J}=R$(D);return!!$||!!J?.some(Number.isSafeInteger)},format:(D)=>R$(D).format??null},{gt(D,$){return this.check(V6(D,$))},gte(D,$){return this.check(E0(D,$))},min(D,$){return this.check(E0(D,$))},lt(D,$){return this.check(N6(D,$))},lte(D,$){return this.check(M0(D,$))},max(D,$){return this.check(M0(D,$))},int(D){return this.check(oU(D))},safe(D){return this.check(oU(D))},positive(D){return this.check(V6(0,D))},nonnegative(D){return this.check(E0(0,D))},negative(D){return this.check(N6(0,D))},nonpositive(D){return this.check(M0(0,D))},multipleOf(D,$){return this.check(A1(D,$))},step(D,$){return this.check(A1(D,$))},finite(){return this}}));s4=T("ZodNumberFormat",(D,$)=>{$I.init(D,$),Y3.init(D,$)});Q3=T("ZodBoolean",(D,$)=>{F5.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>tZ(D,J,F,U)});q3=T("ZodBigInt",(D,$)=>{UU.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>oZ(D,J,F,U)},h.derived({minValue:(D)=>R$(D).minimum??null,maxValue:(D)=>R$(D).maximum??null,format:(D)=>R$(D).format??null},{gte(D,$){return this.check(E0(D,$))},min(D,$){return this.check(E0(D,$))},gt(D,$){return this.check(V6(D,$))},lt(D,$){return this.check(N6(D,$))},lte(D,$){return this.check(M0(D,$))},max(D,$){return this.check(M0(D,$))},positive(D){return this.check(V6(BigInt(0),D))},negative(D){return this.check(N6(BigInt(0),D))},nonpositive(D){return this.check(M0(BigInt(0),D))},nonnegative(D){return this.check(E0(BigInt(0),D))},multipleOf(D,$){return this.check(A1(D,$))}}));BX=T("ZodBigIntFormat",(D,$)=>{JI.init(D,$),q3.init(D,$)});aH=T("ZodSymbol",(D,$)=>{FI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>aZ(D,J,F,U)});sH=T("ZodUndefined",(D,$)=>{UI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>eZ(D,J,F,U)});eH=T("ZodNull",(D,$)=>{XI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>sZ(D,J,F,U)});$B=T("ZodAny",(D,$)=>{YI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>JH(D,J,F,U)});JB=T("ZodUnknown",(D,$)=>{QI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>FH(D,J,F,U)});FB=T("ZodNever",(D,$)=>{qI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>$H(D,J,F,U)});UB=T("ZodVoid",(D,$)=>{KI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>DH(D,J,F,U)});T5=T("ZodDate",(D,$)=>{WI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>UH(D,J,F,U),D.min=(J,F)=>D.check(E0(J,F)),D.max=(J,F)=>D.check(M0(J,F))},h.derived({minDate:(D)=>{let{minimum:$}=R$(D);return $?new Date($):null},maxDate:(D)=>{let{maximum:$}=R$(D);return $?new Date($):null}},{}));XB=T("ZodArray",(D,$)=>{o4(),GI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>BH(D,J,F,U),D.element=$.element},{min(D,$){return this.check(m6(D,$))},nonempty(D){return this.check(m6(1,D))},max(D,$){return this.check(c4(D,$))},length(D,$){return this.check(n4(D,$))},unwrap(){return this.element}});P5=T("ZodObject",(D,$)=>{o4(),II.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>OH(D,J,F,U),h.installLazyProp(D,"shape",(J)=>J._zod.def.shape,!1)},{keyof(){return jX(Object.keys(this._zod.def.shape))},catchall(D){return this.clone(h.mergeDefs(this._zod.def,{catchall:D}))},passthrough(){return this.clone(h.mergeDefs(this._zod.def,{catchall:r4()}))},loose(){return this.clone(h.mergeDefs(this._zod.def,{catchall:r4()}))},strict(){return this.clone(h.mergeDefs(this._zod.def,{catchall:OX()}))},strip(){return this.clone(h.mergeDefs(this._zod.def,{catchall:void 0}))},extend(D){return h.extend(this,D)},safeExtend(D){return h.safeExtend(this,D)},merge(D){return h.merge(this,D)},pick(D){return h.pick(this,D)},omit(D){return h.omit(this,D)},partial(...D){return h.partial(_5,this,D[0])},exactPartial(...D){return h.partial(VX,this,D[0],"exactPartial")},required(...D){return h.required(LX,this,D[0])}});S5=T("ZodUnion",(D,$)=>{U5.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>dU(D,J,F,U),D.options=$.options});YB=T("ZodXor",(D,$)=>{S5.init(D,$),zI.init(D,$),D._zod.processJSONSchema=(J,F,U)=>dU(D,J,F,U),D.options=$.options});QB=T("ZodDiscriminatedUnion",(D,$)=>{S5.init(D,$),HI.init(D,$)});qB=T("ZodIntersection",(D,$)=>{BI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>jH(D,J,F,U)});WB=T("ZodTuple",(D,$)=>{o4(),XU.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>NH(D,J,F,U)},{rest(D){return this.clone({...this._zod.def,rest:D})},partial(){let D=this._zod.def;if(D.checks?.length)throw Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...D,items:D.items.map(($)=>new _5({type:"optional",innerType:$}))})}});F3=T("ZodRecord",(D,$)=>{o4(),OI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>VH(D,J,F,U),D.keyType=$.keyType,D.valueType=$.valueType});zB=T("ZodMap",(D,$)=>{o4(),jI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>ZH(D,J,F,U),D.keyType=$.keyType,D.valueType=$.valueType,D.min=(...J)=>D.check(L6(...J)),D.nonempty=(J)=>D.check(L6(1,J)),D.max=(...J)=>D.check(v1(...J)),D.size=(...J)=>D.check(d4(...J))});ZB=T("ZodSet",(D,$)=>{o4(),NI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>HH(D,J,F,U),D.min=(...J)=>D.check(L6(...J)),D.nonempty=(J)=>D.check(L6(1,J)),D.max=(...J)=>D.check(v1(...J)),D.size=(...J)=>D.check(d4(...J))});U3=T("ZodEnum",(D,$)=>{VI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(F,U,X)=>XH(D,F,U,X),D.enum=$.entries,D.options=[...D._zod.values];let J=new Set(Object.keys($.entries));D.extract=(F,U)=>{let X={};for(let Y of F)if(J.has(Y))X[Y]=$.entries[Y];else throw Error(`Key ${Y} not found in enum`);return new U3({...$,checks:[],...h.normalizeParams(U),entries:X})},D.exclude=(F,U)=>{let X={...$.entries};for(let Y of F)if(J.has(Y))delete X[Y];else throw Error(`Key ${Y} not found in enum`);return new U3({...$,checks:[],...h.normalizeParams(U),entries:X})}});HB=T("ZodLiteral",(D,$)=>{LI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>YH(D,J,F,U),D.values=new Set($.values),Object.defineProperty(D,"value",{get(){if($.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return $.values[0]}})});BB=T("ZodFile",(D,$)=>{wI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>KH(D,J,F,U),D.min=(J,F)=>D.check(L6(J,F)),D.max=(J,F)=>D.check(v1(J,F)),D.mime=(J,F)=>D.check(r8(Array.isArray(J)?J:[J],F))});OB=T("ZodTransform",(D,$)=>{o4(),RI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>zH(D,J,F,U),D._zod.parse=(J,F)=>{if(F.direction==="backward")throw new g4(D.constructor.name);J.addIssue=(X)=>{if(typeof X==="string")J.issues.push(h.issue(X,J.value,$));else{let Y=X;if(Y.fatal)Y.continue=!1;if(Y.code??(Y.code="custom"),!("input"in Y))Y.input=J.value;Y.inst??(Y.inst=D),J.issues.push(h.issue(Y))}};let U=$.transform(J.value,J);if(U instanceof Promise)return U.then((X)=>{return J.value=X,J});return J.value=U,J}});_5=T("ZodOptional",(D,$)=>{YU.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>cU(D,J,F,U),D.unwrap=()=>D._zod.def.innerType});VX=T("ZodExactOptional",(D,$)=>{MI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>cU(D,J,F,U),D.unwrap=()=>D._zod.def.innerType});NB=T("ZodNullable",(D,$)=>{EI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>LH(D,J,F,U),D.unwrap=()=>D._zod.def.innerType});VB=T("ZodDefault",(D,$)=>{AI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>MH(D,J,F,U),D.unwrap=()=>D._zod.def.innerType,D.removeDefault=D.unwrap});wB=T("ZodPrefault",(D,$)=>{vI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>EH(D,J,F,U),D.unwrap=()=>D._zod.def.innerType});LX=T("ZodNonOptional",(D,$)=>{TI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>wH(D,J,F,U),D.unwrap=()=>D._zod.def.innerType});EB=T("ZodSuccess",(D,$)=>{bI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>WH(D,J,F,U),D.unwrap=()=>D._zod.def.innerType});AB=T("ZodCatch",(D,$)=>{PI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>AH(D,J,F,U),D.unwrap=()=>D._zod.def.innerType,D.removeCatch=D.unwrap});TB=T("ZodNaN",(D,$)=>{SI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>QH(D,J,F,U)});k5=T("ZodPipe",(D,$)=>{QU.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>vH(D,J,F,U),D.in=$.in,D.out=$.out});C5=T("ZodCodec",(D,$)=>{k5.init(D,$),X5.init(D,$)});bB=T("ZodPreprocess",(D,$)=>{k5.init(D,$),_I.init(D,$)}),PB=T("ZodReadonly",(D,$)=>{kI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>TH(D,J,F,U),D.unwrap=()=>D._zod.def.innerType});_B=T("ZodTemplateLiteral",(D,$)=>{CI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>qH(D,J,F,U)});kB=T("ZodLazy",(D,$)=>{Y5.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>PH(D,J,F,U),D.unwrap=()=>D._zod.def.getter()});uB=T("ZodPromise",(D,$)=>{gI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>bH(D,J,F,U),D.unwrap=()=>D._zod.def.innerType});gB=T("ZodFunction",(D,$)=>{uI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>IH(D,J,F,U)});u5=T("ZodCustom",(D,$)=>{fI.init(D,$),ND.init(D,$),D._zod.processJSONSchema=(J,F,U)=>GH(D,J,F,U)});Pu=hZ,Su=mZ,yB=T("ZodInstanceOf",(D,$)=>{u5.init(D,$)},{properties(D,$){return this.check(p8(D,$))}})});function M5D(D){I$({customError:D})}function E5D(){return I$().customError}var R5D,hB;var gu=S(()=>{A0();R5D={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};(function(D){})(hB||(hB={}))});var g5={};M$(g5,{time:()=>T5D,duration:()=>b5D,datetime:()=>A5D,date:()=>v5D,ZodISOTime:()=>k1,ZodISODuration:()=>C1,ZodISODateTime:()=>S1,ZodISODate:()=>_1});function A5D(D){return O5(S1,D)}function v5D(D){return j5(_1,D)}function T5D(D){return N5(k1,D)}function b5D(D){return V5(C1,D)}var wX=S(()=>{A0();u1();u1()});function S5D(D,$){let J=D.$schema;if(J==="https://json-schema.org/draft/2020-12/schema")return"draft-2020-12";if(J==="http://json-schema.org/draft-07/schema#")return"draft-7";if(J==="http://json-schema.org/draft-04/schema#")return"draft-4";return $??"draft-2020-12"}function fu(D,$){return D.map((J,F)=>F<$?J:J.optional())}function _5D(D){return D.replace(/~1/g,"/").replace(/~0/g,"~")}function k5D(D,$){if(!D.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let J=D.slice(1).split("/").filter(Boolean);if(J.length===0)return $.rootSchema;let F=$.version==="draft-2020-12"?"$defs":"definitions";if(J[0]===F){let U=J[1]===void 0?void 0:_5D(J[1]);if(!U||!$.defs[U])throw Error(`Reference not found: ${D}`);return $.defs[U]}throw Error(`Reference not found: ${D}`)}function C5D(D,$){return JD.transform((F)=>F).check((F)=>{let U=F.value;if(typeof U!=="object"||U===null||Array.isArray(U))return;let X=Object.getOwnPropertyNames(U);if($.minProperties!==void 0&&X.length<$.minProperties)F.issues.push({origin:"object",code:"too_small",minimum:$.minProperties,inclusive:!0,message:`Too small: expected object to have >=${$.minProperties} properties`,input:U,inst:D,continue:!0});if($.maxProperties!==void 0&&X.length>$.maxProperties)F.issues.push({origin:"object",code:"too_big",maximum:$.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${$.maxProperties} properties`,input:U,inst:D,continue:!0});if($.keySchema)for(let Y of X){let Q=$.keySchema.safeParse(Y);if(Q.success)continue;F.issues.push({code:"invalid_key",origin:"record",issues:Q.error.issues,input:Y,path:[Y],continue:!0})}}).pipe(D)}function mB(D,$){if(D===null)return"z";let J=typeof D;if(J!=="object"){if(J==="number"&&Number.isNaN(D))return null;let F=String(D);return`${J[0]}${F.length}:${F}`}if($.has(D))return null;$.add(D);try{if(Array.isArray(D)){let X=[];for(let Y of D){let Q=mB(Y,$);if(Q===null)return null;X.push(Q)}return`a${X.length}:[${X.join(",")}]`}let F=Object.keys(D).sort(),U=[];for(let X of F){let Y=mB(D[X],$);if(Y===null)return null;U.push(`${X.length}:${X}=${Y}`)}return`o${U.length}:{${U.join(",")}}`}finally{$.delete(D)}}function f5(D){if(typeof D!=="object"||D===null)return!1;if(Array.isArray(D))return D.some(f5);if(typeof D.$ref==="string")return!0;return Object.entries(D).some(([$,J])=>{if(u5D.has($))return f5(J);if(!g5D.has($)||typeof J!=="object"||J===null)return!1;return Object.values(J).some(f5)})}function xu(D){return D===1?"element":"elements"}function f5D(D,$){return JD.transform((F)=>F).check((F)=>{let U=F.value;if(!Array.isArray(U))return;if($.uniqueItems===!0){let X=new Map;for(let Y=0;Y<U.length;Y++){let Q=mB(U[Y],new Set);if(Q===null)continue;let q=X.get(Q);if(q===void 0){X.set(Q,Y);continue}F.issues.push({code:"custom",message:`Array items must be unique: element at index ${Y} duplicates the one at index ${q}`,input:U,path:[Y],continue:!0})}}if($.containsSchema){let X=$.minContains??1,Y=$.maxContains!==void 0?$.maxContains+1:Number.POSITIVE_INFINITY,Q=0;for(let q of U)if($.containsSchema.safeParse(q).success&&++Q>=Y)break;if(Q<X)F.issues.push({code:"custom",message:`Array must contain at least ${X} matching ${xu(X)}; found ${Q}`,input:U,continue:!0});if($.maxContains!==void 0&&Q>$.maxContains)F.issues.push({code:"custom",message:`Array must contain at most ${$.maxContains} matching ${xu($.maxContains)}`,input:U,continue:!0})}}).pipe(D)}function yu(D,$){if(D===!1)return;if(D===void 0||D===!0)return JD.any();return U0(D,$)}function hu(D,$){if(D.not!==void 0){if(typeof D.not==="object"&&Object.keys(D.not).length===0)return JD.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(D.unevaluatedItems!==void 0)throw Error("unevaluatedItems is not supported");if(D.unevaluatedProperties!==void 0)throw Error("unevaluatedProperties is not supported");if(D.if!==void 0||D.then!==void 0||D.else!==void 0)throw Error("Conditional schemas (if/then/else) are not supported");if(D.dependentSchemas!==void 0||D.dependentRequired!==void 0)throw Error("dependentSchemas and dependentRequired are not supported");if(D.$ref){let U=D.$ref;if($.refs.has(U))return $.refs.get(U);if($.processing.has(U))return JD.lazy(()=>{if(!$.refs.has(U))throw Error(`Circular reference not resolved: ${U}`);return $.refs.get(U)});$.processing.add(U);let X=k5D(U,$),Y=U0(X,$);return $.refs.set(U,Y),$.processing.delete(U),Y}if(D.enum!==void 0){let U=D.enum;if($.version==="openapi-3.0"&&D.nullable===!0&&U.length===1&&U[0]===null)return JD.null();if(U.length===0)return JD.never();if(U.length===1)return JD.literal(U[0]);if(U.every((Y)=>typeof Y==="string"))return JD.enum(U);let X=U.map((Y)=>JD.literal(Y));if(X.length<2)return X[0];return JD.union([X[0],X[1],...X.slice(2)])}if(D.const!==void 0)return JD.literal(D.const);let J=D.type;if(Array.isArray(J)){let U=J.map((X)=>{let Y={...D,type:X};return hu(Y,$)});if(U.length===0)return JD.never();if(U.length===1)return U[0];return JD.union(U)}if(!J)return JD.any();let F;switch(J){case"string":{let U=JD.string();if(D.format){let X=D.format;if(X==="email")U=U.check(JD.email());else if(X==="uri"||X==="uri-reference")U=U.check(JD.url());else if(X==="uuid"||X==="guid")U=U.check(JD.uuid());else if(X==="date-time")U=U.check(JD.iso.datetime({offset:!0}));else if(X==="date")U=U.check(JD.iso.date());else if(X==="time")U=U.check(JD.regex(x5D));else if(X==="duration")U=U.check(JD.iso.duration());else if(X==="hostname")U=U.check(JD.hostname());else if(X==="ipv4")U=U.check(JD.ipv4());else if(X==="ipv6")U=U.check(JD.ipv6());else if(X==="mac")U=U.check(JD.mac());else if(X==="cidr")U=U.check(JD.cidrv4());else if(X==="cidr-v6")U=U.check(JD.cidrv6());else if(X==="base64")U=U.check(JD.base64());else if(X==="base64url")U=U.check(JD.base64url());else if(X==="e164")U=U.check(JD.e164());else if(X==="credit_card")U=U.check(JD.creditCard());else if(X==="iban")U=U.check(JD.iban());else if(X==="jwt")U=U.check(JD.jwt());else if(X==="emoji")U=U.check(JD.emoji());else if(X==="nanoid")U=U.check(JD.nanoid());else if(X==="cuid")U=U.check(JD.cuid());else if(X==="cuid2")U=U.check(JD.cuid2());else if(X==="ulid")U=U.check(JD.ulid());else if(X==="xid")U=U.check(JD.xid());else if(X==="ksuid")U=U.check(JD.ksuid())}if(typeof D.minLength==="number")U=U.min(D.minLength);if(typeof D.maxLength==="number")U=U.max(D.maxLength);if(D.pattern)U=U.regex(new RegExp(D.pattern));F=U;break}case"number":case"integer":{let U=J==="integer"?JD.number().int():JD.number();if(typeof D.minimum==="number"&&D.exclusiveMinimum!==!0)U=U.min(D.minimum);if(typeof D.maximum==="number"&&D.exclusiveMaximum!==!0)U=U.max(D.maximum);if(typeof D.exclusiveMinimum==="number")U=U.gt(D.exclusiveMinimum);else if(D.exclusiveMinimum===!0&&typeof D.minimum==="number")U=U.gt(D.minimum);if(typeof D.exclusiveMaximum==="number")U=U.lt(D.exclusiveMaximum);else if(D.exclusiveMaximum===!0&&typeof D.maximum==="number")U=U.lt(D.maximum);if(typeof D.multipleOf==="number")U=U.multipleOf(D.multipleOf);F=U;break}case"boolean":{F=JD.boolean();break}case"null":{F=JD.null();break}case"object":{let U={},X=D.properties||{},Y=new Set(D.required||[]),Q=typeof D.additionalProperties==="object"?U0(D.additionalProperties,$):void 0;for(let[G,I]of Object.entries(X)){let z=U0(I,$);k$(U,G,Y.has(G)?z:z.optional())}if(D.patternProperties){let G=D.patternProperties,I=Object.keys(G),z=[];for(let H of I){let B=U0(G[H],$),j=JD.string().regex(new RegExp(H));z.push(JD.looseRecord(j,B))}let Z=[];if(Object.keys(U).length>0)Z.push(JD.object(U).passthrough());if(Z.push(...z),Z.length===0)F=JD.object({}).passthrough();else if(Z.length===1)F=Z[0];else{let H=JD.intersection(Z[0],Z[1]);for(let B=2;B<Z.length;B++)H=JD.intersection(H,Z[B]);F=H}if(D.additionalProperties===!1){let H=Object.keys(U),B=I.map((N)=>new RegExp(N)),j=F;F=F.check((N)=>{if(!m0(N.value))return;let O=[];for(let L of Object.keys(N.value)){if(H.includes(L))continue;if(B.some((A)=>A.test(L)))continue;O.push(L)}if(O.length)N.issues.push({code:"unrecognized_keys",keys:O,input:N.value,inst:j})})}}else{let G=JD.object(U);if(D.additionalProperties===!1)F=G.strict();else if(Q)F=G.catchall(Q);else F=G.passthrough()}let q=D.propertyNames!==void 0&&D.propertyNames!==!0,K=typeof D.minProperties==="number"?D.minProperties:void 0,W=typeof D.maxProperties==="number"?D.maxProperties:void 0;if(q||K!==void 0||W!==void 0){let G;if(q){let I=typeof D.propertyNames==="object"&&D.propertyNames.type===void 0?{type:"string",...D.propertyNames}:D.propertyNames;G=U0(I,$)}F=C5D(F,{keySchema:G,minProperties:K,maxProperties:W})}break}case"array":{let{prefixItems:U,items:X}=D;if(U&&Array.isArray(U)){let Y=typeof D.minItems==="number"?D.minItems:0,Q=U.map((G)=>U0(G,$)),q=fu(Q,Y),K=!Array.isArray(X)?yu(X,$):void 0,W=JD.tuple(q);if(F=K?W.rest(K):W,typeof D.minItems==="number")F=F.check(JD.minLength(D.minItems));if(typeof D.maxItems==="number")F=F.check(JD.maxLength(D.maxItems))}else if(Array.isArray(X)){let Y=typeof D.minItems==="number"?D.minItems:0,Q=X.map((G)=>U0(G,$)),q=fu(Q,Y),K=yu(D.additionalItems,$),W=JD.tuple(q);if(F=K?W.rest(K):W,typeof D.minItems==="number")F=F.check(JD.minLength(D.minItems));if(typeof D.maxItems==="number")F=F.check(JD.maxLength(D.maxItems))}else if(X!==void 0){let Y=U0(X,$),Q=JD.array(Y);if(typeof D.minItems==="number")Q=Q.min(D.minItems);if(typeof D.maxItems==="number")Q=Q.max(D.maxItems);F=Q}else F=JD.array(JD.any());if(D.uniqueItems===!0||D.contains!==void 0)F=f5D(F,{uniqueItems:D.uniqueItems===!0,containsSchema:D.contains!==void 0?U0(D.contains,$):void 0,minContains:typeof D.minContains==="number"?D.minContains:void 0,maxContains:typeof D.maxContains==="number"?D.maxContains:void 0});break}default:throw Error(`Unsupported type: ${J}`)}return F}function U0(D,$){if(typeof D==="boolean")return D?JD.any():JD.never();let J=hu(D,$),F=D.type||D.enum!==void 0||D.const!==void 0;if(D.anyOf&&Array.isArray(D.anyOf)){let Q=D.anyOf.map((K)=>U0(K,$)),q=JD.union(Q);J=F?JD.intersection(J,q):q}if(D.oneOf&&Array.isArray(D.oneOf)){let Q=D.oneOf.map((K)=>U0(K,$)),q=JD.xor(Q);J=F?JD.intersection(J,q):q}if(D.allOf&&Array.isArray(D.allOf))if(D.allOf.length===0)J=F?J:JD.any();else{let Q=F?J:U0(D.allOf[0],$),q=F?0:1;for(let K=q;K<D.allOf.length;K++)Q=JD.intersection(Q,U0(D.allOf[K],$));J=Q}if(D.nullable===!0&&$.version==="openapi-3.0")J=JD.nullable(J);if(D.readOnly===!0)J=JD.readonly(J);if(D.default!==void 0)J=J.default(D.default);let U={},X=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let Q of X)if(Q in D)U[Q]=D[Q];let Y=["contentEncoding","contentMediaType","contentSchema"];for(let Q of Y)if(Q in D)U[Q]=D[Q];if(D.type==="object"&&D.$ref===void 0){if(D.propertyNames!==void 0&&!f5(D.propertyNames))U.propertyNames=D.propertyNames;for(let Q of["minProperties","maxProperties"])if(D[Q]!==void 0)U[Q]=D[Q]}if(D.type==="array"&&D.$ref===void 0){if(D.contains!==void 0&&!f5(D.contains))U.contains=D.contains;for(let Q of["uniqueItems","minContains","maxContains"])if(D[Q]!==void 0)U[Q]=D[Q]}for(let Q of Object.keys(D))if(!P5D.has(Q))k$(U,Q,D[Q]);if(Object.keys(U).length>0)$.registry.add(J,U);if(D.description)J=J.describe(D.description);return J}function mu(D,$){if(typeof D==="boolean")return D?JD.any():JD.never();let J;try{J=JSON.parse(JSON.stringify(D))}catch{throw Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let F=S5D(J,$?.defaultTarget),U=J.$defs||J.definitions||{},X={version:F,defs:U,refs:new Map,processing:new Set,rootSchema:J,registry:$?.registry??C$};return U0(J,X)}var JD,P5D,u5D,g5D,x5D;var lu=S(()=>{H5();s();rU();wX();u1();JD={...W3,...pU,iso:g5},P5D=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);u5D=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),g5D=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);x5D=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/});function x5(D,$){let J=typeof $==="function"?$:(Y,Q)=>{let q=$[Y._zod.def.type];return q?q(Y,Q):Y},F=new Map;function U(Y){let Q=F.get(Y);if(Q===iu)return new Y5({type:"lazy",getter:()=>F.get(Y)});if(Q!==void 0)return Q;F.set(Y,iu);let q=X(Y),K=J(q,q!==Y);return F.set(Y,K),K}function X(Y){let Q=Y._zod.def,q=Q.type;switch(q){case"object":{let K=Q.shape,W=Object.keys(K),G=!1,I={};for(let Z of W){let H=U(K[Z]);if(H!==K[Z])G=!0;I[Z]=H}let z=Q.catchall;if(Q.catchall){if(z=U(Q.catchall),z!==Q.catchall)G=!0}return G?xD(Y,{...Q,shape:I,catchall:z}):Y}case"array":{let K=U(Q.element);return K===Q.element?Y:xD(Y,{...Q,element:K})}case"tuple":{let K=Q.items,W=!1,G=[];for(let z of K){let Z=U(z);if(Z!==z)W=!0;G.push(Z)}let I=Q.rest;if(Q.rest){if(I=U(Q.rest),I!==Q.rest)W=!0}return W?xD(Y,{...Q,items:G,rest:I}):Y}case"record":case"map":{let K=U(Q.keyType),W=U(Q.valueType);return K===Q.keyType&&W===Q.valueType?Y:xD(Y,{...Q,keyType:K,valueType:W})}case"set":{let K=U(Q.valueType);return K===Q.valueType?Y:xD(Y,{...Q,valueType:K})}case"union":{let K=Q.options,W=!1,G=[];for(let I of K){let z=U(I);if(z!==I)W=!0;G.push(z)}return W?xD(Y,{...Q,options:G}):Y}case"intersection":{let K=U(Q.left),W=U(Q.right);return K===Q.left&&W===Q.right?Y:xD(Y,{...Q,left:K,right:W})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let K=U(Q.innerType);return K===Q.innerType?Y:xD(Y,{...Q,innerType:K})}case"pipe":{let K=U(Q.in),W=U(Q.out);return K===Q.in&&W===Q.out?Y:xD(Y,{...Q,in:K,out:W})}case"function":{let K=U(Q.input),W=U(Q.output);return K===Q.input&&W===Q.output?Y:xD(Y,{...Q,input:K,output:W})}case"lazy":{let K=Q.getter,{_cachedInner:W,...G}=Q;return xD(Y,{...G,getter:()=>U(K())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return Y;default:return Y}}return U(D)}var iu;var lB=S(()=>{f8();s();iu=Symbol("z.visit/resolving")});function du(D){return x5(D,{object:($)=>$.partial(),union:($)=>{let J=$._zod.def;return J.discriminator===void 0?$:K3(J.options)}})}var cu=S(()=>{lB();u1()});function y5D(D,$){if(!$?.length)return D;let J=D._zod.def;return xD(D,e0(J,{checks:[...J.checks??[],...$]}),{parent:!0})}function nu(D){return y5D(D.out,D.checks)}function h5D(D){return D.in._zod.traits.has("$ZodTransform")?nu(D):D.in}function pu(D){return x5(D,{pipe:($)=>h5D($._zod.def),default:($,J)=>J?t4($._zod.def.innerType):$,catch:($,J)=>J?$._zod.def.innerType:$})}function ru(D){return x5(D,{pipe:($)=>nu($._zod.def),prefault:($,J)=>J?$._zod.def.innerType:$})}var tu=S(()=>{s();lB();u1()});var iB={};M$(iB,{string:()=>m5D,number:()=>l5D,date:()=>c5D,boolean:()=>i5D,bigint:()=>d5D});function m5D(D){return QZ(X3,D)}function l5D(D){return zZ(Y3,D)}function i5D(D){return VZ(Q3,D)}function d5D(D){return wZ(q3,D)}function c5D(D){return kZ(T5,D)}var ou=S(()=>{A0();u1()});var CD={};M$(CD,{xor:()=>Gu,xid:()=>SC,withParser:()=>ZU,void:()=>Xu,validateAsync:()=>p9,validate:()=>n9,uuidv7:()=>RC,uuidv6:()=>wC,uuidv4:()=>LC,uuid:()=>VC,util:()=>h,url:()=>MC,uppercase:()=>i8,unknown:()=>r4,union:()=>K3,undefined:()=>Fu,ulid:()=>PC,uint64:()=>$u,uint32:()=>sC,tuple:()=>GB,trim:()=>o8,treeifyError:()=>OW,transform:()=>NX,toZod:()=>u9,toUpperCase:()=>s8,toLowerCase:()=>a8,toJSONSchema:()=>nU,templateLiteral:()=>Eu,symbol:()=>Ju,superRefine:()=>xB,success:()=>Lu,stringbool:()=>ku,stringFormat:()=>dC,string:()=>E5,strictObject:()=>Ku,startsWith:()=>c8,slugify:()=>e8,size:()=>d4,setErrorMap:()=>M5D,set:()=>Bu,safeParseAsync:()=>gH,safeParse:()=>uH,safeEncodeAsync:()=>iH,safeEncode:()=>mH,safeDecodeAsync:()=>dH,safeDecode:()=>lH,registry:()=>zU,regexes:()=>i0,regex:()=>m8,refine:()=>fB,record:()=>IB,readonly:()=>SB,property:()=>lU,properties:()=>p8,promise:()=>Au,prettifyError:()=>jW,preprocess:()=>uu,prefault:()=>RB,positive:()=>xU,pipe:()=>aU,partialRecord:()=>zu,parseAsync:()=>CH,parse:()=>kH,overwrite:()=>D6,output:()=>ru,optional:()=>t4,object:()=>qu,number:()=>tH,nullish:()=>Vu,nullable:()=>A5,null:()=>DB,normalize:()=>t8,nonpositive:()=>hU,nonoptional:()=>MB,nonnegative:()=>mU,never:()=>OX,negative:()=>yU,nativeEnum:()=>Ou,nanoid:()=>vC,nan:()=>wu,multipleOf:()=>A1,minSize:()=>L6,minLength:()=>m6,mime:()=>r8,meta:()=>Su,memoizer:()=>K5,maxSize:()=>v1,maxLength:()=>c4,map:()=>Hu,mac:()=>CC,lte:()=>M0,lt:()=>N6,lowercase:()=>l8,looseRecord:()=>Zu,looseObject:()=>Wu,locales:()=>Z5,literal:()=>ju,length:()=>n4,lazy:()=>CB,ksuid:()=>_C,keyof:()=>Qu,jwt:()=>iC,json:()=>Cu,iso:()=>g5,ipv6:()=>uC,ipv4:()=>kC,invertCodec:()=>Mu,intersection:()=>KB,int64:()=>Du,int32:()=>aC,int:()=>oU,instanceof:()=>_u,input:()=>pu,includes:()=>d8,iban:()=>lC,httpUrl:()=>EC,hostname:()=>cC,hex:()=>nC,hash:()=>rC,guid:()=>NC,gte:()=>E0,gt:()=>V6,globalRegistry:()=>C$,getErrorMap:()=>E5D,getDiscriminatedOption:()=>ZI,function:()=>vu,fromJSONSchema:()=>mu,formatError:()=>c9,float64:()=>oC,float32:()=>tC,flattenError:()=>d9,file:()=>Nu,exactOptional:()=>jB,enum:()=>jX,endsWith:()=>n8,encodeAsync:()=>yH,encode:()=>fH,emoji:()=>AC,email:()=>jC,e164:()=>hC,discriminatedUnion:()=>Iu,describe:()=>Pu,deepPartial:()=>du,decodeAsync:()=>hH,decode:()=>xH,date:()=>Yu,custom:()=>bu,currencyCode:()=>pC,cuid2:()=>bC,cuid:()=>TC,creditCard:()=>mC,core:()=>l6,config:()=>I$,compile:()=>UZ,coerce:()=>iB,codec:()=>Ru,clone:()=>xD,cidrv6:()=>fC,cidrv4:()=>gC,check:()=>Tu,catch:()=>vB,boolean:()=>oH,bigint:()=>eC,base64url:()=>yC,base64:()=>xC,array:()=>b5,any:()=>Uu,_function:()=>vu,_default:()=>LB,_ZodString:()=>sU,ZodXor:()=>YB,ZodXID:()=>YX,ZodVoid:()=>UB,ZodUnknown:()=>JB,ZodUnion:()=>S5,ZodUndefined:()=>sH,ZodUUID:()=>w6,ZodURL:()=>v5,ZodULID:()=>XX,ZodType:()=>ND,ZodTuple:()=>WB,ZodTransform:()=>OB,ZodTemplateLiteral:()=>_B,ZodSymbol:()=>aH,ZodSuccess:()=>EB,ZodStringFormat:()=>dD,ZodString:()=>X3,ZodSet:()=>ZB,ZodRecord:()=>F3,ZodRealError:()=>O0,ZodReadonly:()=>PB,ZodPromise:()=>uB,ZodPreprocess:()=>bB,ZodPrefault:()=>wB,ZodPipe:()=>k5,ZodOptional:()=>_5,ZodObject:()=>P5,ZodNumberFormat:()=>s4,ZodNumber:()=>Y3,ZodNullable:()=>NB,ZodNull:()=>eH,ZodNonOptional:()=>LX,ZodNever:()=>FB,ZodNanoID:()=>JX,ZodNaN:()=>TB,ZodMap:()=>zB,ZodMAC:()=>nH,ZodLiteral:()=>HB,ZodLazy:()=>kB,ZodKSUID:()=>QX,ZodJWT:()=>HX,ZodIssueCode:()=>R5D,ZodIntersection:()=>qB,ZodInstanceOf:()=>yB,ZodISOTime:()=>k1,ZodISODuration:()=>C1,ZodISODateTime:()=>S1,ZodISODate:()=>_1,ZodIPv6:()=>KX,ZodIPv4:()=>qX,ZodIBAN:()=>rH,ZodGUID:()=>DX,ZodFunction:()=>gB,ZodFirstPartyTypeKind:()=>hB,ZodFile:()=>BB,ZodExactOptional:()=>VX,ZodError:()=>V5D,ZodEnum:()=>U3,ZodEmoji:()=>$X,ZodEmail:()=>eU,ZodE164:()=>ZX,ZodDiscriminatedUnion:()=>QB,ZodDefault:()=>VB,ZodDate:()=>T5,ZodCustomStringFormat:()=>a4,ZodCustom:()=>u5,ZodCreditCard:()=>pH,ZodCompileUnsupportedError:()=>TD,ZodCompileAsyncError:()=>j6,ZodCodec:()=>C5,ZodCatch:()=>AB,ZodCUID2:()=>UX,ZodCUID:()=>FX,ZodCIDRv6:()=>GX,ZodCIDRv4:()=>WX,ZodBoolean:()=>Q3,ZodBigIntFormat:()=>BX,ZodBigInt:()=>q3,ZodBase64URL:()=>zX,ZodBase64:()=>IX,ZodArray:()=>XB,ZodAny:()=>$B,TimePrecision:()=>GZ,NEVER:()=>IW,INVALID:()=>J0,$output:()=>sz,$input:()=>ez,$brand:()=>zW});var dB=S(()=>{A0();A0();M5();lu();cu();tu();az();wX();wX();ou();u1();rU();_H();cH();gu()});var au=S(()=>{dB();dB()});function VED(D,$,J){let F=J.filter((X)=>D[X]===!0);if(F.length<2)return;let U=String(F[0]);for(let X of F.slice(1))$.addIssue({code:"custom",message:`not used together with "${U}"`,path:[X]})}var su,n5D,LED,wED,RED,MED;var eu=S(()=>{au();su=CD.object({name:CD.string().min(1),version:CD.string().min(1),requested_version:CD.string().optional(),ios_checksum:CD.string().optional(),android_checksum:CD.string().optional()}),n5D=CD.enum(["new_plugin","removed_plugin","version_mismatch","requested_version_changed","ios_code_changed","android_code_changed","both_platforms_changed","platform_checksum_metadata_changed"]),LED=CD.object({name:CD.string(),localVersion:CD.string().optional(),remoteVersion:CD.string().optional(),localRequestedVersion:CD.string().optional(),remoteRequestedVersion:CD.string().optional(),localIosChecksum:CD.string().optional(),remoteIosChecksum:CD.string().optional(),localAndroidChecksum:CD.string().optional(),remoteAndroidChecksum:CD.string().optional()}),wED=CD.object({compatible:CD.boolean(),reasons:n5D.array(),message:CD.string()}),RED=CD.object({isSecurityPolicyError:CD.boolean(),errorCode:CD.string(),message:CD.string()}),MED=CD.record(CD.string(),CD.string()).transform((D,$)=>{if(D===null||typeof D!=="object"||Array.isArray(D)||Object.getPrototypeOf(D)!==Object.prototype)return $.addIssue({code:"custom",message:"a plain object of locale keys to release notes"}),CD.NEVER;let J=Object.create(null);for(let[F,U]of Object.entries(D)){let X=F.trim(),Y=U.trim();if(!X)return $.addIssue({code:"custom",message:"a non-empty locale key"}),CD.NEVER;if(!Y)return $.addIssue({code:"custom",message:"a non-empty release note"}),CD.NEVER;if(Object.hasOwn(J,X))return $.addIssue({code:"custom",message:`a unique locale key (duplicate after trim: "${X}")`}),CD.NEVER;J[X]=Y}return J})});function p5D(D){if(typeof D?.then==="function")throw TypeError("Expected synchronous schema validation result");return D}function cB(D,$){let J=p5D(D["~standard"].validate($));if(J.issues)return{success:!1,error:new Dg(J.issues)};return{success:!0,data:J.value}}function AED(D,$){let J=cB(D,$);if(!J.success)throw J.error;return J.data}var Dg;var $g=S(()=>{Dg=class Dg extends Error{issues;constructor(D){super(D.map(($)=>$.message).join("; ")||"Schema validation failed");this.name="SchemaError",this.issues=D}}});function RX(D){let $=D.replace(r5D,"[REDACTED PRIVATE KEY]");for(let{re:J,replace:F}of t5D)$=$.replace(J,F);return $}var r5D,t5D;var Jg=S(()=>{r5D=/-----BEGIN [^-]+-----[\s\S]*?-----END [^-]+-----/g,t5D=[{re:/(authorization\s*:\s*bearer\s+)[\w.\-+/=]+/gi,replace:"$1[REDACTED]"},{re:/\bcapg_[A-Za-z0-9]{8,}\b/g,replace:"[REDACTED]"},{re:/(capgkey\s*[=:]\s*)[\w-]{6,}/gi,replace:"$1[REDACTED]"},{re:/\b(api[_-]?key|secret|token|password|passwd|pwd)(\s*[=:]\s*)["']?[\w.\-+/=]{6,}["']?/gi,replace:"$1$2[REDACTED]"},{re:/("(?:access_token|refresh_token|id_token|client_secret|private[_-]?key|apple_key_content|api[_-]?key|token|secret|password|p8|pem)"\s*:\s*")[^"]+(")/gi,replace:"$1[REDACTED]$2"}]});function o5D(D){return Object.values(MX).includes(D)}function nB(D){let $="",J="";if(typeof D==="string")$=D,J=D;else if(D&&typeof D==="object"){let F=D;$=String(F.error||F.code||F.errorCode||""),J=String(F.message||F.error||"")}if(o5D($))return{isSecurityPolicyError:!0,errorCode:$,message:Fg[$]||J};for(let[F,U]of Object.entries(Fg))if(J.includes(F))return{isSecurityPolicyError:!0,errorCode:F,message:U};return{isSecurityPolicyError:!1,errorCode:$,message:J}}function Ug(D){let $=nB(D);if($.isSecurityPolicyError)return`
❌ Security Policy Error: ${$.errorCode}
${$.message}
`;return $.message||"An unknown error occurred"}var MX,Fg;var Xg=S(()=>{MX={ORG_REQUIRES_EXPIRING_KEY:"org_requires_expiring_key",EXPIRATION_REQUIRED:"expiration_required",EXPIRATION_EXCEEDS_MAX:"expiration_exceeds_max"},Fg={[MX.ORG_REQUIRES_EXPIRING_KEY]:`This organization requires API keys with expiration dates.
Please generate a new API key with an expiration:
1. Go to https://console.capgo.app/dashboard/apikeys
2. Create a new API key with an expiration date
3. Update your CLI configuration with: capgo login [new-key]
4. Try this command again`,[MX.EXPIRATION_REQUIRED]:`This organization requires API keys to have an expiration date.
Please generate a new API key with an expiration:
1. Go to https://console.capgo.app/dashboard/apikeys
2. Create a new API key with an expiration date
3. Update your CLI configuration with: capgo login [new-key]
4. Try this command again`,[MX.EXPIRATION_EXCEEDS_MAX]:`Your API key expiration date exceeds the maximum allowed by this organization.
Please generate a new API key with a shorter expiration:
1. Go to https://console.capgo.app/dashboard/apikeys
2. Create a new API key with a valid expiration date
3. Update your CLI configuration with: capgo login [new-key]
4. Try this command again`}});import Yg from"node:fs";function a5D(){try{return Yg.statSync("/.dockerenv"),!0}catch{return!1}}function s5D(){try{return Yg.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function rB(){if(pB===void 0)pB=a5D()||s5D();return pB}var pB;var Qg=()=>{};import e5D from"node:fs";function e4(){if(tB===void 0)tB=D7D()||rB();return tB}var tB,D7D=()=>{try{return e5D.statSync("/run/.containerenv"),!0}catch{return!1}};var oB=S(()=>{Qg()});import Kg from"node:process";import $7D from"node:os";import aB from"node:fs";var qg=()=>{if(Kg.platform!=="linux")return!1;if($7D.release().toLowerCase().includes("microsoft")){if(e4())return!1;return!0}try{if(aB.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft"))return!e4()}catch{}if(aB.existsSync("/proc/sys/fs/binfmt_misc/WSLInterop")||aB.existsSync("/run/WSL"))return!e4();return!1},i6;var sB=S(()=>{oB();i6=Kg.env.__IS_WSL_TEST__?qg:qg()});import Wg from"node:process";import{Buffer as J7D}from"node:buffer";import{promisify as F7D}from"node:util";import U7D from"node:child_process";var X7D,eB=()=>`${Wg.env.SYSTEMROOT||Wg.env.windir||String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,v0=async(D,$={})=>{let{powerShellPath:J,...F}=$,U=v0.encodeCommand(D);return X7D(J??eB(),[...v0.argumentsPrefix,U],{encoding:"utf8",...F})};var DO=S(()=>{X7D=F7D(U7D.execFile);v0.argumentsPrefix=["-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"];v0.encodeCommand=(D)=>J7D.from(D,"utf16le").toString("base64");v0.escapeArgument=(D)=>`'${String(D).replaceAll("'","''")}'`});function Gg(D){for(let $ of D.split(`
`)){if(/^\s*#/.test($))continue;let J=/^\s*root\s*=\s*(?<mountPoint>"[^"]*"|'[^']*'|[^#]*)/.exec($);if(!J)continue;return J.groups.mountPoint.trim().replaceAll(/^["']|["']$/g,"")}}import{promisify as Y7D}from"node:util";import Q7D from"node:child_process";import $O,{constants as zg}from"node:fs/promises";var q7D,K7D,W7D=async()=>{return`${await K7D()}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`},EX,Ig,Zg=async()=>{return Ig??=(async()=>{try{let D=await EX();return await $O.access(D,zg.X_OK),!0}catch{return!1}})(),Ig},Hg=async()=>{let D=await EX(),$=String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`,{stdout:J}=await v0($,{powerShellPath:D});return J.trim()},Bg=async(D)=>{if(/^[a-z]+:\/\//i.test(D))return D;try{let{stdout:$}=await q7D("wslpath",["-aw",D],{encoding:"utf8"});return $.trim()}catch{return D}};var Og=S(()=>{sB();DO();sB();q7D=Y7D(Q7D.execFile),K7D=(()=>{let $;return async function(){if($)return $;let J="/etc/wsl.conf",F=!1;try{await $O.access(J,zg.F_OK),F=!0}catch{}if(!F)return"/mnt/";let U=await $O.readFile(J,{encoding:"utf8"}),X=Gg(U);if(X===void 0)return"/mnt/";return $=X,$=$.endsWith("/")?$:`${$}/`,$}})(),EX=i6?W7D:eB});function D2(D,$,J){let F=(U)=>Object.defineProperty(D,$,{value:U,enumerable:!0,writable:!0});return Object.defineProperty(D,$,{configurable:!0,enumerable:!0,get(){let U=J();return F(U),U},set(U){F(U)}}),D}import{promisify as G7D}from"node:util";import I7D from"node:process";import{execFile as z7D}from"node:child_process";async function JO(){if(I7D.platform!=="darwin")throw Error("macOS only");let{stdout:D}=await Z7D("defaults",["read","com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]),J=/LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(D)?.groups.id??"com.apple.Safari";if(J==="com.apple.safari")return"com.apple.Safari";return J}var Z7D;var jg=S(()=>{Z7D=G7D(z7D)});import H7D from"node:process";import{promisify as B7D}from"node:util";import{execFile as O7D,execFileSync as qAD}from"node:child_process";async function Ng(D,{humanReadableOutput:$=!0,signal:J}={}){if(H7D.platform!=="darwin")throw Error("macOS only");let F=$?[]:["-ss"],U={};if(J)U.signal=J;let{stdout:X}=await j7D("osascript",["-e",D,F],U);return X.trim()}var j7D;var Vg=S(()=>{j7D=B7D(O7D)});async function FO(D){return Ng(`tell application "Finder" to set app_path to application file id "${D}" as string
tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}var Lg=S(()=>{Vg()});import{promisify as N7D}from"node:util";import{execFile as V7D}from"node:child_process";async function UO(D=L7D){let{stdout:$}=await D("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),J=/ProgId\s*REG_SZ\s*(?<id>\S+)/.exec($);if(!J)throw new wg(`Cannot find Windows browser in stdout: ${JSON.stringify($)}`);let{id:F}=J.groups,U=F.lastIndexOf("."),X=F.lastIndexOf("-"),Y=U===-1?void 0:F.slice(0,U),Q=X===-1?void 0:F.slice(0,X);return AX[F]??AX[Y]??AX[Q]??{name:F,id:F}}var L7D,AX,vX,wg;var XO=S(()=>{L7D=N7D(V7D),AX={MSEdgeHTM:{name:"Edge",id:"com.microsoft.edge"},MSEdgeBHTML:{name:"Edge Beta",id:"com.microsoft.edge.beta"},MSEdgeDHTML:{name:"Edge Dev",id:"com.microsoft.edge.dev"},AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:"Edge",id:"com.microsoft.edge.old"},ChromeHTML:{name:"Chrome",id:"com.google.chrome"},ChromeBHTML:{name:"Chrome Beta",id:"com.google.chrome.beta"},ChromeDHTML:{name:"Chrome Dev",id:"com.google.chrome.dev"},ChromiumHTM:{name:"Chromium",id:"org.chromium.Chromium"},BraveHTML:{name:"Brave",id:"com.brave.Browser"},BraveBHTML:{name:"Brave Beta",id:"com.brave.Browser.beta"},BraveDHTML:{name:"Brave Dev",id:"com.brave.Browser.dev"},BraveSSHTM:{name:"Brave Nightly",id:"com.brave.Browser.nightly"},FirefoxURL:{name:"Firefox",id:"org.mozilla.firefox"},OperaStable:{name:"Opera",id:"com.operasoftware.Opera"},VivaldiHTM:{name:"Vivaldi",id:"com.vivaldi.Vivaldi"},"IE.HTTP":{name:"Internet Explorer",id:"com.microsoft.ie"}},vX=new Map(Object.entries(AX));wg=class wg extends Error{}});import{promisify as w7D}from"node:util";import YO from"node:process";import{execFile as R7D}from"node:child_process";async function QO(){if(YO.platform==="darwin"){let D=await JO();return{name:await FO(D),id:D}}if(YO.platform==="linux"){let{stdout:D}=await M7D("xdg-mime",["query","default","x-scheme-handler/http"]),$=D.trim();return{name:E7D($.replace(/.desktop$/,"").replace("-"," ")),id:$}}if(YO.platform==="win32")return UO();throw Error("Only macOS, Linux, and Windows are supported")}var M7D,E7D=(D)=>D.toLowerCase().replaceAll(/(?:^|\s|-)\S/g,($)=>$.toUpperCase());var Rg=S(()=>{jg();Lg();XO();XO();M7D=w7D(R7D)});import qO from"node:process";var A7D,Mg;var Eg=S(()=>{A7D=Boolean(qO.env.SSH_CONNECTION||qO.env.SSH_CLIENT||qO.env.SSH_TTY),Mg=A7D});var Sg={};M$(Sg,{openApp:()=>_7D,default:()=>k7D,apps:()=>$2});import KO from"node:process";import Pg from"node:path";import{fileURLToPath as v7D}from"node:url";import T7D from"node:child_process";import b7D,{constants as P7D}from"node:fs/promises";function bg(D){if(typeof D==="string"||Array.isArray(D))return D;let{[vg]:$}=D;if(!$)throw Error(`${vg} is not supported`);return $}function h5({[G3]:D},{wsl:$}={}){if($&&i6)return bg($);if(!D)throw Error(`${G3} is not supported`);return bg(D)}var TX,WO,Ag,G3,vg,Tg=async(D,$)=>{if(D.length===0)return;let J=[];for(let F of D)try{return await $(F)}catch(U){J.push(U)}throw AggregateError(J,"Failed to open in all supported apps")},y5=async(D)=>{D={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...D};let $=D[TX]===!0;if(delete D[TX],Array.isArray(D.app))return Tg(D.app,(K)=>y5({...D,app:K,[TX]:!0}));let{name:J,arguments:F=[]}=D.app??{};if(F=[...F],Array.isArray(J))return Tg(J,(K)=>y5({...D,app:{name:K,arguments:F},[TX]:!0}));if(J==="browser"||J==="browserPrivate"){let K={"com.google.chrome":"chrome","google-chrome.desktop":"chrome","com.brave.browser":"brave","org.mozilla.firefox":"firefox","firefox.desktop":"firefox","com.microsoft.msedge":"edge","com.microsoft.edge":"edge","com.microsoft.edgemac":"edge","microsoft-edge.desktop":"edge","com.apple.safari":"safari"},W={chrome:"--incognito",brave:"--incognito",firefox:"--private-window",edge:"--inPrivate"},G;if(i6){let I=await Hg();G=vX.get(I)??{}}else G=await QO();if(G.id in K){let I=K[G.id.toLowerCase()];if(J==="browserPrivate"){if(I==="safari")throw Error("Safari doesn't support opening in private mode via command line");F.push(W[I])}return y5({...D,app:{name:$2[I],arguments:F}})}throw Error(`${G.name} is not supported as a default browser`)}let U,X=[],Y={},Q=!1;if(i6&&!e4()&&!Mg&&!J)Q=await Zg();if(G3==="darwin"){if(U="open",D.wait)X.push("--wait-apps");if(D.background)X.push("--background");if(D.newInstance)X.push("--new");if(J)X.push("-a",J)}else if(G3==="win32"||Q){if(U=await EX(),X.push(...v0.argumentsPrefix),!i6)Y.windowsVerbatimArguments=!0;if(i6&&D.target)D.target=await Bg(D.target);let K=["$ProgressPreference = 'SilentlyContinue';","Start"];if(D.wait)K.push("-Wait");if(J){if(K.push(v0.escapeArgument(J)),D.target)F.push(D.target)}else if(D.target)K.push(v0.escapeArgument(D.target));if(F.length>0)F=F.map((W)=>v0.escapeArgument(W)),K.push("-ArgumentList",F.join(","));if(D.target=v0.encodeCommand(K.join(" ")),!D.wait)Y.stdio="ignore"}else{if(J)U=J;else{let K=!WO||WO==="/",W=!1;try{await b7D.access(Ag,P7D.X_OK),W=!0}catch{}U=KO.versions.electron??(G3==="android"||K||!W)?"xdg-open":Ag}if(F.length>0)X.push(...F);if(!D.wait)Y.stdio="ignore",Y.detached=!0}if(G3==="darwin"&&F.length>0)X.push("--args",...F);if(D.target)X.push(D.target);let q=T7D.spawn(U,X,Y);if(D.wait)return new Promise((K,W)=>{q.once("error",W),q.once("close",(G)=>{if(!D.allowNonzeroExitCode&&G!==0){W(Error(`Exited with code ${G}`));return}K(q)})});if($)return new Promise((K,W)=>{q.once("error",W),q.once("spawn",()=>{q.once("close",(G)=>{if(q.off("error",W),G!==0){W(Error(`Exited with code ${G}`));return}q.unref(),K(q)})})});return q.unref(),new Promise((K,W)=>{q.once("error",W),q.once("spawn",()=>{q.off("error",W),K(q)})})},S7D=(D,$)=>{if(typeof D!=="string")throw TypeError("Expected a `target`");return y5({...$,target:D})},_7D=(D,$)=>{if(typeof D!=="string"&&!Array.isArray(D))throw TypeError("Expected a valid `name`");let{arguments:J=[]}=$??{};if(J!==void 0&&J!==null&&!Array.isArray(J))throw TypeError("Expected `appArguments` as Array type");return y5({...$,app:{name:D,arguments:J}})},$2,k7D;var _g=S(()=>{Og();DO();Rg();oB();Eg();TX=Symbol("fallbackAttempt"),WO=import.meta.url?Pg.dirname(v7D(import.meta.url)):"",Ag=Pg.join(WO,"xdg-open"),{platform:G3,arch:vg}=KO;$2={browser:"browser",browserPrivate:"browserPrivate"};D2($2,"chrome",()=>h5({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium","chromium-browser"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));D2($2,"brave",()=>h5({darwin:"brave browser",win32:"brave",linux:["brave-browser","brave"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe",x64:["/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe","/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"]}}));D2($2,"firefox",()=>h5({darwin:"firefox",win32:String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));D2($2,"edge",()=>h5({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));D2($2,"safari",()=>h5({darwin:"Safari"}));k7D=S7D});function g7D(D){return D.replace(C7D,"")}function f7D(D){return D>=4352&&(D<=4447||D===9001||D===9002||D>=9728&&D<=10175||D>=11904&&D<=42191&&D!==12351||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65135||D>=65280&&D<=65376||D>=65504&&D<=65510||D>=126976&&D<=129791)}function I3(D){let $=0;for(let J of g7D(D)){let F=J.codePointAt(0);if(!F)continue;if(F<=31||F>=127&&F<=159)continue;if(F===8205||F>=65024&&F<=65039||u7D.test(J))continue;$+=f7D(F)?2:1}return $}function kg(D){if(D==null)return"";return String(D)}function x7D(D,$){let J=$-I3(D);return J>0?`${D}${" ".repeat(J)}`:D}function y7D(D){return`\x1B[1m${D}\x1B[0m`}function GO({headers:D=[],rows:$}){let J=D.map(kg),F=$.map((K)=>K.map(kg)),U=[...J.length?[J]:[],...F];if(!U.length)return"";let X=Math.max(...U.map((K)=>K.length)),Y=Array.from({length:X},(K,W)=>Math.max(...U.map((G)=>I3(G[W]??"")))),Q=(K,W,G)=>`${K}${Y.map((I)=>"─".repeat(I)).join(W)}${G}`,q=(K,W=!1)=>`│ ${Y.map((G,I)=>{let z=K[I]??"";return x7D(W?y7D(z):z,G)}).join(" │ ")} │`;return[Q("╭─","─┬─","─╮"),...J.length?[q(J,!0),...F.length?[Q("├─","─┼─","─┤")]:[]]:[],...F.map((K)=>q(K)),Q("╰─","─┴─","─╯")].join(`
`)}var C7D,u7D;var Cg=S(()=>{C7D=new RegExp("\\u001B(?:\\[[0-?]*[ -/]*[@-~]|\\][^\\u0007]*(?:\\u0007|\\u001B\\\\)|[@-Z\\\\-_])","g"),u7D=/\p{Mark}/u});async function z3(D){return Error(await g1(D),{cause:D})}async function bX(D,$,J,F={}){let{data:U,error:X}=await f1(D,"private/cli/channels",{query:{app_id:$,name:J,linked_version_id:F.linkedVersionId?String(F.linkedVersionId):void 0}});if(X)throw await z3(X);return Array.isArray(U)?U:[]}async function xAD(D,$){let{data:J,error:F}=await f1(D,"private/cli/bundles/latest",{query:{app_id:$}});if(F)throw await z3(F);return J?.id&&J.name?{id:J.id,name:J.name}:null}async function ug(D,$,J,F){let{data:U,error:X}=await f1(D,"private/cli/bundles/deleted",{method:"POST",body:{app_id:$,names:J,deleted:F}});if(X)throw await z3(X);return U?.updated??[]}async function yAD(D,$){let{data:J,error:F}=await f1(D,"private/cli/manifest",{query:{app_version_id:String($)}});if(F)throw await z3(F);return Array.isArray(J)?J:[]}async function hAD(D,$){let{data:J,error:F}=await f1(D,"private/cli/apps/visible",{query:{app_id:$}});if(F)throw await z3(F);return J?.visible===!0}async function mAD(D,$,J){let{data:F,error:U}=await f1(D,"organization",{method:"POST",body:{name:$,email:J}});if(U)throw await z3(U);if(!F?.id)throw Error("Organization creation returned no data");return{id:F.id}}var IO=S(()=>{w4()});var xg={};M$(xg,{isVersionLinkedToOtherChannel:()=>n7D,getActiveChannels:()=>o7D,formatChannels:()=>fg,findVersionsLinkedToChannel:()=>c7D,findChannel:()=>gg,fetchChannelCompatibilityContext:()=>t7D,displayChannels:()=>r7D,delChannel:()=>d7D,createChannel:()=>i7D,checkVersionNotUsedInChannel:()=>zO});import h7D from"node:process";function m7D(D){return{id:D.id,name:D.name,public:!!D.public,ios:D.ios??!1,android:D.android??!1,disable_auto_update:String(D.disableAutoUpdate??D.disable_auto_update??""),disable_auto_update_under_native:!!(D.disableAutoUpdateUnderNative??D.disable_auto_update_under_native),allow_device_self_set:!!D.allow_device_self_set,allow_emulator:!!D.allow_emulator,allow_device:!!D.allow_device,allow_dev:!!D.allow_dev,allow_prod:!!D.allow_prod,version:D.version??void 0}}async function l7D(D,$,J,F){let U=new URLSearchParams({app_id:D,page:String($)});if(F)U.set("channel",F);return aD(`channel?${U.toString()}`,{apikey:J.apikey,method:"GET",body:void 0,apiHost:J.apiHost})}async function zO(D,$,J,F={}){let{silent:U=!1,autoUnlink:X=!1,channelName:Y,requireMatch:Q=!1,apikey:q,apiHost:K}=F;if(!q)throw Error("Missing API key for channel version check");let W;try{W=await bX(D,$,Y,{linkedVersionId:J.id})}catch(z){if(!U)zD.error(`Cannot check Version ${$}@${J.name}: ${Q$(z)}`);throw Error(`Cannot check version ${$}@${J.name}: ${Q$(z)}`)}let G=(W??[]).filter((z)=>{return z.version===J.id||z.rollout_version===J.id});if(!G.length){if(Y&&Q){let z=`Version ${$}@${J.name} is not linked to channel ${Y}`;if(!U)zD.error(z);throw Error(z)}return}if(U&&!X)throw Error(`Version ${$}@${J.name} is used in ${G.length} channel(s)`);if(!U)E2(`❌ Version ${$}@${J.name} is used in ${G.length} channel${G.length>1?"s":""}`);let I=X;if(!X)I=await J1({message:"unlink it?"})===!0;if(!I)throw zD.error("Unlink it first"),Error(`Version ${$}@${J.name} is still linked to channel(s)`);for(let z of G){let Z=U?null:F1();Z?.start(`Unlinking channel ${z.name}`);let H={app_id:$,channel:z.name};if(z.version===J.id)H.version=null;if(z.rollout_version===J.id)H.rollout_version=null,H.rollout_enabled=!1,H.rollout_percentage_bps=0,H.rollout_paused_at=null,H.rollout_pause_reason=null;let{error:B}=await aD("channel",{apikey:q,method:"POST",body:H,apiHost:K});if(B)throw Z?.stop(`Cannot update channel ${z.name} ${Q$(B)}`),Error(`Cannot update channel ${z.name}: ${Q$(B)}`);Z?.stop(`✅ Channel ${z.name} unlinked`)}if(!U)D4(`Version unlinked from ${G.length} channel${G.length>1?"s":""}`)}function i7D(D,$){return aD("channel",{apikey:D.apikey,method:"POST",body:$,apiHost:D.apiHost})}function d7D(D,$,J,F=!1){return aD("channel",{apikey:D.apikey,method:"DELETE",body:{app_id:J,channel:$,delete_bundle:F},apiHost:D.apiHost})}async function gg(D,$,J){try{return{data:(await bX(D,$,J)).find((X)=>X.name===J)??null,error:null}}catch(F){return{data:null,error:F}}}async function c7D(D,$,J){let{data:F}=await gg(D,$,J);if(!F)return{stable:null,rollout:null};let U=F.version_info?{id:F.version_info.id,name:F.version_info.name}:null,X=F.rollout_version_info?{id:F.rollout_version_info.id,name:F.rollout_version_info.name}:null;return{stable:U,rollout:X}}async function n7D(D,$,J,F){try{return(await bX(D,$,void 0,{linkedVersionId:J})).some((X)=>X.name!==F)}catch{return!0}}function p7D(D,$){let J=[],F="";for(let U of D){if(U===`
`){J.push(F),F="";continue}if(F&&I3(F+U)>$)J.push(F),F="";F+=U}return J.push(F),J}function fg(D,$=(h7D.stdout.columns??120)-2){if(!D.length)return"No channels found.";let J=["Name","Version","Public","iOS","Android","Auto Update","Updates Under Native","Device Self Set","Emulator","Device","Dev","Prod"],F=(Q)=>Q?"Yes":"No",U=D.toReversed().map((Q)=>[Q.name,Q.version?.name||"Unlinked",F(Q.public),F(Q.ios),F(Q.android),Q.disable_auto_update||"none",F(!Q.disable_auto_update_under_native),F(Q.allow_device_self_set),F(Q.allow_emulator),F(Q.allow_device),F(Q.allow_dev),F(Q.allow_prod)]),X=GO({headers:J,rows:U});if(I3(X.split(`
`)[0]??"")<=$)return X;let Y=Math.max(2,$-Math.max(...J.map(I3))-7);return U.map((Q)=>GO({headers:["Setting","Value"],rows:J.flatMap((q,K)=>p7D(Q[K]??"",Y).map((W,G)=>[G?"":q,W]))})).join(`
`)}function r7D(D,$=!1){if($)return;zD.success("Channels"),zD.message(fg(D))}async function t7D(D,$,J){let F=new URLSearchParams({app_id:$,channel:J}),{data:U,error:X}=await aD(`channel/current-bundle?${F.toString()}`,{apikey:D.apikey,method:"GET",body:void 0,apiHost:D.apiHost});if(X){if((await h$(X))?.error==="cannot_find_channel")return null;throw X}if(U?.disable_auto_update===void 0)return null;if(!U.bundle_name||U.bundle_id==null)return{disable_auto_update:U.disable_auto_update??"none",version:null};return{disable_auto_update:U.disable_auto_update??"none",version:{id:U.bundle_id,name:U.bundle_name,min_update_version:U.min_update_version??null,native_packages:Array.isArray(U.native_packages)?U.native_packages:[]}}}async function o7D(D,$){let J=[],F=0;while(!0){let{data:U,error:X}=await l7D($,F,D);if(X){let Q=Z6(X),q=await h$(X);if(Q===401||Q===403||q?.error==="cannot_access_app"){if(!D.silent)zD.error("Cannot list channels. Check that your API key is valid and has app.read_channels permission for this app.");throw new MD("Cannot list channels. Check that your API key is valid and has app.read_channels permission for this app.",{appId:$,requiredPermissionKey:"app.read_channels"})}throw Error(`Cannot list channels: ${await g1(X)}`,{cause:X})}let Y=Array.isArray(U)?U:U?[U]:[];if(!Y.length)break;if(J.push(...Y.map(m7D)),Y.length<50)break;F+=1}return J}var ZO=S(()=>{P6();v6();Cg();IO();w4()});var mg={};M$(mg,{upsertAppVersion:()=>$JD,getVersionDataById:()=>WJD,getVersionData:()=>KJD,getLatestAppVersion:()=>GJD,getActiveAppVersions:()=>qJD,fetchBundleVersionRow:()=>s7D,displayBundles:()=>QJD,deleteSpecificVersion:()=>XJD,deleteAppVersion:()=>JJD,cleanupAppVersions:()=>YJD});async function s7D(D,$,J,F={}){let U=new URLSearchParams({app_id:$,version:J,fields:"summary"});if(F.includeDeleted)U.set("include_deleted","1");let{data:X,error:Y}=await aD(`bundle?${U.toString()}`,{apikey:D,method:"GET",body:void 0,apiHost:F.apiHost});if(Y)throw Error(`Cannot check bundle ${$}@${J}: ${await g1(Y)}`,{cause:Y});if(!Array.isArray(X))throw Error(`Cannot check bundle ${$}@${J}: unexpected response`);return X[0]??null}async function e7D(D){let $=Z6(D),J=await h$(D);if($===401||$===403||J?.error==="cannot_access_app")return!0;if(J?.error==="cannot_delete_bundle")return!0;return J?.error==="cannot_get_bundle"&&typeof J.message==="string"&&J.message.toLowerCase().includes("access")}async function J2(D,$,J,F,U){let X=await g1($);if(await e7D($)){let W=Z6($),G=W===401?"Provide a valid API key (capgo login or CAPGO_API_KEY).":"Your API key is valid but lacks the required permission for this app.",z=`${J==="channels"?`Cannot list channels. ${G} Required permission: app.read_channels.`:J==="delete"?`Cannot delete bundles for app ${D}. ${G} Required permission: app bundle delete permissions.`:`Cannot list bundles for app ${D}. ${G} Required permission: app.read_bundles.`} (${X})`;if(!F)zD.error(z);throw new MD(z,{appId:D,requiredPermissionKey:U,httpStatus:W},$)}let Y=await h$($);if(Z6($)===404||Y?.error==="app_not_found"){let W=`App ${D} not found in database`;if(!F)zD.error(W);throw Error(`${W}: ${X}`,{cause:$})}let K=`Could not ${J==="list"?"list bundles":J==="channels"?"list channel bundle versions":"delete bundle"} for app ${D}: ${X}`;if(!F)zD.error(K);throw Error(K,{cause:$})}async function DJD(D,$){let J=$.invoke??aD,F=[],U=0;while(!0){let X=new URLSearchParams({app_id:D,page:String(U),limit:String(yg),fields:"summary"}),{data:Y,error:Q}=await J(`bundle?${X.toString()}`,{apikey:$.apikey,method:"GET",body:void 0,apiHost:$.apiHost});if(Q)await J2(D,Q,"list",!!$.silent,"app.read_bundles");let q=Array.isArray(Y)?Y:[];F.push(...q);let K=q.length===a7D&&"native_packages"in q[0];if(q.length<yg&&!K)break;U+=1}return F}async function $JD(D,$,J={}){let{data:F,error:U}=await uJ(()=>aD("bundle/upsert",{apikey:D,method:"POST",body:{app_id:$.app_id,name:$.name,...$.session_key!==void 0?{session_key:$.session_key}:{},...$.external_url!==void 0?{external_url:$.external_url}:{},...$.storage_provider!==void 0?{storage_provider:$.storage_provider}:{},...$.min_update_version!==void 0?{min_update_version:$.min_update_version}:{},...$.native_packages!==void 0?{native_packages:$.native_packages}:{},...$.checksum!==void 0?{checksum:$.checksum}:{},...$.link!==void 0?{link:$.link}:{},...$.comment!==void 0?{comment:$.comment}:{},...$.key_id!==void 0?{key_id:$.key_id}:{},...$.cli_version!==void 0?{cli_version:$.cli_version}:{},...$.manifest!==void 0?{manifest:$.manifest}:{},...$.r2_path!==void 0?{r2_path:$.r2_path}:{}},apiHost:J.apiHost}),void 0,{retryTransientNetwork:!1});if(U)throw U;if(typeof F?.id!=="number")throw Error("bundle/upsert did not return a version id");return F.id}async function JJD(D,$,J,F={}){let{silent:U=!1,apikey:X,apiHost:Y}=F;if(D){let q;try{q=await ug(D,$,[J],!0)}catch(K){let W=`App version ${$}@${J} not found in database`;if(!U)zD.error(W);throw Error(`${W}: ${Q$(K)}`)}if(!q.includes(J)){let K=`App version ${$}@${J} not found in database`;if(!U)zD.error(K);throw Error(K)}return}if(!X)throw Error("Missing API key for bundle delete");let{error:Q}=await aD("bundle",{apikey:X,method:"DELETE",body:{app_id:$,version:J},apiHost:Y});if(Q)await J2($,Q,"delete",U,"bundle.delete")}async function FJD(D,$,J,F){let U=await h$($);if(Z6($)!==404||U?.error==="app_not_found")return;let X=`This Capgo API does not support ${J}. Update your Capgo backend or use an older CLI.`;if(!F)zD.error(X);throw new MD(X,{appId:D},$)}async function hg(D,$,J){let F=J.invoke??aD,{error:U}=await F("bundle",{apikey:J.apikey,method:"DELETE",body:{app_id:D,version:$},apiHost:J.apiHost,apiVersion:UJD});return U}async function XJD(D,$,J,F={}){let{silent:U=!1,autoUnlink:X=!1,apikey:Y,apiHost:Q,invoke:q}=F;if(!Y)throw Error("Missing API key for bundle delete");let K={apikey:Y,apiHost:Q,silent:U,invoke:q},W=await hg($,J,K);if(!W)return;let G=await h$(W);if(G?.error==="bundle_not_found")PX($,J,U);let I=G?.error==="bundle_linked"?G.moreInfo?.bundle_id:void 0;if(G?.error==="cannot_delete_linked_version"){let z=await HO($,{version:J},K);if(!z)PX($,J,U);I=z.id}if(typeof I!=="number")await J2($,W,"delete",U,"bundle.delete");if(await zO(D,$,{id:I,name:J},{silent:U,autoUnlink:X,apikey:Y,apiHost:Q}),W=await hg($,J,K),!W)return;if((await h$(W))?.error==="bundle_not_found")PX($,J,U);await J2($,W,"delete",U,"bundle.delete")}async function YJD(D,$,J){let F=J.invoke??aD,{data:U,error:X}=await F("bundle/cleanup",{apikey:J.apikey,method:"POST",body:{app_id:D,keep:$.keep,...$.bundle?{bundle:$.bundle}:{},ignore_channel:!!$.ignoreChannel,dry_run:$.dryRun,...$.ids?{ids:$.ids}:{}},apiHost:J.apiHost});if(X)await FJD(D,X,"server-side bundle cleanup (POST /bundle/cleanup)",!!J.silent),await J2(D,X,"delete",!!J.silent,"bundle.delete");if(!U||!Array.isArray(U.kept)||!Array.isArray(U.removed))throw Error(`Cannot clean up bundles for app ${D}: unexpected response`);return U}function QJD(D,$=!1){if($)return;if(!D.length){zD.info("No bundles found");return}let J=new z1;J.theme=z1.roundTheme,J.headers=["Version","Created","Keep"],J.rows=[];for(let F of D.toReversed())J.rows.push([F.name,ig(F.created_at),F.keep??""]);zD.success("Bundles"),zD.success(J.toString())}async function qJD(D,$,J={}){let{silent:F=!1}=J,U=typeof D==="string"?D:J.apikey;if(!U)throw Error("Missing API key for bundle list");return await DJD($,{apikey:U,silent:F,apiHost:J.apiHost,invoke:J.invoke})}async function HO(D,$,J){let F=J.invoke??aD,U=new URLSearchParams({app_id:D});if("version"in $)U.set("version",$.version);else U.set("id",String($.id));let{data:X,error:Y}=await F(`bundle?${U.toString()}`,{apikey:J.apikey,method:"GET",body:void 0,apiHost:J.apiHost});if(Y)await J2(D,Y,"list",!!J.silent,"app.read_bundles");return(Array.isArray(X)?X[0]:void 0)??null}function PX(D,$,J){let F=`App version ${D}@${$} doesn't exist`;if(!J)zD.error(F);throw new MD(F,{appId:D,bundle:String($)})}async function KJD(D,$,J,F={}){let{silent:U=!1}=F,X=typeof D==="string"?D:F.apikey;if(!X)throw Error("Missing API key for bundle lookup");let Y=await HO($,{version:J},{apikey:X,silent:U,apiHost:F.apiHost,invoke:F.invoke});if(!Y)PX($,J,U);return Y}async function WJD(D,$,J,F={}){return HO($,{id:J},{apikey:D,silent:F.silent,apiHost:F.apiHost,invoke:F.invoke})}async function GJD(D,$,J={}){let F=J.invoke??aD,U=new URLSearchParams({app_id:$,page:"0",limit:"1"}),{data:X,error:Y}=await F(`bundle?${U.toString()}`,{apikey:D,method:"GET",body:void 0,apiHost:J.apiHost});if(Y)await J2($,Y,"list",!!J.silent,"app.read_bundles");return(Array.isArray(X)?X[0]:void 0)??null}var a7D=50,yg=1000,UJD="2026-10-22";var lg=S(()=>{P6();kq();v6();_q();w4();ZO();IO()});import{AsyncLocalStorage as IJD}from"node:async_hooks";import{spawn as zJD}from"node:child_process";import{existsSync as HD,readdirSync as H3,readFileSync as Z$,statSync as ZJD}from"node:fs";import{homedir as og,platform as ag}from"node:os";import U2,{dirname as d0,join as wD,relative as sg,resolve as pD,sep as eg}from"node:path";import{cwd as R6,env as h1,stdin as Df,stdout as $f}from"node:process";function SX(D,$){let J=qA();if(J)J[D]($);else zD[D]($)}function OJD(D=""){if(!D)return l5;return`${l5}${D.startsWith("/")?D:`/${D}`}`}function uvD(D){let $=wJD.toLocaleString("en-US");return[`Delta updates cannot upload this bundle: it has ${D.toLocaleString("en-US")} files, and Capgo allows at most ${$} files per delta (manifest) upload.`,"Delta mode tracks and uploads each file individually so devices can download only what changed. Very large file counts are not supported on that path.","What you can do:","1. Upload a full zip instead: npx @capgo/cli@latest bundle upload --no-delta","2. Or reduce files in your web build output (remove unused assets, avoid copying large trees into dist).","See https://capgo.app/docs/faq/#are-there-delta-update-file-path-limitations"].join(`
`)}function fvD(D){return[`Bundle upload timed out after ${Math.round(D/1000)}s.`,"The standard upload has to finish the whole transfer within this window and does not retry, so a large bundle or a slow connection can trip it.","What you can do:","1. Retry with the resumable upload, which uploads in chunks and retries automatically: npx @capgo/cli@latest bundle upload --tus","2. Or raise the limit for the standard upload: npx @capgo/cli@latest bundle upload --timeout <milliseconds>"].join(`
`)}function Q$(D){if(!D)return"Unknown error";if(nB(D).isSecurityPolicyError)return Ug(D);let J=D;if(typeof D==="string")return D;if(D instanceof Error){let F=J.message||J.cause?.message||J.stack||D.name,U=J.cause?.name,X=F.toLowerCase();if(X.includes("fetch failed")||X.includes("failed to fetch")||X.includes("connect timeout")||X.includes("network")||U?.startsWith("UND_ERR"))return`Network error: ${F}${J.code?` (code ${J.code})`:""}. Check your network connection and API endpoint availability.`;let Y=J.status||J.statusCode;return[F,J.code?`Code: ${J.code}`:void 0,Y?`Status: ${Y}`:void 0].filter(Boolean).join(" | ")||D.name}if(J.message){let F=[J.message,J.code?`Code: ${J.code}`:void 0,J.status||J.statusCode?`Status: ${J.status||J.statusCode}`:void 0].filter(Boolean).join(" | "),U=J.message.toLowerCase();if(U.includes("fetch failed")||U.includes("failed to fetch")||J.error==="Failed to fetch")return`Network error: ${F}. Check your network connection and API endpoint availability.`;if(J.details||J.hint||J.error)return`${F}${F?" | ":""}${J.error?typeof J.error==="string"?J.error:J.error.message??"":""}${J.details?`Details: ${J.details}`:""}${J.hint?`Hint: ${J.hint}`:""}`.trim();return F}if(typeof J.error==="string"&&J.error.length>0)return J.error;if(J.error&&typeof J.error==="object"&&typeof J.error.message==="string"&&J.error.message.length>0)return J.error.message;return`
${Jf.default.render(D)}`}function BO(D){if(typeof D!=="string"&&typeof D!=="number")return;return RX(String(D)).slice(0,Ff)}function MJD(D){if(typeof D==="string")return RX(D).slice(0,Ff);if(!D||typeof D!=="object")return String(D);let $=D,J=BO($.name),F=BO($.message),U=J&&F?`${J}: ${F}`:F||J||Object.prototype.toString.call(D),X=[["code",$.code],["errno",$.errno],["syscall",$.syscall],["address",$.address],["port",$.port]].map(([Y,Q])=>{let q=BO(Q);return q?`${Y}=${q}`:void 0}).filter(Boolean);return`${U}${X.length>0?` (${X.join(", ")})`:""}`}function yvD(D){let $=[],J=new Set,F=0,U=(X,Y,Q)=>{if(F>=RJD)return;if(X&&typeof X==="object"){if(J.has(X))return;J.add(X)}F++;let q=" ".repeat(Q);if($.push(`${q}${Y}${MJD(X)}`),!X||typeof X!=="object")return;let K=X,W=[K.causingError,K.cause].filter((G,I,z)=>G!==void 0&&G!==null&&z.indexOf(G)===I);for(let G of W)U(G,"Caused by: ",Q+1);if(Array.isArray(K.errors))K.errors.forEach((G,I)=>{U(G,`Contained error ${I+1}: `,Q+1)})};return U(D,"",0),RX($.join(`
`))}function hvD({silent:D=!1,stdinIsTTY:$=!!Df.isTTY,stdoutIsTTY:J=!!$f.isTTY,ci:F=MO.isCI}={}){return!D&&$&&J&&!F}function EJD(D={}){let $=D.ci??MO.isCI,J=D.stdinIsTTY??!!Df.isTTY,F=D.stdoutIsTTY??!!$f.isTTY,U=D.platform??ag(),X="display"in D?D.display:h1.DISPLAY;if($||!J||!F)return!1;if(U==="linux"&&!X)return!1;return!0}async function mvD(D){if(!EJD())return;try{await(await Promise.resolve().then(() => (_g(),Sg))).default(D)}catch($){if($?.code==="ENOENT")return}}function lvD(D){return yK(D)||hK(D)}function Uf(D){if(yK(D))return jS(D);else if(hK(D))return NS(D);return D}function m1(D=R6()){return Hf(pD(D))??Uf(D)}function Xf(D=m1(),$=void 0){let J=$?.split(",")[0],F=J??wD(D,T0);if(!HD(F)){let X=J?`Package.json at ${F} does not exist`:`No package.json found at ${F}. Run this command from your project root (the folder that contains package.json), or pass --package-json <path> to point at it (for example in a monorepo).`;throw DD.error(X),Error(X)}let U=Z$(F);return JSON.parse(U)}function ivD(D=m1(),$=void 0){return Xf(D,$).scripts}function dvD(D=m1(),$=void 0){return Xf(D,$).version??""}function AJD(D){let $=D.replace("^","").replace("~","");if(U1($))try{let J=I0($);return WQ(J)}catch{return $}return $}async function cvD(D,$=R6(),J){let F=J?J.split(",").map((Y)=>Y.trim()).filter(Boolean):[],U=[],X=(Y)=>{let Q=pD(Y);if(!U.includes(Q))U.push(Q)};for(let Y of F){let Q=pD($,Y);if(HD(Q))X(d0(Q))}X(pD($)),X(R6());for(let Y of U)try{let Q=`${D}/package.json`,{createRequire:q}=await import("node:module"),W=q(wD(Y,"package.json")).resolve(Q),G=JSON.parse(Z$(W,"utf-8"));if(G.version)return G.version}catch{}for(let Y of U){let Q=Y,q=U2.parse(Q).root;while(Q!==q){let K=wD(Q,"node_modules",D,T0);if(HD(K))try{let G=JSON.parse(Z$(K,"utf-8"));if(G.version)return G.version}catch{}let W=d0(Q);if(W===Q)break;Q=W}}if(D==="@capgo/capacitor-updater"){let Y=null,Q=wD($,"ios","App","Podfile");if(HD(Q))try{let K=Z$(Q,"utf-8").match(/pod\s+['"]CapgoCapacitorUpdater['"],\s*:path\s*=>\s*['"]([^'"]+)['"]/);if(K?.[1])Y=pD(wD($,"ios","App",K[1]))}catch{}if(!Y){let q=wD($,"android","capacitor.settings.gradle");if(HD(q))try{let W=Z$(q,"utf-8").match(/project\(':capgo-capacitor-updater'\)\.projectDir\s*=\s*new\s+File\(['"]([^'"]+)['"]/);if(W?.[1])Y=pD(wD($,"android",W[1])).replace(/\/android$/,"")}catch{}}if(Y){let q=wD(Y,T0);if(HD(q))try{let K=JSON.parse(Z$(q,"utf-8"));if(K.version)return K.version}catch{}}}try{let Y=J?J.split(",").map((K)=>K.trim()).filter(Boolean).join(","):J,q=(await gX($,Y)).get(D);if(q)return q}catch{}return null}async function gX(D=m1(),$=void 0){let J=$?.split(",").map((X)=>X.trim()).filter(Boolean);if(J??=[wD(D,T0)],J){for(let X of J)if(!HD(X)){let Y=`Package.json at ${X} does not exist`;throw DD.error(Y),Error(Y)}}let F=new Map,{createRequire:U}=await import("node:module");for(let X of J){let Y=Z$(X),Q=JSON.parse(Y),q=d0(X),K=(W,G)=>{try{let H=U(wD(q,"package.json")).resolve(`${W}/package.json`),B=JSON.parse(Z$(H,"utf-8"));if(B.version)return B.version}catch{}let I=q,z=U2.parse(I).root;while(I!==z){let Z=wD(I,"node_modules",W,T0);if(HD(Z))try{let B=JSON.parse(Z$(Z,"utf-8"));if(B.version)return B.version}catch{}let H=d0(I);if(H===I)break;I=H}return AJD(G)};for(let W in Q.dependencies)F.set(W,K(W,Q.dependencies[W]));for(let W in Q.devDependencies)F.set(W,K(W,Q.devDependencies[W]))}return F}async function vJD(D=m1(),$=void 0){let J=$?.split(",").map((U)=>U.trim()).filter(Boolean);if(J??=[wD(D,T0)],J){for(let U of J)if(!HD(U)){let X=`Package.json at ${U} does not exist`;throw DD.error(X),Error(X)}}let F=new Map;for(let U of J){let X=Z$(U),Y=JSON.parse(X);for(let Q in Y.dependencies??{})if(typeof Y.dependencies[Q]==="string")F.set(Q,Y.dependencies[Q]);for(let Q in Y.devDependencies??{})if(typeof Y.devDependencies[Q]==="string")F.set(Q,Y.devDependencies[Q])}return F}function TJD(D){if(!D)return!1;if(D.config&&Object.keys(D.config).length>0)return!0;return!!D.path&&HD(D.path)}async function Yf(D,$=!1){let J=bJD;try{let F=await D();if(!TJD(F)){if(!$)DD.error(J);throw new MD(J)}return F}catch(F){if(F instanceof MD)throw F;let U=Q$(F);if(!$)DD.error(`${J}: ${U}`);throw new MD(J,{cause:U})}}function uq(D=!1){return Yf(tK,D)}function PJD(D=!1){return Yf(oK,D)}async function SJD(D,$){let J=await PJD();if(J?.config)J.config.plugins??={},J.config.plugins.extConfig??={},J.config.plugins[D]??={},J.config.plugins[D]={...J.config.plugins[D],...$},await aK(D,J);return J}async function nvD(D){return SJD("CapacitorUpdater",D)}function cg(D,$){if(typeof $!=="string"||!$.trim())return;try{return d6($)}catch(J){throw new MD(`Invalid ${D} in capacitor config: ${J instanceof Error?J.message:String(J)}`)}}async function Y8(D=!1){let $;try{$=await uq(D)}catch{return ng({host:dg,hostWeb:l5,hostFilesApi:NO,hostApi:m5})}let J=cg("localApi",$?.config?.plugins?.CapacitorUpdater?.localApi),F=cg("localApiFiles",$?.config?.plugins?.CapacitorUpdater?.localApiFiles),U={host:$?.config?.plugins?.CapacitorUpdater?.localHost||dg,hostWeb:$?.config?.plugins?.CapacitorUpdater?.localWebHost||l5,hostFilesApi:F??J??NO,hostApi:J??m5};if(!J&&$?.config?.plugins?.CapacitorUpdater?.localSupa&&!EO().apiHost&&!VO("CAPGO_API_HOST"))throw new MD("`localSupa` in capacitor.config is no longer supported. Set `localApi` to your Capgo API URL instead.");return ng(U)}function Kf(D){return{apiHost:D.apiHost?d6(D.apiHost):void 0,filesHost:D.filesHost?d6(D.filesHost):void 0}}function EO(){return qf.getStore()??Qf}function pvD(D){Qf=Kf(D)}function _JD(D,$){return qf.run(Kf(D),$)}function VO(D){let $=h1[D]?.trim();return $?d6($):void 0}function rvD(D){let $=D.replace(/\/+$/,"");return $===m5||$===Wf}function tvD(D){let $=D.explicit?.trim();if($)return d6($);let J=D.env?.trim();if(J)return d6(J);return D.localApi?.trim()||m5}function CJD(D,$){if(D.replace(/\/+$/,"")===Wf&&$.replace(/\/+$/,"")===l5)return kJD;return $}function ng(D){let $=EO(),J=$.apiHost??VO("CAPGO_API_HOST"),F=$.filesHost??($.apiHost?void 0:VO("CAPGO_FILES_HOST"));if(J)D.hostApi=J,D.hostFilesApi=J;if(typeof D.hostWeb==="string")D.hostWeb=CJD(D.hostApi,D.hostWeb);if(F)D.hostFilesApi=F;return D}function pg(D){return typeof D==="object"&&D!==null}function uJD(D){if(!pg(D))return!1;let $=D.capacitor;if(pg($)&&($.ios!==void 0||$.android!==void 0))return!0;return!1}function gJD(D){if(HD(wD(D,"plugin.xml")))return!0;let $=wD(D,T0);if(!HD($))return!1;try{return uJD(JSON.parse(Z$($,"utf-8")))}catch{return!1}}function If(D,$){if($)return $;return D===m5||D===NO?xJD():void 0}async function zf(D=!1,$,J){let F=(K)=>{let W={...K};return iE(W,void 0,D),W},U=await Y8(D),X=U.hostApi,Y=rg.get(X);if(Y)return F(Y);let Q=OO.get(X);if(!$&&Q)return Q.then(F);let q=(async()=>{try{let K=If(X,J),W=await fetch(`${X}/private/config`,{...$?{signal:$}:{},redirect:"manual",headers:Q6(K?{capgkey:K}:void 0)});if(!W.ok)throw Error(`HTTP error! status: ${W.status}`);let I={...await W.json(),...U};return rg.set(X,I),{...I}}catch{if(!D)DD.info(`Local config ${Q$(U)}`);return{...U}}finally{if(!$)OO.delete(X)}})();if(!$)OO.set(X,q);return q.then(F)}async function ovD(D){let $=await Y8();try{let J=If($.hostFilesApi,D),F=await fetch(`${$.hostFilesApi}/files/config`,{redirect:"manual",headers:Q6(J?{capgkey:J}:void 0)});if(!F.ok)throw Error(`HTTP error! status: ${F.status}`);return await F.json()}catch{return{partialUpload:!1,TUSUpload:!1,partialUploadForced:!1,TUSUploadForced:!1,maxUploadLength:NJD,maxChunkSize:VJD,alertUploadSize:jJD}}}function fJD(D){if(!D||typeof D!=="object")return"";let $=D;return[$.error,$.message,$.status].filter(Boolean).join(" | ")}function tg(D,$){let J=D.indexOf($);if(J<0)return D;return D.slice(J+$.length).replace(/^:\s*/,"").split(`
`)[0].trim()}async function avD(D){let $=await h$(D);if($?.error==="channel_zip_required"||$?.error==="channel_delta_required")return $.message||$.error;let J=D instanceof Error?D.message:String(D??"");if(J.includes("CHANNEL_ZIP_REQUIRED"))return tg(J,"CHANNEL_ZIP_REQUIRED");if(J.includes("CHANNEL_DELTA_REQUIRED"))return tg(J,"CHANNEL_DELTA_REQUIRED");return null}function d6(D){let $=new URL(D);if(!["http:","https:"].includes($.protocol))throw new MD("Capgo API host must use HTTPS");let J=$.hostname==="localhost"||$.hostname==="127.0.0.1"||$.hostname==="[::1]";if($.protocol==="http:"&&!J)throw new MD("Capgo API host must use HTTPS (HTTP is only allowed for localhost)");if($.username||$.password)throw new MD("Capgo API host must not include credentials");if($.search||$.hash)throw new MD("Capgo API host must not include query parameters or fragments");return`${$.origin}${w1($.pathname)}`}async function AO(D,$=!0,J){let F=await Y8($),U=D?d6(D):F.hostApi,X=J?d6(J):D&&U!==F.hostApi?U:F.hostFilesApi;return{apiHost:U,filesHost:X}}async function g1(D){let $=await h$(D);if($){let J=fJD($);if(J)return J}return Q$(D)}async function aD(D,$){let J=($.method??"POST").toUpperCase(),F=await AO($.apiHost),U=$.useFilesHost?F.filesHost:F.apiHost,X=`${w1(U)}/${D.replace(/^\//,"")}`,Y=$.instrument!==!1&&kE()?uE(D.replace(/^\//,"")):fetch;try{let Q=await Y(X,{method:J,redirect:"manual",headers:Q6({"Content-Type":"application/json",Authorization:$.apikey,capgkey:$.apikey,...$.apiVersion?{capgo_api:$.apiVersion}:{}}),body:J==="GET"||J==="HEAD"?void 0:typeof $.body==="string"?$.body:JSON.stringify($.body??{}),signal:$.signal});if(!Q.ok)return{data:null,error:new U8(Q)};return{data:(Q.headers.get("content-type")??"").includes("application/json")?await Q.json().catch(()=>null):await Q.text().catch(()=>null),error:null}}catch(Q){return{data:null,error:Q instanceof Error?Q:Error(String(Q))}}}async function svD(D,$=!0){return(await AO(D?.apiHost,$)).apiHost}async function evD(D,$,J=!1,F,U){let X=hY("capgkey",D),Y=async()=>{await zf(J,F,X);let K=await AO(void 0,J);if($&&!J)DD.info(`Using custom Capgo API ${K.apiHost}`);return{apikey:X,...K}};if(!$&&!U)return Y();let Q=EO(),q=$?d6($):Q.apiHost;return _JD({apiHost:q,filesHost:U??(q===Q.apiHost?Q.filesHost:void 0)},Y)}async function DTD(D,$,J={}){let{data:F,error:U}=await aD(`private/cli/members/2fa-status?org_id=${encodeURIComponent($)}`,{apikey:D,method:"GET",body:void 0,apiHost:J.apiHost});if(U)throw U;return F??[]}async function $TD(D,$,J={}){let{data:F,error:U}=await aD(`private/cli/members/password-policy?org_id=${encodeURIComponent($)}`,{apikey:D,method:"GET",body:void 0,apiHost:J.apiHost});if(U)throw U;return F??[]}function CX(D){try{if(!HD(D))return;return Z$(D,"utf8").trim()||void 0}catch{return}}function xJD(){let D=h1.CAPGO_TOKEN?.trim();if(D)return D;let $=CX(`${og()}/.capgo`);if($)return $;return CX(".capgo")}function FA(D=!1,$=(J)=>DD.info(J)){let J=h1.CAPGO_TOKEN?.trim();if(J){if(!D)$("Use CAPGO_TOKEN environment variable");return J}let U=`${og()}/.capgo`,X=CX(U);if(X){if(!D)$(`Use global API key ${U}`)}else if(U=".capgo",X=CX(U),X&&!D)$(`Use local API key ${U}`);if(!X){let Q=`No Capgo API key found. Run \`${hS()}\` first, then retry this command.`;throw DD.error(Q),new MD(Q)}return X}async function*vO(D){let $=await H3(D,{withFileTypes:!0});for(let J of $){let F=pD(D,J.name);if(J.isDirectory()&&!J.name.startsWith(".")&&!J.name.startsWith("node_modules")&&!J.name.startsWith("dist"))yield*vO(F);else yield F}}function JTD(D){let J=(D.endsWith(".br")?D.slice(0,-3):D).split(".").pop()?.toLowerCase()||"";return{html:"text/html",htm:"text/html",js:"application/javascript",mjs:"application/javascript",cjs:"application/javascript",css:"text/css",json:"application/json",jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",bmp:"image/bmp",webp:"image/webp",svg:"image/svg+xml",ico:"image/x-icon",avif:"image/avif",woff:"font/woff",woff2:"font/woff2",ttf:"font/ttf",otf:"font/otf",eot:"application/vnd.ms-fontobject",mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",mp4:"video/mp4",webm:"video/webm",xml:"application/xml",txt:"text/plain",md:"text/markdown",pdf:"application/pdf",wasm:"application/wasm",map:"application/json"}[J]||"application/octet-stream"}function x1(D,$){return`${D}-${$?"ts":"js"}`}function y1(D,$){if(!$)DD.info(`Found ${D} project`)}function yJD(D){if(HD(pD(D,"angular.json")))return"angular";if(HD(pD(D,"nuxt.config.js"))||HD(pD(D,"nuxt.config.ts")))return"nuxtjs";if(HD(pD(D,"next.config.js"))||HD(pD(D,"next.config.mjs"))||HD(pD(D,"next.config.ts")))return"nextjs";if(HD(pD(D,"svelte.config.js"))||HD(pD(D,"svelte.config.ts")))return"sveltekit";if(HD(pD(D,"vue.config.js"))||HD(pD(D,"vue.config.ts")))return"vue"}function Zf(D){if(D.get("@angular/core"))return"angular";if(D.get("nuxt"))return"nuxtjs";if(D.get("next"))return"nextjs";if(D.get("@sveltejs/kit"))return"sveltekit";if(D.get("svelte"))return"svelte";if(D.get("vue"))return"vue";if(D.get("react"))return"react"}async function hJD(D,$){let J=HD(pD(D,"tsconfig.json")),F=yJD(D);if(F)return y1(F,$),x1(F,J);let U=pD(D,T0);if(!HD(U))return;let X=await gX(void 0,U),Y=Zf(X);if(!Y)return;return y1(Y,$),x1(Y,J)}function jO(D,$){if(!$)return;let J=pD($);if(!D.includes(J))D.push(J)}function Hf(D){let $=D,J=U2.parse($).root;while(!0){if(HD(pD($,T0)))return $;if($===J)return;let F=d0($);if(F===$)return;$=F}}function mJD(D){let $=[],J=D?.split(",").map((F)=>F.trim()).filter(Boolean)[0];if(J)jO($,d0(pD(J)));return jO($,Hf(R6())),jO($,Uf(R6())),$}async function FTD(D){let $=R6(),J=!1,F=D?.quiet??!1;for(let X of mJD(D?.packageJsonPath)){let Y=await hJD(X,F);if(Y)return Y}let U=pD($,"tsconfig.json");if(HD(U))J=!0;for await(let X of vO($)){if(X.includes("angular.json"))return y1("angular",F),x1("angular",J);if(X.includes("nuxt.config.js")||X.includes("nuxt.config.ts"))return y1("nuxtjs",F),x1("nuxtjs",J);if(X.includes("next.config.js")||X.includes("next.config.mjs")||X.includes("next.config.ts"))return y1("nextjs",F),x1("nextjs",J);if(X.includes("svelte.config.js")||X.includes("svelte.config.ts"))return y1("sveltekit",F),x1("sveltekit",J);if(X.includes("vue.config.js")||X.includes("vue.config.ts"))return y1("vue",F),x1("vue",J);if(X.includes(T0)){let Y=d0(X),Q=await gX(Y),q=Zf(Q);if(q)return y1(q,F),x1(q,J)}}return"unknown"}function UTD(D,$,J=R6()){if(D==="angular-js"||D==="angular-ts")return $?"src/main.ts":"src/main.js";if(D==="nextjs-js"||D==="nextjs-ts")return $?"src/app/layout.tsx":"src/app/layout.js";if(D==="svelte-js"||D==="svelte-ts")return $?"src/main.ts":"src/main.js";if(D==="vue-js"||D==="vue-ts")return $?"src/main.ts":"src/main.js";if(D==="react-js"||D==="react-ts"){let F=$?"src/main.tsx":"src/main.js",U=$?"src/index.tsx":"src/index.js";if(HD(pD(J,F)))return F;return U}return null}async function XTD(D){let $=D.replace(/-(?:ts|js)$/,"");if($==="angular")return DD.info("Angular project detected"),"build";if($==="nuxtjs")return DD.info("Nuxtjs project detected"),"generate";if($==="nextjs"){if(DD.info("Nextjs project detected"),DD.warn("Please make sure you have configured static export in your next.config.js: https://nextjs.org/docs/pages/building-your-application/deploying/static-exports"),DD.warn("Please make sure you have the output: 'export' and distDir: 'dist' in your next.config.js"),!await J1({message:"Do you want to continue?"}))throw DD.error("Build command selection aborted by user"),Error("Build command selection aborted by user");return"build"}if($==="sveltekit"){if(DD.info("Sveltekit project detected"),DD.warn("Please make sure you have the adapter-static installed: https://kit.svelte.dev/docs/adapter-static"),DD.warn("Please make sure you have the pages: 'dist' and assets: 'dest', in your svelte.config.js adapter"),!await J1({message:"Do you want to continue?"}))throw DD.error("Build command selection aborted by user"),Error("Build command selection aborted by user");return"build"}return"build"}async function YTD(D=!1,$=R6()){let J=/(main|index)\.(ts|tsx|js|jsx)$/,F="",U=pD($),X=U.split("/").length;for await(let Y of vO(U))if(Y.split("/").length-X<=2&&J.test(Y)){if(F=Y,!D)DD.info(`Found main file here ${Y}`);break}return F}async function QTD(D,$,J,F){let U={app_id:$,name:J,version:0};try{let X=await aD("files/upload_link",{apikey:D,body:U,useFilesHost:!0,apiHost:F?.apiHost});if(X.error){if(X.error instanceof U8){let Y=await X.error.context.json().catch(()=>({}));DD.error(`Upload URL error: ${Y.status||JSON.stringify(Y)}`)}else DD.error(`Cannot get upload url: ${X.error.message}`);return""}return X.data?.url??""}catch(X){DD.error(`Cannot get upload url ${Q$(X)}`)}return""}async function*Bf(D){let $=H3(D,{withFileTypes:!0});for(let J of $){let F=wD(D,J.name);if(J.isDirectory())yield*Bf(F);else yield F}}function GTD(D,$="5.10.0",J="6.25.0",F="7.25.0"){if(D.major===5&&_6(D,I0($)))return!0;if(D.major===6&&_6(D,I0(J)))return!0;if(D.major===7&&_6(D,I0(F)))return!0;return!1}async function ITD(D){let $=[],J=[".DS_Store",".git",".gitignore","node_modules","package-lock.json","tsconfig.json","tsconfig.app.json","tsconfig.spec.json","tsconfig.app.json","tsconfig.spec.json","tsconfig.app.json","tsconfig.spec.json"];for await(let F of Bf(D)){if(J.some((Q)=>F.includes(Q))){DD.info(`Ignoring file ${F}, please ensure you have only required files in your dist folder`);continue}let U=Z$(F);if(U.length===0){DD.info(`Ignoring empty file ${F}, please ensure you have only required files in your dist folder`);continue}let X=await LS(U,"sha256"),Y=sg(D,F);if(Y.startsWith("/"))Y=Y.substring(1);$.push({file:Y,hash:X})}return $}async function zTD(D){if(ag()==="win32")return iJD(D);else return lJD(D)}function lJD(D){let $=new RO.default;return $.addLocalFolder(D),$.toBuffer()}async function iJD(D){DD.info("Zipping file windows mode");let $=new RO.default,J=(F,U)=>{let X=H3(F);for(let Y of X){let Q=wD(F,Y),q=ZJD(Q);if(q.isFile()){let K=Z$(Q);$.addFile(wD(U,Y).split(eg).join("/"),K)}else if(q.isDirectory())J(Q,wD(U,Y))}};return J(D,""),$.toBuffer()}function dJD(D){let $=O9();return`App ${D} does not exist, run first \`${$.runner} @capgo/cli app add ${D}\` to create it`}function cJD(D){let J=D?.originalResponse?.getBody?.(),F=D instanceof Error?D.message:String(D??"");return`${J??""} ${F}`.includes("app_not_found")}async function ZTD(D,$,J,F,U,X,Y,Q){return new Promise((q,K)=>{new uX.Upload($,{endpoint:`${Y.hostFilesApi}/files/upload/attachments/`,chunkSize:Q,retryDelays:[...LJD],metadataForPartialUploads:{filename:`orgs/${J}/apps/${F}/${U}.zip`,filetype:"application/gzip"},metadata:{filename:`orgs/${J}/apps/${F}/${U}.zip`,filetype:"application/zip"},headers:Q6({Authorization:D}),onError(G){if(DD.error(`Error uploading bundle: ${G.message}`),cJD(G)){K(Error(dJD(F)));return}if(G instanceof uX.DetailedError){let I=G.originalResponse?.getBody(),z=G.originalResponse?.getStatus(),Z=G.originalRequest?.getURL(),H=(()=>{try{let B=JSON.parse(I||'{"error": "unknown error"}');return B.status||B.error||B.message||"unknown error"}catch{return I||G.message}})();K(Error(`TUS upload failed (status ${z??"unknown"}, url ${Z??"unknown"}): ${H}`))}else K(Error(`TUS upload failed: ${G.message||G.toString()}`))},onProgress(G,I){let z=(G/I*100).toFixed(2);X.message(`Uploaded ${z}%`)},onSuccess(){q(!0)}}).start()})}async function HTD(D,$,J,F){let X=await aD("private/delete_failed_version",{apikey:D,method:"DELETE",body:{app_id:$,name:J},apiHost:F?.apiHost});if(X.error){if(X.error instanceof U8){let Y=await X.error.context.json().catch(()=>({}));throw Error(Y.status||Y.message||JSON.stringify(Y))}throw Error(X.error.message)}}async function BTD(D,$,J,F,U){let X={app_id:$,name:J,manifest:F},Y=await uJ(()=>aD("private/set_manifest",{apikey:D,body:X,apiHost:U?.apiHost}));if(Y.error){if(Y.error instanceof U8){let Q=await Y.error.context.json().catch(()=>({}));throw Error(Q.error||Q.status||Q.message||JSON.stringify(Q))}throw Error(Y.error.message)}}async function UA(D,$,J,F,U,X){let Y=Date.now();if((C9(h1.CAPGO_DISABLE_TELEMETRY)||C9(h1.CAPGO_DISABLE_POSTHOG))&&!$.notifyConsole)return;try{let q={};try{q=bE()}catch(Z){if(J)DD.error(`Failed to enrich event tags, sending caller tags only: ${Q$(Z)}`)}let K={...$,nonPersonTags:{...q,...$.nonPersonTags??{}}};if(J)DD.info(`Get remove config: for ${$.event}`);let W=U??(await zf(!0,F)).hostApi;if(J)DD.info(`Sending analytics event: ${JSON.stringify(K)}`);let G=new AbortController,I=setTimeout(()=>G.abort(),1e4),z=F?typeof AbortSignal.any==="function"?AbortSignal.any([G.signal,F]):F:G.signal;try{B6("telemetry request started");let Z=await fetch(`${w1(W)}/private/events`,{method:"POST",body:JSON.stringify(K),headers:Q6({"Content-Type":"application/json",capgkey:D}),signal:z,redirect:X});if(B6("telemetry response received",{duration_ms:Date.now()-Y,status:Z.status}),clearTimeout(I),!Z.ok)throw Error(`HTTP error! status: ${Z.status}`);let H=await Z.json();if(H.error&&J)DD.error(`Failed to send analytics event: ${H.error}`)}finally{clearTimeout(I)}}catch(q){if(B6("telemetry request failed",{duration_ms:Date.now()-Y,error:NF(q)}),J)DD.error("Failed to send Stats event details:"),DD.error(Q$(q))}}function nJD(D){if(DD.error(`
\uD83D\uDD10 Access Denied: Two-Factor Authentication Required`),DD.error("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"),D)DD.error(`
The organization "${D}" requires all members to have 2FA enabled.`);else DD.error(`
This organization requires all members to have 2FA enabled.`);throw DD.error(`
To regain access:`),DD.error(` 1. Go to ${OJD("/settings/account")}`),DD.error(" 2. Enable Two-Factor Authentication on your account"),DD.error(" 3. Try your command again"),DD.error(`
For more information, visit: https://capgo.app/docs/webapp/2fa-enforcement/
`),Error("2FA required for this organization")}async function f1(D,$,J={}){let F=(J.method??"GET").toUpperCase(),U=J.query?new URLSearchParams(Object.entries(J.query).filter((Y)=>typeof Y[1]==="string"&&Y[1].length>0)).toString():"",X=U?`${$}?${U}`:$;return aD(X,{apikey:D.apikey,method:F,body:F==="GET"||F==="HEAD"?void 0:J.body,apiHost:J.useFilesHost?D.filesHost??D.apiHost:D.apiHost,useFilesHost:J.useFilesHost&&!D.filesHost,signal:J.signal})}async function pJD(D,$={},J){let F=J?`private/cli/organizations?permission=${encodeURIComponent(J)}`:"private/cli/organizations",{data:U,error:X}=await aD(F,{apikey:D,method:"GET",body:void 0,apiHost:$.apiHost});if(X)throw Error(`Cannot get the list of organizations: ${Q$(X)}`,{cause:X});return U??[]}async function OTD(D,$,J={}){let{data:F,error:U}=await aD(`organization?orgId=${encodeURIComponent($)}`,{apikey:D,method:"GET",body:void 0,apiHost:J.apiHost});if(U||!F?.name)throw Error(`Cannot get organization details: ${Q$(U)}`,{cause:U});return F}async function rJD(D,$,J,F={}){let U;try{U=await pJD($,{apiHost:F.apiHost??D.apiHost},J)}catch(Y){throw DD.error("Cannot get the list of organizations - exiting"),DD.error(Q$(Y)),Y}if(U.length===0)throw DD.error("Could not get organization please create an organization first"),Error("No organizations available");let X=U.filter((Y)=>Y.allowed===!0);if(X.length===0)throw DD.error(`Could not find organization with permission: ${J}`),Error("Could not find organization with required permission");return{allOrganizations:U,allowedOrganizations:X}}async function jTD(D,$,J){let{allOrganizations:F,allowedOrganizations:U}=await rJD(D,$,J),X=U.length>1?await zV({message:"Please pick the organization that you want to insert to",options:U.map((q)=>{let K=q.enforcing_2fa&&!q["2fa_has_access"]?" ⚠️ (2FA required)":"";return{value:q.gid,label:`${q.name}${K}`}})}):U[0].gid;if(e1(X))throw DD.warn("Canceled organization selection, exiting"),new MD("Organization selection cancelled");let Y=X,Q=F.find((q)=>q.gid===Y);if(Q.enforcing_2fa&&!Q["2fa_has_access"])nJD(Q.name);return DD.info(`Using the organization "${Q.name}" as the app owner`),Q}async function NTD(D,$,J=!1,F={}){let U={apiHost:F.apiHost??D.apiHost},{data:X,error:Y}=await aD("private/cli/identity",{apikey:$,method:"GET",body:void 0,apiHost:U.apiHost}),Q=(X?.userId||"").toString();if(Y){if(!J)DD.error(Q$(Y));throw Y}if(!Q){if(!J)DD.error("Capgo authentication failed: invalid Capgo API key or insufficient Capgo permissions.");throw Object.assign(Error("Capgo authentication failed: invalid Capgo API key or insufficient Capgo permissions."),{status:401})}return Q}async function tJD(D,$,J={}){let{data:F,error:U}=await f1(D,"private/cli/permissions",{method:"POST",body:{permissions:$,org_id:J.orgId??void 0,app_id:J.appId??void 0,channel_id:J.channelId??void 0}});if(U)throw Error(`Cannot check permissions ${$.join(", ")}: ${await g1(U)}`,{cause:U});return Object.fromEntries($.map((X)=>[X,F?.permissions?.[X]===!0]))}async function oJD(D,$,J,F={},U=!1){try{return(await tJD(D,[J],F))[J]===!0}catch(X){if(!U)DD.error(`Cannot check permission ${J}`),DD.error(Q$(X));throw X}}async function VTD(D,$,J,F={},U={}){if(await oJD(D,$,J,F))return;let Y=U.message||`Insufficient permissions for ${J}`;if(!U.silent)DD.error(Y);throw new MD(`Insufficient permissions for ${J}`,{permissionKey:J,...F})}async function XA(D,$,J){let{data:F,error:U}=await aD(`app/${encodeURIComponent($)}`,{apikey:D,method:"GET",body:void 0,apiHost:J?.apiHost});if(!F?.owner_org||U){let X=Q$(U);throw DD.error(`Cannot get organization id for app id ${$}: ${X}`),new MD("Cannot get organization id for app",{appId:$,cause:X})}return F.owner_org}function ig(D){return new Date(D||"").toLocaleString()}function O9(){let D=m1();if(LO===D)return{pm:F2,command:Z3,installCommand:`${F2} ${Z3}`,runner:kX};let $=D;while(w2($,"unknown")==="unknown"){let J=d0($);if(J===$){$=D;break}$=J}return F2=w2($,"npm"),Z3=w7(F2),LO=D,kX=_N($),{pm:F2,command:Z3,installCommand:`${F2} ${Z3}`,runner:kX}}function LTD(D){F2=D.pm,Z3=D.command,kX=D.runner,LO=m1()}function aJD(D,$){return{summary:`Best fix: recreate and sync ${$==="ios"?"iOS":"Android"} with this one-line command.`,command:`rm -rf ${$} && ${D} cap add ${$} && ${D} cap sync ${$}`}}function Of(D){return H3(D,{withFileTypes:!0}).flatMap((F)=>{let U=wD(D,F.name);if(F.isDirectory())return Of(U);else return U.split(`node_modules${eg}`)[1]||U})}function jf(D){if(!HD(D))return[];try{return H3(D,{withFileTypes:!0}).flatMap((F)=>{let U=wD(D,F.name);if(F.isDirectory())return jf(U);else return U})}catch{return[]}}function sJD(D,$){let J=[];if($==="ios"){try{let X=H3(D);for(let Y of X)if(Y.endsWith(".podspec"))J.push(wD(D,Y))}catch{}let F=wD(D,"Package.swift"),U=wD(D,"ios","Package.swift");if(HD(F))J.push(F);if(HD(U))J.push(U)}else if($==="android"){let F=wD(D,"android"),U=wD(F,"build.gradle"),X=wD(F,"build.gradle.kts");if(HD(U))J.push(U);if(HD(X))J.push(X)}return J}async function eJD(D){let $=wD(D,"ios"),J=wD(D,"android"),F=async(Y,Q)=>{let q=HD(Y)?jf(Y).filter((z)=>Gf.test(z)):[],K=sJD(D,Q),W=[...q,...K].sort((z,Z)=>z.localeCompare(Z));if(W.length===0)return;let{createHash:G}=await import("node:crypto"),I=G("sha256");for(let z of W)try{let Z=sg(D,z);I.update(Z);let H=Z$(z);I.update(H)}catch{}return I.digest("hex")},[U,X]=await Promise.all([F($,"ios"),F(J,"android")]);return{ios_checksum:U,android_checksum:X}}function DFD(D){let $=[],J=D,F=U2.parse(J).root;while(!0){if($.push(wD(J,"node_modules")),J===F)break;let U=d0(J);if(U===J)break;J=U}return $}async function $FD(D,$){let J=$?$.split(",").map((I)=>I.trim()).filter(Boolean):[],F;try{F=await gX(void 0,D)}catch(I){throw DD.error("Invalid package.json, JSON parsing failed"),DD.error(`json parse error: ${Q$(I)}`),I instanceof Error?I:Error("Invalid package.json")}let U=D?D.split(",")[0].trim():void 0,X=!U?m1():d0(U2.resolve(U));if(!F)throw DD.error("Missing dependencies section in package.json"),Error("Missing dependencies section in package.json");for(let[I,z]of Object.entries(F))if(typeof z!=="string")throw DD.error(`Invalid dependency ${I}: ${z}, expected string, got ${typeof z}`),Error(`Invalid dependency ${I}: expected string version`);let Y=D?D.split(",").map((I)=>I.trim()).filter(Boolean).map((I)=>d0(pD(I))):[X],Q=J.length===0?[...new Set(Y.flatMap(DFD))]:J;if(!Q.some((I)=>HD(I))){let I=w2(X,"npm"),z=w7(I);throw DD.error(`Missing node_modules folder at ${Q.join(", ")}, please run ${I} ${z}`),Error("Missing node_modules folder")}let K=!1,W=await vJD(void 0,D),G=await Promise.all(Array.from(F.entries()).map(async([I,z])=>{let Z=!1,H=!1,B=z,j=W.get(I)??z,N;for(let A of Q){let E=wD(A,I);if(HD(E)){Z=!0,N=E;try{let _=wD(E,T0);if(HD(_)){let k=JSON.parse(Z$(_,"utf-8"));if(k.version)B=k.version}}catch{}if(!gJD(E))continue;try{if(Of(E).some((k)=>Gf.test(k))){H=!0;break}}catch(_){throw DD.error(`Error reading node_modules files for ${I} package in ${A}`),DD.error(Q$(_)),_ instanceof Error?_:Error(`Error reading node_modules files for ${I}`)}}}if(!Z){K=!0;let A=w2(X,"npm"),E=w7(A);return DD.error(`Missing dependency ${I}, please run ${A} ${E}`),{name:I,version:B,requested_version:j}}let O,L;if(H&&N){let A=await eJD(N);O=A.ios_checksum,L=A.android_checksum}return{name:I,version:B,requested_version:j,native:H,ios_checksum:O,android_checksum:L}}));if(K||G.some((I)=>I.native===void 0))throw DD.error("Missing dependencies or invalid dependencies"),DD.error("If you use monorepo, workspace or any special package manager you can use the --package-json [path,] and --node-modules [path,] options to make the command work properly"),Error("Missing dependencies or invalid dependencies");return G}async function Nf(D,$,J,F={}){let{fetchChannelCompatibilityContext:U}=await Promise.resolve().then(() => (ZO(),xg)),X=await U({apikey:D,...F},$,J);if(!X?.version)return wO([]);return wO(X.version.native_packages??[])}async function wTD(D,$,J,F={}){let U=new URLSearchParams({app_id:$,channel:J}),{data:X,error:Y}=await aD(`channel/current-bundle?${U.toString()}`,{apikey:D,method:"GET",body:void 0,apiHost:F.apiHost});if(Y||!X?.bundle_name)return null;if(X.checksum!==void 0)return X.checksum;let{fetchBundleVersionRow:Q}=await Promise.resolve().then(() => (lg(),mg));return(await Q(D,$,X.bundle_name,F))?.checksum??null}function wO(D){if(!D)throw DD.error("Error parsing native packages, perhaps the metadata does not exist in Capgo?"),Error("Error parsing native packages");for(let J of D){let F=cB(su,J);if(!F.success){let U=F.error.issues.map((X)=>`${(X.path??[]).join(".")}: ${X.message}`).join(", ");throw DD.error(`Invalid remote native package data: ${U}`),Error(`Invalid remote native package data: ${U}`)}}return new Map(D.map((J)=>[J.name,J]))}function YA(D,$){return D||$?.plugins?.CapacitorUpdater?.appId||$?.appId}function JFD(D){let $=[];if(!D.localVersion)return{compatible:!0,reasons:[],message:"Package only exists on remote (will be removed)"};if(!D.remoteVersion)return $.push("new_plugin"),{compatible:!1,reasons:$,message:"New native plugin added (requires app store update)"};let J=!1;try{let G=f7(D.localVersion),I=f7(D.remoteVersion);J=bV(G,I)}catch{J=!1}if(!J)$.push("version_mismatch");if(D.localRequestedVersion&&D.remoteRequestedVersion&&D.localRequestedVersion.trim()!==D.remoteRequestedVersion.trim())$.push("requested_version_changed");let F=(G)=>typeof G==="string"&&G.trim().length>0,U=F(D.localIosChecksum)&&F(D.remoteIosChecksum)&&D.localIosChecksum!==D.remoteIosChecksum,X=F(D.localAndroidChecksum)&&F(D.remoteAndroidChecksum)&&D.localAndroidChecksum!==D.remoteAndroidChecksum;if(U&&X)$.push("both_platforms_changed");else if(U)$.push("ios_code_changed");else if(X)$.push("android_code_changed");let Y=F(D.localIosChecksum)!==F(D.remoteIosChecksum),Q=F(D.localAndroidChecksum)!==F(D.remoteAndroidChecksum);if(Y||Q)$.push("platform_checksum_metadata_changed");let q=[],K=(G)=>G!=="requested_version_changed";for(let G of $)switch(G){case"version_mismatch":q.push(`version changed: ${D.remoteVersion} → ${D.localVersion}`);break;case"requested_version_changed":q.push(`requested version changed: ${D.remoteRequestedVersion??"unknown"} → ${D.localRequestedVersion??"unknown"}`);break;case"ios_code_changed":q.push("iOS native code changed");break;case"android_code_changed":q.push("Android native code changed");break;case"both_platforms_changed":q.push("iOS and Android native code changed");break;case"platform_checksum_metadata_changed":q.push("iOS/Android checksum metadata appeared or disappeared (may be Capgo CLI change — verify native code)");break;case"new_plugin":q.push("new plugin (requires app store update)");break;case"removed_plugin":q.push("plugin removed");break}if(!$.some(K))return{compatible:!0,reasons:$,message:q.length>0?q.join(", "):"Compatible"};return{compatible:!1,reasons:$,message:q.join(", ")}}function RTD(D){return JFD(D).compatible}async function MTD(D,$,J,F,U,X={},Y){let Q=await $FD(F,U),q=Y?wO(Y):await Nf(D,$,J,X),K=Q.filter((G)=>!!G.native).map((G)=>{let I=q.get(G.name);if(I)return{name:G.name,localVersion:G.version,localRequestedVersion:G.requested_version,remoteVersion:I.version,remoteRequestedVersion:I.requested_version,localIosChecksum:G.ios_checksum,remoteIosChecksum:I.ios_checksum,localAndroidChecksum:G.android_checksum,remoteAndroidChecksum:I.android_checksum};return{name:G.name,localVersion:G.version,localRequestedVersion:G.requested_version,remoteVersion:void 0,localIosChecksum:G.ios_checksum,localAndroidChecksum:G.android_checksum}}),W=[...q].filter(([G])=>!Q.some((I)=>I.name===G)).map(([G,I])=>({name:G,localVersion:void 0,remoteVersion:I.version,remoteRequestedVersion:I.requested_version,remoteIosChecksum:I.ios_checksum,remoteAndroidChecksum:I.android_checksum}));return K.push(...W),{finalCompatibility:K,localDependencies:Q}}async function ETD(D,$,J,F,U={}){let X=await Nf(D,$,J,U),Y=F.map((q)=>{let K=X.get(q.name);if(K)return{name:q.name,localVersion:q.version,localRequestedVersion:q.requested_version,remoteVersion:K.version,remoteRequestedVersion:K.requested_version,localIosChecksum:q.ios_checksum,remoteIosChecksum:K.ios_checksum,localAndroidChecksum:q.android_checksum,remoteAndroidChecksum:K.android_checksum};return{name:q.name,localVersion:q.version,localRequestedVersion:q.requested_version,remoteVersion:void 0,localIosChecksum:q.ios_checksum,localAndroidChecksum:q.android_checksum}}),Q=[...X].filter(([q])=>!F.some((K)=>K.name===q)).map(([q,K])=>({name:q,localVersion:void 0,remoteVersion:K.version,remoteRequestedVersion:K.requested_version,remoteIosChecksum:K.ios_checksum,remoteAndroidChecksum:K.android_checksum}));return Y.push(...Q),{finalCompatibility:Y,localDependencies:F}}function Vf(D){if(!HD(D))return null;try{return JSON.parse(Z$(D,"utf-8"))}catch{return null}}function _X(D){if(!D)return!1;return/@capgo\/capacitor-updater|CapgoCapacitorUpdater|CapacitorUpdaterPlugin/.test(D)}function FFD(D){let $=Vf(D);if(!$)return!1;let J=$.packageClassList;return Array.isArray(J)&&J.includes("CapacitorUpdaterPlugin")}function UFD(D,$){if(!$)return wD(D,T0);return U2.isAbsolute($)?$:pD(D,$)}function XFD(D=R6(),$){let J=UFD(D,$),F=U2.basename(J)===T0?d0(J):J,U=[wD(F,"ios","App"),wD(D,"ios","App")].find((E)=>HD(E));if(!U)return{shouldCheck:!1,valid:!0,details:[]};let X=Vf(J),Y={...X?.dependencies,...X?.devDependencies,...X?.optionalDependencies},Q=Object.hasOwn(Y,"@capgo/capacitor-updater"),q=[F,D].some((E)=>HD(wD(E,"node_modules","@capgo","capacitor-updater"))),K=wD(U,"Podfile"),W=wD(U,"CapApp-SPM","Package.swift"),G=HD(K)?Z$(K,"utf-8"):void 0,I=HD(W)?Z$(W,"utf-8"):void 0,z=_X(G)||_X(I),Z=wD(U,"Podfile.lock"),H=wD(U,"App","capacitor.plugins.json"),B=wD(U,"App","capacitor.config.json"),j=HD(Z)?Z$(Z,"utf-8"):void 0,N=HD(H)?Z$(H,"utf-8"):void 0,O=_X(j)||_X(N)||FFD(B);if(!(Q||q||z||O))return{shouldCheck:!1,valid:!0,details:[]};let A=[];if(!z)A.push(`Missing @capgo/capacitor-updater in iOS dependency files (${K} or ${W})`);if(!O)A.push(`Missing @capgo/capacitor-updater in iOS native project outputs (${Z}, ${H}, or ${B})`);return{shouldCheck:!0,valid:z&&O,details:A}}function YFD(D,$,J){if(!D.shouldCheck||D.valid)return;let F=aJD($,"ios");J?.(),DD.error("Capgo iOS dependency sync verification failed.");for(let U of D.details)DD.error(U);throw DD.error("Stop here to avoid testing on a broken native iOS project."),DD.warn(F.summary),DD.info(F.command),new MD($W)}async function ATD(D,$,J,F){let U=await J1({message:"Would you like to sync your project with Capacitor now? This is recommended to ensure encrypted updates work properly."});if(e1(U)){if(D&&$&&J)await X8("onboarding-v2",$,J,"canceled");throw DD.warn("Canceled Capacitor sync"),new MD("Capacitor sync cancelled")}if(U){let X=O9(),Y=F1();Y.start("Running the command...");let Q;try{await new Promise((q,K)=>{let W=zJD(X.runner,["cap","sync"],{stdio:"pipe"});W.on("close",(G)=>{if(G===0)q();else K(Error(`Command failed with exit code ${G}`))}),W.on("error",(G)=>{K(G)})})}catch(q){Q=q,DD.error(`Failed to run Capacitor sync: ${q}`),DD.warn(`Please run "${X.runner} cap sync" manually to ensure encrypted updates work properly`)}if(F?.validateIosUpdater)YFD(XFD(R6(),F.packageJsonPath),X.runner,()=>Y.stop("iOS sync check failed ❌"));if(Q){Y.stop("Error");return}Y.stop("Capacitor sync completed ✅")}else{let X=O9();DD.warn("⚠️ Important: If you upload encrypted bundles without syncing, updates will fail!"),DD.info(`Remember to run "${X.runner} cap sync" before uploading encrypted bundles`)}}var RO,MO,Jf,uX,DD,HJD=".capgo_key",BJD=".capgo_key_v2",_vD,kvD,dg="https://capgo.app",NO="https://files.capgo.app",m5="https://api.capgo.app",l5="https://console.capgo.app",CvD=120000,jJD=20971520,NJD=1073741824,VJD=103809024,LJD,wJD=1e4,gvD="BundleUploadTimeoutError",T0="package.json",xvD,RJD=12,Ff=2000,bJD="No capacitor config file found, run `cap init` first",Qf,qf,Wf="https://api.capgo.com.cn",kJD="https://console.capgo.com.cn",Gf,rg,OO,qTD="5.10.0",KTD="6.25.0",WTD="7.0.30",LO,F2="npm",Z3="install",kX="npx";var w4=S(()=>{kN();P6();y7();L7();PE();gE();fE();_q();dE();JA();KA();mK();wS();_S();sK();yS();mS();eu();$g();v6();Jg();Xg();RO=N0(VL(),1),MO=N0(N7(),1),Jf=N0(aL(),1),uX=N0(ME(),1);DD={error:(D)=>SX("error",D),info:(D)=>SX("info",D),success:(D)=>SX("success",D),warn:(D)=>SX("warn",D)},_vD=`${HJD}.pub`,kvD=`${BJD}.pub`;LJD=[0,1000,3000,5000,1e4];xvD=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-z-][0-9a-z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-z-][0-9a-z-]*))*))?(?:\+([0-9a-z-]+(?:\.[0-9a-z-]+)*))?$/i;Qf={},qf=new IJD;Gf=/([A-Za-z0-9]+)\.(java|swift|kt|scala)$/;rg=new Map,OO=new Map});var CO=u((gf)=>{Object.defineProperty(gf,"__esModule",{value:!0});function b0(D){let $=Object.create(null);for(let J of D.split(","))$[J]=1;return(J)=>(J in $)}var qFD=Object.freeze({}),KFD=Object.freeze([]),WFD=()=>{},GFD=()=>!1,IFD=(D)=>D.charCodeAt(0)===111&&D.charCodeAt(1)===110&&(D.charCodeAt(2)>122||D.charCodeAt(2)<97),zFD=(D)=>D.startsWith("onUpdate:"),ZFD=Object.assign,HFD=(D,$)=>{let J=D.indexOf($);if(J>-1)D.splice(J,1)},BFD=Object.prototype.hasOwnProperty,OFD=(D,$)=>BFD.call(D,$),X2=Array.isArray,Mf=(D)=>Y2(D)==="[object Map]",Ef=(D)=>Y2(D)==="[object Set]",PO=(D)=>Y2(D)==="[object Date]",jFD=(D)=>Y2(D)==="[object RegExp]",i5=(D)=>typeof D==="function",M6=(D)=>typeof D==="string",d5=(D)=>typeof D==="symbol",l1=(D)=>D!==null&&typeof D==="object",NFD=(D)=>{return(l1(D)||i5(D))&&i5(D.then)&&i5(D.catch)},SO=Object.prototype.toString,Y2=(D)=>SO.call(D),VFD=(D)=>{return Y2(D).slice(8,-1)},Af=(D)=>Y2(D)==="[object Object]",LFD=(D)=>M6(D)&&D!=="NaN"&&D[0]!=="-"&&""+parseInt(D,10)===D,wFD=b0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),RFD=b0("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),fX=(D)=>{let $=Object.create(null);return(J)=>{return $[J]||($[J]=D(J))}},MFD=/-\w/g,EFD=fX((D)=>{return D.replace(MFD,($)=>$.slice(1).toUpperCase())}),AFD=/\B([A-Z])/g,vf=fX((D)=>D.replace(AFD,"-$1").toLowerCase()),Tf=fX((D)=>{return D.charAt(0).toUpperCase()+D.slice(1)}),vFD=fX((D)=>{return D?`on${Tf(D)}`:""}),TFD=(D,$)=>!Object.is(D,$),bFD=(D,...$)=>{for(let J=0;J<D.length;J++)D[J](...$)},PFD=(D,$,J,F=!1)=>{Object.defineProperty(D,$,{configurable:!0,enumerable:!1,writable:F,value:J})},SFD=(D)=>{let $=parseFloat(D);return isNaN($)?D:$},_FD=(D)=>{let $=M6(D)?Number(D):NaN;return isNaN($)?D:$},wf,kFD=()=>{return wf||(wf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{})},CFD=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function uFD(D){return CFD.test(D)?`__props.${D}`:`__props[${JSON.stringify(D)}]`}function gFD(D,$){return D+JSON.stringify($,(J,F)=>typeof F==="function"?F.toString():F)}var fFD={TEXT:1,"1":"TEXT",CLASS:2,"2":"CLASS",STYLE:4,"4":"STYLE",PROPS:8,"8":"PROPS",FULL_PROPS:16,"16":"FULL_PROPS",NEED_HYDRATION:32,"32":"NEED_HYDRATION",STABLE_FRAGMENT:64,"64":"STABLE_FRAGMENT",KEYED_FRAGMENT:128,"128":"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,"256":"UNKEYED_FRAGMENT",NEED_PATCH:512,"512":"NEED_PATCH",DYNAMIC_SLOTS:1024,"1024":"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,"2048":"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},xFD={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"NEED_HYDRATION",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},yFD={ELEMENT:1,"1":"ELEMENT",FUNCTIONAL_COMPONENT:2,"2":"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,"4":"STATEFUL_COMPONENT",TEXT_CHILDREN:8,"8":"TEXT_CHILDREN",ARRAY_CHILDREN:16,"16":"ARRAY_CHILDREN",SLOTS_CHILDREN:32,"32":"SLOTS_CHILDREN",TELEPORT:64,"64":"TELEPORT",SUSPENSE:128,"128":"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,"256":"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,"512":"COMPONENT_KEPT_ALIVE",COMPONENT:6,"6":"COMPONENT"},hFD={STABLE:1,"1":"STABLE",DYNAMIC:2,"2":"DYNAMIC",FORWARDED:3,"3":"FORWARDED"},mFD={[1]:"STABLE",[2]:"DYNAMIC",[3]:"FORWARDED"},lFD="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",bf=b0(lFD),iFD=bf,Rf=2;function dFD(D,$=0,J=D.length){if($=Math.max(0,Math.min($,D.length)),J=Math.max(0,Math.min(J,D.length)),$>J)return"";let F=D.split(/(\r?\n)/),U=F.filter((Q,q)=>q%2===1);F=F.filter((Q,q)=>q%2===0);let X=0,Y=[];for(let Q=0;Q<F.length;Q++)if(X+=F[Q].length+(U[Q]&&U[Q].length||0),X>=$){for(let q=Q-Rf;q<=Q+Rf||J>X;q++){if(q<0||q>=F.length)continue;let K=q+1;Y.push(`${K}${" ".repeat(Math.max(3-String(K).length,0))}| ${F[q]}`);let W=F[q].length,G=U[q]&&U[q].length||0;if(q===Q){let I=$-(X-(W+G)),z=Math.max(1,J>X?W-I:J-$);Y.push(" | "+" ".repeat(I)+"^".repeat(z))}else if(q>Q){if(J>X){let I=Math.max(Math.min(J-X,W),1);Y.push(" | "+"^".repeat(I))}X+=W+G}}break}return Y.join(`
`)}function _O(D){if(X2(D)){let $={};for(let J=0;J<D.length;J++){let F=D[J],U=M6(F)?Pf(F):_O(F);if(U)for(let X in U)$[X]=U[X]}return $}else if(M6(D)||l1(D))return D}var cFD=/;(?![^(]*\))/g,nFD=/:([^]+)/,pFD=/\/\*[^]*?\*\//g;function Pf(D){let $={};return D.replace(pFD,"").split(cFD).forEach((J)=>{if(J){let F=J.split(nFD);F.length>1&&($[F[0].trim()]=F[1].trim())}}),$}function rFD(D){if(!D)return"";if(M6(D))return D;let $="";for(let J in D){let F=D[J];if(M6(F)||typeof F==="number"){let U=J.startsWith("--")?J:vf(J);$+=`${U}:${F};`}}return $}function kO(D){let $="";if(M6(D))$=D;else if(X2(D))for(let J=0;J<D.length;J++){let F=kO(D[J]);if(F)$+=F+" "}else if(l1(D)){for(let J in D)if(D[J])$+=J+" "}return $.trim()}function tFD(D){if(!D)return null;let{class:$,style:J}=D;if($&&!M6($))D.class=kO($);if(J)D.style=_O(J);return D}var oFD="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",aFD="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",sFD="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",eFD="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",DUD=b0(oFD),$UD=b0(aFD),JUD=b0(sFD),FUD=b0(eFD),Sf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",UUD=b0(Sf),XUD=b0(Sf+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function YUD(D){return!!D||D===""}var QUD=/[>/="'\u0009\u000a\u000c\u0020]/,TO={};function qUD(D){if(TO.hasOwnProperty(D))return TO[D];let $=QUD.test(D);if($)console.error(`unsafe attribute name: ${D}`);return TO[D]=!$}var KUD={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},WUD=b0("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),GUD=b0("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),IUD=b0("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function zUD(D){if(D==null)return!1;let $=typeof D;return $==="string"||$==="number"||$==="boolean"}var ZUD=/["'&<>]/;function HUD(D){let $=""+D,J=ZUD.exec($);if(!J)return $;let F="",U,X,Y=0;for(X=J.index;X<$.length;X++){switch($.charCodeAt(X)){case 34:U=""";break;case 38:U="&";break;case 39:U="'";break;case 60:U="<";break;case 62:U=">";break;default:continue}if(Y!==X)F+=$.slice(Y,X);Y=X+1,F+=U}return Y!==X?F+$.slice(Y,X):F}var BUD=/^(?:-?>)+|<!--|-->|--!>|<!-$/g;function OUD(D){let $;do $=D,D=D.replace(BUD,"");while(D!==$);return D}var _f=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function jUD(D,$){return D.replace(_f,(J)=>$?J==='"'?"\\\\\\\"":`\\\\${J}`:`\\${J}`)}function NUD(D,$){if(D.length!==$.length)return!1;let J=!0;for(let F=0;J&&F<D.length;F++)J=xX(D[F],$[F]);return J}function xX(D,$){if(D===$)return!0;let J=PO(D),F=PO($);if(J||F)return J&&F?D.getTime()===$.getTime():!1;if(J=d5(D),F=d5($),J||F)return D===$;if(J=X2(D),F=X2($),J||F)return J&&F?NUD(D,$):!1;if(J=l1(D),F=l1($),J||F){if(!J||!F)return!1;let U=Object.keys(D).length,X=Object.keys($).length;if(U!==X)return!1;for(let Y in D){let Q=D.hasOwnProperty(Y),q=$.hasOwnProperty(Y);if(Q&&!q||!Q&&q||!xX(D[Y],$[Y]))return!1}}return String(D)===String($)}function VUD(D,$){return D.findIndex((J)=>xX(J,$))}var kf=(D)=>{return!!(D&&D.__v_isRef===!0)},Cf=(D)=>{return M6(D)?D:D==null?"":X2(D)||l1(D)&&(D.toString===SO||!i5(D.toString))?kf(D)?Cf(D.value):JSON.stringify(D,uf,2):String(D)},uf=(D,$)=>{if(kf($))return uf(D,$.value);else if(Mf($))return{[`Map(${$.size})`]:[...$.entries()].reduce((J,[F,U],X)=>{return J[bO(F,X)+" =>"]=U,J},{})};else if(Ef($))return{[`Set(${$.size})`]:[...$.values()].map((J)=>bO(J))};else if(d5($))return bO($);else if(l1($)&&!X2($)&&!Af($))return String($);return $},bO=(D,$="")=>{var J;return d5(D)?`Symbol(${(J=D.description)!=null?J:$})`:D};function LUD(D){if(D==null)return"initial";if(typeof D==="string")return D===""?" ":D;if(typeof D!=="number"||!Number.isFinite(D))console.warn("[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:",D);return String(D)}gf.EMPTY_ARR=KFD;gf.EMPTY_OBJ=qFD;gf.NO=GFD;gf.NOOP=WFD;gf.PatchFlagNames=xFD;gf.PatchFlags=fFD;gf.ShapeFlags=yFD;gf.SlotFlags=hFD;gf.camelize=EFD;gf.capitalize=Tf;gf.cssVarNameEscapeSymbolsRE=_f;gf.def=PFD;gf.escapeHtml=HUD;gf.escapeHtmlComment=OUD;gf.extend=ZFD;gf.genCacheKey=gFD;gf.genPropsAccessExp=uFD;gf.generateCodeFrame=dFD;gf.getEscapedCssVarName=jUD;gf.getGlobalThis=kFD;gf.hasChanged=TFD;gf.hasOwn=OFD;gf.hyphenate=vf;gf.includeBooleanAttr=YUD;gf.invokeArrayFns=bFD;gf.isArray=X2;gf.isBooleanAttr=XUD;gf.isBuiltInDirective=RFD;gf.isDate=PO;gf.isFunction=i5;gf.isGloballyAllowed=bf;gf.isGloballyWhitelisted=iFD;gf.isHTMLTag=DUD;gf.isIntegerKey=LFD;gf.isKnownHtmlAttr=WUD;gf.isKnownMathMLAttr=IUD;gf.isKnownSvgAttr=GUD;gf.isMap=Mf;gf.isMathMLTag=JUD;gf.isModelListener=zFD;gf.isObject=l1;gf.isOn=IFD;gf.isPlainObject=Af;gf.isPromise=NFD;gf.isRegExp=jFD;gf.isRenderableAttrValue=zUD;gf.isReservedProp=wFD;gf.isSSRSafeAttrName=qUD;gf.isSVGTag=$UD;gf.isSet=Ef;gf.isSpecialBooleanAttr=UUD;gf.isString=M6;gf.isSymbol=d5;gf.isVoidTag=FUD;gf.looseEqual=xX;gf.looseIndexOf=VUD;gf.looseToNumber=SFD;gf.makeMap=b0;gf.normalizeClass=kO;gf.normalizeCssVarValue=LUD;gf.normalizeProps=tFD;gf.normalizeStyle=_O;gf.objectToString=SO;gf.parseStringStyle=Pf;gf.propsToAttrMap=KUD;gf.remove=HFD;gf.slotFlagsText=mFD;gf.stringifyStyle=rFD;gf.toDisplayString=Cf;gf.toHandlerKey=vFD;gf.toNumber=_FD;gf.toRawType=VFD;gf.toTypeString=Y2});var fO=u((xf)=>{var uO;Object.defineProperty(xf,"__esModule",{value:!0});xf.fromCodePoint=void 0;xf.replaceCodePoint=ff;xf.decodeCodePoint=lXD;var mXD=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);xf.fromCodePoint=(uO=String.fromCodePoint)!==null&&uO!==void 0?uO:(D)=>{let $="";if(D>65535)D-=65536,$+=String.fromCharCode(D>>>10&1023|55296),D=56320|D&1023;return $+=String.fromCharCode(D),$};function ff(D){var $;if(D>=55296&&D<=57343||D>1114111)return 65533;return($=mXD.get(D))!==null&&$!==void 0?$:D}function lXD(D){return xf.fromCodePoint(ff(D))}});var xO=u((yf)=>{Object.defineProperty(yf,"__esModule",{value:!0});yf.decodeBase64=cXD;function cXD(D){let $=typeof atob==="function"?atob(D):typeof Buffer.from==="function"?Buffer.from(D,"base64").toString("binary"):new Buffer(D,"base64").toString("binary"),J=$.length&-2,F=new Uint16Array(J/2);for(let U=0,X=0;U<J;U+=2){let Y=$.charCodeAt(U),Q=$.charCodeAt(U+1);F[X++]=Y|Q<<8}return F}});var yO=u((hf)=>{Object.defineProperty(hf,"__esModule",{value:!0});hf.htmlDecodeTree=void 0;var pXD=xO();hf.htmlDecodeTree=(0,pXD.decodeBase64)("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg")});var hO=u((lf)=>{Object.defineProperty(lf,"__esModule",{value:!0});lf.xmlDecodeTree=void 0;var rXD=xO();lf.xmlDecodeTree=(0,rXD.decodeBase64)("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg")});var rf=u((nf)=>{Object.defineProperty(nf,"__esModule",{value:!0});nf.BinTrieFlags=void 0;var cf;(function(D){D[D.VALUE_LENGTH=49152]="VALUE_LENGTH",D[D.FLAG13=8192]="FLAG13",D[D.BRANCH_LENGTH=8064]="BRANCH_LENGTH",D[D.JUMP_TABLE=127]="JUMP_TABLE"})(cf||(nf.BinTrieFlags=cf={}))});var ef=u((Q2)=>{Object.defineProperty(Q2,"__esModule",{value:!0});Q2.xmlDecodeTree=Q2.htmlDecodeTree=Q2.replaceCodePoint=Q2.fromCodePoint=Q2.decodeCodePoint=Q2.EntityDecoder=Q2.DecodingMode=void 0;Q2.determineBranch=sf;Q2.decodeHTML=$YD;Q2.decodeHTMLAttribute=JYD;Q2.decodeHTMLStrict=FYD;Q2.decodeXML=UYD;var of=fO(),tXD=yO(),oXD=hO(),P0=rf(),q$;(function(D){D[D.NUM=35]="NUM",D[D.SEMI=59]="SEMI",D[D.EQUALS=61]="EQUALS",D[D.ZERO=48]="ZERO",D[D.NINE=57]="NINE",D[D.LOWER_A=97]="LOWER_A",D[D.LOWER_F=102]="LOWER_F",D[D.LOWER_X=120]="LOWER_X",D[D.LOWER_Z=122]="LOWER_Z",D[D.UPPER_A=65]="UPPER_A",D[D.UPPER_F=70]="UPPER_F",D[D.UPPER_Z=90]="UPPER_Z"})(q$||(q$={}));var tf=32;function mO(D){return D>=q$.ZERO&&D<=q$.NINE}function aXD(D){return D>=q$.UPPER_A&&D<=q$.UPPER_F||D>=q$.LOWER_A&&D<=q$.LOWER_F}function sXD(D){return D>=q$.UPPER_A&&D<=q$.UPPER_Z||D>=q$.LOWER_A&&D<=q$.LOWER_Z||mO(D)}function eXD(D){return D===q$.EQUALS||sXD(D)}var b$;(function(D){D[D.EntityStart=0]="EntityStart",D[D.NumericStart=1]="NumericStart",D[D.NumericDecimal=2]="NumericDecimal",D[D.NumericHex=3]="NumericHex",D[D.NamedEntity=4]="NamedEntity"})(b$||(b$={}));var $6;(function(D){D[D.Legacy=0]="Legacy",D[D.Strict=1]="Strict",D[D.Attribute=2]="Attribute"})($6||(Q2.DecodingMode=$6={}));class lO{constructor(D,$,J){this.decodeTree=D,this.emitCodePoint=$,this.errors=J,this.state=b$.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=$6.Strict,this.runConsumed=0}startEntity(D){this.decodeMode=D,this.state=b$.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(D,$){switch(this.state){case b$.EntityStart:{if(D.charCodeAt($)===q$.NUM)return this.state=b$.NumericStart,this.consumed+=1,this.stateNumericStart(D,$+1);return this.state=b$.NamedEntity,this.stateNamedEntity(D,$)}case b$.NumericStart:return this.stateNumericStart(D,$);case b$.NumericDecimal:return this.stateNumericDecimal(D,$);case b$.NumericHex:return this.stateNumericHex(D,$);case b$.NamedEntity:return this.stateNamedEntity(D,$)}}stateNumericStart(D,$){if($>=D.length)return-1;if((D.charCodeAt($)|tf)===q$.LOWER_X)return this.state=b$.NumericHex,this.consumed+=1,this.stateNumericHex(D,$+1);return this.state=b$.NumericDecimal,this.stateNumericDecimal(D,$)}stateNumericHex(D,$){while($<D.length){let J=D.charCodeAt($);if(mO(J)||aXD(J)){let F=J<=q$.NINE?J-q$.ZERO:(J|tf)-q$.LOWER_A+10;this.result=this.result*16+F,this.consumed++,$++}else return this.emitNumericEntity(J,3)}return-1}stateNumericDecimal(D,$){while($<D.length){let J=D.charCodeAt($);if(mO(J))this.result=this.result*10+(J-q$.ZERO),this.consumed++,$++;else return this.emitNumericEntity(J,2)}return-1}emitNumericEntity(D,$){var J;if(this.consumed<=$)return(J=this.errors)===null||J===void 0||J.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(D===q$.SEMI)this.consumed+=1;else if(this.decodeMode===$6.Strict)return 0;if(this.emitCodePoint((0,of.replaceCodePoint)(this.result),this.consumed),this.errors){if(D!==q$.SEMI)this.errors.missingSemicolonAfterCharacterReference();this.errors.validateNumericCharacterReference(this.result)}return this.consumed}stateNamedEntity(D,$){let{decodeTree:J}=this,F=J[this.treeIndex],U=(F&P0.BinTrieFlags.VALUE_LENGTH)>>14;while($<D.length){if(U===0&&(F&P0.BinTrieFlags.FLAG13)!==0){let Y=(F&P0.BinTrieFlags.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let Q=F&P0.BinTrieFlags.JUMP_TABLE;if(D.charCodeAt($)!==Q)return this.result===0?0:this.emitNotTerminatedNamedEntity();$++,this.excess++,this.runConsumed++}while(this.runConsumed<Y){if($>=D.length)return-1;let Q=this.runConsumed-1,q=J[this.treeIndex+1+(Q>>1)],K=Q%2===0?q&255:q>>8&255;if(D.charCodeAt($)!==K)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();$++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(Y>>1),F=J[this.treeIndex],U=(F&P0.BinTrieFlags.VALUE_LENGTH)>>14}if($>=D.length)break;let X=D.charCodeAt($);if(X===q$.SEMI&&U!==0&&(F&P0.BinTrieFlags.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,U,this.consumed+this.excess);if(this.treeIndex=sf(J,F,this.treeIndex+Math.max(1,U),X),this.treeIndex<0)return this.result===0||this.decodeMode===$6.Attribute&&(U===0||eXD(X))?0:this.emitNotTerminatedNamedEntity();if(F=J[this.treeIndex],U=(F&P0.BinTrieFlags.VALUE_LENGTH)>>14,U!==0){if(X===q$.SEMI)return this.emitNamedEntityData(this.treeIndex,U,this.consumed+this.excess);if(this.decodeMode!==$6.Strict&&(F&P0.BinTrieFlags.FLAG13)===0)this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0}$++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var D;let{result:$,decodeTree:J}=this,F=(J[$]&P0.BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData($,F,this.consumed),(D=this.errors)===null||D===void 0||D.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(D,$,J){let{decodeTree:F}=this;if(this.emitCodePoint($===1?F[D]&~(P0.BinTrieFlags.VALUE_LENGTH|P0.BinTrieFlags.FLAG13):F[D+1],J),$===3)this.emitCodePoint(F[D+2],J);return J}end(){var D;switch(this.state){case b$.NamedEntity:return this.result!==0&&(this.decodeMode!==$6.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case b$.NumericDecimal:return this.emitNumericEntity(0,2);case b$.NumericHex:return this.emitNumericEntity(0,3);case b$.NumericStart:return(D=this.errors)===null||D===void 0||D.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case b$.EntityStart:return 0}}}Q2.EntityDecoder=lO;function af(D){let $="",J=new lO(D,(F)=>$+=(0,of.fromCodePoint)(F));return function(U,X){let Y=0,Q=0;while((Q=U.indexOf("&",Q))>=0){$+=U.slice(Y,Q),J.startEntity(X);let K=J.write(U,Q+1);if(K<0){Y=Q+J.end();break}Y=Q+K,Q=K===0?Y+1:Y}let q=$+U.slice(Y);return $="",q}}function sf(D,$,J,F){let U=($&P0.BinTrieFlags.BRANCH_LENGTH)>>7,X=$&P0.BinTrieFlags.JUMP_TABLE;if(U===0)return X!==0&&F===X?J:-1;if(X){let K=F-X;return K<0||K>=U?-1:D[J+K]-1}let Y=U+1>>1,Q=0,q=U-1;while(Q<=q){let K=Q+q>>>1,W=K>>1,I=D[J+W]>>(K&1)*8&255;if(I<F)Q=K+1;else if(I>F)q=K-1;else return D[J+Y+K]}return-1}var iO=af(tXD.htmlDecodeTree),DYD=af(oXD.xmlDecodeTree);function $YD(D,$=$6.Legacy){return iO(D,$)}function JYD(D){return iO(D,$6.Attribute)}function FYD(D){return iO(D,$6.Strict)}function UYD(D){return DYD(D,$6.Strict)}var dO=fO();Object.defineProperty(Q2,"decodeCodePoint",{enumerable:!0,get:function(){return dO.decodeCodePoint}});Object.defineProperty(Q2,"fromCodePoint",{enumerable:!0,get:function(){return dO.fromCodePoint}});Object.defineProperty(Q2,"replaceCodePoint",{enumerable:!0,get:function(){return dO.replaceCodePoint}});var XYD=yO();Object.defineProperty(Q2,"htmlDecodeTree",{enumerable:!0,get:function(){return XYD.htmlDecodeTree}});var YYD=hO();Object.defineProperty(Q2,"xmlDecodeTree",{enumerable:!0,get:function(){return YYD.xmlDecodeTree}})});var nx=u((cx)=>{Object.defineProperty(cx,"__esModule",{value:!0});function HYD(D,$){if(D==null)return{};var J={};for(var F in D)if({}.hasOwnProperty.call(D,F)){if($.indexOf(F)!==-1)continue;J[F]=D[F]}return J}class p6{constructor(D,$,J){this.line=void 0,this.column=void 0,this.index=void 0,this.line=D,this.column=$,this.index=J}}class s5{constructor(D,$){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=D,this.end=$}}function Y0(D,$){let{line:J,column:F,index:U}=D;return new p6(J,F+$,U+$)}var Dx="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",BYD={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Dx},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Dx}},$x={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},mX=(D)=>D.type==="UpdateExpression"?$x.UpdateExpression[`${D.prefix}`]:$x[D.type],OYD={AccessorIsGenerator:({kind:D})=>`A ${D}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:D})=>`Missing initializer in ${D} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:D})=>`\`${D}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:D,exportName:$})=>`A string literal cannot be used as an exported binding without \`from\`.
- Did you mean \`export { '${D}' as '${$}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:D})=>`'${D==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:D})=>`Unsyntactic ${D==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:D})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${D}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:D})=>`Expected number in radix ${D}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:D})=>`Escape sequence in keyword ${D}.`,InvalidIdentifier:({identifierName:D})=>`Invalid identifier ${D}.`,InvalidLhs:({ancestor:D})=>`Invalid left-hand side in ${mX(D)}.`,InvalidLhsBinding:({ancestor:D})=>`Binding invalid left-hand side in ${mX(D)}.`,InvalidLhsOptionalChaining:({ancestor:D})=>`Invalid optional chaining in the left-hand side of ${mX(D)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:D})=>`Unexpected character '${D}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:D})=>`Private name #${D} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:D})=>`Label '${D}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:D})=>`This experimental syntax requires enabling the parser plugin: ${D.map(($)=>JSON.stringify($)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:D})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${D.map(($)=>JSON.stringify($)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:D})=>`Duplicate key "${D}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:D})=>`An export name cannot include a lone surrogate, found '\\u${D.toString(16)}'.`,ModuleExportUndefined:({localName:D})=>`Export '${D}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:D})=>`Private names are only allowed in property accesses (\`obj.#${D}\`) or in \`in\` expressions (\`#${D} in obj\`).`,PrivateNameRedeclaration:({identifierName:D})=>`Duplicate private name #${D}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:D})=>`Unexpected keyword '${D}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:D})=>`Unexpected reserved word '${D}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:D,unexpected:$})=>`Unexpected token${$?` '${$}'.`:""}${D?`, expected "${D}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:D,onlyValidPropertyName:$})=>`The only valid meta property for ${D} is ${D}.${$}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:D})=>`Identifier '${D}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},jYD={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:D})=>`Assigning to '${D}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:D})=>`Binding '${D}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},NYD={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:D})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(D)}\`.`},VYD=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),LYD=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:D})=>`Invalid topic token ${D}. In order to use ${D} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${D}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:D})=>`Hack-style pipe body cannot be an unparenthesized ${mX({type:D})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),wYD=["message"];function Jx(D,$,J){Object.defineProperty(D,$,{enumerable:!1,configurable:!0,value:J})}function RYD({toMessage:D,code:$,reasonCode:J,syntaxPlugin:F}){let U=J==="MissingPlugin"||J==="MissingOneOfPlugins",X={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(X[J])J=X[J];return function Y(Q,q){let K=SyntaxError();if(K.code=$,K.reasonCode=J,K.loc=Q,K.pos=Q.index,K.syntaxPlugin=F,U)K.missingPlugin=q.missingPlugin;return Jx(K,"clone",function(G={}){var I;let{line:z,column:Z,index:H}=(I=G.loc)!=null?I:Q;return Y(new p6(z,Z,H),Object.assign({},q,G.details))}),Jx(K,"details",q),Object.defineProperty(K,"message",{configurable:!0,get(){let W=`${D(q)} (${Q.line}:${Q.column})`;return this.message=W,W},set(W){Object.defineProperty(this,"message",{value:W,writable:!0})}}),K}}function E6(D,$){if(Array.isArray(D))return(F)=>E6(F,D[0]);let J={};for(let F of Object.keys(D)){let U=D[F],X=typeof U==="string"?{message:()=>U}:typeof U==="function"?{message:U}:U,{message:Y}=X,Q=HYD(X,wYD),q=typeof Y==="string"?()=>Y:Y;J[F]=RYD(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:F,toMessage:q},$?{syntaxPlugin:$}:{},Q))}return J}var M=Object.assign({},E6(BYD),E6(OYD),E6(jYD),E6(NYD),E6`pipelineOperator`(LYD));function MYD(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function EYD(D){let $=MYD();if(D==null)return $;if(D.annexB!=null&&D.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");for(let J of Object.keys($))if(D[J]!=null)$[J]=D[J];if($.startLine===1){if(D.startIndex==null&&$.startColumn>0)$.startIndex=$.startColumn;else if(D.startColumn==null&&$.startIndex>0)$.startColumn=$.startIndex}else if(D.startColumn==null||D.startIndex==null){if(D.startIndex!=null)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.")}if($.sourceType==="commonjs"){if(D.allowAwaitOutsideFunction!=null)throw Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(D.allowReturnOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(D.allowNewTargetOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return $}var{defineProperty:AYD}=Object,Fx=(D,$)=>{if(D)AYD(D,$,{enumerable:!1,value:D[$]})};function c5(D){return Fx(D.loc.start,"index"),Fx(D.loc.end,"index"),D}var vYD=(D)=>class extends D{parse(){let J=c5(super.parse());if(this.optionFlags&256)J.tokens=J.tokens.map(c5);return J}parseRegExpLiteral({pattern:J,flags:F}){let U=null;try{U=new RegExp(J,F)}catch(Y){}let X=this.estreeParseLiteral(U);return X.regex={pattern:J,flags:F},X}parseBigIntLiteral(J){let F;try{F=BigInt(J)}catch(X){F=null}let U=this.estreeParseLiteral(F);return U.bigint=String(U.value||J),U}parseDecimalLiteral(J){let U=this.estreeParseLiteral(null);return U.decimal=String(U.value||J),U}estreeParseLiteral(J){return this.parseLiteral(J,"Literal")}parseStringLiteral(J){return this.estreeParseLiteral(J)}parseNumericLiteral(J){return this.estreeParseLiteral(J)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(J){return this.estreeParseLiteral(J)}estreeParseChainExpression(J,F){let U=this.startNodeAtNode(J);return U.expression=J,this.finishNodeAt(U,"ChainExpression",F)}directiveToStmt(J){let F=J.value;delete J.value,this.castNodeTo(F,"Literal"),F.raw=F.extra.raw,F.value=F.extra.expressionValue;let U=this.castNodeTo(J,"ExpressionStatement");return U.expression=F,U.directive=F.extra.rawValue,delete F.extra,U}fillOptionalPropertiesForTSESLint(J){}cloneEstreeStringLiteral(J){let{start:F,end:U,loc:X,range:Y,raw:Q,value:q}=J,K=Object.create(J.constructor.prototype);return K.type="Literal",K.start=F,K.end=U,K.loc=X,K.range=Y,K.raw=Q,K.value=q,K}initFunction(J,F){super.initFunction(J,F),J.expression=!1}checkDeclaration(J){if(J!=null&&this.isObjectProperty(J))this.checkDeclaration(J.value);else super.checkDeclaration(J)}getObjectOrClassMethodParams(J){return J.value.params}isValidDirective(J){var F;return J.type==="ExpressionStatement"&&J.expression.type==="Literal"&&typeof J.expression.value==="string"&&!((F=J.expression.extra)!=null&&F.parenthesized)}parseBlockBody(J,F,U,X,Y){super.parseBlockBody(J,F,U,X,Y);let Q=J.directives.map((q)=>this.directiveToStmt(q));J.body=Q.concat(J.body),delete J.directives}parsePrivateName(){let J=super.parsePrivateName();if(!this.getPluginOption("estree","classFeatures"))return J;return this.convertPrivateNameToPrivateIdentifier(J)}convertPrivateNameToPrivateIdentifier(J){let F=super.getPrivateNameSV(J);return delete J.id,J.name=F,this.castNodeTo(J,"PrivateIdentifier")}isPrivateName(J){if(!this.getPluginOption("estree","classFeatures"))return super.isPrivateName(J);return J.type==="PrivateIdentifier"}getPrivateNameSV(J){if(!this.getPluginOption("estree","classFeatures"))return super.getPrivateNameSV(J);return J.name}parseLiteral(J,F){let U=super.parseLiteral(J,F);return U.raw=U.extra.raw,delete U.extra,U}parseFunctionBody(J,F,U=!1){super.parseFunctionBody(J,F,U),J.expression=J.body.type!=="BlockStatement"}parseMethod(J,F,U,X,Y,Q,q=!1){let K=this.startNode();K.kind=J.kind,K=super.parseMethod(K,F,U,X,Y,Q,q),delete K.kind;let{typeParameters:W}=J;if(W)delete J.typeParameters,K.typeParameters=W,this.resetStartLocationFromNode(K,W);let G=this.castNodeTo(K,"FunctionExpression");if(J.value=G,Q==="ClassPrivateMethod")J.computed=!1;if(Q==="ObjectMethod"){if(J.kind==="method")J.kind="init";return J.shorthand=!1,this.finishNode(J,"Property")}else return this.finishNode(J,"MethodDefinition")}nameIsConstructor(J){if(J.type==="Literal")return J.value==="constructor";return super.nameIsConstructor(J)}parseClassProperty(...J){let F=super.parseClassProperty(...J);if(!this.getPluginOption("estree","classFeatures"))return F;return this.castNodeTo(F,"PropertyDefinition"),F}parseClassPrivateProperty(...J){let F=super.parseClassPrivateProperty(...J);if(!this.getPluginOption("estree","classFeatures"))return F;return this.castNodeTo(F,"PropertyDefinition"),F.computed=!1,F}parseClassAccessorProperty(J){let F=super.parseClassAccessorProperty(J);if(!this.getPluginOption("estree","classFeatures"))return F;if(F.abstract&&this.hasPlugin("typescript"))delete F.abstract,this.castNodeTo(F,"TSAbstractAccessorProperty");else this.castNodeTo(F,"AccessorProperty");return F}parseObjectProperty(J,F,U,X){let Y=super.parseObjectProperty(J,F,U,X);if(Y)Y.kind="init",this.castNodeTo(Y,"Property");return Y}finishObjectProperty(J){return J.kind="init",this.finishNode(J,"Property")}isValidLVal(J,F,U,X){return J==="Property"?"value":super.isValidLVal(J,F,U,X)}isAssignable(J,F){if(J!=null&&this.isObjectProperty(J))return this.isAssignable(J.value,F);return super.isAssignable(J,F)}toAssignable(J,F=!1){if(J!=null&&this.isObjectProperty(J)){let{key:U,value:X}=J;if(this.isPrivateName(U))this.classScope.usePrivateName(this.getPrivateNameSV(U),U.loc.start);this.toAssignable(X,F)}else super.toAssignable(J,F)}toAssignableObjectExpressionProp(J,F,U){if(J.type==="Property"&&(J.kind==="get"||J.kind==="set"))this.raise(M.PatternHasAccessor,J.key);else if(J.type==="Property"&&J.method)this.raise(M.PatternHasMethod,J.key);else super.toAssignableObjectExpressionProp(J,F,U)}finishCallExpression(J,F){let U=super.finishCallExpression(J,F);if(U.callee.type==="Import"){var X,Y;this.castNodeTo(U,"ImportExpression"),U.source=U.arguments[0],U.options=(X=U.arguments[1])!=null?X:null,U.attributes=(Y=U.arguments[1])!=null?Y:null,delete U.arguments,delete U.callee}else if(U.type==="OptionalCallExpression")this.castNodeTo(U,"CallExpression");else U.optional=!1;return U}toReferencedArguments(J){if(J.type==="ImportExpression")return;super.toReferencedArguments(J)}parseExport(J,F){let U=this.state.lastTokStartLoc,X=super.parseExport(J,F);switch(X.type){case"ExportAllDeclaration":X.exported=null;break;case"ExportNamedDeclaration":if(X.specifiers.length===1&&X.specifiers[0].type==="ExportNamespaceSpecifier")this.castNodeTo(X,"ExportAllDeclaration"),X.exported=X.specifiers[0].exported,delete X.specifiers;case"ExportDefaultDeclaration":{var Y;let{declaration:Q}=X;if((Q==null?void 0:Q.type)==="ClassDeclaration"&&((Y=Q.decorators)==null?void 0:Y.length)>0&&Q.start===X.start)this.resetStartLocation(X,U)}break}return X}stopParseSubscript(J,F){let U=super.stopParseSubscript(J,F);if(F.optionalChainMember)return this.estreeParseChainExpression(U,J.loc.end);return U}parseMember(J,F,U,X,Y){let Q=super.parseMember(J,F,U,X,Y);if(Q.type==="OptionalMemberExpression")this.castNodeTo(Q,"MemberExpression");else Q.optional=!1;return Q}isOptionalMemberExpression(J){if(J.type==="ChainExpression")return J.expression.type==="MemberExpression";return super.isOptionalMemberExpression(J)}hasPropertyAsPrivateName(J){if(J.type==="ChainExpression")J=J.expression;return super.hasPropertyAsPrivateName(J)}isObjectProperty(J){return J.type==="Property"&&J.kind==="init"&&!J.method}isObjectMethod(J){return J.type==="Property"&&(J.method||J.kind==="get"||J.kind==="set")}castNodeTo(J,F){let U=super.castNodeTo(J,F);return this.fillOptionalPropertiesForTSESLint(U),U}cloneIdentifier(J){let F=super.cloneIdentifier(J);return this.fillOptionalPropertiesForTSESLint(F),F}cloneStringLiteral(J){if(J.type==="Literal")return this.cloneEstreeStringLiteral(J);return super.cloneStringLiteral(J)}finishNodeAt(J,F,U){return c5(super.finishNodeAt(J,F,U))}finishNode(J,F){let U=super.finishNode(J,F);return this.fillOptionalPropertiesForTSESLint(U),U}resetStartLocation(J,F){super.resetStartLocation(J,F),c5(J)}resetEndLocation(J,F=this.state.lastTokEndLoc){super.resetEndLocation(J,F),c5(J)}};class B3{constructor(D,$){this.token=void 0,this.preserveSpace=void 0,this.token=D,this.preserveSpace=!!$}}var gD={brace:new B3("{"),j_oTag:new B3("<tag"),j_cTag:new B3("</tag"),j_expr:new B3("<tag>...</tag>",!0)};gD.template=new B3("`",!0);var RD=!0,e=!0,cO=!0,n5=!0,i1=!0,TYD=!0;class $j{constructor(D,$={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=D,this.keyword=$.keyword,this.beforeExpr=!!$.beforeExpr,this.startsExpr=!!$.startsExpr,this.rightAssociative=!!$.rightAssociative,this.isLoop=!!$.isLoop,this.isAssign=!!$.isAssign,this.prefix=!!$.prefix,this.postfix=!!$.postfix,this.binop=$.binop!=null?$.binop:null,this.updateContext=null}}var Jj=new Map;function _D(D,$={}){$.keyword=D;let J=qD(D,$);return Jj.set(D,J),J}function X0(D,$){return qD(D,{beforeExpr:RD,binop:$})}var o5=-1,r6=[],Fj=[],Uj=[],Xj=[],Yj=[],Qj=[];function qD(D,$={}){var J,F,U,X;return++o5,Fj.push(D),Uj.push((J=$.binop)!=null?J:-1),Xj.push((F=$.beforeExpr)!=null?F:!1),Yj.push((U=$.startsExpr)!=null?U:!1),Qj.push((X=$.prefix)!=null?X:!1),r6.push(new $j(D,$)),o5}function ED(D,$={}){var J,F,U,X;return++o5,Jj.set(D,o5),Fj.push(D),Uj.push((J=$.binop)!=null?J:-1),Xj.push((F=$.beforeExpr)!=null?F:!1),Yj.push((U=$.startsExpr)!=null?U:!1),Qj.push((X=$.prefix)!=null?X:!1),r6.push(new $j("name",$)),o5}var bYD={bracketL:qD("[",{beforeExpr:RD,startsExpr:e}),bracketHashL:qD("#[",{beforeExpr:RD,startsExpr:e}),bracketBarL:qD("[|",{beforeExpr:RD,startsExpr:e}),bracketR:qD("]"),bracketBarR:qD("|]"),braceL:qD("{",{beforeExpr:RD,startsExpr:e}),braceBarL:qD("{|",{beforeExpr:RD,startsExpr:e}),braceHashL:qD("#{",{beforeExpr:RD,startsExpr:e}),braceR:qD("}"),braceBarR:qD("|}"),parenL:qD("(",{beforeExpr:RD,startsExpr:e}),parenR:qD(")"),comma:qD(",",{beforeExpr:RD}),semi:qD(";",{beforeExpr:RD}),colon:qD(":",{beforeExpr:RD}),doubleColon:qD("::",{beforeExpr:RD}),dot:qD("."),question:qD("?",{beforeExpr:RD}),questionDot:qD("?."),arrow:qD("=>",{beforeExpr:RD}),template:qD("template"),ellipsis:qD("...",{beforeExpr:RD}),backQuote:qD("`",{startsExpr:e}),dollarBraceL:qD("${",{beforeExpr:RD,startsExpr:e}),templateTail:qD("...`",{startsExpr:e}),templateNonTail:qD("...${",{beforeExpr:RD,startsExpr:e}),at:qD("@"),hash:qD("#",{startsExpr:e}),interpreterDirective:qD("#!..."),eq:qD("=",{beforeExpr:RD,isAssign:n5}),assign:qD("_=",{beforeExpr:RD,isAssign:n5}),slashAssign:qD("_=",{beforeExpr:RD,isAssign:n5}),xorAssign:qD("_=",{beforeExpr:RD,isAssign:n5}),moduloAssign:qD("_=",{beforeExpr:RD,isAssign:n5}),incDec:qD("++/--",{prefix:i1,postfix:TYD,startsExpr:e}),bang:qD("!",{beforeExpr:RD,prefix:i1,startsExpr:e}),tilde:qD("~",{beforeExpr:RD,prefix:i1,startsExpr:e}),doubleCaret:qD("^^",{startsExpr:e}),doubleAt:qD("@@",{startsExpr:e}),pipeline:X0("|>",0),nullishCoalescing:X0("??",1),logicalOR:X0("||",1),logicalAND:X0("&&",2),bitwiseOR:X0("|",3),bitwiseXOR:X0("^",4),bitwiseAND:X0("&",5),equality:X0("==/!=/===/!==",6),lt:X0("</>/<=/>=",7),gt:X0("</>/<=/>=",7),relational:X0("</>/<=/>=",7),bitShift:X0("<</>>/>>>",8),bitShiftL:X0("<</>>/>>>",8),bitShiftR:X0("<</>>/>>>",8),plusMin:qD("+/-",{beforeExpr:RD,binop:9,prefix:i1,startsExpr:e}),modulo:qD("%",{binop:10,startsExpr:e}),star:qD("*",{binop:10}),slash:X0("/",10),exponent:qD("**",{beforeExpr:RD,binop:11,rightAssociative:!0}),_in:_D("in",{beforeExpr:RD,binop:7}),_instanceof:_D("instanceof",{beforeExpr:RD,binop:7}),_break:_D("break"),_case:_D("case",{beforeExpr:RD}),_catch:_D("catch"),_continue:_D("continue"),_debugger:_D("debugger"),_default:_D("default",{beforeExpr:RD}),_else:_D("else",{beforeExpr:RD}),_finally:_D("finally"),_function:_D("function",{startsExpr:e}),_if:_D("if"),_return:_D("return",{beforeExpr:RD}),_switch:_D("switch"),_throw:_D("throw",{beforeExpr:RD,prefix:i1,startsExpr:e}),_try:_D("try"),_var:_D("var"),_const:_D("const"),_with:_D("with"),_new:_D("new",{beforeExpr:RD,startsExpr:e}),_this:_D("this",{startsExpr:e}),_super:_D("super",{startsExpr:e}),_class:_D("class",{startsExpr:e}),_extends:_D("extends",{beforeExpr:RD}),_export:_D("export"),_import:_D("import",{startsExpr:e}),_null:_D("null",{startsExpr:e}),_true:_D("true",{startsExpr:e}),_false:_D("false",{startsExpr:e}),_typeof:_D("typeof",{beforeExpr:RD,prefix:i1,startsExpr:e}),_void:_D("void",{beforeExpr:RD,prefix:i1,startsExpr:e}),_delete:_D("delete",{beforeExpr:RD,prefix:i1,startsExpr:e}),_do:_D("do",{isLoop:cO,beforeExpr:RD}),_for:_D("for",{isLoop:cO}),_while:_D("while",{isLoop:cO}),_as:ED("as",{startsExpr:e}),_assert:ED("assert",{startsExpr:e}),_async:ED("async",{startsExpr:e}),_await:ED("await",{startsExpr:e}),_defer:ED("defer",{startsExpr:e}),_from:ED("from",{startsExpr:e}),_get:ED("get",{startsExpr:e}),_let:ED("let",{startsExpr:e}),_meta:ED("meta",{startsExpr:e}),_of:ED("of",{startsExpr:e}),_sent:ED("sent",{startsExpr:e}),_set:ED("set",{startsExpr:e}),_source:ED("source",{startsExpr:e}),_static:ED("static",{startsExpr:e}),_using:ED("using",{startsExpr:e}),_yield:ED("yield",{startsExpr:e}),_asserts:ED("asserts",{startsExpr:e}),_checks:ED("checks",{startsExpr:e}),_exports:ED("exports",{startsExpr:e}),_global:ED("global",{startsExpr:e}),_implements:ED("implements",{startsExpr:e}),_intrinsic:ED("intrinsic",{startsExpr:e}),_infer:ED("infer",{startsExpr:e}),_is:ED("is",{startsExpr:e}),_mixins:ED("mixins",{startsExpr:e}),_proto:ED("proto",{startsExpr:e}),_require:ED("require",{startsExpr:e}),_satisfies:ED("satisfies",{startsExpr:e}),_keyof:ED("keyof",{startsExpr:e}),_readonly:ED("readonly",{startsExpr:e}),_unique:ED("unique",{startsExpr:e}),_abstract:ED("abstract",{startsExpr:e}),_declare:ED("declare",{startsExpr:e}),_enum:ED("enum",{startsExpr:e}),_module:ED("module",{startsExpr:e}),_namespace:ED("namespace",{startsExpr:e}),_interface:ED("interface",{startsExpr:e}),_type:ED("type",{startsExpr:e}),_opaque:ED("opaque",{startsExpr:e}),name:qD("name",{startsExpr:e}),placeholder:qD("%%",{startsExpr:e}),string:qD("string",{startsExpr:e}),num:qD("num",{startsExpr:e}),bigint:qD("bigint",{startsExpr:e}),decimal:qD("decimal",{startsExpr:e}),regexp:qD("regexp",{startsExpr:e}),privateName:qD("#name",{startsExpr:e}),eof:qD("eof"),jsxName:qD("jsxName"),jsxText:qD("jsxText",{beforeExpr:RD}),jsxTagStart:qD("jsxTagStart",{startsExpr:e}),jsxTagEnd:qD("jsxTagEnd")};function fD(D){return D>=93&&D<=133}function PYD(D){return D<=92}function F6(D){return D>=58&&D<=133}function Hx(D){return D>=58&&D<=137}function SYD(D){return Xj[D]}function r5(D){return Yj[D]}function _YD(D){return D>=29&&D<=33}function Ux(D){return D>=129&&D<=131}function kYD(D){return D>=90&&D<=92}function qj(D){return D>=58&&D<=92}function CYD(D){return D>=39&&D<=59}function uYD(D){return D===34}function gYD(D){return Qj[D]}function fYD(D){return D>=121&&D<=123}function xYD(D){return D>=124&&D<=130}function c1(D){return Fj[D]}function lX(D){return Uj[D]}function yYD(D){return D===57}function dX(D){return D>=24&&D<=25}function c6(D){return r6[D]}r6[8].updateContext=(D)=>{D.pop()};r6[5].updateContext=r6[7].updateContext=r6[23].updateContext=(D)=>{D.push(gD.brace)};r6[22].updateContext=(D)=>{if(D[D.length-1]===gD.template)D.pop();else D.push(gD.template)};r6[143].updateContext=(D)=>{D.push(gD.j_expr,gD.j_oTag)};var Kj="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Bx="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",hYD=new RegExp("["+Kj+"]"),mYD=new RegExp("["+Kj+Bx+"]");Kj=Bx=null;var Ox=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],lYD=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function aO(D,$){let J=65536;for(let F=0,U=$.length;F<U;F+=2){if(J+=$[F],J>D)return!1;if(J+=$[F+1],J>=D)return!0}return!1}function A6(D){if(D<65)return D===36;if(D<=90)return!0;if(D<97)return D===95;if(D<=122)return!0;if(D<=65535)return D>=170&&hYD.test(String.fromCharCode(D));return aO(D,Ox)}function K2(D){if(D<48)return D===36;if(D<58)return!0;if(D<65)return!1;if(D<=90)return!0;if(D<97)return D===95;if(D<=122)return!0;if(D<=65535)return D>=170&&mYD.test(String.fromCharCode(D));return aO(D,Ox)||aO(D,lYD)}var Wj={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},iYD=new Set(Wj.keyword),dYD=new Set(Wj.strict),cYD=new Set(Wj.strictBind);function jx(D,$){return $&&D==="await"||D==="enum"}function Nx(D,$){return jx(D,$)||dYD.has(D)}function Vx(D){return cYD.has(D)}function Lx(D,$){return Nx(D,$)||Vx(D)}function nYD(D){return iYD.has(D)}function pYD(D,$,J){return D===64&&$===64&&A6(J)}var rYD=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function tYD(D){return rYD.has(D)}class cX{constructor(D){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=D}}class nX{constructor(D,$){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=D,this.inModule=$}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let D=this.currentThisScopeFlags();return(D&64)>0&&(D&2)===0}get inStaticBlock(){for(let D=this.scopeStack.length-1;;D--){let{flags:$}=this.scopeStack[D];if($&128)return!0;if($&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(D){return new cX(D)}enter(D){this.scopeStack.push(this.createScope(D))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(D){return!!(D.flags&130||!this.parser.inModule&&D.flags&1)}declareName(D,$,J){let F=this.currentScope();if($&8||$&16){this.checkRedeclarationInScope(F,D,$,J);let U=F.names.get(D)||0;if($&16)U=U|4;else{if(!F.firstLexicalName)F.firstLexicalName=D;U=U|2}if(F.names.set(D,U),$&8)this.maybeExportDefined(F,D)}else if($&4){for(let U=this.scopeStack.length-1;U>=0;--U)if(F=this.scopeStack[U],this.checkRedeclarationInScope(F,D,$,J),F.names.set(D,(F.names.get(D)||0)|1),this.maybeExportDefined(F,D),F.flags&1667)break}if(this.parser.inModule&&F.flags&1)this.undefinedExports.delete(D)}maybeExportDefined(D,$){if(this.parser.inModule&&D.flags&1)this.undefinedExports.delete($)}checkRedeclarationInScope(D,$,J,F){if(this.isRedeclaredInScope(D,$,J))this.parser.raise(M.VarRedeclaration,F,{identifierName:$})}isRedeclaredInScope(D,$,J){if(!(J&1))return!1;if(J&8)return D.names.has($);let F=D.names.get($)||0;if(J&16)return(F&2)>0||!this.treatFunctionsAsVarInScope(D)&&(F&1)>0;return(F&2)>0&&!(D.flags&8&&D.firstLexicalName===$)||!this.treatFunctionsAsVarInScope(D)&&(F&4)>0}checkLocalExport(D){let{name:$}=D;if(!this.scopeStack[0].names.has($))this.undefinedExports.set($,D.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let D=this.scopeStack.length-1;;D--){let{flags:$}=this.scopeStack[D];if($&1667)return $}}currentThisScopeFlags(){for(let D=this.scopeStack.length-1;;D--){let{flags:$}=this.scopeStack[D];if($&1731&&!($&4))return $}}}class wx extends cX{constructor(...D){super(...D);this.declareFunctions=new Set}}class Rx extends nX{createScope(D){return new wx(D)}declareName(D,$,J){let F=this.currentScope();if($&2048){this.checkRedeclarationInScope(F,D,$,J),this.maybeExportDefined(F,D),F.declareFunctions.add(D);return}super.declareName(D,$,J)}isRedeclaredInScope(D,$,J){if(super.isRedeclaredInScope(D,$,J))return!0;if(J&2048&&!D.declareFunctions.has($)){let F=D.names.get($);return(F&4)>0||(F&2)>0}return!1}checkLocalExport(D){if(!this.scopeStack[0].declareFunctions.has(D.name))super.checkLocalExport(D)}}var oYD=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),WD=E6`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:D})=>`Cannot overwrite reserved type ${D}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:D,enumName:$})=>`Boolean enum members need to be initialized. Use either \`${D} = true,\` or \`${D} = false,\` in enum \`${$}\`.`,EnumDuplicateMemberName:({memberName:D,enumName:$})=>`Enum member names need to be unique, but the name \`${D}\` has already been used before in enum \`${$}\`.`,EnumInconsistentMemberValues:({enumName:D})=>`Enum \`${D}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:D,enumName:$})=>`Enum type \`${D}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${$}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:D})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${D}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:D,memberName:$,explicitType:J})=>`Enum \`${D}\` has type \`${J}\`, so the initializer of \`${$}\` needs to be a ${J} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:D,memberName:$})=>`Symbol enum members cannot be initialized. Use \`${$},\` in enum \`${D}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:D,memberName:$})=>`The enum member initializer for \`${$}\` needs to be a literal (either a boolean, number, or string) in enum \`${D}\`.`,EnumInvalidMemberName:({enumName:D,memberName:$,suggestion:J})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${$}\`, consider using \`${J}\`, in enum \`${D}\`.`,EnumNumberMemberNotInitialized:({enumName:D,memberName:$})=>`Number enum members need to be initialized, e.g. \`${$} = 1\` in enum \`${D}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:D})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${D}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:D})=>`Unexpected reserved type ${D}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:D,suggestion:$})=>`\`declare export ${D}\` is not supported. Use \`${$}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function aYD(D){return D.type==="DeclareExportAllDeclaration"||D.type==="DeclareExportDeclaration"&&(!D.declaration||D.declaration.type!=="TypeAlias"&&D.declaration.type!=="InterfaceDeclaration")}function Xx(D){return D.importKind==="type"||D.importKind==="typeof"}var sYD={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function eYD(D,$){let J=[],F=[];for(let U=0;U<D.length;U++)($(D[U],U,D)?J:F).push(D[U]);return[J,F]}var DQD=/\*?\s*@((?:no)?flow)\b/,$QD=(D)=>class extends D{constructor(...J){super(...J);this.flowPragma=void 0}getScopeHandler(){return Rx}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(J,F){if(J!==134&&J!==13&&J!==28){if(this.flowPragma===void 0)this.flowPragma=null}super.finishToken(J,F)}addComment(J){if(this.flowPragma===void 0){let F=DQD.exec(J.value);if(!F);else if(F[1]==="flow")this.flowPragma="flow";else if(F[1]==="noflow")this.flowPragma="noflow";else throw Error("Unexpected flow pragma")}super.addComment(J)}flowParseTypeInitialiser(J){let F=this.state.inType;this.state.inType=!0,this.expect(J||14);let U=this.flowParseType();return this.state.inType=F,U}flowParsePredicate(){let J=this.startNode(),F=this.state.startLoc;if(this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>F.index+1)this.raise(WD.UnexpectedSpaceBetweenModuloChecks,F);if(this.eat(10))return J.value=super.parseExpression(),this.expect(11),this.finishNode(J,"DeclaredPredicate");else return this.finishNode(J,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let J=this.state.inType;this.state.inType=!0,this.expect(14);let F=null,U=null;if(this.match(54))this.state.inType=J,U=this.flowParsePredicate();else if(F=this.flowParseType(),this.state.inType=J,this.match(54))U=this.flowParsePredicate();return[F,U]}flowParseDeclareClass(J){return this.next(),this.flowParseInterfaceish(J,!0),this.finishNode(J,"DeclareClass")}flowParseDeclareFunction(J){this.next();let F=J.id=this.parseIdentifier(),U=this.startNode(),X=this.startNode();if(this.match(47))U.typeParameters=this.flowParseTypeParameterDeclaration();else U.typeParameters=null;this.expect(10);let Y=this.flowParseFunctionTypeParams();return U.params=Y.params,U.rest=Y.rest,U.this=Y._this,this.expect(11),[U.returnType,J.predicate]=this.flowParseTypeAndPredicateInitialiser(),X.typeAnnotation=this.finishNode(U,"FunctionTypeAnnotation"),F.typeAnnotation=this.finishNode(X,"TypeAnnotation"),this.resetEndLocation(F),this.semicolon(),this.scope.declareName(J.id.name,2048,J.id.loc.start),this.finishNode(J,"DeclareFunction")}flowParseDeclare(J,F){if(this.match(80))return this.flowParseDeclareClass(J);else if(this.match(68))return this.flowParseDeclareFunction(J);else if(this.match(74))return this.flowParseDeclareVariable(J);else if(this.eatContextual(127))if(this.match(16))return this.flowParseDeclareModuleExports(J);else{if(F)this.raise(WD.NestedDeclareModule,this.state.lastTokStartLoc);return this.flowParseDeclareModule(J)}else if(this.isContextual(130))return this.flowParseDeclareTypeAlias(J);else if(this.isContextual(131))return this.flowParseDeclareOpaqueType(J);else if(this.isContextual(129))return this.flowParseDeclareInterface(J);else if(this.match(82))return this.flowParseDeclareExportDeclaration(J,F);throw this.unexpected()}flowParseDeclareVariable(J){return this.next(),J.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(J.id.name,5,J.id.loc.start),this.semicolon(),this.finishNode(J,"DeclareVariable")}flowParseDeclareModule(J){if(this.scope.enter(0),this.match(134))J.id=super.parseExprAtom();else J.id=this.parseIdentifier();let F=J.body=this.startNode(),U=F.body=[];this.expect(5);while(!this.match(8)){let Q=this.startNode();if(this.match(83)){if(this.next(),!this.isContextual(130)&&!this.match(87))this.raise(WD.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc);U.push(super.parseImport(Q))}else this.expectContextual(125,WD.UnsupportedStatementInDeclareModule),U.push(this.flowParseDeclare(Q,!0))}this.scope.exit(),this.expect(8),this.finishNode(F,"BlockStatement");let X=null,Y=!1;return U.forEach((Q)=>{if(aYD(Q)){if(X==="CommonJS")this.raise(WD.AmbiguousDeclareModuleKind,Q);X="ES"}else if(Q.type==="DeclareModuleExports"){if(Y)this.raise(WD.DuplicateDeclareModuleExports,Q);if(X==="ES")this.raise(WD.AmbiguousDeclareModuleKind,Q);X="CommonJS",Y=!0}}),J.kind=X||"CommonJS",this.finishNode(J,"DeclareModule")}flowParseDeclareExportDeclaration(J,F){if(this.expect(82),this.eat(65)){if(this.match(68)||this.match(80))J.declaration=this.flowParseDeclare(this.startNode());else J.declaration=this.flowParseType(),this.semicolon();return J.default=!0,this.finishNode(J,"DeclareExportDeclaration")}else{if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!F){let U=this.state.value;throw this.raise(WD.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:U,suggestion:sYD[U]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return J.declaration=this.flowParseDeclare(this.startNode()),J.default=!1,this.finishNode(J,"DeclareExportDeclaration");else if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))if(J=this.parseExport(J,null),J.type==="ExportNamedDeclaration")return J.default=!1,delete J.exportKind,this.castNodeTo(J,"DeclareExportDeclaration");else return this.castNodeTo(J,"DeclareExportAllDeclaration")}throw this.unexpected()}flowParseDeclareModuleExports(J){return this.next(),this.expectContextual(111),J.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(J,"DeclareModuleExports")}flowParseDeclareTypeAlias(J){this.next();let F=this.flowParseTypeAlias(J);return this.castNodeTo(F,"DeclareTypeAlias"),F}flowParseDeclareOpaqueType(J){this.next();let F=this.flowParseOpaqueType(J,!0);return this.castNodeTo(F,"DeclareOpaqueType"),F}flowParseDeclareInterface(J){return this.next(),this.flowParseInterfaceish(J,!1),this.finishNode(J,"DeclareInterface")}flowParseInterfaceish(J,F){if(J.id=this.flowParseRestrictedIdentifier(!F,!0),this.scope.declareName(J.id.name,F?17:8201,J.id.loc.start),this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();else J.typeParameters=null;if(J.extends=[],this.eat(81))do J.extends.push(this.flowParseInterfaceExtends());while(!F&&this.eat(12));if(F){if(J.implements=[],J.mixins=[],this.eatContextual(117))do J.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do J.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}J.body=this.flowParseObjectType({allowStatic:F,allowExact:!1,allowSpread:!1,allowProto:F,allowInexact:!1})}flowParseInterfaceExtends(){let J=this.startNode();if(J.id=this.flowParseQualifiedTypeIdentifier(),this.match(47))J.typeParameters=this.flowParseTypeParameterInstantiation();else J.typeParameters=null;return this.finishNode(J,"InterfaceExtends")}flowParseInterface(J){return this.flowParseInterfaceish(J,!1),this.finishNode(J,"InterfaceDeclaration")}checkNotUnderscore(J){if(J==="_")this.raise(WD.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(J,F,U){if(!oYD.has(J))return;this.raise(U?WD.AssignReservedType:WD.UnexpectedReservedType,F,{reservedType:J})}flowParseRestrictedIdentifierName(J,F){return this.checkReservedType(this.state.value,this.state.startLoc,F),this.parseIdentifierName(J)}flowParseRestrictedIdentifier(J,F){let U=this.startNode(),X=this.flowParseRestrictedIdentifierName(J,F);return this.createIdentifier(U,X)}flowParseTypeAlias(J){if(J.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(J.id.name,8201,J.id.loc.start),this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();else J.typeParameters=null;return J.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(J,"TypeAlias")}flowParseOpaqueType(J,F){if(this.expectContextual(130),J.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(J.id.name,8201,J.id.loc.start),this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();else J.typeParameters=null;if(J.supertype=null,this.match(14))J.supertype=this.flowParseTypeInitialiser(14);if(J.impltype=null,!F)J.impltype=this.flowParseTypeInitialiser(29);return this.semicolon(),this.finishNode(J,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){let J=this.startNode();return this.next(),J.typeAnnotation=this.flowParseType(),this.finishNode(J,"TypeAnnotation")}}flowParseTypeParameter(J=!1){let F=this.state.startLoc,U=this.startNode(),X=this.flowParseVariance();if(U.name=this.flowParseRestrictedIdentifierName(),U.variance=X,U.bound=this.flowParseTypeParameterBound(),this.match(29))this.eat(29),U.default=this.flowParseType();else if(J)this.raise(WD.MissingTypeParamDefault,F);return this.finishNode(U,"TypeParameter")}flowParseTypeParameterDeclaration(){let J=this.state.inType,F=this.startNode();if(F.params=[],this.state.inType=!0,this.match(47)||this.match(143))this.next();else this.unexpected();let U=!1;do{let X=this.flowParseTypeParameter(U);if(F.params.push(X),X.default)U=!0;if(!this.match(48))this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=J,this.finishNode(F,"TypeParameterDeclaration")}flowInTopLevelContext(J){if(this.curContext()!==gD.brace){let F=this.state.context;this.state.context=[F[0]];try{return J()}finally{this.state.context=F}}else return J()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()!==47)return;return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let J=this.startNode(),F=this.state.inType;if(this.state.inType=!0,J.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let U=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!1;while(!this.match(48))if(J.params.push(this.flowParseType()),!this.match(48))this.expect(12);this.state.noAnonFunctionType=U}),this.state.inType=F,!this.state.inType&&this.curContext()===gD.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(J,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let J=this.startNode(),F=this.state.inType;J.params=[],this.state.inType=!0,this.expect(47);while(!this.match(48))if(J.params.push(this.flowParseTypeOrImplicitInstantiation()),!this.match(48))this.expect(12);return this.expect(48),this.state.inType=F,this.finishNode(J,"TypeParameterInstantiation")}flowParseInterfaceType(){let J=this.startNode();if(this.expectContextual(129),J.extends=[],this.eat(81))do J.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return J.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(J,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(J,F,U){if(J.static=F,this.lookahead().type===14)J.id=this.flowParseObjectPropertyKey(),J.key=this.flowParseTypeInitialiser();else J.id=null,J.key=this.flowParseType();return this.expect(3),J.value=this.flowParseTypeInitialiser(),J.variance=U,this.finishNode(J,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(J,F){if(J.static=F,J.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10))J.method=!0,J.optional=!1,J.value=this.flowParseObjectTypeMethodish(this.startNodeAt(J.loc.start));else{if(J.method=!1,this.eat(17))J.optional=!0;J.value=this.flowParseTypeInitialiser()}return this.finishNode(J,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(J){if(J.params=[],J.rest=null,J.typeParameters=null,J.this=null,this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();if(this.expect(10),this.match(78)){if(J.this=this.flowParseFunctionTypeParam(!0),J.this.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(J.params.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))J.rest=this.flowParseFunctionTypeParam(!1);return this.expect(11),J.returnType=this.flowParseTypeInitialiser(),this.finishNode(J,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(J,F){let U=this.startNode();return J.static=F,J.value=this.flowParseObjectTypeMethodish(U),this.finishNode(J,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:J,allowExact:F,allowSpread:U,allowProto:X,allowInexact:Y}){let Q=this.state.inType;this.state.inType=!0;let q=this.startNode();q.callProperties=[],q.properties=[],q.indexers=[],q.internalSlots=[];let K,W,G=!1;if(F&&this.match(6))this.expect(6),K=9,W=!0;else this.expect(5),K=8,W=!1;q.exact=W;while(!this.match(K)){let z=!1,Z=null,H=null,B=this.startNode();if(X&&this.isContextual(118)){let N=this.lookahead();if(N.type!==14&&N.type!==17)this.next(),Z=this.state.startLoc,J=!1}if(J&&this.isContextual(106)){let N=this.lookahead();if(N.type!==14&&N.type!==17)this.next(),z=!0}let j=this.flowParseVariance();if(this.eat(0)){if(Z!=null)this.unexpected(Z);if(this.eat(0)){if(j)this.unexpected(j.loc.start);q.internalSlots.push(this.flowParseObjectTypeInternalSlot(B,z))}else q.indexers.push(this.flowParseObjectTypeIndexer(B,z,j))}else if(this.match(10)||this.match(47)){if(Z!=null)this.unexpected(Z);if(j)this.unexpected(j.loc.start);q.callProperties.push(this.flowParseObjectTypeCallProperty(B,z))}else{let N="init";if(this.isContextual(99)||this.isContextual(104)){let L=this.lookahead();if(Hx(L.type))N=this.state.value,this.next()}let O=this.flowParseObjectTypeProperty(B,z,Z,j,N,U,Y!=null?Y:!W);if(O===null)G=!0,H=this.state.lastTokStartLoc;else q.properties.push(O)}if(this.flowObjectTypeSemicolon(),H&&!this.match(8)&&!this.match(9))this.raise(WD.UnexpectedExplicitInexactInObject,H)}if(this.expect(K),U)q.inexact=G;let I=this.finishNode(q,"ObjectTypeAnnotation");return this.state.inType=Q,I}flowParseObjectTypeProperty(J,F,U,X,Y,Q,q){if(this.eat(21)){if(this.match(12)||this.match(13)||this.match(8)||this.match(9)){if(!Q)this.raise(WD.InexactInsideNonObject,this.state.lastTokStartLoc);else if(!q)this.raise(WD.InexactInsideExact,this.state.lastTokStartLoc);if(X)this.raise(WD.InexactVariance,X);return null}if(!Q)this.raise(WD.UnexpectedSpreadType,this.state.lastTokStartLoc);if(U!=null)this.unexpected(U);if(X)this.raise(WD.SpreadVariance,X);return J.argument=this.flowParseType(),this.finishNode(J,"ObjectTypeSpreadProperty")}else{J.key=this.flowParseObjectPropertyKey(),J.static=F,J.proto=U!=null,J.kind=Y;let K=!1;if(this.match(47)||this.match(10)){if(J.method=!0,U!=null)this.unexpected(U);if(X)this.unexpected(X.loc.start);if(J.value=this.flowParseObjectTypeMethodish(this.startNodeAt(J.loc.start)),Y==="get"||Y==="set")this.flowCheckGetterSetterParams(J);if(!Q&&J.key.name==="constructor"&&J.value.this)this.raise(WD.ThisParamBannedInConstructor,J.value.this)}else{if(Y!=="init")this.unexpected();if(J.method=!1,this.eat(17))K=!0;J.value=this.flowParseTypeInitialiser(),J.variance=X}return J.optional=K,this.finishNode(J,"ObjectTypeProperty")}}flowCheckGetterSetterParams(J){let F=J.kind==="get"?0:1,U=J.value.params.length+(J.value.rest?1:0);if(J.value.this)this.raise(J.kind==="get"?WD.GetterMayNotHaveThisParam:WD.SetterMayNotHaveThisParam,J.value.this);if(U!==F)this.raise(J.kind==="get"?M.BadGetterArity:M.BadSetterArity,J);if(J.kind==="set"&&J.value.rest)this.raise(M.BadSetterRestParameter,J)}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9))this.unexpected()}flowParseQualifiedTypeIdentifier(J,F){J!=null||(J=this.state.startLoc);let U=F||this.flowParseRestrictedIdentifier(!0);while(this.eat(16)){let X=this.startNodeAt(J);X.qualification=U,X.id=this.flowParseRestrictedIdentifier(!0),U=this.finishNode(X,"QualifiedTypeIdentifier")}return U}flowParseGenericType(J,F){let U=this.startNodeAt(J);if(U.typeParameters=null,U.id=this.flowParseQualifiedTypeIdentifier(J,F),this.match(47))U.typeParameters=this.flowParseTypeParameterInstantiation();return this.finishNode(U,"GenericTypeAnnotation")}flowParseTypeofType(){let J=this.startNode();return this.expect(87),J.argument=this.flowParsePrimaryType(),this.finishNode(J,"TypeofTypeAnnotation")}flowParseTupleType(){let J=this.startNode();J.types=[],this.expect(0);while(this.state.pos<this.length&&!this.match(3)){if(J.types.push(this.flowParseType()),this.match(3))break;this.expect(12)}return this.expect(3),this.finishNode(J,"TupleTypeAnnotation")}flowParseFunctionTypeParam(J){let F=null,U=!1,X=null,Y=this.startNode(),Q=this.lookahead(),q=this.state.type===78;if(Q.type===14||Q.type===17){if(q&&!J)this.raise(WD.ThisParamMustBeFirst,Y);if(F=this.parseIdentifier(q),this.eat(17)){if(U=!0,q)this.raise(WD.ThisParamMayNotBeOptional,Y)}X=this.flowParseTypeInitialiser()}else X=this.flowParseType();return Y.name=F,Y.optional=U,Y.typeAnnotation=X,this.finishNode(Y,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(J){let F=this.startNodeAt(J.loc.start);return F.name=null,F.optional=!1,F.typeAnnotation=J,this.finishNode(F,"FunctionTypeParam")}flowParseFunctionTypeParams(J=[]){let F=null,U=null;if(this.match(78)){if(U=this.flowParseFunctionTypeParam(!0),U.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(J.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))F=this.flowParseFunctionTypeParam(!1);return{params:J,rest:F,_this:U}}flowIdentToTypeAnnotation(J,F,U){switch(U.name){case"any":return this.finishNode(F,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(F,"BooleanTypeAnnotation");case"mixed":return this.finishNode(F,"MixedTypeAnnotation");case"empty":return this.finishNode(F,"EmptyTypeAnnotation");case"number":return this.finishNode(F,"NumberTypeAnnotation");case"string":return this.finishNode(F,"StringTypeAnnotation");case"symbol":return this.finishNode(F,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(U.name),this.flowParseGenericType(J,U)}}flowParsePrimaryType(){let J=this.state.startLoc,F=this.startNode(),U,X,Y=!1,Q=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,X=this.flowParseTupleType(),this.state.noAnonFunctionType=Q,X;case 47:{let q=this.startNode();return q.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),U=this.flowParseFunctionTypeParams(),q.params=U.params,q.rest=U.rest,q.this=U._this,this.expect(11),this.expect(19),q.returnType=this.flowParseType(),this.finishNode(q,"FunctionTypeAnnotation")}case 10:{let q=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(fD(this.state.type)||this.match(78)){let K=this.lookahead().type;Y=K!==17&&K!==14}else Y=!0;if(Y)if(this.state.noAnonFunctionType=!1,X=this.flowParseType(),this.state.noAnonFunctionType=Q,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),X;else this.eat(12);if(X)U=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(X)]);else U=this.flowParseFunctionTypeParams();return q.params=U.params,q.rest=U.rest,q.this=U._this,this.expect(11),this.expect(19),q.returnType=this.flowParseType(),q.typeParameters=null,this.finishNode(q,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return F.value=this.match(85),this.next(),this.finishNode(F,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",F);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",F);throw this.raise(WD.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(F,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(F,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(F,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(F,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(qj(this.state.type)){let q=c1(this.state.type);return this.next(),super.createIdentifier(F,q)}else if(fD(this.state.type)){if(this.isContextual(129))return this.flowParseInterfaceType();return this.flowIdentToTypeAnnotation(J,F,this.parseIdentifier())}}throw this.unexpected()}flowParsePostfixType(){let J=this.state.startLoc,F=this.flowParsePrimaryType(),U=!1;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){let X=this.startNodeAt(J),Y=this.eat(18);if(U=U||Y,this.expect(0),!Y&&this.match(3))X.elementType=F,this.next(),F=this.finishNode(X,"ArrayTypeAnnotation");else if(X.objectType=F,X.indexType=this.flowParseType(),this.expect(3),U)X.optional=Y,F=this.finishNode(X,"OptionalIndexedAccessType");else F=this.finishNode(X,"IndexedAccessType")}return F}flowParsePrefixType(){let J=this.startNode();if(this.eat(17))return J.typeAnnotation=this.flowParsePrefixType(),this.finishNode(J,"NullableTypeAnnotation");else return this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let J=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let F=this.startNodeAt(J.loc.start);return F.params=[this.reinterpretTypeAsFunctionTypeParam(J)],F.rest=null,F.this=null,F.returnType=this.flowParseType(),F.typeParameters=null,this.finishNode(F,"FunctionTypeAnnotation")}return J}flowParseIntersectionType(){let J=this.startNode();this.eat(45);let F=this.flowParseAnonFunctionWithoutParens();J.types=[F];while(this.eat(45))J.types.push(this.flowParseAnonFunctionWithoutParens());return J.types.length===1?F:this.finishNode(J,"IntersectionTypeAnnotation")}flowParseUnionType(){let J=this.startNode();this.eat(43);let F=this.flowParseIntersectionType();J.types=[F];while(this.eat(43))J.types.push(this.flowParseIntersectionType());return J.types.length===1?F:this.finishNode(J,"UnionTypeAnnotation")}flowParseType(){let J=this.state.inType;this.state.inType=!0;let F=this.flowParseUnionType();return this.state.inType=J,F}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let J=this.state.startLoc,F=this.parseIdentifier();return this.flowParseGenericType(J,F)}else return this.flowParseType()}flowParseTypeAnnotation(){let J=this.startNode();return J.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(J,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let J=this.startNode(),F=this.parseIdentifierName();if(this.match(14))J.typeAnnotation=this.flowParseTypeAnnotation();return this.createIdentifier(J,F)}typeCastToParameter(J){return J.expression.typeAnnotation=J.typeAnnotation,this.resetEndLocation(J.expression,J.typeAnnotation.loc.end),J.expression}flowParseVariance(){let J=null;if(this.match(53)){if(J=this.startNode(),this.state.value==="+")J.kind="plus";else J.kind="minus";return this.next(),this.finishNode(J,"Variance")}return J}parseFunctionBody(J,F,U=!1){if(F){this.forwardNoArrowParamsConversionAt(J,()=>super.parseFunctionBody(J,!0,U));return}super.parseFunctionBody(J,!1,U)}parseFunctionBodyAndFinish(J,F,U=!1){if(this.match(14)){let X=this.startNode();[X.typeAnnotation,J.predicate]=this.flowParseTypeAndPredicateInitialiser(),J.returnType=X.typeAnnotation?this.finishNode(X,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(J,F,U)}parseStatementLike(J){if(this.state.strict&&this.isContextual(129)){let U=this.lookahead();if(F6(U.type)){let X=this.startNode();return this.next(),this.flowParseInterface(X)}}else if(this.isContextual(126)){let U=this.startNode();return this.next(),this.flowParseEnumDeclaration(U)}let F=super.parseStatementLike(J);if(this.flowPragma===void 0&&!this.isValidDirective(F))this.flowPragma=null;return F}parseExpressionStatement(J,F,U){if(F.type==="Identifier"){if(F.name==="declare"){if(this.match(80)||fD(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(J)}else if(fD(this.state.type)){if(F.name==="interface")return this.flowParseInterface(J);else if(F.name==="type")return this.flowParseTypeAlias(J);else if(F.name==="opaque")return this.flowParseOpaqueType(J,!1)}}return super.parseExpressionStatement(J,F,U)}shouldParseExportDeclaration(){let{type:J}=this.state;if(J===126||Ux(J))return!this.state.containsEsc;return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:J}=this.state;if(J===126||Ux(J))return this.state.containsEsc;return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let J=this.startNode();return this.next(),this.flowParseEnumDeclaration(J)}return super.parseExportDefaultExpression()}parseConditional(J,F,U){if(!this.match(17))return J;if(this.state.maybeInArrowParameters){let I=this.lookaheadCharCode();if(I===44||I===61||I===58||I===41)return this.setOptionalParametersError(U),J}this.expect(17);let X=this.state.clone(),Y=this.state.noArrowAt,Q=this.startNodeAt(F),{consequent:q,failed:K}=this.tryParseConditionalConsequent(),[W,G]=this.getArrowLikeExpressions(q);if(K||G.length>0){let I=[...Y];if(G.length>0){this.state=X,this.state.noArrowAt=I;for(let z=0;z<G.length;z++)I.push(G[z].start);({consequent:q,failed:K}=this.tryParseConditionalConsequent()),[W,G]=this.getArrowLikeExpressions(q)}if(K&&W.length>1)this.raise(WD.AmbiguousConditionalArrow,X.startLoc);if(K&&W.length===1)this.state=X,I.push(W[0].start),this.state.noArrowAt=I,{consequent:q,failed:K}=this.tryParseConditionalConsequent()}return this.getArrowLikeExpressions(q,!0),this.state.noArrowAt=Y,this.expect(14),Q.test=J,Q.consequent=q,Q.alternate=this.forwardNoArrowParamsConversionAt(Q,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(Q,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let J=this.parseMaybeAssignAllowIn(),F=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:J,failed:F}}getArrowLikeExpressions(J,F){let U=[J],X=[];while(U.length!==0){let Y=U.pop();if(Y.type==="ArrowFunctionExpression"&&Y.body.type!=="BlockStatement"){if(Y.typeParameters||!Y.returnType)this.finishArrowValidation(Y);else X.push(Y);U.push(Y.body)}else if(Y.type==="ConditionalExpression")U.push(Y.consequent),U.push(Y.alternate)}if(F)return X.forEach((Y)=>this.finishArrowValidation(Y)),[X,[]];return eYD(X,(Y)=>Y.params.every((Q)=>this.isAssignable(Q,!0)))}finishArrowValidation(J){var F;this.toAssignableList(J.params,(F=J.extra)==null?void 0:F.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(J,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(J,F){let U;if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(J.start)))this.state.noArrowParamsConversionAt.push(this.state.start),U=F(),this.state.noArrowParamsConversionAt.pop();else U=F();return U}parseParenItem(J,F){let U=super.parseParenItem(J,F);if(this.eat(17))U.optional=!0,this.resetEndLocation(J);if(this.match(14)){let X=this.startNodeAt(F);return X.expression=U,X.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(X,"TypeCastExpression")}return U}assertModuleNodeAllowed(J){if(J.type==="ImportDeclaration"&&(J.importKind==="type"||J.importKind==="typeof")||J.type==="ExportNamedDeclaration"&&J.exportKind==="type"||J.type==="ExportAllDeclaration"&&J.exportKind==="type")return;super.assertModuleNodeAllowed(J)}parseExportDeclaration(J){if(this.isContextual(130)){J.exportKind="type";let F=this.startNode();if(this.next(),this.match(5))return J.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(J),null;else return this.flowParseTypeAlias(F)}else if(this.isContextual(131)){J.exportKind="type";let F=this.startNode();return this.next(),this.flowParseOpaqueType(F,!1)}else if(this.isContextual(129)){J.exportKind="type";let F=this.startNode();return this.next(),this.flowParseInterface(F)}else if(this.isContextual(126)){J.exportKind="value";let F=this.startNode();return this.next(),this.flowParseEnumDeclaration(F)}else return super.parseExportDeclaration(J)}eatExportStar(J){if(super.eatExportStar(J))return!0;if(this.isContextual(130)&&this.lookahead().type===55)return J.exportKind="type",this.next(),this.next(),!0;return!1}maybeParseExportNamespaceSpecifier(J){let{startLoc:F}=this.state,U=super.maybeParseExportNamespaceSpecifier(J);if(U&&J.exportKind==="type")this.unexpected(F);return U}parseClassId(J,F,U){if(super.parseClassId(J,F,U),this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration()}parseClassMember(J,F,U){let{startLoc:X}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(J,F))return;F.declare=!0}if(super.parseClassMember(J,F,U),F.declare){if(F.type!=="ClassProperty"&&F.type!=="ClassPrivateProperty"&&F.type!=="PropertyDefinition")this.raise(WD.DeclareClassElement,X);else if(F.value)this.raise(WD.DeclareClassFieldInitializer,F.value)}}isIterator(J){return J==="iterator"||J==="asyncIterator"}readIterator(){let J=super.readWord1(),F="@@"+J;if(!this.isIterator(J)||!this.state.inType)this.raise(M.InvalidIdentifier,this.state.curPosition(),{identifierName:F});this.finishToken(132,F)}getTokenFromCode(J){let F=this.input.charCodeAt(this.state.pos+1);if(J===123&&F===124)this.finishOp(6,2);else if(this.state.inType&&(J===62||J===60))this.finishOp(J===62?48:47,1);else if(this.state.inType&&J===63)if(F===46)this.finishOp(18,2);else this.finishOp(17,1);else if(pYD(J,F,this.input.charCodeAt(this.state.pos+2)))this.state.pos+=2,this.readIterator();else super.getTokenFromCode(J)}isAssignable(J,F){if(J.type==="TypeCastExpression")return this.isAssignable(J.expression,F);else return super.isAssignable(J,F)}toAssignable(J,F=!1){if(!F&&J.type==="AssignmentExpression"&&J.left.type==="TypeCastExpression")J.left=this.typeCastToParameter(J.left);super.toAssignable(J,F)}toAssignableList(J,F,U){for(let X=0;X<J.length;X++){let Y=J[X];if((Y==null?void 0:Y.type)==="TypeCastExpression")J[X]=this.typeCastToParameter(Y)}super.toAssignableList(J,F,U)}toReferencedList(J,F){for(let X=0;X<J.length;X++){var U;let Y=J[X];if(Y&&Y.type==="TypeCastExpression"&&!((U=Y.extra)!=null&&U.parenthesized)&&(J.length>1||!F))this.raise(WD.TypeCastInPattern,Y.typeAnnotation)}return J}parseArrayLike(J,F,U){let X=super.parseArrayLike(J,F,U);if(U!=null&&!this.state.maybeInArrowParameters)this.toReferencedList(X.elements);return X}isValidLVal(J,F,U,X){return J==="TypeCastExpression"||super.isValidLVal(J,F,U,X)}parseClassProperty(J){if(this.match(14))J.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassProperty(J)}parseClassPrivateProperty(J){if(this.match(14))J.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassPrivateProperty(J)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(J){return!this.match(14)&&super.isNonstaticConstructor(J)}pushClassMethod(J,F,U,X,Y,Q){if(F.variance)this.unexpected(F.variance.loc.start);if(delete F.variance,this.match(47))F.typeParameters=this.flowParseTypeParameterDeclaration();if(super.pushClassMethod(J,F,U,X,Y,Q),F.params&&Y){let q=F.params;if(q.length>0&&this.isThisParam(q[0]))this.raise(WD.ThisParamBannedInConstructor,F)}else if(F.type==="MethodDefinition"&&Y&&F.value.params){let q=F.value.params;if(q.length>0&&this.isThisParam(q[0]))this.raise(WD.ThisParamBannedInConstructor,F)}}pushClassPrivateMethod(J,F,U,X){if(F.variance)this.unexpected(F.variance.loc.start);if(delete F.variance,this.match(47))F.typeParameters=this.flowParseTypeParameterDeclaration();super.pushClassPrivateMethod(J,F,U,X)}parseClassSuper(J){if(super.parseClassSuper(J),J.superClass&&(this.match(47)||this.match(51)))J.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression();if(this.isContextual(113)){this.next();let F=J.implements=[];do{let U=this.startNode();if(U.id=this.flowParseRestrictedIdentifier(!0),this.match(47))U.typeParameters=this.flowParseTypeParameterInstantiation();else U.typeParameters=null;F.push(this.finishNode(U,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(J){super.checkGetterSetterParams(J);let F=this.getObjectOrClassMethodParams(J);if(F.length>0){let U=F[0];if(this.isThisParam(U)&&J.kind==="get")this.raise(WD.GetterMayNotHaveThisParam,U);else if(this.isThisParam(U))this.raise(WD.SetterMayNotHaveThisParam,U)}}parsePropertyNamePrefixOperator(J){J.variance=this.flowParseVariance()}parseObjPropValue(J,F,U,X,Y,Q,q){if(J.variance)this.unexpected(J.variance.loc.start);delete J.variance;let K;if(this.match(47)&&!Q){if(K=this.flowParseTypeParameterDeclaration(),!this.match(10))this.unexpected()}let W=super.parseObjPropValue(J,F,U,X,Y,Q,q);if(K)(W.value||W).typeParameters=K;return W}parseFunctionParamType(J){if(this.eat(17)){if(J.type!=="Identifier")this.raise(WD.PatternIsOptional,J);if(this.isThisParam(J))this.raise(WD.ThisParamMayNotBeOptional,J);J.optional=!0}if(this.match(14))J.typeAnnotation=this.flowParseTypeAnnotation();else if(this.isThisParam(J))this.raise(WD.ThisParamAnnotationRequired,J);if(this.match(29)&&this.isThisParam(J))this.raise(WD.ThisParamNoDefault,J);return this.resetEndLocation(J),J}parseMaybeDefault(J,F){let U=super.parseMaybeDefault(J,F);if(U.type==="AssignmentPattern"&&U.typeAnnotation&&U.right.start<U.typeAnnotation.start)this.raise(WD.TypeBeforeInitializer,U.typeAnnotation);return U}checkImportReflection(J){if(super.checkImportReflection(J),J.module&&J.importKind!=="value")this.raise(WD.ImportReflectionHasImportType,J.specifiers[0].loc.start)}parseImportSpecifierLocal(J,F,U){F.local=Xx(J)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),J.specifiers.push(this.finishImportSpecifier(F,U))}isPotentialImportPhase(J){if(super.isPotentialImportPhase(J))return!0;if(this.isContextual(130)){if(!J)return!0;let F=this.lookaheadCharCode();return F===123||F===42}return!J&&this.isContextual(87)}applyImportPhase(J,F,U,X){if(super.applyImportPhase(J,F,U,X),F){if(!U&&this.match(65))return;J.exportKind=U==="type"?U:"value"}else{if(U==="type"&&this.match(55))this.unexpected();J.importKind=U==="type"||U==="typeof"?U:"value"}}parseImportSpecifier(J,F,U,X,Y){let Q=J.imported,q=null;if(Q.type==="Identifier"){if(Q.name==="type")q="type";else if(Q.name==="typeof")q="typeof"}let K=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let G=this.parseIdentifier(!0);if(q!==null&&!F6(this.state.type))J.imported=G,J.importKind=q,J.local=this.cloneIdentifier(G);else J.imported=Q,J.importKind=null,J.local=this.parseIdentifier()}else{if(q!==null&&F6(this.state.type))J.imported=this.parseIdentifier(!0),J.importKind=q;else{if(F)throw this.raise(M.ImportBindingIsString,J,{importName:Q.value});J.imported=Q,J.importKind=null}if(this.eatContextual(93))J.local=this.parseIdentifier();else K=!0,J.local=this.cloneIdentifier(J.imported)}let W=Xx(J);if(U&&W)this.raise(WD.ImportTypeShorthandOnlyInPureImport,J);if(U||W)this.checkReservedType(J.local.name,J.local.loc.start,!0);if(K&&!U&&!W)this.checkReservedWord(J.local.name,J.loc.start,!0,!0);return this.finishImportSpecifier(J,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(J,F){let U=J.kind;if(U!=="get"&&U!=="set"&&this.match(47))J.typeParameters=this.flowParseTypeParameterDeclaration();super.parseFunctionParams(J,F)}parseVarId(J,F){if(super.parseVarId(J,F),this.match(14))J.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(J.id)}parseAsyncArrowFromCallExpression(J,F){if(this.match(14)){let U=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,J.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=U}return super.parseAsyncArrowFromCallExpression(J,F)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(J,F){var U;let X=null,Y;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(X=this.state.clone(),Y=this.tryParse(()=>super.parseMaybeAssign(J,F),X),!Y.error)return Y.node;let{context:K}=this.state,W=K[K.length-1];if(W===gD.j_oTag||W===gD.j_expr)K.pop()}if((U=Y)!=null&&U.error||this.match(47)){var Q,q;X=X||this.state.clone();let K,W=this.tryParse((I)=>{var z;K=this.flowParseTypeParameterDeclaration();let Z=this.forwardNoArrowParamsConversionAt(K,()=>{let B=super.parseMaybeAssign(J,F);return this.resetStartLocationFromNode(B,K),B});if((z=Z.extra)!=null&&z.parenthesized)I();let H=this.maybeUnwrapTypeCastExpression(Z);if(H.type!=="ArrowFunctionExpression")I();return H.typeParameters=K,this.resetStartLocationFromNode(H,K),Z},X),G=null;if(W.node&&this.maybeUnwrapTypeCastExpression(W.node).type==="ArrowFunctionExpression"){if(!W.error&&!W.aborted){if(W.node.async)this.raise(WD.UnexpectedTypeParameterBeforeAsyncArrowFunction,K);return W.node}G=W.node}if((Q=Y)!=null&&Q.node)return this.state=Y.failState,Y.node;if(G)return this.state=W.failState,G;if((q=Y)!=null&&q.thrown)throw Y.error;if(W.thrown)throw W.error;throw this.raise(WD.UnexpectedTokenAfterTypeParameter,K)}return super.parseMaybeAssign(J,F)}parseArrow(J){if(this.match(14)){let F=this.tryParse(()=>{let U=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let X=this.startNode();if([X.typeAnnotation,J.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=U,this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return X});if(F.thrown)return null;if(F.error)this.state=F.failState;J.returnType=F.node.typeAnnotation?this.finishNode(F.node,"TypeAnnotation"):null}return super.parseArrow(J)}shouldParseArrow(J){return this.match(14)||super.shouldParseArrow(J)}setArrowFunctionParameters(J,F){if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(J.start)))J.params=F;else super.setArrowFunctionParameters(J,F)}checkParams(J,F,U,X=!0){if(U&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(J.start)))return;for(let Y=0;Y<J.params.length;Y++)if(this.isThisParam(J.params[Y])&&Y>0)this.raise(WD.ThisParamMustBeFirst,J.params[Y]);super.checkParams(J,F,U,X)}parseParenAndDistinguishExpression(J){return super.parseParenAndDistinguishExpression(J&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(J,F,U){if(J.type==="Identifier"&&J.name==="async"&&this.state.noArrowAt.includes(F.index)){this.next();let X=this.startNodeAt(F);X.callee=J,X.arguments=super.parseCallExpressionArguments(),J=this.finishNode(X,"CallExpression")}else if(J.type==="Identifier"&&J.name==="async"&&this.match(47)){let X=this.state.clone(),Y=this.tryParse((q)=>this.parseAsyncArrowWithTypeParameters(F)||q(),X);if(!Y.error&&!Y.aborted)return Y.node;let Q=this.tryParse(()=>super.parseSubscripts(J,F,U),X);if(Q.node&&!Q.error)return Q.node;if(Y.node)return this.state=Y.failState,Y.node;if(Q.node)return this.state=Q.failState,Q.node;throw Y.error||Q.error}return super.parseSubscripts(J,F,U)}parseSubscript(J,F,U,X){if(this.match(18)&&this.isLookaheadToken_lt()){if(X.optionalChainMember=!0,U)return X.stop=!0,J;this.next();let Y=this.startNodeAt(F);return Y.callee=J,Y.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),Y.arguments=this.parseCallExpressionArguments(),Y.optional=!0,this.finishCallExpression(Y,!0)}else if(!U&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let Y=this.startNodeAt(F);Y.callee=J;let Q=this.tryParse(()=>{if(Y.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),Y.arguments=super.parseCallExpressionArguments(),X.optionalChainMember)Y.optional=!1;return this.finishCallExpression(Y,X.optionalChainMember)});if(Q.node){if(Q.error)this.state=Q.failState;return Q.node}}return super.parseSubscript(J,F,U,X)}parseNewCallee(J){super.parseNewCallee(J);let F=null;if(this.shouldParseTypes()&&this.match(47))F=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node;J.typeArguments=F}parseAsyncArrowWithTypeParameters(J){let F=this.startNodeAt(J);if(this.parseFunctionParams(F,!1),!this.parseArrow(F))return;return super.parseArrowExpression(F,void 0,!0)}readToken_mult_modulo(J){let F=this.input.charCodeAt(this.state.pos+1);if(J===42&&F===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(J)}readToken_pipe_amp(J){let F=this.input.charCodeAt(this.state.pos+1);if(J===124&&F===125){this.finishOp(9,2);return}super.readToken_pipe_amp(J)}parseTopLevel(J,F){let U=super.parseTopLevel(J,F);if(this.state.hasFlowComment)this.raise(WD.UnterminatedFlowComment,this.state.curPosition());return U}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(WD.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let J=this.skipFlowComment();if(J)this.state.pos+=J,this.state.hasFlowComment=!0;return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:J}=this.state,F=2;while([32,9].includes(this.input.charCodeAt(J+F)))F++;let U=this.input.charCodeAt(F+J),X=this.input.charCodeAt(F+J+1);if(U===58&&X===58)return F+2;if(this.input.slice(F+J,F+J+12)==="flow-include")return F+12;if(U===58&&X!==58)return F;return!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(M.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(J,{enumName:F,memberName:U}){this.raise(WD.EnumBooleanMemberNotInitialized,J,{memberName:U,enumName:F})}flowEnumErrorInvalidMemberInitializer(J,F){return this.raise(!F.explicitType?WD.EnumInvalidMemberInitializerUnknownType:F.explicitType==="symbol"?WD.EnumInvalidMemberInitializerSymbolType:WD.EnumInvalidMemberInitializerPrimaryType,J,F)}flowEnumErrorNumberMemberNotInitialized(J,F){this.raise(WD.EnumNumberMemberNotInitialized,J,F)}flowEnumErrorStringMemberInconsistentlyInitialized(J,F){this.raise(WD.EnumStringMemberInconsistentlyInitialized,J,F)}flowEnumMemberInit(){let J=this.state.startLoc,F=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let U=this.parseNumericLiteral(this.state.value);if(F())return{type:"number",loc:U.loc.start,value:U};return{type:"invalid",loc:J}}case 134:{let U=this.parseStringLiteral(this.state.value);if(F())return{type:"string",loc:U.loc.start,value:U};return{type:"invalid",loc:J}}case 85:case 86:{let U=this.parseBooleanLiteral(this.match(85));if(F())return{type:"boolean",loc:U.loc.start,value:U};return{type:"invalid",loc:J}}default:return{type:"invalid",loc:J}}}flowEnumMemberRaw(){let J=this.state.startLoc,F=this.parseIdentifier(!0),U=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:J};return{id:F,init:U}}flowEnumCheckExplicitTypeMismatch(J,F,U){let{explicitType:X}=F;if(X===null)return;if(X!==U)this.flowEnumErrorInvalidMemberInitializer(J,F)}flowEnumMembers({enumName:J,explicitType:F}){let U=new Set,X={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},Y=!1;while(!this.match(8)){if(this.eat(21)){Y=!0;break}let Q=this.startNode(),{id:q,init:K}=this.flowEnumMemberRaw(),W=q.name;if(W==="")continue;if(/^[a-z]/.test(W))this.raise(WD.EnumInvalidMemberName,q,{memberName:W,suggestion:W[0].toUpperCase()+W.slice(1),enumName:J});if(U.has(W))this.raise(WD.EnumDuplicateMemberName,q,{memberName:W,enumName:J});U.add(W);let G={enumName:J,explicitType:F,memberName:W};switch(Q.id=q,K.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(K.loc,G,"boolean"),Q.init=K.value,X.booleanMembers.push(this.finishNode(Q,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(K.loc,G,"number"),Q.init=K.value,X.numberMembers.push(this.finishNode(Q,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(K.loc,G,"string"),Q.init=K.value,X.stringMembers.push(this.finishNode(Q,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(K.loc,G);case"none":switch(F){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(K.loc,G);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(K.loc,G);break;default:X.defaultedMembers.push(this.finishNode(Q,"EnumDefaultedMember"))}}if(!this.match(8))this.expect(12)}return{members:X,hasUnknownMembers:Y}}flowEnumStringMembers(J,F,{enumName:U}){if(J.length===0)return F;else if(F.length===0)return J;else if(F.length>J.length){for(let X of J)this.flowEnumErrorStringMemberInconsistentlyInitialized(X,{enumName:U});return F}else{for(let X of F)this.flowEnumErrorStringMemberInconsistentlyInitialized(X,{enumName:U});return J}}flowEnumParseExplicitType({enumName:J}){if(!this.eatContextual(102))return null;if(!fD(this.state.type))throw this.raise(WD.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:J});let{value:F}=this.state;if(this.next(),F!=="boolean"&&F!=="number"&&F!=="string"&&F!=="symbol")this.raise(WD.EnumInvalidExplicitType,this.state.startLoc,{enumName:J,invalidEnumType:F});return F}flowEnumBody(J,F){let U=F.name,X=F.loc.start,Y=this.flowEnumParseExplicitType({enumName:U});this.expect(5);let{members:Q,hasUnknownMembers:q}=this.flowEnumMembers({enumName:U,explicitType:Y});switch(J.hasUnknownMembers=q,Y){case"boolean":return J.explicitType=!0,J.members=Q.booleanMembers,this.expect(8),this.finishNode(J,"EnumBooleanBody");case"number":return J.explicitType=!0,J.members=Q.numberMembers,this.expect(8),this.finishNode(J,"EnumNumberBody");case"string":return J.explicitType=!0,J.members=this.flowEnumStringMembers(Q.stringMembers,Q.defaultedMembers,{enumName:U}),this.expect(8),this.finishNode(J,"EnumStringBody");case"symbol":return J.members=Q.defaultedMembers,this.expect(8),this.finishNode(J,"EnumSymbolBody");default:{let K=()=>{return J.members=[],this.expect(8),this.finishNode(J,"EnumStringBody")};J.explicitType=!1;let W=Q.booleanMembers.length,G=Q.numberMembers.length,I=Q.stringMembers.length,z=Q.defaultedMembers.length;if(!W&&!G&&!I&&!z)return K();else if(!W&&!G)return J.members=this.flowEnumStringMembers(Q.stringMembers,Q.defaultedMembers,{enumName:U}),this.expect(8),this.finishNode(J,"EnumStringBody");else if(!G&&!I&&W>=z){for(let Z of Q.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(Z.loc.start,{enumName:U,memberName:Z.id.name});return J.members=Q.booleanMembers,this.expect(8),this.finishNode(J,"EnumBooleanBody")}else if(!W&&!I&&G>=z){for(let Z of Q.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(Z.loc.start,{enumName:U,memberName:Z.id.name});return J.members=Q.numberMembers,this.expect(8),this.finishNode(J,"EnumNumberBody")}else return this.raise(WD.EnumInconsistentMemberValues,X,{enumName:U}),K()}}}flowParseEnumDeclaration(J){let F=this.parseIdentifier();return J.id=F,J.body=this.flowEnumBody(this.startNode(),F),this.finishNode(J,"EnumDeclaration")}jsxParseOpeningElementAfterName(J){if(this.shouldParseTypes()){if(this.match(47)||this.match(51))J.typeArguments=this.flowParseTypeParameterInstantiationInExpression()}return super.jsxParseOpeningElementAfterName(J)}isLookaheadToken_lt(){let J=this.nextTokenStart();if(this.input.charCodeAt(J)===60){let F=this.input.charCodeAt(J+1);return F!==60&&F!==61}return!1}reScan_lt_gt(){let{type:J}=this.state;if(J===47)this.state.pos-=1,this.readToken_lt();else if(J===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:J}=this.state;if(J===51)return this.state.pos-=2,this.finishOp(47,1),47;return J}maybeUnwrapTypeCastExpression(J){return J.type==="TypeCastExpression"?J.expression:J}},JQD={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},FQD=/\r\n|[\r\n\u2028\u2029]/,yX=new RegExp(FQD.source,"g");function j3(D){switch(D){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Yx(D,$,J){for(let F=$;F<J;F++)if(j3(D.charCodeAt(F)))return!0;return!1}var nO=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,pO=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function UQD(D){switch(D){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var q2=E6`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:D})=>`Expected corresponding JSX closing tag for <${D}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:D,HTMLEntity:$})=>`Unexpected token \`${D}\`. Did you mean \`${$}\` or \`{'${D}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function d1(D){return D?D.type==="JSXOpeningFragment"||D.type==="JSXClosingFragment":!1}function O3(D){if(D.type==="JSXIdentifier")return D.name;if(D.type==="JSXNamespacedName")return D.namespace.name+":"+D.name.name;if(D.type==="JSXMemberExpression")return O3(D.object)+"."+O3(D.property);throw Error("Node had unexpected type: "+D.type)}var XQD=(D)=>class extends D{jsxReadToken(){let J="",F=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(q2.UnterminatedJsxContent,this.state.startLoc);let U=this.input.charCodeAt(this.state.pos);switch(U){case 60:case 123:if(this.state.pos===this.state.start){if(U===60&&this.state.canStartJSXElement)++this.state.pos,this.finishToken(143);else super.getTokenFromCode(U);return}J+=this.input.slice(F,this.state.pos),this.finishToken(142,J);return;case 38:J+=this.input.slice(F,this.state.pos),J+=this.jsxReadEntity(),F=this.state.pos;break;case 62:case 125:default:if(j3(U))J+=this.input.slice(F,this.state.pos),J+=this.jsxReadNewLine(!0),F=this.state.pos;else++this.state.pos}}}jsxReadNewLine(J){let F=this.input.charCodeAt(this.state.pos),U;if(++this.state.pos,F===13&&this.input.charCodeAt(this.state.pos)===10)++this.state.pos,U=J?`
`:`\r
`;else U=String.fromCharCode(F);return++this.state.curLine,this.state.lineStart=this.state.pos,U}jsxReadString(J){let F="",U=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(M.UnterminatedString,this.state.startLoc);let X=this.input.charCodeAt(this.state.pos);if(X===J)break;if(X===38)F+=this.input.slice(U,this.state.pos),F+=this.jsxReadEntity(),U=this.state.pos;else if(j3(X))F+=this.input.slice(U,this.state.pos),F+=this.jsxReadNewLine(!1),U=this.state.pos;else++this.state.pos}F+=this.input.slice(U,this.state.pos++),this.finishToken(134,F)}jsxReadEntity(){let J=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let F=10;if(this.codePointAtPos(this.state.pos)===120)F=16,++this.state.pos;let U=this.readInt(F,void 0,!1,"bail");if(U!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(U)}else{let F=0,U=!1;while(F++<10&&this.state.pos<this.length&&!(U=this.codePointAtPos(this.state.pos)===59))++this.state.pos;if(U){let X=this.input.slice(J,this.state.pos),Y=JQD[X];if(++this.state.pos,Y)return Y}}return this.state.pos=J,"&"}jsxReadWord(){let J,F=this.state.pos;do J=this.input.charCodeAt(++this.state.pos);while(K2(J)||J===45);this.finishToken(141,this.input.slice(F,this.state.pos))}jsxParseIdentifier(){let J=this.startNode();if(this.match(141))J.name=this.state.value;else if(qj(this.state.type))J.name=c1(this.state.type);else this.unexpected();return this.next(),this.finishNode(J,"JSXIdentifier")}jsxParseNamespacedName(){let J=this.state.startLoc,F=this.jsxParseIdentifier();if(!this.eat(14))return F;let U=this.startNodeAt(J);return U.namespace=F,U.name=this.jsxParseIdentifier(),this.finishNode(U,"JSXNamespacedName")}jsxParseElementName(){let J=this.state.startLoc,F=this.jsxParseNamespacedName();if(F.type==="JSXNamespacedName")return F;while(this.eat(16)){let U=this.startNodeAt(J);U.object=F,U.property=this.jsxParseIdentifier(),F=this.finishNode(U,"JSXMemberExpression")}return F}jsxParseAttributeValue(){let J;switch(this.state.type){case 5:if(J=this.startNode(),this.setContext(gD.brace),this.next(),J=this.jsxParseExpressionContainer(J,gD.j_oTag),J.expression.type==="JSXEmptyExpression")this.raise(q2.AttributeIsEmpty,J);return J;case 143:case 134:return this.parseExprAtom();default:throw this.raise(q2.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let J=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(J,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(J){return this.next(),J.expression=this.parseExpression(),this.setContext(gD.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(J,"JSXSpreadChild")}jsxParseExpressionContainer(J,F){if(this.match(8))J.expression=this.jsxParseEmptyExpression();else{let U=this.parseExpression();J.expression=U}return this.setContext(F),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(J,"JSXExpressionContainer")}jsxParseAttribute(){let J=this.startNode();if(this.match(5))return this.setContext(gD.brace),this.next(),this.expect(21),J.argument=this.parseMaybeAssignAllowIn(),this.setContext(gD.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(J,"JSXSpreadAttribute");return J.name=this.jsxParseNamespacedName(),J.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(J,"JSXAttribute")}jsxParseOpeningElementAt(J){let F=this.startNodeAt(J);if(this.eat(144))return this.finishNode(F,"JSXOpeningFragment");return F.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(F)}jsxParseOpeningElementAfterName(J){let F=[];while(!this.match(56)&&!this.match(144))F.push(this.jsxParseAttribute());return J.attributes=F,J.selfClosing=this.eat(56),this.expect(144),this.finishNode(J,"JSXOpeningElement")}jsxParseClosingElementAt(J){let F=this.startNodeAt(J);if(this.eat(144))return this.finishNode(F,"JSXClosingFragment");return F.name=this.jsxParseElementName(),this.expect(144),this.finishNode(F,"JSXClosingElement")}jsxParseElementAt(J){let F=this.startNodeAt(J),U=[],X=this.jsxParseOpeningElementAt(J),Y=null;if(!X.selfClosing){D:for(;;)switch(this.state.type){case 143:if(J=this.state.startLoc,this.next(),this.eat(56)){Y=this.jsxParseClosingElementAt(J);break D}U.push(this.jsxParseElementAt(J));break;case 142:U.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let Q=this.startNode();if(this.setContext(gD.brace),this.next(),this.match(21))U.push(this.jsxParseSpreadChild(Q));else U.push(this.jsxParseExpressionContainer(Q,gD.j_expr));break}default:this.unexpected()}if(d1(X)&&!d1(Y)&&Y!==null)this.raise(q2.MissingClosingTagFragment,Y);else if(!d1(X)&&d1(Y))this.raise(q2.MissingClosingTagElement,Y,{openingTagName:O3(X.name)});else if(!d1(X)&&!d1(Y)){if(O3(Y.name)!==O3(X.name))this.raise(q2.MissingClosingTagElement,Y,{openingTagName:O3(X.name)})}}if(d1(X))F.openingFragment=X,F.closingFragment=Y;else F.openingElement=X,F.closingElement=Y;if(F.children=U,this.match(47))throw this.raise(q2.UnwrappedAdjacentJSXElements,this.state.startLoc);return d1(X)?this.finishNode(F,"JSXFragment"):this.finishNode(F,"JSXElement")}jsxParseElement(){let J=this.state.startLoc;return this.next(),this.jsxParseElementAt(J)}setContext(J){let{context:F}=this.state;F[F.length-1]=J}parseExprAtom(J){if(this.match(143))return this.jsxParseElement();else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33)return this.replaceToken(143),this.jsxParseElement();else return super.parseExprAtom(J)}skipSpace(){if(!this.curContext().preserveSpace)super.skipSpace()}getTokenFromCode(J){let F=this.curContext();if(F===gD.j_expr){this.jsxReadToken();return}if(F===gD.j_oTag||F===gD.j_cTag){if(A6(J)){this.jsxReadWord();return}if(J===62){++this.state.pos,this.finishToken(144);return}if((J===34||J===39)&&F===gD.j_oTag){this.jsxReadString(J);return}}if(J===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(J)}updateContext(J){let{context:F,type:U}=this.state;if(U===56&&J===143)F.splice(-2,2,gD.j_cTag),this.state.canStartJSXElement=!1;else if(U===143)F.push(gD.j_oTag);else if(U===144){let X=F[F.length-1];if(X===gD.j_oTag&&J===56||X===gD.j_cTag)F.pop(),this.state.canStartJSXElement=F[F.length-1]===gD.j_expr;else this.setContext(gD.j_expr),this.state.canStartJSXElement=!0}else this.state.canStartJSXElement=SYD(U)}};class Mx extends cX{constructor(...D){super(...D);this.tsNames=new Map}}class Ex extends nX{constructor(...D){super(...D);this.importsStack=[]}createScope(D){return this.importsStack.push(new Set),new Mx(D)}enter(D){if(D===1024)this.importsStack.push(new Set);super.enter(D)}exit(){let D=super.exit();if(D===1024)this.importsStack.pop();return D}hasImport(D,$){let J=this.importsStack.length;if(this.importsStack[J-1].has(D))return!0;if(!$&&J>1){for(let F=0;F<J-1;F++)if(this.importsStack[F].has(D))return!0}return!1}declareName(D,$,J){if($&4096){if(this.hasImport(D,!0))this.parser.raise(M.VarRedeclaration,J,{identifierName:D});this.importsStack[this.importsStack.length-1].add(D);return}let F=this.currentScope(),U=F.tsNames.get(D)||0;if($&1024){this.maybeExportDefined(F,D),F.tsNames.set(D,U|16);return}if(super.declareName(D,$,J),$&2){if(!($&1))this.checkRedeclarationInScope(F,D,$,J),this.maybeExportDefined(F,D);U=U|1}if($&256)U=U|2;if($&512)U=U|4;if($&128)U=U|8;if(U)F.tsNames.set(D,U)}isRedeclaredInScope(D,$,J){let F=D.tsNames.get($);if((F&2)>0){if(J&256){let U=!!(J&512),X=(F&4)>0;return U!==X}return!0}if(J&128&&(F&8)>0)if(D.names.get($)&2)return!!(J&1);else return!1;if(J&2&&(F&1)>0)return!0;return super.isRedeclaredInScope(D,$,J)}checkLocalExport(D){let{name:$}=D;if(this.hasImport($))return;let J=this.scopeStack.length;for(let F=J-1;F>=0;F--){let X=this.scopeStack[F].tsNames.get($);if((X&1)>0||(X&16)>0)return}super.checkLocalExport(D)}}class Ax{constructor(){this.stacks=[]}enter(D){this.stacks.push(D)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function iX(D,$){return(D?2:0)|($?1:0)}class vx{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(D){return D+this.startIndex}offsetToSourcePos(D){return D-this.startIndex}hasPlugin(D){if(typeof D==="string")return this.plugins.has(D);else{let[$,J]=D;if(!this.hasPlugin($))return!1;let F=this.plugins.get($);for(let U of Object.keys(J))if((F==null?void 0:F[U])!==J[U])return!1;return!0}}getPluginOption(D,$){var J;return(J=this.plugins.get(D))==null?void 0:J[$]}}function Tx(D,$){if(D.trailingComments===void 0)D.trailingComments=$;else D.trailingComments.unshift(...$)}function YQD(D,$){if(D.leadingComments===void 0)D.leadingComments=$;else D.leadingComments.unshift(...$)}function e5(D,$){if(D.innerComments===void 0)D.innerComments=$;else D.innerComments.unshift(...$)}function J6(D,$,J){let F=null,U=$.length;while(F===null&&U>0)F=$[--U];if(F===null||F.start>J.start)e5(D,J.comments);else Tx(F,J.comments)}class bx extends vx{addComment(D){if(this.filename)D.loc.filename=this.filename;let{commentsLen:$}=this.state;if(this.comments.length!==$)this.comments.length=$;this.comments.push(D),this.state.commentsLen++}processComment(D){let{commentStack:$}=this.state,J=$.length;if(J===0)return;let F=J-1,U=$[F];if(U.start===D.end)U.leadingNode=D,F--;let{start:X}=D;for(;F>=0;F--){let Y=$[F],Q=Y.end;if(Q>X)Y.containingNode=D,this.finalizeComment(Y),$.splice(F,1);else{if(Q===X)Y.trailingNode=D;break}}}finalizeComment(D){var $;let{comments:J}=D;if(D.leadingNode!==null||D.trailingNode!==null){if(D.leadingNode!==null)Tx(D.leadingNode,J);if(D.trailingNode!==null)YQD(D.trailingNode,J)}else{let{containingNode:F,start:U}=D;if(this.input.charCodeAt(this.offsetToSourcePos(U)-1)===44)switch(F.type){case"ObjectExpression":case"ObjectPattern":J6(F,F.properties,D);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":J6(F,F.arguments,D);break;case"ImportExpression":J6(F,[F.source,($=F.options)!=null?$:null],D);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":J6(F,F.params,D);break;case"ArrayExpression":case"ArrayPattern":J6(F,F.elements,D);break;case"ExportNamedDeclaration":case"ImportDeclaration":J6(F,F.specifiers,D);break;case"TSEnumDeclaration":J6(F,F.members,D);break;case"TSEnumBody":J6(F,F.members,D);break;case"TSInterfaceBody":J6(F,F.body,D);break;default:{if(F.type==="RecordExpression"){J6(F,F.properties,D);break}if(F.type==="TupleExpression"){J6(F,F.elements,D);break}e5(F,J)}}else e5(F,J)}}finalizeRemainingComments(){let{commentStack:D}=this.state;for(let $=D.length-1;$>=0;$--)this.finalizeComment(D[$]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(D){let{commentStack:$}=this.state,{length:J}=$;if(J===0)return;let F=$[J-1];if(F.leadingNode===D)F.leadingNode=null}takeSurroundingComments(D,$,J){let{commentStack:F}=this.state,U=F.length;if(U===0)return;let X=U-1;for(;X>=0;X--){let Y=F[X],Q=Y.end;if(Y.start===J)Y.leadingNode=D;else if(Q===$)Y.trailingNode=D;else if(Q<$)break}}}class Gj{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[gD.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(D){if(D)this.flags|=1;else this.flags&=-2}init({strictMode:D,sourceType:$,startIndex:J,startLine:F,startColumn:U}){this.strict=D===!1?!1:D===!0?!0:$==="module",this.startIndex=J,this.curLine=F,this.lineStart=-U,this.startLoc=this.endLoc=new p6(F,U,J)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(D){if(D)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(D){if(D)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(D){if(D)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(D){if(D)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(D){if(D)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(D){if(D)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(D){if(D)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(D){if(D)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(D){if(D)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(D){if(D)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(D){if(D)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(D){if(D)this.flags|=4096;else this.flags&=-4097}curPosition(){return new p6(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let D=new Gj;return D.flags=this.flags,D.startIndex=this.startIndex,D.curLine=this.curLine,D.lineStart=this.lineStart,D.startLoc=this.startLoc,D.endLoc=this.endLoc,D.errors=this.errors.slice(),D.potentialArrowAt=this.potentialArrowAt,D.noArrowAt=this.noArrowAt.slice(),D.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),D.topicContext=this.topicContext,D.labels=this.labels.slice(),D.commentsLen=this.commentsLen,D.commentStack=this.commentStack.slice(),D.pos=this.pos,D.type=this.type,D.value=this.value,D.start=this.start,D.end=this.end,D.lastTokEndLoc=this.lastTokEndLoc,D.lastTokStartLoc=this.lastTokStartLoc,D.context=this.context.slice(),D.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,D.strictErrors=this.strictErrors,D.tokensLength=this.tokensLength,D}}var QQD=function($){return $>=48&&$<=57},Qx={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},hX={bin:(D)=>D===48||D===49,oct:(D)=>D>=48&&D<=55,dec:(D)=>D>=48&&D<=57,hex:(D)=>D>=48&&D<=57||D>=65&&D<=70||D>=97&&D<=102};function qx(D,$,J,F,U,X){let Y=J,Q=F,q=U,K="",W=null,G=J,{length:I}=$;for(;;){if(J>=I){X.unterminated(Y,Q,q),K+=$.slice(G,J);break}let z=$.charCodeAt(J);if(qQD(D,z,$,J)){K+=$.slice(G,J);break}if(z===92){K+=$.slice(G,J);let Z=KQD($,J,F,U,D==="template",X);if(Z.ch===null&&!W)W={pos:J,lineStart:F,curLine:U};else K+=Z.ch;({pos:J,lineStart:F,curLine:U}=Z),G=J}else if(z===8232||z===8233)++J,++U,F=J;else if(z===10||z===13)if(D==="template"){if(K+=$.slice(G,J)+`
`,++J,z===13&&$.charCodeAt(J)===10)++J;++U,G=F=J}else X.unterminated(Y,Q,q);else++J}return{pos:J,str:K,firstInvalidLoc:W,lineStart:F,curLine:U,containsInvalid:!!W}}function qQD(D,$,J,F){if(D==="template")return $===96||$===36&&J.charCodeAt(F+1)===123;return $===(D==="double"?34:39)}function KQD(D,$,J,F,U,X){let Y=!U;$++;let Q=(K)=>({pos:$,ch:K,lineStart:J,curLine:F}),q=D.charCodeAt($++);switch(q){case 110:return Q(`
`);case 114:return Q("\r");case 120:{let K;return{code:K,pos:$}=sO(D,$,J,F,2,!1,Y,X),Q(K===null?null:String.fromCharCode(K))}case 117:{let K;return{code:K,pos:$}=Sx(D,$,J,F,Y,X),Q(K===null?null:String.fromCodePoint(K))}case 116:return Q("\t");case 98:return Q("\b");case 118:return Q("\v");case 102:return Q("\f");case 13:if(D.charCodeAt($)===10)++$;case 10:J=$,++F;case 8232:case 8233:return Q("");case 56:case 57:if(U)return Q(null);else X.strictNumericEscape($-1,J,F);default:if(q>=48&&q<=55){let K=$-1,G=/^[0-7]+/.exec(D.slice(K,$+2))[0],I=parseInt(G,8);if(I>255)G=G.slice(0,-1),I=parseInt(G,8);$+=G.length-1;let z=D.charCodeAt($);if(G!=="0"||z===56||z===57)if(U)return Q(null);else X.strictNumericEscape(K,J,F);return Q(String.fromCharCode(I))}return Q(String.fromCharCode(q))}}function sO(D,$,J,F,U,X,Y,Q){let q=$,K;if({n:K,pos:$}=Px(D,$,J,F,16,U,X,!1,Q,!Y),K===null)if(Y)Q.invalidEscapeSequence(q,J,F);else $=q-1;return{code:K,pos:$}}function Px(D,$,J,F,U,X,Y,Q,q,K){let W=$,G=U===16?Qx.hex:Qx.decBinOct,I=U===16?hX.hex:U===10?hX.dec:U===8?hX.oct:hX.bin,z=!1,Z=0;for(let H=0,B=X==null?1/0:X;H<B;++H){let j=D.charCodeAt($),N;if(j===95&&Q!=="bail"){let O=D.charCodeAt($-1),L=D.charCodeAt($+1);if(!Q){if(K)return{n:null,pos:$};q.numericSeparatorInEscapeSequence($,J,F)}else if(Number.isNaN(L)||!I(L)||G.has(O)||G.has(L)){if(K)return{n:null,pos:$};q.unexpectedNumericSeparator($,J,F)}++$;continue}if(j>=97)N=j-97+10;else if(j>=65)N=j-65+10;else if(QQD(j))N=j-48;else N=1/0;if(N>=U)if(N<=9&&K)return{n:null,pos:$};else if(N<=9&&q.invalidDigit($,J,F,U))N=0;else if(Y)N=0,z=!0;else break;++$,Z=Z*U+N}if($===W||X!=null&&$-W!==X||z)return{n:null,pos:$};return{n:Z,pos:$}}function Sx(D,$,J,F,U,X){let Y=D.charCodeAt($),Q;if(Y===123){if(++$,{code:Q,pos:$}=sO(D,$,J,F,D.indexOf("}",$)-$,!0,U,X),++$,Q!==null&&Q>1114111)if(U)X.invalidCodePoint($,J,F);else return{code:null,pos:$}}else({code:Q,pos:$}=sO(D,$,J,F,4,!1,U,X));return{code:Q,pos:$}}function p5(D,$,J){return new p6(J,D-$,D)}var WQD=new Set([103,109,115,105,121,117,100,118]);class n6{constructor(D){let $=D.startIndex||0;this.type=D.type,this.value=D.value,this.start=$+D.start,this.end=$+D.end,this.loc=new s5(D.startLoc,D.endLoc)}}class _x extends bx{constructor(D,$){super();this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(J,F,U,X)=>{if(!(this.optionFlags&2048))return!1;return this.raise(M.InvalidDigit,p5(J,F,U),{radix:X}),!0},numericSeparatorInEscapeSequence:this.errorBuilder(M.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(M.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(M.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(M.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(J,F,U)=>{this.recordStrictModeErrors(M.StrictNumericEscape,p5(J,F,U))},unterminated:(J,F,U)=>{throw this.raise(M.UnterminatedString,p5(J-1,F,U))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(M.StrictNumericEscape),unterminated:(J,F,U)=>{throw this.raise(M.UnterminatedTemplate,p5(J,F,U))}}),this.state=new Gj,this.state.init(D),this.input=$,this.length=$.length,this.comments=[],this.isLookahead=!1}pushToken(D){this.tokens.length=this.state.tokensLength,this.tokens.push(D),++this.state.tokensLength}next(){if(this.checkKeywordEscapes(),this.optionFlags&256)this.pushToken(new n6(this.state));this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(D){if(this.match(D))return this.next(),!0;else return!1}match(D){return this.state.type===D}createLookaheadState(D){return{pos:D.pos,value:null,type:D.type,start:D.start,end:D.end,context:[this.curContext()],inType:D.inType,startLoc:D.startLoc,lastTokEndLoc:D.lastTokEndLoc,curLine:D.curLine,lineStart:D.lineStart,curPosition:D.curPosition}}lookahead(){let D=this.state;this.state=this.createLookaheadState(D),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let $=this.state;return this.state=D,$}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(D){return nO.lastIndex=D,nO.test(this.input)?nO.lastIndex:D}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(D){return this.input.charCodeAt(this.nextTokenStartSince(D))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(D){return pO.lastIndex=D,pO.test(this.input)?pO.lastIndex:D}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(D){let $=this.input.charCodeAt(D);if(($&64512)===55296&&++D<this.input.length){let J=this.input.charCodeAt(D);if((J&64512)===56320)$=65536+(($&1023)<<10)+(J&1023)}return $}setStrict(D){if(this.state.strict=D,D)this.state.strictErrors.forEach(([$,J])=>this.raise($,J)),this.state.strictErrors.clear()}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,!this.isLookahead)this.state.startLoc=this.state.curPosition();if(this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(D){let $;if(!this.isLookahead)$=this.state.curPosition();let J=this.state.pos,F=this.input.indexOf(D,J+2);if(F===-1)throw this.raise(M.UnterminatedComment,this.state.curPosition());this.state.pos=F+D.length,yX.lastIndex=J+2;while(yX.test(this.input)&&yX.lastIndex<=F)++this.state.curLine,this.state.lineStart=yX.lastIndex;if(this.isLookahead)return;let U={type:"CommentBlock",value:this.input.slice(J+2,F),start:this.sourceToOffsetPos(J),end:this.sourceToOffsetPos(F+D.length),loc:new s5($,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(U);return U}skipLineComment(D){let $=this.state.pos,J;if(!this.isLookahead)J=this.state.curPosition();let F=this.input.charCodeAt(this.state.pos+=D);if(this.state.pos<this.length)while(!j3(F)&&++this.state.pos<this.length)F=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let U=this.state.pos,Y={type:"CommentLine",value:this.input.slice($+D,U),start:this.sourceToOffsetPos($),end:this.sourceToOffsetPos(U),loc:new s5(J,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(Y);return Y}skipSpace(){let D=this.state.pos,$=this.optionFlags&4096?[]:null;D:while(this.state.pos<this.length){let J=this.input.charCodeAt(this.state.pos);switch(J){case 32:case 160:case 9:++this.state.pos;break;case 13:if(this.input.charCodeAt(this.state.pos+1)===10)++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let F=this.skipBlockComment("*/");if(F!==void 0)this.addComment(F),$==null||$.push(F);break}case 47:{let F=this.skipLineComment(2);if(F!==void 0)this.addComment(F),$==null||$.push(F);break}default:break D}break;default:if(UQD(J))++this.state.pos;else if(J===45&&!this.inModule&&this.optionFlags&8192){let F=this.state.pos;if(this.input.charCodeAt(F+1)===45&&this.input.charCodeAt(F+2)===62&&(D===0||this.state.lineStart>D)){let U=this.skipLineComment(3);if(U!==void 0)this.addComment(U),$==null||$.push(U)}else break D}else if(J===60&&!this.inModule&&this.optionFlags&8192){let F=this.state.pos;if(this.input.charCodeAt(F+1)===33&&this.input.charCodeAt(F+2)===45&&this.input.charCodeAt(F+3)===45){let U=this.skipLineComment(4);if(U!==void 0)this.addComment(U),$==null||$.push(U)}else break D}else break D}}if(($==null?void 0:$.length)>0){let J=this.state.pos,F={start:this.sourceToOffsetPos(D),end:this.sourceToOffsetPos(J),comments:$,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(F)}}finishToken(D,$){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let J=this.state.type;if(this.state.type=D,this.state.value=$,!this.isLookahead)this.updateContext(J)}replaceToken(D){this.state.type=D,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let D=this.state.pos+1,$=this.codePointAtPos(D);if($>=48&&$<=57)throw this.raise(M.UnexpectedDigitAfterHash,this.state.curPosition());if($===123||$===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise($===123?M.RecordExpressionHashIncorrectStartSyntaxType:M.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());if(this.state.pos+=2,$===123)this.finishToken(7);else this.finishToken(1)}else if(A6($))++this.state.pos,this.finishToken(139,this.readWord1($));else if($===92)++this.state.pos,this.finishToken(139,this.readWord1());else this.finishOp(27,1)}readToken_dot(){let D=this.input.charCodeAt(this.state.pos+1);if(D>=48&&D<=57){this.readNumber(!0);return}if(D===46&&this.input.charCodeAt(this.state.pos+2)===46)this.state.pos+=3,this.finishToken(21);else++this.state.pos,this.finishToken(16)}readToken_slash(){if(this.input.charCodeAt(this.state.pos+1)===61)this.finishOp(31,2);else this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let D=this.input.charCodeAt(this.state.pos+1);if(D!==33)return!1;let $=this.state.pos;this.state.pos+=1;while(!j3(D)&&++this.state.pos<this.length)D=this.input.charCodeAt(this.state.pos);let J=this.input.slice($+2,this.state.pos);return this.finishToken(28,J),!0}readToken_mult_modulo(D){let $=D===42?55:54,J=1,F=this.input.charCodeAt(this.state.pos+1);if(D===42&&F===42)J++,F=this.input.charCodeAt(this.state.pos+2),$=57;if(F===61&&!this.state.inType)J++,$=D===37?33:30;this.finishOp($,J)}readToken_pipe_amp(D){let $=this.input.charCodeAt(this.state.pos+1);if($===D){if(this.input.charCodeAt(this.state.pos+2)===61)this.finishOp(30,3);else this.finishOp(D===124?41:42,2);return}if(D===124){if($===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&$===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(M.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&$===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(M.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if($===61){this.finishOp(30,2);return}this.finishOp(D===124?43:45,1)}readToken_caret(){let D=this.input.charCodeAt(this.state.pos+1);if(D===61&&!this.state.inType)this.finishOp(32,2);else if(D===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){if(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94)this.unexpected()}else this.finishOp(44,1)}readToken_atSign(){if(this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}]))this.finishOp(38,2);else this.finishOp(26,1)}readToken_plus_min(D){let $=this.input.charCodeAt(this.state.pos+1);if($===D){this.finishOp(34,2);return}if($===61)this.finishOp(30,2);else this.finishOp(53,1)}readToken_lt(){let{pos:D}=this.state,$=this.input.charCodeAt(D+1);if($===60){if(this.input.charCodeAt(D+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if($===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:D}=this.state,$=this.input.charCodeAt(D+1);if($===62){let J=this.input.charCodeAt(D+2)===62?3:2;if(this.input.charCodeAt(D+J)===61){this.finishOp(30,J+1);return}this.finishOp(52,J);return}if($===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(D){let $=this.input.charCodeAt(this.state.pos+1);if($===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(D===61&&$===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(D===61?29:35,1)}readToken_question(){let D=this.input.charCodeAt(this.state.pos+1),$=this.input.charCodeAt(this.state.pos+2);if(D===63)if($===61)this.finishOp(30,3);else this.finishOp(40,2);else if(D===46&&!($>=48&&$<=57))this.state.pos+=2,this.finishToken(18);else++this.state.pos,this.finishToken(17)}getTokenFromCode(D){switch(D){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(M.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(M.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:if(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58)this.finishOp(15,2);else++this.state.pos,this.finishToken(14);return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let $=this.input.charCodeAt(this.state.pos+1);if($===120||$===88){this.readRadixNumber(16);return}if($===111||$===79){this.readRadixNumber(8);return}if($===98||$===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(D);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(D);return;case 124:case 38:this.readToken_pipe_amp(D);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(D);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(D);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(A6(D)){this.readWord(D);return}}throw this.raise(M.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(D)})}finishOp(D,$){let J=this.input.slice(this.state.pos,this.state.pos+$);this.state.pos+=$,this.finishToken(D,J)}readRegexp(){let D=this.state.startLoc,$=this.state.start+1,J,F,{pos:U}=this.state;for(;;++U){if(U>=this.length)throw this.raise(M.UnterminatedRegExp,Y0(D,1));let q=this.input.charCodeAt(U);if(j3(q))throw this.raise(M.UnterminatedRegExp,Y0(D,1));if(J)J=!1;else{if(q===91)F=!0;else if(q===93&&F)F=!1;else if(q===47&&!F)break;J=q===92}}let X=this.input.slice($,U);++U;let Y="",Q=()=>Y0(D,U+2-$);while(U<this.length){let q=this.codePointAtPos(U),K=String.fromCharCode(q);if(WQD.has(q)){if(q===118){if(Y.includes("u"))this.raise(M.IncompatibleRegExpUVFlags,Q())}else if(q===117){if(Y.includes("v"))this.raise(M.IncompatibleRegExpUVFlags,Q())}if(Y.includes(K))this.raise(M.DuplicateRegExpFlags,Q())}else if(K2(q)||q===92)this.raise(M.MalformedRegExpFlags,Q());else break;++U,Y+=K}this.state.pos=U,this.finishToken(138,{pattern:X,flags:Y})}readInt(D,$,J=!1,F=!0){let{n:U,pos:X}=Px(this.input,this.state.pos,this.state.lineStart,this.state.curLine,D,$,J,F,this.errorHandlers_readInt,!1);return this.state.pos=X,U}readRadixNumber(D){let $=this.state.pos,J=this.state.curPosition(),F=!1;this.state.pos+=2;let U=this.readInt(D);if(U==null)this.raise(M.InvalidDigit,Y0(J,2),{radix:D});let X=this.input.charCodeAt(this.state.pos);if(X===110)++this.state.pos,F=!0;else if(X===109)throw this.raise(M.InvalidDecimal,J);if(A6(this.codePointAtPos(this.state.pos)))throw this.raise(M.NumberIdentifier,this.state.curPosition());if(F){let Y=this.input.slice($,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,Y);return}this.finishToken(135,U)}readNumber(D){let $=this.state.pos,J=this.state.curPosition(),F=!1,U=!1,X=!1,Y=!1;if(!D&&this.readInt(10)===null)this.raise(M.InvalidNumber,this.state.curPosition());let Q=this.state.pos-$>=2&&this.input.charCodeAt($)===48;if(Q){let I=this.input.slice($,this.state.pos);if(this.recordStrictModeErrors(M.StrictOctalLiteral,J),!this.state.strict){let z=I.indexOf("_");if(z>0)this.raise(M.ZeroDigitNumericSeparator,Y0(J,z))}Y=Q&&!/[89]/.test(I)}let q=this.input.charCodeAt(this.state.pos);if(q===46&&!Y)++this.state.pos,this.readInt(10),F=!0,q=this.input.charCodeAt(this.state.pos);if((q===69||q===101)&&!Y){if(q=this.input.charCodeAt(++this.state.pos),q===43||q===45)++this.state.pos;if(this.readInt(10)===null)this.raise(M.InvalidOrMissingExponent,J);F=!0,X=!0,q=this.input.charCodeAt(this.state.pos)}if(q===110){if(F||Q)this.raise(M.InvalidBigIntLiteral,J);++this.state.pos,U=!0}if(q===109){if(this.expectPlugin("decimal",this.state.curPosition()),X||Q)this.raise(M.InvalidDecimal,J);++this.state.pos;var K=!0}if(A6(this.codePointAtPos(this.state.pos)))throw this.raise(M.NumberIdentifier,this.state.curPosition());let W=this.input.slice($,this.state.pos).replace(/[_mn]/g,"");if(U){this.finishToken(136,W);return}if(K){this.finishToken(137,W);return}let G=Y?parseInt(W,8):parseFloat(W);this.finishToken(135,G)}readCodePoint(D){let{code:$,pos:J}=Sx(this.input,this.state.pos,this.state.lineStart,this.state.curLine,D,this.errorHandlers_readCodePoint);return this.state.pos=J,$}readString(D){let{str:$,pos:J,curLine:F,lineStart:U}=qx(D===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=J+1,this.state.lineStart=U,this.state.curLine=F,this.finishToken(134,$)}readTemplateContinuation(){if(!this.match(8))this.unexpected(null,8);this.state.pos--,this.readTemplateToken()}readTemplateToken(){let D=this.input[this.state.pos],{str:$,firstInvalidLoc:J,pos:F,curLine:U,lineStart:X}=qx("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);if(this.state.pos=F+1,this.state.lineStart=X,this.state.curLine=U,J)this.state.firstInvalidTemplateEscapePos=new p6(J.curLine,J.pos-J.lineStart,this.sourceToOffsetPos(J.pos));if(this.input.codePointAt(F)===96)this.finishToken(24,J?null:D+$+"`");else this.state.pos++,this.finishToken(25,J?null:D+$+"${")}recordStrictModeErrors(D,$){let J=$.index;if(this.state.strict&&!this.state.strictErrors.has(J))this.raise(D,$);else this.state.strictErrors.set(J,[D,$])}readWord1(D){this.state.containsEsc=!1;let $="",J=this.state.pos,F=this.state.pos;if(D!==void 0)this.state.pos+=D<=65535?1:2;while(this.state.pos<this.length){let U=this.codePointAtPos(this.state.pos);if(K2(U))this.state.pos+=U<=65535?1:2;else if(U===92){this.state.containsEsc=!0,$+=this.input.slice(F,this.state.pos);let X=this.state.curPosition(),Y=this.state.pos===J?A6:K2;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(M.MissingUnicodeEscape,this.state.curPosition()),F=this.state.pos-1;continue}++this.state.pos;let Q=this.readCodePoint(!0);if(Q!==null){if(!Y(Q))this.raise(M.EscapedCharNotAnIdentifier,X);$+=String.fromCodePoint(Q)}F=this.state.pos}else break}return $+this.input.slice(F,this.state.pos)}readWord(D){let $=this.readWord1(D),J=Jj.get($);if(J!==void 0)this.finishToken(J,c1(J));else this.finishToken(132,$)}checkKeywordEscapes(){let{type:D}=this.state;if(qj(D)&&this.state.containsEsc)this.raise(M.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:c1(D)})}raise(D,$,J={}){let F=$ instanceof p6?$:$.loc.start,U=D(F,J);if(!(this.optionFlags&2048))throw U;if(!this.isLookahead)this.state.errors.push(U);return U}raiseOverwrite(D,$,J={}){let F=$ instanceof p6?$:$.loc.start,U=F.index,X=this.state.errors;for(let Y=X.length-1;Y>=0;Y--){let Q=X[Y];if(Q.loc.index===U)return X[Y]=D(F,J);if(Q.loc.index<U)break}return this.raise(D,$,J)}updateContext(D){}unexpected(D,$){throw this.raise(M.UnexpectedToken,D!=null?D:this.state.startLoc,{expected:$?c1($):null})}expectPlugin(D,$){if(this.hasPlugin(D))return!0;throw this.raise(M.MissingPlugin,$!=null?$:this.state.startLoc,{missingPlugin:[D]})}expectOnePlugin(D){if(!D.some(($)=>this.hasPlugin($)))throw this.raise(M.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:D})}errorBuilder(D){return($,J,F)=>{this.raise(D,p5($,J,F))}}}class kx{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Cx{constructor(D){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=D}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new kx)}exit(){let D=this.stack.pop(),$=this.current();for(let[J,F]of Array.from(D.undefinedPrivateNames))if($){if(!$.undefinedPrivateNames.has(J))$.undefinedPrivateNames.set(J,F)}else this.parser.raise(M.InvalidPrivateFieldResolution,F,{identifierName:J})}declarePrivateName(D,$,J){let{privateNames:F,loneAccessors:U,undefinedPrivateNames:X}=this.current(),Y=F.has(D);if($&3){let Q=Y&&U.get(D);if(Q){let q=Q&4,K=$&4,W=Q&3,G=$&3;if(Y=W===G||q!==K,!Y)U.delete(D)}else if(!Y)U.set(D,$)}if(Y)this.parser.raise(M.PrivateNameRedeclaration,J,{identifierName:D});F.add(D),X.delete(D)}usePrivateName(D,$){let J;for(J of this.stack)if(J.privateNames.has(D))return;if(J)J.undefinedPrivateNames.set(D,$);else this.parser.raise(M.InvalidPrivateFieldResolution,$,{identifierName:D})}}class $7{constructor(D=0){this.type=D}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class Ij extends $7{constructor(D){super(D);this.declarationErrors=new Map}recordDeclarationError(D,$){let J=$.index;this.declarationErrors.set(J,[D,$])}clearDeclarationError(D){this.declarationErrors.delete(D)}iterateErrors(D){this.declarationErrors.forEach(D)}}class ux{constructor(D){this.parser=void 0,this.stack=[new $7],this.parser=D}enter(D){this.stack.push(D)}exit(){this.stack.pop()}recordParameterInitializerError(D,$){let J=$.loc.start,{stack:F}=this,U=F.length-1,X=F[U];while(!X.isCertainlyParameterDeclaration()){if(X.canBeArrowParameterDeclaration())X.recordDeclarationError(D,J);else return;X=F[--U]}this.parser.raise(D,J)}recordArrowParameterBindingError(D,$){let{stack:J}=this,F=J[J.length-1],U=$.loc.start;if(F.isCertainlyParameterDeclaration())this.parser.raise(D,U);else if(F.canBeArrowParameterDeclaration())F.recordDeclarationError(D,U);else return}recordAsyncArrowParametersError(D){let{stack:$}=this,J=$.length-1,F=$[J];while(F.canBeArrowParameterDeclaration()){if(F.type===2)F.recordDeclarationError(M.AwaitBindingIdentifier,D);F=$[--J]}}validateAsPattern(){let{stack:D}=this,$=D[D.length-1];if(!$.canBeArrowParameterDeclaration())return;$.iterateErrors(([J,F])=>{this.parser.raise(J,F);let U=D.length-2,X=D[U];while(X.canBeArrowParameterDeclaration())X.clearDeclarationError(F.index),X=D[--U]})}}function GQD(){return new $7(3)}function IQD(){return new Ij(1)}function zQD(){return new Ij(2)}function gx(){return new $7}class fx extends _x{addExtra(D,$,J,F=!0){if(!D)return;let{extra:U}=D;if(U==null)U={},D.extra=U;if(F)U[$]=J;else Object.defineProperty(U,$,{enumerable:F,value:J})}isContextual(D){return this.state.type===D&&!this.state.containsEsc}isUnparsedContextual(D,$){if(this.input.startsWith($,D)){let J=this.input.charCodeAt(D+$.length);return!(K2(J)||(J&64512)===55296)}return!1}isLookaheadContextual(D){let $=this.nextTokenStart();return this.isUnparsedContextual($,D)}eatContextual(D){if(this.isContextual(D))return this.next(),!0;return!1}expectContextual(D,$){if(!this.eatContextual(D)){if($!=null)throw this.raise($,this.state.startLoc);this.unexpected(null,D)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Yx(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Yx(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(D=!0){if(D?this.isLineTerminator():this.eat(13))return;this.raise(M.MissingSemicolon,this.state.lastTokEndLoc)}expect(D,$){if(!this.eat(D))this.unexpected($,D)}tryParse(D,$=this.state.clone()){let J={node:null};try{let F=D((U=null)=>{throw J.node=U,J});if(this.state.errors.length>$.errors.length){let U=this.state;return this.state=$,this.state.tokensLength=U.tokensLength,{node:F,error:U.errors[$.errors.length],thrown:!1,aborted:!1,failState:U}}return{node:F,error:null,thrown:!1,aborted:!1,failState:null}}catch(F){let U=this.state;if(this.state=$,F instanceof SyntaxError)return{node:null,error:F,thrown:!0,aborted:!1,failState:U};if(F===J)return{node:J.node,error:null,thrown:!1,aborted:!0,failState:U};throw F}}checkExpressionErrors(D,$){if(!D)return!1;let{shorthandAssignLoc:J,doubleProtoLoc:F,privateKeyLoc:U,optionalParametersLoc:X,voidPatternLoc:Y}=D,Q=!!J||!!F||!!X||!!U||!!Y;if(!$)return Q;if(J!=null)this.raise(M.InvalidCoverInitializedName,J);if(F!=null)this.raise(M.DuplicateProto,F);if(U!=null)this.raise(M.UnexpectedPrivateField,U);if(X!=null)this.unexpected(X);if(Y!=null)this.raise(M.InvalidCoverDiscardElement,Y)}isLiteralPropertyName(){return Hx(this.state.type)}isPrivateName(D){return D.type==="PrivateName"}getPrivateNameSV(D){return D.id.name}hasPropertyAsPrivateName(D){return(D.type==="MemberExpression"||D.type==="OptionalMemberExpression")&&this.isPrivateName(D.property)}isObjectProperty(D){return D.type==="ObjectProperty"}isObjectMethod(D){return D.type==="ObjectMethod"}initializeScopes(D=this.options.sourceType==="module"){let $=this.state.labels;this.state.labels=[];let J=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let F=this.inModule;this.inModule=D;let U=this.scope,X=this.getScopeHandler();this.scope=new X(this,D);let Y=this.prodParam;this.prodParam=new Ax;let Q=this.classScope;this.classScope=new Cx(this);let q=this.expressionScope;return this.expressionScope=new ux(this),()=>{this.state.labels=$,this.exportedIdentifiers=J,this.inModule=F,this.scope=U,this.prodParam=Y,this.classScope=Q,this.expressionScope=q}}enterInitialScopes(){let D=0;if(this.inModule||this.optionFlags&1)D|=2;if(this.optionFlags&32)D|=1;let $=!this.inModule&&this.options.sourceType==="commonjs";if($||this.optionFlags&2)D|=4;this.prodParam.enter(D);let J=$?514:1;if(this.optionFlags&4)J|=512;this.scope.enter(J)}checkDestructuringPrivate(D){let{privateKeyLoc:$}=D;if($!==null)this.expectPlugin("destructuringPrivate",$)}}class a5{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class D7{constructor(D,$,J){if(this.type="",this.start=$,this.end=0,this.loc=new s5(J),(D==null?void 0:D.optionFlags)&128)this.range=[$,0];if(D!=null&&D.filename)this.loc.filename=D.filename}}var eO=D7.prototype;eO.__clone=function(){let D=new D7(void 0,this.start,this.loc.start),$=Object.keys(this);for(let J=0,F=$.length;J<F;J++){let U=$[J];if(U!=="leadingComments"&&U!=="trailingComments"&&U!=="innerComments")D[U]=this[U]}return D};class xx extends fx{startNode(){let D=this.state.startLoc;return new D7(this,D.index,D)}startNodeAt(D){return new D7(this,D.index,D)}startNodeAtNode(D){return this.startNodeAt(D.loc.start)}finishNode(D,$){return this.finishNodeAt(D,$,this.state.lastTokEndLoc)}finishNodeAt(D,$,J){if(D.type=$,D.end=J.index,D.loc.end=J,this.optionFlags&128)D.range[1]=J.index;if(this.optionFlags&4096)this.processComment(D);return D}resetStartLocation(D,$){if(D.start=$.index,D.loc.start=$,this.optionFlags&128)D.range[0]=$.index}resetEndLocation(D,$=this.state.lastTokEndLoc){if(D.end=$.index,D.loc.end=$,this.optionFlags&128)D.range[1]=$.index}resetStartLocationFromNode(D,$){this.resetStartLocation(D,$.loc.start)}castNodeTo(D,$){return D.type=$,D}cloneIdentifier(D){let{type:$,start:J,end:F,loc:U,range:X,name:Y}=D,Q=Object.create(eO);if(Q.type=$,Q.start=J,Q.end=F,Q.loc=U,Q.range=X,Q.name=Y,D.extra)Q.extra=D.extra;return Q}cloneStringLiteral(D){let{type:$,start:J,end:F,loc:U,range:X,extra:Y}=D,Q=Object.create(eO);return Q.type=$,Q.start=J,Q.end=F,Q.loc=U,Q.range=X,Q.extra=Y,Q.value=D.value,Q}}var Dj=(D)=>{return D.type==="ParenthesizedExpression"?Dj(D.expression):D};class yx extends xx{toAssignable(D,$=!1){var J,F;let U=void 0;if(D.type==="ParenthesizedExpression"||(J=D.extra)!=null&&J.parenthesized)if(U=Dj(D),$){if(U.type==="Identifier")this.expressionScope.recordArrowParameterBindingError(M.InvalidParenthesizedAssignment,D);else if(U.type!=="CallExpression"&&U.type!=="MemberExpression"&&!this.isOptionalMemberExpression(U))this.raise(M.InvalidParenthesizedAssignment,D)}else this.raise(M.InvalidParenthesizedAssignment,D);switch(D.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(D,"ObjectPattern");for(let Y=0,Q=D.properties.length,q=Q-1;Y<Q;Y++){var X;let K=D.properties[Y],W=Y===q;if(this.toAssignableObjectExpressionProp(K,W,$),W&&K.type==="RestElement"&&(X=D.extra)!=null&&X.trailingCommaLoc)this.raise(M.RestTrailingComma,D.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:Y,value:Q}=D;if(this.isPrivateName(Y))this.classScope.usePrivateName(this.getPrivateNameSV(Y),Y.loc.start);this.toAssignable(Q,$);break}case"SpreadElement":throw Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(D,"ArrayPattern"),this.toAssignableList(D.elements,(F=D.extra)==null?void 0:F.trailingCommaLoc,$);break;case"AssignmentExpression":if(D.operator!=="=")this.raise(M.MissingEqInAssignment,D.left.loc.end);if(this.castNodeTo(D,"AssignmentPattern"),delete D.operator,D.left.type==="VoidPattern")this.raise(M.VoidPatternInitializer,D.left);this.toAssignable(D.left,$);break;case"ParenthesizedExpression":this.toAssignable(U,$);break}}toAssignableObjectExpressionProp(D,$,J){if(D.type==="ObjectMethod")this.raise(D.kind==="get"||D.kind==="set"?M.PatternHasAccessor:M.PatternHasMethod,D.key);else if(D.type==="SpreadElement"){this.castNodeTo(D,"RestElement");let F=D.argument;if(this.checkToRestConversion(F,!1),this.toAssignable(F,J),!$)this.raise(M.RestTrailingComma,D)}else this.toAssignable(D,J)}toAssignableList(D,$,J){let F=D.length-1;for(let U=0;U<=F;U++){let X=D[U];if(!X)continue;if(this.toAssignableListItem(D,U,J),X.type==="RestElement"){if(U<F)this.raise(M.RestTrailingComma,X);else if($)this.raise(M.RestTrailingComma,$)}}}toAssignableListItem(D,$,J){let F=D[$];if(F.type==="SpreadElement"){this.castNodeTo(F,"RestElement");let U=F.argument;this.checkToRestConversion(U,!0),this.toAssignable(U,J)}else this.toAssignable(F,J)}isAssignable(D,$){switch(D.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let J=D.properties.length-1;return D.properties.every((F,U)=>{return F.type!=="ObjectMethod"&&(U===J||F.type!=="SpreadElement")&&this.isAssignable(F)})}case"ObjectProperty":return this.isAssignable(D.value);case"SpreadElement":return this.isAssignable(D.argument);case"ArrayExpression":return D.elements.every((J)=>J===null||this.isAssignable(J));case"AssignmentExpression":return D.operator==="=";case"ParenthesizedExpression":return this.isAssignable(D.expression);case"MemberExpression":case"OptionalMemberExpression":return!$;default:return!1}}toReferencedList(D,$){return D}toReferencedListDeep(D,$){this.toReferencedList(D,$);for(let J of D)if((J==null?void 0:J.type)==="ArrayExpression")this.toReferencedListDeep(J.elements)}parseSpread(D){let $=this.startNode();return this.next(),$.argument=this.parseMaybeAssignAllowIn(D,void 0),this.finishNode($,"SpreadElement")}parseRestBinding(){let D=this.startNode();this.next();let $=this.parseBindingAtom();if($.type==="VoidPattern")this.raise(M.UnexpectedVoidPattern,$);return D.argument=$,this.finishNode(D,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let D=this.startNode();return this.next(),D.elements=this.parseBindingList(3,93,1),this.finishNode(D,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(D,$,J){let F=J&1,U=[],X=!0;while(!this.eat(D)){if(X)X=!1;else this.expect(12);if(F&&this.match(12))U.push(null);else if(this.eat(D))break;else if(this.match(21)){let Y=this.parseRestBinding();if(this.hasPlugin("flow")||J&2)Y=this.parseFunctionParamType(Y);if(U.push(Y),!this.checkCommaAfterRest($)){this.expect(D);break}}else{let Y=[];if(J&2){if(this.match(26)&&this.hasPlugin("decorators"))this.raise(M.UnsupportedParameterDecorator,this.state.startLoc);while(this.match(26))Y.push(this.parseDecorator())}U.push(this.parseBindingElement(J,Y))}}return U}parseBindingRestProperty(D){if(this.next(),this.hasPlugin("discardBinding")&&this.match(88))D.argument=this.parseVoidPattern(null),this.raise(M.UnexpectedVoidPattern,D.argument);else D.argument=this.parseIdentifier();return this.checkCommaAfterRest(125),this.finishNode(D,"RestElement")}parseBindingProperty(){let{type:D,startLoc:$}=this.state;if(D===21)return this.parseBindingRestProperty(this.startNode());let J=this.startNode();if(D===139)this.expectPlugin("destructuringPrivate",$),this.classScope.usePrivateName(this.state.value,$),J.key=this.parsePrivateName();else this.parsePropertyName(J);return J.method=!1,this.parseObjPropValue(J,$,!1,!1,!0,!1)}parseBindingElement(D,$){let J=this.parseMaybeDefault();if(this.hasPlugin("flow")||D&2)this.parseFunctionParamType(J);if($.length)J.decorators=$,this.resetStartLocationFromNode(J,$[0]);return this.parseMaybeDefault(J.loc.start,J)}parseFunctionParamType(D){return D}parseMaybeDefault(D,$){if(D!=null||(D=this.state.startLoc),$=$!=null?$:this.parseBindingAtom(),!this.eat(29))return $;let J=this.startNodeAt(D);if($.type==="VoidPattern")this.raise(M.VoidPatternInitializer,$);return J.left=$,J.right=this.parseMaybeAssignAllowIn(),this.finishNode(J,"AssignmentPattern")}isValidLVal(D,$,J,F){switch(D){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!$&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(D){return D.type==="OptionalMemberExpression"}checkLVal(D,$,J=64,F=!1,U=!1,X=!1,Y=!1){var Q;let q=D.type;if(this.isObjectMethod(D))return;let K=this.isOptionalMemberExpression(D);if(K||q==="MemberExpression"){if(K){if(this.expectPlugin("optionalChainingAssign",D.loc.start),$.type!=="AssignmentExpression")this.raise(M.InvalidLhsOptionalChaining,D,{ancestor:$})}if(J!==64)this.raise(M.InvalidPropertyBindingPattern,D);return}if(q==="Identifier"){this.checkIdentifier(D,J,U);let{name:B}=D;if(F)if(F.has(B))this.raise(M.ParamDupe,D);else F.add(B);return}else if(q==="VoidPattern"&&$.type==="CatchClause")this.raise(M.VoidPatternCatchClauseParam,D);let W=Dj(D);Y||(Y=W.type==="CallExpression"&&(W.callee.type==="Import"||W.callee.type==="Super"));let G=this.isValidLVal(q,Y,!(X||(Q=D.extra)!=null&&Q.parenthesized)&&$.type==="AssignmentExpression",J);if(G===!0)return;if(G===!1){let B=J===64?M.InvalidLhs:M.InvalidLhsBinding;this.raise(B,D,{ancestor:$});return}let I,z;if(typeof G==="string")I=G,z=q==="ParenthesizedExpression";else[I,z]=G;let Z=q==="ArrayPattern"||q==="ObjectPattern"?{type:q}:$,H=D[I];if(Array.isArray(H)){for(let B of H)if(B)this.checkLVal(B,Z,J,F,U,z,!0)}else if(H)this.checkLVal(H,Z,J,F,U,z,Y)}checkIdentifier(D,$,J=!1){if(this.state.strict&&(J?Lx(D.name,this.inModule):Vx(D.name)))if($===64)this.raise(M.StrictEvalArguments,D,{referenceName:D.name});else this.raise(M.StrictEvalArgumentsBinding,D,{bindingName:D.name});if($&8192&&D.name==="let")this.raise(M.LetInLexicalBinding,D);if(!($&64))this.declareNameFromIdentifier(D,$)}declareNameFromIdentifier(D,$){this.scope.declareName(D.name,$,D.loc.start)}checkToRestConversion(D,$){switch(D.type){case"ParenthesizedExpression":this.checkToRestConversion(D.expression,$);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if($)break;default:this.raise(M.InvalidRestAssignmentPattern,D)}}checkCommaAfterRest(D){if(!this.match(12))return!1;return this.raise(this.lookaheadCharCode()===D?M.RestTrailingComma:M.ElementAfterRest,this.state.startLoc),!0}}var rO=/in(?:stanceof)?|as|satisfies/y;function ZQD(D){if(D==null)throw Error(`Unexpected ${D} value.`);return D}function Kx(D){if(!D)throw Error("Assert fail")}var UD=E6`typescript`({AbstractMethodHasImplementation:({methodName:D})=>`Method '${D}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:D})=>`Property '${D}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:D})=>`'declare' is not allowed in ${D}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:D})=>`Accessibility modifier already seen: '${D}'.`,DuplicateModifier:({modifier:D})=>`Duplicate modifier: '${D}'.`,EmptyHeritageClauseType:({token:D})=>`'${D}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:D})=>`'${D[0]}' modifier cannot be used with '${D[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:D})=>`Index signatures cannot have an accessibility modifier ('${D}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:D})=>`'${D}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:(D)=>`'${D}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:D})=>`'${D}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:D})=>`'${D}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:D})=>`'${D}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:(D)=>`'${D}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:D})=>`'${D[0]}' modifier must precede '${D[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:D})=>`Private elements cannot have an accessibility modifier ('${D}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:D})=>`Single type parameter ${D} should have a trailing comma. Example usage: <${D},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:D})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${D}.`,UsingDeclarationInAmbientContext:(D)=>`'${D}' declarations are not allowed in ambient contexts.`});function HQD(D){switch(D){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function Wx(D){return D==="private"||D==="public"||D==="protected"}function BQD(D){return D==="in"||D==="out"}var OQD=(D)=>class extends D{constructor(...J){super(...J);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:UD.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:UD.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:UD.InvalidModifierOnTypeParameter})}getScopeHandler(){return Ex}tsIsIdentifier(){return fD(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){if(this.next(),this.hasPrecedingLineBreak())return!1;return this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){if(this.match(106))return this.next(),this.tsTokenCanFollowModifier();return this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(J,F,U){if(!fD(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let X=this.state.value;if(J.includes(X)){if(U&&this.match(106))return;if(F&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return X}return}tsParseModifiers({allowedModifiers:J,disallowedModifiers:F,stopOnStartOfClassStaticBlock:U,errorTemplate:X=UD.InvalidModifierOnTypeMember},Y){let Q=(K,W,G,I)=>{if(W===G&&Y[I])this.raise(UD.InvalidModifiersOrder,K,{orderedModifiers:[G,I]})},q=(K,W,G,I)=>{if(Y[G]&&W===I||Y[I]&&W===G)this.raise(UD.IncompatibleModifiers,K,{modifiers:[G,I]})};for(;;){let{startLoc:K}=this.state,W=this.tsParseModifier(J.concat(F!=null?F:[]),U,Y.static);if(!W)break;if(Wx(W))if(Y.accessibility)this.raise(UD.DuplicateAccessibilityModifier,K,{modifier:W});else Q(K,W,W,"override"),Q(K,W,W,"static"),Q(K,W,W,"readonly"),Y.accessibility=W;else if(BQD(W)){if(Y[W])this.raise(UD.DuplicateModifier,K,{modifier:W});Y[W]=!0,Q(K,W,"in","out")}else{if(hasOwnProperty.call(Y,W))this.raise(UD.DuplicateModifier,K,{modifier:W});else Q(K,W,"static","readonly"),Q(K,W,"static","override"),Q(K,W,"override","readonly"),Q(K,W,"abstract","override"),q(K,W,"declare","override"),q(K,W,"static","abstract");Y[W]=!0}if(F!=null&&F.includes(W))this.raise(X,K,{modifier:W})}}tsIsListTerminator(J){switch(J){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(J,F){let U=[];while(!this.tsIsListTerminator(J))U.push(F());return U}tsParseDelimitedList(J,F,U){return ZQD(this.tsParseDelimitedListWorker(J,F,!0,U))}tsParseDelimitedListWorker(J,F,U,X){let Y=[],Q=-1;for(;;){if(this.tsIsListTerminator(J))break;Q=-1;let q=F();if(q==null)return;if(Y.push(q),this.eat(12)){Q=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(J))break;if(U)this.expect(12);return}if(X)X.value=Q;return Y}tsParseBracketedList(J,F,U,X,Y){if(!X)if(U)this.expect(0);else this.expect(47);let Q=this.tsParseDelimitedList(J,F,Y);if(U)this.expect(3);else this.expect(48);return Q}tsParseImportType(){let J=this.startNode();if(this.expect(83),this.expect(10),!this.match(134))this.raise(UD.UnsupportedImportTypeArgument,this.state.startLoc),J.argument=super.parseExprAtom();else J.argument=this.parseStringLiteral(this.state.value);if(this.eat(12))J.options=this.tsParseImportTypeOptions();else J.options=null;if(this.expect(11),this.eat(16))J.qualifier=this.tsParseEntityName(3);if(this.match(47))J.typeParameters=this.tsParseTypeArguments();return this.finishNode(J,"TSImportType")}tsParseImportTypeOptions(){let J=this.startNode();this.expect(5);let F=this.startNode();if(this.isContextual(76))F.method=!1,F.key=this.parseIdentifier(!0),F.computed=!1,F.shorthand=!1;else this.unexpected(null,76);return this.expect(14),F.value=this.tsParseImportTypeWithPropertyValue(),J.properties=[this.finishObjectProperty(F)],this.eat(12),this.expect(8),this.finishNode(J,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let J=this.startNode(),F=[];this.expect(5);while(!this.match(8)){let U=this.state.type;if(fD(U)||U===134)F.push(super.parsePropertyDefinition(null));else this.unexpected();this.eat(12)}return J.properties=F,this.next(),this.finishNode(J,"ObjectExpression")}tsParseEntityName(J){let F;if(J&1&&this.match(78))if(J&2)F=this.parseIdentifier(!0);else{let U=this.startNode();this.next(),F=this.finishNode(U,"ThisExpression")}else F=this.parseIdentifier(!!(J&1));while(this.eat(16)){let U=this.startNodeAtNode(F);U.left=F,U.right=this.parseIdentifier(!!(J&1)),F=this.finishNode(U,"TSQualifiedName")}return F}tsParseTypeReference(){let J=this.startNode();if(J.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47))J.typeParameters=this.tsParseTypeArguments();return this.finishNode(J,"TSTypeReference")}tsParseThisTypePredicate(J){this.next();let F=this.startNodeAtNode(J);return F.parameterName=J,F.typeAnnotation=this.tsParseTypeAnnotation(!1),F.asserts=!1,this.finishNode(F,"TSTypePredicate")}tsParseThisTypeNode(){let J=this.startNode();return this.next(),this.finishNode(J,"TSThisType")}tsParseTypeQuery(){let J=this.startNode();if(this.expect(87),this.match(83))J.exprName=this.tsParseImportType();else J.exprName=this.tsParseEntityName(3);if(!this.hasPrecedingLineBreak()&&this.match(47))J.typeParameters=this.tsParseTypeArguments();return this.finishNode(J,"TSTypeQuery")}tsParseTypeParameter(J){let F=this.startNode();return J(F),F.name=this.tsParseTypeParameterName(),F.constraint=this.tsEatThenParseType(81),F.default=this.tsEatThenParseType(29),this.finishNode(F,"TSTypeParameter")}tsTryParseTypeParameters(J){if(this.match(47))return this.tsParseTypeParameters(J)}tsParseTypeParameters(J){let F=this.startNode();if(this.match(47)||this.match(143))this.next();else this.unexpected();let U={value:-1};if(F.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,J),!1,!0,U),F.params.length===0)this.raise(UD.EmptyTypeParameters,F);if(U.value!==-1)this.addExtra(F,"trailingComma",U.value);return this.finishNode(F,"TSTypeParameterDeclaration")}tsFillSignature(J,F){let U=J===19,X="parameters",Y="typeAnnotation";if(F.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),F.parameters=this.tsParseBindingListForSignature(),U)F.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J);else if(this.match(J))F.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J)}tsParseBindingListForSignature(){let J=super.parseBindingList(11,41,2);for(let F of J){let{type:U}=F;if(U==="AssignmentPattern"||U==="TSParameterProperty")this.raise(UD.UnsupportedSignatureParameterKind,F,{type:U})}return J}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator())this.expect(13)}tsParseSignatureMember(J,F){return this.tsFillSignature(14,F),this.tsParseTypeMemberSemicolon(),this.finishNode(F,J)}tsIsUnambiguouslyIndexSignature(){if(this.next(),fD(this.state.type))return this.next(),this.match(14);return!1}tsTryParseIndexSignature(J){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let F=this.parseIdentifier();F.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(F),this.expect(3),J.parameters=[F];let U=this.tsTryParseTypeAnnotation();if(U)J.typeAnnotation=U;return this.tsParseTypeMemberSemicolon(),this.finishNode(J,"TSIndexSignature")}tsParsePropertyOrMethodSignature(J,F){if(this.eat(17))J.optional=!0;if(this.match(10)||this.match(47)){if(F)this.raise(UD.ReadonlyForMethodSignature,J);let U=J;if(U.kind&&this.match(47))this.raise(UD.AccessorCannotHaveTypeParameters,this.state.curPosition());this.tsFillSignature(14,U),this.tsParseTypeMemberSemicolon();let X="parameters",Y="typeAnnotation";if(U.kind==="get"){if(U[X].length>0){if(this.raise(M.BadGetterArity,this.state.curPosition()),this.isThisParam(U[X][0]))this.raise(UD.AccessorCannotDeclareThisParameter,this.state.curPosition())}}else if(U.kind==="set"){if(U[X].length!==1)this.raise(M.BadSetterArity,this.state.curPosition());else{let Q=U[X][0];if(this.isThisParam(Q))this.raise(UD.AccessorCannotDeclareThisParameter,this.state.curPosition());if(Q.type==="Identifier"&&Q.optional)this.raise(UD.SetAccessorCannotHaveOptionalParameter,this.state.curPosition());if(Q.type==="RestElement")this.raise(UD.SetAccessorCannotHaveRestParameter,this.state.curPosition())}if(U[Y])this.raise(UD.SetAccessorCannotHaveReturnType,U[Y])}else U.kind="method";return this.finishNode(U,"TSMethodSignature")}else{let U=J;if(F)U.readonly=!0;let X=this.tsTryParseTypeAnnotation();if(X)U.typeAnnotation=X;return this.tsParseTypeMemberSemicolon(),this.finishNode(U,"TSPropertySignature")}}tsParseTypeMember(){let J=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",J);if(this.match(77)){let U=this.startNode();if(this.next(),this.match(10)||this.match(47))return this.tsParseSignatureMember("TSConstructSignatureDeclaration",J);else return J.key=this.createIdentifier(U,"new"),this.tsParsePropertyOrMethodSignature(J,!1)}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},J);let F=this.tsTryParseIndexSignature(J);if(F)return F;if(super.parsePropertyName(J),!J.computed&&J.key.type==="Identifier"&&(J.key.name==="get"||J.key.name==="set")&&this.tsTokenCanFollowModifier()){if(J.kind=J.key.name,super.parsePropertyName(J),!this.match(10)&&!this.match(47))this.unexpected(null,10)}return this.tsParsePropertyOrMethodSignature(J,!!J.readonly)}tsParseTypeLiteral(){let J=this.startNode();return J.members=this.tsParseObjectTypeMembers(),this.finishNode(J,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let J=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),J}tsIsStartOfMappedType(){if(this.next(),this.eat(53))return this.isContextual(122);if(this.isContextual(122))this.next();if(!this.match(0))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(58)}tsParseMappedType(){let J=this.startNode();if(this.expect(5),this.match(53))J.readonly=this.state.value,this.next(),this.expectContextual(122);else if(this.eatContextual(122))J.readonly=!0;this.expect(0);let F=this.startNode();if(F.name=this.tsParseTypeParameterName(),F.constraint=this.tsExpectThenParseType(58),J.typeParameter=this.finishNode(F,"TSTypeParameter"),J.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53))J.optional=this.state.value,this.next(),this.expect(17);else if(this.eat(17))J.optional=!0;return J.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(J,"TSMappedType")}tsParseTupleType(){let J=this.startNode();J.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let F=!1;return J.elementTypes.forEach((U)=>{let{type:X}=U;if(F&&X!=="TSRestType"&&X!=="TSOptionalType"&&!(X==="TSNamedTupleMember"&&U.optional))this.raise(UD.OptionalTypeBeforeRequired,U);F||(F=X==="TSNamedTupleMember"&&U.optional||X==="TSOptionalType")}),this.finishNode(J,"TSTupleType")}tsParseTupleElementType(){let J=this.state.startLoc,F=this.eat(21),{startLoc:U}=this.state,X,Y,Q,q,W=F6(this.state.type)?this.lookaheadCharCode():null;if(W===58)X=!0,Q=!1,Y=this.parseIdentifier(!0),this.expect(14),q=this.tsParseType();else if(W===63){Q=!0;let G=this.state.value,I=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58)X=!0,Y=this.createIdentifier(this.startNodeAt(U),G),this.expect(17),this.expect(14),q=this.tsParseType();else X=!1,q=I,this.expect(17)}else q=this.tsParseType(),Q=this.eat(17),X=this.eat(14);if(X){let G;if(Y){if(G=this.startNodeAt(U),G.optional=Q,G.label=Y,G.elementType=q,this.eat(17))G.optional=!0,this.raise(UD.TupleOptionalAfterType,this.state.lastTokStartLoc)}else G=this.startNodeAt(U),G.optional=Q,this.raise(UD.InvalidTupleMemberLabel,q),G.label=q,G.elementType=this.tsParseType();q=this.finishNode(G,"TSNamedTupleMember")}else if(Q){let G=this.startNodeAt(U);G.typeAnnotation=q,q=this.finishNode(G,"TSOptionalType")}if(F){let G=this.startNodeAt(J);G.typeAnnotation=q,q=this.finishNode(G,"TSRestType")}return q}tsParseParenthesizedType(){let J=this.startNode();return this.expect(10),J.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(J,"TSParenthesizedType")}tsParseFunctionOrConstructorType(J,F){let U=this.startNode();if(J==="TSConstructorType"){if(U.abstract=!!F,F)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,U)),this.finishNode(U,J)}tsParseLiteralTypeNode(){let J=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:J.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(J,"TSLiteralType")}tsParseTemplateLiteralType(){let J=this.startNode();return J.literal=super.parseTemplate(!1),this.finishNode(J,"TSLiteralType")}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let J=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(J);else return J}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let J=this.startNode(),F=this.lookahead();if(F.type!==135&&F.type!==136)this.unexpected();return J.literal=this.parseMaybeUnary(),this.finishNode(J,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:J}=this.state;if(fD(J)||J===88||J===84){let F=J===88?"TSVoidKeyword":J===84?"TSNullKeyword":HQD(this.state.value);if(F!==void 0&&this.lookaheadCharCode()!==46){let U=this.startNode();return this.next(),this.finishNode(U,F)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:J}=this.state,F=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0))if(this.match(3)){let U=this.startNodeAt(J);U.elementType=F,this.expect(3),F=this.finishNode(U,"TSArrayType")}else{let U=this.startNodeAt(J);U.objectType=F,U.indexType=this.tsParseType(),this.expect(3),F=this.finishNode(U,"TSIndexedAccessType")}return F}tsParseTypeOperator(){let J=this.startNode(),F=this.state.value;if(this.next(),J.operator=F,J.typeAnnotation=this.tsParseTypeOperatorOrHigher(),F==="readonly")this.tsCheckTypeAnnotationForReadOnly(J);return this.finishNode(J,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(J){switch(J.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(UD.UnexpectedReadonly,J)}}tsParseInferType(){let J=this.startNode();this.expectContextual(115);let F=this.startNode();return F.name=this.tsParseTypeParameterName(),F.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),J.typeParameter=this.finishNode(F,"TSTypeParameter"),this.finishNode(J,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let J=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return J}}tsParseTypeOperatorOrHigher(){return fYD(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(J,F,U){let X=this.startNode(),Y=this.eat(U),Q=[];do Q.push(F());while(this.eat(U));if(Q.length===1&&!Y)return Q[0];return X.types=Q,this.finishNode(X,J)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){if(this.match(47))return!0;return this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(fD(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:J}=this.state,F=J.length;try{return this.parseObjectLike(8,!0),J.length===F}catch(U){return!1}}if(this.match(0)){this.next();let{errors:J}=this.state,F=J.length;try{return super.parseBindingList(3,93,1),J.length===F}catch(U){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)){if(this.next(),this.match(19))return!0}}return!1}tsParseTypeOrTypePredicateAnnotation(J){return this.tsInType(()=>{let F=this.startNode();this.expect(J);let U=this.startNode(),X=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(X&&this.match(78)){let q=this.tsParseThisTypeOrThisTypePredicate();if(q.type==="TSThisType")U.parameterName=q,U.asserts=!0,U.typeAnnotation=null,q=this.finishNode(U,"TSTypePredicate");else this.resetStartLocationFromNode(q,U),q.asserts=!0;return F.typeAnnotation=q,this.finishNode(F,"TSTypeAnnotation")}let Y=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!Y){if(!X)return this.tsParseTypeAnnotation(!1,F);return U.parameterName=this.parseIdentifier(),U.asserts=X,U.typeAnnotation=null,F.typeAnnotation=this.finishNode(U,"TSTypePredicate"),this.finishNode(F,"TSTypeAnnotation")}let Q=this.tsParseTypeAnnotation(!1);return U.parameterName=Y,U.typeAnnotation=Q,U.asserts=X,F.typeAnnotation=this.finishNode(U,"TSTypePredicate"),this.finishNode(F,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let J=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),J}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let J=this.state.containsEsc;if(this.next(),!fD(this.state.type)&&!this.match(78))return!1;if(J)this.raise(M.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"});return!0}tsParseTypeAnnotation(J=!0,F=this.startNode()){return this.tsInType(()=>{if(J)this.expect(14);F.typeAnnotation=this.tsParseType()}),this.finishNode(F,"TSTypeAnnotation")}tsParseType(){Kx(this.state.inType);let J=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return J;let F=this.startNodeAtNode(J);return F.checkType=J,F.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),F.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),F.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(F,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(77))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){if(this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(UD.ReservedTypeAssertion,this.state.startLoc);let J=this.startNode();return J.typeAnnotation=this.tsInType(()=>{return this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()}),this.expect(48),J.expression=this.parseMaybeUnary(),this.finishNode(J,"TSTypeAssertion")}tsParseHeritageClause(J){let F=this.state.startLoc,U=this.tsParseDelimitedList("HeritageClauseElement",()=>{let X=this.startNode();if(X.expression=this.tsParseEntityName(3),this.match(47))X.typeParameters=this.tsParseTypeArguments();return this.finishNode(X,"TSExpressionWithTypeArguments")});if(!U.length)this.raise(UD.EmptyHeritageClauseType,F,{token:J});return U}tsParseInterfaceDeclaration(J,F={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual(129),F.declare)J.declare=!0;if(fD(this.state.type))J.id=this.parseIdentifier(),this.checkIdentifier(J.id,130);else J.id=null,this.raise(UD.MissingInterfaceName,this.state.startLoc);if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81))J.extends=this.tsParseHeritageClause("extends");let U=this.startNode();return U.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),J.body=this.finishNode(U,"TSInterfaceBody"),this.finishNode(J,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(J){return J.id=this.parseIdentifier(),this.checkIdentifier(J.id,2),J.typeAnnotation=this.tsInType(()=>{if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let F=this.startNode();return this.next(),this.finishNode(F,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(J,"TSTypeAliasDeclaration")}tsInTopLevelContext(J){if(this.curContext()!==gD.brace){let F=this.state.context;this.state.context=[F[0]];try{return J()}finally{this.state.context=F}}else return J()}tsInType(J){let F=this.state.inType;this.state.inType=!0;try{return J()}finally{this.state.inType=F}}tsInDisallowConditionalTypesContext(J){let F=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return J()}finally{this.state.inDisallowConditionalTypesContext=F}}tsInAllowConditionalTypesContext(J){let F=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return J()}finally{this.state.inDisallowConditionalTypesContext=F}}tsEatThenParseType(J){if(this.match(J))return this.tsNextThenParseType()}tsExpectThenParseType(J){return this.tsInType(()=>{return this.expect(J),this.tsParseType()})}tsNextThenParseType(){return this.tsInType(()=>{return this.next(),this.tsParseType()})}tsParseEnumMember(){let J=this.startNode();if(J.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29))J.initializer=super.parseMaybeAssignAllowIn();return this.finishNode(J,"TSEnumMember")}tsParseEnumDeclaration(J,F={}){if(F.const)J.const=!0;if(F.declare)J.declare=!0;return this.expectContextual(126),J.id=this.parseIdentifier(),this.checkIdentifier(J.id,J.const?8971:8459),this.expect(5),J.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(J,"TSEnumDeclaration")}tsParseEnumBody(){let J=this.startNode();return this.expect(5),J.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(J,"TSEnumBody")}tsParseModuleBlock(){let J=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(J.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(J,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(J,F=!1){if(J.id=this.parseIdentifier(),!F)this.checkIdentifier(J.id,1024);if(this.eat(16)){let U=this.startNode();this.tsParseModuleOrNamespaceDeclaration(U,!0),J.body=U}else this.scope.enter(1024),this.prodParam.enter(0),J.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(J,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(J){if(this.isContextual(112))J.kind="global",J.global=!0,J.id=this.parseIdentifier();else if(this.match(134))J.kind="module",J.id=super.parseStringLiteral(this.state.value);else this.unexpected();if(this.match(5))this.scope.enter(1024),this.prodParam.enter(0),J.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();else this.semicolon();return this.finishNode(J,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(J,F,U){J.isExport=U||!1,J.id=F||this.parseIdentifier(),this.checkIdentifier(J.id,4096),this.expect(29);let X=this.tsParseModuleReference();if(J.importKind==="type"&&X.type!=="TSExternalModuleReference")this.raise(UD.ImportAliasHasImportType,X);return J.moduleReference=X,this.semicolon(),this.finishNode(J,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let J=this.startNode();if(this.expectContextual(119),this.expect(10),!this.match(134))this.unexpected();return J.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(J,"TSExternalModuleReference")}tsLookAhead(J){let F=this.state.clone(),U=J();return this.state=F,U}tsTryParseAndCatch(J){let F=this.tryParse((U)=>J()||U());if(F.aborted||!F.node)return;if(F.error)this.state=F.failState;return F.node}tsTryParse(J){let F=this.state.clone(),U=J();if(U!==void 0&&U!==!1)return U;this.state=F}tsTryParseDeclare(J){if(this.isLineTerminator())return;let F=this.state.type;return this.tsInAmbientContext(()=>{switch(F){case 68:return J.declare=!0,super.parseFunctionStatement(J,!1,!1);case 80:return J.declare=!0,this.parseClass(J,!0,!1);case 126:return this.tsParseEnumDeclaration(J,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(J);case 100:if(this.state.containsEsc)return;case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum"))return J.declare=!0,this.parseVarStatement(J,this.state.value,!0);return this.expect(75),this.tsParseEnumDeclaration(J,{const:!0,declare:!0});case 107:if(this.isUsing())return this.raise(UD.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),J.declare=!0,this.parseVarStatement(J,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(UD.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),J.declare=!0,this.next(),this.parseVarStatement(J,"await using",!0);break;case 129:{let U=this.tsParseInterfaceDeclaration(J,{declare:!0});if(U)return U}default:if(fD(F))return this.tsParseDeclaration(J,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(J,F,U,X){switch(F){case 124:if(this.tsCheckLineTerminator(U)&&(this.match(80)||fD(this.state.type)))return this.tsParseAbstractDeclaration(J,X);break;case 127:if(this.tsCheckLineTerminator(U)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(J);else if(fD(this.state.type))return J.kind="module",this.tsParseModuleOrNamespaceDeclaration(J)}break;case 128:if(this.tsCheckLineTerminator(U)&&fD(this.state.type))return J.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(J);break;case 130:if(this.tsCheckLineTerminator(U)&&fD(this.state.type))return this.tsParseTypeAliasDeclaration(J);break}}tsCheckLineTerminator(J){if(J){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(J){if(!this.match(47))return;let F=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let U=this.tsTryParseAndCatch(()=>{let X=this.startNodeAt(J);return X.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(X),X.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),X});if(this.state.maybeInArrowParameters=F,!U)return;return super.parseArrowExpression(U,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){let J=this.startNode();if(J.params=this.tsInType(()=>this.tsInTopLevelContext(()=>{return this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),J.params.length===0)this.raise(UD.EmptyTypeArguments,J);else if(!this.state.inType&&this.curContext()===gD.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(J,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return xYD(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;return super.isExportDefaultSpecifier()}parseBindingElement(J,F){let U=F.length?F[0].loc.start:this.state.startLoc,X={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},X);let{accessibility:Y,override:Q,readonly:q}=X;if(!(J&4)&&(Y||q||Q))this.raise(UD.UnexpectedParameterModifier,U);let K=this.parseMaybeDefault();if(J&2)this.parseFunctionParamType(K);let W=this.parseMaybeDefault(K.loc.start,K);if(Y||q||Q){let G=this.startNodeAt(U);if(F.length)G.decorators=F;if(Y)G.accessibility=Y;if(q)G.readonly=q;if(Q)G.override=Q;if(W.type!=="Identifier"&&W.type!=="AssignmentPattern")this.raise(UD.UnsupportedParameterPropertyKind,G);return G.parameter=W,this.finishNode(G,"TSParameterProperty")}if(F.length)K.decorators=F;return W}isSimpleParameter(J){return J.type==="TSParameterProperty"&&super.isSimpleParameter(J.parameter)||super.isSimpleParameter(J)}tsDisallowOptionalPattern(J){for(let F of J.params)if(F.type!=="Identifier"&&F.optional&&!this.state.isAmbientContext)this.raise(UD.PatternIsOptional,F)}setArrowFunctionParameters(J,F,U){super.setArrowFunctionParameters(J,F,U),this.tsDisallowOptionalPattern(J)}parseFunctionBodyAndFinish(J,F,U=!1){if(this.match(14))J.returnType=this.tsParseTypeOrTypePredicateAnnotation(14);let X=F==="FunctionDeclaration"?"TSDeclareFunction":F==="ClassMethod"||F==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(X&&!this.match(5)&&this.isLineTerminator())return this.finishNode(J,X);if(X==="TSDeclareFunction"&&this.state.isAmbientContext){if(this.raise(UD.DeclareFunctionHasImplementation,J),J.declare)return super.parseFunctionBodyAndFinish(J,X,U)}return this.tsDisallowOptionalPattern(J),super.parseFunctionBodyAndFinish(J,F,U)}registerFunctionStatementId(J){if(!J.body&&J.id)this.checkIdentifier(J.id,1024);else super.registerFunctionStatementId(J)}tsCheckForInvalidTypeCasts(J){J.forEach((F)=>{if((F==null?void 0:F.type)==="TSTypeCastExpression")this.raise(UD.UnexpectedTypeAnnotation,F.typeAnnotation)})}toReferencedList(J,F){return this.tsCheckForInvalidTypeCasts(J),J}parseArrayLike(J,F,U){let X=super.parseArrayLike(J,F,U);if(X.type==="ArrayExpression")this.tsCheckForInvalidTypeCasts(X.elements);return X}parseSubscript(J,F,U,X){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let Q=this.startNodeAt(F);return Q.expression=J,this.finishNode(Q,"TSNonNullExpression")}let Y=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(U)return X.stop=!0,J;X.optionalChainMember=Y=!0,this.next()}if(this.match(47)||this.match(51)){let Q,q=this.tsTryParseAndCatch(()=>{if(!U&&this.atPossibleAsyncArrow(J)){let I=this.tsTryParseGenericAsyncArrowFunction(F);if(I)return X.stop=!0,I}let K=this.tsParseTypeArgumentsInExpression();if(!K)return;if(Y&&!this.match(10)){Q=this.state.curPosition();return}if(dX(this.state.type)){let I=super.parseTaggedTemplateExpression(J,F,X);return I.typeParameters=K,I}if(!U&&this.eat(10)){let I=this.startNodeAt(F);if(I.callee=J,I.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(I.arguments),I.typeParameters=K,X.optionalChainMember)I.optional=Y;return this.finishCallExpression(I,X.optionalChainMember)}let W=this.state.type;if(W===48||W===52||W!==10&&W!==93&&W!==120&&r5(W)&&!this.hasPrecedingLineBreak())return;let G=this.startNodeAt(F);return G.expression=J,G.typeParameters=K,this.finishNode(G,"TSInstantiationExpression")});if(Q)this.unexpected(Q,10);if(q){if(q.type==="TSInstantiationExpression"){if(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)this.raise(UD.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc);if(!this.match(16)&&!this.match(18))q.expression=super.stopParseSubscript(J,X)}return q}}return super.parseSubscript(J,F,U,X)}parseNewCallee(J){var F;super.parseNewCallee(J);let{callee:U}=J;if(U.type==="TSInstantiationExpression"&&!((F=U.extra)!=null&&F.parenthesized))J.typeParameters=U.typeParameters,J.callee=U.expression}parseExprOp(J,F,U){let X;if(lX(58)>U&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(X=this.isContextual(120)))){let Y=this.startNodeAt(F);return Y.expression=J,Y.typeAnnotation=this.tsInType(()=>{if(this.next(),this.match(75)){if(X)this.raise(M.UnexpectedKeyword,this.state.startLoc,{keyword:"const"});return this.tsParseTypeReference()}return this.tsParseType()}),this.finishNode(Y,X?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(Y,F,U)}return super.parseExprOp(J,F,U)}checkReservedWord(J,F,U,X){if(!this.state.isAmbientContext)super.checkReservedWord(J,F,U,X)}checkImportReflection(J){if(super.checkImportReflection(J),J.module&&J.importKind!=="value")this.raise(UD.ImportReflectionHasImportType,J.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(J){if(super.isPotentialImportPhase(J))return!0;if(this.isContextual(130)){let F=this.lookaheadCharCode();return J?F===123||F===42:F!==61}return!J&&this.isContextual(87)}applyImportPhase(J,F,U,X){if(super.applyImportPhase(J,F,U,X),F)J.exportKind=U==="type"?"type":"value";else J.importKind=U==="type"||U==="typeof"?U:"value"}parseImport(J){if(this.match(134))return J.importKind="value",super.parseImport(J);let F;if(fD(this.state.type)&&this.lookaheadCharCode()===61)return J.importKind="value",this.tsParseImportEqualsDeclaration(J);else if(this.isContextual(130)){let U=this.parseMaybeImportPhase(J,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(J,U);else F=super.parseImportSpecifiersAndAfter(J,U)}else F=super.parseImport(J);if(F.importKind==="type"&&F.specifiers.length>1&&F.specifiers[0].type==="ImportDefaultSpecifier")this.raise(UD.TypeImportCannotSpecifyDefaultAndNamed,F);return F}parseExport(J,F){if(this.match(83)){let U=J;this.next();let X=null;if(this.isContextual(130)&&this.isPotentialImportPhase(!1))X=this.parseMaybeImportPhase(U,!1);else U.importKind="value";return this.tsParseImportEqualsDeclaration(U,X,!0)}else if(this.eat(29)){let U=J;return U.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(U,"TSExportAssignment")}else if(this.eatContextual(93)){let U=J;return this.expectContextual(128),U.id=this.parseIdentifier(),this.semicolon(),this.finishNode(U,"TSNamespaceExportDeclaration")}else return super.parseExport(J,F)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let J=this.startNode();return this.next(),J.abstract=!0,this.parseClass(J,!0,!0)}if(this.match(129)){let J=this.tsParseInterfaceDeclaration(this.startNode());if(J)return J}return super.parseExportDefaultExpression()}parseVarStatement(J,F,U=!1){let{isAmbientContext:X}=this.state,Y=super.parseVarStatement(J,F,U||X);if(!X)return Y;if(!J.declare&&(F==="using"||F==="await using"))return this.raiseOverwrite(UD.UsingDeclarationInAmbientContext,J,F),Y;for(let{id:Q,init:q}of Y.declarations){if(!q)continue;if(F==="var"||F==="let"||!!Q.typeAnnotation)this.raise(UD.InitializerNotAllowedInAmbientContext,q);else if(!NQD(q,this.hasPlugin("estree")))this.raise(UD.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,q)}return Y}parseStatementContent(J,F){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let U=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(U,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let U=this.state.type,X=this.startNode();this.next();let Y=U===125?this.tsTryParseDeclare(X):this.tsParseAbstractDeclaration(X,F);if(Y){if(U===125)Y.declare=!0;return Y}else return X.expression=this.createIdentifier(this.startNodeAt(X.loc.start),U===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(X,"ExpressionStatement")}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let X=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(X)}break}case 129:{let U=this.tsParseInterfaceDeclaration(this.startNode());if(U)return U;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let U=this.startNode();return this.next(),this.tsParseDeclaration(U,127,!1,F)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let U=this.startNode();return this.next(),this.tsParseDeclaration(U,128,!1,F)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let U=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(U)}break}}return super.parseStatementContent(J,F)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(J,F){return F.some((U)=>{if(Wx(U))return J.accessibility===U;return!!J[U]})}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(J,F,U){let X=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:X,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:UD.InvalidModifierOnTypeParameterPositions},F);let Y=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(F,X))this.raise(UD.StaticBlockCannotHaveModifier,this.state.curPosition());super.parseClassStaticBlock(J,F)}else this.parseClassMemberWithIsStatic(J,F,U,!!F.static)};if(F.declare)this.tsInAmbientContext(Y);else Y()}parseClassMemberWithIsStatic(J,F,U,X){let Y=this.tsTryParseIndexSignature(F);if(Y){if(J.body.push(Y),F.abstract)this.raise(UD.IndexSignatureHasAbstract,F);if(F.accessibility)this.raise(UD.IndexSignatureHasAccessibility,F,{modifier:F.accessibility});if(F.declare)this.raise(UD.IndexSignatureHasDeclare,F);if(F.override)this.raise(UD.IndexSignatureHasOverride,F);return}if(!this.state.inAbstractClass&&F.abstract)this.raise(UD.NonAbstractClassHasAbstractMethod,F);if(F.override){if(!U.hadSuperClass)this.raise(UD.OverrideNotInSubClass,F)}super.parseClassMemberWithIsStatic(J,F,U,X)}parsePostMemberNameModifiers(J){if(this.eat(17))J.optional=!0;if(J.readonly&&this.match(10))this.raise(UD.ClassMethodHasReadonly,J);if(J.declare&&this.match(10))this.raise(UD.ClassMethodHasDeclare,J)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return!0;return super.shouldParseExportDeclaration()}parseConditional(J,F,U){if(!this.match(17))return J;if(this.state.maybeInArrowParameters){let X=this.lookaheadCharCode();if(X===44||X===61||X===58||X===41)return this.setOptionalParametersError(U),J}return super.parseConditional(J,F,U)}parseParenItem(J,F){let U=super.parseParenItem(J,F);if(this.eat(17))U.optional=!0,this.resetEndLocation(J);if(this.match(14)){let X=this.startNodeAt(F);return X.expression=J,X.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(X,"TSTypeCastExpression")}return J}parseExportDeclaration(J){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(J));let F=this.state.startLoc,U=this.eatContextual(125);if(U&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(UD.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let Y=fD(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(J);if(!Y)return null;if(Y.type==="TSInterfaceDeclaration"||Y.type==="TSTypeAliasDeclaration"||U)J.exportKind="type";if(U&&Y.type!=="TSImportEqualsDeclaration")this.resetStartLocation(Y,F),Y.declare=!0;return Y}parseClassId(J,F,U,X){if((!F||U)&&this.isContextual(113))return;super.parseClassId(J,F,U,J.declare?1024:8331);let Y=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(Y)J.typeParameters=Y}parseClassPropertyAnnotation(J){if(!J.optional){if(this.eat(35))J.definite=!0;else if(this.eat(17))J.optional=!0}let F=this.tsTryParseTypeAnnotation();if(F)J.typeAnnotation=F}parseClassProperty(J){if(this.parseClassPropertyAnnotation(J),this.state.isAmbientContext&&!(J.readonly&&!J.typeAnnotation)&&this.match(29))this.raise(UD.DeclareClassFieldHasInitializer,this.state.startLoc);if(J.abstract&&this.match(29)){let{key:F}=J;this.raise(UD.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:F.type==="Identifier"&&!J.computed?F.name:`[${this.input.slice(this.offsetToSourcePos(F.start),this.offsetToSourcePos(F.end))}]`})}return super.parseClassProperty(J)}parseClassPrivateProperty(J){if(J.abstract)this.raise(UD.PrivateElementHasAbstract,J);if(J.accessibility)this.raise(UD.PrivateElementHasAccessibility,J,{modifier:J.accessibility});return this.parseClassPropertyAnnotation(J),super.parseClassPrivateProperty(J)}parseClassAccessorProperty(J){if(this.parseClassPropertyAnnotation(J),J.optional)this.raise(UD.AccessorCannotBeOptional,J);return super.parseClassAccessorProperty(J)}pushClassMethod(J,F,U,X,Y,Q){let q=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(q&&Y)this.raise(UD.ConstructorHasTypeParameters,q);let{declare:K=!1,kind:W}=F;if(K&&(W==="get"||W==="set"))this.raise(UD.DeclareAccessor,F,{kind:W});if(q)F.typeParameters=q;super.pushClassMethod(J,F,U,X,Y,Q)}pushClassPrivateMethod(J,F,U,X){let Y=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(Y)F.typeParameters=Y;super.pushClassPrivateMethod(J,F,U,X)}declareClassPrivateMethodInScope(J,F){if(J.type==="TSDeclareMethod")return;if(J.type==="MethodDefinition"&&J.value.body==null)return;super.declareClassPrivateMethodInScope(J,F)}parseClassSuper(J){if(super.parseClassSuper(J),J.superClass){if(J.superClass.type==="TSInstantiationExpression"){let F=J.superClass,U=F.expression;this.takeSurroundingComments(U,U.start,U.end);let X=F.typeParameters;this.takeSurroundingComments(X,X.start,X.end),J.superClass=U,J.superTypeParameters=X}else if(this.match(47)||this.match(51))J.superTypeParameters=this.tsParseTypeArgumentsInExpression()}if(this.eatContextual(113))J.implements=this.tsParseHeritageClause("implements")}parseObjPropValue(J,F,U,X,Y,Q,q){let K=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(K)J.typeParameters=K;return super.parseObjPropValue(J,F,U,X,Y,Q,q)}parseFunctionParams(J,F){let U=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(U)J.typeParameters=U;super.parseFunctionParams(J,F)}parseVarId(J,F){if(super.parseVarId(J,F),J.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35))J.definite=!0;let U=this.tsTryParseTypeAnnotation();if(U)J.id.typeAnnotation=U,this.resetEndLocation(J.id)}parseAsyncArrowFromCallExpression(J,F){if(this.match(14))J.returnType=this.tsParseTypeAnnotation();return super.parseAsyncArrowFromCallExpression(J,F)}parseMaybeAssign(J,F){var U,X,Y,Q,q;let K,W,G;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(K=this.state.clone(),W=this.tryParse(()=>super.parseMaybeAssign(J,F),K),!W.error)return W.node;let{context:Z}=this.state,H=Z[Z.length-1];if(H===gD.j_oTag||H===gD.j_expr)Z.pop()}if(!((U=W)!=null&&U.error)&&!this.match(47))return super.parseMaybeAssign(J,F);if(!K||K===this.state)K=this.state.clone();let I,z=this.tryParse((Z)=>{var H,B;I=this.tsParseTypeParameters(this.tsParseConstModifier);let j=super.parseMaybeAssign(J,F);if(j.type!=="ArrowFunctionExpression"||(H=j.extra)!=null&&H.parenthesized)Z();if(((B=I)==null?void 0:B.params.length)!==0)this.resetStartLocationFromNode(j,I);return j.typeParameters=I,j},K);if(!z.error&&!z.aborted){if(I)this.reportReservedArrowTypeParam(I);return z.node}if(!W){if(Kx(!this.hasPlugin("jsx")),G=this.tryParse(()=>super.parseMaybeAssign(J,F),K),!G.error)return G.node}if((X=W)!=null&&X.node)return this.state=W.failState,W.node;if(z.node){if(this.state=z.failState,I)this.reportReservedArrowTypeParam(I);return z.node}if((Y=G)!=null&&Y.node)return this.state=G.failState,G.node;throw((Q=W)==null?void 0:Q.error)||z.error||((q=G)==null?void 0:q.error)}reportReservedArrowTypeParam(J){var F;if(J.params.length===1&&!J.params[0].constraint&&!((F=J.extra)!=null&&F.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(UD.ReservedArrowTypeParam,J)}parseMaybeUnary(J,F){if(!this.hasPlugin("jsx")&&this.match(47))return this.tsParseTypeAssertion();return super.parseMaybeUnary(J,F)}parseArrow(J){if(this.match(14)){let F=this.tryParse((U)=>{let X=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))U();return X});if(F.aborted)return;if(!F.thrown){if(F.error)this.state=F.failState;J.returnType=F.node}}return super.parseArrow(J)}parseFunctionParamType(J){if(this.eat(17))J.optional=!0;let F=this.tsTryParseTypeAnnotation();if(F)J.typeAnnotation=F;return this.resetEndLocation(J),J}isAssignable(J,F){switch(J.type){case"TSTypeCastExpression":return this.isAssignable(J.expression,F);case"TSParameterProperty":return!0;default:return super.isAssignable(J,F)}}toAssignable(J,F=!1){switch(J.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(J,F);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(F)this.expressionScope.recordArrowParameterBindingError(UD.UnexpectedTypeCastInParameter,J);else this.raise(UD.UnexpectedTypeCastInParameter,J);this.toAssignable(J.expression,F);break;case"AssignmentExpression":if(!F&&J.left.type==="TSTypeCastExpression")J.left=this.typeCastToParameter(J.left);default:super.toAssignable(J,F)}}toAssignableParenthesizedExpression(J,F){switch(J.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(J.expression,F);break;default:super.toAssignable(J,F)}}checkToRestConversion(J,F){switch(J.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(J.expression,!1);break;default:super.checkToRestConversion(J,F)}}isValidLVal(J,F,U,X){switch(J){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(X!==64||!U)&&["expression",!0];default:return super.isValidLVal(J,F,U,X)}}parseBindingAtom(){if(this.state.type===78)return this.parseIdentifier(!0);return super.parseBindingAtom()}parseMaybeDecoratorArguments(J,F){if(this.match(47)||this.match(51)){let U=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let X=super.parseMaybeDecoratorArguments(J,F);return X.typeParameters=U,X}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(J,F)}checkCommaAfterRest(J){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===J)return this.next(),!1;return super.checkCommaAfterRest(J)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(J,F){let U=super.parseMaybeDefault(J,F);if(U.type==="AssignmentPattern"&&U.typeAnnotation&&U.right.start<U.typeAnnotation.start)this.raise(UD.TypeAnnotationAfterAssign,U.typeAnnotation);return U}getTokenFromCode(J){if(this.state.inType){if(J===62){this.finishOp(48,1);return}if(J===60){this.finishOp(47,1);return}}super.getTokenFromCode(J)}reScan_lt_gt(){let{type:J}=this.state;if(J===47)this.state.pos-=1,this.readToken_lt();else if(J===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:J}=this.state;if(J===51)return this.state.pos-=2,this.finishOp(47,1),47;return J}toAssignableListItem(J,F,U){let X=J[F];if(X.type==="TSTypeCastExpression")J[F]=this.typeCastToParameter(X);super.toAssignableListItem(J,F,U)}typeCastToParameter(J){return J.expression.typeAnnotation=J.typeAnnotation,this.resetEndLocation(J.expression,J.typeAnnotation.loc.end),J.expression}shouldParseArrow(J){if(this.match(14))return J.every((F)=>this.isAssignable(F,!0));return super.shouldParseArrow(J)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(J){if(this.match(47)||this.match(51)){let F=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(F)J.typeParameters=F}return super.jsxParseOpeningElementAfterName(J)}getGetterSetterExpectedParamCount(J){let F=super.getGetterSetterExpectedParamCount(J),X=this.getObjectOrClassMethodParams(J)[0];return X&&this.isThisParam(X)?F+1:F}parseCatchClauseParam(){let J=super.parseCatchClauseParam(),F=this.tsTryParseTypeAnnotation();if(F)J.typeAnnotation=F,this.resetEndLocation(J);return J}tsInAmbientContext(J){let{isAmbientContext:F,strict:U}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return J()}finally{this.state.isAmbientContext=F,this.state.strict=U}}parseClass(J,F,U){let X=this.state.inAbstractClass;this.state.inAbstractClass=!!J.abstract;try{return super.parseClass(J,F,U)}finally{this.state.inAbstractClass=X}}tsParseAbstractDeclaration(J,F){if(this.match(80))return J.abstract=!0,this.maybeTakeDecorators(F,this.parseClass(J,!0,!1));else if(this.isContextual(129))if(!this.hasFollowingLineBreak())return J.abstract=!0,this.raise(UD.NonClassMethodPropertyHasAbstractModifier,J),this.tsParseInterfaceDeclaration(J);else return null;throw this.unexpected(null,80)}parseMethod(J,F,U,X,Y,Q,q){let K=super.parseMethod(J,F,U,X,Y,Q,q);if(K.abstract||K.type==="TSAbstractMethodDefinition"){if((this.hasPlugin("estree")?K.value:K).body){let{key:I}=K;this.raise(UD.AbstractMethodHasImplementation,K,{methodName:I.type==="Identifier"&&!K.computed?I.name:`[${this.input.slice(this.offsetToSourcePos(I.start),this.offsetToSourcePos(I.end))}]`})}}return K}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.getExpression()}parseExportSpecifier(J,F,U,X){if(!F&&X)return this.parseTypeOnlyImportExportSpecifier(J,!1,U),this.finishNode(J,"ExportSpecifier");return J.exportKind="value",super.parseExportSpecifier(J,F,U,X)}parseImportSpecifier(J,F,U,X,Y){if(!F&&X)return this.parseTypeOnlyImportExportSpecifier(J,!0,U),this.finishNode(J,"ImportSpecifier");return J.importKind="value",super.parseImportSpecifier(J,F,U,X,U?4098:4096)}parseTypeOnlyImportExportSpecifier(J,F,U){let X=F?"imported":"local",Y=F?"local":"exported",Q=J[X],q,K=!1,W=!0,G=Q.loc.start;if(this.isContextual(93)){let z=this.parseIdentifier();if(this.isContextual(93)){let Z=this.parseIdentifier();if(F6(this.state.type))K=!0,Q=z,q=F?this.parseIdentifier():this.parseModuleExportName(),W=!1;else q=Z,W=!1}else if(F6(this.state.type))W=!1,q=F?this.parseIdentifier():this.parseModuleExportName();else K=!0,Q=z}else if(F6(this.state.type))if(K=!0,F){if(Q=this.parseIdentifier(!0),!this.isContextual(93))this.checkReservedWord(Q.name,Q.loc.start,!0,!0)}else Q=this.parseModuleExportName();if(K&&U)this.raise(F?UD.TypeModifierIsUsedInTypeImports:UD.TypeModifierIsUsedInTypeExports,G);J[X]=Q,J[Y]=q;let I=F?"importKind":"exportKind";if(J[I]=K?"type":"value",W&&this.eatContextual(93))J[Y]=F?this.parseIdentifier():this.parseModuleExportName();if(!J[Y])J[Y]=this.cloneIdentifier(J[X]);if(F)this.checkIdentifier(J[Y],K?4098:4096)}fillOptionalPropertiesForTSESLint(J){var F,U,X,Y,Q,q,K,W,G,I,z,Z,H,B,j,N,O,L,A,E,_,k,C,y,v,i,c,n,t,R,V,w,b,x,f,a,g,d,ZD,jD,PD,g0,V2,s1,BN,ON,jN,NN;switch(J.type){case"ExpressionStatement":(F=J.directive)!=null||(J.directive=void 0);return;case"RestElement":J.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(U=J.decorators)!=null||(J.decorators=[]),(X=J.optional)!=null||(J.optional=!1),(Y=J.typeAnnotation)!=null||(J.typeAnnotation=void 0);return;case"TSParameterProperty":(Q=J.accessibility)!=null||(J.accessibility=void 0),(q=J.decorators)!=null||(J.decorators=[]),(K=J.override)!=null||(J.override=!1),(W=J.readonly)!=null||(J.readonly=!1),(G=J.static)!=null||(J.static=!1);return;case"TSEmptyBodyFunctionExpression":J.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(I=J.declare)!=null||(J.declare=!1),(z=J.returnType)!=null||(J.returnType=void 0),(Z=J.typeParameters)!=null||(J.typeParameters=void 0);return;case"Property":(H=J.optional)!=null||(J.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(B=J.optional)!=null||(J.optional=!1);case"TSIndexSignature":(j=J.accessibility)!=null||(J.accessibility=void 0),(N=J.readonly)!=null||(J.readonly=!1),(O=J.static)!=null||(J.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(L=J.declare)!=null||(J.declare=!1),(A=J.definite)!=null||(J.definite=!1),(E=J.readonly)!=null||(J.readonly=!1),(_=J.typeAnnotation)!=null||(J.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(k=J.accessibility)!=null||(J.accessibility=void 0),(C=J.decorators)!=null||(J.decorators=[]),(y=J.override)!=null||(J.override=!1),(v=J.optional)!=null||(J.optional=!1);return;case"ClassExpression":(i=J.id)!=null||(J.id=null);case"ClassDeclaration":(c=J.abstract)!=null||(J.abstract=!1),(n=J.declare)!=null||(J.declare=!1),(t=J.decorators)!=null||(J.decorators=[]),(R=J.implements)!=null||(J.implements=[]),(V=J.superTypeArguments)!=null||(J.superTypeArguments=void 0),(w=J.typeParameters)!=null||(J.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(b=J.declare)!=null||(J.declare=!1);return;case"VariableDeclarator":(x=J.definite)!=null||(J.definite=!1);return;case"TSEnumDeclaration":(f=J.const)!=null||(J.const=!1),(a=J.declare)!=null||(J.declare=!1);return;case"TSEnumMember":(g=J.computed)!=null||(J.computed=!1);return;case"TSImportType":(d=J.qualifier)!=null||(J.qualifier=null),(ZD=J.options)!=null||(J.options=null);return;case"TSInterfaceDeclaration":(jD=J.declare)!=null||(J.declare=!1),(PD=J.extends)!=null||(J.extends=[]);return;case"TSMappedType":(g0=J.optional)!=null||(J.optional=!1),(V2=J.readonly)!=null||(J.readonly=void 0);return;case"TSModuleDeclaration":(s1=J.declare)!=null||(J.declare=!1),(BN=J.global)!=null||(J.global=J.kind==="global");return;case"TSTypeParameter":(ON=J.const)!=null||(J.const=!1),(jN=J.in)!=null||(J.in=!1),(NN=J.out)!=null||(J.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(J,F){if(A6(J)){if(rO.lastIndex=F,rO.test(this.input)){let U=this.codePointAtPos(rO.lastIndex);if(!K2(U)&&U!==92)return!1}return!0}else if(J===92)return!0;else return!1}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let J=this.nextTokenInLineStart(),F=this.codePointAtPos(J);return this.chStartsBindingIdentifierAndNotRelationalOperator(F,J)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let J=this.nextTokenInLineStart(),F=this.codePointAtPos(J);return this.chStartsBindingIdentifier(F,J)||F===34||F===39}};function jQD(D){if(D.type!=="MemberExpression")return!1;let{computed:$,property:J}=D;if($&&J.type!=="StringLiteral"&&(J.type!=="TemplateLiteral"||J.expressions.length>0))return!1;return mx(D.object)}function NQD(D,$){var J;let{type:F}=D;if((J=D.extra)!=null&&J.parenthesized)return!1;if($){if(F==="Literal"){let{value:U}=D;if(typeof U==="string"||typeof U==="boolean")return!0}}else if(F==="StringLiteral"||F==="BooleanLiteral")return!0;if(hx(D,$)||VQD(D,$))return!0;if(F==="TemplateLiteral"&&D.expressions.length===0)return!0;if(jQD(D))return!0;return!1}function hx(D,$){if($)return D.type==="Literal"&&(typeof D.value==="number"||("bigint"in D));return D.type==="NumericLiteral"||D.type==="BigIntLiteral"}function VQD(D,$){if(D.type==="UnaryExpression"){let{operator:J,argument:F}=D;if(J==="-"&&hx(F,$))return!0}return!1}function mx(D){if(D.type==="Identifier")return!0;if(D.type!=="MemberExpression"||D.computed)return!1;return mx(D.object)}var Gx=E6`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),LQD=(D)=>class extends D{parsePlaceholder(J){if(this.match(133)){let F=this.startNode();return this.next(),this.assertNoSpace(),F.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(F,J)}}finishPlaceholder(J,F){let U=J;if(!U.expectedNode||!U.type)U=this.finishNode(U,"Placeholder");return U.expectedNode=F,U}getTokenFromCode(J){if(J===37&&this.input.charCodeAt(this.state.pos+1)===37)this.finishOp(133,2);else super.getTokenFromCode(J)}parseExprAtom(J){return this.parsePlaceholder("Expression")||super.parseExprAtom(J)}parseIdentifier(J){return this.parsePlaceholder("Identifier")||super.parseIdentifier(J)}checkReservedWord(J,F,U,X){if(J!==void 0)super.checkReservedWord(J,F,U,X)}cloneIdentifier(J){let F=super.cloneIdentifier(J);if(F.type==="Placeholder")F.expectedNode=J.expectedNode;return F}cloneStringLiteral(J){if(J.type==="Placeholder")return this.cloneIdentifier(J);return super.cloneStringLiteral(J)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(J,F,U,X){return J==="Placeholder"||super.isValidLVal(J,F,U,X)}toAssignable(J,F){if(J&&J.type==="Placeholder"&&J.expectedNode==="Expression")J.expectedNode="Pattern";else super.toAssignable(J,F)}chStartsBindingIdentifier(J,F){if(super.chStartsBindingIdentifier(J,F))return!0;let U=this.nextTokenStart();if(this.input.charCodeAt(U)===37&&this.input.charCodeAt(U+1)===37)return!0;return!1}verifyBreakContinue(J,F){var U;if(((U=J.label)==null?void 0:U.type)==="Placeholder")return;super.verifyBreakContinue(J,F)}parseExpressionStatement(J,F){var U;if(F.type!=="Placeholder"||(U=F.extra)!=null&&U.parenthesized)return super.parseExpressionStatement(J,F);if(this.match(14)){let Y=J;return Y.label=this.finishPlaceholder(F,"Identifier"),this.next(),Y.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(Y,"LabeledStatement")}this.semicolon();let X=J;return X.name=F.name,this.finishPlaceholder(X,"Statement")}parseBlock(J,F,U){return this.parsePlaceholder("BlockStatement")||super.parseBlock(J,F,U)}parseFunctionId(J){return this.parsePlaceholder("Identifier")||super.parseFunctionId(J)}parseClass(J,F,U){let X=F?"ClassDeclaration":"ClassExpression";this.next();let Y=this.state.strict,Q=this.parsePlaceholder("Identifier");if(Q)if(this.match(81)||this.match(133)||this.match(5))J.id=Q;else if(U||!F)return J.id=null,J.body=this.finishPlaceholder(Q,"ClassBody"),this.finishNode(J,X);else throw this.raise(Gx.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(J,F,U);return super.parseClassSuper(J),J.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!J.superClass,Y),this.finishNode(J,X)}parseExport(J,F){let U=this.parsePlaceholder("Identifier");if(!U)return super.parseExport(J,F);let X=J;if(!this.isContextual(98)&&!this.match(12))return X.specifiers=[],X.source=null,X.declaration=this.finishPlaceholder(U,"Declaration"),this.finishNode(X,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let Y=this.startNode();return Y.exported=U,X.specifiers=[this.finishNode(Y,"ExportDefaultSpecifier")],super.parseExport(X,F)}isExportDefaultSpecifier(){if(this.match(65)){let J=this.nextTokenStart();if(this.isUnparsedContextual(J,"from")){if(this.input.startsWith(c1(133),this.nextTokenStartSince(J+4)))return!0}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(J,F){var U;if((U=J.specifiers)!=null&&U.length)return!0;return super.maybeParseExportDefaultSpecifier(J,F)}checkExport(J){let{specifiers:F}=J;if(F!=null&&F.length)J.specifiers=F.filter((U)=>U.exported.type==="Placeholder");super.checkExport(J),J.specifiers=F}parseImport(J){let F=this.parsePlaceholder("Identifier");if(!F)return super.parseImport(J);if(J.specifiers=[],!this.isContextual(98)&&!this.match(12))return J.source=this.finishPlaceholder(F,"StringLiteral"),this.semicolon(),this.finishNode(J,"ImportDeclaration");let U=this.startNodeAtNode(F);if(U.local=F,J.specifiers.push(this.finishNode(U,"ImportDefaultSpecifier")),this.eat(12)){if(!this.maybeParseStarImportSpecifier(J))this.parseNamedImportSpecifiers(J)}return this.expectContextual(98),J.source=this.parseImportSource(),this.semicolon(),this.finishNode(J,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index))this.raise(Gx.UnexpectedSpace,this.state.lastTokEndLoc)}},wQD=(D)=>class extends D{parseV8Intrinsic(){if(this.match(54)){let J=this.state.startLoc,F=this.startNode();if(this.next(),fD(this.state.type)){let U=this.parseIdentifierName(),X=this.createIdentifier(F,U);if(this.castNodeTo(X,"V8IntrinsicIdentifier"),this.match(10))return X}this.unexpected(J)}}parseExprAtom(J){return this.parseV8Intrinsic()||super.parseExprAtom(J)}},Ix=["minimal","fsharp","hack","smart"],zx=["^^","@@","^","%","#"];function RQD(D){if(D.has("decorators")){if(D.has("decorators-legacy"))throw Error("Cannot use the decorators and decorators-legacy plugin together");let F=D.get("decorators").decoratorsBeforeExport;if(F!=null&&typeof F!=="boolean")throw Error("'decoratorsBeforeExport' must be a boolean, if specified.");let U=D.get("decorators").allowCallParenthesized;if(U!=null&&typeof U!=="boolean")throw Error("'allowCallParenthesized' must be a boolean.")}if(D.has("flow")&&D.has("typescript"))throw Error("Cannot combine flow and typescript plugins.");if(D.has("placeholders")&&D.has("v8intrinsic"))throw Error("Cannot combine placeholders and v8intrinsic plugins.");if(D.has("pipelineOperator")){var $;let F=D.get("pipelineOperator").proposal;if(!Ix.includes(F)){let U=Ix.map((X)=>`"${X}"`).join(", ");throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${U}.`)}if(F==="hack"){var J;if(D.has("placeholders"))throw Error("Cannot combine placeholders plugin and Hack-style pipes.");if(D.has("v8intrinsic"))throw Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let U=D.get("pipelineOperator").topicToken;if(!zx.includes(U)){let X=zx.map((Y)=>`"${Y}"`).join(", ");throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${X}.`)}if(U==="#"&&((J=D.get("recordAndTuple"))==null?void 0:J.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",D.get("recordAndTuple")])}\`.`)}else if(F==="smart"&&(($=D.get("recordAndTuple"))==null?void 0:$.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",D.get("recordAndTuple")])}\`.`)}if(D.has("moduleAttributes")){if(D.has("deprecatedImportAssert")||D.has("importAssertions"))throw Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(D.get("moduleAttributes").version!=="may-2020")throw Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(D.has("importAssertions")){if(D.has("deprecatedImportAssert"))throw Error("Cannot combine importAssertions and deprecatedImportAssert plugins.")}if(D.has("deprecatedImportAssert"));else if(D.has("importAttributes")&&D.get("importAttributes").deprecatedAssertSyntax)D.set("deprecatedImportAssert",{});if(D.has("recordAndTuple")){let F=D.get("recordAndTuple").syntaxType;if(F!=null){let U=["hash","bar"];if(!U.includes(F))throw Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+U.map((X)=>`'${X}'`).join(", "))}}if(D.has("asyncDoExpressions")&&!D.has("doExpressions")){let F=Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw F.missingPlugins="doExpressions",F}if(D.has("optionalChainingAssign")&&D.get("optionalChainingAssign").version!=="2023-07")throw Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(D.has("discardBinding")&&D.get("discardBinding").syntaxType!=="void")throw Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var lx={estree:vYD,jsx:XQD,flow:$QD,typescript:OQD,v8intrinsic:wQD,placeholders:LQD},MQD=Object.keys(lx);class ix extends yx{checkProto(D,$,J,F){if(D.type==="SpreadElement"||this.isObjectMethod(D)||D.computed||D.shorthand)return J;let U=D.key;if((U.type==="Identifier"?U.name:U.value)==="__proto__"){if($)return this.raise(M.RecordNoProto,U),!0;if(J)if(F){if(F.doubleProtoLoc===null)F.doubleProtoLoc=U.loc.start}else this.raise(M.DuplicateProto,U);return!0}return J}shouldExitDescending(D,$){return D.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(D.start)===$}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(M.ParseExpressionEmptyInput,this.state.startLoc);let D=this.parseExpression();if(!this.match(140))throw this.raise(M.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});if(this.finalizeRemainingComments(),D.comments=this.comments,D.errors=this.state.errors,this.optionFlags&256)D.tokens=this.tokens;return D}parseExpression(D,$){if(D)return this.disallowInAnd(()=>this.parseExpressionBase($));return this.allowInAnd(()=>this.parseExpressionBase($))}parseExpressionBase(D){let $=this.state.startLoc,J=this.parseMaybeAssign(D);if(this.match(12)){let F=this.startNodeAt($);F.expressions=[J];while(this.eat(12))F.expressions.push(this.parseMaybeAssign(D));return this.toReferencedList(F.expressions),this.finishNode(F,"SequenceExpression")}return J}parseMaybeAssignDisallowIn(D,$){return this.disallowInAnd(()=>this.parseMaybeAssign(D,$))}parseMaybeAssignAllowIn(D,$){return this.allowInAnd(()=>this.parseMaybeAssign(D,$))}setOptionalParametersError(D){D.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(D,$){let J=this.state.startLoc,F=this.isContextual(108);if(F){if(this.prodParam.hasYield){this.next();let Q=this.parseYield(J);if($)Q=$.call(this,Q,J);return Q}}let U;if(D)U=!1;else D=new a5,U=!0;let{type:X}=this.state;if(X===10||fD(X))this.state.potentialArrowAt=this.state.start;let Y=this.parseMaybeConditional(D);if($)Y=$.call(this,Y,J);if(_YD(this.state.type)){let Q=this.startNodeAt(J),q=this.state.value;if(Q.operator=q,this.match(29)){this.toAssignable(Y,!0),Q.left=Y;let K=J.index;if(D.doubleProtoLoc!=null&&D.doubleProtoLoc.index>=K)D.doubleProtoLoc=null;if(D.shorthandAssignLoc!=null&&D.shorthandAssignLoc.index>=K)D.shorthandAssignLoc=null;if(D.privateKeyLoc!=null&&D.privateKeyLoc.index>=K)this.checkDestructuringPrivate(D),D.privateKeyLoc=null;if(D.voidPatternLoc!=null&&D.voidPatternLoc.index>=K)D.voidPatternLoc=null}else Q.left=Y;return this.next(),Q.right=this.parseMaybeAssign(),this.checkLVal(Y,this.finishNode(Q,"AssignmentExpression"),void 0,void 0,void 0,void 0,q==="||="||q==="&&="||q==="??="),Q}else if(U)this.checkExpressionErrors(D,!0);if(F){let{type:Q}=this.state;if((this.hasPlugin("v8intrinsic")?r5(Q):r5(Q)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(M.YieldNotInGeneratorFunction,J),this.parseYield(J)}return Y}parseMaybeConditional(D){let $=this.state.startLoc,J=this.state.potentialArrowAt,F=this.parseExprOps(D);if(this.shouldExitDescending(F,J))return F;return this.parseConditional(F,$,D)}parseConditional(D,$,J){if(this.eat(17)){let F=this.startNodeAt($);return F.test=D,F.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),F.alternate=this.parseMaybeAssign(),this.finishNode(F,"ConditionalExpression")}return D}parseMaybeUnaryOrPrivate(D){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(D)}parseExprOps(D){let $=this.state.startLoc,J=this.state.potentialArrowAt,F=this.parseMaybeUnaryOrPrivate(D);if(this.shouldExitDescending(F,J))return F;return this.parseExprOp(F,$,-1)}parseExprOp(D,$,J){if(this.isPrivateName(D)){let U=this.getPrivateNameSV(D);if(J>=lX(58)||!this.prodParam.hasIn||!this.match(58))this.raise(M.PrivateInExpectedIn,D,{identifierName:U});this.classScope.usePrivateName(U,D.loc.start)}let F=this.state.type;if(CYD(F)&&(this.prodParam.hasIn||!this.match(58))){let U=lX(F);if(U>J){if(F===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return D;this.checkPipelineAtInfixOperator(D,$)}let X=this.startNodeAt($);X.left=D,X.operator=this.state.value;let Y=F===41||F===42,Q=F===40;if(Q)U=lX(42);if(this.next(),F===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait)throw this.raise(M.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}X.right=this.parseExprOpRightExpr(F,U);let q=this.finishNode(X,Y||Q?"LogicalExpression":"BinaryExpression"),K=this.state.type;if(Q&&(K===41||K===42)||Y&&K===40)throw this.raise(M.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(q,$,J)}}return D}parseExprOpRightExpr(D,$){let J=this.state.startLoc;switch(D){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>{return this.parseHackPipeBody()});case"fsharp":return this.withSoloAwaitPermittingContext(()=>{return this.parseFSharpPipelineBody($)})}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(M.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(D,$),J)});default:return this.parseExprOpBaseRightExpr(D,$)}}parseExprOpBaseRightExpr(D,$){let J=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),J,yYD(D)?$-1:$)}parseHackPipeBody(){var D;let{startLoc:$}=this.state,J=this.parseMaybeAssign();if(VYD.has(J.type)&&!((D=J.extra)!=null&&D.parenthesized))this.raise(M.PipeUnparenthesizedBody,$,{type:J.type});if(!this.topicReferenceWasUsedInCurrentContext())this.raise(M.PipeTopicUnused,$);return J}checkExponentialAfterUnary(D){if(this.match(57))this.raise(M.UnexpectedTokenUnaryExponentiation,D.argument)}parseMaybeUnary(D,$){let J=this.state.startLoc,F=this.isContextual(96);if(F&&this.recordAwaitIfAllowed()){this.next();let Q=this.parseAwait(J);if(!$)this.checkExponentialAfterUnary(Q);return Q}let U=this.match(34),X=this.startNode();if(gYD(this.state.type)){if(X.operator=this.state.value,X.prefix=!0,this.match(72))this.expectPlugin("throwExpressions");let Q=this.match(89);if(this.next(),X.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(D,!0),this.state.strict&&Q){let q=X.argument;if(q.type==="Identifier")this.raise(M.StrictDelete,X);else if(this.hasPropertyAsPrivateName(q))this.raise(M.DeletePrivateField,X)}if(!U){if(!$)this.checkExponentialAfterUnary(X);return this.finishNode(X,"UnaryExpression")}}let Y=this.parseUpdate(X,U,D);if(F){let{type:Q}=this.state;if((this.hasPlugin("v8intrinsic")?r5(Q):r5(Q)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(M.AwaitNotInAsyncContext,J),this.parseAwait(J)}return Y}parseUpdate(D,$,J){if($){let X=D;return this.checkLVal(X.argument,this.finishNode(X,"UpdateExpression")),D}let F=this.state.startLoc,U=this.parseExprSubscripts(J);if(this.checkExpressionErrors(J,!1))return U;while(uYD(this.state.type)&&!this.canInsertSemicolon()){let X=this.startNodeAt(F);X.operator=this.state.value,X.prefix=!1,X.argument=U,this.next(),this.checkLVal(U,U=this.finishNode(X,"UpdateExpression"))}return U}parseExprSubscripts(D){let $=this.state.startLoc,J=this.state.potentialArrowAt,F=this.parseExprAtom(D);if(this.shouldExitDescending(F,J))return F;return this.parseSubscripts(F,$)}parseSubscripts(D,$,J){let F={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(D),stop:!1};do D=this.parseSubscript(D,$,J,F),F.maybeAsyncArrow=!1;while(!F.stop);return D}parseSubscript(D,$,J,F){let{type:U}=this.state;if(!J&&U===15)return this.parseBind(D,$,J,F);else if(dX(U))return this.parseTaggedTemplateExpression(D,$,F);let X=!1;if(U===18){if(J){if(this.raise(M.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40)return this.stopParseSubscript(D,F)}F.optionalChainMember=X=!0,this.next()}if(!J&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(D,$,F,X);else{let Y=this.eat(0);if(Y||X||this.eat(16))return this.parseMember(D,$,F,Y,X);else return this.stopParseSubscript(D,F)}}stopParseSubscript(D,$){return $.stop=!0,D}parseMember(D,$,J,F,U){let X=this.startNodeAt($);if(X.object=D,X.computed=F,F)X.property=this.parseExpression(),this.expect(3);else if(this.match(139)){if(D.type==="Super")this.raise(M.SuperPrivateField,$);this.classScope.usePrivateName(this.state.value,this.state.startLoc),X.property=this.parsePrivateName()}else X.property=this.parseIdentifier(!0);if(J.optionalChainMember)return X.optional=U,this.finishNode(X,"OptionalMemberExpression");else return this.finishNode(X,"MemberExpression")}parseBind(D,$,J,F){let U=this.startNodeAt($);return U.object=D,this.next(),U.callee=this.parseNoCallExpr(),F.stop=!0,this.parseSubscripts(this.finishNode(U,"BindExpression"),$,J)}parseCoverCallAndAsyncArrowHead(D,$,J,F){let U=this.state.maybeInArrowParameters,X=null;this.state.maybeInArrowParameters=!0,this.next();let Y=this.startNodeAt($);Y.callee=D;let{maybeAsyncArrow:Q,optionalChainMember:q}=J;if(Q)this.expressionScope.enter(zQD()),X=new a5;if(q)Y.optional=F;if(F)Y.arguments=this.parseCallExpressionArguments();else Y.arguments=this.parseCallExpressionArguments(D.type!=="Super",Y,X);let K=this.finishCallExpression(Y,q);if(Q&&this.shouldParseAsyncArrow()&&!F)J.stop=!0,this.checkDestructuringPrivate(X),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),K=this.parseAsyncArrowFromCallExpression(this.startNodeAt($),K);else{if(Q)this.checkExpressionErrors(X,!0),this.expressionScope.exit();this.toReferencedArguments(K)}return this.state.maybeInArrowParameters=U,K}toReferencedArguments(D,$){this.toReferencedListDeep(D.arguments,$)}parseTaggedTemplateExpression(D,$,J){let F=this.startNodeAt($);if(F.tag=D,F.quasi=this.parseTemplate(!0),J.optionalChainMember)this.raise(M.OptionalChainingNoTemplate,$);return this.finishNode(F,"TaggedTemplateExpression")}atPossibleAsyncArrow(D){return D.type==="Identifier"&&D.name==="async"&&this.state.lastTokEndLoc.index===D.end&&!this.canInsertSemicolon()&&D.end-D.start===5&&this.offsetToSourcePos(D.start)===this.state.potentialArrowAt}finishCallExpression(D,$){if(D.callee.type==="Import"){if(D.arguments.length===0||D.arguments.length>2)this.raise(M.ImportCallArity,D);else for(let J of D.arguments)if(J.type==="SpreadElement")this.raise(M.ImportCallSpreadArgument,J)}return this.finishNode(D,$?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(D,$,J){let F=[],U=!0,X=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;while(!this.eat(11)){if(U)U=!1;else if(this.expect(12),this.match(11)){if($)this.addTrailingCommaExtraToNode($);this.next();break}F.push(this.parseExprListItem(11,!1,J,D))}return this.state.inFSharpPipelineDirectBody=X,F}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(D,$){var J;if(this.resetPreviousNodeTrailingComments($),this.expect(19),this.parseArrowExpression(D,$.arguments,!0,(J=$.extra)==null?void 0:J.trailingCommaLoc),$.innerComments)e5(D,$.innerComments);if($.callee.trailingComments)e5(D,$.callee.trailingComments);return D}parseNoCallExpr(){let D=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),D,!0)}parseExprAtom(D){let $,J=null,{type:F}=this.state;switch(F){case 79:return this.parseSuper();case 83:if($=this.startNode(),this.next(),this.match(16))return this.parseImportMetaPropertyOrPhaseCall($);if(this.match(10))if(this.optionFlags&512)return this.parseImportCall($);else return this.finishNode($,"Import");else return this.raise(M.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode($,"Import");case 78:return $=this.startNode(),this.next(),this.finishNode($,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let U=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(U)}case 0:return this.parseArrayLike(3,!1,D);case 5:return this.parseObjectLike(8,!1,!1,D);case 68:return this.parseFunctionOrFunctionSent();case 26:J=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(J,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{$=this.startNode(),this.next(),$.object=null;let U=$.callee=this.parseNoCallExpr();if(U.type==="MemberExpression")return this.finishNode($,"BindExpression");else throw this.raise(M.UnsupportedBind,U)}case 139:return this.raise(M.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let U=this.getPluginOption("pipelineOperator","proposal");if(U)return this.parseTopicReference(U);throw this.unexpected()}case 47:{let U=this.input.codePointAt(this.nextTokenStart());if(A6(U)||U===62)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected()}default:if(F===137)return this.parseDecimalLiteral(this.state.value);else if(F===2||F===1)return this.parseArrayLike(this.state.type===2?4:3,!0);else if(F===6||F===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(fD(F)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let U=this.state.potentialArrowAt===this.state.start,X=this.state.containsEsc,Y=this.parseIdentifier();if(!X&&Y.name==="async"&&!this.canInsertSemicolon()){let{type:Q}=this.state;if(Q===68)return this.resetPreviousNodeTrailingComments(Y),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(Y));else if(fD(Q))if(U&&this.lookaheadCharCode()===61)return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(Y));else return Y;else if(Q===90)return this.resetPreviousNodeTrailingComments(Y),this.parseDo(this.startNodeAtNode(Y),!0)}if(U&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(Y),[Y],!1);return Y}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(D,$){let J=this.getPluginOption("pipelineOperator","proposal");if(J)return this.state.type=D,this.state.value=$,this.state.pos--,this.state.end--,this.state.endLoc=Y0(this.state.endLoc,-1),this.parseTopicReference(J);throw this.unexpected()}parseTopicReference(D){let $=this.startNode(),J=this.state.startLoc,F=this.state.type;return this.next(),this.finishTopicReference($,J,D,F)}finishTopicReference(D,$,J,F){if(this.testTopicReferenceConfiguration(J,$,F))if(J==="hack"){if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(M.PipeTopicUnbound,$);return this.registerTopicReference(),this.finishNode(D,"TopicReference")}else{if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(M.PrimaryTopicNotAllowed,$);return this.registerTopicReference(),this.finishNode(D,"PipelinePrimaryTopicReference")}else throw this.raise(M.PipeTopicUnconfiguredToken,$,{token:c1(F)})}testTopicReferenceConfiguration(D,$,J){switch(D){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:c1(J)}]);case"smart":return J===27;default:throw this.raise(M.PipeTopicRequiresHackPipes,$)}}parseAsyncArrowUnaryFunction(D){this.prodParam.enter(iX(!0,this.prodParam.hasYield));let $=[this.parseIdentifier()];if(this.prodParam.exit(),this.hasPrecedingLineBreak())this.raise(M.LineTerminatorBeforeArrow,this.state.curPosition());return this.expect(19),this.parseArrowExpression(D,$,!0)}parseDo(D,$){if(this.expectPlugin("doExpressions"),$)this.expectPlugin("asyncDoExpressions");D.async=$,this.next();let J=this.state.labels;if(this.state.labels=[],$)this.prodParam.enter(2),D.body=this.parseBlock(),this.prodParam.exit();else D.body=this.parseBlock();return this.state.labels=J,this.finishNode(D,"DoExpression")}parseSuper(){let D=this.startNode();if(this.next(),this.match(10)&&!this.scope.allowDirectSuper){if(!(this.optionFlags&16))this.raise(M.SuperNotAllowed,D)}else if(!this.scope.allowSuper){if(!(this.optionFlags&16))this.raise(M.UnexpectedSuper,D)}if(!this.match(10)&&!this.match(0)&&!this.match(16))this.raise(M.UnsupportedSuper,D);return this.finishNode(D,"Super")}parsePrivateName(){let D=this.startNode(),$=this.startNodeAt(Y0(this.state.startLoc,1)),J=this.state.value;return this.next(),D.id=this.createIdentifier($,J),this.finishNode(D,"PrivateName")}parseFunctionOrFunctionSent(){let D=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let $=this.createIdentifier(this.startNodeAtNode(D),"function");if(this.next(),this.match(103))this.expectPlugin("functionSent");else if(!this.hasPlugin("functionSent"))this.unexpected();return this.parseMetaProperty(D,$,"sent")}return this.parseFunction(D)}parseMetaProperty(D,$,J){D.meta=$;let F=this.state.containsEsc;if(D.property=this.parseIdentifier(!0),D.property.name!==J||F)this.raise(M.UnsupportedMetaProperty,D.property,{target:$.name,onlyValidPropertyName:J});return this.finishNode(D,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(D){if(this.next(),this.isContextual(105)||this.isContextual(97)){let $=this.isContextual(105);return this.expectPlugin($?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),D.phase=$?"source":"defer",this.parseImportCall(D)}else{let $=this.createIdentifierAt(this.startNodeAtNode(D),"import",this.state.lastTokStartLoc);if(this.isContextual(101)){if(!this.inModule)this.raise(M.ImportMetaOutsideModule,$);this.sawUnambiguousESM=!0}return this.parseMetaProperty(D,$,"meta")}}parseLiteralAtNode(D,$,J){return this.addExtra(J,"rawValue",D),this.addExtra(J,"raw",this.input.slice(this.offsetToSourcePos(J.start),this.state.end)),J.value=D,this.next(),this.finishNode(J,$)}parseLiteral(D,$){let J=this.startNode();return this.parseLiteralAtNode(D,$,J)}parseStringLiteral(D){return this.parseLiteral(D,"StringLiteral")}parseNumericLiteral(D){return this.parseLiteral(D,"NumericLiteral")}parseBigIntLiteral(D){return this.parseLiteral(D,"BigIntLiteral")}parseDecimalLiteral(D){return this.parseLiteral(D,"DecimalLiteral")}parseRegExpLiteral(D){let $=this.startNode();return this.addExtra($,"raw",this.input.slice(this.offsetToSourcePos($.start),this.state.end)),$.pattern=D.pattern,$.flags=D.flags,this.next(),this.finishNode($,"RegExpLiteral")}parseBooleanLiteral(D){let $=this.startNode();return $.value=D,this.next(),this.finishNode($,"BooleanLiteral")}parseNullLiteral(){let D=this.startNode();return this.next(),this.finishNode(D,"NullLiteral")}parseParenAndDistinguishExpression(D){let $=this.state.startLoc,J;this.next(),this.expressionScope.enter(IQD());let F=this.state.maybeInArrowParameters,U=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let X=this.state.startLoc,Y=[],Q=new a5,q=!0,K,W;while(!this.match(11)){if(q)q=!1;else if(this.expect(12,Q.optionalParametersLoc===null?null:Q.optionalParametersLoc),this.match(11)){W=this.state.startLoc;break}if(this.match(21)){let z=this.state.startLoc;if(K=this.state.startLoc,Y.push(this.parseParenItem(this.parseRestBinding(),z)),!this.checkCommaAfterRest(41))break}else Y.push(this.parseMaybeAssignAllowInOrVoidPattern(11,Q,this.parseParenItem))}let G=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=F,this.state.inFSharpPipelineDirectBody=U;let I=this.startNodeAt($);if(D&&this.shouldParseArrow(Y)&&(I=this.parseArrow(I)))return this.checkDestructuringPrivate(Q),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(I,Y,!1),I;if(this.expressionScope.exit(),!Y.length)this.unexpected(this.state.lastTokStartLoc);if(W)this.unexpected(W);if(K)this.unexpected(K);if(this.checkExpressionErrors(Q,!0),this.toReferencedListDeep(Y,!0),Y.length>1)J=this.startNodeAt(X),J.expressions=Y,this.finishNode(J,"SequenceExpression"),this.resetEndLocation(J,G);else J=Y[0];return this.wrapParenthesis($,J)}wrapParenthesis(D,$){if(!(this.optionFlags&1024))return this.addExtra($,"parenthesized",!0),this.addExtra($,"parenStart",D.index),this.takeSurroundingComments($,D.index,this.state.lastTokEndLoc.index),$;let J=this.startNodeAt(D);return J.expression=$,this.finishNode(J,"ParenthesizedExpression")}shouldParseArrow(D){return!this.canInsertSemicolon()}parseArrow(D){if(this.eat(19))return D}parseParenItem(D,$){return D}parseNewOrNewTarget(){let D=this.startNode();if(this.next(),this.match(16)){let $=this.createIdentifier(this.startNodeAtNode(D),"new");this.next();let J=this.parseMetaProperty(D,$,"target");if(!this.scope.allowNewTarget)this.raise(M.UnexpectedNewTarget,J);return J}return this.parseNew(D)}parseNew(D){if(this.parseNewCallee(D),this.eat(10)){let $=this.parseExprList(11);this.toReferencedList($),D.arguments=$}else D.arguments=[];return this.finishNode(D,"NewExpression")}parseNewCallee(D){let $=this.match(83),J=this.parseNoCallExpr();if(D.callee=J,$&&(J.type==="Import"||J.type==="ImportExpression"))this.raise(M.ImportCallNotNewExpression,J)}parseTemplateElement(D){let{start:$,startLoc:J,end:F,value:U}=this.state,X=$+1,Y=this.startNodeAt(Y0(J,1));if(U===null){if(!D)this.raise(M.InvalidEscapeSequenceTemplate,Y0(this.state.firstInvalidTemplateEscapePos,1))}let Q=this.match(24),q=Q?-1:-2,K=F+q;Y.value={raw:this.input.slice(X,K).replace(/\r\n?/g,`
`),cooked:U===null?null:U.slice(1,q)},Y.tail=Q,this.next();let W=this.finishNode(Y,"TemplateElement");return this.resetEndLocation(W,Y0(this.state.lastTokEndLoc,q)),W}parseTemplate(D){let $=this.startNode(),J=this.parseTemplateElement(D),F=[J],U=[];while(!J.tail)U.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),F.push(J=this.parseTemplateElement(D));return $.expressions=U,$.quasis=F,this.finishNode($,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(D,$,J,F){if(J)this.expectPlugin("recordAndTuple");let U=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let X=!1,Y=!0,Q=this.startNode();Q.properties=[],this.next();while(!this.match(D)){if(Y)Y=!1;else if(this.expect(12),this.match(D)){this.addTrailingCommaExtraToNode(Q);break}let K;if($)K=this.parseBindingProperty();else K=this.parsePropertyDefinition(F),X=this.checkProto(K,J,X,F);if(J&&!this.isObjectProperty(K)&&K.type!=="SpreadElement")this.raise(M.InvalidRecordProperty,K);if(K.shorthand)this.addExtra(K,"shorthand",!0);Q.properties.push(K)}this.next(),this.state.inFSharpPipelineDirectBody=U;let q="ObjectExpression";if($)q="ObjectPattern";else if(J)q="RecordExpression";return this.finishNode(Q,q)}addTrailingCommaExtraToNode(D){this.addExtra(D,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(D,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(D){return!D.computed&&D.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(D){let $=[];if(this.match(26)){if(this.hasPlugin("decorators"))this.raise(M.UnsupportedPropertyDecorator,this.state.startLoc);while(this.match(26))$.push(this.parseDecorator())}let J=this.startNode(),F=!1,U=!1,X;if(this.match(21)){if($.length)this.unexpected();return this.parseSpread()}if($.length)J.decorators=$,$=[];if(J.method=!1,D)X=this.state.startLoc;let Y=this.eat(55);this.parsePropertyNamePrefixOperator(J);let Q=this.state.containsEsc;if(this.parsePropertyName(J,D),!Y&&!Q&&this.maybeAsyncOrAccessorProp(J)){let{key:q}=J,K=q.name;if(K==="async"&&!this.hasPrecedingLineBreak())F=!0,this.resetPreviousNodeTrailingComments(q),Y=this.eat(55),this.parsePropertyName(J);if(K==="get"||K==="set"){if(U=!0,this.resetPreviousNodeTrailingComments(q),J.kind=K,this.match(55))Y=!0,this.raise(M.AccessorIsGenerator,this.state.curPosition(),{kind:K}),this.next();this.parsePropertyName(J)}}return this.parseObjPropValue(J,X,Y,F,!1,U,D)}getGetterSetterExpectedParamCount(D){return D.kind==="get"?0:1}getObjectOrClassMethodParams(D){return D.params}checkGetterSetterParams(D){var $;let J=this.getGetterSetterExpectedParamCount(D),F=this.getObjectOrClassMethodParams(D);if(F.length!==J)this.raise(D.kind==="get"?M.BadGetterArity:M.BadSetterArity,D);if(D.kind==="set"&&(($=F[F.length-1])==null?void 0:$.type)==="RestElement")this.raise(M.BadSetterRestParameter,D)}parseObjectMethod(D,$,J,F,U){if(U){let X=this.parseMethod(D,$,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(X),X}if(J||$||this.match(10)){if(F)this.unexpected();return D.kind="method",D.method=!0,this.parseMethod(D,$,J,!1,!1,"ObjectMethod")}}parseObjectProperty(D,$,J,F){if(D.shorthand=!1,this.eat(14))return D.value=J?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,F),this.finishObjectProperty(D);if(!D.computed&&D.key.type==="Identifier"){if(this.checkReservedWord(D.key.name,D.key.loc.start,!0,!1),J)D.value=this.parseMaybeDefault($,this.cloneIdentifier(D.key));else if(this.match(29)){let U=this.state.startLoc;if(F!=null){if(F.shorthandAssignLoc===null)F.shorthandAssignLoc=U}else this.raise(M.InvalidCoverInitializedName,U);D.value=this.parseMaybeDefault($,this.cloneIdentifier(D.key))}else D.value=this.cloneIdentifier(D.key);return D.shorthand=!0,this.finishObjectProperty(D)}}finishObjectProperty(D){return this.finishNode(D,"ObjectProperty")}parseObjPropValue(D,$,J,F,U,X,Y){let Q=this.parseObjectMethod(D,J,F,U,X)||this.parseObjectProperty(D,$,U,Y);if(!Q)this.unexpected();return Q}parsePropertyName(D,$){if(this.eat(0))D.computed=!0,D.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:J,value:F}=this.state,U;if(F6(J))U=this.parseIdentifier(!0);else switch(J){case 135:U=this.parseNumericLiteral(F);break;case 134:U=this.parseStringLiteral(F);break;case 136:U=this.parseBigIntLiteral(F);break;case 139:{let X=this.state.startLoc;if($!=null){if($.privateKeyLoc===null)$.privateKeyLoc=X}else this.raise(M.UnexpectedPrivateField,X);U=this.parsePrivateName();break}default:if(J===137){U=this.parseDecimalLiteral(F);break}this.unexpected()}if(D.key=U,J!==139)D.computed=!1}}initFunction(D,$){D.id=null,D.generator=!1,D.async=$}parseMethod(D,$,J,F,U,X,Y=!1){this.initFunction(D,J),D.generator=$,this.scope.enter(530|(Y?576:0)|(U?32:0)),this.prodParam.enter(iX(J,D.generator)),this.parseFunctionParams(D,F);let Q=this.parseFunctionBodyAndFinish(D,X,!0);return this.prodParam.exit(),this.scope.exit(),Q}parseArrayLike(D,$,J){if($)this.expectPlugin("recordAndTuple");let F=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let U=this.startNode();return this.next(),U.elements=this.parseExprList(D,!$,J,U),this.state.inFSharpPipelineDirectBody=F,this.finishNode(U,$?"TupleExpression":"ArrayExpression")}parseArrowExpression(D,$,J,F){this.scope.enter(518);let U=iX(J,!1);if(!this.match(5)&&this.prodParam.hasIn)U|=8;this.prodParam.enter(U),this.initFunction(D,J);let X=this.state.maybeInArrowParameters;if($)this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(D,$,F);return this.state.maybeInArrowParameters=!1,this.parseFunctionBody(D,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=X,this.finishNode(D,"ArrowFunctionExpression")}setArrowFunctionParameters(D,$,J){this.toAssignableList($,J,!1),D.params=$}parseFunctionBodyAndFinish(D,$,J=!1){return this.parseFunctionBody(D,!1,J),this.finishNode(D,$)}parseFunctionBody(D,$,J=!1){let F=$&&!this.match(5);if(this.expressionScope.enter(gx()),F)D.body=this.parseMaybeAssign(),this.checkParams(D,!1,$,!1);else{let U=this.state.strict,X=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),D.body=this.parseBlock(!0,!1,(Y)=>{let Q=!this.isSimpleParamList(D.params);if(Y&&Q)this.raise(M.IllegalLanguageModeDirective,(D.kind==="method"||D.kind==="constructor")&&!!D.key?D.key.loc.end:D);let q=!U&&this.state.strict;if(this.checkParams(D,!this.state.strict&&!$&&!J&&!Q,$,q),this.state.strict&&D.id)this.checkIdentifier(D.id,65,q)}),this.prodParam.exit(),this.state.labels=X}this.expressionScope.exit()}isSimpleParameter(D){return D.type==="Identifier"}isSimpleParamList(D){for(let $=0,J=D.length;$<J;$++)if(!this.isSimpleParameter(D[$]))return!1;return!0}checkParams(D,$,J,F=!0){let U=!$&&new Set,X={type:"FormalParameters"};for(let Y of D.params)this.checkLVal(Y,X,5,U,F)}parseExprList(D,$,J,F){let U=[],X=!0;while(!this.eat(D)){if(X)X=!1;else if(this.expect(12),this.match(D)){if(F)this.addTrailingCommaExtraToNode(F);this.next();break}U.push(this.parseExprListItem(D,$,J))}return U}parseExprListItem(D,$,J,F){let U;if(this.match(12)){if(!$)this.raise(M.UnexpectedToken,this.state.curPosition(),{unexpected:","});U=null}else if(this.match(21)){let X=this.state.startLoc;U=this.parseParenItem(this.parseSpread(J),X)}else if(this.match(17)){if(this.expectPlugin("partialApplication"),!F)this.raise(M.UnexpectedArgumentPlaceholder,this.state.startLoc);let X=this.startNode();this.next(),U=this.finishNode(X,"ArgumentPlaceholder")}else U=this.parseMaybeAssignAllowInOrVoidPattern(D,J,this.parseParenItem);return U}parseIdentifier(D){let $=this.startNode(),J=this.parseIdentifierName(D);return this.createIdentifier($,J)}createIdentifier(D,$){return D.name=$,D.loc.identifierName=$,this.finishNode(D,"Identifier")}createIdentifierAt(D,$,J){return D.name=$,D.loc.identifierName=$,this.finishNodeAt(D,"Identifier",J)}parseIdentifierName(D){let $,{startLoc:J,type:F}=this.state;if(F6(F))$=this.state.value;else this.unexpected();let U=PYD(F);if(D){if(U)this.replaceToken(132)}else this.checkReservedWord($,J,U,!1);return this.next(),$}checkReservedWord(D,$,J,F){if(D.length>10)return;if(!tYD(D))return;if(J&&nYD(D)){this.raise(M.UnexpectedKeyword,$,{keyword:D});return}if((!this.state.strict?jx:F?Lx:Nx)(D,this.inModule)){this.raise(M.UnexpectedReservedWord,$,{reservedWord:D});return}else if(D==="yield"){if(this.prodParam.hasYield){this.raise(M.YieldBindingIdentifier,$);return}}else if(D==="await"){if(this.prodParam.hasAwait){this.raise(M.AwaitBindingIdentifier,$);return}if(this.scope.inStaticBlock){this.raise(M.AwaitBindingIdentifierInStaticBlock,$);return}this.expressionScope.recordAsyncArrowParametersError($)}else if(D==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(M.ArgumentsInClass,$);return}}}recordAwaitIfAllowed(){let D=this.prodParam.hasAwait;if(D&&!this.scope.inFunction)this.state.hasTopLevelAwait=!0;return D}parseAwait(D){let $=this.startNodeAt(D);if(this.expressionScope.recordParameterInitializerError(M.AwaitExpressionFormalParameter,$),this.eat(55))this.raise(M.ObsoleteAwaitStar,$);if(!this.scope.inFunction&&!(this.optionFlags&1))if(this.isAmbiguousPrefixOrIdentifier())this.ambiguousScriptDifferentAst=!0;else this.sawUnambiguousESM=!0;if(!this.state.soloAwait)$.argument=this.parseMaybeUnary(null,!0);return this.finishNode($,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:D}=this.state;return D===53||D===10||D===0||dX(D)||D===102&&!this.state.containsEsc||D===138||D===56||this.hasPlugin("v8intrinsic")&&D===54}parseYield(D){let $=this.startNodeAt(D);this.expressionScope.recordParameterInitializerError(M.YieldInParameter,$);let J=!1,F=null;if(!this.hasPrecedingLineBreak())switch(J=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!J)break;default:F=this.parseMaybeAssign()}return $.delegate=J,$.argument=F,this.finishNode($,"YieldExpression")}parseImportCall(D){if(this.next(),D.source=this.parseMaybeAssignAllowIn(),D.options=null,this.eat(12))if(!this.match(11)){if(D.options=this.parseMaybeAssignAllowIn(),this.eat(12)){if(this.addTrailingCommaExtraToNode(D.options),!this.match(11)){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(M.ImportCallArity,D)}}}else this.addTrailingCommaExtraToNode(D.source);return this.expect(11),this.finishNode(D,"ImportExpression")}checkPipelineAtInfixOperator(D,$){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(D.type==="SequenceExpression")this.raise(M.PipelineHeadSequenceExpression,$)}}parseSmartPipelineBodyInStyle(D,$){if(this.isSimpleReference(D)){let J=this.startNodeAt($);return J.callee=D,this.finishNode(J,"PipelineBareFunction")}else{let J=this.startNodeAt($);return this.checkSmartPipeTopicBodyEarlyErrors($),J.expression=D,this.finishNode(J,"PipelineTopicExpression")}}isSimpleReference(D){switch(D.type){case"MemberExpression":return!D.computed&&this.isSimpleReference(D.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(D){if(this.match(19))throw this.raise(M.PipelineBodyNoArrow,this.state.startLoc);if(!this.topicReferenceWasUsedInCurrentContext())this.raise(M.PipelineTopicUnused,D)}withTopicBindingContext(D){let $=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return D()}finally{this.state.topicContext=$}}withSmartMixTopicForbiddingContext(D){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let $=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return D()}finally{this.state.topicContext=$}}else return D()}withSoloAwaitPermittingContext(D){let $=this.state.soloAwait;this.state.soloAwait=!0;try{return D()}finally{this.state.soloAwait=$}}allowInAnd(D){let $=this.prodParam.currentFlags();if(8&~$){this.prodParam.enter($|8);try{return D()}finally{this.prodParam.exit()}}return D()}disallowInAnd(D){let $=this.prodParam.currentFlags();if(8&$){this.prodParam.enter($&-9);try{return D()}finally{this.prodParam.exit()}}return D()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(D){let $=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let J=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let F=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),$,D);return this.state.inFSharpPipelineDirectBody=J,F}parseModuleExpression(){this.expectPlugin("moduleBlocks");let D=this.startNode();if(this.next(),!this.match(5))this.unexpected(null,5);let $=this.startNodeAt(this.state.endLoc);this.next();let J=this.initializeScopes(!0);this.enterInitialScopes();try{D.body=this.parseProgram($,8,"module")}finally{J()}return this.finishNode(D,"ModuleExpression")}parseVoidPattern(D){this.expectPlugin("discardBinding");let $=this.startNode();if(D!=null)D.voidPatternLoc=this.state.startLoc;return this.next(),this.finishNode($,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(D,$,J){if($!=null&&this.match(88)){let F=this.lookaheadCharCode();if(F===44||F===(D===3?93:D===8?125:41)||F===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern($))}return this.parseMaybeAssignAllowIn($,J)}parsePropertyNamePrefixOperator(D){}}var tO={kind:1},EQD={kind:2},AQD=/[\uD800-\uDFFF]/u,oO=/in(?:stanceof)?/y;function vQD(D,$,J){for(let F=0;F<D.length;F++){let U=D[F],{type:X}=U;if(typeof X==="number"){if(X===139){let{loc:Y,start:Q,value:q,end:K}=U,W=Q+1,G=Y0(Y.start,1);D.splice(F,1,new n6({type:c6(27),value:"#",start:Q,end:W,startLoc:Y.start,endLoc:G}),new n6({type:c6(132),value:q,start:W,end:K,startLoc:G,endLoc:Y.end})),F++;continue}if(dX(X)){let{loc:Y,start:Q,value:q,end:K}=U,W=Q+1,G=Y0(Y.start,1),I;if($.charCodeAt(Q-J)===96)I=new n6({type:c6(22),value:"`",start:Q,end:W,startLoc:Y.start,endLoc:G});else I=new n6({type:c6(8),value:"}",start:Q,end:W,startLoc:Y.start,endLoc:G});let z,Z,H,B;if(X===24)Z=K-1,H=Y0(Y.end,-1),z=q===null?null:q.slice(1,-1),B=new n6({type:c6(22),value:"`",start:Z,end:K,startLoc:H,endLoc:Y.end});else Z=K-2,H=Y0(Y.end,-2),z=q===null?null:q.slice(1,-2),B=new n6({type:c6(23),value:"${",start:Z,end:K,startLoc:H,endLoc:Y.end});D.splice(F,1,I,new n6({type:c6(20),value:z,start:W,end:Z,startLoc:G,endLoc:H}),B),F+=2;continue}U.type=c6(X)}}return D}class dx extends ix{parseTopLevel(D,$){if(D.program=this.parseProgram($,140,this.options.sourceType==="module"?"module":"script"),D.comments=this.comments,this.optionFlags&256)D.tokens=vQD(this.tokens,this.input,this.startIndex);return this.finishNode(D,"File")}parseProgram(D,$,J){if(D.sourceType=J,D.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(D,!0,!0,$),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[U,X]of Array.from(this.scope.undefinedExports))this.raise(M.ModuleExportUndefined,X,{localName:U});this.addExtra(D,"topLevelAwait",this.state.hasTopLevelAwait)}let F;if($===140)F=this.finishNode(D,"Program");else F=this.finishNodeAt(D,"Program",Y0(this.state.startLoc,-1));return F}stmtToDirective(D){let $=this.castNodeTo(D,"Directive"),J=this.castNodeTo(D.expression,"DirectiveLiteral"),F=J.value,U=this.input.slice(this.offsetToSourcePos(J.start),this.offsetToSourcePos(J.end)),X=J.value=U.slice(1,-1);return this.addExtra(J,"raw",U),this.addExtra(J,"rawValue",X),this.addExtra(J,"expressionValue",F),$.value=J,delete D.expression,$}parseInterpreterDirective(){if(!this.match(28))return null;let D=this.startNode();return D.value=this.state.value,this.next(),this.finishNode(D,"InterpreterDirective")}isLet(){if(!this.isContextual(100))return!1;return this.hasFollowingBindingAtom()}isUsing(){if(!this.isContextual(107))return!1;return this.nextTokenIsIdentifierOnSameLine()}isForUsing(){if(!this.isContextual(107))return!1;let D=this.nextTokenInLineStart(),$=this.codePointAtPos(D);if(this.isUnparsedContextual(D,"of")){let J=this.lookaheadCharCodeSince(D+2);if(J!==61&&J!==58&&J!==59)return!1}if(this.chStartsBindingIdentifier($,D)||this.isUnparsedContextual(D,"void"))return!0;return!1}nextTokenIsIdentifierOnSameLine(){let D=this.nextTokenInLineStart(),$=this.codePointAtPos(D);return this.chStartsBindingIdentifier($,D)}isAwaitUsing(){if(!this.isContextual(96))return!1;let D=this.nextTokenInLineStart();if(this.isUnparsedContextual(D,"using")){D=this.nextTokenInLineStartSince(D+5);let $=this.codePointAtPos(D);if(this.chStartsBindingIdentifier($,D))return!0}return!1}chStartsBindingIdentifier(D,$){if(A6(D)){if(oO.lastIndex=$,oO.test(this.input)){let J=this.codePointAtPos(oO.lastIndex);if(!K2(J)&&J!==92)return!1}return!0}else if(D===92)return!0;else return!1}chStartsBindingPattern(D){return D===91||D===123}hasFollowingBindingAtom(){let D=this.nextTokenStart(),$=this.codePointAtPos(D);return this.chStartsBindingPattern($)||this.chStartsBindingIdentifier($,D)}hasInLineFollowingBindingIdentifierOrBrace(){let D=this.nextTokenInLineStart(),$=this.codePointAtPos(D);return $===123||this.chStartsBindingIdentifier($,D)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(D=!1){let $=0;if(this.options.annexB&&!this.state.strict){if($|=4,D)$|=8}return this.parseStatementLike($)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(D){let $=null;if(this.match(26))$=this.parseDecorators(!0);return this.parseStatementContent(D,$)}parseStatementContent(D,$){let J=this.state.type,F=this.startNode(),U=!!(D&2),X=!!(D&4),Y=D&1;switch(J){case 60:return this.parseBreakContinueStatement(F,!0);case 63:return this.parseBreakContinueStatement(F,!1);case 64:return this.parseDebuggerStatement(F);case 90:return this.parseDoWhileStatement(F);case 91:return this.parseForStatement(F);case 68:if(this.lookaheadCharCode()===46)break;if(!X)this.raise(this.state.strict?M.StrictFunction:this.options.annexB?M.SloppyFunctionAnnexB:M.SloppyFunction,this.state.startLoc);return this.parseFunctionStatement(F,!1,!U&&X);case 80:if(!U)this.unexpected();return this.parseClass(this.maybeTakeDecorators($,F),!0);case 69:return this.parseIfStatement(F);case 70:return this.parseReturnStatement(F);case 71:return this.parseSwitchStatement(F);case 72:return this.parseThrowStatement(F);case 73:return this.parseTryStatement(F);case 96:if(this.isAwaitUsing()){if(!this.allowsUsing())this.raise(M.UnexpectedUsingDeclaration,F);else if(!U)this.raise(M.UnexpectedLexicalDeclaration,F);else if(!this.recordAwaitIfAllowed())this.raise(M.AwaitUsingNotInAsyncContext,F);return this.next(),this.parseVarStatement(F,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;if(!this.allowsUsing())this.raise(M.UnexpectedUsingDeclaration,this.state.startLoc);else if(!U)this.raise(M.UnexpectedLexicalDeclaration,this.state.startLoc);return this.parseVarStatement(F,"using");case 100:{if(this.state.containsEsc)break;let K=this.nextTokenStart(),W=this.codePointAtPos(K);if(W!==91){if(!U&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(W,K)&&W!==123)break}}case 75:if(!U)this.raise(M.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let K=this.state.value;return this.parseVarStatement(F,K)}case 92:return this.parseWhileStatement(F);case 76:return this.parseWithStatement(F);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(F);case 83:{let K=this.lookaheadCharCode();if(K===40||K===46)break}case 82:{if(!(this.optionFlags&8)&&!Y)this.raise(M.UnexpectedImportExport,this.state.startLoc);this.next();let K;if(J===83)K=this.parseImport(F);else K=this.parseExport(F,$);return this.assertModuleNodeAllowed(K),K}default:if(this.isAsyncFunction()){if(!U)this.raise(M.AsyncFunctionInSingleStatementContext,this.state.startLoc);return this.next(),this.parseFunctionStatement(F,!0,!U&&X)}}let Q=this.state.value,q=this.parseExpression();if(fD(J)&&q.type==="Identifier"&&this.eat(14))return this.parseLabeledStatement(F,Q,q,D);else return this.parseExpressionStatement(F,q,$)}assertModuleNodeAllowed(D){if(!(this.optionFlags&8)&&!this.inModule)this.raise(M.ImportOutsideModule,D)}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return!0;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(D,$,J){if(D){var F;if((F=$.decorators)!=null&&F.length){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean")this.raise(M.DecoratorsBeforeAfterExport,$.decorators[0]);$.decorators.unshift(...D)}else $.decorators=D;if(this.resetStartLocationFromNode($,D[0]),J)this.resetStartLocationFromNode(J,$)}return $}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(D){let $=[];do $.push(this.parseDecorator());while(this.match(26));if(this.match(82)){if(!D)this.unexpected();if(!this.decoratorsEnabledBeforeExport())this.raise(M.DecoratorExportClass,this.state.startLoc)}else if(!this.canHaveLeadingDecorator())throw this.raise(M.UnexpectedLeadingDecorator,this.state.startLoc);return $}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let D=this.startNode();if(this.next(),this.hasPlugin("decorators")){let $=this.state.startLoc,J;if(this.match(10)){let F=this.state.startLoc;this.next(),J=this.parseExpression(),this.expect(11),J=this.wrapParenthesis(F,J);let U=this.state.startLoc;if(D.expression=this.parseMaybeDecoratorArguments(J,F),this.getPluginOption("decorators","allowCallParenthesized")===!1&&D.expression!==J)this.raise(M.DecoratorArgumentsOutsideParentheses,U)}else{J=this.parseIdentifier(!1);while(this.eat(16)){let F=this.startNodeAt($);if(F.object=J,this.match(139))this.classScope.usePrivateName(this.state.value,this.state.startLoc),F.property=this.parsePrivateName();else F.property=this.parseIdentifier(!0);F.computed=!1,J=this.finishNode(F,"MemberExpression")}D.expression=this.parseMaybeDecoratorArguments(J,$)}}else D.expression=this.parseExprSubscripts();return this.finishNode(D,"Decorator")}parseMaybeDecoratorArguments(D,$){if(this.eat(10)){let J=this.startNodeAt($);return J.callee=D,J.arguments=this.parseCallExpressionArguments(),this.toReferencedList(J.arguments),this.finishNode(J,"CallExpression")}return D}parseBreakContinueStatement(D,$){if(this.next(),this.isLineTerminator())D.label=null;else D.label=this.parseIdentifier(),this.semicolon();return this.verifyBreakContinue(D,$),this.finishNode(D,$?"BreakStatement":"ContinueStatement")}verifyBreakContinue(D,$){let J;for(J=0;J<this.state.labels.length;++J){let F=this.state.labels[J];if(D.label==null||F.name===D.label.name){if(F.kind!=null&&($||F.kind===1))break;if(D.label&&$)break}}if(J===this.state.labels.length){let F=$?"BreakStatement":"ContinueStatement";this.raise(M.IllegalBreakContinue,D,{type:F})}}parseDebuggerStatement(D){return this.next(),this.semicolon(),this.finishNode(D,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let D=this.parseExpression();return this.expect(11),D}parseDoWhileStatement(D){return this.next(),this.state.labels.push(tO),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),D.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(D,"DoWhileStatement")}parseForStatement(D){this.next(),this.state.labels.push(tO);let $=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed())$=this.state.startLoc,this.next();if(this.scope.enter(0),this.expect(10),this.match(13)){if($!==null)this.unexpected($);return this.parseFor(D,null)}let J=this.isContextual(100);{let Q=this.isAwaitUsing(),q=Q||this.isForUsing(),K=J&&this.hasFollowingBindingAtom()||q;if(this.match(74)||this.match(75)||K){let W=this.startNode(),G;if(Q){if(G="await using",!this.recordAwaitIfAllowed())this.raise(M.AwaitUsingNotInAsyncContext,this.state.startLoc);this.next()}else G=this.state.value;this.next(),this.parseVar(W,!0,G);let I=this.finishNode(W,"VariableDeclaration"),z=this.match(58);if(z&&q)this.raise(M.ForInUsing,I);if((z||this.isContextual(102))&&I.declarations.length===1)return this.parseForIn(D,I,$);if($!==null)this.unexpected($);return this.parseFor(D,I)}}let F=this.isContextual(95),U=new a5,X=this.parseExpression(!0,U),Y=this.isContextual(102);if(Y){if(J)this.raise(M.ForOfLet,X);if($===null&&F&&X.type==="Identifier")this.raise(M.ForOfAsync,X)}if(Y||this.match(58)){this.checkDestructuringPrivate(U),this.toAssignable(X,!0);let Q=Y?"ForOfStatement":"ForInStatement";return this.checkLVal(X,{type:Q}),this.parseForIn(D,X,$)}else this.checkExpressionErrors(U,!0);if($!==null)this.unexpected($);return this.parseFor(D,X)}parseFunctionStatement(D,$,J){return this.next(),this.parseFunction(D,1|(J?2:0)|($?8:0))}parseIfStatement(D){return this.next(),D.test=this.parseHeaderExpression(),D.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),D.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(D,"IfStatement")}parseReturnStatement(D){if(!this.prodParam.hasReturn)this.raise(M.IllegalReturn,this.state.startLoc);if(this.next(),this.isLineTerminator())D.argument=null;else D.argument=this.parseExpression(),this.semicolon();return this.finishNode(D,"ReturnStatement")}parseSwitchStatement(D){this.next(),D.discriminant=this.parseHeaderExpression();let $=D.cases=[];this.expect(5),this.state.labels.push(EQD),this.scope.enter(256);let J;for(let F;!this.match(8);)if(this.match(61)||this.match(65)){let U=this.match(61);if(J)this.finishNode(J,"SwitchCase");if($.push(J=this.startNode()),J.consequent=[],this.next(),U)J.test=this.parseExpression();else{if(F)this.raise(M.MultipleDefaultsInSwitch,this.state.lastTokStartLoc);F=!0,J.test=null}this.expect(14)}else if(J)J.consequent.push(this.parseStatementListItem());else this.unexpected();if(this.scope.exit(),J)this.finishNode(J,"SwitchCase");return this.next(),this.state.labels.pop(),this.finishNode(D,"SwitchStatement")}parseThrowStatement(D){if(this.next(),this.hasPrecedingLineBreak())this.raise(M.NewlineAfterThrow,this.state.lastTokEndLoc);return D.argument=this.parseExpression(),this.semicolon(),this.finishNode(D,"ThrowStatement")}parseCatchClauseParam(){let D=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&D.type==="Identifier"?8:0),this.checkLVal(D,{type:"CatchClause"},9),D}parseTryStatement(D){if(this.next(),D.block=this.parseBlock(),D.handler=null,this.match(62)){let $=this.startNode();if(this.next(),this.match(10))this.expect(10),$.param=this.parseCatchClauseParam(),this.expect(11);else $.param=null,this.scope.enter(0);$.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),D.handler=this.finishNode($,"CatchClause")}if(D.finalizer=this.eat(67)?this.parseBlock():null,!D.handler&&!D.finalizer)this.raise(M.NoCatchOrFinally,D);return this.finishNode(D,"TryStatement")}parseVarStatement(D,$,J=!1){return this.next(),this.parseVar(D,!1,$,J),this.semicolon(),this.finishNode(D,"VariableDeclaration")}parseWhileStatement(D){return this.next(),D.test=this.parseHeaderExpression(),this.state.labels.push(tO),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(D,"WhileStatement")}parseWithStatement(D){if(this.state.strict)this.raise(M.StrictWith,this.state.startLoc);return this.next(),D.object=this.parseHeaderExpression(),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(D,"WithStatement")}parseEmptyStatement(D){return this.next(),this.finishNode(D,"EmptyStatement")}parseLabeledStatement(D,$,J,F){for(let X of this.state.labels)if(X.name===$)this.raise(M.LabelRedeclaration,J,{labelName:$});let U=kYD(this.state.type)?1:this.match(71)?2:null;for(let X=this.state.labels.length-1;X>=0;X--){let Y=this.state.labels[X];if(Y.statementStart===D.start)Y.statementStart=this.sourceToOffsetPos(this.state.start),Y.kind=U;else break}return this.state.labels.push({name:$,kind:U,statementStart:this.sourceToOffsetPos(this.state.start)}),D.body=F&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),D.label=J,this.finishNode(D,"LabeledStatement")}parseExpressionStatement(D,$,J){return D.expression=$,this.semicolon(),this.finishNode(D,"ExpressionStatement")}parseBlock(D=!1,$=!0,J){let F=this.startNode();if(D)this.state.strictErrors.clear();if(this.expect(5),$)this.scope.enter(0);if(this.parseBlockBody(F,D,!1,8,J),$)this.scope.exit();return this.finishNode(F,"BlockStatement")}isValidDirective(D){return D.type==="ExpressionStatement"&&D.expression.type==="StringLiteral"&&!D.expression.extra.parenthesized}parseBlockBody(D,$,J,F,U){let X=D.body=[],Y=D.directives=[];this.parseBlockOrModuleBlockBody(X,$?Y:void 0,J,F,U)}parseBlockOrModuleBlockBody(D,$,J,F,U){let X=this.state.strict,Y=!1,Q=!1;while(!this.match(F)){let q=J?this.parseModuleItem():this.parseStatementListItem();if($&&!Q){if(this.isValidDirective(q)){let K=this.stmtToDirective(q);if($.push(K),!Y&&K.value.value==="use strict")Y=!0,this.setStrict(!0);continue}Q=!0,this.state.strictErrors.clear()}D.push(q)}if(U==null||U.call(this,Y),!X)this.setStrict(!1);this.next()}parseFor(D,$){return D.init=$,this.semicolon(!1),D.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),D.update=this.match(11)?null:this.parseExpression(),this.expect(11),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(D,"ForStatement")}parseForIn(D,$,J){let F=this.match(58);if(this.next(),F){if(J!==null)this.unexpected(J)}else D.await=J!==null;if($.type==="VariableDeclaration"&&$.declarations[0].init!=null&&(!F||!this.options.annexB||this.state.strict||$.kind!=="var"||$.declarations[0].id.type!=="Identifier"))this.raise(M.ForInOfLoopInitializer,$,{type:F?"ForInStatement":"ForOfStatement"});if($.type==="AssignmentPattern")this.raise(M.InvalidLhs,$,{ancestor:{type:"ForStatement"}});return D.left=$,D.right=F?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),D.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(D,F?"ForInStatement":"ForOfStatement")}parseVar(D,$,J,F=!1){let U=D.declarations=[];D.kind=J;for(;;){let X=this.startNode();if(this.parseVarId(X,J),X.init=!this.eat(29)?null:$?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn(),X.init===null&&!F){if(X.id.type!=="Identifier"&&!($&&(this.match(58)||this.isContextual(102))))this.raise(M.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"});else if((J==="const"||J==="using"||J==="await using")&&!(this.match(58)||this.isContextual(102)))this.raise(M.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:J})}if(U.push(this.finishNode(X,"VariableDeclarator")),!this.eat(12))break}return D}parseVarId(D,$){let J=this.parseBindingAtom();if($==="using"||$==="await using"){if(J.type==="ArrayPattern"||J.type==="ObjectPattern")this.raise(M.UsingDeclarationHasBindingPattern,J.loc.start)}else if(J.type==="VoidPattern")this.raise(M.UnexpectedVoidPattern,J.loc.start);this.checkLVal(J,{type:"VariableDeclarator"},$==="var"?5:8201),D.id=J}parseAsyncFunctionExpression(D){return this.parseFunction(D,8)}parseFunction(D,$=0){let J=$&2,F=!!($&1),U=F&&!($&4),X=!!($&8);if(this.initFunction(D,X),this.match(55)){if(J)this.raise(M.GeneratorInSingleStatementContext,this.state.startLoc);this.next(),D.generator=!0}if(F)D.id=this.parseFunctionId(U);let Y=this.state.maybeInArrowParameters;if(this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(iX(X,D.generator)),!F)D.id=this.parseFunctionId();if(this.parseFunctionParams(D,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(D,F?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),F&&!J)this.registerFunctionStatementId(D);return this.state.maybeInArrowParameters=Y,D}parseFunctionId(D){return D||fD(this.state.type)?this.parseIdentifier():null}parseFunctionParams(D,$){this.expect(10),this.expressionScope.enter(GQD()),D.params=this.parseBindingList(11,41,2|($?4:0)),this.expressionScope.exit()}registerFunctionStatementId(D){if(!D.id)return;this.scope.declareName(D.id.name,!this.options.annexB||this.state.strict||D.generator||D.async?this.scope.treatFunctionsAsVar?5:8201:17,D.id.loc.start)}parseClass(D,$,J){this.next();let F=this.state.strict;return this.state.strict=!0,this.parseClassId(D,$,J),this.parseClassSuper(D),D.body=this.parseClassBody(!!D.superClass,F),this.finishNode(D,$?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(D){return D.type==="Identifier"&&D.name==="constructor"||D.type==="StringLiteral"&&D.value==="constructor"}isNonstaticConstructor(D){return!D.computed&&!D.static&&this.nameIsConstructor(D.key)}parseClassBody(D,$){this.classScope.enter();let J={hadConstructor:!1,hadSuperClass:D},F=[],U=this.startNode();if(U.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{while(!this.match(8)){if(this.eat(13)){if(F.length>0)throw this.raise(M.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){F.push(this.parseDecorator());continue}let X=this.startNode();if(F.length)X.decorators=F,this.resetStartLocationFromNode(X,F[0]),F=[];if(this.parseClassMember(U,X,J),X.kind==="constructor"&&X.decorators&&X.decorators.length>0)this.raise(M.DecoratorConstructor,X)}}),this.state.strict=$,this.next(),F.length)throw this.raise(M.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(U,"ClassBody")}parseClassMemberFromModifier(D,$){let J=this.parseIdentifier(!0);if(this.isClassMethod()){let F=$;return F.kind="method",F.computed=!1,F.key=J,F.static=!1,this.pushClassMethod(D,F,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let F=$;return F.computed=!1,F.key=J,F.static=!1,D.body.push(this.parseClassProperty(F)),!0}return this.resetPreviousNodeTrailingComments(J),!1}parseClassMember(D,$,J){let F=this.isContextual(106);if(F){if(this.parseClassMemberFromModifier(D,$))return;if(this.eat(5)){this.parseClassStaticBlock(D,$);return}}this.parseClassMemberWithIsStatic(D,$,J,F)}parseClassMemberWithIsStatic(D,$,J,F){let U=$,X=$,Y=$,Q=$,q=$,K=U,W=U;if($.static=F,this.parsePropertyNamePrefixOperator($),this.eat(55)){K.kind="method";let B=this.match(139);if(this.parseClassElementName(K),this.parsePostMemberNameModifiers(K),B){this.pushClassPrivateMethod(D,X,!0,!1);return}if(this.isNonstaticConstructor(U))this.raise(M.ConstructorIsGenerator,U.key);this.pushClassMethod(D,U,!0,!1,!1,!1);return}let G=!this.state.containsEsc&&fD(this.state.type),I=this.parseClassElementName($),z=G?I.name:null,Z=this.isPrivateName(I),H=this.state.startLoc;if(this.parsePostMemberNameModifiers(W),this.isClassMethod()){if(K.kind="method",Z){this.pushClassPrivateMethod(D,X,!1,!1);return}let B=this.isNonstaticConstructor(U),j=!1;if(B){if(U.kind="constructor",J.hadConstructor&&!this.hasPlugin("typescript"))this.raise(M.DuplicateConstructor,I);if(B&&this.hasPlugin("typescript")&&$.override)this.raise(M.OverrideOnConstructor,I);J.hadConstructor=!0,j=J.hadSuperClass}this.pushClassMethod(D,U,!1,!1,B,j)}else if(this.isClassProperty())if(Z)this.pushClassPrivateProperty(D,Q);else this.pushClassProperty(D,Y);else if(z==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(I);let B=this.eat(55);if(W.optional)this.unexpected(H);K.kind="method";let j=this.match(139);if(this.parseClassElementName(K),this.parsePostMemberNameModifiers(W),j)this.pushClassPrivateMethod(D,X,B,!0);else{if(this.isNonstaticConstructor(U))this.raise(M.ConstructorIsAsync,U.key);this.pushClassMethod(D,U,B,!0,!1,!1)}}else if((z==="get"||z==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(I),K.kind=z;let B=this.match(139);if(this.parseClassElementName(U),B)this.pushClassPrivateMethod(D,X,!1,!1);else{if(this.isNonstaticConstructor(U))this.raise(M.ConstructorIsAccessor,U.key);this.pushClassMethod(D,U,!1,!1,!1,!1)}this.checkGetterSetterParams(U)}else if(z==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(I);let B=this.match(139);this.parseClassElementName(Y),this.pushClassAccessorProperty(D,q,B)}else if(this.isLineTerminator())if(Z)this.pushClassPrivateProperty(D,Q);else this.pushClassProperty(D,Y);else this.unexpected()}parseClassElementName(D){let{type:$,value:J}=this.state;if(($===132||$===134)&&D.static&&J==="prototype")this.raise(M.StaticPrototype,this.state.startLoc);if($===139){if(J==="constructor")this.raise(M.ConstructorClassPrivateField,this.state.startLoc);let F=this.parsePrivateName();return D.key=F,F}return this.parsePropertyName(D),D.key}parseClassStaticBlock(D,$){var J;this.scope.enter(720);let F=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let U=$.body=[];if(this.parseBlockOrModuleBlockBody(U,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=F,D.body.push(this.finishNode($,"StaticBlock")),(J=$.decorators)!=null&&J.length)this.raise(M.DecoratorStaticBlock,$)}pushClassProperty(D,$){if(!$.computed&&this.nameIsConstructor($.key))this.raise(M.ConstructorClassField,$.key);D.body.push(this.parseClassProperty($))}pushClassPrivateProperty(D,$){let J=this.parseClassPrivateProperty($);D.body.push(J),this.classScope.declarePrivateName(this.getPrivateNameSV(J.key),0,J.key.loc.start)}pushClassAccessorProperty(D,$,J){if(!J&&!$.computed&&this.nameIsConstructor($.key))this.raise(M.ConstructorClassField,$.key);let F=this.parseClassAccessorProperty($);if(D.body.push(F),J)this.classScope.declarePrivateName(this.getPrivateNameSV(F.key),0,F.key.loc.start)}pushClassMethod(D,$,J,F,U,X){D.body.push(this.parseMethod($,J,F,U,X,"ClassMethod",!0))}pushClassPrivateMethod(D,$,J,F){let U=this.parseMethod($,J,F,!1,!1,"ClassPrivateMethod",!0);D.body.push(U);let X=U.kind==="get"?U.static?6:2:U.kind==="set"?U.static?5:1:0;this.declareClassPrivateMethodInScope(U,X)}declareClassPrivateMethodInScope(D,$){this.classScope.declarePrivateName(this.getPrivateNameSV(D.key),$,D.key.loc.start)}parsePostMemberNameModifiers(D){}parseClassPrivateProperty(D){return this.parseInitializer(D),this.semicolon(),this.finishNode(D,"ClassPrivateProperty")}parseClassProperty(D){return this.parseInitializer(D),this.semicolon(),this.finishNode(D,"ClassProperty")}parseClassAccessorProperty(D){return this.parseInitializer(D),this.semicolon(),this.finishNode(D,"ClassAccessorProperty")}parseInitializer(D){this.scope.enter(592),this.expressionScope.enter(gx()),this.prodParam.enter(0),D.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(D,$,J,F=8331){if(fD(this.state.type)){if(D.id=this.parseIdentifier(),$)this.declareNameFromIdentifier(D.id,F)}else if(J||!$)D.id=null;else throw this.raise(M.MissingClassName,this.state.startLoc)}parseClassSuper(D){D.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(D,$){let J=this.parseMaybeImportPhase(D,!0),F=this.maybeParseExportDefaultSpecifier(D,J),U=!F||this.eat(12),X=U&&this.eatExportStar(D),Y=X&&this.maybeParseExportNamespaceSpecifier(D),Q=U&&(!Y||this.eat(12)),q=F||X;if(X&&!Y){if(F)this.unexpected();if($)throw this.raise(M.UnsupportedDecoratorExport,D);return this.parseExportFrom(D,!0),this.sawUnambiguousESM=!0,this.finishNode(D,"ExportAllDeclaration")}let K=this.maybeParseExportNamedSpecifiers(D);if(F&&U&&!X&&!K)this.unexpected(null,5);if(Y&&Q)this.unexpected(null,98);let W;if(q||K){if(W=!1,$)throw this.raise(M.UnsupportedDecoratorExport,D);this.parseExportFrom(D,q)}else W=this.maybeParseExportDeclaration(D);if(q||K||W){var G;let I=D;if(this.checkExport(I,!0,!1,!!I.source),((G=I.declaration)==null?void 0:G.type)==="ClassDeclaration")this.maybeTakeDecorators($,I.declaration,I);else if($)throw this.raise(M.UnsupportedDecoratorExport,D);return this.sawUnambiguousESM=!0,this.finishNode(I,"ExportNamedDeclaration")}if(this.eat(65)){let I=D,z=this.parseExportDefaultExpression();if(I.declaration=z,z.type==="ClassDeclaration")this.maybeTakeDecorators($,z,I);else if($)throw this.raise(M.UnsupportedDecoratorExport,D);return this.checkExport(I,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(I,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(D){return this.eat(55)}maybeParseExportDefaultSpecifier(D,$){if($||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",$==null?void 0:$.loc.start);let J=$||this.parseIdentifier(!0),F=this.startNodeAtNode(J);return F.exported=J,D.specifiers=[this.finishNode(F,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(D){if(this.isContextual(93)){var $,J;(J=($=D).specifiers)!=null||($.specifiers=[]);let F=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),F.exported=this.parseModuleExportName(),D.specifiers.push(this.finishNode(F,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(D){if(this.match(5)){let $=D;if(!$.specifiers)$.specifiers=[];let J=$.exportKind==="type";if($.specifiers.push(...this.parseExportSpecifiers(J)),$.source=null,this.hasPlugin("importAssertions"))$.assertions=[];else $.attributes=[];return $.declaration=null,!0}return!1}maybeParseExportDeclaration(D){if(this.shouldParseExportDeclaration()){if(D.specifiers=[],D.source=null,this.hasPlugin("importAssertions"))D.assertions=[];else D.attributes=[];return D.declaration=this.parseExportDeclaration(D),!0}return!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let D=this.nextTokenInLineStart();return this.isUnparsedContextual(D,"function")}parseExportDefaultExpression(){let D=this.startNode();if(this.match(68))return this.next(),this.parseFunction(D,5);else if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(D,13);if(this.match(80))return this.parseClass(D,!0,!0);if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(M.DecoratorBeforeExport,this.state.startLoc);return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0)}if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(M.UnsupportedDefaultExport,this.state.startLoc);let $=this.parseMaybeAssignAllowIn();return this.semicolon(),$}parseExportDeclaration(D){if(this.match(80))return this.parseClass(this.startNode(),!0,!1);return this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:D}=this.state;if(fD(D)){if(D===95&&!this.state.containsEsc||D===100)return!1;if((D===130||D===129)&&!this.state.containsEsc){let F=this.nextTokenStart(),U=this.input.charCodeAt(F);if(U===123||this.chStartsBindingIdentifier(U,F)&&!this.input.startsWith("from",F))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let $=this.nextTokenStart(),J=this.isUnparsedContextual($,"from");if(this.input.charCodeAt($)===44||fD(this.state.type)&&J)return!0;if(this.match(65)&&J){let F=this.input.charCodeAt(this.nextTokenStartSince($+4));return F===34||F===39}return!1}parseExportFrom(D,$){if(this.eatContextual(98))D.source=this.parseImportSource(),this.checkExport(D),this.maybeParseImportAttributes(D),this.checkJSONModuleImport(D);else if($)this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:D}=this.state;if(D===26){if(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(M.DecoratorBeforeExport,this.state.startLoc);return!0}}if(this.isUsing())return this.raise(M.UsingDeclarationExport,this.state.startLoc),!0;if(this.isAwaitUsing())return this.raise(M.UsingDeclarationExport,this.state.startLoc),!0;return D===74||D===75||D===68||D===80||this.isLet()||this.isAsyncFunction()}checkExport(D,$,J,F){if($){var U;if(J){if(this.checkDuplicateExports(D,"default"),this.hasPlugin("exportDefaultFrom")){var X;let Y=D.declaration;if(Y.type==="Identifier"&&Y.name==="from"&&Y.end-Y.start===4&&!((X=Y.extra)!=null&&X.parenthesized))this.raise(M.ExportDefaultFromAsIdentifier,Y)}}else if((U=D.specifiers)!=null&&U.length)for(let Y of D.specifiers){let{exported:Q}=Y,q=Q.type==="Identifier"?Q.name:Q.value;if(this.checkDuplicateExports(Y,q),!F&&Y.local){let{local:K}=Y;if(K.type!=="Identifier")this.raise(M.ExportBindingIsString,Y,{localName:K.value,exportName:q});else this.checkReservedWord(K.name,K.loc.start,!0,!1),this.scope.checkLocalExport(K)}}else if(D.declaration){let Y=D.declaration;if(Y.type==="FunctionDeclaration"||Y.type==="ClassDeclaration"){let{id:Q}=Y;if(!Q)throw Error("Assertion failure");this.checkDuplicateExports(D,Q.name)}else if(Y.type==="VariableDeclaration")for(let Q of Y.declarations)this.checkDeclaration(Q.id)}}}checkDeclaration(D){if(D.type==="Identifier")this.checkDuplicateExports(D,D.name);else if(D.type==="ObjectPattern")for(let $ of D.properties)this.checkDeclaration($);else if(D.type==="ArrayPattern"){for(let $ of D.elements)if($)this.checkDeclaration($)}else if(D.type==="ObjectProperty")this.checkDeclaration(D.value);else if(D.type==="RestElement")this.checkDeclaration(D.argument);else if(D.type==="AssignmentPattern")this.checkDeclaration(D.left)}checkDuplicateExports(D,$){if(this.exportedIdentifiers.has($))if($==="default")this.raise(M.DuplicateDefaultExport,D);else this.raise(M.DuplicateExport,D,{exportName:$});this.exportedIdentifiers.add($)}parseExportSpecifiers(D){let $=[],J=!0;this.expect(5);while(!this.eat(8)){if(J)J=!1;else if(this.expect(12),this.eat(8))break;let F=this.isContextual(130),U=this.match(134),X=this.startNode();X.local=this.parseModuleExportName(),$.push(this.parseExportSpecifier(X,U,D,F))}return $}parseExportSpecifier(D,$,J,F){if(this.eatContextual(93))D.exported=this.parseModuleExportName();else if($)D.exported=this.cloneStringLiteral(D.local);else if(!D.exported)D.exported=this.cloneIdentifier(D.local);return this.finishNode(D,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let D=this.parseStringLiteral(this.state.value),$=AQD.exec(D.value);if($)this.raise(M.ModuleExportNameHasLoneSurrogate,D,{surrogateCharCode:$[0].charCodeAt(0)});return D}return this.parseIdentifier(!0)}isJSONModuleImport(D){if(D.assertions!=null)return D.assertions.some(({key:$,value:J})=>{return J.value==="json"&&($.type==="Identifier"?$.name==="type":$.value==="type")});return!1}checkImportReflection(D){let{specifiers:$}=D,J=$.length===1?$[0].type:null;if(D.phase==="source"){if(J!=="ImportDefaultSpecifier")this.raise(M.SourcePhaseImportRequiresDefault,$[0].loc.start)}else if(D.phase==="defer"){if(J!=="ImportNamespaceSpecifier")this.raise(M.DeferImportRequiresNamespace,$[0].loc.start)}else if(D.module){var F;if(J!=="ImportDefaultSpecifier")this.raise(M.ImportReflectionNotBinding,$[0].loc.start);if(((F=D.assertions)==null?void 0:F.length)>0)this.raise(M.ImportReflectionHasAssertion,$[0].loc.start)}}checkJSONModuleImport(D){if(this.isJSONModuleImport(D)&&D.type!=="ExportAllDeclaration"){let{specifiers:$}=D;if($!=null){let J=$.find((F)=>{let U;if(F.type==="ExportSpecifier")U=F.local;else if(F.type==="ImportSpecifier")U=F.imported;if(U!==void 0)return U.type==="Identifier"?U.name!=="default":U.value!=="default"});if(J!==void 0)this.raise(M.ImportJSONBindingNotDefault,J.loc.start)}}}isPotentialImportPhase(D){if(D)return!1;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(D,$,J,F){if($)return;if(J==="module")this.expectPlugin("importReflection",F),D.module=!0;else if(this.hasPlugin("importReflection"))D.module=!1;if(J==="source")this.expectPlugin("sourcePhaseImports",F),D.phase="source";else if(J==="defer")this.expectPlugin("deferredImportEvaluation",F),D.phase="defer";else if(this.hasPlugin("sourcePhaseImports"))D.phase=null}parseMaybeImportPhase(D,$){if(!this.isPotentialImportPhase($))return this.applyImportPhase(D,$,null),null;let J=this.startNode(),F=this.parseIdentifierName(!0),{type:U}=this.state;if(F6(U)?U!==98||this.lookaheadCharCode()===102:U!==12)return this.applyImportPhase(D,$,F,J.loc.start),null;else return this.applyImportPhase(D,$,null),this.createIdentifier(J,F)}isPrecedingIdImportPhase(D){let{type:$}=this.state;return fD($)?$!==98||this.lookaheadCharCode()===102:$!==12}parseImport(D){if(this.match(134))return this.parseImportSourceAndAttributes(D);return this.parseImportSpecifiersAndAfter(D,this.parseMaybeImportPhase(D,!1))}parseImportSpecifiersAndAfter(D,$){D.specifiers=[];let F=!this.maybeParseDefaultImportSpecifier(D,$)||this.eat(12),U=F&&this.maybeParseStarImportSpecifier(D);if(F&&!U)this.parseNamedImportSpecifiers(D);return this.expectContextual(98),this.parseImportSourceAndAttributes(D)}parseImportSourceAndAttributes(D){var $;return($=D.specifiers)!=null||(D.specifiers=[]),D.source=this.parseImportSource(),this.maybeParseImportAttributes(D),this.checkImportReflection(D),this.checkJSONModuleImport(D),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(D,"ImportDeclaration")}parseImportSource(){if(!this.match(134))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(D,$,J){$.local=this.parseIdentifier(),D.specifiers.push(this.finishImportSpecifier($,J))}finishImportSpecifier(D,$,J=8201){return this.checkLVal(D.local,{type:$},J),this.finishNode(D,$)}parseImportAttributes(){this.expect(5);let D=[],$=new Set;do{if(this.match(8))break;let J=this.startNode(),F=this.state.value;if($.has(F))this.raise(M.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:F});if($.add(F),this.match(134))J.key=this.parseStringLiteral(F);else J.key=this.parseIdentifier(!0);if(this.expect(14),!this.match(134))throw this.raise(M.ModuleAttributeInvalidValue,this.state.startLoc);J.value=this.parseStringLiteral(this.state.value),D.push(this.finishNode(J,"ImportAttribute"))}while(this.eat(12));return this.expect(8),D}parseModuleAttributes(){let D=[],$=new Set;do{let J=this.startNode();if(J.key=this.parseIdentifier(!0),J.key.name!=="type")this.raise(M.ModuleAttributeDifferentFromType,J.key);if($.has(J.key.name))this.raise(M.ModuleAttributesWithDuplicateKeys,J.key,{key:J.key.name});if($.add(J.key.name),this.expect(14),!this.match(134))throw this.raise(M.ModuleAttributeInvalidValue,this.state.startLoc);J.value=this.parseStringLiteral(this.state.value),D.push(this.finishNode(J,"ImportAttribute"))}while(this.eat(12));return D}maybeParseImportAttributes(D){let $;var J=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;if(this.next(),this.hasPlugin("moduleAttributes"))$=this.parseModuleAttributes(),this.addExtra(D,"deprecatedWithLegacySyntax",!0);else $=this.parseImportAttributes();J=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions"))this.raise(M.ImportAttributesUseAssert,this.state.startLoc);if(!this.hasPlugin("importAssertions"))this.addExtra(D,"deprecatedAssertSyntax",!0);this.next(),$=this.parseImportAttributes()}else $=[];if(!J&&this.hasPlugin("importAssertions"))D.assertions=$;else D.attributes=$}maybeParseDefaultImportSpecifier(D,$){if($){let J=this.startNodeAtNode($);return J.local=$,D.specifiers.push(this.finishImportSpecifier(J,"ImportDefaultSpecifier")),!0}else if(F6(this.state.type))return this.parseImportSpecifierLocal(D,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(D){if(this.match(55)){let $=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(D,$,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(D){let $=!0;this.expect(5);while(!this.eat(8)){if($)$=!1;else{if(this.eat(14))throw this.raise(M.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let J=this.startNode(),F=this.match(134),U=this.isContextual(130);J.imported=this.parseModuleExportName();let X=this.parseImportSpecifier(J,F,D.importKind==="type"||D.importKind==="typeof",U,void 0);D.specifiers.push(X)}}parseImportSpecifier(D,$,J,F,U){if(this.eatContextual(93))D.local=this.parseIdentifier();else{let{imported:X}=D;if($)throw this.raise(M.ImportBindingIsString,D,{importName:X.value});if(this.checkReservedWord(X.name,D.loc.start,!0,!0),!D.local)D.local=this.cloneIdentifier(X)}return this.finishImportSpecifier(D,"ImportSpecifier",U)}isThisParam(D){return D.type==="Identifier"&&D.name==="this"}}class zj extends dx{constructor(D,$,J){let F=EYD(D);super(F,$);this.options=F,this.initializeScopes(),this.plugins=J,this.filename=F.sourceFilename,this.startIndex=F.startIndex;let U=0;if(F.allowAwaitOutsideFunction)U|=1;if(F.allowReturnOutsideFunction)U|=2;if(F.allowImportExportEverywhere)U|=8;if(F.allowSuperOutsideMethod)U|=16;if(F.allowUndeclaredExports)U|=64;if(F.allowNewTargetOutsideFunction)U|=4;if(F.allowYieldOutsideFunction)U|=32;if(F.ranges)U|=128;if(F.tokens)U|=256;if(F.createImportExpressions)U|=512;if(F.createParenthesizedExpressions)U|=1024;if(F.errorRecovery)U|=2048;if(F.attachComment)U|=4096;if(F.annexB)U|=8192;this.optionFlags=U}getScopeHandler(){return nX}parse(){this.enterInitialScopes();let D=this.startNode(),$=this.startNode();this.nextToken(),D.errors=null;let J=this.parseTopLevel(D,$);return J.errors=this.state.errors,J.comments.length=this.state.commentsLen,J}}function TQD(D,$){var J;if(((J=$)==null?void 0:J.sourceType)==="unambiguous"){$=Object.assign({},$);try{$.sourceType="module";let F=t5($,D),U=F.parse();if(F.sawUnambiguousESM)return U;if(F.ambiguousScriptDifferentAst)try{return $.sourceType="script",t5($,D).parse()}catch(X){}else U.program.sourceType="script";return U}catch(F){try{return $.sourceType="script",t5($,D).parse()}catch(U){}throw F}}else return t5($,D).parse()}function bQD(D,$){let J=t5($,D);if(J.options.strictMode)J.state.strict=!0;return J.getExpression()}function PQD(D){let $={};for(let J of Object.keys(D))$[J]=c6(D[J]);return $}var SQD=PQD(bYD);function t5(D,$){let J=zj,F=new Map;if(D!=null&&D.plugins){for(let U of D.plugins){let X,Y;if(typeof U==="string")X=U;else[X,Y]=U;if(!F.has(X))F.set(X,Y||{})}RQD(F),J=_QD(F)}return new J(D,$,F)}var Zx=new Map;function _QD(D){let $=[];for(let U of MQD)if(D.has(U))$.push(U);let J=$.join("|"),F=Zx.get(J);if(!F){F=zj;for(let U of $)F=lx[U](F);Zx.set(J,F)}return F}cx.parse=TQD;cx.parseExpression=bQD;cx.tokTypes=SQD});var rx=u((pX,px)=>{(function(D,$){typeof pX==="object"&&typeof px<"u"?$(pX):typeof define==="function"&&define.amd?define(["exports"],$):(D=D||self,$(D.estreeWalker={}))})(pX,function(D){class ${constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(Y)=>this.replacement=Y}}replace(Y,Q,q,K){if(Y)if(q!==null)Y[Q][q]=K;else Y[Q]=K}remove(Y,Q,q){if(Y)if(q!==null)Y[Q].splice(q,1);else delete Y[Q]}}class J extends ${constructor(Y,Q){super();this.enter=Y,this.leave=Q}visit(Y,Q,q,K){if(Y){if(this.enter){let W=this.should_skip,G=this.should_remove,I=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,Y,Q,q,K),this.replacement)Y=this.replacement,this.replace(Q,q,K,Y);if(this.should_remove)this.remove(Q,q,K);let z=this.should_skip,Z=this.should_remove;if(this.should_skip=W,this.should_remove=G,this.replacement=I,z)return Y;if(Z)return null}for(let W in Y){let G=Y[W];if(typeof G!=="object")continue;else if(Array.isArray(G)){for(let I=0;I<G.length;I+=1)if(G[I]!==null&&typeof G[I].type==="string"){if(!this.visit(G[I],Y,W,I))I--}}else if(G!==null&&typeof G.type==="string")this.visit(G,Y,W,null)}if(this.leave){let W=this.replacement,G=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,Y,Q,q,K),this.replacement)Y=this.replacement,this.replace(Q,q,K,Y);if(this.should_remove)this.remove(Q,q,K);let I=this.should_remove;if(this.replacement=W,this.should_remove=G,I)return null}}return Y}}class F extends ${constructor(Y,Q){super();this.enter=Y,this.leave=Q}async visit(Y,Q,q,K){if(Y){if(this.enter){let W=this.should_skip,G=this.should_remove,I=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,await this.enter.call(this.context,Y,Q,q,K),this.replacement)Y=this.replacement,this.replace(Q,q,K,Y);if(this.should_remove)this.remove(Q,q,K);let z=this.should_skip,Z=this.should_remove;if(this.should_skip=W,this.should_remove=G,this.replacement=I,z)return Y;if(Z)return null}for(let W in Y){let G=Y[W];if(typeof G!=="object")continue;else if(Array.isArray(G)){for(let I=0;I<G.length;I+=1)if(G[I]!==null&&typeof G[I].type==="string"){if(!await this.visit(G[I],Y,W,I))I--}}else if(G!==null&&typeof G.type==="string")await this.visit(G,Y,W,null)}if(this.leave){let W=this.replacement,G=this.should_remove;if(this.replacement=null,this.should_remove=!1,await this.leave.call(this.context,Y,Q,q,K),this.replacement)Y=this.replacement,this.replace(Q,q,K,Y);if(this.should_remove)this.remove(Q,q,K);let I=this.should_remove;if(this.replacement=W,this.should_remove=G,I)return null}}return Y}}function U(Y,{enter:Q,leave:q}){return new J(Q,q).visit(Y,null)}async function X(Y,{enter:Q,leave:q}){return await new F(Q,q).visit(Y,null)}D.asyncWalk=X,D.walk=U,Object.defineProperty(D,"__esModule",{value:!0})})});var ox=u((gQD)=>{var tx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");gQD.encode=function(D){if(0<=D&&D<tx.length)return tx[D];throw TypeError("Must be between 0 and 63: "+D)};gQD.decode=function(D){var $=65,J=90,F=97,U=122,X=48,Y=57,Q=43,q=47,K=26,W=52;if($<=D&&D<=J)return D-$;if(F<=D&&D<=U)return D-F+K;if(X<=D&&D<=Y)return D-X+W;if(D==Q)return 62;if(D==q)return 63;return-1}});var Hj=u((mQD)=>{var ax=ox(),Zj=5,sx=1<<Zj,ex=sx-1,Dy=sx;function yQD(D){return D<0?(-D<<1)+1:(D<<1)+0}function hQD(D){var $=(D&1)===1,J=D>>1;return $?-J:J}mQD.encode=function($){var J="",F,U=yQD($);do{if(F=U&ex,U>>>=Zj,U>0)F|=Dy;J+=ax.encode(F)}while(U>0);return J};mQD.decode=function($,J,F){var U=$.length,X=0,Y=0,Q,q;do{if(J>=U)throw Error("Expected more digits in base 64 VLQ value.");if(q=ax.decode($.charCodeAt(J++)),q===-1)throw Error("Invalid base64 digit: "+$.charAt(J-1));Q=!!(q&Dy),q&=ex,X=X+(q<<Y),Y+=Zj}while(Q);F.value=hQD(X),F.rest=J}});var V3=u((UqD)=>{function dQD(D,$,J){if($ in D)return D[$];else if(arguments.length===3)return J;else throw Error('"'+$+'" is a required argument.')}UqD.getArg=dQD;var $y=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,cQD=/^data:.+\,.+$/;function J7(D){var $=D.match($y);if(!$)return null;return{scheme:$[1],auth:$[2],host:$[3],port:$[4],path:$[5]}}UqD.urlParse=J7;function N3(D){var $="";if(D.scheme)$+=D.scheme+":";if($+="//",D.auth)$+=D.auth+"@";if(D.host)$+=D.host;if(D.port)$+=":"+D.port;if(D.path)$+=D.path;return $}UqD.urlGenerate=N3;var nQD=32;function pQD(D){var $=[];return function(J){for(var F=0;F<$.length;F++)if($[F].input===J){var U=$[0];return $[0]=$[F],$[F]=U,$[0].result}var X=D(J);if($.unshift({input:J,result:X}),$.length>nQD)$.pop();return X}}var Bj=pQD(function($){var J=$,F=J7($);if(F){if(!F.path)return $;J=F.path}var U=UqD.isAbsolute(J),X=[],Y=0,Q=0;while(!0)if(Y=Q,Q=J.indexOf("/",Y),Q===-1){X.push(J.slice(Y));break}else{X.push(J.slice(Y,Q));while(Q<J.length&&J[Q]==="/")Q++}for(var q,K=0,Q=X.length-1;Q>=0;Q--)if(q=X[Q],q===".")X.splice(Q,1);else if(q==="..")K++;else if(K>0)if(q==="")X.splice(Q+1,K),K=0;else X.splice(Q,2),K--;if(J=X.join("/"),J==="")J=U?"/":".";if(F)return F.path=J,N3(F);return J});UqD.normalize=Bj;function Jy(D,$){if(D==="")D=".";if($==="")$=".";var J=J7($),F=J7(D);if(F)D=F.path||"/";if(J&&!J.scheme){if(F)J.scheme=F.scheme;return N3(J)}if(J||$.match(cQD))return $;if(F&&!F.host&&!F.path)return F.host=$,N3(F);var U=$.charAt(0)==="/"?$:Bj(D.replace(/\/+$/,"")+"/"+$);if(F)return F.path=U,N3(F);return U}UqD.join=Jy;UqD.isAbsolute=function(D){return D.charAt(0)==="/"||$y.test(D)};function rQD(D,$){if(D==="")D=".";D=D.replace(/\/$/,"");var J=0;while($.indexOf(D+"/")!==0){var F=D.lastIndexOf("/");if(F<0)return $;if(D=D.slice(0,F),D.match(/^([^\/]+:\/)?\/*$/))return $;++J}return Array(J+1).join("../")+$.substr(D.length+1)}UqD.relative=rQD;var Fy=function(){var D=Object.create(null);return!("__proto__"in D)}();function Uy(D){return D}function tQD(D){if(Xy(D))return"$"+D;return D}UqD.toSetString=Fy?Uy:tQD;function oQD(D){if(Xy(D))return D.slice(1);return D}UqD.fromSetString=Fy?Uy:oQD;function Xy(D){if(!D)return!1;var $=D.length;if($<9)return!1;if(D.charCodeAt($-1)!==95||D.charCodeAt($-2)!==95||D.charCodeAt($-3)!==111||D.charCodeAt($-4)!==116||D.charCodeAt($-5)!==111||D.charCodeAt($-6)!==114||D.charCodeAt($-7)!==112||D.charCodeAt($-8)!==95||D.charCodeAt($-9)!==95)return!1;for(var J=$-10;J>=0;J--)if(D.charCodeAt(J)!==36)return!1;return!0}function aQD(D,$,J){var F=t6(D.source,$.source);if(F!==0)return F;if(F=D.originalLine-$.originalLine,F!==0)return F;if(F=D.originalColumn-$.originalColumn,F!==0||J)return F;if(F=D.generatedColumn-$.generatedColumn,F!==0)return F;if(F=D.generatedLine-$.generatedLine,F!==0)return F;return t6(D.name,$.name)}UqD.compareByOriginalPositions=aQD;function sQD(D,$,J){var F=D.originalLine-$.originalLine;if(F!==0)return F;if(F=D.originalColumn-$.originalColumn,F!==0||J)return F;if(F=D.generatedColumn-$.generatedColumn,F!==0)return F;if(F=D.generatedLine-$.generatedLine,F!==0)return F;return t6(D.name,$.name)}UqD.compareByOriginalPositionsNoSource=sQD;function eQD(D,$,J){var F=D.generatedLine-$.generatedLine;if(F!==0)return F;if(F=D.generatedColumn-$.generatedColumn,F!==0||J)return F;if(F=t6(D.source,$.source),F!==0)return F;if(F=D.originalLine-$.originalLine,F!==0)return F;if(F=D.originalColumn-$.originalColumn,F!==0)return F;return t6(D.name,$.name)}UqD.compareByGeneratedPositionsDeflated=eQD;function DqD(D,$,J){var F=D.generatedColumn-$.generatedColumn;if(F!==0||J)return F;if(F=t6(D.source,$.source),F!==0)return F;if(F=D.originalLine-$.originalLine,F!==0)return F;if(F=D.originalColumn-$.originalColumn,F!==0)return F;return t6(D.name,$.name)}UqD.compareByGeneratedPositionsDeflatedNoLine=DqD;function t6(D,$){if(D===$)return 0;if(D===null)return 1;if($===null)return-1;if(D>$)return 1;return-1}function $qD(D,$){var J=D.generatedLine-$.generatedLine;if(J!==0)return J;if(J=D.generatedColumn-$.generatedColumn,J!==0)return J;if(J=t6(D.source,$.source),J!==0)return J;if(J=D.originalLine-$.originalLine,J!==0)return J;if(J=D.originalColumn-$.originalColumn,J!==0)return J;return t6(D.name,$.name)}UqD.compareByGeneratedPositionsInflated=$qD;function JqD(D){return JSON.parse(D.replace(/^\)]}'[^\n]*\n/,""))}UqD.parseSourceMapInput=JqD;function FqD(D,$,J){if($=$||"",D){if(D[D.length-1]!=="/"&&$[0]!=="/")D+="/";$=D+$}if(J){var F=J7(J);if(!F)throw Error("sourceMapURL could not be parsed");if(F.path){var U=F.path.lastIndexOf("/");if(U>=0)F.path=F.path.substring(0,U+1)}$=Jy(N3(F),$)}return Bj($)}UqD.computeSourceURL=FqD});var Nj=u((LqD)=>{var Oj=V3(),jj=Object.prototype.hasOwnProperty,W2=typeof Map<"u";function o6(){this._array=[],this._set=W2?new Map:Object.create(null)}o6.fromArray=function($,J){var F=new o6;for(var U=0,X=$.length;U<X;U++)F.add($[U],J);return F};o6.prototype.size=function(){return W2?this._set.size:Object.getOwnPropertyNames(this._set).length};o6.prototype.add=function($,J){var F=W2?$:Oj.toSetString($),U=W2?this.has($):jj.call(this._set,F),X=this._array.length;if(!U||J)this._array.push($);if(!U)if(W2)this._set.set($,X);else this._set[F]=X};o6.prototype.has=function($){if(W2)return this._set.has($);else{var J=Oj.toSetString($);return jj.call(this._set,J)}};o6.prototype.indexOf=function($){if(W2){var J=this._set.get($);if(J>=0)return J}else{var F=Oj.toSetString($);if(jj.call(this._set,F))return this._set[F]}throw Error('"'+$+'" is not in the set.')};o6.prototype.at=function($){if($>=0&&$<this._array.length)return this._array[$];throw Error("No element indexed by "+$)};o6.prototype.toArray=function(){return this._array.slice()};LqD.ArraySet=o6});var Qy=u((MqD)=>{var Yy=V3();function RqD(D,$){var J=D.generatedLine,F=$.generatedLine,U=D.generatedColumn,X=$.generatedColumn;return F>J||F==J&&X>=U||Yy.compareByGeneratedPositionsInflated(D,$)<=0}function rX(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}rX.prototype.unsortedForEach=function($,J){this._array.forEach($,J)};rX.prototype.add=function($){if(RqD(this._last,$))this._last=$,this._array.push($);else this._sorted=!1,this._array.push($)};rX.prototype.toArray=function(){if(!this._sorted)this._array.sort(Yy.compareByGeneratedPositionsInflated),this._sorted=!0;return this._array};MqD.MappingList=rX});var Vj=u((vqD)=>{var F7=Hj(),H$=V3(),tX=Nj().ArraySet,AqD=Qy().MappingList;function c0(D){if(!D)D={};this._file=H$.getArg(D,"file",null),this._sourceRoot=H$.getArg(D,"sourceRoot",null),this._skipValidation=H$.getArg(D,"skipValidation",!1),this._ignoreInvalidMapping=H$.getArg(D,"ignoreInvalidMapping",!1),this._sources=new tX,this._names=new tX,this._mappings=new AqD,this._sourcesContents=null}c0.prototype._version=3;c0.fromSourceMap=function($,J){var F=$.sourceRoot,U=new c0(Object.assign(J||{},{file:$.file,sourceRoot:F}));return $.eachMapping(function(X){var Y={generated:{line:X.generatedLine,column:X.generatedColumn}};if(X.source!=null){if(Y.source=X.source,F!=null)Y.source=H$.relative(F,Y.source);if(Y.original={line:X.originalLine,column:X.originalColumn},X.name!=null)Y.name=X.name}U.addMapping(Y)}),$.sources.forEach(function(X){var Y=X;if(F!==null)Y=H$.relative(F,X);if(!U._sources.has(Y))U._sources.add(Y);var Q=$.sourceContentFor(X);if(Q!=null)U.setSourceContent(X,Q)}),U};c0.prototype.addMapping=function($){var J=H$.getArg($,"generated"),F=H$.getArg($,"original",null),U=H$.getArg($,"source",null),X=H$.getArg($,"name",null);if(!this._skipValidation){if(this._validateMapping(J,F,U,X)===!1)return}if(U!=null){if(U=String(U),!this._sources.has(U))this._sources.add(U)}if(X!=null){if(X=String(X),!this._names.has(X))this._names.add(X)}this._mappings.add({generatedLine:J.line,generatedColumn:J.column,originalLine:F!=null&&F.line,originalColumn:F!=null&&F.column,source:U,name:X})};c0.prototype.setSourceContent=function($,J){var F=$;if(this._sourceRoot!=null)F=H$.relative(this._sourceRoot,F);if(J!=null){if(!this._sourcesContents)this._sourcesContents=Object.create(null);this._sourcesContents[H$.toSetString(F)]=J}else if(this._sourcesContents){if(delete this._sourcesContents[H$.toSetString(F)],Object.keys(this._sourcesContents).length===0)this._sourcesContents=null}};c0.prototype.applySourceMap=function($,J,F){var U=J;if(J==null){if($.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);U=$.file}var X=this._sourceRoot;if(X!=null)U=H$.relative(X,U);var Y=new tX,Q=new tX;this._mappings.unsortedForEach(function(q){if(q.source===U&&q.originalLine!=null){var K=$.originalPositionFor({line:q.originalLine,column:q.originalColumn});if(K.source!=null){if(q.source=K.source,F!=null)q.source=H$.join(F,q.source);if(X!=null)q.source=H$.relative(X,q.source);if(q.originalLine=K.line,q.originalColumn=K.column,K.name!=null)q.name=K.name}}var W=q.source;if(W!=null&&!Y.has(W))Y.add(W);var G=q.name;if(G!=null&&!Q.has(G))Q.add(G)},this),this._sources=Y,this._names=Q,$.sources.forEach(function(q){var K=$.sourceContentFor(q);if(K!=null){if(F!=null)q=H$.join(F,q);if(X!=null)q=H$.relative(X,q);this.setSourceContent(q,K)}},this)};c0.prototype._validateMapping=function($,J,F,U){if(J&&typeof J.line!=="number"&&typeof J.column!=="number"){var X="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping){if(typeof console<"u"&&console.warn)console.warn(X);return!1}else throw Error(X)}if($&&"line"in $&&"column"in $&&$.line>0&&$.column>=0&&!J&&!F&&!U)return;else if($&&"line"in $&&"column"in $&&J&&"line"in J&&"column"in J&&$.line>0&&$.column>=0&&J.line>0&&J.column>=0&&F)return;else{var X="Invalid mapping: "+JSON.stringify({generated:$,source:F,original:J,name:U});if(this._ignoreInvalidMapping){if(typeof console<"u"&&console.warn)console.warn(X);return!1}else throw Error(X)}};c0.prototype._serializeMappings=function(){var $=0,J=1,F=0,U=0,X=0,Y=0,Q="",q,K,W,G,I=this._mappings.toArray();for(var z=0,Z=I.length;z<Z;z++){if(K=I[z],q="",K.generatedLine!==J){$=0;while(K.generatedLine!==J)q+=";",J++}else if(z>0){if(!H$.compareByGeneratedPositionsInflated(K,I[z-1]))continue;q+=","}if(q+=F7.encode(K.generatedColumn-$),$=K.generatedColumn,K.source!=null){if(G=this._sources.indexOf(K.source),q+=F7.encode(G-Y),Y=G,q+=F7.encode(K.originalLine-1-U),U=K.originalLine-1,q+=F7.encode(K.originalColumn-F),F=K.originalColumn,K.name!=null)W=this._names.indexOf(K.name),q+=F7.encode(W-X),X=W}Q+=q}return Q};c0.prototype._generateSourcesContent=function($,J){return $.map(function(F){if(!this._sourcesContents)return null;if(J!=null)F=H$.relative(J,F);var U=H$.toSetString(F);return Object.prototype.hasOwnProperty.call(this._sourcesContents,U)?this._sourcesContents[U]:null},this)};c0.prototype.toJSON=function(){var $={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null)$.file=this._file;if(this._sourceRoot!=null)$.sourceRoot=this._sourceRoot;if(this._sourcesContents)$.sourcesContent=this._generateSourcesContent($.sources,$.sourceRoot);return $};c0.prototype.toString=function(){return JSON.stringify(this.toJSON())};vqD.SourceMapGenerator=c0});var Ky=u((bqD)=>{bqD.GREATEST_LOWER_BOUND=1;bqD.LEAST_UPPER_BOUND=2;function Lj(D,$,J,F,U,X){var Y=Math.floor(($-D)/2)+D,Q=U(J,F[Y],!0);if(Q===0)return Y;else if(Q>0){if($-Y>1)return Lj(Y,$,J,F,U,X);if(X==bqD.LEAST_UPPER_BOUND)return $<F.length?$:-1;else return Y}else{if(Y-D>1)return Lj(D,Y,J,F,U,X);if(X==bqD.LEAST_UPPER_BOUND)return Y;else return D<0?-1:D}}bqD.search=function($,J,F,U){if(J.length===0)return-1;var X=Lj(-1,J.length,$,J,F,U||bqD.GREATEST_LOWER_BOUND);if(X<0)return-1;while(X-1>=0){if(F(J[X],J[X-1],!0)!==0)break;--X}return X}});var Gy=u((kqD)=>{function SqD(D){function $(U,X,Y){var Q=U[X];U[X]=U[Y],U[Y]=Q}function J(U,X){return Math.round(U+Math.random()*(X-U))}function F(U,X,Y,Q){if(Y<Q){var q=J(Y,Q),K=Y-1;$(U,q,Q);var W=U[Q];for(var G=Y;G<Q;G++)if(X(U[G],W,!1)<=0)K+=1,$(U,K,G);$(U,K+1,G);var I=K+1;F(U,X,Y,I-1),F(U,X,I+1,Q)}}return F}function _qD(D){let $=SqD.toString();return Function(`return ${$}`)()(D)}var Wy=new WeakMap;kqD.quickSort=function(D,$,J=0){let F=Wy.get($);if(F===void 0)F=_qD($),Wy.set($,F);F(D,$,J,D.length-1)}});var Zy=u((gqD)=>{var XD=V3(),Mj=Ky(),L3=Nj().ArraySet,uqD=Hj(),U7=Gy().quickSort;function D$(D,$){var J=D;if(typeof D==="string")J=XD.parseSourceMapInput(D);return J.sections!=null?new U6(J,$):new u$(J,$)}D$.fromSourceMap=function(D,$){return u$.fromSourceMap(D,$)};D$.prototype._version=3;D$.prototype.__generatedMappings=null;Object.defineProperty(D$.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__generatedMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});D$.prototype.__originalMappings=null;Object.defineProperty(D$.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){if(!this.__originalMappings)this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});D$.prototype._charIsMappingSeparator=function($,J){var F=$.charAt(J);return F===";"||F===","};D$.prototype._parseMappings=function($,J){throw Error("Subclasses must implement _parseMappings")};D$.GENERATED_ORDER=1;D$.ORIGINAL_ORDER=2;D$.GREATEST_LOWER_BOUND=1;D$.LEAST_UPPER_BOUND=2;D$.prototype.eachMapping=function($,J,F){var U=J||null,X=F||D$.GENERATED_ORDER,Y;switch(X){case D$.GENERATED_ORDER:Y=this._generatedMappings;break;case D$.ORIGINAL_ORDER:Y=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var Q=this.sourceRoot,q=$.bind(U),K=this._names,W=this._sources,G=this._sourceMapURL;for(var I=0,z=Y.length;I<z;I++){var Z=Y[I],H=Z.source===null?null:W.at(Z.source);if(H!==null)H=XD.computeSourceURL(Q,H,G);q({source:H,generatedLine:Z.generatedLine,generatedColumn:Z.generatedColumn,originalLine:Z.originalLine,originalColumn:Z.originalColumn,name:Z.name===null?null:K.at(Z.name)})}};D$.prototype.allGeneratedPositionsFor=function($){var J=XD.getArg($,"line"),F={source:XD.getArg($,"source"),originalLine:J,originalColumn:XD.getArg($,"column",0)};if(F.source=this._findSourceIndex(F.source),F.source<0)return[];var U=[],X=this._findMapping(F,this._originalMappings,"originalLine","originalColumn",XD.compareByOriginalPositions,Mj.LEAST_UPPER_BOUND);if(X>=0){var Y=this._originalMappings[X];if($.column===void 0){var Q=Y.originalLine;while(Y&&Y.originalLine===Q)U.push({line:XD.getArg(Y,"generatedLine",null),column:XD.getArg(Y,"generatedColumn",null),lastColumn:XD.getArg(Y,"lastGeneratedColumn",null)}),Y=this._originalMappings[++X]}else{var q=Y.originalColumn;while(Y&&Y.originalLine===J&&Y.originalColumn==q)U.push({line:XD.getArg(Y,"generatedLine",null),column:XD.getArg(Y,"generatedColumn",null),lastColumn:XD.getArg(Y,"lastGeneratedColumn",null)}),Y=this._originalMappings[++X]}}return U};gqD.SourceMapConsumer=D$;function u$(D,$){var J=D;if(typeof D==="string")J=XD.parseSourceMapInput(D);var F=XD.getArg(J,"version"),U=XD.getArg(J,"sources"),X=XD.getArg(J,"names",[]),Y=XD.getArg(J,"sourceRoot",null),Q=XD.getArg(J,"sourcesContent",null),q=XD.getArg(J,"mappings"),K=XD.getArg(J,"file",null);if(F!=this._version)throw Error("Unsupported version: "+F);if(Y)Y=XD.normalize(Y);U=U.map(String).map(XD.normalize).map(function(W){return Y&&XD.isAbsolute(Y)&&XD.isAbsolute(W)?XD.relative(Y,W):W}),this._names=L3.fromArray(X.map(String),!0),this._sources=L3.fromArray(U,!0),this._absoluteSources=this._sources.toArray().map(function(W){return XD.computeSourceURL(Y,W,$)}),this.sourceRoot=Y,this.sourcesContent=Q,this._mappings=q,this._sourceMapURL=$,this.file=K}u$.prototype=Object.create(D$.prototype);u$.prototype.consumer=D$;u$.prototype._findSourceIndex=function(D){var $=D;if(this.sourceRoot!=null)$=XD.relative(this.sourceRoot,$);if(this._sources.has($))return this._sources.indexOf($);var J;for(J=0;J<this._absoluteSources.length;++J)if(this._absoluteSources[J]==D)return J;return-1};u$.fromSourceMap=function($,J){var F=Object.create(u$.prototype),U=F._names=L3.fromArray($._names.toArray(),!0),X=F._sources=L3.fromArray($._sources.toArray(),!0);F.sourceRoot=$._sourceRoot,F.sourcesContent=$._generateSourcesContent(F._sources.toArray(),F.sourceRoot),F.file=$._file,F._sourceMapURL=J,F._absoluteSources=F._sources.toArray().map(function(z){return XD.computeSourceURL(F.sourceRoot,z,J)});var Y=$._mappings.toArray().slice(),Q=F.__generatedMappings=[],q=F.__originalMappings=[];for(var K=0,W=Y.length;K<W;K++){var G=Y[K],I=new zy;if(I.generatedLine=G.generatedLine,I.generatedColumn=G.generatedColumn,G.source){if(I.source=X.indexOf(G.source),I.originalLine=G.originalLine,I.originalColumn=G.originalColumn,G.name)I.name=U.indexOf(G.name);q.push(I)}Q.push(I)}return U7(F.__originalMappings,XD.compareByOriginalPositions),F};u$.prototype._version=3;Object.defineProperty(u$.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function zy(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Rj=XD.compareByGeneratedPositionsDeflatedNoLine;function Iy(D,$){let J=D.length,F=D.length-$;if(F<=1)return;else if(F==2){let U=D[$],X=D[$+1];if(Rj(U,X)>0)D[$]=X,D[$+1]=U}else if(F<20)for(let U=$;U<J;U++)for(let X=U;X>$;X--){let Y=D[X-1],Q=D[X];if(Rj(Y,Q)<=0)break;D[X-1]=Q,D[X]=Y}else U7(D,Rj,$)}u$.prototype._parseMappings=function($,J){var F=1,U=0,X=0,Y=0,Q=0,q=0,K=$.length,W=0,G={},I={},z=[],Z=[],H,B,j,N,O;let L=0;while(W<K)if($.charAt(W)===";")F++,W++,U=0,Iy(Z,L),L=Z.length;else if($.charAt(W)===",")W++;else{H=new zy,H.generatedLine=F;for(N=W;N<K;N++)if(this._charIsMappingSeparator($,N))break;B=$.slice(W,N),j=[];while(W<N)uqD.decode($,W,I),O=I.value,W=I.rest,j.push(O);if(j.length===2)throw Error("Found a source, but no line and column");if(j.length===3)throw Error("Found a source and line, but no column");if(H.generatedColumn=U+j[0],U=H.generatedColumn,j.length>1){if(H.source=Q+j[1],Q+=j[1],H.originalLine=X+j[2],X=H.originalLine,H.originalLine+=1,H.originalColumn=Y+j[3],Y=H.originalColumn,j.length>4)H.name=q+j[4],q+=j[4]}if(Z.push(H),typeof H.originalLine==="number"){let E=H.source;while(z.length<=E)z.push(null);if(z[E]===null)z[E]=[];z[E].push(H)}}Iy(Z,L),this.__generatedMappings=Z;for(var A=0;A<z.length;A++)if(z[A]!=null)U7(z[A],XD.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...z)};u$.prototype._findMapping=function($,J,F,U,X,Y){if($[F]<=0)throw TypeError("Line must be greater than or equal to 1, got "+$[F]);if($[U]<0)throw TypeError("Column must be greater than or equal to 0, got "+$[U]);return Mj.search($,J,X,Y)};u$.prototype.computeColumnSpans=function(){for(var $=0;$<this._generatedMappings.length;++$){var J=this._generatedMappings[$];if($+1<this._generatedMappings.length){var F=this._generatedMappings[$+1];if(J.generatedLine===F.generatedLine){J.lastGeneratedColumn=F.generatedColumn-1;continue}}J.lastGeneratedColumn=1/0}};u$.prototype.originalPositionFor=function($){var J={generatedLine:XD.getArg($,"line"),generatedColumn:XD.getArg($,"column")},F=this._findMapping(J,this._generatedMappings,"generatedLine","generatedColumn",XD.compareByGeneratedPositionsDeflated,XD.getArg($,"bias",D$.GREATEST_LOWER_BOUND));if(F>=0){var U=this._generatedMappings[F];if(U.generatedLine===J.generatedLine){var X=XD.getArg(U,"source",null);if(X!==null)X=this._sources.at(X),X=XD.computeSourceURL(this.sourceRoot,X,this._sourceMapURL);var Y=XD.getArg(U,"name",null);if(Y!==null)Y=this._names.at(Y);return{source:X,line:XD.getArg(U,"originalLine",null),column:XD.getArg(U,"originalColumn",null),name:Y}}}return{source:null,line:null,column:null,name:null}};u$.prototype.hasContentsOfAllSources=function(){if(!this.sourcesContent)return!1;return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function($){return $==null})};u$.prototype.sourceContentFor=function($,J){if(!this.sourcesContent)return null;var F=this._findSourceIndex($);if(F>=0)return this.sourcesContent[F];var U=$;if(this.sourceRoot!=null)U=XD.relative(this.sourceRoot,U);var X;if(this.sourceRoot!=null&&(X=XD.urlParse(this.sourceRoot))){var Y=U.replace(/^file:\/\//,"");if(X.scheme=="file"&&this._sources.has(Y))return this.sourcesContent[this._sources.indexOf(Y)];if((!X.path||X.path=="/")&&this._sources.has("/"+U))return this.sourcesContent[this._sources.indexOf("/"+U)]}if(J)return null;else throw Error('"'+U+'" is not in the SourceMap.')};u$.prototype.generatedPositionFor=function($){var J=XD.getArg($,"source");if(J=this._findSourceIndex(J),J<0)return{line:null,column:null,lastColumn:null};var F={source:J,originalLine:XD.getArg($,"line"),originalColumn:XD.getArg($,"column")},U=this._findMapping(F,this._originalMappings,"originalLine","originalColumn",XD.compareByOriginalPositions,XD.getArg($,"bias",D$.GREATEST_LOWER_BOUND));if(U>=0){var X=this._originalMappings[U];if(X.source===F.source)return{line:XD.getArg(X,"generatedLine",null),column:XD.getArg(X,"generatedColumn",null),lastColumn:XD.getArg(X,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};gqD.BasicSourceMapConsumer=u$;function U6(D,$){var J=D;if(typeof D==="string")J=XD.parseSourceMapInput(D);var F=XD.getArg(J,"version"),U=XD.getArg(J,"sections");if(F!=this._version)throw Error("Unsupported version: "+F);this._sources=new L3,this._names=new L3;var X={line:-1,column:0};this._sections=U.map(function(Y){if(Y.url)throw Error("Support for url field in sections not implemented.");var Q=XD.getArg(Y,"offset"),q=XD.getArg(Q,"line"),K=XD.getArg(Q,"column");if(q<X.line||q===X.line&&K<X.column)throw Error("Section offsets must be ordered and non-overlapping.");return X=Q,{generatedOffset:{generatedLine:q+1,generatedColumn:K+1},consumer:new D$(XD.getArg(Y,"map"),$)}})}U6.prototype=Object.create(D$.prototype);U6.prototype.constructor=D$;U6.prototype._version=3;Object.defineProperty(U6.prototype,"sources",{get:function(){var D=[];for(var $=0;$<this._sections.length;$++)for(var J=0;J<this._sections[$].consumer.sources.length;J++)D.push(this._sections[$].consumer.sources[J]);return D}});U6.prototype.originalPositionFor=function($){var J={generatedLine:XD.getArg($,"line"),generatedColumn:XD.getArg($,"column")},F=Mj.search(J,this._sections,function(X,Y){var Q=X.generatedLine-Y.generatedOffset.generatedLine;if(Q)return Q;return X.generatedColumn-Y.generatedOffset.generatedColumn}),U=this._sections[F];if(!U)return{source:null,line:null,column:null,name:null};return U.consumer.originalPositionFor({line:J.generatedLine-(U.generatedOffset.generatedLine-1),column:J.generatedColumn-(U.generatedOffset.generatedLine===J.generatedLine?U.generatedOffset.generatedColumn-1:0),bias:$.bias})};U6.prototype.hasContentsOfAllSources=function(){return this._sections.every(function($){return $.consumer.hasContentsOfAllSources()})};U6.prototype.sourceContentFor=function($,J){for(var F=0;F<this._sections.length;F++){var U=this._sections[F],X=U.consumer.sourceContentFor($,!0);if(X||X==="")return X}if(J)return null;else throw Error('"'+$+'" is not in the SourceMap.')};U6.prototype.generatedPositionFor=function($){for(var J=0;J<this._sections.length;J++){var F=this._sections[J];if(F.consumer._findSourceIndex(XD.getArg($,"source"))===-1)continue;var U=F.consumer.generatedPositionFor($);if(U){var X={line:U.line+(F.generatedOffset.generatedLine-1),column:U.column+(F.generatedOffset.generatedLine===U.line?F.generatedOffset.generatedColumn-1:0)};return X}}return{line:null,column:null}};U6.prototype._parseMappings=function($,J){this.__generatedMappings=[],this.__originalMappings=[];for(var F=0;F<this._sections.length;F++){var U=this._sections[F],X=U.consumer._generatedMappings;for(var Y=0;Y<X.length;Y++){var Q=X[Y],q=U.consumer._sources.at(Q.source);if(q!==null)q=XD.computeSourceURL(U.consumer.sourceRoot,q,this._sourceMapURL);this._sources.add(q),q=this._sources.indexOf(q);var K=null;if(Q.name)K=U.consumer._names.at(Q.name),this._names.add(K),K=this._names.indexOf(K);var W={source:q,generatedLine:Q.generatedLine+(U.generatedOffset.generatedLine-1),generatedColumn:Q.generatedColumn+(U.generatedOffset.generatedLine===Q.generatedLine?U.generatedOffset.generatedColumn-1:0),originalLine:Q.originalLine,originalColumn:Q.originalColumn,name:K};if(this.__generatedMappings.push(W),typeof W.originalLine==="number")this.__originalMappings.push(W)}}U7(this.__generatedMappings,XD.compareByGeneratedPositionsDeflated),U7(this.__originalMappings,XD.compareByOriginalPositions)};gqD.IndexedSourceMapConsumer=U6});var Hy=u((iqD)=>{var hqD=Vj().SourceMapGenerator,oX=V3(),mqD=/(\r?\n)/,lqD=10,w3="$$$isSourceNode$$$";function S0(D,$,J,F,U){if(this.children=[],this.sourceContents={},this.line=D==null?null:D,this.column=$==null?null:$,this.source=J==null?null:J,this.name=U==null?null:U,this[w3]=!0,F!=null)this.add(F)}S0.fromStringWithSourceMap=function($,J,F){var U=new S0,X=$.split(mqD),Y=0,Q=function(){var I=Z(),z=Z()||"";return I+z;function Z(){return Y<X.length?X[Y++]:void 0}},q=1,K=0,W=null;if(J.eachMapping(function(I){if(W!==null)if(q<I.generatedLine)G(W,Q()),q++,K=0;else{var z=X[Y]||"",Z=z.substr(0,I.generatedColumn-K);X[Y]=z.substr(I.generatedColumn-K),K=I.generatedColumn,G(W,Z),W=I;return}while(q<I.generatedLine)U.add(Q()),q++;if(K<I.generatedColumn){var z=X[Y]||"";U.add(z.substr(0,I.generatedColumn)),X[Y]=z.substr(I.generatedColumn),K=I.generatedColumn}W=I},this),Y<X.length){if(W)G(W,Q());U.add(X.splice(Y).join(""))}return J.sources.forEach(function(I){var z=J.sourceContentFor(I);if(z!=null){if(F!=null)I=oX.join(F,I);U.setSourceContent(I,z)}}),U;function G(I,z){if(I===null||I.source===void 0)U.add(z);else{var Z=F?oX.join(F,I.source):I.source;U.add(new S0(I.originalLine,I.originalColumn,Z,z,I.name))}}};S0.prototype.add=function($){if(Array.isArray($))$.forEach(function(J){this.add(J)},this);else if($[w3]||typeof $==="string"){if($)this.children.push($)}else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+$);return this};S0.prototype.prepend=function($){if(Array.isArray($))for(var J=$.length-1;J>=0;J--)this.prepend($[J]);else if($[w3]||typeof $==="string")this.children.unshift($);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+$);return this};S0.prototype.walk=function($){var J;for(var F=0,U=this.children.length;F<U;F++)if(J=this.children[F],J[w3])J.walk($);else if(J!=="")$(J,{source:this.source,line:this.line,column:this.column,name:this.name})};S0.prototype.join=function($){var J,F,U=this.children.length;if(U>0){J=[];for(F=0;F<U-1;F++)J.push(this.children[F]),J.push($);J.push(this.children[F]),this.children=J}return this};S0.prototype.replaceRight=function($,J){var F=this.children[this.children.length-1];if(F[w3])F.replaceRight($,J);else if(typeof F==="string")this.children[this.children.length-1]=F.replace($,J);else this.children.push("".replace($,J));return this};S0.prototype.setSourceContent=function($,J){this.sourceContents[oX.toSetString($)]=J};S0.prototype.walkSourceContents=function($){for(var J=0,F=this.children.length;J<F;J++)if(this.children[J][w3])this.children[J].walkSourceContents($);var U=Object.keys(this.sourceContents);for(var J=0,F=U.length;J<F;J++)$(oX.fromSetString(U[J]),this.sourceContents[U[J]])};S0.prototype.toString=function(){var $="";return this.walk(function(J){$+=J}),$};S0.prototype.toStringWithSourceMap=function($){var J={code:"",line:1,column:0},F=new hqD($),U=!1,X=null,Y=null,Q=null,q=null;return this.walk(function(K,W){if(J.code+=K,W.source!==null&&W.line!==null&&W.column!==null){if(X!==W.source||Y!==W.line||Q!==W.column||q!==W.name)F.addMapping({source:W.source,original:{line:W.line,column:W.column},generated:{line:J.line,column:J.column},name:W.name});X=W.source,Y=W.line,Q=W.column,q=W.name,U=!0}else if(U)F.addMapping({generated:{line:J.line,column:J.column}}),X=null,U=!1;for(var G=0,I=K.length;G<I;G++)if(K.charCodeAt(G)===lqD){if(J.line++,J.column=0,G+1===I)X=null,U=!1;else if(U)F.addMapping({source:W.source,original:{line:W.line,column:W.column},generated:{line:J.line,column:J.column},name:W.name})}else J.column++}),this.walkSourceContents(function(K,W){F.setSourceContent(K,W)}),{code:J.code,map:F}};iqD.SourceNode=S0});var By=u((cqD)=>{cqD.SourceMapGenerator=Vj().SourceMapGenerator;cqD.SourceMapConsumer=Zy().SourceMapConsumer;cqD.SourceNode=Hy().SourceNode});var gh=u((uh)=>{Object.defineProperty(uh,"__esModule",{value:!0});var o=CO(),G2=ef(),E3=nx(),tqD=rx(),oqD=By(),v3=Symbol("Fragment"),A3=Symbol("Teleport"),IY=Symbol("Suspense"),Y7=Symbol("KeepAlive"),uj=Symbol("BaseTransition"),a1=Symbol("openBlock"),gj=Symbol("createBlock"),fj=Symbol("createElementBlock"),zY=Symbol("createVNode"),ZY=Symbol("createElementVNode"),_3=Symbol("createCommentVNode"),HY=Symbol("createTextVNode"),xj=Symbol("createStaticVNode"),Q7=Symbol("resolveComponent"),BY=Symbol("resolveDynamicComponent"),OY=Symbol("resolveDirective"),jY=Symbol("resolveFilter"),NY=Symbol("withDirectives"),VY=Symbol("renderList"),yj=Symbol("renderSlot"),hj=Symbol("createSlots"),LY=Symbol("toDisplayString"),q7=Symbol("mergeProps"),wY=Symbol("normalizeClass"),RY=Symbol("normalizeStyle"),T3=Symbol("normalizeProps"),k3=Symbol("guardReactiveProps"),MY=Symbol("toHandlers"),XY=Symbol("camelize"),Cy=Symbol("capitalize"),YY=Symbol("toHandlerKey"),K7=Symbol("setBlockTracking"),uy=Symbol("pushScopeId"),gy=Symbol("popScopeId"),EY=Symbol("withCtx"),W7=Symbol("unref"),G7=Symbol("isRef"),AY=Symbol("withMemo"),mj=Symbol("isMemoSame"),j0={[v3]:"Fragment",[A3]:"Teleport",[IY]:"Suspense",[Y7]:"KeepAlive",[uj]:"BaseTransition",[a1]:"openBlock",[gj]:"createBlock",[fj]:"createElementBlock",[zY]:"createVNode",[ZY]:"createElementVNode",[_3]:"createCommentVNode",[HY]:"createTextVNode",[xj]:"createStaticVNode",[Q7]:"resolveComponent",[BY]:"resolveDynamicComponent",[OY]:"resolveDirective",[jY]:"resolveFilter",[NY]:"withDirectives",[VY]:"renderList",[yj]:"renderSlot",[hj]:"createSlots",[LY]:"toDisplayString",[q7]:"mergeProps",[wY]:"normalizeClass",[RY]:"normalizeStyle",[T3]:"normalizeProps",[k3]:"guardReactiveProps",[MY]:"toHandlers",[XY]:"camelize",[Cy]:"capitalize",[YY]:"toHandlerKey",[K7]:"setBlockTracking",[uy]:"pushScopeId",[gy]:"popScopeId",[EY]:"withCtx",[W7]:"unref",[G7]:"isRef",[AY]:"withMemo",[mj]:"isMemoSame"};function aqD(D){Object.getOwnPropertySymbols(D).forEach(($)=>{j0[$]=D[$]})}var sqD={HTML:0,"0":"HTML",SVG:1,"1":"SVG",MATH_ML:2,"2":"MATH_ML"},eqD={ROOT:0,"0":"ROOT",ELEMENT:1,"1":"ELEMENT",TEXT:2,"2":"TEXT",COMMENT:3,"3":"COMMENT",SIMPLE_EXPRESSION:4,"4":"SIMPLE_EXPRESSION",INTERPOLATION:5,"5":"INTERPOLATION",ATTRIBUTE:6,"6":"ATTRIBUTE",DIRECTIVE:7,"7":"DIRECTIVE",COMPOUND_EXPRESSION:8,"8":"COMPOUND_EXPRESSION",IF:9,"9":"IF",IF_BRANCH:10,"10":"IF_BRANCH",FOR:11,"11":"FOR",TEXT_CALL:12,"12":"TEXT_CALL",VNODE_CALL:13,"13":"VNODE_CALL",JS_CALL_EXPRESSION:14,"14":"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,"15":"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,"16":"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,"17":"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,"18":"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,"19":"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,"20":"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,"21":"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,"22":"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,"23":"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,"24":"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,"25":"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,"26":"JS_RETURN_STATEMENT"},DKD={ELEMENT:0,"0":"ELEMENT",COMPONENT:1,"1":"COMPONENT",SLOT:2,"2":"SLOT",TEMPLATE:3,"3":"TEMPLATE"},$KD={NOT_CONSTANT:0,"0":"NOT_CONSTANT",CAN_SKIP_PATCH:1,"1":"CAN_SKIP_PATCH",CAN_CACHE:2,"2":"CAN_CACHE",CAN_STRINGIFY:3,"3":"CAN_STRINGIFY"},V$={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function fy(D,$=""){return{type:0,source:$,children:D,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:V$}}function b3(D,$,J,F,U,X,Y,Q=!1,q=!1,K=!1,W=V$){if(D){if(Q)D.helper(a1),D.helper(B2(D.inSSR,K));else D.helper(H2(D.inSSR,K));if(Y)D.helper(NY)}return{type:13,tag:$,props:J,children:F,patchFlag:U,dynamicProps:X,directives:Y,isBlock:Q,disableTracking:q,isComponent:K,loc:W}}function t1(D,$=V$){return{type:17,loc:$,elements:D}}function C0(D,$=V$){return{type:15,loc:$,properties:D}}function N$(D,$){return{type:16,loc:V$,key:o.isString(D)?OD(D,!0):D,value:$}}function OD(D,$=!1,J=V$,F=0){return{type:4,loc:J,content:D,isStatic:$,constType:$?3:F}}function JKD(D,$){return{type:5,loc:$,content:o.isString(D)?OD(D,!1,$):D}}function k0(D,$=V$){return{type:8,loc:$,children:D}}function x$(D,$=[],J=V$){return{type:14,loc:J,callee:D,arguments:$}}function Z2(D,$=void 0,J=!1,F=!1,U=V$){return{type:18,params:D,returns:$,newline:J,isSlot:F,loc:U}}function QY(D,$,J,F=!0){return{type:19,test:D,consequent:$,alternate:J,newline:F,loc:V$}}function xy(D,$,J=!1,F=!1){return{type:20,index:D,value:$,needPauseTracking:J,inVOnce:F,needArraySpread:!1,loc:V$}}function yy(D){return{type:21,body:D,loc:V$}}function FKD(D){return{type:22,elements:D,loc:V$}}function UKD(D,$,J){return{type:23,test:D,consequent:$,alternate:J,loc:V$}}function XKD(D,$){return{type:24,left:D,right:$,loc:V$}}function YKD(D){return{type:25,expressions:D,loc:V$}}function QKD(D){return{type:26,returns:D,loc:V$}}function H2(D,$){return D||$?zY:ZY}function B2(D,$){return D||$?gj:fj}function vY(D,{helper:$,removeHelper:J,inSSR:F}){if(!D.isBlock)D.isBlock=!0,J(H2(F,D.isComponent)),$(a1),$(B2(F,D.isComponent))}var Oy=new Uint8Array([123,123]),jy=new Uint8Array([125,125]);function Ny(D){return D>=97&&D<=122||D>=65&&D<=90}function _0(D){return D===32||D===10||D===9||D===12||D===13}function n1(D){return D===47||D===62||_0(D)}function qY(D){let $=new Uint8Array(D.length);for(let J=0;J<D.length;J++)$[J]=D.charCodeAt(J);return $}var g$={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class hy{constructor(D,$){this.stack=D,this.cbs=$,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Oy,this.delimiterClose=jy,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0,this.entityDecoder=new G2.EntityDecoder(G2.htmlDecodeTree,(J,F)=>this.emitCodePoint(J,F))}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Oy,this.delimiterClose=jy}getPos(D){let $=1,J=D+1,F=this.newlines.length,U=-1;if(F>100){let X=-1,Y=F;while(X+1<Y){let Q=X+Y>>>1;this.newlines[Q]<D?X=Q:Y=Q}U=X}else for(let X=F-1;X>=0;X--)if(D>this.newlines[X]){U=X;break}if(U>=0)$=U+2,J=D-this.newlines[U];return{column:J,line:$,offset:D}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(D){if(D===60){if(this.index>this.sectionStart)this.cbs.ontext(this.sectionStart,this.index);this.state=5,this.sectionStart=this.index}else if(D===38)this.startEntity();else if(!this.inVPre&&D===this.delimiterOpen[0])this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(D)}stateInterpolationOpen(D){if(D===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){let $=this.index+1-this.delimiterOpen.length;if($>this.sectionStart)this.cbs.ontext(this.sectionStart,$);this.state=3,this.sectionStart=$}else this.delimiterIndex++;else if(this.inRCDATA)this.state=32,this.stateInRCDATA(D);else this.state=1,this.stateText(D)}stateInterpolation(D){if(D===this.delimiterClose[0])this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(D)}stateInterpolationClose(D){if(D===this.delimiterClose[this.delimiterIndex])if(this.delimiterIndex===this.delimiterClose.length-1){if(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA)this.state=32;else this.state=1;this.sectionStart=this.index+1}else this.delimiterIndex++;else this.state=3,this.stateInterpolation(D)}stateSpecialStartSequence(D){let $=this.sequenceIndex===this.currentSequence.length;if(!($?n1(D):(D|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!$){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(D)}stateInRCDATA(D){if(this.sequenceIndex===this.currentSequence.length){if(D===62||_0(D)){let $=this.index-this.currentSequence.length;if(this.sectionStart<$){let J=this.index;this.index=$,this.cbs.ontext(this.sectionStart,$),this.index=J}this.sectionStart=$+2,this.stateInClosingTagName(D),this.inRCDATA=!1;return}this.sequenceIndex=0}if((D|32)===this.currentSequence[this.sequenceIndex])this.sequenceIndex+=1;else if(this.sequenceIndex===0){if(this.currentSequence===g$.TitleEnd||this.currentSequence===g$.TextareaEnd&&!this.inSFCRoot){if(D===38)this.startEntity();else if(!this.inVPre&&D===this.delimiterOpen[0])this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(D)}else if(this.fastForwardTo(60))this.sequenceIndex=1}else this.sequenceIndex=Number(D===60)}stateCDATASequence(D){if(D===g$.Cdata[this.sequenceIndex]){if(++this.sequenceIndex===g$.Cdata.length)this.state=28,this.currentSequence=g$.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1}else this.sequenceIndex=0,this.state=23,this.stateInDeclaration(D)}fastForwardTo(D){while(++this.index<this.buffer.length){let $=this.buffer.charCodeAt(this.index);if($===10)this.newlines.push(this.index);if($===D)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(D){if(D===this.currentSequence[this.sequenceIndex]){if(++this.sequenceIndex===this.currentSequence.length){if(this.currentSequence===g$.CdataEnd)this.cbs.oncdata(this.sectionStart,this.index-2);else this.cbs.oncomment(this.sectionStart,this.index-2);this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1}}else if(this.sequenceIndex===0){if(this.fastForwardTo(this.currentSequence[0]))this.sequenceIndex=1}else if(D!==this.currentSequence[this.sequenceIndex-1])this.sequenceIndex=0}startSpecial(D,$){this.enterRCDATA(D,$),this.state=31}enterRCDATA(D,$){this.inRCDATA=!0,this.currentSequence=D,this.sequenceIndex=$}stateBeforeTagName(D){if(D===33)this.state=22,this.sectionStart=this.index+1;else if(D===63)this.state=24,this.sectionStart=this.index+1;else if(Ny(D))if(this.sectionStart=this.index,this.mode===0)this.state=6;else if(this.inSFCRoot)this.state=34;else if(!this.inXML)if(D===116)this.state=30;else this.state=D===115?29:6;else this.state=6;else if(D===47)this.state=8;else this.state=1,this.stateText(D)}stateInTagName(D){if(n1(D))this.handleTagName(D)}stateInSFCRootTagName(D){if(n1(D)){let $=this.buffer.slice(this.sectionStart,this.index);if($!=="template")this.enterRCDATA(qY("</"+$),0);this.handleTagName(D)}}handleTagName(D){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(D)}stateBeforeClosingTagName(D){if(_0(D));else if(D===62)this.cbs.onerr(14,this.index),this.state=1,this.sectionStart=this.index+1;else this.state=Ny(D)?9:27,this.sectionStart=this.index}stateInClosingTagName(D){if(D===62||_0(D))this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(D)}stateAfterClosingTagName(D){if(D===62)this.state=1,this.sectionStart=this.index+1}stateBeforeAttrName(D){if(D===62){if(this.cbs.onopentagend(this.index),this.inRCDATA)this.state=32;else this.state=1;this.sectionStart=this.index+1}else if(D===47){if(this.state=7,this.peek()!==62)this.cbs.onerr(22,this.index)}else if(D===60&&this.peek()===47)this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index;else if(!_0(D)){if(D===61)this.cbs.onerr(19,this.index);this.handleAttrStart(D)}}handleAttrStart(D){if(D===118&&this.peek()===45)this.state=13,this.sectionStart=this.index;else if(D===46||D===58||D===64||D===35)this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1;else this.state=12,this.sectionStart=this.index}stateInSelfClosingTag(D){if(D===62)this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1;else if(!_0(D))this.state=11,this.stateBeforeAttrName(D)}stateInAttrName(D){if(D===61||n1(D))this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(D);else if(D===34||D===39||D===60)this.cbs.onerr(17,this.index)}stateInDirName(D){if(D===61||n1(D))this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(D);else if(D===58)this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1;else if(D===46)this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1}stateInDirArg(D){if(D===61||n1(D))this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(D);else if(D===91)this.state=15;else if(D===46)this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1}stateInDynamicDirArg(D){if(D===93)this.state=14;else if(D===61||n1(D))this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(D),this.cbs.onerr(27,this.index)}stateInDirModifier(D){if(D===61||n1(D))this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(D);else if(D===46)this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1}handleAttrNameEnd(D){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(D)}stateAfterAttrName(D){if(D===61)this.state=18;else if(D===47||D===62)this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(D);else if(!_0(D))this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(D)}stateBeforeAttrValue(D){if(D===34)this.state=19,this.sectionStart=this.index+1;else if(D===39)this.state=20,this.sectionStart=this.index+1;else if(!_0(D))this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(D)}handleInAttrValue(D,$){if(D===$)this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend($===34?3:2,this.index+1),this.state=11;else if(D===38)this.startEntity()}stateInAttrValueDoubleQuotes(D){this.handleInAttrValue(D,34)}stateInAttrValueSingleQuotes(D){this.handleInAttrValue(D,39)}stateInAttrValueNoQuotes(D){if(_0(D)||D===62)this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(D);else if(D===34||D===39||D===60||D===61||D===96)this.cbs.onerr(18,this.index);else if(D===38)this.startEntity()}stateBeforeDeclaration(D){if(D===91)this.state=26,this.sequenceIndex=0;else this.state=D===45?25:23}stateInDeclaration(D){if(D===62||this.fastForwardTo(62))this.state=1,this.sectionStart=this.index+1}stateInProcessingInstruction(D){if(D===62||this.fastForwardTo(62))this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1}stateBeforeComment(D){if(D===45)this.state=28,this.currentSequence=g$.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1;else this.state=23}stateInSpecialComment(D){if(D===62||this.fastForwardTo(62))this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1}stateBeforeSpecialS(D){if(D===g$.ScriptEnd[3])this.startSpecial(g$.ScriptEnd,4);else if(D===g$.StyleEnd[3])this.startSpecial(g$.StyleEnd,4);else this.state=6,this.stateInTagName(D)}stateBeforeSpecialT(D){if(D===g$.TitleEnd[3])this.startSpecial(g$.TitleEnd,4);else if(D===g$.TextareaEnd[3])this.startSpecial(g$.TextareaEnd,4);else this.state=6,this.stateInTagName(D)}startEntity(){this.baseState=this.state,this.state=33,this.entityStart=this.index,this.entityDecoder.startEntity(this.baseState===1||this.baseState===32?G2.DecodingMode.Legacy:G2.DecodingMode.Attribute)}stateInEntity(){{let D=this.entityDecoder.write(this.buffer,this.index);if(D>=0){if(this.state=this.baseState,D===0)this.index=this.entityStart}else this.index=this.buffer.length-1}}parse(D){this.buffer=D;while(this.index<this.buffer.length){let $=this.buffer.charCodeAt(this.index);if($===10&&this.state!==33)this.newlines.push(this.index);switch(this.state){case 1:{this.stateText($);break}case 2:{this.stateInterpolationOpen($);break}case 3:{this.stateInterpolation($);break}case 4:{this.stateInterpolationClose($);break}case 31:{this.stateSpecialStartSequence($);break}case 32:{this.stateInRCDATA($);break}case 26:{this.stateCDATASequence($);break}case 19:{this.stateInAttrValueDoubleQuotes($);break}case 12:{this.stateInAttrName($);break}case 13:{this.stateInDirName($);break}case 14:{this.stateInDirArg($);break}case 15:{this.stateInDynamicDirArg($);break}case 16:{this.stateInDirModifier($);break}case 28:{this.stateInCommentLike($);break}case 27:{this.stateInSpecialComment($);break}case 11:{this.stateBeforeAttrName($);break}case 6:{this.stateInTagName($);break}case 34:{this.stateInSFCRootTagName($);break}case 9:{this.stateInClosingTagName($);break}case 5:{this.stateBeforeTagName($);break}case 17:{this.stateAfterAttrName($);break}case 20:{this.stateInAttrValueSingleQuotes($);break}case 18:{this.stateBeforeAttrValue($);break}case 8:{this.stateBeforeClosingTagName($);break}case 10:{this.stateAfterClosingTagName($);break}case 29:{this.stateBeforeSpecialS($);break}case 30:{this.stateBeforeSpecialT($);break}case 21:{this.stateInAttrValueNoQuotes($);break}case 7:{this.stateInSelfClosingTag($);break}case 23:{this.stateInDeclaration($);break}case 22:{this.stateBeforeDeclaration($);break}case 25:{this.stateBeforeComment($);break}case 24:{this.stateInProcessingInstruction($);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){if(this.sectionStart!==this.index){if(this.state===1||this.state===32&&this.sequenceIndex===0)this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index;else if(this.state===19||this.state===20||this.state===21)this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index}}finish(){if(this.state===33)this.entityDecoder.end(),this.state=this.baseState;this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let D=this.buffer.length;if(this.sectionStart>=D)return;if(this.state===28)if(this.currentSequence===g$.CdataEnd)this.cbs.oncdata(this.sectionStart,D);else this.cbs.oncomment(this.sectionStart,D);else if(this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9);else this.cbs.ontext(this.sectionStart,D)}emitCodePoint(D,$){if(this.baseState!==1&&this.baseState!==32){if(this.sectionStart<this.entityStart)this.cbs.onattribdata(this.sectionStart,this.entityStart);this.sectionStart=this.entityStart+$,this.index=this.sectionStart-1,this.cbs.onattribentity(G2.fromCodePoint(D),this.entityStart,this.sectionStart)}else{if(this.sectionStart<this.entityStart)this.cbs.ontext(this.sectionStart,this.entityStart);this.sectionStart=this.entityStart+$,this.index=this.sectionStart-1,this.cbs.ontextentity(G2.fromCodePoint(D),this.entityStart,this.sectionStart)}}}var qKD={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},KKD={["COMPILER_IS_ON_ELEMENT"]:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},["COMPILER_V_BIND_SYNC"]:{message:(D)=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${D}.sync\` should be changed to \`v-model:${D}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},["COMPILER_V_BIND_OBJECT_ORDER"]:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},["COMPILER_V_ON_NATIVE"]:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},["COMPILER_V_IF_V_FOR_PRECEDENCE"]:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},["COMPILER_NATIVE_TEMPLATE"]:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},["COMPILER_INLINE_TEMPLATE"]:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},["COMPILER_FILTERS"]:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function Aj(D,{compatConfig:$}){let J=$&&$[D];if(D==="MODE")return J||3;else return J}function o1(D,$){let J=Aj("MODE",$),F=Aj(D,$);return J===3?F===!0:F!==!1}function P3(D,$,J,...F){let U=o1(D,$);if(U)I7(D,$,J,...F);return U}function I7(D,$,J,...F){if(Aj(D,$)==="suppress-warning")return;let{message:X,link:Y}=KKD[D],Q=`(deprecation ${D}) ${typeof X==="function"?X(...F):X}${Y?`
Details: ${Y}`:""}`,q=SyntaxError(Q);if(q.code=D,J)q.loc=J;$.onWarn(q)}function lj(D){throw D}function my(D){console.warn(`[Vue warn] ${D.message}`)}function mD(D,$,J,F){let U=(J||ly)[D]+(F||""),X=SyntaxError(String(U));return X.code=D,X.loc=$,X}var WKD={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,"0":"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,"1":"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,"2":"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,"3":"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,"4":"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,"5":"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,"6":"EOF_IN_CDATA",EOF_IN_COMMENT:7,"7":"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,"8":"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,"9":"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,"10":"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,"11":"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,"12":"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,"13":"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,"14":"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,"15":"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,"16":"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,"17":"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,"18":"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,"19":"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,"20":"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,"21":"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,"22":"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,"23":"X_INVALID_END_TAG",X_MISSING_END_TAG:24,"24":"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,"25":"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,"26":"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,"27":"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,"28":"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,"29":"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,"30":"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,"31":"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,"32":"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,"33":"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,"34":"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,"35":"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,"36":"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,"37":"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,"38":"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,"39":"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,"40":"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,"41":"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,"42":"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,"43":"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,"44":"X_V_MODEL_ON_PROPS",X_V_MODEL_ON_CONST:45,"45":"X_V_MODEL_ON_CONST",X_INVALID_EXPRESSION:46,"46":"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:47,"47":"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:48,"48":"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:49,"49":"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:50,"50":"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:51,"51":"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:52,"52":"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:53,"53":"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:54,"54":"__EXTEND_POINT__"},ly={[0]:"Illegal comment.",[1]:"CDATA section is allowed only in XML context.",[2]:"Duplicate attribute.",[3]:"End tag cannot have attributes.",[4]:"Illegal '/' in tags.",[5]:"Unexpected EOF in tag.",[6]:"Unexpected EOF in CDATA section.",[7]:"Unexpected EOF in comment.",[8]:"Unexpected EOF in script.",[9]:"Unexpected EOF in tag.",[10]:"Incorrectly closed comment.",[11]:"Incorrectly opened comment.",[12]:"Illegal tag name. Use '<' to print '<'.",[13]:"Attribute value was expected.",[14]:"End tag name was expected.",[15]:"Whitespace was expected.",[16]:"Unexpected '<!--' in comment.",[17]:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,[18]:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",[19]:"Attribute name cannot start with '='.",[21]:"'<?' is allowed only in XML context.",[20]:"Unexpected null character.",[22]:"Illegal '/' in tags.",[23]:"Invalid end tag.",[24]:"Element is missing end tag.",[25]:"Interpolation end sign was not found.",[27]:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",[26]:"Legal directive name was expected.",[28]:"v-if/v-else-if is missing expression.",[29]:"v-if/else branches must use unique keys.",[30]:"v-else/v-else-if has no adjacent v-if or v-else-if.",[31]:"v-for is missing expression.",[32]:"v-for has invalid expression.",[33]:"<template v-for> key should be placed on the <template> tag.",[34]:"v-bind is missing expression.",[53]:"v-bind with same-name shorthand only allows static argument.",[35]:"v-on is missing expression.",[36]:"Unexpected custom directive on <slot> outlet.",[37]:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",[38]:"Duplicate slot names found. ",[39]:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",[40]:"v-slot can only be used on components or <template> tags.",[41]:"v-model is missing expression.",[42]:"v-model value must be a valid JavaScript member expression.",[43]:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",[44]:`v-model cannot be used on a prop, because local prop bindings are not writable.
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,[45]:"v-model cannot be used on a const binding because it is not writable.",[46]:"Error parsing JavaScript expression: ",[47]:"<KeepAlive> expects exactly one child component.",[52]:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",[48]:'"prefixIdentifiers" option is not supported in this build of compiler.',[49]:"ES module mode is not supported in this build of compiler.",[50]:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',[51]:'"scopeId" option is only supported in module mode.',[54]:""};function iy(D,$,J=!1,F=[],U=Object.create(null)){let X=D.type==="Program"?D.body[0].type==="ExpressionStatement"&&D.body[0].expression:D;tqD.walk(D,{enter(Y,Q){if(Q&&F.push(Q),Q&&Q.type.startsWith("TS")&&!cj.includes(Q.type))return this.skip();if(Y.type==="Identifier"){let q=!!U[Y.name],K=dy(Y,Q,F);if(J||K&&!q)$(Y,Q,F,K,q)}else if(Y.type==="ObjectProperty"&&(Q==null?void 0:Q.type)==="ObjectPattern")Y.inPattern=!0;else if(oy(Y))if(Y.scopeIds)Y.scopeIds.forEach((q)=>M3(q,U));else ny(Y,(q)=>X7(Y,q,U));else if(Y.type==="BlockStatement")if(Y.scopeIds)Y.scopeIds.forEach((q)=>M3(q,U));else ij(Y,(q)=>X7(Y,q,U));else if(Y.type==="SwitchStatement")if(Y.scopeIds)Y.scopeIds.forEach((q)=>M3(q,U));else ty(Y,!1,(q)=>X7(Y,q,U));else if(Y.type==="CatchClause"&&Y.param)if(Y.scopeIds)Y.scopeIds.forEach((q)=>M3(q,U));else for(let q of X6(Y.param))X7(Y,q,U);else if(py(Y))if(Y.scopeIds)Y.scopeIds.forEach((q)=>M3(q,U));else ry(Y,!1,(q)=>X7(Y,q,U))},leave(Y,Q){if(Q&&F.pop(),Y!==X&&Y.scopeIds){for(let q of Y.scopeIds)if(U[q]--,U[q]===0)delete U[q]}}})}function dy(D,$,J){if(!$)return!0;if(D.name==="arguments")return!1;if(GKD(D,$,J[J.length-2]))return!0;switch($.type){case"AssignmentExpression":case"AssignmentPattern":return!0;case"ObjectProperty":return $.key!==D&&KY($,J);case"ArrayPattern":return KY($,J)}return!1}function KY(D,$){if(D&&(D.type==="ObjectProperty"||D.type==="ArrayPattern")){let J=$.length;while(J--){let F=$[J];if(F.type==="AssignmentExpression")return!0;else if(F.type!=="ObjectProperty"&&!F.type.endsWith("Pattern"))break}}return!1}function cy(D){let $=D.length;while($--){let J=D[$];if(J.type==="NewExpression")return!0;else if(J.type!=="MemberExpression")break}return!1}function ny(D,$){for(let J of D.params)for(let F of X6(J))$(F)}function ij(D,$){let J=D.type==="SwitchCase"?D.consequent:D.body;for(let F of J)if(F.type==="VariableDeclaration"){if(F.declare)continue;for(let U of F.declarations)for(let X of X6(U.id))$(X)}else if(F.type==="FunctionDeclaration"||F.type==="ClassDeclaration"){if(F.declare||!F.id)continue;$(F.id)}else if(py(F))ry(F,!0,$);else if(F.type==="SwitchStatement")ty(F,!0,$)}function py(D){return D.type==="ForOfStatement"||D.type==="ForInStatement"||D.type==="ForStatement"}function ry(D,$,J){let F=D.type==="ForStatement"?D.init:D.left;if(F&&F.type==="VariableDeclaration"&&(F.kind==="var"?$:!$))for(let U of F.declarations)for(let X of X6(U.id))J(X)}function ty(D,$,J){for(let F of D.cases){for(let U of F.consequent)if(U.type==="VariableDeclaration"&&(U.kind==="var"?$:!$))for(let X of U.declarations)for(let Y of X6(X.id))J(Y);ij(F,J)}}function X6(D,$=[]){switch(D.type){case"Identifier":$.push(D);break;case"MemberExpression":let J=D;while(J.type==="MemberExpression")J=J.object;$.push(J);break;case"ObjectPattern":for(let F of D.properties)if(F.type==="RestElement")X6(F.argument,$);else X6(F.value,$);break;case"ArrayPattern":D.elements.forEach((F)=>{if(F)X6(F,$)});break;case"RestElement":X6(D.argument,$);break;case"AssignmentPattern":X6(D.left,$);break}return $}function M3(D,$){if(D in $)$[D]++;else $[D]=1}function X7(D,$,J){let{name:F}=$;if(D.scopeIds&&D.scopeIds.has(F))return;M3(F,J),(D.scopeIds||(D.scopeIds=new Set)).add(F)}var oy=(D)=>{return/Function(?:Expression|Declaration)$|Method$/.test(D.type)},dj=(D)=>D&&(D.type==="ObjectProperty"||D.type==="ObjectMethod")&&!D.computed,ay=(D,$)=>dj($)&&$.key===D;function GKD(D,$,J){switch($.type){case"MemberExpression":case"OptionalMemberExpression":if($.property===D)return!!$.computed;return $.object===D;case"JSXMemberExpression":return $.object===D;case"VariableDeclarator":return $.init===D;case"ArrowFunctionExpression":return $.body===D;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if($.key===D)return!!$.computed;return!1;case"ObjectProperty":if($.key===D)return!!$.computed;return!J||J.type!=="ObjectPattern";case"ClassProperty":if($.key===D)return!!$.computed;return!0;case"ClassPrivateProperty":return $.key!==D;case"ClassDeclaration":case"ClassExpression":return $.superClass===D;case"AssignmentExpression":return $.right===D;case"AssignmentPattern":return $.right===D;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":if(J==null?void 0:J.source)return!1;return $.local===D;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return $.key!==D;case"TSEnumMember":return $.id!==D;case"TSPropertySignature":if($.key===D)return!!$.computed;return!0}return!0}var cj=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function TY(D){if(cj.includes(D.type))return TY(D.expression);else return D}var Y6=(D)=>D.type===4&&D.isStatic;function nj(D){switch(D){case"Teleport":case"teleport":return A3;case"Suspense":case"suspense":return IY;case"KeepAlive":case"keep-alive":return Y7;case"BaseTransition":case"base-transition":return uj}}var IKD=/^$|^\d|[^\$\w\xA0-\uFFFF]/,e6=(D)=>!IKD.test(D),pj=/[A-Za-z_$\xA0-\uFFFF]/,zKD=/[\.\?\w$\xA0-\uFFFF]/,ZKD=/\s+[.[]\s*|\s*[.[]\s+/g,bY=(D)=>D.type===4?D.content:D.loc.source,HKD=(D)=>{let $=bY(D).trim().replace(ZKD,(Q)=>Q.trim()),J=0,F=[],U=0,X=0,Y=null;for(let Q=0;Q<$.length;Q++){let q=$.charAt(Q);switch(J){case 0:if(q==="[")F.push(J),J=1,U++;else if(q==="(")F.push(J),J=2,X++;else if(!(Q===0?pj:zKD).test(q))return!1;break;case 1:if(q==="'"||q==='"'||q==="`")F.push(J),J=3,Y=q;else if(q==="[")U++;else if(q==="]"){if(!--U)J=F.pop()}break;case 2:if(q==="'"||q==='"'||q==="`")F.push(J),J=3,Y=q;else if(q==="(")X++;else if(q===")"){if(Q===$.length-1)return!1;if(!--X)J=F.pop()}break;case 3:if(q===Y)J=F.pop(),Y=null;break}}return!U&&!X},sy=(D,$)=>{try{let J=D.ast||E3.parseExpression(bY(D),{plugins:$.expressionPlugins?[...$.expressionPlugins,"typescript"]:["typescript"]});return J=TY(J),J.type==="MemberExpression"||J.type==="OptionalMemberExpression"||J.type==="Identifier"&&J.name!=="undefined"}catch(J){return!1}},rj=sy,BKD=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,OKD=(D)=>BKD.test(bY(D)),ey=(D,$)=>{try{let J=D.ast||E3.parseExpression(bY(D),{plugins:$.expressionPlugins?[...$.expressionPlugins,"typescript"]:["typescript"]});if(J.type==="Program"){if(J=J.body[0],J.type==="ExpressionStatement")J=J.expression}return J=TY(J),J.type==="FunctionExpression"||J.type==="ArrowFunctionExpression"}catch(J){return!1}},Dh=ey;function vj(D,$,J=$.length){return tj({offset:D.offset,line:D.line,column:D.column},$,J)}function tj(D,$,J=$.length){let F=0,U=-1;for(let X=0;X<J;X++)if($.charCodeAt(X)===10)F++,U=X;return D.offset+=J,D.line+=F,D.column=U===-1?D.column+J:J-U,D}function Tj(D,$){if(!D)throw Error($||"unexpected compiler condition")}function q0(D,$,J=!1){for(let F=0;F<D.props.length;F++){let U=D.props[F];if(U.type===7&&(J||U.exp)&&(o.isString($)?U.name===$:$.test(U.name)))return U}}function z7(D,$,J=!1,F=!1){for(let U=0;U<D.props.length;U++){let X=D.props[U];if(X.type===6){if(J)continue;if(X.name===$&&(X.value||F))return X}else if(X.name==="bind"&&(X.exp||F)&&r1(X.arg,$))return X}}function r1(D,$){return!!(D&&Y6(D)&&D.content===$)}function jKD(D){return D.props.some(($)=>$.type===7&&$.name==="bind"&&(!$.arg||$.arg.type!==4||!$.arg.isStatic))}function eX(D){return D.type===5||D.type===2}function bj(D){return D.type===7&&D.name==="pre"}function PY(D){return D.type===7&&D.name==="slot"}function S3(D){return D.type===1&&D.tagType===3}function Z7(D){return D.type===1&&D.tagType===2}var NKD=new Set([T3,k3]);function oj(D,$=[]){if(D&&!o.isString(D)&&D.type===14){let J=D.callee;if(!o.isString(J)&&NKD.has(J))return oj(D.arguments[0],$.concat(D))}return[D,$]}function H7(D,$,J){if(D.type!==13&&VKD(D,$))return;let F,U=D.type===13?D.props:D.arguments[2],X=[],Y;if(U&&!o.isString(U)&&U.type===14){let Q=oj(U);U=Q[0],X=Q[1],Y=X[X.length-1]}if(U==null||o.isString(U))F=C0([$]);else if(U.type===14){let Q=U.arguments[0];if(!o.isString(Q)&&Q.type===15){if(!Pj($,Q))Q.properties.unshift($)}else if(U.callee===MY)F=x$(J.helper(q7),[C0([$]),U]);else U.arguments.unshift(C0([$]));!F&&(F=U)}else if(U.type===15){if(!Pj($,U))U.properties.unshift($);F=U}else if(F=x$(J.helper(q7),[C0([$]),U]),Y&&Y.callee===k3)Y=X[X.length-2];if(D.type===13)if(Y)Y.arguments[0]=F;else D.props=F;else if(Y)Y.arguments[0]=F;else D.arguments[2]=F}function VKD(D,$){var J,F,U;if($.key.type!==4||$.key.content!=="key")return!1;let X=D.arguments[2];if(X&&!o.isString(X)){let[Y]=oj(X);if(Y&&!o.isString(Y)&&Y.type===15&&Pj($,Y))return!0}return(J=D.arguments)[2]||(J[2]="{}"),(F=D.arguments)[3]||(F[3]="undefined"),(U=D.arguments)[4]||(U[4]="undefined"),D.arguments[5]=$.value,!0}function Pj(D,$){let J=!1;if(D.key.type===4){let F=D.key.content;J=$.properties.some((U)=>U.key.type===4&&U.key.content===F)}return J}function O2(D,$){return`_${$}_${D.replace(/[^\w]/g,(J,F)=>{return J==="-"?"_":D.charCodeAt(F).toString()})}`}function d$(D,$){if(!D||Object.keys($).length===0)return!1;switch(D.type){case 1:for(let J=0;J<D.props.length;J++){let F=D.props[J];if(F.type===7&&(d$(F.arg,$)||d$(F.exp,$)))return!0}return D.children.some((J)=>d$(J,$));case 11:if(d$(D.source,$))return!0;return D.children.some((J)=>d$(J,$));case 9:return D.branches.some((J)=>d$(J,$));case 10:if(d$(D.condition,$))return!0;return D.children.some((J)=>d$(J,$));case 4:return!D.isStatic&&e6(D.content)&&!!$[D.content];case 8:return D.children.some((J)=>o.isObject(J)&&d$(J,$));case 5:case 12:return d$(D.content,$);case 2:case 3:case 20:return!1;default:return!1}}function $h(D){if(D.type===14&&D.callee===AY)return D.arguments[1].returns;else return D}var Jh=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function aj(D){for(let $=0;$<D.length;$++)if(!_0(D.charCodeAt($)))return!1;return!0}function SY(D){return D.type===2&&aj(D.content)||D.type===12&&SY(D.content)}function sj(D){return D.type===3||SY(D)}var Fh={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:o.NO,isPreTag:o.NO,isIgnoreNewlineTag:o.NO,isCustomElement:o.NO,onError:lj,onWarn:my,comments:!0,prefixIdentifiers:!1},kD=Fh,B7=null,s6="",c$=null,AD=null,n0="",a6=-1,I2=-1,ej=0,p1=!1,Sj=null,K$=[],sD=new hy(K$,{onerr:Q0,ontext(D,$){aX(f$(D,$),D,$)},ontextentity(D,$,J){aX(D,$,J)},oninterpolation(D,$){if(p1)return aX(f$(D,$),D,$);let J=D+sD.delimiterOpen.length,F=$-sD.delimiterClose.length;while(_0(s6.charCodeAt(J)))J++;while(_0(s6.charCodeAt(F-1)))F--;let U=f$(J,F);if(U.includes("&"))U=G2.decodeHTML(U);_j({type:5,content:$Y(U,!1,B$(J,F)),loc:B$(D,$)})},onopentagname(D,$){let J=f$(D,$);c$={type:1,tag:J,ns:kD.getNamespace(J,K$[0],kD.ns),tagType:0,props:[],children:[],loc:B$(D-1,$),codegenNode:void 0}},onopentagend(D){Ly(D)},onclosetag(D,$){let J=f$(D,$);if(!kD.isVoidTag(J)){let F=!1;for(let U=0;U<K$.length;U++)if(K$[U].tag.toLowerCase()===J.toLowerCase()){if(F=!0,U>0)Q0(24,K$[0].loc.start.offset);for(let Y=0;Y<=U;Y++){let Q=K$.shift();DY(Q,$,Y<U)}break}if(!F)Q0(23,Uh(D,60))}},onselfclosingtag(D){let $=c$.tag;if(c$.isSelfClosing=!0,Ly(D),K$[0]&&K$[0].tag===$)DY(K$.shift(),D)},onattribname(D,$){AD={type:6,name:f$(D,$),nameLoc:B$(D,$),value:void 0,loc:B$(D)}},ondirname(D,$){let J=f$(D,$),F=J==="."||J===":"?"bind":J==="@"?"on":J==="#"?"slot":J.slice(2);if(!p1&&F==="")Q0(26,D);if(p1||F==="")AD={type:6,name:J,nameLoc:B$(D,$),value:void 0,loc:B$(D)};else if(AD={type:7,name:F,rawName:J,exp:void 0,arg:void 0,modifiers:J==="."?[OD("prop")]:[],loc:B$(D)},F==="pre"){p1=sD.inVPre=!0,Sj=c$;let U=c$.props;for(let X=0;X<U.length;X++)if(U[X].type===7)U[X]=PKD(U[X])}},ondirarg(D,$){if(D===$)return;let J=f$(D,$);if(p1&&!bj(AD))AD.name+=J,z2(AD.nameLoc,$);else{let F=J[0]!=="[";AD.arg=$Y(F?J:J.slice(1,-1),F,B$(D,$),F?3:0)}},ondirmodifier(D,$){let J=f$(D,$);if(p1&&!bj(AD))AD.name+="."+J,z2(AD.nameLoc,$);else if(AD.name==="slot"){let F=AD.arg;if(F)F.content+="."+J,z2(F.loc,$)}else{let F=OD(J,!0,B$(D,$));AD.modifiers.push(F)}},onattribdata(D,$){if(n0+=f$(D,$),a6<0)a6=D;I2=$},onattribentity(D,$,J){if(n0+=D,a6<0)a6=$;I2=J},onattribnameend(D){let $=AD.loc.start.offset,J=f$($,D);if(AD.type===7)AD.rawName=J;if(c$.props.some((F)=>(F.type===7?F.rawName:F.name)===J))Q0(2,$)},onattribend(D,$){if(c$&&AD){if(z2(AD.loc,$),D!==0)if(AD.type===6){if(AD.name==="class")n0=Yh(n0).trim();if(D===1&&!n0)Q0(13,$);if(AD.value={type:2,content:n0,loc:D===1?B$(a6,I2):B$(a6-1,I2+1)},sD.inSFCRoot&&c$.tag==="template"&&AD.name==="lang"&&n0&&n0!=="html")sD.enterRCDATA(qY("</template"),0)}else{let J=0;if(AD.name==="for")J=3;else if(AD.name==="slot")J=1;else if(AD.name==="on"&&n0.includes(";"))J=2;if(AD.exp=$Y(n0,!1,B$(a6,I2),0,J),AD.name==="for")AD.forParseResult=wKD(AD.exp);let F=-1;if(AD.name==="bind"&&(F=AD.modifiers.findIndex((U)=>U.content==="sync"))>-1&&P3("COMPILER_V_BIND_SYNC",kD,AD.loc,AD.arg.loc.source))AD.name="model",AD.modifiers.splice(F,1)}if(AD.type!==7||AD.name!=="pre")c$.props.push(AD)}n0="",a6=I2=-1},oncomment(D,$){if(kD.comments)_j({type:3,content:f$(D,$),loc:B$(D-4,$+3)})},onend(){let D=s6.length;if(sD.state!==1)switch(sD.state){case 5:case 8:Q0(5,D);break;case 3:case 4:Q0(25,sD.sectionStart);break;case 28:if(sD.currentSequence===g$.CdataEnd)Q0(6,D);else Q0(7,D);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:Q0(9,D);break}for(let $=0;$<K$.length;$++)DY(K$[$],D-1),Q0(24,K$[$].loc.start.offset)},oncdata(D,$){if((K$[0]?K$[0].ns:kD.ns)!==0)aX(f$(D,$),D,$);else Q0(1,D-9)},onprocessinginstruction(D){if((K$[0]?K$[0].ns:kD.ns)===0)Q0(21,D-1)}}),Vy=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,LKD=/^\(|\)$/g;function wKD(D){let{loc:$,content:J}=D,F=J.match(Jh);if(!F)return;let[,U,X]=F,Y=(G,I,z=!1)=>{let Z=$.start.offset+I,H=Z+G.length;return $Y(G,!1,B$(Z,H),0,z?1:0)},Q={source:Y(X.trim(),J.indexOf(X,U.length)),value:void 0,key:void 0,index:void 0,finalized:!1},q=U.trim().replace(LKD,"").trim(),K=U.indexOf(q),W=q.match(Vy);if(W){q=q.replace(Vy,"").trim();let G=W[1].trim(),I;if(G)I=J.indexOf(G,K+q.length),Q.key=Y(G,I,!0);if(W[2]){let z=W[2].trim();if(z)Q.index=Y(z,J.indexOf(z,Q.key?I+G.length:K+q.length),!0)}}if(q)Q.value=Y(q,K,!0);return Q}function f$(D,$){return s6.slice(D,$)}function Ly(D){if(sD.inSFCRoot)c$.innerLoc=B$(D+1,D+1);_j(c$);let{tag:$,ns:J}=c$;if(J===0&&kD.isPreTag($))ej++;if(kD.isVoidTag($))DY(c$,D);else if(K$.unshift(c$),J===1||J===2)sD.inXML=!0;c$=null}function aX(D,$,J){let F=K$[0]||B7,U=F.children[F.children.length-1];if(U&&U.type===2)U.content+=D,z2(U.loc,J);else F.children.push({type:2,content:D,loc:B$($,J)})}function DY(D,$,J=!1){if(J)z2(D.loc,Uh($,60));else z2(D.loc,RKD($,62)+1);if(sD.inSFCRoot){if(D.children.length)D.innerLoc.end=o.extend({},D.children[D.children.length-1].loc.end);else D.innerLoc.end=o.extend({},D.innerLoc.start);D.innerLoc.source=f$(D.innerLoc.start.offset,D.innerLoc.end.offset)}let{tag:F,ns:U,children:X}=D;if(!p1){if(F==="slot")D.tagType=2;else if(wy(D))D.tagType=3;else if(EKD(D))D.tagType=1}if(!sD.inRCDATA)D.children=Xh(X);if(U===0&&kD.isIgnoreNewlineTag(F)){let Y=X[0];if(Y&&Y.type===2)Y.content=Y.content.replace(/^\r?\n/,"")}if(U===0&&kD.isPreTag(F))ej--;if(Sj===D)p1=sD.inVPre=!1,Sj=null;if(sD.inXML&&(K$[0]?K$[0].ns:kD.ns)===0)sD.inXML=!1;{let Y=D.props;if(o1("COMPILER_V_IF_V_FOR_PRECEDENCE",kD)){let q=!1,K=!1;for(let W=0;W<Y.length;W++){let G=Y[W];if(G.type===7){if(G.name==="if")q=!0;else if(G.name==="for")K=!0}if(q&&K){I7("COMPILER_V_IF_V_FOR_PRECEDENCE",kD,D.loc);break}}}if(!sD.inSFCRoot&&o1("COMPILER_NATIVE_TEMPLATE",kD)&&D.tag==="template"&&!wy(D)){I7("COMPILER_NATIVE_TEMPLATE",kD,D.loc);let q=K$[0]||B7,K=q.children.indexOf(D);q.children.splice(K,1,...D.children)}let Q=Y.find((q)=>q.type===6&&q.name==="inline-template");if(Q&&P3("COMPILER_INLINE_TEMPLATE",kD,Q.loc)&&D.children.length)Q.value={type:2,content:f$(D.children[0].loc.start.offset,D.children[D.children.length-1].loc.end.offset),loc:Q.loc}}}function RKD(D,$){let J=D;while(s6.charCodeAt(J)!==$&&J<s6.length-1)J++;return J}function Uh(D,$){let J=D;while(s6.charCodeAt(J)!==$&&J>=0)J--;return J}var MKD=new Set(["if","else","else-if","for","slot"]);function wy({tag:D,props:$}){if(D==="template"){for(let J=0;J<$.length;J++)if($[J].type===7&&MKD.has($[J].name))return!0}return!1}function EKD({tag:D,props:$}){if(kD.isCustomElement(D))return!1;if(D==="component"||AKD(D.charCodeAt(0))||nj(D)||kD.isBuiltInComponent&&kD.isBuiltInComponent(D)||kD.isNativeTag&&!kD.isNativeTag(D))return!0;for(let J=0;J<$.length;J++){let F=$[J];if(F.type===6){if(F.name==="is"&&F.value){if(F.value.content.startsWith("vue:"))return!0;else if(P3("COMPILER_IS_ON_ELEMENT",kD,F.loc))return!0}}else if(F.name==="bind"&&r1(F.arg,"is")&&P3("COMPILER_IS_ON_ELEMENT",kD,F.loc))return!0}return!1}function AKD(D){return D>64&&D<91}var vKD=/\r\n/g;function Xh(D){let $=kD.whitespace!=="preserve",J=!1;for(let F=0;F<D.length;F++){let U=D[F];if(U.type===2)if(!ej){if(aj(U.content)){let X=D[F-1]&&D[F-1].type,Y=D[F+1]&&D[F+1].type;if(!X||!Y||$&&(X===3&&(Y===3||Y===1)||X===1&&(Y===3||Y===1&&TKD(U.content))))J=!0,D[F]=null;else U.content=" "}else if($)U.content=Yh(U.content)}else U.content=U.content.replace(vKD,`
`)}return J?D.filter(Boolean):D}function TKD(D){for(let $=0;$<D.length;$++){let J=D.charCodeAt($);if(J===10||J===13)return!0}return!1}function Yh(D){let $="",J=!1;for(let F=0;F<D.length;F++)if(_0(D.charCodeAt(F))){if(!J)$+=" ",J=!0}else $+=D[F],J=!1;return $}function _j(D){(K$[0]||B7).children.push(D)}function B$(D,$){return{start:sD.getPos(D),end:$==null?$:sD.getPos($),source:$==null?$:f$(D,$)}}function bKD(D){return B$(D.start.offset,D.end.offset)}function z2(D,$){D.end=sD.getPos($),D.source=f$(D.start.offset,$)}function PKD(D){let $={type:6,name:D.rawName,nameLoc:B$(D.loc.start.offset,D.loc.start.offset+D.rawName.length),value:void 0,loc:D.loc};if(D.exp){let J=D.exp.loc;if(J.end.offset<D.loc.end.offset)J.start.offset--,J.start.column--,J.end.offset++,J.end.column++;$.value={type:2,content:D.exp.content,loc:J}}return $}function $Y(D,$=!1,J,F=0,U=0){let X=OD(D,$,J,F);if(!$&&kD.prefixIdentifiers&&U!==3&&D.trim()){if(e6(D))return X.ast=null,X;try{let Y=kD.expressionPlugins,Q={plugins:Y?[...Y,"typescript"]:["typescript"]};if(U===2)X.ast=E3.parse(` ${D} `,Q).program;else if(U===1)X.ast=E3.parseExpression(`(${D})=>{}`,Q);else X.ast=E3.parseExpression(`(${D})`,Q)}catch(Y){X.ast=!1,Q0(46,J.start.offset,Y.message)}}return X}function Q0(D,$,J){kD.onError(mD(D,B$($,$),void 0,J))}function SKD(){sD.reset(),c$=null,AD=null,n0="",a6=-1,I2=-1,K$.length=0}function Qh(D,$){if(SKD(),s6=D,kD=o.extend({},Fh),$){let U;for(U in $)if($[U]!=null)kD[U]=$[U]}if(kD.decodeEntities)console.warn("[@vue/compiler-core] decodeEntities option is passed but will be ignored in non-browser builds.");sD.mode=kD.parseMode==="html"?1:kD.parseMode==="sfc"?2:0,sD.inXML=kD.ns===1||kD.ns===2;let J=$&&$.delimiters;if(J)sD.delimiterOpen=qY(J[0]),sD.delimiterClose=qY(J[1]);let F=B7=fy([],D);return sD.parse(s6),F.loc=B$(0,D.length),F.children=Xh(F.children),B7=null,F}function _KD(D,$){JY(D,void 0,$,!!qh(D))}function qh(D){let $=D.children.filter((J)=>J.type!==3);return $.length===1&&$[0].type===1&&!Z7($[0])?$[0]:null}function JY(D,$,J,F=!1,U=!1){let{children:X}=D,Y=[];for(let W=0;W<X.length;W++){let G=X[W];if(G.type===1&&G.tagType===0){let I=F?0:u0(G,J);if(I>0){if(I>=2){G.codegenNode.patchFlag=-1,Y.push(G);continue}}else{let z=G.codegenNode;if(z.type===13){let Z=z.patchFlag;if((Z===void 0||Z===512||Z===1)&&Wh(G,J)>=2){let H=Gh(G);if(H)z.props=J.hoist(H)}if(z.dynamicProps)z.dynamicProps=J.hoist(z.dynamicProps)}}}else if(G.type===12){if((F?0:u0(G,J))>=2){if(G.codegenNode.type===14&&G.codegenNode.arguments.length>0)G.codegenNode.arguments.push(`-1 /* ${o.PatchFlagNames[-1]} */`);Y.push(G);continue}}if(G.type===1){let I=G.tagType===1;if(I)J.scopes.vSlot++;if(JY(G,D,J,!1,U),I)J.scopes.vSlot--}else if(G.type===11)JY(G,D,J,G.children.length===1,!0);else if(G.type===9)for(let I=0;I<G.branches.length;I++)JY(G.branches[I],D,J,G.branches[I].children.length===1,U)}let Q=!1;if(Y.length===X.length&&D.type===1){if(D.tagType===0&&D.codegenNode&&D.codegenNode.type===13&&o.isArray(D.codegenNode.children))D.codegenNode.children=q(t1(D.codegenNode.children)),Q=!0;else if(D.tagType===1&&D.codegenNode&&D.codegenNode.type===13&&D.codegenNode.children&&!o.isArray(D.codegenNode.children)&&D.codegenNode.children.type===15){let W=K(D.codegenNode,"default");if(W)W.returns=q(t1(W.returns)),Q=!0}else if(D.tagType===3&&$&&$.type===1&&$.tagType===1&&$.codegenNode&&$.codegenNode.type===13&&$.codegenNode.children&&!o.isArray($.codegenNode.children)&&$.codegenNode.children.type===15){let W=q0(D,"slot",!0),G=W&&W.arg&&K($.codegenNode,W.arg);if(G)G.returns=q(t1(G.returns)),Q=!0}}if(!Q)for(let W of Y)W.codegenNode=J.cache(W.codegenNode);function q(W){let G=J.cache(W);return G.needArraySpread=!0,G}function K(W,G){if(W.children&&!o.isArray(W.children)&&W.children.type===15){let I=W.children.properties.find((z)=>z.key===G||z.key.content===G);return I&&I.value}}if(Y.length&&J.transformHoist)J.transformHoist(X,J,D)}function u0(D,$){let{constantCache:J}=$;switch(D.type){case 1:if(D.tagType!==0)return 0;let F=J.get(D);if(F!==void 0)return F;let U=D.codegenNode;if(U.type!==13)return 0;if(U.isBlock&&D.tag!=="svg"&&D.tag!=="foreignObject"&&D.tag!=="math")return 0;if(U.patchFlag===void 0){let Y=3,Q=Wh(D,$);if(Q===0)return J.set(D,0),0;if(Q<Y)Y=Q;for(let q=0;q<D.children.length;q++){let K=u0(D.children[q],$);if(K===0)return J.set(D,0),0;if(K<Y)Y=K}if(Y>1)for(let q=0;q<D.props.length;q++){let K=D.props[q];if(K.type===7&&K.name==="bind"&&K.exp){let W=u0(K.exp,$);if(W===0)return J.set(D,0),0;if(W<Y)Y=W}}if(U.isBlock){for(let q=0;q<D.props.length;q++)if(D.props[q].type===7)return J.set(D,0),0;$.removeHelper(a1),$.removeHelper(B2($.inSSR,U.isComponent)),U.isBlock=!1,$.helper(H2($.inSSR,U.isComponent))}return J.set(D,Y),Y}else return J.set(D,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return u0(D.content,$);case 4:return D.constType;case 8:let X=3;for(let Y=0;Y<D.children.length;Y++){let Q=D.children[Y];if(o.isString(Q)||o.isSymbol(Q))continue;let q=u0(Q,$);if(q===0)return 0;else if(q<X)X=q}return X;case 20:return 2;default:return 0}}var kKD=new Set([wY,RY,T3,k3]);function Kh(D,$){if(D.type===14&&!o.isString(D.callee)&&kKD.has(D.callee)){let J=D.arguments[0];if(J.type===4)return u0(J,$);else if(J.type===14)return Kh(J,$)}return 0}function Wh(D,$){let J=3,F=Gh(D);if(F&&F.type===15){let{properties:U}=F;for(let X=0;X<U.length;X++){let{key:Y,value:Q}=U[X],q=u0(Y,$);if(q===0)return q;if(q<J)J=q;let K;if(Q.type===4)K=u0(Q,$);else if(Q.type===14)K=Kh(Q,$);else K=0;if(K===0)return K;if(K<J)J=K}}return J}function Gh(D){let $=D.codegenNode;if($.type===13)return $.props}function Ih(D,{filename:$="",prefixIdentifiers:J=!1,hoistStatic:F=!1,hmr:U=!1,cacheHandlers:X=!1,nodeTransforms:Y=[],directiveTransforms:Q={},transformHoist:q=null,isBuiltInComponent:K=o.NOOP,isCustomElement:W=o.NOOP,expressionPlugins:G=[],scopeId:I=null,slotted:z=!0,ssr:Z=!1,inSSR:H=!1,ssrCssVars:B="",bindingMetadata:j=o.EMPTY_OBJ,inline:N=!1,isTS:O=!1,onError:L=lj,onWarn:A=my,compatConfig:E}){let _=$.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={filename:$,selfName:_&&o.capitalize(o.camelize(_[1])),prefixIdentifiers:J,hoistStatic:F,hmr:U,cacheHandlers:X,nodeTransforms:Y,directiveTransforms:Q,transformHoist:q,isBuiltInComponent:K,isCustomElement:W,expressionPlugins:G,scopeId:I,slotted:z,ssr:Z,inSSR:H,ssrCssVars:B,bindingMetadata:j,inline:N,isTS:O,onError:L,onWarn:A,compatConfig:E,root:D,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,vForMemoKeyedNodes:new WeakSet,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:D,childIndex:0,inVOnce:!1,helper(v){let i=k.helpers.get(v)||0;return k.helpers.set(v,i+1),v},removeHelper(v){let i=k.helpers.get(v);if(i){let c=i-1;if(!c)k.helpers.delete(v);else k.helpers.set(v,c)}},helperString(v){return`_${j0[k.helper(v)]}`},replaceNode(v){{if(!k.currentNode)throw Error("Node being replaced is already removed.");if(!k.parent)throw Error("Cannot replace root node.")}k.parent.children[k.childIndex]=k.currentNode=v},removeNode(v){if(!k.parent)throw Error("Cannot remove root node.");let i=k.parent.children,c=v?i.indexOf(v):k.currentNode?k.childIndex:-1;if(c<0)throw Error("node being removed is not a child of current parent");if(!v||v===k.currentNode)k.currentNode=null,k.onNodeRemoved();else if(k.childIndex>c)k.childIndex--,k.onNodeRemoved();k.parent.children.splice(c,1)},onNodeRemoved:o.NOOP,addIdentifiers(v){if(o.isString(v))C(v);else if(v.identifiers)v.identifiers.forEach(C);else if(v.type===4)C(v.content)},removeIdentifiers(v){if(o.isString(v))y(v);else if(v.identifiers)v.identifiers.forEach(y);else if(v.type===4)y(v.content)},hoist(v){if(o.isString(v))v=OD(v);k.hoists.push(v);let i=OD(`_hoisted_${k.hoists.length}`,!1,v.loc,2);return i.hoisted=v,i},cache(v,i=!1,c=!1){let n=xy(k.cached.length,v,i,c);return k.cached.push(n),n}};k.filters=new Set;function C(v){let{identifiers:i}=k;if(i[v]===void 0)i[v]=0;i[v]++}function y(v){k.identifiers[v]--}return k}function zh(D,$){let J=Ih(D,$);if(O7(D,J),$.hoistStatic)_KD(D,J);if(!$.ssr)CKD(D,J);D.helpers=new Set([...J.helpers.keys()]),D.components=[...J.components],D.directives=[...J.directives],D.imports=J.imports,D.hoists=J.hoists,D.temps=J.temps,D.cached=J.cached,D.transformed=!0,D.filters=[...J.filters]}function CKD(D,$){let{helper:J}=$,{children:F}=D;if(F.length===1){let U=qh(D);if(U&&U.codegenNode){let X=U.codegenNode;if(X.type===13)vY(X,$);D.codegenNode=X}else D.codegenNode=F[0]}else if(F.length>1){let U=64;if(F.filter((X)=>X.type!==3).length===1)U|=2048;D.codegenNode=b3($,J(v3),void 0,D.children,U,void 0,void 0,!0,void 0,!1)}}function uKD(D,$){let J=0,F=()=>{J--};for(;J<D.children.length;J++){let U=D.children[J];if(o.isString(U))continue;$.grandParent=$.parent,$.parent=D,$.childIndex=J,$.onNodeRemoved=F,O7(U,$)}}function O7(D,$){$.currentNode=D;let{nodeTransforms:J}=$,F=[];for(let X=0;X<J.length;X++){let Y=J[X](D,$);if(Y)if(o.isArray(Y))F.push(...Y);else F.push(Y);if(!$.currentNode)return;else D=$.currentNode}switch(D.type){case 3:if(!$.ssr)$.helper(_3);break;case 5:if(!$.ssr)$.helper(LY);break;case 9:for(let X=0;X<D.branches.length;X++)O7(D.branches[X],$);break;case 10:case 11:case 1:case 0:uKD(D,$);break}$.currentNode=D;let U=F.length;while(U--)F[U]()}function DN(D,$){let J=o.isString(D)?(F)=>F===D:(F)=>D.test(F);return(F,U)=>{if(F.type===1){let{props:X}=F;if(F.tagType===3&&X.some(PY))return;let Y=[];for(let Q=0;Q<X.length;Q++){let q=X[Q];if(q.type===7&&J(q.name)){X.splice(Q,1),Q--;let K=$(F,q,U);if(K)Y.push(K)}}return Y}}}var _Y="/*@__PURE__*/",FY=(D)=>`${j0[D]}: _${j0[D]}`;function Ry(D,{mode:$="function",prefixIdentifiers:J=$==="module",sourceMap:F=!1,filename:U="template.vue.html",scopeId:X=null,optimizeImports:Y=!1,runtimeGlobalName:Q="Vue",runtimeModuleName:q="vue",ssrRuntimeModuleName:K="vue/server-renderer",ssr:W=!1,isTS:G=!1,inSSR:I=!1}){let z={mode:$,prefixIdentifiers:J,sourceMap:F,filename:U,scopeId:X,optimizeImports:Y,runtimeGlobalName:Q,runtimeModuleName:q,ssrRuntimeModuleName:K,ssr:W,isTS:G,inSSR:I,source:D.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(B){return`_${j0[B]}`},push(B,j=-2,N){if(z.code+=B,z.map){if(N){let O;if(N.type===4&&!N.isStatic){let L=N.content.replace(/^_ctx\./,"");if(L!==N.content&&e6(L))O=L}if(N.loc.source)H(N.loc.start,O)}if(j===-3)tj(z,B);else if(z.offset+=B.length,j===-2)z.column+=B.length;else{if(j===-1)j=B.length-1;z.line++,z.column=B.length-j}if(N&&N.loc!==V$&&N.loc.source)H(N.loc.end)}},indent(){Z(++z.indentLevel)},deindent(B=!1){if(B)--z.indentLevel;else Z(--z.indentLevel)},newline(){Z(z.indentLevel)}};function Z(B){z.push(`
`+" ".repeat(B),0)}function H(B,j=null){let{_names:N,_mappings:O}=z.map;if(j!==null&&!N.has(j))N.add(j);O.add({originalLine:B.line,originalColumn:B.column-1,generatedLine:z.line,generatedColumn:z.column-1,source:U,name:j})}if(F)z.map=new oqD.SourceMapGenerator,z.map.setSourceContent(U,z.source),z.map._sources.add(U);return z}function Zh(D,$={}){let J=Ry(D,$);if($.onContextCreated)$.onContextCreated(J);let{mode:F,push:U,prefixIdentifiers:X,indent:Y,deindent:Q,newline:q,scopeId:K,ssr:W}=J,G=Array.from(D.helpers),I=G.length>0,z=!X&&F!=="module",Z=K!=null&&F==="module",H=!!$.inline,B=H?Ry(D,$):J;if(F==="module")fKD(D,B,Z,H);else gKD(D,B);let j=W?"ssrRender":"render",N=W?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"];if($.bindingMetadata&&!$.inline)N.push("$props","$setup","$data","$options");let O=$.isTS?N.map((L)=>`${L}: any`).join(","):N.join(", ");if(H)U(`(${O}) => {`);else U(`function ${j}(${O}) {`);if(Y(),z){if(U("with (_ctx) {"),Y(),I)U(`const { ${G.map(FY).join(", ")} } = _Vue
`,-1),q()}if(D.components.length){if(Ej(D.components,"component",J),D.directives.length||D.temps>0)q()}if(D.directives.length){if(Ej(D.directives,"directive",J),D.temps>0)q()}if(D.filters&&D.filters.length)q(),Ej(D.filters,"filter",J),q();if(D.temps>0){U("let ");for(let L=0;L<D.temps;L++)U(`${L>0?", ":""}_temp${L}`)}if(D.components.length||D.directives.length||D.temps)U(`
`,0),q();if(!W)U("return ");if(D.codegenNode)F$(D.codegenNode,J);else U("null");if(z)Q(),U("}");return Q(),U("}"),{ast:D,code:J.code,preamble:H?B.code:"",map:J.map?J.map.toJSON():void 0}}function gKD(D,$){let{ssr:J,prefixIdentifiers:F,push:U,newline:X,runtimeModuleName:Y,runtimeGlobalName:Q,ssrRuntimeModuleName:q}=$,K=J?`require(${JSON.stringify(Y)})`:Q,W=Array.from(D.helpers);if(W.length>0){if(F)U(`const { ${W.map(FY).join(", ")} } = ${K}
`,-1);else if(U(`const _Vue = ${K}
`,-1),D.hoists.length){let G=[zY,ZY,_3,HY,xj].filter((I)=>W.includes(I)).map(FY).join(", ");U(`const { ${G} } = _Vue
`,-1)}}if(D.ssrHelpers&&D.ssrHelpers.length)U(`const { ${D.ssrHelpers.map(FY).join(", ")} } = require("${q}")
`,-1);Hh(D.hoists,$),X(),U("return ")}function fKD(D,$,J,F){let{push:U,newline:X,optimizeImports:Y,runtimeModuleName:Q,ssrRuntimeModuleName:q}=$;if(D.helpers.size){let K=Array.from(D.helpers);if(Y)U(`import { ${K.map((W)=>j0[W]).join(", ")} } from ${JSON.stringify(Q)}
`,-1),U(`
// Binding optimization for webpack code-split
const ${K.map((W)=>`_${j0[W]} = ${j0[W]}`).join(", ")}
`,-1);else U(`import { ${K.map((W)=>`${j0[W]} as _${j0[W]}`).join(", ")} } from ${JSON.stringify(Q)}
`,-1)}if(D.ssrHelpers&&D.ssrHelpers.length)U(`import { ${D.ssrHelpers.map((K)=>`${j0[K]} as _${j0[K]}`).join(", ")} } from "${q}"
`,-1);if(D.imports.length)xKD(D.imports,$),X();if(Hh(D.hoists,$),X(),!F)U("export ")}function Ej(D,$,{helper:J,push:F,newline:U,isTS:X}){let Y=J($==="filter"?jY:$==="component"?Q7:OY);for(let Q=0;Q<D.length;Q++){let q=D[Q],K=q.endsWith("__self");if(K)q=q.slice(0,-6);if(F(`const ${O2(q,$)} = ${Y}(${JSON.stringify(q)}${K?", true":""})${X?"!":""}`),Q<D.length-1)U()}}function Hh(D,$){if(!D.length)return;$.pure=!0;let{push:J,newline:F}=$;F();for(let U=0;U<D.length;U++){let X=D[U];if(X)J(`const _hoisted_${U+1} = `),F$(X,$),F()}$.pure=!1}function xKD(D,$){if(!D.length)return;D.forEach((J)=>{$.push("import "),F$(J.exp,$),$.push(` from '${J.path}'`),$.newline()})}function yKD(D){return o.isString(D)||D.type===4||D.type===2||D.type===5||D.type===8}function kY(D,$){let J=D.length>3||D.some((F)=>o.isArray(F)||!yKD(F));$.push("["),J&&$.indent(),C3(D,$,J),J&&$.deindent(),$.push("]")}function C3(D,$,J=!1,F=!0){let{push:U,newline:X}=$;for(let Y=0;Y<D.length;Y++){let Q=D[Y];if(o.isString(Q))U(Q,-3);else if(o.isArray(Q))kY(Q,$);else F$(Q,$);if(Y<D.length-1)if(J)F&&U(","),X();else F&&U(", ")}}function F$(D,$){if(o.isString(D)){$.push(D,-3);return}if(o.isSymbol(D)){$.push($.helper(D));return}switch(D.type){case 1:case 9:case 11:Tj(D.codegenNode!=null,"Codegen node is missing for element/if/for node. Apply appropriate transforms first."),F$(D.codegenNode,$);break;case 2:hKD(D,$);break;case 4:Bh(D,$);break;case 5:mKD(D,$);break;case 12:F$(D.codegenNode,$);break;case 8:Oh(D,$);break;case 3:iKD(D,$);break;case 13:dKD(D,$);break;case 14:nKD(D,$);break;case 15:pKD(D,$);break;case 17:rKD(D,$);break;case 18:tKD(D,$);break;case 19:oKD(D,$);break;case 20:aKD(D,$);break;case 21:C3(D.body,$,!0,!1);break;case 22:sKD(D,$);break;case 23:jh(D,$);break;case 24:eKD(D,$);break;case 25:DWD(D,$);break;case 26:$WD(D,$);break;case 10:break;default:return Tj(!1,`unhandled codegen node type: ${D.type}`),D}}function hKD(D,$){$.push(JSON.stringify(D.content),-3,D)}function Bh(D,$){let{content:J,isStatic:F}=D;$.push(F?JSON.stringify(J):J,-3,D)}function mKD(D,$){let{push:J,helper:F,pure:U}=$;if(U)J(_Y);J(`${F(LY)}(`),F$(D.content,$),J(")")}function Oh(D,$){for(let J=0;J<D.children.length;J++){let F=D.children[J];if(o.isString(F))$.push(F,-3);else F$(F,$)}}function lKD(D,$){let{push:J}=$;if(D.type===8)J("["),Oh(D,$),J("]");else if(D.isStatic){let F=e6(D.content)?D.content:JSON.stringify(D.content);J(F,-2,D)}else J(`[${D.content}]`,-3,D)}function iKD(D,$){let{push:J,helper:F,pure:U}=$;if(U)J(_Y);J(`${F(_3)}(${JSON.stringify(D.content)})`,-3,D)}function dKD(D,$){let{push:J,helper:F,pure:U}=$,{tag:X,props:Y,children:Q,patchFlag:q,dynamicProps:K,directives:W,isBlock:G,disableTracking:I,isComponent:z}=D,Z;if(q)if(q<0)Z=q+` /* ${o.PatchFlagNames[q]} */`;else{let B=Object.keys(o.PatchFlagNames).map(Number).filter((j)=>j>0&&q&j).map((j)=>o.PatchFlagNames[j]).join(", ");Z=q+` /* ${B} */`}if(W)J(F(NY)+"(");if(G)J(`(${F(a1)}(${I?"true":""}), `);if(U)J(_Y);let H=G?B2($.inSSR,z):H2($.inSSR,z);if(J(F(H)+"(",-2,D),C3(cKD([X,Y,Q,Z,K]),$),J(")"),G)J(")");if(W)J(", "),F$(W,$),J(")")}function cKD(D){let $=D.length;while($--)if(D[$]!=null)break;return D.slice(0,$+1).map((J)=>J||"null")}function nKD(D,$){let{push:J,helper:F,pure:U}=$,X=o.isString(D.callee)?D.callee:F(D.callee);if(U)J(_Y);J(X+"(",-2,D),C3(D.arguments,$),J(")")}function pKD(D,$){let{push:J,indent:F,deindent:U,newline:X}=$,{properties:Y}=D;if(!Y.length){J("{}",-2,D);return}let Q=Y.length>1||Y.some((q)=>q.value.type!==4);J(Q?"{":"{ "),Q&&F();for(let q=0;q<Y.length;q++){let{key:K,value:W}=Y[q];if(lKD(K,$),J(": "),F$(W,$),q<Y.length-1)J(","),X()}Q&&U(),J(Q?"}":" }")}function rKD(D,$){kY(D.elements,$)}function tKD(D,$){let{push:J,indent:F,deindent:U}=$,{params:X,returns:Y,body:Q,newline:q,isSlot:K}=D;if(K)J(`_${j0[EY]}(`);if(J("(",-2,D),o.isArray(X))C3(X,$);else if(X)F$(X,$);if(J(") => "),q||Q)J("{"),F();if(Y){if(q)J("return ");if(o.isArray(Y))kY(Y,$);else F$(Y,$)}else if(Q)F$(Q,$);if(q||Q)U(),J("}");if(K){if(D.isNonScopedSlot)J(", undefined, true");J(")")}}function oKD(D,$){let{test:J,consequent:F,alternate:U,newline:X}=D,{push:Y,indent:Q,deindent:q,newline:K}=$;if(J.type===4){let G=!e6(J.content);G&&Y("("),Bh(J,$),G&&Y(")")}else Y("("),F$(J,$),Y(")");X&&Q(),$.indentLevel++,X||Y(" "),Y("? "),F$(F,$),$.indentLevel--,X&&K(),X||Y(" "),Y(": ");let W=U.type===19;if(!W)$.indentLevel++;if(F$(U,$),!W)$.indentLevel--;X&&q(!0)}function aKD(D,$){let{push:J,helper:F,indent:U,deindent:X,newline:Y}=$,{needPauseTracking:Q,needArraySpread:q}=D;if(q)J("[...(");if(J(`_cache[${D.index}] || (`),Q){if(U(),J(`${F(K7)}(-1`),D.inVOnce)J(", true");J("),"),Y(),J("(")}if(J(`_cache[${D.index}] = `),F$(D.value,$),Q)J(`).cacheIndex = ${D.index},`),Y(),J(`${F(K7)}(1),`),Y(),J(`_cache[${D.index}]`),X();if(J(")"),q)J(")]")}function sKD(D,$){let{push:J,indent:F,deindent:U}=$;J("`");let X=D.elements.length,Y=X>3;for(let Q=0;Q<X;Q++){let q=D.elements[Q];if(o.isString(q))J(q.replace(/(`|\$|\\)/g,"\\$1"),-3);else{if(J("${"),Y)F();if(F$(q,$),Y)U();J("}")}}J("`")}function jh(D,$){let{push:J,indent:F,deindent:U}=$,{test:X,consequent:Y,alternate:Q}=D;if(J("if ("),F$(X,$),J(") {"),F(),F$(Y,$),U(),J("}"),Q)if(J(" else "),Q.type===23)jh(Q,$);else J("{"),F(),F$(Q,$),U(),J("}")}function eKD(D,$){F$(D.left,$),$.push(" = "),F$(D.right,$)}function DWD(D,$){$.push("("),C3(D.expressions,$),$.push(")")}function $WD({returns:D},$){if($.push("return "),o.isArray(D))kY(D,$);else F$(D,$)}var JWD=o.makeMap("true,false,null,this"),Nh=(D,$)=>{if(D.type===5)D.content=K0(D.content,$);else if(D.type===1){let J=q0(D,"memo");for(let F=0;F<D.props.length;F++){let U=D.props[F];if(U.type===7&&U.name!=="for"){let{exp:X,arg:Y}=U;if(X&&X.type===4&&!(U.name==="on"&&Y)&&!(J&&$.vForMemoKeyedNodes.has(D)&&Y&&Y.type===4&&Y.content==="key"))U.exp=K0(X,$,U.name==="slot");if(Y&&Y.type===4&&!Y.isStatic)U.arg=K0(Y,$)}}}};function K0(D,$,J=!1,F=!1,U=Object.create($.identifiers)){if(!$.prefixIdentifiers||!D.content.trim())return D;let{inline:X,bindingMetadata:Y}=$,Q=(H,B,j)=>{let N=o.hasOwn(Y,H)&&Y[H];if(X){let O=B&&B.type==="AssignmentExpression"&&B.left===j,L=B&&B.type==="UpdateExpression"&&B.argument===j,A=B&&KY(B,G),E=B&&cy(G),_=(k)=>{let C=`${$.helperString(W7)}(${k})`;return E?`(${C})`:C};if(My(N)||N==="setup-reactive-const"||U[H])return H;else if(N==="setup-ref")return`${H}.value`;else if(N==="setup-maybe-ref")return O||L||A?`${H}.value`:_(H);else if(N==="setup-let")if(O){let{right:k,operator:C}=B,y=q.slice(k.start-1,k.end-1),v=$N(K0(OD(y,!1),$,!1,!1,I));return`${$.helperString(G7)}(${H})${$.isTS?` //@ts-ignore
`:""} ? ${H}.value ${C} ${v} : ${H}`}else if(L){j.start=B.start,j.end=B.end;let{prefix:k,operator:C}=B,y=k?C:"",v=k?"":C;return`${$.helperString(G7)}(${H})${$.isTS?` //@ts-ignore
`:""} ? ${y}${H}.value${v} : ${y}${H}${v}`}else if(A)return H;else return _(H);else if(N==="props")return o.genPropsAccessExp(H);else if(N==="props-aliased")return o.genPropsAccessExp(Y.__propsAliases[H])}else if(N&&N.startsWith("setup")||N==="literal-const")return`$setup.${H}`;else if(N==="props-aliased")return`$props['${Y.__propsAliases[H]}']`;else if(N)return`$${N}.${H}`;return`_ctx.${H}`},q=D.content,K=D.ast;if(K===!1)return D;if(K===null||!K&&e6(q)){let H=$.identifiers[q],B=o.isGloballyAllowed(q),j=JWD(q);if(!J&&!H&&!j&&(!B||Y[q])){if(My(Y[q]))D.constType=1;D.content=Q(q)}else if(!H)if(j)D.constType=3;else D.constType=2;return D}if(!K){let H=F?` ${q} `:`(${q})${J?"=>{}":""}`;try{K=E3.parseExpression(H,{sourceType:"module",plugins:$.expressionPlugins})}catch(B){return $.onError(mD(46,D.loc,void 0,B.message)),D}}let W=[],G=[],I=Object.create($.identifiers);iy(K,(H,B,j,N,O)=>{if(ay(H,B))return;if(H.name.startsWith("_filter_"))return;let L=N&&FWD(H);if(L&&!O){if(dj(B)&&B.shorthand)H.prefix=`${H.name}: `;H.name=Q(H.name,B,H),W.push(H)}else{if(!(L&&O)&&(!B||B.type!=="CallExpression"&&B.type!=="NewExpression"&&B.type!=="MemberExpression"))H.isConstant=!0;W.push(H)}},!0,G,I);let z=[];W.sort((H,B)=>H.start-B.start),W.forEach((H,B)=>{let j=H.start-1,N=H.end-1,O=W[B-1],L=q.slice(O?O.end-1:0,j);if(L.length||H.prefix)z.push(L+(H.prefix||""));let A=q.slice(j,N);if(z.push(OD(H.name,!1,{start:vj(D.loc.start,A,j),end:vj(D.loc.start,A,N),source:A},H.isConstant?3:0)),B===W.length-1&&N<q.length)z.push(q.slice(N))});let Z;if(z.length)Z=k0(z,D.loc),Z.ast=K;else Z=D,Z.constType=3;return Z.identifiers=Object.keys(I),Z}function FWD(D){if(o.isGloballyAllowed(D.name))return!1;if(D.name==="require")return!1;return!0}function $N(D){if(o.isString(D))return D;else if(D.type===4)return D.content;else return D.children.map($N).join("")}function My(D){return D==="setup-const"||D==="literal-const"}var UWD=DN(/^(?:if|else|else-if)$/,(D,$,J)=>{return Vh(D,$,J,(F,U,X)=>{let Y=J.parent.children,Q=Y.indexOf(F),q=0;while(Q-->=0){let K=Y[Q];if(K&&K.type===9)q+=K.branches.length}return()=>{if(X)F.codegenNode=Ay(U,q,J);else{let K=YWD(F.codegenNode);K.alternate=Ay(U,q+F.branches.length-1,J)}}})});function Vh(D,$,J,F){if($.name!=="else"&&(!$.exp||!$.exp.content.trim())){let U=$.exp?$.exp.loc:D.loc;J.onError(mD(28,$.loc)),$.exp=OD("true",!1,U)}if(J.prefixIdentifiers&&$.exp)$.exp=K0($.exp,J);if($.name==="if"){let U=Ey(D,$),X={type:9,loc:bKD(D.loc),branches:[U]};if(J.replaceNode(X),F)return F(X,U,!0)}else{let U=J.parent.children,X=[],Y=U.indexOf(D);while(Y-->=-1){let Q=U[Y];if(Q&&sj(Q)){if(J.removeNode(Q),Q.type===3)X.unshift(Q);continue}if(Q&&Q.type===9){if(($.name==="else-if"||$.name==="else")&&Q.branches[Q.branches.length-1].condition===void 0)J.onError(mD(30,D.loc));J.removeNode();let q=Ey(D,$);if(X.length&&!(J.parent&&J.parent.type===1&&(J.parent.tag==="transition"||J.parent.tag==="Transition")))q.children=[...X,...q.children];{let W=q.userKey;if(W)Q.branches.forEach(({userKey:G})=>{if(XWD(G,W))J.onError(mD(29,q.userKey.loc))})}Q.branches.push(q);let K=F&&F(Q,q,!1);if(O7(q,J),K)K();J.currentNode=null}else J.onError(mD(30,D.loc));break}}}function Ey(D,$){let J=D.tagType===3;return{type:10,loc:D.loc,condition:$.name==="else"?void 0:$.exp,children:J&&!q0(D,"for")?D.children:[D],userKey:z7(D,"key"),isTemplateIf:J}}function Ay(D,$,J){if(D.condition)return QY(D.condition,vy(D,$,J),x$(J.helper(_3),['"v-if"',"true"]));else return vy(D,$,J)}function vy(D,$,J){let{helper:F}=J,U=N$("key",OD(`${$}`,!1,V$,2)),{children:X}=D,Y=X[0];if(X.length!==1||Y.type!==1)if(X.length===1&&Y.type===11){let q=Y.codegenNode;return H7(q,U,J),q}else{let q=64;if(!D.isTemplateIf&&X.filter((K)=>K.type!==3).length===1)q|=2048;return b3(J,F(v3),C0([U]),X,q,void 0,void 0,!0,!1,!1,D.loc)}else{let q=Y.codegenNode,K=$h(q);if(K.type===13)vY(K,J);return H7(K,U,J),q}}function XWD(D,$){if(!D||D.type!==$.type)return!1;if(D.type===6){if(D.value.content!==$.value.content)return!1}else{let J=D.exp,F=$.exp;if(J.type!==F.type)return!1;if(J.type!==4||J.isStatic!==F.isStatic||J.content!==F.content)return!1}return!0}function YWD(D){while(!0)if(D.type===19)if(D.alternate.type===19)D=D.alternate;else return D;else if(D.type===20)D=D.value}var QWD=DN("for",(D,$,J)=>{let{helper:F,removeHelper:U}=J;return Lh(D,$,J,(X)=>{let Y=x$(F(VY),[X.source]),Q=S3(D),q=q0(D,"memo"),K=z7(D,"key",!1,!0),W=K&&K.type===7,G=K&&(K.type===6?K.value?OD(K.value.content,!0):void 0:K.exp),I=G?N$("key",G):null;{if(Q&&q)q.exp=K0(q.exp,J);if((Q||q)&&I&&W){if(G=K.exp=I.value=K0(I.value,J),q)J.vForMemoKeyedNodes.add(D)}}let z=X.source.type===4&&X.source.constType>0,Z=z?64:K?128:256;return X.codegenNode=b3(J,F(v3),void 0,Y,Z,void 0,void 0,!0,!z,!1,D.loc),()=>{let H,{children:B}=X;if(Q)D.children.some((O)=>{if(O.type===1){let L=z7(O,"key");if(L)return J.onError(mD(33,L.loc)),!0}});let j=B.length!==1||B[0].type!==1,N=Z7(D)?D:Q&&D.children.length===1&&Z7(D.children[0])?D.children[0]:null;if(N){if(H=N.codegenNode,Q&&I)H7(H,I,J)}else if(j)H=b3(J,F(v3),I?C0([I]):void 0,D.children,64,void 0,void 0,!0,void 0,!1);else{if(H=B[0].codegenNode,Q&&I)H7(H,I,J);if(H.isBlock!==!z)if(H.isBlock)U(a1),U(B2(J.inSSR,H.isComponent));else U(H2(J.inSSR,H.isComponent));if(H.isBlock=!z,H.isBlock)F(a1),F(B2(J.inSSR,H.isComponent));else F(H2(J.inSSR,H.isComponent))}if(q){let O=Z2(WY(X.parseResult,[OD("_cached")]));O.body=yy([k0(["const _memo = (",q.exp,")"]),k0(["if (_cached && _cached.el",...G?[" && _cached.key === ",G]:[],` && ${J.helperString(mj)}(_cached, _memo)) return _cached`]),k0(["const _item = ",H]),OD("_item.memo = _memo"),OD("return _item")]),Y.arguments.push(O,OD("_cache"),OD(String(J.cached.length))),J.cached.push(null)}else Y.arguments.push(Z2(WY(X.parseResult),H,!0))}})});function Lh(D,$,J,F){if(!$.exp){J.onError(mD(31,$.loc));return}let U=$.forParseResult;if(!U){J.onError(mD(32,$.loc));return}JN(U,J);let{addIdentifiers:X,removeIdentifiers:Y,scopes:Q}=J,{source:q,value:K,key:W,index:G}=U,I={type:11,loc:$.loc,source:q,valueAlias:K,keyAlias:W,objectIndexAlias:G,parseResult:U,children:S3(D)?D.children:[D]};if(J.replaceNode(I),Q.vFor++,J.prefixIdentifiers)K&&X(K),W&&X(W),G&&X(G);let z=F&&F(I);return()=>{if(Q.vFor--,J.prefixIdentifiers)K&&Y(K),W&&Y(W),G&&Y(G);if(z)z()}}function JN(D,$){if(D.finalized)return;if($.prefixIdentifiers){if(D.source=K0(D.source,$),D.key)D.key=K0(D.key,$,!0);if(D.index)D.index=K0(D.index,$,!0);if(D.value)D.value=K0(D.value,$,!0)}D.finalized=!0}function WY({value:D,key:$,index:J},F=[]){return qWD([D,$,J,...F])}function qWD(D){let $=D.length;while($--)if(D[$])break;return D.slice(0,$+1).map((J,F)=>J||OD("_".repeat(F+1),!1))}var Ty=OD("undefined",!1),wh=(D,$)=>{if(D.type===1&&(D.tagType===1||D.tagType===3)){let J=q0(D,"slot");if(J){let F=J.exp;if($.prefixIdentifiers)F&&$.addIdentifiers(F);return $.scopes.vSlot++,()=>{if($.prefixIdentifiers)F&&$.removeIdentifiers(F);$.scopes.vSlot--}}}},Rh=(D,$)=>{let J;if(S3(D)&&D.props.some(PY)&&(J=q0(D,"for"))){let F=J.forParseResult;if(F){JN(F,$);let{value:U,key:X,index:Y}=F,{addIdentifiers:Q,removeIdentifiers:q}=$;return U&&Q(U),X&&Q(X),Y&&Q(Y),()=>{U&&q(U),X&&q(X),Y&&q(Y)}}}},KWD=(D,$,J,F)=>Z2(D,J,!1,!0,J.length?J[0].loc:F);function Mh(D,$,J=KWD){$.helper(EY);let{children:F,loc:U}=D,X=[],Y=[],Q=$.scopes.vSlot>0||$.scopes.vFor>0;if(!$.ssr&&$.prefixIdentifiers)Q=D.props.some((B)=>PY(B)&&(d$(B.arg,$.identifiers)||d$(B.exp,$.identifiers)))||F.some((B)=>d$(B,$.identifiers));let q=q0(D,"slot",!0);if(q){let{arg:B,exp:j}=q;if(B&&!Y6(B))Q=!0;X.push(N$(B||OD("default",!0),J(j,void 0,F,U)))}let K=!1,W=!1,G=[],I=new Set,z=0;for(let B=0;B<F.length;B++){let j=F[B],N;if(!S3(j)||!(N=q0(j,"slot",!0))){if(j.type!==3)G.push(j);continue}if(q){$.onError(mD(37,N.loc));break}K=!0;let{children:O,loc:L}=j,{arg:A=OD("default",!0),exp:E,loc:_}=N,k;if(Y6(A))k=A?A.content:"default";else Q=!0;let C=q0(j,"for"),y=J(E,C,O,L),v,i;if(v=q0(j,"if"))Q=!0,Y.push(QY(v.exp,sX(A,y,z++),Ty));else if(i=q0(j,/^else(?:-if)?$/,!0)){let c=B,n;while(c--)if(n=F[c],!sj(n))break;if(n&&S3(n)&&q0(n,/^(?:else-)?if$/)){let t=Y[Y.length-1];while(t.alternate.type===19)t=t.alternate;t.alternate=i.exp?QY(i.exp,sX(A,y,z++),Ty):sX(A,y,z++)}else $.onError(mD(30,i.loc))}else if(C){Q=!0;let c=C.forParseResult;if(c)JN(c,$),Y.push(x$($.helper(VY),[c.source,Z2(WY(c),sX(A,y),!0)]));else $.onError(mD(32,C.loc))}else{if(k){if(I.has(k)){$.onError(mD(38,_));continue}if(I.add(k),k==="default")W=!0}X.push(N$(A,y))}}if(!q){let B=(j,N)=>{let O=J(j,void 0,N,U);if($.compatConfig)O.isNonScopedSlot=!0;return N$("default",O)};if(!K)X.push(B(void 0,F));else if(G.length&&!G.every(SY))if(W)$.onError(mD(39,G[0].loc));else X.push(B(void 0,G))}let Z=Q?2:UY(D.children)?3:1,H=C0(X.concat(N$("_",OD(Z+` /* ${o.slotFlagsText[Z]} */`,!1))),U);if(Y.length)H=x$($.helper(hj),[H,t1(Y)]);return{slots:H,hasDynamicSlots:Q}}function sX(D,$,J){let F=[N$("name",D),N$("fn",$)];if(J!=null)F.push(N$("key",OD(String(J),!0)));return C0(F)}function UY(D){for(let $=0;$<D.length;$++){let J=D[$];switch(J.type){case 1:if(J.tagType===2||UY(J.children))return!0;break;case 9:if(UY(J.branches))return!0;break;case 10:case 11:if(UY(J.children))return!0;break}}return!1}var Eh=new WeakMap,Ah=(D,$)=>{return function(){if(D=$.currentNode,!(D.type===1&&(D.tagType===0||D.tagType===1)))return;let{tag:F,props:U}=D,X=D.tagType===1,Y=X?vh(D,$):`"${F}"`,Q=o.isObject(Y)&&Y.callee===BY,q,K,W=0,G,I,z,Z=Q||Y===A3||Y===IY||!X&&(F==="svg"||F==="foreignObject"||F==="math");if(U.length>0){let H=FN(D,$,void 0,X,Q);q=H.props,W=H.patchFlag,I=H.dynamicPropNames;let B=H.directives;if(z=B&&B.length?t1(B.map((j)=>Th(j,$))):void 0,H.shouldUseBlock)Z=!0}if(D.children.length>0){if(Y===Y7){if(Z=!0,W|=1024,D.children.length>1)$.onError(mD(47,{start:D.children[0].loc.start,end:D.children[D.children.length-1].loc.end,source:""}))}if(X&&Y!==A3&&Y!==Y7){let{slots:B,hasDynamicSlots:j}=Mh(D,$);if(K=B,j)W|=1024}else if(D.children.length===1&&Y!==A3){let B=D.children[0],j=B.type,N=j===5||j===8;if(N&&u0(B,$)===0)W|=1;if(N||j===2)K=B;else K=D.children}else K=D.children}if(I&&I.length)G=GWD(I);D.codegenNode=b3($,Y,q,K,W===0?void 0:W,G,z,!!Z,!1,X,D.loc)}};function vh(D,$,J=!1){let{tag:F}=D,U=Cj(F),X=z7(D,"is",!1,!0);if(X){if(U||o1("COMPILER_IS_ON_ELEMENT",$)){let Q;if(X.type===6)Q=X.value&&OD(X.value.content,!0);else if(Q=X.exp,!Q)Q=OD("is",!1,X.arg.loc),Q=X.exp=K0(Q,$);if(Q)return x$($.helper(BY),[Q])}else if(X.type===6&&X.value.content.startsWith("vue:"))F=X.value.content.slice(4)}let Y=nj(F)||$.isBuiltInComponent(F);if(Y){if(!J)$.helper(Y);return Y}{let Q=kj(F,$);if(Q)return Q;let q=F.indexOf(".");if(q>0){let K=kj(F.slice(0,q),$);if(K)return K+F.slice(q)}}if($.selfName&&o.capitalize(o.camelize(F))===$.selfName)return $.helper(Q7),$.components.add(F+"__self"),O2(F,"component");return $.helper(Q7),$.components.add(F),O2(F,"component")}function kj(D,$){let J=$.bindingMetadata;if(!J||J.__isScriptSetup===!1)return;let F=o.camelize(D),U=o.capitalize(F),X=(K)=>{if(J[D]===K)return D;if(J[F]===K)return F;if(J[U]===K)return U},Y=X("setup-const")||X("setup-reactive-const")||X("literal-const");if(Y)return $.inline?Y:`$setup[${JSON.stringify(Y)}]`;let Q=X("setup-let")||X("setup-ref")||X("setup-maybe-ref");if(Q)return $.inline?`${$.helperString(W7)}(${Q})`:`$setup[${JSON.stringify(Q)}]`;let q=X("props");if(q)return`${$.helperString(W7)}(${$.inline?"__props":"$props"}[${JSON.stringify(q)}])`}function FN(D,$,J=D.props,F,U,X=!1){let{tag:Y,loc:Q,children:q}=D,K=[],W=[],G=[],I=q.length>0,z=!1,Z=0,H=!1,B=!1,j=!1,N=!1,O=!1,L=!1,A=[],E=(y)=>{if(K.length)W.push(C0(by(K),Q)),K=[];if(y)W.push(y)},_=()=>{if($.scopes.vFor>0)K.push(N$(OD("ref_for",!0),OD("true")))},k=({key:y,value:v})=>{if(Y6(y)){let i=y.content,c=o.isOn(i);if(c&&(!F||U)&&i.toLowerCase()!=="onclick"&&i!=="onUpdate:modelValue"&&!o.isReservedProp(i))N=!0;if(c&&o.isReservedProp(i))L=!0;if(c&&v.type===14)v=v.arguments[0];if(v.type===20||(v.type===4||v.type===8)&&u0(v,$)>0)return;if(i==="ref")H=!0;else if(i==="class")B=!0;else if(i==="style")j=!0;else if(i!=="key"&&!A.includes(i))A.push(i);if(F&&(i==="class"||i==="style")&&!A.includes(i))A.push(i)}else O=!0};for(let y=0;y<J.length;y++){let v=J[y];if(v.type===6){let{loc:i,name:c,nameLoc:n,value:t}=v,R=!0;if(c==="ref"){if(H=!0,_(),t&&$.inline){let V=$.bindingMetadata[t.content];if(V==="setup-let"||V==="setup-ref"||V==="setup-maybe-ref")R=!1,K.push(N$(OD("ref_key",!0),OD(t.content,!0,t.loc)))}}if(c==="is"&&(Cj(Y)||t&&t.content.startsWith("vue:")||o1("COMPILER_IS_ON_ELEMENT",$)))continue;K.push(N$(OD(c,!0,n),OD(t?t.content:"",R,t?t.loc:i)))}else{let{name:i,arg:c,exp:n,loc:t,modifiers:R}=v,V=i==="bind",w=i==="on";if(i==="slot"){if(!F)$.onError(mD(40,t));continue}if(i==="once"||i==="memo")continue;if(i==="is"||V&&r1(c,"is")&&(Cj(Y)||o1("COMPILER_IS_ON_ELEMENT",$)))continue;if(w&&X)continue;if(V&&r1(c,"key")||w&&I&&r1(c,"vue:before-update"))z=!0;if(V&&r1(c,"ref"))_();if(!c&&(V||w)){if(O=!0,n)if(V){{if(E(),W.some((f)=>{if(f.type===15)return f.properties.some(({key:a})=>{if(a.type!==4||!a.isStatic)return!0;return a.content!=="class"&&a.content!=="style"&&!o.isOn(a.content)});else return!0}))P3("COMPILER_V_BIND_OBJECT_ORDER",$,t);if(o1("COMPILER_V_BIND_OBJECT_ORDER",$)){W.unshift(n);continue}}_(),E(),W.push(n)}else E({type:14,loc:t,callee:$.helper(MY),arguments:F?[n]:[n,"true"]});else $.onError(mD(V?34:35,t));continue}if(V&&R.some((x)=>x.content==="prop"))Z|=32;let b=$.directiveTransforms[i];if(b){let{props:x,needRuntime:f}=b(v,D,$);if(!X&&x.forEach(k),w&&c&&!Y6(c))E(C0(x,Q));else K.push(...x);if(f){if(G.push(v),o.isSymbol(f))Eh.set(v,f)}}else if(!o.isBuiltInDirective(i)){if(G.push(v),I)z=!0}}}let C=void 0;if(W.length)if(E(),W.length>1)C=x$($.helper(q7),W,Q);else C=W[0];else if(K.length)C=C0(by(K),Q);if(O)Z|=16;else{if(B&&!F)Z|=2;if(j&&!F)Z|=4;if(A.length)Z|=8;if(N)Z|=32}if(!z&&(Z===0||Z===32)&&(H||L||G.length>0))Z|=512;if(!$.inSSR&&C)switch(C.type){case 15:let y=-1,v=-1,i=!1;for(let t=0;t<C.properties.length;t++){let R=C.properties[t].key;if(Y6(R)){if(R.content==="class")y=t;else if(R.content==="style")v=t}else if(!R.isHandlerKey)i=!0}let c=C.properties[y],n=C.properties[v];if(!i){if(c&&!Y6(c.value))c.value=x$($.helper(wY),[c.value]);if(n&&(j||n.value.type===4&&n.value.content.trim()[0]==="["||n.value.type===17))n.value=x$($.helper(RY),[n.value])}else C=x$($.helper(T3),[C]);break;case 14:break;default:C=x$($.helper(T3),[x$($.helper(k3),[C])]);break}return{props:C,directives:G,patchFlag:Z,dynamicPropNames:A,shouldUseBlock:z}}function by(D){let $=new Map,J=[];for(let F=0;F<D.length;F++){let U=D[F];if(U.key.type===8||!U.key.isStatic){J.push(U);continue}let X=U.key.content,Y=$.get(X);if(Y){if(X==="style"||X==="class"||o.isOn(X))WWD(Y,U)}else $.set(X,U),J.push(U)}return J}function WWD(D,$){if(D.value.type===17)D.value.elements.push($.value);else D.value=t1([D.value,$.value],D.loc)}function Th(D,$){let J=[],F=Eh.get(D);if(F)J.push($.helperString(F));else{let X=kj("v-"+D.name,$);if(X)J.push(X);else $.helper(OY),$.directives.add(D.name),J.push(O2(D.name,"directive"))}let{loc:U}=D;if(D.exp)J.push(D.exp);if(D.arg){if(!D.exp)J.push("void 0");J.push(D.arg)}if(Object.keys(D.modifiers).length){if(!D.arg){if(!D.exp)J.push("void 0");J.push("void 0")}let X=OD("true",!1,U);J.push(C0(D.modifiers.map((Y)=>N$(Y,X)),U))}return t1(J,D.loc)}function GWD(D){let $="[";for(let J=0,F=D.length;J<F;J++)if($+=JSON.stringify(D[J]),J<F-1)$+=", ";return $+"]"}function Cj(D){return D==="component"||D==="Component"}var IWD=(D,$)=>{if(Z7(D)){let{children:J,loc:F}=D,{slotName:U,slotProps:X}=bh(D,$),Y=[$.prefixIdentifiers?"_ctx.$slots":"$slots",U,"{}","undefined","true"],Q=2;if(X)Y[2]=X,Q=3;if(J.length)Y[3]=Z2([],J,!1,!1,F),Q=4;if($.scopeId&&!$.slotted)Q=5;Y.splice(Q),D.codegenNode=x$($.helper(yj),Y,F)}};function bh(D,$){let J='"default"',F=void 0,U=[];for(let X=0;X<D.props.length;X++){let Y=D.props[X];if(Y.type===6){if(Y.value)if(Y.name==="name")J=JSON.stringify(Y.value.content);else Y.name=o.camelize(Y.name),U.push(Y)}else if(Y.name==="bind"&&r1(Y.arg,"name")){if(Y.exp)J=Y.exp;else if(Y.arg&&Y.arg.type===4){let Q=o.camelize(Y.arg.content);J=Y.exp=OD(Q,!1,Y.arg.loc),J=Y.exp=K0(Y.exp,$)}}else{if(Y.name==="bind"&&Y.arg&&Y6(Y.arg))Y.arg.content=o.camelize(Y.arg.content);U.push(Y)}}if(U.length>0){let{props:X,directives:Y}=FN(D,$,U,!1,!1);if(F=X,Y.length)$.onError(mD(36,Y[0].loc))}return{slotName:J,slotProps:F}}var Ph=(D,$,J,F)=>{let{loc:U,modifiers:X,arg:Y}=D;if(!D.exp&&!X.length)J.onError(mD(35,U));let Q;if(Y.type===4)if(Y.isStatic){let G=Y.content;if(G.startsWith("vnode"))J.onError(mD(52,Y.loc));if(G.startsWith("vue:"))G=`vnode-${G.slice(4)}`;let I=$.tagType!==0||G.startsWith("vnode")||!/[A-Z]/.test(G)?o.toHandlerKey(o.camelize(G)):`on:${G}`;Q=OD(I,!0,Y.loc)}else Q=k0([`${J.helperString(YY)}(`,Y,")"]);else Q=Y,Q.children.unshift(`${J.helperString(YY)}(`),Q.children.push(")");let q=D.exp;if(q&&!q.content.trim())q=void 0;let K=J.cacheHandlers&&!q&&!J.inVOnce;if(q){let G=rj(q,J),I=!(G||Dh(q,J)),z=q.content.includes(";");if(J.prefixIdentifiers){if(I&&J.addIdentifiers("$event"),q=D.exp=K0(q,J,!1,z),I&&J.removeIdentifiers("$event"),K=J.cacheHandlers&&!J.inVOnce&&!(q.type===4&&q.constType>0)&&!(G&&$.tagType===1)&&!d$(q,J.identifiers),K&&G)if(q.type===4)q.content=`${q.content} && ${q.content}(...args)`;else q.children=[...q.children," && ",...q.children,"(...args)"]}if(I||K&&G)q=k0([`${I?J.isTS?"($event: any)":"$event":`${J.isTS?`
//@ts-ignore
`:""}(...args)`} => ${z?"{":"("}`,q,z?"}":")"])}let W={props:[N$(Q,q||OD("() => {}",!1,U))]};if(F)W=F(W);if(K)W.props[0].value=J.cache(W.props[0].value);return W.props.forEach((G)=>G.key.isHandlerKey=!0),W},Sh=(D,$,J)=>{let{modifiers:F,loc:U}=D,X=D.arg,{exp:Y}=D;if(Y&&Y.type===4&&!Y.content.trim())return J.onError(mD(34,U)),{props:[N$(X,OD("",!0,U))]};if(X.type!==4)X.children.unshift("("),X.children.push(') || ""');else if(!X.isStatic)X.content=X.content?`${X.content} || ""`:'""';if(F.some((Q)=>Q.content==="camel"))if(X.type===4)if(X.isStatic)X.content=o.camelize(X.content);else X.content=`${J.helperString(XY)}(${X.content})`;else X.children.unshift(`${J.helperString(XY)}(`),X.children.push(")");if(!J.inSSR){if(F.some((Q)=>Q.content==="prop"))Py(X,".");if(F.some((Q)=>Q.content==="attr"))Py(X,"^")}return{props:[N$(X,Y)]}},Py=(D,$)=>{if(D.type===4)if(D.isStatic)D.content=$+D.content;else D.content=`\`${$}\${${D.content}}\``;else D.children.unshift(`'${$}' + (`),D.children.push(")")},zWD=(D,$)=>{if(D.type===0||D.type===1||D.type===11||D.type===10)return()=>{let J=D.children,F=void 0,U=!1;for(let X=0;X<J.length;X++){let Y=J[X];if(eX(Y)){U=!0;for(let Q=X+1;Q<J.length;Q++){let q=J[Q];if(eX(q)){if(!F)F=J[X]=k0([Y],Y.loc);F.children.push(" + ",q),J.splice(Q,1),Q--}else{F=void 0;break}}}}if(!U||J.length===1&&(D.type===0||D.type===1&&D.tagType===0&&!D.props.find((X)=>X.type===7&&!$.directiveTransforms[X.name])&&D.tag!=="template"))return;for(let X=0;X<J.length;X++){let Y=J[X];if(eX(Y)||Y.type===8){let Q=[];if(Y.type!==2||Y.content!==" ")Q.push(Y);if(!$.ssr&&u0(Y,$)===0)Q.push(`1 /* ${o.PatchFlagNames[1]} */`);J[X]={type:12,content:Y,loc:Y.loc,codegenNode:x$($.helper(HY),Q)}}}}},Sy=new WeakSet,ZWD=(D,$)=>{if(D.type===1&&q0(D,"once",!0)){if(Sy.has(D)||$.inVOnce||$.inSSR)return;return Sy.add(D),$.inVOnce=!0,$.helper(K7),()=>{$.inVOnce=!1;let J=$.currentNode;if(J.codegenNode)J.codegenNode=$.cache(J.codegenNode,!0,!0)}}},_h=(D,$,J)=>{let{exp:F,arg:U}=D;if(!F)return J.onError(mD(41,D.loc)),R3();let X=F.loc.source.trim(),Y=F.type===4?F.content:X,Q=J.bindingMetadata[X];if(Q==="props"||Q==="props-aliased")return J.onError(mD(44,F.loc)),R3();if(Q==="literal-const"||Q==="setup-const")return J.onError(mD(45,F.loc)),R3();let q=J.inline&&(Q==="setup-let"||Q==="setup-ref"||Q==="setup-maybe-ref");if(!Y.trim()||!rj(F,J)&&!q)return J.onError(mD(42,F.loc)),R3();if(J.prefixIdentifiers&&e6(Y)&&J.identifiers[Y])return J.onError(mD(43,F.loc)),R3();let K=U?U:OD("modelValue",!0),W=U?Y6(U)?`onUpdate:${o.camelize(U.content)}`:k0(['"onUpdate:" + ',U]):"onUpdate:modelValue",G,I=J.isTS?"($event: any)":"$event";if(q)if(Q==="setup-ref")G=k0([`${I} => ((`,OD(X,!1,F.loc),").value = $event)"]);else{let Z=Q==="setup-let"?`${X} = $event`:"null";G=k0([`${I} => (${J.helperString(G7)}(${X}) ? (`,OD(X,!1,F.loc),`).value = $event : ${Z})`])}else G=k0([`${I} => ((`,F,") = $event)"]);let z=[N$(K,D.exp),N$(W,G)];if(J.prefixIdentifiers&&!J.inVOnce&&J.cacheHandlers&&!d$(F,J.identifiers))z[1].value=J.cache(z[1].value);if(D.modifiers.length&&$.tagType===1){let Z=D.modifiers.map((B)=>B.content).map((B)=>(e6(B)?B:JSON.stringify(B))+": true").join(", "),H=U?Y6(U)?`${U.content}Modifiers`:k0([U,' + "Modifiers"']):"modelModifiers";z.push(N$(H,OD(`{ ${Z} }`,!1,D.loc,2)))}return R3(z)};function R3(D=[]){return{props:D}}var HWD=/[\w).+\-_$\]]/,BWD=(D,$)=>{if(!o1("COMPILER_FILTERS",$))return;if(D.type===5)GY(D.content,$);else if(D.type===1)D.props.forEach((J)=>{if(J.type===7&&J.name!=="for"&&J.exp)GY(J.exp,$)})};function GY(D,$){if(D.type===4)_y(D,$);else for(let J=0;J<D.children.length;J++){let F=D.children[J];if(typeof F!=="object")continue;if(F.type===4)_y(F,$);else if(F.type===8)GY(F,$);else if(F.type===5)GY(F.content,$)}}function _y(D,$){let J=D.content,F=!1,U=!1,X=!1,Y=!1,Q=0,q=0,K=0,W=0,G,I,z,Z,H=[];for(z=0;z<J.length;z++)if(I=G,G=J.charCodeAt(z),F){if(G===39&&I!==92)F=!1}else if(U){if(G===34&&I!==92)U=!1}else if(X){if(G===96&&I!==92)X=!1}else if(Y){if(G===47&&I!==92)Y=!1}else if(G===124&&J.charCodeAt(z+1)!==124&&J.charCodeAt(z-1)!==124&&!Q&&!q&&!K)if(Z===void 0)W=z+1,Z=J.slice(0,z).trim();else B();else{switch(G){case 34:U=!0;break;case 39:F=!0;break;case 96:X=!0;break;case 40:K++;break;case 41:K--;break;case 91:q++;break;case 93:q--;break;case 123:Q++;break;case 125:Q--;break}if(G===47){let j=z-1,N;for(;j>=0;j--)if(N=J.charAt(j),N!==" ")break;if(!N||!HWD.test(N))Y=!0}}if(Z===void 0)Z=J.slice(0,z).trim();else if(W!==0)B();function B(){H.push(J.slice(W,z).trim()),W=z+1}if(H.length){I7("COMPILER_FILTERS",$,D.loc);for(z=0;z<H.length;z++)Z=OWD(Z,H[z],$);D.content=Z,D.ast=void 0}}function OWD(D,$,J){J.helper(jY);let F=$.indexOf("(");if(F<0)return J.filters.add($),`${O2($,"filter")}(${D})`;else{let U=$.slice(0,F),X=$.slice(F+1);return J.filters.add(U),`${O2(U,"filter")}(${D}${X!==")"?","+X:X}`}}var ky=new WeakSet,jWD=(D,$)=>{if(D.type===1){let J=q0(D,"memo");if(!J||ky.has(D)||$.inSSR)return;return ky.add(D),()=>{let F=D.codegenNode||$.currentNode.codegenNode;if(F&&F.type===13){if(D.tagType!==1)vY(F,$);D.codegenNode=x$($.helper(AY),[J.exp,Z2(void 0,F),"_cache",String($.cached.length)]),$.cached.push(null)}}}},kh=(D,$)=>{if(D.type===1){for(let J of D.props)if(J.type===7&&J.name==="bind"&&(!J.exp||!1)&&J.arg){let F=J.arg;if(F.type!==4||!F.isStatic)$.onError(mD(53,F.loc)),J.exp=OD("",!0,F.loc);else{let U=o.camelize(F.content);if(pj.test(U[0])||U[0]==="-")J.exp=OD(U,!1,F.loc)}}}};function Ch(D){return[[kh,ZWD,UWD,jWD,QWD,BWD,...D?[Rh,Nh]:[],IWD,Ah,wh,zWD],{on:Ph,bind:Sh,model:_h}]}function NWD(D,$={}){let J=$.onError||lj,F=$.mode==="module",U=$.prefixIdentifiers===!0||F;if(!U&&$.cacheHandlers)J(mD(50));if($.scopeId&&!F)J(mD(51));let X=o.extend({},$,{prefixIdentifiers:U}),Y=o.isString(D)?Qh(D,X):D,[Q,q]=Ch(U);if($.isTS){let{expressionPlugins:K}=$;if(!K||!K.includes("typescript"))$.expressionPlugins=[...K||[],"typescript"]}return zh(Y,o.extend({},X,{nodeTransforms:[...Q,...$.nodeTransforms||[]],directiveTransforms:o.extend({},q,$.directiveTransforms||{})})),Zh(Y,X)}var VWD={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},LWD=()=>({props:[]});uh.generateCodeFrame=o.generateCodeFrame;uh.BASE_TRANSITION=uj;uh.BindingTypes=VWD;uh.CAMELIZE=XY;uh.CAPITALIZE=Cy;uh.CREATE_BLOCK=gj;uh.CREATE_COMMENT=_3;uh.CREATE_ELEMENT_BLOCK=fj;uh.CREATE_ELEMENT_VNODE=ZY;uh.CREATE_SLOTS=hj;uh.CREATE_STATIC=xj;uh.CREATE_TEXT=HY;uh.CREATE_VNODE=zY;uh.CompilerDeprecationTypes=qKD;uh.ConstantTypes=$KD;uh.ElementTypes=DKD;uh.ErrorCodes=WKD;uh.FRAGMENT=v3;uh.GUARD_REACTIVE_PROPS=k3;uh.IS_MEMO_SAME=mj;uh.IS_REF=G7;uh.KEEP_ALIVE=Y7;uh.MERGE_PROPS=q7;uh.NORMALIZE_CLASS=wY;uh.NORMALIZE_PROPS=T3;uh.NORMALIZE_STYLE=RY;uh.Namespaces=sqD;uh.NodeTypes=eqD;uh.OPEN_BLOCK=a1;uh.POP_SCOPE_ID=gy;uh.PUSH_SCOPE_ID=uy;uh.RENDER_LIST=VY;uh.RENDER_SLOT=yj;uh.RESOLVE_COMPONENT=Q7;uh.RESOLVE_DIRECTIVE=OY;uh.RESOLVE_DYNAMIC_COMPONENT=BY;uh.RESOLVE_FILTER=jY;uh.SET_BLOCK_TRACKING=K7;uh.SUSPENSE=IY;uh.TELEPORT=A3;uh.TO_DISPLAY_STRING=LY;uh.TO_HANDLERS=MY;uh.TO_HANDLER_KEY=YY;uh.TS_NODE_TYPES=cj;uh.UNREF=W7;uh.WITH_CTX=EY;uh.WITH_DIRECTIVES=NY;uh.WITH_MEMO=AY;uh.advancePositionWithClone=vj;uh.advancePositionWithMutation=tj;uh.assert=Tj;uh.baseCompile=NWD;uh.baseParse=Qh;uh.buildDirectiveArgs=Th;uh.buildProps=FN;uh.buildSlots=Mh;uh.checkCompatEnabled=P3;uh.convertToBlock=vY;uh.createArrayExpression=t1;uh.createAssignmentExpression=XKD;uh.createBlockStatement=yy;uh.createCacheExpression=xy;uh.createCallExpression=x$;uh.createCompilerError=mD;uh.createCompoundExpression=k0;uh.createConditionalExpression=QY;uh.createForLoopParams=WY;uh.createFunctionExpression=Z2;uh.createIfStatement=UKD;uh.createInterpolation=JKD;uh.createObjectExpression=C0;uh.createObjectProperty=N$;uh.createReturnStatement=QKD;uh.createRoot=fy;uh.createSequenceExpression=YKD;uh.createSimpleExpression=OD;uh.createStructuralDirectiveTransform=DN;uh.createTemplateLiteral=FKD;uh.createTransformContext=Ih;uh.createVNodeCall=b3;uh.errorMessages=ly;uh.extractIdentifiers=X6;uh.findDir=q0;uh.findProp=z7;uh.forAliasRE=Jh;uh.generate=Zh;uh.getBaseTransformPreset=Ch;uh.getConstantType=u0;uh.getMemoedVNodeCall=$h;uh.getVNodeBlockHelper=B2;uh.getVNodeHelper=H2;uh.hasDynamicKeyVBind=jKD;uh.hasScopeRef=d$;uh.helperNameMap=j0;uh.injectProp=H7;uh.isAllWhitespace=aj;uh.isCommentOrWhitespace=sj;uh.isCoreComponent=nj;uh.isFnExpression=Dh;uh.isFnExpressionBrowser=OKD;uh.isFnExpressionNode=ey;uh.isFunctionType=oy;uh.isInDestructureAssignment=KY;uh.isInNewExpression=cy;uh.isMemberExpression=rj;uh.isMemberExpressionBrowser=HKD;uh.isMemberExpressionNode=sy;uh.isReferencedIdentifier=dy;uh.isSimpleIdentifier=e6;uh.isSlotOutlet=Z7;uh.isStaticArgOf=r1;uh.isStaticExp=Y6;uh.isStaticProperty=dj;uh.isStaticPropertyKey=ay;uh.isTemplateNode=S3;uh.isText=eX;uh.isVPre=bj;uh.isVSlot=PY;uh.isWhitespaceText=SY;uh.locStub=V$;uh.noopDirectiveTransform=LWD;uh.processExpression=K0;uh.processFor=Lh;uh.processIf=Vh;uh.processSlotOutlet=bh;uh.registerRuntimeHelpers=aqD;uh.resolveComponentType=vh;uh.stringifyExpression=$N;uh.toValidAssetId=O2;uh.trackSlotScopes=wh;uh.trackVForSlotScopes=Rh;uh.transform=zh;uh.transformBind=Sh;uh.transformElement=Ah;uh.transformExpression=Nh;uh.transformModel=_h;uh.transformOn=Ph;uh.transformVBindShorthand=kh;uh.traverseNode=O7;uh.unwrapTSNode=TY;uh.validFirstIdentCharRE=pj;uh.walkBlockDeclarations=ij;uh.walkFunctionParams=ny;uh.walkIdentifiers=iy;uh.warnDeprecation=I7});var th=u((uY)=>{Object.defineProperty(uY,"__esModule",{value:!0});var LD=gh(),bD=CO(),UN=Symbol("vModelRadio"),XN=Symbol("vModelCheckbox"),YN=Symbol("vModelText"),QN=Symbol("vModelSelect"),CY=Symbol("vModelDynamic"),qN=Symbol("vOnModifiersGuard"),KN=Symbol("vOnKeysGuard"),WN=Symbol("vShow"),gY=Symbol("Transition"),GN=Symbol("TransitionGroup");LD.registerRuntimeHelpers({[UN]:"vModelRadio",[XN]:"vModelCheckbox",[YN]:"vModelText",[QN]:"vModelSelect",[CY]:"vModelDynamic",[qN]:"withModifiers",[KN]:"withKeys",[WN]:"vShow",[gY]:"Transition",[GN]:"TransitionGroup"});var IN={parseMode:"html",isVoidTag:bD.isVoidTag,isNativeTag:(D)=>bD.isHTMLTag(D)||bD.isSVGTag(D)||bD.isMathMLTag(D),isPreTag:(D)=>D==="pre",isIgnoreNewlineTag:(D)=>D==="pre"||D==="textarea",decodeEntities:void 0,isBuiltInComponent:(D)=>{if(D==="Transition"||D==="transition")return gY;else if(D==="TransitionGroup"||D==="transition-group")return GN},getNamespace(D,$,J){let F=$?$.ns:J;if($&&F===2){if($.tag==="annotation-xml"){if(D==="svg")return 1;if($.props.some((U)=>U.type===6&&U.name==="encoding"&&U.value!=null&&(U.value.content==="text/html"||U.value.content==="application/xhtml+xml")))F=0}else if(/^m(?:[ions]|text)$/.test($.tag)&&D!=="mglyph"&&D!=="malignmark")F=0}else if($&&F===1){if($.tag==="foreignObject"||$.tag==="desc"||$.tag==="title")F=0}if(F===0){if(D==="svg")return 1;if(D==="math")return 2}return F}},ih=(D)=>{if(D.type===1)D.props.forEach(($,J)=>{if($.type===6&&$.name==="style"&&$.value)D.props[J]={type:7,name:"bind",arg:LD.createSimpleExpression("style",!0,$.loc),exp:XzD($.value.content,$.loc),modifiers:[],loc:$.loc}})},XzD=(D,$)=>{let J=bD.parseStringStyle(D);return LD.createSimpleExpression(JSON.stringify(J),!1,$,3)};function p0(D,$){return LD.createCompilerError(D,$,dh)}var YzD={X_V_HTML_NO_EXPRESSION:54,"54":"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:55,"55":"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:56,"56":"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:57,"57":"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:58,"58":"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:59,"59":"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,"60":"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:61,"61":"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:62,"62":"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:63,"63":"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:64,"64":"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:65,"65":"__EXTEND_POINT__"},dh={[54]:"v-html is missing expression.",[55]:"v-html will override element children.",[56]:"v-text is missing expression.",[57]:"v-text will override element children.",[58]:"v-model can only be used on <input>, <textarea> and <select> elements.",[59]:"v-model argument is not supported on plain elements.",[60]:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",[61]:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",[62]:"v-show is missing expression.",[63]:"<Transition> expects exactly one child element or component.",[64]:"Tags with side effect (<script> and <style>) are ignored in client component templates."},QzD=(D,$,J)=>{let{exp:F,loc:U}=D;if(!F)J.onError(p0(54,U));if($.children.length)J.onError(p0(55,U)),$.children.length=0;return{props:[LD.createObjectProperty(LD.createSimpleExpression("innerHTML",!0,U),F||LD.createSimpleExpression("",!0))]}},qzD=(D,$,J)=>{let{exp:F,loc:U}=D;if(!F)J.onError(p0(56,U));if($.children.length)J.onError(p0(57,U)),$.children.length=0;return{props:[LD.createObjectProperty(LD.createSimpleExpression("textContent",!0),F?LD.getConstantType(F,J)>0?F:LD.createCallExpression(J.helperString(LD.TO_DISPLAY_STRING),[F],U):LD.createSimpleExpression("",!0))]}},KzD=(D,$,J)=>{let F=LD.transformModel(D,$,J);if(!F.props.length||$.tagType===1)return F;if(D.arg)J.onError(p0(59,D.arg.loc));function U(){let Q=LD.findDir($,"bind");if(Q&&LD.isStaticArgOf(Q.arg,"value"))J.onError(p0(61,Q.loc))}let{tag:X}=$,Y=J.isCustomElement(X);if(X==="input"||X==="textarea"||X==="select"||Y){let Q=YN,q=!1;if(X==="input"||Y){let K=LD.findProp($,"type");if(K){if(K.type===7)Q=CY;else if(K.value)switch(K.value.content){case"radio":Q=UN;break;case"checkbox":Q=XN;break;case"file":q=!0,J.onError(p0(60,D.loc));break;default:U();break}}else if(LD.hasDynamicKeyVBind($))Q=CY;else U()}else if(X==="select")Q=QN;else U();if(!q)F.needRuntime=J.helper(Q)}else J.onError(p0(58,D.loc));return F.props=F.props.filter((Q)=>!(Q.key.type===4&&Q.key.content==="modelValue")),F},WzD=bD.makeMap("passive,once,capture"),GzD=bD.makeMap("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),IzD=bD.makeMap("left,right"),ch=bD.makeMap("onkeyup,onkeydown,onkeypress"),zzD=(D,$,J,F)=>{let U=[],X=[],Y=[];for(let Q=0;Q<$.length;Q++){let q=$[Q].content;if(q==="native"&&LD.checkCompatEnabled("COMPILER_V_ON_NATIVE",J,F))Y.push(q);else if(WzD(q))Y.push(q);else if(IzD(q))if(LD.isStaticExp(D))if(ch(D.content.toLowerCase()))U.push(q);else X.push(q);else U.push(q),X.push(q);else if(GzD(q))X.push(q);else U.push(q)}return{keyModifiers:U,nonKeyModifiers:X,eventOptionModifiers:Y}},fh=(D,$)=>{return LD.isStaticExp(D)&&D.content.toLowerCase()==="onclick"?LD.createSimpleExpression($,!0):D.type!==4?LD.createCompoundExpression(["(",D,`) === "onClick" ? "${$}" : (`,D,")"]):D},ZzD=(D,$,J)=>{return LD.transformOn(D,$,J,(F)=>{let{modifiers:U}=D;if(!U.length)return F;let{key:X,value:Y}=F.props[0],{keyModifiers:Q,nonKeyModifiers:q,eventOptionModifiers:K}=zzD(X,U,J,D.loc);if(q.includes("right"))X=fh(X,"onContextmenu");if(q.includes("middle"))X=fh(X,"onMouseup");if(q.length)Y=LD.createCallExpression(J.helper(qN),[Y,JSON.stringify(q)]);if(Q.length&&(!LD.isStaticExp(X)||ch(X.content.toLowerCase())))Y=LD.createCallExpression(J.helper(KN),[Y,JSON.stringify(Q)]);if(K.length){let W=K.map(bD.capitalize).join("");X=LD.isStaticExp(X)?LD.createSimpleExpression(`${X.content}${W}`,!0):LD.createCompoundExpression(["(",X,`) + "${W}"`])}return{props:[LD.createObjectProperty(X,Y)]}})},HzD=(D,$,J)=>{let{exp:F,loc:U}=D;if(!F)J.onError(p0(62,U));return{props:[],needRuntime:J.helper(WN)}},BzD=(D,$)=>{if(D.type===1&&D.tagType===1){if($.isBuiltInComponent(D.tag)===gY)return()=>{if(!D.children.length)return;if(nh(D))$.onError(p0(63,{start:D.children[0].loc.start,end:D.children[D.children.length-1].loc.end,source:""}));let F=D.children[0];if(F.type===1){for(let U of F.props)if(U.type===7&&U.name==="show")D.props.push({type:6,name:"persisted",nameLoc:D.loc,value:void 0,loc:D.loc})}}}};function nh(D){let $=D.children=D.children.filter((F)=>!LD.isCommentOrWhitespace(F)),J=$[0];return $.length!==1||J.type===11||J.type===9&&J.branches.some(nh)}var OzD=/__VUE_EXP_START__(.*?)__VUE_EXP_END__/g,jzD=(D,$,J)=>{if($.scopes.vSlot>0)return;let F=J.type===1&&J.codegenNode&&J.codegenNode.type===13&&J.codegenNode.children&&!bD.isArray(J.codegenNode.children)&&J.codegenNode.children.type===20,U=0,X=0,Y=[],Q=(K)=>{if(U>=20||X>=5){let W=LD.createCallExpression($.helper(LD.CREATE_STATIC),[JSON.stringify(Y.map((I)=>zN(I,$)).join("")).replace(OzD,'" + $1 + "'),String(Y.length)]),G=Y.length-1;if(F)D.splice(K-Y.length,Y.length,W);else if(Y[0].codegenNode.value=W,Y.length>1){D.splice(K-Y.length+1,G);let I=$.cached.indexOf(Y[Y.length-1].codegenNode);if(I>-1){for(let z=I;z<$.cached.length;z++){let Z=$.cached[z];if(Z)Z.index-=G}$.cached.splice(I-G+1,G)}}return G}return 0},q=0;for(;q<D.length;q++){let K=D[q];if(F||NzD(K)){let G=wzD(K);if(G){U+=G[0],X+=G[1],Y.push(K);continue}}q-=Q(q),U=0,X=0,Y.length=0}Q(q)},NzD=(D)=>{if((D.type===1&&D.tagType===0||D.type===12)&&D.codegenNode&&D.codegenNode.type===20)return D.codegenNode},VzD=/^(?:data|aria)-/,xh=(D,$)=>{return($===0?bD.isKnownHtmlAttr(D):$===1?bD.isKnownSvgAttr(D):$===2?bD.isKnownMathMLAttr(D):!1)||VzD.test(D)},LzD=bD.makeMap("caption,thead,tr,th,tbody,td,tfoot,colgroup,col");function wzD(D){if(D.type===1&&LzD(D.tag))return!1;if(D.type===1&&LD.findDir(D,"once",!0))return!1;if(D.type===12)return[1,0];let $=1,J=D.props.length>0?1:0,F=!1,U=()=>{return F=!0,!1};function X(Y){let Q=Y.tag==="option"&&Y.ns===0;for(let q=0;q<Y.props.length;q++){let K=Y.props[q];if(K.type===6&&!xh(K.name,Y.ns))return U();if(K.type===7&&K.name==="bind"){if(K.arg&&(K.arg.type===8||K.arg.isStatic&&!xh(K.arg.content,Y.ns)))return U();if(K.exp&&(K.exp.type===8||K.exp.constType<3))return U();if(Q&&LD.isStaticArgOf(K.arg,"value")&&K.exp&&!K.exp.isStatic)return U()}}for(let q=0;q<Y.children.length;q++){$++;let K=Y.children[q];if(K.type===1){if(K.props.length>0)J++;if(X(K),F)return!1}}return!0}return X(D)?[$,J]:!1}function zN(D,$){if(bD.isString(D))return D;if(bD.isSymbol(D))return"";switch(D.type){case 1:return RzD(D,$);case 2:return bD.escapeHtml(D.content);case 3:return`<!--${bD.escapeHtml(D.content)}-->`;case 5:return bD.escapeHtml(bD.toDisplayString(N2(D.content)));case 8:return bD.escapeHtml(N2(D));case 12:return zN(D.content,$);default:return""}}function RzD(D,$){let J=`<${D.tag}`,F="";for(let U=0;U<D.props.length;U++){let X=D.props[U];if(X.type===6){if(J+=` ${X.name}`,X.value)J+=`="${bD.escapeHtml(X.value.content)}"`}else if(X.type===7){if(X.name==="bind"){let Y=X.exp;if(Y.content[0]==="_"){J+=` ${X.arg.content}="__VUE_EXP_START__${Y.content}__VUE_EXP_END__"`;continue}if(bD.isBooleanAttr(X.arg.content)&&Y.content==="false")continue;let Q=N2(Y);if(Q!=null){let q=X.arg&&X.arg.content;if(q==="class")Q=bD.normalizeClass(Q);else if(q==="style")Q=bD.stringifyStyle(bD.normalizeStyle(Q));J+=` ${X.arg.content}="${bD.escapeHtml(Q)}"`}}else if(X.name==="html")F=N2(X.exp);else if(X.name==="text")F=bD.escapeHtml(bD.toDisplayString(N2(X.exp)))}}if($.scopeId)J+=` ${$.scopeId}`;if(J+=">",F)J+=F;else for(let U=0;U<D.children.length;U++)J+=zN(D.children[U],$);if(!bD.isVoidTag(D.tag))J+=`</${D.tag}>`;return J}function N2(D){if(D.type===4)return Function(`return (${D.content})`)();else{let $="";return D.children.forEach((J)=>{if(bD.isString(J)||bD.isSymbol(J))return;if(J.type===2)$+=J.content;else if(J.type===5)$+=bD.toDisplayString(N2(J.content));else $+=N2(J)}),$}}var MzD=(D,$)=>{if(D.type===1&&D.tagType===0&&(D.tag==="script"||D.tag==="style"))$.onError(p0(64,D.loc)),$.removeNode()};function EzD(D,$){if(D==="template")return!0;if(D in yh)return yh[D].has($);if($ in hh)return hh[$].has(D);if(D in mh){if(mh[D].has($))return!1}if($ in lh){if(lh[$].has(D))return!1}return!0}var u3=new Set(["h1","h2","h3","h4","h5","h6"]),j2=new Set([]),yh={head:new Set(["base","basefront","bgsound","link","meta","title","noscript","noframes","style","script","template"]),optgroup:new Set(["option"]),select:new Set(["optgroup","option","hr"]),table:new Set(["caption","colgroup","tbody","tfoot","thead"]),tr:new Set(["td","th"]),colgroup:new Set(["col"]),tbody:new Set(["tr"]),thead:new Set(["tr"]),tfoot:new Set(["tr"]),script:j2,iframe:j2,option:j2,textarea:j2,style:j2,title:j2},hh={html:j2,body:new Set(["html"]),head:new Set(["html"]),td:new Set(["tr"]),colgroup:new Set(["table"]),caption:new Set(["table"]),tbody:new Set(["table"]),tfoot:new Set(["table"]),col:new Set(["colgroup"]),th:new Set(["tr"]),thead:new Set(["table"]),tr:new Set(["tbody","thead","tfoot"]),dd:new Set(["dl","div"]),dt:new Set(["dl","div"]),figcaption:new Set(["figure"]),summary:new Set(["details"]),area:new Set(["map"])},mh={p:new Set(["address","article","aside","blockquote","center","details","dialog","dir","div","dl","fieldset","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","menu","ol","p","pre","section","table","ul"]),svg:new Set(["b","blockquote","br","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","hr","i","img","li","menu","meta","ol","p","pre","ruby","s","small","span","strong","sub","sup","table","u","ul","var"])},lh={a:new Set(["a"]),button:new Set(["button"]),dd:new Set(["dd","dt"]),dt:new Set(["dd","dt"]),form:new Set(["form"]),li:new Set(["li"]),h1:u3,h2:u3,h3:u3,h4:u3,h5:u3,h6:u3},AzD=(D,$)=>{if(D.type===1&&D.tagType===0&&$.parent&&$.parent.type===1&&$.parent.tagType===0&&!EzD($.parent.tag,D.tag)){let J=SyntaxError(`<${D.tag}> cannot be child of <${$.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);J.loc=D.loc,$.onWarn(J)}},ph=[ih,BzD,AzD],rh={cloak:LD.noopDirectiveTransform,html:QzD,text:qzD,model:KzD,on:ZzD,show:HzD};function vzD(D,$={}){return LD.baseCompile(D,bD.extend({},IN,$,{nodeTransforms:[MzD,...ph,...$.nodeTransforms||[]],directiveTransforms:bD.extend({},rh,$.directiveTransforms||{}),transformHoist:jzD}))}function TzD(D,$={}){return LD.baseParse(D,bD.extend({},IN,$))}uY.DOMDirectiveTransforms=rh;uY.DOMErrorCodes=YzD;uY.DOMErrorMessages=dh;uY.DOMNodeTransforms=ph;uY.TRANSITION=gY;uY.TRANSITION_GROUP=GN;uY.V_MODEL_CHECKBOX=XN;uY.V_MODEL_DYNAMIC=CY;uY.V_MODEL_RADIO=UN;uY.V_MODEL_SELECT=QN;uY.V_MODEL_TEXT=YN;uY.V_ON_WITH_KEYS=KN;uY.V_ON_WITH_MODIFIERS=qN;uY.V_SHOW=WN;uY.compile=vzD;uY.createDOMCompilerError=p0;uY.parse=TzD;uY.parserOptions=IN;uY.transformStyle=ih;Object.keys(LD).forEach(function(D){if(D!=="default"&&!Object.prototype.hasOwnProperty.call(uY,D))uY[D]=LD[D]})});import{exit as YZD}from"node:process";import{workerData as QZD}from"node:worker_threads";L7();w4();sK();import{parentPort as QFD}from"node:worker_threads";async function Lf(D,$){let{project:J,apiHost:F,apikey:U,command:X}=D;SN(X);let Y=Date.now(),Q=Y,q="error";try{if(B6("local scan started",{scan:$.step}),q=$.scan(J),Q=Date.now(),B6("local scan finished",{scan:$.step,result:q,duration_ms:Q-Y}),q!=="found")return;let K=Date.now();B6("step update started",{scan:$.step});let W=await fetch(`${w1(F)}/app/${encodeURIComponent(J.appId)}`,{method:"PUT",headers:Q6({"Content-Type":"application/json",Authorization:U,capgkey:U}),body:JSON.stringify({onboarding:{steps:{[$.step]:{status:"done"}}}}),redirect:"manual"});if(B6("step update finished",{scan:$.step,status:W.status,duration_ms:Date.now()-K,todo_report_status:W.ok?"success":"rejected",...W.ok?{}:{todo_report_http_status:W.status}}),W.ok)QFD?.postMessage({type:"onboarding-step",step:$.step});await W.body?.cancel()}catch(K){throw B6("local check failed",{scan:$.step,error:NF(K)}),K}finally{if(q==="error")Q=Date.now()}}var j7=N0(th(),1);import{existsSync as oh,readdirSync as rzD,readFileSync as tzD,realpathSync as ozD,statSync as azD}from"node:fs";import{basename as szD,dirname as Um,extname as ah,isAbsolute as ezD,join as sh,relative as Xm,resolve as DZD,sep as ZN}from"node:path";import uD from"typescript";var HN="@capgo/capacitor-updater",eh=/\.(?:[cm]?[jt]sx?|vue)$/,Dm=/^(?:\..*|node_modules|dist|build|www|coverage|android|ios|test|tests|__tests__|__mocks__|fixtures|__fixtures__|e2e|cypress|playwright|scripts)$/,$ZD=/\.(?:test|spec|d)\.[cm]?[jt]sx?$|^capacitor\.config\./;function $m(D,$){let J=Xm(D,$);return!ezD(J)&&J!==".."&&!J.startsWith(`..${ZN}`)}function JZD(D){let $=uD.findConfigFile(D,uD.sys.fileExists);if(!$)return{};let J=uD.readConfigFile($,uD.sys.readFile);if(J.error)return{};return uD.parseJsonConfigFileContent({...J.config,files:[],include:[]},uD.sys,Um($)).options}function FZD(D){return j7.parse(D,{parseMode:"sfc",onError:(J)=>{throw J}}).children.flatMap((J)=>{if(J.type!==j7.NodeTypes.ELEMENT||J.tag!=="script")return[];return J.children.flatMap((F)=>F.type===j7.NodeTypes.TEXT?[F.content]:[])}).join(`
`)}function UZD(D){for(let $=D.parent;$;$=$.parent)if(uD.isImportDeclaration($))return $;return}function Jm(D){let $=UZD(D);return!!$&&uD.isStringLiteral($.moduleSpecifier)&&$.moduleSpecifier.text===HN&&!$.importClause?.isTypeOnly}function Fm(D,$){if(uD.isIdentifier(D))return!!$.getSymbolAtLocation(D)?.declarations?.some((J)=>{if(uD.isImportSpecifier(J))return!J.isTypeOnly&&(J.propertyName??J.name).text==="CapacitorUpdater"&&Jm(J);if(!uD.isBindingElement(J)||!uD.isObjectBindingPattern(J.parent))return!1;let F=J.parent.parent,U=J.propertyName??J.name;if(!uD.isIdentifier(U)||U.text!=="CapacitorUpdater"||!uD.isVariableDeclaration(F))return!1;let X=F.initializer;return!!X&&uD.isCallExpression(X)&&uD.isIdentifier(X.expression)&&X.expression.text==="require"&&!$.getSymbolAtLocation(X.expression)&&X.arguments.length===1&&uD.isStringLiteral(X.arguments[0])&&X.arguments[0].text===HN&&uD.isVariableDeclarationList(F.parent)&&!!(F.parent.flags&uD.NodeFlags.Const)});if(uD.isPropertyAccessExpression(D)&&D.name.text==="CapacitorUpdater"&&uD.isIdentifier(D.expression))return!!$.getSymbolAtLocation(D.expression)?.declarations?.some((J)=>uD.isNamespaceImport(J)&&Jm(J));return!1}function XZD(D,$){function J(F){if(uD.isCallExpression(F)){let U=F.expression;if(uD.isPropertyAccessExpression(U)&&U.name.text==="notifyAppReady"&&Fm(U.expression,$))return!0;if(uD.isElementAccessExpression(U)&&uD.isStringLiteral(U.argumentExpression)&&U.argumentExpression.text==="notifyAppReady"&&Fm(U.expression,$))return!0}return uD.forEachChild(F,J)??!1}return J(D)}function Ym(D){try{let q=function(H){if(Q(),!eh.test(H)||$ZD.test(szD(H)))return;let B=ozD(H);if(U.has(B)||!$m(D.workspaceRoot,B)||Xm(D.workspaceRoot,B).split(ZN).some((E)=>Dm.test(E))||D.webDir&&D.webDir!==D.dir&&$m(D.webDir,B))return;U.add(B);let j=azD(B).size;if(j>1048576)throw Error("Source file too large");Y+=j,Q();let N=tzD(B,"utf8"),O=B.split(ZN).join("/"),L=ah(B)===".vue"?`${O}.tsx`:O,A=ah(B)===".vue"?FZD(N):N;J.set(L,A),F.set(L,B)},K=function(H){Q();for(let B of rzD(H,{withFileTypes:!0})){let j=sh(H,B.name);if(B.isDirectory()){if(!Dm.test(B.name)&&!oh(sh(j,"package.json")))K(j)}else if(B.isFile())q(j)}},$=Date.now()+5000,J=new Map,F=new Map,U=new Set,X=JZD(D.dir),Y=0,Q=()=>{if(Date.now()>$||U.size>1e4||Y>20971520)throw Error("Source scan budget exceeded")};K(D.dir);for(let[H,B]of J){Q();let j=F.get(H);for(let N of uD.preProcessFile(B,!0,!0).importedFiles){let O=N.fileName;if(O===HN)continue;let L=uD.resolveModuleName(O,j,X,uD.sys).resolvedModule?.resolvedFileName??(O.startsWith(".")&&eh.test(O)?DZD(Um(j),O):void 0);if(L&&oh(L))q(L)}}let W={allowJs:!0,noLib:!0,noResolve:!0,types:[],jsx:uD.JsxEmit.Preserve},G=uD.createCompilerHost(W);G.getSourceFile=(H,B)=>{let j=J.get(H);return j===void 0?void 0:uD.createSourceFile(H,j,B,!0)};let I=uD.createProgram([...J.keys()],W,G),z=I.getTypeChecker(),Z=!1;for(let H of I.getSourceFiles()){if(Q(),I.getSyntacticDiagnostics(H).length){Z=!0;continue}if(XZD(H,z))return"found"}return Z?"unknown":"not_found"}catch{return"unknown"}}Lf(QZD,{channel:"notify-app-ready",step:"add_code",scan:Ym}).catch(()=>{}).finally(()=>YZD(0));