@kern0x1b/penstock-cli 26.11.0 → 26.11.2
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/THIRD-PARTY-NOTICES.md +16 -16
- package/dist/chunk-account-BaYNvO18.js +1 -0
- package/dist/{chunk-agentLaunch-D21uPuMr.js → chunk-agentLaunch-BnrpVME4.js} +1 -1
- package/dist/chunk-agentServe-BeOh1rjE.js +10 -0
- package/dist/chunk-agents-CZJoU2u2.js +1 -0
- package/dist/chunk-agentsMigrate-DnrqoXNz.js +2 -0
- package/dist/{chunk-analyze-BG-rlggA.js → chunk-analyze-ClE2LBCj.js} +1 -1
- package/dist/chunk-analyze-DgQqzEgb.js +1 -0
- package/dist/{chunk-analyzeFlow-2cYPgjh-.js → chunk-analyzeFlow-F2ZFmJhv.js} +1 -1
- package/dist/chunk-apiTemplates-Cl_z63FA.js +1 -0
- package/dist/{chunk-bot-DlhStBoG.js → chunk-bot-C2k8yaXA.js} +5 -5
- package/dist/chunk-cmmnFindings-DKpYqUZN.js +1 -0
- package/dist/{chunk-codeFactSet-LxSnQy8K.js → chunk-codeFactSet-DiAYqvbb.js} +1 -1
- package/dist/{chunk-codeIndex-N1gnP_sW.js → chunk-codeIndex-vStNh6Bm.js} +1 -1
- package/dist/chunk-codeLinks-BVpn4_Sr.js +1 -0
- package/dist/chunk-codeLinks-BrGduhsm.js +1 -0
- package/dist/chunk-command-8s6m3ZUw.js +5 -0
- package/dist/chunk-command-aMxPQdiV.js +1 -0
- package/dist/chunk-command-vH1_y5F0.js +1 -0
- package/dist/chunk-commands-B8YVT41b.js +5 -0
- package/dist/{chunk-commands-DcjlDt7B.js → chunk-commands-CJCSznbv.js} +1 -1
- package/dist/chunk-compose-BUJTvoFX.js +4 -0
- package/dist/chunk-connections-Drr67X9U.js +1 -0
- package/dist/chunk-connectors-DcMqy0u8.js +1 -0
- package/dist/chunk-convert-Ce1MZmsE.js +3 -0
- package/dist/chunk-convert-FkMnlxyi.js +1 -0
- package/dist/chunk-deploy-BHg8pB9x.js +1 -0
- package/dist/chunk-deploy-DZgCTgaY.js +6 -0
- package/dist/{chunk-diagrams-BukAOL0g.js → chunk-diagrams-CtGMGTa8.js} +1 -1
- package/dist/chunk-diff-9hjavV6V.js +1 -0
- package/dist/chunk-diff-Dp3fUALc.js +1 -0
- package/dist/chunk-dispatch-o-eqJb9Y.js +7 -0
- package/dist/chunk-dmnTests-BOxutoRs.js +1 -0
- package/dist/{chunk-dmnTests-ChwX1YVo.js → chunk-dmnTests-BzNA-u2k.js} +1 -1
- package/dist/{chunk-docs-D7yEDpa4.js → chunk-docs-B3C3pZpY.js} +17 -17
- package/dist/chunk-doctor-CRxbsAm7.js +1 -0
- package/dist/{chunk-editPreview-CC2vwhIW.js → chunk-editPreview-DCUnMkTU.js} +1 -1
- package/dist/chunk-evidence-ny_2ltVe.js +23 -0
- package/dist/{chunk-examples-0HkF-frb.js → chunk-examples-BG0lGXcZ.js} +9 -9
- package/dist/chunk-export-Blwjf23H.js +1 -0
- package/dist/chunk-export-kt3sBTZu.js +20 -0
- package/dist/{chunk-facts-DSVaURw5.js → chunk-facts-Dl5lLriU.js} +1 -1
- package/dist/chunk-failure-BRyRvObj.js +1 -0
- package/dist/{chunk-file-BswMa3FN.js → chunk-file-1YhfNmPn.js} +1 -1
- package/dist/chunk-import-Dh3az4BC.js +6 -0
- package/dist/chunk-importCommand-Dhikkmo0.js +1 -0
- package/dist/chunk-incident-LJe2-ohi.js +1 -0
- package/dist/chunk-init-D34Q4YA8.js +227 -0
- package/dist/chunk-lint-CnEhoYRB.js +1 -0
- package/dist/{chunk-lsp-7vA_mIt1.js → chunk-lsp-BzeJkpmf.js} +1 -1
- package/dist/chunk-main-BZF-ErAx.js +1 -0
- package/dist/chunk-mcp-B_B9bet5.js +95 -0
- package/dist/{chunk-mcpLaunch-LyfmIF_Z.js → chunk-mcpLaunch-BS709697.js} +1 -1
- package/dist/chunk-migrate-DVfXC-iJ.js +1 -0
- package/dist/chunk-migrate-DwWg0k5_.js +16 -0
- package/dist/{chunk-migrateApply-CzOkgKhB.js → chunk-migrateApply-e8O9oZXP.js} +3 -3
- package/dist/chunk-migrateVerify-oIBf-PM3.js +1 -0
- package/dist/{chunk-model-f8AzYUK7.js → chunk-model-BulEKnY1.js} +2 -2
- package/dist/{chunk-parse-B-uKGDy-.js → chunk-parse-DiOcpdOU.js} +1 -1
- package/dist/{chunk-penstockCli-CKMvaZ0O.js → chunk-penstockCli-C41P_G7i.js} +1 -1
- package/dist/chunk-policy-BVb7c7G_.js +1 -0
- package/dist/chunk-policyGate-BOgKsqLq.js +2 -0
- package/dist/chunk-pr-1jKcTNnP.js +1 -0
- package/dist/{chunk-project-DBYOlYRi.js → chunk-project-COaBZhMt.js} +1 -1
- package/dist/chunk-project-lO_6DX8G.js +1 -0
- package/dist/chunk-promotion-CTMPjXjZ.js +2 -0
- package/dist/chunk-promotion-DDLrgBqZ.js +1 -0
- package/dist/{chunk-promotion-DchO6xoC.js → chunk-promotion-NeRj4uTP.js} +1 -1
- package/dist/chunk-receipt-C4NqnSkH.js +1 -0
- package/dist/chunk-receiptDeps-B7MehyHT.js +1 -0
- package/dist/chunk-receiptGate-BZCKCMTV.js +1 -0
- package/dist/chunk-receiptGate-DRcw327y.js +1 -0
- package/dist/{chunk-receiptSnapshot-B6ruXw8z.js → chunk-receiptSnapshot-CHSk3_4N.js} +1 -1
- package/dist/{chunk-receiptStore-Cy-L0H1u.js → chunk-receiptStore-DhROtI2h.js} +1 -1
- package/dist/chunk-refactor-CO3qyIEv.js +17 -0
- package/dist/chunk-refactor-CWeCOl7w.js +1 -0
- package/dist/{chunk-render-Ci5d6mg4.js → chunk-render-DZd5hScS.js} +1 -1
- package/dist/chunk-report-w7YZwhyg.js +1 -0
- package/dist/chunk-review-DYMgFDSy.js +1 -0
- package/dist/chunk-say-CP1IyOSv.js +1 -0
- package/dist/{chunk-security-VgKwtohm.js → chunk-security-pgip-kdY.js} +2 -2
- package/dist/chunk-serve-CKt2rO05.js +10 -0
- package/dist/{chunk-share-CBV2FuKq.js → chunk-share-rsL0itIM.js} +18 -18
- package/dist/chunk-stages-B2sBBxUc.js +3 -0
- package/dist/chunk-systemError-O3vQ8hLb.js +1 -0
- package/dist/chunk-systemError-n2E6isvg.js +1 -0
- package/dist/chunk-taskTest-DWoME1mY.js +2 -0
- package/dist/chunk-taskTest-JErgWO6t.js +1 -0
- package/dist/{chunk-templateDiagnostics-BwH7RNkz.js → chunk-templateDiagnostics-6txfKwas.js} +2 -2
- package/dist/chunk-templates-Y3xfCO_3.js +1 -0
- package/dist/chunk-testCases-BwimUfDC.js +4 -0
- package/dist/chunk-testCases-DO2Rkyvd.js +1 -0
- package/dist/chunk-tests-Cy325OGw.js +1 -0
- package/dist/chunk-tests-DNkORsqB.js +23 -0
- package/dist/{chunk-trust-DXcsUJaK.js → chunk-trust-DSX-k3by.js} +1 -1
- package/dist/{chunk-trust-DubjEjlN.js → chunk-trust-Di4EYPah.js} +1 -1
- package/dist/{chunk-variableChecks-KnECGMR3.js → chunk-variableChecks-CBDpmI4d.js} +1 -1
- package/dist/{chunk-workerVariables-CajAcbwl.js → chunk-workerVariables-CNnCRijJ.js} +1 -1
- package/dist/{chunk-workerVariables-DIDoUpHF.js → chunk-workerVariables-CulLc3YH.js} +1 -1
- package/dist/chunk-wrapper-CGYED7G2.js +1 -0
- package/dist/chunk-wrapper-CK7Xtes6.js +3 -0
- package/dist/grammars/web-tree-sitter.wasm +0 -0
- package/dist/penstock.js +1 -1
- package/dist/web/assets/{AgentSettings-Cn5Vcph3.js → AgentSettings-D24jOuht.js} +1 -1
- package/dist/web/assets/{AgentsDialog-C6WqzlxZ.js → AgentsDialog-BMWv3Gyk.js} +1 -1
- package/dist/web/assets/{AgentsDialog-dpbwVSxk.js → AgentsDialog-DbY2O6O5.js} +1 -1
- package/dist/web/assets/{AgentsTab-C34OhVkw.js → AgentsTab-D6LbK6sG.js} +2 -2
- package/dist/web/assets/{BpmnCanvas-yur9daZa.js → BpmnCanvas-BcQRQ2Br.js} +27 -27
- package/dist/web/assets/BpmnDocument-Ce5F4K1e.js +27 -0
- package/dist/web/assets/CmmnDocument-C_UlPowC.js +17 -0
- package/dist/web/assets/{ConflictDialog-Bb5kduaR.js → ConflictDialog-DfFp8F7n.js} +1 -1
- package/dist/web/assets/{ConnectionsDialog-qtF7yDFw.js → ConnectionsDialog-BaYtHD5h.js} +1 -1
- package/dist/web/assets/{DiffDocument-LHOif5Ac.js → DiffDocument-BOPdBEN3.js} +1 -1
- package/dist/web/assets/{DmnDocument-0f5uS67x.css → DmnDocument-DZ9u2uk2.css} +1 -1
- package/dist/web/assets/DmnDocument-vtnARy7Q.js +41 -0
- package/dist/web/assets/{DriftDialog-Chl6BX6k.js → DriftDialog-dIbCbSK2.js} +1 -1
- package/dist/web/assets/FormDocument-B0q8DF9v.css +1 -0
- package/dist/web/assets/FormDocument-DHBUBUzO.js +32 -0
- package/dist/web/assets/FormStepView-CbHb32_8.js +1 -0
- package/dist/web/assets/{GraphAwareLayoutService-wsos3yPD.js → GraphAwareLayoutService-C5N8K9dm.js} +1 -1
- package/dist/web/assets/{MigrationDialog-CBJU7Oe3.js → MigrationDialog-DA3Vrzgw.js} +1 -1
- package/dist/web/assets/{NewFileDialog-B7075LWG.js → NewFileDialog-Dev41oA1.js} +1 -1
- package/dist/web/assets/PolicyDialog-qR19Csji.js +1 -0
- package/dist/web/assets/{QuickOpen-DJQrI7Od.js → QuickOpen-ps-rMjiS.js} +1 -1
- package/dist/web/assets/ScriptPane-BQLMNYzc.js +2 -0
- package/dist/web/assets/{ScriptRunDialog-BwE4cXnp.js → ScriptRunDialog-YivjHB6j.js} +1 -1
- package/dist/web/assets/{SettingsDialog-c307wPsg.js → SettingsDialog-DI0vZ6Ay.js} +1 -1
- package/dist/web/assets/ShortcutsDialog-DLXnv4Vm.js +1 -0
- package/dist/web/assets/SourceDocument-Cj8cGsoS.js +1 -0
- package/dist/web/assets/TemplateDocument-BRyFsofH.js +7 -0
- package/dist/web/assets/TextDocument-DB2hEuMA.js +1 -0
- package/dist/web/assets/{UnreadableFileLayer-CUP_30X8.js → UnreadableFileLayer-CRW3MM7w.js} +1 -1
- package/dist/web/assets/{UploadDialog-CaVBOxUL.js → UploadDialog-D-X6GG98.js} +1 -1
- package/dist/web/assets/Viewer-BcpDlvg_.js +4 -0
- package/dist/web/assets/apply-Nsj6ek02.js +1 -0
- package/dist/web/assets/{bpmnTheme-CZ7xp4R5.js → bpmnTheme-pKgl9Mrn.js} +2 -2
- package/dist/web/assets/{data-ZauKnQ2Z.js → data-CdiToGOq.js} +2 -2
- package/dist/web/assets/{data-Da5Nxzev.js → data-wU6sw6RY.js} +1 -1
- package/dist/web/assets/{dialog-DSLu1Bbo.js → dialog-BDJ5dDiU.js} +1 -1
- package/dist/web/assets/{diff-C4hitkRR.js → diff-BhYqTg4l.js} +1 -1
- package/dist/web/assets/dist-27z6Phtg.js +23 -0
- package/dist/web/assets/{dist-CofBTWz1.js → dist-B7TL-7R3.js} +4 -4
- package/dist/web/assets/dist-BEpeEbIu.js +1 -0
- package/dist/web/assets/{dist-CYCbBoYQ.js → dist-BTf7NfeQ.js} +1 -1
- package/dist/web/assets/{dist-CJKVV2_S.js → dist-BqGv7f4M.js} +10 -10
- package/dist/web/assets/dist-C-q1IWjr.js +6 -0
- package/dist/web/assets/{dist-Blylfrak.js → dist-CJx_2eBF.js} +2 -2
- package/dist/web/assets/dist-COUY_jv5.js +1 -0
- package/dist/web/assets/{dist-DpDu6Wz_.js → dist-CWjAtsKe.js} +1 -1
- package/dist/web/assets/{dist-gb3IfUZi.js → dist-Cv8_A_95.js} +2 -2
- package/dist/web/assets/dist-DDE6BjgI.js +5 -0
- package/dist/web/assets/{dist-7VC_hKpw.js → dist-DDNYYQtV.js} +1 -1
- package/dist/web/assets/dist-DW-S9iZN.js +1 -0
- package/dist/web/assets/dist-OnU5n5o1.js +1 -0
- package/dist/web/assets/dmn-Cgoh6wXm.js +3 -0
- package/dist/web/assets/{documentBridge-1Eg7H9yI.js → documentBridge-CHw4XsZH.js} +3 -3
- package/dist/web/assets/{documents-LG-7CTrn.js → documents-CEtohzAC.js} +1 -1
- package/dist/web/assets/duplicate-D_ic-m62.js +342 -0
- package/dist/web/assets/{engines-DhO6OW1S.js → engines-lyEvb0pH.js} +1 -1
- package/dist/web/assets/{executable-BTarDLry.js → executable--4381_Lf.js} +1 -1
- package/dist/web/assets/{file-CIeVSOHy.js → file-BbVBUuIH.js} +1 -1
- package/dist/web/assets/formChecks-CSClH9sH.js +1 -0
- package/dist/web/assets/frontend-uXAWaalt.js +1 -0
- package/dist/web/assets/{httpHost-DBSjdVth.js → httpHost-C973OTRe.js} +1 -1
- package/dist/web/assets/{index.es-pigASDxC.js → index.es-CMvq8Bhe.js} +3 -3
- package/dist/web/assets/index.es-GbdJvMnO.js +78 -0
- package/dist/web/assets/{index.esm-CTLpq4ik.js → index.esm-Ba6q0zSu.js} +1 -1
- package/dist/web/assets/{intelligence-_1C71hkQ.js → intelligence-DNqJNmdB.js} +3 -3
- package/dist/web/assets/{jspdf.es.min-PgZzOmkT.js → jspdf.es.min-C0L4zezU.js} +6 -6
- package/dist/web/assets/{kind-X3_nabTt.js → kind-DDHnk6dW.js} +1 -1
- package/dist/web/assets/{lib-BmLAen_d.js → lib-DrkEMJ65.js} +1 -1
- package/dist/web/assets/{list-DovB9lWV.js → list-TmXvCwja.js} +1 -1
- package/dist/web/assets/{migrationHost-BcguK4K5.js → migrationHost-DCWBb3L6.js} +1 -1
- package/dist/web/assets/moddle-f0Q4Guwd.js +1 -0
- package/dist/web/assets/{model--Bj28IOj.js → model-afHgSxJs.js} +1 -1
- package/dist/web/assets/{nudges-UF9_cBuO.js → nudges-DPG3WpyV.js} +1 -1
- package/dist/web/assets/{open-C9Kt9JLw.js → open-Vkx72dYx.js} +1 -1
- package/dist/web/assets/platform-G53Cenyw.js +2 -0
- package/dist/web/assets/{preload-helper-VRuDKI9K.js → preload-helper-DExCAR_V.js} +1 -1
- package/dist/web/assets/{run-BZgz1U9U.js → run-BMfRBe5O.js} +1 -1
- package/dist/web/assets/samples-BL3jA_Vd.js +1 -0
- package/dist/web/assets/{say-WvEHqIbO.js → say-BkdZMivA.js} +1 -1
- package/dist/web/assets/{say-ChFGKK2E.js → say-C7KqKcFr.js} +1 -1
- package/dist/web/assets/{sections-N6WYk7b8.js → sections-LJKSRDTS.js} +1 -1
- package/dist/web/assets/sharedReader-BsXfiBT8.js +1 -0
- package/dist/web/assets/{source-frame-DcptKpVq.js → source-frame-DC4W0A5-.js} +2 -2
- package/dist/web/assets/{syntax-DW10Wzg4.js → syntax-00Hk6Xv7.js} +4 -4
- package/dist/web/assets/{template-CMl68jPp.js → template-BQP7ZXdK.js} +1 -1
- package/dist/web/assets/testCaseRuns-liAhWMg7.js +1 -0
- package/dist/web/assets/{trace-DLziNpe2.js → trace-DXQU2N_l.js} +1 -1
- package/dist/web/assets/{translator-DLDFsUlE.js → translator-BLCeE6UY.js} +1 -1
- package/dist/web/assets/ui-BLtm3Y1J.js +1 -0
- package/dist/web/assets/{useTrace-UYBskc2k.js → useTrace-dZdQ805W.js} +1 -1
- package/dist/web/assets/web-C4k0NLZ9.js +982 -0
- package/dist/web/assets/web-CnDpD6qy.css +1 -0
- package/dist/web/assets/{workerVariables-DURgyUbG.js → workerVariables-O6VqwDzr.js} +1 -1
- package/dist/web/assets/xml-DIWt4von.js +1 -0
- package/dist/web/index.html +39 -40
- package/package.json +5 -5
- package/dist/chunk-account-CpZu-RTg.js +0 -1
- package/dist/chunk-agentServe-BYRtgGGD.js +0 -10
- package/dist/chunk-agents-B9oxdPTA.js +0 -1
- package/dist/chunk-agentsMigrate-BV8TeRXq.js +0 -2
- package/dist/chunk-analyze-pgzR-Cx-.js +0 -1
- package/dist/chunk-apiTemplates-cU7C8vap.js +0 -1
- package/dist/chunk-cmmnFindings-S2TGSnEp.js +0 -1
- package/dist/chunk-codeLinks-C8N6e8k3.js +0 -1
- package/dist/chunk-codeLinks-o0a8tBGk.js +0 -1
- package/dist/chunk-command-Bqlbgo-2.js +0 -1
- package/dist/chunk-command-DT84ioJb.js +0 -5
- package/dist/chunk-command-DrGP2kg8.js +0 -1
- package/dist/chunk-commands-B4PoZbpX.js +0 -5
- package/dist/chunk-compose-CWKKVtN5.js +0 -4
- package/dist/chunk-connections-DQpKbIGD.js +0 -1
- package/dist/chunk-connectors-PtAvE91B.js +0 -1
- package/dist/chunk-convert-CpgtOlZk.js +0 -1
- package/dist/chunk-convert-HbFpg8ab.js +0 -3
- package/dist/chunk-deploy-l4MdFfn8.js +0 -6
- package/dist/chunk-deploy-qRaaKGZb.js +0 -1
- package/dist/chunk-diff-BhTFlCE3.js +0 -1
- package/dist/chunk-diff-kBF83vzM.js +0 -1
- package/dist/chunk-dispatch-BnO-QhMh.js +0 -7
- package/dist/chunk-dmnTests-0x_yUH6S.js +0 -1
- package/dist/chunk-doctor-BuHK1dTm.js +0 -1
- package/dist/chunk-evidence-oLw_C6j8.js +0 -23
- package/dist/chunk-export-cIFHDXug.js +0 -1
- package/dist/chunk-export-jBVxtmCH.js +0 -20
- package/dist/chunk-failure-D5brrYW2.js +0 -1
- package/dist/chunk-import-BBOe-5RZ.js +0 -6
- package/dist/chunk-importCommand-DRjYoljA.js +0 -1
- package/dist/chunk-incident-BK1h37CD.js +0 -1
- package/dist/chunk-init-_OALJuKm.js +0 -227
- package/dist/chunk-lint-7KJFxyCN.js +0 -1
- package/dist/chunk-main-Cw2JXCil.js +0 -1
- package/dist/chunk-mcp-K63bhqnF.js +0 -95
- package/dist/chunk-migrate-BMwBV5sc.js +0 -16
- package/dist/chunk-migrate-CxfVmKt0.js +0 -1
- package/dist/chunk-migrateVerify-DSEXSpfR.js +0 -1
- package/dist/chunk-policy-BX0Ftdws.js +0 -1
- package/dist/chunk-policyGate-dmcufnwB.js +0 -2
- package/dist/chunk-pr-ByrGcfam.js +0 -1
- package/dist/chunk-project-DA3KnAZH.js +0 -1
- package/dist/chunk-promotion-Boedyq43.js +0 -1
- package/dist/chunk-promotion-D8Ti-vxp.js +0 -2
- package/dist/chunk-receipt-CusJaqNn.js +0 -1
- package/dist/chunk-receiptDeps-oVbX156d.js +0 -1
- package/dist/chunk-receiptGate-DrGChj7i.js +0 -1
- package/dist/chunk-receiptGate-xldHKMyJ.js +0 -1
- package/dist/chunk-refactor-B1W_MGTp.js +0 -1
- package/dist/chunk-refactor-BJXxEtVs.js +0 -17
- package/dist/chunk-report-D9pM09Nu.js +0 -1
- package/dist/chunk-review-UcqS5AAi.js +0 -1
- package/dist/chunk-say-CYb4HeJD.js +0 -1
- package/dist/chunk-serve-Dmqen1yd.js +0 -10
- package/dist/chunk-stages-BTQJrAMF.js +0 -3
- package/dist/chunk-systemError-BYrMzp2o.js +0 -1
- package/dist/chunk-systemError-CXvnhNPK.js +0 -1
- package/dist/chunk-taskTest-9gMsx0zu.js +0 -2
- package/dist/chunk-taskTest-BjXYpG5p.js +0 -1
- package/dist/chunk-templates-D3ouIwHD.js +0 -1
- package/dist/chunk-testCases-9jwT_Y7z.js +0 -4
- package/dist/chunk-testCases-BcpBPg9L.js +0 -1
- package/dist/chunk-tests-CEEXnWOp.js +0 -23
- package/dist/chunk-tests-CRVosdWp.js +0 -1
- package/dist/chunk-wrapper-B2WnOIoB.js +0 -3
- package/dist/chunk-wrapper-DiKCKZti.js +0 -1
- package/dist/web/assets/BpmnDocument-C247Rqim.js +0 -27
- package/dist/web/assets/CmmnDocument-Dj48bsUd.js +0 -17
- package/dist/web/assets/DmnDocument-Cb9Zi9fS.js +0 -41
- package/dist/web/assets/FormDocument-DoZaxWd-.js +0 -32
- package/dist/web/assets/FormDocument-URLcKn84.css +0 -1
- package/dist/web/assets/FormStepView-D8MFcpeI.js +0 -1
- package/dist/web/assets/PolicyDialog-CGdglmDn.js +0 -1
- package/dist/web/assets/ScriptPane-T6M5f6fc.js +0 -2
- package/dist/web/assets/ShortcutsDialog-BAoL9EHu.js +0 -1
- package/dist/web/assets/SourceDocument-C9KIzBA5.js +0 -1
- package/dist/web/assets/TemplateDocument-CNt2turg.js +0 -7
- package/dist/web/assets/TextDocument-CtkHoEqN.js +0 -1
- package/dist/web/assets/Viewer-DZske1C5.js +0 -4
- package/dist/web/assets/apply-nnKP9HIM.js +0 -1
- package/dist/web/assets/dist--PmHUHDp.js +0 -1
- package/dist/web/assets/dist-BoPrKCf2.js +0 -5
- package/dist/web/assets/dist-C1m02xAO.js +0 -1
- package/dist/web/assets/dist-CLqJMzT-.js +0 -1
- package/dist/web/assets/dist-D3jqq0XS.js +0 -1
- package/dist/web/assets/dist-DA-9F0U9.js +0 -1
- package/dist/web/assets/dist-DojzF5q2.js +0 -6
- package/dist/web/assets/dist-yvjzrXXf.js +0 -23
- package/dist/web/assets/dmn-DwdcYXGr.js +0 -3
- package/dist/web/assets/duplicate-D-ilQqKz.js +0 -342
- package/dist/web/assets/formChecks-CGox1z7R.js +0 -1
- package/dist/web/assets/frontend-Qq5hBH0U.js +0 -1
- package/dist/web/assets/index.es-CcNNw3VB.js +0 -78
- package/dist/web/assets/moddle-DJxj0oEU.js +0 -1
- package/dist/web/assets/platform-BLPhsye9.js +0 -2
- package/dist/web/assets/samples-oeXBsJ9Y.js +0 -1
- package/dist/web/assets/sharedReader-Bopy7Uk9.js +0 -1
- package/dist/web/assets/testCaseRuns-B_XdqGFh.js +0 -1
- package/dist/web/assets/ui-BTKMbWYG.js +0 -1
- package/dist/web/assets/web-FzNBw1kZ.css +0 -1
- package/dist/web/assets/web-jPMZVwbQ.js +0 -982
- package/dist/web/assets/xml-DTgZ-B-l.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./rolldown-runtime-B8BYMn-z.js";import{a as e,c as t,o as n,v as r}from"./dist-DHrd1AHo.js";import{a as i,n as a,r as o,t as s}from"./dist-CdHwU8_m.js";import{_ as c,m as l,o as u,r as d,w as f,y as p}from"./dist-BrFvWnvj.js";i(),e();var m=63,h=64,g=1,_=2,v=3,y=4,b=5,x=6,S=7,C=65,w=66,T=8,E=9,D=10,O=11,k=12,A=13,j=19,M=20,N=29,P=33,F=34,I=47,L=0,R=1,z=2,B=3,V=4,Context=class{constructor(e,t,n){this.parent=e,this.depth=t,this.type=n,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+n}};Context.top=new Context(null,-1,L);function findColumn(e,t){for(let n=0,r=t-e.pos-1;;r--,n++){let t=e.peek(r);if(isBreakSpace(t)||t==-1)return n}}function isNonBreakSpace(e){return e==32||e==9}function isBreakSpace(e){return e==10||e==13}function isSpace(e){return isNonBreakSpace(e)||isBreakSpace(e)}function isSep(e){return e<0||isSpace(e)}var H=new s({start:Context.top,reduce(e,t){return e.type==B&&(t==M||t==F)?e.parent:e},shift(e,t,n,r){if(t==v)return new Context(e,findColumn(r,r.pos),R);if(t==C||t==b)return new Context(e,findColumn(r,r.pos),z);if(t==m)return e.parent;if(t==j||t==P)return new Context(e,0,B);if(t==A&&e.type==V)return e.parent;if(t==I){let t=/[1-9]/.exec(r.read(r.pos,n.pos));if(t)return new Context(e,e.depth+ +t[0],V)}return e},hash(e){return e.hash}});function three(e,t,n=0){return e.peek(n)==t&&e.peek(n+1)==t&&e.peek(n+2)==t&&isSep(e.peek(n+3))}var U=new a((e,t)=>{if(e.next==-1&&t.canShift(h))return e.acceptToken(h);let n=e.peek(-1);if((isBreakSpace(n)||n<0)&&t.context.type!=B){if(three(e,45)){if(t.canShift(m))e.acceptToken(m);else return e.acceptToken(g,3)}if(three(e,46)){if(t.canShift(m))e.acceptToken(m);else return e.acceptToken(_,3)}let n=0;for(;e.next==32;)n++,e.advance();(n<t.context.depth||n==t.context.depth&&t.context.type==R&&(e.next!=45||!isSep(e.peek(1))))&&e.next!=-1&&!isBreakSpace(e.next)&&e.next!=35&&e.acceptToken(m,-n)}},{contextual:!0}),W=new a((e,t)=>{if(t.context.type==B)e.next==63&&(e.advance(),isSep(e.next)&&e.acceptToken(S));else if(e.next==45)e.advance(),isSep(e.next)&&e.acceptToken(t.context.type==R&&t.context.depth==findColumn(e,e.pos-1)?y:v);else if(e.next==63)e.advance(),isSep(e.next)&&e.acceptToken(t.context.type==z&&t.context.depth==findColumn(e,e.pos-1)?x:b);else{let n=e.pos;for(;;)if(isNonBreakSpace(e.next)){if(e.pos==n)return;e.advance()}else if(e.next==33)readTag(e);else if(e.next==38)readAnchor(e);else if(e.next==42){readAnchor(e);break}else if(e.next==39||e.next==34){if(readQuoted(e,!0))break;return}else if(e.next==91||e.next==123){if(!scanBrackets(e))return;break}else{readPlain(e,!0,!1,0);break}for(;isNonBreakSpace(e.next);)e.advance();if(e.next==58){if(e.pos==n&&t.canShift(N))return;isSep(e.peek(1))&&e.acceptTokenTo(t.context.type==z&&t.context.depth==findColumn(e,n)?w:C,n)}}},{contextual:!0});function uriChar(e){return e>32&&e<127&&e!=34&&e!=37&&e!=44&&e!=60&&e!=62&&e!=92&&e!=94&&e!=96&&e!=123&&e!=124&&e!=125}function hexChar(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function readUriChar(e,t){return e.next==37?(e.advance(),hexChar(e.next)&&e.advance(),hexChar(e.next)&&e.advance(),!0):uriChar(e.next)||t&&e.next==44?(e.advance(),!0):!1}function readTag(e){if(e.advance(),e.next==60){for(e.advance();;)if(!readUriChar(e,!0)){e.next==62&&e.advance();break}}else for(;readUriChar(e,!1););}function readAnchor(e){for(e.advance();!isSep(e.next)&&charTag(e.next)!=`f`;)e.advance()}function readQuoted(e,t){let n=e.next,r=!1,i=e.pos;for(e.advance();;){let a=e.next;if(a<0)break;if(e.advance(),a==n){if(a==39){if(e.next==39)e.advance();else break}else break}else if(a==92&&n==34)e.next>=0&&e.advance();else if(isBreakSpace(a)){if(t)return!1;r=!0}else if(t&&e.pos>=i+1024)return!1}return!r}function scanBrackets(e){for(let t=[],n=e.pos+1024;;)if(e.next==91||e.next==123)t.push(e.next),e.advance();else if(e.next==39||e.next==34){if(!readQuoted(e,!0))return!1}else if(e.next==93||e.next==125){if(t[t.length-1]!=e.next-2)return!1;if(t.pop(),e.advance(),!t.length)return!0}else if(e.next<0||e.pos>n||isBreakSpace(e.next))return!1;else e.advance()}var G=`iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif`;function charTag(e){return e<33?`u`:e>125?`s`:G[e-33]}function isSafe(e,t){let n=charTag(e);return n!=`u`&&!(t&&n==`f`)}function readPlain(e,t,n,r){if(charTag(e.next)==`s`||(e.next==63||e.next==58||e.next==45)&&isSafe(e.peek(1),n))e.advance();else return!1;let i=e.pos;for(;;){let a=e.next,o=0,s=r+1;for(;isSpace(a);){if(isBreakSpace(a)){if(t)return!1;s=0}else s++;a=e.peek(++o)}if(!(a>=0&&(a==58?isSafe(e.peek(o+1),n):a==35?e.peek(o-1)!=32:isSafe(a,n)))||!n&&s<=r||s==0&&!n&&(three(e,45,o)||three(e,46,o)))break;if(t&&charTag(a)==`f`)return!1;for(let t=o;t>=0;t--)e.advance();if(t&&e.pos>i+1024)return!1}return!0}var K=new a((e,t)=>{if(e.next==33)readTag(e),e.acceptToken(k);else if(e.next==38||e.next==42){let t=e.next==38?D:O;readAnchor(e),e.acceptToken(t)}else e.next==39||e.next==34?(readQuoted(e,!1),e.acceptToken(E)):readPlain(e,!1,t.context.type==B,t.context.depth)&&e.acceptToken(T)}),q=new a((e,t)=>{let n=t.context.type==V?t.context.depth:-1,r=e.pos;scan:for(;;){let i=0,a=e.next;for(;a==32;)a=e.peek(++i);if(!i&&(three(e,45,i)||three(e,46,i))||!isBreakSpace(a)&&(n<0&&(n=Math.max(t.context.depth+1,i)),i<n))break;for(;;){if(e.next<0)break scan;let t=isBreakSpace(e.next);if(e.advance(),t)continue scan;r=e.pos}}e.acceptTokenTo(A,r)}),J=n({DirectiveName:t.keyword,DirectiveContent:t.attributeValue,"DirectiveEnd DocEnd":t.meta,QuotedLiteral:t.string,BlockLiteralHeader:t.special(t.string),BlockLiteralContent:t.content,Literal:t.content,"Key/Literal Key/QuotedLiteral":t.definition(t.propertyName),"Anchor Alias":t.labelName,Tag:t.typeName,Comment:t.lineComment,": , -":t.separator,"?":t.punctuation,"[ ]":t.squareBracket,"{ }":t.brace}),Y=o.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5:ROOQR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chor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document`,maxTerm:74,context:H,nodeProps:[[`isolate`,-3,8,9,14,``],[`openedBy`,18,`[`,32,`{`],[`closedBy`,19,`]`,33,`}`]],propSources:[J],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[U,W,K,q,0,1],topRules:{Stream:[0,15]},tokenPrec:0});r(),e(),i();var X=d.define({name:`yaml`,parser:Y.configure({props:[f.add({Stream:e=>{for(let t=e.node.resolve(e.pos,-1);t&&t.to>=e.pos;t=t.parent){if(t.name==`BlockLiteralContent`&&t.from<t.to)return e.baseIndentFor(t);if(t.name==`BlockLiteral`)return e.baseIndentFor(t)+e.unit;if(t.name==`BlockSequence`||t.name==`BlockMapping`)return e.column(t.firstChild.from,1);if(t.name==`QuotedLiteral`)return null;if(t.name==`Literal`){let n=e.column(t.from,1);if(n==e.lineIndent(t.from,1))return n;if(t.to>e.pos)return null}}return null},FlowMapping:l({closing:`}`}),FlowSequence:l({closing:`]`})}),p.add({"FlowMapping FlowSequence":c,"Item Pair BlockLiteral":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:`#`},indentOnInput:/^\s*[\]\}]$/}});function yaml(){return new u(X)}t.meta;export{yaml};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./rolldown-runtime-B8BYMn-z.js";import{a as e,c as t,d as n,m as r,o as i,u as a,v as o}from"./dist-DHrd1AHo.js";import{a as s,i as c,n as l,r as u}from"./dist-CdHwU8_m.js";import{D as d,I as f,N as p,Q as m,_ as ee,a as h,b as te,d as ne,ht as re,i as ie,k as ae,kt as g,mt as _,o as v,p as oe,r as y,s as se,u as ce,vt as le,w as b,y as x}from"./dist-BrFvWnvj.js";import{t as ue}from"./dist-Bb5-DGtZ.js";import{a as de,c as fe,i as pe,l as me,n as he,o as ge,r as _e,s as ve,t as S}from"./dist-_eOLjmnv.js";import{a as ye,i as be,n as xe,o as Se,r as C}from"./dist-yvjzrXXf.js";s(),e();var Ce=148,w=1,we=149,Te=150,T=2,Ee=151,De=3,Oe=4,ke=152,E=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Ae=58,je=40,D=95,Me=91,O=45,Ne=46,Pe=35,Fe=37,Ie=38,Le=92,Re=10,ze=42;function isAlpha(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function isDigit(e){return e>=48&&e<=57}function isHex(e){return isDigit(e)||e>=97&&e<=102||e>=65&&e<=70}var identifierTokens=(e,t,n)=>(r,i)=>{for(let a=!1,o=0,s=0;;s++){let{next:c}=r;if(isAlpha(c)||c==O||c==D||a&&isDigit(c))!a&&(c!=O||s>0)&&(a=!0),o===s&&c==O&&o++,r.advance();else if(c==Le&&r.peek(1)!=Re){if(r.advance(),isHex(r.next)){do r.advance();while(isHex(r.next));r.next==32&&r.advance()}else r.next>-1&&r.advance();a=!0}else{a&&r.acceptToken(o>=2&&i.canShift(T)?t:c==je?n:e);break}}},Be=new l(identifierTokens(we,T,Te),{contextual:!0}),Ve=new l(identifierTokens(Ee,De,Oe),{contextual:!0}),He=new l(e=>{if(E.includes(e.peek(-1))){let{next:t}=e;(isAlpha(t)||t==D||t==Pe||t==Ne||t==ze||t==Me||t==Ae&&isAlpha(e.peek(1))||t==O||t==Ie)&&e.acceptToken(Ce)}}),Ue=new l(e=>{if(!E.includes(e.peek(-1))){let{next:t}=e;if(t==Fe&&(e.advance(),e.acceptToken(w)),isAlpha(t)){do e.advance();while(isAlpha(e.next)||isDigit(e.next));e.acceptToken(w)}}});function hashColor(e){let t=e.length;return(t==4||t==5||t==7||t==9)&&/^#[a-f\d]+$/i.test(e)?ke:-1}var We=i({"AtKeyword import charset namespace keyframes media supports font-feature-values":t.definitionKeyword,"from to selector scope MatchFlag":t.keyword,NamespaceName:t.namespace,KeyframeName:t.labelName,KeyframeRangeName:t.operatorKeyword,TagName:t.tagName,ClassName:t.className,PseudoClassName:t.constant(t.className),IdName:t.labelName,"FeatureName PropertyName":t.propertyName,AttributeName:t.attributeName,NumberLiteral:t.number,KeywordQuery:t.keyword,UnaryQueryOp:t.operatorKeyword,"CallTag ValueName FontName":t.atom,VariableName:t.variableName,Callee:t.operatorKeyword,Unit:t.unit,"UniversalSelector NestingSelector":t.definitionOperator,"MatchOp CompareOp":t.compareOperator,"ChildOp SiblingOp, LogicOp":t.logicOperator,BinOp:t.arithmeticOperator,Important:t.modifier,Comment:t.blockComment,ColorLiteral:t.color,"ParenthesizedContent StringLiteral":t.string,":":t.punctuation,PseudoOp:t.derefOperator,"; , |":t.separator,"( )":t.paren,"[ ]":t.squareBracket,"{ }":t.brace}),Ge={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:88,url:158,"url-prefix":158,domain:158,regexp:158},Ke={__proto__:null,or:102,and:102,not:112,only:112,layer:212},qe={__proto__:null,selector:118,style:124,layer:208},Je={__proto__:null,"@import":204,"@media":216,"@charset":220,"@namespace":224,"@keyframes":230,"@supports":242,"@scope":246,"@font-feature-values":252},Ye={__proto__:null,to:249},Xe=u.deserialize({version:14,states:"MrQYQdOOO$TQdOOP$[O`OOO%XQaO'#CfOOQP'#Ce'#CeO%`QdO'#CgO%eQ`O'#CgO%jQaO'#FrO&eQdO'#CkO'XQaO'#CcO'cQdO'#CnOOQP'#ES'#ESOOQP'#ER'#ERO'nQdO'#ETO'yQdO'#E[O'yQdO'#E_OOQP'#Fr'#FrO)`QhO'#FQOOQS'#Fq'#FqOOQS'#FT'#FTQYQdOOO)gQdO'#EeO*vQhO'#EkO)gQdO'#EmO*}QdO'#EoO+YQdO'#ErO*[QhO'#ExO+bQdO'#EzO+mQdO'#E}O+rQaO'#CfO+yQ`O'#EbO,OQ`O'#GPO,ZQdO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[R#YlQ#`rR%S#`QdOSpP!SU!kdp%PR%P#[Q%]#p[&l%]&r'i'r'x(bQ&r%aQ'i&mQ'r&wQ'x'OR(b(VQ$[!mQ$^!nQ$`!oV%v$[$^$`Q&Q$iR'X&QQ&v%iS'q&v(WR(W'rQ&n%]R'j&nQ&j%YR'h&jQ!RXR#l!RQ&d${R'c&dQ#]oS%Q#]%RR%R#^Q'z'RR(]'zQ$m!yR&U$mQ&]$rR'_&]Q']&[R(R']Q#XlR$y#XQ$P!cR%f$P_cOPdp!S#[%P^XOPdp!S#[%PQ!_^Q!`_Q#h}Q#i!OQ#j!PQ#k!QQ$u#SQ%Y#oR'g&iR%^#pQ!reQ!{g[$X!m!n!o$[$^$`Q${#Zh%[#p%]%a&m&r&w'O'i'r'x(V(bQ%`#uQ%z$cS&b${&dQ&h%WQ'b&cR'|'T]$Z!m!n!o$[$^$`Q!caU!yf!r$gQ#RjQ#x!bS#|!c$PQ$R!dQ%d#}Q%e$OQ%i$SS&O$i&QQ&T$lR'o&uQ#{!bW%s$W%m&z'uQ&t%bQ'w&}Q(U'mR(d(ZQ%u$WQ&y%mQ't&zR(Y'uR%k$SR%Z#oQqPR#n!SQ!zfQ$f!rR%}$g",nodeNames:`⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery ColorLiteral CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector StyleQuery style ParenthesedQuery CallQuery ArgList PropertyName , PropertyName UnaryQuery ParenthesedQuery BinaryQuery ParenthesedQuery ParenthesedQuery StyleFeature PropertyName StyleRange PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles`,maxTerm:176,nodeProps:[[`isolate`,-2,5,38,``],[`openedBy`,23,`(`,30,`[`,33,`{`],[`closedBy`,24,`)`,31,`]`,34,`}`]],propSources:[We],skippedNodes:[0,5,130],repeatNodeCount:17,tokenData:"IO~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu/wuv%Zvw0qwx1Sxy2qyz3Sz{3X{|3r|}8e}!O8v!O!P9e!P!Q9|!Q![:u![!];p!]!^<l!^!_<}!_!`=y!`!a>^!a!b%Z!b!c?_!c!k%Z!k!lAl!l!u%Z!u!vAl!v!}%Z!}#OA}#O#P%Z#P#QB`#Q#R/w#R#]%Z#]#^Bq#^#g%Z#g#hAl#h#o%Z#o#pGU#p#qGg#q#rHO#r#sHa#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`Hx<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!r`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$`~OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&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]||-1},{term:151,get:e=>Ke[e]||-1},{term:4,get:e=>qe[e]||-1},{term:28,get:e=>Je[e]||-1},{term:149,get:e=>Ye[e]||-1}],tokenPrec:2433});o();var k=null;function properties(){if(!k&&typeof document==`object`&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!=`cssText`&&r!=`cssFloat`&&typeof e[r]==`string`&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,e=>`-`+e.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));k=t.sort().map(e=>({type:`property`,label:e,apply:e+`: `}))}return k||[]}var A=`active.after.any-link.autofill.backdrop.before.checked.cue.default.defined.disabled.empty.enabled.file-selector-button.first.first-child.first-letter.first-line.first-of-type.focus.focus-visible.focus-within.fullscreen.has.host.host-context.hover.in-range.indeterminate.invalid.is.lang.last-child.last-of-type.left.link.marker.modal.not.nth-child.nth-last-child.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.part.placeholder.placeholder-shown.read-only.read-write.required.right.root.scope.selection.slotted.target.target-text.valid.visited.where`.split(`.`).map(e=>({type:`class`,label:e})),j=`above.absolute.activeborder.additive.activecaption.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.antialiased.appworkspace.asterisks.attr.auto.auto-flow.avoid.avoid-column.avoid-page.avoid-region.axis-pan.background.backwards.baseline.below.bidi-override.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.button-bevel.buttonface.buttonhighlight.buttonshadow.buttontext.calc.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.clear.clip.close-quote.col-resize.collapse.color.color-burn.color-dodge.column.column-reverse.compact.condensed.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.darken.dashed.decimal.decimal-leading-zero.default.default-button.dense.destination-atop.destination-in.destination-out.destination-over.difference.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic-abegede-gez.ethiopic-halehame-aa-er.ethiopic-halehame-gez.ew-resize.exclusion.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fill-box.fixed.flat.flex.flex-end.flex-start.footnotes.forwards.from.geometricPrecision.graytext.grid.groove.hand.hard-light.help.hidden.hide.higher.highlight.highlighttext.horizontal.hsl.hsla.hue.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-grid.inline-table.inset.inside.intrinsic.invert.italic.justify.keep-all.landscape.large.larger.left.level.lighter.lighten.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-hexadecimal.lower-latin.lower-norwegian.lowercase.ltr.luminosity.manipulation.match.matrix.matrix3d.medium.menu.menutext.message-box.middle.min-intrinsic.mix.monospace.move.multiple.multiple_mask_images.multiply.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.opacity.open-quote.optimizeLegibility.optimizeSpeed.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.perspective.pinch-zoom.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row.row-resize.row-reverse.rtl.run-in.running.s-resize.sans-serif.saturation.scale.scale3d.scaleX.scaleY.scaleZ.screen.scroll.scrollbar.scroll-position.se-resize.self-start.self-end.semi-condensed.semi-expanded.separate.serif.show.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.soft-light.solid.source-atop.source-in.source-out.source-over.space.space-around.space-between.space-evenly.spell-out.square.start.static.status-bar.stretch.stroke.stroke-box.sub.subpixel-antialiased.svg_masks.super.sw-resize.symbolic.symbols.system-ui.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.text.text-bottom.text-top.textarea.textfield.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.to.top.transform.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.unidirectional-pan.unset.up.upper-latin.uppercase.url.var.vertical.vertical-text.view-box.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.wrap.wrap-reverse.x-large.x-small.xor.xx-large.xx-small`.split(`.`).map(e=>({type:`keyword`,label:e})).concat(`aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen`.split(`.`).map(e=>({type:`constant`,label:e}))),Ze=`a.abbr.address.article.aside.b.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.dd.del.details.dfn.dialog.div.dl.dt.em.figcaption.figure.footer.form.header.hgroup.h1.h2.h3.h4.h5.h6.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.meter.nav.ol.output.p.pre.ruby.section.select.small.source.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.tr.u.ul`.split(`.`).map(e=>({type:`type`,label:e})),Qe=[`@charset`,`@color-profile`,`@container`,`@counter-style`,`@font-face`,`@font-feature-values`,`@font-palette-values`,`@import`,`@keyframes`,`@layer`,`@media`,`@namespace`,`@page`,`@position-try`,`@property`,`@scope`,`@starting-style`,`@supports`,`@view-transition`].map(e=>({type:`keyword`,label:e})),M=/^(\w[\w-]*|-\w[\w-]*|)$/,$e=/^-(-[\w-]*)?$/;function isVarArg(e,t){if((e.name==`(`||e.type.isError)&&(e=e.parent||e),e.name!=`ArgList`)return!1;let n=e.parent?.firstChild;return n?.name==`Callee`&&t.sliceString(n.from,n.to)==`var`}var N=new r,et=[`Declaration`];function astTop(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function variableNames(e,t,n){if(t.to-t.from>4096){let r=N.get(t);if(r)return r;let i=[],o=new Set,s=t.cursor(a.IncludeAnonymous);if(s.firstChild())do for(let t of variableNames(e,s.node,n))o.has(t.label)||(o.add(t.label),i.push(t));while(s.nextSibling());return N.set(t,i),i}{let r=[],i=new Set;return t.cursor().iterate(t=>{if(n(t)&&t.matchContext(et)&&t.node.nextSibling?.name==`:`){let n=e.sliceString(t.from,t.to);i.has(n)||(i.add(n),r.push({label:n,type:`variable`}))}}),r}}var defineCSSCompletionSource=e=>t=>{let{state:n,pos:r}=t,i=p(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)==`-`;if(i.name==`PropertyName`||(a||i.name==`TagName`)&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:properties(),validFor:M};if(i.name==`ValueName`)return{from:i.from,options:j,validFor:M};if(i.name==`PseudoClassName`)return{from:i.from,options:A,validFor:M};if(e(i)||(t.explicit||a)&&isVarArg(i,n.doc))return{from:e(i)||a?i.from:r,options:variableNames(n.doc,astTop(i),e),validFor:$e};if(i.name==`TagName`){for(let{parent:e}=i;e;e=e.parent)if(e.name==`Block`)return{from:i.from,options:properties(),validFor:M};return{from:i.from,options:Ze,validFor:M}}if(i.name==`AtKeyword`)return{from:i.from,options:Qe,validFor:M};if(!t.explicit)return null;let o=i.resolve(r),s=o.childBefore(r);return s&&s.name==`:`&&o.name==`PseudoClassSelector`?{from:r,options:A,validFor:M}:s&&s.name==`:`&&o.name==`Declaration`||o.name==`ArgList`?{from:r,options:j,validFor:M}:o.name==`Block`||o.name==`Styles`?{from:r,options:properties(),validFor:M}:null},tt=defineCSSCompletionSource(e=>e.name==`VariableName`),P=y.define({name:`css`,parser:Xe.configure({props:[b.add({Declaration:ne()}),x.add({"Block KeyframeList":ee})]}),languageData:{commentTokens:{block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*\}$/,wordChars:`-`}});function css(){return new v(P,P.data.of({autocomplete:tt}))}var F=[`_blank`,`_self`,`_top`,`_parent`],I=[`ascii`,`utf-8`,`utf-16`,`latin1`,`latin1`],L=[`get`,`post`,`put`,`delete`],R=[`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`],z=[`true`,`false`],B={},nt={a:{attrs:{href:null,ping:null,type:null,media:null,target:F,hreflang:null}},abbr:B,address:B,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:[`default`,`rect`,`circle`,`poly`]}},article:B,aside:B,audio:{attrs:{src:null,mediagroup:null,crossorigin:[`anonymous`,`use-credentials`],preload:[`none`,`metadata`,`auto`],autoplay:[`autoplay`],loop:[`loop`],controls:[`controls`]}},b:B,base:{attrs:{href:null,target:F}},bdi:B,bdo:B,blockquote:{attrs:{cite:null}},body:B,br:B,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:[`autofocus`],disabled:[`autofocus`],formenctype:R,formmethod:L,formnovalidate:[`novalidate`],formtarget:F,type:[`submit`,`reset`,`button`]}},canvas:{attrs:{width:null,height:null}},caption:B,center:B,cite:B,code:B,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:[`command`,`checkbox`,`radio`],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:[`disabled`],checked:[`checked`]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:[`disabled`],multiple:[`multiple`]}},datalist:{attrs:{data:null}},dd:B,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:[`open`]}},dfn:B,div:B,dl:B,dt:B,em:B,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:[`disabled`],form:null,name:null}},figcaption:B,figure:B,footer:B,form:{attrs:{action:null,name:null,"accept-charset":I,autocomplete:[`on`,`off`],enctype:R,method:L,novalidate:[`novalidate`],target:F}},h1:B,h2:B,h3:B,h4:B,h5:B,h6:B,head:{children:[`title`,`base`,`link`,`style`,`meta`,`script`,`noscript`,`command`]},header:B,hgroup:B,hr:B,html:{attrs:{manifest:null}},i:B,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:[`allow-top-navigation`,`allow-same-origin`,`allow-forms`,`allow-scripts`],seamless:[`seamless`]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:[`anonymous`,`use-credentials`]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:[`audio/*`,`video/*`,`image/*`],autocomplete:[`on`,`off`],autofocus:[`autofocus`],checked:[`checked`],disabled:[`disabled`],formenctype:R,formmethod:L,formnovalidate:[`novalidate`],formtarget:F,multiple:[`multiple`],readonly:[`readonly`],required:[`required`],type:[`hidden`,`text`,`search`,`tel`,`url`,`email`,`password`,`datetime`,`date`,`month`,`week`,`time`,`datetime-local`,`number`,`range`,`color`,`checkbox`,`radio`,`file`,`submit`,`image`,`reset`,`button`]}},ins:{attrs:{cite:null,datetime:null}},kbd:B,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:[`autofocus`],disabled:[`disabled`],keytype:[`RSA`]}},label:{attrs:{for:null,form:null}},legend:B,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:[`all`,`16x16`,`16x16 32x32`,`16x16 32x32 64x64`]}},map:{attrs:{name:null}},mark:B,menu:{attrs:{label:null,type:[`list`,`context`,`toolbar`]}},meta:{attrs:{content:null,charset:I,name:[`viewport`,`application-name`,`author`,`description`,`generator`,`keywords`],"http-equiv":[`content-language`,`content-type`,`default-style`,`refresh`]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:B,noscript:B,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:[`typemustmatch`]}},ol:{attrs:{reversed:[`reversed`],start:null,type:[`1`,`a`,`A`,`i`,`I`]},children:[`li`,`script`,`template`,`ul`,`ol`]},optgroup:{attrs:{disabled:[`disabled`],label:null}},option:{attrs:{disabled:[`disabled`],label:null,selected:[`selected`],value:null}},output:{attrs:{for:null,form:null,name:null}},p:B,param:{attrs:{name:null,value:null}},pre:B,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:B,rt:B,ruby:B,samp:B,script:{attrs:{type:[`text/javascript`],src:null,async:[`async`],defer:[`defer`],charset:I}},section:B,select:{attrs:{form:null,name:null,size:null,autofocus:[`autofocus`],disabled:[`disabled`],multiple:[`multiple`]}},slot:{attrs:{name:null}},small:B,source:{attrs:{src:null,type:null,media:null}},span:B,strong:B,style:{attrs:{type:[`text/css`],media:null,scoped:null}},sub:B,summary:B,sup:B,table:B,tbody:B,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:B,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:[`autofocus`],disabled:[`disabled`],readonly:[`readonly`],required:[`required`],wrap:[`soft`,`hard`]}},tfoot:B,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:[`row`,`col`,`rowgroup`,`colgroup`]}},thead:B,time:{attrs:{datetime:null}},title:B,tr:B,track:{attrs:{src:null,label:null,default:null,kind:[`subtitles`,`captions`,`descriptions`,`chapters`,`metadata`],srclang:null}},ul:{children:[`li`,`script`,`template`,`ul`,`ol`]},var:B,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:[`anonymous`,`use-credentials`],preload:[`auto`,`metadata`,`none`],autoplay:[`autoplay`],mediagroup:[`movie`],muted:[`muted`],controls:[`controls`]}},wbr:B},V={accesskey:null,class:null,contenteditable:z,contextmenu:null,dir:[`ltr`,`rtl`,`auto`],draggable:[`true`,`false`,`auto`],dropzone:[`copy`,`move`,`link`,`string:`,`file:`],hidden:[`hidden`],id:null,inert:[`inert`],itemid:null,itemprop:null,itemref:null,itemscope:[`itemscope`],itemtype:null,lang:[`ar`,`bn`,`de`,`en-GB`,`en-US`,`es`,`fr`,`hi`,`id`,`ja`,`pa`,`pt`,`ru`,`tr`,`zh`],spellcheck:z,autocorrect:z,autocapitalize:z,style:null,tabindex:null,title:null,translate:[`yes`,`no`],rel:[`stylesheet`,`alternate`,`author`,`bookmark`,`help`,`license`,`next`,`nofollow`,`noreferrer`,`prefetch`,`prev`,`search`,`tag`],role:`alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer`.split(` `),"aria-activedescendant":null,"aria-atomic":z,"aria-autocomplete":[`inline`,`list`,`both`,`none`],"aria-busy":z,"aria-checked":[`true`,`false`,`mixed`,`undefined`],"aria-controls":null,"aria-describedby":null,"aria-disabled":z,"aria-dropeffect":null,"aria-expanded":[`true`,`false`,`undefined`],"aria-flowto":null,"aria-grabbed":[`true`,`false`,`undefined`],"aria-haspopup":z,"aria-hidden":z,"aria-invalid":[`true`,`false`,`grammar`,`spelling`],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":[`off`,`polite`,`assertive`],"aria-multiline":z,"aria-multiselectable":z,"aria-owns":null,"aria-posinset":null,"aria-pressed":[`true`,`false`,`mixed`,`undefined`],"aria-readonly":z,"aria-relevant":null,"aria-required":z,"aria-selected":[`true`,`false`,`undefined`],"aria-setsize":null,"aria-sort":[`ascending`,`descending`,`none`,`other`],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},H=`beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload`.split(` `).map(e=>`on`+e);for(let e of H)V[e]=null;var Schema=class{constructor(e,t){this.tags={...nt,...e},this.globalAttrs={...V,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};Schema.default=new Schema;function elementName(e,t,n=e.length){if(!t)return``;let r=t.firstChild,i=r&&r.getChild(`TagName`);return i?e.sliceString(i.from,Math.min(i.to,n)):``}function findParentElement(e,t=!1){for(;e;e=e.parent)if(e.name==`Element`){if(t)t=!1;else return e}return null}function allowedChildren(e,t,n){return n.tags[elementName(e,findParentElement(t))]?.children||n.allTags}function openTags(e,t){let n=[];for(let r=findParentElement(t);r&&!r.type.isTop;r=findParentElement(r.parent)){let i=elementName(e,r);if(i&&r.lastChild.name==`CloseTag`)break;i&&n.indexOf(i)<0&&(t.name==`EndTag`||t.from>=r.firstChild.to)&&n.push(i)}return n}var U=/^[:\-\.\w\u00b7-\uffff]*$/;function completeTag(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?``:`>`,o=findParentElement(n,n.name==`StartTag`||n.name==`TagName`);return{from:r,to:i,options:allowedChildren(e.doc,o,t).map(e=>({label:e,type:`type`})).concat(openTags(e.doc,n).map((e,t)=>({label:`/`+e,apply:`/`+e+a,type:`type`,boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function completeCloseTag(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?``:`>`;return{from:n,to:r,options:openTags(e.doc,t).map((e,t)=>({label:e,apply:e+i,type:`type`,boost:99-t})),validFor:U}}function completeStartTag(e,t,n,r){let i=[],a=0;for(let r of allowedChildren(e.doc,n,t))i.push({label:`<`+r,type:`type`});for(let t of openTags(e.doc,n))i.push({label:`</`+t+`>`,type:`type`,boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function completeAttrName(e,t,n,r,i){let a=findParentElement(n),o=a?t.tags[elementName(e.doc,a)]:null,s=o&&o.attrs?Object.keys(o.attrs):[];return{from:r,to:i,options:(o&&o.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames).map(e=>({label:e,type:`property`})),validFor:U}}function completeAttrValue(e,t,n,r,i){let a=n.parent?.getChild(`AttributeName`),o=[],s;if(a){let c=e.sliceDoc(a.from,a.to),l=t.globalAttrs[c];if(!l){let r=findParentElement(n),i=r?t.tags[elementName(e.doc,r)]:null;l=i?.attrs&&i.attrs[c]}if(l){let t=e.sliceDoc(r,i).toLowerCase(),n=`"`,a=`"`;/^['"]/.test(t)?(s=t[0]==`"`?/^[^"]*$/:/^[^']*$/,n=``,a=e.sliceDoc(i,i+1)==t[0]?``:t[0],t=t.slice(1),r++):s=/^[^\s<>='"]*$/;for(let e of l)o.push({label:e,apply:n+e+a,type:`constant`})}}return{from:r,to:i,options:o,validFor:s}}function htmlCompletionFor(e,t){let{state:n,pos:r}=t,i=p(n).resolveInner(r,-1),a=i.resolve(r);for(let e=r,t;a==i&&(t=i.childBefore(e));){let n=t.lastChild;if(!n||!n.type.isError||n.from<n.to)break;a=i=t,e=n.from}return i.name==`TagName`?i.parent&&/CloseTag$/.test(i.parent.name)?completeCloseTag(n,i,i.from,r):completeTag(n,e,i,i.from,r):i.name==`StartTag`||i.name==`IncompleteTag`?completeTag(n,e,i,r,r):i.name==`StartCloseTag`||i.name==`IncompleteCloseTag`?completeCloseTag(n,i,r,r):i.name==`OpenTag`||i.name==`SelfClosingTag`||i.name==`AttributeName`?completeAttrName(n,e,i,i.name==`AttributeName`?i.from:r,r):i.name==`Is`||i.name==`AttributeValue`||i.name==`UnquotedAttributeValue`?completeAttrValue(n,e,i,i.name==`Is`?r:i.from,r):t.explicit&&(a.name==`Element`||a.name==`Text`||a.name==`Document`)?completeStartTag(n,e,i,r):null}function htmlCompletionSource(e){return htmlCompletionFor(Schema.default,e)}function htmlCompletionSourceWith(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new Schema(t,n):Schema.default;return e=>htmlCompletionFor(r,e)}var rt=C.parser.configure({top:`SingleExpression`}),W=[{tag:`script`,attrs:e=>e.type==`text/typescript`||e.lang==`ts`,parser:Se.parser},{tag:`script`,attrs:e=>e.type==`text/babel`||e.type==`text/jsx`,parser:be.parser},{tag:`script`,attrs:e=>e.type==`text/typescript-jsx`,parser:ye.parser},{tag:`script`,attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:rt},{tag:`script`,attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:C.parser},{tag:`style`,attrs(e){return(!e.lang||e.lang==`css`)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:P.parser}],G=[{name:`style`,parser:P.parser.configure({top:`Styles`})}].concat(H.map(e=>({name:e,parser:C.parser}))),K=y.define({name:`html`,parser:he.configure({props:[b.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t=null,n;for(let n=e.node;;){let e=n.lastChild;if(!e||e.name!=`Element`||e.to!=n.to)break;t=n=e}return t&&!((n=t.lastChild)&&(n.name==`CloseTag`||n.name==`SelfClosingTag`))?e.lineIndent(t.from)+e.unit:null}}),x.add({Element(e){let t=e.firstChild,n=e.lastChild;return!t||t.name!=`OpenTag`?null:{from:t.to,to:n.name==`CloseTag`?n.from:e.to}}}),ce.add({"OpenTag CloseTag":e=>e.getChild(`TagName`)})]}),languageData:{commentTokens:{block:{open:`<!--`,close:`-->`}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:`-_`}}),q=K.configure({wrap:S(W,G)});function html(e={}){let t=``,n;e.matchClosingTags===!1&&(t=`noMatch`),e.selfClosingTags===!0&&(t=(t?t+` `:``)+`selfClosing`),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=S((e.nestedLanguages||[]).concat(W),(e.nestedAttributes||[]).concat(G)));let r=n?K.configure({wrap:n,dialect:t}):t?q.configure({dialect:t}):q;return new v(r,[q.data.of({autocomplete:htmlCompletionSourceWith(e)}),e.autoCloseTags===!1?[]:it,xe().support,css().support])}var J=new Set(`area base br col command embed frame hr img input keygen link meta param source track wbr menuitem`.split(` `));function isClosed(e,t,n){for(;;){if(t.lastChild?.name!=`CloseTag`)return!1;let r=t.parent;if(!r||elementName(e,r)!=n)return!0;t=r}}var it=f.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!q.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let t=o.doc.sliceString(e.from-1,e.to)==r,{head:n}=e,i=p(o).resolveInner(n,-1),a;if(t&&r==`>`&&i.name==`EndTag`){let t=i.parent;if((a=elementName(o.doc,t.parent,n))&&!J.has(a)&&!isClosed(o.doc,t.parent,a))return{range:e,changes:{from:n,to:n+ +(o.doc.sliceString(n,n+1)===`>`),insert:`</${a}>`}}}else if(t&&r==`/`&&i.name==`IncompleteCloseTag`){let e=i.parent;if(i.from==n-2&&e.lastChild?.name!=`CloseTag`&&(a=elementName(o.doc,e,n))&&!J.has(a)){let e=n+ +(o.doc.sliceString(n,n+1)===`>`),t=`${a}>`;return{range:_.cursor(n+t.length,-1),changes:{from:n,to:e,insert:t}}}}return{range:e}});return!s.changes.empty&&(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)});o();var Y=oe({commentTokens:{block:{open:`<!--`,close:`-->`}}}),X=new n,at=me.configure({props:[x.add(e=>!e.is(`Block`)||e.is(`Document`)||isHeading(e)!=null||isList(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),X.add(isHeading),b.add({Document:()=>null}),ae.add({Document:Y})]});function isHeading(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function isList(e){return e.name==`OrderedList`||e.name==`BulletList`}function findSectionEnd(e,t){let n=e;for(;;){let e=n.nextSibling,r;if(!e||(r=isHeading(e.type))!=null&&r<=t)break;n=e}return n.to}var ot=te.of((e,t,n)=>{for(let r=p(e).resolveInner(n,-1);r&&!(r.from<t);r=r.parent){let e=r.type.prop(X);if(e==null)continue;let t=findSectionEnd(r,e);if(t>n)return{from:n,to:t}}return null});function mkLang(e){return new ie(Y,e,[],`markdown`)}var st=mkLang(at),Z=mkLang(at.configure([pe,ge,ve,_e,{props:[x.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]));function getCodeParser(e,t){return n=>{if(n&&e){let t=null;if(n=/\S*/.exec(n)[0],t=typeof e==`function`?e(n):h.matchLanguageName(e,n,!0),t instanceof h)return t.support?t.support.language.parser:se.getSkippingParser(t.load());if(t)return t.parser}return t?t.parser:null}}var Context=class{constructor(e,t,n,r,i,a,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=a,this.item=o}blank(e,t=!0){let n=this.spaceBefore+(this.node.name==`Blockquote`?`>`:``);if(e!=null){for(;n.length<e;)n+=` `;return n}for(let e=this.to-this.from-n.length-this.spaceAfter.length;e>0;e--)n+=` `;return n+(t?this.spaceAfter:``)}marker(e,t){let n=this.node.name==`OrderedList`?String(+itemNumber(this.item,e)[2]+t):``;return this.spaceBefore+n+this.type+this.spaceAfter}};function getContext(e,t){let n=[],r=[];for(let t=e;t;t=t.parent){if(t.name==`FencedCode`)return r;(t.name==`ListItem`||t.name==`Blockquote`)&&n.push(t)}for(let e=n.length-1;e>=0;e--){let i=n[e],a,o=t.lineAt(i.from),s=i.from-o.from;if(i.name==`Blockquote`&&(a=/^ *>( ?)/.exec(o.text.slice(s))))r.push(new Context(i,s,s+a[0].length,``,a[1],`>`,null));else if(i.name==`ListItem`&&i.parent.name==`OrderedList`&&(a=/^( *)\d+([.)])( *)/.exec(o.text.slice(s)))){let e=a[3],t=a[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),r.push(new Context(i.parent,s,s+t,a[1],e,a[2],i))}else if(i.name==`ListItem`&&i.parent.name==`BulletList`&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(s)))){let e=a[4],t=a[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=a[2];a[3]&&(n+=a[3].replace(/[xX]/,` `)),r.push(new Context(i.parent,s,s+t,a[1],e,n,i))}}return r}function itemNumber(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function renumberList(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name==`ListItem`){let e=itemNumber(a,t),o=+e[2];if(i>=0){if(o!=i+1)return;n.push({from:a.from+e[1].length,to:a.from+e[0].length,insert:String(i+2+r)})}i=o}let e=a.nextSibling;if(!e)break;a=e}}function normalizeIndent(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(d)!=` `)return e;let r=g(e,4,n),i=``;for(let e=r;e>0;)e>=4?(i+=` `,e-=4):(i+=` `,e--);return i+e.slice(n)}var insertNewlineContinueMarkupCommand=(e={})=>({state:t,dispatch:n})=>{let r=p(t),{doc:i}=t,a=null,o=t.changeByRange(n=>{if(!n.empty||!Z.isActiveAt(t,n.from,-1)&&!Z.isActiveAt(t,n.from,1))return a={range:n};let o=n.from,s=i.lineAt(o),c=getContext(r.resolveInner(o,-1),i);for(;c.length&&c[c.length-1].from>o-s.from;)c.pop();if(!c.length)return a={range:n};let l=c[c.length-1];if(l.to-l.spaceAfter.length>o-s.from)return a={range:n};let u=o>=l.to-l.spaceAfter.length&&!/\S/.test(s.text.slice(l.to));if(l.item&&u){if(l.item.from<s.from&&!/^[\s>]*$/.test(s.text.slice(0,l.to)))return a={range:n};let r=l.node.firstChild,u=l.node.getChild(`ListItem`,`ListItem`);if(r.to>=o||u&&u.to<o||s.from>0&&!/[^\s>]/.test(i.lineAt(s.from-1).text)||e.nonTightLists===!1){let e=c.length>1?c[c.length-2]:null,t,n=``;e&&e.item?(t=s.from+e.from,n=e.marker(i,1)):t=s.from+(e?e.to:0);let r=[{from:t,to:o,insert:n}];return l.node.name==`OrderedList`&&renumberList(l.item,i,r,-2),e&&e.node.name==`OrderedList`&&renumberList(e.item,i,r),{range:_.cursor(t+n.length),changes:r}}{let e=blankLine(c,t,s);return{range:_.cursor(o+e.length+1),changes:{from:s.from,insert:e+t.lineBreak}}}}if(l.node.name==`Blockquote`&&u&&s.from){let e=i.lineAt(s.from-1),r=/>\s*$/.exec(e.text);if(r&&r.index==l.from){let i=t.changes([{from:e.from+r.index,to:e.to},{from:s.from+l.from,to:s.to}]);return{range:n.map(i),changes:i}}}let d=[];l.node.name==`OrderedList`&&renumberList(l.item,i,d);let f=l.item&&l.item.from<s.from,p=``;if(!f||/^[\s\d.)\-+*>]*/.exec(s.text)[0].length>=l.to)for(let e=0,t=c.length-1;e<=t;e++)p+=e==t&&!f?c[e].marker(i,1):c[e].blank(e<t?g(s.text,4,c[e+1].from)-p.length:null);let m=o;for(;m>s.from&&/\s/.test(s.text.charAt(m-s.from-1));)m--;return p=normalizeIndent(p,t),nonTightList(l.node,t.doc)&&(p=blankLine(c,t,s)+t.lineBreak+p),d.push({from:m,to:o,insert:t.lineBreak+p}),{range:_.cursor(m+p.length+1),changes:d}});return!a&&(n(t.update(o,{scrollIntoView:!0,userEvent:`input`})),!0)},ct=insertNewlineContinueMarkupCommand();function isMark(e){return e.name==`QuoteMark`||e.name==`ListMark`}function nonTightList(e,t){if(e.name!=`OrderedList`&&e.name!=`BulletList`)return!1;let n=e.firstChild,r=e.getChild(`ListItem`,`ListItem`);if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),o=/^[\s>]*$/.test(i.text);return i.number+ +!o<a.number}function blankLine(e,t,n){let r=``;for(let t=0,i=e.length-2;t<=i;t++)r+=e[t].blank(t<i?g(n.text,4,e[t+1].from)-r.length:null,t<i);return normalizeIndent(r,t)}function contextNodeForDelete(e,t){let n=e.resolveInner(t,-1),r=t;isMark(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(isMark(e))r=e.from;else if(e.name==`OrderedList`||e.name==`BulletList`)n=e.lastChild,r=n.to;else break;return n}var deleteMarkupBackward=({state:e,dispatch:t})=>{let n=p(e),r=null,i=e.changeByRange(t=>{let i=t.from,{doc:a}=e;if(t.empty&&Z.isActiveAt(e,t.from)){let t=a.lineAt(i),r=getContext(contextNodeForDelete(n,i),a);if(r.length){let n=r[r.length-1],a=n.to-n.spaceAfter.length+ +!!n.spaceAfter;if(i-t.from>a&&!/\S/.test(t.text.slice(a,i-t.from)))return{range:_.cursor(t.from+a),changes:{from:t.from+a,to:i}};if(i-t.from==a&&(n.item&&t.from<=n.item.from||/^[\s>]*$/.test(t.text.slice(0,n.to)))){let r=t.from+n.from;if(n.item&&n.node.from<n.item.from&&/\S/.test(t.text.slice(n.from,n.to))){let i=n.blank(g(t.text,4,n.to)-g(t.text,4,n.from));return r==t.from&&(i=normalizeIndent(i,e)),{range:_.cursor(r+i.length),changes:{from:r,to:t.from+n.to,insert:i}}}if(r<i)return{range:_.cursor(r),changes:{from:r,to:i}}}}}return r={range:t}});return!r&&(t(e.update(i,{scrollIntoView:!0,userEvent:`delete`})),!0)},lt=[{key:`Enter`,run:ct},{key:`Backspace`,run:deleteMarkupBackward}],Q=html({matchClosingTags:!1});function markdown(e={}){let{codeLanguages:t,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:i}=st,completeHTMLTags:a=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=Q}=e;if(!(i instanceof de))throw RangeError("Base parser provided to `markdown` should be a Markdown parser");let c=e.extensions?[e.extensions]:[],l=[s.support,ot],u;o&&l.push(dt),n instanceof v?(l.push(n.support),u=n.language):n&&(u=n);let d=t||u?getCodeParser(t,u):void 0;c.push(fe({codeParser:d,htmlParser:s.language.parser})),r&&l.push(le.high(m.of(lt)));let f=mkLang(i.configure(c));return a&&l.push(f.data.of({autocomplete:htmlTagCompletion})),new v(f,l)}function htmlTagCompletion(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=p(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if(i.name==`CodeBlock`||i.name==`FencedCode`||i.name==`ProcessingInstructionBlock`||i.name==`CommentBlock`||i.name==`Link`||i.name==`Image`)return null;i=i.parent}return{from:n-r[0].length,to:n,options:htmlTagCompletions(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var $=null;function htmlTagCompletions(){if($)return $;let e=htmlCompletionSource(new ue(re.create({extensions:Q}),0,!0));return $=e?e.options:[]}var ut=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,dt=f.domEventHandlers({paste:(e,t)=>{let{main:n}=t.state.selection;if(n.empty)return!1;let r=e.clipboardData?.getData(`text/plain`);if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r=`https://`+r),!Z.isActiveAt(t.state,n.from,1)))return!1;let i=p(t.state),a=!1;return i.iterate({from:n.from,to:n.to,enter:e=>{(e.from>n.from||ut.test(e.name))&&(a=!0)},leave:e=>{e.to<n.to&&(a=!0)}}),!a&&(t.dispatch({changes:[{from:n.from,insert:`[`},{from:n.to,insert:`](${r})`}],userEvent:`input.paste`,scrollIntoView:!0}),!0)}});export{markdown};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-B8BYMn-z.js";import{m as t,p as n,v as r}from"./dist-CRJyslwo.js";import{a as i,c as a,o}from"./dist-DHrd1AHo.js";import{a as s,n as c,r as l,t as u}from"./dist-CdHwU8_m.js";var d=globalThis.Temporal,expectedPositive=(e,t)=>`Non-positive ${e}: ${t}`,expectedFinite=(e,t)=>`Non-finite ${e}: ${t}`,forbiddenBigIntToNumber=e=>`Cannot convert bigint to ${e}`,f=`Invalid object`,numberOutOfRange=(e,t,n,r)=>p(e,t)+`; must be between ${n}-${r}`,p=e((e,t)=>`Invalid ${e}: ${t}`,`invalidEntity`),m=1e3,h=1e6,g=1e9,ee=6e10,te=36e11;function normalizeOptions(e){return e===void 0?Object.create(null):requireObjectLike(e)}function toFiniteNumber(e,t=`number`){if(typeof e==`bigint`)throw TypeError(forbiddenBigIntToNumber(t));if(e=Number(e),!Number.isFinite(e))throw RangeError(expectedFinite(t,e));return e}function toIntegerWithTrunc(e,t){return Math.trunc(toFiniteNumber(e,t))||0}function toPositiveIntegerWithTruncation(e,t){return requireNumberIsPositive(toIntegerWithTrunc(e,t),t)}function requireNumberIsPositive(e,t=`number`){if(e<=0)throw RangeError(expectedPositive(t,e));return e}function constrainToRange$1(e,t,n){return Math.min(Math.max(e,t),n)}e(constrainToRange$1,`constrainToRange`);function isObjectLike$1(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}e(isObjectLike$1,`isObjectLike`);function requireObjectLike(e){if(!isObjectLike$1(e))throw TypeError(f);return e}function normalizeOptionsOrString(e,t){return typeof e==`string`?((e,t)=>{let n=Object.create(null);return n[e]=t,n})(t,e):requireObjectLike(e)}var _=`smallestUnit`,ne={constrain:0,reject:1},v={compatible:0,reject:1,earlier:2,later:3},re={reject:0,use:1,prefer:2,ignore:3},ie={auto:0,never:1,critical:2,always:3},ae={auto:0,never:1,critical:2},oe={auto:0,never:1},se={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},ce=[Math.floor,roundHalfFloor,Math.ceil,roundHalfCeil,Math.trunc,roundHalfTrunc,roundExpand,roundHalfExpand,roundHalfEven],le={previous:-1,next:1};function coerceRoundingIncInteger(e){let t=e.roundingIncrement;return t===void 0?1:toIntegerWithTrunc(t,`roundingIncrement`)}function coerceFractionalSecondDigits(e){let t=e.fractionalSecondDigits;if(t!==void 0){if(typeof t!=`number`){if(toString$1(t)===`auto`)return;throwRangeError(ye(`fractionalSecondDigits`,t))}t=clampEntity(`fractionalSecondDigits`,Math.floor(t),0,9,1)}return t}function coerceUnitOption(e,t,n=0,r){let i=t[e];if(i===void 0)return r?n:void 0;if(i=toString$1(i),i===`auto`)return r?n:null;let a=Ee[i];return a===void 0&&(a=H.indexOf(i)),a<0&&throwRangeError(invalidChoice(e,i,Ee)),a}function coerceChoiceOption(e,t,n,r=0){let i=n[e];if(i===void 0)return r;let a=toString$1(i),o=t[a];return o===void 0&&throwRangeError(invalidChoice(e,a,t)),o}var y=bindArgs(coerceUnitOption,_),ue=bindArgs(coerceUnitOption,`largestUnit`),de=bindArgs(coerceUnitOption,`unit`),fe=bindArgs(coerceChoiceOption,`overflow`,ne),pe=bindArgs(coerceChoiceOption,`disambiguation`,v),me=bindArgs(coerceChoiceOption,`offset`,re),he=bindArgs(coerceChoiceOption,`calendarName`,ie),ge=bindArgs(coerceChoiceOption,`timeZoneName`,ae),_e=bindArgs(coerceChoiceOption,`offset`,oe),b=bindArgs(coerceChoiceOption,`roundingMode`,se),ve=bindArgs(coerceChoiceOption,`direction`,le);function validateRoundingInc(e,t,n,r){let i=r?k:A[t+1];if(i){let n=A[t];i%((e=clampEntity(`roundingIncrement`,e,1,i/n-+!r,1))*n)&&throwRangeError(ye(`roundingIncrement`,e))}else e=clampEntity(`roundingIncrement`,e,1,n?10**9:1,1);return e}function validateUnitRange(e,t,n,r){return t!=null&&clampEntity(e,t,n,r,1,De),t}function checkLargestSmallestUnit(e,t){t>e&&throwRangeError(`smallestUnit > largestUnit`)}function refineDiffOptions(e,t,n,r=9,i=0,a=4){t=normalizeOptions(t);let o=ue(t,i),s=coerceRoundingIncInteger(t),c=b(t,a),l=y(t,i,1);return o=validateUnitRange(`largestUnit`,o,i,r),l=validateUnitRange(_,l,i,r),o==null?o=Math.max(n,l):checkLargestSmallestUnit(o,l),s=validateRoundingInc(s,l,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[o,l,s,c]}function refineDurationRoundOptions(e,t,n){e=normalizeOptionsOrString(e,_);let r=ue(e),i=n(e.relativeTo),a=coerceRoundingIncInteger(e),o=b(e,7),s=y(e);return r===void 0&&s===void 0&&throwRangeError(`Required smallestUnit or largestUnit`),s??=0,r??=Math.max(s,t),checkLargestSmallestUnit(r,s),a=validateRoundingInc(a,s,1),a>1&&s>5&&r!==s&&throwRangeError(`For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit`),[r,s,a,o,i]}function refineRoundingOptions(e,t=6,n){let r=coerceRoundingIncInteger(e=normalizeOptionsOrString(e,_)),i=b(e,7),a=y(e);return a=requirePropDefined(_,a),a=validateUnitRange(_,a,0,t),r=validateRoundingInc(r,a,void 0,n),[a,r,i]}function refineTotalOptions(e,t){let n=t((e=normalizeOptionsOrString(e,`unit`)).relativeTo),r=de(e);return r=requirePropDefined(`unit`,r),[r,n]}function refineOverflowOptions(e){return e===void 0?0:fe(requireObjectLike(e))}function refineZonedFieldOptions(e,t=0){e=normalizeOptions(e);let n=pe(e),r=me(e,t);return[fe(e),r,n]}function refineEpochDisambigOptions(e){return pe(normalizeOptions(e))}function refineTimeDisplayTuple(e,t=4){let n=coerceFractionalSecondDigits(e);return[b(e,4),...resolveSmallestUnitAndSubsecDigits(validateUnitRange(_,y(e),0,t),n)]}function refineDateTimeDisplayOptions(e){return e=normalizeOptions(e),[he(e),...refineTimeDisplayTuple(e)]}function refineDateDisplayOptions(e){return he(normalizeOptions(e))}function refineTimeDisplayOptions(e,t){return refineTimeDisplayTuple(normalizeOptions(e),t)}function refineZonedDateTimeDisplayOptions(e){e=normalizeOptions(e);let t=he(e),n=coerceFractionalSecondDigits(e),r=_e(e),i=b(e,4),a=y(e);return[t,ge(e),r,i,...resolveSmallestUnitAndSubsecDigits(validateUnitRange(_,a,0,4),n)]}function refineInstantDisplayOptions(e){let t=coerceFractionalSecondDigits(e=normalizeOptions(e)),n=b(e,4),r=y(e);return[e.timeZone,n,...resolveSmallestUnitAndSubsecDigits(validateUnitRange(_,r,0,4),t)]}function resolveSmallestUnitAndSubsecDigits(e,t){return e==null?[t===void 0?1:10**(9-t),t]:[A[e],e<4?9-3*e:-1]}function refineDirectionOptions(e){let t=ve(normalizeOptionsOrString(e,`direction`),0);return t||throwRangeError(ye(`direction`,t)),t}var ye=p,missingField=e=>`Missing ${e}`,noValidFields=e=>`No valid fields: `+e.join(),invalidChoice=(e,t,n)=>p(e,t)+`; must be `+Object.keys(n).join(),be=`Cannot use valueOf`,xe=`Invalid calling context`,missingYear=e=>`Missing year`+(e?`/era/eraYear`:``),x=`Invalid leap month`,invalidCalendar=e=>p(`Calendar`,e),exoticCalendarRequired=(e,t)=>`Unknown calendar ${e}; might need ${t}`,invalidTimeZone=e=>p(`TimeZone`,e),failedParse=e=>`Cannot parse: ${e}`,invalidSubstring=e=>`Invalid substring: ${e}`,Se=constrainToRange$1,S=isObjectLike$1;function throwRangeError(e){throw RangeError(e)}function throwTypeError(e){throw TypeError(e)}function clampProp(e,t,n,r,i){return clampEntity(t,((e,t)=>{let n=e[t];return n===void 0&&throwTypeError(missingField(t)),n})(e,t),n,r,i)}function clampEntity(e,t,n,r,i,a){let o=Se(t,n,r);return i&&t!==o&&throwRangeError(((e,t,n,r,i)=>i?numberOutOfRange(e,i[t],i[n],i[r]):numberOutOfRange(e,t,n,r))(e,t,n,r,a)),o}function memoize(e,t=Map){let n=new t;return(t,...r)=>{if(n.has(t))return n.get(t);let i=e(t,...r);return n.set(t,i),i}}var createNameDescriptors=e=>createPropDescriptors({name:e},1),createPropDescriptors=(e,t)=>mapProps(e=>({value:e,configurable:1,writable:!t}),e),createStringTagDescriptors=e=>({[Symbol.toStringTag]:{value:e,configurable:1}});function mapProps(e,t){let n={};for(let r in t)n[r]=e(t[r],r);return n}function zipPropsConst(e,t){let n={};for(let r of e)n[r]=t;return n}function createPropGetters(e){let t={};for(let n of e)t[n]=e=>e[n];return t}function pluckProps(e,t,n=Object.create(null)){for(let r of e)n[r]=t[r];return n}function allPropsEqual(e,t,n){for(let r of e)if(t[r]!==n[r])return 0;return 1}function zeroOutProps(e,t,n){let r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function bindArgs(e,...t){return(...n)=>e(...t,...n)}function noop(){}function capitalize(e){return e[0].toUpperCase()+e.substring(1)}function sortStrings(...e){return[].concat(...e).sort()}function createRegExp(e){return RegExp(`^${e}$`,`i`)}function parseSubsecNano(e){return parseInt(e.padEnd(9,`0`))}function parseSign(e){return e&&e!==`+`?-1:1}function parseInt0(e){return e===void 0?0:parseInt(e)}function padNumber(e,t){return String(t).padStart(e,`0`)}var C=bindArgs(padNumber,2);function compareNumbers(e,t){return Math.sign(e-t)}function compareBigInts(e,t){return e<t?-1:+(e>t)}function divFloorBigInt(e,t){let n=e/t;return e%t<0n?n-1n:n}function divModFloorBigInt(e,t){let n=divFloorBigInt(e,t);return[n,e-n*t]}function divModFloor(e,t){return[Math.floor(e/t),modFloor(e,t)]}function modFloor(e,t){return(e%t+t)%t}function divTrunc(e,t){return Math.trunc(e/t)||0}function modTrunc(e,t){return e%t||0}function roundExpand(e){return e<0?Math.floor(e):Math.ceil(e)}function fabricateNearHalfFraction(e,t=1){return t*(.5+e/5)}function roundHalfExpand(e){return Math.sign(e)*Math.round(Math.abs(e))||0}function roundHalfFloor(e){return hasHalf(e)?Math.floor(e):Math.round(e)}function roundHalfCeil(e){return hasHalf(e)?Math.ceil(e):Math.round(e)}function roundHalfTrunc(e){return hasHalf(e)?Math.trunc(e)||0:Math.round(e)}function roundHalfEven(e){return hasHalf(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)}function hasHalf(e){return Math.abs(e%1)===.5}var Ce=`iso8601`,we={bce:-1,ce:0};function normalizeEraName(e){let t=e.normalize(`NFD`).toLowerCase().replace(/[^a-z0-9]/g,``);return t===`bc`||t===`b`?`bce`:t===`ad`||t===`a`?`ce`:t}function getCalendarSlotId(e){return e===void 0?`iso8601`:e===0?`gregory`:e.id}var Te=/^M(\d{2})(L?)$/;function parseMonthCode(e){let t=Te.exec(e);return t||throwRangeError((e=>`Invalid monthCode: ${e}`)(e)),[parseInt(t[1]),!!t[2]]}function formatMonthCode(e,t){return`M`+C(e)+(t?`L`:``)}function monthCodeNumberToMonth(e,t,n){return e+(t||n&&e>=n?1:0)}var Ee={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},De=Object.keys(Ee),w=m,T=h,E=g,D=ee,O=te,k=864e11,A=[1,w,T,E,D,O,k],Oe=BigInt(w),j=BigInt(T),M=BigInt(E),ke=BigInt(D),Ae=BigInt(O),N=BigInt(k);function divideBigNanoToExactNumber(e,t){let n=Number(e/N),r=Number(e%N);return k/t*n+(Math.trunc(r/t)+r%t/t)}var P=De.slice(0,6),je=createPropGetters(P),Me=[`year`],F=[`day`],Ne=[`day`,`month`,`year`],Pe=[`offset`],Fe=[`timeZone`],I=[`era`,`eraYear`],Ie=[`era`,`eraYear`,`year`],Le=[`month`,`monthCode`],Re=[`day`,`month`,`monthCode`],ze=sortStrings(P),Be=sortStrings(I,Me),L=sortStrings(Le,Me),Ve=sortStrings(I,L),R=sortStrings([`monthCode`],Me),He=sortStrings(I,R),Ue=sortStrings(F,[`monthCode`]),z=sortStrings(F,L),B=sortStrings(F,I,L),We=sortStrings(z,P),Ge=sortStrings(B,P),Ke=sortStrings(z,P,Pe),qe=sortStrings(B,P,Pe),Je=sortStrings(z,P,Pe,Fe),Ye=sortStrings(B,P,Pe,Fe),Xe=sortStrings(F,R),Ze=sortStrings(F,I,R),V=zipPropsConst(P,0);function validateTimeFields(e){return constrainTimeFields(e,1),e}var Qe={hour:23,minute:59,second:59};function constrainTimeFields(e,t){let n={};for(let r of P)n[r]=clampEntity(r,e[r],0,Qe[r]||999,t);return n}function timeFieldsToNano(e){return timeFieldsToSec(e)*E+timeFieldsToSubsecNano(e)}function timeFieldsToMilli(e){return 1e3*timeFieldsToSec(e)+e.millisecond}function timeFieldsToSec(e){return 3600*e.hour+60*e.minute+e.second}function timeFieldsToSubsecNano(e){return e.millisecond*T+e.microsecond*w+e.nanosecond}function nanoToTimeAndDay(e){let[t,n]=divModFloor(e,k);return[nanoToTimeFields(n),t]}function nanoToTimeFields(e){let[t,n]=divModFloor(e,T),[r,i]=divModFloor(n,w);return milliToTimeFields(t,r,i)}function milliToTimeFields(e,t=0,n=0){let[r,i]=divModFloor(e,36e5),[a,o]=divModFloor(i,6e4),[s,c]=divModFloor(o,1e3);return{hour:r,minute:a,second:s,millisecond:c,microsecond:t,nanosecond:n}}function epochNanoToSecMod(e){let[t,n]=divModFloorBigInt(e,M);return[Number(t),Number(n)]}function epochNanoToMilli(e){return Number(divFloorBigInt(e,j))}function isoDateTimeToEpochNano(e){return isoDateToEpochNano(e)+BigInt(timeFieldsToNano(e))}function isoDateTimeToEpochMilli(e){return isoDateToEpochMilli(e)+timeFieldsToMilli(e)}function isoDateToEpochNano(e){return BigInt(isoDateToEpochDays(e))*N}function isoDateToEpochMilli(e){return 864e5*isoDateToEpochDays(e)}function isoDateToEpochDays(e){return isoPartsToEpochDays(e.year,e.month,e.day)}function isoPartsToEpochDays(e,t=1,n=1){let r=t-1;return e+=Math.floor(r/12),t=modFloor(r,12),Date.UTC(e%400-400,t,0)/864e5+146097*(divTrunc(e,400)+1)+n}function epochNanoToIsoDateTime(e){let[t,n]=divModFloorBigInt(e,N);return{...epochDaysToIsoDate(Number(t)),...nanoToTimeFields(Number(n))}}function epochDaysToIsoDate(e){let t=new Date(864e5*modFloor(e,146097));return{year:t.getUTCFullYear()+400*Math.floor(e/146097),month:t.getUTCMonth()+1,day:t.getUTCDate()}}function computeIsoMonthCodeParts(e){return[e,0]}function computeIsoYearMonthFieldsForMonthDay(e,t){if(!t)return{year:1972,month:e}}function computeIsoFieldsFromParts(e,t,n){return{year:e,month:t,day:n}}function computeIsoDaysInMonth(e,t){switch(t){case 2:return computeIsoInLeapYear(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function computeIsoDaysInYear(e){return computeIsoInLeapYear(e)?366:365}function computeIsoInLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}function addIsoMonths(e,t,n){return e+=divTrunc(n,12),(t+=modTrunc(n,12))<1?(e--,t+=12):t>12&&(e++,t-=12),{year:e,month:t}}function diffIsoMonthSlots(e,t,n,r){return 12*(n-e)+r-t}function computeIsoDayOfWeek(e){return modFloor(isoPartsToEpochDays(e.year,e.month,e.day)+4,7)||7}function computeIsoDayOfYear(e){return isoPartsToEpochDays(e.year,e.month,e.day)-isoPartsToEpochDays(e.year)+1}function computeIsoWeekFields(e){let t=e.year,n=Math.floor((computeIsoDayOfYear(e)-computeIsoDayOfWeek(e)+10)/7),r=computeIsoWeeksInYear(t);return n<1?n=r=computeIsoWeeksInYear(--t):n>r&&(n=1,r=computeIsoWeeksInYear(++t)),{weekOfYear:n,yearOfWeek:t,De:r}}function computeIsoWeeksInYear(e){let t=computeIsoDayOfWeek({year:e,month:1,day:1});return t===4||t===3&&computeIsoInLeapYear(e)?53:52}function computeGregoryEraFields({year:e}){return e<1?{era:`bce`,eraYear:1-e}:{era:`ce`,eraYear:e}}function validateIsoDateTimeFields(e){return validateIsoDateFields(e),validateTimeFields(e)}function validateIsoDateFields(e){return constrainIsoDateFields(e,1),e}function isIsoDateFieldsValid(e){return allPropsEqual(Ne,e,constrainIsoDateFields(e))}function constrainIsoDateFields(e,t){let{year:n}=e,r=clampProp(e,`month`,1,12,t);return{year:n,month:r,day:clampProp(e,`day`,1,computeIsoDaysInMonth(n,r),t)}}function computeCalendarDateFields(e,t){return e?e.de(t):t}function computeCalendarMonthCodeParts(e,t,n){return e?e.N(t,n):computeIsoMonthCodeParts(n)}function computeCalendarEraFields(e,t){return e===0?computeGregoryEraFields(t):e&&e.h?.(t)||{}}function computeCalendarIsoFieldsFromParts(e,t,n,r){return e?e.fe(t,n,r):computeIsoFieldsFromParts(t,n,r)}function computeCalendarMonthsInYearForYear(e,t){return e?e.j(t):12}function computeCalendarDaysInMonthForYearMonth(e,t,n){return e?e.o(t,n):computeIsoDaysInMonth(t,n)}function computeCalendarMonthCode(e,t){let{year:n,month:r}=computeCalendarDateFields(e,t),[i,a]=computeCalendarMonthCodeParts(e,n,r);return formatMonthCode(i,a)}function computeCalendarInLeapYear(e,t){let{year:n}=computeCalendarDateFields(e,t);return e?e.q(n):computeIsoInLeapYear(n)}function computeCalendarMonthsInYear(e,t){let{year:n}=computeCalendarDateFields(e,t);return computeCalendarMonthsInYearForYear(e,n)}function computeCalendarDaysInMonth(e,t){let{year:n,month:r}=computeCalendarDateFields(e,t);return computeCalendarDaysInMonthForYearMonth(e,n,r)}function computeCalendarDaysInYear(e,t){let{year:n}=computeCalendarDateFields(e,t);return e?e.i(n):computeIsoDaysInYear(n)}function computeCalendarDayOfYear(e,t){if(!e)return computeIsoDayOfYear(t);let{year:n}=computeCalendarDateFields(e,t),r=computeCalendarIsoFieldsFromParts(e,n,1,1);return isoDateToEpochDays(t)-isoDateToEpochDays(r)+1}function computeCalendarWeekOfYear(e,t){return e===void 0?computeIsoWeekFields(t).weekOfYear:void 0}function computeCalendarYearOfWeek(e,t){return e===void 0?computeIsoWeekFields(t).yearOfWeek:void 0}var H=De.map(e=>e+`s`),$e=createPropGetters(H),et=sortStrings(H),tt=H.slice(0,6),nt=H.slice(6),rt=nt.slice(1),U=zipPropsConst(H,0),it=zipPropsConst(tt,0),at=bindArgs(zeroOutProps,H);function requirePropDefined(e,t){return t??throwRangeError(missingField(e)),t}var W=bindArgs(requireType,`string`);function requireType(e,t,n=e){return typeof t!==e&&throwTypeError(ye(n,t)),t}function requireNumberIsInteger(e,t=`number`){return Number.isInteger(e)||throwRangeError(((e,t)=>`Non-integer ${e}: ${t}`)(t,e)),e||0}function toString$1(e){return typeof e==`symbol`&&throwTypeError(`Cannot convert Symbol to string`),String(e)}e(toString$1,`toString`);function toPrimitiveWithStringHint(e){if(!isObjectLike$1(e))return e;let t=e[Symbol.toPrimitive];if(t!=null){typeof t!=`function`&&throwTypeError();let n=Reflect.apply(t,e,[`string`]);return isObjectLike$1(n)&&throwTypeError(),n}return Date.prototype[Symbol.toPrimitive].call(e,`string`)}function toBigInt(e){return typeof e==`boolean`?BigInt(+!!e):typeof e==`string`?BigInt(e):(typeof e!=`bigint`&&throwTypeError(`Invalid bigint: ${e}`),e)}function toStrictInteger(e,t){return requireNumberIsInteger(toFiniteNumber(e,t),t)}function combineDateAndTime(e,t){return pluckProps(Ne,e,pluckProps(P,t))}var ot=BigInt(1e8)*N,st=BigInt(-1e8)*N,ct=st-N,lt=-3261848;function checkIsoYearMonthInBounds(e){let t=12*e.year+e.month;return(t<lt||t>3309129)&&throwRangeError(`Out-of-bounds date`),e}function checkIsoDateInBounds(e,t=1){let n=isoDateToEpochNano(e);return(n<(t?ct:st)||n>ot)&&throwRangeError(`Out-of-bounds date`),e}function checkIsoDateTimeInBounds(e){return checkIsoDateTimeEpochNanoInBounds(isoDateTimeToEpochNano(e)),e}function checkIsoDateTimeEpochNanoInBounds(e){return(e<=ct||e>=ot+N)&&throwRangeError(`Out-of-bounds date`),e}function checkEpochNanoInBounds(e){return(e<st||e>ot)&&throwRangeError(`Out-of-bounds date`),e}function isoDateTimeAndOffsetToEpochNano(e,t){return checkEpochNanoInBounds(isoDateToEpochNano(e)+BigInt(timeFieldsToNano(e)-t))}function roundNumberToInc(e,t,n){return roundWithMode(e/t,n)*t}function roundWithMode(e,t){return ce[t](e)}function totalRelativeUnit(e,t,n,r){let i=clampRelativeUnitValue(e,t,r,n);return interpolateRelativeUnitWindow(i,Number(n-i.I)/Number(i.O-i.I))}function roundRelativeUnitWindow(e,t,n,r){return roundNumberToInc(interpolateRelativeUnitWindow(e,computeEpochNanoFrac(t,e.I,e.O)),n,r)}function clampRelativeUnitValue(e,t,n,r){let i=computeRelativeUnitWindow(e,t,n);return((e,t,n,r)=>r>0?t<=e&&e<=n:n<=e&&e<=t)(r,i.I,i.O,Math.sign(t))||(i=computeRelativeUnitWindow(e+t,t,n)),i}function computeRelativeUnitWindow(e,t,n){let r=e+t;return{ve:e,qe:r,I:n(e),O:n(r)}}function interpolateRelativeUnitWindow(e,t){return e.ve+t*(e.qe-e.ve)}function computeEpochNanoFrac(e,t,n){let r=n-t,i=e-t;if(!i)return 0;let a=i<0n?-i:i,o=r<0n?-r:r,s=compareBigInts(i,0n)===compareBigInts(r,0n)?1:-1;return compareBigInts(a,o)<=0?a===o?s:fabricateNearHalfFraction(compareBigInts(2n*a,o),s):Number(i)/Number(r)}function createEpochNanoSlots(e){return{epochNanoseconds:e}}function createZonedEpochNanoSlots(e,t,n){return{calendar:n,timeZone:t,epochNanoseconds:e}}function createDateTimeSlots(e,t){return pluckProps(P,e,createDateSlots(e,t))}function createDateSlots(e,t){return pluckProps(Ne,e,{calendar:t})}function createTimeSlots(e){return pluckProps(P,e)}function createDurationSlots(e){return pluckProps(H,e,{sign:computeDurationSign(e)})}function roundZonedEpochSlotsToUnit(e,t,n,r){return createZonedEpochNanoSlots(t===6?roundZonedEpochToDay(e,r):roundZonedEpochToTime(e,t,n,r),e.timeZone,e.calendar)}function computeZonedHoursInDay(e){let[t,n]=computeZonedDayEpochInterval(e);return divideBigNanoToExactNumber(n-t,O)}function computeZonedStartOfDay(e){let{timeZone:t,calendar:n}=e;return createZonedEpochNanoSlots(getStartOfDayInstantFor(t,combineDateAndTime(G(e),V)),t,n)}function roundRelativeDuration(e,t,n,r,i,a,o,s){if(r===0&&i===1)return e;let c=computeDurationSign(e)||1,[l,u,d]=(isUniformUnit(r,s)?s&&r<6&&n>=6?nudgeZonedTimeDuration:nudgeDayTimeDuration:nudgeRelativeDuration)(c,e,t,n,r,i,a,o);return d&&r!==7&&(l=((e,t,n,r,i,a)=>{for(let o=r+1;o<=n;o++){if(o===7&&n!==7)continue;let r=at(o,e);r[H[o]]+=i;let s=compareBigInts(t,moveRelativeMarkerToEpochNano(a,r));if(s&&s!==i)break;e=r}return e})(l,u,n,Math.max(6,r),c,o)),l}function roundDayTimeDurationByInc(e,t,n){let r=Math.min(getMaxDurationUnit(e),6);return nanoToDurationDayTimeFields(roundBigNanoToInc(durationDayTimeToBigNano(e),BigInt(t),n),r)}function roundZonedEpochToDay(e,t){let[n,r]=computeZonedDayEpochInterval(e);return roundZonedEpochToBounds(e.epochNanoseconds,n,r,t)}function roundZonedEpochToTime(e,t,n,r){if(t===0&&n===1)return e.epochNanoseconds;let i=G(e);return getMatchingInstantFor(e.timeZone,roundDateTimeToInc(i,computeNanoInc(t,n),r),i.offsetNanoseconds,2,0,1)}function roundDateTimeToInc(e,t,n){let[r,i]=roundTimeToInc(e,t,n),a=combineDateAndTime(moveDateByDays(e,i),r);return checkIsoDateTimeInBounds(a),a}function roundTimeToInc(e,t,n){return nanoToTimeAndDay(roundNumberToInc(timeFieldsToNano(e),t,n))}function nudgeRelativeDuration(e,t,n,r,i,a,o,s){let c=H[i],l=at(i,t);i===7&&(t={...t,weeks:t.weeks+Math.trunc(t.days/7)});let u=divTrunc(t[c],a)*a,d=clampRelativeUnitValue(u,a*e,e=>(l[c]=e,moveRelativeMarkerToEpochNano(s,l)),n),f=roundRelativeUnitWindow(d,n,a,o);return l[c]=f,[l,f===d.qe?d.O:d.I,f!==u]}function nudgeZonedTimeDuration(e,t,n,r,i,a,o,s){let c=Number(durationTimeToBigNano(t)),l=computeNanoInc(i,a),u=roundNumberToInc(c,l,o),d={...t,...it},f=clampRelativeUnitValue(d.days,e,e=>(d.days=e,moveRelativeMarkerToEpochNano(s,d)),n),p=f.I,m=f.O,h=u-Number(m-p),g=0;h&&Math.sign(h)!==e?n=p+BigInt(u):(g+=e,u=roundNumberToInc(h,l,o),n=m+BigInt(u));let ee=nanoToDurationTimeFields(u);return[{...t,...ee,days:t.days+g},n,!!g]}function nudgeDayTimeDuration(e,t,n,r,i,a,o){let s=durationDayTimeToBigNano(t),c=roundBigNanoToInc(s,computeBigNanoInc(i,a),o),l=c-s,u=Math.sign(Number(c/N)-Number(s/N))===e,d=nanoToDurationDayTimeFields(c,Math.min(r,6));return[{...t,...d},n+l,u]}function computeZonedDayEpochInterval(e){let{timeZone:t}=e,n=combineDateAndTime(G(e),V),r=combineDateAndTime(moveDateByDays(n,1),V);return[getStartOfDayInstantFor(t,n),getStartOfDayInstantFor(t,r)]}function roundZonedEpochToBounds(e,t,n,r){return roundWithMode(computeEpochNanoFrac(e<n?e:n-1n,t,n),r)?n:t}function roundToMinute(e){return roundNumberToInc(e,D,7)}function roundBigNanoToInc(e,t,n){return roundBigNanoToIncWithTail(e,t,n,e/t%2n)}function roundBigNanoToDayOriginInc(e,t,n){let[r,i]=divModFloorBigInt(e,N),a=r*N;return a+roundBigNanoToIncWithTail(i,t,n,(a/t+i/t)%2n)}function roundBigNanoToIncWithTail(e,t,n,r){let i=e/t,a=e%t,o=0;a&&(o=fabricateNearHalfFraction(compareBigInts(2n*(a<0n?-a:a),t),Math.sign(Number(a))));let s=roundWithMode(Number(r)+o,n);return(i-r+BigInt(s))*t}function computeNanoInc(e,t){return A[e]*t}function computeBigNanoInc(e,t){return BigInt(A[e])*BigInt(t)}var G=memoize(_zonedEpochSlotsToIso,WeakMap);function _zonedEpochSlotsToIso(e){let{epochNanoseconds:t,timeZone:n}=e,r=n.B(t);return{...epochNanoToIsoDateTime(t+BigInt(r)),offsetNanoseconds:r}}function getMatchingInstantFor(e,t,n,r=0,i=0,a,o){if(n!==void 0&&r===1&&(r===1||o))return isoDateTimeAndOffsetToEpochNano(t,n);r!==2&&r!==0||checkIsoDateInBounds(t,0);let s=e.R(t);if(n!==void 0&&r!==3){let e=((e,t,n,r)=>{let i=isoDateTimeToEpochNano(t);r&&(n=roundToMinute(n));for(let t of e){let e=Number(i-t);if(r&&(e=roundToMinute(e)),e===n)return t}})(s,t,n,a);if(e!==void 0)return e;r===0&&throwRangeError(`Invalid TimeZone offset`)}return o?isoDateTimeToEpochNano(t):getSingleInstantFor(e,t,i,s)}function getSingleInstantFor(e,t,n=0,r=e.R(t)){if(r.length===1)return r[0];if(n===1&&throwRangeError(`Ambiguous offset`),r.length)return r[+(n===3)];let i=isoDateTimeToEpochNano(t),a=((e,t)=>{let n=e.B(t-N);return(e=>(e>864e11&&throwRangeError(`Out-of-bounds TimeZone gap`),e))(e.B(t+N)-n)})(e,i),o=epochNanoToIsoDateTime(i+BigInt(a*(n===2?-1:1)));return(r=e.R(o))[n===2?0:r.length-1]}function getStartOfDayInstantFor(e,t){let n=e.R(t);if(n.length)return n[0];let r=isoDateTimeToEpochNano(t)-N;return e.C(r,1)}function moveYearMonth(e,t,n,r=0){return computeDurationSign(n)&&getMaxDurationUnit(n)<8&&throwRangeError(`Cannot use small units`),moveToStartOfMonth(e,moveDate(e,checkIsoDateInBounds(moveToStartOfMonth(e,t)),n,r))}function moveZonedEpochSlots(e,t,n=0){let{calendar:r,epochNanoseconds:i,timeZone:a}=e,o=durationTimeToBigNano(t),s=i;if(durationHasDateParts(t)){let i=G(e);s=getSingleInstantFor(a,combineDateAndTime(moveDate(r,i,{...t,...it},n),i))+o}else s+=o;return{...e,epochNanoseconds:checkEpochNanoInBounds(s)}}function moveDateTime(e,t,n,r=0){let[i,a]=moveTime(t,n);return checkIsoDateTimeInBounds(combineDateAndTime(moveDate(e,t,{...n,...it,days:n.days+a},r),i))}function moveTime(e,t){return moveTimeByNano(e,durationTimeToBigNano(t))}function moveEpochNano(e,t){return moveEpochNanoByNano(e,(durationHasDateParts(n=t)&&throwRangeError(`Cannot use large units`),durationTimeToBigNano(n)));var n}function moveDate(e,t,n,r=0){let{years:i,months:a,weeks:o,days:s}=n,c;if(s+=Number(durationTimeToBigNano(n)/N),i||a)c=moveDateByCalendarUnits(e,t,i,a,r);else{if(!o&&!s)return t;c=t}return(o||s)&&(c=moveDateByDays(c,7*o+s)),checkIsoDateInBounds(c)}function moveToStartOfMonth(e,t){return moveDateByDays(t,1-computeCalendarDateFields(e,t).day)}function moveDateByCalendarUnits(e,t,n,r,i){let{year:a,month:o,day:s}=computeCalendarDateFields(e,t);if(n){let[t,r]=computeCalendarMonthCodeParts(e,a,o);a+=n,o=resolveMonthInMovedYear(e,t,r,e?e.p(a):void 0,i),o=clampEntity(`month`,o,1,computeCalendarMonthsInYearForYear(e,a),i)}if(r){let t=addCalendarMonths(e,a,o,r);({year:a,month:o}=t)}return s=clampEntity(`day`,s,1,computeCalendarDaysInMonthForYearMonth(e,a,o),i),computeCalendarIsoFieldsFromParts(e,a,o,s)}function addCalendarMonths(e,t,n,r){return e?e.ae(t,n,r):addIsoMonths(t,n,r)}function resolveMonthInMovedYear(e,t,n,r,i){if(n){let n=e?e.l:void 0;return r!==void 0&&(n<0||r===t+1)?r:(i===1&&throwRangeError(x),n<0?-n:t)}return monthCodeNumberToMonth(t,0,r)}function moveTimeByNano(e,t){let n=Number(t/N),r=Number(t%N),[i,a]=nanoToTimeAndDay(timeFieldsToNano(e)+r);return[i,n+a]}function moveEpochNanoByNano(e,t){return checkEpochNanoInBounds(e+t)}function moveDateByDays(e,t){return t?epochDaysToIsoDate(isoDateToEpochDays(e)+t):e}function getCommonCalendar(e,t){return getCalendarSlotId(e)!==getCalendarSlotId(t)&&throwRangeError(`Mismatching Calendars`),e}function getCommonTimeZone(e,t){return e.m!==t.m&&throwRangeError(`Mismatching TimeZones`),e}function getZonedTimeZoneId(e){return e.timeZone.id}function diffZonedDateTimesRounded(e,t,n,r,i,a,o){return r<6?diffEpochNanosRounded(t.epochNanoseconds,n.epochNanoseconds,r,i,a,o):((e,t,n,r,i,a,o)=>{let s=n.epochNanoseconds;if(s===t.epochNanoseconds)return U;let c,l=getCommonTimeZone(t.timeZone,n.timeZone);return c=diffZonedEpochsExact(l,e,t,n,r),c=roundRelativeDuration(c,s,r,i,a,o,createZonedRelativeOps(e,l,t),1),c})(e,t,n,r,i,a,o)}function diffDateTimesRounded(e,t,n,r,i,a,o){return r<=6?diffEpochNanosRounded(isoDateTimeToEpochNano(t),isoDateTimeToEpochNano(n),r,i,a,o):((e,t,n,r,i,a,o)=>{let s=isoDateTimeToEpochNano(n),c=compareBigInts(s,isoDateTimeToEpochNano(t));if(!c)return U;let l;return l=diffDateTimesBig(e,t,n,c,r),l=roundRelativeDuration(l,s,r,i,a,o,((e,t)=>({ne:isoDateTimeToEpochNano(t),ke:n=>isoDateTimeToEpochNano(combineDateAndTime(moveDate(e,t,n),t))}))(e,t)),l})(e,t,n,r,i,a,o)}function diffYearMonthsRounded(e,t,n,r,i,a,o){let s=moveToStartOfMonth(e,t),c=moveToStartOfMonth(e,n);return compareIsoDates(s,c)?diffDateCalendarUnitsRounded(e,checkIsoDateInBounds(s),checkIsoDateInBounds(c),r,i,a,o,8):U}function diffDatesRounded(e,t,n,r,i,a,o,s=6){return r===6?diffEpochNanosRounded(isoDateToEpochNano(t),isoDateToEpochNano(n),r,i,a,o):diffDateCalendarUnitsRounded(e,t,n,r,i,a,o,s)}function diffTimesRounded(e,t,n,r,i,a){let o=roundNumberToInc(timeFieldsToNano(t)-timeFieldsToNano(e),computeNanoInc(r,i),a);return{...U,...nanoToDurationTimeFields(o,n)}}function diffDateCalendarUnitsRounded(e,t,n,r,i,a,o,s=6){let c=isoDateToEpochNano(n);if(!compareIsoDates(t,n))return U;let l;return l=diffCalendarDates(e,t,n,r),i===s&&a===1||(l=roundRelativeDuration(l,c,r,i,a,o,createDateRelativeOps(e,t))),l}function diffEpochNanosRounded(e,t,n,r,i,a){return{...U,...nanoToDurationDayTimeFields(roundBigNanoToInc(t-e,computeBigNanoInc(r,i),a),n)}}function diffZonedEpochsExact(e,t,n,r,i){return i<6?{...U,...nanoToDurationDayTimeFields(r.epochNanoseconds-n.epochNanoseconds,i)}:((e,n,r)=>{let a=compareBigInts(r.epochNanoseconds,n.epochNanoseconds);if(!a)return U;if(!compareIsoDates(G(n),G(r)))return{...U,...nanoToDurationDayTimeFields(r.epochNanoseconds-n.epochNanoseconds,5)};let[o,s,c]=prepareZonedEpochDiff(e,n,r,a);return{...(l=o,u=s,diffCalendarDates(t,l,u,i)),...nanoToDurationTimeFields(c)};var l,u})(e,n,r)}function diffDateTimesExact(e,t,n,r){let i=isoDateTimeToEpochNano(t),a=isoDateTimeToEpochNano(n),o=compareBigInts(a,i);return o?r<=6?{...U,...nanoToDurationDayTimeFields(a-i,r)}:diffDateTimesBig(e,t,n,o,r):U}function diffDateTimesBig(e,t,n,r,i){let a=n,o=timeFieldsToNano(n)-timeFieldsToNano(t);return Math.sign(o)===-r&&(a=moveDateByDays(n,-r),o+=864e11*r),{...diffCalendarDates(e,t,a,i),...nanoToDurationTimeFields(o)}}function prepareZonedEpochDiff(e,t,n,r){let i=G(t),a=G(n),o=n.epochNanoseconds,s=0,c=timeFieldsToNano(a)-timeFieldsToNano(i);Math.sign(c)===-r&&s++;let l=s+ +(r>0);for(;;s++){let t=moveDateByDays(a,s*-r),n=getSingleInstantFor(e,combineDateAndTime(t,i));if(s===l||compareBigInts(o,n)!==-r)return[i,t,Number(o-n)]}}function diffCalendarDates(e,t,n,r){if(r<=7)return((e,t,n)=>{let r=countIsoDays(t,n);return e?{...U,weeks:divTrunc(r,7),days:modTrunc(r,7)}:{...U,days:r}})(r===7,t,n);let i=computeCalendarDateFields(e,t),a=computeCalendarDateFields(e,n);if(r===8){let{year:r,month:o,day:s}=i,{year:c,month:l,day:u}=a,d=Math.sign(compareNumbers(c,r)||compareNumbers(l,o)||countIsoDays(t,n)),f=0,p=0;if(d){f=e?e.ee(r,o,c,l):diffIsoMonthSlots(r,o,c,l);let i=moveDateByCalendarUnits(e,t,0,f,0);d*compareNumbers(s,u)>0&&(f-=d,i=moveDateByCalendarUnits(e,t,0,f,0)),p=countIsoDays(i,n)}return{...U,months:f,days:p}}let{year:o,month:s,day:c}=i,{year:l,month:u,day:d}=a,f=l-o,p=u-s,m=d-c;if(f||p){let t=Math.sign(f||p),n=computeCalendarDaysInMonthForYearMonth(e,l,u),r=0;if(Math.sign(d-c)===-t){let i=n,a=addCalendarMonths(e,l,u,-t);({year:l,month:u}=a),f=l-o,p=u-s,n=computeCalendarDaysInMonthForYearMonth(e,l,u),r=t<0?-i:n}if(m=d-Math.min(c,n)+r,f){let[n,r]=computeCalendarMonthCodeParts(e,o,s),[i,a]=computeCalendarMonthCodeParts(e,l,u),c=e?e.l:void 0;if(p=c!==void 0&&r&&!a&&(c<0?t>0&&i===-c:t<0&&i===n)?0:i-n||Number(a)-Number(r),Math.sign(p)===-t){let i=t<0&&-computeCalendarMonthsInYearForYear(e,l);l-=t,f=l-o,p=u-resolveMonthInMovedYear(e,n,r,e?e.p(l):void 0,0)+(i||computeCalendarMonthsInYearForYear(e,l))}else if(e){let t=resolveMonthInMovedYear(e,n,r,e.p(l),0);p=e.ee(l,t,l,u)}}}return{...U,years:f,months:p,days:m}}function compareIsoDates(e,t){return compareNumbers(e.year,t.year)||compareNumbers(e.month,t.month)||compareNumbers(e.day,t.day)}function countIsoDays(e,t){return isoDateToEpochDays(t)-isoDateToEpochDays(e)}function spanRelativeDuration(e,t,n){return isZonedEpochSlots(e)?((e,t,n)=>{let{calendar:r,timeZone:i}=e,a=moveZonedEpochSlots(e,t);return[diffZonedEpochsExact(i,r,e,a,n),a.epochNanoseconds,createZonedRelativeOps(r,i,e)]})(e,t,n):((e,t,n)=>{let{calendar:r}=e,i=checkIsoDateTimeInBounds(combineDateAndTime(e,V)),a=moveDateTime(r,i,t);return[diffDateTimesExact(r,i,a,n),isoDateTimeToEpochNano(a),createDateRelativeOps(r,e)]})(e,t,n)}function moveRelativeEndpointToEpochNano(e,t){return isZonedEpochSlots(e)?moveZonedEpochSlots(e,t).epochNanoseconds:isoDateTimeToEpochNano(moveDateTime(e.calendar,combineDateAndTime(e,V),t))}function moveRelativeMarkerToEpochNano(e,t){return durationHasDateParts(t)?e.ke(t):e.ne}function createZonedRelativeOps(e,t,n){let r=G(n);return{ne:n.epochNanoseconds,ke:n=>getSingleInstantFor(t,combineDateAndTime(moveDate(e,r,n),r))}}function createDateRelativeOps(e,t){return{ne:isoDateToEpochNano(t),ke:n=>isoDateToEpochNano(moveDate(e,t,n))}}function isZonedEpochSlots(e){return`timeZone`in e}function isUniformUnit(e,t){return e<=6-!!t}function nanoToGivenFields(e,t,n){let r={};for(let i=t;i>=0;i--){let t=A[i];r[n[i]]=divTrunc(e,t),e=modTrunc(e,t)}return r}var ut=2**53;function addDurationsWithoutRelativeTo(e,t,n){let r=Math.max(getMaxDurationUnit(t),getMaxDurationUnit(n));return r>6&&throwRangeError(`Cannot use large units`),((e,t,n,r)=>createDurationSlots(validateDurationFields(((e,t,n,r)=>{let i=durationDayTimeToBigNano(e)+durationDayTimeToBigNano(t)*BigInt(r?-1:1);return Number.isFinite(Number(i/N))||throwRangeError(`Out-of-bounds date`),{...U,...nanoToDurationDayTimeFields(i,n)}})(t,n,r,e))))(e,t,n,r)}function roundDuration(e,t,n){let r=getMaxDurationUnit(t),[i,a,o,s,c]=refineDurationRoundOptions(n,r,e);if(!c&&Math.max(r,i)<=6)return createDurationSlots(validateDurationFields(((e,t,n,r,i)=>{let a=roundBigNanoToInc(durationDayTimeToBigNano(e),computeBigNanoInc(n,r),i);return{...U,...nanoToDurationDayTimeFields(a,t)}})(t,i,a,o,s)));c||throwRangeError(`Missing relativeTo`);let l=isZonedEpochSlots(c);if(!t.sign&&(!l||i<6))return t;let[u,d,f]=spanRelativeDuration(c,t,i);return createDurationSlots(roundRelativeDuration(u,d,i,a,o,s,f,l))}function absDuration$1(e){return e.sign===-1?negateDuration(e):e}e(absDuration$1,`absDuration`);function negateDuration(e){return createDurationSlots(negateDurationFields(e))}function negateDurationFields(e){let t={};for(let n of H)t[n]=-1*e[n]||0;return t}function computeDurationSign(e,t=H){let n=0;for(let r of t){let t=Math.sign(e[r]);t&&(n&&n!==t&&throwRangeError(`Cannot mix duration signs`),n=t)}return n}function validateDurationFields(e){for(let t of rt)validateDurationCalendarUnit(t,e[t]);let t=durationDayTimeToBigNano(e);return validateDurationTimeUnit(Number(t/M)),e}function validateDurationCalendarUnit(e,t){return clampEntity(e,t,-4294967295,4294967295,1)}function validateDurationTimeUnit(e){Number.isSafeInteger(e)||throwRangeError(`Out-of-bounds duration`)}function durationDayTimeToBigNano(e){return BigInt(e.days)*N+durationTimeToBigNano(e)}function durationTimeToBigNano(e){return BigInt(e.hours)*Ae+BigInt(e.minutes)*ke+durationSubMinuteToBigNano(e)}function durationSubMinuteToBigNano(e){return BigInt(e.seconds)*M+BigInt(e.milliseconds)*j+BigInt(e.microseconds)*Oe+BigInt(e.nanoseconds)}function nanoToDurationDayTimeFields(e,t=6){let n=Number(e/N),r=Number(e%N),i=A[t],a=t<=3?Number(e/BigInt(i)):k/i*n+divTrunc(r,i);Number.isFinite(a)||throwRangeError(`Out-of-bounds date`),t<=3&&Math.abs(a)/(E/A[t])>=ut&&throwRangeError(`Out-of-bounds date`);let o=nanoToGivenFields(r,t,H);return o[H[t]]=a,o}function nanoToDurationTimeFields(e,t=5){return nanoToGivenFields(e,t,H)}function durationHasDateParts(e){return!!computeDurationSign(e,nt)}function getMaxDurationUnit(e){let t=9;for(;t>0&&!e[H[t]];t--);return t}function compareZonedEpochSlots(e,t){return compareBigInts(e.epochNanoseconds,t.epochNanoseconds)}function compareDurations(e,t,n,r){let i=e(normalizeOptions(r).relativeTo),a=Math.max(getMaxDurationUnit(t),getMaxDurationUnit(n));return allPropsEqual(H,t,n)?0:isUniformUnit(a,i&&isZonedEpochSlots(i))?compareBigInts(durationDayTimeToBigNano(t),durationDayTimeToBigNano(n)):(i||throwRangeError(`Missing relativeTo`),compareBigInts(moveRelativeEndpointToEpochNano(i,t),moveRelativeEndpointToEpochNano(i,n)))}function compareIsoDateTimeFields(e,t){return compareIsoDateFields(e,t)||compareTimeFields(e,t)}function compareIsoDateFields(e,t){return compareNumbers(isoDateToEpochDays(e),isoDateToEpochDays(t))}function compareTimeFields(e,t){return compareNumbers(timeFieldsToNano(e),timeFieldsToNano(t))}function instantsEqual(e,t){return!compareZonedEpochSlots(e,t)}function zonedDateTimesEqual(e,t){return!compareZonedEpochSlots(e,t)&&e.timeZone.m===t.timeZone.m&&e.calendar===t.calendar}function plainDateTimesEqual(e,t){return!compareIsoDateTimeFields(e,t)&&e.calendar===t.calendar}function plainDatesEqual(e,t){return!compareIsoDateFields(e,t)&&e.calendar===t.calendar}function plainYearMonthsEqual(e,t){return!compareIsoDateFields(e,t)&&e.calendar===t.calendar}function plainMonthDaysEqual(e,t){return!compareIsoDateFields(e,t)&&e.calendar===t.calendar}function plainTimesEqual(e,t){return!compareTimeFields(e,t)}function getCalendarEraOrigins(e){return e===0?we:e?e.k:void 0}function getCalendarFieldNames(e,t,n=t){return getCalendarEraOrigins(e)?n:t}function resolveCalendarYear(e,t){let n=t||void 0,r=getCalendarEraOrigins(t),{era:i,eraYear:a,year:o}=e;if(o!==void 0&&(o=toIntegerWithTrunc(o,`year`)),a!==void 0&&(a=toIntegerWithTrunc(a,`eraYear`)),i!==void 0||a!==void 0){i!==void 0&&a!==void 0||throwTypeError(`Mismatching era/eraYear`),r||throwRangeError(`Forbidden era/eraYear`);let e=normalizeEraName(i),t=r[e];t===void 0&&throwRangeError((e=>`Invalid era: ${e}`)(i));let s=n?._?n._(a,e,t):eraYearToYear(a,t);o!==void 0&&o!==s&&throwRangeError(`Mismatching year/eraYear`),o=s}else o===void 0&&throwTypeError(missingYear(r));return o}function resolveCalendarMonth(e,t,n,r,i){let{month:a,monthCode:o}=e;if(o!==void 0){let e=((e,t,n,r,i=parseMonthCode(t))=>{let a=e?e.p(n):void 0,[o,s]=i,c=monthCodeNumberToMonth(o,s,a);if(s){let t=e?e.l:void 0;t===void 0&&throwRangeError(x),t>0?(c>t&&throwRangeError(x),a!==c&&(r===1&&throwRangeError(x),c=monthCodeNumberToMonth(o,0,a))):(c!==-t&&throwRangeError(x),a===void 0&&r===1&&throwRangeError(x))}return c})(t,o,n,i,r);a!==void 0&&a!==e&&throwRangeError(`Mismatching month/monthCode`),a=e,i=1}else a===void 0&&throwTypeError(`Missing month/monthCode`);return clampEntity(`month`,a,1,computeCalendarMonthsInYearForYear(t,n),i)}function resolveCalendarDay(e,t,n,r,i){return clampProp(e,`day`,1,computeCalendarDaysInMonthForYearMonth(t,n,r),i)}function eraYearToYear(e,t){return(t+e)*(Math.sign(t)||1)||0}function resolveTimeFields(e,t){return constrainTimeFields(pluckProps(P,{...V,...e}),t)}var dt=createRegExp(`([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?`);function parseOffsetNano(e){let t=parseOffsetNanoMaybe(e);return t===void 0&&throwRangeError(failedParse(e)),t}function parseOffsetNanoMaybe(e,t){let n=dt.exec(e);if(n&&(e=>(e=>{e[0]!==`T`&&e[0]!==`t`||(e=e.slice(1));let t=e.search(/[.,]/),n=t<0?e:e.slice(0,t),r=n.split(`:`);return r.length===1?/^(?:\d{2}|\d{4}|\d{6})$/i.test(n):(r.length===2||r.length===3)&&r.every(e=>e.length===2&&/^\d{2}$/i.test(e))})(e.slice(1)))(n[0]))return((e,t)=>{let n=e[4]||e[5];return t&&n&&throwRangeError(invalidSubstring(n)),r=(parseInt0(e[2])*O+parseInt0(e[3])*D+parseInt0(e[4])*E+parseSubsecNano(e[5]||``))*parseSign(e[1]),Math.abs(r)>=864e11&&throwRangeError(`Out-of-bounds offset`),r;var r})(n,t)}var K={era:toString$1,month:toPositiveIntegerWithTruncation,monthCode(e,t){return W(toPrimitiveWithStringHint(e),t)},day:toPositiveIntegerWithTruncation},ft=zipPropsConst(P,toIntegerWithTrunc),pt=zipPropsConst(H,toStrictInteger),mt=Object.assign({},K,ft),ht={offset(e){return parseOffsetNano(W(toPrimitiveWithStringHint(e)))},...mt};function readAndRefineBagFields(e,t,n,r,i=!r){let a={},o=0;for(let i of t){let t=e[i];if(t!==void 0){o=1;let e=n[i];e&&(t=e(t,i)),a[i]=t}else r&&r.includes(i)&&throwTypeError(missingField(i))}return i&&!o&&throwTypeError(noValidFields(t)),a}function refineCalendarDateFields(e,t,n){let r=getCalendarEraOrigins(t);e.year!==void 0||e.era!==void 0&&e.eraYear!==void 0||throwTypeError(missingYear(r)),e.monthCode===void 0&&e.month===void 0&&throwTypeError(`Missing month/monthCode`),n||e.day!==void 0||throwTypeError(missingField(`day`));let i=parseMonthCodeField(e);return[resolveCalendarYear(e,t),i]}function refineMonthDayFields(e,t){let n=t===void 0,r=getCalendarEraOrigins(t);e.day===void 0&&throwTypeError(missingField(`day`)),n||e.month===void 0||e.year!==void 0||e.era!==void 0&&e.eraYear!==void 0||throwTypeError(missingYear(r));let i=parseMonthCodeField(e);return[e.eraYear!==void 0||e.year!==void 0?resolveCalendarYear(e,t):void 0,i]}function createDateTimeFromRefinedFields(e,t=V,n){let r=combineDateAndTime(e,t);return checkIsoDateTimeInBounds(r),createDateTimeSlots(r,n)}function createDateFromRefinedFields(e,t,n,r,i){let a=resolveCalendarMonth(e,t,n,r,i);return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(t,n,a,resolveCalendarDay(e,t,n,a,i))),t)}function createYearMonthFromRefinedFields(e,t,n,r,i){return createYearMonthFromCalendarParts(t,n,resolveCalendarMonth(e,t,n,r,i))}function createMonthDayFromRefinedFields(e,t,n,r,i){let a=t===void 0,o=n,s,c,l;if(o===void 0&&a&&(o=1972),o!==void 0){a||checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(t,o,1,1));let n=resolveCalendarMonth(e,t,o,r,i);s=resolveCalendarDay(e,t,o,n,i),[c,l]=computeCalendarMonthCodeParts(t,o,n)}else{e.monthCode===void 0&&throwTypeError(`Missing month/monthCode`),[c,l]=r;let n=t?t.re:1972;if(n!==void 0)s=resolveCalendarDay(e,t,n,resolveCalendarMonth(e,t,n,r,i),i);else{let n=i===0&&t?t.ge?.(c,l,e.day):void 0;s=n===void 0?e.day:n}}return createMonthDayFromMonthCodeParts(t,c,l,s,e.day,i)}function createYearMonthFromCalendarParts(e,t,n){return createDateSlots(checkIsoYearMonthInBounds(computeCalendarIsoFieldsFromParts(e,t,n,1)),e)}function createMonthDayFromMonthCodeParts(e,t,n,r,i,a){let o=n;o&&((e&&e.V?.[t])??1/0)<i&&(a===1&&throwRangeError(x),o=0,r=Se(i,1,(e&&e.U)??1/0));let s=e?e.u(t,!!o,r):computeIsoYearMonthFieldsForMonthDay(t,!!o);for(;!s&&a===0&&r>1;)r--,s=e?e.u(t,!!o,r):computeIsoYearMonthFieldsForMonthDay(t,!!o);s||throwRangeError(`Cannot guess year`);let{year:c,month:l}=s;return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(e,c,l,r)),e)}function parseMonthCodeField(e){if(e.monthCode!==void 0)return parseMonthCode(e.monthCode)}var q=Intl.DateTimeFormat;function formatEpochMilliToPartsRecord(e,t){t<-864e13&&throwRangeError(`Out-of-bounds date`);let n=e.formatToParts(t),r={};for(let e of n)r[e.type]=e.value;return r}var gt={El_Aaiun:17,Tucuman:12,Tirane:11,Riga:10,Simferopol:9,Vienna:9,Tunis:8,Boa_Vista:6,Fortaleza:6,Maceio:6,Noronha:6,Recife:6,Gaza:6,Hebron:6,DeNoronha:6},_t=-388152e4;function formatInstantIso(e,t,n){let[r,i,a,o]=refineInstantDisplayOptions(n),s=r!==void 0;return((e,t,n,r,i,a)=>{n=roundBigNanoToDayOriginInc(n,BigInt(i),r);let o=t.B(n);return formatIsoDateTimeFields(epochNanoToIsoDateTime(n+BigInt(o)),a)+(e?formatOffsetNano(roundToMinute(o)):`Z`)})(s,queryTimeZone(s?e(r):`UTC`),t.epochNanoseconds,i,a,o)}function formatZonedDateTimeIso(e,t){let n=refineZonedDateTimeDisplayOptions(t);return((e,t,n,r,i,a,o,s,c,l)=>{r=roundBigNanoToDayOriginInc(r,BigInt(c),s);let u=n.B(r);return formatIsoDateTimeFields(epochNanoToIsoDateTime(r+BigInt(u)),l)+formatOffsetNano(roundToMinute(u),o)+formatTimeZone(t,a)+formatCalendar(e,i)})(e.calendar,e.timeZone.id,e.timeZone,e.epochNanoseconds,...n)}function formatPlainDateTimeIso(e,t){let n=refineDateTimeDisplayOptions(t);return((e,t,n,r,i,a)=>formatIsoDateTimeFields(roundDateTimeToInc(t,i,r),a)+formatCalendar(e,n))(e.calendar,e,...n)}function formatPlainDateIso(e,t){return n=e.calendar,r=e,i=refineDateDisplayOptions(t),formatIsoDateFields(r)+formatCalendar(n,i);var n,r,i}function formatPlainYearMonthIso(e,t){return formatDateLikeIso(e.calendar,formatIsoYearMonthFields,e,refineDateDisplayOptions(t))}function formatPlainMonthDayIso(e,t){return formatDateLikeIso(e.calendar,formatIsoMonthDayFields,e,refineDateDisplayOptions(t))}function formatDateLikeIso(e,t,n,r){return r===1?e===void 0?t(n):formatIsoDateFields(n):r>1||r===0&&e!==void 0?formatIsoDateFields(n)+formatCalendarId(getCalendarSlotId(e),r===2):t(n)}function formatPlainTimeIso(e,t){return((e,t,n,r)=>formatTimeFields(roundTimeToInc(e,n,t)[0],r))(e,...refineTimeDisplayOptions(t))}function formatDurationIso(e,t){let[n,r,i]=refineTimeDisplayOptions(t,3);return r>1&&validateDurationFields(e={...e,...roundDayTimeDurationByInc(e,r,n)}),formatDurationSlots(e,i)}function formatDurationSlots(e,t){let{sign:n}=e,r=n===-1?negateDurationFields(e):e,{hours:i,minutes:a}=r,o=durationSubMinuteToBigNano(r),s=Number(o/M),c=Number(o%M);validateDurationTimeUnit(s);let l=formatSubsecNano(c,t),u=t>=0||!n||l;return(n<0?`-`:``)+`P`+formatDurationFragments({Y:formatDurationNumber(r.years),M:formatDurationNumber(r.months),W:formatDurationNumber(r.weeks),D:formatDurationNumber(r.days)})+(i||a||s||u?`T`+formatDurationFragments({H:formatDurationNumber(i),M:formatDurationNumber(a),S:formatDurationNumber(s,u)+l}):``)}function formatDurationFragments(e){let t=[];for(let n in e){let r=e[n];r&&t.push(r,n)}return t.join(``)}function formatDurationNumber(e,t){if(!e&&!t)return``;let n=Object.create(null);return n.useGrouping=0,e.toLocaleString(`fullwide`,n)}function formatIsoDateTimeFields(e,t){return formatIsoDateFields(e)+`T`+formatTimeFields(e,t)}function formatIsoDateFields(e){return formatIsoYearMonthFields(e)+`-`+C(e.day)}function formatIsoYearMonthFields(e){let{year:t}=e;return(t<0||t>9999?getSignStr(t)+padNumber(6,Math.abs(t)):padNumber(4,t))+`-`+C(e.month)}function formatIsoMonthDayFields(e){return C(e.month)+`-`+C(e.day)}function formatTimeFields(e,t){let n=[C(e.hour),C(e.minute)];return t!==-1&&n.push(C(e.second)+((e,t,n,r)=>formatSubsecNano(e*T+t*w+n,r))(e.millisecond,e.microsecond,e.nanosecond,t)),n.join(`:`)}function formatOffsetNano(e,t=0){if(t===1)return``;let[n,r]=divModFloor(Math.abs(e),O),[i,a]=divModFloor(r,D),[o,s]=divModFloor(a,E);return getSignStr(e)+C(n)+`:`+C(i)+(o||s?`:`+C(o)+formatSubsecNano(s):``)}function formatTimeZone(e,t){return t===1?``:`[`+(t===2?`!`:``)+e+`]`}function formatCalendar(e,t){return t>1||t===0&&e!==void 0?formatCalendarId(getCalendarSlotId(e),t===2):``}function formatCalendarId(e,t){return`[`+(t?`!`:``)+`u-ca=`+e+`]`}var vt=/0+$/;function formatSubsecNano(e,t){let n=padNumber(9,e);return n=t===void 0?n.replace(vt,``):n.slice(0,t),n?`.`+n:``}function getSignStr(e){return e<0?`-`:`+`}var yt=/^(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$/,bt=/[^\w\/:+-]+/;function refineTimeZoneId(e){return resolveTimeZoneId(W(e))}function resolveTimeZoneId(e){return resolveTimeZoneRecord(e).id}function resolveTimeZoneRecord(e){let t=e.toUpperCase(),n=(e=>{let t=parseOffsetNanoMaybe(e,1);if(t!==void 0)return{id:formatOffsetNano(t),Z:t,m:t}})(t);return n?{kind:`fixed`,...n}:xt(t===`UTC`?`UTC`:(e=>(bt.test(e)&&throwRangeError(invalidTimeZone(e)),yt.test(e)&&throwRangeError(`Forbidden ICU TimeZone`),e.toLowerCase().split(`/`).map((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,(e,n)=>e.length<=2&&!t||e===`in`||e===`chat`?e.toUpperCase():e.length>2||!n?capitalize(e).replace(/island|noronha|murdo|rivadavia|urville/,capitalize):e)).join(`/`)))(e))}var xt=memoize(e=>{if(e===`UTC`)return{kind:`utc`,id:e,m:e};let t=St(e.toUpperCase());return{kind:`named`,id:e,format:t,m:t.resolvedOptions().timeZone}}),St=memoize(e=>new q(`en-u-hc-h23`,{calendar:`iso8601`,timeZone:e,era:`short`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}));function queryTimeZone(e){let t=resolveTimeZoneRecord(e);return Ct(t.id,t)}var Ct=memoize((e,t)=>t.kind===`named`?new IntlTimeZone(e,t.m,t.format):new FixedTimeZone(e,t.m,t.kind===`fixed`?t.Z:0)),FixedTimeZone=class{constructor(e,t,n){this.id=e,this.m=t,this.Z=n}B(){return this.Z}R(e){return[isoDateTimeAndOffsetToEpochNano(e,this.Z)]}C(){}},IntlTimeZone=class{constructor(e,t,n){this.id=e,this.m=t,this.oe=((e,t)=>{let n=memoize(e),r=memoize(createSplitTuple),i=86400*t;function getOffsetSec(e){let[t,a]=computePeriod(e,i),o=clampIntlSampleEpochSec(t),s=clampIntlSampleEpochSec(a),c=n(o),l=n(s);return c===l?c:pinch(r(o,s),c,l,e)}function pinch(t,n,r,i){let a,o;for(;(i===void 0||(a=i<t[0]?n:i>=t[1]?r:void 0)===void 0)&&(o=t[1]-t[0]);){let n=t[0]+Math.floor(o/2);e(n)===r?t[1]=n:t[0]=n+1}return a}return{Ae(e){let t=getOffsetSec(e-86400),n=getOffsetSec(e+86400),r=e-t,i=e-n;if(t===n)return[r];let a=getOffsetSec(r);return a===getOffsetSec(i)?[e-a]:t>n?[r,i]:[]},ze:getOffsetSec,C:function getTransition(e,t){if(t>0&&e>=864e10)return;if(t<0){if(e<=_t)return;let t=getCurrentEpochSec()+94867200;if(e>t)return getTransition(t,-1)}let[a,o]=computePeriod(t>0?Math.max(e,_t):e,i),s=i*t,c=t>0?Math.max(e,getCurrentEpochSec())+94867200:_t,inBounds=()=>t<0?o>c:a<c;for(;inBounds();){let i=clampIntlSampleEpochSec(a),c=clampIntlSampleEpochSec(o),l=n(i),u=n(c);if(l!==u){let n=r(i,c);pinch(n,l,u);let a=n[0];if((compareNumbers(a,e)||1)===t)return a}a+=s,o+=s}}}})((e=>t=>{let n=formatEpochMilliToPartsRecord(e,1e3*t);return 86400*isoPartsToEpochDays((e=>{let t=e.relatedYear;if(t!==void 0)return parseInt(t);let n=parseInt(e.year);return e.era!==void 0&&normalizeEraName(e.era)===`bce`?1-n:n})(n),parseInt(n.month),parseInt(n.day))+3600*parseInt(n.hour)+60*parseInt(n.minute)+parseInt(n.second)-t})(n),(e=>gt[e.split(`/`).pop()]||60)(e))}B(e){return this.oe.ze((e=>epochNanoToSecMod(e)[0])(e))*E}R(e){let t=86400*isoDateToEpochDays(e)+timeFieldsToSec(e),n=timeFieldsToSubsecNano(e);return this.oe.Ae(t).map(e=>checkEpochNanoInBounds(BigInt(e)*M+BigInt(n)))}C(e,t){let[n,r]=epochNanoToSecMod(e),i=this.oe.C(n+(t>0||r?1:0),t);if(i!==void 0)return BigInt(i)*M}};function getCurrentEpochSec(){return Math.floor(Date.now()/1e3)}function createSplitTuple(e,t){return[e,t]}function computePeriod(e,t){let n=Math.floor(e/t)*t;return[n,n+t]}function clampIntlSampleEpochSec(e){return Se(e,-1e10,864e10)}function refineMaybeZonedDateTimeObjectLike(e,t,n){let r=readAndRefineBagFields(n,getCalendarFieldNames(t,Je,Ye),ht,[],0),i=r.timeZone!==void 0,[a,o]=refineCalendarDateFields(r,t),s=createDateFromRefinedFields(r,t,a,o,0);if(i){let n=resolveTimeFields(r),i=queryTimeZone(e(r.timeZone));return{epochNanoseconds:getMatchingInstantFor(i,combineDateAndTime(s,n),r.offset),timeZone:i,calendar:t}}return s}function refineZonedDateTimeObjectLike(e,t,n,r){let i=readAndRefineBagFields(n,getCalendarFieldNames(t,Je,Ye),ht,Fe,0),a=e(i.timeZone),[o,s]=refineCalendarDateFields(i,t),[c,l,u]=refineZonedFieldOptions(r),d=createDateFromRefinedFields(i,t,o,s,c),f=resolveTimeFields(i,c),p=queryTimeZone(a);return createZonedEpochNanoSlots(getMatchingInstantFor(p,combineDateAndTime(d,f),i.offset,l,u),p,t)}function refinePlainDateTimeObjectLike(e,t,n){let r=readAndRefineBagFields(t,getCalendarFieldNames(e,We,Ge),mt,[],0),[i,a]=refineCalendarDateFields(r,e),o=refineOverflowOptions(n);return createDateTimeFromRefinedFields(createDateFromRefinedFields(r,e,i,a,o),resolveTimeFields(r,o),e)}function refinePlainDateObjectLike(e,t,n,r=[]){let i=readAndRefineBagFields(t,getCalendarFieldNames(e,z,B),K,r),[a,o]=refineCalendarDateFields(i,e);return createDateFromRefinedFields(i,e,a,o,refineOverflowOptions(n))}function refinePlainYearMonthObjectLike(e,t,n,r){let i=readAndRefineBagFields(t,getCalendarFieldNames(e,L,Ve),K,r),[a,o]=refineCalendarDateFields(i,e,1);return createYearMonthFromRefinedFields(i,e,a,o,refineOverflowOptions(n))}function refinePlainMonthDayObjectLike(e,t,n,r){let i=readAndRefineBagFields(n,getCalendarFieldNames(e,z,B),K,F,0);t&&i.month!==void 0&&i.monthCode===void 0&&i.year===void 0&&(i.year=1972);let[a,o]=refineMonthDayFields(i,e);return createMonthDayFromRefinedFields(i,e,a,o,refineOverflowOptions(r))}function refinePlainTimeObjectLike(e,t){return resolveTimeFields(readAndRefineBagFields(e,ze,ft,[],1),refineOverflowOptions(t))}function refineDurationObjectLike(e){let t=readAndRefineBagFields(e,et,pt);return createDurationSlots(validateDurationFields({...U,...t}))}function throwFailedParse(e){throwRangeError(failedParse(e))}function parseInstant(e){let t=parseDateTimeLike(e=W(toPrimitiveWithStringHint(e))),n;return t||throwFailedParse(e),t.F?n=0:t.offset?n=parseOffsetNano(t.offset):throwFailedParse(e),t.timeZoneId&&parseOffsetNanoMaybe(t.timeZoneId,1),validateIsoDateTimeFields(t),createEpochNanoSlots(isoDateTimeAndOffsetToEpochNano(t,n))}function parseRelativeToSlots(e,t){let n=parseDateTimeLike(W(e));return n||throwFailedParse(e),n.timeZoneId?finalizeZonedDateTime(n,t,void 0):(n.F&&throwFailedParse(e),finalizeDate(n,t))}function parseZonedDateTime(e,t,n){let r=parseDateTimeLike(W(e));return r&&r.timeZoneId||throwFailedParse(e),finalizeZonedDateTime(r,t,n)}function parsePlainDateTime(e,t){let n=parseDateTimeLike(W(e));return n&&!n.F||throwFailedParse(e),finalizeDateTime(n,t)}function parsePlainDate(e,t){let n=finalizeDateLike(parsePlainDateLike(W(e)),void 0,t);return createDateSlots(n,n.calendar)}function parsePlainYearMonth(e,t){let n=parseYearMonthOnly(W(e));if(n)return requireIsoCalendar(n),createDateSlots(checkIsoYearMonthInBounds(validateIsoDateFields(n)),t(n.calendarId));let r=finalizeDateLike(parsePlainDateLike(e),projectIsoYearMonthDate,t),{calendar:i}=r;return createDateSlots(moveToStartOfMonth(i,r),i)}function requireIsoCalendar(e){e.calendarId!==`iso8601`&&throwRangeError(invalidSubstring(e.calendarId))}function parsePlainMonthDay(e,t){let n=parseMonthDayOnly(W(e));if(n)return requireIsoCalendar(n),createDateSlots(validateIsoDateFields(n),t(n.calendarId));let r=finalizeDateLike(parsePlainDateLike(e),projectIsoMonthDayDate,t),{calendar:i}=r,{year:a,month:o,day:s}=computeCalendarDateFields(i,r),[c,l]=computeCalendarMonthCodeParts(i,a,o),{year:u,month:d}=((e,t,n,r)=>{let i=e?e.u(t,n,r):computeIsoYearMonthFieldsForMonthDay(t,n);return i||throwRangeError(`Cannot guess year`),i})(i,c,l,s);return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(i,u,d,s)),i)}function parsePlainTime(e){let t=(e=>{let t=parseTimeOnlyParts(e);return t?(organizeAnnotationParts(t[13]),organizeTimeParts(t,1)):void 0})(e=W(e));if(!t){let n=parseDateTimeLike(e);n&&n.te||throwFailedParse(e),n.F&&throwRangeError(invalidSubstring(`Z`)),requireIsoCalendar(n),t=n}let n;return(n=parseYearMonthOnly(e))&&isIsoDateFieldsValid(n)&&throwFailedParse(e),(n=parseMonthDayOnly(e))&&isIsoDateFieldsValid(n)&&throwFailedParse(e),createTimeSlots(validateTimeFields(t))}function parseDuration(e){let t=At.exec(W(e));return t||throwFailedParse(e),createDurationSlots(validateDurationFields((e=>{let t=0,n=0,r=0,i={years:parseUnit(e[2]),months:parseUnit(e[3]),weeks:parseUnit(e[4]),days:parseUnit(e[5]),hours:parseUnit(e[6],e[7],5),minutes:parseUnit(e[8],e[9],4),seconds:parseUnit(e[10],e[11],3),...nanoToGivenFields(r,2,H)};return t||throwRangeError(noValidFields(H)),parseSign(e[1])<0&&(i=negateDurationFields(i)),i;function parseUnit(e,i,a){let o=0,s=0;return a&&([o,r]=divModFloor(r,A[a])),e!==void 0&&(n&&throwRangeError(invalidSubstring(e)),s=(e=>{let t=parseInt(e);return Number.isFinite(t)||throwRangeError(invalidSubstring(e)),t})(e),t=1,i&&(r=parseSubsecNano(i)*(A[a]/E),n=1)),o+s}})(t)))}function parseCalendarId(e){let t=parseDateTimeLike(e)||parseYearMonthOnly(e)||parseMonthDayOnly(e);if(t)return t.calendarId;let n=parseTimeOnlyParts(e);return n?organizeAnnotationParts(n[13]).calendarId:e}function parseTimeZoneId(e){let t=parseDateTimeLike(e);return t&&(t.timeZoneId||t.F&&`UTC`||t.offset)||e}function parsePlainDateLike(e){let t=parseDateTimeLike(e);return t&&!t.F||throwFailedParse(e),t}function finalizeDateLike(e,t,n){return t&&e.calendarId===`iso8601`?(validateIsoDateFields(e),e.te&&validateTimeFields(e),finalizeDate(t(e),n)):e.te?finalizeDateTime(e,n):finalizeDate(e,n)}function projectIsoYearMonthDate(e){let t=12*e.year+e.month===lt?20:1;return{...e,day:t}}function projectIsoMonthDayDate(e){return{...e,year:1972}}function finalizeZonedDateTime(e,t,n){let r=queryTimeZone(resolveTimeZoneId(e.timeZoneId)),i;if(validateIsoDateTimeFields(e),e.te){let t=e.offset?parseOffsetNano(e.offset):void 0,[,o,s]=refineZonedFieldOptions(n);i=getMatchingInstantFor(r,e,t,o,s,!(r.Z||e.offset===void 0||(a=e.offset,a.replace(/\D/g,``).length>4)),e.F)}else refineZonedFieldOptions(n),i=getStartOfDayInstantFor(r,e);var a;return checkEpochNanoInBounds(i),createZonedEpochNanoSlots(i,r,t(e.calendarId))}function finalizeDateTime(e,t){return validateIsoDateTimeFields(e),checkIsoDateTimeInBounds(e),{...combineDateAndTime(e,e),calendar:t(e.calendarId)}}function finalizeDate(e,t){return validateIsoDateFields(e),checkIsoDateInBounds(e),{calendar:t(e.calendarId),year:e.year,month:e.month,day:e.day}}function timeRegExpStr(e){return`(\\d{2})(?:(:?)(\\d{2})(?:\\${e}(\\d{2})(?:[.,](\\d{1,9}))?)?)?`}var wt=`(?:(?:([+-])(\\d{6}))|(\\d{4}))(-?)(\\d{2})\\4(\\d{2})(?:[T ]`+timeRegExpStr(8)+`(Z|([+-])`+timeRegExpStr(15)+`)?)?`,Tt=createRegExp(`(?:(?:([+-])(\\d{6}))|(\\d{4}))-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})`),Et=createRegExp(`(?:--)?(\\d{2})-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})`),Dt=createRegExp(wt+`((?:\\[(!?)([^\\]]*)\\]){0,9})`),Ot=createRegExp(`T?`+timeRegExpStr(2)+`(([+-])${timeRegExpStr(9)})?((?:\\[(!?)([^\\]]*)\\]){0,9})`),kt=RegExp(`\\[(!?)([^\\]]*)\\]`,`g`),At=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)?)?`);function parseDateTimeLike(e){let t=Dt.exec(e);return t?(e=>{let t=e[12],n=(t||``).toUpperCase()===`Z`;return{year:organizeIsoYearParts(e),month:parseInt(e[5]),day:parseInt(e[6]),...organizeTimeParts(e,7),...organizeAnnotationParts(e[19]),te:!!e[7],F:n,offset:n?void 0:t}})(t):void 0}function parseYearMonthOnly(e){let t=Tt.exec(e);if(t)return(e=>({year:organizeIsoYearParts(e),month:parseInt(e[4]),day:1,...organizeAnnotationParts(e[5])}))(t)}function parseMonthDayOnly(e){let t=Et.exec(e);return t?(e=>({year:1972,month:parseInt(e[1]),day:parseInt(e[2]),...organizeAnnotationParts(e[3])}))(t):void 0}function parseTimeOnlyParts(e){let t=Ot.exec(e);if(t)return t[6]&&parseOffsetNano(t[6]),t}function organizeTimeParts(e,t){let n=parseInt0(e[t+3]);return{...nanoToTimeAndDay(parseSubsecNano(e[t+4]||``))[0],hour:parseInt0(e[t]),minute:parseInt0(e[t+2]),second:n===60?59:n}}function organizeIsoYearParts(e){let t=parseSign(e[1]),n=parseInt(e[2]||e[3]);return t<0&&!n&&throwRangeError(invalidSubstring(-0)),t*n}function organizeAnnotationParts(e){let t,n,r=[];return e.replace(kt,(e,i,a)=>{let o=!!i,[s,c]=a.split(`=`).reverse();return c?c===`u-ca`?(r.push(s.toLowerCase()),t||=o):(o||/[A-Z]/.test(c))&&throwRangeError(invalidSubstring(e)):(n&&throwRangeError(invalidSubstring(e)),n=s),``}),r.length>1&&t&&throwRangeError(invalidSubstring(e)),{timeZoneId:n,calendarId:r[0]||`iso8601`}}function mergeCalendarFields(e,t,n){let r=Object.assign(Object.create(null),t);return spliceFields(r,n,Le),getCalendarEraOrigins(e)&&(spliceFields(r,n,Ie),e&&e.je&&spliceFields(r,n,Re,I)),r}function spliceFields(e,t,n,r){let i=0,a=[];for(let e of n)t[e]===void 0?a.push(e):i=1;if(Object.assign(e,t),i)for(let t of r||a)delete e[t]}function mergeZonedDateTimeFields(e,t,n){let r=getCalendarFieldNames(e,Ke,qe),i=G(t),{year:a,month:o,day:s}=computeCalendarDateFields(e,i),c={year:a,monthCode:computeMonthCode(e,a,o),day:s,hour:i.hour,minute:i.minute,second:i.second,millisecond:i.millisecond,microsecond:i.microsecond,nanosecond:i.nanosecond,offset:i.offsetNanoseconds},l=readAndRefineBagFields(n,r,ht),u=mergeCalendarFields(e,c,l);return[{...c,...l},u]}function mergeDateTimeFields(e,t,n){let r=getCalendarFieldNames(e,We,Ge),{year:i,month:a,day:o}=computeCalendarDateFields(e,t),s={year:i,monthCode:computeMonthCode(e,i,a),day:o,hour:t.hour,minute:t.minute,second:t.second,millisecond:t.millisecond,microsecond:t.microsecond,nanosecond:t.nanosecond},c=readAndRefineBagFields(n,r,mt),l=mergeCalendarFields(e,s,c);return[{...s,...c},l]}function mergeDateFields(e,t,n){let r=getCalendarFieldNames(e,z,B),{year:i,month:a,day:o}=computeCalendarDateFields(e,t);return mergeCalendarFields(e,{year:i,monthCode:computeMonthCode(e,i,a),day:o},readAndRefineBagFields(n,r,K))}function mergeYearMonthFields(e,t,n){let r=getCalendarFieldNames(e,L,Ve),{year:i,month:a}=computeCalendarDateFields(e,t);return mergeCalendarFields(e,{year:i,monthCode:computeMonthCode(e,i,a)},readAndRefineBagFields(n,r,K))}function mergeMonthDayFields(e,t,n){let r=getCalendarFieldNames(e,z,B),{year:i,month:a,day:o}=computeCalendarDateFields(e,t);return mergeCalendarFields(e,{monthCode:computeMonthCode(e,i,a),day:o},readAndRefineBagFields(n,r,K))}function createZonedDateTimeFromMergedFields(e,t,n,r,i,a,o,s){let{calendar:c,timeZone:l}=e;return createZonedEpochNanoSlots(getMatchingInstantFor(l,combineDateAndTime(createDateFromRefinedFields(n,c,r,i,a),constrainTimeFields(t,a)),t.offset,o,s),l,c)}function createDateTimeFromMergedFields(e,t,n,r,i,a){return createDateTimeFromRefinedFields(createDateFromRefinedFields(t,n,r,i,a),constrainTimeFields(e,a),n)}function mergeTimeFields(e,t){return{...pluckProps(ze,e),...readAndRefineBagFields(t,ze,ft)}}function mergeDurationFields(e,t){return createDurationSlots((n=e,r=t,validateDurationFields({...n,...readAndRefineBagFields(r,et,pt)})));var n,r}function computeMonthCode(e,t,n){let[r,i]=computeCalendarMonthCodeParts(e,t,n);return formatMonthCode(r,i)}function totalDuration(e,t,n){let[r,i]=refineTotalOptions(n,e),a=getMaxDurationUnit(t),o=Math.max(r,a),s=i&&isZonedEpochSlots(i);if(!i&&isUniformUnit(o,s))return totalDayTimeDuration(t,r);if(i||throwRangeError(`Missing relativeTo`),!t.sign&&(!s||r<6))return 0;let[c,l,u]=spanRelativeDuration(i,t,r);return isUniformUnit(r,s)?totalDayTimeDuration(c,r):((e,t,n,r)=>{let i=H[n],a=at(n,e);return totalRelativeUnit(e[i],computeDurationSign(e)||1,t,e=>(a[i]=e,moveRelativeMarkerToEpochNano(r,a)))})(c,l,r,u)}function totalDayTimeDuration(e,t){return divideBigNanoToExactNumber(durationDayTimeToBigNano(e),A[t])}function instantToZonedDateTime(e,t,n){return createZonedEpochNanoSlots(e.epochNanoseconds,t,n)}function zonedDateTimeToInstant(e){return createEpochNanoSlots(e.epochNanoseconds)}function zonedDateTimeToDateTime(e){return createDateTimeSlots(G(e),e.calendar)}function zonedDateTimeToDate(e){return createDateSlots(G(e),e.calendar)}function zonedDateTimeToTime(e){return createTimeSlots(G(e))}function dateTimeToZonedDateTime(e,t,n){return createZonedEpochNanoSlots(checkEpochNanoInBounds(getSingleInstantFor(t,e,n)),t,e.calendar)}function dateToZonedDateTime(e,t,n){let r;return r=n?getSingleInstantFor(t,combineDateAndTime(e,n)):getStartOfDayInstantFor(t,combineDateAndTime(e,V)),createZonedEpochNanoSlots(r,t,e.calendar)}function yearMonthToDate(e,t,n){return mergeFieldsIntoDate(e,pluckProps(getCalendarFieldNames(e,R,He),t),readAndRefineBagFields(requireObjectLike(n),F,K,[]))}function monthDayToDate(e,t,n){let r=getCalendarFieldNames(e,Me,Be);return mergeFieldsIntoDate(e,pluckProps(Ue,t),readAndRefineBagFields(requireObjectLike(n),r,K,[]))}function fieldsToMonthDay(e,t){let n=readAndRefineBagFields(t,Ue,K),[r,i]=refineMonthDayFields(n,e);return createMonthDayFromRefinedFields(n,e,r,i,0)}function fieldsToYearMonth(e,t){let n=readAndRefineBagFields(t,getCalendarFieldNames(e,R,He),K),[r,i]=refineCalendarDateFields(n,e,1);return createYearMonthFromRefinedFields(n,e,r,i,0)}function mergeFieldsIntoDate(e,t,n){let r=getCalendarFieldNames(e,Xe,Ze),i=mergeCalendarFields(e,t,n);i=readAndRefineBagFields(i,r,K,[]);let[a,o]=refineCalendarDateFields(i,e);return createDateFromRefinedFields(i,e,a,o,0)}function epochMilliToInstant(e){return createEpochNanoSlots(checkEpochNanoInBounds(BigInt(toStrictInteger(e))*j))}function epochNanoToInstant(e){return createEpochNanoSlots(checkEpochNanoInBounds(toBigInt(e)))}function applyPlainFormatTimeZone(e){return e.timeZone=`UTC`,[`full`,`long`].includes(e.timeStyle)&&(e.timeStyle=`medium`),e}function applyZonedFormatTimeZone(e,t){return e.timeZone!==void 0&&throwTypeError(`Cannot specify TimeZone`),e.timeZone=t,e}function checkResolvedCalendarCompatible(e,t,n){let r=e.resolvedOptions().calendar;!n&&t.calendar===void 0||getCalendarSlotId(t.calendar)===r||throwRangeError(`Mismatching Calendars`)}function createOptionsTransformer(e,t,n,r,i){let a=new Set(e),o=new Set(t),s=new Set(n);return(e,t)=>{let n,c,l={},u={},d={},f=0,p=0;for(let t of Object.keys(e)){let r=e[t];r===void 0||s.has(t)||(a.has(t)?t===`dateStyle`?n=r:t===`timeStyle`?c=r:l[t]=r:t===`era`?u[t]=r:o.has(t)?t===`dateStyle`||t===`timeStyle`?p=1:f=1:d[t]=r)}let m=n!==void 0,h=c!==void 0,g=m||h,ee=Object.keys(l).length>0,te=f||p,_=ee||m||h,ne=Object.keys(u).length>0;(!t&&te||t&&te&&!_||g&&(ee||ne||f))&&throwTypeError(`Invalid formatting options`);let v={};return g||_||Object.assign(v,r),Object.assign(v,l,u,d),m&&(i?Object.assign(v,i[n]):v.dateStyle=n),h&&(v.timeStyle=c),v}}var jt={year:`numeric`,month:`numeric`,day:`numeric`},Mt={hour:`numeric`,minute:`numeric`,second:`numeric`},Nt=Object.assign({},jt,Mt),Pt=[`weekday`,`year`,`month`,`day`,`dateStyle`],J=[`dayPeriod`,`hour`,`minute`,`second`,`fractionalSecondDigits`,`timeStyle`],Ft=Pt.concat(J),It=[`weekday`,`day`].concat(J),Lt=[`weekday`,`year`].concat(J),Rt=createOptionsTransformer(Ft,[],[],Nt),zt=createOptionsTransformer(Ft,[],[],{...Nt,timeZoneName:`short`}),Bt=createOptionsTransformer(Ft,[],[`timeZoneName`],Nt),Vt=createOptionsTransformer(Pt,J,[`timeZoneName`],jt),Ht=createOptionsTransformer(J,Pt,[`timeZoneName`,`era`],Mt),Ut=createOptionsTransformer([`year`,`month`,`dateStyle`],It,[`timeZoneName`],{year:`numeric`,month:`numeric`},{full:{year:`numeric`,month:`long`},long:{year:`numeric`,month:`long`},medium:{year:`numeric`,month:`short`},short:{year:`2-digit`,month:`numeric`}}),Wt=createOptionsTransformer([`month`,`day`,`dateStyle`],Lt,[`timeZoneName`,`era`],{month:`numeric`,day:`numeric`},{full:{month:`long`,day:`numeric`},long:{month:`long`,day:`numeric`},medium:{month:`short`,day:`numeric`},short:{month:`numeric`,day:`numeric`}});function zonedDateTimeWithPlainTime(e,t){let{timeZone:n}=e,r=G(e),{offsetNanoseconds:i}=r,a=t||V,o;return o=t?getMatchingInstantFor(n,combineDateAndTime(r,a),i,2):getStartOfDayInstantFor(n,combineDateAndTime(r,a)),createZonedEpochNanoSlots(o,n,e.calendar)}function getCurrentIsoDateTime(e){let t=getCurrentEpochNano(),n=e.B(t);return epochNanoToIsoDateTime(t+BigInt(n))}function getCurrentEpochNano(){return BigInt(Date.now())*j}function getCurrentTimeZoneId(){return new q().resolvedOptions().timeZone}var Gt=`PlainYearMonth`,Kt=`PlainMonthDay`,qt=`PlainDate`,Jt=`PlainDateTime`,Yt=`PlainTime`,Xt=`ZonedDateTime`,Zt=`Instant`,Qt=`Duration`;function defineTemporalClass(e,t,n,...r){return Object.defineProperties(t,createNameDescriptors(e)),Object.defineProperties(t.prototype,createStringTagDescriptors(`Temporal.`+e)),Object.defineProperties(t.prototype,mapProps(e=>({get(){return e(n(this))},configurable:1}),Object.assign({},...r))),t}var Y=noop.name===`noop`?e=>{Object.defineProperty(e,"_str_",{value:e.toJSON()})}:noop;function invalidRecordType(){throwTypeError(xe)}function forbiddenValueOf(){throwTypeError(be)}var $t={era(e){return computeCalendarEraFields(e.calendar,e).era},eraYear(e){return computeCalendarEraFields(e.calendar,e).eraYear},year(e){return computeCalendarDateFields(e.calendar,e).year},month(e){return computeCalendarDateFields(e.calendar,e).month},monthCode(e){return computeCalendarMonthCode(e.calendar,e)}},en={era(e){return computeCalendarEraFields(e.calendar,e).era},eraYear(e){return computeCalendarEraFields(e.calendar,e).eraYear},year(e){return computeCalendarDateFields(e.calendar,e).year},month(e){return computeCalendarDateFields(e.calendar,e).month},monthCode(e){return computeCalendarMonthCode(e.calendar,e)},day(e){return computeCalendarDateFields(e.calendar,e).day}},tn={monthCode(e){return computeCalendarMonthCode(e.calendar,e)},day(e){return computeCalendarDateFields(e.calendar,e).day}},nn={daysInMonth(e){return computeCalendarDaysInMonth(e.calendar,e)},daysInYear(e){return computeCalendarDaysInYear(e.calendar,e)},monthsInYear(e){return computeCalendarMonthsInYear(e.calendar,e)},inLeapYear(e){return computeCalendarInLeapYear(e.calendar,e)}},rn={dayOfWeek(e){return computeIsoDayOfWeek(e)},dayOfYear(e){return computeCalendarDayOfYear(e.calendar,e)},weekOfYear(e){return computeCalendarWeekOfYear(e.calendar,e)},yearOfWeek(e){return computeCalendarYearOfWeek(e.calendar,e)},daysInWeek(){return 7},daysInMonth(e){return computeCalendarDaysInMonth(e.calendar,e)},daysInYear(e){return computeCalendarDaysInYear(e.calendar,e)},monthsInYear(e){return computeCalendarMonthsInYear(e.calendar,e)},inLeapYear(e){return computeCalendarInLeapYear(e.calendar,e)}};function diffInstants(e,t,n,r){let[i,a,o,s]=refineDiffOptions(e,r,3,5);return createDiffDurationSlots(e,diffEpochNanosRounded(t.epochNanoseconds,n.epochNanoseconds,i,a,o,s))}function diffZonedDateTimes(e,t,n,r){let i=getCommonCalendar(t.calendar,n.calendar),[a,o,s,c]=refineDiffOptions(e,r,5);return createDiffDurationSlots(e,diffZonedDateTimesRounded(i,t,n,a,o,s,c))}function diffDateTimes(e,t,n,r){let i=getCommonCalendar(t.calendar,n.calendar),[a,o,s,c]=refineDiffOptions(e,r,6);return createDiffDurationSlots(e,diffDateTimesRounded(i,t,n,a,o,s,c))}function diffDates(e,t,n,r){let i=getCommonCalendar(t.calendar,n.calendar),[a,o,s,c]=refineDiffOptions(e,r,6,9,6);return createDiffDurationSlots(e,diffDatesRounded(i,t,n,a,o,s,c))}function diffYearMonths(e,t,n,r){let i=getCommonCalendar(t.calendar,n.calendar),[a,o,s,c]=refineDiffOptions(e,r,9,9,8);return createDiffDurationSlots(e,diffYearMonthsRounded(i,t,n,a,o,s,c))}function diffTimes(e,t,n,r){let[i,a,o,s]=refineDiffOptions(e,r,5,5);return createDiffDurationSlots(e,diffTimesRounded(t,n,i,a,o,s))}function createDiffDurationSlots(e,t){return createDurationSlots(e?negateDurationFields(t):t)}function withDateFields(e,t,n){let{calendar:r}=e,i=mergeDateFields(r,e,t),[a,o]=refineCalendarDateFields(i,r);return createDateFromRefinedFields(i,r,a,o,refineOverflowOptions(n))}function withDateTimeFields(e,t,n){let{calendar:r}=e,[i,a]=mergeDateTimeFields(r,e,t),[o,s]=refineCalendarDateFields(a,r);return createDateTimeFromMergedFields(i,a,r,o,s,refineOverflowOptions(n))}function withYearMonthFields(e,t,n){let{calendar:r}=e,i=mergeYearMonthFields(r,e,t),[a,o]=refineCalendarDateFields(i,r,1);return createYearMonthFromRefinedFields(i,r,a,o,refineOverflowOptions(n))}function withMonthDayFields(e,t,n){let{calendar:r}=e,i=mergeMonthDayFields(r,e,t),[a,o]=refineMonthDayFields(i,r);return createMonthDayFromRefinedFields(i,r,a,o,refineOverflowOptions(n))}function withTimeFields(e,t,n){return resolveTimeFields(mergeTimeFields(e,t),refineOverflowOptions(n))}function withZonedDateTimeFields(e,t,n){let{calendar:r}=e,[i,a]=mergeZonedDateTimeFields(r,e,t),[o,s]=refineCalendarDateFields(a,r),[c,l,u]=refineZonedFieldOptions(n,2);return createZonedDateTimeFromMergedFields(e,i,a,o,s,c,l,u)}function resolveBasicCalendarId(e){let t=W(e).toLowerCase();return t===`iso8601`?void 0:t===`gregory`?0:void throwRangeError(exoticCalendarRequired(e,`temporal-polyfill/full`))}function resolveBasicCalendarArg(e=Ce){return resolveBasicCalendarId(e)}var an=new WeakMap,on=defineTemporalClass(Xt,class{constructor(e,t,n=void 0){let r=checkEpochNanoInBounds(toBigInt(e)),i=queryTimeZone(refineTimeZoneId(t)),a=resolveBasicCalendarArg(n);initZonedDateTime(this,createZonedEpochNanoSlots(r,i,a))}static from(e,t=void 0){return createZonedDateTime(toZonedDateTimeSlots(e,t))}static compare(e,t){return compareZonedEpochSlots(toZonedDateTimeSlots(e),toZonedDateTimeSlots(t))}get calendarId(){return getCalendarSlotId(getZonedDateTimeSlots(this).calendar)}get timeZoneId(){return getZonedDateTimeSlots(this).timeZone.id}get epochMilliseconds(){return epochNanoToMilli(getZonedDateTimeSlots(this).epochNanoseconds)}get epochNanoseconds(){return getZonedDateTimeSlots(this).epochNanoseconds}get offset(){return formatOffsetNano(G(getZonedDateTimeSlots(this)).offsetNanoseconds)}get offsetNanoseconds(){return G(getZonedDateTimeSlots(this)).offsetNanoseconds}get hoursInDay(){return computeZonedHoursInDay(getZonedDateTimeSlots(this))}with(e,t=void 0){return createZonedDateTime(withZonedDateTimeFields(getZonedDateTimeSlots(this),validateBag(e),t))}withCalendar(e){return createZonedDateTime({...getZonedDateTimeSlots(this),calendar:refineCalendarArg(e)})}withTimeZone(e){return createZonedDateTime({...getZonedDateTimeSlots(this),timeZone:queryTimeZone(refineTimeZoneArg(e))})}withPlainTime(e=void 0){return createZonedDateTime(zonedDateTimeWithPlainTime(getZonedDateTimeSlots(this),optionalToPlainTimeFields(e)))}add(e,t=void 0){return createZonedDateTime(moveZonedEpochSlots(getZonedDateTimeSlots(this),toDurationSlots(e),refineOverflowOptions(t)))}subtract(e,t=void 0){return createZonedDateTime(moveZonedEpochSlots(getZonedDateTimeSlots(this),negateDurationFields(toDurationSlots(e)),refineOverflowOptions(t)))}until(e,t=void 0){return createDuration(diffZonedDateTimes(0,getZonedDateTimeSlots(this),toZonedDateTimeSlots(e),t))}since(e,t=void 0){return createDuration(diffZonedDateTimes(1,getZonedDateTimeSlots(this),toZonedDateTimeSlots(e),t))}round(e){let t=getZonedDateTimeSlots(this),[n,r,i]=refineRoundingOptions(e);return createZonedDateTime(roundZonedEpochSlotsToUnit(t,n,r,i))}startOfDay(){return createZonedDateTime(computeZonedStartOfDay(getZonedDateTimeSlots(this)))}equals(e){return zonedDateTimesEqual(getZonedDateTimeSlots(this),toZonedDateTimeSlots(e))}toInstant(){return createInstant(zonedDateTimeToInstant(getZonedDateTimeSlots(this)))}toPlainDateTime(){return createPlainDateTime(zonedDateTimeToDateTime(getZonedDateTimeSlots(this)))}toPlainDate(){return createPlainDate(zonedDateTimeToDate(getZonedDateTimeSlots(this)))}toPlainTime(){return createPlainTime(zonedDateTimeToTime(getZonedDateTimeSlots(this)))}toLocaleString(e=void 0,t={}){let n=getZonedDateTimeSlots(this),r=new q(e,applyZonedFormatTimeZone(zt(t),getZonedTimeZoneId(n)));return checkResolvedCalendarCompatible(r,n),r.format(epochNanoToMilli(n.epochNanoseconds))}toString(e=void 0){return formatZonedDateTimeIso(getZonedDateTimeSlots(this),e)}toJSON(){return formatZonedDateTimeIso(getZonedDateTimeSlots(this))}getTimeZoneTransition(e){let t=getZonedDateTimeSlots(this),n=t.timeZone.C(t.epochNanoseconds,refineDirectionOptions(e));return n===void 0?null:createZonedDateTime({...t,epochNanoseconds:n})}valueOf(){return forbiddenValueOf()}},getZonedDateTimeIsoSlots,en,rn,je);function createZonedDateTime(e){return initZonedDateTime(Object.create(on.prototype),e)}function getZonedDateTimeSlots(e){return getZonedDateTimeSlotsIfPresent(e)||invalidRecordType()}function getZonedDateTimeIsoSlots(e){let t=getZonedDateTimeSlots(e);return{...G(t),calendar:t.calendar}}function getZonedDateTimeSlotsIfPresent(e){return an.get(e)}function toZonedDateTimeSlots(e,t){if(S(e)){let n=getZonedDateTimeSlotsIfPresent(e);return n?(refineZonedFieldOptions(t),n):refineZonedDateTimeObjectLike(refineTimeZoneArg,getCalendarFromBag(e),e,t)}return parseZonedDateTime(e,resolveBasicCalendarId,t)}function initZonedDateTime(e,t){return an.set(e,t),Y(e),e}function refineTimeZoneArg(e){if(S(e)){let t=getZonedDateTimeSlotsIfPresent(e);return t||throwTypeError(invalidTimeZone(e)),t.timeZone.id}return(e=>resolveTimeZoneId(parseTimeZoneId(W(e))))(e)}var sn=new WeakMap,cn=defineTemporalClass(Zt,class{constructor(e){let t=checkEpochNanoInBounds(toBigInt(e));initInstant(this,createEpochNanoSlots(t))}static from(e){return createInstant(toInstantSlots(e))}static fromEpochMilliseconds(e){return createInstant(epochMilliToInstant(e))}static fromEpochNanoseconds(e){return createInstant(epochNanoToInstant(e))}static compare(e,t){return compareZonedEpochSlots(toInstantSlots(e),toInstantSlots(t))}get epochMilliseconds(){return epochNanoToMilli(getInstantSlots(this).epochNanoseconds)}get epochNanoseconds(){return getInstantSlots(this).epochNanoseconds}add(e){return createInstant(createEpochNanoSlots(moveEpochNano(getInstantSlots(this).epochNanoseconds,toDurationSlots(e))))}subtract(e){return createInstant(createEpochNanoSlots(moveEpochNano(getInstantSlots(this).epochNanoseconds,negateDurationFields(toDurationSlots(e)))))}until(e,t=void 0){return createDuration(diffInstants(0,getInstantSlots(this),toInstantSlots(e),t))}since(e,t=void 0){return createDuration(diffInstants(1,getInstantSlots(this),toInstantSlots(e),t))}round(e){let t=getInstantSlots(this),[n,r,i]=refineRoundingOptions(e,5,1);return createInstant(createEpochNanoSlots(roundBigNanoToDayOriginInc(t.epochNanoseconds,computeBigNanoInc(n,r),i)))}equals(e){return instantsEqual(getInstantSlots(this),toInstantSlots(e))}toZonedDateTimeISO(e){return createZonedDateTime(instantToZonedDateTime(getInstantSlots(this),queryTimeZone(refineTimeZoneArg(e))))}toLocaleString(e=void 0,t={}){let n=getInstantSlots(this);return new q(e,Rt(t)).format(epochNanoToMilli(n.epochNanoseconds))}toString(e=void 0){return formatInstantIso(refineTimeZoneArg,getInstantSlots(this),e)}toJSON(){return formatInstantIso(refineTimeZoneArg,getInstantSlots(this))}valueOf(){return forbiddenValueOf()}});function createInstant(e){return initInstant(Object.create(cn.prototype),e)}function getInstantSlots(e){return getInstantSlotsIfPresent(e)||invalidRecordType()}function getInstantSlotsIfPresent(e){return sn.get(e)}function toInstantSlots(e){if(S(e)){let t=getInstantSlotsIfPresent(e);if(t)return t;let n=getZonedDateTimeSlotsIfPresent(e);if(n)return createEpochNanoSlots(n.epochNanoseconds)}return parseInstant(e)}var{toTemporalInstant:ln}={toTemporalInstant(){let e=Date.prototype.valueOf.call(this);return createInstant(createEpochNanoSlots(BigInt(requireNumberIsInteger(e))*j))}};function initInstant(e,t){return sn.set(e,t),Y(e),e}var un=new WeakMap,dn=defineTemporalClass(Kt,class{constructor(e,t,n=void 0,r){let i=toIntegerWithTrunc(e),a=toIntegerWithTrunc(t),o=resolveBasicCalendarArg(n),s=checkIsoDateInBounds(validateIsoDateFields({year:toIntegerWithTrunc(r??1972),month:i,day:a}));initPlainMonthDay(this,createDateSlots(s,o))}static from(e,t=void 0){return createPlainMonthDay(toPlainMonthDaySlots(e,t))}get calendarId(){return getCalendarSlotId(getPlainMonthDaySlots(this).calendar)}with(e,t=void 0){return createPlainMonthDay(withMonthDayFields(getPlainMonthDaySlots(this),validateBag(e),t))}equals(e){return plainMonthDaysEqual(getPlainMonthDaySlots(this),toPlainMonthDaySlots(e))}toPlainDate(e){return createPlainDate(monthDayToDate(getPlainMonthDaySlots(this).calendar,this,e))}toLocaleString(e=void 0,t={}){let n=getPlainMonthDaySlots(this),r=new q(e,applyPlainFormatTimeZone(Wt(t)));return checkResolvedCalendarCompatible(r,n,1),r.format(isoDateToEpochMilli(n))}toString(e=void 0){return formatPlainMonthDayIso(getPlainMonthDaySlots(this),e)}toJSON(){return formatPlainMonthDayIso(getPlainMonthDaySlots(this))}valueOf(){return forbiddenValueOf()}},getPlainMonthDaySlots,tn);function createPlainMonthDay(e){return initPlainMonthDay(Object.create(dn.prototype),e)}function getPlainMonthDaySlots(e){return getPlainMonthDaySlotsIfPresent(e)||invalidRecordType()}function getPlainMonthDaySlotsIfPresent(e){return un.get(e)}function toPlainMonthDaySlots(e,t){if(S(e)){let n=getPlainMonthDaySlotsIfPresent(e);if(n)return refineOverflowOptions(t),n;let r=extractCalendarFromBag(e);return refinePlainMonthDayObjectLike(r===void 0?void 0:r,r===void 0,e,t)}let n=parsePlainMonthDay(e,resolveBasicCalendarId);return refineOverflowOptions(t),n}function initPlainMonthDay(e,t){return un.set(e,t),Y(e),e}var pn=new WeakMap,mn=defineTemporalClass(Gt,class{constructor(e,t,n=void 0,r){let i=toIntegerWithTrunc(e),a=toIntegerWithTrunc(t),o=resolveBasicCalendarArg(n),s=checkIsoYearMonthInBounds(validateIsoDateFields({year:i,month:a,day:toIntegerWithTrunc(r??1)}));initPlainYearMonth(this,createDateSlots(s,o))}static from(e,t=void 0){return createPlainYearMonth(toPlainYearMonthSlots(e,t))}static compare(e,t){return compareIsoDateFields(toPlainYearMonthSlots(e),toPlainYearMonthSlots(t))}get calendarId(){return getCalendarSlotId(getPlainYearMonthSlots(this).calendar)}with(e,t=void 0){return createPlainYearMonth(withYearMonthFields(getPlainYearMonthSlots(this),validateBag(e),t))}add(e,t=void 0){let n=getPlainYearMonthSlots(this);return createPlainYearMonth(createDateSlots(moveYearMonth(n.calendar,n,toDurationSlots(e),refineOverflowOptions(t)),n.calendar))}subtract(e,t=void 0){let n=getPlainYearMonthSlots(this);return createPlainYearMonth(createDateSlots(moveYearMonth(n.calendar,n,negateDurationFields(toDurationSlots(e)),refineOverflowOptions(t)),n.calendar))}until(e,t=void 0){return createDuration(diffYearMonths(0,getPlainYearMonthSlots(this),toPlainYearMonthSlots(e),t))}since(e,t=void 0){return createDuration(diffYearMonths(1,getPlainYearMonthSlots(this),toPlainYearMonthSlots(e),t))}equals(e){return plainYearMonthsEqual(getPlainYearMonthSlots(this),toPlainYearMonthSlots(e))}toPlainDate(e){return createPlainDate(yearMonthToDate(getPlainYearMonthSlots(this).calendar,this,e))}toLocaleString(e=void 0,t={}){let n=getPlainYearMonthSlots(this),r=new q(e,applyPlainFormatTimeZone(Ut(t)));return checkResolvedCalendarCompatible(r,n,1),r.format(isoDateToEpochMilli(n))}toString(e=void 0){return formatPlainYearMonthIso(getPlainYearMonthSlots(this),e)}toJSON(){return formatPlainYearMonthIso(getPlainYearMonthSlots(this))}valueOf(){return forbiddenValueOf()}},getPlainYearMonthSlots,$t,nn);function createPlainYearMonth(e){return initPlainYearMonth(Object.create(mn.prototype),e)}function getPlainYearMonthSlots(e){return getPlainYearMonthSlotsIfPresent(e)||invalidRecordType()}function getPlainYearMonthSlotsIfPresent(e){return pn.get(e)}function toPlainYearMonthSlots(e,t){if(S(e)){let n=getPlainYearMonthSlotsIfPresent(e);return n?(refineOverflowOptions(t),n):refinePlainYearMonthObjectLike(getCalendarFromBag(e),e,t)}let n=parsePlainYearMonth(e,resolveBasicCalendarId);return refineOverflowOptions(t),n}function initPlainYearMonth(e,t){return pn.set(e,t),Y(e),e}function getTemporalBrandingAndSlots(e){if(!S(e))return;let t=getInstantSlotsIfPresent(e);return t?[Zt,t]:(t=getZonedDateTimeSlotsIfPresent(e),t?[Xt,t]:(t=getPlainDateTimeSlotsIfPresent(e),t?[Jt,t]:(t=getPlainDateSlotsIfPresent(e),t?[qt,t]:(t=getPlainTimeSlotsIfPresent(e),t?[Yt,t]:(t=getPlainYearMonthSlotsIfPresent(e),t?[Gt,t]:(t=getPlainMonthDaySlotsIfPresent(e),t?[Kt,t]:(t=getDurationSlotsIfPresent(e),t?[Qt,t]:void 0)))))))}function validateBag(e){return(getTemporalBrandingAndSlots(e)||e.calendar!==void 0||e.timeZone!==void 0)&&throwTypeError(`Invalid bag`),e}var hn=new WeakMap,gn=defineTemporalClass(Yt,class{constructor(e=0,t=0,n=0,r=0,i=0,a=0){let o=validateTimeFields(mapProps(toIntegerWithTrunc,{hour:e,minute:t,second:n,millisecond:r,microsecond:i,nanosecond:a}));initPlainTime(this,createTimeSlots(o))}static from(e,t=void 0){return createPlainTime(toPlainTimeSlots(e,t))}static compare(e,t){return compareTimeFields(toPlainTimeSlots(e),toPlainTimeSlots(t))}with(e,t=void 0){return createPlainTime(withTimeFields(getPlainTimeSlots(this),validateBag(e),t))}add(e){return createPlainTime(moveTime(getPlainTimeSlots(this),toDurationSlots(e))[0])}subtract(e){return createPlainTime(moveTime(getPlainTimeSlots(this),negateDurationFields(toDurationSlots(e)))[0])}until(e,t=void 0){return createDuration(diffTimes(0,getPlainTimeSlots(this),toPlainTimeSlots(e),t))}since(e,t=void 0){return createDuration(diffTimes(1,getPlainTimeSlots(this),toPlainTimeSlots(e),t))}round(e){let t=getPlainTimeSlots(this),[n,r,i]=refineRoundingOptions(e,5);return createPlainTime(roundTimeToInc(t,computeNanoInc(n,r),i)[0])}equals(e){return plainTimesEqual(getPlainTimeSlots(this),toPlainTimeSlots(e))}toLocaleString(e=void 0,t={}){let n=getPlainTimeSlots(this);return new q(e,applyPlainFormatTimeZone(Ht(t))).format(timeFieldsToMilli(n))}toString(e=void 0){return formatPlainTimeIso(getPlainTimeSlots(this),e)}toJSON(){return formatPlainTimeIso(getPlainTimeSlots(this))}valueOf(){return forbiddenValueOf()}},getPlainTimeSlots,je);function createPlainTime(e){return initPlainTime(Object.create(gn.prototype),e)}function getPlainTimeSlots(e){return getPlainTimeSlotsIfPresent(e)||invalidRecordType()}function getPlainTimeSlotsIfPresent(e){return hn.get(e)}function toPlainTimeSlots(e,t){if(S(e)){let n=getPlainTimeSlotsIfPresent(e);if(n)return refineOverflowOptions(t),n;let r=getPlainDateTimeSlotsIfPresent(e);if(r)return refineOverflowOptions(t),createTimeSlots(r);let i=getZonedDateTimeSlotsIfPresent(e);return i?(refineOverflowOptions(t),zonedDateTimeToTime(i)):refinePlainTimeObjectLike(e,t)}let n=parsePlainTime(e);return refineOverflowOptions(t),n}function optionalToPlainTimeFields(e){return e===void 0?void 0:toPlainTimeSlots(e)}function initPlainTime(e,t){return hn.set(e,t),Y(e),e}var _n=new WeakMap,vn=defineTemporalClass(Jt,class{constructor(e,t,n,r=0,i=0,a=0,o=0,s=0,c=0,l=void 0){let u=checkIsoDateTimeInBounds(validateIsoDateTimeFields(mapProps(toIntegerWithTrunc,{year:e,month:t,day:n,hour:r,minute:i,second:a,millisecond:o,microsecond:s,nanosecond:c}))),d=resolveBasicCalendarArg(l);initPlainDateTime(this,createDateTimeSlots(u,d))}static from(e,t=void 0){return createPlainDateTime(toPlainDateTimeSlots(e,t))}static compare(e,t){return compareIsoDateTimeFields(toPlainDateTimeSlots(e),toPlainDateTimeSlots(t))}get calendarId(){return getCalendarSlotId(getPlainDateTimeSlots(this).calendar)}with(e,t=void 0){return createPlainDateTime(withDateTimeFields(getPlainDateTimeSlots(this),validateBag(e),t))}withCalendar(e){return createPlainDateTime(createDateTimeSlots(getPlainDateTimeSlots(this),refineCalendarArg(e)))}withPlainTime(e=void 0){let t=getPlainDateTimeSlots(this);return createPlainDateTime(createDateTimeFromRefinedFields(t,optionalToPlainTimeFields(e),t.calendar))}add(e,t=void 0){let n=getPlainDateTimeSlots(this);return createPlainDateTime(createDateTimeSlots(moveDateTime(n.calendar,n,toDurationSlots(e),refineOverflowOptions(t)),n.calendar))}subtract(e,t=void 0){let n=getPlainDateTimeSlots(this);return createPlainDateTime(createDateTimeSlots(moveDateTime(n.calendar,n,negateDurationFields(toDurationSlots(e)),refineOverflowOptions(t)),n.calendar))}until(e,t=void 0){return createDuration(diffDateTimes(0,getPlainDateTimeSlots(this),toPlainDateTimeSlots(e),t))}since(e,t=void 0){return createDuration(diffDateTimes(1,getPlainDateTimeSlots(this),toPlainDateTimeSlots(e),t))}round(e){let t=getPlainDateTimeSlots(this),[n,r,i]=refineRoundingOptions(e);return createPlainDateTime(createDateTimeSlots(roundDateTimeToInc(t,computeNanoInc(n,r),i),t.calendar))}equals(e){return plainDateTimesEqual(getPlainDateTimeSlots(this),toPlainDateTimeSlots(e))}toZonedDateTime(e,t=void 0){return createZonedDateTime(dateTimeToZonedDateTime(getPlainDateTimeSlots(this),queryTimeZone(refineTimeZoneArg(e)),refineEpochDisambigOptions(t)))}toPlainDate(){let e=getPlainDateTimeSlots(this);return createPlainDate(createDateSlots(e,e.calendar))}toPlainTime(){return createPlainTime(createTimeSlots(getPlainDateTimeSlots(this)))}toLocaleString(e=void 0,t={}){let n=getPlainDateTimeSlots(this),r=new q(e,applyPlainFormatTimeZone(Bt(t)));return checkResolvedCalendarCompatible(r,n),r.format(isoDateTimeToEpochMilli(n))}toString(e=void 0){return formatPlainDateTimeIso(getPlainDateTimeSlots(this),e)}toJSON(){return formatPlainDateTimeIso(getPlainDateTimeSlots(this))}valueOf(){return forbiddenValueOf()}},getPlainDateTimeSlots,en,rn,je);function createPlainDateTime(e){return initPlainDateTime(Object.create(vn.prototype),e)}function getPlainDateTimeSlots(e){return getPlainDateTimeSlotsIfPresent(e)||invalidRecordType()}function getPlainDateTimeSlotsIfPresent(e){return _n.get(e)}function toPlainDateTimeSlots(e,t){if(S(e)){let n=getPlainDateTimeSlotsIfPresent(e);if(n)return refineOverflowOptions(t),n;let r=getPlainDateSlotsIfPresent(e);if(r)return refineOverflowOptions(t),createDateTimeSlots(combineDateAndTime(r,V),r.calendar);let i=getZonedDateTimeSlotsIfPresent(e);return i?(refineOverflowOptions(t),zonedDateTimeToDateTime(i)):refinePlainDateTimeObjectLike(getCalendarFromBag(e),e,t)}let n=parsePlainDateTime(e,resolveBasicCalendarId);return refineOverflowOptions(t),n}function initPlainDateTime(e,t){return _n.set(e,t),Y(e),e}var yn=new WeakMap,bn=defineTemporalClass(qt,class{constructor(e,t,n,r=void 0){let i=checkIsoDateInBounds(validateIsoDateFields(mapProps(toIntegerWithTrunc,{year:e,month:t,day:n}))),a=resolveBasicCalendarArg(r);initPlainDate(this,createDateSlots(i,a))}static from(e,t=void 0){return createPlainDate(toPlainDateSlots(e,t))}static compare(e,t){return compareIsoDateFields(toPlainDateSlots(e),toPlainDateSlots(t))}get calendarId(){return getCalendarSlotId(getPlainDateSlots(this).calendar)}with(e,t=void 0){return createPlainDate(withDateFields(getPlainDateSlots(this),validateBag(e),t))}withCalendar(e){return createPlainDate(createDateSlots(getPlainDateSlots(this),refineCalendarArg(e)))}add(e,t=void 0){let n=getPlainDateSlots(this);return createPlainDate(createDateSlots(moveDate(n.calendar,n,toDurationSlots(e),refineOverflowOptions(t)),n.calendar))}subtract(e,t=void 0){let n=getPlainDateSlots(this);return createPlainDate(createDateSlots(moveDate(n.calendar,n,negateDurationFields(toDurationSlots(e)),refineOverflowOptions(t)),n.calendar))}until(e,t=void 0){return createDuration(diffDates(0,getPlainDateSlots(this),toPlainDateSlots(e),t))}since(e,t=void 0){return createDuration(diffDates(1,getPlainDateSlots(this),toPlainDateSlots(e),t))}equals(e){return plainDatesEqual(getPlainDateSlots(this),toPlainDateSlots(e))}toZonedDateTime(e){let t=S(e)?{timeZone:e.timeZone,plainTime:e.plainTime}:{timeZone:e},n=getPlainDateSlots(this),r=refineTimeZoneArg(t.timeZone),i=t.plainTime,a=i===void 0?void 0:toPlainTimeSlots(i);return createZonedDateTime(dateToZonedDateTime(n,queryTimeZone(r),a))}toPlainDateTime(e=void 0){let t=getPlainDateSlots(this);return createPlainDateTime(createDateTimeFromRefinedFields(t,optionalToPlainTimeFields(e),t.calendar))}toPlainYearMonth(){return createPlainYearMonth(fieldsToYearMonth(getPlainDateSlots(this).calendar,this))}toPlainMonthDay(){return createPlainMonthDay(fieldsToMonthDay(getPlainDateSlots(this).calendar,this))}toLocaleString(e=void 0,t={}){let n=getPlainDateSlots(this),r=new q(e,applyPlainFormatTimeZone(Vt(t)));return checkResolvedCalendarCompatible(r,n),r.format(isoDateToEpochMilli(n))}toString(e=void 0){return formatPlainDateIso(getPlainDateSlots(this),e)}toJSON(){return formatPlainDateIso(getPlainDateSlots(this))}valueOf(){return forbiddenValueOf()}},getPlainDateSlots,en,rn);function createPlainDate(e){return initPlainDate(Object.create(bn.prototype),e)}function getPlainDateSlots(e){return getPlainDateSlotsIfPresent(e)||invalidRecordType()}function getPlainDateSlotsIfPresent(e){return yn.get(e)}function toPlainDateSlots(e,t){if(S(e)){let n=getPlainDateSlotsIfPresent(e);if(n)return refineOverflowOptions(t),n;let r=getPlainDateTimeSlotsIfPresent(e);if(r)return refineOverflowOptions(t),createDateSlots(r,r.calendar);let i=getZonedDateTimeSlotsIfPresent(e);return i?(refineOverflowOptions(t),zonedDateTimeToDate(i)):refinePlainDateObjectLike(getCalendarFromBag(e),e,t)}let n=parsePlainDate(e,resolveBasicCalendarId);return refineOverflowOptions(t),n}function initPlainDate(e,t){return yn.set(e,t),Y(e),e}function getCalendarFromBag(e){let t=extractCalendarFromBag(e);return t===void 0?void 0:t}function extractCalendarFromBag(e){let{calendar:t}=e;if(t!==void 0)return refineCalendarArg(t)}function refineCalendarArg(e){if(S(e)){let t=getPlainDateSlotsIfPresent(e)||getPlainDateTimeSlotsIfPresent(e)||getZonedDateTimeSlotsIfPresent(e)||getPlainMonthDaySlotsIfPresent(e)||getPlainYearMonthSlotsIfPresent(e);return t||throwTypeError(invalidCalendar(e)),t.calendar}return(e=>resolveBasicCalendarId(parseCalendarId(W(e))))(e)}var xn=new WeakMap,Sn=defineTemporalClass(Qt,class{constructor(e=0,t=0,n=0,r=0,i=0,a=0,o=0,s=0,c=0,l=0){let u=validateDurationFields(mapProps(toStrictInteger,{years:e,months:t,weeks:n,days:r,hours:i,minutes:a,seconds:o,milliseconds:s,microseconds:c,nanoseconds:l}));initDuration(this,createDurationSlots(u))}static from(e){return createDuration(toDurationSlots(e))}static compare(e,t,n=void 0){return compareDurations(refinePublicRelativeTo,toDurationSlots(e),toDurationSlots(t),n)}get sign(){return getDurationSlots(this).sign}get blank(){return!getDurationSlots(this).sign}with(e){return createDuration(mergeDurationFields(getDurationSlots(this),e))}negated(){return createDuration(negateDuration(getDurationSlots(this)))}abs(){return createDuration(absDuration$1(getDurationSlots(this)))}add(e){return createDuration(addDurationsWithoutRelativeTo(0,getDurationSlots(this),toDurationSlots(e)))}subtract(e){return createDuration(addDurationsWithoutRelativeTo(1,getDurationSlots(this),toDurationSlots(e)))}round(e){return createDuration(roundDuration(refinePublicRelativeTo,getDurationSlots(this),e))}total(e){return totalDuration(refinePublicRelativeTo,getDurationSlots(this),e)}toLocaleString(e=void 0,t){let n=getDurationSlots(this);return Intl.DurationFormat?new Intl.DurationFormat(e,t).format(n):formatDurationIso(n,t)}toString(e=void 0){return formatDurationIso(getDurationSlots(this),e)}toJSON(){return formatDurationIso(getDurationSlots(this))}valueOf(){return forbiddenValueOf()}},getDurationSlots,$e);function createDuration(e){return initDuration(Object.create(Sn.prototype),e)}function getDurationSlots(e){return getDurationSlotsIfPresent(e)||invalidRecordType()}function getDurationSlotsIfPresent(e){return xn.get(e)}function toDurationSlots(e){return S(e)?getDurationSlotsIfPresent(e)||refineDurationObjectLike(e):parseDuration(e)}function refinePublicRelativeTo(e){if(e!==void 0){if(S(e)){let t=getZonedDateTimeSlotsIfPresent(e);if(t)return t;let n=getPlainDateSlotsIfPresent(e);if(n)return n;let r=getPlainDateTimeSlotsIfPresent(e);return r?createDateSlots(r,r.calendar):refineMaybeZonedDateTimeObjectLike(refineTimeZoneArg,getCalendarFromBag(e),e)}return parseRelativeToSlots(e,resolveBasicCalendarId)}}function initDuration(e,t){return xn.set(e,t),Y(e),e}var Cn=Object.defineProperties({},{...createStringTagDescriptors(`Temporal.Now`),...createPropDescriptors({timeZoneId(){return getCurrentTimeZoneId()},instant(){return createInstant(createEpochNanoSlots(getCurrentEpochNano()))},zonedDateTimeISO(e=getCurrentTimeZoneId()){let t=queryTimeZone(refineTimeZoneArg(e));return createZonedDateTime(createZonedEpochNanoSlots(getCurrentEpochNano(),t))},plainDateTimeISO(e=getCurrentTimeZoneId()){return createPlainDateTime(createDateTimeSlots(getCurrentIsoDateTime(queryTimeZone(refineTimeZoneArg(e)))))},plainDateISO(e=getCurrentTimeZoneId()){return createPlainDate(createDateSlots(getCurrentIsoDateTime(queryTimeZone(refineTimeZoneArg(e)))))},plainTimeISO(e=getCurrentTimeZoneId()){return createPlainTime(createTimeSlots(getCurrentIsoDateTime(queryTimeZone(refineTimeZoneArg(e)))))}})}),wn=Object.defineProperties({},{...createStringTagDescriptors(`Temporal`),...createPropDescriptors({PlainYearMonth:mn,PlainMonthDay:dn,PlainDate:bn,PlainTime:gn,PlainDateTime:vn,ZonedDateTime:on,Instant:cn,Duration:Sn,Now:Cn})}),X=d||wn;d&&Date.prototype.toTemporalInstant,s(),t(),i();var Tn=124,En=125,Dn=126,On=127,kn=131,An=4,jn=134,Mn=7,Nn=8,Pn=9,Fn=10,In=140,Ln=21,Rn=141,zn=25,Bn=142,Vn=29,Hn=39,Un=43,Wn=145,Gn=146,Kn=147,qn=148,Jn=49,Yn=70,Xn=154,Zn=71,Qn=73,$n=155,er=75,tr=156,nr=79,rr=161,ir=82,ar=83,or=84,sr=168,cr=92,lr=93,ur=170,dr=100,fr=172,pr=101,mr=103,hr=104,gr=typeof process<`u`&&/\bfparse(:dbg)?\b/.test({}.LOG),_r=typeof process<`u`&&/\bfparse:dbg\b/.test({}.LOG),Z=typeof process<`u`&&/\bcontext\b/.test({}.LOG),vr=[9,11,12,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],yr=chars(`
|
|
2
|
-
\r`),br=42,xr=chars(`'./-+*^`);function chars(e){return Array.from(e).map(e=>e.charCodeAt(0))}function isStartChar(e){return e===63||e>=65&&e<=90||e===95||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=55296&&e<=56319||e>=56320&&e<=57343}function isAdditional(e){return xr.includes(e)}function isPartChar(e){return e>=48&&e<=57||e===183||e>=768&&e<=879||e>=8255&&e<=8256}function isSpace(e){return vr.includes(e)}function indent(e,t){return t.concat(e.split(/\n/g).join(`
|
|
3
|
-
`+t))}function parseAdditionalSymbol(e,t=0){let n=e.peek(t);return n===br&&e.peek(t+1)===br?{offset:2,token:`**`}:isAdditional(n)?{offset:1,token:String.fromCharCode(n)}:null}function parseIdentifier(e,t=0,n=!1){for(let r=!1,i=[],a=0;;a++){let o=e.peek(t+a);if(isStartChar(o)||(r||n)&&isPartChar(o))r||=!0,i.push(o);else return i.length?{token:String.fromCharCode(...i),offset:a}:null}}function parseSpaces(e,t){for(let n=!1,r=0;;r++)if(isSpace(e.peek(t+r)))n||=!0;else return n?{token:` `,offset:r}:null}function parseName(e,t){let{keys:n,prefixes:r}=t.contextCache(),i=t.tokens;for(let t=0,a=[],o=null;;){let s=i.length+a.length>0,c=a.length>0,l=parseIdentifier(e,t,s)||s&&parseAdditionalSymbol(e,t)||c&&parseSpaces(e,t);if(!l)return o;let{token:u,offset:d}=l;if(t+=d,u===` `)continue;a=[...a,u];let f=[...i,...a].join(` `);if(n.has(f)){let e=a[0];o={token:e,offset:e.length,term:Dn}}if(!r.has(f)){if(Ar.some(e=>e===f)){let e=a[0];o={token:e,offset:e.length,term:En}}if(!Ar.some(e=>e.startsWith(f)))return o}}}var Sr={[En]:`identifier`,[Dn]:`nameIdentifier`},Cr=new c((e,t)=>{_r&&console.log(`%s: T <identifier | nameIdentifier>`,e.pos);let n=parseName(e,t.context),r=t.context.tokens,i=n||parseIdentifier(e,0,r.length>0);i&&(e.advance(i.offset),e.acceptToken(n?n.term:En),gr&&console.log(`%s: MATCH <%s> <%s>`,e.pos,n?Sr[n.term]:`identifier`,i.token))},{contextual:!0}),wr=new c((e,t)=>{_r&&console.log(`%s: T <propertyIdentifier>`,e.pos);let n=t.context.tokens,r=parseIdentifier(e,0,n.length>0);r&&(e.advance(r.offset),e.acceptToken(Tn),gr&&console.log(`%s: MATCH <propertyIdentifier> <%s>`,e.pos,r.token))}),Tr=new c((e,t)=>{_r&&console.log(`%s: T <insertSemi>`,e.pos);let n,r=!1;for(n=0;;n++){let t=e.peek(n);if(!vr.includes(t)){yr.includes(t)&&(r=!0);break}}if(r){let t=parseIdentifier(e,n+1);if(parseSpaces(e,n+1)||t&&/^(then|else|return|satisfies)$/.test(t.token))return;gr&&console.log(`%s: MATCH <insertSemi>`,e.pos),e.acceptToken(On)}}),Er={[tr]:`FunctionInvocation`,[$n]:`FilterExpression`,[Xn]:`PathExpression`},Dr={[fr]:`Context`,[ur]:`FunctionDefinition`,[jn]:`ForExpression`,[sr]:`List`,[Rn]:`IfExpression`,[Bn]:`QuantifiedExpression`},Or={[dr]:`Context`,[lr]:`FunctionDefinition`,[An]:`ForExpression`,[cr]:`List`,[Ln]:`IfExpression`,[zn]:`QuantifiedExpression`,[Yn]:`PathExpression`,[er]:`FunctionInvocation`,[Qn]:`FilterExpression`,[Un]:`ArithmeticExpression`},kr=class ValueProducer{constructor(e){this.fn=e}get(e){return this.fn(e)}static of(e){return new ValueProducer(e)}},Ar=Object.keys({"date and time":1,date:1,time:1,duration:1});function getPrefixes(e){let t=[];for(let n=1;n<=e.length;n++)t.push(e.substring(0,n));return t}function cacheKey(e,t){let n=normalizeContextKey(e),r=getPrefixes(n);t.keys.add(n);for(let e of r)t.prefixes.add(e);return t.originalMap.set(n,e),t}function computeContextCache(e){let t=createContextCache();for(let n of e.getKeys())cacheKey(n,t);return t}function createContextCache(e){return{keys:new Set(e?.keys),prefixes:new Set(e?.prefixes),originalMap:new Map(e?.originalMap)}}var VariableContext=class{constructor(e={}){this.value=e}getKeys(){return Object.keys(this.value)}get(e){let t=this.value[e],n=this.constructor;return n.isAtomic(t)?t:n.of(t)}set(e,t){let n=this.constructor;return new n({...this.value,[e]:t})}merge(e){let t=this.constructor;return new t(t.__merge(this.value,e))}static isAtomic(e){return e==null||e instanceof this||e instanceof kr||typeof e!=`object`}static of(...e){let t=e.reduce((e,t)=>this.__merge(e,t),{});return new this(t)}static __unwrap(e){return e?e instanceof this?e.value:this.isAtomic(e)?{}:e:{}}static __merge(e,t){let r=Object.assign({},this.__unwrap(e));for(let[e,i]of Object.entries(this.__unwrap(t)))r[e]=i instanceof kr?i:n(r,e)?this.__merge(r[e],i):i;return r}},jr=class Variables{constructor({name:e=`Expressions`,tokens:t=[],children:n=[],parent:r=null,context:i,value:a,raw:o,__cache:s}){this.name=e,this.tokens=t,this.children=n,this.parent=r,this.context=i,this.value=a,this.raw=o,this.__cache=s}get root(){let e=this;for(;e.parent;)e=e.parent;return e}get cache(){let e=this.root;return e.__cache||=new WeakMap,e.__cache}enterScope(e){let t=this.of({name:e,parent:this});return Z&&console.log(`[%s] enter`,t.path,t.context),t}exitScope(e){return this.parent?(Z&&console.log(`[%s] exit %o
|
|
4
|
-
%s`,this.path,this.context,indent(e,` `)),this.parent.pushChild(this)):(Z&&console.log(`[%s] NO exit %o
|
|
5
|
-
%s`,this.path,this.context,indent(e,` `)),this)}token(e){return Z&&console.log(`[%s] token <%s> + <%s>`,this.path,this.tokens.join(` `),e),this.assign({tokens:[...this.tokens,e]})}literal(e){return Z&&console.log(`[%s] literal %o`,this.path,e),this.pushChild(this.of({name:`Literal`,value:e}))}computedValue(){for(let e=this;;e=last(e.children)){if(!e)return null;if(!r(e.value))return e.value}}contextCache(){let e=this.cache.get(this.context);return e||(e=computeContextCache(this.context),this.cache.set(this.context,e)),e}get path(){return this.parent?.path?.concat(` > `,this.name)||this.name}get(e){let t=e&&normalizeContextKey(e),n=this.contextCache().originalMap.get(t);if(n===void 0)return;let r=this.context.get(n);return r instanceof kr?r.get(this):r}resolveName(e){let t=this.tokens.join(` `),n=this.assign({tokens:[]}),r=this.of({name:e,parent:n,value:this.get(t),raw:t});return Z&&console.log(`[%s] resolve %s <%s=%s>`,e,r.path,t,r.value),n.pushChild(r)}pushChild(e){if(!e)return this;let t=this.assign({children:[...this.children,e]});return e.parent=t,t}pushChildren(e){let t=this;for(let n of e)t=t.pushChild(n);return t}declareName(){if(this.tokens.length===0)throw Error(`no tokens to declare name`);let e=this.tokens.join(` `);return Z&&console.log(`[%s] declareName <%s>`,this.path,e),this.assign({tokens:[]}).pushChild(this.of({name:`Name`,value:e}))}define(e,t){if(typeof e!=`string`)return Z&&console.log(`[%s] no define <%s=%s>`,this.path,e,t),this;Z&&console.log(`[%s] define <%s=%s>`,this.path,e,t);let n=this.context,r=n.set(e,t),i=cacheKey(e,createContextCache(this.cache.get(n)||computeContextCache(n)));return this.cache.set(r,i),this.assign({context:r})}assign(e={}){return Variables.of({...this,...e})}of(e={}){let t={context:this.context,parent:this.parent};return Variables.of({...t,...e})}static of(e){let{name:t,tokens:n=[],children:r=[],parent:i=null,context:a,value:o,raw:s,__cache:c}=e;if(!a)throw Error(`must provide <context>`);return new Variables({name:t,tokens:[...n],children:[...r],context:a,parent:i,value:o,raw:s,__cache:c})}};function normalizeContextKey(e){return e.replace(/\s*([./\-'+]|\*\*?)\s*/g,` $1 `).replace(/\s{2,}/g,` `).trim()}function wrap(e,t,n){let r=e.children.filter(e=>e.name!==t),i=e.children.filter(e=>e.name===t),a=r[0],o=r[Math.max(1,r.length-1)],s=a?.computedValue(),c=o?.computedValue()??null;return e.assign({children:i}).enterScope(t).pushChildren(r).exitScope(n).define(s,c)}function trackVariables(e={},t=VariableContext){let n=jr.of({context:t.of(e)});return new u({start:n,reduce(e,n,r,i){if(n===Ln){let[n,r]=e.children.slice(-2);e=e.assign({value:t.of(n?.computedValue(),r?.computedValue())})}if(n===cr&&(e=e.assign({value:t.of(...e.children.map(e=>e?.computedValue()))})),n===Qn){let[t,n]=e.children.slice(-2);e=e.assign({value:t?.computedValue()})}if(n===er){let[n,...r]=e.children;e=n?.raw===`get value`?getContextValue(e,r):e.assign({value:n?.computedValue()||t.of(void 0)})}let a=Dr[n];if(a)return e.enterScope(a);let o=Er[n];if(o){let{children:r,context:i}=e,a=r.slice(0,-1),s=last(r),c=null;return n===Xn&&(c=t.of(s?.computedValue())),n===$n&&(c=t.of(i,s?.computedValue()).set(`item`,s?.computedValue())),e.assign({children:a}).enterScope(o).pushChild(s).assign({context:c||i})}let s=i.read(i.pos,r.pos);if(Or[n])return e.exitScope(s);if(n===pr){let n=e.children.filter(e=>e.name!==`ContextEntry`),r=n[0],i=last(n);return wrap(e,`ContextEntry`,s).assign({value:t.of(e.value).set(r?.computedValue(),i?.computedValue())})}if(n===Mn||n===Vn)return wrap(e,`InExpression`,s);if(n===In)return e.define(`partial`,kr.of(e=>last(e.children)?.computedValue()));if(n===nr){let t=last(e.children).computedValue();return e.define(t,1)}if(n===Wn||n===Gn||n===Kn){let t=e.children.slice(0,-1),n=last(e.children);return e.assign({children:t}).enterScope(`ArithmeticExpression`).pushChild(n)}if(n===qn)return e.enterScope(`ArithmeticExpression`);if(n===Pn||n===Fn||n===hr)return e.token(s);if(n===ar)return e.literal(s.replace(/^"|"$/g,``).replace(/\\(["\\])/g,`$1`));if(n===or)return e.literal(s===`true`);if(n===ir)return e.literal(parseFloat(s));if(n===rr)return e.literal(null);if(n===Jn)return e.resolveName(`VariableName`);if(n===Zn)return e.resolveName(`PathName`);if(n===Nn||n===mr)return e.declareName();if((n===kn||n===Hn)&&e.tokens.length>0)throw Error(`uncleared name`);if(n===kn){let t=e;for(;t.parent;)t=t.exitScope(s);return t}return e}})}var Mr=trackVariables({});function getContextValue(e,t){if(!t.length||(t[0].name===`Name`&&(t=extractNamedArgs(t,[`m`,`key`])),t.length!==2))return e.assign({value:null});let[n,r]=t,i=r?.computedValue(),a=n?.computedValue();return!a||typeof a!=`object`||typeof i!=`string`?e.assign({value:null}):e.assign({value:[normalizeContextKey(i),i].reduce((e,t)=>a.get(t)||e,null)})}function extractNamedArgs(e,t){let n={};for(let t=0;t<e.length;t+=2){let[r,i]=e.slice(t,t+2);n[r.value]=i}return t.map(e=>n[e])}function last(e){return e[e.length-1]}var Nr=o({StringLiteral:a.string,NumericLiteral:a.number,BooleanLiteral:a.bool,"AtLiteral!":a.special(a.string),CompareOp:a.compareOperator,ArithOp:a.arithmeticOperator,"for if then else some every return":a.controlKeyword,"in instance of and or satisfies between as":a.operatorKeyword,function:a.definitionKeyword,"Type/...":a.typeName,"Wildcard!":a.modifier,null:a.null,LineComment:a.lineComment,BlockComment:a.blockComment,"VariableName!":a.variableName,'"?"':a.self,"DateTimeConstructor! SpecialFunctionName!":a.standard(a.function(a.variableName)),"FunctionInvocation/VariableName!":a.function(a.variableName),"Name!":a.definition(a.variableName),"Key/Name! ContextEntryType/Name!":a.definition(a.propertyName),"PathExpression/PathName!":a.propertyName,"FormalParameter/ParameterName!":a.function(a.definition(a.variableName)),"( )":a.paren,"[ ]":a.squareBracket,"{ }":a.brace,".":a.derefOperator,", ;":a.separator,"..":a.punctuation}),Pr={__proto__:null,for:10,in:34,return:40,if:44,then:46,else:48,some:52,every:54,satisfies:60,or:64,and:68,between:76,instance:90,of:93,days:105,time:107,duration:109,years:111,months:113,date:115,list:121,context:127,function:134,null:162,true:332,false:332,"?":176,external:192,not:217},Fr=l.deserialize({version:14,states:"CvO`QYOOO`QYOOO$yQYOOOOQU'#Ce'#CeO%TQYO'#C`O&^QYO'#FTOOQQ'#Ff'#FfO&hQYO'#FfO`QYO'#DXOOQU'#Eq'#EqO(_Q^O'#D_OOQU'#D`'#D`OOQU'#D_'#D_OOQO'#Fn'#FnO*[QWO'#DyOOQQ'#EQ'#EQOOQQ'#ER'#EROOQQ'#ES'#ESO*aOWO'#EVO*[QWO'#ETOOQQ'#ET'#ETOOQQ'#Ft'#FtOOQQ'#Fr'#FrOOQQ'#Fz'#FzOOQQ'#EX'#EXO`QYO'#EZOOQQ'#FV'#FVO*iQ^O'#FVO,`QYO'#E[O,gQWO'#E]OOQP'#GO'#GOO,lQXO'#EdOOQQ'#F{'#F{OOQQ'#FU'#FUQOQWOOOOQQ'#FW'#FWOOQQ'#F_'#F_O`QYO'#CqOOQQ'#F`'#F`O%TQYO'#CuO,zQYO'#DzOOQQ'#Fs'#FsO-PQYO'#EUOOQO'#EU'#EUO`QYO'#EYO`QYO'#EXOOQO'#F|'#F|Q-XQWOOO-^QYO'#DTO.TQWO'#FbOOQO'#DV'#DVO.`QYO'#FfO.gQWOOO/^QYO'#CdO/kQYO'#FYOOQQ'#Cc'#CcO/pQYO'#FXOOQQ'#Cb'#CbO/xQYO,58zO`QYO,59kOOQQ'#Fc'#FcOOQQ'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i#j#o#p#q#r#w$k$o$r%R%S%Z%^%a%d%n%v%z&]!kWOPQWilu|}!]!a!b!c!g!h!i!j!k!p#Y#[#^#b#f#s$P$Q$Z$_$b$q$}%X%c%x%yR&U%lT&Y%m&s!_!eT!Q!n!t!v#P#W#X#h#i#j#k#o#p#q#r#w$k$o$r%R%S%Z%^%a%d%n%v%z&]!_!gT!Q!n!t!v#P#W#X#h#i#j#k#o#p#q#r#w$k$o$r%R%S%Z%^%a%d%n%v%z&]!k^OPQWilu|}!]!a!b!c!g!h!i!j!k!p#Y#[#^#b#f#s$P$Q$Z$_$b$q$}%X%c%x%yQ!q^R!scR#{!pQ!wlR#|!p!kfOPQWilu|}!]!a!b!c!g!h!i!j!k!p#Y#[#^#b#f#s$P$Q$Z$_$b$q$}%X%c%x%y!klOPQWilu|}!]!a!b!c!g!h!i!j!k!p#Y#[#^#b#f#s$P$Q$Z$_$b$q$}%X%c%x%y!kmOPQWilu|}!]!a!b!c!g!h!i!j!k!p#Y#[#^#b#f#s$P$Q$Z$_$b$q$}%X%c%x%yR$V!x!koOPQWilu|}!]!a!b!c!g!h!i!j!k!p#Y#[#^#b#f#s$P$Q$Z$_$b$q$}%X%c%x%yR#Oo",nodeNames:`⚠ LineComment BlockComment Expression ForExpression for InExpressions InExpression Name Identifier Identifier . ArithOp ArithOp ArithOp ArithOp ArithOp in IterationContext .. return IfExpression if then else QuantifiedExpression some every InExpressions InExpression satisfies Disjunction or Conjunction and Comparison CompareOp CompareOp between PositiveUnaryTest ( PositiveUnaryTests ) ArithmeticExpression InstanceOfExpression instance of Type QualifiedName VariableName BacktickIdentifier SpecialType days time duration years months date > ListType list < ContextType context ContextEntryTypes ContextEntryType FunctionType function ArgumentTypes ArgumentType PathExpression PathName ] FilterExpression [ FunctionInvocation SpecialFunctionName NamedParameters NamedParameter ParameterName PositionalParameters null NumericLiteral StringLiteral BooleanLiteral DateTimeLiteral DateTimeConstructor AtLiteral ? SimplePositiveUnaryTest Interval ParenthesizedExpression List FunctionDefinition FormalParameters FormalParameter external FunctionBody } { Context ContextEntry Key Name Identifier Expressions UnaryTests Wildcard not`,maxTerm:174,context:Mr,nodeProps:[[`group`,-17,4,21,25,31,33,35,43,44,70,73,75,88,89,91,92,93,100,`Expr`,49,`Expr Expr`,-5,81,82,83,84,85,`Expr Literal`],[`closedBy`,40,`)`,74,`]`,99,`}`],[`openedBy`,42,`(`,72,`[`,98,`{`]],propSources:[Nr],skippedNodes:[0,1,2],repeatNodeCount:14,tokenData:".v~RvXY#iYZ$^Z[#i]^$^pq#iqr$crs$nwx(Wxy(]yz(bz{(g{|(t|}(y}!O)O!O!P)]!P!Q*g!Q![,b![!],y!]!^-O!^!_-T!_!`$i!`!a-d!b!c-n!}#O-s#P#Q-x#Q#R(o#S#T-}#o#p.l#q#r.q$f$g#i#BY#BZ#i$IS$I_#i$I|$I}$^$I}$JO$^$JT$JU#i$KV$KW#i&FU&FV#i?HT?HU#i~#nY#u~XY#iZ[#ipq#i$f$g#i#BY#BZ#i$IS$I_#i$JT$JU#i$KV$KW#i&FU&FV#i?HT?HU#i~$cO#v~~$fP!_!`$i~$nOt~~$qXOY$nYZ%^Zr$nrs&zs#O$n#O#P'R#P;'S$n;'S;=`(Q<%lO$n~%aVOr%^rs%vs#O%^#O#P%{#P;'S%^;'S;=`&t<%lO%^~%{O$j~~&ORO;'S%^;'S;=`&X;=`O%^~&[WOr%^rs%vs#O%^#O#P%{#P;'S%^;'S;=`&t;=`<%l%^<%lO%^~&wP;=`<%l%^~'RO$j~$k~~'URO;'S$n;'S;=`'_;=`O$n~'bYOY$nYZ%^Zr$nrs&zs#O$n#O#P'R#P;'S$n;'S;=`(Q;=`<%l$n<%lO$n~(TP;=`<%l$n~(]O#}~~(bOx~~(gOz~~(lP_~z{(o~(tO`~~(yO]~~)OO$P~R)TP[P!`!a)WQ)]O$_Q~)bQZ~!O!P)h!Q![)m~)mOc~~)rR$i~!Q![)m!g!h){#X#Y){~*OR{|*X}!O*X!Q![*_~*[P!Q![*_~*dP$i~!Q![*_~*lQ^~z{*r!P!Q+y~*uTOz*rz{+U{;'S*r;'S;=`+s<%lO*r~+XVOz*rz{+U{!P*r!P!Q+n!Q;'S*r;'S;=`+s<%lO*r~+sOQ~~+vP;=`<%l*r~,OSP~OY+yZ;'S+y;'S;=`,[<%lO+y~,_P;=`<%l+y~,gS$i~!O!P,s!Q![,b!g!h){#X#Y){~,vP!Q![)m~-OO$]~~-TO$t~R-[P!_QuP!_!`-_P-dOuPR-kP![QuP!_!`-_~-sO$m~~-xO!l~~-}O!j~~.QTO#S-}#S#T.a#T;'S-};'S;=`.f<%lO-}~.fO$Z~~.iP;=`<%l-}~.qO#V~~.vO#U~",tokenizers:[wr,Cr,Tr,0,1],topRules:{Expression:[0,3],Expressions:[1,105],UnaryTests:[2,106]},dialects:{camunda:2657},dynamicPrecedences:{33:-1,70:1,75:-1,77:-1},specialized:[{term:125,get:e=>Pr[e]||-1}],tokenPrec:2660});t();function notImplemented(e){return Error(`not implemented: ${e}`)}function isNotImplemented(e){return/^not implemented/.test(e.message)}function has(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return!0;for(let n=Object.getPrototypeOf(e);n&&n!==Object.prototype;n=Object.getPrototypeOf(n)){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return typeof e.get==`function`}return!1}var Ir=new Set([`nil`,`boolean`,`number`,`string`]);function getFromContext(e,t){if(Ir.has(getType(t)))return;if(has(t,e))return t[e];let n=normalizeContextKey(e);if(has(t,n))return t[n];let r=Object.entries(t).find(([e])=>n===normalizeContextKey(e));if(r)return r[1]}var Q=X.PlainDate.from(`1970-01-01`),FeelDate=class{constructor(e){this.value=e,this.iso=this.value.toString(),Object.defineProperty(this,"value",{enumerable:!1})}get year(){return this.value.year}get month(){return this.value.month}get day(){return this.value.day}get weekday(){return this.value.dayOfWeek}unwrap(){return this.value}toString(){return this.iso}toJSON(){return this.iso}},FeelTime=class{constructor(e,t=null){this.value=e,this.zone=t,this.iso=this.value.toString()+(this.zone===null?``:zoneSuffix(this.zone)),Object.defineProperty(this,"value",{enumerable:!1})}get hour(){return this.value.hour}get minute(){return this.value.minute}get second(){return this.value.second}get timezone(){return this.zone}get"time offset"(){return this.zone===null?null:zoneOffset(this)}unwrap(){return this.value}toString(){return this.iso}toJSON(){return this.iso}},FeelDateTime=class{constructor(e,t=null){this.value=e,this.zone=t,this.iso=this.value.toString()+(this.zone===null?``:zoneSuffix(this.zone)),Object.defineProperty(this,"value",{enumerable:!1})}get year(){return this.value.year}get month(){return this.value.month}get day(){return this.value.day}get hour(){return this.value.hour}get minute(){return this.value.minute}get second(){return this.value.second}get weekday(){return this.value.dayOfWeek}get timezone(){return this.zone}get"time offset"(){return this.zone===null?null:zoneOffset(this)}unwrap(){return this.value}toString(){return this.iso}toJSON(){return this.iso}},FeelDuration=class{constructor(e,t){this.value=normalize(e),this.yearsMonths=t??isYearsMonths(this.value),this.iso=this.yearsMonths&&this.value.sign===0?`P0M`:this.value.toString(),Object.defineProperty(this,"value",{enumerable:!1})}get years(){return this.yearsMonths?this.value.years:null}get months(){return this.yearsMonths?this.value.months:null}get days(){return this.yearsMonths?null:this.value.days}get hours(){return this.yearsMonths?null:this.value.hours}get minutes(){return this.yearsMonths?null:this.value.minutes}get seconds(){return this.yearsMonths?null:this.value.seconds}unwrap(){return this.value}toString(){return this.iso}toJSON(){return this.iso}};function isDate(e){return e instanceof FeelDate}function isTime(e){return e instanceof FeelTime}function isDateTime(e){return e instanceof FeelDateTime}function isDuration(e){return e instanceof FeelDuration}function isTemporal(e){return isDate(e)||isTime(e)||isDateTime(e)}function isZoned(e){return(isTime(e)||isDateTime(e))&&e.zone!==null}var Lr=/z$/i,Rr=/[+-]\d{2}:\d{2}(:\d{2})?$/,zr=/^[+-]\d{2}:\d{2}(:\d{2})?$/,Br=/^([+-])(\d{2}):(\d{2}):(\d{2})$/,Vr=/^([+-])(\d{2}):(\d{2})(?::(\d{2}))?$/,Hr=/[YM]/,Ur=/^\d{2}:\d{2}:60/;function splitZone(e){let t=e.indexOf(`@`);if(t!==-1)return{value:e.substring(0,t),zone:e.substring(t+1)};if(Lr.test(e))return{value:e.substring(0,e.length-1),zone:`UTC`};let n=Rr.exec(e);return n?{value:e.substring(0,n.index),zone:n[0]}:{value:e,zone:null}}function zoneSuffix(e){return e===`UTC`?`Z`:zr.test(e)?e:`@${e}`}function offsetZoneSeconds(e){if(e===null)return null;let t=Br.exec(e);return t?(t[1]===`-`?-1:1)*(Number(t[2])*3600+Number(t[3])*60+Number(t[4])):null}function fixedOffsetSeconds(e){if(e===`UTC`)return 0;let t=Vr.exec(e);return t?(t[1]===`-`?-1:1)*(Number(t[2])*3600+Number(t[3])*60+Number(t[4]??0)):null}var Wr=new Set;function isValidZone(e){if(e===null)return!0;let t=offsetZoneSeconds(e);if(t!==null)return Math.abs(t)<86400;if(Wr.has(e))return!0;try{new X.PlainDateTime(1970,1,1).toZonedDateTime(e)}catch{return!1}return Wr.add(e),!0}function zoneEquals(e,t){if(e===null||t===null)return e===t;let n=fixedOffsetSeconds(e),r=fixedOffsetSeconds(t);return n!==null&&r!==null?n===r:e===t}function zonedDateTime(e){return e instanceof FeelTime?Q.toZonedDateTime({plainTime:e.value,timeZone:e.zone}):e.value.toZonedDateTime(e.zone)}function offsetDuration(e){return new FeelDuration(X.Duration.from({nanoseconds:e.offsetNanoseconds}))}function zoneOffset(e){let t=offsetZoneSeconds(e.zone);return t===null?offsetDuration(zonedDateTime(e)):new FeelDuration(X.Duration.from({seconds:t}),!1)}function toComparable(e){if(isDate(e))return e.value.toZonedDateTime(`UTC`).epochMilliseconds;if(isTime(e)||isDateTime(e)){let t=offsetZoneSeconds(e.zone);if(t!==null)return(e instanceof FeelTime?Q.toZonedDateTime({plainTime:e.value,timeZone:`UTC`}):e.value.toZonedDateTime(`UTC`)).epochMilliseconds-t*1e3;let n=e.zone??`UTC`;return(e instanceof FeelTime?Q.toZonedDateTime({plainTime:e.value,timeZone:n}):e.value.toZonedDateTime(n)).epochMilliseconds}return isDuration(e)?e.value.total({unit:`millisecond`,relativeTo:Q}):null}function normalize(e){return e.years!==0||e.months!==0?e.round({largestUnit:`year`,relativeTo:Q}):e.round({largestUnit:`day`,relativeTo:Q})}function isYearsMonths(e){return e.years!==0||e.months!==0}function isYearsMonthsString(e){let t=e.split(`T`)[0];return Hr.test(t)}function durationEquals(e,t){let total=(e,t)=>e.value.total({unit:t,relativeTo:Q});return Math.abs(total(e,`day`))>180?Math.trunc(total(e,`month`)-total(t,`month`))===0:Math.trunc(total(e,`second`)-total(t,`second`))===0}var Gr=/^-?P(?=\d|T\d)(?:\d+Y)?(?:\d+M)?(?:\d+D)?(?:T(?=\d)(?:\d+H)?(?:\d+M)?(?:\d+(?:\.\d+)?S)?)?$/;function duration(e){if(typeof e==`number`)return new FeelDuration(X.Duration.from({milliseconds:e}),!1);if(!Gr.test(e))return null;try{return new FeelDuration(X.Duration.from(e),isYearsMonthsString(e))}catch{return null}}function absDuration(e){return new FeelDuration(e.value.abs(),e.yearsMonths)}function hasTimeComponent(e){let{hours:t,minutes:n,seconds:r,milliseconds:i}=e.value;return!!(t||n||r||i)}function addDuration(e,t,n){let r=n<0?t.value.negated():t.value;return isDate(e)?hasTimeComponent(t)?new FeelDateTime(e.value.toPlainDateTime().add(r),`UTC`):new FeelDate(e.value.add(r)):isTime(e)?new FeelTime(e.value.add(r),e.zone):e.zone===null?new FeelDateTime(e.value.add(r),null):offsetZoneSeconds(e.zone)===null?new FeelDateTime(e.value.toZonedDateTime(e.zone).add(r).toPlainDateTime(),e.zone):new FeelDateTime(e.value.add(r),e.zone)}function subtractTemporals(e,t){if(isTime(e)&&isTime(t))return new FeelDuration(e.value.since(t.value));let n=toPlainDateTime(e),r=toPlainDateTime(t);return new FeelDuration(n.since(r,{largestUnit:`day`}))}function addDurations(e,t,n){if(e.yearsMonths!==t.yearsMonths)return null;let r=n<0?t.value.negated():t.value;if(e.yearsMonths){let t=Q.toPlainDateTime();return new FeelDuration(t.add(e.value).add(r).since(t,{largestUnit:`year`}),!0)}return new FeelDuration(e.value.add(r),!1)}function yearsAndMonthsDuration(e,t){return new FeelDuration(e.value.until(t.value,{largestUnit:`month`}),!0)}function toPlainDateTime(e){return isDate(e)?e.value.toPlainDateTime():isDateTime(e)?e.value:Q.toPlainDateTime(e.value)}function dateOf(e){return new FeelDate(e.value.toPlainDate())}function timeOf(e){return new FeelTime(e.value.toPlainTime(),e.zone)}function timeOfDate(e){return new FeelTime(new X.PlainTime(0,0,0),`UTC`)}function combine(e,t){return new FeelDateTime((isDate(e)?e.value:e.value.toPlainDate()).toPlainDateTime(t.value),t.zone)}function dateFrom(e,t,n){try{return new FeelDate(X.PlainDate.from({year:e,month:t,day:n},{overflow:`reject`}))}catch{return null}}function timeFrom(e,t,n,r=null){try{let i=X.PlainTime.from({hour:e,minute:t,second:n},{overflow:`reject`}),a=r?offsetZone(r):null;if(a!==null){let e=offsetZoneSeconds(a);if(e!==null){if(Math.abs(e)>=86400)return null}else Q.toZonedDateTime({plainTime:i,timeZone:a})}return new FeelTime(i,a)}catch{return null}}function offsetZone(e){let t=Math.trunc(e.value.total({unit:`second`,relativeTo:Q})),n=t<0?`-`:`+`,r=Math.abs(t),i=Math.floor(r/3600),a=Math.floor(r%3600/60),o=r%60,pad=e=>String(e).padStart(2,`0`),s=`${n}${pad(i)}:${pad(a)}`;return o?`${s}:${pad(o)}`:s}function parseDate(e){if(e.startsWith(`-`))throw notImplemented(`negative date`);try{return new FeelDate(X.PlainDate.from(e))}catch{return null}}function parseTime(e){let{value:t,zone:n}=splitZone(e);if(Ur.test(t))return null;try{return isValidZone(n)?new FeelTime(X.PlainTime.from(t),n):null}catch{return null}}function parseDateTime(e){if(e.startsWith(`-`))throw notImplemented(`negative date`);let{value:t,zone:n}=splitZone(e),r=t;r.includes(`T`)||(r=`${r}T00:00:00`);try{return isValidZone(n)?new FeelDateTime(X.PlainDateTime.from(r),n):null}catch{return null}}function now(){let e=X.Now.zonedDateTimeISO();return new FeelDateTime(e.toPlainDateTime(),e.timeZoneId)}function today(){return new FeelDate(X.Now.plainDateISO())}function toFeel(e){return isDate(e)||isTime(e)||isDateTime(e)||isDuration(e)?e:e instanceof X.PlainDate?new FeelDate(e):e instanceof X.PlainTime?new FeelTime(e):e instanceof X.PlainDateTime?new FeelDateTime(e):e instanceof X.ZonedDateTime?new FeelDateTime(e.toPlainDateTime(),e.timeZoneId):e instanceof X.Duration?new FeelDuration(e):e instanceof Date?new FeelDateTime(X.Instant.fromEpochMilliseconds(e.getTime()).toZonedDateTimeISO(`UTC`).toPlainDateTime(),`UTC`):e}var Kr=new Set([`date`,`time`,`date time`]),FeelRange=class{constructor(e){Object.assign(this,e),Object.defineProperty(this,"valueType",{enumerable:!1})}includes(e){return rangeIncludes(this,e)}map(e){return rangeMap(this,e)}toString(){let e=this[`start included`]?`[`:`(`,t=this[`end included`]?`]`:`)`;return`${e}${this.start}..${this.end}${t}`}};function isRange(e){return e instanceof FeelRange}function comparable(e){let t=toComparable(e);return t===null?e:t}function cmp(e,t){let n=comparable(e),r=comparable(t);return n<r?-1:+(n>r)}function afterStart(e,t,n){if(t===null)return!0;let r=cmp(e,t);return n?r>=0:r>0}function beforeEnd(e,t,n){if(t===null)return!0;let r=cmp(e,t);return n?r<=0:r<0}function rangeIncludes(e,t){let{start:n,end:r}=e,i=e[`start included`],a=e[`end included`];if(n===null&&r===null||t==null)return null;if(t instanceof FeelRange)return rangeIncludesRange(e,t);let o=getType(t);return e.valueType!==null&&Kr.has(o)&&Kr.has(e.valueType)&&o!==e.valueType?null:(n!==null&&r!==null&&cmp(n,r)>0&&([n,r]=[r,n],[i,a]=[a,i]),afterStart(t,n,i)&&beforeEnd(t,r,a))}function rangeIncludesRange(e,t){let n=e.start===null||t.start!==null&&(()=>{let n=cmp(e.start,t.start);return n<0||n===0&&(e[`start included`]||!t[`start included`])})(),r=e.end===null||t.end!==null&&(()=>{let n=cmp(e.end,t.end);return n>0||n===0&&(e[`end included`]||!t[`end included`])})();return n&&r}function before(e,t){if(e instanceof FeelRange&&t instanceof FeelRange){let n=cmp(e.end,t.start);return n<0||n===0&&(!e[`end included`]||!t[`start included`])}if(e instanceof FeelRange){let n=cmp(e.end,t);return n<0||n===0&&!e[`end included`]}if(t instanceof FeelRange){let n=cmp(t.start,e);return n>0||n===0&&!t[`start included`]}return cmp(e,t)<0}function meets(e,t){return cmp(e.end,t.start)===0&&e[`end included`]===!0&&t[`start included`]===!0}function includes(e,t){return e instanceof FeelRange&&rangeIncludes(e,t)}var qr=Array.from(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`),Jr=new Map(qr.map((e,t)=>[e,t]));function rangeMap(e,t){let{start:n,end:r,valueType:i}=e;if(n===null&&r===null)return[];if(i===`number`&&n!==null&&r!==null)return numberRangeMap(n,r,e[`start included`],e[`end included`],t);if(i===`string`&&n!==null&&r!==null){let i=charRangeValues(n,r,e[`start included`],e[`end included`]);if(i)return i.map(t)}throw Error(`unsupported range operation: map`)}function numberRangeMap(e,t,n,r,i){let a=e>t?-1:1,o=[];for(let s=e;!((s!==e||n)&&(s===t&&!r||(o.push(i(s)),s===t)));s+=a);return o}function charRangeValues(e,t,n,r){let i=Jr.get(e),a=Jr.get(t);if(i===void 0||a===void 0)return null;let o=i>a?-1:1;return n===!1&&(i+=o),r===!1&&(a-=o),qr.slice(Math.min(i,a),Math.max(i,a)+1)}var Yr=new Set([`string`,`number`,`duration`,`time`,`date time`,`date`]);function createRange(e,t,n=!0,r=!0){let i=e===null?null:getType(e),a=t===null?null:getType(t),o=i??a,s=o!==null&&Yr.has(o)&&(i===null||i===o)&&(a===null||a===o)?o:null;if(s===null&&(e!==null||t!==null))throw Error(`unsupported range: ${e}..${t}`);return new FeelRange({start:e,end:t,"start included":n,"end included":r,valueType:s})}var InvocationFailure=class{constructor(e,t,n={}){this.warning=e,this.template=t,this.values=n}};function invalidArguments(e,t={}){return new InvocationFailure(`INVALID_ARGUMENTS`,e,t)}function parameterMismatch(e,t){return new InvocationFailure(`FUNCTION_INVOCATION_FAILURE`,`Cannot invoke {target} with parameters {params}`,{target:e,params:t})}function isInvocationFailure(e){return e instanceof InvocationFailure}var FeelFunction=class{constructor(e,t){this.fn=e,this.parameterNames=t,Object.defineProperty(this,"fn",{enumerable:!1})}invoke(e){let t;if(isArray(e)){if(t=e,t.length>this.parameterNames.length){let t=this.parameterNames[this.parameterNames.length-1];if(!t||!t.startsWith(`...`))return parameterMismatch(this,e)}}else{for(let t of Object.keys(e))if(!this.parameterNames.includes(t)&&!this.parameterNames.includes(`...${t}`))return parameterMismatch(this,e);t=[];for(let n of this.parameterNames)if(n.startsWith(`...`)){n=n.slice(3);let r=e[n];if(isNil(r))continue;if(isArray(r))for(let e of r)t.push(e);else t.push(r)}else t.push(e[n])}return this.fn.call(null,...t)}};function isFunction(e){return e instanceof FeelFunction}function parseParameterNames(e){if(Array.isArray(e.$args))return e.$args;let t=e.toString(),n=/^(?:[^(]*\s*)?\(([^)]+)?\)/.exec(t);if(!n)throw Error(`failed to parse params: `+t);let[r,i]=n;return i?i.split(`,`).map(e=>e.trim()):[]}function wrapFunction(e,t=null){return e?e instanceof FeelFunction?e:isRange(e)?new FeelFunction(t=>e.includes(t),[`value`]):typeof e==`function`?new FeelFunction(e,t||parseParameterNames(e)):null:null}var Xr=new Set([`date time`,`time`,`date`]);function isNil(e){return e==null}function isContext(e){return!isNil(e)&&Object.getPrototypeOf(e)===Object.prototype}function isArray(e){return Array.isArray(e)}function isBoolean(e){return typeof e==`boolean`}function getType(e){return isNil(e)?`nil`:isBoolean(e)?`boolean`:isNumber(e)?`number`:isString(e)?`string`:isArray(e)?`list`:isContext(e)?`context`:isDate(e)?`date`:isTime(e)?`time`:isDateTime(e)?`date time`:isDuration(e)?`duration`:isRange(e)?`range`:isFunction(e)?`function`:`literal`}function isType(e,t){return getType(e)===t}function typeCast(e,t){if(isDate(e))return t===`date time`?combine(e,timeFrom(0,0,0)):null;if(isTime(e))return null;if(isDateTime(e)){if(t===`time`)return timeOf(e);if(t===`date`)return dateOf(e);if(t===`date time`)return e}return null}function isNumber(e){return typeof e==`number`}function isString(e){return typeof e==`string`}function equals(e,t,n=!1){if(e===null&&t!==null||e!==null&&t===null)return!1;isArray(e)&&e.length<2&&(e=e[0]),isArray(t)&&t.length<2&&(t=t[0]);let r=getType(e),i=getType(t);if(Xr.has(r))return Xr.has(i)?r===i?isZoned(e)!==isZoned(t)||n&&!zoneEquals(e.zone??null,t.zone??null)?!1:toComparable(e)===toComparable(t):!n&&null:null;if(r!==i)return null;if(r===`nil`)return!0;if(r===`list`)return e.length===t.length&&e.every((e,n)=>equals(e,t[n]));if(r===`duration`)return durationEquals(e,t);if(r===`context`){let n=Object.entries(e),r=Object.entries(t);return n.length===r.length&&n.every(([e,n])=>has(t,e)&&equals(n,t[e]))}return r===`range`?e[`start included`]===t[`start included`]&&e[`end included`]===t[`end included`]&&equals(e.start,t.start)===!0&&equals(e.end,t.end)===!0:e==t||r!==i&&null}var Zr={number:fn(function(e,t,n){if(arguments.length!==3)return null;let r=e;t&&(e=e.split(t).join(``)),n&&n!==`.`&&(e=e.split(`.`).join(`#`).split(n).join(`.`));let i=+e;return isNaN(i)?invalidArguments(`number(from) expects a numeric string, got {from}`,{from:r}):i},[`string`,`string?`,`string?`],[`from`,`grouping separator`,`decimal separator`]),string:fn(function(e){return e===null?null:toString(e)},[`any`],[`from`]),date:fn(function(e,t,n,r){!r&&!isNumber(e)&&(r=e,e=null);let i;if(isString(r)?i=parseDate(r):isDate(r)?i=r:isDateTime(r)&&(i=dateOf(r)),isNumber(e)){let a=guard(r==null,`date(year, month, day) does not accept a <from> argument`)||guard(isNumber(t)&&isNumber(n),`date(year, month, day) expects <month> and <day> to be numbers`);if(a)return a;if(i=dateFrom(e,t,n),!i)return invalidArguments(`{year}, {month}, {day} is not a valid date`,{year:e,month:t,day:n})}return i||invalidArguments(`date({from}) is not a valid date`,{from:r})},[`any?`,`number?`,`number?`,`any?`],[`year`,`month`,`day`,`from`]),"date and time":fn(function(e,t,n){let r=e,i;return(isDate(e)||isDateTime(e))&&isTime(t)&&(i=combine(e,t)),isString(e)&&(n=e,e=null),isString(n)&&(i=parseDateTime(n)),i||invalidArguments(`date and time({from}) is not a valid date time`,{from:isString(n)?n:r})},[`any?`,`time?`,`string?`],[`date`,`time`,`from`]),time:fn(function(e,t,n,r,i){let a;if((isString(e)||isDate(e)||isDateTime(e)||isTime(e))&&(i=e,e=null),isString(i)&&i&&(a=parseTime(i)),isTime(i)&&(a=i),isDateTime(i)&&(a=timeOf(i)),isDate(i)&&(a=timeOfDate()),isNumber(e)){let i=guard(isNumber(t)&&isNumber(n),`time(hour, minute, second) expects <minute> and <second> to be numbers`)||guard(r==null||isDuration(r),`time(hour, minute, second, offset) expects <offset> to be a duration`);if(i)return i;if(a=timeFrom(e,t,n,r),!a)return invalidArguments(`{hour}, {minute}, {second} is not a valid time`,{hour:e,minute:t,second:n})}return a||invalidArguments(`time({from}) is not a valid time`,{from:i??e})},[`any?`,`number?`,`number?`,`any?`,`any?`],[`hour`,`minute`,`second`,`offset`,`from`]),duration:fn(function(e){return duration(e)||invalidArguments(`duration({from}) is not a valid duration`,{from:e})},[`string`],[`from`]),"years and months duration":fn(function(e,t){return yearsAndMonthsDuration(e,t)},[`date`,`date`],[`from`,`to`]),"@":fn(function(e){let t;return t=Qr.test(e)?duration(e):$r.test(e)?parseTime(e):e.includes(`T`)?parseDateTime(e):parseDate(e),t||invalidArguments(`@"{string}" is not a valid temporal literal`,{string:e})},[`string`]),now:fn(function(){return now()},[],[]),today:fn(function(){return today()},[],[]),not:fn(function(e){return isType(e,`boolean`)?!e:null},[`any`],[`negand`]),substring:fn(function(e,t,n){let r=t<0?e.length+t:t-1,i=Array.from(e);return(n===void 0?i.slice(r):i.slice(r,r+n)).join(``)},[`string`,`number`,`number?`],[`string`,`start position`,`length`]),"string length":fn(function(e){return countSymbols(e)},[`string`],[`string`]),"upper case":fn(function(e){return e.toUpperCase()},[`string`],[`string`]),"lower case":fn(function(e){return e.toLowerCase()},[`string`],[`string`]),"substring before":fn(function(e,t){let n=e.indexOf(t);return n===-1?``:e.substring(0,n)},[`string`,`string`],[`string`,`match`]),"substring after":fn(function(e,t){let n=e.indexOf(t);return n===-1?``:e.substring(n+t.length)},[`string`,`string`],[`string`,`match`]),replace:fn(function(e,t,n,r){let i=createRegexp(t,r||``,`g`);return i?e.replace(i,n.replace(/\$0/g,`$$&`)):invalidArguments(`replace(input, pattern, replacement) expects a valid pattern, got {pattern}`,{pattern:t})},[`string`,`string`,`string`,`string?`],[`input`,`pattern`,`replacement`,`flags`]),contains:fn(function(e,t){return e.includes(t)},[`string`,`string`],[`string`,`match`]),matches:fn(function(e,t,n){let r=createRegexp(t,n||``,``);return r?r.test(e):invalidArguments(`matches(input, pattern) expects a valid pattern, got {pattern}`,{pattern:t})},[`string`,`string`,`string?`],[`input`,`pattern`,`flags`]),"starts with":fn(function(e,t){return e.startsWith(t)},[`string`,`string`],[`string`,`match`]),"ends with":fn(function(e,t){return e.endsWith(t)},[`string`,`string`],[`string`,`match`]),split:fn(function(e,t){let n=createRegexp(t,``,``);return n?e.split(n):invalidArguments(`split(string, delimiter) expects a valid pattern, got {delimiter}`,{delimiter:t})},[`string`,`string`],[`string`,`delimiter`]),"string join":fn(function(e,t){let n=e.find(e=>!isString(e)&&e!==null);return n===void 0?e.filter(e=>e!==null).join(t||``):invalidArguments(`string join(list) expects a list of strings, got {item}`,{item:n})},[`list`,`string?`],[`list`,`delimiter`]),"list contains":fn(function(e,t){return e.some(e=>matches(e,t))},[`list`,`any?`],[`list`,`element`]),"list replace":fn(function(e,t,n,r){let i=t||r;return[`number`,`function`].includes(getType(i))?listReplace(e,t||r,n):invalidArguments(`list replace expects a numeric position or a match function, got {matcher}`,{matcher:i})},[`list`,`any?`,`any`,`function?`],[`list`,`position`,`newItem`,`match`]),count:fn(function(e){return e.length},[`list`],[`list`]),min:listFn(function(...e){return e.reduce((e,t)=>e===null?t:Math.min(e,t),null)},`number`,[`...list`]),max:listFn(function(...e){return e.reduce((e,t)=>e===null?t:Math.max(e,t),null)},`number`,[`...list`]),sum:listFn(function(...e){return sum(e)},`number`,[`...list`]),mean:listFn(function(...e){let t=sum(e);return t===null?t:t/e.length},`number`,[`...list`]),all:listFn(function(...e){let t=!1;for(let n of e){if(n===!1)return!1;typeof n!=`boolean`&&(t=!0)}return!t||null},`any?`,[`...list`]),any:listFn(function(...e){let t=!1;for(let n of e){if(n===!0)return!0;typeof n!=`boolean`&&(t=!0)}return t?null:!1},`any?`,[`...list`]),sublist:fn(function(e,t,n){let r=t<0?e.length+t:t-1;return n===void 0?e.slice(r):e.slice(r,r+n)},[`list`,`number`,`number?`],[`list`,`start`,`length`]),append:fn(function(e,...t){return e.concat(t)},[`list`,`any?`],[`list`,`...item`]),concatenate:fn(function(...e){let t=[];for(let n of e)if(isArray(n))for(let e of n)t.push(e);else t.push(n);return t},[`any`],[`...list`]),"insert before":fn(function(e,t,n){let r=e.length,i=t-1;i<0?i=Math.max(0,r+i):i>r&&(i=r);let a=Array(r+1);for(let t=0;t<i;t++)a[t]=e[t];a[i]=n;for(let t=i;t<r;t++)a[t+1]=e[t];return a},[`list`,`number`,`any?`],[`list`,`position`,`newItem`]),remove:fn(function(e,t){let n=e.length,r=Math.min(Math.max(t-1,-n),n),i=Math.min(Math.max(t,-n),n),a=r<0?n+r:r,o=i<0?n+i:i,s=Array(a+(n-o));for(let t=0;t<a;t++)s[t]=e[t];for(let t=o;t<n;t++)s[a+(t-o)]=e[t];return s},[`list`,`number`],[`list`,`position`]),reverse:fn(function(e){return e.slice().reverse()},[`list`],[`list`]),"index of":fn(function(e,t){return e.reduce(function(e,n,r){return matches(n,t)&&e.push(r+1),e},[])},[`list`,`any`],[`list`,`match`]),union:listFn(function(...e){return distinctLists(e)},`list`,[`...list`]),"distinct values":fn(function(e){return distinctLists([e])},[`list`],[`list`]),flatten:fn(function(e){return flatten(e)},[`list`],[`list`]),product:listFn(function(...e){return e.length===0?null:e.reduce((e,t)=>e*t,1)},`number`,[`...list`]),median:listFn(function(...e){return e.length===0?null:median(e)},`number`,[`...list`]),stddev:listFn(function(...e){return e.length<2?null:stddev(e)},`number`,[`...list`]),mode:listFn(function(...e){return mode(e)},`number`,[`...list`]),decimal:fn(function(e,t){return e===null||t===null?null:offsetted(bankersRound,e,t)},[`number`,`number`],[`n`,`scale`]),floor:fn(function(e,t=0){if(t===null)return null;let n=10**t;return Math.floor(e*n)/n},[`number`,`number?`],[`n`,`scale`]),ceiling:fn(function(e,t=0){if(t===null)return null;let n=10**t;return Math.ceil(e*n)/n},[`number`,`number?`],[`n`,`scale`]),abs:fn(function(e){return isNumber(e)?Math.abs(e):isDuration(e)?absDuration(e):e===null?null:invalidArguments(`abs(n) expects a number or duration, got {n}`,{n:e})},[`any`],[`n`]),"round up":fn(function(e,t){return e===null||t===null?null:offsetted(e>0?Math.ceil:Math.floor,e,t)},[`number`,`number`],[`n`,`scale`]),"round down":fn(function(e,t){return e===null||t===null?null:offsetted(e>0?Math.floor:Math.ceil,e,t)},[`number`,`number`],[`n`,`scale`]),"round half up":fn(function(e,t){if(e===null||t===null)return null;let n=e*10**t%1;return offsetted(Math.abs(n)===.5?e>0?Math.ceil:Math.floor:Math.round,e,t)},[`number`,`number`],[`n`,`scale`]),"round half down":fn(function(e,t){if(e===null||t===null)return null;let n=e*10**t%1;return offsetted(Math.abs(n)===.5?e>0?Math.floor:Math.ceil:Math.round,e,t)},[`number`,`number`],[`n`,`scale`]),modulo:fn(function(e,t){if(!t)return invalidArguments(`modulo(dividend, divisor) does not accept {divisor} as a divisor`,{divisor:t});let n=1e9;return Math.round((e%t+t)%t*n)/n},[`number`,`number`],[`dividend`,`divisor`]),sqrt:fn(function(e){return e<0?invalidArguments(`sqrt(number) expects a non-negative number, got {number}`,{number:e}):Math.sqrt(e)},[`number`],[`number`]),log:fn(function(e){return e<=0?invalidArguments(`log(number) expects a positive number, got {number}`,{number:e}):Math.log(e)},[`number`],[`number`]),exp:fn(function(e){return Math.exp(e)},[`number`],[`number`]),odd:fn(function(e){return Math.abs(e)%2==1},[`number`],[`number`]),even:fn(function(e){return Math.abs(e)%2==0},[`number`],[`number`]),is:fn(function(e,t){return e===void 0||t===void 0?!1:equals(e,t,!0)},[`any?`,`any?`],[`value1`,`value2`]),before:fn(function(e,t){return before(e,t)},[`any`,`any`],[`a`,`b`]),after:fn(function(e,t){return before(t,e)},[`any`,`any`],[`a`,`b`]),meets:fn(function(e,t){return meets(e,t)},[`range`,`range`],[`range1`,`range2`]),"met by":fn(function(e,t){return meets(t,e)},[`range`,`range`],[`range1`,`range2`]),overlaps:fn(function(e,t){return!before(e,t)&&!before(t,e)},[`range`,`range`],[`range1`,`range2`]),"overlaps before":fn(function(){throw notImplemented(`overlaps before`)},[`any?`]),"overlaps after":fn(function(){throw notImplemented(`overlaps after`)},[`any?`]),finishes:fn(function(){throw notImplemented(`finishes`)},[`any?`]),"finished by":fn(function(){throw notImplemented(`finished by`)},[`any?`]),includes:fn(function(e,t){return includes(e,t)},[`range`,`any`],[`range`,`value`]),during:fn(function(){throw notImplemented(`during`)},[`any?`]),starts:fn(function(){throw notImplemented(`starts`)},[`any?`]),"started by":fn(function(){throw notImplemented(`started by`)},[`any?`]),coincides:fn(function(){throw notImplemented(`coincides`)},[`any?`]),"day of year":fn(function(e){return e.value.dayOfYear},[`date time`],[`date`]),"day of week":fn(function(e){return ri[e.value.dayOfWeek-1]},[`date time`],[`date`]),"month of year":fn(function(e){return ii[e.value.month-1]},[`date time`],[`date`]),"week of year":fn(function(e){return e.value.weekOfYear},[`date time`],[`date`]),sort:fn(function(e,t){let n=t.parameterNames.length===2?(e,n)=>t.fn(e,n)?-1:1:(e,n)=>t.invoke([e,n])?-1:1;return Array.from(e).sort(n)},[`list`,`function`],[`list`,`precedes`]),"get value":fn(function(e,t){return getFromContext(t,e)??null},[`context`,`string`],[`m`,`key`]),"get entries":fn(function(e){return arguments.length!==1||Array.isArray(e)?null:Object.entries(e).map(([e,t])=>({key:e,value:t}))},[`context`],[`m`]),context:listFn(function(...e){let t={};for(let n of e){if(![`key`,`value`].every(e=>e in n))return invalidArguments(`context(entries) expects each entry to have a key and value, got {entry}`,{entry:n});let e=n.key;if(e===null)return invalidArguments(`context(entries) does not accept a null key`);if(has(t,e))return invalidArguments(`context(entries) expects unique keys, got {key}`,{key:e});t[e]=n.value}return t},`context`,[`...entries`]),"context merge":listFn(function(...e){return Object.assign({},...e)},`context`,[`...contexts`]),"context put":fn(function(e,t,n,r){return t===void 0&&r===void 0?invalidArguments(`context put(context, value) expects a key or keys`):contextPut(e,t||[r],n)},[`context`,`list?`,`any`,`string?`],[`context`,`keys`,`value`,`key`])};function contextPut(e,t,n){let[r,...i]=t;return getType(r)===`string`?getType(e)===`nil`?invalidArguments(`context put expects an existing context, got {context}`,{context:e}):i.length&&(n=contextPut(e[r],i,n),isInvocationFailure(n))?n:Object.assign(Object.assign({},e),{[r]:n}):invalidArguments(`context put expects a string key, got {key}`,{key:r})}function matches(e,t){return e===t}var $={},Qr=/^-?P/,$r=/^\d{1,2}:\d{1,2}:\d{1,2}/,ei=/\W/,ti=/[smix]/g,ni=/x/;function createArgTester(e){let t=e.endsWith(`?`),n=t?e.substring(0,e.length-1):e;return function(e){let r=Array.isArray(e);if(n===`list`)return r||t&&e===void 0?e:e==null?$:[e];n!==`any`&&r&&e.length===1&&(e=e[0]);let i=getType(e);return n===`any`||n===i?t?e:e===void 0?$:e:i===`nil`?t?e:$:typeCast(e,n)||$}}function createArgsValidator(e){let t=e.map(createArgTester);return function(n){let r=[],i=Math.max(n.length,e.length);for(let e=0;e<i;e++){let i=t[e],a=i?i(n[e]):n[e];if(a===$)return!1;r.push(a)}return r}}function listFn(e,t,n=null){let r=createArgTester(t),wrappedFn=function(...t){return t.length===0||(Array.isArray(t[0])&&t.length===1&&(t=t[0]),!t.every(e=>r(e)!==$))?null:e(...t)};return wrappedFn.$args=n||parseParameterNames(e),wrappedFn}function guard(e,t,n={}){return e?null:invalidArguments(t,n)}function fn(e,t,n=null){let r=createArgsValidator(t);n||=parseParameterNames(e);let wrappedFn=function(...t){let n=r(t);return n?e(...n):null};return wrappedFn.$args=n,wrappedFn}function sum(e){return e.reduce((e,t)=>e===null?t:e+t,null)}function distinctLists(e){let t=[],n=new Set,r=new Set,i=[],temporalKey=e=>{let t=getType(e);return t===`date`||t===`time`||t===`date time`?`${t}|${+!!isZoned(e)}|${toComparable(e)}`:null};for(let a of e)for(let e of a){if(typeof e==`number`&&!Number.isNaN(e)||typeof e==`string`||typeof e==`boolean`||e==null){if(n.has(e)||i.some(t=>equals(e,t)))continue;n.add(e),t.push(e);continue}let a=temporalKey(e);if(a!==null){if(r.has(a)||i.some(t=>equals(e,t)))continue;r.add(a),t.push(e)}else t.some(t=>equals(e,t))||(i.push(e),t.push(e))}return t}function flatten(e){let t=[],n=[[e,0]];for(;n.length;){let e=n[n.length-1],[r,i]=e;if(i>=r.length){n.pop();continue}e[1]++;let a=r[i];Array.isArray(a)?n.push([a,0]):a!==void 0&&t.push(a)}return t}function toKeyString(e){return typeof e==`string`&&ei.test(e)?toString(e,!0):e}function toDeepString(e){return toString(e,!0)}function escapeStr(e){return e.replace(/("|\\)/g,`\\$1`)}function toString(e,t=!1){let n=getType(e);if(n===`nil`)return`null`;if(n===`string`)return t?`"${escapeStr(e)}"`:e;if(n===`boolean`||n===`number`)return String(e);if(n===`list`)return`[`+e.map(toDeepString).join(`, `)+`]`;if(n===`context`)return`{`+Object.entries(e).map(([e,t])=>toKeyString(e)+`: `+toDeepString(t)).join(`, `)+`}`;if(n===`duration`||n===`date time`||n===`date`)return e.toString();if(n===`range`)return`<range>`;if(n===`time`)return e.toString();if(n===`function`)return`<function>`;throw notImplemented(`string(`+n+`)`)}function countSymbols(e){return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,`_`).length}function offsetted(e,t,n){let r=e(t*10**n)/10**n;return isNaN(r)?t:r}function bankersRound(e){let t=Math.floor(e);return e-t===.5?t%2==0?t:t+1:Math.round(e)}function stddev(e){let t=e.length,n=e.reduce((e,t)=>e+t)/t;return Math.sqrt(e.map(e=>(e-n)**2).reduce((e,t)=>e+t)/(t-1))}function listReplace(e,t,n){return isNumber(t)?[...e.slice(0,t-1),n,...e.slice(t)]:e.map((e,r)=>t.invoke([e,n])?n:e)}function median(e){let t=e.length,n=e.slice().sort(),r=t/2-1,i=Math.ceil(r);return r===i?(n[i]+n[i+1])/2:n[i]}function mode(e){if(e.length<2)return e;let t={};for(let n of e)t[n]=(t[n]||0)+1;let n=Object.entries(t).sort((e,t)=>t[1]-e[1]);return n.filter(e=>e[1]===n[0][1]).map(e=>+e[0])}var ri=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`],ii=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`];function buildFlags(e,t){let n=e.replace(ti,``);if(n)throw Error(`illegal flags: `+n);if(ni.test(e))throw notImplemented(`matches <x> flag`);return e+t}function createRegexp(e,t,n=``){try{return new RegExp(e,`u`+buildFlags(t,n))}catch(e){if(isNotImplemented(e))throw e}return null}function parseExpression(e,t={},n){return Fr.configure({top:`Expression`,contextTracker:trackVariables(t),dialect:n}).parse(e)}function parseUnaryTests(e,t={},n){return Fr.configure({top:`UnaryTests`,contextTracker:trackVariables(t),dialect:n}).parse(e)}var SyntaxError=class extends Error{constructor(e,t){super(e),Object.assign(this,t)}};function formatDetails(e,t){return Object.keys(t).reduce((e,n)=>e.replace(`{${n}}`,`'${formatValue(t[n])}'`),e)}var InterpreterContext=class{constructor(){this.warnings=[]}addWarning(e,t,n){this.warnings.push({type:t,message:formatDetails(n.template,n.values),details:n,position:e.position})}getWarnings(){return this.warnings}},Interpreter=class{_buildExecutionTree(e,t,n){let r={args:[],node:{name:`__ROOT`,input:t,position:{from:0,to:t.length}}},i=[r];return e.iterate({enter(e){let{isError:n,isSkipped:r}=e.type;if(n)throw lintError(t,e);if(r)return!1;let{from:a,to:o,name:s}=e;i.push({args:[],node:{name:s,get input(){return t.slice(a,o)},position:{from:a,to:o}}})},leave(e){if(e.type.isSkipped)return;let{node:t,args:r}=i.pop(),a=i[i.length-1],o=evalNode(t,r,n);a.args.push(o)}}),{root:r.args[r.args.length-1]}}evaluate(e,t,n,r){let i=parseExpression(e,t,n),{root:a}=this._buildExecutionTree(i,e,r);return{parseTree:i,root:a}}unaryTest(e,t,n,r){let i=parseUnaryTests(e,t,n),{root:a}=this._buildExecutionTree(i,e,r);return{parseTree:i,root:a}}},ai=new Interpreter,oi=new Set([`date`,`time`,`date time`,`duration`]),si=[`number`],ci=new Set([`number`,`boolean`,`any`]),li=new Set([`list`,`range`]);function unaryTest(e,t={},n){let r=new InterpreterContext;t=coerceContext(t);let i=t[`?`]===void 0?null:t[`?`],{root:a}=ai.unaryTest(e,t,n,r);return{value:a(t)(i),warnings:r.getWarnings()}}function evaluate(e,t={},n){let r=new InterpreterContext;t=coerceContext(t);let{root:i}=ai.evaluate(e,t,n,r);return{value:i(t),warnings:r.getWarnings()}}function coerceContext(e){return isArray(e)?e.map(coerceContext):isContext(e)?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,coerceContext(t)])):toFeel(e)}function evalNode(e,t,r){let resolveInvocation=t=>isInvocationFailure(t)?(r.addWarning(e,t.warning,{template:t.template,values:t.values}),null):t;switch(e.name){case`ArithOp`:return t=>{let invalidType=(t,n,i)=>{r.addWarning(e,`INVALID_TYPE`,{template:`Can't ${t} {right} to {left}`,values:{left:n,right:i}})},nullable=(e,n,r=si)=>(i,a)=>{let o=i(t),s=a(t);if(isArray(o)||isArray(s))return invalidType(n,o,s),null;let c=getType(o),l=getType(s);if(oi.has(c)){if(!oi.has(l))return invalidType(n,o,s),null}else if(c!==l||!r.includes(c))return invalidType(n,o,s),null;return e(o,s)};switch(e.input){case`+`:return nullable((e,t)=>{if(isDuration(e)&&!isDuration(t)){let n=e;e=t,t=n}if(isTemporal(e)&&isDuration(t))return addDuration(e,t,1);if(isTemporal(e)&&isTemporal(t))return null;if(isDuration(e)&&isDuration(t)){let n=addDurations(e,t,1);return n===null&&invalidType(`add`,e,t),n}return e+t},`add`,[`string`,`number`,`date`,`time`,`duration`,`date time`]);case`-`:return nullable((e,t)=>{if(isTemporal(e)&&isDuration(t))return addDuration(e,t,-1);if(isTemporal(e)&&isTemporal(t))return subtractTemporals(e,t);if(isDuration(e)&&isDuration(t)){let n=addDurations(e,t,-1);return n===null&&invalidType(`subtract`,e,t),n}return e-t},`subtract`,[`number`,`date`,`time`,`duration`,`date time`]);case`*`:return nullable((e,t)=>e*t,`multiply`,[`number`]);case`/`:return nullable((e,t)=>t?e/t:null,`divide`,[`number`]);case`**`:case`^`:return nullable((e,t)=>e**+t,`exponentiate`,[`number`])}};case`CompareOp`:return tag(()=>{switch(e.input){case`>`:return e=>createRange(e,null,!1,!1);case`>=`:return e=>createRange(e,null,!0,!1);case`<`:return e=>createRange(null,e,!1,!1);case`<=`:return e=>createRange(null,e,!1,!0);case`=`:return e=>t=>equals(t,e);case`!=`:return e=>t=>{let n=equals(t,e);return n===null?null:!n}}},`test`);case`BacktickIdentifier`:return e.input.replace(/`/g,``);case`Wildcard`:return e=>!0;case`null`:return tag(e=>null,`nil`);case`Disjunction`:return tag(e=>{let n=t[0](e),r=t[2](e),i=typeof n==`boolean`?n:null,a=typeof r==`boolean`?r:null;return i===!0||a===!0?!0:i===!1&&a===!1?!1:null},`test`);case`Conjunction`:return tag(e=>{let n=t[0](e),r=t[2](e),i=typeof n==`boolean`?n:null,a=typeof r==`boolean`?r:null;return i===!1||a===!1?!1:i===!0&&a===!0||null},`test`);case`Context`:{let e=t.slice(1,-1);return t=>{let n=Object.assign({},t),r={};for(let t of e){let[e,i]=t(n);n[e]=i,r[e]=i}return r}}case`FunctionBody`:return t[0];case`FormalParameters`:return t;case`FormalParameter`:return t[0];case`ParameterName`:return t.join(` `);case`FunctionDefinition`:return n=>{let i=t[2],a=t[4]===`external`;if(a)return r.addWarning(e,`UNSUPPORTED`,{template:`External functions are not supported`,values:{}}),null;let o=t[a?5:4];return wrapFunction((...e)=>{let t=i.reduce((t,n,r)=>(t[n]=e[r],t),Object.assign({},n));return o(t)},i)};case`ContextEntry`:return e=>[typeof t[0]==`function`?t[0](e):t[0],t[1](e)];case`Key`:return t[0];case`Identifier`:return e.input;case`SpecialFunctionName`:{let t=getBuiltin(e.input);return()=>t}case`Name`:return e.input.replace(/\s{2,}/g,` `);case`PathName`:return tag(n=>{let i=t.join(` `),a=getFromContext(i,n);return a===void 0?(isContext(n)?r.addWarning(e,`NO_CONTEXT_ENTRY_FOUND`,{template:`Key '${i}' not found in {target}`,values:{target:n}}):r.addWarning(e,`NO_PROPERTY_FOUND`,{template:`Property '${i}' not found in {target}`,values:{target:n}}),null):a},`any`);case`VariableName`:{let n=t.join(` `),i=getBuiltin(n);return tag(t=>{let a=getFromContext(n,t);return a===void 0?i||(r.addWarning(e,`NO_VARIABLE_FOUND`,{template:`Variable '${n}' not found`,values:{}}),null):a},`any`)}case`QualifiedName`:return{kind:`name`,name:normalizeTypeName(e.input),resolve:e=>t.reduce((e,t)=>typeof t==`function`?t(e):e,e)};case`?`:return e=>getFromContext(`?`,e);case`IterationContext`:return e=>{let n=t[0](e),r=t[2]&&t[2](e);return r?createRange(n,r):n};case`Type`:return t[0];case`InExpressions`:return e=>{let isValidContexts=e=>!(e===null||e.some(e=>getType(e)===`nil`)),join=(t,n)=>{let r=[];for(let i of t){let t=n(Object.assign(Object.assign({},e),i));if(!isValidContexts(t))return null;for(let e of t)r.push(Object.assign(Object.assign({},i),e))}return r},cartesian=(e,t,...n)=>isValidContexts(e)?t?cartesian(join(e,t),...n):e:null,cartesianProduct=t=>{let[n,...r]=t,i=n(e);return cartesian(i,...r)},n=cartesianProduct(t);return n&&n.map(t=>Object.assign(Object.assign({},e),t))};case`InExpression`:return e=>extractValue(e,t[0],t[2]);case`SpecialType`:return{kind:`name`,name:normalizeTypeName(e.input)};case`ListType`:return{kind:`list`,element:t.find(isTypeDescriptor)};case`ContextType`:return{kind:`context`,entries:t.find(Array.isArray)||[]};case`ContextEntryTypes`:return t.filter(e=>e&&e.name);case`ContextEntryType`:return{name:t[0],type:t.find(isTypeDescriptor)};case`FunctionType`:return{kind:`function`};case`InstanceOfExpression`:return tag(e=>matchesType(t[0](e),t[3],e),`test`);case`every`:return tag(e=>(t,n)=>{let r=t(e);return getType(r)===`list`?r.every(e=>isTruthy(n(e))):r},`test`);case`some`:return tag(e=>(t,n)=>{let r=t(e);return getType(r)===`list`?r.some(e=>isTruthy(n(e))):r},`test`);case`NumericLiteral`:return constant(e.input.includes(`.`)?parseFloat(e.input):parseInt(e.input),`number`);case`BooleanLiteral`:return constant(e.input===`true`,`boolean`);case`StringLiteral`:return constant(parseString(e.input),`string`);case`PositionalParameters`:return t.every(isConstant)?constant(t.map(e=>e.constantValue),`parameters`):e=>t.map(t=>t(e));case`NamedParameter`:return e=>[t[0],t[1](e)];case`NamedParameters`:return e=>t.reduce((t,n)=>{let[r,i]=n(e);return t[r]=i,t},{});case`DateTimeConstructor`:return constant(getBuiltin(e.input),`function`);case`DateTimeLiteral`:if(t.length!==1&&isConstant(t[0])&&isConstant(t[2])){let e=wrapFunction(t[0].constantValue);if(e){let n=e.invoke(t[2].constantValue);if(!isInvocationFailure(n))return constant(n,`date`)}}return tag(n=>{if(t.length===1)return t[0](n);{let i=t[0](n),a=wrapFunction(i);if(!a)return r.addWarning(e,`NO_FUNCTION_FOUND`,{template:`Cannot invoke {target}`,values:{target:i}}),null;let o=t[2](n),s=a.invoke(o);return resolveInvocation(s)}},`date`);case`AtLiteral`:{let n=t[0];if(isConstant(n)){let e=wrapFunction(getBuiltin(`@`));if(e){let t=e.invoke([n.constantValue]);if(!isInvocationFailure(t))return constant(t,`date`)}}let i=wrapFunction(getBuiltin(`@`));return tag(t=>i?resolveInvocation(i.invoke([n(t)])):(r.addWarning(e,`NO_FUNCTION_FOUND`,{template:`Cannot invoke '@'`,values:{}}),null),`date`)}case`FunctionInvocation`:return tag(n=>{let i=t[0](n),a=wrapFunction(i);if(!a)return r.addWarning(e,`NO_FUNCTION_FOUND`,{template:`Cannot invoke {target}`,values:{target:i}}),null;let o=t[2](n),s=a.invoke(o);return resolveInvocation(s)},`any`);case`IfExpression`:return(function(){let e=t[1],n=t[3],r=t[5];return tag(t=>isTruthy(e(t))?n(t):r?r(t):null,coalecenseTypes(n,r))})();case`Parameters`:return t.length===3?t[1]:e=>[];case`Comparison`:return tag(e=>{let n=t[1];if(n===`in`)return compareIn(t[0](e),(t[3]||t[2])(e));if(n===`between`){let n=t[2](e),r=t[4](e);return n===null||r===null?null:createRange(n,r).includes(t[0](e))}let r=t[0](e),i=t[2](e);return compareValue(n()(i),r)},`test`);case`QuantifiedExpression`:return tag(e=>{let n=t[0](e),r=t[1],i=t[3];return n(r,i)},`test`);case`ForExpression`:return e=>{let n=t[t.length-1],r=t[1](e);if(getType(r)!==`list`)return r;let i=[];for(let e of r)e.partial=i,i.push(n(e));return i};case`ArithmeticExpression`:return(function(){if(t.length===3){let[e,n,r]=t;return tag(t=>n(t)(e,r),coalecenseTypes(e,r))}if(t.length===2){let[e,n]=t;return tag(t=>e(t)(()=>0,n),n.type)}})();case`PositiveUnaryTest`:return e=>t[0].type===`boolean`&&n(e,`?`)?t[0](e)===e[`?`]:t[0](e);case`ParenthesizedExpression`:return t[1];case`PathExpression`:return tag(e=>{let n=t[0](e),r=t[2];return isArray(n)?n.map(e=>r(e)):r(n)},`any`);case`FilterExpression`:return tag(e=>{let n=t[0](e),r=t[2],i=isArray(n)?n:[n];if(n===null)return null;let a=r.type;if(ci.has(a)){let t=r(e);if(isBoolean(t))return t===!0?n:[];if(!isNumber(t))return[];let a=i[t<0?i.length+t:t-1];return a===void 0?null:a}if(a===`string`){let t=r(e);return i.filter(e=>e===t)}return a===`test`?i.map(t=>{let n=Object.assign(Object.assign(Object.assign({},e),{item:t}),t),i=r(n);return typeof i==`function`&&(i=i(t)),isRange(i)&&(i=i.includes(t)),i===!0?t:i}).filter(isTruthy):null},`any`);case`SimplePositiveUnaryTest`:return tag(e=>t.length===1?t[0](e):t[0](e)(t[1](e)),`test`);case`List`:{let e=t.slice(1,-1);return t=>e.map(e=>e(t))}case`Interval`:{let e=t[0]===`[`,n=t[4]===`]`;return tag(r=>{let i=t[1](r),a=t[3](r);return createRange(i,a,i!==null&&e,a!==null&&n)},`test`)}case`PositiveUnaryTests`:case`Expressions`:return e=>t.map(t=>t(e));case`Expression`:return e=>t[0](e);case`UnaryTests`:{let e=t[0]===`not`,n=e?t.slice(2,-1):t;return t=>(r=null)=>{let i=n.map(e=>e(t)).flat(1).map(e=>isArray(e)?e.includes(r):typeof e==`boolean`?e:compareValue(e,r)).some(e=>e===!0);return i===null?null:e?!i:i}}default:return e.name}}function getBuiltin(e,t){return getFromContext(e,Zr)}function extractValue(e,t,n){let r=n(e);return li.has(getType(r))?r.map(e=>({[t]:e})):null}function compareIn(e,t){if(!isArray(t)){if(getType(t)===`nil`)return null;t=[t]}let n=!1;for(let r of t){let t=compareValue(r,e);if(t===null&&!isRange(r)&&typeof r!=`function`&&(t=!1),t===!0)return!0;t===null&&(n=!0)}return n?null:!1}function compareValue(e,t){return typeof e==`function`?e(t):isRange(e)?e.includes(t):equals(e,t)}function coalecenseTypes(e,t){return!t||e.type===t.type?e.type:`any`}function tag(e,t){return Object.assign(e,{type:t,toString(){return`TaggedFunction[${t}] ${Function.prototype.toString.call(e)}`}})}function constant(e,t){return Object.assign(tag(()=>e,t),{constantValue:e})}function isConstant(e){return`constantValue`in e}function isTruthy(e){return e!==!1&&e!==null}var anyType=e=>getType(e)!==`nil`,ui={Any:anyType,Null:e=>e===null,number:e=>getType(e)===`number`,string:e=>getType(e)===`string`,boolean:e=>getType(e)===`boolean`,date:e=>getType(e)===`date`,time:e=>getType(e)===`time`,"date and time":e=>getType(e)===`date time`,duration:e=>getType(e)===`duration`,"days and time duration":e=>isDuration(e)&&!e.yearsMonths,"years and months duration":e=>isDuration(e)&&e.yearsMonths,context:e=>getType(e)===`context`,list:e=>getType(e)===`list`,range:e=>getType(e)===`range`,function:e=>getType(e)===`function`};function normalizeTypeName(e){return e.replace(/\s+/g,` `).trim()}function isTypeDescriptor(e){return e&&typeof e==`object`&&typeof e.kind==`string`}function matchesType(e,t,r){if(!isTypeDescriptor(t))return!1;switch(t.kind){case`name`:{let n=ui[t.name];if(n)return n(e);let i=t.resolve?t.resolve(r):null;return typeof i==`function`&&e instanceof i}case`list`:return getType(e)===`list`&&e.every(e=>matchesType(e,t.element,r));case`context`:return getType(e)===`context`&&t.entries.every(({name:t,type:i})=>n(e,t)&&matchesType(e[t],i,r));case`function`:return getType(e)===`function`}return!1}function parseString(e){return e.startsWith(`"`)&&(e=e.slice(1)),e.endsWith(`"`)&&(e=e.slice(0,-1)),e.replace(/(\\")|(\\\\)|(\\n)|(\\r)|(\\t)|(\\u[a-fA-F0-9]{5,6})|((?:\\u[a-fA-F0-9]{1,4})+)/gi,function(e,...t){let[n,r,i,a,o,s,c]=t;if(n)return`"`;if(i)return`
|
|
6
|
-
`;if(a)return`\r`;if(o)return` `;if(r)return`\\`;let l=/\\u([a-fA-F0-9]+)/gi;if(s){let e=l.exec(s);return String.fromCodePoint(parseInt(e[1],16))}if(c){let t=[],n;for(;(n=l.exec(e))!==null;)t.push(parseInt(n[1],16));return String.fromCharCode(...t)}throw Error(`illegal match`)})}function lintErrorDetails(e){let t=e.node,n=t.parent,{from:r,to:i}=t;if(t.from!==t.to)return{message:`Unrecognized token in <${n.name}>`,position:{from:r,to:i}};let a=findNext(t);return a?{message:`Unrecognized token <${a.name}> in <${n.name}>`,position:{from:a.from,to:a.to}}:{message:`Incomplete <${(n.enterUnfinishedNodesBefore(e.to)||n).name}>`,position:{from:r,to:i}}}function lintError(e,t){let{message:n,position:r}=lintErrorDetails(t);return new SyntaxError(n,{input:e.slice(r.from,r.to),position:r})}function findNext(e){let t=e.node,n,r=t;do{if(n=r.nextSibling,n)return n;r=r.parent}while(r);return null}function formatValue(e){let t=getType(e);if(t===`string`)return`"${String(e)}"`;if(t===`list`)return`[${e.length} items]`;if(t===`context`)return`{...}`;if(t===`function`){let t=e.parameterNames;return t?`function(${t.join(`, `)})`:`function`}return t===`nil`?`null`:String(e)}export{unaryTest as a,parseUnaryTests as i,evaluate as n,parseExpression as r,SyntaxError as t};
|