@jigging/jig 0.1.0-alpha.2 → 0.1.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +253 -0
- package/LICENSES/Apache-2.0.txt +202 -0
- package/LICENSES/CC-BY-4.0.txt +396 -0
- package/LICENSES/Community-Spec-1.0.md +99 -0
- package/LICENSES.md +28 -0
- package/PRICING.md +77 -0
- package/README.md +113 -105
- package/THIRD_PARTY_NOTICES +420 -0
- package/bin/jig +11 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +329 -79
- package/dist/json.d.ts +1 -1
- package/dist/project/author.d.ts +19 -6
- package/dist/project/commands.d.ts +9 -0
- package/dist/project/grants.d.ts +52 -0
- package/dist/schema/types.d.ts +52 -0
- package/libexec/agent/claude-agent-acp.LICENSE +191 -0
- package/libexec/agent/claude-agent-acp.js +71361 -0
- package/libexec/agent/claude-agent-launcher.js +65 -0
- package/libexec/agent/claude-agent-sdk.LICENSE +1 -0
- package/libexec/agent/codex-acp.LICENSE +190 -0
- package/libexec/agent/codex-acp.js +34243 -0
- package/libexec/agent/codex-agent-launcher.js +115 -0
- package/libexec/agent/codex-requirements.toml +5 -0
- package/libexec/agent/pi-acp.LICENSE +21 -0
- package/libexec/agent/pi-acp.js +16480 -0
- package/libexec/agent/pi-agent-launcher.js +189 -0
- package/libexec/authoring/contract-authoring-worker.js +50 -0
- package/libexec/authoring/node_modules/@babel/code-frame/LICENSE +22 -0
- package/libexec/authoring/node_modules/@babel/code-frame/README.md +19 -0
- package/libexec/authoring/node_modules/@babel/code-frame/lib/index.js +217 -0
- package/libexec/authoring/node_modules/@babel/code-frame/lib/index.js.map +1 -0
- package/libexec/authoring/node_modules/@babel/code-frame/package.json +32 -0
- package/libexec/authoring/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
- package/libexec/authoring/node_modules/@babel/helper-validator-identifier/README.md +19 -0
- package/libexec/authoring/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
- package/libexec/authoring/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
- package/libexec/authoring/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
- package/libexec/authoring/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
- package/libexec/authoring/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
- package/libexec/authoring/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
- package/libexec/authoring/node_modules/@babel/helper-validator-identifier/package.json +31 -0
- package/libexec/authoring/node_modules/@inquirer/ansi/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/ansi/README.md +89 -0
- package/libexec/authoring/node_modules/@inquirer/ansi/dist/index.d.ts +14 -0
- package/libexec/authoring/node_modules/@inquirer/ansi/dist/index.js +21 -0
- package/libexec/authoring/node_modules/@inquirer/ansi/package.json +79 -0
- package/libexec/authoring/node_modules/@inquirer/checkbox/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/checkbox/README.md +195 -0
- package/libexec/authoring/node_modules/@inquirer/checkbox/dist/index.d.ts +67 -0
- package/libexec/authoring/node_modules/@inquirer/checkbox/dist/index.js +210 -0
- package/libexec/authoring/node_modules/@inquirer/checkbox/package.json +93 -0
- package/libexec/authoring/node_modules/@inquirer/confirm/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/confirm/README.md +115 -0
- package/libexec/authoring/node_modules/@inquirer/confirm/dist/index.d.ts +34 -0
- package/libexec/authoring/node_modules/@inquirer/confirm/dist/index.js +74 -0
- package/libexec/authoring/node_modules/@inquirer/confirm/package.json +91 -0
- package/libexec/authoring/node_modules/@inquirer/core/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/core/README.md +392 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/index.d.ts +13 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/index.js +12 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/Separator.d.ts +10 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/Separator.js +21 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/create-prompt.d.ts +11 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/create-prompt.js +184 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/errors.d.ts +20 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/errors.js +21 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/hook-engine.d.ts +17 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/hook-engine.js +111 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/key.d.ts +15 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/key.js +34 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/make-theme.d.ts +3 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/make-theme.js +33 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.d.ts +15 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.js +121 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/promise-polyfill.d.ts +7 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/promise-polyfill.js +14 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/screen-manager.d.ts +14 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/screen-manager.js +84 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/theme.d.ts +166 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/theme.js +29 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/use-effect.d.ts +2 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/use-effect.js +11 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/use-keypress.d.ts +3 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/use-keypress.js +20 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/use-memo.d.ts +1 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/use-memo.js +14 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/use-prefix.d.ts +5 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/use-prefix.js +35 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/use-ref.d.ts +6 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/use-ref.js +4 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/use-state.d.ts +7 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/use-state.js +28 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/utils.d.ts +13 -0
- package/libexec/authoring/node_modules/@inquirer/core/dist/lib/utils.js +25 -0
- package/libexec/authoring/node_modules/@inquirer/core/package.json +98 -0
- package/libexec/authoring/node_modules/@inquirer/editor/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/editor/README.md +101 -0
- package/libexec/authoring/node_modules/@inquirer/editor/dist/index.d.ts +29 -0
- package/libexec/authoring/node_modules/@inquirer/editor/dist/index.js +73 -0
- package/libexec/authoring/node_modules/@inquirer/editor/package.json +92 -0
- package/libexec/authoring/node_modules/@inquirer/expand/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/expand/README.md +141 -0
- package/libexec/authoring/node_modules/@inquirer/expand/dist/index.d.ts +35 -0
- package/libexec/authoring/node_modules/@inquirer/expand/dist/index.js +110 -0
- package/libexec/authoring/node_modules/@inquirer/expand/package.json +91 -0
- package/libexec/authoring/node_modules/@inquirer/external-editor/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/external-editor/README.md +167 -0
- package/libexec/authoring/node_modules/@inquirer/external-editor/dist/errors.d.ts +20 -0
- package/libexec/authoring/node_modules/@inquirer/external-editor/dist/errors.js +32 -0
- package/libexec/authoring/node_modules/@inquirer/external-editor/dist/index.d.ts +35 -0
- package/libexec/authoring/node_modules/@inquirer/external-editor/dist/index.js +146 -0
- package/libexec/authoring/node_modules/@inquirer/external-editor/dist/parse-editor-command.d.ts +5 -0
- package/libexec/authoring/node_modules/@inquirer/external-editor/dist/parse-editor-command.js +28 -0
- package/libexec/authoring/node_modules/@inquirer/external-editor/package.json +98 -0
- package/libexec/authoring/node_modules/@inquirer/figures/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/figures/dist/index.d.ts +275 -0
- package/libexec/authoring/node_modules/@inquirer/figures/dist/index.js +315 -0
- package/libexec/authoring/node_modules/@inquirer/figures/package.json +81 -0
- package/libexec/authoring/node_modules/@inquirer/input/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/input/README.md +101 -0
- package/libexec/authoring/node_modules/@inquirer/input/dist/index.d.ts +32 -0
- package/libexec/authoring/node_modules/@inquirer/input/dist/index.js +99 -0
- package/libexec/authoring/node_modules/@inquirer/input/package.json +91 -0
- package/libexec/authoring/node_modules/@inquirer/number/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/number/README.md +95 -0
- package/libexec/authoring/node_modules/@inquirer/number/dist/index.d.ts +23 -0
- package/libexec/authoring/node_modules/@inquirer/number/dist/index.js +90 -0
- package/libexec/authoring/node_modules/@inquirer/number/dist/is-step-of.d.ts +1 -0
- package/libexec/authoring/node_modules/@inquirer/number/dist/is-step-of.js +22 -0
- package/libexec/authoring/node_modules/@inquirer/number/package.json +91 -0
- package/libexec/authoring/node_modules/@inquirer/password/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/password/README.md +111 -0
- package/libexec/authoring/node_modules/@inquirer/password/dist/index.d.ts +23 -0
- package/libexec/authoring/node_modules/@inquirer/password/dist/index.js +79 -0
- package/libexec/authoring/node_modules/@inquirer/password/package.json +92 -0
- package/libexec/authoring/node_modules/@inquirer/prompts/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/prompts/README.md +603 -0
- package/libexec/authoring/node_modules/@inquirer/prompts/dist/index.d.ts +10 -0
- package/libexec/authoring/node_modules/@inquirer/prompts/dist/index.js +10 -0
- package/libexec/authoring/node_modules/@inquirer/prompts/package.json +102 -0
- package/libexec/authoring/node_modules/@inquirer/rawlist/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/rawlist/README.md +135 -0
- package/libexec/authoring/node_modules/@inquirer/rawlist/dist/index.d.ts +30 -0
- package/libexec/authoring/node_modules/@inquirer/rawlist/dist/index.js +145 -0
- package/libexec/authoring/node_modules/@inquirer/rawlist/package.json +91 -0
- package/libexec/authoring/node_modules/@inquirer/search/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/search/README.md +214 -0
- package/libexec/authoring/node_modules/@inquirer/search/dist/index.d.ts +45 -0
- package/libexec/authoring/node_modules/@inquirer/search/dist/index.js +200 -0
- package/libexec/authoring/node_modules/@inquirer/search/package.json +92 -0
- package/libexec/authoring/node_modules/@inquirer/select/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/select/README.md +188 -0
- package/libexec/authoring/node_modules/@inquirer/select/dist/index.d.ts +42 -0
- package/libexec/authoring/node_modules/@inquirer/select/dist/index.js +191 -0
- package/libexec/authoring/node_modules/@inquirer/select/package.json +93 -0
- package/libexec/authoring/node_modules/@inquirer/type/LICENSE +22 -0
- package/libexec/authoring/node_modules/@inquirer/type/dist/index.d.ts +2 -0
- package/libexec/authoring/node_modules/@inquirer/type/dist/index.js +2 -0
- package/libexec/authoring/node_modules/@inquirer/type/dist/inquirer.d.ts +35 -0
- package/libexec/authoring/node_modules/@inquirer/type/dist/inquirer.js +1 -0
- package/libexec/authoring/node_modules/@inquirer/type/dist/utils.d.ts +34 -0
- package/libexec/authoring/node_modules/@inquirer/type/dist/utils.js +2 -0
- package/libexec/authoring/node_modules/@inquirer/type/package.json +88 -0
- package/libexec/authoring/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/libexec/authoring/node_modules/@isaacs/fs-minipass/README.md +71 -0
- package/libexec/authoring/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +118 -0
- package/libexec/authoring/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/libexec/authoring/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
- package/libexec/authoring/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/libexec/authoring/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +118 -0
- package/libexec/authoring/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/libexec/authoring/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
- package/libexec/authoring/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/libexec/authoring/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/LICENSE +202 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/README.md +236 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/errors.d.ts +12 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/errors.js +19 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/host.d.ts +3 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/host.js +176 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/index.d.ts +16 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/index.js +81 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/library.d.ts +18 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/library.js +40 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/lower.d.ts +59 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/lower.js +477 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/toolchain.d.ts +16 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/toolchain.js +124 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/values.d.ts +3 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/values.js +67 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/worker.d.ts +1 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/dist/worker.js +33 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/package.json +28 -0
- package/libexec/authoring/node_modules/@jigging/flow-authoring/test/fixtures/drafter.tsp +84 -0
- package/libexec/authoring/node_modules/@typespec/compiler/LICENSE +21 -0
- package/libexec/authoring/node_modules/@typespec/compiler/README.md +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/cmd/tsp-server.js +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/cmd/tsp.js +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.Prototypes.d.ts +6 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.Prototypes.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.Prototypes.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.Prototypes.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.Prototypes.ts-test.d.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.Prototypes.ts-test.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.Prototypes.ts-test.js +8 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.Prototypes.ts-test.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.d.ts +934 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.ts-test.d.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.ts-test.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.ts-test.js +12 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/generated-defs/TypeSpec.ts-test.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/manifest.js +4 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/ast/index.d.ts +16 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/ast/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/ast/index.js +15 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/ast/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/casing/index.d.ts +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/casing/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/casing/index.js +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/casing/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-interpolation.d.ts +11 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-interpolation.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-interpolation.js +110 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-interpolation.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-loader.d.ts +24 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-loader.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-loader.js +236 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-loader.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-schema.d.ts +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-schema.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-schema.js +119 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-schema.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-to-options.d.ts +40 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-to-options.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-to-options.js +146 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/config-to-options.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/index.d.ts +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/index.js +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/types.d.ts +116 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/types.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/types.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/config/types.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/auto-decorator.d.ts +38 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/auto-decorator.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/auto-decorator.js +99 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/auto-decorator.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/binder.d.ts +39 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/binder.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/binder.js +541 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/binder.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/charcode.d.ts +133 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/charcode.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/charcode.js +234 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/charcode.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/checker.d.ts +114 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/checker.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/checker.js +6836 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/checker.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/args.d.ts +26 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/args.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/args.js +88 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/args.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/compile.d.ts +4 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/compile.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/compile.js +188 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/compile.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/watch.d.ts +15 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/watch.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/watch.js +60 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/watch.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/format.d.ts +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/format.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/format.js +77 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/format.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/info/emitter-options.d.ts +40 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/info/emitter-options.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/info/emitter-options.js +345 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/info/emitter-options.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/info.d.ts +11 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/info.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/info.js +48 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/info.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/init.d.ts +15 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/init.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/init.js +17 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/init.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/vs.d.ts +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/vs.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/vs.js +83 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/vs.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/vscode.d.ts +11 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/vscode.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/vscode.js +39 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/actions/vscode.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/cli.d.ts +16 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/cli.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/cli.js +269 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/cli.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/download-vsix.d.ts +19 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/download-vsix.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/download-vsix.js +76 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/download-vsix.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/index.d.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/index.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/types.d.ts +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/types.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/types.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/types.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/utils.d.ts +47 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/utils.js +181 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/cli/utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/code-fixes.d.ts +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/code-fixes.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/code-fixes.js +83 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/code-fixes.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/change-identifier.codefix.d.ts +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/change-identifier.codefix.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/change-identifier.codefix.js +12 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/change-identifier.codefix.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/convert-to-value.codefix.d.ts +10 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/convert-to-value.codefix.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/convert-to-value.codefix.js +68 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/convert-to-value.codefix.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/create-add-decorator/create-add-decorator.codefix.d.ts +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/create-add-decorator/create-add-decorator.codefix.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/create-add-decorator/create-add-decorator.codefix.js +22 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/create-add-decorator/create-add-decorator.codefix.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/create-add-decorator/create-add-decorator.codefix.test.d.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/create-add-decorator/create-add-decorator.codefix.test.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/create-add-decorator/create-add-decorator.codefix.test.js +36 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/create-add-decorator/create-add-decorator.codefix.test.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/remove-unused-code.codefix.d.ts +6 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/remove-unused-code.codefix.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/remove-unused-code.codefix.js +15 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/remove-unused-code.codefix.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/remove-unused-template-parameter.codefix.d.ts +6 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/remove-unused-template-parameter.codefix.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/remove-unused-template-parameter.codefix.js +45 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/remove-unused-template-parameter.codefix.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/suppress.codefix.d.ts +12 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/suppress.codefix.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/suppress.codefix.js +96 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/suppress.codefix.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/triple-quote-indent.codefix.d.ts +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/triple-quote-indent.codefix.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/triple-quote-indent.codefix.js +49 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/triple-quote-indent.codefix.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/utils.d.ts +6 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/utils.js +17 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/compiler-code-fixes/utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/decorator-utils.d.ts +89 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/decorator-utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/decorator-utils.js +239 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/decorator-utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/deprecation.d.ts +31 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/deprecation.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/deprecation.js +45 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/deprecation.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostic-code.d.ts +59 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostic-code.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostic-code.js +133 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostic-code.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostic-creator.d.ts +11 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostic-creator.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostic-creator.js +55 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostic-creator.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostic-error.d.ts +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostic-error.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostic-error.js +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostic-error.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostics.d.ts +107 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostics.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostics.js +266 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/diagnostics.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/emitter-utils.d.ts +15 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/emitter-utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/emitter-utils.js +29 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/emitter-utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/engine.d.ts +6 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/engine.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/engine.js +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/engine.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/entrypoint-resolution.d.ts +10 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/entrypoint-resolution.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/entrypoint-resolution.js +67 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/entrypoint-resolution.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/external-error.d.ts +14 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/external-error.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/external-error.js +56 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/external-error.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/features.d.ts +24 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/features.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/features.js +40 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/features.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/file-ref.d.ts +26 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/file-ref.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/file-ref.js +19 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/file-ref.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/formatter-fs.d.ts +73 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/formatter-fs.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/formatter-fs.js +177 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/formatter-fs.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/formatter.d.ts +45 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/formatter.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/formatter.js +104 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/formatter.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/discriminator-utils.d.ts +23 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/discriminator-utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/discriminator-utils.js +186 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/discriminator-utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/index.d.ts +12 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/index.js +10 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/location-context.d.ts +4 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/location-context.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/location-context.js +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/location-context.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/operation-utils.d.ts +15 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/operation-utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/operation-utils.js +37 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/operation-utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/path-interpolation.d.ts +23 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/path-interpolation.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/path-interpolation.js +54 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/path-interpolation.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/raw-text-cache.d.ts +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/raw-text-cache.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/raw-text-cache.js +34 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/raw-text-cache.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/string-template-utils.d.ts +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/string-template-utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/string-template-utils.js +45 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/string-template-utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/syntax-utils.d.ts +18 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/syntax-utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/syntax-utils.js +99 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/syntax-utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/type-name-utils.d.ts +17 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/type-name-utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/type-name-utils.js +269 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/type-name-utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/usage-resolver.d.ts +20 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/usage-resolver.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/usage-resolver.js +106 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/helpers/usage-resolver.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/inspector/node.d.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/inspector/node.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/inspector/node.js +41 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/inspector/node.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/inspector/symbol.d.ts +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/inspector/symbol.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/inspector/symbol.js +82 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/inspector/symbol.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/intrinsic-type-state.d.ts +101 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/intrinsic-type-state.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/intrinsic-type-state.js +213 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/intrinsic-type-state.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/js-marshaller.d.ts +6 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/js-marshaller.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/js-marshaller.js +156 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/js-marshaller.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/library.d.ts +48 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/library.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/library.js +120 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/library.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter-rules/unused-template-parameter.rule.d.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter-rules/unused-template-parameter.rule.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter-rules/unused-template-parameter.rule.js +36 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter-rules/unused-template-parameter.rule.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter-rules/unused-using.rule.d.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter-rules/unused-using.rule.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter-rules/unused-using.rule.js +38 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter-rules/unused-using.rule.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter-ruleset-file.d.ts +20 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter-ruleset-file.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter-ruleset-file.js +61 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter-ruleset-file.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter.d.ts +46 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter.js +400 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/linter.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/console-sink.browser.d.ts +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/console-sink.browser.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/console-sink.browser.js +17 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/console-sink.browser.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/console-sink.d.ts +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/console-sink.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/console-sink.js +144 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/console-sink.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/dynamic-task.d.ts +16 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/dynamic-task.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/dynamic-task.js +97 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/dynamic-task.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/index.d.ts +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/index.js +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/logger.d.ts +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/logger.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/logger.js +43 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/logger.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/support-hyperlinks.d.ts +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/support-hyperlinks.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/support-hyperlinks.js +75 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/support-hyperlinks.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/tracer.d.ts +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/tracer.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/tracer.js +91 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/logger/tracer.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/messages.d.ts +3560 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/messages.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/messages.js +1172 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/messages.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/mime-type.d.ts +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/mime-type.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/mime-type.js +19 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/mime-type.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/modifiers.d.ts +15 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/modifiers.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/modifiers.js +189 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/modifiers.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/module-host.d.ts +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/module-host.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/module-host.js +12 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/module-host.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/name-resolver.d.ts +117 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/name-resolver.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/name-resolver.js +1092 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/name-resolver.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/node-host.browser.d.ts +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/node-host.browser.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/node-host.browser.js +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/node-host.browser.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/node-host.d.ts +8 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/node-host.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/node-host.js +29 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/node-host.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/node-system-host.d.ts +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/node-system-host.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/node-system-host.js +57 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/node-system-host.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/nonascii.d.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/nonascii.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/nonascii.js +721 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/nonascii.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/numeric-ranges.d.ts +51 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/numeric-ranges.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/numeric-ranges.js +30 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/numeric-ranges.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/numeric.d.ts +26 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/numeric.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/numeric.js +186 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/numeric.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/options.d.ts +58 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/options.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/options.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/options.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/param-message.d.ts +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/param-message.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/param-message.js +16 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/param-message.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/parser-utils.d.ts +6 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/parser-utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/parser-utils.js +60 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/parser-utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/parser.d.ts +31 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/parser.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/parser.js +2719 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/parser.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/path-utils.d.ts +204 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/path-utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/path-utils.js +672 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/path-utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/perf.d.ts +12 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/perf.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/perf.js +57 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/perf.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/program.d.ts +58 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/program.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/program.js +791 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/program.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/scanner.d.ts +207 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/scanner.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/scanner.js +1419 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/scanner.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/schema-validator.d.ts +11 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/schema-validator.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/schema-validator.js +116 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/schema-validator.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/semantic-walker.d.ts +57 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/semantic-walker.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/semantic-walker.js +443 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/semantic-walker.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/source-file.d.ts +4 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/source-file.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/source-file.js +90 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/source-file.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/source-loader.d.ts +43 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/source-loader.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/source-loader.js +325 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/source-loader.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/state-accessors.d.ts +87 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/state-accessors.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/state-accessors.js +150 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/state-accessors.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/stats.d.ts +38 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/stats.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/stats.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/stats.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/suppression-tracking.d.ts +37 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/suppression-tracking.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/suppression-tracking.js +199 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/suppression-tracking.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/type-relation-checker.d.ts +32 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/type-relation-checker.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/type-relation-checker.js +781 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/type-relation-checker.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/type-utils.d.ts +85 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/type-utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/type-utils.js +152 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/type-utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/types.d.ts +2227 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/types.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/types.js +192 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/types.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/visibility/core.d.ts +210 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/visibility/core.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/visibility/core.js +483 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/visibility/core.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/visibility/index.d.ts +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/visibility/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/visibility/index.js +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/visibility/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/visibility/lifecycle.d.ts +10 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/visibility/lifecycle.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/visibility/lifecycle.js +24 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/core/visibility/lifecycle.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/cache.d.ts +19 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/cache.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/cache.js +41 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/cache.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/freeze-graph.d.ts +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/freeze-graph.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/freeze-graph.js +25 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/freeze-graph.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/index.d.ts +6 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/index.js +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/mutators.d.ts +219 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/mutators.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/mutators.js +584 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/mutators.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/realm.d.ts +100 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/realm.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/realm.js +211 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/realm.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/typekit/index.d.ts +15 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/typekit/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/typekit/index.js +62 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/experimental/typekit/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/index.d.ts +11 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/index.js +28 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/parser.d.ts +18 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/parser.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/parser.js +50 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/parser.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/comment-handler.d.ts +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/comment-handler.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/comment-handler.js +113 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/comment-handler.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/index.d.ts +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/index.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/needs-parens.d.ts +10 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/needs-parens.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/needs-parens.js +27 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/needs-parens.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/printer.d.ts +66 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/printer.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/printer.js +1231 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/printer.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/types.d.ts +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/types.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/types.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/types.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/util.d.ts +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/util.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/util.js +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/print/util.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/types.d.ts +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/types.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/types.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/formatter/types.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/index.d.ts +41 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/index.js +52 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/core-templates.d.ts +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/core-templates.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/core-templates.js +10 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/core-templates.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/file-templating.d.ts +27 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/file-templating.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/file-templating.js +42 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/file-templating.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/index.d.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/index.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/init-template-validate.d.ts +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/init-template-validate.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/init-template-validate.js +10 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/init-template-validate.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/init-template.d.ts +92 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/init-template.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/init-template.js +75 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/init-template.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/init.d.ts +29 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/init.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/init.js +333 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/init.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/prompts.d.ts +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/prompts.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/prompts.js +18 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/prompts.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/scaffold.d.ts +47 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/scaffold.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/scaffold.js +176 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/scaffold.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/default-core-templates.d.ts +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/default-core-templates.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/default-core-templates.js +12 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/default-core-templates.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/in-memory-template-source.d.ts +19 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/in-memory-template-source.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/in-memory-template-source.js +45 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/in-memory-template-source.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/index.d.ts +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/index.js +4 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/types.d.ts +21 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/types.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/types.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/types.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/uri-template-source.d.ts +30 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/uri-template-source.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/uri-template-source.js +45 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/init/template-source/uri-template-source.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/install/config.d.ts +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/install/config.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/install/config.js +16 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/install/config.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/install/install.d.ts +14 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/install/install.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/install/install.js +215 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/install/install.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/install/spec.d.ts +39 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/install/spec.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/install/spec.js +152 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/install/spec.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/internals/index.d.ts +13 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/internals/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/internals/index.js +14 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/internals/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/internals/prettier-formatter.d.ts +6 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/internals/prettier-formatter.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/internals/prettier-formatter.js +6 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/internals/prettier-formatter.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/internals/standalone.d.ts +15 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/internals/standalone.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/internals/standalone.js +14 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/internals/standalone.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/decorators.d.ts +254 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/decorators.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/decorators.js +915 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/decorators.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/encoded-names.d.ts +30 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/encoded-names.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/encoded-names.js +135 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/encoded-names.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/examples.d.ts +35 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/examples.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/examples.js +236 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/examples.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/intrinsic/decorators.d.ts +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/intrinsic/decorators.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/intrinsic/decorators.js +25 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/intrinsic/decorators.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/intrinsic/tsp-index.d.ts +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/intrinsic/tsp-index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/intrinsic/tsp-index.js +11 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/intrinsic/tsp-index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/key.d.ts +6 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/key.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/key.js +8 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/key.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/paging.d.ts +123 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/paging.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/paging.js +258 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/paging.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/service.d.ts +40 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/service.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/service.js +45 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/service.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/tsp-index.d.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/tsp-index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/tsp-index.js +72 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/tsp-index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/utils.d.ts +23 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/utils.js +38 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/visibility.d.ts +69 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/visibility.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/visibility.js +446 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/lib/visibility.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/manifest.d.ts +17 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/manifest.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/manifest.js +15 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/manifest.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-exports.d.ts +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-exports.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-exports.js +58 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-exports.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-imports-exports.d.ts +11 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-imports-exports.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-imports-exports.js +72 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-imports-exports.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-imports.d.ts +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-imports.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-imports.js +26 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-imports.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-target.d.ts +10 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-target.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-target.js +133 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/resolve-package-target.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/utils.d.ts +38 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/utils.js +45 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/esm/utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/index.d.ts +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/index.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/module-resolver.d.ts +42 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/module-resolver.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/module-resolver.js +261 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/module-resolver.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/node-package-resolver.d.ts +24 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/node-package-resolver.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/node-package-resolver.js +56 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/node-package-resolver.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/types.d.ts +47 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/types.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/types.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/types.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/utils.d.ts +15 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/utils.js +69 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/module-resolver/utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/package-manger/npm-package-download.d.ts +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/package-manger/npm-package-download.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/package-manger/npm-package-download.js +54 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/package-manger/npm-package-download.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/package-manger/npm-registry.d.ts +81 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/package-manger/npm-registry.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/package-manger/npm-registry.js +74 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/package-manger/npm-registry.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/runner.d.ts +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/runner.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/runner.js +54 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/runner.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/classify.d.ts +8 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/classify.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/classify.js +317 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/classify.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/client-config-provider.d.ts +25 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/client-config-provider.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/client-config-provider.js +32 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/client-config-provider.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/compile-service.d.ts +49 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/compile-service.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/compile-service.js +239 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/compile-service.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/completion.d.ts +11 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/completion.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/completion.js +456 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/completion.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/constants.d.ts +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/constants.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/constants.js +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/constants.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/debug.d.ts +12 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/debug.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/debug.js +49 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/debug.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/diagnostics.d.ts +8 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/diagnostics.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/diagnostics.js +121 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/diagnostics.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/entrypoint-resolver.d.ts +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/entrypoint-resolver.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/entrypoint-resolver.js +83 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/entrypoint-resolver.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/fatal-error.d.ts +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/fatal-error.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/fatal-error.js +24 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/fatal-error.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/file-service.d.ts +21 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/file-service.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/file-service.js +84 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/file-service.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/file-system-cache.d.ts +27 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/file-system-cache.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/file-system-cache.js +47 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/file-system-cache.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/index.d.ts +4 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/index.js +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/language-config.d.ts +100 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/language-config.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/language-config.js +101 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/language-config.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/lib-provider.d.ts +23 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/lib-provider.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/lib-provider.js +84 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/lib-provider.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/npm-package-provider.d.ts +51 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/npm-package-provider.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/npm-package-provider.js +201 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/npm-package-provider.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/rename-file.d.ts +27 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/rename-file.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/rename-file.js +41 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/rename-file.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/server-compile-manager.d.ts +55 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/server-compile-manager.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/server-compile-manager.js +266 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/server-compile-manager.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/server-track-action-task.d.ts +18 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/server-track-action-task.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/server-track-action-task.js +70 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/server-track-action-task.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/server.d.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/server.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/server.js +176 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/server.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/serverlib.d.ts +4 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/serverlib.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/serverlib.js +1440 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/serverlib.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/symbol-structure.d.ts +4 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/symbol-structure.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/symbol-structure.js +124 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/symbol-structure.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/tmlanguage.d.ts +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/tmlanguage.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/tmlanguage.js +866 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/tmlanguage.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/tspconfig/completion.d.ts +14 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/tspconfig/completion.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/tspconfig/completion.js +403 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/tspconfig/completion.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/type-details.d.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/type-details.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/type-details.js +122 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/type-details.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/type-signature.d.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/type-signature.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/type-signature.js +216 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/type-signature.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/types.d.ts +141 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/types.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/types.js +26 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/types.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/update-manager.d.ts +56 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/update-manager.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/update-manager.js +223 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/update-manager.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/yaml-resolver.d.ts +42 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/yaml-resolver.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/yaml-resolver.js +286 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/server/yaml-resolver.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/code-fix-testing.d.ts +32 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/code-fix-testing.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/code-fix-testing.js +98 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/code-fix-testing.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/expect.d.ts +43 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/expect.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/expect.js +73 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/expect.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/fourslash.d.ts +16 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/fourslash.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/fourslash.js +17 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/fourslash.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/fs.d.ts +12 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/fs.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/fs.js +134 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/fs.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/index.d.ts +16 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/index.js +16 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/marked-template.d.ts +96 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/marked-template.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/marked-template.js +107 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/marked-template.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/rule-tester.d.ts +46 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/rule-tester.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/rule-tester.js +124 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/rule-tester.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/source-utils.d.ts +29 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/source-utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/source-utils.js +41 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/source-utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-compiler-host.d.ts +11 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-compiler-host.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-compiler-host.js +152 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-compiler-host.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-host.d.ts +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-host.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-host.js +77 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-host.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-server-host.d.ts +23 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-server-host.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-server-host.js +144 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-server-host.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-utils.d.ts +37 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-utils.js +128 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/test-utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/tester.d.ts +12 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/tester.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/tester.js +393 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/tester.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/types.d.ts +233 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/types.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/types.js +11 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/testing/types.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/create-diagnosable.d.ts +26 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/create-diagnosable.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/create-diagnosable.js +19 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/create-diagnosable.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/define-kit.d.ts +24 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/define-kit.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/define-kit.js +32 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/define-kit.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/index.d.ts +41 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/index.js +48 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/array.d.ts +28 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/array.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/array.js +29 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/array.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/builtin.d.ts +116 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/builtin.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/builtin.js +81 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/builtin.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/entity.d.ts +31 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/entity.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/entity.js +13 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/entity.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/enum-member.d.ts +52 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/enum-member.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/enum-member.js +21 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/enum-member.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/enum.d.ts +61 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/enum.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/enum.js +57 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/enum.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/index.d.ts +18 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/index.js +18 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/intrinsic.d.ts +30 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/intrinsic.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/intrinsic.js +24 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/intrinsic.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/literal.d.ts +72 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/literal.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/literal.js +30 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/literal.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/model-property.d.ts +80 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/model-property.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/model-property.js +30 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/model-property.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/model.d.ts +118 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/model.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/model.js +104 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/model.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/operation.d.ts +54 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/operation.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/operation.js +32 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/operation.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/record.d.ts +32 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/record.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/record.js +29 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/record.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/scalar.d.ts +359 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/scalar.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/scalar.js +91 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/scalar.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/tuple.d.ts +25 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/tuple.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/tuple.js +18 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/tuple.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/type.d.ts +141 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/type.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/type.js +183 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/type.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/union-variant.d.ts +58 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/union-variant.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/union-variant.js +21 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/union-variant.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/union.d.ts +108 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/union.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/union.js +115 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/union.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/value.d.ts +115 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/value.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/value.js +91 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/kits/value.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/utils/get-plausible-name.d.ts +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/utils/get-plausible-name.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/utils/get-plausible-name.js +32 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/utils/get-plausible-name.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/utils/index.d.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/utils/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/utils/index.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/utils/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/utils.d.ts +32 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/utils.js +39 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/typekit/utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/types/package-json.d.ts +82 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/types/package-json.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/types/package-json.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/types/package-json.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/custom-key-map.d.ts +29 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/custom-key-map.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/custom-key-map.js +49 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/custom-key-map.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/duplicate-tracker.d.ts +17 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/duplicate-tracker.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/duplicate-tracker.js +31 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/duplicate-tracker.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/fs-utils.d.ts +8 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/fs-utils.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/fs-utils.js +42 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/fs-utils.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/index.d.ts +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/index.js +10 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/io.d.ts +17 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/io.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/io.js +77 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/io.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/misc.d.ts +126 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/misc.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/misc.js +405 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/misc.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/state-accessor.d.ts +11 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/state-accessor.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/state-accessor.js +12 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/utils/state-accessor.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/diagnostics.d.ts +4 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/diagnostics.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/diagnostics.js +52 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/diagnostics.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/index.d.ts +4 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/index.js +3 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/index.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/parser.d.ts +4 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/parser.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/parser.js +31 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/parser.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/types.d.ts +17 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/types.d.ts.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/types.js +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/src/yaml/types.js.map +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/dist/typespec.tmLanguage +2293 -0
- package/libexec/authoring/node_modules/@typespec/compiler/entrypoints/cli.js +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/entrypoints/server.js +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/lib/intrinsics.tsp +231 -0
- package/libexec/authoring/node_modules/@typespec/compiler/lib/prototypes.tsp +18 -0
- package/libexec/authoring/node_modules/@typespec/compiler/lib/std/decorators.tsp +858 -0
- package/libexec/authoring/node_modules/@typespec/compiler/lib/std/main.tsp +5 -0
- package/libexec/authoring/node_modules/@typespec/compiler/lib/std/reflection.tsp +13 -0
- package/libexec/authoring/node_modules/@typespec/compiler/lib/std/types.tsp +81 -0
- package/libexec/authoring/node_modules/@typespec/compiler/lib/std/visibility.tsp +625 -0
- package/libexec/authoring/node_modules/@typespec/compiler/package.json +146 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/emitter-ts/eslint.config.js +20 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/emitter-ts/package.json +37 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/emitter-ts/prettierrc.yaml +8 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/emitter-ts/src/emitter.ts +8 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/emitter-ts/src/index.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/emitter-ts/src/lib.ts +8 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/emitter-ts/test/hello.test.ts +10 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/emitter-ts/test/test-host.ts +20 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/emitter-ts/tsconfig.json +18 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/empty/main.tsp +0 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/empty/package.json +9 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/empty/tspconfig.yaml +18 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/library-ts/eslint.config.js +20 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/library-ts/lib/decorators.tsp +12 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/library-ts/lib/main.tsp +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/library-ts/package.json +40 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/library-ts/prettierrc.yaml +8 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/library-ts/src/decorators.ts +33 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/library-ts/src/index.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/library-ts/src/lib.ts +20 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/library-ts/src/linter.ts +14 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/library-ts/src/rules/no-interfaces.rule.ts +19 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/library-ts/test/decorators.test.ts +43 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/library-ts/test/rules/no-interfaces.rule.test.ts +29 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/library-ts/test/test-host.ts +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/library-ts/tsconfig.json +18 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/rest/main.tsp +44 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/rest/package.json +13 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/__snapshots__/rest/tspconfig.yaml +18 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/emitter-ts/eslint.config.js +20 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/emitter-ts/package.json +37 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/emitter-ts/prettierrc.yaml +8 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/emitter-ts/src/emitter.ts +8 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/emitter-ts/src/index.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/emitter-ts/src/lib.ts +8 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/emitter-ts/test/hello.test.ts +10 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/emitter-ts/test/test-host.ts.mu +20 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/emitter-ts/tsconfig.json +18 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/library-ts/eslint.config.js +20 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/library-ts/lib/decorators.tsp.mu +12 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/library-ts/lib/main.tsp +1 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/library-ts/package.json +40 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/library-ts/prettierrc.yaml +8 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/library-ts/src/decorators.ts +33 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/library-ts/src/index.ts +2 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/library-ts/src/lib.ts +20 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/library-ts/src/linter.ts +14 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/library-ts/src/rules/no-interfaces.rule.ts +19 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/library-ts/test/decorators.test.ts.mu +43 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/library-ts/test/rules/no-interfaces.rule.test.ts +29 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/library-ts/test/test-host.ts.mu +7 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/library-ts/tsconfig.json +18 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/rest/main.tsp +44 -0
- package/libexec/authoring/node_modules/@typespec/compiler/templates/scaffolding.json +207 -0
- package/libexec/authoring/node_modules/ajv/.runkit_example.js +23 -0
- package/libexec/authoring/node_modules/ajv/LICENSE +22 -0
- package/libexec/authoring/node_modules/ajv/README.md +207 -0
- package/libexec/authoring/node_modules/ajv/dist/2019.d.ts +19 -0
- package/libexec/authoring/node_modules/ajv/dist/2019.js +61 -0
- package/libexec/authoring/node_modules/ajv/dist/2019.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/2020.d.ts +19 -0
- package/libexec/authoring/node_modules/ajv/dist/2020.js +55 -0
- package/libexec/authoring/node_modules/ajv/dist/2020.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/ajv.d.ts +18 -0
- package/libexec/authoring/node_modules/ajv/dist/ajv.js +50 -0
- package/libexec/authoring/node_modules/ajv/dist/ajv.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/errors.js +123 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/index.js +242 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/names.js +28 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/rules.js +26 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/util.js +178 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/libexec/authoring/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/core.d.ts +174 -0
- package/libexec/authoring/node_modules/ajv/dist/core.js +618 -0
- package/libexec/authoring/node_modules/ajv/dist/core.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/jtd.d.ts +47 -0
- package/libexec/authoring/node_modules/ajv/dist/jtd.js +72 -0
- package/libexec/authoring/node_modules/ajv/dist/jtd.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/data.json +13 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/libexec/authoring/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/libexec/authoring/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/standalone/index.js +90 -0
- package/libexec/authoring/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/libexec/authoring/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/libexec/authoring/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/libexec/authoring/node_modules/ajv/dist/types/index.js +3 -0
- package/libexec/authoring/node_modules/ajv/dist/types/index.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
- package/libexec/authoring/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/libexec/authoring/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
- package/libexec/authoring/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/libexec/authoring/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/libexec/authoring/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/libexec/authoring/node_modules/ajv/lib/2019.ts +81 -0
- package/libexec/authoring/node_modules/ajv/lib/2020.ts +75 -0
- package/libexec/authoring/node_modules/ajv/lib/ajv.ts +70 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/index.ts +324 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/names.ts +27 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/util.ts +213 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/libexec/authoring/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/libexec/authoring/node_modules/ajv/lib/core.ts +892 -0
- package/libexec/authoring/node_modules/ajv/lib/jtd.ts +132 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/data.json +13 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/libexec/authoring/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/libexec/authoring/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/libexec/authoring/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/libexec/authoring/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/libexec/authoring/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/libexec/authoring/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/libexec/authoring/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/libexec/authoring/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/libexec/authoring/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/libexec/authoring/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/libexec/authoring/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/libexec/authoring/node_modules/ajv/lib/types/index.ts +244 -0
- package/libexec/authoring/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/libexec/authoring/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/libexec/authoring/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/libexec/authoring/node_modules/ajv/package.json +126 -0
- package/libexec/authoring/node_modules/ansi-regex/index.d.ts +33 -0
- package/libexec/authoring/node_modules/ansi-regex/index.js +15 -0
- package/libexec/authoring/node_modules/ansi-regex/license +9 -0
- package/libexec/authoring/node_modules/ansi-regex/package.json +61 -0
- package/libexec/authoring/node_modules/ansi-regex/readme.md +66 -0
- package/libexec/authoring/node_modules/ansi-styles/index.d.ts +236 -0
- package/libexec/authoring/node_modules/ansi-styles/index.js +223 -0
- package/libexec/authoring/node_modules/ansi-styles/license +9 -0
- package/libexec/authoring/node_modules/ansi-styles/package.json +54 -0
- package/libexec/authoring/node_modules/ansi-styles/readme.md +173 -0
- package/libexec/authoring/node_modules/change-case/README.md +78 -0
- package/libexec/authoring/node_modules/change-case/dist/index.d.ts +79 -0
- package/libexec/authoring/node_modules/change-case/dist/index.js +209 -0
- package/libexec/authoring/node_modules/change-case/dist/index.js.map +1 -0
- package/libexec/authoring/node_modules/change-case/dist/keys.d.ts +12 -0
- package/libexec/authoring/node_modules/change-case/dist/keys.js +31 -0
- package/libexec/authoring/node_modules/change-case/dist/keys.js.map +1 -0
- package/libexec/authoring/node_modules/change-case/package.json +51 -0
- package/libexec/authoring/node_modules/chardet/LICENSE +19 -0
- package/libexec/authoring/node_modules/chardet/README.md +135 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/ascii.d.ts +6 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/ascii.js +23 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/ascii.js.map +1 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/index.d.ts +14 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/index.js +3 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/index.js.map +1 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/iso2022.d.ts +23 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/iso2022.js +114 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/iso2022.js.map +1 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/mbcs.d.ts +50 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/mbcs.js +347 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/mbcs.js.map +1 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/sbcs.d.ts +94 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/sbcs.js +935 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/sbcs.js.map +1 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/unicode.d.ts +27 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/unicode.js +109 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/unicode.js.map +1 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/utf8.d.ts +6 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/utf8.js +72 -0
- package/libexec/authoring/node_modules/chardet/lib/encoding/utf8.js.map +1 -0
- package/libexec/authoring/node_modules/chardet/lib/fs/browser.d.ts +2 -0
- package/libexec/authoring/node_modules/chardet/lib/fs/browser.js +6 -0
- package/libexec/authoring/node_modules/chardet/lib/fs/browser.js.map +1 -0
- package/libexec/authoring/node_modules/chardet/lib/fs/node.d.ts +2 -0
- package/libexec/authoring/node_modules/chardet/lib/fs/node.js +11 -0
- package/libexec/authoring/node_modules/chardet/lib/fs/node.js.map +1 -0
- package/libexec/authoring/node_modules/chardet/lib/index.d.ts +20 -0
- package/libexec/authoring/node_modules/chardet/lib/index.js +177 -0
- package/libexec/authoring/node_modules/chardet/lib/index.js.map +1 -0
- package/libexec/authoring/node_modules/chardet/lib/match.d.ts +9 -0
- package/libexec/authoring/node_modules/chardet/lib/match.js +8 -0
- package/libexec/authoring/node_modules/chardet/lib/match.js.map +1 -0
- package/libexec/authoring/node_modules/chardet/lib/utils.d.ts +1 -0
- package/libexec/authoring/node_modules/chardet/lib/utils.js +10 -0
- package/libexec/authoring/node_modules/chardet/lib/utils.js.map +1 -0
- package/libexec/authoring/node_modules/chardet/package.json +100 -0
- package/libexec/authoring/node_modules/chownr/LICENSE.md +63 -0
- package/libexec/authoring/node_modules/chownr/README.md +3 -0
- package/libexec/authoring/node_modules/chownr/dist/commonjs/index.d.ts +3 -0
- package/libexec/authoring/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/libexec/authoring/node_modules/chownr/dist/commonjs/index.js.map +1 -0
- package/libexec/authoring/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/libexec/authoring/node_modules/chownr/dist/esm/index.d.ts +3 -0
- package/libexec/authoring/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/chownr/dist/esm/index.js +85 -0
- package/libexec/authoring/node_modules/chownr/dist/esm/index.js.map +1 -0
- package/libexec/authoring/node_modules/chownr/dist/esm/package.json +3 -0
- package/libexec/authoring/node_modules/chownr/package.json +69 -0
- package/libexec/authoring/node_modules/cli-width/LICENSE +13 -0
- package/libexec/authoring/node_modules/cli-width/README.md +71 -0
- package/libexec/authoring/node_modules/cli-width/index.d.ts +13 -0
- package/libexec/authoring/node_modules/cli-width/index.js +49 -0
- package/libexec/authoring/node_modules/cli-width/package.json +40 -0
- package/libexec/authoring/node_modules/cliui/CHANGELOG.md +157 -0
- package/libexec/authoring/node_modules/cliui/LICENSE.txt +14 -0
- package/libexec/authoring/node_modules/cliui/README.md +161 -0
- package/libexec/authoring/node_modules/cliui/build/lib/index.js +287 -0
- package/libexec/authoring/node_modules/cliui/build/tsconfig.tsbuildinfo +1 -0
- package/libexec/authoring/node_modules/cliui/index.mjs +15 -0
- package/libexec/authoring/node_modules/cliui/node_modules/string-width/index.d.ts +39 -0
- package/libexec/authoring/node_modules/cliui/node_modules/string-width/index.js +82 -0
- package/libexec/authoring/node_modules/cliui/node_modules/string-width/license +9 -0
- package/libexec/authoring/node_modules/cliui/node_modules/string-width/package.json +64 -0
- package/libexec/authoring/node_modules/cliui/node_modules/string-width/readme.md +66 -0
- package/libexec/authoring/node_modules/cliui/package.json +72 -0
- package/libexec/authoring/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/libexec/authoring/node_modules/emoji-regex/README.md +107 -0
- package/libexec/authoring/node_modules/emoji-regex/index.d.ts +3 -0
- package/libexec/authoring/node_modules/emoji-regex/index.js +4 -0
- package/libexec/authoring/node_modules/emoji-regex/index.mjs +4 -0
- package/libexec/authoring/node_modules/emoji-regex/package.json +45 -0
- package/libexec/authoring/node_modules/env-paths/index.d.ts +90 -0
- package/libexec/authoring/node_modules/env-paths/index.js +69 -0
- package/libexec/authoring/node_modules/env-paths/license +9 -0
- package/libexec/authoring/node_modules/env-paths/package.json +55 -0
- package/libexec/authoring/node_modules/env-paths/readme.md +100 -0
- package/libexec/authoring/node_modules/escalade/dist/index.js +22 -0
- package/libexec/authoring/node_modules/escalade/dist/index.mjs +22 -0
- package/libexec/authoring/node_modules/escalade/index.d.mts +11 -0
- package/libexec/authoring/node_modules/escalade/index.d.ts +15 -0
- package/libexec/authoring/node_modules/escalade/license +9 -0
- package/libexec/authoring/node_modules/escalade/package.json +74 -0
- package/libexec/authoring/node_modules/escalade/readme.md +211 -0
- package/libexec/authoring/node_modules/escalade/sync/index.d.mts +9 -0
- package/libexec/authoring/node_modules/escalade/sync/index.d.ts +13 -0
- package/libexec/authoring/node_modules/escalade/sync/index.js +18 -0
- package/libexec/authoring/node_modules/escalade/sync/index.mjs +18 -0
- package/libexec/authoring/node_modules/fast-deep-equal/LICENSE +21 -0
- package/libexec/authoring/node_modules/fast-deep-equal/README.md +96 -0
- package/libexec/authoring/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/libexec/authoring/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/libexec/authoring/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/libexec/authoring/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/libexec/authoring/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/libexec/authoring/node_modules/fast-deep-equal/index.js +46 -0
- package/libexec/authoring/node_modules/fast-deep-equal/package.json +61 -0
- package/libexec/authoring/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/libexec/authoring/node_modules/fast-deep-equal/react.js +53 -0
- package/libexec/authoring/node_modules/fast-string-truncated-width/dist/index.d.ts +4 -0
- package/libexec/authoring/node_modules/fast-string-truncated-width/dist/index.js +111 -0
- package/libexec/authoring/node_modules/fast-string-truncated-width/dist/types.d.ts +19 -0
- package/libexec/authoring/node_modules/fast-string-truncated-width/dist/types.js +2 -0
- package/libexec/authoring/node_modules/fast-string-truncated-width/dist/utils.d.ts +4 -0
- package/libexec/authoring/node_modules/fast-string-truncated-width/dist/utils.js +20 -0
- package/libexec/authoring/node_modules/fast-string-truncated-width/license +21 -0
- package/libexec/authoring/node_modules/fast-string-truncated-width/package.json +35 -0
- package/libexec/authoring/node_modules/fast-string-truncated-width/readme.md +59 -0
- package/libexec/authoring/node_modules/fast-string-width/dist/index.d.ts +4 -0
- package/libexec/authoring/node_modules/fast-string-width/dist/index.js +14 -0
- package/libexec/authoring/node_modules/fast-string-width/license +21 -0
- package/libexec/authoring/node_modules/fast-string-width/package.json +34 -0
- package/libexec/authoring/node_modules/fast-string-width/readme.md +42 -0
- package/libexec/authoring/node_modules/fast-uri/.gitattributes +2 -0
- package/libexec/authoring/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/libexec/authoring/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
- package/libexec/authoring/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/libexec/authoring/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/libexec/authoring/node_modules/fast-uri/LICENSE +30 -0
- package/libexec/authoring/node_modules/fast-uri/README.md +152 -0
- package/libexec/authoring/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/libexec/authoring/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/libexec/authoring/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/libexec/authoring/node_modules/fast-uri/benchmark/package.json +17 -0
- package/libexec/authoring/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/libexec/authoring/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/libexec/authoring/node_modules/fast-uri/eslint.config.js +6 -0
- package/libexec/authoring/node_modules/fast-uri/index.js +631 -0
- package/libexec/authoring/node_modules/fast-uri/lib/schemes.js +272 -0
- package/libexec/authoring/node_modules/fast-uri/lib/utils.js +747 -0
- package/libexec/authoring/node_modules/fast-uri/package.json +68 -0
- package/libexec/authoring/node_modules/fast-uri/test/ajv.test.js +43 -0
- package/libexec/authoring/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
- package/libexec/authoring/node_modules/fast-uri/test/equal.test.js +145 -0
- package/libexec/authoring/node_modules/fast-uri/test/fixtures/uri-js-parse.json +503 -0
- package/libexec/authoring/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/libexec/authoring/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
- package/libexec/authoring/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
- package/libexec/authoring/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
- package/libexec/authoring/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
- package/libexec/authoring/node_modules/fast-uri/test/parse.test.js +327 -0
- package/libexec/authoring/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
- package/libexec/authoring/node_modules/fast-uri/test/reserved-path-normalization.test.js +109 -0
- package/libexec/authoring/node_modules/fast-uri/test/resolve.test.js +87 -0
- package/libexec/authoring/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/libexec/authoring/node_modules/fast-uri/test/scheme-validation.test.js +124 -0
- package/libexec/authoring/node_modules/fast-uri/test/security-normalization.test.js +178 -0
- package/libexec/authoring/node_modules/fast-uri/test/security.test.js +431 -0
- package/libexec/authoring/node_modules/fast-uri/test/serialize.test.js +151 -0
- package/libexec/authoring/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/libexec/authoring/node_modules/fast-uri/test/uri-js.test.js +912 -0
- package/libexec/authoring/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
- package/libexec/authoring/node_modules/fast-uri/test/util.test.js +38 -0
- package/libexec/authoring/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
- package/libexec/authoring/node_modules/fast-uri/tsconfig.json +9 -0
- package/libexec/authoring/node_modules/fast-uri/types/index.d.ts +60 -0
- package/libexec/authoring/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/libexec/authoring/node_modules/fast-wrap-ansi/LICENSE +23 -0
- package/libexec/authoring/node_modules/fast-wrap-ansi/README.md +26 -0
- package/libexec/authoring/node_modules/fast-wrap-ansi/lib/main.d.ts +6 -0
- package/libexec/authoring/node_modules/fast-wrap-ansi/lib/main.js +218 -0
- package/libexec/authoring/node_modules/fast-wrap-ansi/package.json +51 -0
- package/libexec/authoring/node_modules/get-caller-file/LICENSE.md +6 -0
- package/libexec/authoring/node_modules/get-caller-file/README.md +41 -0
- package/libexec/authoring/node_modules/get-caller-file/index.d.ts +2 -0
- package/libexec/authoring/node_modules/get-caller-file/index.js +22 -0
- package/libexec/authoring/node_modules/get-caller-file/index.js.map +1 -0
- package/libexec/authoring/node_modules/get-caller-file/package.json +42 -0
- package/libexec/authoring/node_modules/get-east-asian-width/index.d.ts +60 -0
- package/libexec/authoring/node_modules/get-east-asian-width/index.js +35 -0
- package/libexec/authoring/node_modules/get-east-asian-width/license +9 -0
- package/libexec/authoring/node_modules/get-east-asian-width/lookup-data.js +21 -0
- package/libexec/authoring/node_modules/get-east-asian-width/lookup.js +138 -0
- package/libexec/authoring/node_modules/get-east-asian-width/package.json +71 -0
- package/libexec/authoring/node_modules/get-east-asian-width/readme.md +65 -0
- package/libexec/authoring/node_modules/get-east-asian-width/utilities.js +24 -0
- package/libexec/authoring/node_modules/iconv-lite/LICENSE +21 -0
- package/libexec/authoring/node_modules/iconv-lite/README.md +138 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/index.js +23 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/sbcs-data.js +180 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/utf32.js +314 -0
- package/libexec/authoring/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/libexec/authoring/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/libexec/authoring/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/libexec/authoring/node_modules/iconv-lite/lib/index.d.ts +129 -0
- package/libexec/authoring/node_modules/iconv-lite/lib/index.js +182 -0
- package/libexec/authoring/node_modules/iconv-lite/lib/streams.js +105 -0
- package/libexec/authoring/node_modules/iconv-lite/package.json +70 -0
- package/libexec/authoring/node_modules/iconv-lite/types/encodings.d.ts +425 -0
- package/libexec/authoring/node_modules/is-safe-filename/index.d.ts +59 -0
- package/libexec/authoring/node_modules/is-safe-filename/index.js +41 -0
- package/libexec/authoring/node_modules/is-safe-filename/license +9 -0
- package/libexec/authoring/node_modules/is-safe-filename/package.json +45 -0
- package/libexec/authoring/node_modules/is-safe-filename/readme.md +62 -0
- package/libexec/authoring/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/libexec/authoring/node_modules/is-unicode-supported/index.js +21 -0
- package/libexec/authoring/node_modules/is-unicode-supported/license +9 -0
- package/libexec/authoring/node_modules/is-unicode-supported/package.json +47 -0
- package/libexec/authoring/node_modules/is-unicode-supported/readme.md +35 -0
- package/libexec/authoring/node_modules/js-tokens/CHANGELOG.md +151 -0
- package/libexec/authoring/node_modules/js-tokens/LICENSE +21 -0
- package/libexec/authoring/node_modules/js-tokens/README.md +240 -0
- package/libexec/authoring/node_modules/js-tokens/index.js +23 -0
- package/libexec/authoring/node_modules/js-tokens/package.json +30 -0
- package/libexec/authoring/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/libexec/authoring/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/libexec/authoring/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/libexec/authoring/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/libexec/authoring/node_modules/json-schema-traverse/LICENSE +21 -0
- package/libexec/authoring/node_modules/json-schema-traverse/README.md +95 -0
- package/libexec/authoring/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/libexec/authoring/node_modules/json-schema-traverse/index.js +93 -0
- package/libexec/authoring/node_modules/json-schema-traverse/package.json +43 -0
- package/libexec/authoring/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/libexec/authoring/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/libexec/authoring/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/libexec/authoring/node_modules/minipass/LICENSE.md +55 -0
- package/libexec/authoring/node_modules/minipass/README.md +825 -0
- package/libexec/authoring/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
- package/libexec/authoring/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/libexec/authoring/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/libexec/authoring/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/libexec/authoring/node_modules/minipass/dist/esm/index.d.ts +545 -0
- package/libexec/authoring/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/minipass/dist/esm/index.js +1020 -0
- package/libexec/authoring/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/libexec/authoring/node_modules/minipass/dist/esm/package.json +3 -0
- package/libexec/authoring/node_modules/minipass/package.json +77 -0
- package/libexec/authoring/node_modules/minizlib/LICENSE +26 -0
- package/libexec/authoring/node_modules/minizlib/README.md +64 -0
- package/libexec/authoring/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
- package/libexec/authoring/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
- package/libexec/authoring/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/libexec/authoring/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
- package/libexec/authoring/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
- package/libexec/authoring/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/libexec/authoring/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
- package/libexec/authoring/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/libexec/authoring/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
- package/libexec/authoring/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
- package/libexec/authoring/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/libexec/authoring/node_modules/minizlib/dist/esm/constants.js.map +1 -0
- package/libexec/authoring/node_modules/minizlib/dist/esm/index.d.ts +99 -0
- package/libexec/authoring/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/minizlib/dist/esm/index.js +363 -0
- package/libexec/authoring/node_modules/minizlib/dist/esm/index.js.map +1 -0
- package/libexec/authoring/node_modules/minizlib/dist/esm/package.json +3 -0
- package/libexec/authoring/node_modules/minizlib/package.json +80 -0
- package/libexec/authoring/node_modules/mustache/CHANGELOG.md +618 -0
- package/libexec/authoring/node_modules/mustache/LICENSE +11 -0
- package/libexec/authoring/node_modules/mustache/README.md +621 -0
- package/libexec/authoring/node_modules/mustache/bin/mustache +150 -0
- package/libexec/authoring/node_modules/mustache/mustache.js +772 -0
- package/libexec/authoring/node_modules/mustache/mustache.min.js +1 -0
- package/libexec/authoring/node_modules/mustache/mustache.mjs +764 -0
- package/libexec/authoring/node_modules/mustache/package.json +67 -0
- package/libexec/authoring/node_modules/mustache/wrappers/dojo/mustache.js.post +4 -0
- package/libexec/authoring/node_modules/mustache/wrappers/dojo/mustache.js.pre +9 -0
- package/libexec/authoring/node_modules/mustache/wrappers/jquery/mustache.js.post +13 -0
- package/libexec/authoring/node_modules/mustache/wrappers/jquery/mustache.js.pre +9 -0
- package/libexec/authoring/node_modules/mustache/wrappers/mootools/mustache.js.post +5 -0
- package/libexec/authoring/node_modules/mustache/wrappers/mootools/mustache.js.pre +2 -0
- package/libexec/authoring/node_modules/mustache/wrappers/qooxdoo/mustache.js.post +9 -0
- package/libexec/authoring/node_modules/mustache/wrappers/qooxdoo/mustache.js.pre +172 -0
- package/libexec/authoring/node_modules/mustache/wrappers/yui3/mustache.js.post +4 -0
- package/libexec/authoring/node_modules/mustache/wrappers/yui3/mustache.js.pre +1 -0
- package/libexec/authoring/node_modules/mute-stream/LICENSE +15 -0
- package/libexec/authoring/node_modules/mute-stream/README.md +68 -0
- package/libexec/authoring/node_modules/mute-stream/lib/index.js +142 -0
- package/libexec/authoring/node_modules/mute-stream/package.json +54 -0
- package/libexec/authoring/node_modules/picocolors/LICENSE +15 -0
- package/libexec/authoring/node_modules/picocolors/README.md +21 -0
- package/libexec/authoring/node_modules/picocolors/package.json +25 -0
- package/libexec/authoring/node_modules/picocolors/picocolors.browser.js +4 -0
- package/libexec/authoring/node_modules/picocolors/picocolors.d.ts +5 -0
- package/libexec/authoring/node_modules/picocolors/picocolors.js +75 -0
- package/libexec/authoring/node_modules/picocolors/types.d.ts +51 -0
- package/libexec/authoring/node_modules/prettier/LICENSE +7 -0
- package/libexec/authoring/node_modules/prettier/README.md +104 -0
- package/libexec/authoring/node_modules/prettier/THIRD-PARTY-NOTICES.md +8019 -0
- package/libexec/authoring/node_modules/prettier/bin/prettier.cjs +84 -0
- package/libexec/authoring/node_modules/prettier/doc.d.ts +254 -0
- package/libexec/authoring/node_modules/prettier/doc.js +1575 -0
- package/libexec/authoring/node_modules/prettier/doc.mjs +1544 -0
- package/libexec/authoring/node_modules/prettier/index.cjs +790 -0
- package/libexec/authoring/node_modules/prettier/index.d.ts +959 -0
- package/libexec/authoring/node_modules/prettier/index.mjs +19074 -0
- package/libexec/authoring/node_modules/prettier/internal/experimental-cli-worker.mjs +2756 -0
- package/libexec/authoring/node_modules/prettier/internal/experimental-cli.mjs +12572 -0
- package/libexec/authoring/node_modules/prettier/internal/legacy-cli.mjs +7059 -0
- package/libexec/authoring/node_modules/prettier/package.json +207 -0
- package/libexec/authoring/node_modules/prettier/plugins/acorn.d.ts +6 -0
- package/libexec/authoring/node_modules/prettier/plugins/acorn.js +17 -0
- package/libexec/authoring/node_modules/prettier/plugins/acorn.mjs +17 -0
- package/libexec/authoring/node_modules/prettier/plugins/angular.d.ts +8 -0
- package/libexec/authoring/node_modules/prettier/plugins/angular.js +5 -0
- package/libexec/authoring/node_modules/prettier/plugins/angular.mjs +5 -0
- package/libexec/authoring/node_modules/prettier/plugins/babel.d.ts +18 -0
- package/libexec/authoring/node_modules/prettier/plugins/babel.js +16 -0
- package/libexec/authoring/node_modules/prettier/plugins/babel.mjs +16 -0
- package/libexec/authoring/node_modules/prettier/plugins/estree.d.ts +6 -0
- package/libexec/authoring/node_modules/prettier/plugins/estree.js +44 -0
- package/libexec/authoring/node_modules/prettier/plugins/estree.mjs +44 -0
- package/libexec/authoring/node_modules/prettier/plugins/flow.d.ts +5 -0
- package/libexec/authoring/node_modules/prettier/plugins/flow.js +7 -0
- package/libexec/authoring/node_modules/prettier/plugins/flow.mjs +7 -0
- package/libexec/authoring/node_modules/prettier/plugins/glimmer.d.ts +9 -0
- package/libexec/authoring/node_modules/prettier/plugins/glimmer.js +37 -0
- package/libexec/authoring/node_modules/prettier/plugins/glimmer.mjs +37 -0
- package/libexec/authoring/node_modules/prettier/plugins/graphql.d.ts +9 -0
- package/libexec/authoring/node_modules/prettier/plugins/graphql.js +17 -0
- package/libexec/authoring/node_modules/prettier/plugins/graphql.mjs +17 -0
- package/libexec/authoring/node_modules/prettier/plugins/html.d.ts +13 -0
- package/libexec/authoring/node_modules/prettier/plugins/html.js +25 -0
- package/libexec/authoring/node_modules/prettier/plugins/html.mjs +25 -0
- package/libexec/authoring/node_modules/prettier/plugins/markdown.d.ts +11 -0
- package/libexec/authoring/node_modules/prettier/plugins/markdown.js +70 -0
- package/libexec/authoring/node_modules/prettier/plugins/markdown.mjs +70 -0
- package/libexec/authoring/node_modules/prettier/plugins/meriyah.d.ts +5 -0
- package/libexec/authoring/node_modules/prettier/plugins/meriyah.js +6 -0
- package/libexec/authoring/node_modules/prettier/plugins/meriyah.mjs +6 -0
- package/libexec/authoring/node_modules/prettier/plugins/postcss.d.ts +11 -0
- package/libexec/authoring/node_modules/prettier/plugins/postcss.js +62 -0
- package/libexec/authoring/node_modules/prettier/plugins/postcss.mjs +62 -0
- package/libexec/authoring/node_modules/prettier/plugins/typescript.d.ts +5 -0
- package/libexec/authoring/node_modules/prettier/plugins/typescript.js +22 -0
- package/libexec/authoring/node_modules/prettier/plugins/typescript.mjs +22 -0
- package/libexec/authoring/node_modules/prettier/plugins/yaml.d.ts +9 -0
- package/libexec/authoring/node_modules/prettier/plugins/yaml.js +141 -0
- package/libexec/authoring/node_modules/prettier/plugins/yaml.mjs +154 -0
- package/libexec/authoring/node_modules/prettier/standalone.d.ts +33 -0
- package/libexec/authoring/node_modules/prettier/standalone.js +29 -0
- package/libexec/authoring/node_modules/prettier/standalone.mjs +29 -0
- package/libexec/authoring/node_modules/require-from-string/index.js +34 -0
- package/libexec/authoring/node_modules/require-from-string/license +21 -0
- package/libexec/authoring/node_modules/require-from-string/package.json +28 -0
- package/libexec/authoring/node_modules/require-from-string/readme.md +56 -0
- package/libexec/authoring/node_modules/safer-buffer/LICENSE +21 -0
- package/libexec/authoring/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/libexec/authoring/node_modules/safer-buffer/Readme.md +156 -0
- package/libexec/authoring/node_modules/safer-buffer/dangerous.js +58 -0
- package/libexec/authoring/node_modules/safer-buffer/package.json +34 -0
- package/libexec/authoring/node_modules/safer-buffer/safer.js +77 -0
- package/libexec/authoring/node_modules/safer-buffer/tests.js +406 -0
- package/libexec/authoring/node_modules/semver/LICENSE +15 -0
- package/libexec/authoring/node_modules/semver/README.md +680 -0
- package/libexec/authoring/node_modules/semver/bin/semver.js +195 -0
- package/libexec/authoring/node_modules/semver/classes/comparator.js +143 -0
- package/libexec/authoring/node_modules/semver/classes/index.js +7 -0
- package/libexec/authoring/node_modules/semver/classes/range.js +577 -0
- package/libexec/authoring/node_modules/semver/classes/semver.js +350 -0
- package/libexec/authoring/node_modules/semver/functions/clean.js +8 -0
- package/libexec/authoring/node_modules/semver/functions/cmp.js +54 -0
- package/libexec/authoring/node_modules/semver/functions/coerce.js +62 -0
- package/libexec/authoring/node_modules/semver/functions/compare-build.js +9 -0
- package/libexec/authoring/node_modules/semver/functions/compare-loose.js +5 -0
- package/libexec/authoring/node_modules/semver/functions/compare.js +7 -0
- package/libexec/authoring/node_modules/semver/functions/diff.js +60 -0
- package/libexec/authoring/node_modules/semver/functions/eq.js +5 -0
- package/libexec/authoring/node_modules/semver/functions/gt.js +5 -0
- package/libexec/authoring/node_modules/semver/functions/gte.js +5 -0
- package/libexec/authoring/node_modules/semver/functions/inc.js +21 -0
- package/libexec/authoring/node_modules/semver/functions/lt.js +5 -0
- package/libexec/authoring/node_modules/semver/functions/lte.js +5 -0
- package/libexec/authoring/node_modules/semver/functions/major.js +5 -0
- package/libexec/authoring/node_modules/semver/functions/minor.js +5 -0
- package/libexec/authoring/node_modules/semver/functions/neq.js +5 -0
- package/libexec/authoring/node_modules/semver/functions/parse.js +18 -0
- package/libexec/authoring/node_modules/semver/functions/patch.js +5 -0
- package/libexec/authoring/node_modules/semver/functions/prerelease.js +8 -0
- package/libexec/authoring/node_modules/semver/functions/rcompare.js +5 -0
- package/libexec/authoring/node_modules/semver/functions/rsort.js +5 -0
- package/libexec/authoring/node_modules/semver/functions/satisfies.js +12 -0
- package/libexec/authoring/node_modules/semver/functions/sort.js +5 -0
- package/libexec/authoring/node_modules/semver/functions/truncate.js +48 -0
- package/libexec/authoring/node_modules/semver/functions/valid.js +8 -0
- package/libexec/authoring/node_modules/semver/index.js +93 -0
- package/libexec/authoring/node_modules/semver/internal/constants.js +37 -0
- package/libexec/authoring/node_modules/semver/internal/debug.js +11 -0
- package/libexec/authoring/node_modules/semver/internal/identifiers.js +29 -0
- package/libexec/authoring/node_modules/semver/internal/lrucache.js +42 -0
- package/libexec/authoring/node_modules/semver/internal/parse-options.js +17 -0
- package/libexec/authoring/node_modules/semver/internal/re.js +223 -0
- package/libexec/authoring/node_modules/semver/package.json +78 -0
- package/libexec/authoring/node_modules/semver/preload.js +4 -0
- package/libexec/authoring/node_modules/semver/range.bnf +17 -0
- package/libexec/authoring/node_modules/semver/ranges/gtr.js +6 -0
- package/libexec/authoring/node_modules/semver/ranges/intersects.js +9 -0
- package/libexec/authoring/node_modules/semver/ranges/ltr.js +6 -0
- package/libexec/authoring/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/libexec/authoring/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/libexec/authoring/node_modules/semver/ranges/min-version.js +63 -0
- package/libexec/authoring/node_modules/semver/ranges/outside.js +82 -0
- package/libexec/authoring/node_modules/semver/ranges/simplify.js +49 -0
- package/libexec/authoring/node_modules/semver/ranges/subset.js +249 -0
- package/libexec/authoring/node_modules/semver/ranges/to-comparators.js +10 -0
- package/libexec/authoring/node_modules/semver/ranges/valid.js +13 -0
- package/libexec/authoring/node_modules/signal-exit/LICENSE.txt +16 -0
- package/libexec/authoring/node_modules/signal-exit/README.md +74 -0
- package/libexec/authoring/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
- package/libexec/authoring/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
- package/libexec/authoring/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/libexec/authoring/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
- package/libexec/authoring/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
- package/libexec/authoring/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/libexec/authoring/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
- package/libexec/authoring/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/libexec/authoring/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
- package/libexec/authoring/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
- package/libexec/authoring/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/libexec/authoring/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
- package/libexec/authoring/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
- package/libexec/authoring/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
- package/libexec/authoring/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/libexec/authoring/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
- package/libexec/authoring/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
- package/libexec/authoring/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/libexec/authoring/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
- package/libexec/authoring/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/libexec/authoring/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
- package/libexec/authoring/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
- package/libexec/authoring/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/libexec/authoring/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
- package/libexec/authoring/node_modules/signal-exit/package.json +106 -0
- package/libexec/authoring/node_modules/string-width/index.d.ts +39 -0
- package/libexec/authoring/node_modules/string-width/index.js +207 -0
- package/libexec/authoring/node_modules/string-width/license +9 -0
- package/libexec/authoring/node_modules/string-width/package.json +65 -0
- package/libexec/authoring/node_modules/string-width/readme.md +66 -0
- package/libexec/authoring/node_modules/strip-ansi/index.d.ts +15 -0
- package/libexec/authoring/node_modules/strip-ansi/index.js +19 -0
- package/libexec/authoring/node_modules/strip-ansi/license +9 -0
- package/libexec/authoring/node_modules/strip-ansi/package.json +59 -0
- package/libexec/authoring/node_modules/strip-ansi/readme.md +37 -0
- package/libexec/authoring/node_modules/tar/LICENSE.md +55 -0
- package/libexec/authoring/node_modules/tar/README.md +1233 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/create.d.ts +3 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/create.js +82 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/create.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/cwd-error.d.ts +8 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/extract.d.ts +3 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/extract.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/get-write-flag.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/header.d.ts +53 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/header.js +348 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/header.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/index.d.ts +20 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/index.js +64 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/index.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/index.min.js.map +7 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/large-numbers.d.ts +3 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/list.d.ts +7 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/list.js +153 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/list.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/make-command.d.ts +49 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/mkdir.d.ts +25 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/mode-fix.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/options.d.ts +604 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/options.js +66 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/options.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/pack.d.ts +105 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/pack.js +544 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/pack.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/package.json +3 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/parse.d.ts +92 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/parse.js +655 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/parse.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/path-reservations.d.ts +11 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/pax.d.ts +26 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/pax.js +182 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/pax.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/process-umask.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/process-umask.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/process-umask.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/read-entry.d.ts +36 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/replace.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/replace.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/symlink-error.d.ts +9 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/types.d.ts +16 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/types.js +70 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/types.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/unpack.d.ts +101 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/update.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/update.js +33 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/update.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/warn-method.d.ts +24 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/winchars.d.ts +3 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/write-entry.d.ts +129 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/libexec/authoring/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/create.d.ts +3 -0
- package/libexec/authoring/node_modules/tar/dist/esm/create.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/create.js +76 -0
- package/libexec/authoring/node_modules/tar/dist/esm/create.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/cwd-error.d.ts +8 -0
- package/libexec/authoring/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/libexec/authoring/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/extract.d.ts +3 -0
- package/libexec/authoring/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/extract.js +49 -0
- package/libexec/authoring/node_modules/tar/dist/esm/extract.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/get-write-flag.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/libexec/authoring/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/header.d.ts +53 -0
- package/libexec/authoring/node_modules/tar/dist/esm/header.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/header.js +311 -0
- package/libexec/authoring/node_modules/tar/dist/esm/header.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/index.d.ts +20 -0
- package/libexec/authoring/node_modules/tar/dist/esm/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/index.js +20 -0
- package/libexec/authoring/node_modules/tar/dist/esm/index.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/index.min.js +4 -0
- package/libexec/authoring/node_modules/tar/dist/esm/index.min.js.map +7 -0
- package/libexec/authoring/node_modules/tar/dist/esm/large-numbers.d.ts +3 -0
- package/libexec/authoring/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/libexec/authoring/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/list.d.ts +7 -0
- package/libexec/authoring/node_modules/tar/dist/esm/list.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/list.js +113 -0
- package/libexec/authoring/node_modules/tar/dist/esm/list.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/make-command.d.ts +49 -0
- package/libexec/authoring/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/make-command.js +48 -0
- package/libexec/authoring/node_modules/tar/dist/esm/make-command.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/mkdir.d.ts +25 -0
- package/libexec/authoring/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/libexec/authoring/node_modules/tar/dist/esm/mkdir.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/mode-fix.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/libexec/authoring/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/normalize-unicode.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/libexec/authoring/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/normalize-windows-path.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/libexec/authoring/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/options.d.ts +604 -0
- package/libexec/authoring/node_modules/tar/dist/esm/options.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/options.js +54 -0
- package/libexec/authoring/node_modules/tar/dist/esm/options.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/pack.d.ts +105 -0
- package/libexec/authoring/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/pack.js +502 -0
- package/libexec/authoring/node_modules/tar/dist/esm/pack.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/package.json +3 -0
- package/libexec/authoring/node_modules/tar/dist/esm/parse.d.ts +92 -0
- package/libexec/authoring/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/parse.js +651 -0
- package/libexec/authoring/node_modules/tar/dist/esm/parse.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/path-reservations.d.ts +11 -0
- package/libexec/authoring/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/libexec/authoring/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/pax.d.ts +26 -0
- package/libexec/authoring/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/pax.js +178 -0
- package/libexec/authoring/node_modules/tar/dist/esm/pax.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/process-umask.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/esm/process-umask.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/libexec/authoring/node_modules/tar/dist/esm/process-umask.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/read-entry.d.ts +36 -0
- package/libexec/authoring/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/libexec/authoring/node_modules/tar/dist/esm/read-entry.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/replace.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/replace.js +221 -0
- package/libexec/authoring/node_modules/tar/dist/esm/replace.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/strip-absolute-path.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/libexec/authoring/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/libexec/authoring/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/symlink-error.d.ts +9 -0
- package/libexec/authoring/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/libexec/authoring/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/types.d.ts +16 -0
- package/libexec/authoring/node_modules/tar/dist/esm/types.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/types.js +65 -0
- package/libexec/authoring/node_modules/tar/dist/esm/types.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/unpack.d.ts +101 -0
- package/libexec/authoring/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/unpack.js +891 -0
- package/libexec/authoring/node_modules/tar/dist/esm/unpack.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/update.d.ts +2 -0
- package/libexec/authoring/node_modules/tar/dist/esm/update.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/update.js +30 -0
- package/libexec/authoring/node_modules/tar/dist/esm/update.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/warn-method.d.ts +24 -0
- package/libexec/authoring/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/libexec/authoring/node_modules/tar/dist/esm/warn-method.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/winchars.d.ts +3 -0
- package/libexec/authoring/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/winchars.js +9 -0
- package/libexec/authoring/node_modules/tar/dist/esm/winchars.js.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/write-entry.d.ts +129 -0
- package/libexec/authoring/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
- package/libexec/authoring/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/libexec/authoring/node_modules/tar/dist/esm/write-entry.js.map +1 -0
- package/libexec/authoring/node_modules/tar/package.json +298 -0
- package/libexec/authoring/node_modules/temporal-polyfill/LICENSE +21 -0
- package/libexec/authoring/node_modules/temporal-polyfill/README.md +307 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/apiHelpers.js +381 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/classApi-basic.js +1015 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/classApi-full.js +1016 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/classApi.js +119 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/exoticCalendars-utils.js +386 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/exoticCalendars.js +524 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/funcApi-native.d.ts +117 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/funcApi-native.js +1984 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/funcApi-shim.js +2099 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/funcApi.d.ts +154 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/funcApi.js +212 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/internal.d.ts +62 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/internal.js +3304 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/options.d.ts +2 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/options.js +280 -0
- package/libexec/authoring/node_modules/temporal-polyfill/chunks/root.js +3 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/Calendar.d.ts +26 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/Calendar.js +74 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/Duration.d.ts +40 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/Duration.js +45 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/Instant.d.ts +93 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/Instant.js +87 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/Now.d.ts +14 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/Now.js +19 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/PlainDate.d.ts +98 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/PlainDate.js +117 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/PlainDateTime.d.ts +178 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/PlainDateTime.js +189 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/PlainMonthDay.d.ts +23 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/PlainMonthDay.js +33 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/PlainTime.d.ts +104 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/PlainTime.js +105 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/PlainYearMonth.d.ts +55 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/PlainYearMonth.js +67 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/ZonedDateTime.d.ts +189 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/ZonedDateTime.js +199 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/index.d.ts +3 -0
- package/libexec/authoring/node_modules/temporal-polyfill/fns/index.js +1 -0
- package/libexec/authoring/node_modules/temporal-polyfill/full/global.d.ts +2 -0
- package/libexec/authoring/node_modules/temporal-polyfill/full/global.esm.js +3 -0
- package/libexec/authoring/node_modules/temporal-polyfill/full/global.js +4580 -0
- package/libexec/authoring/node_modules/temporal-polyfill/full/implementation.d.ts +1 -0
- package/libexec/authoring/node_modules/temporal-polyfill/full/implementation.js +1 -0
- package/libexec/authoring/node_modules/temporal-polyfill/full/index.d.ts +1 -0
- package/libexec/authoring/node_modules/temporal-polyfill/full/index.js +11 -0
- package/libexec/authoring/node_modules/temporal-polyfill/full/shim.d.ts +4 -0
- package/libexec/authoring/node_modules/temporal-polyfill/full/shim.js +21 -0
- package/libexec/authoring/node_modules/temporal-polyfill/global.d.ts +2 -0
- package/libexec/authoring/node_modules/temporal-polyfill/global.esm.js +3 -0
- package/libexec/authoring/node_modules/temporal-polyfill/global.js +3738 -0
- package/libexec/authoring/node_modules/temporal-polyfill/implementation.d.ts +1 -0
- package/libexec/authoring/node_modules/temporal-polyfill/implementation.js +3 -0
- package/libexec/authoring/node_modules/temporal-polyfill/index.d.ts +1 -0
- package/libexec/authoring/node_modules/temporal-polyfill/index.js +11 -0
- package/libexec/authoring/node_modules/temporal-polyfill/package.json +113 -0
- package/libexec/authoring/node_modules/temporal-polyfill/shim.d.ts +4 -0
- package/libexec/authoring/node_modules/temporal-polyfill/shim.js +21 -0
- package/libexec/authoring/node_modules/temporal-polyfill/types/global.d.ts +1 -0
- package/libexec/authoring/node_modules/temporal-polyfill/types/global.js +1 -0
- package/libexec/authoring/node_modules/temporal-spec/LICENSE +19 -0
- package/libexec/authoring/node_modules/temporal-spec/README.md +151 -0
- package/libexec/authoring/node_modules/temporal-spec/global.d.ts +726 -0
- package/libexec/authoring/node_modules/temporal-spec/global.js +0 -0
- package/libexec/authoring/node_modules/temporal-spec/index.d.ts +733 -0
- package/libexec/authoring/node_modules/temporal-spec/index.js +0 -0
- package/libexec/authoring/node_modules/temporal-spec/package.json +45 -0
- package/libexec/authoring/node_modules/temporal-utils/LICENSE +21 -0
- package/libexec/authoring/node_modules/temporal-utils/README.md +866 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/diff.d.ts +17 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/diff.js +59 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/endOf.d.ts +9 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/endOf.js +56 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/errorMessages.d.ts +9 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/errorMessages.js +14 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/global-types.d.ts +1 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/global-types.js +1 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/index.d.ts +6 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/index.js +5 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/protected-error-messages.d.ts +1 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/protected-error-messages.js +1 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/protected.d.ts +1 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/protected.js +1 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/round.d.ts +24 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/round.js +47 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/startOf.d.ts +9 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/startOf.js +73 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/utils.d.ts +20 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/utils.js +81 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/with.d.ts +3 -0
- package/libexec/authoring/node_modules/temporal-utils/dist/with.js +44 -0
- package/libexec/authoring/node_modules/temporal-utils/package.json +57 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/License.txt +11 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/README.md +54 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/eslint.config.js +12 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/browser/main.d.ts +17 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/browser/main.js +83 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/browser/ril.d.ts +22 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/browser/ril.js +210 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/api.d.ts +14 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/api.js +87 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/cancellation.d.ts +32 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/cancellation.js +132 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/connection.d.ts +367 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/connection.js +1271 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/disposable.d.ts +9 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/disposable.js +16 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/encoding.d.ts +52 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/encoding.js +70 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/events.d.ts +39 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/events.js +135 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/is.d.ts +7 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/is.js +34 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/linkedMap.d.ts +55 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +412 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/messageBuffer.d.ts +18 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +155 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/messageReader.d.ts +77 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/messageReader.js +246 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/messageWriter.d.ts +60 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +157 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/messages.d.ts +369 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/messages.js +436 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/ral.d.ts +74 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/ral.js +23 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/semaphore.d.ts +10 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/semaphore.js +74 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +15 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +77 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/node/main.d.ts +58 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/node/main.js +289 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/node/ril.d.ts +12 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/lib/node/ril.js +163 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/package.json +54 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/thirdpartynotices.txt +16 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/tsconfig.tsbuildinfo +1 -0
- package/libexec/authoring/node_modules/vscode-jsonrpc/typings/thenable.d.ts +5 -0
- package/libexec/authoring/node_modules/vscode-languageserver/License.txt +11 -0
- package/libexec/authoring/node_modules/vscode-languageserver/README.md +17 -0
- package/libexec/authoring/node_modules/vscode-languageserver/bin/installServerIntoExtension +73 -0
- package/libexec/authoring/node_modules/vscode-languageserver/eslint.config.js +10 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/browser/main.d.ts +20 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/browser/main.js +61 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/api.d.ts +15 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/api.js +35 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/callHierarchy.d.ts +15 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/callHierarchy.js +34 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/configuration.d.ts +9 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/configuration.js +71 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/diagnostic.d.ts +29 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/diagnostic.js +30 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/fileOperations.d.ts +16 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/fileOperations.js +43 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/foldingRange.d.ts +22 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/foldingRange.js +26 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/inlayHint.d.ts +28 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/inlayHint.js +30 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/inlineCompletion.d.ts +18 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/inlineCompletion.js +22 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/inlineValue.d.ts +22 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/inlineValue.js +25 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/linkedEditingRange.d.ts +16 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/linkedEditingRange.js +18 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/moniker.d.ts +13 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/moniker.js +23 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/notebook.d.ts +99 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/notebook.js +262 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/progress.d.ts +25 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/progress.js +172 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/semanticTokens.d.ts +43 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/semanticTokens.js +251 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/server.d.ts +812 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/server.js +798 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/showDocument.d.ts +6 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/showDocument.js +16 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/textDocumentContent.d.ts +14 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/textDocumentContent.js +25 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/textDocuments.d.ts +133 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/textDocuments.js +180 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/typeHierarchy.d.ts +15 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/typeHierarchy.js +34 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/utils/is.d.ts +9 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/utils/is.js +42 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/utils/uuid.d.ts +22 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/utils/uuid.js +98 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/workspaceFolder.d.ts +7 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/common/workspaceFolder.js +47 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/node/files.d.ts +19 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/node/files.js +295 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/node/main.d.ts +60 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/node/main.js +295 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/node/resolve.d.ts +1 -0
- package/libexec/authoring/node_modules/vscode-languageserver/lib/node/resolve.js +20 -0
- package/libexec/authoring/node_modules/vscode-languageserver/package.json +51 -0
- package/libexec/authoring/node_modules/vscode-languageserver/thirdpartynotices.txt +84 -0
- package/libexec/authoring/node_modules/vscode-languageserver/typings/thenable.d.ts +5 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/License.txt +11 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/README.md +16 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/eslint.config.js +13 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/browser/main.d.ts +4 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/browser/main.js +27 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/api.d.ts +58 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/api.js +77 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/connection.d.ts +187 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/connection.js +14 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/messages.d.ts +58 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/messages.js +81 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.$.d.ts +1 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.$.js +43 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.d.ts +89 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +45 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.d.ts +68 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +34 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.d.ts +36 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +25 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.d.ts +3626 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.d.ts +38 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +23 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.d.ts +369 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +111 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.d.ts +312 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +107 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.d.ts +118 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +33 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.d.ts +39 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +22 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.d.ts +117 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +46 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.d.ts +53 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +22 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.d.ts +88 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +32 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +1031 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.d.ts +53 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +20 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.d.ts +107 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +69 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.d.ts +428 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +247 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.d.ts +108 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +38 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.d.ts +42 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +21 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.d.ts +241 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +61 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.d.ts +73 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +23 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.textDocumentContent.d.ts +93 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.textDocumentContent.js +33 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.d.ts +39 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +22 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.d.ts +84 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +43 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.d.ts +76 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +29 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/utils/is.d.ts +9 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +45 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/node/main.d.ts +5 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/lib/node/main.js +27 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/metaModel.schema.json +864 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/package.json +54 -0
- package/libexec/authoring/node_modules/vscode-languageserver-protocol/thirdpartynotices.txt +31 -0
- package/libexec/authoring/node_modules/vscode-languageserver-textdocument/License.txt +11 -0
- package/libexec/authoring/node_modules/vscode-languageserver-textdocument/README.md +30 -0
- package/libexec/authoring/node_modules/vscode-languageserver-textdocument/eslint.config.js +13 -0
- package/libexec/authoring/node_modules/vscode-languageserver-textdocument/lib/esm/main.d.ts +211 -0
- package/libexec/authoring/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +290 -0
- package/libexec/authoring/node_modules/vscode-languageserver-textdocument/lib/esm/package.json +3 -0
- package/libexec/authoring/node_modules/vscode-languageserver-textdocument/lib/umd/main.d.ts +211 -0
- package/libexec/authoring/node_modules/vscode-languageserver-textdocument/lib/umd/main.js +331 -0
- package/libexec/authoring/node_modules/vscode-languageserver-textdocument/package.json +39 -0
- package/libexec/authoring/node_modules/vscode-languageserver-textdocument/thirdpartynotices.txt +16 -0
- package/libexec/authoring/node_modules/vscode-languageserver-types/License.txt +11 -0
- package/libexec/authoring/node_modules/vscode-languageserver-types/README.md +17 -0
- package/libexec/authoring/node_modules/vscode-languageserver-types/eslint.config.js +13 -0
- package/libexec/authoring/node_modules/vscode-languageserver-types/lib/esm/main.d.ts +3515 -0
- package/libexec/authoring/node_modules/vscode-languageserver-types/lib/esm/main.js +2415 -0
- package/libexec/authoring/node_modules/vscode-languageserver-types/lib/esm/package.json +3 -0
- package/libexec/authoring/node_modules/vscode-languageserver-types/lib/umd/main.d.ts +3515 -0
- package/libexec/authoring/node_modules/vscode-languageserver-types/lib/umd/main.js +2465 -0
- package/libexec/authoring/node_modules/vscode-languageserver-types/package.json +39 -0
- package/libexec/authoring/node_modules/vscode-languageserver-types/thirdpartynotices.txt +16 -0
- package/libexec/authoring/node_modules/wrap-ansi/index.d.ts +41 -0
- package/libexec/authoring/node_modules/wrap-ansi/index.js +222 -0
- package/libexec/authoring/node_modules/wrap-ansi/license +9 -0
- package/libexec/authoring/node_modules/wrap-ansi/node_modules/string-width/index.d.ts +39 -0
- package/libexec/authoring/node_modules/wrap-ansi/node_modules/string-width/index.js +82 -0
- package/libexec/authoring/node_modules/wrap-ansi/node_modules/string-width/license +9 -0
- package/libexec/authoring/node_modules/wrap-ansi/node_modules/string-width/package.json +64 -0
- package/libexec/authoring/node_modules/wrap-ansi/node_modules/string-width/readme.md +66 -0
- package/libexec/authoring/node_modules/wrap-ansi/package.json +69 -0
- package/libexec/authoring/node_modules/wrap-ansi/readme.md +75 -0
- package/libexec/authoring/node_modules/y18n/CHANGELOG.md +100 -0
- package/libexec/authoring/node_modules/y18n/LICENSE +13 -0
- package/libexec/authoring/node_modules/y18n/README.md +127 -0
- package/libexec/authoring/node_modules/y18n/build/index.cjs +203 -0
- package/libexec/authoring/node_modules/y18n/build/lib/cjs.js +6 -0
- package/libexec/authoring/node_modules/y18n/build/lib/index.js +174 -0
- package/libexec/authoring/node_modules/y18n/build/lib/platform-shims/node.js +19 -0
- package/libexec/authoring/node_modules/y18n/index.mjs +8 -0
- package/libexec/authoring/node_modules/y18n/package.json +70 -0
- package/libexec/authoring/node_modules/yallist/LICENSE.md +63 -0
- package/libexec/authoring/node_modules/yallist/README.md +205 -0
- package/libexec/authoring/node_modules/yallist/dist/commonjs/index.d.ts +39 -0
- package/libexec/authoring/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/libexec/authoring/node_modules/yallist/dist/commonjs/index.js.map +1 -0
- package/libexec/authoring/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/libexec/authoring/node_modules/yallist/dist/esm/index.d.ts +39 -0
- package/libexec/authoring/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
- package/libexec/authoring/node_modules/yallist/dist/esm/index.js +379 -0
- package/libexec/authoring/node_modules/yallist/dist/esm/index.js.map +1 -0
- package/libexec/authoring/node_modules/yallist/dist/esm/package.json +3 -0
- package/libexec/authoring/node_modules/yallist/package.json +68 -0
- package/libexec/authoring/node_modules/yaml/LICENSE +13 -0
- package/libexec/authoring/node_modules/yaml/README.md +172 -0
- package/libexec/authoring/node_modules/yaml/bin.mjs +11 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/composer.js +219 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +226 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/errors.js +57 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/index.js +17 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/log.js +11 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/nodes/Alias.js +118 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/parse/parser.js +975 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/util.js +11 -0
- package/libexec/authoring/node_modules/yaml/browser/dist/visit.js +233 -0
- package/libexec/authoring/node_modules/yaml/browser/index.js +5 -0
- package/libexec/authoring/node_modules/yaml/browser/package.json +3 -0
- package/libexec/authoring/node_modules/yaml/dist/cli.d.ts +8 -0
- package/libexec/authoring/node_modules/yaml/dist/cli.mjs +201 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/composer.js +224 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/resolve-flow-scalar.js +228 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/libexec/authoring/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/libexec/authoring/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/libexec/authoring/node_modules/yaml/dist/doc/Document.js +337 -0
- package/libexec/authoring/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/libexec/authoring/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/libexec/authoring/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/libexec/authoring/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/libexec/authoring/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/libexec/authoring/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/libexec/authoring/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/libexec/authoring/node_modules/yaml/dist/doc/directives.js +178 -0
- package/libexec/authoring/node_modules/yaml/dist/errors.d.ts +21 -0
- package/libexec/authoring/node_modules/yaml/dist/errors.js +62 -0
- package/libexec/authoring/node_modules/yaml/dist/index.d.ts +25 -0
- package/libexec/authoring/node_modules/yaml/dist/index.js +50 -0
- package/libexec/authoring/node_modules/yaml/dist/log.d.ts +3 -0
- package/libexec/authoring/node_modules/yaml/dist/log.js +19 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/Alias.js +120 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/libexec/authoring/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/libexec/authoring/node_modules/yaml/dist/options.d.ts +350 -0
- package/libexec/authoring/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/libexec/authoring/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/libexec/authoring/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/libexec/authoring/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/libexec/authoring/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/libexec/authoring/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/libexec/authoring/node_modules/yaml/dist/parse/cst.d.ts +109 -0
- package/libexec/authoring/node_modules/yaml/dist/parse/cst.js +112 -0
- package/libexec/authoring/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/libexec/authoring/node_modules/yaml/dist/parse/lexer.js +723 -0
- package/libexec/authoring/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/libexec/authoring/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/libexec/authoring/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/libexec/authoring/node_modules/yaml/dist/parse/parser.js +980 -0
- package/libexec/authoring/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/libexec/authoring/node_modules/yaml/dist/public-api.js +107 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/tags.js +99 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/types.d.ts +92 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/libexec/authoring/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/libexec/authoring/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/libexec/authoring/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/libexec/authoring/node_modules/yaml/dist/test-events.js +134 -0
- package/libexec/authoring/node_modules/yaml/dist/util.d.ts +16 -0
- package/libexec/authoring/node_modules/yaml/dist/util.js +28 -0
- package/libexec/authoring/node_modules/yaml/dist/visit.d.ts +102 -0
- package/libexec/authoring/node_modules/yaml/dist/visit.js +236 -0
- package/libexec/authoring/node_modules/yaml/package.json +97 -0
- package/libexec/authoring/node_modules/yaml/util.js +2 -0
- package/libexec/authoring/node_modules/yargs/LICENSE +21 -0
- package/libexec/authoring/node_modules/yargs/README.md +182 -0
- package/libexec/authoring/node_modules/yargs/browser.d.ts +5 -0
- package/libexec/authoring/node_modules/yargs/browser.mjs +7 -0
- package/libexec/authoring/node_modules/yargs/build/lib/argsert.js +62 -0
- package/libexec/authoring/node_modules/yargs/build/lib/command.js +479 -0
- package/libexec/authoring/node_modules/yargs/build/lib/completion-templates.js +66 -0
- package/libexec/authoring/node_modules/yargs/build/lib/completion.js +270 -0
- package/libexec/authoring/node_modules/yargs/build/lib/middleware.js +88 -0
- package/libexec/authoring/node_modules/yargs/build/lib/parse-command.js +32 -0
- package/libexec/authoring/node_modules/yargs/build/lib/typings/common-types.js +9 -0
- package/libexec/authoring/node_modules/yargs/build/lib/typings/yargs-parser-types.js +1 -0
- package/libexec/authoring/node_modules/yargs/build/lib/usage.js +584 -0
- package/libexec/authoring/node_modules/yargs/build/lib/utils/apply-extends.js +61 -0
- package/libexec/authoring/node_modules/yargs/build/lib/utils/is-promise.js +5 -0
- package/libexec/authoring/node_modules/yargs/build/lib/utils/levenshtein.js +34 -0
- package/libexec/authoring/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
- package/libexec/authoring/node_modules/yargs/build/lib/utils/obj-filter.js +10 -0
- package/libexec/authoring/node_modules/yargs/build/lib/utils/process-argv.js +17 -0
- package/libexec/authoring/node_modules/yargs/build/lib/utils/set-blocking.js +12 -0
- package/libexec/authoring/node_modules/yargs/build/lib/utils/which-module.js +10 -0
- package/libexec/authoring/node_modules/yargs/build/lib/validation.js +305 -0
- package/libexec/authoring/node_modules/yargs/build/lib/yargs-factory.js +1517 -0
- package/libexec/authoring/node_modules/yargs/build/lib/yerror.js +9 -0
- package/libexec/authoring/node_modules/yargs/helpers/helpers.mjs +10 -0
- package/libexec/authoring/node_modules/yargs/helpers/package.json +3 -0
- package/libexec/authoring/node_modules/yargs/index.mjs +10 -0
- package/libexec/authoring/node_modules/yargs/lib/platform-shims/browser.mjs +99 -0
- package/libexec/authoring/node_modules/yargs/lib/platform-shims/esm.mjs +67 -0
- package/libexec/authoring/node_modules/yargs/locales/be.json +46 -0
- package/libexec/authoring/node_modules/yargs/locales/cs.json +51 -0
- package/libexec/authoring/node_modules/yargs/locales/de.json +46 -0
- package/libexec/authoring/node_modules/yargs/locales/en.json +55 -0
- package/libexec/authoring/node_modules/yargs/locales/es.json +46 -0
- package/libexec/authoring/node_modules/yargs/locales/fi.json +49 -0
- package/libexec/authoring/node_modules/yargs/locales/fr.json +53 -0
- package/libexec/authoring/node_modules/yargs/locales/he.json +55 -0
- package/libexec/authoring/node_modules/yargs/locales/hi.json +49 -0
- package/libexec/authoring/node_modules/yargs/locales/hu.json +46 -0
- package/libexec/authoring/node_modules/yargs/locales/id.json +50 -0
- package/libexec/authoring/node_modules/yargs/locales/it.json +46 -0
- package/libexec/authoring/node_modules/yargs/locales/ja.json +51 -0
- package/libexec/authoring/node_modules/yargs/locales/ka.json +55 -0
- package/libexec/authoring/node_modules/yargs/locales/ko.json +49 -0
- package/libexec/authoring/node_modules/yargs/locales/nb.json +44 -0
- package/libexec/authoring/node_modules/yargs/locales/nl.json +49 -0
- package/libexec/authoring/node_modules/yargs/locales/nn.json +44 -0
- package/libexec/authoring/node_modules/yargs/locales/pirate.json +13 -0
- package/libexec/authoring/node_modules/yargs/locales/pl.json +49 -0
- package/libexec/authoring/node_modules/yargs/locales/pt.json +45 -0
- package/libexec/authoring/node_modules/yargs/locales/pt_BR.json +48 -0
- package/libexec/authoring/node_modules/yargs/locales/ru.json +51 -0
- package/libexec/authoring/node_modules/yargs/locales/th.json +46 -0
- package/libexec/authoring/node_modules/yargs/locales/tr.json +48 -0
- package/libexec/authoring/node_modules/yargs/locales/uk_UA.json +51 -0
- package/libexec/authoring/node_modules/yargs/locales/uz.json +52 -0
- package/libexec/authoring/node_modules/yargs/locales/zh_CN.json +48 -0
- package/libexec/authoring/node_modules/yargs/locales/zh_TW.json +51 -0
- package/libexec/authoring/node_modules/yargs/package.json +103 -0
- package/libexec/authoring/node_modules/yargs-parser/CHANGELOG.md +319 -0
- package/libexec/authoring/node_modules/yargs-parser/LICENSE.txt +14 -0
- package/libexec/authoring/node_modules/yargs-parser/README.md +518 -0
- package/libexec/authoring/node_modules/yargs-parser/browser.js +29 -0
- package/libexec/authoring/node_modules/yargs-parser/build/lib/index.js +64 -0
- package/libexec/authoring/node_modules/yargs-parser/build/lib/string-utils.js +65 -0
- package/libexec/authoring/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +40 -0
- package/libexec/authoring/node_modules/yargs-parser/build/lib/yargs-parser-types.js +12 -0
- package/libexec/authoring/node_modules/yargs-parser/build/lib/yargs-parser.js +1046 -0
- package/libexec/authoring/node_modules/yargs-parser/package.json +78 -0
- package/libexec/evaluator/project-authoring-1.schema.json +156 -14
- package/libexec/evaluator/project-evaluator-sdk.bundle.js +329 -79
- package/libexec/evaluator/project-evaluator-worker.js +62 -57
- package/libexec/flow.LICENSE +202 -0
- package/libexec/http-request-worker.js +1493 -0
- package/libexec/installed-cli.js +31000 -12447
- package/libexec/linux-rootless-supervisor.js +189 -18
- package/libexec/markdown-runtime.js +16892 -0
- package/libexec/preparation/bun-native-preparation-worker.js +1092 -77
- package/package.json +30 -21
- /package/{LICENSE → LICENSES/MPL-2.0.txt} +0 -0
|
@@ -0,0 +1,4580 @@
|
|
|
1
|
+
!function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
function normalizeOptions(options) {
|
|
4
|
+
return void 0 === options ? Object.create(null) : requireObjectLike(options);
|
|
5
|
+
}
|
|
6
|
+
function toFiniteNumber(arg, entityName = "number") {
|
|
7
|
+
if ("bigint" == typeof arg) {
|
|
8
|
+
throw new TypeError((entityName => `Cannot convert bigint to ${entityName}`)(entityName));
|
|
9
|
+
}
|
|
10
|
+
if (arg = Number(arg), !Number.isFinite(arg)) {
|
|
11
|
+
throw new RangeError(((entityName, num) => `Non-finite ${entityName}: ${num}`)(entityName, arg));
|
|
12
|
+
}
|
|
13
|
+
return arg;
|
|
14
|
+
}
|
|
15
|
+
function toIntegerWithTrunc(arg, entityName) {
|
|
16
|
+
return Math.trunc(toFiniteNumber(arg, entityName)) || 0;
|
|
17
|
+
}
|
|
18
|
+
function toPositiveIntegerWithTruncation(arg, entityName) {
|
|
19
|
+
return ((num, entityName = "number") => {
|
|
20
|
+
if (num <= 0) {
|
|
21
|
+
throw new RangeError(((entityName, num) => `Non-positive ${entityName}: ${num}`)(entityName, num));
|
|
22
|
+
}
|
|
23
|
+
return num;
|
|
24
|
+
})(toIntegerWithTrunc(arg, entityName), entityName);
|
|
25
|
+
}
|
|
26
|
+
function isObjectLike$1(arg) {
|
|
27
|
+
return null !== arg && ("object" == typeof arg || "function" == typeof arg);
|
|
28
|
+
}
|
|
29
|
+
function requireObjectLike(arg) {
|
|
30
|
+
if (!isObjectLike$1(arg)) {
|
|
31
|
+
throw new TypeError("Invalid object");
|
|
32
|
+
}
|
|
33
|
+
return arg;
|
|
34
|
+
}
|
|
35
|
+
function normalizeOptionsOrString(options, optionName) {
|
|
36
|
+
return "string" == typeof options ? ((optionName, optionVal) => {
|
|
37
|
+
const res = Object.create(null);
|
|
38
|
+
return res[optionName] = optionVal, res;
|
|
39
|
+
})(optionName, options) : requireObjectLike(options);
|
|
40
|
+
}
|
|
41
|
+
function coerceRoundingIncInteger(options) {
|
|
42
|
+
const roundingInc = options.roundingIncrement;
|
|
43
|
+
return void 0 === roundingInc ? 1 : toIntegerWithTrunc(roundingInc, "roundingIncrement");
|
|
44
|
+
}
|
|
45
|
+
function coerceFractionalSecondDigits(options) {
|
|
46
|
+
let subsecDigits = options.fractionalSecondDigits;
|
|
47
|
+
if (void 0 !== subsecDigits) {
|
|
48
|
+
if ("number" != typeof subsecDigits) {
|
|
49
|
+
if ("auto" === toString(subsecDigits)) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
throwRangeError(invalidEntity("fractionalSecondDigits", subsecDigits));
|
|
53
|
+
}
|
|
54
|
+
subsecDigits = clampEntity("fractionalSecondDigits", Math.floor(subsecDigits), 0, 9, 1);
|
|
55
|
+
}
|
|
56
|
+
return subsecDigits;
|
|
57
|
+
}
|
|
58
|
+
function coerceUnitOption(optionName, options, minUnit = 0, ensureDefined) {
|
|
59
|
+
let unitStr = options[optionName];
|
|
60
|
+
if (void 0 === unitStr) {
|
|
61
|
+
return ensureDefined ? minUnit : void 0;
|
|
62
|
+
}
|
|
63
|
+
if (unitStr = toString(unitStr), "auto" === unitStr) {
|
|
64
|
+
return ensureDefined ? minUnit : null;
|
|
65
|
+
}
|
|
66
|
+
let unit = unitNameMap[unitStr];
|
|
67
|
+
return void 0 === unit && (unit = durationFieldNamesAsc.indexOf(unitStr)), unit < 0 && throwRangeError(invalidChoice(optionName, unitStr, unitNameMap)),
|
|
68
|
+
unit;
|
|
69
|
+
}
|
|
70
|
+
function coerceChoiceOption(optionName, enumNameMap, options, defaultChoice = 0) {
|
|
71
|
+
const enumArg = options[optionName];
|
|
72
|
+
if (void 0 === enumArg) {
|
|
73
|
+
return defaultChoice;
|
|
74
|
+
}
|
|
75
|
+
const enumStr = toString(enumArg);
|
|
76
|
+
const enumNum = enumNameMap[enumStr];
|
|
77
|
+
return void 0 === enumNum && throwRangeError(invalidChoice(optionName, enumStr, enumNameMap)),
|
|
78
|
+
enumNum;
|
|
79
|
+
}
|
|
80
|
+
function validateRoundingInc(roundingInc, smallestUnit, allowManyLargeUnits, solarMode) {
|
|
81
|
+
const upUnitNano = solarMode ? nanoInUtcDay : unitNanoMap[smallestUnit + 1];
|
|
82
|
+
if (upUnitNano) {
|
|
83
|
+
const unitNano = unitNanoMap[smallestUnit];
|
|
84
|
+
upUnitNano % ((roundingInc = clampEntity("roundingIncrement", roundingInc, 1, upUnitNano / unitNano - (solarMode ? 0 : 1), 1)) * unitNano) && throwRangeError(invalidEntity("roundingIncrement", roundingInc));
|
|
85
|
+
} else {
|
|
86
|
+
roundingInc = clampEntity("roundingIncrement", roundingInc, 1, allowManyLargeUnits ? 10 ** 9 : 1, 1);
|
|
87
|
+
}
|
|
88
|
+
return roundingInc;
|
|
89
|
+
}
|
|
90
|
+
function validateUnitRange(optionName, unit, minUnit, maxUnit) {
|
|
91
|
+
return null != unit && clampEntity(optionName, unit, minUnit, maxUnit, 1, unitNamesAsc),
|
|
92
|
+
unit;
|
|
93
|
+
}
|
|
94
|
+
function checkLargestSmallestUnit(largestUnit, smallestUnit) {
|
|
95
|
+
smallestUnit > largestUnit && throwRangeError(flippedSmallestLargestUnit);
|
|
96
|
+
}
|
|
97
|
+
function refineDiffOptions(roundingModeInvert, options, defaultLargestUnit, maxUnit = 9, minUnit = 0, defaultRoundingMode = 4) {
|
|
98
|
+
options = normalizeOptions(options);
|
|
99
|
+
let largestUnit = coerceLargestUnit(options, minUnit);
|
|
100
|
+
let roundingInc = coerceRoundingIncInteger(options);
|
|
101
|
+
let roundingMode = coerceRoundingMode(options, defaultRoundingMode);
|
|
102
|
+
let smallestUnit = coerceSmallestUnit(options, minUnit, 1);
|
|
103
|
+
return largestUnit = validateUnitRange("largestUnit", largestUnit, minUnit, maxUnit),
|
|
104
|
+
smallestUnit = validateUnitRange(smallestUnitStr, smallestUnit, minUnit, maxUnit),
|
|
105
|
+
null == largestUnit ? largestUnit = Math.max(defaultLargestUnit, smallestUnit) : checkLargestSmallestUnit(largestUnit, smallestUnit),
|
|
106
|
+
roundingInc = validateRoundingInc(roundingInc, smallestUnit, 1), roundingModeInvert && (roundingMode = (roundingMode => roundingMode < 4 ? (roundingMode + 2) % 4 : roundingMode)(roundingMode)),
|
|
107
|
+
[ largestUnit, smallestUnit, roundingInc, roundingMode ];
|
|
108
|
+
}
|
|
109
|
+
function refineRoundingOptions(options, maxUnit = 6, solarMode) {
|
|
110
|
+
let roundingInc = coerceRoundingIncInteger(options = normalizeOptionsOrString(options, smallestUnitStr));
|
|
111
|
+
const roundingMode = coerceRoundingMode(options, 7);
|
|
112
|
+
let smallestUnit = coerceSmallestUnit(options);
|
|
113
|
+
return smallestUnit = requirePropDefined(smallestUnitStr, smallestUnit), smallestUnit = validateUnitRange(smallestUnitStr, smallestUnit, 0, maxUnit),
|
|
114
|
+
roundingInc = validateRoundingInc(roundingInc, smallestUnit, void 0, solarMode),
|
|
115
|
+
[ smallestUnit, roundingInc, roundingMode ];
|
|
116
|
+
}
|
|
117
|
+
function refineOverflowOptions(options) {
|
|
118
|
+
return void 0 === options ? 0 : coerceOverflow(requireObjectLike(options));
|
|
119
|
+
}
|
|
120
|
+
function refineZonedFieldOptions(options, defaultOffsetDisambig = 0) {
|
|
121
|
+
options = normalizeOptions(options);
|
|
122
|
+
const epochDisambig = coerceEpochDisambig(options);
|
|
123
|
+
const offsetDisambig = coerceOffsetDisambig(options, defaultOffsetDisambig);
|
|
124
|
+
return [ coerceOverflow(options), offsetDisambig, epochDisambig ];
|
|
125
|
+
}
|
|
126
|
+
function refineTimeDisplayTuple(options, maxSmallestUnit = 4) {
|
|
127
|
+
const subsecDigits = coerceFractionalSecondDigits(options);
|
|
128
|
+
const roundingMode = coerceRoundingMode(options, 4);
|
|
129
|
+
const smallestUnit = coerceSmallestUnit(options);
|
|
130
|
+
return [ roundingMode, ...resolveSmallestUnitAndSubsecDigits(validateUnitRange(smallestUnitStr, smallestUnit, 0, maxSmallestUnit), subsecDigits) ];
|
|
131
|
+
}
|
|
132
|
+
function refineDateDisplayOptions(options) {
|
|
133
|
+
return coerceCalendarDisplay(normalizeOptions(options));
|
|
134
|
+
}
|
|
135
|
+
function refineTimeDisplayOptions(options, maxSmallestUnit) {
|
|
136
|
+
return refineTimeDisplayTuple(normalizeOptions(options), maxSmallestUnit);
|
|
137
|
+
}
|
|
138
|
+
function resolveSmallestUnitAndSubsecDigits(smallestUnit, subsecDigits) {
|
|
139
|
+
return null != smallestUnit ? [ unitNanoMap[smallestUnit], smallestUnit < 4 ? 9 - 3 * smallestUnit : -1 ] : [ void 0 === subsecDigits ? 1 : 10 ** (9 - subsecDigits), subsecDigits ];
|
|
140
|
+
}
|
|
141
|
+
function throwRangeError(message) {
|
|
142
|
+
throw new RangeError(message);
|
|
143
|
+
}
|
|
144
|
+
function throwTypeError(message) {
|
|
145
|
+
throw new TypeError(message);
|
|
146
|
+
}
|
|
147
|
+
function clampProp(props, propName, min, max, overflow) {
|
|
148
|
+
return clampEntity(propName, ((props, propName) => {
|
|
149
|
+
const propVal = props[propName];
|
|
150
|
+
return void 0 === propVal && throwTypeError(missingField(propName)), propVal;
|
|
151
|
+
})(props, propName), min, max, overflow);
|
|
152
|
+
}
|
|
153
|
+
function clampEntity(entityName, num, min, max, overflow, choices) {
|
|
154
|
+
const clamped = constrainToRange(num, min, max);
|
|
155
|
+
return overflow && num !== clamped && throwRangeError(((entityName, val, min, max, choices) => choices ? numberOutOfRange(entityName, choices[val], choices[min], choices[max]) : numberOutOfRange(entityName, val, min, max))(entityName, num, min, max, choices)),
|
|
156
|
+
clamped;
|
|
157
|
+
}
|
|
158
|
+
function memoize(generator, MapClass = Map) {
|
|
159
|
+
const map = new MapClass;
|
|
160
|
+
return (key, ...otherArgs) => {
|
|
161
|
+
if (map.has(key)) {
|
|
162
|
+
return map.get(key);
|
|
163
|
+
}
|
|
164
|
+
const val = generator(key, ...otherArgs);
|
|
165
|
+
return map.set(key, val), val;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
function mapProps(transformer, props) {
|
|
169
|
+
const res = {};
|
|
170
|
+
for (const propName in props) {
|
|
171
|
+
res[propName] = transformer(props[propName], propName);
|
|
172
|
+
}
|
|
173
|
+
return res;
|
|
174
|
+
}
|
|
175
|
+
function zipPropsConst(propNames, propVal) {
|
|
176
|
+
const res = {};
|
|
177
|
+
for (const propName of propNames) {
|
|
178
|
+
res[propName] = propVal;
|
|
179
|
+
}
|
|
180
|
+
return res;
|
|
181
|
+
}
|
|
182
|
+
function createPropGetters(propNames) {
|
|
183
|
+
const getters = {};
|
|
184
|
+
for (const propName of propNames) {
|
|
185
|
+
getters[propName] = slots => slots[propName];
|
|
186
|
+
}
|
|
187
|
+
return getters;
|
|
188
|
+
}
|
|
189
|
+
function pluckProps(propNames, props, dest = Object.create(null)) {
|
|
190
|
+
for (const propName of propNames) {
|
|
191
|
+
dest[propName] = props[propName];
|
|
192
|
+
}
|
|
193
|
+
return dest;
|
|
194
|
+
}
|
|
195
|
+
function allPropsEqual(propNames, props0, props1) {
|
|
196
|
+
for (const propName of propNames) {
|
|
197
|
+
if (props0[propName] !== props1[propName]) {
|
|
198
|
+
return 0;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return 1;
|
|
202
|
+
}
|
|
203
|
+
function zeroOutProps(propNames, clearUntilI, props) {
|
|
204
|
+
const copy = {
|
|
205
|
+
...props
|
|
206
|
+
};
|
|
207
|
+
for (let i = 0; i < clearUntilI; i++) {
|
|
208
|
+
copy[propNames[i]] = 0;
|
|
209
|
+
}
|
|
210
|
+
return copy;
|
|
211
|
+
}
|
|
212
|
+
function bindArgs(f, ...boundArgs) {
|
|
213
|
+
return (...dynamicArgs) => f(...boundArgs, ...dynamicArgs);
|
|
214
|
+
}
|
|
215
|
+
function identity(arg) {
|
|
216
|
+
return arg;
|
|
217
|
+
}
|
|
218
|
+
function noop() {}
|
|
219
|
+
function capitalize(s) {
|
|
220
|
+
return s[0].toUpperCase() + s.substring(1);
|
|
221
|
+
}
|
|
222
|
+
function sortStrings(...strss) {
|
|
223
|
+
return [].concat(...strss).sort();
|
|
224
|
+
}
|
|
225
|
+
function createRegExp(meat) {
|
|
226
|
+
return new RegExp(`^${meat}$`, "i");
|
|
227
|
+
}
|
|
228
|
+
function parseSubsecNano(fracStr) {
|
|
229
|
+
return parseInt(fracStr.padEnd(9, "0"));
|
|
230
|
+
}
|
|
231
|
+
function parseSign(s) {
|
|
232
|
+
return s && "+" !== s ? -1 : 1;
|
|
233
|
+
}
|
|
234
|
+
function parseInt0(s) {
|
|
235
|
+
return void 0 === s ? 0 : parseInt(s);
|
|
236
|
+
}
|
|
237
|
+
function padNumber(digits, num) {
|
|
238
|
+
return String(num).padStart(digits, "0");
|
|
239
|
+
}
|
|
240
|
+
function compareNumbers(a, b) {
|
|
241
|
+
return Math.sign(a - b);
|
|
242
|
+
}
|
|
243
|
+
function compareBigInts(a, b) {
|
|
244
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
245
|
+
}
|
|
246
|
+
function divFloorBigInt(num, denom) {
|
|
247
|
+
const whole = num / denom;
|
|
248
|
+
return num % denom < 0n ? whole - 1n : whole;
|
|
249
|
+
}
|
|
250
|
+
function divModFloorBigInt(num, divisor) {
|
|
251
|
+
const quotient = divFloorBigInt(num, divisor);
|
|
252
|
+
return [ quotient, num - quotient * divisor ];
|
|
253
|
+
}
|
|
254
|
+
function divModFloor(num, divisor) {
|
|
255
|
+
return [ Math.floor(num / divisor), modFloor(num, divisor) ];
|
|
256
|
+
}
|
|
257
|
+
function modFloor(num, divisor) {
|
|
258
|
+
return (num % divisor + divisor) % divisor;
|
|
259
|
+
}
|
|
260
|
+
function divTrunc(num, divisor) {
|
|
261
|
+
return Math.trunc(num / divisor) || 0;
|
|
262
|
+
}
|
|
263
|
+
function modTrunc(num, divisor) {
|
|
264
|
+
return num % divisor || 0;
|
|
265
|
+
}
|
|
266
|
+
function fabricateNearHalfFraction(halfCompare, sign = 1) {
|
|
267
|
+
return sign * (.5 + halfCompare / 5);
|
|
268
|
+
}
|
|
269
|
+
function hasHalf(num) {
|
|
270
|
+
return .5 === Math.abs(num % 1);
|
|
271
|
+
}
|
|
272
|
+
function normalizeEraName(era) {
|
|
273
|
+
const normalized = era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
274
|
+
return "bc" === normalized || "b" === normalized ? "bce" : "ad" === normalized || "a" === normalized ? "ce" : normalized;
|
|
275
|
+
}
|
|
276
|
+
function getCalendarSlotId(calendar) {
|
|
277
|
+
return calendar === isoCalendarImpl ? "iso8601" : 0 === calendar ? "gregory" : calendar.id;
|
|
278
|
+
}
|
|
279
|
+
function parseMonthCode(monthCode) {
|
|
280
|
+
const m = monthCodeRegExp.exec(monthCode);
|
|
281
|
+
return m || throwRangeError((monthCode => `Invalid monthCode: ${monthCode}`)(monthCode)),
|
|
282
|
+
[ parseInt(m[1]), Boolean(m[2]) ];
|
|
283
|
+
}
|
|
284
|
+
function formatMonthCode(monthCodeNumber, isLeapMonth) {
|
|
285
|
+
return "M" + padNumber2(monthCodeNumber) + (isLeapMonth ? "L" : "");
|
|
286
|
+
}
|
|
287
|
+
function monthCodeNumberToMonth(monthCodeNumber, isLeapMonth, leapMonth) {
|
|
288
|
+
return monthCodeNumber + (isLeapMonth || leapMonth && monthCodeNumber >= leapMonth ? 1 : 0);
|
|
289
|
+
}
|
|
290
|
+
function monthToMonthCodeNumber(month, leapMonth) {
|
|
291
|
+
return month - (leapMonth && month >= leapMonth ? 1 : 0);
|
|
292
|
+
}
|
|
293
|
+
function divideBigNanoToExactNumber(bigNano, divisorNano) {
|
|
294
|
+
const days = Number(bigNano / bigNanoInUtcDay);
|
|
295
|
+
const timeNano = Number(bigNano % bigNanoInUtcDay);
|
|
296
|
+
return days * (nanoInUtcDay / divisorNano) + (Math.trunc(timeNano / divisorNano) + timeNano % divisorNano / divisorNano);
|
|
297
|
+
}
|
|
298
|
+
function validateTimeFields(timeFields) {
|
|
299
|
+
return constrainTimeFields(timeFields, 1), timeFields;
|
|
300
|
+
}
|
|
301
|
+
function constrainTimeFields(timeFields, overflow) {
|
|
302
|
+
const constrainedFields = {};
|
|
303
|
+
for (const fieldName of timeFieldNamesAsc) {
|
|
304
|
+
constrainedFields[fieldName] = clampEntity(fieldName, timeFields[fieldName], 0, maxValues[fieldName] || 999, overflow);
|
|
305
|
+
}
|
|
306
|
+
return constrainedFields;
|
|
307
|
+
}
|
|
308
|
+
function timeFieldsToNano(timeFields) {
|
|
309
|
+
return timeFieldsToSec(timeFields) * nanoInSec + timeFieldsToSubsecNano(timeFields);
|
|
310
|
+
}
|
|
311
|
+
function timeFieldsToMilli(timeFields) {
|
|
312
|
+
return 1e3 * timeFieldsToSec(timeFields) + timeFields.millisecond;
|
|
313
|
+
}
|
|
314
|
+
function timeFieldsToSec(timeFields) {
|
|
315
|
+
return 3600 * timeFields.hour + 60 * timeFields.minute + timeFields.second;
|
|
316
|
+
}
|
|
317
|
+
function timeFieldsToSubsecNano(timeFields) {
|
|
318
|
+
return timeFields.millisecond * nanoInMilli + 1e3 * timeFields.microsecond + timeFields.nanosecond;
|
|
319
|
+
}
|
|
320
|
+
function nanoToTimeAndDay(nano) {
|
|
321
|
+
const [dayDelta, timeNano] = divModFloor(nano, nanoInUtcDay);
|
|
322
|
+
return [ nanoToTimeFields(timeNano), dayDelta ];
|
|
323
|
+
}
|
|
324
|
+
function nanoToTimeFields(timeNano) {
|
|
325
|
+
const [timeMilli, nanoAfterMilli] = divModFloor(timeNano, nanoInMilli);
|
|
326
|
+
const [microsecond, nanosecond] = divModFloor(nanoAfterMilli, 1e3);
|
|
327
|
+
return milliToTimeFields(timeMilli, microsecond, nanosecond);
|
|
328
|
+
}
|
|
329
|
+
function milliToTimeFields(timeMilli, microsecond = 0, nanosecond = 0) {
|
|
330
|
+
const [hour, milliAfterHour] = divModFloor(timeMilli, 36e5);
|
|
331
|
+
const [minute, milliAfterMinute] = divModFloor(milliAfterHour, 6e4);
|
|
332
|
+
const [second, millisecond] = divModFloor(milliAfterMinute, 1e3);
|
|
333
|
+
return {
|
|
334
|
+
hour: hour,
|
|
335
|
+
minute: minute,
|
|
336
|
+
second: second,
|
|
337
|
+
millisecond: millisecond,
|
|
338
|
+
microsecond: microsecond,
|
|
339
|
+
nanosecond: nanosecond
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
function epochNanoToSecMod(epochNano) {
|
|
343
|
+
const [epochSec, nano] = divModFloorBigInt(epochNano, bigNanoInSec);
|
|
344
|
+
return [ Number(epochSec), Number(nano) ];
|
|
345
|
+
}
|
|
346
|
+
function epochNanoToMilli(epochNano) {
|
|
347
|
+
return Number(divFloorBigInt(epochNano, bigNanoInMilli));
|
|
348
|
+
}
|
|
349
|
+
function isoDateTimeToEpochNano(isoDateTime) {
|
|
350
|
+
return isoDateToEpochNano(isoDateTime) + BigInt(timeFieldsToNano(isoDateTime));
|
|
351
|
+
}
|
|
352
|
+
function isoDateTimeToEpochMilli(isoDateTime) {
|
|
353
|
+
return isoDateToEpochMilli(isoDateTime) + timeFieldsToMilli(isoDateTime);
|
|
354
|
+
}
|
|
355
|
+
function isoDateToEpochNano(isoDate) {
|
|
356
|
+
return BigInt(isoDateToEpochDays(isoDate)) * bigNanoInUtcDay;
|
|
357
|
+
}
|
|
358
|
+
function isoDateToEpochMilli(isoDate) {
|
|
359
|
+
return 864e5 * isoDateToEpochDays(isoDate);
|
|
360
|
+
}
|
|
361
|
+
function isoDateToEpochDays(isoDate) {
|
|
362
|
+
return isoPartsToEpochDays(isoDate.year, isoDate.month, isoDate.day);
|
|
363
|
+
}
|
|
364
|
+
function isoPartsToEpochDays(isoYear, isoMonth = 1, isoDay = 1) {
|
|
365
|
+
const monthIndex = isoMonth - 1;
|
|
366
|
+
return isoYear += Math.floor(monthIndex / 12), isoMonth = modFloor(monthIndex, 12),
|
|
367
|
+
Date.UTC(isoYear % 400 - 400, isoMonth, 0) / 864e5 + 146097 * (divTrunc(isoYear, 400) + 1) + isoDay;
|
|
368
|
+
}
|
|
369
|
+
function epochNanoToIsoDateTime(epochNano) {
|
|
370
|
+
const [epochDays, nanoAfterDay] = divModFloorBigInt(epochNano, bigNanoInUtcDay);
|
|
371
|
+
return {
|
|
372
|
+
...epochDaysToIsoDate(Number(epochDays)),
|
|
373
|
+
...nanoToTimeFields(Number(nanoAfterDay))
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
function epochDaysToIsoDate(epochDays) {
|
|
377
|
+
const legacyDate = new Date(864e5 * modFloor(epochDays, 146097));
|
|
378
|
+
return {
|
|
379
|
+
year: legacyDate.getUTCFullYear() + 400 * Math.floor(epochDays / 146097),
|
|
380
|
+
month: legacyDate.getUTCMonth() + 1,
|
|
381
|
+
day: legacyDate.getUTCDate()
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
function diffEpochMilliDays(epochMilli0, epochMilli1) {
|
|
385
|
+
return Math.trunc((epochMilli1 - epochMilli0) / 864e5);
|
|
386
|
+
}
|
|
387
|
+
function computeIsoMonthCodeParts(month) {
|
|
388
|
+
return [ month, 0 ];
|
|
389
|
+
}
|
|
390
|
+
function computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, isLeapMonth) {
|
|
391
|
+
if (!isLeapMonth) {
|
|
392
|
+
return {
|
|
393
|
+
year: 1972,
|
|
394
|
+
month: monthCodeNumber
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
function computeIsoFieldsFromParts(year, month, day) {
|
|
399
|
+
return {
|
|
400
|
+
year: year,
|
|
401
|
+
month: month,
|
|
402
|
+
day: day
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
function computeIsoDaysInMonth(year, month) {
|
|
406
|
+
switch (month) {
|
|
407
|
+
case 2:
|
|
408
|
+
return computeIsoInLeapYear(year) ? 29 : 28;
|
|
409
|
+
|
|
410
|
+
case 4:
|
|
411
|
+
case 6:
|
|
412
|
+
case 9:
|
|
413
|
+
case 11:
|
|
414
|
+
return 30;
|
|
415
|
+
}
|
|
416
|
+
return 31;
|
|
417
|
+
}
|
|
418
|
+
function computeIsoDaysInYear(year) {
|
|
419
|
+
return computeIsoInLeapYear(year) ? 366 : 365;
|
|
420
|
+
}
|
|
421
|
+
function computeIsoInLeapYear(year) {
|
|
422
|
+
return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0);
|
|
423
|
+
}
|
|
424
|
+
function addIsoMonths(year, month, monthDelta) {
|
|
425
|
+
return year += divTrunc(monthDelta, 12), (month += modTrunc(monthDelta, 12)) < 1 ? (year--,
|
|
426
|
+
month += 12) : month > 12 && (year++, month -= 12), {
|
|
427
|
+
year: year,
|
|
428
|
+
month: month
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
function diffIsoMonthSlots(year0, month0, year1, month1) {
|
|
432
|
+
return 12 * (year1 - year0) + month1 - month0;
|
|
433
|
+
}
|
|
434
|
+
function computeIsoDayOfWeek(isoDate) {
|
|
435
|
+
return modFloor(isoPartsToEpochDays(isoDate.year, isoDate.month, isoDate.day) + 4, 7) || 7;
|
|
436
|
+
}
|
|
437
|
+
function computeIsoDayOfYear(isoDate) {
|
|
438
|
+
return isoPartsToEpochDays(isoDate.year, isoDate.month, isoDate.day) - isoPartsToEpochDays(isoDate.year) + 1;
|
|
439
|
+
}
|
|
440
|
+
function computeIsoWeekFields(isoDate) {
|
|
441
|
+
let yearOfWeek = isoDate.year;
|
|
442
|
+
let weekOfYear = Math.floor((computeIsoDayOfYear(isoDate) - computeIsoDayOfWeek(isoDate) + 10) / 7);
|
|
443
|
+
let weeksInYear = computeIsoWeeksInYear(yearOfWeek);
|
|
444
|
+
return weekOfYear < 1 ? weekOfYear = weeksInYear = computeIsoWeeksInYear(--yearOfWeek) : weekOfYear > weeksInYear && (weekOfYear = 1,
|
|
445
|
+
weeksInYear = computeIsoWeeksInYear(++yearOfWeek)), {
|
|
446
|
+
weekOfYear: weekOfYear,
|
|
447
|
+
yearOfWeek: yearOfWeek,
|
|
448
|
+
De: weeksInYear
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
function computeIsoWeeksInYear(year) {
|
|
452
|
+
const y0DayOfWeek = computeIsoDayOfWeek({
|
|
453
|
+
year: year,
|
|
454
|
+
month: 1,
|
|
455
|
+
day: 1
|
|
456
|
+
});
|
|
457
|
+
return 4 === y0DayOfWeek || 3 === y0DayOfWeek && computeIsoInLeapYear(year) ? 53 : 52;
|
|
458
|
+
}
|
|
459
|
+
function computeGregoryEraFields({year: year}) {
|
|
460
|
+
return year < 1 ? {
|
|
461
|
+
era: "bce",
|
|
462
|
+
eraYear: 1 - year
|
|
463
|
+
} : {
|
|
464
|
+
era: "ce",
|
|
465
|
+
eraYear: year
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
function validateIsoDateTimeFields(isoDateTime) {
|
|
469
|
+
return validateIsoDateFields(isoDateTime), validateTimeFields(isoDateTime);
|
|
470
|
+
}
|
|
471
|
+
function validateIsoDateFields(isoInternals) {
|
|
472
|
+
return constrainIsoDateFields(isoInternals, 1), isoInternals;
|
|
473
|
+
}
|
|
474
|
+
function isIsoDateFieldsValid(isoDate) {
|
|
475
|
+
return allPropsEqual(calendarDateFieldNamesAsc, isoDate, constrainIsoDateFields(isoDate));
|
|
476
|
+
}
|
|
477
|
+
function constrainIsoDateFields(isoDate, overflow) {
|
|
478
|
+
const {year: year} = isoDate;
|
|
479
|
+
const month = clampProp(isoDate, "month", 1, 12, overflow);
|
|
480
|
+
return {
|
|
481
|
+
year: year,
|
|
482
|
+
month: month,
|
|
483
|
+
day: clampProp(isoDate, "day", 1, computeIsoDaysInMonth(year, month), overflow)
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
function computeCalendarDateFields(calendar, isoDate) {
|
|
487
|
+
return calendar ? calendar.de(isoDate) : isoDate;
|
|
488
|
+
}
|
|
489
|
+
function computeCalendarMonthCodeParts(calendar, year, month) {
|
|
490
|
+
return calendar ? calendar.N(year, month) : computeIsoMonthCodeParts(month);
|
|
491
|
+
}
|
|
492
|
+
function computeCalendarEraFields(calendar, isoDate) {
|
|
493
|
+
return 0 === calendar ? computeGregoryEraFields(isoDate) : calendar && calendar.h?.(isoDate) || {};
|
|
494
|
+
}
|
|
495
|
+
function computeCalendarIsoFieldsFromParts(calendar, year, month, day) {
|
|
496
|
+
return calendar ? calendar.fe(year, month, day) : computeIsoFieldsFromParts(year, month, day);
|
|
497
|
+
}
|
|
498
|
+
function computeCalendarMonthsInYearForYear(calendar, year) {
|
|
499
|
+
return calendar ? calendar.j(year) : 12;
|
|
500
|
+
}
|
|
501
|
+
function computeCalendarDaysInMonthForYearMonth(calendar, year, month) {
|
|
502
|
+
return calendar ? calendar.o(year, month) : computeIsoDaysInMonth(year, month);
|
|
503
|
+
}
|
|
504
|
+
function computeCalendarMonthCode(calendar, isoDate) {
|
|
505
|
+
const {year: year, month: month} = computeCalendarDateFields(calendar, isoDate);
|
|
506
|
+
const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, year, month);
|
|
507
|
+
return formatMonthCode(monthCodeNumber, isLeapMonth);
|
|
508
|
+
}
|
|
509
|
+
function computeCalendarInLeapYear(calendar, isoDate) {
|
|
510
|
+
const {year: year} = computeCalendarDateFields(calendar, isoDate);
|
|
511
|
+
return calendar ? calendar.q(year) : computeIsoInLeapYear(year);
|
|
512
|
+
}
|
|
513
|
+
function computeCalendarMonthsInYear(calendar, isoDate) {
|
|
514
|
+
const {year: year} = computeCalendarDateFields(calendar, isoDate);
|
|
515
|
+
return computeCalendarMonthsInYearForYear(calendar, year);
|
|
516
|
+
}
|
|
517
|
+
function computeCalendarDaysInMonth(calendar, isoDate) {
|
|
518
|
+
const {year: year, month: month} = computeCalendarDateFields(calendar, isoDate);
|
|
519
|
+
return computeCalendarDaysInMonthForYearMonth(calendar, year, month);
|
|
520
|
+
}
|
|
521
|
+
function computeCalendarDaysInYear(calendar, isoDate) {
|
|
522
|
+
const {year: year} = computeCalendarDateFields(calendar, isoDate);
|
|
523
|
+
return calendar ? calendar.i(year) : computeIsoDaysInYear(year);
|
|
524
|
+
}
|
|
525
|
+
function requirePropDefined(optionName, optionVal) {
|
|
526
|
+
return null == optionVal && throwRangeError(missingField(optionName)), optionVal;
|
|
527
|
+
}
|
|
528
|
+
function requireType(typeName, arg, entityName = typeName) {
|
|
529
|
+
return typeof arg !== typeName && throwTypeError(invalidEntity(entityName, arg)),
|
|
530
|
+
arg;
|
|
531
|
+
}
|
|
532
|
+
function requireNumberIsInteger(num, entityName = "number") {
|
|
533
|
+
return Number.isInteger(num) || throwRangeError(((entityName, num) => `Non-integer ${entityName}: ${num}`)(entityName, num)),
|
|
534
|
+
num || 0;
|
|
535
|
+
}
|
|
536
|
+
function toString(arg) {
|
|
537
|
+
return "symbol" == typeof arg && throwTypeError("Cannot convert Symbol to string"),
|
|
538
|
+
String(arg);
|
|
539
|
+
}
|
|
540
|
+
function toPrimitiveWithStringHint(arg) {
|
|
541
|
+
if (!isObjectLike$1(arg)) {
|
|
542
|
+
return arg;
|
|
543
|
+
}
|
|
544
|
+
const exoticToPrimitive = arg[Symbol.toPrimitive];
|
|
545
|
+
if (null != exoticToPrimitive) {
|
|
546
|
+
"function" != typeof exoticToPrimitive && throwTypeError();
|
|
547
|
+
const primitive = Reflect.apply(exoticToPrimitive, arg, [ "string" ]);
|
|
548
|
+
return isObjectLike$1(primitive) && throwTypeError(), primitive;
|
|
549
|
+
}
|
|
550
|
+
return Date.prototype[Symbol.toPrimitive].call(arg, "string");
|
|
551
|
+
}
|
|
552
|
+
function toBigInt(bi) {
|
|
553
|
+
return "boolean" == typeof bi ? BigInt(bi ? 1 : 0) : "string" == typeof bi ? BigInt(bi) : ("bigint" != typeof bi && throwTypeError(`Invalid bigint: ${bi}`),
|
|
554
|
+
bi);
|
|
555
|
+
}
|
|
556
|
+
function toStrictInteger(arg, entityName) {
|
|
557
|
+
return requireNumberIsInteger(toFiniteNumber(arg, entityName), entityName);
|
|
558
|
+
}
|
|
559
|
+
function combineDateAndTime(isoDate, time) {
|
|
560
|
+
return pluckProps(calendarDateFieldNamesAsc, isoDate, pluckProps(timeFieldNamesAsc, time));
|
|
561
|
+
}
|
|
562
|
+
function checkIsoYearMonthInBounds(isoDate) {
|
|
563
|
+
const isoYearMonthIndex = 12 * isoDate.year + isoDate.month;
|
|
564
|
+
return (isoYearMonthIndex < isoYearMonthIndexMin || isoYearMonthIndex > 3309129) && throwRangeError(outOfBoundsDate),
|
|
565
|
+
isoDate;
|
|
566
|
+
}
|
|
567
|
+
function checkIsoDateInBounds(isoDate, allowPlainDateLowerEdge = 1) {
|
|
568
|
+
const epochNano = isoDateToEpochNano(isoDate);
|
|
569
|
+
return (epochNano < (allowPlainDateLowerEdge ? plainDateEpochNanoMin : epochNanoMin) || epochNano > epochNanoMax) && throwRangeError(outOfBoundsDate),
|
|
570
|
+
isoDate;
|
|
571
|
+
}
|
|
572
|
+
function checkIsoDateTimeInBounds(isoDateTime) {
|
|
573
|
+
return ((epochNano = isoDateTimeToEpochNano(isoDateTime)) <= plainDateEpochNanoMin || epochNano >= epochNanoMax + bigNanoInUtcDay) && throwRangeError(outOfBoundsDate),
|
|
574
|
+
isoDateTime;
|
|
575
|
+
var epochNano;
|
|
576
|
+
}
|
|
577
|
+
function checkEpochNanoInBounds(epochNano) {
|
|
578
|
+
return (epochNano < epochNanoMin || epochNano > epochNanoMax) && throwRangeError(outOfBoundsDate),
|
|
579
|
+
epochNano;
|
|
580
|
+
}
|
|
581
|
+
function isoDateTimeAndOffsetToEpochNano(isoDateTime, offsetNano) {
|
|
582
|
+
return checkEpochNanoInBounds(isoDateToEpochNano(isoDateTime) + BigInt(timeFieldsToNano(isoDateTime) - offsetNano));
|
|
583
|
+
}
|
|
584
|
+
function roundNumberToInc(num, roundingInc, roundingMode) {
|
|
585
|
+
return roundWithMode(num / roundingInc, roundingMode) * roundingInc;
|
|
586
|
+
}
|
|
587
|
+
function roundWithMode(num, roundingMode) {
|
|
588
|
+
return roundingModeFuncs[roundingMode](num);
|
|
589
|
+
}
|
|
590
|
+
function clampRelativeUnitValue(startValue, valueDelta, moveValueToEpochNano, epochNanoProgress) {
|
|
591
|
+
let unitWindow = computeRelativeUnitWindow(startValue, valueDelta, moveValueToEpochNano);
|
|
592
|
+
return ((epochNanoProgress, epochNano0, epochNano1, sign) => sign > 0 ? epochNano0 <= epochNanoProgress && epochNanoProgress <= epochNano1 : epochNano1 <= epochNanoProgress && epochNanoProgress <= epochNano0)(epochNanoProgress, unitWindow.I, unitWindow.O, Math.sign(valueDelta)) || (unitWindow = computeRelativeUnitWindow(startValue + valueDelta, valueDelta, moveValueToEpochNano)),
|
|
593
|
+
unitWindow;
|
|
594
|
+
}
|
|
595
|
+
function computeRelativeUnitWindow(startValue, valueDelta, moveValueToEpochNano) {
|
|
596
|
+
const endValue = startValue + valueDelta;
|
|
597
|
+
return {
|
|
598
|
+
ve: startValue,
|
|
599
|
+
qe: endValue,
|
|
600
|
+
I: moveValueToEpochNano(startValue),
|
|
601
|
+
O: moveValueToEpochNano(endValue)
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
function interpolateRelativeUnitWindow(unitWindow, fraction) {
|
|
605
|
+
return unitWindow.ve + fraction * (unitWindow.qe - unitWindow.ve);
|
|
606
|
+
}
|
|
607
|
+
function computeEpochNanoFrac(epochNanoProgress, epochNano0, epochNano1) {
|
|
608
|
+
const denomBig = epochNano1 - epochNano0;
|
|
609
|
+
const numeratorBig = epochNanoProgress - epochNano0;
|
|
610
|
+
if (!numeratorBig) {
|
|
611
|
+
return 0;
|
|
612
|
+
}
|
|
613
|
+
const absNumerator = numeratorBig < 0n ? -numeratorBig : numeratorBig;
|
|
614
|
+
const absDenom = denomBig < 0n ? -denomBig : denomBig;
|
|
615
|
+
const fracSign = compareBigInts(numeratorBig, 0n) === compareBigInts(denomBig, 0n) ? 1 : -1;
|
|
616
|
+
return compareBigInts(absNumerator, absDenom) <= 0 ? absNumerator === absDenom ? fracSign : fabricateNearHalfFraction(compareBigInts(2n * absNumerator, absDenom), fracSign) : Number(numeratorBig) / Number(denomBig);
|
|
617
|
+
}
|
|
618
|
+
function createEpochNanoSlots(epochNano) {
|
|
619
|
+
return {
|
|
620
|
+
epochNanoseconds: epochNano
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
function createZonedEpochNanoSlots(epochNano, timeZone, calendar) {
|
|
624
|
+
return {
|
|
625
|
+
calendar: calendar,
|
|
626
|
+
timeZone: timeZone,
|
|
627
|
+
epochNanoseconds: epochNano
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
function createDateTimeSlots(isoDateTime, calendar) {
|
|
631
|
+
return pluckProps(timeFieldNamesAsc, isoDateTime, createDateSlots(isoDateTime, calendar));
|
|
632
|
+
}
|
|
633
|
+
function createDateSlots(isoDate, calendar) {
|
|
634
|
+
return pluckProps(calendarDateFieldNamesAsc, isoDate, {
|
|
635
|
+
calendar: calendar
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
function createTimeSlots(time) {
|
|
639
|
+
return pluckProps(timeFieldNamesAsc, time);
|
|
640
|
+
}
|
|
641
|
+
function createDurationSlots(durationFields) {
|
|
642
|
+
return pluckProps(durationFieldNamesAsc, durationFields, {
|
|
643
|
+
sign: computeDurationSign(durationFields)
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
function roundRelativeDuration(durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, relativeOps, isZoned) {
|
|
647
|
+
if (0 === smallestUnit && 1 === roundingInc) {
|
|
648
|
+
return durationFields;
|
|
649
|
+
}
|
|
650
|
+
const sign = computeDurationSign(durationFields) || 1;
|
|
651
|
+
const nudgeFunc = isUniformUnit(smallestUnit, isZoned) ? isZoned && smallestUnit < 6 && largestUnit >= 6 ? nudgeZonedTimeDuration : nudgeDayTimeDuration : nudgeRelativeDuration;
|
|
652
|
+
let [roundedDurationFields, roundedEpochNano, grewBigUnit] = nudgeFunc(sign, durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, relativeOps);
|
|
653
|
+
return grewBigUnit && 7 !== smallestUnit && (roundedDurationFields = ((durationFields, endEpochNano, largestUnit, smallestUnit, sign, relativeOps) => {
|
|
654
|
+
for (let currentUnit = smallestUnit + 1; currentUnit <= largestUnit; currentUnit++) {
|
|
655
|
+
if (7 === currentUnit && 7 !== largestUnit) {
|
|
656
|
+
continue;
|
|
657
|
+
}
|
|
658
|
+
const baseDurationFields = clearDurationFields(currentUnit, durationFields);
|
|
659
|
+
baseDurationFields[durationFieldNamesAsc[currentUnit]] += sign;
|
|
660
|
+
const thresholdCompare = compareBigInts(endEpochNano, moveRelativeMarkerToEpochNano(relativeOps, baseDurationFields));
|
|
661
|
+
if (thresholdCompare && thresholdCompare !== sign) {
|
|
662
|
+
break;
|
|
663
|
+
}
|
|
664
|
+
durationFields = baseDurationFields;
|
|
665
|
+
}
|
|
666
|
+
return durationFields;
|
|
667
|
+
})(roundedDurationFields, roundedEpochNano, largestUnit, Math.max(6, smallestUnit), sign, relativeOps)),
|
|
668
|
+
roundedDurationFields;
|
|
669
|
+
}
|
|
670
|
+
function roundDayTimeDurationByInc(durationFields, nanoInc, roundingMode) {
|
|
671
|
+
const maxUnit = Math.min(getMaxDurationUnit(durationFields), 6);
|
|
672
|
+
return nanoToDurationDayTimeFields(roundBigNanoToInc(durationDayTimeToBigNano(durationFields), BigInt(nanoInc), roundingMode), maxUnit);
|
|
673
|
+
}
|
|
674
|
+
function roundDateTimeToInc(isoDateTime, nanoInc, roundingMode) {
|
|
675
|
+
const [roundedTimeFields, dayDelta] = roundTimeToInc(isoDateTime, nanoInc, roundingMode);
|
|
676
|
+
const roundedIsoDateTime = combineDateAndTime(moveDateByDays(isoDateTime, dayDelta), roundedTimeFields);
|
|
677
|
+
return checkIsoDateTimeInBounds(roundedIsoDateTime), roundedIsoDateTime;
|
|
678
|
+
}
|
|
679
|
+
function roundTimeToInc(timeFields, nanoInc, roundingMode) {
|
|
680
|
+
return nanoToTimeAndDay(roundNumberToInc(timeFieldsToNano(timeFields), nanoInc, roundingMode));
|
|
681
|
+
}
|
|
682
|
+
function nudgeRelativeDuration(sign, durationFields, endEpochNano, _largestUnit, smallestUnit, roundingInc, roundingMode, relativeOps) {
|
|
683
|
+
const smallestUnitFieldName = durationFieldNamesAsc[smallestUnit];
|
|
684
|
+
const baseDurationFields = clearDurationFields(smallestUnit, durationFields);
|
|
685
|
+
7 === smallestUnit && (durationFields = {
|
|
686
|
+
...durationFields,
|
|
687
|
+
weeks: durationFields.weeks + Math.trunc(durationFields.days / 7)
|
|
688
|
+
});
|
|
689
|
+
const truncedVal = divTrunc(durationFields[smallestUnitFieldName], roundingInc) * roundingInc;
|
|
690
|
+
const nudgeWindow = clampRelativeUnitValue(truncedVal, roundingInc * sign, value => (baseDurationFields[smallestUnitFieldName] = value,
|
|
691
|
+
moveRelativeMarkerToEpochNano(relativeOps, baseDurationFields)), endEpochNano);
|
|
692
|
+
const roundedVal = ((unitWindow, endEpochNano, roundingInc, roundingMode) => roundNumberToInc(interpolateRelativeUnitWindow(unitWindow, computeEpochNanoFrac(endEpochNano, unitWindow.I, unitWindow.O)), roundingInc, roundingMode))(nudgeWindow, endEpochNano, roundingInc, roundingMode);
|
|
693
|
+
return baseDurationFields[smallestUnitFieldName] = roundedVal, [ baseDurationFields, roundedVal === nudgeWindow.qe ? nudgeWindow.O : nudgeWindow.I, roundedVal !== truncedVal ];
|
|
694
|
+
}
|
|
695
|
+
function nudgeZonedTimeDuration(sign, durationFields, endEpochNano, _largestUnit, smallestUnit, roundingInc, roundingMode, relativeOps) {
|
|
696
|
+
const timeNano = Number(durationTimeToBigNano(durationFields));
|
|
697
|
+
const nanoInc = computeNanoInc(smallestUnit, roundingInc);
|
|
698
|
+
let roundedTimeNano = roundNumberToInc(timeNano, nanoInc, roundingMode);
|
|
699
|
+
const dateDurationFields = {
|
|
700
|
+
...durationFields,
|
|
701
|
+
...durationTimeFieldDefaults
|
|
702
|
+
};
|
|
703
|
+
const dayWindow = clampRelativeUnitValue(dateDurationFields.days, sign, days => (dateDurationFields.days = days,
|
|
704
|
+
moveRelativeMarkerToEpochNano(relativeOps, dateDurationFields)), endEpochNano);
|
|
705
|
+
const dayEpochNano0 = dayWindow.I;
|
|
706
|
+
const dayEpochNano1 = dayWindow.O;
|
|
707
|
+
const beyondDayNano = roundedTimeNano - Number(dayEpochNano1 - dayEpochNano0);
|
|
708
|
+
let dayDelta = 0;
|
|
709
|
+
beyondDayNano && Math.sign(beyondDayNano) !== sign ? endEpochNano = dayEpochNano0 + BigInt(roundedTimeNano) : (dayDelta += sign,
|
|
710
|
+
roundedTimeNano = roundNumberToInc(beyondDayNano, nanoInc, roundingMode), endEpochNano = dayEpochNano1 + BigInt(roundedTimeNano));
|
|
711
|
+
const durationTimeFields = nanoToDurationTimeFields(roundedTimeNano);
|
|
712
|
+
return [ {
|
|
713
|
+
...durationFields,
|
|
714
|
+
...durationTimeFields,
|
|
715
|
+
days: durationFields.days + dayDelta
|
|
716
|
+
}, endEpochNano, Boolean(dayDelta) ];
|
|
717
|
+
}
|
|
718
|
+
function nudgeDayTimeDuration(sign, durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode) {
|
|
719
|
+
const bigNano = durationDayTimeToBigNano(durationFields);
|
|
720
|
+
const roundedBigNano = roundBigNanoToInc(bigNano, computeBigNanoInc(smallestUnit, roundingInc), roundingMode);
|
|
721
|
+
const nanoDiff = roundedBigNano - bigNano;
|
|
722
|
+
const expandedBigUnit = Math.sign(Number(roundedBigNano / bigNanoInUtcDay) - Number(bigNano / bigNanoInUtcDay)) === sign;
|
|
723
|
+
const roundedDayTimeFields = nanoToDurationDayTimeFields(roundedBigNano, Math.min(largestUnit, 6));
|
|
724
|
+
return [ {
|
|
725
|
+
...durationFields,
|
|
726
|
+
...roundedDayTimeFields
|
|
727
|
+
}, endEpochNano + nanoDiff, expandedBigUnit ];
|
|
728
|
+
}
|
|
729
|
+
function computeZonedDayEpochInterval(slots) {
|
|
730
|
+
const {timeZone: timeZone} = slots;
|
|
731
|
+
const isoDateTime0 = combineDateAndTime(zonedEpochSlotsToIso(slots), timeFieldDefaults);
|
|
732
|
+
const isoDateTime1 = combineDateAndTime(moveDateByDays(isoDateTime0, 1), timeFieldDefaults);
|
|
733
|
+
return [ getStartOfDayInstantFor(timeZone, isoDateTime0), getStartOfDayInstantFor(timeZone, isoDateTime1) ];
|
|
734
|
+
}
|
|
735
|
+
function roundToMinute(offsetNano) {
|
|
736
|
+
return roundNumberToInc(offsetNano, nanoInMinute, 7);
|
|
737
|
+
}
|
|
738
|
+
function roundBigNanoToInc(bigNano, bigNanoInc, roundingMode) {
|
|
739
|
+
return roundBigNanoToIncWithTail(bigNano, bigNanoInc, roundingMode, bigNano / bigNanoInc % 2n);
|
|
740
|
+
}
|
|
741
|
+
function roundBigNanoToDayOriginInc(bigNano, bigNanoInc, roundingMode) {
|
|
742
|
+
const [day, timeNano] = divModFloorBigInt(bigNano, bigNanoInUtcDay);
|
|
743
|
+
const dayOriginNano = day * bigNanoInUtcDay;
|
|
744
|
+
return dayOriginNano + roundBigNanoToIncWithTail(timeNano, bigNanoInc, roundingMode, (dayOriginNano / bigNanoInc + timeNano / bigNanoInc) % 2n);
|
|
745
|
+
}
|
|
746
|
+
function roundBigNanoToIncWithTail(bigNano, bigNanoInc, roundingMode, quotientTail) {
|
|
747
|
+
const quotient = bigNano / bigNanoInc;
|
|
748
|
+
const remainder = bigNano % bigNanoInc;
|
|
749
|
+
let fraction = 0;
|
|
750
|
+
remainder && (fraction = fabricateNearHalfFraction(compareBigInts(2n * (remainder < 0n ? -remainder : remainder), bigNanoInc), Math.sign(Number(remainder))));
|
|
751
|
+
const roundedTail = roundWithMode(Number(quotientTail) + fraction, roundingMode);
|
|
752
|
+
return (quotient - quotientTail + BigInt(roundedTail)) * bigNanoInc;
|
|
753
|
+
}
|
|
754
|
+
function computeNanoInc(smallestUnit, roundingInc) {
|
|
755
|
+
return unitNanoMap[smallestUnit] * roundingInc;
|
|
756
|
+
}
|
|
757
|
+
function computeBigNanoInc(smallestUnit, roundingInc) {
|
|
758
|
+
return BigInt(unitNanoMap[smallestUnit]) * BigInt(roundingInc);
|
|
759
|
+
}
|
|
760
|
+
function _zonedEpochSlotsToIso(slots) {
|
|
761
|
+
const {epochNanoseconds: epochNanoseconds, timeZone: timeZone} = slots;
|
|
762
|
+
const offsetNanoseconds = timeZone.B(epochNanoseconds);
|
|
763
|
+
return {
|
|
764
|
+
...epochNanoToIsoDateTime(epochNanoseconds + BigInt(offsetNanoseconds)),
|
|
765
|
+
offsetNanoseconds: offsetNanoseconds
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
function getMatchingInstantFor(timeZone, isoDateTime, offsetNano, offsetDisambig = 0, epochDisambig = 0, epochFuzzy, hasZ) {
|
|
769
|
+
if (void 0 !== offsetNano && 1 === offsetDisambig && (1 === offsetDisambig || hasZ)) {
|
|
770
|
+
return isoDateTimeAndOffsetToEpochNano(isoDateTime, offsetNano);
|
|
771
|
+
}
|
|
772
|
+
2 !== offsetDisambig && 0 !== offsetDisambig || checkIsoDateInBounds(isoDateTime, 0);
|
|
773
|
+
const possibleEpochNanos = timeZone.R(isoDateTime);
|
|
774
|
+
if (void 0 !== offsetNano && 3 !== offsetDisambig) {
|
|
775
|
+
const matchingEpochNano = ((possibleEpochNanos, isoDateTime, offsetNano, fuzzy) => {
|
|
776
|
+
const zonedEpochNano = isoDateTimeToEpochNano(isoDateTime);
|
|
777
|
+
fuzzy && (offsetNano = roundToMinute(offsetNano));
|
|
778
|
+
for (const possibleEpochNano of possibleEpochNanos) {
|
|
779
|
+
let possibleOffsetNano = Number(zonedEpochNano - possibleEpochNano);
|
|
780
|
+
if (fuzzy && (possibleOffsetNano = roundToMinute(possibleOffsetNano)), possibleOffsetNano === offsetNano) {
|
|
781
|
+
return possibleEpochNano;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
})(possibleEpochNanos, isoDateTime, offsetNano, epochFuzzy);
|
|
785
|
+
if (void 0 !== matchingEpochNano) {
|
|
786
|
+
return matchingEpochNano;
|
|
787
|
+
}
|
|
788
|
+
0 === offsetDisambig && throwRangeError("Invalid TimeZone offset");
|
|
789
|
+
}
|
|
790
|
+
return hasZ ? isoDateTimeToEpochNano(isoDateTime) : getSingleInstantFor(timeZone, isoDateTime, epochDisambig, possibleEpochNanos);
|
|
791
|
+
}
|
|
792
|
+
function getSingleInstantFor(timeZone, isoDateTime, disambig = 0, possibleEpochNanos = timeZone.R(isoDateTime)) {
|
|
793
|
+
if (1 === possibleEpochNanos.length) {
|
|
794
|
+
return possibleEpochNanos[0];
|
|
795
|
+
}
|
|
796
|
+
if (1 === disambig && throwRangeError("Ambiguous offset"), possibleEpochNanos.length) {
|
|
797
|
+
return possibleEpochNanos[3 === disambig ? 1 : 0];
|
|
798
|
+
}
|
|
799
|
+
const zonedEpochNano = isoDateTimeToEpochNano(isoDateTime);
|
|
800
|
+
const gapNano = ((timeZone, zonedEpochNano) => {
|
|
801
|
+
const startOffsetNano = timeZone.B(zonedEpochNano - bigNanoInUtcDay);
|
|
802
|
+
return (gapNano => (gapNano > nanoInUtcDay && throwRangeError("Out-of-bounds TimeZone gap"),
|
|
803
|
+
gapNano))(timeZone.B(zonedEpochNano + bigNanoInUtcDay) - startOffsetNano);
|
|
804
|
+
})(timeZone, zonedEpochNano);
|
|
805
|
+
const shiftedIsoDateTime = epochNanoToIsoDateTime(zonedEpochNano + BigInt(gapNano * (2 === disambig ? -1 : 1)));
|
|
806
|
+
return (possibleEpochNanos = timeZone.R(shiftedIsoDateTime))[2 === disambig ? 0 : possibleEpochNanos.length - 1];
|
|
807
|
+
}
|
|
808
|
+
function getStartOfDayInstantFor(timeZone, isoDateTime) {
|
|
809
|
+
const possibleEpochNanos = timeZone.R(isoDateTime);
|
|
810
|
+
if (possibleEpochNanos.length) {
|
|
811
|
+
return possibleEpochNanos[0];
|
|
812
|
+
}
|
|
813
|
+
const zonedEpochNanoDayBefore = isoDateTimeToEpochNano(isoDateTime) - bigNanoInUtcDay;
|
|
814
|
+
return timeZone.C(zonedEpochNanoDayBefore, 1);
|
|
815
|
+
}
|
|
816
|
+
function moveYearMonth(calendar, isoDate, durationSlots, overflow = 0) {
|
|
817
|
+
computeDurationSign(durationSlots) && getMaxDurationUnit(durationSlots) < 8 && throwRangeError("Cannot use small units");
|
|
818
|
+
const first = checkIsoDateInBounds(moveToStartOfMonth(calendar, isoDate));
|
|
819
|
+
return moveToStartOfMonth(calendar, moveDate(calendar, first, durationSlots, overflow));
|
|
820
|
+
}
|
|
821
|
+
function moveZonedEpochSlots(slots, durationFields, overflow = 0) {
|
|
822
|
+
const {calendar: calendar, epochNanoseconds: epochNano, timeZone: timeZone} = slots;
|
|
823
|
+
const timeOnlyNano = durationTimeToBigNano(durationFields);
|
|
824
|
+
let movedEpochNano = epochNano;
|
|
825
|
+
if (durationHasDateParts(durationFields)) {
|
|
826
|
+
const isoDateTime = zonedEpochSlotsToIso(slots);
|
|
827
|
+
movedEpochNano = getSingleInstantFor(timeZone, combineDateAndTime(moveDate(calendar, isoDateTime, {
|
|
828
|
+
...durationFields,
|
|
829
|
+
...durationTimeFieldDefaults
|
|
830
|
+
}, overflow), isoDateTime)) + timeOnlyNano;
|
|
831
|
+
} else {
|
|
832
|
+
movedEpochNano += timeOnlyNano;
|
|
833
|
+
}
|
|
834
|
+
return {
|
|
835
|
+
...slots,
|
|
836
|
+
epochNanoseconds: checkEpochNanoInBounds(movedEpochNano)
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
function moveDateTime(calendar, isoDateTime, durationFields, overflow = 0) {
|
|
840
|
+
const [movedTimeFields, dayDelta] = moveTime(isoDateTime, durationFields);
|
|
841
|
+
return checkIsoDateTimeInBounds(combineDateAndTime(moveDate(calendar, isoDateTime, {
|
|
842
|
+
...durationFields,
|
|
843
|
+
...durationTimeFieldDefaults,
|
|
844
|
+
days: durationFields.days + dayDelta
|
|
845
|
+
}, overflow), movedTimeFields));
|
|
846
|
+
}
|
|
847
|
+
function moveTime(timeFields, durationFields) {
|
|
848
|
+
return ((timeFields, durationBigNano) => {
|
|
849
|
+
const durDays = Number(durationBigNano / bigNanoInUtcDay);
|
|
850
|
+
const durTimeNano = Number(durationBigNano % bigNanoInUtcDay);
|
|
851
|
+
const [newTimeFields, overflowDays] = nanoToTimeAndDay(timeFieldsToNano(timeFields) + durTimeNano);
|
|
852
|
+
return [ newTimeFields, durDays + overflowDays ];
|
|
853
|
+
})(timeFields, durationTimeToBigNano(durationFields));
|
|
854
|
+
}
|
|
855
|
+
function moveEpochNano(epochNano, durationFields) {
|
|
856
|
+
return ((epochNano, deltaNano) => checkEpochNanoInBounds(epochNano + deltaNano))(epochNano, (durationHasDateParts(fields = durationFields) && throwRangeError("Cannot use large units"),
|
|
857
|
+
durationTimeToBigNano(fields)));
|
|
858
|
+
var fields;
|
|
859
|
+
}
|
|
860
|
+
function moveDate(calendar, isoDate, durationFields, overflow = 0) {
|
|
861
|
+
let {years: years, months: months, weeks: weeks, days: days} = durationFields;
|
|
862
|
+
let movedIsoDate;
|
|
863
|
+
if (days += Number(durationTimeToBigNano(durationFields) / bigNanoInUtcDay), years || months) {
|
|
864
|
+
movedIsoDate = moveDateByCalendarUnits(calendar, isoDate, years, months, overflow);
|
|
865
|
+
} else {
|
|
866
|
+
if (!weeks && !days) {
|
|
867
|
+
return isoDate;
|
|
868
|
+
}
|
|
869
|
+
movedIsoDate = isoDate;
|
|
870
|
+
}
|
|
871
|
+
return (weeks || days) && (movedIsoDate = moveDateByDays(movedIsoDate, 7 * weeks + days)),
|
|
872
|
+
checkIsoDateInBounds(movedIsoDate);
|
|
873
|
+
}
|
|
874
|
+
function moveToStartOfMonth(calendar, isoDate) {
|
|
875
|
+
return moveDateByDays(isoDate, 1 - computeCalendarDateFields(calendar, isoDate).day);
|
|
876
|
+
}
|
|
877
|
+
function moveDateByCalendarUnits(calendar, isoDate, years, months, overflow) {
|
|
878
|
+
const dateParts = computeCalendarDateFields(calendar, isoDate);
|
|
879
|
+
let {year: year, month: month, day: day} = dateParts;
|
|
880
|
+
if (years) {
|
|
881
|
+
const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, year, month);
|
|
882
|
+
year += years, month = resolveMonthInMovedYear(calendar, monthCodeNumber, isLeapMonth, calendar ? calendar.p(year) : void 0, overflow),
|
|
883
|
+
month = clampEntity("month", month, 1, computeCalendarMonthsInYearForYear(calendar, year), overflow);
|
|
884
|
+
}
|
|
885
|
+
if (months) {
|
|
886
|
+
const yearMonthParts = addCalendarMonths(calendar, year, month, months);
|
|
887
|
+
({year: year, month: month} = yearMonthParts);
|
|
888
|
+
}
|
|
889
|
+
return day = clampEntity("day", day, 1, computeCalendarDaysInMonthForYearMonth(calendar, year, month), overflow),
|
|
890
|
+
computeCalendarIsoFieldsFromParts(calendar, year, month, day);
|
|
891
|
+
}
|
|
892
|
+
function addCalendarMonths(calendar, year, month, monthDelta) {
|
|
893
|
+
return calendar ? calendar.ae(year, month, monthDelta) : addIsoMonths(year, month, monthDelta);
|
|
894
|
+
}
|
|
895
|
+
function resolveMonthInMovedYear(calendar, monthCodeNumber, isLeapMonth, targetLeapMonth, overflow) {
|
|
896
|
+
if (isLeapMonth) {
|
|
897
|
+
const leapMonthMeta = calendar ? calendar.l : void 0;
|
|
898
|
+
return void 0 !== targetLeapMonth && (leapMonthMeta < 0 || targetLeapMonth === monthCodeNumber + 1) ? targetLeapMonth : (1 === overflow && throwRangeError(invalidLeapMonth),
|
|
899
|
+
leapMonthMeta < 0 ? -leapMonthMeta : monthCodeNumber);
|
|
900
|
+
}
|
|
901
|
+
return monthCodeNumberToMonth(monthCodeNumber, 0, targetLeapMonth);
|
|
902
|
+
}
|
|
903
|
+
function moveDateByDays(isoDate, days) {
|
|
904
|
+
return days ? epochDaysToIsoDate(isoDateToEpochDays(isoDate) + days) : isoDate;
|
|
905
|
+
}
|
|
906
|
+
function getCommonCalendar(a, b) {
|
|
907
|
+
return getCalendarSlotId(a) !== getCalendarSlotId(b) && throwRangeError("Mismatching Calendars"),
|
|
908
|
+
a;
|
|
909
|
+
}
|
|
910
|
+
function diffDateCalendarUnitsRounded(calendar, startIsoDate, endIsoDate, largestUnit, smallestUnit, roundingInc, roundingMode, smallestPrecision = 6) {
|
|
911
|
+
const endEpochNano = isoDateToEpochNano(endIsoDate);
|
|
912
|
+
if (!compareIsoDates(startIsoDate, endIsoDate)) {
|
|
913
|
+
return durationFieldDefaults;
|
|
914
|
+
}
|
|
915
|
+
let durationFields;
|
|
916
|
+
return durationFields = diffCalendarDates(calendar, startIsoDate, endIsoDate, largestUnit),
|
|
917
|
+
smallestUnit === smallestPrecision && 1 === roundingInc || (durationFields = roundRelativeDuration(durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, createDateRelativeOps(calendar, startIsoDate))),
|
|
918
|
+
durationFields;
|
|
919
|
+
}
|
|
920
|
+
function diffEpochNanosRounded(startEpochNano, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode) {
|
|
921
|
+
return {
|
|
922
|
+
...durationFieldDefaults,
|
|
923
|
+
...nanoToDurationDayTimeFields(roundBigNanoToInc(endEpochNano - startEpochNano, computeBigNanoInc(smallestUnit, roundingInc), roundingMode), largestUnit)
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
function diffZonedEpochsExact(timeZone, calendar, startZoned, endZoned, largestUnit) {
|
|
927
|
+
return largestUnit < 6 ? {
|
|
928
|
+
...durationFieldDefaults,
|
|
929
|
+
...nanoToDurationDayTimeFields(endZoned.epochNanoseconds - startZoned.epochNanoseconds, largestUnit)
|
|
930
|
+
} : ((timeZone, startZoned, endZoned) => {
|
|
931
|
+
const sign = compareBigInts(endZoned.epochNanoseconds, startZoned.epochNanoseconds);
|
|
932
|
+
if (!sign) {
|
|
933
|
+
return durationFieldDefaults;
|
|
934
|
+
}
|
|
935
|
+
if (!compareIsoDates(zonedEpochSlotsToIso(startZoned), zonedEpochSlotsToIso(endZoned))) {
|
|
936
|
+
return {
|
|
937
|
+
...durationFieldDefaults,
|
|
938
|
+
...nanoToDurationDayTimeFields(endZoned.epochNanoseconds - startZoned.epochNanoseconds, 5)
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
const [startIsoDateTime, endIsoDate, remainderNano] = ((timeZone, startZoned, endZoned, sign) => {
|
|
942
|
+
const startIsoDate = zonedEpochSlotsToIso(startZoned);
|
|
943
|
+
const endIsoDate = zonedEpochSlotsToIso(endZoned);
|
|
944
|
+
const endEpochNano = endZoned.epochNanoseconds;
|
|
945
|
+
let dayCorrection = 0;
|
|
946
|
+
const timeDiffNano = timeFieldsToNano(endIsoDate) - timeFieldsToNano(startIsoDate);
|
|
947
|
+
Math.sign(timeDiffNano) === -sign && dayCorrection++;
|
|
948
|
+
const maxDayCorrection = dayCorrection + (sign > 0 ? 1 : 0);
|
|
949
|
+
for (;;dayCorrection++) {
|
|
950
|
+
const midIsoDate = moveDateByDays(endIsoDate, dayCorrection * -sign);
|
|
951
|
+
const midEpochNano = getSingleInstantFor(timeZone, combineDateAndTime(midIsoDate, startIsoDate));
|
|
952
|
+
if (dayCorrection === maxDayCorrection || compareBigInts(endEpochNano, midEpochNano) !== -sign) {
|
|
953
|
+
return [ startIsoDate, midIsoDate, Number(endEpochNano - midEpochNano) ];
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
})(timeZone, startZoned, endZoned, sign);
|
|
957
|
+
return {
|
|
958
|
+
...(start = startIsoDateTime, end = endIsoDate, diffCalendarDates(calendar, start, end, largestUnit)),
|
|
959
|
+
...nanoToDurationTimeFields(remainderNano)
|
|
960
|
+
};
|
|
961
|
+
var start, end;
|
|
962
|
+
})(timeZone, startZoned, endZoned);
|
|
963
|
+
}
|
|
964
|
+
function diffDateTimesExact(calendar, startIsoDateTime, endIsoDateTime, largestUnit) {
|
|
965
|
+
const startEpochNano = isoDateTimeToEpochNano(startIsoDateTime);
|
|
966
|
+
const endEpochNano = isoDateTimeToEpochNano(endIsoDateTime);
|
|
967
|
+
const sign = compareBigInts(endEpochNano, startEpochNano);
|
|
968
|
+
return sign ? largestUnit <= 6 ? {
|
|
969
|
+
...durationFieldDefaults,
|
|
970
|
+
...nanoToDurationDayTimeFields(endEpochNano - startEpochNano, largestUnit)
|
|
971
|
+
} : diffDateTimesBig(calendar, startIsoDateTime, endIsoDateTime, sign, largestUnit) : durationFieldDefaults;
|
|
972
|
+
}
|
|
973
|
+
function diffDateTimesBig(calendar, startIsoDateTime, endIsoDateTime, sign, largestUnit) {
|
|
974
|
+
let diffEndDate = endIsoDateTime;
|
|
975
|
+
let timeNano = timeFieldsToNano(endIsoDateTime) - timeFieldsToNano(startIsoDateTime);
|
|
976
|
+
return Math.sign(timeNano) === -sign && (diffEndDate = moveDateByDays(endIsoDateTime, -sign),
|
|
977
|
+
timeNano += nanoInUtcDay * sign), {
|
|
978
|
+
...diffCalendarDates(calendar, startIsoDateTime, diffEndDate, largestUnit),
|
|
979
|
+
...nanoToDurationTimeFields(timeNano)
|
|
980
|
+
};
|
|
981
|
+
}
|
|
982
|
+
function diffCalendarDates(calendar, startIsoDate, endIsoDate, largestUnit) {
|
|
983
|
+
if (largestUnit <= 7) {
|
|
984
|
+
return ((asWeeks, start, end) => {
|
|
985
|
+
const days = countIsoDays(start, end);
|
|
986
|
+
return asWeeks ? {
|
|
987
|
+
...durationFieldDefaults,
|
|
988
|
+
weeks: divTrunc(days, 7),
|
|
989
|
+
days: modTrunc(days, 7)
|
|
990
|
+
} : {
|
|
991
|
+
...durationFieldDefaults,
|
|
992
|
+
days: days
|
|
993
|
+
};
|
|
994
|
+
})(7 === largestUnit, startIsoDate, endIsoDate);
|
|
995
|
+
}
|
|
996
|
+
const yearMonthDayStart = computeCalendarDateFields(calendar, startIsoDate);
|
|
997
|
+
const yearMonthDayEnd = computeCalendarDateFields(calendar, endIsoDate);
|
|
998
|
+
if (8 === largestUnit) {
|
|
999
|
+
const {year: year0, month: month0, day: day0} = yearMonthDayStart;
|
|
1000
|
+
const {year: year1, month: month1, day: day1} = yearMonthDayEnd;
|
|
1001
|
+
const sign = Math.sign(compareNumbers(year1, year0) || compareNumbers(month1, month0) || countIsoDays(startIsoDate, endIsoDate));
|
|
1002
|
+
let months = 0;
|
|
1003
|
+
let days = 0;
|
|
1004
|
+
if (sign) {
|
|
1005
|
+
months = calendar ? calendar.ee(year0, month0, year1, month1) : diffIsoMonthSlots(year0, month0, year1, month1);
|
|
1006
|
+
let anchorIsoDate = moveDateByCalendarUnits(calendar, startIsoDate, 0, months, 0);
|
|
1007
|
+
sign * compareNumbers(day0, day1) > 0 && (months -= sign, anchorIsoDate = moveDateByCalendarUnits(calendar, startIsoDate, 0, months, 0)),
|
|
1008
|
+
days = countIsoDays(anchorIsoDate, endIsoDate);
|
|
1009
|
+
}
|
|
1010
|
+
return {
|
|
1011
|
+
...durationFieldDefaults,
|
|
1012
|
+
months: months,
|
|
1013
|
+
days: days
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
const {year: year0, month: month0, day: day0} = yearMonthDayStart;
|
|
1017
|
+
let {year: year1, month: month1, day: day1} = yearMonthDayEnd;
|
|
1018
|
+
let yearDiff = year1 - year0;
|
|
1019
|
+
let monthDiff = month1 - month0;
|
|
1020
|
+
let dayDiff = day1 - day0;
|
|
1021
|
+
if (yearDiff || monthDiff) {
|
|
1022
|
+
const sign = Math.sign(yearDiff || monthDiff);
|
|
1023
|
+
let daysInMonth1 = computeCalendarDaysInMonthForYearMonth(calendar, year1, month1);
|
|
1024
|
+
let dayCorrect = 0;
|
|
1025
|
+
if (Math.sign(day1 - day0) === -sign) {
|
|
1026
|
+
const origDaysInMonth1 = daysInMonth1;
|
|
1027
|
+
const yearMonthParts = addCalendarMonths(calendar, year1, month1, -sign);
|
|
1028
|
+
({year: year1, month: month1} = yearMonthParts), yearDiff = year1 - year0, monthDiff = month1 - month0,
|
|
1029
|
+
daysInMonth1 = computeCalendarDaysInMonthForYearMonth(calendar, year1, month1),
|
|
1030
|
+
dayCorrect = sign < 0 ? -origDaysInMonth1 : daysInMonth1;
|
|
1031
|
+
}
|
|
1032
|
+
if (dayDiff = day1 - Math.min(day0, daysInMonth1) + dayCorrect, yearDiff) {
|
|
1033
|
+
const [monthCodeNumber0, isLeapMonth0] = computeCalendarMonthCodeParts(calendar, year0, month0);
|
|
1034
|
+
const [monthCodeNumber1, isLeapMonth1] = computeCalendarMonthCodeParts(calendar, year1, month1);
|
|
1035
|
+
const leapMonthMeta = calendar ? calendar.l : void 0;
|
|
1036
|
+
if (monthDiff = void 0 !== leapMonthMeta && isLeapMonth0 && !isLeapMonth1 && (leapMonthMeta < 0 ? sign > 0 && monthCodeNumber1 === -leapMonthMeta : sign < 0 && monthCodeNumber1 === monthCodeNumber0) ? 0 : monthCodeNumber1 - monthCodeNumber0 || Number(isLeapMonth1) - Number(isLeapMonth0),
|
|
1037
|
+
Math.sign(monthDiff) === -sign) {
|
|
1038
|
+
const monthCorrect = sign < 0 && -computeCalendarMonthsInYearForYear(calendar, year1);
|
|
1039
|
+
year1 -= sign, yearDiff = year1 - year0, monthDiff = month1 - resolveMonthInMovedYear(calendar, monthCodeNumber0, isLeapMonth0, calendar ? calendar.p(year1) : void 0, 0) + (monthCorrect || computeCalendarMonthsInYearForYear(calendar, year1));
|
|
1040
|
+
} else if (calendar) {
|
|
1041
|
+
const month0Projected = resolveMonthInMovedYear(calendar, monthCodeNumber0, isLeapMonth0, calendar.p(year1), 0);
|
|
1042
|
+
monthDiff = calendar.ee(year1, month0Projected, year1, month1);
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
return {
|
|
1047
|
+
...durationFieldDefaults,
|
|
1048
|
+
years: yearDiff,
|
|
1049
|
+
months: monthDiff,
|
|
1050
|
+
days: dayDiff
|
|
1051
|
+
};
|
|
1052
|
+
}
|
|
1053
|
+
function compareIsoDates(isoDate0, isoDate1) {
|
|
1054
|
+
return compareNumbers(isoDate0.year, isoDate1.year) || compareNumbers(isoDate0.month, isoDate1.month) || compareNumbers(isoDate0.day, isoDate1.day);
|
|
1055
|
+
}
|
|
1056
|
+
function countIsoDays(startIsoDate, endIsoDate) {
|
|
1057
|
+
return isoDateToEpochDays(endIsoDate) - isoDateToEpochDays(startIsoDate);
|
|
1058
|
+
}
|
|
1059
|
+
function spanRelativeDuration(relativeToSlots, durationFields, largestUnit) {
|
|
1060
|
+
return isZonedEpochSlots(relativeToSlots) ? ((relativeToSlots, durationFields, largestUnit) => {
|
|
1061
|
+
const {calendar: calendar, timeZone: timeZone} = relativeToSlots;
|
|
1062
|
+
const endSlots = moveZonedEpochSlots(relativeToSlots, durationFields);
|
|
1063
|
+
return [ diffZonedEpochsExact(timeZone, calendar, relativeToSlots, endSlots, largestUnit), endSlots.epochNanoseconds, createZonedRelativeOps(calendar, timeZone, relativeToSlots) ];
|
|
1064
|
+
})(relativeToSlots, durationFields, largestUnit) : ((relativeToSlots, durationFields, largestUnit) => {
|
|
1065
|
+
const {calendar: calendar} = relativeToSlots;
|
|
1066
|
+
const origin = checkIsoDateTimeInBounds(combineDateAndTime(relativeToSlots, timeFieldDefaults));
|
|
1067
|
+
const end = moveDateTime(calendar, origin, durationFields);
|
|
1068
|
+
return [ diffDateTimesExact(calendar, origin, end, largestUnit), isoDateTimeToEpochNano(end), createDateRelativeOps(calendar, relativeToSlots) ];
|
|
1069
|
+
})(relativeToSlots, durationFields, largestUnit);
|
|
1070
|
+
}
|
|
1071
|
+
function moveRelativeEndpointToEpochNano(relativeToSlots, durationFields) {
|
|
1072
|
+
return isZonedEpochSlots(relativeToSlots) ? moveZonedEpochSlots(relativeToSlots, durationFields).epochNanoseconds : isoDateTimeToEpochNano(moveDateTime(relativeToSlots.calendar, combineDateAndTime(relativeToSlots, timeFieldDefaults), durationFields));
|
|
1073
|
+
}
|
|
1074
|
+
function moveRelativeMarkerToEpochNano(relativeOps, dateDuration) {
|
|
1075
|
+
return durationHasDateParts(dateDuration) ? relativeOps.ke(dateDuration) : relativeOps.ne;
|
|
1076
|
+
}
|
|
1077
|
+
function createZonedRelativeOps(calendar, timeZone, slots) {
|
|
1078
|
+
const origin = zonedEpochSlotsToIso(slots);
|
|
1079
|
+
return {
|
|
1080
|
+
ne: slots.epochNanoseconds,
|
|
1081
|
+
ke: duration => getSingleInstantFor(timeZone, combineDateAndTime(moveDate(calendar, origin, duration), origin))
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
function createDateRelativeOps(calendar, origin) {
|
|
1085
|
+
return {
|
|
1086
|
+
ne: isoDateToEpochNano(origin),
|
|
1087
|
+
ke: duration => isoDateToEpochNano(moveDate(calendar, origin, duration))
|
|
1088
|
+
};
|
|
1089
|
+
}
|
|
1090
|
+
function isZonedEpochSlots(slots) {
|
|
1091
|
+
return "timeZone" in slots;
|
|
1092
|
+
}
|
|
1093
|
+
function isUniformUnit(unit, isZoned) {
|
|
1094
|
+
return unit <= 6 - (isZoned ? 1 : 0);
|
|
1095
|
+
}
|
|
1096
|
+
function nanoToGivenFields(nano, largestUnit, fieldNames) {
|
|
1097
|
+
const fields = {};
|
|
1098
|
+
for (let unit = largestUnit; unit >= 0; unit--) {
|
|
1099
|
+
const divisor = unitNanoMap[unit];
|
|
1100
|
+
fields[fieldNames[unit]] = divTrunc(nano, divisor), nano = modTrunc(nano, divisor);
|
|
1101
|
+
}
|
|
1102
|
+
return fields;
|
|
1103
|
+
}
|
|
1104
|
+
function addDurationsWithoutRelativeTo(doSubtract, slots, otherSlots) {
|
|
1105
|
+
const maxUnit = Math.max(getMaxDurationUnit(slots), getMaxDurationUnit(otherSlots));
|
|
1106
|
+
return maxUnit > 6 && throwRangeError("Cannot use large units"), ((doSubtract, slots, otherSlots, maxUnit) => createDurationSlots(validateDurationFields(((a, b, largestUnit, doSubtract) => {
|
|
1107
|
+
const combined = durationDayTimeToBigNano(a) + durationDayTimeToBigNano(b) * BigInt(doSubtract ? -1 : 1);
|
|
1108
|
+
return Number.isFinite(Number(combined / bigNanoInUtcDay)) || throwRangeError(outOfBoundsDate),
|
|
1109
|
+
{
|
|
1110
|
+
...durationFieldDefaults,
|
|
1111
|
+
...nanoToDurationDayTimeFields(combined, largestUnit)
|
|
1112
|
+
};
|
|
1113
|
+
})(slots, otherSlots, maxUnit, doSubtract))))(doSubtract, slots, otherSlots, maxUnit);
|
|
1114
|
+
}
|
|
1115
|
+
function negateDuration(slots) {
|
|
1116
|
+
return createDurationSlots(negateDurationFields(slots));
|
|
1117
|
+
}
|
|
1118
|
+
function negateDurationFields(fields) {
|
|
1119
|
+
const res = {};
|
|
1120
|
+
for (const fieldName of durationFieldNamesAsc) {
|
|
1121
|
+
res[fieldName] = -1 * fields[fieldName] || 0;
|
|
1122
|
+
}
|
|
1123
|
+
return res;
|
|
1124
|
+
}
|
|
1125
|
+
function computeDurationSign(fields, fieldNames = durationFieldNamesAsc) {
|
|
1126
|
+
let sign = 0;
|
|
1127
|
+
for (const fieldName of fieldNames) {
|
|
1128
|
+
const fieldSign = Math.sign(fields[fieldName]);
|
|
1129
|
+
fieldSign && (sign && sign !== fieldSign && throwRangeError("Cannot mix duration signs"),
|
|
1130
|
+
sign = fieldSign);
|
|
1131
|
+
}
|
|
1132
|
+
return sign;
|
|
1133
|
+
}
|
|
1134
|
+
function validateDurationFields(fields) {
|
|
1135
|
+
for (const calendarUnit of durationCalendarFieldNamesAsc) {
|
|
1136
|
+
validateDurationCalendarUnit(calendarUnit, fields[calendarUnit]);
|
|
1137
|
+
}
|
|
1138
|
+
const bigNano = durationDayTimeToBigNano(fields);
|
|
1139
|
+
return validateDurationTimeUnit(Number(bigNano / bigNanoInSec)), fields;
|
|
1140
|
+
}
|
|
1141
|
+
function validateDurationCalendarUnit(unit, value) {
|
|
1142
|
+
return clampEntity(unit, value, -4294967295, 4294967295, 1);
|
|
1143
|
+
}
|
|
1144
|
+
function validateDurationTimeUnit(n) {
|
|
1145
|
+
Number.isSafeInteger(n) || throwRangeError("Out-of-bounds duration");
|
|
1146
|
+
}
|
|
1147
|
+
function durationDayTimeToBigNano(fields) {
|
|
1148
|
+
return BigInt(fields.days) * bigNanoInUtcDay + durationTimeToBigNano(fields);
|
|
1149
|
+
}
|
|
1150
|
+
function durationTimeToBigNano(fields) {
|
|
1151
|
+
return BigInt(fields.hours) * bigNanoInHour + BigInt(fields.minutes) * bigNanoInMinute + durationSubMinuteToBigNano(fields);
|
|
1152
|
+
}
|
|
1153
|
+
function durationSubMinuteToBigNano(fields) {
|
|
1154
|
+
return BigInt(fields.seconds) * bigNanoInSec + BigInt(fields.milliseconds) * bigNanoInMilli + BigInt(fields.microseconds) * bigNanoInMicro + BigInt(fields.nanoseconds);
|
|
1155
|
+
}
|
|
1156
|
+
function nanoToDurationDayTimeFields(bigNano, largestUnit = 6) {
|
|
1157
|
+
const days = Number(bigNano / bigNanoInUtcDay);
|
|
1158
|
+
const timeNano = Number(bigNano % bigNanoInUtcDay);
|
|
1159
|
+
const unitNano = unitNanoMap[largestUnit];
|
|
1160
|
+
const largestUnitVal = largestUnit <= 3 ? Number(bigNano / BigInt(unitNano)) : days * (nanoInUtcDay / unitNano) + divTrunc(timeNano, unitNano);
|
|
1161
|
+
Number.isFinite(largestUnitVal) || throwRangeError(outOfBoundsDate), largestUnit <= 3 && Math.abs(largestUnitVal) / (nanoInSec / unitNanoMap[largestUnit]) >= maxDurationSeconds && throwRangeError(outOfBoundsDate);
|
|
1162
|
+
const dayTimeFields = nanoToGivenFields(timeNano, largestUnit, durationFieldNamesAsc);
|
|
1163
|
+
return dayTimeFields[durationFieldNamesAsc[largestUnit]] = largestUnitVal, dayTimeFields;
|
|
1164
|
+
}
|
|
1165
|
+
function nanoToDurationTimeFields(nano, largestUnit = 5) {
|
|
1166
|
+
return nanoToGivenFields(nano, largestUnit, durationFieldNamesAsc);
|
|
1167
|
+
}
|
|
1168
|
+
function durationHasDateParts(fields) {
|
|
1169
|
+
return Boolean(computeDurationSign(fields, durationDateFieldNamesAsc));
|
|
1170
|
+
}
|
|
1171
|
+
function getMaxDurationUnit(fields) {
|
|
1172
|
+
let unit = 9;
|
|
1173
|
+
for (;unit > 0 && !fields[durationFieldNamesAsc[unit]]; unit--) {}
|
|
1174
|
+
return unit;
|
|
1175
|
+
}
|
|
1176
|
+
function compareZonedEpochSlots(zonedEpochSlots0, zonedEpochSlots1) {
|
|
1177
|
+
return compareBigInts(zonedEpochSlots0.epochNanoseconds, zonedEpochSlots1.epochNanoseconds);
|
|
1178
|
+
}
|
|
1179
|
+
function compareIsoDateTimeFields(isoDateTime0, isoDateTime1) {
|
|
1180
|
+
return compareIsoDateFields(isoDateTime0, isoDateTime1) || compareTimeFields(isoDateTime0, isoDateTime1);
|
|
1181
|
+
}
|
|
1182
|
+
function compareIsoDateFields(isoDate0, isoDate1) {
|
|
1183
|
+
return compareNumbers(isoDateToEpochDays(isoDate0), isoDateToEpochDays(isoDate1));
|
|
1184
|
+
}
|
|
1185
|
+
function compareTimeFields(timeFields0, timeFields1) {
|
|
1186
|
+
return compareNumbers(timeFieldsToNano(timeFields0), timeFieldsToNano(timeFields1));
|
|
1187
|
+
}
|
|
1188
|
+
function getCalendarEraOrigins(calendar) {
|
|
1189
|
+
return 0 === calendar ? gregoryEraOrigins : calendar ? calendar.k : void 0;
|
|
1190
|
+
}
|
|
1191
|
+
function getCalendarFieldNames(calendar, fieldNames, fieldNamesWithEra = fieldNames) {
|
|
1192
|
+
return getCalendarEraOrigins(calendar) ? fieldNamesWithEra : fieldNames;
|
|
1193
|
+
}
|
|
1194
|
+
function resolveCalendarYear(fields, calendar) {
|
|
1195
|
+
const exoticCalendar = calendar || void 0;
|
|
1196
|
+
const eraOrigins = getCalendarEraOrigins(calendar);
|
|
1197
|
+
let {era: era, eraYear: eraYear, year: year} = fields;
|
|
1198
|
+
if (void 0 !== year && (year = toIntegerWithTrunc(year, "year")), void 0 !== eraYear && (eraYear = toIntegerWithTrunc(eraYear, "eraYear")),
|
|
1199
|
+
void 0 !== era || void 0 !== eraYear) {
|
|
1200
|
+
void 0 !== era && void 0 !== eraYear || throwTypeError("Mismatching era/eraYear"),
|
|
1201
|
+
eraOrigins || throwRangeError("Forbidden era/eraYear");
|
|
1202
|
+
const normalizedEra = normalizeEraName(era);
|
|
1203
|
+
const eraOrigin = eraOrigins[normalizedEra];
|
|
1204
|
+
void 0 === eraOrigin && throwRangeError((era => `Invalid era: ${era}`)(era));
|
|
1205
|
+
const yearByEra = exoticCalendar?._ ? exoticCalendar._(eraYear, normalizedEra, eraOrigin) : eraYearToYear(eraYear, eraOrigin);
|
|
1206
|
+
void 0 !== year && year !== yearByEra && throwRangeError("Mismatching year/eraYear"),
|
|
1207
|
+
year = yearByEra;
|
|
1208
|
+
} else {
|
|
1209
|
+
void 0 === year && throwTypeError(missingYear(eraOrigins));
|
|
1210
|
+
}
|
|
1211
|
+
return year;
|
|
1212
|
+
}
|
|
1213
|
+
function resolveCalendarMonth(fields, calendar, year, monthCodeParts, overflow) {
|
|
1214
|
+
let {month: month, monthCode: monthCode} = fields;
|
|
1215
|
+
if (void 0 !== monthCode) {
|
|
1216
|
+
const monthByCode = ((calendar, monthCode, year, overflow, monthCodeParts = parseMonthCode(monthCode)) => {
|
|
1217
|
+
const leapMonth = calendar ? calendar.p(year) : void 0;
|
|
1218
|
+
const [monthCodeNumber, wantsLeapMonth] = monthCodeParts;
|
|
1219
|
+
let month = monthCodeNumberToMonth(monthCodeNumber, wantsLeapMonth, leapMonth);
|
|
1220
|
+
if (wantsLeapMonth) {
|
|
1221
|
+
const leapMonthMeta = calendar ? calendar.l : void 0;
|
|
1222
|
+
void 0 === leapMonthMeta && throwRangeError(invalidLeapMonth), leapMonthMeta > 0 ? (month > leapMonthMeta && throwRangeError(invalidLeapMonth),
|
|
1223
|
+
leapMonth !== month && (1 === overflow && throwRangeError(invalidLeapMonth), month = monthCodeNumberToMonth(monthCodeNumber, 0, leapMonth))) : (month !== -leapMonthMeta && throwRangeError(invalidLeapMonth),
|
|
1224
|
+
void 0 === leapMonth && 1 === overflow && throwRangeError(invalidLeapMonth));
|
|
1225
|
+
}
|
|
1226
|
+
return month;
|
|
1227
|
+
})(calendar, monthCode, year, overflow, monthCodeParts);
|
|
1228
|
+
void 0 !== month && month !== monthByCode && throwRangeError("Mismatching month/monthCode"),
|
|
1229
|
+
month = monthByCode, overflow = 1;
|
|
1230
|
+
} else {
|
|
1231
|
+
void 0 === month && throwTypeError("Missing month/monthCode");
|
|
1232
|
+
}
|
|
1233
|
+
return clampEntity("month", month, 1, computeCalendarMonthsInYearForYear(calendar, year), overflow);
|
|
1234
|
+
}
|
|
1235
|
+
function resolveCalendarDay(fields, calendar, year, month, overflow) {
|
|
1236
|
+
return clampProp(fields, "day", 1, computeCalendarDaysInMonthForYearMonth(calendar, year, month), overflow);
|
|
1237
|
+
}
|
|
1238
|
+
function eraYearToYear(eraYear, eraOrigin) {
|
|
1239
|
+
return (eraOrigin + eraYear) * (Math.sign(eraOrigin) || 1) || 0;
|
|
1240
|
+
}
|
|
1241
|
+
function resolveTimeFields(fields, overflow) {
|
|
1242
|
+
return constrainTimeFields(pluckProps(timeFieldNamesAsc, {
|
|
1243
|
+
...timeFieldDefaults,
|
|
1244
|
+
...fields
|
|
1245
|
+
}), overflow);
|
|
1246
|
+
}
|
|
1247
|
+
function parseOffsetNano(s) {
|
|
1248
|
+
const offsetNano = parseOffsetNanoMaybe(s);
|
|
1249
|
+
return void 0 === offsetNano && throwRangeError(failedParse(s)), offsetNano;
|
|
1250
|
+
}
|
|
1251
|
+
function parseOffsetNanoMaybe(s, onlyHourMinute) {
|
|
1252
|
+
const parts = offsetRegExp.exec(s);
|
|
1253
|
+
if (parts && (s => (s => {
|
|
1254
|
+
"T" !== s[0] && "t" !== s[0] || (s = s.slice(1));
|
|
1255
|
+
const fractionIndex = s.search(/[.,]/);
|
|
1256
|
+
const main = fractionIndex < 0 ? s : s.slice(0, fractionIndex);
|
|
1257
|
+
const parts = main.split(":");
|
|
1258
|
+
return 1 === parts.length ? /^(?:\d{2}|\d{4}|\d{6})$/i.test(main) : (2 === parts.length || 3 === parts.length) && parts.every(part => 2 === part.length && /^\d{2}$/i.test(part));
|
|
1259
|
+
})(s.slice(1)))(parts[0])) {
|
|
1260
|
+
return ((parts, onlyHourMinute) => {
|
|
1261
|
+
const firstSubMinutePart = parts[4] || parts[5];
|
|
1262
|
+
return onlyHourMinute && firstSubMinutePart && throwRangeError(invalidSubstring(firstSubMinutePart)),
|
|
1263
|
+
offsetNano = (parseInt0(parts[2]) * nanoInHour + parseInt0(parts[3]) * nanoInMinute + parseInt0(parts[4]) * nanoInSec + parseSubsecNano(parts[5] || "")) * parseSign(parts[1]),
|
|
1264
|
+
Math.abs(offsetNano) >= nanoInUtcDay && throwRangeError("Out-of-bounds offset"),
|
|
1265
|
+
offsetNano;
|
|
1266
|
+
var offsetNano;
|
|
1267
|
+
})(parts, onlyHourMinute);
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
function readAndRefineBagFields(bag, validFieldNames, fieldRefiners, requiredFieldNames, disallowEmpty = !requiredFieldNames) {
|
|
1271
|
+
const res = {};
|
|
1272
|
+
let anyMatching = 0;
|
|
1273
|
+
for (const fieldName of validFieldNames) {
|
|
1274
|
+
let fieldVal = bag[fieldName];
|
|
1275
|
+
if (void 0 !== fieldVal) {
|
|
1276
|
+
anyMatching = 1;
|
|
1277
|
+
const refiner = fieldRefiners[fieldName];
|
|
1278
|
+
refiner && (fieldVal = refiner(fieldVal, fieldName)), res[fieldName] = fieldVal;
|
|
1279
|
+
} else {
|
|
1280
|
+
requiredFieldNames && requiredFieldNames.includes(fieldName) && throwTypeError(missingField(fieldName));
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
return disallowEmpty && !anyMatching && throwTypeError(noValidFields(validFieldNames)),
|
|
1284
|
+
res;
|
|
1285
|
+
}
|
|
1286
|
+
function refineCalendarDateFields(fields, calendar, allowMissingDay) {
|
|
1287
|
+
const eraOrigins = getCalendarEraOrigins(calendar);
|
|
1288
|
+
void 0 !== fields.year || void 0 !== fields.era && void 0 !== fields.eraYear || throwTypeError(missingYear(eraOrigins)),
|
|
1289
|
+
void 0 === fields.monthCode && void 0 === fields.month && throwTypeError("Missing month/monthCode"),
|
|
1290
|
+
allowMissingDay || void 0 !== fields.day || throwTypeError(missingField("day"));
|
|
1291
|
+
const monthCodeParts = parseMonthCodeField(fields);
|
|
1292
|
+
return [ resolveCalendarYear(fields, calendar), monthCodeParts ];
|
|
1293
|
+
}
|
|
1294
|
+
function refineMonthDayFields(fields, calendar) {
|
|
1295
|
+
const isIso = calendar === isoCalendarImpl;
|
|
1296
|
+
const eraOrigins = getCalendarEraOrigins(calendar);
|
|
1297
|
+
void 0 === fields.day && throwTypeError(missingField("day")), isIso || void 0 === fields.month || void 0 !== fields.year || void 0 !== fields.era && void 0 !== fields.eraYear || throwTypeError(missingYear(eraOrigins));
|
|
1298
|
+
const monthCodeParts = parseMonthCodeField(fields);
|
|
1299
|
+
return [ void 0 !== fields.eraYear || void 0 !== fields.year ? resolveCalendarYear(fields, calendar) : void 0, monthCodeParts ];
|
|
1300
|
+
}
|
|
1301
|
+
function createDateTimeFromRefinedFields(isoDate, timeFields = timeFieldDefaults, calendar) {
|
|
1302
|
+
const isoDateTime = combineDateAndTime(isoDate, timeFields);
|
|
1303
|
+
return checkIsoDateTimeInBounds(isoDateTime), createDateTimeSlots(isoDateTime, calendar);
|
|
1304
|
+
}
|
|
1305
|
+
function createDateFromRefinedFields(fields, calendar, year, monthCodeParts, overflow) {
|
|
1306
|
+
const month = resolveCalendarMonth(fields, calendar, year, monthCodeParts, overflow);
|
|
1307
|
+
return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, year, month, resolveCalendarDay(fields, calendar, year, month, overflow))), calendar);
|
|
1308
|
+
}
|
|
1309
|
+
function createYearMonthFromRefinedFields(fields, calendar, year, monthCodeParts, overflow) {
|
|
1310
|
+
return ((calendar, year, month) => createDateSlots(checkIsoYearMonthInBounds(computeCalendarIsoFieldsFromParts(calendar, year, month, 1)), calendar))(calendar, year, resolveCalendarMonth(fields, calendar, year, monthCodeParts, overflow));
|
|
1311
|
+
}
|
|
1312
|
+
function createMonthDayFromRefinedFields(fields, calendar, year, monthCodeParts, overflow) {
|
|
1313
|
+
const isIso = calendar === isoCalendarImpl;
|
|
1314
|
+
let yearMaybe = year;
|
|
1315
|
+
let day;
|
|
1316
|
+
let monthCodeNumber;
|
|
1317
|
+
let isLeapMonth;
|
|
1318
|
+
if (void 0 === yearMaybe && isIso && (yearMaybe = 1972), void 0 !== yearMaybe) {
|
|
1319
|
+
isIso || checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, yearMaybe, 1, 1));
|
|
1320
|
+
const month = resolveCalendarMonth(fields, calendar, yearMaybe, monthCodeParts, overflow);
|
|
1321
|
+
day = resolveCalendarDay(fields, calendar, yearMaybe, month, overflow), [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, yearMaybe, month);
|
|
1322
|
+
} else {
|
|
1323
|
+
void 0 === fields.monthCode && throwTypeError("Missing month/monthCode"), [monthCodeNumber, isLeapMonth] = monthCodeParts;
|
|
1324
|
+
const referenceYear = calendar ? calendar.re : 1972;
|
|
1325
|
+
if (void 0 !== referenceYear) {
|
|
1326
|
+
day = resolveCalendarDay(fields, calendar, referenceYear, resolveCalendarMonth(fields, calendar, referenceYear, monthCodeParts, overflow), overflow);
|
|
1327
|
+
} else {
|
|
1328
|
+
const constrainedDay = 0 === overflow && calendar ? calendar.ge?.(monthCodeNumber, isLeapMonth, fields.day) : void 0;
|
|
1329
|
+
day = void 0 !== constrainedDay ? constrainedDay : fields.day;
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
return ((calendar, monthCodeNumber, isLeapMonthArg, day, requestedDay, overflow) => {
|
|
1333
|
+
let isLeapMonth = isLeapMonthArg;
|
|
1334
|
+
isLeapMonth && ((calendar && calendar.V?.[monthCodeNumber]) ?? 1 / 0) < requestedDay && (1 === overflow && throwRangeError(invalidLeapMonth),
|
|
1335
|
+
isLeapMonth = 0, day = constrainToRange(requestedDay, 1, (calendar && calendar.U) ?? 1 / 0));
|
|
1336
|
+
let res = calendar ? calendar.u(monthCodeNumber, Boolean(isLeapMonth), day) : computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, Boolean(isLeapMonth));
|
|
1337
|
+
for (;!res && 0 === overflow && day > 1; ) {
|
|
1338
|
+
day--, res = calendar ? calendar.u(monthCodeNumber, Boolean(isLeapMonth), day) : computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, Boolean(isLeapMonth));
|
|
1339
|
+
}
|
|
1340
|
+
res || throwRangeError("Cannot guess year");
|
|
1341
|
+
const {year: finalYear, month: finalMonth} = res;
|
|
1342
|
+
return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, finalYear, finalMonth, day)), calendar);
|
|
1343
|
+
})(calendar, monthCodeNumber, isLeapMonth, day, fields.day, overflow);
|
|
1344
|
+
}
|
|
1345
|
+
function parseMonthCodeField(fields) {
|
|
1346
|
+
if (void 0 !== fields.monthCode) {
|
|
1347
|
+
return parseMonthCode(fields.monthCode);
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
function formatEpochMilliToPartsRecord(intlFormat, epochMilli) {
|
|
1351
|
+
epochMilli < -864e13 && throwRangeError(outOfBoundsDate);
|
|
1352
|
+
const parts = intlFormat.formatToParts(epochMilli);
|
|
1353
|
+
const hash = {};
|
|
1354
|
+
for (const part of parts) {
|
|
1355
|
+
hash[part.type] = part.value;
|
|
1356
|
+
}
|
|
1357
|
+
return hash;
|
|
1358
|
+
}
|
|
1359
|
+
function formatInstantIso(refineTimeZoneString, instantSlots, options) {
|
|
1360
|
+
const [timeZoneArg, roundingMode, nanoInc, subsecDigits] = (options => {
|
|
1361
|
+
const subsecDigits = coerceFractionalSecondDigits(options = normalizeOptions(options));
|
|
1362
|
+
const roundingMode = coerceRoundingMode(options, 4);
|
|
1363
|
+
const smallestUnit = coerceSmallestUnit(options);
|
|
1364
|
+
return [ options.timeZone, roundingMode, ...resolveSmallestUnitAndSubsecDigits(validateUnitRange(smallestUnitStr, smallestUnit, 0, 4), subsecDigits) ];
|
|
1365
|
+
})(options);
|
|
1366
|
+
const providedTimeZone = void 0 !== timeZoneArg;
|
|
1367
|
+
return ((providedTimeZone, timeZone, epochNano, roundingMode, nanoInc, subsecDigits) => {
|
|
1368
|
+
epochNano = roundBigNanoToDayOriginInc(epochNano, BigInt(nanoInc), roundingMode);
|
|
1369
|
+
const offsetNano = timeZone.B(epochNano);
|
|
1370
|
+
return formatIsoDateTimeFields(epochNanoToIsoDateTime(epochNano + BigInt(offsetNano)), subsecDigits) + (providedTimeZone ? formatOffsetNano(roundToMinute(offsetNano)) : "Z");
|
|
1371
|
+
})(providedTimeZone, queryTimeZone(providedTimeZone ? refineTimeZoneString(timeZoneArg) : "UTC"), instantSlots.epochNanoseconds, roundingMode, nanoInc, subsecDigits);
|
|
1372
|
+
}
|
|
1373
|
+
function formatZonedDateTimeIso(zonedDateTimeSlots0, options) {
|
|
1374
|
+
const displayOptions = (options => {
|
|
1375
|
+
options = normalizeOptions(options);
|
|
1376
|
+
const calendarDisplay = coerceCalendarDisplay(options);
|
|
1377
|
+
const subsecDigits = coerceFractionalSecondDigits(options);
|
|
1378
|
+
const offsetDisplay = coerceOffsetDisplay(options);
|
|
1379
|
+
const roundingMode = coerceRoundingMode(options, 4);
|
|
1380
|
+
const smallestUnit = coerceSmallestUnit(options);
|
|
1381
|
+
return [ calendarDisplay, coerceTimeZoneDisplay(options), offsetDisplay, roundingMode, ...resolveSmallestUnitAndSubsecDigits(validateUnitRange(smallestUnitStr, smallestUnit, 0, 4), subsecDigits) ];
|
|
1382
|
+
})(options);
|
|
1383
|
+
return ((calendar, timeZoneId, timeZone, epochNano, calendarDisplay, timeZoneDisplay, offsetDisplay, roundingMode, nanoInc, subsecDigits) => {
|
|
1384
|
+
epochNano = roundBigNanoToDayOriginInc(epochNano, BigInt(nanoInc), roundingMode);
|
|
1385
|
+
const offsetNano = timeZone.B(epochNano);
|
|
1386
|
+
return formatIsoDateTimeFields(epochNanoToIsoDateTime(epochNano + BigInt(offsetNano)), subsecDigits) + formatOffsetNano(roundToMinute(offsetNano), offsetDisplay) + ((timeZoneId, timeZoneDisplay) => 1 !== timeZoneDisplay ? "[" + (2 === timeZoneDisplay ? "!" : "") + timeZoneId + "]" : "")(timeZoneId, timeZoneDisplay) + formatCalendar(calendar, calendarDisplay);
|
|
1387
|
+
})(zonedDateTimeSlots0.calendar, zonedDateTimeSlots0.timeZone.id, zonedDateTimeSlots0.timeZone, zonedDateTimeSlots0.epochNanoseconds, ...displayOptions);
|
|
1388
|
+
}
|
|
1389
|
+
function formatPlainDateTimeIso(plainDateTimeSlots0, options) {
|
|
1390
|
+
const displayOptions = (options => (options = normalizeOptions(options), [ coerceCalendarDisplay(options), ...refineTimeDisplayTuple(options) ]))(options);
|
|
1391
|
+
return ((calendar, isoDateTime, calendarDisplay, roundingMode, nanoInc, subsecDigits) => formatIsoDateTimeFields(roundDateTimeToInc(isoDateTime, nanoInc, roundingMode), subsecDigits) + formatCalendar(calendar, calendarDisplay))(plainDateTimeSlots0.calendar, plainDateTimeSlots0, ...displayOptions);
|
|
1392
|
+
}
|
|
1393
|
+
function formatPlainDateIso(plainDateSlots, options) {
|
|
1394
|
+
return calendar = plainDateSlots.calendar, isoDate = plainDateSlots, calendarDisplay = refineDateDisplayOptions(options),
|
|
1395
|
+
formatIsoDateFields(isoDate) + formatCalendar(calendar, calendarDisplay);
|
|
1396
|
+
var calendar, isoDate, calendarDisplay;
|
|
1397
|
+
}
|
|
1398
|
+
function formatPlainYearMonthIso(plainYearMonthSlots, options) {
|
|
1399
|
+
return formatDateLikeIso(plainYearMonthSlots.calendar, formatIsoYearMonthFields, plainYearMonthSlots, refineDateDisplayOptions(options));
|
|
1400
|
+
}
|
|
1401
|
+
function formatPlainMonthDayIso(plainMonthDaySlots, options) {
|
|
1402
|
+
return formatDateLikeIso(plainMonthDaySlots.calendar, formatIsoMonthDayFields, plainMonthDaySlots, refineDateDisplayOptions(options));
|
|
1403
|
+
}
|
|
1404
|
+
function formatDateLikeIso(calendar, formatSimple, isoDate, calendarDisplay) {
|
|
1405
|
+
const showCalendar = calendarDisplay > 1 || 0 === calendarDisplay && calendar !== isoCalendarImpl;
|
|
1406
|
+
return 1 === calendarDisplay ? calendar === isoCalendarImpl ? formatSimple(isoDate) : formatIsoDateFields(isoDate) : showCalendar ? formatIsoDateFields(isoDate) + formatCalendarId(getCalendarSlotId(calendar), 2 === calendarDisplay) : formatSimple(isoDate);
|
|
1407
|
+
}
|
|
1408
|
+
function formatPlainTimeIso(slots, options) {
|
|
1409
|
+
return ((fields, roundingMode, nanoInc, subsecDigits) => formatTimeFields(roundTimeToInc(fields, nanoInc, roundingMode)[0], subsecDigits))(slots, ...refineTimeDisplayOptions(options));
|
|
1410
|
+
}
|
|
1411
|
+
function formatDurationIso(slots, options) {
|
|
1412
|
+
const [roundingMode, nanoInc, subsecDigits] = refineTimeDisplayOptions(options, 3);
|
|
1413
|
+
return nanoInc > 1 && validateDurationFields(slots = {
|
|
1414
|
+
...slots,
|
|
1415
|
+
...roundDayTimeDurationByInc(slots, nanoInc, roundingMode)
|
|
1416
|
+
}), ((durationSlots, subsecDigits) => {
|
|
1417
|
+
const {sign: sign} = durationSlots;
|
|
1418
|
+
const abs = -1 === sign ? negateDurationFields(durationSlots) : durationSlots;
|
|
1419
|
+
const {hours: hours, minutes: minutes} = abs;
|
|
1420
|
+
const bigNano = durationSubMinuteToBigNano(abs);
|
|
1421
|
+
const wholeSec = Number(bigNano / bigNanoInSec);
|
|
1422
|
+
const subsecNano = Number(bigNano % bigNanoInSec);
|
|
1423
|
+
validateDurationTimeUnit(wholeSec);
|
|
1424
|
+
const subsecNanoString = formatSubsecNano(subsecNano, subsecDigits);
|
|
1425
|
+
const forceSec = subsecDigits >= 0 || !sign || subsecNanoString;
|
|
1426
|
+
return (sign < 0 ? "-" : "") + "P" + formatDurationFragments({
|
|
1427
|
+
Y: formatDurationNumber(abs.years),
|
|
1428
|
+
M: formatDurationNumber(abs.months),
|
|
1429
|
+
W: formatDurationNumber(abs.weeks),
|
|
1430
|
+
D: formatDurationNumber(abs.days)
|
|
1431
|
+
}) + (hours || minutes || wholeSec || forceSec ? "T" + formatDurationFragments({
|
|
1432
|
+
H: formatDurationNumber(hours),
|
|
1433
|
+
M: formatDurationNumber(minutes),
|
|
1434
|
+
S: formatDurationNumber(wholeSec, forceSec) + subsecNanoString
|
|
1435
|
+
}) : "");
|
|
1436
|
+
})(slots, subsecDigits);
|
|
1437
|
+
}
|
|
1438
|
+
function formatDurationFragments(fragObj) {
|
|
1439
|
+
const parts = [];
|
|
1440
|
+
for (const fragName in fragObj) {
|
|
1441
|
+
const fragVal = fragObj[fragName];
|
|
1442
|
+
fragVal && parts.push(fragVal, fragName);
|
|
1443
|
+
}
|
|
1444
|
+
return parts.join("");
|
|
1445
|
+
}
|
|
1446
|
+
function formatDurationNumber(n, force) {
|
|
1447
|
+
if (!n && !force) {
|
|
1448
|
+
return "";
|
|
1449
|
+
}
|
|
1450
|
+
const options = Object.create(null);
|
|
1451
|
+
return options.useGrouping = 0, n.toLocaleString("fullwide", options);
|
|
1452
|
+
}
|
|
1453
|
+
function formatIsoDateTimeFields(isoDateTime, subsecDigits) {
|
|
1454
|
+
return formatIsoDateFields(isoDateTime) + "T" + formatTimeFields(isoDateTime, subsecDigits);
|
|
1455
|
+
}
|
|
1456
|
+
function formatIsoDateFields(isoDate) {
|
|
1457
|
+
return formatIsoYearMonthFields(isoDate) + "-" + padNumber2(isoDate.day);
|
|
1458
|
+
}
|
|
1459
|
+
function formatIsoYearMonthFields(isoDate) {
|
|
1460
|
+
const {year: year} = isoDate;
|
|
1461
|
+
return (year < 0 || year > 9999 ? getSignStr(year) + padNumber(6, Math.abs(year)) : padNumber(4, year)) + "-" + padNumber2(isoDate.month);
|
|
1462
|
+
}
|
|
1463
|
+
function formatIsoMonthDayFields(isoDate) {
|
|
1464
|
+
return padNumber2(isoDate.month) + "-" + padNumber2(isoDate.day);
|
|
1465
|
+
}
|
|
1466
|
+
function formatTimeFields(timeFields, subsecDigits) {
|
|
1467
|
+
const parts = [ padNumber2(timeFields.hour), padNumber2(timeFields.minute) ];
|
|
1468
|
+
return -1 !== subsecDigits && parts.push(padNumber2(timeFields.second) + ((millisecond, microsecond, nanosecond, subsecDigits) => formatSubsecNano(millisecond * nanoInMilli + 1e3 * microsecond + nanosecond, subsecDigits))(timeFields.millisecond, timeFields.microsecond, timeFields.nanosecond, subsecDigits)),
|
|
1469
|
+
parts.join(":");
|
|
1470
|
+
}
|
|
1471
|
+
function formatOffsetNano(offsetNano, offsetDisplay = 0) {
|
|
1472
|
+
if (1 === offsetDisplay) {
|
|
1473
|
+
return "";
|
|
1474
|
+
}
|
|
1475
|
+
const [hour, nanoRemainder0] = divModFloor(Math.abs(offsetNano), nanoInHour);
|
|
1476
|
+
const [minute, nanoRemainder1] = divModFloor(nanoRemainder0, nanoInMinute);
|
|
1477
|
+
const [second, nanoRemainder2] = divModFloor(nanoRemainder1, nanoInSec);
|
|
1478
|
+
return getSignStr(offsetNano) + padNumber2(hour) + ":" + padNumber2(minute) + (second || nanoRemainder2 ? ":" + padNumber2(second) + formatSubsecNano(nanoRemainder2) : "");
|
|
1479
|
+
}
|
|
1480
|
+
function formatCalendar(calendar, calendarDisplay) {
|
|
1481
|
+
return calendarDisplay > 1 || 0 === calendarDisplay && calendar !== isoCalendarImpl ? formatCalendarId(getCalendarSlotId(calendar), 2 === calendarDisplay) : "";
|
|
1482
|
+
}
|
|
1483
|
+
function formatCalendarId(calendarId, isCritical) {
|
|
1484
|
+
return "[" + (isCritical ? "!" : "") + "u-ca=" + calendarId + "]";
|
|
1485
|
+
}
|
|
1486
|
+
function formatSubsecNano(totalNano, subsecDigits) {
|
|
1487
|
+
let s = padNumber(9, totalNano);
|
|
1488
|
+
return s = void 0 === subsecDigits ? s.replace(trailingZerosRE, "") : s.slice(0, subsecDigits),
|
|
1489
|
+
s ? "." + s : "";
|
|
1490
|
+
}
|
|
1491
|
+
function getSignStr(num) {
|
|
1492
|
+
return num < 0 ? "-" : "+";
|
|
1493
|
+
}
|
|
1494
|
+
function resolveTimeZoneId(rawId) {
|
|
1495
|
+
return resolveTimeZoneRecord(rawId).id;
|
|
1496
|
+
}
|
|
1497
|
+
function resolveTimeZoneRecord(rawId) {
|
|
1498
|
+
const upperRawId = rawId.toUpperCase();
|
|
1499
|
+
const offsetRecord = (upperRawId => {
|
|
1500
|
+
const offsetNano = parseOffsetNanoMaybe(upperRawId, 1);
|
|
1501
|
+
if (void 0 !== offsetNano) {
|
|
1502
|
+
return {
|
|
1503
|
+
id: formatOffsetNano(offsetNano),
|
|
1504
|
+
Z: offsetNano,
|
|
1505
|
+
m: offsetNano
|
|
1506
|
+
};
|
|
1507
|
+
}
|
|
1508
|
+
})(upperRawId);
|
|
1509
|
+
if (offsetRecord) {
|
|
1510
|
+
return {
|
|
1511
|
+
kind: "fixed",
|
|
1512
|
+
...offsetRecord
|
|
1513
|
+
};
|
|
1514
|
+
}
|
|
1515
|
+
const normId = "UTC" === upperRawId ? "UTC" : (rawId => (badCharactersRegExp.test(rawId) && throwRangeError(invalidTimeZone(rawId)),
|
|
1516
|
+
icuRegExp.test(rawId) && throwRangeError("Forbidden ICU TimeZone"), rawId.toLowerCase().split("/").map((part, partI) => (part.length <= 3 || /\d/.test(part)) && !/etc|yap/.test(part) ? part.toUpperCase() : part.replace(/baja|dumont|[a-z]+/g, (a, i) => a.length <= 2 && !partI || "in" === a || "chat" === a ? a.toUpperCase() : a.length > 2 || !i ? capitalize(a).replace(/island|noronha|murdo|rivadavia|urville/, capitalize) : a)).join("/")))(rawId);
|
|
1517
|
+
return queryNamedTimeZoneRecord(normId);
|
|
1518
|
+
}
|
|
1519
|
+
function queryTimeZone(rawTimeZoneId) {
|
|
1520
|
+
const record = resolveTimeZoneRecord(rawTimeZoneId);
|
|
1521
|
+
return queryTimeZoneRecord(record.id, record);
|
|
1522
|
+
}
|
|
1523
|
+
function getCurrentEpochSec() {
|
|
1524
|
+
return Math.floor(Date.now() / 1e3);
|
|
1525
|
+
}
|
|
1526
|
+
function createSplitTuple(startEpochSec, endEpochSec) {
|
|
1527
|
+
return [ startEpochSec, endEpochSec ];
|
|
1528
|
+
}
|
|
1529
|
+
function computePeriod(epochSec, periodSec) {
|
|
1530
|
+
const startEpochSec = Math.floor(epochSec / periodSec) * periodSec;
|
|
1531
|
+
return [ startEpochSec, startEpochSec + periodSec ];
|
|
1532
|
+
}
|
|
1533
|
+
function clampIntlSampleEpochSec(epochSec) {
|
|
1534
|
+
return constrainToRange(epochSec, -1e10, 864e10);
|
|
1535
|
+
}
|
|
1536
|
+
function throwFailedParse(s) {
|
|
1537
|
+
throwRangeError(failedParse(s));
|
|
1538
|
+
}
|
|
1539
|
+
function requireIsoCalendar(organized) {
|
|
1540
|
+
"iso8601" !== organized.calendarId && throwRangeError(invalidSubstring(organized.calendarId));
|
|
1541
|
+
}
|
|
1542
|
+
function parsePlainDateLike(s) {
|
|
1543
|
+
const organized = parseDateTimeLike(s);
|
|
1544
|
+
return organized && !organized.F || throwFailedParse(s), organized;
|
|
1545
|
+
}
|
|
1546
|
+
function finalizeDateLike(organized, isoDateProjector, resolveCalendar) {
|
|
1547
|
+
return isoDateProjector && "iso8601" === organized.calendarId ? (validateIsoDateFields(organized),
|
|
1548
|
+
organized.te && validateTimeFields(organized), finalizeDate(isoDateProjector(organized), resolveCalendar)) : organized.te ? finalizeDateTime(organized, resolveCalendar) : finalizeDate(organized, resolveCalendar);
|
|
1549
|
+
}
|
|
1550
|
+
function projectIsoYearMonthDate(organized) {
|
|
1551
|
+
const day = 12 * organized.year + organized.month === isoYearMonthIndexMin ? 20 : 1;
|
|
1552
|
+
return {
|
|
1553
|
+
...organized,
|
|
1554
|
+
day: day
|
|
1555
|
+
};
|
|
1556
|
+
}
|
|
1557
|
+
function projectIsoMonthDayDate(organized) {
|
|
1558
|
+
return {
|
|
1559
|
+
...organized,
|
|
1560
|
+
year: 1972
|
|
1561
|
+
};
|
|
1562
|
+
}
|
|
1563
|
+
function finalizeZonedDateTime(organized, resolveCalendar, options) {
|
|
1564
|
+
const timeZone = queryTimeZone(resolveTimeZoneId(organized.timeZoneId));
|
|
1565
|
+
let epochNano;
|
|
1566
|
+
if (validateIsoDateTimeFields(organized), organized.te) {
|
|
1567
|
+
const offsetNano = organized.offset ? parseOffsetNano(organized.offset) : void 0;
|
|
1568
|
+
const [, offsetDisambig, epochDisambig] = refineZonedFieldOptions(options);
|
|
1569
|
+
epochNano = getMatchingInstantFor(timeZone, organized, offsetNano, offsetDisambig, epochDisambig, !(timeZone.Z || void 0 === organized.offset || (offset = organized.offset,
|
|
1570
|
+
offset.replace(/\D/g, "").length > 4)), organized.F);
|
|
1571
|
+
} else {
|
|
1572
|
+
refineZonedFieldOptions(options), epochNano = getStartOfDayInstantFor(timeZone, organized);
|
|
1573
|
+
}
|
|
1574
|
+
var offset;
|
|
1575
|
+
return checkEpochNanoInBounds(epochNano), createZonedEpochNanoSlots(epochNano, timeZone, resolveCalendar(organized.calendarId));
|
|
1576
|
+
}
|
|
1577
|
+
function finalizeDateTime(organized, resolveCalendar) {
|
|
1578
|
+
return validateIsoDateTimeFields(organized), checkIsoDateTimeInBounds(organized),
|
|
1579
|
+
{
|
|
1580
|
+
...combineDateAndTime(organized, organized),
|
|
1581
|
+
calendar: resolveCalendar(organized.calendarId)
|
|
1582
|
+
};
|
|
1583
|
+
}
|
|
1584
|
+
function finalizeDate(organized, resolveCalendar) {
|
|
1585
|
+
return validateIsoDateFields(organized), checkIsoDateInBounds(organized), {
|
|
1586
|
+
calendar: resolveCalendar(organized.calendarId),
|
|
1587
|
+
year: organized.year,
|
|
1588
|
+
month: organized.month,
|
|
1589
|
+
day: organized.day
|
|
1590
|
+
};
|
|
1591
|
+
}
|
|
1592
|
+
function timeRegExpStr(separatorIndex) {
|
|
1593
|
+
return `(\\d{2})(?:(:?)(\\d{2})(?:\\${separatorIndex}(\\d{2})(?:[.,](\\d{1,9}))?)?)?`;
|
|
1594
|
+
}
|
|
1595
|
+
function parseDateTimeLike(s) {
|
|
1596
|
+
const parts = dateTimeRegExp.exec(s);
|
|
1597
|
+
return parts ? (parts => {
|
|
1598
|
+
const zOrOffset = parts[12];
|
|
1599
|
+
const hasZ = "Z" === (zOrOffset || "").toUpperCase();
|
|
1600
|
+
return {
|
|
1601
|
+
year: organizeIsoYearParts(parts),
|
|
1602
|
+
month: parseInt(parts[5]),
|
|
1603
|
+
day: parseInt(parts[6]),
|
|
1604
|
+
...organizeTimeParts(parts, 7),
|
|
1605
|
+
...organizeAnnotationParts(parts[19]),
|
|
1606
|
+
te: Boolean(parts[7]),
|
|
1607
|
+
F: hasZ,
|
|
1608
|
+
offset: hasZ ? void 0 : zOrOffset
|
|
1609
|
+
};
|
|
1610
|
+
})(parts) : void 0;
|
|
1611
|
+
}
|
|
1612
|
+
function parseYearMonthOnly(s) {
|
|
1613
|
+
const parts = yearMonthRegExp.exec(s);
|
|
1614
|
+
if (parts) {
|
|
1615
|
+
return (parts => ({
|
|
1616
|
+
year: organizeIsoYearParts(parts),
|
|
1617
|
+
month: parseInt(parts[4]),
|
|
1618
|
+
day: 1,
|
|
1619
|
+
...organizeAnnotationParts(parts[5])
|
|
1620
|
+
}))(parts);
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
function parseMonthDayOnly(s) {
|
|
1624
|
+
const parts = monthDayRegExp.exec(s);
|
|
1625
|
+
return parts ? (parts => ({
|
|
1626
|
+
year: 1972,
|
|
1627
|
+
month: parseInt(parts[1]),
|
|
1628
|
+
day: parseInt(parts[2]),
|
|
1629
|
+
...organizeAnnotationParts(parts[3])
|
|
1630
|
+
}))(parts) : void 0;
|
|
1631
|
+
}
|
|
1632
|
+
function parseTimeOnlyParts(s) {
|
|
1633
|
+
const parts = timeRegExp.exec(s);
|
|
1634
|
+
if (parts) {
|
|
1635
|
+
return parts[6] && parseOffsetNano(parts[6]), parts;
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
function organizeTimeParts(parts, hourIndex) {
|
|
1639
|
+
const second = parseInt0(parts[hourIndex + 3]);
|
|
1640
|
+
return {
|
|
1641
|
+
...nanoToTimeAndDay(parseSubsecNano(parts[hourIndex + 4] || ""))[0],
|
|
1642
|
+
hour: parseInt0(parts[hourIndex]),
|
|
1643
|
+
minute: parseInt0(parts[hourIndex + 2]),
|
|
1644
|
+
second: 60 === second ? 59 : second
|
|
1645
|
+
};
|
|
1646
|
+
}
|
|
1647
|
+
function organizeIsoYearParts(parts) {
|
|
1648
|
+
const yearSign = parseSign(parts[1]);
|
|
1649
|
+
const year = parseInt(parts[2] || parts[3]);
|
|
1650
|
+
return yearSign < 0 && !year && throwRangeError(invalidSubstring(-0)), yearSign * year;
|
|
1651
|
+
}
|
|
1652
|
+
function organizeAnnotationParts(s) {
|
|
1653
|
+
let calendarIsCritical;
|
|
1654
|
+
let timeZoneId;
|
|
1655
|
+
const calendarIds = [];
|
|
1656
|
+
return s.replace(annotationRegExp, (whole, criticalStr, mainStr) => {
|
|
1657
|
+
const isCritical = Boolean(criticalStr);
|
|
1658
|
+
const [val, name] = mainStr.split("=").reverse();
|
|
1659
|
+
return name ? "u-ca" === name ? (calendarIds.push(val.toLowerCase()), calendarIsCritical || (calendarIsCritical = isCritical)) : (isCritical || /[A-Z]/.test(name)) && throwRangeError(invalidSubstring(whole)) : (timeZoneId && throwRangeError(invalidSubstring(whole)),
|
|
1660
|
+
timeZoneId = val), "";
|
|
1661
|
+
}), calendarIds.length > 1 && calendarIsCritical && throwRangeError(invalidSubstring(s)),
|
|
1662
|
+
{
|
|
1663
|
+
timeZoneId: timeZoneId,
|
|
1664
|
+
calendarId: calendarIds[0] || "iso8601"
|
|
1665
|
+
};
|
|
1666
|
+
}
|
|
1667
|
+
function mergeCalendarFields(calendar, baseFields, additionalFields) {
|
|
1668
|
+
const merged = Object.assign(Object.create(null), baseFields);
|
|
1669
|
+
return spliceFields(merged, additionalFields, monthFieldNames), getCalendarEraOrigins(calendar) && (spliceFields(merged, additionalFields, allYearFieldNames),
|
|
1670
|
+
calendar && calendar.je && spliceFields(merged, additionalFields, monthDayFieldNames, eraYearFieldNames)),
|
|
1671
|
+
merged;
|
|
1672
|
+
}
|
|
1673
|
+
function spliceFields(dest, additional, allPropNames, deletablePropNames) {
|
|
1674
|
+
let anyMatching = 0;
|
|
1675
|
+
const nonMatchingPropNames = [];
|
|
1676
|
+
for (const propName of allPropNames) {
|
|
1677
|
+
void 0 !== additional[propName] ? anyMatching = 1 : nonMatchingPropNames.push(propName);
|
|
1678
|
+
}
|
|
1679
|
+
if (Object.assign(dest, additional), anyMatching) {
|
|
1680
|
+
for (const deletablePropName of deletablePropNames || nonMatchingPropNames) {
|
|
1681
|
+
delete dest[deletablePropName];
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
function computeMonthCode(calendar, year, month) {
|
|
1686
|
+
const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, year, month);
|
|
1687
|
+
return formatMonthCode(monthCodeNumber, isLeapMonth);
|
|
1688
|
+
}
|
|
1689
|
+
function totalDuration(refineRelativeTo, slots, options) {
|
|
1690
|
+
const [totalUnit, relativeToSlots] = ((options, refineRelativeTo) => {
|
|
1691
|
+
const relativeToInternals = refineRelativeTo((options = normalizeOptionsOrString(options, "unit")).relativeTo);
|
|
1692
|
+
let totalUnit = coerceTotalUnit(options);
|
|
1693
|
+
return totalUnit = requirePropDefined("unit", totalUnit), [ totalUnit, relativeToInternals ];
|
|
1694
|
+
})(options, refineRelativeTo);
|
|
1695
|
+
const maxDurationUnit = getMaxDurationUnit(slots);
|
|
1696
|
+
const maxUnit = Math.max(totalUnit, maxDurationUnit);
|
|
1697
|
+
const isZoned = relativeToSlots && isZonedEpochSlots(relativeToSlots);
|
|
1698
|
+
if (!relativeToSlots && isUniformUnit(maxUnit, isZoned)) {
|
|
1699
|
+
return totalDayTimeDuration(slots, totalUnit);
|
|
1700
|
+
}
|
|
1701
|
+
if (relativeToSlots || throwRangeError("Missing relativeTo"), !slots.sign && (!isZoned || totalUnit < 6)) {
|
|
1702
|
+
return 0;
|
|
1703
|
+
}
|
|
1704
|
+
const [balancedDuration, endEpochNano, relativeOps] = spanRelativeDuration(relativeToSlots, slots, totalUnit);
|
|
1705
|
+
return isUniformUnit(totalUnit, isZoned) ? totalDayTimeDuration(balancedDuration, totalUnit) : ((durationFields, endEpochNano, totalUnit, relativeOps) => {
|
|
1706
|
+
const fieldName = durationFieldNamesAsc[totalUnit];
|
|
1707
|
+
const baseDurationFields = clearDurationFields(totalUnit, durationFields);
|
|
1708
|
+
return ((wholeValue, sign, endEpochNano) => {
|
|
1709
|
+
const unitWindow = clampRelativeUnitValue(wholeValue, sign, value => (baseDurationFields[fieldName] = value,
|
|
1710
|
+
moveRelativeMarkerToEpochNano(relativeOps, baseDurationFields)), endEpochNano);
|
|
1711
|
+
return interpolateRelativeUnitWindow(unitWindow, Number(endEpochNano - unitWindow.I) / Number(unitWindow.O - unitWindow.I));
|
|
1712
|
+
})(durationFields[fieldName], computeDurationSign(durationFields) || 1, endEpochNano);
|
|
1713
|
+
})(balancedDuration, endEpochNano, totalUnit, relativeOps);
|
|
1714
|
+
}
|
|
1715
|
+
function totalDayTimeDuration(durationFields, totalUnit) {
|
|
1716
|
+
return divideBigNanoToExactNumber(durationDayTimeToBigNano(durationFields), unitNanoMap[totalUnit]);
|
|
1717
|
+
}
|
|
1718
|
+
function zonedDateTimeToDateTime(zonedDateTimeSlots0) {
|
|
1719
|
+
return createDateTimeSlots(zonedEpochSlotsToIso(zonedDateTimeSlots0), zonedDateTimeSlots0.calendar);
|
|
1720
|
+
}
|
|
1721
|
+
function zonedDateTimeToDate(zonedDateTimeSlots0) {
|
|
1722
|
+
return createDateSlots(zonedEpochSlotsToIso(zonedDateTimeSlots0), zonedDateTimeSlots0.calendar);
|
|
1723
|
+
}
|
|
1724
|
+
function zonedDateTimeToTime(zonedDateTimeSlots0) {
|
|
1725
|
+
return createTimeSlots(zonedEpochSlotsToIso(zonedDateTimeSlots0));
|
|
1726
|
+
}
|
|
1727
|
+
function mergeFieldsIntoDate(calendar, inputFields, extraFields) {
|
|
1728
|
+
const mergedFieldNames = getCalendarFieldNames(calendar, yearMonthCodeDayFieldNamesAlpha, yearMonthCodeDayFieldNamesWithEraAlpha);
|
|
1729
|
+
let mergedFields = mergeCalendarFields(calendar, inputFields, extraFields);
|
|
1730
|
+
mergedFields = readAndRefineBagFields(mergedFields, mergedFieldNames, dateFieldRefiners, []);
|
|
1731
|
+
const [year, monthCodeParts] = refineCalendarDateFields(mergedFields, calendar);
|
|
1732
|
+
return createDateFromRefinedFields(mergedFields, calendar, year, monthCodeParts, 0);
|
|
1733
|
+
}
|
|
1734
|
+
function applyPlainFormatTimeZone(options) {
|
|
1735
|
+
return options.timeZone = "UTC", [ "full", "long" ].includes(options.timeStyle) && (options.timeStyle = "medium"),
|
|
1736
|
+
options;
|
|
1737
|
+
}
|
|
1738
|
+
function checkResolvedCalendarCompatible(format, slots, strictCalendarCheck) {
|
|
1739
|
+
const resolvedCalendarId = format.resolvedOptions().calendar;
|
|
1740
|
+
!strictCalendarCheck && slots.calendar === isoCalendarImpl || getCalendarSlotId(slots.calendar) === resolvedCalendarId || throwRangeError("Mismatching Calendars");
|
|
1741
|
+
}
|
|
1742
|
+
function createOptionsTransformer(shapeFieldNames, invalidShapeFieldNames, ignoredFieldNames, defaultShapeFields, dateStyleReplacementFields) {
|
|
1743
|
+
const shapeFieldNameSet = new Set(shapeFieldNames);
|
|
1744
|
+
const invalidShapeFieldNameSet = new Set(invalidShapeFieldNames);
|
|
1745
|
+
const ignoredFieldNameSet = new Set(ignoredFieldNames);
|
|
1746
|
+
return (options, allowPartialOverlap) => {
|
|
1747
|
+
let dateStyle;
|
|
1748
|
+
let timeStyle;
|
|
1749
|
+
const granularShapeFields = {};
|
|
1750
|
+
const modifierFields = {};
|
|
1751
|
+
const otherFields = {};
|
|
1752
|
+
let hasInvalidGranularShapeFields = 0;
|
|
1753
|
+
let hasInvalidStyleFields = 0;
|
|
1754
|
+
for (const name of Object.keys(options)) {
|
|
1755
|
+
const value = options[name];
|
|
1756
|
+
void 0 === value || ignoredFieldNameSet.has(name) || (shapeFieldNameSet.has(name) ? "dateStyle" === name ? dateStyle = value : "timeStyle" === name ? timeStyle = value : granularShapeFields[name] = value : "era" === name ? modifierFields[name] = value : invalidShapeFieldNameSet.has(name) ? "dateStyle" === name || "timeStyle" === name ? hasInvalidStyleFields = 1 : hasInvalidGranularShapeFields = 1 : otherFields[name] = value);
|
|
1757
|
+
}
|
|
1758
|
+
const hasDateStyle = void 0 !== dateStyle;
|
|
1759
|
+
const hasTimeStyle = void 0 !== timeStyle;
|
|
1760
|
+
const hasAnyStyle = hasDateStyle || hasTimeStyle;
|
|
1761
|
+
const hasGranularShapeFields = Object.keys(granularShapeFields).length > 0;
|
|
1762
|
+
const hasInvalids = hasInvalidGranularShapeFields || hasInvalidStyleFields;
|
|
1763
|
+
const hasShapeFields = hasGranularShapeFields || hasDateStyle || hasTimeStyle;
|
|
1764
|
+
const hasModifierFields = Object.keys(modifierFields).length > 0;
|
|
1765
|
+
(!allowPartialOverlap && hasInvalids || allowPartialOverlap && hasInvalids && !hasShapeFields || hasAnyStyle && (hasGranularShapeFields || hasModifierFields || hasInvalidGranularShapeFields)) && throwTypeError("Invalid formatting options");
|
|
1766
|
+
const transformedOptions = {};
|
|
1767
|
+
return hasAnyStyle || hasShapeFields || Object.assign(transformedOptions, defaultShapeFields),
|
|
1768
|
+
Object.assign(transformedOptions, granularShapeFields, modifierFields, otherFields),
|
|
1769
|
+
hasDateStyle && (dateStyleReplacementFields ? Object.assign(transformedOptions, dateStyleReplacementFields[dateStyle]) : transformedOptions.dateStyle = dateStyle),
|
|
1770
|
+
hasTimeStyle && (transformedOptions.timeStyle = timeStyle), transformedOptions;
|
|
1771
|
+
};
|
|
1772
|
+
}
|
|
1773
|
+
function getCurrentIsoDateTime(timeZone) {
|
|
1774
|
+
const epochNano = getCurrentEpochNano();
|
|
1775
|
+
const offsetNano = timeZone.B(epochNano);
|
|
1776
|
+
return epochNanoToIsoDateTime(epochNano + BigInt(offsetNano));
|
|
1777
|
+
}
|
|
1778
|
+
function getCurrentEpochNano() {
|
|
1779
|
+
return BigInt(Date.now()) * bigNanoInMilli;
|
|
1780
|
+
}
|
|
1781
|
+
function getCurrentTimeZoneId() {
|
|
1782
|
+
return (new RawDateTimeFormat).resolvedOptions().timeZone;
|
|
1783
|
+
}
|
|
1784
|
+
function defineTemporalClass(branding, cls, getSlots, ...getterMaps) {
|
|
1785
|
+
return Object.defineProperties(cls, createPropDescriptors({
|
|
1786
|
+
name: branding
|
|
1787
|
+
}, 1)), Object.defineProperties(cls.prototype, createStringTagDescriptors("Temporal." + branding)),
|
|
1788
|
+
Object.defineProperties(cls.prototype, mapProps(getter => ({
|
|
1789
|
+
get() {
|
|
1790
|
+
return getter(getSlots(this));
|
|
1791
|
+
},
|
|
1792
|
+
configurable: 1
|
|
1793
|
+
}), Object.assign({}, ...getterMaps))), cls;
|
|
1794
|
+
}
|
|
1795
|
+
function invalidRecordType() {
|
|
1796
|
+
throwTypeError("Invalid calling context");
|
|
1797
|
+
}
|
|
1798
|
+
function forbiddenValueOf() {
|
|
1799
|
+
throwTypeError("Cannot use valueOf");
|
|
1800
|
+
}
|
|
1801
|
+
function diffInstants(invert, instantSlots0, instantSlots1, options) {
|
|
1802
|
+
const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 3, 5);
|
|
1803
|
+
return createDiffDurationSlots(invert, diffEpochNanosRounded(instantSlots0.epochNanoseconds, instantSlots1.epochNanoseconds, largestUnit, smallestUnit, roundingInc, roundingMode));
|
|
1804
|
+
}
|
|
1805
|
+
function diffZonedDateTimes(invert, slots0, slots1, options) {
|
|
1806
|
+
const calendar = getCommonCalendar(slots0.calendar, slots1.calendar);
|
|
1807
|
+
const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 5);
|
|
1808
|
+
return createDiffDurationSlots(invert, function(calendar, startZoned, endZoned, largestUnit, smallestUnit, roundingInc, roundingMode) {
|
|
1809
|
+
return largestUnit < 6 ? diffEpochNanosRounded(startZoned.epochNanoseconds, endZoned.epochNanoseconds, largestUnit, smallestUnit, roundingInc, roundingMode) : ((calendar, startZoned, endZoned, largestUnit, smallestUnit, roundingInc, roundingMode) => {
|
|
1810
|
+
const endEpochNano = endZoned.epochNanoseconds;
|
|
1811
|
+
if (endEpochNano === startZoned.epochNanoseconds) {
|
|
1812
|
+
return durationFieldDefaults;
|
|
1813
|
+
}
|
|
1814
|
+
let durationFields;
|
|
1815
|
+
const timeZone = (a = startZoned.timeZone, b = endZoned.timeZone, a.m !== b.m && throwRangeError("Mismatching TimeZones"),
|
|
1816
|
+
a);
|
|
1817
|
+
var a, b;
|
|
1818
|
+
return durationFields = diffZonedEpochsExact(timeZone, calendar, startZoned, endZoned, largestUnit),
|
|
1819
|
+
durationFields = roundRelativeDuration(durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, createZonedRelativeOps(calendar, timeZone, startZoned), 1),
|
|
1820
|
+
durationFields;
|
|
1821
|
+
})(calendar, startZoned, endZoned, largestUnit, smallestUnit, roundingInc, roundingMode);
|
|
1822
|
+
}(calendar, slots0, slots1, largestUnit, smallestUnit, roundingInc, roundingMode));
|
|
1823
|
+
}
|
|
1824
|
+
function diffDateTimes(invert, plainDateTimeSlots0, plainDateTimeSlots1, options) {
|
|
1825
|
+
const calendar = getCommonCalendar(plainDateTimeSlots0.calendar, plainDateTimeSlots1.calendar);
|
|
1826
|
+
const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 6);
|
|
1827
|
+
return createDiffDurationSlots(invert, ((calendar, startIsoDateTime, endIsoDateTime, largestUnit, smallestUnit, roundingInc, roundingMode) => largestUnit <= 6 ? diffEpochNanosRounded(isoDateTimeToEpochNano(startIsoDateTime), isoDateTimeToEpochNano(endIsoDateTime), largestUnit, smallestUnit, roundingInc, roundingMode) : ((calendar, startIsoDateTime, endIsoDateTime, largestUnit, smallestUnit, roundingInc, roundingMode) => {
|
|
1828
|
+
const endEpochNano = isoDateTimeToEpochNano(endIsoDateTime);
|
|
1829
|
+
const sign = compareBigInts(endEpochNano, isoDateTimeToEpochNano(startIsoDateTime));
|
|
1830
|
+
if (!sign) {
|
|
1831
|
+
return durationFieldDefaults;
|
|
1832
|
+
}
|
|
1833
|
+
let durationFields;
|
|
1834
|
+
return durationFields = diffDateTimesBig(calendar, startIsoDateTime, endIsoDateTime, sign, largestUnit),
|
|
1835
|
+
durationFields = roundRelativeDuration(durationFields, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, ((calendar, origin) => ({
|
|
1836
|
+
ne: isoDateTimeToEpochNano(origin),
|
|
1837
|
+
ke(duration) {
|
|
1838
|
+
return isoDateTimeToEpochNano(combineDateAndTime(moveDate(calendar, origin, duration), origin));
|
|
1839
|
+
}
|
|
1840
|
+
}))(calendar, startIsoDateTime)), durationFields;
|
|
1841
|
+
})(calendar, startIsoDateTime, endIsoDateTime, largestUnit, smallestUnit, roundingInc, roundingMode))(calendar, plainDateTimeSlots0, plainDateTimeSlots1, largestUnit, smallestUnit, roundingInc, roundingMode));
|
|
1842
|
+
}
|
|
1843
|
+
function diffDates(invert, plainDateSlots0, plainDateSlots1, options) {
|
|
1844
|
+
const calendar = getCommonCalendar(plainDateSlots0.calendar, plainDateSlots1.calendar);
|
|
1845
|
+
const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 6, 9, 6);
|
|
1846
|
+
return createDiffDurationSlots(invert, ((calendar, startIsoDate, endIsoDate, largestUnit, smallestUnit, roundingInc, roundingMode, smallestPrecision = 6) => 6 === largestUnit ? diffEpochNanosRounded(isoDateToEpochNano(startIsoDate), isoDateToEpochNano(endIsoDate), largestUnit, smallestUnit, roundingInc, roundingMode) : diffDateCalendarUnitsRounded(calendar, startIsoDate, endIsoDate, largestUnit, smallestUnit, roundingInc, roundingMode, smallestPrecision))(calendar, plainDateSlots0, plainDateSlots1, largestUnit, smallestUnit, roundingInc, roundingMode));
|
|
1847
|
+
}
|
|
1848
|
+
function diffYearMonths(invert, plainYearMonthSlots0, plainYearMonthSlots1, options) {
|
|
1849
|
+
const calendar = getCommonCalendar(plainYearMonthSlots0.calendar, plainYearMonthSlots1.calendar);
|
|
1850
|
+
const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 9, 9, 8);
|
|
1851
|
+
return createDiffDurationSlots(invert, ((calendar, startIsoDate, endIsoDate, largestUnit, smallestUnit, roundingInc, roundingMode) => {
|
|
1852
|
+
const firstOfMonth0 = moveToStartOfMonth(calendar, startIsoDate);
|
|
1853
|
+
const firstOfMonth1 = moveToStartOfMonth(calendar, endIsoDate);
|
|
1854
|
+
return compareIsoDates(firstOfMonth0, firstOfMonth1) ? diffDateCalendarUnitsRounded(calendar, checkIsoDateInBounds(firstOfMonth0), checkIsoDateInBounds(firstOfMonth1), largestUnit, smallestUnit, roundingInc, roundingMode, 8) : durationFieldDefaults;
|
|
1855
|
+
})(calendar, plainYearMonthSlots0, plainYearMonthSlots1, largestUnit, smallestUnit, roundingInc, roundingMode));
|
|
1856
|
+
}
|
|
1857
|
+
function diffTimes(invert, plainTimeSlots0, plainTimeSlots1, options) {
|
|
1858
|
+
const [largestUnit, smallestUnit, roundingInc, roundingMode] = refineDiffOptions(invert, options, 5, 5);
|
|
1859
|
+
return createDiffDurationSlots(invert, ((plainTimeSlots0, plainTimeSlots1, largestUnit, smallestUnit, roundingInc, roundingMode) => {
|
|
1860
|
+
const timeDiffNano = roundNumberToInc(timeFieldsToNano(plainTimeSlots1) - timeFieldsToNano(plainTimeSlots0), computeNanoInc(smallestUnit, roundingInc), roundingMode);
|
|
1861
|
+
return {
|
|
1862
|
+
...durationFieldDefaults,
|
|
1863
|
+
...nanoToDurationTimeFields(timeDiffNano, largestUnit)
|
|
1864
|
+
};
|
|
1865
|
+
})(plainTimeSlots0, plainTimeSlots1, largestUnit, smallestUnit, roundingInc, roundingMode));
|
|
1866
|
+
}
|
|
1867
|
+
function createDiffDurationSlots(invert, durationFields) {
|
|
1868
|
+
return createDurationSlots(invert ? negateDurationFields(durationFields) : durationFields);
|
|
1869
|
+
}
|
|
1870
|
+
function createDateTimeFormatClass(getTemporalBrandingAndSlots) {
|
|
1871
|
+
return function(createArgsProvider, transformOptions = identity) {
|
|
1872
|
+
function getInternals(format) {
|
|
1873
|
+
const internals = internalsMap.get(format);
|
|
1874
|
+
return internals || throwTypeError("Invalid calling context"), internals;
|
|
1875
|
+
}
|
|
1876
|
+
function DateTimeFormat(locales, options) {
|
|
1877
|
+
return new ShimDateTimeFormat(locales, options);
|
|
1878
|
+
}
|
|
1879
|
+
const internalsMap = new WeakMap;
|
|
1880
|
+
class ShimDateTimeFormat {
|
|
1881
|
+
constructor(locales, options = Object.create(null)) {
|
|
1882
|
+
const transformedOptions = transformOptions(options);
|
|
1883
|
+
const observedOptionNames = [];
|
|
1884
|
+
const trackedOptions = new Proxy(Object.create(null), {
|
|
1885
|
+
get(_target, name) {
|
|
1886
|
+
const value = transformedOptions[name];
|
|
1887
|
+
return void 0 !== value && observedOptionNames.push(name), value;
|
|
1888
|
+
}
|
|
1889
|
+
});
|
|
1890
|
+
const baseFormat = new RawDateTimeFormat(locales, trackedOptions);
|
|
1891
|
+
const resolvedOptions = baseFormat.resolvedOptions();
|
|
1892
|
+
const copiedOptions = pluckProps(observedOptionNames, resolvedOptions);
|
|
1893
|
+
internalsMap.set(this, {
|
|
1894
|
+
$: createArgsProvider({
|
|
1895
|
+
t: baseFormat,
|
|
1896
|
+
Ce: resolvedOptions.locale,
|
|
1897
|
+
G: copiedOptions,
|
|
1898
|
+
Ee: transformedOptions
|
|
1899
|
+
}),
|
|
1900
|
+
t: baseFormat
|
|
1901
|
+
});
|
|
1902
|
+
}
|
|
1903
|
+
get format() {
|
|
1904
|
+
const internals = getInternals(this);
|
|
1905
|
+
return internals.we || (internals.we = record => {
|
|
1906
|
+
const [format, ...rest] = internals.$.A(record);
|
|
1907
|
+
return format.format(...rest);
|
|
1908
|
+
});
|
|
1909
|
+
}
|
|
1910
|
+
formatToParts(record) {
|
|
1911
|
+
const {$: argsProvider} = getInternals(this);
|
|
1912
|
+
const [format, ...rest] = argsProvider.A(record);
|
|
1913
|
+
return format.formatToParts(...rest);
|
|
1914
|
+
}
|
|
1915
|
+
resolvedOptions() {
|
|
1916
|
+
return getInternals(this).t.resolvedOptions();
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
const {prototype: prototype} = ShimDateTimeFormat;
|
|
1920
|
+
RawDateTimeFormat.prototype.formatRange && Object.defineProperties(prototype, createPropDescriptors({
|
|
1921
|
+
formatRange(record0, record1) {
|
|
1922
|
+
const {$: argsProvider} = getInternals(this);
|
|
1923
|
+
const [format, epochMilli0, epochMilli1] = argsProvider.v(record0, record1);
|
|
1924
|
+
return format.formatRange(epochMilli0, epochMilli1);
|
|
1925
|
+
},
|
|
1926
|
+
formatRangeToParts(record0, record1) {
|
|
1927
|
+
const {$: argsProvider} = getInternals(this);
|
|
1928
|
+
const [format, epochMilli0, epochMilli1] = argsProvider.v(record0, record1);
|
|
1929
|
+
return format.formatRangeToParts(epochMilli0, epochMilli1);
|
|
1930
|
+
}
|
|
1931
|
+
}));
|
|
1932
|
+
const rawStaticDescriptors = Object.getOwnPropertyDescriptors(RawDateTimeFormat);
|
|
1933
|
+
return rawStaticDescriptors.prototype.value = prototype, Object.defineProperties(DateTimeFormat, rawStaticDescriptors),
|
|
1934
|
+
prototype.constructor = DateTimeFormat, Object.defineProperties(prototype, createStringTagDescriptors("Intl.DateTimeFormat")),
|
|
1935
|
+
DateTimeFormat;
|
|
1936
|
+
}(internals => {
|
|
1937
|
+
const getTemporalFormat = memoize(branding => {
|
|
1938
|
+
let options;
|
|
1939
|
+
switch (branding) {
|
|
1940
|
+
case "Instant":
|
|
1941
|
+
options = transformInstantOptions(internals.G, 1);
|
|
1942
|
+
break;
|
|
1943
|
+
|
|
1944
|
+
case "PlainDateTime":
|
|
1945
|
+
options = applyPlainFormatTimeZone(transformDateTimeOptions(internals.G, 1));
|
|
1946
|
+
break;
|
|
1947
|
+
|
|
1948
|
+
case "PlainDate":
|
|
1949
|
+
options = applyPlainFormatTimeZone(transformDateOptions(internals.G, 1));
|
|
1950
|
+
break;
|
|
1951
|
+
|
|
1952
|
+
case "PlainTime":
|
|
1953
|
+
options = applyPlainFormatTimeZone(transformTimeOptions(internals.G, 1));
|
|
1954
|
+
break;
|
|
1955
|
+
|
|
1956
|
+
case "PlainYearMonth":
|
|
1957
|
+
options = applyPlainFormatTimeZone(transformYearMonthOptions(internals.G, 1));
|
|
1958
|
+
break;
|
|
1959
|
+
|
|
1960
|
+
case "PlainMonthDay":
|
|
1961
|
+
options = applyPlainFormatTimeZone(transformMonthDayOptions(internals.G, 1));
|
|
1962
|
+
break;
|
|
1963
|
+
|
|
1964
|
+
default:
|
|
1965
|
+
throwTypeError(invalidFormatType(branding));
|
|
1966
|
+
}
|
|
1967
|
+
return new RawDateTimeFormat(internals.Ce, options);
|
|
1968
|
+
});
|
|
1969
|
+
return {
|
|
1970
|
+
A(formattable) {
|
|
1971
|
+
if (void 0 === formattable) {
|
|
1972
|
+
return [ internals.t ];
|
|
1973
|
+
}
|
|
1974
|
+
const brandingAndSlots = getTemporalBrandingAndSlots(formattable);
|
|
1975
|
+
if (!brandingAndSlots) {
|
|
1976
|
+
return [ internals.t, Number(formattable) ];
|
|
1977
|
+
}
|
|
1978
|
+
const [branding, slots] = brandingAndSlots;
|
|
1979
|
+
const format = getTemporalFormat(branding);
|
|
1980
|
+
return checkTemporalDateTimeFormatCompatible(format, branding, slots), [ format, temporalDateTimeToEpochMilli(branding, slots) ];
|
|
1981
|
+
},
|
|
1982
|
+
v(start, end) {
|
|
1983
|
+
void 0 !== start && void 0 !== end || throwTypeError("Mismatching types for formatting");
|
|
1984
|
+
const startBrandingAndSlots = getTemporalBrandingAndSlots(start);
|
|
1985
|
+
const startEpochMilli = startBrandingAndSlots ? void 0 : Number(start);
|
|
1986
|
+
const endBrandingAndSlots = getTemporalBrandingAndSlots(end);
|
|
1987
|
+
const endEpochMilli = endBrandingAndSlots ? void 0 : Number(end);
|
|
1988
|
+
if (!startBrandingAndSlots && !endBrandingAndSlots) {
|
|
1989
|
+
return [ internals.t, startEpochMilli, endEpochMilli ];
|
|
1990
|
+
}
|
|
1991
|
+
startBrandingAndSlots && endBrandingAndSlots || throwTypeError("Mismatching types for formatting");
|
|
1992
|
+
const [startBranding, startSlots] = startBrandingAndSlots;
|
|
1993
|
+
const [endBranding, endSlots] = endBrandingAndSlots;
|
|
1994
|
+
startBranding !== endBranding && throwTypeError("Mismatching types for formatting");
|
|
1995
|
+
const format = getTemporalFormat(startBranding);
|
|
1996
|
+
return checkTemporalDateTimeFormatCompatible(format, startBranding, startSlots),
|
|
1997
|
+
checkTemporalDateTimeFormatCompatible(format, startBranding, endSlots), [ format, temporalDateTimeToEpochMilli(startBranding, startSlots), temporalDateTimeToEpochMilli(startBranding, endSlots) ];
|
|
1998
|
+
}
|
|
1999
|
+
};
|
|
2000
|
+
});
|
|
2001
|
+
}
|
|
2002
|
+
function checkTemporalDateTimeFormatCompatible(format, branding, slots) {
|
|
2003
|
+
switch (branding) {
|
|
2004
|
+
case "Instant":
|
|
2005
|
+
case "PlainTime":
|
|
2006
|
+
return;
|
|
2007
|
+
|
|
2008
|
+
case "PlainDateTime":
|
|
2009
|
+
case "PlainDate":
|
|
2010
|
+
return void checkResolvedCalendarCompatible(format, slots);
|
|
2011
|
+
|
|
2012
|
+
case "PlainYearMonth":
|
|
2013
|
+
case "PlainMonthDay":
|
|
2014
|
+
return void checkResolvedCalendarCompatible(format, slots, 1);
|
|
2015
|
+
|
|
2016
|
+
default:
|
|
2017
|
+
throwTypeError(invalidFormatType(branding));
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
function temporalDateTimeToEpochMilli(branding, slots) {
|
|
2021
|
+
switch (branding) {
|
|
2022
|
+
case "Instant":
|
|
2023
|
+
return epochNanoToMilli(slots.epochNanoseconds);
|
|
2024
|
+
|
|
2025
|
+
case "PlainDateTime":
|
|
2026
|
+
return isoDateTimeToEpochMilli(slots);
|
|
2027
|
+
|
|
2028
|
+
case "PlainDate":
|
|
2029
|
+
case "PlainYearMonth":
|
|
2030
|
+
case "PlainMonthDay":
|
|
2031
|
+
return isoDateToEpochMilli(slots);
|
|
2032
|
+
|
|
2033
|
+
case "PlainTime":
|
|
2034
|
+
return timeFieldsToMilli(slots);
|
|
2035
|
+
|
|
2036
|
+
default:
|
|
2037
|
+
throwTypeError(invalidFormatType(branding));
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
function createGregoryAlignedCalendar(config) {
|
|
2041
|
+
function calendarYearToIsoYear(year) {
|
|
2042
|
+
return year - isoYearOffset;
|
|
2043
|
+
}
|
|
2044
|
+
function isoYearToCalendarYear(year) {
|
|
2045
|
+
return year + isoYearOffset;
|
|
2046
|
+
}
|
|
2047
|
+
const isoYearOffset = config.se || 0;
|
|
2048
|
+
return {
|
|
2049
|
+
k: config.k,
|
|
2050
|
+
re: 1972 + isoYearOffset,
|
|
2051
|
+
je: config.je,
|
|
2052
|
+
de(isoDate) {
|
|
2053
|
+
return {
|
|
2054
|
+
...isoDate,
|
|
2055
|
+
year: isoYearToCalendarYear(isoDate.year)
|
|
2056
|
+
};
|
|
2057
|
+
},
|
|
2058
|
+
fe(year, month, day) {
|
|
2059
|
+
return computeIsoFieldsFromParts(calendarYearToIsoYear(year), month, day);
|
|
2060
|
+
},
|
|
2061
|
+
pe(year, month, day) {
|
|
2062
|
+
return isoPartsToEpochDays(calendarYearToIsoYear(year), month, day) * milliInUtcDay;
|
|
2063
|
+
},
|
|
2064
|
+
N(_year, month) {
|
|
2065
|
+
return computeIsoMonthCodeParts(month);
|
|
2066
|
+
},
|
|
2067
|
+
u(monthCodeNumber, isLeapMonth) {
|
|
2068
|
+
const yearMonth = computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, isLeapMonth);
|
|
2069
|
+
return yearMonth && {
|
|
2070
|
+
year: isoYearToCalendarYear(yearMonth.year),
|
|
2071
|
+
month: yearMonth.month
|
|
2072
|
+
};
|
|
2073
|
+
},
|
|
2074
|
+
q(year) {
|
|
2075
|
+
return computeIsoInLeapYear(calendarYearToIsoYear(year));
|
|
2076
|
+
},
|
|
2077
|
+
j() {
|
|
2078
|
+
return 12;
|
|
2079
|
+
},
|
|
2080
|
+
o(year, month) {
|
|
2081
|
+
return computeIsoDaysInMonth(calendarYearToIsoYear(year), month);
|
|
2082
|
+
},
|
|
2083
|
+
i(year) {
|
|
2084
|
+
return computeIsoDaysInYear(calendarYearToIsoYear(year));
|
|
2085
|
+
},
|
|
2086
|
+
p() {},
|
|
2087
|
+
h(isoDate) {
|
|
2088
|
+
return config.h?.(isoDate, isoYearToCalendarYear(isoDate.year)) || {};
|
|
2089
|
+
},
|
|
2090
|
+
ae(year, month, monthDelta) {
|
|
2091
|
+
const yearMonth = addIsoMonths(calendarYearToIsoYear(year), month, monthDelta);
|
|
2092
|
+
return {
|
|
2093
|
+
year: isoYearToCalendarYear(yearMonth.year),
|
|
2094
|
+
month: yearMonth.month
|
|
2095
|
+
};
|
|
2096
|
+
},
|
|
2097
|
+
ee(year0, month0, year1, month1) {
|
|
2098
|
+
return diffIsoMonthSlots(calendarYearToIsoYear(year0), month0, calendarYearToIsoYear(year1), month1);
|
|
2099
|
+
}
|
|
2100
|
+
};
|
|
2101
|
+
}
|
|
2102
|
+
function createIntlScrapedCalendarData(normCalendarId) {
|
|
2103
|
+
function rawEpochMilliToIntlFields(epochMilli) {
|
|
2104
|
+
return intlParts = formatEpochMilliToPartsRecord(intlFormat, epochMilli), {
|
|
2105
|
+
year: parseInt(intlParts.relatedYear || intlParts.year),
|
|
2106
|
+
month: 0,
|
|
2107
|
+
Be: intlParts.month,
|
|
2108
|
+
day: parseInt(intlParts.day)
|
|
2109
|
+
};
|
|
2110
|
+
var intlParts;
|
|
2111
|
+
}
|
|
2112
|
+
const intlFormat = new RawDateTimeFormat("en-u-hc-h23", {
|
|
2113
|
+
calendar: normCalendarId,
|
|
2114
|
+
timeZone: "UTC",
|
|
2115
|
+
era: "short",
|
|
2116
|
+
year: "numeric",
|
|
2117
|
+
month: "short",
|
|
2118
|
+
day: "numeric"
|
|
2119
|
+
});
|
|
2120
|
+
const queryYearData = (epochMilliToIntlFields => {
|
|
2121
|
+
const yearCorrection = epochMilliToIntlFields(0).year - 1970;
|
|
2122
|
+
return memoize(year => {
|
|
2123
|
+
let epochMilli = isoPartsToEpochDays(year - yearCorrection) * milliInUtcDay;
|
|
2124
|
+
let intlFields;
|
|
2125
|
+
let iterations = 0;
|
|
2126
|
+
const millisReversed = [];
|
|
2127
|
+
const monthStringsReversed = [];
|
|
2128
|
+
do {
|
|
2129
|
+
epochMilli += 3456e7;
|
|
2130
|
+
} while ((intlFields = epochMilliToIntlFields(epochMilli)).year <= year);
|
|
2131
|
+
do {
|
|
2132
|
+
epochMilli += (1 - intlFields.day) * milliInUtcDay, intlFields.year === year && (millisReversed.push(epochMilli),
|
|
2133
|
+
monthStringsReversed.push(intlFields.Be)), epochMilli -= milliInUtcDay, (++iterations > 500 || epochMilli < -864e13) && throwRangeError();
|
|
2134
|
+
} while ((intlFields = epochMilliToIntlFields(epochMilli)).year >= year);
|
|
2135
|
+
return {
|
|
2136
|
+
X: millisReversed.reverse(),
|
|
2137
|
+
ue: monthStringsReversed.reverse()
|
|
2138
|
+
};
|
|
2139
|
+
});
|
|
2140
|
+
})(rawEpochMilliToIntlFields);
|
|
2141
|
+
const queryFields = ((epochMilliToIntlFields, queryYearData) => memoize(isoDate => {
|
|
2142
|
+
const epochMilli = isoDateToEpochMilli(isoDate);
|
|
2143
|
+
const intlFields = epochMilliToIntlFields(epochMilli);
|
|
2144
|
+
return {
|
|
2145
|
+
...intlFields,
|
|
2146
|
+
month: computeIntlMonthIndex(queryYearData, intlFields.year, epochMilli)
|
|
2147
|
+
};
|
|
2148
|
+
}, WeakMap))(rawEpochMilliToIntlFields, queryYearData);
|
|
2149
|
+
return {
|
|
2150
|
+
le: queryFields,
|
|
2151
|
+
K: queryYearData
|
|
2152
|
+
};
|
|
2153
|
+
}
|
|
2154
|
+
function computeIsoFieldsFromIntlParts(intlData, year, month, day) {
|
|
2155
|
+
return ((epochMilli, microsecond = 0, nanosecond = 0) => {
|
|
2156
|
+
const [epochDays, milliAfterDay] = divModFloor(epochMilli, 864e5);
|
|
2157
|
+
return {
|
|
2158
|
+
...epochDaysToIsoDate(epochDays),
|
|
2159
|
+
...milliToTimeFields(milliAfterDay, microsecond, nanosecond)
|
|
2160
|
+
};
|
|
2161
|
+
})(computeIntlEpochMilli(intlData, year, month, day));
|
|
2162
|
+
}
|
|
2163
|
+
function computeIntlEpochMilli(intlData, year, month = 1, day = 1) {
|
|
2164
|
+
return intlData.K(year).X[month - 1] + (day - 1) * milliInUtcDay;
|
|
2165
|
+
}
|
|
2166
|
+
function computeIntlMonthCodeParts(intlData, leapMonthMeta, year, month) {
|
|
2167
|
+
const leapMonth = computeIntlLeapMonth(intlData, leapMonthMeta, year);
|
|
2168
|
+
return [ monthToMonthCodeNumber(month, leapMonth), leapMonth === month ];
|
|
2169
|
+
}
|
|
2170
|
+
function computeIntlLeapMonth(intlData, leapMonthMeta, year) {
|
|
2171
|
+
if (void 0 === leapMonthMeta) {
|
|
2172
|
+
return;
|
|
2173
|
+
}
|
|
2174
|
+
const currentMonthStrings = intlData.K(year).ue;
|
|
2175
|
+
if (currentMonthStrings.length <= 12) {
|
|
2176
|
+
return;
|
|
2177
|
+
}
|
|
2178
|
+
if (leapMonthMeta < 0) {
|
|
2179
|
+
return -leapMonthMeta;
|
|
2180
|
+
}
|
|
2181
|
+
for (let i = 1; i < currentMonthStrings.length; i++) {
|
|
2182
|
+
if (currentMonthStrings[i] === currentMonthStrings[i - 1]) {
|
|
2183
|
+
return i + 1;
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
for (let i = 0; i < currentMonthStrings.length; i++) {
|
|
2187
|
+
if (/bis$/i.test(currentMonthStrings[i])) {
|
|
2188
|
+
return i + 1;
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
const prevMonthStrings = intlData.K(year - 1).ue;
|
|
2192
|
+
for (let i = 0; i < currentMonthStrings.length; i++) {
|
|
2193
|
+
if (currentMonthStrings[i] !== prevMonthStrings[i]) {
|
|
2194
|
+
return i + 1;
|
|
2195
|
+
}
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
function computeIntlInLeapYear(intlData, leapMonthMeta, year) {
|
|
2199
|
+
if (void 0 !== leapMonthMeta) {
|
|
2200
|
+
return computeIntlMonthsInYear(intlData, year) > 12;
|
|
2201
|
+
}
|
|
2202
|
+
const daysInYear = computeIntlDaysInYear(intlData, year);
|
|
2203
|
+
return daysInYear > computeIntlDaysInYear(intlData, year - 1) || daysInYear > computeIntlDaysInYear(intlData, year + 1);
|
|
2204
|
+
}
|
|
2205
|
+
function computeIntlDaysInYear(intlData, year) {
|
|
2206
|
+
return diffEpochMilliDays(computeIntlEpochMilli(intlData, year), computeIntlEpochMilli(intlData, year + 1));
|
|
2207
|
+
}
|
|
2208
|
+
function computeIntlDaysInMonth(intlData, year, month) {
|
|
2209
|
+
const {X: monthEpochMillis} = intlData.K(year);
|
|
2210
|
+
let nextMonth = month + 1;
|
|
2211
|
+
let nextMonthEpochMilli = monthEpochMillis;
|
|
2212
|
+
return nextMonth > monthEpochMillis.length && (nextMonth = 1, nextMonthEpochMilli = intlData.K(year + 1).X),
|
|
2213
|
+
diffEpochMilliDays(monthEpochMillis[month - 1], nextMonthEpochMilli[nextMonth - 1]);
|
|
2214
|
+
}
|
|
2215
|
+
function computeIntlMonthsInYear(intlData, year) {
|
|
2216
|
+
return intlData.K(year).X.length;
|
|
2217
|
+
}
|
|
2218
|
+
function computeIntlYearMonthFieldsForMonthDay(intlData, leapMonthMeta, getMonthDaySearchStartYear, monthCodeNumber, isLeapMonth, day) {
|
|
2219
|
+
const startIsoYear = getMonthDaySearchStartYear?.(monthCodeNumber, isLeapMonth, day) || 1972;
|
|
2220
|
+
const startCalendarDateFields = intlData.le({
|
|
2221
|
+
year: startIsoYear,
|
|
2222
|
+
month: 12,
|
|
2223
|
+
day: 31
|
|
2224
|
+
});
|
|
2225
|
+
let {year: startYear, month: startMonth, day: startDay} = startCalendarDateFields;
|
|
2226
|
+
const startYearLeapMonth = computeIntlLeapMonth(intlData, leapMonthMeta, startYear);
|
|
2227
|
+
const startMonthIsLeap = startMonth === startYearLeapMonth;
|
|
2228
|
+
1 === (compareNumbers(monthCodeNumber, monthToMonthCodeNumber(startMonth, startYearLeapMonth)) || compareNumbers(Number(isLeapMonth), Number(startMonthIsLeap)) || compareNumbers(day, startDay)) && startYear--;
|
|
2229
|
+
for (let yearMove = 0; yearMove < 100; yearMove++) {
|
|
2230
|
+
const tryYear = startYear - yearMove;
|
|
2231
|
+
const tryLeapMonth = computeIntlLeapMonth(intlData, leapMonthMeta, tryYear);
|
|
2232
|
+
const tryMonth = monthCodeNumberToMonth(monthCodeNumber, isLeapMonth, tryLeapMonth);
|
|
2233
|
+
if (isLeapMonth === (tryMonth === tryLeapMonth) && day <= computeIntlDaysInMonth(intlData, tryYear, tryMonth)) {
|
|
2234
|
+
return {
|
|
2235
|
+
year: tryYear,
|
|
2236
|
+
month: tryMonth
|
|
2237
|
+
};
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
function addIntlMonths(intlData, year, month, monthDelta) {
|
|
2242
|
+
if (monthDelta) {
|
|
2243
|
+
if (Number.isSafeInteger(month += monthDelta) || throwRangeError(outOfBoundsDate),
|
|
2244
|
+
monthDelta < 0) {
|
|
2245
|
+
for (;month < 1; ) {
|
|
2246
|
+
month += computeIntlMonthsInYear(intlData, --year);
|
|
2247
|
+
}
|
|
2248
|
+
} else {
|
|
2249
|
+
let monthsInYear;
|
|
2250
|
+
for (;month > (monthsInYear = computeIntlMonthsInYear(intlData, year)); ) {
|
|
2251
|
+
month -= monthsInYear, year++;
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
return {
|
|
2256
|
+
year: year,
|
|
2257
|
+
month: month
|
|
2258
|
+
};
|
|
2259
|
+
}
|
|
2260
|
+
function diffIntlMonthSlots(intlData, year0, month0, year1, month1) {
|
|
2261
|
+
const cmp = compareNumbers(year0, year1) || compareNumbers(month0, month1);
|
|
2262
|
+
if (!cmp) {
|
|
2263
|
+
return 0;
|
|
2264
|
+
}
|
|
2265
|
+
if (year0 === year1) {
|
|
2266
|
+
return month1 - month0;
|
|
2267
|
+
}
|
|
2268
|
+
if (cmp < 0) {
|
|
2269
|
+
let months = computeIntlMonthsInYear(intlData, year0) - month0 + month1;
|
|
2270
|
+
for (let year = year0 + 1; year < year1; year++) {
|
|
2271
|
+
months += computeIntlMonthsInYear(intlData, year);
|
|
2272
|
+
}
|
|
2273
|
+
return months;
|
|
2274
|
+
}
|
|
2275
|
+
return -diffIntlMonthSlots(intlData, year1, month1, year0, month0);
|
|
2276
|
+
}
|
|
2277
|
+
function computeIntlMonthIndex(queryYearData, year, epochMilli) {
|
|
2278
|
+
const {X: monthEpochMillis} = queryYearData(year);
|
|
2279
|
+
for (let i = monthEpochMillis.length - 1; i >= 0; i--) {
|
|
2280
|
+
if (epochMilli >= monthEpochMillis[i]) {
|
|
2281
|
+
return i + 1;
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
throwRangeError();
|
|
2285
|
+
}
|
|
2286
|
+
function createArithmeticCalendar(ops) {
|
|
2287
|
+
function computeDefaultMonthCodeParts(year, month) {
|
|
2288
|
+
const leapMonth = ops.p?.(year);
|
|
2289
|
+
return [ monthToMonthCodeNumber(month, leapMonth), month === leapMonth ];
|
|
2290
|
+
}
|
|
2291
|
+
const monthDayReferenceDate = ops.J(2441683);
|
|
2292
|
+
const fromIsoDate = memoize(isoDate => ops.J(isoDateToEpochDays(isoDate) + 2440588), WeakMap);
|
|
2293
|
+
return {
|
|
2294
|
+
k: ops.k,
|
|
2295
|
+
l: ops.l,
|
|
2296
|
+
V: ops.V,
|
|
2297
|
+
U: ops.U,
|
|
2298
|
+
re: ops.re,
|
|
2299
|
+
_: ops._,
|
|
2300
|
+
ge: ops.ge,
|
|
2301
|
+
de: fromIsoDate,
|
|
2302
|
+
fe(year, month, day) {
|
|
2303
|
+
return epochDaysToIsoDate(ops.L(year, month, day) - 2440588);
|
|
2304
|
+
},
|
|
2305
|
+
pe(year, month = 1, day = 1) {
|
|
2306
|
+
return (ops.L(year, month, day) - 2440588) * milliInUtcDay;
|
|
2307
|
+
},
|
|
2308
|
+
N(year, month) {
|
|
2309
|
+
return (ops.N || computeDefaultMonthCodeParts)(year, month);
|
|
2310
|
+
},
|
|
2311
|
+
u(monthCodeNumber, isLeapMonth, day) {
|
|
2312
|
+
return ops.u?.(monthCodeNumber, isLeapMonth, day) || ((monthCodeNumber, isLeapMonth, day) => {
|
|
2313
|
+
isLeapMonth = Boolean(isLeapMonth);
|
|
2314
|
+
let referenceYear = ops.re || monthDayReferenceDate.year;
|
|
2315
|
+
const [referenceMonthCodeNumber, referenceIsLeapMonth] = computeDefaultMonthCodeParts(monthDayReferenceDate.year, monthDayReferenceDate.month);
|
|
2316
|
+
1 === (compareNumbers(monthCodeNumber, referenceMonthCodeNumber) || compareNumbers(Number(isLeapMonth), Number(referenceIsLeapMonth)) || compareNumbers(day, monthDayReferenceDate.day)) && referenceYear--;
|
|
2317
|
+
for (let yearDelta = 0; yearDelta < 100; yearDelta++) {
|
|
2318
|
+
for (const year of [ referenceYear - yearDelta, referenceYear + yearDelta ]) {
|
|
2319
|
+
const leapMonth = ops.p?.(year);
|
|
2320
|
+
const month = monthCodeNumberToMonth(monthCodeNumber, isLeapMonth, leapMonth);
|
|
2321
|
+
if (month <= ops.j(year) && isLeapMonth === (month === leapMonth) && day <= ops.o(year, month)) {
|
|
2322
|
+
return {
|
|
2323
|
+
year: year,
|
|
2324
|
+
month: month
|
|
2325
|
+
};
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
}
|
|
2329
|
+
})(monthCodeNumber, isLeapMonth, day);
|
|
2330
|
+
},
|
|
2331
|
+
q: ops.q,
|
|
2332
|
+
j: ops.j,
|
|
2333
|
+
o: ops.o,
|
|
2334
|
+
i: ops.i,
|
|
2335
|
+
p: ops.p || noop,
|
|
2336
|
+
h(isoDate) {
|
|
2337
|
+
const parts = fromIsoDate(isoDate);
|
|
2338
|
+
return ops.h ? ops.h(parts) : {
|
|
2339
|
+
era: parts.era,
|
|
2340
|
+
eraYear: parts.eraYear
|
|
2341
|
+
};
|
|
2342
|
+
},
|
|
2343
|
+
ae(year, month, monthDelta) {
|
|
2344
|
+
return ((computeMonthsInYear, year, month, monthDelta) => {
|
|
2345
|
+
if (monthDelta) {
|
|
2346
|
+
if (Number.isSafeInteger(month += monthDelta) || throwRangeError(outOfBoundsDate),
|
|
2347
|
+
monthDelta < 0) {
|
|
2348
|
+
for (;month < 1; ) {
|
|
2349
|
+
month += computeMonthsInYear(--year);
|
|
2350
|
+
}
|
|
2351
|
+
} else {
|
|
2352
|
+
let monthsInYear;
|
|
2353
|
+
for (;month > (monthsInYear = computeMonthsInYear(year)); ) {
|
|
2354
|
+
month -= monthsInYear, year++;
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
return {
|
|
2359
|
+
year: year,
|
|
2360
|
+
month: month
|
|
2361
|
+
};
|
|
2362
|
+
})(ops.j, year, month, monthDelta);
|
|
2363
|
+
},
|
|
2364
|
+
ee(year0, month0, year1, month1) {
|
|
2365
|
+
return diffArithmeticMonthSlots(ops.j, year0, month0, year1, month1);
|
|
2366
|
+
}
|
|
2367
|
+
};
|
|
2368
|
+
}
|
|
2369
|
+
function diffArithmeticMonthSlots(computeMonthsInYear, year0, month0, year1, month1) {
|
|
2370
|
+
const cmp = compareNumbers(year0, year1) || compareNumbers(month0, month1);
|
|
2371
|
+
if (!cmp) {
|
|
2372
|
+
return 0;
|
|
2373
|
+
}
|
|
2374
|
+
if (year0 === year1) {
|
|
2375
|
+
return month1 - month0;
|
|
2376
|
+
}
|
|
2377
|
+
if (cmp < 0) {
|
|
2378
|
+
let months = computeMonthsInYear(year0) - month0 + month1;
|
|
2379
|
+
for (let year = year0 + 1; year < year1; year++) {
|
|
2380
|
+
months += computeMonthsInYear(year);
|
|
2381
|
+
}
|
|
2382
|
+
return months;
|
|
2383
|
+
}
|
|
2384
|
+
return -diffArithmeticMonthSlots(computeMonthsInYear, year1, month1, year0, month0);
|
|
2385
|
+
}
|
|
2386
|
+
function createChineseDangiCalendar(canonicalId) {
|
|
2387
|
+
return ((normCalendarId, config) => {
|
|
2388
|
+
const intlData = createIntlScrapedCalendarData(normCalendarId);
|
|
2389
|
+
return {
|
|
2390
|
+
l: config.l,
|
|
2391
|
+
V: config.V,
|
|
2392
|
+
U: config.U,
|
|
2393
|
+
de: intlData.le,
|
|
2394
|
+
fe: bindArgs(computeIsoFieldsFromIntlParts, intlData),
|
|
2395
|
+
pe: bindArgs(computeIntlEpochMilli, intlData),
|
|
2396
|
+
N: bindArgs(computeIntlMonthCodeParts, intlData, config.l),
|
|
2397
|
+
u: bindArgs(computeIntlYearMonthFieldsForMonthDay, intlData, config.l, config.ye),
|
|
2398
|
+
q: bindArgs(computeIntlInLeapYear, intlData, config.l),
|
|
2399
|
+
j: bindArgs(computeIntlMonthsInYear, intlData),
|
|
2400
|
+
o: bindArgs(computeIntlDaysInMonth, intlData),
|
|
2401
|
+
i: bindArgs(computeIntlDaysInYear, intlData),
|
|
2402
|
+
p: bindArgs(computeIntlLeapMonth, intlData, config.l),
|
|
2403
|
+
ae: bindArgs(addIntlMonths, intlData),
|
|
2404
|
+
ee: bindArgs(diffIntlMonthSlots, intlData)
|
|
2405
|
+
};
|
|
2406
|
+
})(canonicalId, commonScrapedCalendarConfig);
|
|
2407
|
+
}
|
|
2408
|
+
function createCopticFamilyCalendar(epoch, eraOrigins, ameteAlemYearDelta = 0, hasAmeteMihretEra = 0) {
|
|
2409
|
+
return createArithmeticCalendar({
|
|
2410
|
+
k: eraOrigins,
|
|
2411
|
+
_(eraYear, normalizedEra, eraOrigin) {
|
|
2412
|
+
return "aa" === normalizedEra && hasAmeteMihretEra ? eraYear - 5500 : eraYearToYear(eraYear, eraOrigin);
|
|
2413
|
+
},
|
|
2414
|
+
ge(monthCodeNumber, isLeapMonth, day) {
|
|
2415
|
+
return constrainToRange(day, 1, isLeapMonth || 13 !== monthCodeNumber ? 30 : 6);
|
|
2416
|
+
},
|
|
2417
|
+
J(julianDay) {
|
|
2418
|
+
const [year, month, day] = ((epoch, julianDay) => {
|
|
2419
|
+
const year = Math.floor((4 * (julianDay - epoch) + 3) / 1461);
|
|
2420
|
+
const month = 1 + Math.floor((julianDay - copticFamilyToJulianDay(epoch, year, 1, 1)) / 30);
|
|
2421
|
+
return [ year, month, julianDay + 1 - copticFamilyToJulianDay(epoch, year, month, 1) ];
|
|
2422
|
+
})(epoch, julianDay);
|
|
2423
|
+
return {
|
|
2424
|
+
year: year + ameteAlemYearDelta,
|
|
2425
|
+
month: month,
|
|
2426
|
+
day: day
|
|
2427
|
+
};
|
|
2428
|
+
},
|
|
2429
|
+
L(year, month, day) {
|
|
2430
|
+
return copticFamilyToJulianDay(epoch, year - ameteAlemYearDelta, month, day);
|
|
2431
|
+
},
|
|
2432
|
+
o(year, month) {
|
|
2433
|
+
return ((year, month) => month % 13 != 0 ? 30 : copticFamilyLeapDay(year) + 5)(year - ameteAlemYearDelta, month);
|
|
2434
|
+
},
|
|
2435
|
+
i(year) {
|
|
2436
|
+
return 365 + copticFamilyLeapDay(year - ameteAlemYearDelta);
|
|
2437
|
+
},
|
|
2438
|
+
j() {
|
|
2439
|
+
return 13;
|
|
2440
|
+
},
|
|
2441
|
+
q(year) {
|
|
2442
|
+
return this.i(year) > 365;
|
|
2443
|
+
},
|
|
2444
|
+
h({year: year}) {
|
|
2445
|
+
return ameteAlemYearDelta ? {
|
|
2446
|
+
era: "aa",
|
|
2447
|
+
eraYear: year
|
|
2448
|
+
} : hasAmeteMihretEra && year <= 0 ? {
|
|
2449
|
+
era: "aa",
|
|
2450
|
+
eraYear: year + 5500
|
|
2451
|
+
} : {
|
|
2452
|
+
era: "am",
|
|
2453
|
+
eraYear: year
|
|
2454
|
+
};
|
|
2455
|
+
}
|
|
2456
|
+
});
|
|
2457
|
+
}
|
|
2458
|
+
function copticFamilyToJulianDay(epoch, year, month, day) {
|
|
2459
|
+
return epoch + 365 * year + Math.floor(year / 4) + 30 * (month - 1) + day - 1;
|
|
2460
|
+
}
|
|
2461
|
+
function copticFamilyLeapDay(year) {
|
|
2462
|
+
return Math.floor(modFloor(year, 4) / 3);
|
|
2463
|
+
}
|
|
2464
|
+
function hebrewIsLeapYear(year) {
|
|
2465
|
+
return modFloor(7 * year + 1, 19) < 7;
|
|
2466
|
+
}
|
|
2467
|
+
function hebrewDelay1(year) {
|
|
2468
|
+
const months = Math.floor((235 * year - 234) / 19);
|
|
2469
|
+
let day = 29 * months + Math.floor((12084 + 13753 * months) / 25920);
|
|
2470
|
+
return modFloor(3 * (day + 1), 7) < 3 && (day += 1), day;
|
|
2471
|
+
}
|
|
2472
|
+
function hebrewStartOfYear(year) {
|
|
2473
|
+
return hebrewDelay1(year) + (year => {
|
|
2474
|
+
const last = hebrewDelay1(year - 1);
|
|
2475
|
+
const present = hebrewDelay1(year);
|
|
2476
|
+
return hebrewDelay1(year + 1) - present === 356 ? 2 : present - last === 382 ? 1 : 0;
|
|
2477
|
+
})(year);
|
|
2478
|
+
}
|
|
2479
|
+
function hebrewDaysInYear(year) {
|
|
2480
|
+
return hebrewStartOfYear(year + 1) - hebrewStartOfYear(year);
|
|
2481
|
+
}
|
|
2482
|
+
function hebrewDaysInMonth(year, month) {
|
|
2483
|
+
const normalizedMonth = month >= 6 && !hebrewIsLeapYear(year) ? month + 1 : month;
|
|
2484
|
+
if (4 === normalizedMonth || 7 === normalizedMonth || 9 === normalizedMonth || 11 === normalizedMonth || 13 === normalizedMonth) {
|
|
2485
|
+
return 29;
|
|
2486
|
+
}
|
|
2487
|
+
const yearType = (year => {
|
|
2488
|
+
let yearLength = hebrewDaysInYear(year);
|
|
2489
|
+
return yearLength > 380 && (yearLength -= 30), 353 === yearLength ? 0 : 354 === yearLength ? 1 : 2;
|
|
2490
|
+
})(year);
|
|
2491
|
+
return 2 === normalizedMonth ? 2 === yearType ? 30 : 29 : 3 === normalizedMonth ? 0 === yearType ? 29 : 30 : 6 === normalizedMonth ? hebrewIsLeapYear(year) ? 30 : 0 : 30;
|
|
2492
|
+
}
|
|
2493
|
+
function createIslamicCalendar(fromJulianDay, toJulianDay, intlUmalquraData) {
|
|
2494
|
+
return createArithmeticCalendar({
|
|
2495
|
+
k: {
|
|
2496
|
+
bh: -1,
|
|
2497
|
+
ah: 0
|
|
2498
|
+
},
|
|
2499
|
+
J: fromJulianDay,
|
|
2500
|
+
L: toJulianDay,
|
|
2501
|
+
o(year, month) {
|
|
2502
|
+
return intlUmalquraData && isUmalquraYear(year) ? computeIntlDaysInMonth(intlUmalquraData, year, month) : ((year, month) => 29 + month % 2 + (12 === month && islamicIsLeapYear(year) ? 1 : 0))(year, month);
|
|
2503
|
+
},
|
|
2504
|
+
i(year) {
|
|
2505
|
+
return intlUmalquraData && isUmalquraYear(year) ? computeIntlDaysInYear(intlUmalquraData, year) : islamicIsLeapYear(year) ? 355 : 354;
|
|
2506
|
+
},
|
|
2507
|
+
j() {
|
|
2508
|
+
return 12;
|
|
2509
|
+
},
|
|
2510
|
+
q(year) {
|
|
2511
|
+
return this.i(year) > 354;
|
|
2512
|
+
},
|
|
2513
|
+
u(monthCodeNumber, isLeapMonth, day) {
|
|
2514
|
+
const umalquraReferenceYear = intlUmalquraData && !isLeapMonth && 30 === day && umalquraPlainMonthDay30ReferenceYears[monthCodeNumber - 1];
|
|
2515
|
+
return intlUmalquraData && umalquraReferenceYear ? {
|
|
2516
|
+
year: umalquraReferenceYear,
|
|
2517
|
+
month: monthCodeNumber
|
|
2518
|
+
} : void 0;
|
|
2519
|
+
},
|
|
2520
|
+
h({year: year}) {
|
|
2521
|
+
return year < 1 ? {
|
|
2522
|
+
era: "bh",
|
|
2523
|
+
eraYear: 1 - year
|
|
2524
|
+
} : {
|
|
2525
|
+
era: "ah",
|
|
2526
|
+
eraYear: year
|
|
2527
|
+
};
|
|
2528
|
+
}
|
|
2529
|
+
});
|
|
2530
|
+
}
|
|
2531
|
+
function islamicToJulianDay(epoch, year, month, day) {
|
|
2532
|
+
return day + Math.ceil(29.5 * (month - 1)) + 354 * (year - 1) + Math.floor((3 + 11 * year) / 30) + epoch - 1;
|
|
2533
|
+
}
|
|
2534
|
+
function julianDayToIslamic(epoch, julianDay) {
|
|
2535
|
+
const year = Math.floor((30 * (julianDay - epoch) + 10646) / 10631);
|
|
2536
|
+
const month = Math.min(12, Math.ceil((julianDay - (29 + islamicToJulianDay(epoch, year, 1, 1))) / 29.5) + 1);
|
|
2537
|
+
return {
|
|
2538
|
+
year: year,
|
|
2539
|
+
month: month,
|
|
2540
|
+
day: julianDay - islamicToJulianDay(epoch, year, month, 1) + 1
|
|
2541
|
+
};
|
|
2542
|
+
}
|
|
2543
|
+
function islamicIsLeapYear(year) {
|
|
2544
|
+
return modFloor(14 + 11 * year, 30) < 11;
|
|
2545
|
+
}
|
|
2546
|
+
function isUmalquraYear(year) {
|
|
2547
|
+
return year >= 1300 && year <= 1600;
|
|
2548
|
+
}
|
|
2549
|
+
function julianDayToUmalqura(intlUmalquraData, julianDay) {
|
|
2550
|
+
const days = julianDay - 1948440;
|
|
2551
|
+
if (days < 460322 || days >= 566987) {
|
|
2552
|
+
return julianDayToIslamic(1948440, julianDay);
|
|
2553
|
+
}
|
|
2554
|
+
const {year: year, month: month, day: day} = intlUmalquraData.le(epochDaysToIsoDate(julianDay - 2440588));
|
|
2555
|
+
return {
|
|
2556
|
+
year: year,
|
|
2557
|
+
month: month,
|
|
2558
|
+
day: day
|
|
2559
|
+
};
|
|
2560
|
+
}
|
|
2561
|
+
function umalquraToJulianDay(intlUmalquraData, year, month, day) {
|
|
2562
|
+
return isUmalquraYear(year) ? computeIntlEpochMilli(intlUmalquraData, year, month, day) / milliInUtcDay + 2440588 : islamicToJulianDay(1948440, year, month, day);
|
|
2563
|
+
}
|
|
2564
|
+
function computeJapaneseEraFields(isoDate) {
|
|
2565
|
+
const epochDays = isoDateToEpochDays(isoDate);
|
|
2566
|
+
const era = epochDays >= 18017 ? "reiwa" : epochDays >= 6947 ? "heisei" : epochDays >= -15713 ? "showa" : epochDays >= -20974 ? "taisho" : epochDays >= -35428 ? "meiji" : void 0;
|
|
2567
|
+
return era ? {
|
|
2568
|
+
era: era,
|
|
2569
|
+
eraYear: isoDate.year - japaneseEraOrigins[era]
|
|
2570
|
+
} : computeGregoryEraFields(isoDate);
|
|
2571
|
+
}
|
|
2572
|
+
function persianIsLeapYear(year) {
|
|
2573
|
+
return modFloor(25 * year + 11, 33) < 8;
|
|
2574
|
+
}
|
|
2575
|
+
function resolveAnyCalendarId(rawCalendarId) {
|
|
2576
|
+
const lowerRawCalendarId = requireString(rawCalendarId).toLowerCase();
|
|
2577
|
+
return "iso8601" === lowerRawCalendarId ? isoCalendarImpl : "gregory" === lowerRawCalendarId ? 0 : function(lowerRawCalendarId) {
|
|
2578
|
+
const meta = (lowerRawCalendarId => {
|
|
2579
|
+
forbiddenExoticCalendarIdMap[lowerRawCalendarId] && throwRangeError(invalidCalendar(lowerRawCalendarId));
|
|
2580
|
+
const normCalendarId = deprecatedExoticCalendarIdMap[lowerRawCalendarId] || lowerRawCalendarId;
|
|
2581
|
+
const createCalendar = exoticCreatorMap.get(normCalendarId);
|
|
2582
|
+
return createCalendar && [ normCalendarId, createCalendar ];
|
|
2583
|
+
})(lowerRawCalendarId);
|
|
2584
|
+
return meta || throwRangeError(invalidCalendar(lowerRawCalendarId)), getOrCreateExoticCalendar(...meta);
|
|
2585
|
+
}(lowerRawCalendarId);
|
|
2586
|
+
}
|
|
2587
|
+
function resolveAnyCalendarArg(rawCalendarId = "iso8601") {
|
|
2588
|
+
return resolveAnyCalendarId(rawCalendarId);
|
|
2589
|
+
}
|
|
2590
|
+
function createZonedDateTime(slots) {
|
|
2591
|
+
return initZonedDateTime(Object.create(ZonedDateTime.prototype), slots);
|
|
2592
|
+
}
|
|
2593
|
+
function getZonedDateTimeSlots(obj) {
|
|
2594
|
+
return getZonedDateTimeSlotsIfPresent(obj) || invalidRecordType();
|
|
2595
|
+
}
|
|
2596
|
+
function getZonedDateTimeIsoSlots(obj) {
|
|
2597
|
+
const slots = getZonedDateTimeSlots(obj);
|
|
2598
|
+
return {
|
|
2599
|
+
...zonedEpochSlotsToIso(slots),
|
|
2600
|
+
calendar: slots.calendar
|
|
2601
|
+
};
|
|
2602
|
+
}
|
|
2603
|
+
function getZonedDateTimeSlotsIfPresent(obj) {
|
|
2604
|
+
return zonedDateTimeSlotsMap.get(obj);
|
|
2605
|
+
}
|
|
2606
|
+
function toZonedDateTimeSlots(arg, options) {
|
|
2607
|
+
if (isObjectLike(arg)) {
|
|
2608
|
+
const ownSlots = getZonedDateTimeSlotsIfPresent(arg);
|
|
2609
|
+
return ownSlots ? (refineZonedFieldOptions(options), ownSlots) : ((refineTimeZoneString, calendar, bag, options) => {
|
|
2610
|
+
const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, dateTimeAndZoneFieldNamesAlpha, dateTimeAndZoneFieldNamesWithEraAlpha), zonedDateTimeFieldRefiners, timeZoneFieldNames, 0);
|
|
2611
|
+
const timeZoneId = refineTimeZoneString(fields.timeZone);
|
|
2612
|
+
const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar);
|
|
2613
|
+
const [overflow, offsetDisambig, epochDisambig] = refineZonedFieldOptions(options);
|
|
2614
|
+
const isoDate = createDateFromRefinedFields(fields, calendar, year, monthCodeParts, overflow);
|
|
2615
|
+
const timeFields = resolveTimeFields(fields, overflow);
|
|
2616
|
+
const timeZone = queryTimeZone(timeZoneId);
|
|
2617
|
+
return createZonedEpochNanoSlots(getMatchingInstantFor(timeZone, combineDateAndTime(isoDate, timeFields), fields.offset, offsetDisambig, epochDisambig), timeZone, calendar);
|
|
2618
|
+
})(refineTimeZoneArg, getCalendarFromBag(arg), arg, options);
|
|
2619
|
+
}
|
|
2620
|
+
return ((s, resolveCalendar, options) => {
|
|
2621
|
+
const organized = parseDateTimeLike(requireString(s));
|
|
2622
|
+
return organized && organized.timeZoneId || throwFailedParse(s), finalizeZonedDateTime(organized, resolveCalendar, options);
|
|
2623
|
+
})(arg, resolveAnyCalendarId, options);
|
|
2624
|
+
}
|
|
2625
|
+
function initZonedDateTime(instance, slots) {
|
|
2626
|
+
return zonedDateTimeSlotsMap.set(instance, slots), attachDebugString(instance),
|
|
2627
|
+
instance;
|
|
2628
|
+
}
|
|
2629
|
+
function refineTimeZoneArg(arg) {
|
|
2630
|
+
if (isObjectLike(arg)) {
|
|
2631
|
+
const slots = getZonedDateTimeSlotsIfPresent(arg);
|
|
2632
|
+
return slots || throwTypeError(invalidTimeZone(arg)), slots.timeZone.id;
|
|
2633
|
+
}
|
|
2634
|
+
return (arg => resolveTimeZoneId((s => {
|
|
2635
|
+
const parsed = parseDateTimeLike(s);
|
|
2636
|
+
return parsed && (parsed.timeZoneId || parsed.F && "UTC" || parsed.offset) || s;
|
|
2637
|
+
})(requireString(arg))))(arg);
|
|
2638
|
+
}
|
|
2639
|
+
function createInstant(slots) {
|
|
2640
|
+
return initInstant(Object.create(Instant.prototype), slots);
|
|
2641
|
+
}
|
|
2642
|
+
function getInstantSlots(obj) {
|
|
2643
|
+
return getInstantSlotsIfPresent(obj) || invalidRecordType();
|
|
2644
|
+
}
|
|
2645
|
+
function getInstantSlotsIfPresent(obj) {
|
|
2646
|
+
return instantSlotsMap.get(obj);
|
|
2647
|
+
}
|
|
2648
|
+
function toInstantSlots(arg) {
|
|
2649
|
+
if (isObjectLike(arg)) {
|
|
2650
|
+
const ownSlots = getInstantSlotsIfPresent(arg);
|
|
2651
|
+
if (ownSlots) {
|
|
2652
|
+
return ownSlots;
|
|
2653
|
+
}
|
|
2654
|
+
const zonedDateTimeSlots = getZonedDateTimeSlotsIfPresent(arg);
|
|
2655
|
+
if (zonedDateTimeSlots) {
|
|
2656
|
+
return createEpochNanoSlots(zonedDateTimeSlots.epochNanoseconds);
|
|
2657
|
+
}
|
|
2658
|
+
}
|
|
2659
|
+
return (s => {
|
|
2660
|
+
const organized = parseDateTimeLike(s = requireString(toPrimitiveWithStringHint(s)));
|
|
2661
|
+
let offsetNano;
|
|
2662
|
+
return organized || throwFailedParse(s), organized.F ? offsetNano = 0 : organized.offset ? offsetNano = parseOffsetNano(organized.offset) : throwFailedParse(s),
|
|
2663
|
+
organized.timeZoneId && parseOffsetNanoMaybe(organized.timeZoneId, 1), validateIsoDateTimeFields(organized),
|
|
2664
|
+
createEpochNanoSlots(isoDateTimeAndOffsetToEpochNano(organized, offsetNano));
|
|
2665
|
+
})(arg);
|
|
2666
|
+
}
|
|
2667
|
+
function initInstant(instance, slots) {
|
|
2668
|
+
return instantSlotsMap.set(instance, slots), attachDebugString(instance), instance;
|
|
2669
|
+
}
|
|
2670
|
+
function createPlainMonthDay(slots) {
|
|
2671
|
+
return initPlainMonthDay(Object.create(PlainMonthDay.prototype), slots);
|
|
2672
|
+
}
|
|
2673
|
+
function getPlainMonthDaySlots(obj) {
|
|
2674
|
+
return getPlainMonthDaySlotsIfPresent(obj) || invalidRecordType();
|
|
2675
|
+
}
|
|
2676
|
+
function getPlainMonthDaySlotsIfPresent(obj) {
|
|
2677
|
+
return plainMonthDaySlotsMap.get(obj);
|
|
2678
|
+
}
|
|
2679
|
+
function toPlainMonthDaySlots(arg, options) {
|
|
2680
|
+
if (isObjectLike(arg)) {
|
|
2681
|
+
const ownSlots = getPlainMonthDaySlotsIfPresent(arg);
|
|
2682
|
+
if (ownSlots) {
|
|
2683
|
+
return refineOverflowOptions(options), ownSlots;
|
|
2684
|
+
}
|
|
2685
|
+
const calendarMaybe = extractCalendarFromBag(arg);
|
|
2686
|
+
return ((calendar, calendarAbsent, bag, options) => {
|
|
2687
|
+
const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, dateFieldNamesAlpha, dateFieldNamesWithEraAlpha), dateFieldRefiners, dayFieldNamesAsc, 0);
|
|
2688
|
+
calendarAbsent && void 0 !== fields.month && void 0 === fields.monthCode && void 0 === fields.year && (fields.year = 1972);
|
|
2689
|
+
const [year, monthCodeParts] = refineMonthDayFields(fields, calendar);
|
|
2690
|
+
return createMonthDayFromRefinedFields(fields, calendar, year, monthCodeParts, refineOverflowOptions(options));
|
|
2691
|
+
})(void 0 === calendarMaybe ? isoCalendarImpl : calendarMaybe, void 0 === calendarMaybe, arg, options);
|
|
2692
|
+
}
|
|
2693
|
+
const res = ((s, resolveCalendar) => {
|
|
2694
|
+
const organized = parseMonthDayOnly(requireString(s));
|
|
2695
|
+
if (organized) {
|
|
2696
|
+
return requireIsoCalendar(organized), createDateSlots(validateIsoDateFields(organized), resolveCalendar(organized.calendarId));
|
|
2697
|
+
}
|
|
2698
|
+
const dateSlots = finalizeDateLike(parsePlainDateLike(s), projectIsoMonthDayDate, resolveCalendar);
|
|
2699
|
+
const {calendar: calendar} = dateSlots;
|
|
2700
|
+
const {year: origYear, month: origMonth, day: day} = computeCalendarDateFields(calendar, dateSlots);
|
|
2701
|
+
const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, origYear, origMonth);
|
|
2702
|
+
const {year: year, month: month} = ((calendar, monthCodeNumber, isLeapMonth, day) => {
|
|
2703
|
+
const yearMonthFields = calendar ? calendar.u(monthCodeNumber, isLeapMonth, day) : computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, isLeapMonth);
|
|
2704
|
+
return yearMonthFields || throwRangeError("Cannot guess year"), yearMonthFields;
|
|
2705
|
+
})(calendar, monthCodeNumber, isLeapMonth, day);
|
|
2706
|
+
return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, year, month, day)), calendar);
|
|
2707
|
+
})(arg, resolveAnyCalendarId);
|
|
2708
|
+
return refineOverflowOptions(options), res;
|
|
2709
|
+
}
|
|
2710
|
+
function initPlainMonthDay(instance, slots) {
|
|
2711
|
+
return plainMonthDaySlotsMap.set(instance, slots), attachDebugString(instance),
|
|
2712
|
+
instance;
|
|
2713
|
+
}
|
|
2714
|
+
function createPlainYearMonth(slots) {
|
|
2715
|
+
return initPlainYearMonth(Object.create(PlainYearMonth.prototype), slots);
|
|
2716
|
+
}
|
|
2717
|
+
function getPlainYearMonthSlots(obj) {
|
|
2718
|
+
return getPlainYearMonthSlotsIfPresent(obj) || invalidRecordType();
|
|
2719
|
+
}
|
|
2720
|
+
function getPlainYearMonthSlotsIfPresent(obj) {
|
|
2721
|
+
return plainYearMonthSlotsMap.get(obj);
|
|
2722
|
+
}
|
|
2723
|
+
function toPlainYearMonthSlots(arg, options) {
|
|
2724
|
+
if (isObjectLike(arg)) {
|
|
2725
|
+
const ownSlots = getPlainYearMonthSlotsIfPresent(arg);
|
|
2726
|
+
return ownSlots ? (refineOverflowOptions(options), ownSlots) : ((calendar, bag, options) => {
|
|
2727
|
+
const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, yearMonthFieldNamesAlpha, yearMonthFieldNamesWithEraAlpha), dateFieldRefiners, void 0);
|
|
2728
|
+
const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar, 1);
|
|
2729
|
+
return createYearMonthFromRefinedFields(fields, calendar, year, monthCodeParts, refineOverflowOptions(options));
|
|
2730
|
+
})(getCalendarFromBag(arg), arg, options);
|
|
2731
|
+
}
|
|
2732
|
+
const res = ((s, resolveCalendar) => {
|
|
2733
|
+
const organized = parseYearMonthOnly(requireString(s));
|
|
2734
|
+
if (organized) {
|
|
2735
|
+
return requireIsoCalendar(organized), createDateSlots(checkIsoYearMonthInBounds(validateIsoDateFields(organized)), resolveCalendar(organized.calendarId));
|
|
2736
|
+
}
|
|
2737
|
+
const dateSlots = finalizeDateLike(parsePlainDateLike(s), projectIsoYearMonthDate, resolveCalendar);
|
|
2738
|
+
const {calendar: calendar} = dateSlots;
|
|
2739
|
+
return createDateSlots(moveToStartOfMonth(calendar, dateSlots), calendar);
|
|
2740
|
+
})(arg, resolveAnyCalendarId);
|
|
2741
|
+
return refineOverflowOptions(options), res;
|
|
2742
|
+
}
|
|
2743
|
+
function initPlainYearMonth(instance, slots) {
|
|
2744
|
+
return plainYearMonthSlotsMap.set(instance, slots), attachDebugString(instance),
|
|
2745
|
+
instance;
|
|
2746
|
+
}
|
|
2747
|
+
function getTemporalBrandingAndSlots(obj) {
|
|
2748
|
+
if (!isObjectLike(obj)) {
|
|
2749
|
+
return;
|
|
2750
|
+
}
|
|
2751
|
+
let slots = getInstantSlotsIfPresent(obj);
|
|
2752
|
+
return slots ? [ "Instant", slots ] : (slots = getZonedDateTimeSlotsIfPresent(obj),
|
|
2753
|
+
slots ? [ "ZonedDateTime", slots ] : (slots = getPlainDateTimeSlotsIfPresent(obj),
|
|
2754
|
+
slots ? [ "PlainDateTime", slots ] : (slots = getPlainDateSlotsIfPresent(obj), slots ? [ "PlainDate", slots ] : (slots = getPlainTimeSlotsIfPresent(obj),
|
|
2755
|
+
slots ? [ "PlainTime", slots ] : (slots = getPlainYearMonthSlotsIfPresent(obj),
|
|
2756
|
+
slots ? [ "PlainYearMonth", slots ] : (slots = getPlainMonthDaySlotsIfPresent(obj),
|
|
2757
|
+
slots ? [ "PlainMonthDay", slots ] : (slots = getDurationSlotsIfPresent(obj), slots ? [ "Duration", slots ] : void 0)))))));
|
|
2758
|
+
}
|
|
2759
|
+
function validateBag(bag) {
|
|
2760
|
+
return (getTemporalBrandingAndSlots(bag) || void 0 !== bag.calendar || void 0 !== bag.timeZone) && throwTypeError("Invalid bag"),
|
|
2761
|
+
bag;
|
|
2762
|
+
}
|
|
2763
|
+
function createPlainTime(slots) {
|
|
2764
|
+
return initPlainTime(Object.create(PlainTime.prototype), slots);
|
|
2765
|
+
}
|
|
2766
|
+
function getPlainTimeSlots(obj) {
|
|
2767
|
+
return getPlainTimeSlotsIfPresent(obj) || invalidRecordType();
|
|
2768
|
+
}
|
|
2769
|
+
function getPlainTimeSlotsIfPresent(obj) {
|
|
2770
|
+
return plainTimeSlotsMap.get(obj);
|
|
2771
|
+
}
|
|
2772
|
+
function toPlainTimeSlots(arg, options) {
|
|
2773
|
+
if (isObjectLike(arg)) {
|
|
2774
|
+
const ownSlots = getPlainTimeSlotsIfPresent(arg);
|
|
2775
|
+
if (ownSlots) {
|
|
2776
|
+
return refineOverflowOptions(options), ownSlots;
|
|
2777
|
+
}
|
|
2778
|
+
const dateTimeSlots = getPlainDateTimeSlotsIfPresent(arg);
|
|
2779
|
+
if (dateTimeSlots) {
|
|
2780
|
+
return refineOverflowOptions(options), createTimeSlots(dateTimeSlots);
|
|
2781
|
+
}
|
|
2782
|
+
const zonedDateTimeSlots = getZonedDateTimeSlotsIfPresent(arg);
|
|
2783
|
+
return zonedDateTimeSlots ? (refineOverflowOptions(options), zonedDateTimeToTime(zonedDateTimeSlots)) : ((bag, options) => resolveTimeFields(readAndRefineBagFields(bag, timeFieldNamesAlpha, timeFieldRefiners, [], 1), refineOverflowOptions(options)))(arg, options);
|
|
2784
|
+
}
|
|
2785
|
+
const timeSlots = (s => {
|
|
2786
|
+
let organized = (s => {
|
|
2787
|
+
const parts = parseTimeOnlyParts(s);
|
|
2788
|
+
return parts ? (organizeAnnotationParts(parts[13]), organizeTimeParts(parts, 1)) : void 0;
|
|
2789
|
+
})(s = requireString(s));
|
|
2790
|
+
if (!organized) {
|
|
2791
|
+
const dateTime = parseDateTimeLike(s);
|
|
2792
|
+
dateTime && dateTime.te || throwFailedParse(s), dateTime.F && throwRangeError(invalidSubstring("Z")),
|
|
2793
|
+
requireIsoCalendar(dateTime), organized = dateTime;
|
|
2794
|
+
}
|
|
2795
|
+
let altParsed;
|
|
2796
|
+
return (altParsed = parseYearMonthOnly(s)) && isIsoDateFieldsValid(altParsed) && throwFailedParse(s),
|
|
2797
|
+
(altParsed = parseMonthDayOnly(s)) && isIsoDateFieldsValid(altParsed) && throwFailedParse(s),
|
|
2798
|
+
createTimeSlots(validateTimeFields(organized));
|
|
2799
|
+
})(arg);
|
|
2800
|
+
return refineOverflowOptions(options), timeSlots;
|
|
2801
|
+
}
|
|
2802
|
+
function optionalToPlainTimeFields(timeArg) {
|
|
2803
|
+
return void 0 === timeArg ? void 0 : toPlainTimeSlots(timeArg);
|
|
2804
|
+
}
|
|
2805
|
+
function initPlainTime(instance, slots) {
|
|
2806
|
+
return plainTimeSlotsMap.set(instance, slots), attachDebugString(instance), instance;
|
|
2807
|
+
}
|
|
2808
|
+
function createPlainDateTime(slots) {
|
|
2809
|
+
return initPlainDateTime(Object.create(PlainDateTime.prototype), slots);
|
|
2810
|
+
}
|
|
2811
|
+
function getPlainDateTimeSlots(obj) {
|
|
2812
|
+
return getPlainDateTimeSlotsIfPresent(obj) || invalidRecordType();
|
|
2813
|
+
}
|
|
2814
|
+
function getPlainDateTimeSlotsIfPresent(obj) {
|
|
2815
|
+
return plainDateTimeSlotsMap.get(obj);
|
|
2816
|
+
}
|
|
2817
|
+
function toPlainDateTimeSlots(arg, options) {
|
|
2818
|
+
if (isObjectLike(arg)) {
|
|
2819
|
+
const ownSlots = getPlainDateTimeSlotsIfPresent(arg);
|
|
2820
|
+
if (ownSlots) {
|
|
2821
|
+
return refineOverflowOptions(options), ownSlots;
|
|
2822
|
+
}
|
|
2823
|
+
const dateSlots = getPlainDateSlotsIfPresent(arg);
|
|
2824
|
+
if (dateSlots) {
|
|
2825
|
+
return refineOverflowOptions(options), createDateTimeSlots(combineDateAndTime(dateSlots, timeFieldDefaults), dateSlots.calendar);
|
|
2826
|
+
}
|
|
2827
|
+
const zonedDateTimeSlots = getZonedDateTimeSlotsIfPresent(arg);
|
|
2828
|
+
return zonedDateTimeSlots ? (refineOverflowOptions(options), zonedDateTimeToDateTime(zonedDateTimeSlots)) : ((calendar, bag, options) => {
|
|
2829
|
+
const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, dateTimeFieldNamesAlpha, dateTimeFieldNamesWithEraAlpha), dateTimeFieldRefiners, [], 0);
|
|
2830
|
+
const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar);
|
|
2831
|
+
const overflow = refineOverflowOptions(options);
|
|
2832
|
+
return createDateTimeFromRefinedFields(createDateFromRefinedFields(fields, calendar, year, monthCodeParts, overflow), resolveTimeFields(fields, overflow), calendar);
|
|
2833
|
+
})(getCalendarFromBag(arg), arg, options);
|
|
2834
|
+
}
|
|
2835
|
+
const res = ((s, resolveCalendar) => {
|
|
2836
|
+
const organized = parseDateTimeLike(requireString(s));
|
|
2837
|
+
return organized && !organized.F || throwFailedParse(s), finalizeDateTime(organized, resolveCalendar);
|
|
2838
|
+
})(arg, resolveAnyCalendarId);
|
|
2839
|
+
return refineOverflowOptions(options), res;
|
|
2840
|
+
}
|
|
2841
|
+
function initPlainDateTime(instance, slots) {
|
|
2842
|
+
return plainDateTimeSlotsMap.set(instance, slots), attachDebugString(instance),
|
|
2843
|
+
instance;
|
|
2844
|
+
}
|
|
2845
|
+
function createPlainDate(slots) {
|
|
2846
|
+
return initPlainDate(Object.create(PlainDate.prototype), slots);
|
|
2847
|
+
}
|
|
2848
|
+
function getPlainDateSlots(obj) {
|
|
2849
|
+
return getPlainDateSlotsIfPresent(obj) || invalidRecordType();
|
|
2850
|
+
}
|
|
2851
|
+
function getPlainDateSlotsIfPresent(obj) {
|
|
2852
|
+
return plainDateSlotsMap.get(obj);
|
|
2853
|
+
}
|
|
2854
|
+
function toPlainDateSlots(arg, options) {
|
|
2855
|
+
if (isObjectLike(arg)) {
|
|
2856
|
+
const ownSlots = getPlainDateSlotsIfPresent(arg);
|
|
2857
|
+
if (ownSlots) {
|
|
2858
|
+
return refineOverflowOptions(options), ownSlots;
|
|
2859
|
+
}
|
|
2860
|
+
const dateTimeSlots = getPlainDateTimeSlotsIfPresent(arg);
|
|
2861
|
+
if (dateTimeSlots) {
|
|
2862
|
+
return refineOverflowOptions(options), createDateSlots(dateTimeSlots, dateTimeSlots.calendar);
|
|
2863
|
+
}
|
|
2864
|
+
const zonedDateTimeSlots = getZonedDateTimeSlotsIfPresent(arg);
|
|
2865
|
+
return zonedDateTimeSlots ? (refineOverflowOptions(options), zonedDateTimeToDate(zonedDateTimeSlots)) : ((calendar, bag, options, requireFields = []) => {
|
|
2866
|
+
const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, dateFieldNamesAlpha, dateFieldNamesWithEraAlpha), dateFieldRefiners, requireFields);
|
|
2867
|
+
const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar);
|
|
2868
|
+
return createDateFromRefinedFields(fields, calendar, year, monthCodeParts, refineOverflowOptions(options));
|
|
2869
|
+
})(getCalendarFromBag(arg), arg, options);
|
|
2870
|
+
}
|
|
2871
|
+
const res = ((s, resolveCalendar) => {
|
|
2872
|
+
const slots = finalizeDateLike(parsePlainDateLike(requireString(s)), void 0, resolveCalendar);
|
|
2873
|
+
return createDateSlots(slots, slots.calendar);
|
|
2874
|
+
})(arg, resolveAnyCalendarId);
|
|
2875
|
+
return refineOverflowOptions(options), res;
|
|
2876
|
+
}
|
|
2877
|
+
function initPlainDate(instance, slots) {
|
|
2878
|
+
return plainDateSlotsMap.set(instance, slots), attachDebugString(instance), instance;
|
|
2879
|
+
}
|
|
2880
|
+
function getCalendarFromBag(bag) {
|
|
2881
|
+
const calendar = extractCalendarFromBag(bag);
|
|
2882
|
+
return void 0 === calendar ? isoCalendarImpl : calendar;
|
|
2883
|
+
}
|
|
2884
|
+
function extractCalendarFromBag(bag) {
|
|
2885
|
+
const {calendar: calendarArg} = bag;
|
|
2886
|
+
if (void 0 !== calendarArg) {
|
|
2887
|
+
return refineCalendarArg(calendarArg);
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2890
|
+
function refineCalendarArg(arg) {
|
|
2891
|
+
if (isObjectLike(arg)) {
|
|
2892
|
+
const slots = getPlainDateSlotsIfPresent(arg) || getPlainDateTimeSlotsIfPresent(arg) || getZonedDateTimeSlotsIfPresent(arg) || getPlainMonthDaySlotsIfPresent(arg) || getPlainYearMonthSlotsIfPresent(arg);
|
|
2893
|
+
return slots || throwTypeError(invalidCalendar(arg)), slots.calendar;
|
|
2894
|
+
}
|
|
2895
|
+
return (arg => resolveAnyCalendarId((s => {
|
|
2896
|
+
const res = parseDateTimeLike(s) || parseYearMonthOnly(s) || parseMonthDayOnly(s);
|
|
2897
|
+
if (res) {
|
|
2898
|
+
return res.calendarId;
|
|
2899
|
+
}
|
|
2900
|
+
const timeParts = parseTimeOnlyParts(s);
|
|
2901
|
+
return timeParts ? organizeAnnotationParts(timeParts[13]).calendarId : s;
|
|
2902
|
+
})(requireString(arg))))(arg);
|
|
2903
|
+
}
|
|
2904
|
+
function createDuration(slots) {
|
|
2905
|
+
return initDuration(Object.create(Duration.prototype), slots);
|
|
2906
|
+
}
|
|
2907
|
+
function getDurationSlots(obj) {
|
|
2908
|
+
return getDurationSlotsIfPresent(obj) || invalidRecordType();
|
|
2909
|
+
}
|
|
2910
|
+
function getDurationSlotsIfPresent(obj) {
|
|
2911
|
+
return durationSlotsMap.get(obj);
|
|
2912
|
+
}
|
|
2913
|
+
function toDurationSlots(arg) {
|
|
2914
|
+
return isObjectLike(arg) ? getDurationSlotsIfPresent(arg) || (bag => {
|
|
2915
|
+
const durationFields = readAndRefineBagFields(bag, durationFieldNamesAlpha, durationFieldRefiners);
|
|
2916
|
+
return createDurationSlots(validateDurationFields({
|
|
2917
|
+
...durationFieldDefaults,
|
|
2918
|
+
...durationFields
|
|
2919
|
+
}));
|
|
2920
|
+
})(arg) : (s => {
|
|
2921
|
+
const parts = durationRegExp.exec(requireString(s));
|
|
2922
|
+
return parts || throwFailedParse(s), createDurationSlots(validateDurationFields((parts => {
|
|
2923
|
+
function parseUnit(wholeStr, fracStr, timeUnit) {
|
|
2924
|
+
let leftoverUnits = 0;
|
|
2925
|
+
let wholeUnits = 0;
|
|
2926
|
+
return timeUnit && ([leftoverUnits, leftoverNano] = divModFloor(leftoverNano, unitNanoMap[timeUnit])),
|
|
2927
|
+
void 0 !== wholeStr && (hasAnyFrac && throwRangeError(invalidSubstring(wholeStr)),
|
|
2928
|
+
wholeUnits = (s => {
|
|
2929
|
+
const n = parseInt(s);
|
|
2930
|
+
return Number.isFinite(n) || throwRangeError(invalidSubstring(s)), n;
|
|
2931
|
+
})(wholeStr), hasAny = 1, fracStr && (leftoverNano = parseSubsecNano(fracStr) * (unitNanoMap[timeUnit] / nanoInSec),
|
|
2932
|
+
hasAnyFrac = 1)), leftoverUnits + wholeUnits;
|
|
2933
|
+
}
|
|
2934
|
+
let hasAny = 0;
|
|
2935
|
+
let hasAnyFrac = 0;
|
|
2936
|
+
let leftoverNano = 0;
|
|
2937
|
+
let durationFields = {
|
|
2938
|
+
years: parseUnit(parts[2]),
|
|
2939
|
+
months: parseUnit(parts[3]),
|
|
2940
|
+
weeks: parseUnit(parts[4]),
|
|
2941
|
+
days: parseUnit(parts[5]),
|
|
2942
|
+
hours: parseUnit(parts[6], parts[7], 5),
|
|
2943
|
+
minutes: parseUnit(parts[8], parts[9], 4),
|
|
2944
|
+
seconds: parseUnit(parts[10], parts[11], 3),
|
|
2945
|
+
...nanoToGivenFields(leftoverNano, 2, durationFieldNamesAsc)
|
|
2946
|
+
};
|
|
2947
|
+
return hasAny || throwRangeError(noValidFields(durationFieldNamesAsc)), parseSign(parts[1]) < 0 && (durationFields = negateDurationFields(durationFields)),
|
|
2948
|
+
durationFields;
|
|
2949
|
+
})(parts)));
|
|
2950
|
+
})(arg);
|
|
2951
|
+
}
|
|
2952
|
+
function refinePublicRelativeTo(relativeTo) {
|
|
2953
|
+
if (void 0 !== relativeTo) {
|
|
2954
|
+
if (isObjectLike(relativeTo)) {
|
|
2955
|
+
const zonedDateTimeSlots = getZonedDateTimeSlotsIfPresent(relativeTo);
|
|
2956
|
+
if (zonedDateTimeSlots) {
|
|
2957
|
+
return zonedDateTimeSlots;
|
|
2958
|
+
}
|
|
2959
|
+
const dateSlots = getPlainDateSlotsIfPresent(relativeTo);
|
|
2960
|
+
if (dateSlots) {
|
|
2961
|
+
return dateSlots;
|
|
2962
|
+
}
|
|
2963
|
+
const dateTimeSlots = getPlainDateTimeSlotsIfPresent(relativeTo);
|
|
2964
|
+
return dateTimeSlots ? createDateSlots(dateTimeSlots, dateTimeSlots.calendar) : ((refineTimeZoneString, calendar, bag) => {
|
|
2965
|
+
const fields = readAndRefineBagFields(bag, getCalendarFieldNames(calendar, dateTimeAndZoneFieldNamesAlpha, dateTimeAndZoneFieldNamesWithEraAlpha), zonedDateTimeFieldRefiners, [], 0);
|
|
2966
|
+
const isZoned = void 0 !== fields.timeZone;
|
|
2967
|
+
const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar);
|
|
2968
|
+
const isoDate = createDateFromRefinedFields(fields, calendar, year, monthCodeParts, 0);
|
|
2969
|
+
if (isZoned) {
|
|
2970
|
+
const timeFields = resolveTimeFields(fields);
|
|
2971
|
+
const timeZone = queryTimeZone(refineTimeZoneString(fields.timeZone));
|
|
2972
|
+
return {
|
|
2973
|
+
epochNanoseconds: getMatchingInstantFor(timeZone, combineDateAndTime(isoDate, timeFields), fields.offset),
|
|
2974
|
+
timeZone: timeZone,
|
|
2975
|
+
calendar: calendar
|
|
2976
|
+
};
|
|
2977
|
+
}
|
|
2978
|
+
return isoDate;
|
|
2979
|
+
})(refineTimeZoneArg, getCalendarFromBag(relativeTo), relativeTo);
|
|
2980
|
+
}
|
|
2981
|
+
return ((s, resolveCalendar) => {
|
|
2982
|
+
const organized = parseDateTimeLike(requireString(s));
|
|
2983
|
+
return organized || throwFailedParse(s), organized.timeZoneId ? finalizeZonedDateTime(organized, resolveCalendar, void 0) : (organized.F && throwFailedParse(s),
|
|
2984
|
+
finalizeDate(organized, resolveCalendar));
|
|
2985
|
+
})(relativeTo, resolveAnyCalendarId);
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
function initDuration(instance, slots) {
|
|
2989
|
+
return durationSlotsMap.set(instance, slots), attachDebugString(instance), instance;
|
|
2990
|
+
}
|
|
2991
|
+
const numberOutOfRange = (entityName, val, min, max) => invalidEntity$1(entityName, val) + `; must be between ${min}-${max}`;
|
|
2992
|
+
const invalidEntity$1 = (fieldName, val) => `Invalid ${fieldName}: ${val}`;
|
|
2993
|
+
const smallestUnitStr = "smallestUnit";
|
|
2994
|
+
const overflowMap = {
|
|
2995
|
+
constrain: 0,
|
|
2996
|
+
reject: 1
|
|
2997
|
+
};
|
|
2998
|
+
const epochDisambigMap = {
|
|
2999
|
+
compatible: 0,
|
|
3000
|
+
reject: 1,
|
|
3001
|
+
earlier: 2,
|
|
3002
|
+
later: 3
|
|
3003
|
+
};
|
|
3004
|
+
const offsetDisambigMap = {
|
|
3005
|
+
reject: 0,
|
|
3006
|
+
use: 1,
|
|
3007
|
+
prefer: 2,
|
|
3008
|
+
ignore: 3
|
|
3009
|
+
};
|
|
3010
|
+
const calendarDisplayMap = {
|
|
3011
|
+
auto: 0,
|
|
3012
|
+
never: 1,
|
|
3013
|
+
critical: 2,
|
|
3014
|
+
always: 3
|
|
3015
|
+
};
|
|
3016
|
+
const timeZoneDisplayMap = {
|
|
3017
|
+
auto: 0,
|
|
3018
|
+
never: 1,
|
|
3019
|
+
critical: 2
|
|
3020
|
+
};
|
|
3021
|
+
const offsetDisplayMap = {
|
|
3022
|
+
auto: 0,
|
|
3023
|
+
never: 1
|
|
3024
|
+
};
|
|
3025
|
+
const roundingModeMap = {
|
|
3026
|
+
floor: 0,
|
|
3027
|
+
halfFloor: 1,
|
|
3028
|
+
ceil: 2,
|
|
3029
|
+
halfCeil: 3,
|
|
3030
|
+
trunc: 4,
|
|
3031
|
+
halfTrunc: 5,
|
|
3032
|
+
expand: 6,
|
|
3033
|
+
halfExpand: 7,
|
|
3034
|
+
halfEven: 8
|
|
3035
|
+
};
|
|
3036
|
+
const roundingModeFuncs = [ Math.floor, num => hasHalf(num) ? Math.floor(num) : Math.round(num), Math.ceil, num => hasHalf(num) ? Math.ceil(num) : Math.round(num), Math.trunc, num => hasHalf(num) ? Math.trunc(num) || 0 : Math.round(num), num => num < 0 ? Math.floor(num) : Math.ceil(num), num => Math.sign(num) * Math.round(Math.abs(num)) || 0, num => hasHalf(num) ? (num = Math.trunc(num) || 0) + num % 2 : Math.round(num) ];
|
|
3037
|
+
const directionMap = {
|
|
3038
|
+
previous: -1,
|
|
3039
|
+
next: 1
|
|
3040
|
+
};
|
|
3041
|
+
const coerceSmallestUnit = bindArgs(coerceUnitOption, smallestUnitStr);
|
|
3042
|
+
const coerceLargestUnit = bindArgs(coerceUnitOption, "largestUnit");
|
|
3043
|
+
const coerceTotalUnit = bindArgs(coerceUnitOption, "unit");
|
|
3044
|
+
const coerceOverflow = bindArgs(coerceChoiceOption, "overflow", overflowMap);
|
|
3045
|
+
const coerceEpochDisambig = bindArgs(coerceChoiceOption, "disambiguation", epochDisambigMap);
|
|
3046
|
+
const coerceOffsetDisambig = bindArgs(coerceChoiceOption, "offset", offsetDisambigMap);
|
|
3047
|
+
const coerceCalendarDisplay = bindArgs(coerceChoiceOption, "calendarName", calendarDisplayMap);
|
|
3048
|
+
const coerceTimeZoneDisplay = bindArgs(coerceChoiceOption, "timeZoneName", timeZoneDisplayMap);
|
|
3049
|
+
const coerceOffsetDisplay = bindArgs(coerceChoiceOption, "offset", offsetDisplayMap);
|
|
3050
|
+
const coerceRoundingMode = bindArgs(coerceChoiceOption, "roundingMode", roundingModeMap);
|
|
3051
|
+
const coerceDirection = bindArgs(coerceChoiceOption, "direction", directionMap);
|
|
3052
|
+
const invalidEntity = invalidEntity$1;
|
|
3053
|
+
const missingField = fieldName => `Missing ${fieldName}`;
|
|
3054
|
+
const noValidFields = validFields => "No valid fields: " + validFields.join();
|
|
3055
|
+
const invalidChoice = (fieldName, val, choiceMap) => invalidEntity$1(fieldName, val) + "; must be " + Object.keys(choiceMap).join();
|
|
3056
|
+
const missingYear = allowEra => "Missing year" + (allowEra ? "/era/eraYear" : "");
|
|
3057
|
+
const invalidLeapMonth = "Invalid leap month";
|
|
3058
|
+
const invalidCalendar = calendarId => invalidEntity$1("Calendar", calendarId);
|
|
3059
|
+
const invalidTimeZone = calendarId => invalidEntity$1("TimeZone", calendarId);
|
|
3060
|
+
const outOfBoundsDate = "Out-of-bounds date";
|
|
3061
|
+
const missingSmallestLargestUnit = "Required smallestUnit or largestUnit";
|
|
3062
|
+
const flippedSmallestLargestUnit = "smallestUnit > largestUnit";
|
|
3063
|
+
const failedParse = s => `Cannot parse: ${s}`;
|
|
3064
|
+
const invalidSubstring = substring => `Invalid substring: ${substring}`;
|
|
3065
|
+
const invalidFormatType = branding => `Cannot format ${branding}`;
|
|
3066
|
+
const constrainToRange = (num, min, max) => Math.min(Math.max(num, min), max);
|
|
3067
|
+
const isObjectLike = isObjectLike$1;
|
|
3068
|
+
const createPropDescriptors = (propVals, readonly) => mapProps(value => ({
|
|
3069
|
+
value: value,
|
|
3070
|
+
configurable: 1,
|
|
3071
|
+
writable: !readonly
|
|
3072
|
+
}), propVals);
|
|
3073
|
+
const createStringTagDescriptors = value => ({
|
|
3074
|
+
[Symbol.toStringTag]: {
|
|
3075
|
+
value: value,
|
|
3076
|
+
configurable: 1
|
|
3077
|
+
}
|
|
3078
|
+
});
|
|
3079
|
+
const padNumber2 = bindArgs(padNumber, 2);
|
|
3080
|
+
const gregoryEraOrigins = {
|
|
3081
|
+
bce: -1,
|
|
3082
|
+
ce: 0
|
|
3083
|
+
};
|
|
3084
|
+
const isoCalendarImpl = void 0;
|
|
3085
|
+
const monthCodeRegExp = /^M(\d{2})(L?)$/;
|
|
3086
|
+
const unitNameMap = {
|
|
3087
|
+
nanosecond: 0,
|
|
3088
|
+
microsecond: 1,
|
|
3089
|
+
millisecond: 2,
|
|
3090
|
+
second: 3,
|
|
3091
|
+
minute: 4,
|
|
3092
|
+
hour: 5,
|
|
3093
|
+
day: 6,
|
|
3094
|
+
week: 7,
|
|
3095
|
+
month: 8,
|
|
3096
|
+
year: 9
|
|
3097
|
+
};
|
|
3098
|
+
const unitNamesAsc = Object.keys(unitNameMap);
|
|
3099
|
+
const milliInUtcDay = 864e5;
|
|
3100
|
+
const nanoInMilli = 1e6;
|
|
3101
|
+
const nanoInSec = 1e9;
|
|
3102
|
+
const nanoInMinute = 6e10;
|
|
3103
|
+
const nanoInHour = 36e11;
|
|
3104
|
+
const nanoInUtcDay = 864e11;
|
|
3105
|
+
const unitNanoMap = [ 1, 1e3, 1e6, nanoInSec, 6e10, nanoInHour, nanoInUtcDay ];
|
|
3106
|
+
const bigNanoInMicro = BigInt(1e3);
|
|
3107
|
+
const bigNanoInMilli = BigInt(1e6);
|
|
3108
|
+
const bigNanoInSec = BigInt(nanoInSec);
|
|
3109
|
+
const bigNanoInMinute = BigInt(6e10);
|
|
3110
|
+
const bigNanoInHour = BigInt(nanoInHour);
|
|
3111
|
+
const bigNanoInUtcDay = BigInt(nanoInUtcDay);
|
|
3112
|
+
const timeFieldNamesAsc = unitNamesAsc.slice(0, 6);
|
|
3113
|
+
const timeGetters = createPropGetters(timeFieldNamesAsc);
|
|
3114
|
+
const yearFieldNamesAsc = [ "year" ];
|
|
3115
|
+
const dayFieldNamesAsc = [ "day" ];
|
|
3116
|
+
const calendarDateFieldNamesAsc = [ "day", "month", "year" ];
|
|
3117
|
+
const offsetFieldNames = [ "offset" ];
|
|
3118
|
+
const timeZoneFieldNames = [ "timeZone" ];
|
|
3119
|
+
const eraYearFieldNames = [ "era", "eraYear" ];
|
|
3120
|
+
const allYearFieldNames = [ "era", "eraYear", "year" ];
|
|
3121
|
+
const monthFieldNames = [ "month", "monthCode" ];
|
|
3122
|
+
const monthDayFieldNames = [ "day", "month", "monthCode" ];
|
|
3123
|
+
const timeFieldNamesAlpha = sortStrings(timeFieldNamesAsc);
|
|
3124
|
+
const yearFieldNamesWithEraAlpha = sortStrings(eraYearFieldNames, yearFieldNamesAsc);
|
|
3125
|
+
const yearMonthFieldNamesAlpha = sortStrings(monthFieldNames, yearFieldNamesAsc);
|
|
3126
|
+
const yearMonthFieldNamesWithEraAlpha = sortStrings(eraYearFieldNames, yearMonthFieldNamesAlpha);
|
|
3127
|
+
const yearMonthCodeFieldNamesAlpha = sortStrings([ "monthCode" ], yearFieldNamesAsc);
|
|
3128
|
+
const yearMonthCodeFieldNamesWithEraAlpha = sortStrings(eraYearFieldNames, yearMonthCodeFieldNamesAlpha);
|
|
3129
|
+
const monthCodeDayFieldNamesAlpha = sortStrings(dayFieldNamesAsc, [ "monthCode" ]);
|
|
3130
|
+
const dateFieldNamesAlpha = sortStrings(dayFieldNamesAsc, yearMonthFieldNamesAlpha);
|
|
3131
|
+
const dateFieldNamesWithEraAlpha = sortStrings(dayFieldNamesAsc, eraYearFieldNames, yearMonthFieldNamesAlpha);
|
|
3132
|
+
const dateTimeFieldNamesAlpha = sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc);
|
|
3133
|
+
const dateTimeFieldNamesWithEraAlpha = sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc);
|
|
3134
|
+
const dateTimeAndOffsetFieldNamesAlpha = sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc, offsetFieldNames);
|
|
3135
|
+
const dateTimeAndOffsetFieldNamesWithEraAlpha = sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc, offsetFieldNames);
|
|
3136
|
+
const dateTimeAndZoneFieldNamesAlpha = sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc, offsetFieldNames, timeZoneFieldNames);
|
|
3137
|
+
const dateTimeAndZoneFieldNamesWithEraAlpha = sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc, offsetFieldNames, timeZoneFieldNames);
|
|
3138
|
+
const yearMonthCodeDayFieldNamesAlpha = sortStrings(dayFieldNamesAsc, yearMonthCodeFieldNamesAlpha);
|
|
3139
|
+
const yearMonthCodeDayFieldNamesWithEraAlpha = sortStrings(dayFieldNamesAsc, eraYearFieldNames, yearMonthCodeFieldNamesAlpha);
|
|
3140
|
+
const timeFieldDefaults = zipPropsConst(timeFieldNamesAsc, 0);
|
|
3141
|
+
const maxValues = {
|
|
3142
|
+
hour: 23,
|
|
3143
|
+
minute: 59,
|
|
3144
|
+
second: 59
|
|
3145
|
+
};
|
|
3146
|
+
const durationFieldNamesAsc = unitNamesAsc.map(unitName => unitName + "s");
|
|
3147
|
+
const durationGetters = createPropGetters(durationFieldNamesAsc);
|
|
3148
|
+
const durationFieldNamesAlpha = sortStrings(durationFieldNamesAsc);
|
|
3149
|
+
const durationTimeFieldNamesAsc = durationFieldNamesAsc.slice(0, 6);
|
|
3150
|
+
const durationDateFieldNamesAsc = durationFieldNamesAsc.slice(6);
|
|
3151
|
+
const durationCalendarFieldNamesAsc = durationDateFieldNamesAsc.slice(1);
|
|
3152
|
+
const durationFieldDefaults = zipPropsConst(durationFieldNamesAsc, 0);
|
|
3153
|
+
const durationTimeFieldDefaults = zipPropsConst(durationTimeFieldNamesAsc, 0);
|
|
3154
|
+
const clearDurationFields = bindArgs(zeroOutProps, durationFieldNamesAsc);
|
|
3155
|
+
const requireString = bindArgs(requireType, "string");
|
|
3156
|
+
const epochNanoMax = BigInt(1e8) * bigNanoInUtcDay;
|
|
3157
|
+
const epochNanoMin = BigInt(-1e8) * bigNanoInUtcDay;
|
|
3158
|
+
const plainDateEpochNanoMin = epochNanoMin - bigNanoInUtcDay;
|
|
3159
|
+
const isoYearMonthIndexMin = -3261848;
|
|
3160
|
+
const zonedEpochSlotsToIso = memoize(_zonedEpochSlotsToIso, WeakMap);
|
|
3161
|
+
const maxDurationSeconds = 2 ** 53;
|
|
3162
|
+
const offsetRegExp = createRegExp("([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?");
|
|
3163
|
+
const dateFieldRefiners = {
|
|
3164
|
+
era: toString,
|
|
3165
|
+
month: toPositiveIntegerWithTruncation,
|
|
3166
|
+
monthCode(monthCode, fieldName) {
|
|
3167
|
+
return requireString(toPrimitiveWithStringHint(monthCode), fieldName);
|
|
3168
|
+
},
|
|
3169
|
+
day: toPositiveIntegerWithTruncation
|
|
3170
|
+
};
|
|
3171
|
+
const timeFieldRefiners = zipPropsConst(timeFieldNamesAsc, toIntegerWithTrunc);
|
|
3172
|
+
const durationFieldRefiners = zipPropsConst(durationFieldNamesAsc, toStrictInteger);
|
|
3173
|
+
const dateTimeFieldRefiners = Object.assign({}, dateFieldRefiners, timeFieldRefiners);
|
|
3174
|
+
const zonedDateTimeFieldRefiners = {
|
|
3175
|
+
offset(offsetString) {
|
|
3176
|
+
return parseOffsetNano(requireString(toPrimitiveWithStringHint(offsetString)));
|
|
3177
|
+
},
|
|
3178
|
+
...dateTimeFieldRefiners
|
|
3179
|
+
};
|
|
3180
|
+
const RawDateTimeFormat = Intl.DateTimeFormat;
|
|
3181
|
+
const timeZonePeriodDaysByName = {
|
|
3182
|
+
El_Aaiun: 17,
|
|
3183
|
+
Tucuman: 12,
|
|
3184
|
+
Tirane: 11,
|
|
3185
|
+
Riga: 10,
|
|
3186
|
+
Simferopol: 9,
|
|
3187
|
+
Vienna: 9,
|
|
3188
|
+
Tunis: 8,
|
|
3189
|
+
Boa_Vista: 6,
|
|
3190
|
+
Fortaleza: 6,
|
|
3191
|
+
Maceio: 6,
|
|
3192
|
+
Noronha: 6,
|
|
3193
|
+
Recife: 6,
|
|
3194
|
+
Gaza: 6,
|
|
3195
|
+
Hebron: 6,
|
|
3196
|
+
DeNoronha: 6
|
|
3197
|
+
};
|
|
3198
|
+
const minPossibleTransitionSec = -388152e4;
|
|
3199
|
+
const trailingZerosRE = /0+$/;
|
|
3200
|
+
const icuRegExp = /^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/;
|
|
3201
|
+
const badCharactersRegExp = /[^\w\/:+-]+/;
|
|
3202
|
+
const queryNamedTimeZoneRecord = memoize(normId => {
|
|
3203
|
+
if ("UTC" === normId) {
|
|
3204
|
+
return {
|
|
3205
|
+
kind: "utc",
|
|
3206
|
+
id: normId,
|
|
3207
|
+
m: normId
|
|
3208
|
+
};
|
|
3209
|
+
}
|
|
3210
|
+
const upperNormId = normId.toUpperCase();
|
|
3211
|
+
const format = queryTimeZoneIntlFormat(upperNormId);
|
|
3212
|
+
return {
|
|
3213
|
+
kind: "named",
|
|
3214
|
+
id: normId,
|
|
3215
|
+
format: format,
|
|
3216
|
+
m: format.resolvedOptions().timeZone
|
|
3217
|
+
};
|
|
3218
|
+
});
|
|
3219
|
+
const queryTimeZoneIntlFormat = memoize(upperNormId => new RawDateTimeFormat("en-u-hc-h23", {
|
|
3220
|
+
calendar: "iso8601",
|
|
3221
|
+
timeZone: upperNormId,
|
|
3222
|
+
era: "short",
|
|
3223
|
+
year: "numeric",
|
|
3224
|
+
month: "numeric",
|
|
3225
|
+
day: "numeric",
|
|
3226
|
+
hour: "numeric",
|
|
3227
|
+
minute: "numeric",
|
|
3228
|
+
second: "numeric"
|
|
3229
|
+
}));
|
|
3230
|
+
const queryTimeZoneRecord = memoize((normTimeZoneId, record) => "named" === record.kind ? new IntlTimeZone(normTimeZoneId, record.m, record.format) : new FixedTimeZone(normTimeZoneId, record.m, "fixed" === record.kind ? record.Z : 0));
|
|
3231
|
+
class FixedTimeZone {
|
|
3232
|
+
constructor(id, compareKey, offsetNano) {
|
|
3233
|
+
this.id = id, this.m = compareKey, this.Z = offsetNano;
|
|
3234
|
+
}
|
|
3235
|
+
B() {
|
|
3236
|
+
return this.Z;
|
|
3237
|
+
}
|
|
3238
|
+
R(isoDateTime) {
|
|
3239
|
+
return [ isoDateTimeAndOffsetToEpochNano(isoDateTime, this.Z) ];
|
|
3240
|
+
}
|
|
3241
|
+
C() {}
|
|
3242
|
+
}
|
|
3243
|
+
class IntlTimeZone {
|
|
3244
|
+
constructor(id, compareKey, format) {
|
|
3245
|
+
this.id = id, this.m = compareKey, this.oe = ((computeOffsetSec, periodDays) => {
|
|
3246
|
+
function getOffsetSec(epochSec) {
|
|
3247
|
+
const [startEpochSec, endEpochSec] = computePeriod(epochSec, periodSec);
|
|
3248
|
+
const clampedStartEpochSec = clampIntlSampleEpochSec(startEpochSec);
|
|
3249
|
+
const clampedEndEpochSec = clampIntlSampleEpochSec(endEpochSec);
|
|
3250
|
+
const startOffsetSec = getSample(clampedStartEpochSec);
|
|
3251
|
+
const endOffsetSec = getSample(clampedEndEpochSec);
|
|
3252
|
+
return startOffsetSec === endOffsetSec ? startOffsetSec : pinch(getSplit(clampedStartEpochSec, clampedEndEpochSec), startOffsetSec, endOffsetSec, epochSec);
|
|
3253
|
+
}
|
|
3254
|
+
function pinch(split, startOffsetSec, endOffsetSec, forEpochSec) {
|
|
3255
|
+
let offsetSec;
|
|
3256
|
+
let splitDurSec;
|
|
3257
|
+
for (;(void 0 === forEpochSec || void 0 === (offsetSec = forEpochSec < split[0] ? startOffsetSec : forEpochSec >= split[1] ? endOffsetSec : void 0)) && (splitDurSec = split[1] - split[0]); ) {
|
|
3258
|
+
const middleEpochSec = split[0] + Math.floor(splitDurSec / 2);
|
|
3259
|
+
computeOffsetSec(middleEpochSec) === endOffsetSec ? split[1] = middleEpochSec : split[0] = middleEpochSec + 1;
|
|
3260
|
+
}
|
|
3261
|
+
return offsetSec;
|
|
3262
|
+
}
|
|
3263
|
+
const getSample = memoize(computeOffsetSec);
|
|
3264
|
+
const getSplit = memoize(createSplitTuple);
|
|
3265
|
+
const periodSec = 86400 * periodDays;
|
|
3266
|
+
return {
|
|
3267
|
+
Ae(zonedEpochSec) {
|
|
3268
|
+
const wideOffsetSec0 = getOffsetSec(zonedEpochSec - 86400);
|
|
3269
|
+
const wideOffsetSec1 = getOffsetSec(zonedEpochSec + 86400);
|
|
3270
|
+
const wideUtcEpochSec0 = zonedEpochSec - wideOffsetSec0;
|
|
3271
|
+
const wideUtcEpochSec1 = zonedEpochSec - wideOffsetSec1;
|
|
3272
|
+
if (wideOffsetSec0 === wideOffsetSec1) {
|
|
3273
|
+
return [ wideUtcEpochSec0 ];
|
|
3274
|
+
}
|
|
3275
|
+
const narrowOffsetSec0 = getOffsetSec(wideUtcEpochSec0);
|
|
3276
|
+
return narrowOffsetSec0 === getOffsetSec(wideUtcEpochSec1) ? [ zonedEpochSec - narrowOffsetSec0 ] : wideOffsetSec0 > wideOffsetSec1 ? [ wideUtcEpochSec0, wideUtcEpochSec1 ] : [];
|
|
3277
|
+
},
|
|
3278
|
+
ze: getOffsetSec,
|
|
3279
|
+
C: function getTransition(epochSec, direction) {
|
|
3280
|
+
if (direction > 0 && epochSec >= 864e10) {
|
|
3281
|
+
return;
|
|
3282
|
+
}
|
|
3283
|
+
if (direction < 0) {
|
|
3284
|
+
if (epochSec <= minPossibleTransitionSec) {
|
|
3285
|
+
return;
|
|
3286
|
+
}
|
|
3287
|
+
const lookaheadEpochSec = getCurrentEpochSec() + 94867200;
|
|
3288
|
+
if (epochSec > lookaheadEpochSec) {
|
|
3289
|
+
return getTransition(lookaheadEpochSec, -1);
|
|
3290
|
+
}
|
|
3291
|
+
}
|
|
3292
|
+
const searchEpochSec = direction > 0 ? Math.max(epochSec, minPossibleTransitionSec) : epochSec;
|
|
3293
|
+
let [startEpochSec, endEpochSec] = computePeriod(searchEpochSec, periodSec);
|
|
3294
|
+
const inc = periodSec * direction;
|
|
3295
|
+
const searchLimit = direction > 0 ? Math.max(epochSec, getCurrentEpochSec()) + 94867200 : minPossibleTransitionSec;
|
|
3296
|
+
const inBounds = () => direction < 0 ? endEpochSec > searchLimit : startEpochSec < searchLimit;
|
|
3297
|
+
for (;inBounds(); ) {
|
|
3298
|
+
const clampedStartEpochSec = clampIntlSampleEpochSec(startEpochSec);
|
|
3299
|
+
const clampedEndEpochSec = clampIntlSampleEpochSec(endEpochSec);
|
|
3300
|
+
const startOffsetSec = getSample(clampedStartEpochSec);
|
|
3301
|
+
const endOffsetSec = getSample(clampedEndEpochSec);
|
|
3302
|
+
if (startOffsetSec !== endOffsetSec) {
|
|
3303
|
+
const split = getSplit(clampedStartEpochSec, clampedEndEpochSec);
|
|
3304
|
+
pinch(split, startOffsetSec, endOffsetSec);
|
|
3305
|
+
const transitionEpochSec = split[0];
|
|
3306
|
+
if ((compareNumbers(transitionEpochSec, epochSec) || 1) === direction) {
|
|
3307
|
+
return transitionEpochSec;
|
|
3308
|
+
}
|
|
3309
|
+
}
|
|
3310
|
+
startEpochSec += inc, endEpochSec += inc;
|
|
3311
|
+
}
|
|
3312
|
+
}
|
|
3313
|
+
};
|
|
3314
|
+
})((format => epochSec => {
|
|
3315
|
+
const intlParts = formatEpochMilliToPartsRecord(format, 1e3 * epochSec);
|
|
3316
|
+
return 86400 * isoPartsToEpochDays((intlParts => {
|
|
3317
|
+
const relatedYear = intlParts.relatedYear;
|
|
3318
|
+
if (void 0 !== relatedYear) {
|
|
3319
|
+
return parseInt(relatedYear);
|
|
3320
|
+
}
|
|
3321
|
+
const year = parseInt(intlParts.year);
|
|
3322
|
+
return void 0 !== intlParts.era && "bce" === normalizeEraName(intlParts.era) ? 1 - year : year;
|
|
3323
|
+
})(intlParts), parseInt(intlParts.month), parseInt(intlParts.day)) + 3600 * parseInt(intlParts.hour) + 60 * parseInt(intlParts.minute) + parseInt(intlParts.second) - epochSec;
|
|
3324
|
+
})(format), (timeZoneId => {
|
|
3325
|
+
const timeZoneName = timeZoneId.split("/").pop();
|
|
3326
|
+
return timeZonePeriodDaysByName[timeZoneName] || 60;
|
|
3327
|
+
})(id));
|
|
3328
|
+
}
|
|
3329
|
+
B(epochNano) {
|
|
3330
|
+
return this.oe.ze((epochNano => epochNanoToSecMod(epochNano)[0])(epochNano)) * nanoInSec;
|
|
3331
|
+
}
|
|
3332
|
+
R(isoDateTime) {
|
|
3333
|
+
const zonedEpochSec = 86400 * isoDateToEpochDays(isoDateTime) + timeFieldsToSec(isoDateTime);
|
|
3334
|
+
const subsecNano = timeFieldsToSubsecNano(isoDateTime);
|
|
3335
|
+
return this.oe.Ae(zonedEpochSec).map(epochSec => checkEpochNanoInBounds(BigInt(epochSec) * bigNanoInSec + BigInt(subsecNano)));
|
|
3336
|
+
}
|
|
3337
|
+
C(epochNano, direction) {
|
|
3338
|
+
const [epochSec, subsecNano] = epochNanoToSecMod(epochNano);
|
|
3339
|
+
const resEpochSec = this.oe.C(epochSec + (direction > 0 || subsecNano ? 1 : 0), direction);
|
|
3340
|
+
if (void 0 !== resEpochSec) {
|
|
3341
|
+
return BigInt(resEpochSec) * bigNanoInSec;
|
|
3342
|
+
}
|
|
3343
|
+
}
|
|
3344
|
+
}
|
|
3345
|
+
const dateTimeRegExpStr = "(?:(?:([+-])(\\d{6}))|(\\d{4}))(-?)(\\d{2})\\4(\\d{2})(?:[T ]" + timeRegExpStr(8) + "(Z|([+-])" + timeRegExpStr(15) + ")?)?";
|
|
3346
|
+
const yearMonthRegExp = createRegExp("(?:(?:([+-])(\\d{6}))|(\\d{4}))-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})");
|
|
3347
|
+
const monthDayRegExp = createRegExp("(?:--)?(\\d{2})-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})");
|
|
3348
|
+
const dateTimeRegExp = createRegExp(dateTimeRegExpStr + "((?:\\[(!?)([^\\]]*)\\]){0,9})");
|
|
3349
|
+
const timeRegExp = createRegExp("T?" + timeRegExpStr(2) + `(([+-])${timeRegExpStr(9)})?((?:\\[(!?)([^\\]]*)\\]){0,9})`);
|
|
3350
|
+
const annotationRegExp = new RegExp("\\[(!?)([^\\]]*)\\]", "g");
|
|
3351
|
+
const durationRegExp = createRegExp("([+-])?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?!$)(?:(\\d+)(?:[.,](\\d{1,9}))?H)?(?:(\\d+)(?:[.,](\\d{1,9}))?M)?(?:(\\d+)(?:[.,](\\d{1,9}))?S)?)?");
|
|
3352
|
+
const dateDefaultShapeFields = {
|
|
3353
|
+
year: "numeric",
|
|
3354
|
+
month: "numeric",
|
|
3355
|
+
day: "numeric"
|
|
3356
|
+
};
|
|
3357
|
+
const timeDefaultShapeFields = {
|
|
3358
|
+
hour: "numeric",
|
|
3359
|
+
minute: "numeric",
|
|
3360
|
+
second: "numeric"
|
|
3361
|
+
};
|
|
3362
|
+
const dateTimeDefaultShapeFields = Object.assign({}, dateDefaultShapeFields, timeDefaultShapeFields);
|
|
3363
|
+
const dateShapeFieldNames = [ "weekday", "year", "month", "day", "dateStyle" ];
|
|
3364
|
+
const timeShapeFieldNames = [ "dayPeriod", "hour", "minute", "second", "fractionalSecondDigits", "timeStyle" ];
|
|
3365
|
+
const dateTimeShapeFieldNames = dateShapeFieldNames.concat(timeShapeFieldNames);
|
|
3366
|
+
const yearMonthIgnoredFieldNames = [ "weekday", "day" ].concat(timeShapeFieldNames);
|
|
3367
|
+
const monthDayIgnoredFieldNames = [ "weekday", "year" ].concat(timeShapeFieldNames);
|
|
3368
|
+
const transformInstantOptions = createOptionsTransformer(dateTimeShapeFieldNames, [], [], dateTimeDefaultShapeFields);
|
|
3369
|
+
const transformZonedOptions = createOptionsTransformer(dateTimeShapeFieldNames, [], [], {
|
|
3370
|
+
...dateTimeDefaultShapeFields,
|
|
3371
|
+
timeZoneName: "short"
|
|
3372
|
+
});
|
|
3373
|
+
const transformDateTimeOptions = createOptionsTransformer(dateTimeShapeFieldNames, [], [ "timeZoneName" ], dateTimeDefaultShapeFields);
|
|
3374
|
+
const transformDateOptions = createOptionsTransformer(dateShapeFieldNames, timeShapeFieldNames, [ "timeZoneName" ], dateDefaultShapeFields);
|
|
3375
|
+
const transformTimeOptions = createOptionsTransformer(timeShapeFieldNames, dateShapeFieldNames, [ "timeZoneName", "era" ], timeDefaultShapeFields);
|
|
3376
|
+
const transformYearMonthOptions = createOptionsTransformer([ "year", "month", "dateStyle" ], yearMonthIgnoredFieldNames, [ "timeZoneName" ], {
|
|
3377
|
+
year: "numeric",
|
|
3378
|
+
month: "numeric"
|
|
3379
|
+
}, {
|
|
3380
|
+
full: {
|
|
3381
|
+
year: "numeric",
|
|
3382
|
+
month: "long"
|
|
3383
|
+
},
|
|
3384
|
+
long: {
|
|
3385
|
+
year: "numeric",
|
|
3386
|
+
month: "long"
|
|
3387
|
+
},
|
|
3388
|
+
medium: {
|
|
3389
|
+
year: "numeric",
|
|
3390
|
+
month: "short"
|
|
3391
|
+
},
|
|
3392
|
+
short: {
|
|
3393
|
+
year: "2-digit",
|
|
3394
|
+
month: "numeric"
|
|
3395
|
+
}
|
|
3396
|
+
});
|
|
3397
|
+
const transformMonthDayOptions = createOptionsTransformer([ "month", "day", "dateStyle" ], monthDayIgnoredFieldNames, [ "timeZoneName", "era" ], {
|
|
3398
|
+
month: "numeric",
|
|
3399
|
+
day: "numeric"
|
|
3400
|
+
}, {
|
|
3401
|
+
full: {
|
|
3402
|
+
month: "long",
|
|
3403
|
+
day: "numeric"
|
|
3404
|
+
},
|
|
3405
|
+
long: {
|
|
3406
|
+
month: "long",
|
|
3407
|
+
day: "numeric"
|
|
3408
|
+
},
|
|
3409
|
+
medium: {
|
|
3410
|
+
month: "short",
|
|
3411
|
+
day: "numeric"
|
|
3412
|
+
},
|
|
3413
|
+
short: {
|
|
3414
|
+
month: "numeric",
|
|
3415
|
+
day: "numeric"
|
|
3416
|
+
}
|
|
3417
|
+
});
|
|
3418
|
+
const NativeTemporal = globalThis.Temporal;
|
|
3419
|
+
const attachDebugString = "noop" === noop.name ? instance => {
|
|
3420
|
+
Object.defineProperty(instance, "_str_", {
|
|
3421
|
+
value: instance.toJSON()
|
|
3422
|
+
});
|
|
3423
|
+
} : noop;
|
|
3424
|
+
const yearMonthFieldGetters$1 = {
|
|
3425
|
+
era(slots) {
|
|
3426
|
+
return computeCalendarEraFields(slots.calendar, slots).era;
|
|
3427
|
+
},
|
|
3428
|
+
eraYear(slots) {
|
|
3429
|
+
return computeCalendarEraFields(slots.calendar, slots).eraYear;
|
|
3430
|
+
},
|
|
3431
|
+
year(slots) {
|
|
3432
|
+
return computeCalendarDateFields(slots.calendar, slots).year;
|
|
3433
|
+
},
|
|
3434
|
+
month(slots) {
|
|
3435
|
+
return computeCalendarDateFields(slots.calendar, slots).month;
|
|
3436
|
+
},
|
|
3437
|
+
monthCode(slots) {
|
|
3438
|
+
return computeCalendarMonthCode(slots.calendar, slots);
|
|
3439
|
+
}
|
|
3440
|
+
};
|
|
3441
|
+
const dateFieldGetters$1 = {
|
|
3442
|
+
era(slots) {
|
|
3443
|
+
return computeCalendarEraFields(slots.calendar, slots).era;
|
|
3444
|
+
},
|
|
3445
|
+
eraYear(slots) {
|
|
3446
|
+
return computeCalendarEraFields(slots.calendar, slots).eraYear;
|
|
3447
|
+
},
|
|
3448
|
+
year(slots) {
|
|
3449
|
+
return computeCalendarDateFields(slots.calendar, slots).year;
|
|
3450
|
+
},
|
|
3451
|
+
month(slots) {
|
|
3452
|
+
return computeCalendarDateFields(slots.calendar, slots).month;
|
|
3453
|
+
},
|
|
3454
|
+
monthCode(slots) {
|
|
3455
|
+
return computeCalendarMonthCode(slots.calendar, slots);
|
|
3456
|
+
},
|
|
3457
|
+
day(slots) {
|
|
3458
|
+
return computeCalendarDateFields(slots.calendar, slots).day;
|
|
3459
|
+
}
|
|
3460
|
+
};
|
|
3461
|
+
const monthDayFieldGetters$1 = {
|
|
3462
|
+
monthCode(slots) {
|
|
3463
|
+
return computeCalendarMonthCode(slots.calendar, slots);
|
|
3464
|
+
},
|
|
3465
|
+
day(slots) {
|
|
3466
|
+
return computeCalendarDateFields(slots.calendar, slots).day;
|
|
3467
|
+
}
|
|
3468
|
+
};
|
|
3469
|
+
const yearMonthDerivedGetters = {
|
|
3470
|
+
daysInMonth(slots) {
|
|
3471
|
+
return computeCalendarDaysInMonth(slots.calendar, slots);
|
|
3472
|
+
},
|
|
3473
|
+
daysInYear(slots) {
|
|
3474
|
+
return computeCalendarDaysInYear(slots.calendar, slots);
|
|
3475
|
+
},
|
|
3476
|
+
monthsInYear(slots) {
|
|
3477
|
+
return computeCalendarMonthsInYear(slots.calendar, slots);
|
|
3478
|
+
},
|
|
3479
|
+
inLeapYear(slots) {
|
|
3480
|
+
return computeCalendarInLeapYear(slots.calendar, slots);
|
|
3481
|
+
}
|
|
3482
|
+
};
|
|
3483
|
+
const dateDerivedGetters = {
|
|
3484
|
+
dayOfWeek(slots) {
|
|
3485
|
+
return computeIsoDayOfWeek(slots);
|
|
3486
|
+
},
|
|
3487
|
+
dayOfYear(slots) {
|
|
3488
|
+
return ((calendar, isoDate) => {
|
|
3489
|
+
if (!calendar) {
|
|
3490
|
+
return computeIsoDayOfYear(isoDate);
|
|
3491
|
+
}
|
|
3492
|
+
const {year: year} = computeCalendarDateFields(calendar, isoDate);
|
|
3493
|
+
const yearStartIsoDate = computeCalendarIsoFieldsFromParts(calendar, year, 1, 1);
|
|
3494
|
+
return isoDateToEpochDays(isoDate) - isoDateToEpochDays(yearStartIsoDate) + 1;
|
|
3495
|
+
})(slots.calendar, slots);
|
|
3496
|
+
},
|
|
3497
|
+
weekOfYear: slots => slots.calendar === isoCalendarImpl ? computeIsoWeekFields(slots).weekOfYear : void 0,
|
|
3498
|
+
yearOfWeek: slots => slots.calendar === isoCalendarImpl ? computeIsoWeekFields(slots).yearOfWeek : void 0,
|
|
3499
|
+
daysInWeek() {
|
|
3500
|
+
return 7;
|
|
3501
|
+
},
|
|
3502
|
+
daysInMonth(slots) {
|
|
3503
|
+
return computeCalendarDaysInMonth(slots.calendar, slots);
|
|
3504
|
+
},
|
|
3505
|
+
daysInYear(slots) {
|
|
3506
|
+
return computeCalendarDaysInYear(slots.calendar, slots);
|
|
3507
|
+
},
|
|
3508
|
+
monthsInYear(slots) {
|
|
3509
|
+
return computeCalendarMonthsInYear(slots.calendar, slots);
|
|
3510
|
+
},
|
|
3511
|
+
inLeapYear(slots) {
|
|
3512
|
+
return computeCalendarInLeapYear(slots.calendar, slots);
|
|
3513
|
+
}
|
|
3514
|
+
};
|
|
3515
|
+
const buddhistEraOrigins = {
|
|
3516
|
+
be: 0
|
|
3517
|
+
};
|
|
3518
|
+
const commonScrapedCalendarConfig = {
|
|
3519
|
+
l: 13,
|
|
3520
|
+
V: {
|
|
3521
|
+
1: 0,
|
|
3522
|
+
2: 29,
|
|
3523
|
+
8: 29,
|
|
3524
|
+
9: 29,
|
|
3525
|
+
10: 29,
|
|
3526
|
+
11: 29,
|
|
3527
|
+
12: 0
|
|
3528
|
+
},
|
|
3529
|
+
U: 30,
|
|
3530
|
+
ye(monthCodeNumber, isLeapMonth, day) {
|
|
3531
|
+
if (isLeapMonth) {
|
|
3532
|
+
switch (monthCodeNumber) {
|
|
3533
|
+
case 1:
|
|
3534
|
+
return 1651;
|
|
3535
|
+
|
|
3536
|
+
case 2:
|
|
3537
|
+
return day < 30 ? 1947 : 1765;
|
|
3538
|
+
|
|
3539
|
+
case 3:
|
|
3540
|
+
return day < 30 ? 1966 : 1955;
|
|
3541
|
+
|
|
3542
|
+
case 4:
|
|
3543
|
+
return day < 30 ? 1963 : 1944;
|
|
3544
|
+
|
|
3545
|
+
case 5:
|
|
3546
|
+
return day < 30 ? 1971 : 1952;
|
|
3547
|
+
|
|
3548
|
+
case 6:
|
|
3549
|
+
return day < 30 ? 1960 : 1941;
|
|
3550
|
+
|
|
3551
|
+
case 7:
|
|
3552
|
+
return day < 30 ? 1968 : 1938;
|
|
3553
|
+
|
|
3554
|
+
case 8:
|
|
3555
|
+
return day < 30 ? 1957 : 1718;
|
|
3556
|
+
|
|
3557
|
+
case 9:
|
|
3558
|
+
return 2014;
|
|
3559
|
+
|
|
3560
|
+
case 10:
|
|
3561
|
+
return 1984;
|
|
3562
|
+
|
|
3563
|
+
case 11:
|
|
3564
|
+
return day < 29 ? 2033 : 2034;
|
|
3565
|
+
|
|
3566
|
+
case 12:
|
|
3567
|
+
return 1890;
|
|
3568
|
+
}
|
|
3569
|
+
}
|
|
3570
|
+
return 1972;
|
|
3571
|
+
}
|
|
3572
|
+
};
|
|
3573
|
+
const copticEraOrigins = {
|
|
3574
|
+
am: 0
|
|
3575
|
+
};
|
|
3576
|
+
const ethiopicEraOrigins = {
|
|
3577
|
+
am: 0,
|
|
3578
|
+
aa: 0
|
|
3579
|
+
};
|
|
3580
|
+
const ethioaaEraOrigins = {
|
|
3581
|
+
aa: 0
|
|
3582
|
+
};
|
|
3583
|
+
const hebrewEraOrigins = {
|
|
3584
|
+
am: 0
|
|
3585
|
+
};
|
|
3586
|
+
const indianEraOrigins = {
|
|
3587
|
+
shaka: 0
|
|
3588
|
+
};
|
|
3589
|
+
const umalquraPlainMonthDay30ReferenceYears = [ 1392, 1390, 1391, 1392, 1391, 1392, 1389, 1392, 1392, 1390, 1391, 1390 ];
|
|
3590
|
+
const japaneseEraOrigins = Object.assign({}, gregoryEraOrigins, {
|
|
3591
|
+
meiji: 1867,
|
|
3592
|
+
taisho: 1911,
|
|
3593
|
+
showa: 1925,
|
|
3594
|
+
heisei: 1988,
|
|
3595
|
+
reiwa: 2018
|
|
3596
|
+
});
|
|
3597
|
+
const persianEraOrigins = {
|
|
3598
|
+
ap: 0
|
|
3599
|
+
};
|
|
3600
|
+
const persianMonthStarts = [ 0, 31, 62, 93, 124, 155, 186, 216, 246, 276, 306, 336 ];
|
|
3601
|
+
const rocEraOrigins = {
|
|
3602
|
+
broc: -1,
|
|
3603
|
+
roc: 0
|
|
3604
|
+
};
|
|
3605
|
+
const exoticCreatorMap = new Map([ [ "buddhist", () => createGregoryAlignedCalendar({
|
|
3606
|
+
se: 543,
|
|
3607
|
+
k: buddhistEraOrigins,
|
|
3608
|
+
h(_isoDate, calendarYear) {
|
|
3609
|
+
return {
|
|
3610
|
+
era: "be",
|
|
3611
|
+
eraYear: calendarYear
|
|
3612
|
+
};
|
|
3613
|
+
}
|
|
3614
|
+
}) ], [ "chinese", createChineseDangiCalendar ], [ "coptic", () => createCopticFamilyCalendar(1824665, copticEraOrigins) ], [ "dangi", createChineseDangiCalendar ], [ "ethiopic", () => createCopticFamilyCalendar(1723856, ethiopicEraOrigins, 0, 1) ], [ "ethioaa", () => createCopticFamilyCalendar(1723856, ethioaaEraOrigins, 5500) ], [ "hebrew", () => createArithmeticCalendar({
|
|
3615
|
+
k: hebrewEraOrigins,
|
|
3616
|
+
l: -6,
|
|
3617
|
+
J(julianDay) {
|
|
3618
|
+
const day = julianDay - 347997;
|
|
3619
|
+
let year = Math.floor((25920 * day / 765433 * 19 + 234) / 235) + 1;
|
|
3620
|
+
let yearStart = hebrewStartOfYear(year);
|
|
3621
|
+
let dayOfYear = Math.floor(day - yearStart);
|
|
3622
|
+
for (;dayOfYear < 1; ) {
|
|
3623
|
+
year--, yearStart = hebrewStartOfYear(year), dayOfYear = Math.floor(day - yearStart);
|
|
3624
|
+
}
|
|
3625
|
+
let month = 1;
|
|
3626
|
+
let monthStart = 0;
|
|
3627
|
+
for (;monthStart < dayOfYear; ) {
|
|
3628
|
+
monthStart += hebrewDaysInMonth(year, month), month++;
|
|
3629
|
+
}
|
|
3630
|
+
return month--, monthStart -= hebrewDaysInMonth(year, month), {
|
|
3631
|
+
year: year,
|
|
3632
|
+
month: month,
|
|
3633
|
+
day: dayOfYear - monthStart
|
|
3634
|
+
};
|
|
3635
|
+
},
|
|
3636
|
+
L(year, month, day) {
|
|
3637
|
+
let julianDay = hebrewStartOfYear(year);
|
|
3638
|
+
for (let i = 1; i < month; i++) {
|
|
3639
|
+
julianDay += hebrewDaysInMonth(year, i);
|
|
3640
|
+
}
|
|
3641
|
+
return julianDay + day + 347997;
|
|
3642
|
+
},
|
|
3643
|
+
o: hebrewDaysInMonth,
|
|
3644
|
+
i: hebrewDaysInYear,
|
|
3645
|
+
j(year) {
|
|
3646
|
+
return hebrewIsLeapYear(year) ? 13 : 12;
|
|
3647
|
+
},
|
|
3648
|
+
q: hebrewIsLeapYear,
|
|
3649
|
+
p(year) {
|
|
3650
|
+
return hebrewIsLeapYear(year) ? 6 : void 0;
|
|
3651
|
+
},
|
|
3652
|
+
N(year, month) {
|
|
3653
|
+
return hebrewIsLeapYear(year) && 6 === month ? [ 5, 1 ] : [ month - (hebrewIsLeapYear(year) && month > 6 ? 1 : 0), 0 ];
|
|
3654
|
+
},
|
|
3655
|
+
u(monthCodeNumber, isLeapMonth, day) {
|
|
3656
|
+
return isLeapMonth && 5 === monthCodeNumber && day <= 30 ? {
|
|
3657
|
+
year: 5730,
|
|
3658
|
+
month: 6
|
|
3659
|
+
} : void 0;
|
|
3660
|
+
},
|
|
3661
|
+
h({year: year}) {
|
|
3662
|
+
return {
|
|
3663
|
+
era: "am",
|
|
3664
|
+
eraYear: year
|
|
3665
|
+
};
|
|
3666
|
+
}
|
|
3667
|
+
}) ], [ "indian", function() {
|
|
3668
|
+
return createArithmeticCalendar({
|
|
3669
|
+
k: indianEraOrigins,
|
|
3670
|
+
J(julianDay) {
|
|
3671
|
+
const gregory = epochDaysToIsoDate(julianDay - 2440588);
|
|
3672
|
+
let year = gregory.year - 78;
|
|
3673
|
+
let dayOfGregorianYear = julianDay - (isoPartsToEpochDays(gregory.year, 1, 1) + 2440588);
|
|
3674
|
+
let firstMonthDays;
|
|
3675
|
+
if (dayOfGregorianYear < 80 ? (year--, firstMonthDays = computeIsoInLeapYear(gregory.year - 1) ? 31 : 30,
|
|
3676
|
+
dayOfGregorianYear += firstMonthDays + 155 + 90 + 10) : (firstMonthDays = computeIsoInLeapYear(gregory.year) ? 31 : 30,
|
|
3677
|
+
dayOfGregorianYear -= 80), dayOfGregorianYear < firstMonthDays) {
|
|
3678
|
+
return {
|
|
3679
|
+
year: year,
|
|
3680
|
+
month: 1,
|
|
3681
|
+
day: dayOfGregorianYear + 1
|
|
3682
|
+
};
|
|
3683
|
+
}
|
|
3684
|
+
let monthDay = dayOfGregorianYear - firstMonthDays;
|
|
3685
|
+
return monthDay < 155 ? {
|
|
3686
|
+
year: year,
|
|
3687
|
+
month: Math.floor(monthDay / 31) + 2,
|
|
3688
|
+
day: monthDay % 31 + 1
|
|
3689
|
+
} : (monthDay -= 155, {
|
|
3690
|
+
year: year,
|
|
3691
|
+
month: Math.floor(monthDay / 30) + 7,
|
|
3692
|
+
day: monthDay % 30 + 1
|
|
3693
|
+
});
|
|
3694
|
+
},
|
|
3695
|
+
L(year, month, day) {
|
|
3696
|
+
const gregoryYear = year + 78;
|
|
3697
|
+
let firstMonthDays;
|
|
3698
|
+
let julianDay;
|
|
3699
|
+
return computeIsoInLeapYear(gregoryYear) ? (firstMonthDays = 31, julianDay = isoPartsToEpochDays(gregoryYear, 3, 21) + 2440588) : (firstMonthDays = 30,
|
|
3700
|
+
julianDay = isoPartsToEpochDays(gregoryYear, 3, 22) + 2440588), 1 === month || (julianDay += firstMonthDays + 31 * Math.min(month - 2, 5),
|
|
3701
|
+
month >= 8 && (julianDay += 30 * (month - 7))), julianDay + day - 1;
|
|
3702
|
+
},
|
|
3703
|
+
o(year, month) {
|
|
3704
|
+
return 1 === month && computeIsoInLeapYear(year + 78) || month >= 2 && month <= 6 ? 31 : 30;
|
|
3705
|
+
},
|
|
3706
|
+
i(year) {
|
|
3707
|
+
return computeIsoInLeapYear(year + 78) ? 366 : 365;
|
|
3708
|
+
},
|
|
3709
|
+
j() {
|
|
3710
|
+
return 12;
|
|
3711
|
+
},
|
|
3712
|
+
q(year) {
|
|
3713
|
+
return this.i(year) > 365;
|
|
3714
|
+
},
|
|
3715
|
+
h({year: year}) {
|
|
3716
|
+
return {
|
|
3717
|
+
era: "shaka",
|
|
3718
|
+
eraYear: year
|
|
3719
|
+
};
|
|
3720
|
+
}
|
|
3721
|
+
});
|
|
3722
|
+
} ], [ "japanese", () => createGregoryAlignedCalendar({
|
|
3723
|
+
k: japaneseEraOrigins,
|
|
3724
|
+
je: 1,
|
|
3725
|
+
h: computeJapaneseEraFields
|
|
3726
|
+
}) ], [ "islamic-civil", () => createIslamicCalendar(bindArgs(julianDayToIslamic, 1948440), bindArgs(islamicToJulianDay, 1948440)) ], [ "islamic-tbla", () => createIslamicCalendar(bindArgs(julianDayToIslamic, 1948439), bindArgs(islamicToJulianDay, 1948439)) ], [ "islamic-umalqura", canonicalId => {
|
|
3727
|
+
const intlUmalquraData = createIntlScrapedCalendarData(canonicalId);
|
|
3728
|
+
return createIslamicCalendar(bindArgs(julianDayToUmalqura, intlUmalquraData), bindArgs(umalquraToJulianDay, intlUmalquraData), intlUmalquraData);
|
|
3729
|
+
} ], [ "persian", () => createArithmeticCalendar({
|
|
3730
|
+
k: persianEraOrigins,
|
|
3731
|
+
J(julianDay) {
|
|
3732
|
+
const daysSinceEpoch = julianDay - 1948320;
|
|
3733
|
+
const year = 1 + Math.floor((33 * daysSinceEpoch + 3) / 12053);
|
|
3734
|
+
const dayOfYear = daysSinceEpoch - (365 * (year - 1) + Math.floor((8 * year + 21) / 33));
|
|
3735
|
+
const month = Math.floor(dayOfYear < 216 ? dayOfYear / 31 : (dayOfYear - 6) / 30);
|
|
3736
|
+
return {
|
|
3737
|
+
year: year,
|
|
3738
|
+
month: month + 1,
|
|
3739
|
+
day: dayOfYear - persianMonthStarts[month] + 1
|
|
3740
|
+
};
|
|
3741
|
+
},
|
|
3742
|
+
L(year, month, day) {
|
|
3743
|
+
return 1948319 + 365 * (year - 1) + Math.floor((8 * year + 21) / 33) + persianMonthStarts[month - 1] + day;
|
|
3744
|
+
},
|
|
3745
|
+
o(year, month) {
|
|
3746
|
+
return month <= 6 ? 31 : month <= 11 || persianIsLeapYear(year) ? 30 : 29;
|
|
3747
|
+
},
|
|
3748
|
+
i(year) {
|
|
3749
|
+
return persianIsLeapYear(year) ? 366 : 365;
|
|
3750
|
+
},
|
|
3751
|
+
j() {
|
|
3752
|
+
return 12;
|
|
3753
|
+
},
|
|
3754
|
+
q: persianIsLeapYear,
|
|
3755
|
+
h({year: year}) {
|
|
3756
|
+
return {
|
|
3757
|
+
era: "ap",
|
|
3758
|
+
eraYear: year
|
|
3759
|
+
};
|
|
3760
|
+
}
|
|
3761
|
+
}) ], [ "roc", () => createGregoryAlignedCalendar({
|
|
3762
|
+
se: -1911,
|
|
3763
|
+
k: rocEraOrigins,
|
|
3764
|
+
h(_isoDate, calendarYear) {
|
|
3765
|
+
return calendarYear < 1 ? {
|
|
3766
|
+
era: "broc",
|
|
3767
|
+
eraYear: 1 - calendarYear
|
|
3768
|
+
} : {
|
|
3769
|
+
era: "roc",
|
|
3770
|
+
eraYear: calendarYear
|
|
3771
|
+
};
|
|
3772
|
+
}
|
|
3773
|
+
}) ] ]);
|
|
3774
|
+
const forbiddenExoticCalendarIdMap = {
|
|
3775
|
+
islamic: 1,
|
|
3776
|
+
"islamic-rgsa": 1
|
|
3777
|
+
};
|
|
3778
|
+
const deprecatedExoticCalendarIdMap = {
|
|
3779
|
+
"ethiopic-amete-alem": "ethioaa",
|
|
3780
|
+
islamicc: "islamic-civil"
|
|
3781
|
+
};
|
|
3782
|
+
const getOrCreateExoticCalendar = memoize((canonicalId, createExoticCalendar) => {
|
|
3783
|
+
const calendar = createExoticCalendar(canonicalId);
|
|
3784
|
+
return calendar.id = canonicalId, calendar;
|
|
3785
|
+
});
|
|
3786
|
+
const zonedDateTimeSlotsMap = new WeakMap;
|
|
3787
|
+
const ZonedDateTime = defineTemporalClass("ZonedDateTime", class {
|
|
3788
|
+
constructor(epochNanoseconds, timeZoneId, calendar = void 0) {
|
|
3789
|
+
initZonedDateTime(this, createZonedEpochNanoSlots(checkEpochNanoInBounds(toBigInt(epochNanoseconds)), queryTimeZone(resolveTimeZoneId(requireString(timeZoneId))), resolveAnyCalendarArg(calendar)));
|
|
3790
|
+
}
|
|
3791
|
+
static from(arg, options = void 0) {
|
|
3792
|
+
return createZonedDateTime(toZonedDateTimeSlots(arg, options));
|
|
3793
|
+
}
|
|
3794
|
+
static compare(arg0, arg1) {
|
|
3795
|
+
return compareZonedEpochSlots(toZonedDateTimeSlots(arg0), toZonedDateTimeSlots(arg1));
|
|
3796
|
+
}
|
|
3797
|
+
get calendarId() {
|
|
3798
|
+
return getCalendarSlotId(getZonedDateTimeSlots(this).calendar);
|
|
3799
|
+
}
|
|
3800
|
+
get timeZoneId() {
|
|
3801
|
+
return getZonedDateTimeSlots(this).timeZone.id;
|
|
3802
|
+
}
|
|
3803
|
+
get epochMilliseconds() {
|
|
3804
|
+
return epochNanoToMilli(getZonedDateTimeSlots(this).epochNanoseconds);
|
|
3805
|
+
}
|
|
3806
|
+
get epochNanoseconds() {
|
|
3807
|
+
return getZonedDateTimeSlots(this).epochNanoseconds;
|
|
3808
|
+
}
|
|
3809
|
+
get offset() {
|
|
3810
|
+
return formatOffsetNano(zonedEpochSlotsToIso(getZonedDateTimeSlots(this)).offsetNanoseconds);
|
|
3811
|
+
}
|
|
3812
|
+
get offsetNanoseconds() {
|
|
3813
|
+
return zonedEpochSlotsToIso(getZonedDateTimeSlots(this)).offsetNanoseconds;
|
|
3814
|
+
}
|
|
3815
|
+
get hoursInDay() {
|
|
3816
|
+
return (slots => {
|
|
3817
|
+
const [epochNano0, epochNano1] = computeZonedDayEpochInterval(slots);
|
|
3818
|
+
return divideBigNanoToExactNumber(epochNano1 - epochNano0, nanoInHour);
|
|
3819
|
+
})(getZonedDateTimeSlots(this));
|
|
3820
|
+
}
|
|
3821
|
+
with(mod, options = void 0) {
|
|
3822
|
+
return createZonedDateTime(function(slots, modFields, options) {
|
|
3823
|
+
const {calendar: calendar} = slots;
|
|
3824
|
+
const [mergedFields, calendarFields] = ((calendar, zonedDateTimeSlots, modFields) => {
|
|
3825
|
+
const validFieldNames = getCalendarFieldNames(calendar, dateTimeAndOffsetFieldNamesAlpha, dateTimeAndOffsetFieldNamesWithEraAlpha);
|
|
3826
|
+
const zonedSlots = zonedEpochSlotsToIso(zonedDateTimeSlots);
|
|
3827
|
+
const {year: year, month: month, day: day} = computeCalendarDateFields(calendar, zonedSlots);
|
|
3828
|
+
const origFields = {
|
|
3829
|
+
year: year,
|
|
3830
|
+
monthCode: computeMonthCode(calendar, year, month),
|
|
3831
|
+
day: day,
|
|
3832
|
+
hour: zonedSlots.hour,
|
|
3833
|
+
minute: zonedSlots.minute,
|
|
3834
|
+
second: zonedSlots.second,
|
|
3835
|
+
millisecond: zonedSlots.millisecond,
|
|
3836
|
+
microsecond: zonedSlots.microsecond,
|
|
3837
|
+
nanosecond: zonedSlots.nanosecond,
|
|
3838
|
+
offset: zonedSlots.offsetNanoseconds
|
|
3839
|
+
};
|
|
3840
|
+
const partialFields = readAndRefineBagFields(modFields, validFieldNames, zonedDateTimeFieldRefiners);
|
|
3841
|
+
const mergedCalendarFields = mergeCalendarFields(calendar, origFields, partialFields);
|
|
3842
|
+
return [ {
|
|
3843
|
+
...origFields,
|
|
3844
|
+
...partialFields
|
|
3845
|
+
}, mergedCalendarFields ];
|
|
3846
|
+
})(calendar, slots, modFields);
|
|
3847
|
+
const [year, monthCodeParts] = refineCalendarDateFields(calendarFields, calendar);
|
|
3848
|
+
const [overflow, offsetDisambig, epochDisambig] = refineZonedFieldOptions(options, 2);
|
|
3849
|
+
return ((zonedDateTimeSlots, mergedAllFields, calendarFields, year, monthCodeParts, overflow, offsetDisambig, epochDisambig) => {
|
|
3850
|
+
const {calendar: calendar, timeZone: timeZone} = zonedDateTimeSlots;
|
|
3851
|
+
return createZonedEpochNanoSlots(getMatchingInstantFor(timeZone, combineDateAndTime(createDateFromRefinedFields(calendarFields, calendar, year, monthCodeParts, overflow), constrainTimeFields(mergedAllFields, overflow)), mergedAllFields.offset, offsetDisambig, epochDisambig), timeZone, calendar);
|
|
3852
|
+
})(slots, mergedFields, calendarFields, year, monthCodeParts, overflow, offsetDisambig, epochDisambig);
|
|
3853
|
+
}(getZonedDateTimeSlots(this), validateBag(mod), options));
|
|
3854
|
+
}
|
|
3855
|
+
withCalendar(calendarArg) {
|
|
3856
|
+
return createZonedDateTime({
|
|
3857
|
+
...getZonedDateTimeSlots(this),
|
|
3858
|
+
calendar: refineCalendarArg(calendarArg)
|
|
3859
|
+
});
|
|
3860
|
+
}
|
|
3861
|
+
withTimeZone(timeZoneArg) {
|
|
3862
|
+
return createZonedDateTime({
|
|
3863
|
+
...getZonedDateTimeSlots(this),
|
|
3864
|
+
timeZone: queryTimeZone(refineTimeZoneArg(timeZoneArg))
|
|
3865
|
+
});
|
|
3866
|
+
}
|
|
3867
|
+
withPlainTime(plainTimeArg = void 0) {
|
|
3868
|
+
return createZonedDateTime(((zonedDateTimeSlots, plainTimeFields) => {
|
|
3869
|
+
const {timeZone: timeZone} = zonedDateTimeSlots;
|
|
3870
|
+
const isoDateTime = zonedEpochSlotsToIso(zonedDateTimeSlots);
|
|
3871
|
+
const {offsetNanoseconds: offsetNanoseconds} = isoDateTime;
|
|
3872
|
+
const time = plainTimeFields || timeFieldDefaults;
|
|
3873
|
+
let epochNano;
|
|
3874
|
+
return epochNano = plainTimeFields ? getMatchingInstantFor(timeZone, combineDateAndTime(isoDateTime, time), offsetNanoseconds, 2) : getStartOfDayInstantFor(timeZone, combineDateAndTime(isoDateTime, time)),
|
|
3875
|
+
createZonedEpochNanoSlots(epochNano, timeZone, zonedDateTimeSlots.calendar);
|
|
3876
|
+
})(getZonedDateTimeSlots(this), optionalToPlainTimeFields(plainTimeArg)));
|
|
3877
|
+
}
|
|
3878
|
+
add(durationArg, options = void 0) {
|
|
3879
|
+
return createZonedDateTime(moveZonedEpochSlots(getZonedDateTimeSlots(this), toDurationSlots(durationArg), refineOverflowOptions(options)));
|
|
3880
|
+
}
|
|
3881
|
+
subtract(durationArg, options = void 0) {
|
|
3882
|
+
return createZonedDateTime(moveZonedEpochSlots(getZonedDateTimeSlots(this), negateDurationFields(toDurationSlots(durationArg)), refineOverflowOptions(options)));
|
|
3883
|
+
}
|
|
3884
|
+
until(otherArg, options = void 0) {
|
|
3885
|
+
return createDuration(diffZonedDateTimes(0, getZonedDateTimeSlots(this), toZonedDateTimeSlots(otherArg), options));
|
|
3886
|
+
}
|
|
3887
|
+
since(otherArg, options = void 0) {
|
|
3888
|
+
return createDuration(diffZonedDateTimes(1, getZonedDateTimeSlots(this), toZonedDateTimeSlots(otherArg), options));
|
|
3889
|
+
}
|
|
3890
|
+
round(options) {
|
|
3891
|
+
const slots = getZonedDateTimeSlots(this);
|
|
3892
|
+
const [smallestUnit, roundingInc, roundingMode] = refineRoundingOptions(options);
|
|
3893
|
+
return createZonedDateTime(function(slots, smallestUnit, roundingInc, roundingMode) {
|
|
3894
|
+
return createZonedEpochNanoSlots(6 === smallestUnit ? ((slots, roundingMode) => {
|
|
3895
|
+
const [epochNano0, epochNano1] = computeZonedDayEpochInterval(slots);
|
|
3896
|
+
return ((epochNano, epochNano0, epochNano1, roundingMode) => roundWithMode(computeEpochNanoFrac(epochNano < epochNano1 ? epochNano : epochNano1 - 1n, epochNano0, epochNano1), roundingMode) ? epochNano1 : epochNano0)(slots.epochNanoseconds, epochNano0, epochNano1, roundingMode);
|
|
3897
|
+
})(slots, roundingMode) : ((slots, smallestUnit, roundingInc, roundingMode) => {
|
|
3898
|
+
if (0 === smallestUnit && 1 === roundingInc) {
|
|
3899
|
+
return slots.epochNanoseconds;
|
|
3900
|
+
}
|
|
3901
|
+
const isoDateTime = zonedEpochSlotsToIso(slots);
|
|
3902
|
+
return getMatchingInstantFor(slots.timeZone, roundDateTimeToInc(isoDateTime, computeNanoInc(smallestUnit, roundingInc), roundingMode), isoDateTime.offsetNanoseconds, 2, 0, 1);
|
|
3903
|
+
})(slots, smallestUnit, roundingInc, roundingMode), slots.timeZone, slots.calendar);
|
|
3904
|
+
}(slots, smallestUnit, roundingInc, roundingMode));
|
|
3905
|
+
}
|
|
3906
|
+
startOfDay() {
|
|
3907
|
+
return createZonedDateTime((slots => {
|
|
3908
|
+
const {timeZone: timeZone, calendar: calendar} = slots;
|
|
3909
|
+
return createZonedEpochNanoSlots(getStartOfDayInstantFor(timeZone, combineDateAndTime(zonedEpochSlotsToIso(slots), timeFieldDefaults)), timeZone, calendar);
|
|
3910
|
+
})(getZonedDateTimeSlots(this)));
|
|
3911
|
+
}
|
|
3912
|
+
equals(otherArg) {
|
|
3913
|
+
return !compareZonedEpochSlots(zonedDateTimeSlots0 = getZonedDateTimeSlots(this), zonedDateTimeSlots1 = toZonedDateTimeSlots(otherArg)) && zonedDateTimeSlots0.timeZone.m === zonedDateTimeSlots1.timeZone.m && zonedDateTimeSlots0.calendar === zonedDateTimeSlots1.calendar;
|
|
3914
|
+
var zonedDateTimeSlots0, zonedDateTimeSlots1;
|
|
3915
|
+
}
|
|
3916
|
+
toInstant() {
|
|
3917
|
+
return createInstant(createEpochNanoSlots(getZonedDateTimeSlots(this).epochNanoseconds));
|
|
3918
|
+
}
|
|
3919
|
+
toPlainDateTime() {
|
|
3920
|
+
return createPlainDateTime(zonedDateTimeToDateTime(getZonedDateTimeSlots(this)));
|
|
3921
|
+
}
|
|
3922
|
+
toPlainDate() {
|
|
3923
|
+
return createPlainDate(zonedDateTimeToDate(getZonedDateTimeSlots(this)));
|
|
3924
|
+
}
|
|
3925
|
+
toPlainTime() {
|
|
3926
|
+
return createPlainTime(zonedDateTimeToTime(getZonedDateTimeSlots(this)));
|
|
3927
|
+
}
|
|
3928
|
+
toLocaleString(locales = void 0, options = {}) {
|
|
3929
|
+
const slots = getZonedDateTimeSlots(this);
|
|
3930
|
+
const format = new RawDateTimeFormat(locales, ((options, timeZoneId) => (void 0 !== options.timeZone && throwTypeError("Cannot specify TimeZone"),
|
|
3931
|
+
options.timeZone = timeZoneId, options))(transformZonedOptions(options), (slots => slots.timeZone.id)(slots)));
|
|
3932
|
+
return checkResolvedCalendarCompatible(format, slots), format.format(epochNanoToMilli(slots.epochNanoseconds));
|
|
3933
|
+
}
|
|
3934
|
+
toString(options = void 0) {
|
|
3935
|
+
return formatZonedDateTimeIso(getZonedDateTimeSlots(this), options);
|
|
3936
|
+
}
|
|
3937
|
+
toJSON() {
|
|
3938
|
+
return formatZonedDateTimeIso(getZonedDateTimeSlots(this));
|
|
3939
|
+
}
|
|
3940
|
+
getTimeZoneTransition(options) {
|
|
3941
|
+
const slots = getZonedDateTimeSlots(this);
|
|
3942
|
+
const newEpochNano = slots.timeZone.C(slots.epochNanoseconds, (options => {
|
|
3943
|
+
const normalizedOptions = normalizeOptionsOrString(options, "direction");
|
|
3944
|
+
const res = coerceDirection(normalizedOptions, 0);
|
|
3945
|
+
return res || throwRangeError(invalidEntity("direction", res)), res;
|
|
3946
|
+
})(options));
|
|
3947
|
+
return void 0 !== newEpochNano ? createZonedDateTime({
|
|
3948
|
+
...slots,
|
|
3949
|
+
epochNanoseconds: newEpochNano
|
|
3950
|
+
}) : null;
|
|
3951
|
+
}
|
|
3952
|
+
valueOf() {
|
|
3953
|
+
return forbiddenValueOf();
|
|
3954
|
+
}
|
|
3955
|
+
}, getZonedDateTimeIsoSlots, dateFieldGetters$1, dateDerivedGetters, timeGetters);
|
|
3956
|
+
const instantSlotsMap = new WeakMap;
|
|
3957
|
+
const Instant = defineTemporalClass("Instant", class {
|
|
3958
|
+
constructor(epochNanoseconds) {
|
|
3959
|
+
initInstant(this, createEpochNanoSlots(checkEpochNanoInBounds(toBigInt(epochNanoseconds))));
|
|
3960
|
+
}
|
|
3961
|
+
static from(arg) {
|
|
3962
|
+
return createInstant(toInstantSlots(arg));
|
|
3963
|
+
}
|
|
3964
|
+
static fromEpochMilliseconds(epochMilli) {
|
|
3965
|
+
return createInstant((epochMilli => createEpochNanoSlots(checkEpochNanoInBounds(BigInt(toStrictInteger(epochMilli)) * bigNanoInMilli)))(epochMilli));
|
|
3966
|
+
}
|
|
3967
|
+
static fromEpochNanoseconds(epochNano) {
|
|
3968
|
+
return createInstant((epochNano => createEpochNanoSlots(checkEpochNanoInBounds(toBigInt(epochNano))))(epochNano));
|
|
3969
|
+
}
|
|
3970
|
+
static compare(a, b) {
|
|
3971
|
+
return compareZonedEpochSlots(toInstantSlots(a), toInstantSlots(b));
|
|
3972
|
+
}
|
|
3973
|
+
get epochMilliseconds() {
|
|
3974
|
+
return epochNanoToMilli(getInstantSlots(this).epochNanoseconds);
|
|
3975
|
+
}
|
|
3976
|
+
get epochNanoseconds() {
|
|
3977
|
+
return getInstantSlots(this).epochNanoseconds;
|
|
3978
|
+
}
|
|
3979
|
+
add(durationArg) {
|
|
3980
|
+
return createInstant(createEpochNanoSlots(moveEpochNano(getInstantSlots(this).epochNanoseconds, toDurationSlots(durationArg))));
|
|
3981
|
+
}
|
|
3982
|
+
subtract(durationArg) {
|
|
3983
|
+
return createInstant(createEpochNanoSlots(moveEpochNano(getInstantSlots(this).epochNanoseconds, negateDurationFields(toDurationSlots(durationArg)))));
|
|
3984
|
+
}
|
|
3985
|
+
until(otherArg, options = void 0) {
|
|
3986
|
+
return createDuration(diffInstants(0, getInstantSlots(this), toInstantSlots(otherArg), options));
|
|
3987
|
+
}
|
|
3988
|
+
since(otherArg, options = void 0) {
|
|
3989
|
+
return createDuration(diffInstants(1, getInstantSlots(this), toInstantSlots(otherArg), options));
|
|
3990
|
+
}
|
|
3991
|
+
round(options) {
|
|
3992
|
+
const slots = getInstantSlots(this);
|
|
3993
|
+
const [smallestUnit, roundingInc, roundingMode] = refineRoundingOptions(options, 5, 1);
|
|
3994
|
+
return createInstant(createEpochNanoSlots(roundBigNanoToDayOriginInc(slots.epochNanoseconds, computeBigNanoInc(smallestUnit, roundingInc), roundingMode)));
|
|
3995
|
+
}
|
|
3996
|
+
equals(otherArg) {
|
|
3997
|
+
return !compareZonedEpochSlots(getInstantSlots(this), toInstantSlots(otherArg));
|
|
3998
|
+
}
|
|
3999
|
+
toZonedDateTimeISO(timeZoneArg) {
|
|
4000
|
+
return createZonedDateTime((instantSlots = getInstantSlots(this), timeZone = queryTimeZone(refineTimeZoneArg(timeZoneArg)),
|
|
4001
|
+
createZonedEpochNanoSlots(instantSlots.epochNanoseconds, timeZone, void 0)));
|
|
4002
|
+
var instantSlots, timeZone;
|
|
4003
|
+
}
|
|
4004
|
+
toLocaleString(locales = void 0, options = {}) {
|
|
4005
|
+
const slots = getInstantSlots(this);
|
|
4006
|
+
return new RawDateTimeFormat(locales, transformInstantOptions(options)).format(epochNanoToMilli(slots.epochNanoseconds));
|
|
4007
|
+
}
|
|
4008
|
+
toString(options = void 0) {
|
|
4009
|
+
return formatInstantIso(refineTimeZoneArg, getInstantSlots(this), options);
|
|
4010
|
+
}
|
|
4011
|
+
toJSON() {
|
|
4012
|
+
return formatInstantIso(refineTimeZoneArg, getInstantSlots(this));
|
|
4013
|
+
}
|
|
4014
|
+
valueOf() {
|
|
4015
|
+
return forbiddenValueOf();
|
|
4016
|
+
}
|
|
4017
|
+
});
|
|
4018
|
+
const {toTemporalInstant: toTemporalInstant} = {
|
|
4019
|
+
toTemporalInstant() {
|
|
4020
|
+
const epochMilli = Date.prototype.valueOf.call(this);
|
|
4021
|
+
return createInstant(createEpochNanoSlots(BigInt(requireNumberIsInteger(epochMilli)) * bigNanoInMilli));
|
|
4022
|
+
}
|
|
4023
|
+
};
|
|
4024
|
+
const plainMonthDaySlotsMap = new WeakMap;
|
|
4025
|
+
const PlainMonthDay = defineTemporalClass("PlainMonthDay", class {
|
|
4026
|
+
constructor(isoMonth, isoDay, calendar = void 0, referenceIsoYear) {
|
|
4027
|
+
const isoMonthInt = toIntegerWithTrunc(isoMonth);
|
|
4028
|
+
const isoDayInt = toIntegerWithTrunc(isoDay);
|
|
4029
|
+
const calendarImpl = resolveAnyCalendarArg(calendar);
|
|
4030
|
+
initPlainMonthDay(this, createDateSlots(checkIsoDateInBounds(validateIsoDateFields({
|
|
4031
|
+
year: toIntegerWithTrunc(referenceIsoYear ?? 1972),
|
|
4032
|
+
month: isoMonthInt,
|
|
4033
|
+
day: isoDayInt
|
|
4034
|
+
})), calendarImpl));
|
|
4035
|
+
}
|
|
4036
|
+
static from(arg, options = void 0) {
|
|
4037
|
+
return createPlainMonthDay(toPlainMonthDaySlots(arg, options));
|
|
4038
|
+
}
|
|
4039
|
+
get calendarId() {
|
|
4040
|
+
return getCalendarSlotId(getPlainMonthDaySlots(this).calendar);
|
|
4041
|
+
}
|
|
4042
|
+
with(mod, options = void 0) {
|
|
4043
|
+
return createPlainMonthDay(function(slots, modFields, options) {
|
|
4044
|
+
const {calendar: calendar} = slots;
|
|
4045
|
+
const fields = ((calendar, plainMonthDaySlots, modFields) => {
|
|
4046
|
+
const validFieldNames = getCalendarFieldNames(calendar, dateFieldNamesAlpha, dateFieldNamesWithEraAlpha);
|
|
4047
|
+
const {year: year, month: month, day: day} = computeCalendarDateFields(calendar, plainMonthDaySlots);
|
|
4048
|
+
return mergeCalendarFields(calendar, {
|
|
4049
|
+
monthCode: computeMonthCode(calendar, year, month),
|
|
4050
|
+
day: day
|
|
4051
|
+
}, readAndRefineBagFields(modFields, validFieldNames, dateFieldRefiners));
|
|
4052
|
+
})(calendar, slots, modFields);
|
|
4053
|
+
const [year, monthCodeParts] = refineMonthDayFields(fields, calendar);
|
|
4054
|
+
return createMonthDayFromRefinedFields(fields, calendar, year, monthCodeParts, refineOverflowOptions(options));
|
|
4055
|
+
}(getPlainMonthDaySlots(this), validateBag(mod), options));
|
|
4056
|
+
}
|
|
4057
|
+
equals(otherArg) {
|
|
4058
|
+
return !compareIsoDateFields(plainMonthDaySlots0 = getPlainMonthDaySlots(this), plainMonthDaySlots1 = toPlainMonthDaySlots(otherArg)) && plainMonthDaySlots0.calendar === plainMonthDaySlots1.calendar;
|
|
4059
|
+
var plainMonthDaySlots0, plainMonthDaySlots1;
|
|
4060
|
+
}
|
|
4061
|
+
toPlainDate(bag) {
|
|
4062
|
+
return createPlainDate(((calendar, input, bag) => {
|
|
4063
|
+
const extraFieldNames = getCalendarFieldNames(calendar, yearFieldNamesAsc, yearFieldNamesWithEraAlpha);
|
|
4064
|
+
return mergeFieldsIntoDate(calendar, pluckProps(monthCodeDayFieldNamesAlpha, input), readAndRefineBagFields(requireObjectLike(bag), extraFieldNames, dateFieldRefiners, []));
|
|
4065
|
+
})(getPlainMonthDaySlots(this).calendar, this, bag));
|
|
4066
|
+
}
|
|
4067
|
+
toLocaleString(locales = void 0, options = {}) {
|
|
4068
|
+
const slots = getPlainMonthDaySlots(this);
|
|
4069
|
+
const format = new RawDateTimeFormat(locales, applyPlainFormatTimeZone(transformMonthDayOptions(options)));
|
|
4070
|
+
return checkResolvedCalendarCompatible(format, slots, 1), format.format(isoDateToEpochMilli(slots));
|
|
4071
|
+
}
|
|
4072
|
+
toString(options = void 0) {
|
|
4073
|
+
return formatPlainMonthDayIso(getPlainMonthDaySlots(this), options);
|
|
4074
|
+
}
|
|
4075
|
+
toJSON() {
|
|
4076
|
+
return formatPlainMonthDayIso(getPlainMonthDaySlots(this));
|
|
4077
|
+
}
|
|
4078
|
+
valueOf() {
|
|
4079
|
+
return forbiddenValueOf();
|
|
4080
|
+
}
|
|
4081
|
+
}, getPlainMonthDaySlots, monthDayFieldGetters$1);
|
|
4082
|
+
const plainYearMonthSlotsMap = new WeakMap;
|
|
4083
|
+
const PlainYearMonth = defineTemporalClass("PlainYearMonth", class {
|
|
4084
|
+
constructor(isoYear, isoMonth, calendar = void 0, referenceIsoDay) {
|
|
4085
|
+
const isoYearInt = toIntegerWithTrunc(isoYear);
|
|
4086
|
+
const isoMonthInt = toIntegerWithTrunc(isoMonth);
|
|
4087
|
+
const calendarImpl = resolveAnyCalendarArg(calendar);
|
|
4088
|
+
initPlainYearMonth(this, createDateSlots(checkIsoYearMonthInBounds(validateIsoDateFields({
|
|
4089
|
+
year: isoYearInt,
|
|
4090
|
+
month: isoMonthInt,
|
|
4091
|
+
day: toIntegerWithTrunc(referenceIsoDay ?? 1)
|
|
4092
|
+
})), calendarImpl));
|
|
4093
|
+
}
|
|
4094
|
+
static from(arg, options = void 0) {
|
|
4095
|
+
return createPlainYearMonth(toPlainYearMonthSlots(arg, options));
|
|
4096
|
+
}
|
|
4097
|
+
static compare(arg0, arg1) {
|
|
4098
|
+
return compareIsoDateFields(toPlainYearMonthSlots(arg0), toPlainYearMonthSlots(arg1));
|
|
4099
|
+
}
|
|
4100
|
+
get calendarId() {
|
|
4101
|
+
return getCalendarSlotId(getPlainYearMonthSlots(this).calendar);
|
|
4102
|
+
}
|
|
4103
|
+
with(mod, options = void 0) {
|
|
4104
|
+
return createPlainYearMonth(function(slots, modFields, options) {
|
|
4105
|
+
const {calendar: calendar} = slots;
|
|
4106
|
+
const fields = ((calendar, plainYearMonthSlots, modFields) => {
|
|
4107
|
+
const validFieldNames = getCalendarFieldNames(calendar, yearMonthFieldNamesAlpha, yearMonthFieldNamesWithEraAlpha);
|
|
4108
|
+
const {year: year, month: month} = computeCalendarDateFields(calendar, plainYearMonthSlots);
|
|
4109
|
+
return mergeCalendarFields(calendar, {
|
|
4110
|
+
year: year,
|
|
4111
|
+
monthCode: computeMonthCode(calendar, year, month)
|
|
4112
|
+
}, readAndRefineBagFields(modFields, validFieldNames, dateFieldRefiners));
|
|
4113
|
+
})(calendar, slots, modFields);
|
|
4114
|
+
const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar, 1);
|
|
4115
|
+
return createYearMonthFromRefinedFields(fields, calendar, year, monthCodeParts, refineOverflowOptions(options));
|
|
4116
|
+
}(getPlainYearMonthSlots(this), validateBag(mod), options));
|
|
4117
|
+
}
|
|
4118
|
+
add(durationArg, options = void 0) {
|
|
4119
|
+
const slots = getPlainYearMonthSlots(this);
|
|
4120
|
+
return createPlainYearMonth(createDateSlots(moveYearMonth(slots.calendar, slots, toDurationSlots(durationArg), refineOverflowOptions(options)), slots.calendar));
|
|
4121
|
+
}
|
|
4122
|
+
subtract(durationArg, options = void 0) {
|
|
4123
|
+
const slots = getPlainYearMonthSlots(this);
|
|
4124
|
+
return createPlainYearMonth(createDateSlots(moveYearMonth(slots.calendar, slots, negateDurationFields(toDurationSlots(durationArg)), refineOverflowOptions(options)), slots.calendar));
|
|
4125
|
+
}
|
|
4126
|
+
until(otherArg, options = void 0) {
|
|
4127
|
+
return createDuration(diffYearMonths(0, getPlainYearMonthSlots(this), toPlainYearMonthSlots(otherArg), options));
|
|
4128
|
+
}
|
|
4129
|
+
since(otherArg, options = void 0) {
|
|
4130
|
+
return createDuration(diffYearMonths(1, getPlainYearMonthSlots(this), toPlainYearMonthSlots(otherArg), options));
|
|
4131
|
+
}
|
|
4132
|
+
equals(otherArg) {
|
|
4133
|
+
return !compareIsoDateFields(plainYearMonthSlots0 = getPlainYearMonthSlots(this), plainYearMonthSlots1 = toPlainYearMonthSlots(otherArg)) && plainYearMonthSlots0.calendar === plainYearMonthSlots1.calendar;
|
|
4134
|
+
var plainYearMonthSlots0, plainYearMonthSlots1;
|
|
4135
|
+
}
|
|
4136
|
+
toPlainDate(bag) {
|
|
4137
|
+
return createPlainDate(((calendar, input, bag) => mergeFieldsIntoDate(calendar, pluckProps(getCalendarFieldNames(calendar, yearMonthCodeFieldNamesAlpha, yearMonthCodeFieldNamesWithEraAlpha), input), readAndRefineBagFields(requireObjectLike(bag), dayFieldNamesAsc, dateFieldRefiners, [])))(getPlainYearMonthSlots(this).calendar, this, bag));
|
|
4138
|
+
}
|
|
4139
|
+
toLocaleString(locales = void 0, options = {}) {
|
|
4140
|
+
const slots = getPlainYearMonthSlots(this);
|
|
4141
|
+
const format = new RawDateTimeFormat(locales, applyPlainFormatTimeZone(transformYearMonthOptions(options)));
|
|
4142
|
+
return checkResolvedCalendarCompatible(format, slots, 1), format.format(isoDateToEpochMilli(slots));
|
|
4143
|
+
}
|
|
4144
|
+
toString(options = void 0) {
|
|
4145
|
+
return formatPlainYearMonthIso(getPlainYearMonthSlots(this), options);
|
|
4146
|
+
}
|
|
4147
|
+
toJSON() {
|
|
4148
|
+
return formatPlainYearMonthIso(getPlainYearMonthSlots(this));
|
|
4149
|
+
}
|
|
4150
|
+
valueOf() {
|
|
4151
|
+
return forbiddenValueOf();
|
|
4152
|
+
}
|
|
4153
|
+
}, getPlainYearMonthSlots, yearMonthFieldGetters$1, yearMonthDerivedGetters);
|
|
4154
|
+
const plainTimeSlotsMap = new WeakMap;
|
|
4155
|
+
const PlainTime = defineTemporalClass("PlainTime", class {
|
|
4156
|
+
constructor(hour = 0, minute = 0, second = 0, millisecond = 0, microsecond = 0, nanosecond = 0) {
|
|
4157
|
+
initPlainTime(this, validateTimeFields(mapProps(toIntegerWithTrunc, {
|
|
4158
|
+
hour: hour,
|
|
4159
|
+
minute: minute,
|
|
4160
|
+
second: second,
|
|
4161
|
+
millisecond: millisecond,
|
|
4162
|
+
microsecond: microsecond,
|
|
4163
|
+
nanosecond: nanosecond
|
|
4164
|
+
})));
|
|
4165
|
+
}
|
|
4166
|
+
static from(arg, options = void 0) {
|
|
4167
|
+
return createPlainTime(toPlainTimeSlots(arg, options));
|
|
4168
|
+
}
|
|
4169
|
+
static compare(arg0, arg1) {
|
|
4170
|
+
return compareTimeFields(toPlainTimeSlots(arg0), toPlainTimeSlots(arg1));
|
|
4171
|
+
}
|
|
4172
|
+
with(mod, options = void 0) {
|
|
4173
|
+
return createPlainTime(function(slots, modFields, options) {
|
|
4174
|
+
return resolveTimeFields(((initialFields, modFields) => ({
|
|
4175
|
+
...pluckProps(timeFieldNamesAlpha, initialFields),
|
|
4176
|
+
...readAndRefineBagFields(modFields, timeFieldNamesAlpha, timeFieldRefiners)
|
|
4177
|
+
}))(slots, modFields), refineOverflowOptions(options));
|
|
4178
|
+
}(getPlainTimeSlots(this), validateBag(mod), options));
|
|
4179
|
+
}
|
|
4180
|
+
add(durationArg) {
|
|
4181
|
+
return createPlainTime(moveTime(getPlainTimeSlots(this), toDurationSlots(durationArg))[0]);
|
|
4182
|
+
}
|
|
4183
|
+
subtract(durationArg) {
|
|
4184
|
+
return createPlainTime(moveTime(getPlainTimeSlots(this), negateDurationFields(toDurationSlots(durationArg)))[0]);
|
|
4185
|
+
}
|
|
4186
|
+
until(otherArg, options = void 0) {
|
|
4187
|
+
return createDuration(diffTimes(0, getPlainTimeSlots(this), toPlainTimeSlots(otherArg), options));
|
|
4188
|
+
}
|
|
4189
|
+
since(otherArg, options = void 0) {
|
|
4190
|
+
return createDuration(diffTimes(1, getPlainTimeSlots(this), toPlainTimeSlots(otherArg), options));
|
|
4191
|
+
}
|
|
4192
|
+
round(options) {
|
|
4193
|
+
const slots = getPlainTimeSlots(this);
|
|
4194
|
+
const [smallestUnit, roundingInc, roundingMode] = refineRoundingOptions(options, 5);
|
|
4195
|
+
return createPlainTime(roundTimeToInc(slots, computeNanoInc(smallestUnit, roundingInc), roundingMode)[0]);
|
|
4196
|
+
}
|
|
4197
|
+
equals(other) {
|
|
4198
|
+
return !compareTimeFields(getPlainTimeSlots(this), toPlainTimeSlots(other));
|
|
4199
|
+
}
|
|
4200
|
+
toLocaleString(locales = void 0, options = {}) {
|
|
4201
|
+
const slots = getPlainTimeSlots(this);
|
|
4202
|
+
return new RawDateTimeFormat(locales, applyPlainFormatTimeZone(transformTimeOptions(options))).format(timeFieldsToMilli(slots));
|
|
4203
|
+
}
|
|
4204
|
+
toString(options = void 0) {
|
|
4205
|
+
return formatPlainTimeIso(getPlainTimeSlots(this), options);
|
|
4206
|
+
}
|
|
4207
|
+
toJSON() {
|
|
4208
|
+
return formatPlainTimeIso(getPlainTimeSlots(this));
|
|
4209
|
+
}
|
|
4210
|
+
valueOf() {
|
|
4211
|
+
return forbiddenValueOf();
|
|
4212
|
+
}
|
|
4213
|
+
}, getPlainTimeSlots, timeGetters);
|
|
4214
|
+
const plainDateTimeSlotsMap = new WeakMap;
|
|
4215
|
+
const PlainDateTime = defineTemporalClass("PlainDateTime", class {
|
|
4216
|
+
constructor(isoYear, isoMonth, isoDay, hour = 0, minute = 0, second = 0, millisecond = 0, microsecond = 0, nanosecond = 0, calendar = void 0) {
|
|
4217
|
+
initPlainDateTime(this, createDateTimeSlots(checkIsoDateTimeInBounds(validateIsoDateTimeFields(mapProps(toIntegerWithTrunc, {
|
|
4218
|
+
year: isoYear,
|
|
4219
|
+
month: isoMonth,
|
|
4220
|
+
day: isoDay,
|
|
4221
|
+
hour: hour,
|
|
4222
|
+
minute: minute,
|
|
4223
|
+
second: second,
|
|
4224
|
+
millisecond: millisecond,
|
|
4225
|
+
microsecond: microsecond,
|
|
4226
|
+
nanosecond: nanosecond
|
|
4227
|
+
}))), resolveAnyCalendarArg(calendar)));
|
|
4228
|
+
}
|
|
4229
|
+
static from(arg, options = void 0) {
|
|
4230
|
+
return createPlainDateTime(toPlainDateTimeSlots(arg, options));
|
|
4231
|
+
}
|
|
4232
|
+
static compare(arg0, arg1) {
|
|
4233
|
+
return compareIsoDateTimeFields(toPlainDateTimeSlots(arg0), toPlainDateTimeSlots(arg1));
|
|
4234
|
+
}
|
|
4235
|
+
get calendarId() {
|
|
4236
|
+
return getCalendarSlotId(getPlainDateTimeSlots(this).calendar);
|
|
4237
|
+
}
|
|
4238
|
+
with(mod, options = void 0) {
|
|
4239
|
+
return createPlainDateTime(function(slots, modFields, options) {
|
|
4240
|
+
const {calendar: calendar} = slots;
|
|
4241
|
+
const [mergedFields, calendarFields] = ((calendar, plainDateTimeSlots, modFields) => {
|
|
4242
|
+
const validFieldNames = getCalendarFieldNames(calendar, dateTimeFieldNamesAlpha, dateTimeFieldNamesWithEraAlpha);
|
|
4243
|
+
const {year: year, month: month, day: day} = computeCalendarDateFields(calendar, plainDateTimeSlots);
|
|
4244
|
+
const origFields = {
|
|
4245
|
+
year: year,
|
|
4246
|
+
monthCode: computeMonthCode(calendar, year, month),
|
|
4247
|
+
day: day,
|
|
4248
|
+
hour: plainDateTimeSlots.hour,
|
|
4249
|
+
minute: plainDateTimeSlots.minute,
|
|
4250
|
+
second: plainDateTimeSlots.second,
|
|
4251
|
+
millisecond: plainDateTimeSlots.millisecond,
|
|
4252
|
+
microsecond: plainDateTimeSlots.microsecond,
|
|
4253
|
+
nanosecond: plainDateTimeSlots.nanosecond
|
|
4254
|
+
};
|
|
4255
|
+
const partialFields = readAndRefineBagFields(modFields, validFieldNames, dateTimeFieldRefiners);
|
|
4256
|
+
const mergedCalendarFields = mergeCalendarFields(calendar, origFields, partialFields);
|
|
4257
|
+
return [ {
|
|
4258
|
+
...origFields,
|
|
4259
|
+
...partialFields
|
|
4260
|
+
}, mergedCalendarFields ];
|
|
4261
|
+
})(calendar, slots, modFields);
|
|
4262
|
+
const [year, monthCodeParts] = refineCalendarDateFields(calendarFields, calendar);
|
|
4263
|
+
return ((mergedAllFields, calendarFields, calendar, year, monthCodeParts, overflow) => createDateTimeFromRefinedFields(createDateFromRefinedFields(calendarFields, calendar, year, monthCodeParts, overflow), constrainTimeFields(mergedAllFields, overflow), calendar))(mergedFields, calendarFields, calendar, year, monthCodeParts, refineOverflowOptions(options));
|
|
4264
|
+
}(getPlainDateTimeSlots(this), validateBag(mod), options));
|
|
4265
|
+
}
|
|
4266
|
+
withCalendar(calendarArg) {
|
|
4267
|
+
return createPlainDateTime(createDateTimeSlots(getPlainDateTimeSlots(this), refineCalendarArg(calendarArg)));
|
|
4268
|
+
}
|
|
4269
|
+
withPlainTime(plainTimeArg = void 0) {
|
|
4270
|
+
const slots = getPlainDateTimeSlots(this);
|
|
4271
|
+
return createPlainDateTime(createDateTimeFromRefinedFields(slots, optionalToPlainTimeFields(plainTimeArg), slots.calendar));
|
|
4272
|
+
}
|
|
4273
|
+
add(durationArg, options = void 0) {
|
|
4274
|
+
const slots = getPlainDateTimeSlots(this);
|
|
4275
|
+
return createPlainDateTime(createDateTimeSlots(moveDateTime(slots.calendar, slots, toDurationSlots(durationArg), refineOverflowOptions(options)), slots.calendar));
|
|
4276
|
+
}
|
|
4277
|
+
subtract(durationArg, options = void 0) {
|
|
4278
|
+
const slots = getPlainDateTimeSlots(this);
|
|
4279
|
+
return createPlainDateTime(createDateTimeSlots(moveDateTime(slots.calendar, slots, negateDurationFields(toDurationSlots(durationArg)), refineOverflowOptions(options)), slots.calendar));
|
|
4280
|
+
}
|
|
4281
|
+
until(otherArg, options = void 0) {
|
|
4282
|
+
return createDuration(diffDateTimes(0, getPlainDateTimeSlots(this), toPlainDateTimeSlots(otherArg), options));
|
|
4283
|
+
}
|
|
4284
|
+
since(otherArg, options = void 0) {
|
|
4285
|
+
return createDuration(diffDateTimes(1, getPlainDateTimeSlots(this), toPlainDateTimeSlots(otherArg), options));
|
|
4286
|
+
}
|
|
4287
|
+
round(options) {
|
|
4288
|
+
const slots = getPlainDateTimeSlots(this);
|
|
4289
|
+
const [smallestUnit, roundingInc, roundingMode] = refineRoundingOptions(options);
|
|
4290
|
+
return createPlainDateTime(createDateTimeSlots(roundDateTimeToInc(slots, computeNanoInc(smallestUnit, roundingInc), roundingMode), slots.calendar));
|
|
4291
|
+
}
|
|
4292
|
+
equals(otherArg) {
|
|
4293
|
+
return !compareIsoDateTimeFields(plainDateTimeSlots0 = getPlainDateTimeSlots(this), plainDateTimeSlots1 = toPlainDateTimeSlots(otherArg)) && plainDateTimeSlots0.calendar === plainDateTimeSlots1.calendar;
|
|
4294
|
+
var plainDateTimeSlots0, plainDateTimeSlots1;
|
|
4295
|
+
}
|
|
4296
|
+
toZonedDateTime(timeZoneArg, options = void 0) {
|
|
4297
|
+
return createZonedDateTime((plainDateTimeSlots = getPlainDateTimeSlots(this), timeZone = queryTimeZone(refineTimeZoneArg(timeZoneArg)),
|
|
4298
|
+
epochDisambig = (options => coerceEpochDisambig(normalizeOptions(options)))(options),
|
|
4299
|
+
createZonedEpochNanoSlots(checkEpochNanoInBounds(getSingleInstantFor(timeZone, plainDateTimeSlots, epochDisambig)), timeZone, plainDateTimeSlots.calendar)));
|
|
4300
|
+
var plainDateTimeSlots, timeZone, epochDisambig;
|
|
4301
|
+
}
|
|
4302
|
+
toPlainDate() {
|
|
4303
|
+
const slots = getPlainDateTimeSlots(this);
|
|
4304
|
+
return createPlainDate(createDateSlots(slots, slots.calendar));
|
|
4305
|
+
}
|
|
4306
|
+
toPlainTime() {
|
|
4307
|
+
return createPlainTime(createTimeSlots(getPlainDateTimeSlots(this)));
|
|
4308
|
+
}
|
|
4309
|
+
toLocaleString(locales = void 0, options = {}) {
|
|
4310
|
+
const slots = getPlainDateTimeSlots(this);
|
|
4311
|
+
const format = new RawDateTimeFormat(locales, applyPlainFormatTimeZone(transformDateTimeOptions(options)));
|
|
4312
|
+
return checkResolvedCalendarCompatible(format, slots), format.format(isoDateTimeToEpochMilli(slots));
|
|
4313
|
+
}
|
|
4314
|
+
toString(options = void 0) {
|
|
4315
|
+
return formatPlainDateTimeIso(getPlainDateTimeSlots(this), options);
|
|
4316
|
+
}
|
|
4317
|
+
toJSON() {
|
|
4318
|
+
return formatPlainDateTimeIso(getPlainDateTimeSlots(this));
|
|
4319
|
+
}
|
|
4320
|
+
valueOf() {
|
|
4321
|
+
return forbiddenValueOf();
|
|
4322
|
+
}
|
|
4323
|
+
}, getPlainDateTimeSlots, dateFieldGetters$1, dateDerivedGetters, timeGetters);
|
|
4324
|
+
const plainDateSlotsMap = new WeakMap;
|
|
4325
|
+
const PlainDate = defineTemporalClass("PlainDate", class {
|
|
4326
|
+
constructor(isoYear, isoMonth, isoDay, calendar = void 0) {
|
|
4327
|
+
initPlainDate(this, createDateSlots(checkIsoDateInBounds(validateIsoDateFields(mapProps(toIntegerWithTrunc, {
|
|
4328
|
+
year: isoYear,
|
|
4329
|
+
month: isoMonth,
|
|
4330
|
+
day: isoDay
|
|
4331
|
+
}))), resolveAnyCalendarArg(calendar)));
|
|
4332
|
+
}
|
|
4333
|
+
static from(arg, options = void 0) {
|
|
4334
|
+
return createPlainDate(toPlainDateSlots(arg, options));
|
|
4335
|
+
}
|
|
4336
|
+
static compare(arg0, arg1) {
|
|
4337
|
+
return compareIsoDateFields(toPlainDateSlots(arg0), toPlainDateSlots(arg1));
|
|
4338
|
+
}
|
|
4339
|
+
get calendarId() {
|
|
4340
|
+
return getCalendarSlotId(getPlainDateSlots(this).calendar);
|
|
4341
|
+
}
|
|
4342
|
+
with(mod, options = void 0) {
|
|
4343
|
+
return createPlainDate(function(slots, modFields, options) {
|
|
4344
|
+
const {calendar: calendar} = slots;
|
|
4345
|
+
const fields = ((calendar, plainDateSlots, modFields) => {
|
|
4346
|
+
const validFieldNames = getCalendarFieldNames(calendar, dateFieldNamesAlpha, dateFieldNamesWithEraAlpha);
|
|
4347
|
+
const {year: year, month: month, day: day} = computeCalendarDateFields(calendar, plainDateSlots);
|
|
4348
|
+
return mergeCalendarFields(calendar, {
|
|
4349
|
+
year: year,
|
|
4350
|
+
monthCode: computeMonthCode(calendar, year, month),
|
|
4351
|
+
day: day
|
|
4352
|
+
}, readAndRefineBagFields(modFields, validFieldNames, dateFieldRefiners));
|
|
4353
|
+
})(calendar, slots, modFields);
|
|
4354
|
+
const [year, monthCodeParts] = refineCalendarDateFields(fields, calendar);
|
|
4355
|
+
return createDateFromRefinedFields(fields, calendar, year, monthCodeParts, refineOverflowOptions(options));
|
|
4356
|
+
}(getPlainDateSlots(this), validateBag(mod), options));
|
|
4357
|
+
}
|
|
4358
|
+
withCalendar(calendarArg) {
|
|
4359
|
+
return createPlainDate(createDateSlots(getPlainDateSlots(this), refineCalendarArg(calendarArg)));
|
|
4360
|
+
}
|
|
4361
|
+
add(durationArg, options = void 0) {
|
|
4362
|
+
const slots = getPlainDateSlots(this);
|
|
4363
|
+
return createPlainDate(createDateSlots(moveDate(slots.calendar, slots, toDurationSlots(durationArg), refineOverflowOptions(options)), slots.calendar));
|
|
4364
|
+
}
|
|
4365
|
+
subtract(durationArg, options = void 0) {
|
|
4366
|
+
const slots = getPlainDateSlots(this);
|
|
4367
|
+
return createPlainDate(createDateSlots(moveDate(slots.calendar, slots, negateDurationFields(toDurationSlots(durationArg)), refineOverflowOptions(options)), slots.calendar));
|
|
4368
|
+
}
|
|
4369
|
+
until(otherArg, options = void 0) {
|
|
4370
|
+
return createDuration(diffDates(0, getPlainDateSlots(this), toPlainDateSlots(otherArg), options));
|
|
4371
|
+
}
|
|
4372
|
+
since(otherArg, options = void 0) {
|
|
4373
|
+
return createDuration(diffDates(1, getPlainDateSlots(this), toPlainDateSlots(otherArg), options));
|
|
4374
|
+
}
|
|
4375
|
+
equals(otherArg) {
|
|
4376
|
+
return !compareIsoDateFields(plainDateSlots0 = getPlainDateSlots(this), plainDateSlots1 = toPlainDateSlots(otherArg)) && plainDateSlots0.calendar === plainDateSlots1.calendar;
|
|
4377
|
+
var plainDateSlots0, plainDateSlots1;
|
|
4378
|
+
}
|
|
4379
|
+
toZonedDateTime(options) {
|
|
4380
|
+
const optionsObj = isObjectLike(options) ? {
|
|
4381
|
+
timeZone: options.timeZone,
|
|
4382
|
+
plainTime: options.plainTime
|
|
4383
|
+
} : {
|
|
4384
|
+
timeZone: options
|
|
4385
|
+
};
|
|
4386
|
+
const slots = getPlainDateSlots(this);
|
|
4387
|
+
const timeZoneId = refineTimeZoneArg(optionsObj.timeZone);
|
|
4388
|
+
const plainTimeArg = optionsObj.plainTime;
|
|
4389
|
+
const timeFields = void 0 !== plainTimeArg ? toPlainTimeSlots(plainTimeArg) : void 0;
|
|
4390
|
+
return createZonedDateTime(((plainDateSlots, timeZone, timeFields) => {
|
|
4391
|
+
let epochNano;
|
|
4392
|
+
return epochNano = timeFields ? getSingleInstantFor(timeZone, combineDateAndTime(plainDateSlots, timeFields)) : getStartOfDayInstantFor(timeZone, combineDateAndTime(plainDateSlots, timeFieldDefaults)),
|
|
4393
|
+
createZonedEpochNanoSlots(epochNano, timeZone, plainDateSlots.calendar);
|
|
4394
|
+
})(slots, queryTimeZone(timeZoneId), timeFields));
|
|
4395
|
+
}
|
|
4396
|
+
toPlainDateTime(plainTimeArg = void 0) {
|
|
4397
|
+
const slots = getPlainDateSlots(this);
|
|
4398
|
+
return createPlainDateTime(createDateTimeFromRefinedFields(slots, optionalToPlainTimeFields(plainTimeArg), slots.calendar));
|
|
4399
|
+
}
|
|
4400
|
+
toPlainYearMonth() {
|
|
4401
|
+
return createPlainYearMonth(((calendar, input) => {
|
|
4402
|
+
const refinedFields = readAndRefineBagFields(input, getCalendarFieldNames(calendar, yearMonthCodeFieldNamesAlpha, yearMonthCodeFieldNamesWithEraAlpha), dateFieldRefiners);
|
|
4403
|
+
const [year, monthCodeParts] = refineCalendarDateFields(refinedFields, calendar, 1);
|
|
4404
|
+
return createYearMonthFromRefinedFields(refinedFields, calendar, year, monthCodeParts, 0);
|
|
4405
|
+
})(getPlainDateSlots(this).calendar, this));
|
|
4406
|
+
}
|
|
4407
|
+
toPlainMonthDay() {
|
|
4408
|
+
return createPlainMonthDay(((calendar, input) => {
|
|
4409
|
+
const refinedFields = readAndRefineBagFields(input, monthCodeDayFieldNamesAlpha, dateFieldRefiners);
|
|
4410
|
+
const [year, monthCodeParts] = refineMonthDayFields(refinedFields, calendar);
|
|
4411
|
+
return createMonthDayFromRefinedFields(refinedFields, calendar, year, monthCodeParts, 0);
|
|
4412
|
+
})(getPlainDateSlots(this).calendar, this));
|
|
4413
|
+
}
|
|
4414
|
+
toLocaleString(locales = void 0, options = {}) {
|
|
4415
|
+
const slots = getPlainDateSlots(this);
|
|
4416
|
+
const format = new RawDateTimeFormat(locales, applyPlainFormatTimeZone(transformDateOptions(options)));
|
|
4417
|
+
return checkResolvedCalendarCompatible(format, slots), format.format(isoDateToEpochMilli(slots));
|
|
4418
|
+
}
|
|
4419
|
+
toString(options = void 0) {
|
|
4420
|
+
return formatPlainDateIso(getPlainDateSlots(this), options);
|
|
4421
|
+
}
|
|
4422
|
+
toJSON() {
|
|
4423
|
+
return formatPlainDateIso(getPlainDateSlots(this));
|
|
4424
|
+
}
|
|
4425
|
+
valueOf() {
|
|
4426
|
+
return forbiddenValueOf();
|
|
4427
|
+
}
|
|
4428
|
+
}, getPlainDateSlots, dateFieldGetters$1, dateDerivedGetters);
|
|
4429
|
+
const durationSlotsMap = new WeakMap;
|
|
4430
|
+
const Duration = defineTemporalClass("Duration", class {
|
|
4431
|
+
constructor(years = 0, months = 0, weeks = 0, days = 0, hours = 0, minutes = 0, seconds = 0, milliseconds = 0, microseconds = 0, nanoseconds = 0) {
|
|
4432
|
+
initDuration(this, createDurationSlots(validateDurationFields(mapProps(toStrictInteger, {
|
|
4433
|
+
years: years,
|
|
4434
|
+
months: months,
|
|
4435
|
+
weeks: weeks,
|
|
4436
|
+
days: days,
|
|
4437
|
+
hours: hours,
|
|
4438
|
+
minutes: minutes,
|
|
4439
|
+
seconds: seconds,
|
|
4440
|
+
milliseconds: milliseconds,
|
|
4441
|
+
microseconds: microseconds,
|
|
4442
|
+
nanoseconds: nanoseconds
|
|
4443
|
+
}))));
|
|
4444
|
+
}
|
|
4445
|
+
static from(arg) {
|
|
4446
|
+
return createDuration(toDurationSlots(arg));
|
|
4447
|
+
}
|
|
4448
|
+
static compare(durationArg0, durationArg1, options = void 0) {
|
|
4449
|
+
return ((refineRelativeTo, durationSlots0, durationSlots1, options) => {
|
|
4450
|
+
const relativeToSlots = refineRelativeTo(normalizeOptions(options).relativeTo);
|
|
4451
|
+
const maxUnit = Math.max(getMaxDurationUnit(durationSlots0), getMaxDurationUnit(durationSlots1));
|
|
4452
|
+
return allPropsEqual(durationFieldNamesAsc, durationSlots0, durationSlots1) ? 0 : isUniformUnit(maxUnit, relativeToSlots && isZonedEpochSlots(relativeToSlots)) ? compareBigInts(durationDayTimeToBigNano(durationSlots0), durationDayTimeToBigNano(durationSlots1)) : (relativeToSlots || throwRangeError("Missing relativeTo"),
|
|
4453
|
+
compareBigInts(moveRelativeEndpointToEpochNano(relativeToSlots, durationSlots0), moveRelativeEndpointToEpochNano(relativeToSlots, durationSlots1)));
|
|
4454
|
+
})(refinePublicRelativeTo, toDurationSlots(durationArg0), toDurationSlots(durationArg1), options);
|
|
4455
|
+
}
|
|
4456
|
+
get sign() {
|
|
4457
|
+
return getDurationSlots(this).sign;
|
|
4458
|
+
}
|
|
4459
|
+
get blank() {
|
|
4460
|
+
return !getDurationSlots(this).sign;
|
|
4461
|
+
}
|
|
4462
|
+
with(mod) {
|
|
4463
|
+
return createDuration(createDurationSlots((initialFields = getDurationSlots(this),
|
|
4464
|
+
modFields = mod, validateDurationFields({
|
|
4465
|
+
...initialFields,
|
|
4466
|
+
...readAndRefineBagFields(modFields, durationFieldNamesAlpha, durationFieldRefiners)
|
|
4467
|
+
}))));
|
|
4468
|
+
var initialFields, modFields;
|
|
4469
|
+
}
|
|
4470
|
+
negated() {
|
|
4471
|
+
return createDuration(negateDuration(getDurationSlots(this)));
|
|
4472
|
+
}
|
|
4473
|
+
abs() {
|
|
4474
|
+
return createDuration(-1 === (slots = getDurationSlots(this)).sign ? negateDuration(slots) : slots);
|
|
4475
|
+
var slots;
|
|
4476
|
+
}
|
|
4477
|
+
add(otherArg) {
|
|
4478
|
+
return createDuration(addDurationsWithoutRelativeTo(0, getDurationSlots(this), toDurationSlots(otherArg)));
|
|
4479
|
+
}
|
|
4480
|
+
subtract(otherArg) {
|
|
4481
|
+
return createDuration(addDurationsWithoutRelativeTo(1, getDurationSlots(this), toDurationSlots(otherArg)));
|
|
4482
|
+
}
|
|
4483
|
+
round(roundTo) {
|
|
4484
|
+
return createDuration(function(refineRelativeTo, slots, options) {
|
|
4485
|
+
const durationLargestUnit = getMaxDurationUnit(slots);
|
|
4486
|
+
const [largestUnit, smallestUnit, roundingInc, roundingMode, relativeToSlots] = ((options, defaultLargestUnit, refineRelativeTo) => {
|
|
4487
|
+
options = normalizeOptionsOrString(options, smallestUnitStr);
|
|
4488
|
+
let largestUnit = coerceLargestUnit(options);
|
|
4489
|
+
const relativeToInternals = refineRelativeTo(options.relativeTo);
|
|
4490
|
+
let roundingInc = coerceRoundingIncInteger(options);
|
|
4491
|
+
const roundingMode = coerceRoundingMode(options, 7);
|
|
4492
|
+
let smallestUnit = coerceSmallestUnit(options);
|
|
4493
|
+
return void 0 === largestUnit && void 0 === smallestUnit && throwRangeError(missingSmallestLargestUnit),
|
|
4494
|
+
null == smallestUnit && (smallestUnit = 0), null == largestUnit && (largestUnit = Math.max(smallestUnit, defaultLargestUnit)),
|
|
4495
|
+
checkLargestSmallestUnit(largestUnit, smallestUnit), roundingInc = validateRoundingInc(roundingInc, smallestUnit, 1),
|
|
4496
|
+
roundingInc > 1 && smallestUnit > 5 && largestUnit !== smallestUnit && throwRangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit"),
|
|
4497
|
+
[ largestUnit, smallestUnit, roundingInc, roundingMode, relativeToInternals ];
|
|
4498
|
+
})(options, durationLargestUnit, refineRelativeTo);
|
|
4499
|
+
if (!relativeToSlots && Math.max(durationLargestUnit, largestUnit) <= 6) {
|
|
4500
|
+
return createDurationSlots(validateDurationFields(((durationFields, largestUnit, smallestUnit, roundingInc, roundingMode) => {
|
|
4501
|
+
const roundedBigNano = roundBigNanoToInc(durationDayTimeToBigNano(durationFields), computeBigNanoInc(smallestUnit, roundingInc), roundingMode);
|
|
4502
|
+
return {
|
|
4503
|
+
...durationFieldDefaults,
|
|
4504
|
+
...nanoToDurationDayTimeFields(roundedBigNano, largestUnit)
|
|
4505
|
+
};
|
|
4506
|
+
})(slots, largestUnit, smallestUnit, roundingInc, roundingMode)));
|
|
4507
|
+
}
|
|
4508
|
+
relativeToSlots || throwRangeError("Missing relativeTo");
|
|
4509
|
+
const isZoned = isZonedEpochSlots(relativeToSlots);
|
|
4510
|
+
if (!slots.sign && (!isZoned || largestUnit < 6)) {
|
|
4511
|
+
return slots;
|
|
4512
|
+
}
|
|
4513
|
+
const [balancedDuration, endEpochNano, relativeOps] = spanRelativeDuration(relativeToSlots, slots, largestUnit);
|
|
4514
|
+
return createDurationSlots(roundRelativeDuration(balancedDuration, endEpochNano, largestUnit, smallestUnit, roundingInc, roundingMode, relativeOps, isZoned));
|
|
4515
|
+
}(refinePublicRelativeTo, getDurationSlots(this), roundTo));
|
|
4516
|
+
}
|
|
4517
|
+
total(totalOf) {
|
|
4518
|
+
return totalDuration(refinePublicRelativeTo, getDurationSlots(this), totalOf);
|
|
4519
|
+
}
|
|
4520
|
+
toLocaleString(locales = void 0, options) {
|
|
4521
|
+
const slots = getDurationSlots(this);
|
|
4522
|
+
return Intl.DurationFormat ? new Intl.DurationFormat(locales, options).format(slots) : formatDurationIso(slots, options);
|
|
4523
|
+
}
|
|
4524
|
+
toString(options = void 0) {
|
|
4525
|
+
return formatDurationIso(getDurationSlots(this), options);
|
|
4526
|
+
}
|
|
4527
|
+
toJSON() {
|
|
4528
|
+
return formatDurationIso(getDurationSlots(this));
|
|
4529
|
+
}
|
|
4530
|
+
valueOf() {
|
|
4531
|
+
return forbiddenValueOf();
|
|
4532
|
+
}
|
|
4533
|
+
}, getDurationSlots, durationGetters);
|
|
4534
|
+
const Now = Object.defineProperties({}, {
|
|
4535
|
+
...createStringTagDescriptors("Temporal.Now"),
|
|
4536
|
+
...createPropDescriptors({
|
|
4537
|
+
timeZoneId() {
|
|
4538
|
+
return getCurrentTimeZoneId();
|
|
4539
|
+
},
|
|
4540
|
+
instant() {
|
|
4541
|
+
return createInstant(createEpochNanoSlots(getCurrentEpochNano()));
|
|
4542
|
+
},
|
|
4543
|
+
zonedDateTimeISO(timeZoneArg = getCurrentTimeZoneId()) {
|
|
4544
|
+
const timeZone = queryTimeZone(refineTimeZoneArg(timeZoneArg));
|
|
4545
|
+
return createZonedDateTime(createZonedEpochNanoSlots(getCurrentEpochNano(), timeZone));
|
|
4546
|
+
},
|
|
4547
|
+
plainDateTimeISO(timeZoneArg = getCurrentTimeZoneId()) {
|
|
4548
|
+
return createPlainDateTime(createDateTimeSlots(getCurrentIsoDateTime(queryTimeZone(refineTimeZoneArg(timeZoneArg)))));
|
|
4549
|
+
},
|
|
4550
|
+
plainDateISO(timeZoneArg = getCurrentTimeZoneId()) {
|
|
4551
|
+
return createPlainDate(createDateSlots(getCurrentIsoDateTime(queryTimeZone(refineTimeZoneArg(timeZoneArg)))));
|
|
4552
|
+
},
|
|
4553
|
+
plainTimeISO(timeZoneArg = getCurrentTimeZoneId()) {
|
|
4554
|
+
return createPlainTime(createTimeSlots(getCurrentIsoDateTime(queryTimeZone(refineTimeZoneArg(timeZoneArg)))));
|
|
4555
|
+
}
|
|
4556
|
+
})
|
|
4557
|
+
});
|
|
4558
|
+
const Temporal = Object.defineProperties({}, {
|
|
4559
|
+
...createStringTagDescriptors("Temporal"),
|
|
4560
|
+
...createPropDescriptors({
|
|
4561
|
+
PlainYearMonth: PlainYearMonth,
|
|
4562
|
+
PlainMonthDay: PlainMonthDay,
|
|
4563
|
+
PlainDate: PlainDate,
|
|
4564
|
+
PlainTime: PlainTime,
|
|
4565
|
+
PlainDateTime: PlainDateTime,
|
|
4566
|
+
ZonedDateTime: ZonedDateTime,
|
|
4567
|
+
Instant: Instant,
|
|
4568
|
+
Duration: Duration,
|
|
4569
|
+
Now: Now
|
|
4570
|
+
})
|
|
4571
|
+
});
|
|
4572
|
+
const DateTimeFormat = createDateTimeFormatClass(getTemporalBrandingAndSlots);
|
|
4573
|
+
NativeTemporal || (Object.defineProperties(globalThis, createPropDescriptors({
|
|
4574
|
+
Temporal: Temporal
|
|
4575
|
+
})), Object.defineProperties(Intl, createPropDescriptors({
|
|
4576
|
+
DateTimeFormat: DateTimeFormat
|
|
4577
|
+
})), Object.defineProperties(Date.prototype, createPropDescriptors({
|
|
4578
|
+
toTemporalInstant: toTemporalInstant
|
|
4579
|
+
})));
|
|
4580
|
+
}();
|