@marimo-team/islands 0.24.3-dev9 → 0.25.1-dev1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-C9OF_75w.js → ConnectedDataExplorerComponent-KVhjDMSe.js} +1066 -1066
- package/dist/ErrorBoundary-pXXIvlr3.js +200 -0
- package/dist/{ImageComparisonComponent-2a9TMMm2.js → ImageComparisonComponent-Dlm5aWnH.js} +4 -4
- package/dist/{Plot-C-9MQeGP.js → Plot-CTyjbQDT.js} +21032 -20666
- package/dist/_baseMerge-BiGRwuqv.js +165 -0
- package/dist/{abnfDiagram-N423BO3Z-CQKwzX8t.js → abnfDiagram-VCTEODGH-CpN0FRda.js} +17 -18
- package/dist/{any-language-editor-DmQ7dyCx.js → any-language-editor-CycIVIeP.js} +17 -17
- package/dist/arc-7ra3iNdN.js +81 -0
- package/dist/architecture-7GRP2DOG-BWLylgiA.js +3 -0
- package/dist/{architectureDiagram-T3A2C74G-CncrDpfa.js → architectureDiagram-5GKGNRK7-DDyj5SRB.js} +25 -25
- package/dist/assets/__vite-browser-external-C9iR87Zl.js +1 -0
- package/dist/assets/worker-D7hWi02M.js +109 -0
- package/dist/blockDiagram-I7D4REHJ-BbXEXJRu.js +1922 -0
- package/dist/{button-CKBkqR9J.js → button-DdXAm8iz.js} +5 -5
- package/dist/{c4Diagram-5PPSVZJV-DarUk3Yq.js → c4Diagram-7LVT6UL2-DcLsbQmR.js} +696 -668
- package/dist/{capabilities-CMBBJTcc.js → capabilities-B3ce_GNu.js} +1 -1
- package/dist/{html-to-image-BtFMe_Nq.js → cells-DYIkSxs6.js} +6757 -10137
- package/dist/{channel-CyiYUzJv.js → channel-B5XnTarr.js} +1 -1
- package/dist/chat-ui-BXj3uYjy.js +5786 -0
- package/dist/{check-CHig47QV.js → check-B7cIK6gb.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-BMuJl2jB.js → chunk-2Q5K7J3B-BMkUkeuy.js} +2 -2
- package/dist/chunk-4HAMMTFA-D2qv8E0X.js +4188 -0
- package/dist/{chunk-5VM5RSS4-Bcq0ftdy.js → chunk-5VM5RSS4-DKsmPCL6.js} +2 -2
- package/dist/{chunk-NSK5VX7P-CDTMcJB0.js → chunk-75Z2AOVW-5_HsvXwr.js} +23 -23
- package/dist/{chunk-I66GZJ75-BqyTCAPf.js → chunk-DU6HZSFF-BUgAHvnM.js} +21 -4
- package/dist/{chunk-2GRJ4B5K-DgO8Qudq.js → chunk-F27PBJKO-DHmYWZXr.js} +4 -4
- package/dist/{chunk-KEIR6QF5-C4KX3XYh.js → chunk-FOHPRMQF-BpYR8RqP.js} +4 -4
- package/dist/{chunk-WRU74C26-BpWsbiDK.js → chunk-GMAD6QVW-Czynz8aA.js} +486 -258
- package/dist/chunk-GVQU2GXP-yQEdulRS.js +37 -0
- package/dist/{chunk-5RXB4S5H-tLNUVDdO.js → chunk-IMKFNOWR-BfwTebD0.js} +11 -11
- package/dist/{chunk-JWPE2WC7-BJwjGUnF.js → chunk-JWPE2WC7-DJvv1t8U.js} +2 -2
- package/dist/chunk-L3NEJ4N5-DwRWnDDK.js +245 -0
- package/dist/{chunk-7Z6QIM7H-Dc18hFxH.js → chunk-OSK3NFVY-BBKU_Ign.js} +222 -144
- package/dist/{chunk-W5SLKNZC-DLnvpEtV.js → chunk-P2QGCYS3-C0iGU29N.js} +20 -20
- package/dist/{chunk-KBJHAD2P-BuqWqkcW.js → chunk-POPQ4Y6H-BCbS3Ozc.js} +4 -4
- package/dist/{chunk-4I5QYGJK-DpytHuZQ.js → chunk-PWAF6VOD-CTFCL0jI.js} +4 -4
- package/dist/{chunk-JQJVKLGR-CgqCwe8E.js → chunk-SHT3W25Y-BspJEJ5H.js} +109 -63
- package/dist/{chunk-6Q2QTUOP-DmTcEBMn.js → chunk-SVP7TREG-DX3rFNTe.js} +5 -5
- package/dist/{chunk-GF5L2VYU-B0wgCQgS.js → chunk-TICWLB2K-fVF7Uujg.js} +13 -13
- package/dist/{chunk-XXDRQBXY-D73H4IN0.js → chunk-XXDRQBXY-Dnl5VBqG.js} +3 -3
- package/dist/{chunk-Y2CYZVJY-DoegUj_e.js → chunk-Y2CYZVJY-DKKS1VyV.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-B85XCPv6.js → chunk-YOKDWASO-DrWbKnxA.js} +6925 -5460
- package/dist/classDiagram-ZZMXUADV-Fe-V14Sc.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-xTDg7lOs.js +30 -0
- package/dist/code-visibility-BC_yF09p.js +138 -0
- package/dist/{common-Cv-4hMa0.js → common-Dv227ygK.js} +8838 -12645
- package/dist/{compiler-runtime-CAH9RLw2.js → compiler-runtime-Cj8ZWiNS.js} +2 -2
- package/dist/copy-icon-CLdENY__.js +190 -0
- package/dist/{cose-bilkent-JH36ORCC-FUWHkXFX.js → cose-bilkent-JH36ORCC-_LyRKVqm.js} +2 -2
- package/dist/cubic-OaEBhQPK.js +1404 -0
- package/dist/cynefin-OW5HDTMX-obq-i80l.js +3 -0
- package/dist/{cynefinDiagram-MW4NZA55-BXSFK93J.js → cynefinDiagram-5FMLGOSQ-CFQrqzSX.js} +10 -10
- package/dist/{dagre-CGyalH38.js → dagre-BGSfXNEb.js} +678 -537
- package/dist/dagre-GXQ25YYZ-xHNAUTyG.js +425 -0
- package/dist/{data-grid-overlay-editor-DZM4BAaI.js → data-grid-overlay-editor-B-I2K7z3.js} +8 -9
- package/dist/{data-grid-types-BnZwWG8z.js → data-grid-types-BucVmDDp.js} +1 -1
- package/dist/{defaultLocale-DKaU_opG.js → defaultLocale-JI_lnoCe.js} +1 -1
- package/dist/{diagram-7IWD3JNH-BjfzDNvj.js → diagram-S7CK7UJ4-Bt1rPbAx.js} +40 -39
- package/dist/{diagram-UB23O5K3-DDg-7wLA.js → diagram-UQ7AKVKN-D1sq5FoZ.js} +10 -10
- package/dist/{diagram-B4RE2ZJO-CKccR9eE.js → diagram-VSXAHHWV-BKpmG23x.js} +10 -10
- package/dist/{diagram-Q27KOJAE-Zhz01ss7.js → diagram-VX7I27RA-BMwGFVD6.js} +21 -21
- package/dist/{diagram-LBJQPF4R-CJ-bOruh.js → diagram-Z3DM3KII--KLDR9Pl.js} +10 -10
- package/dist/dialog-CgNq6y9-.js +94 -0
- package/dist/{dist-dAqZAPcF.js → dist-1HDa70oE.js} +3 -3
- package/dist/{dist-Re9sOPOx.js → dist-9x1ZRe-e.js} +2 -2
- package/dist/{dist-DEeLqRlU.js → dist-B1vYLK28.js} +1 -1
- package/dist/{dist-C5Bn52W4.js → dist-B8D7McG3.js} +3 -3
- package/dist/{dist-_XvgytiS.js → dist-BHCHt1NI.js} +1 -1
- package/dist/{dist-CRjAdnqF.js → dist-BRxfaJgs.js} +3 -3
- package/dist/{dist-Byj2bV8o.js → dist-BVGtK7Ht.js} +1 -1
- package/dist/{dist-BIN5LKyE.js → dist-BaHjhkpZ.js} +2 -2
- package/dist/{dist-DVFbIwc5.js → dist-BtKIs9N-.js} +1 -1
- package/dist/{dist-BrQGcfQ9.js → dist-C2KzV-vf.js} +2 -2
- package/dist/{dist-DJFiGP2k.js → dist-C2wDlYdD.js} +2 -2
- package/dist/{dist-BVRM2y1P.js → dist-C8xMLVYi.js} +2 -2
- package/dist/dist-CMh_W4y4.js +538 -0
- package/dist/{extends-BPB6_lTK.js → dist-CO1AwwG_.js} +516 -561
- package/dist/{dist-BzN60Z2s.js → dist-CPGxfVGX.js} +1 -1
- package/dist/{dist-C7v-9nUK.js → dist-Cm3iAFMD.js} +3 -3
- package/dist/{dist-CGAxEiaM.js → dist-Cs2FijYk.js} +2 -2
- package/dist/{dist-hXd65f0_.js → dist-D1PpnuZB.js} +1 -1
- package/dist/{dist-VdvbxG72.js → dist-DHOTQar0.js} +1 -1
- package/dist/{dist-DcgzXCfy.js → dist-DPcEtqmG.js} +2 -2
- package/dist/{dist-D4Z_qdP4.js → dist-Df0wKI0F.js} +1 -1
- package/dist/{dist-qhLI-SHd.js → dist-DszxuxS1.js} +2 -2
- package/dist/{dist-BEmkrGoQ.js → dist-Kxgjxakw.js} +1 -1
- package/dist/{dist-BbSMhhD2.js → dist-KzZ7WELx.js} +2 -2
- package/dist/{dist-jWUab2d1.js → dist-lA1Cttkb.js} +1 -1
- package/dist/dropdown-menu-CZgjYSAh.js +4502 -0
- package/dist/{ebnfDiagram-BXEA7PRR-Dm75pCAS.js → ebnfDiagram-PWID7BFC-WnG4cvSQ.js} +17 -18
- package/dist/{erDiagram-JOGREHBK-rVDG3VSQ.js → erDiagram-RLTQ6QDP-DhzKiYHc.js} +1037 -798
- package/dist/error-banner-B94dcDmP.js +391 -0
- package/dist/error-entries-C0NsUqXl.js +56 -0
- package/dist/{esm-CR1nhb1c.js → esm-BElI3qKH.js} +22 -22
- package/dist/{esm-C1d0g6Bv.js → esm-G4Fhsgng.js} +51 -37
- package/dist/{esm-CesmlDrs.js → esm-h8f7-1CJ.js} +423 -423
- package/dist/eventmodeling-NTZA5JFV-D7nP7Uyu.js +3 -0
- package/dist/feedback-button-D2hUXe09.js +380 -0
- package/dist/flowDiagram-HODETNUW-6dMdB8pR.js +16 -0
- package/dist/{formats-CslNOKy0.js → formats-BR5iGb4s.js} +8 -8
- package/dist/{ganttDiagram-PKOTCBZU-9D-LXF6P.js → ganttDiagram-EL5Y4UJY-DbzEBLbl.js} +15 -15
- package/dist/gitGraph-4MIJSDKK-Dy9uQXGh.js +3 -0
- package/dist/{gitGraphDiagram-DS77QQ5N-BfpsXTLf.js → gitGraphDiagram-WWUBYQGX-BMf0iKi1.js} +10 -10
- package/dist/{glide-data-editor-sPZ8fUFn.js → glide-data-editor-B851uguN.js} +2143 -1910
- package/dist/{glide-utils-NShAPPtn.js → glide-utils-B3rUT5PI.js} +15 -15
- package/dist/globals-CmijFoIU.js +19 -0
- package/dist/highlighted-body-KPVGNVTW-Ad3MKZ18.js +38 -0
- package/dist/html-to-image-CeYYvQNb.js +3272 -0
- package/dist/info-A6RAGUB7-DKoayiHY.js +3 -0
- package/dist/{infoDiagram-6WML65LV-DqCTXHVy.js → infoDiagram-27XIBGKW-BagtCX_5.js} +7 -7
- package/dist/{ishikawaDiagram-WSZJBQD7-BCUYmZ1v.js → ishikawaDiagram-5VMMS53U-DByDehYy.js} +8 -8
- package/dist/{journeyDiagram-NVQOT4AX-BXB6M4zN.js → journeyDiagram-3NMN7TZE-D2LcKDUO.js} +8 -8
- package/dist/{jsx-runtime-CpoKNRgu.js → jsx-runtime-DgDPJV9S.js} +1 -1
- package/dist/{kanban-definition-27J2QSJJ-CGRhrDUX.js → kanban-definition-UXKFOSKX-BxwkbBI_.js} +29 -29
- package/dist/katex-DFBiSucW.js +21840 -0
- package/dist/{label-lwzzBHUW.js → label-BJ49YTvk.js} +6 -6
- package/dist/{linear-D5r_1YqD.js → linear-Cnaq3Tfb.js} +4 -4
- package/dist/{loader-VZ__bv4g.js → loader-D2W4oM-3.js} +15 -15
- package/dist/main.js +8113 -13475
- package/dist/mermaid-DPNuhemn.js +3084 -0
- package/dist/mermaid-HWGCJPDP-DYCzSILp.js +2 -0
- package/dist/mermaid-parser.core-DxuSfYwJ.js +638 -0
- package/dist/{mhchem-BjwrxcV-.js → mhchem-DWCF06w9.js} +1 -1
- package/dist/{micromark-factory-space-DruVGzeG.js → micromark-factory-space-DGxAzmw8.js} +2 -2
- package/dist/{mindmap-definition-FAOFIHXS-C9gRhzZq.js → mindmap-definition-YA3MSWOX-Cgvojw3y.js} +17 -17
- package/dist/{node-sql-parser-DesT1xNw.js → node-sql-parser-BiZOJ-FS.js} +0 -3
- package/dist/{number-overlay-editor-De2CabLL.js → number-overlay-editor-BtdoxWiD.js} +5 -5
- package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +23 -0
- package/dist/packet-AYTQ26CC-Yw7ajchJ.js +3 -0
- package/dist/{pegDiagram-VL7TDLO6-Df9IUjMD.js → pegDiagram-XKGWAZYB-DahHhYyN.js} +19 -20
- package/dist/{pick-SnHlmIBN.js → pick-CJeoxYOS.js} +1 -1
- package/dist/pie-WAS4IAKB-BKdKOAkL.js +3 -0
- package/dist/{pieDiagram-7S7Q4E2Y-BmRzQ8ZP.js → pieDiagram-E7YTZNPT-CCtX0oCK.js} +29 -31
- package/dist/{process-output-CPy0YKUe.js → process-output-BCTjlyuH.js} +7 -6
- package/dist/purify.es-DgKyQviY.js +805 -0
- package/dist/{quadrantDiagram-CIZ2JOQS-wFBvWcxS.js → quadrantDiagram-AXDQQJYC-DftINo6g.js} +5 -5
- package/dist/radar-RG4KPBEZ-ScR_D_Ts.js +3 -0
- package/dist/railroad-74A4TZTK-DQvPSdo5.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-CsJQG2O8.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-BgEobkSn.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-DjLAjofI.js +3 -0
- package/dist/{railroadDiagram-AXF67PYL-DxbIatiN.js → railroadDiagram-O6MQD6OU-Du5NsPUb.js} +17 -18
- package/dist/{react-dom-C94wmq5w.js → react-dom-BUgJ-ab_.js} +3 -3
- package/dist/{react-DMWcHin-.js → react-ofJbxM4x.js} +2 -2
- package/dist/{react-vega-DSD5aT7_.js → react-vega-5AcMW8gG.js} +10012 -9369
- package/dist/{requirementDiagram-LRYGKXZP-X_x-Y713.js → requirementDiagram-BXWQKSXE-0pmmxL6_.js} +20 -19
- package/dist/{reveal-component-CVsYlb9J.js → reveal-component-DQq7NUGJ.js} +1303 -1237
- package/dist/{sankeyDiagram-W5VNT64P-BYJALbbm.js → sankeyDiagram-P5KCCOFB-CDKR5TJH.js} +4 -4
- package/dist/{select-3qHpFKF9.js → select-C6plhmZr.js} +317 -562
- package/dist/{sequenceDiagram-SI44F4Z6-BiPBe3Sv.js → sequenceDiagram-WJ2MYXX4-DB-ChWwU.js} +11 -11
- package/dist/{sizeCapture-X5ZJPWSS-BKLDeh5H.js → sizeCapture-INFHLROL-Dx5SpkQF.js} +2 -2
- package/dist/{spec-CutWdqo3.js → spec-CAYwFeV6.js} +4 -4
- package/dist/{src-C31ngt98.js → src-CA_m4ONl.js} +298 -303
- package/dist/{stateDiagram-OKZ733FA-B7QyNBxH.js → stateDiagram-D77RDMKH-orN6AwMx.js} +19 -20
- package/dist/stateDiagram-v2-MP3YSRHH-o05_rJN8.js +30 -0
- package/dist/style.css +2 -2
- package/dist/{swimlanes-SLNWSIFB-B4f8VP3b.js → swimlanes-42K2YHIH-BkSDcqDT.js} +1501 -1591
- package/dist/swimlanesDiagram-VR7AAH4N-D_nFQfRc.js +30 -0
- package/dist/{swiper-component-C90YjhaV.js → swiper-component-IOUowglM.js} +39 -26
- package/dist/{time-aWGfjN8x.js → time-BieKwdYS.js} +42 -42
- package/dist/{timeline-definition-Z64GVDOM-Dacq_5lr.js → timeline-definition-24CTP7MA-BuqJUIRZ.js} +7 -7
- package/dist/{toDate-CpXBeDq0.js → toDate-WXg1yLcI.js} +7 -7
- package/dist/toast-DvY70eFX.js +1834 -0
- package/dist/tooltip-qB8NlSqV.js +1742 -0
- package/dist/treeView-Q6P3EWNA-DuRV97YF.js +3 -0
- package/dist/treemap-WGGIJYW6-AsLq-uwC.js +3 -0
- package/dist/use-restore-focus-D5D9xEjZ.js +5946 -0
- package/dist/{use-vega-container-remeasure-DUW4tRxq.js → use-vega-container-remeasure-4DwJbPWu.js} +2 -2
- package/dist/{useAsyncData-CH6-CgJF.js → useAsyncData-BD6AStMt.js} +3 -3
- package/dist/{useDateFormatter-Cp9Jdxls.js → useDateFormatter-BRTPsUK7.js} +8 -8
- package/dist/{useDeepCompareMemoize-JC87C_jO.js → useDeepCompareMemoize-D_HNdyvI.js} +2 -2
- package/dist/{useIframeCapabilities-De3C-9b4.js → useIframeCapabilities-CVtNkI3Y.js} +2 -2
- package/dist/{useLifecycle-B4RGlyf0.js → useLifecycle-DPgiiwwU.js} +6 -6
- package/dist/useNumberFormatter-BfDpa21j.js +251 -0
- package/dist/useTheme-DzXmYZ5V.js +904 -0
- package/dist/{vega-component-ovBXgp91.js → vega-component-D0QXopU8.js} +34 -34
- package/dist/{vega-embed-container-TJ5z5dZw.js → vega-embed-container-CbnTccZi.js} +6 -6
- package/dist/vega-loader.browser-D95WfUcj.js +1139 -0
- package/dist/{vennDiagram-T6HMQDX7-D-Rcq3Iu.js → vennDiagram-4TSXK5OY-CTUlJ2PK.js} +9 -9
- package/dist/wardley-WFR3VGLG-Na-tFhQJ.js +3 -0
- package/dist/{wardleyDiagram-T6FBY63Y-Z-Og7_Wd.js → wardleyDiagram-VM6X3IG4-3evLUb0M.js} +10 -10
- package/dist/{xychartDiagram-ELKLHX3M-BDJ2dITA.js → xychartDiagram-S5SC5T6Z-DL2E3K8-.js} +248 -139
- package/package.json +54 -57
- package/src/__mocks__/notebook.ts +1 -0
- package/src/__mocks__/requests.ts +7 -0
- package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +12 -12
- package/src/__tests__/fixtures/pair-preview.ts +19 -0
- package/src/__tests__/mount.test.ts +18 -0
- package/src/components/app-config/optional-features.tsx +6 -0
- package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +394 -0
- package/src/components/chat/acp/__tests__/agent-panel.test.tsx +272 -0
- package/src/components/chat/acp/__tests__/state.test.ts +2 -2
- package/src/components/chat/acp/agent-panel.tsx +115 -74
- package/src/components/chat/acp/state.ts +1 -1
- package/src/components/data-table/__tests__/filters.test.ts +21 -21
- package/src/components/data-table/charts/__tests__/spec.test.ts +5 -10
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +2 -6
- package/src/components/data-table/column-summary/chart-spec-model.tsx +1 -1
- package/src/components/data-table/columns.tsx +64 -67
- package/src/components/editor/RecoveryButton.tsx +1 -0
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +36 -2
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +115 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +218 -0
- package/src/components/editor/actions/pair-with-agent-commands.ts +46 -9
- package/src/components/editor/actions/pair-with-agent-modal.tsx +49 -23
- package/src/components/editor/ai/add-cell-with-ai.tsx +1 -0
- package/src/components/editor/ai/ai-completion-editor.tsx +3 -1
- package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +186 -0
- package/src/components/editor/alerts/__tests__/startup-progress.test.tsx +185 -0
- package/src/components/editor/alerts/connecting-alert.tsx +1 -66
- package/src/components/editor/alerts/connection-notice.tsx +186 -0
- package/src/components/editor/alerts/startup-output.tsx +173 -0
- package/src/components/editor/alerts/startup-progress.tsx +204 -0
- package/src/components/editor/app-container.tsx +9 -3
- package/src/components/editor/boundary/ErrorBoundary.tsx +38 -16
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +311 -0
- package/src/components/editor/cell/__tests__/toolbar.test.tsx +73 -0
- package/src/components/editor/cell/code/__tests__/rtc-editor-config.test.ts +50 -0
- package/src/components/editor/cell/code/cell-editor.tsx +41 -42
- package/src/components/editor/cell/toolbar.tsx +11 -0
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +94 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +63 -42
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +164 -8
- package/src/components/editor/chrome/panels/__tests__/sandbox-details.test.tsx +358 -0
- package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +168 -0
- package/src/components/editor/chrome/panels/packages-panel.tsx +113 -175
- package/src/components/editor/chrome/panels/sandbox-controller.tsx +106 -0
- package/src/components/editor/chrome/panels/sandbox-details-state.ts +38 -0
- package/src/components/editor/chrome/panels/sandbox-panel.tsx +230 -0
- package/src/components/editor/chrome/panels/sandbox-toggle.tsx +52 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +7 -0
- package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +3 -1
- package/src/components/editor/code/__tests__/readonly-diff.test.tsx +65 -0
- package/src/components/editor/code/readonly-diff.tsx +1 -1
- package/src/components/editor/connections/database/__tests__/__snapshots__/as-code.test.ts.snap +98 -98
- package/src/components/editor/connections/database/__tests__/as-code.test.ts +11 -5
- package/src/components/editor/dynamic-favicon.tsx +17 -10
- package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +13 -11
- package/src/components/editor/file-tree/__tests__/tree-actions.test.tsx +54 -0
- package/src/components/editor/file-tree/tree-actions.tsx +11 -14
- package/src/components/editor/header/__tests__/status.test.tsx +8 -20
- package/src/components/editor/header/filename-input.tsx +2 -0
- package/src/components/editor/header/status.tsx +5 -3
- package/src/components/editor/navigation/clipboard.ts +1 -0
- package/src/components/editor/notebook-cell.tsx +4 -2
- package/src/components/editor/output/JsonOutput.tsx +182 -632
- package/src/components/editor/output/Outputs.css +49 -17
- package/src/components/editor/output/__tests__/JsonOutput-interactions.test.tsx +254 -0
- package/src/components/editor/output/__tests__/JsonOutput-mimetype.test.tsx +41 -46
- package/src/components/editor/output/__tests__/{json-output.test.ts → json-output-formatting.test.ts} +113 -75
- package/src/components/editor/output/__tests__/json-output-pagination.test.ts +252 -0
- package/src/components/editor/output/json-output/formatting.ts +167 -0
- package/src/components/editor/output/json-output/pagination.ts +155 -0
- package/src/components/editor/output/json-output/renderers.tsx +196 -0
- package/src/components/editor/output/json-output/themes.ts +52 -0
- package/src/components/editor/package-alert.tsx +112 -66
- package/src/components/editor/renderers/cell-array.tsx +1 -5
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +3 -7
- package/src/components/slides/slide-form.tsx +1 -0
- package/src/components/slides/slide-notes-editor.tsx +1 -0
- package/src/components/tracing/tracing-spec.ts +1 -1
- package/src/components/ui/__tests__/badge.test.ts +6 -4
- package/src/components/ui/use-toast.ts +8 -0
- package/src/core/MarimoApp.tsx +0 -2
- package/src/core/ai/context/providers/__tests__/error.test.ts +16 -22
- package/src/core/alerts/__tests__/environment.test.ts +183 -0
- package/src/core/alerts/__tests__/state.test.tsx +240 -0
- package/src/core/alerts/environment.ts +57 -0
- package/src/core/alerts/state.ts +155 -99
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +296 -259
- package/src/core/cells/__tests__/apply-transaction.test.ts +34 -0
- package/src/core/cells/__tests__/cell.test.ts +61 -0
- package/src/core/cells/__tests__/cells.test.ts +182 -37
- package/src/core/cells/__tests__/document-changes.test.ts +39 -1
- package/src/core/cells/__tests__/outputs.test.tsx +117 -0
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +4 -3
- package/src/core/cells/__tests__/session.test.ts +7 -0
- package/src/core/cells/cell.ts +9 -1
- package/src/core/cells/cells.ts +13 -18
- package/src/core/cells/document-changes.ts +11 -1
- package/src/core/cells/outputs.ts +66 -9
- package/src/core/cells/pending-delete-service.ts +12 -16
- package/src/core/cells/session.ts +2 -0
- package/src/core/cells/types.ts +2 -0
- package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +8 -16
- package/src/core/codemirror/language/__tests__/sql.test.ts +70 -2
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +4 -8
- package/src/core/codemirror/language/languages/sql/sql.ts +16 -1
- package/src/core/codemirror/rtc/extension.ts +5 -2
- package/src/core/config/pair.ts +19 -0
- package/src/core/datasets/__tests__/data-source.test.ts +2 -0
- package/src/core/datasets/data-source-connections.ts +15 -10
- package/src/core/edit-app.tsx +8 -5
- package/src/core/errors/state.ts +1 -2
- package/src/core/export/__tests__/hooks.test.ts +1 -6
- package/src/core/islands/bootstrap.ts +3 -1
- package/src/core/islands/bridge.ts +3 -0
- package/src/core/islands/worker-factory.ts +2 -12
- package/src/core/kernel/messages.ts +2 -2
- package/src/core/network/__tests__/requests-network.test.ts +4 -3
- package/src/core/network/connection-notice.ts +117 -0
- package/src/core/network/connection.ts +19 -0
- package/src/core/network/requests-lazy.ts +3 -0
- package/src/core/network/requests-network.ts +12 -0
- package/src/core/network/requests-static.ts +3 -0
- package/src/core/network/requests-toasting.tsx +3 -0
- package/src/core/network/resolve.ts +2 -1
- package/src/core/network/types.ts +7 -0
- package/src/core/network/useConnectionNotice.ts +53 -0
- package/src/core/packages/__tests__/usePackageAction.test.tsx +129 -0
- package/src/core/packages/__tests__/useSandboxController.test.tsx +246 -0
- package/src/core/packages/package-data.ts +35 -0
- package/src/core/packages/sandbox-state.ts +67 -0
- package/src/core/packages/toast-components.tsx +11 -0
- package/src/core/packages/useInstallPackage.ts +1 -1
- package/src/core/packages/usePackageAction.ts +51 -0
- package/src/core/packages/usePackageDependencies.ts +22 -0
- package/src/core/packages/useSandboxController.ts +208 -0
- package/src/core/run-app.tsx +2 -0
- package/src/core/static/__tests__/files.test.ts +12 -30
- package/src/core/wasm/__tests__/bootstrap.test.ts +63 -0
- package/src/core/wasm/__tests__/bridge.test.ts +13 -4
- package/src/core/wasm/__tests__/fs.test.ts +22 -0
- package/src/core/wasm/__tests__/runtime-config.test.ts +65 -0
- package/src/core/wasm/bridge.ts +35 -23
- package/src/core/wasm/rpc.ts +2 -0
- package/src/core/wasm/runtime-config.ts +31 -0
- package/src/core/wasm/worker/bootstrap.ts +21 -11
- package/src/core/wasm/worker/constants.ts +1 -0
- package/src/core/wasm/worker/fs.ts +4 -0
- package/src/core/wasm/worker/getController.ts +3 -1
- package/src/core/wasm/worker/save-worker.ts +10 -9
- package/src/core/wasm/worker/types.ts +6 -4
- package/src/core/wasm/worker/worker.ts +9 -9
- package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +404 -3
- package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +8 -6
- package/src/core/websocket/transports/transport.ts +1 -1
- package/src/core/websocket/transports/ws.ts +1 -1
- package/src/core/websocket/types.ts +11 -1
- package/src/core/websocket/useMarimoKernelConnection.tsx +63 -16
- package/src/hooks/useDebounce.ts +2 -0
- package/src/mount.tsx +3 -0
- package/src/plugins/core/BadPlugin.tsx +3 -14
- package/src/plugins/core/RenderHTML.tsx +22 -2
- package/src/plugins/core/__test__/RenderHTML.test.ts +187 -0
- package/src/plugins/core/registerReactComponent.tsx +0 -1
- package/src/plugins/impl/FileBrowserPlugin.tsx +10 -4
- package/src/plugins/impl/FormPlugin.tsx +2 -0
- package/src/plugins/impl/MatrixPlugin.tsx +2 -0
- package/src/plugins/impl/RangeSliderPlugin.tsx +2 -0
- package/src/plugins/impl/SliderPlugin.tsx +2 -0
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +50 -1
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +23 -18
- package/src/plugins/impl/data-frames/panel.tsx +1 -0
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +1 -1
- package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +15 -0
- package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +42 -48
- package/src/plugins/layout/AccordionPlugin.tsx +7 -2
- package/src/plugins/layout/JsonOutputPlugin.tsx +7 -10
- package/src/plugins/layout/__test__/AccordionPlugin.test.tsx +66 -0
- package/src/stories/sandbox.stories.tsx +488 -0
- package/src/utils/__tests__/path.test.ts +6 -5
- package/src/utils/__tests__/worker.test.ts +81 -0
- package/src/utils/worker.ts +22 -0
- package/dist/ErrorBoundary-CR-ZQN_c.js +0 -125
- package/dist/_baseMerge-Dv8bBloN.js +0 -73
- package/dist/_initCloneObject---vediN2.js +0 -95
- package/dist/arc-DOVLrCPd.js +0 -82
- package/dist/architecture-TIHT7OUA-MiJpPpQW.js +0 -3
- package/dist/array-CApNbSU9.js +0 -6
- package/dist/assets/__vite-browser-external-BdKGjRZ4.js +0 -1
- package/dist/assets/worker-DlIBfp9S.js +0 -98
- package/dist/blockDiagram-VBNYF7ZC-Bc--I65C.js +0 -3158
- package/dist/chat-ui-BSwr409J.js +0 -8455
- package/dist/chunk-3NCLNEKW-BIp_lB_4.js +0 -14
- package/dist/chunk-5FCAYU7R-C_HO9A1J.js +0 -23
- package/dist/chunk-5HE753X5-Bixm_MV-.js +0 -38
- package/dist/chunk-5JV3BV7I-CH5J3iZY.js +0 -54
- package/dist/chunk-5TONJI2A-DG6gDiSS.js +0 -62
- package/dist/chunk-7BUUIJ7U-5afmIPeo.js +0 -82
- package/dist/chunk-BIQX33UG-7TMBUf89.js +0 -23
- package/dist/chunk-CQNSW5MT-Cnqqsxt-.js +0 -38
- package/dist/chunk-CYSBUYHQ-BAbymFHR.js +0 -23
- package/dist/chunk-EMLP6XTP-Bsz-QL77.js +0 -23
- package/dist/chunk-J7OUQ5F2-CM_meqZH.js +0 -57
- package/dist/chunk-JG7HCLWE-DUnCDgPk.js +0 -62
- package/dist/chunk-MOZMSUNE-BG6IHvzT.js +0 -35
- package/dist/chunk-OSBZ3O6U-CYwj_bvR.js +0 -23
- package/dist/chunk-QBLGF6JB-B4vJ4j8J.js +0 -23
- package/dist/chunk-QR6OTTB3-D4wH2ldi.js +0 -3738
- package/dist/chunk-R7FJI6CG-Blf8FcmZ.js +0 -64
- package/dist/chunk-RYQCIY6F-BWbIlBIH.js +0 -241
- package/dist/chunk-U6XO7XAA-COw445DS.js +0 -63
- package/dist/chunk-UBXNYLIW-BHigVU4H.js +0 -32
- package/dist/chunk-YOTPTUD7-Dn044Q_d.js +0 -30
- package/dist/chunk-ZIRB5QZD-BR4TMfOa.js +0 -1153
- package/dist/classDiagram-JCYQIIEL-DmXSLxe_.js +0 -30
- package/dist/classDiagram-v2-OCEON4UE-CooqVexA.js +0 -30
- package/dist/click-outside-container-D_URcm3D.js +0 -167
- package/dist/code-block-37QAKDTI-CQrzBOr-.js +0 -107
- package/dist/copy-CD7S58CY.js +0 -141
- package/dist/cynefin-VYW2F7L2-CeHAxOEX.js +0 -3
- package/dist/dagre-VZM6K2ZE-CJggWPTJ.js +0 -328
- package/dist/dist-3_o3T78I.js +0 -1360
- package/dist/dist-ABQjhuek.js +0 -64
- package/dist/dist-CO5R6VMi.js +0 -538
- package/dist/dropdown-menu-DhCfcscX.js +0 -5858
- package/dist/emotion-is-prop-valid.esm-M57VsT8j.js +0 -14
- package/dist/error-banner-CsXbEEjo.js +0 -611
- package/dist/eventmodeling-45OFAUF4-B_lWZ-Pd.js +0 -3
- package/dist/flowDiagram-UKHOOZJN-g1AmrZzM.js +0 -17
- package/dist/gitGraph-TEB2WS4Q-Dj-eXUph.js +0 -3
- package/dist/info-DKCQHKI2-Bhb-pe2e.js +0 -3
- package/dist/line-CuKjIQa1.js +0 -34
- package/dist/map-BJpOfPlL.js +0 -149
- package/dist/math-BXtKgYah.js +0 -10
- package/dist/mermaid-4DMBBIKO-Ddp9TgNp.js +0 -2
- package/dist/mermaid-Bi23Ibnw.js +0 -1173
- package/dist/mermaid-parser.core-Din9FvSi.js +0 -99
- package/dist/packet-7NZHBO7P-fbkIIyKE.js +0 -3
- package/dist/path-BNHuHZP8.js +0 -87
- package/dist/pie-RZYD4A2V-CLRIsxY1.js +0 -3
- package/dist/purify.es-CB-YO1Hn.js +0 -774
- package/dist/radar-I7S5WNFK-BGzCbgXu.js +0 -3
- package/dist/railroad-3IZDKUUU-CvQIIcuU.js +0 -3
- package/dist/railroad-abnf-AHOZXSZD-CMwtlNtu.js +0 -3
- package/dist/railroad-ebnf-EBAXGLYW-n1QUOAsh.js +0 -3
- package/dist/railroad-peg-LSFZ7HO6-PjnrpmCs.js +0 -3
- package/dist/schemas-DzK6U94N.js +0 -6057
- package/dist/stateDiagram-v2-UEYNNEHI-BTRUs8Il.js +0 -30
- package/dist/step-CKczO72Q.js +0 -670
- package/dist/swimlanesDiagram-ULZ7WXOC-NBmgBl9G.js +0 -31
- package/dist/timer-DpDyj9G0.js +0 -596
- package/dist/tooltip-Dt77sBeT.js +0 -390
- package/dist/treeView-QDETBFTQ-DU8LwHuf.js +0 -3
- package/dist/treemap-6X3UGDF4-DUk4-k_O.js +0 -3
- package/dist/useTheme-CVJ0UOf2.js +0 -841
- package/dist/vega-loader.browser-DEggZzni.js +0 -1083
- package/dist/wardley-OPB4EBWU-Db-AaGas.js +0 -3
- package/src/components/editor/output/EmotionCacheProvider.tsx +0 -32
|
@@ -1,1153 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./chunk-Y2CYZVJY-DoegUj_e.js";
|
|
2
|
-
//#region ../node_modules/.pnpm/mermaid@11.16.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZIRB5QZD.mjs
|
|
3
|
-
function t(e) {
|
|
4
|
-
return e == null;
|
|
5
|
-
}
|
|
6
|
-
e(t, "isNothing");
|
|
7
|
-
function n(e) {
|
|
8
|
-
return typeof e == "object" && !!e;
|
|
9
|
-
}
|
|
10
|
-
e(n, "isObject");
|
|
11
|
-
function r(e) {
|
|
12
|
-
return Array.isArray(e) ? e : t(e) ? [] : [e];
|
|
13
|
-
}
|
|
14
|
-
e(r, "toArray");
|
|
15
|
-
function i(e, t) {
|
|
16
|
-
var n, r, i, a;
|
|
17
|
-
if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
|
|
18
|
-
return e;
|
|
19
|
-
}
|
|
20
|
-
e(i, "extend");
|
|
21
|
-
function a(e, t) {
|
|
22
|
-
var n = "", r;
|
|
23
|
-
for (r = 0; r < t; r += 1) n += e;
|
|
24
|
-
return n;
|
|
25
|
-
}
|
|
26
|
-
e(a, "repeat");
|
|
27
|
-
function o(e) {
|
|
28
|
-
return e === 0 && 1 / e == -Infinity;
|
|
29
|
-
}
|
|
30
|
-
e(o, "isNegativeZero");
|
|
31
|
-
var s = {
|
|
32
|
-
isNothing: t,
|
|
33
|
-
isObject: n,
|
|
34
|
-
toArray: r,
|
|
35
|
-
repeat: a,
|
|
36
|
-
isNegativeZero: o,
|
|
37
|
-
extend: i
|
|
38
|
-
};
|
|
39
|
-
function c(e, t) {
|
|
40
|
-
var n = "", r = e.reason || "(unknown reason)";
|
|
41
|
-
return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
|
|
42
|
-
}
|
|
43
|
-
e(c, "formatError");
|
|
44
|
-
function l(e, t) {
|
|
45
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = c(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
|
|
46
|
-
}
|
|
47
|
-
e(l, "YAMLException$1"), l.prototype = Object.create(Error.prototype), l.prototype.constructor = l, l.prototype.toString = /* @__PURE__ */ e(function(e) {
|
|
48
|
-
return this.name + ": " + c(this, e);
|
|
49
|
-
}, "toString");
|
|
50
|
-
var u = l;
|
|
51
|
-
function d(e, t, n, r, i) {
|
|
52
|
-
var a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
53
|
-
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
54
|
-
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
55
|
-
pos: r - t + a.length
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
e(d, "getLine");
|
|
59
|
-
function f(e, t) {
|
|
60
|
-
return s.repeat(" ", t - e.length) + e;
|
|
61
|
-
}
|
|
62
|
-
e(f, "padStart");
|
|
63
|
-
function p(e, t) {
|
|
64
|
-
if (t = Object.create(t || null), !e.buffer) return null;
|
|
65
|
-
t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
66
|
-
for (var n = /\r?\n|\r|\0/g, r = [0], i = [], a, o = -1; a = n.exec(e.buffer);) i.push(a.index), r.push(a.index + a[0].length), e.position <= a.index && o < 0 && (o = r.length - 2);
|
|
67
|
-
o < 0 && (o = r.length - 1);
|
|
68
|
-
var c = "", l, u, p = Math.min(e.line + t.linesAfter, i.length).toString().length, m = t.maxLength - (t.indent + p + 3);
|
|
69
|
-
for (l = 1; l <= t.linesBefore && !(o - l < 0); l++) u = d(e.buffer, r[o - l], i[o - l], e.position - (r[o] - r[o - l]), m), c = s.repeat(" ", t.indent) + f((e.line - l + 1).toString(), p) + " | " + u.str + "\n" + c;
|
|
70
|
-
for (u = d(e.buffer, r[o], i[o], e.position, m), c += s.repeat(" ", t.indent) + f((e.line + 1).toString(), p) + " | " + u.str + "\n", c += s.repeat("-", t.indent + p + 3 + u.pos) + "^\n", l = 1; l <= t.linesAfter && !(o + l >= i.length); l++) u = d(e.buffer, r[o + l], i[o + l], e.position - (r[o] - r[o + l]), m), c += s.repeat(" ", t.indent) + f((e.line + l + 1).toString(), p) + " | " + u.str + "\n";
|
|
71
|
-
return c.replace(/\n$/, "");
|
|
72
|
-
}
|
|
73
|
-
e(p, "makeSnippet");
|
|
74
|
-
var m = p, h = [
|
|
75
|
-
"kind",
|
|
76
|
-
"multi",
|
|
77
|
-
"resolve",
|
|
78
|
-
"construct",
|
|
79
|
-
"instanceOf",
|
|
80
|
-
"predicate",
|
|
81
|
-
"represent",
|
|
82
|
-
"representName",
|
|
83
|
-
"defaultStyle",
|
|
84
|
-
"styleAliases"
|
|
85
|
-
], g = [
|
|
86
|
-
"scalar",
|
|
87
|
-
"sequence",
|
|
88
|
-
"mapping"
|
|
89
|
-
];
|
|
90
|
-
function _(e) {
|
|
91
|
-
var t = {};
|
|
92
|
-
return e !== null && Object.keys(e).forEach(function(n) {
|
|
93
|
-
e[n].forEach(function(e) {
|
|
94
|
-
t[String(e)] = n;
|
|
95
|
-
});
|
|
96
|
-
}), t;
|
|
97
|
-
}
|
|
98
|
-
e(_, "compileStyleAliases");
|
|
99
|
-
function v(e, t) {
|
|
100
|
-
if (t ||= {}, Object.keys(t).forEach(function(t) {
|
|
101
|
-
if (h.indexOf(t) === -1) throw new u("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
|
|
102
|
-
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
103
|
-
return !0;
|
|
104
|
-
}, this.construct = t.construct || function(e) {
|
|
105
|
-
return e;
|
|
106
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = _(t.styleAliases || null), g.indexOf(this.kind) === -1) throw new u("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
|
|
107
|
-
}
|
|
108
|
-
e(v, "Type$1");
|
|
109
|
-
var y = v;
|
|
110
|
-
function b(e, t) {
|
|
111
|
-
var n = [];
|
|
112
|
-
return e[t].forEach(function(e) {
|
|
113
|
-
var t = n.length;
|
|
114
|
-
n.forEach(function(n, r) {
|
|
115
|
-
n.tag === e.tag && n.kind === e.kind && n.multi === e.multi && (t = r);
|
|
116
|
-
}), n[t] = e;
|
|
117
|
-
}), n;
|
|
118
|
-
}
|
|
119
|
-
e(b, "compileList");
|
|
120
|
-
function ee() {
|
|
121
|
-
var t = {
|
|
122
|
-
scalar: {},
|
|
123
|
-
sequence: {},
|
|
124
|
-
mapping: {},
|
|
125
|
-
fallback: {},
|
|
126
|
-
multi: {
|
|
127
|
-
scalar: [],
|
|
128
|
-
sequence: [],
|
|
129
|
-
mapping: [],
|
|
130
|
-
fallback: []
|
|
131
|
-
}
|
|
132
|
-
}, n, r;
|
|
133
|
-
function i(e) {
|
|
134
|
-
e.multi ? (t.multi[e.kind].push(e), t.multi.fallback.push(e)) : t[e.kind][e.tag] = t.fallback[e.tag] = e;
|
|
135
|
-
}
|
|
136
|
-
for (e(i, "collectType"), n = 0, r = arguments.length; n < r; n += 1) arguments[n].forEach(i);
|
|
137
|
-
return t;
|
|
138
|
-
}
|
|
139
|
-
e(ee, "compileMap");
|
|
140
|
-
function x(e) {
|
|
141
|
-
return this.extend(e);
|
|
142
|
-
}
|
|
143
|
-
e(x, "Schema$1"), x.prototype.extend = /* @__PURE__ */ e(function(e) {
|
|
144
|
-
var t = [], n = [];
|
|
145
|
-
if (e instanceof y) n.push(e);
|
|
146
|
-
else if (Array.isArray(e)) n = n.concat(e);
|
|
147
|
-
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit))) e.implicit && (t = t.concat(e.implicit)), e.explicit && (n = n.concat(e.explicit));
|
|
148
|
-
else throw new u("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
149
|
-
t.forEach(function(e) {
|
|
150
|
-
if (!(e instanceof y)) throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
151
|
-
if (e.loadKind && e.loadKind !== "scalar") throw new u("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
152
|
-
if (e.multi) throw new u("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
153
|
-
}), n.forEach(function(e) {
|
|
154
|
-
if (!(e instanceof y)) throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
155
|
-
});
|
|
156
|
-
var r = Object.create(x.prototype);
|
|
157
|
-
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = b(r, "implicit"), r.compiledExplicit = b(r, "explicit"), r.compiledTypeMap = ee(r.compiledImplicit, r.compiledExplicit), r;
|
|
158
|
-
}, "extend");
|
|
159
|
-
var te = new x({ explicit: [
|
|
160
|
-
new y("tag:yaml.org,2002:str", {
|
|
161
|
-
kind: "scalar",
|
|
162
|
-
construct: /* @__PURE__ */ e(function(e) {
|
|
163
|
-
return e === null ? "" : e;
|
|
164
|
-
}, "construct")
|
|
165
|
-
}),
|
|
166
|
-
new y("tag:yaml.org,2002:seq", {
|
|
167
|
-
kind: "sequence",
|
|
168
|
-
construct: /* @__PURE__ */ e(function(e) {
|
|
169
|
-
return e === null ? [] : e;
|
|
170
|
-
}, "construct")
|
|
171
|
-
}),
|
|
172
|
-
new y("tag:yaml.org,2002:map", {
|
|
173
|
-
kind: "mapping",
|
|
174
|
-
construct: /* @__PURE__ */ e(function(e) {
|
|
175
|
-
return e === null ? {} : e;
|
|
176
|
-
}, "construct")
|
|
177
|
-
})
|
|
178
|
-
] });
|
|
179
|
-
function ne(e) {
|
|
180
|
-
if (e === null) return !0;
|
|
181
|
-
var t = e.length;
|
|
182
|
-
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
183
|
-
}
|
|
184
|
-
e(ne, "resolveYamlNull");
|
|
185
|
-
function re() {
|
|
186
|
-
return null;
|
|
187
|
-
}
|
|
188
|
-
e(re, "constructYamlNull");
|
|
189
|
-
function ie(e) {
|
|
190
|
-
return e === null;
|
|
191
|
-
}
|
|
192
|
-
e(ie, "isNull");
|
|
193
|
-
var ae = new y("tag:yaml.org,2002:null", {
|
|
194
|
-
kind: "scalar",
|
|
195
|
-
resolve: ne,
|
|
196
|
-
construct: re,
|
|
197
|
-
predicate: ie,
|
|
198
|
-
represent: {
|
|
199
|
-
canonical: /* @__PURE__ */ e(function() {
|
|
200
|
-
return "~";
|
|
201
|
-
}, "canonical"),
|
|
202
|
-
lowercase: /* @__PURE__ */ e(function() {
|
|
203
|
-
return "null";
|
|
204
|
-
}, "lowercase"),
|
|
205
|
-
uppercase: /* @__PURE__ */ e(function() {
|
|
206
|
-
return "NULL";
|
|
207
|
-
}, "uppercase"),
|
|
208
|
-
camelcase: /* @__PURE__ */ e(function() {
|
|
209
|
-
return "Null";
|
|
210
|
-
}, "camelcase"),
|
|
211
|
-
empty: /* @__PURE__ */ e(function() {
|
|
212
|
-
return "";
|
|
213
|
-
}, "empty")
|
|
214
|
-
},
|
|
215
|
-
defaultStyle: "lowercase"
|
|
216
|
-
});
|
|
217
|
-
function oe(e) {
|
|
218
|
-
if (e === null) return !1;
|
|
219
|
-
var t = e.length;
|
|
220
|
-
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
221
|
-
}
|
|
222
|
-
e(oe, "resolveYamlBoolean");
|
|
223
|
-
function se(e) {
|
|
224
|
-
return e === "true" || e === "True" || e === "TRUE";
|
|
225
|
-
}
|
|
226
|
-
e(se, "constructYamlBoolean");
|
|
227
|
-
function ce(e) {
|
|
228
|
-
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
229
|
-
}
|
|
230
|
-
e(ce, "isBoolean");
|
|
231
|
-
var le = new y("tag:yaml.org,2002:bool", {
|
|
232
|
-
kind: "scalar",
|
|
233
|
-
resolve: oe,
|
|
234
|
-
construct: se,
|
|
235
|
-
predicate: ce,
|
|
236
|
-
represent: {
|
|
237
|
-
lowercase: /* @__PURE__ */ e(function(e) {
|
|
238
|
-
return e ? "true" : "false";
|
|
239
|
-
}, "lowercase"),
|
|
240
|
-
uppercase: /* @__PURE__ */ e(function(e) {
|
|
241
|
-
return e ? "TRUE" : "FALSE";
|
|
242
|
-
}, "uppercase"),
|
|
243
|
-
camelcase: /* @__PURE__ */ e(function(e) {
|
|
244
|
-
return e ? "True" : "False";
|
|
245
|
-
}, "camelcase")
|
|
246
|
-
},
|
|
247
|
-
defaultStyle: "lowercase"
|
|
248
|
-
});
|
|
249
|
-
function ue(e) {
|
|
250
|
-
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
251
|
-
}
|
|
252
|
-
e(ue, "isHexCode");
|
|
253
|
-
function de(e) {
|
|
254
|
-
return 48 <= e && e <= 55;
|
|
255
|
-
}
|
|
256
|
-
e(de, "isOctCode");
|
|
257
|
-
function fe(e) {
|
|
258
|
-
return 48 <= e && e <= 57;
|
|
259
|
-
}
|
|
260
|
-
e(fe, "isDecCode");
|
|
261
|
-
function pe(e) {
|
|
262
|
-
if (e === null) return !1;
|
|
263
|
-
var t = e.length, n = 0, r = !1, i;
|
|
264
|
-
if (!t) return !1;
|
|
265
|
-
if (i = e[n], (i === "-" || i === "+") && (i = e[++n]), i === "0") {
|
|
266
|
-
if (n + 1 === t) return !0;
|
|
267
|
-
if (i = e[++n], i === "b") {
|
|
268
|
-
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
269
|
-
if (i !== "0" && i !== "1") return !1;
|
|
270
|
-
r = !0;
|
|
271
|
-
}
|
|
272
|
-
return r && i !== "_";
|
|
273
|
-
}
|
|
274
|
-
if (i === "x") {
|
|
275
|
-
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
276
|
-
if (!ue(e.charCodeAt(n))) return !1;
|
|
277
|
-
r = !0;
|
|
278
|
-
}
|
|
279
|
-
return r && i !== "_";
|
|
280
|
-
}
|
|
281
|
-
if (i === "o") {
|
|
282
|
-
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
283
|
-
if (!de(e.charCodeAt(n))) return !1;
|
|
284
|
-
r = !0;
|
|
285
|
-
}
|
|
286
|
-
return r && i !== "_";
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
if (i === "_") return !1;
|
|
290
|
-
for (; n < t; n++) if (i = e[n], i !== "_") {
|
|
291
|
-
if (!fe(e.charCodeAt(n))) return !1;
|
|
292
|
-
r = !0;
|
|
293
|
-
}
|
|
294
|
-
return !(!r || i === "_");
|
|
295
|
-
}
|
|
296
|
-
e(pe, "resolveYamlInteger");
|
|
297
|
-
function me(e) {
|
|
298
|
-
var t = e, n = 1, r;
|
|
299
|
-
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
|
|
300
|
-
if (r === "0") {
|
|
301
|
-
if (t[1] === "b") return n * parseInt(t.slice(2), 2);
|
|
302
|
-
if (t[1] === "x") return n * parseInt(t.slice(2), 16);
|
|
303
|
-
if (t[1] === "o") return n * parseInt(t.slice(2), 8);
|
|
304
|
-
}
|
|
305
|
-
return n * parseInt(t, 10);
|
|
306
|
-
}
|
|
307
|
-
e(me, "constructYamlInteger");
|
|
308
|
-
function he(e) {
|
|
309
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !s.isNegativeZero(e);
|
|
310
|
-
}
|
|
311
|
-
e(he, "isInteger");
|
|
312
|
-
var ge = new y("tag:yaml.org,2002:int", {
|
|
313
|
-
kind: "scalar",
|
|
314
|
-
resolve: pe,
|
|
315
|
-
construct: me,
|
|
316
|
-
predicate: he,
|
|
317
|
-
represent: {
|
|
318
|
-
binary: /* @__PURE__ */ e(function(e) {
|
|
319
|
-
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
320
|
-
}, "binary"),
|
|
321
|
-
octal: /* @__PURE__ */ e(function(e) {
|
|
322
|
-
return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
|
|
323
|
-
}, "octal"),
|
|
324
|
-
decimal: /* @__PURE__ */ e(function(e) {
|
|
325
|
-
return e.toString(10);
|
|
326
|
-
}, "decimal"),
|
|
327
|
-
hexadecimal: /* @__PURE__ */ e(function(e) {
|
|
328
|
-
return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
|
|
329
|
-
}, "hexadecimal")
|
|
330
|
-
},
|
|
331
|
-
defaultStyle: "decimal",
|
|
332
|
-
styleAliases: {
|
|
333
|
-
binary: [2, "bin"],
|
|
334
|
-
octal: [8, "oct"],
|
|
335
|
-
decimal: [10, "dec"],
|
|
336
|
-
hexadecimal: [16, "hex"]
|
|
337
|
-
}
|
|
338
|
-
}), _e = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
339
|
-
function ve(e) {
|
|
340
|
-
return !(e === null || !_e.test(e) || e[e.length - 1] === "_");
|
|
341
|
-
}
|
|
342
|
-
e(ve, "resolveYamlFloat");
|
|
343
|
-
function ye(e) {
|
|
344
|
-
var t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
345
|
-
return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
346
|
-
}
|
|
347
|
-
e(ye, "constructYamlFloat");
|
|
348
|
-
var be = /^[-+]?[0-9]+e/;
|
|
349
|
-
function xe(e, t) {
|
|
350
|
-
var n;
|
|
351
|
-
if (isNaN(e)) switch (t) {
|
|
352
|
-
case "lowercase": return ".nan";
|
|
353
|
-
case "uppercase": return ".NAN";
|
|
354
|
-
case "camelcase": return ".NaN";
|
|
355
|
-
}
|
|
356
|
-
else if (e === Infinity) switch (t) {
|
|
357
|
-
case "lowercase": return ".inf";
|
|
358
|
-
case "uppercase": return ".INF";
|
|
359
|
-
case "camelcase": return ".Inf";
|
|
360
|
-
}
|
|
361
|
-
else if (e === -Infinity) switch (t) {
|
|
362
|
-
case "lowercase": return "-.inf";
|
|
363
|
-
case "uppercase": return "-.INF";
|
|
364
|
-
case "camelcase": return "-.Inf";
|
|
365
|
-
}
|
|
366
|
-
else if (s.isNegativeZero(e)) return "-0.0";
|
|
367
|
-
return n = e.toString(10), be.test(n) ? n.replace("e", ".e") : n;
|
|
368
|
-
}
|
|
369
|
-
e(xe, "representYamlFloat");
|
|
370
|
-
function Se(e) {
|
|
371
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || s.isNegativeZero(e));
|
|
372
|
-
}
|
|
373
|
-
e(Se, "isFloat");
|
|
374
|
-
var Ce = new y("tag:yaml.org,2002:float", {
|
|
375
|
-
kind: "scalar",
|
|
376
|
-
resolve: ve,
|
|
377
|
-
construct: ye,
|
|
378
|
-
predicate: Se,
|
|
379
|
-
represent: xe,
|
|
380
|
-
defaultStyle: "lowercase"
|
|
381
|
-
}), we = te.extend({ implicit: [
|
|
382
|
-
ae,
|
|
383
|
-
le,
|
|
384
|
-
ge,
|
|
385
|
-
Ce
|
|
386
|
-
] }), Te = we, Ee = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), De = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
387
|
-
function Oe(e) {
|
|
388
|
-
return e === null ? !1 : Ee.exec(e) !== null || De.exec(e) !== null;
|
|
389
|
-
}
|
|
390
|
-
e(Oe, "resolveYamlTimestamp");
|
|
391
|
-
function ke(e) {
|
|
392
|
-
var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
|
|
393
|
-
if (t = Ee.exec(e), t === null && (t = De.exec(e)), t === null) throw Error("Date resolve error");
|
|
394
|
-
if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
|
|
395
|
-
if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
|
|
396
|
-
for (c = t[7].slice(0, 3); c.length < 3;) c += "0";
|
|
397
|
-
c = +c;
|
|
398
|
-
}
|
|
399
|
-
return t[9] && (u = +t[10], d = +(t[11] || 0), l = (u * 60 + d) * 6e4, t[9] === "-" && (l = -l)), f = new Date(Date.UTC(n, r, i, a, o, s, c)), l && f.setTime(f.getTime() - l), f;
|
|
400
|
-
}
|
|
401
|
-
e(ke, "constructYamlTimestamp");
|
|
402
|
-
function Ae(e) {
|
|
403
|
-
return e.toISOString();
|
|
404
|
-
}
|
|
405
|
-
e(Ae, "representYamlTimestamp");
|
|
406
|
-
var je = new y("tag:yaml.org,2002:timestamp", {
|
|
407
|
-
kind: "scalar",
|
|
408
|
-
resolve: Oe,
|
|
409
|
-
construct: ke,
|
|
410
|
-
instanceOf: Date,
|
|
411
|
-
represent: Ae
|
|
412
|
-
});
|
|
413
|
-
function Me(e) {
|
|
414
|
-
return e === "<<" || e === null;
|
|
415
|
-
}
|
|
416
|
-
e(Me, "resolveYamlMerge");
|
|
417
|
-
var Ne = new y("tag:yaml.org,2002:merge", {
|
|
418
|
-
kind: "scalar",
|
|
419
|
-
resolve: Me
|
|
420
|
-
}), S = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
421
|
-
function Pe(e) {
|
|
422
|
-
if (e === null) return !1;
|
|
423
|
-
var t, n, r = 0, i = e.length, a = S;
|
|
424
|
-
for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
|
|
425
|
-
if (t < 0) return !1;
|
|
426
|
-
r += 6;
|
|
427
|
-
}
|
|
428
|
-
return r % 8 == 0;
|
|
429
|
-
}
|
|
430
|
-
e(Pe, "resolveYamlBinary");
|
|
431
|
-
function Fe(e) {
|
|
432
|
-
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = S, o = 0, s = [];
|
|
433
|
-
for (t = 0; t < i; t++) t % 4 == 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
|
|
434
|
-
return n = i % 4 * 6, n === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : n === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : n === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
|
|
435
|
-
}
|
|
436
|
-
e(Fe, "constructYamlBinary");
|
|
437
|
-
function Ie(e) {
|
|
438
|
-
var t = "", n = 0, r, i, a = e.length, o = S;
|
|
439
|
-
for (r = 0; r < a; r++) r % 3 == 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
|
|
440
|
-
return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
|
|
441
|
-
}
|
|
442
|
-
e(Ie, "representYamlBinary");
|
|
443
|
-
function Le(e) {
|
|
444
|
-
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
445
|
-
}
|
|
446
|
-
e(Le, "isBinary");
|
|
447
|
-
var Re = new y("tag:yaml.org,2002:binary", {
|
|
448
|
-
kind: "scalar",
|
|
449
|
-
resolve: Pe,
|
|
450
|
-
construct: Fe,
|
|
451
|
-
predicate: Le,
|
|
452
|
-
represent: Ie
|
|
453
|
-
}), ze = Object.prototype.hasOwnProperty, Be = Object.prototype.toString;
|
|
454
|
-
function Ve(e) {
|
|
455
|
-
if (e === null) return !0;
|
|
456
|
-
var t = [], n, r, i, a, o, s = e;
|
|
457
|
-
for (n = 0, r = s.length; n < r; n += 1) {
|
|
458
|
-
if (i = s[n], o = !1, Be.call(i) !== "[object Object]") return !1;
|
|
459
|
-
for (a in i) if (ze.call(i, a)) {
|
|
460
|
-
if (!o) o = !0;
|
|
461
|
-
else return !1;
|
|
462
|
-
}
|
|
463
|
-
if (!o) return !1;
|
|
464
|
-
if (t.indexOf(a) === -1) t.push(a);
|
|
465
|
-
else return !1;
|
|
466
|
-
}
|
|
467
|
-
return !0;
|
|
468
|
-
}
|
|
469
|
-
e(Ve, "resolveYamlOmap");
|
|
470
|
-
function He(e) {
|
|
471
|
-
return e === null ? [] : e;
|
|
472
|
-
}
|
|
473
|
-
e(He, "constructYamlOmap");
|
|
474
|
-
var Ue = new y("tag:yaml.org,2002:omap", {
|
|
475
|
-
kind: "sequence",
|
|
476
|
-
resolve: Ve,
|
|
477
|
-
construct: He
|
|
478
|
-
}), We = Object.prototype.toString;
|
|
479
|
-
function Ge(e) {
|
|
480
|
-
if (e === null) return !0;
|
|
481
|
-
var t, n, r, i, a, o = e;
|
|
482
|
-
for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
|
|
483
|
-
if (r = o[t], We.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
|
|
484
|
-
a[t] = [i[0], r[i[0]]];
|
|
485
|
-
}
|
|
486
|
-
return !0;
|
|
487
|
-
}
|
|
488
|
-
e(Ge, "resolveYamlPairs");
|
|
489
|
-
function Ke(e) {
|
|
490
|
-
if (e === null) return [];
|
|
491
|
-
var t, n, r, i, a, o = e;
|
|
492
|
-
for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) r = o[t], i = Object.keys(r), a[t] = [i[0], r[i[0]]];
|
|
493
|
-
return a;
|
|
494
|
-
}
|
|
495
|
-
e(Ke, "constructYamlPairs");
|
|
496
|
-
var qe = new y("tag:yaml.org,2002:pairs", {
|
|
497
|
-
kind: "sequence",
|
|
498
|
-
resolve: Ge,
|
|
499
|
-
construct: Ke
|
|
500
|
-
}), Je = Object.prototype.hasOwnProperty;
|
|
501
|
-
function Ye(e) {
|
|
502
|
-
if (e === null) return !0;
|
|
503
|
-
var t, n = e;
|
|
504
|
-
for (t in n) if (Je.call(n, t) && n[t] !== null) return !1;
|
|
505
|
-
return !0;
|
|
506
|
-
}
|
|
507
|
-
e(Ye, "resolveYamlSet");
|
|
508
|
-
function Xe(e) {
|
|
509
|
-
return e === null ? {} : e;
|
|
510
|
-
}
|
|
511
|
-
e(Xe, "constructYamlSet");
|
|
512
|
-
var Ze = new y("tag:yaml.org,2002:set", {
|
|
513
|
-
kind: "mapping",
|
|
514
|
-
resolve: Ye,
|
|
515
|
-
construct: Xe
|
|
516
|
-
}), Qe = Te.extend({
|
|
517
|
-
implicit: [je, Ne],
|
|
518
|
-
explicit: [
|
|
519
|
-
Re,
|
|
520
|
-
Ue,
|
|
521
|
-
qe,
|
|
522
|
-
Ze
|
|
523
|
-
]
|
|
524
|
-
}), C = Object.prototype.hasOwnProperty, w = 1, $e = 2, et = 3, T = 4, E = 1, tt = 2, nt = 3, rt = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, it = /[\x85\u2028\u2029]/, at = /[,\[\]\{\}]/, ot = /^(?:!|!!|![a-z\-]+!)$/i, st = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
525
|
-
function D(e) {
|
|
526
|
-
return Object.prototype.toString.call(e);
|
|
527
|
-
}
|
|
528
|
-
e(D, "_class");
|
|
529
|
-
function O(e) {
|
|
530
|
-
return e === 10 || e === 13;
|
|
531
|
-
}
|
|
532
|
-
e(O, "is_EOL");
|
|
533
|
-
function k(e) {
|
|
534
|
-
return e === 9 || e === 32;
|
|
535
|
-
}
|
|
536
|
-
e(k, "is_WHITE_SPACE");
|
|
537
|
-
function A(e) {
|
|
538
|
-
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
539
|
-
}
|
|
540
|
-
e(A, "is_WS_OR_EOL");
|
|
541
|
-
function j(e) {
|
|
542
|
-
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
543
|
-
}
|
|
544
|
-
e(j, "is_FLOW_INDICATOR");
|
|
545
|
-
function ct(e) {
|
|
546
|
-
var t;
|
|
547
|
-
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
548
|
-
}
|
|
549
|
-
e(ct, "fromHexCode");
|
|
550
|
-
function lt(e) {
|
|
551
|
-
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
552
|
-
}
|
|
553
|
-
e(lt, "escapedHexLen");
|
|
554
|
-
function ut(e) {
|
|
555
|
-
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
556
|
-
}
|
|
557
|
-
e(ut, "fromDecimalCode");
|
|
558
|
-
function dt(e) {
|
|
559
|
-
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? "\n" : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? "\"" : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? "\xA0" : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
560
|
-
}
|
|
561
|
-
e(dt, "simpleEscapeSequence");
|
|
562
|
-
function ft(e) {
|
|
563
|
-
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
564
|
-
}
|
|
565
|
-
e(ft, "charFromCodepoint");
|
|
566
|
-
function pt(e, t, n) {
|
|
567
|
-
t === "__proto__" ? Object.defineProperty(e, t, {
|
|
568
|
-
configurable: !0,
|
|
569
|
-
enumerable: !0,
|
|
570
|
-
writable: !0,
|
|
571
|
-
value: n
|
|
572
|
-
}) : e[t] = n;
|
|
573
|
-
}
|
|
574
|
-
e(pt, "setProperty");
|
|
575
|
-
var mt = Array(256), ht = Array(256);
|
|
576
|
-
for (M = 0; M < 256; M++) mt[M] = +!!dt(M), ht[M] = dt(M);
|
|
577
|
-
var M;
|
|
578
|
-
function gt(e, t) {
|
|
579
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema || Qe, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
580
|
-
}
|
|
581
|
-
e(gt, "State$1");
|
|
582
|
-
function _t(e, t) {
|
|
583
|
-
var n = {
|
|
584
|
-
name: e.filename,
|
|
585
|
-
buffer: e.input.slice(0, -1),
|
|
586
|
-
position: e.position,
|
|
587
|
-
line: e.line,
|
|
588
|
-
column: e.position - e.lineStart
|
|
589
|
-
};
|
|
590
|
-
return n.snippet = m(n), new u(t, n);
|
|
591
|
-
}
|
|
592
|
-
e(_t, "generateError");
|
|
593
|
-
function N(e, t) {
|
|
594
|
-
throw _t(e, t);
|
|
595
|
-
}
|
|
596
|
-
e(N, "throwError");
|
|
597
|
-
function P(e, t) {
|
|
598
|
-
e.onWarning && e.onWarning.call(null, _t(e, t));
|
|
599
|
-
}
|
|
600
|
-
e(P, "throwWarning");
|
|
601
|
-
var vt = {
|
|
602
|
-
YAML: /* @__PURE__ */ e(function(e, t, n) {
|
|
603
|
-
var r, i, a;
|
|
604
|
-
e.version !== null && N(e, "duplication of %YAML directive"), n.length !== 1 && N(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && N(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && N(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && P(e, "unsupported YAML version of the document");
|
|
605
|
-
}, "handleYamlDirective"),
|
|
606
|
-
TAG: /* @__PURE__ */ e(function(e, t, n) {
|
|
607
|
-
var r, i;
|
|
608
|
-
n.length !== 2 && N(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], ot.test(r) || N(e, "ill-formed tag handle (first argument) of the TAG directive"), C.call(e.tagMap, r) && N(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), st.test(i) || N(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
609
|
-
try {
|
|
610
|
-
i = decodeURIComponent(i);
|
|
611
|
-
} catch {
|
|
612
|
-
N(e, "tag prefix is malformed: " + i);
|
|
613
|
-
}
|
|
614
|
-
e.tagMap[r] = i;
|
|
615
|
-
}, "handleTagDirective")
|
|
616
|
-
};
|
|
617
|
-
function F(e, t, n, r) {
|
|
618
|
-
var i, a, o, s;
|
|
619
|
-
if (t < n) {
|
|
620
|
-
if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || N(e, "expected valid JSON character");
|
|
621
|
-
else rt.test(s) && N(e, "the stream contains non-printable characters");
|
|
622
|
-
e.result += s;
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
e(F, "captureSegment");
|
|
626
|
-
function yt(e, t, n, r) {
|
|
627
|
-
var i, a, o, c;
|
|
628
|
-
for (s.isObject(n) || N(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, c = i.length; o < c; o += 1) a = i[o], C.call(t, a) || (pt(t, a, n[a]), r[a] = !0);
|
|
629
|
-
}
|
|
630
|
-
e(yt, "mergeMappings");
|
|
631
|
-
function I(e, t, n, r, i, a, o, s, c) {
|
|
632
|
-
var l, u;
|
|
633
|
-
if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && N(e, "nested arrays are not supported inside keys"), typeof i == "object" && D(i[l]) === "[object Object]" && (i[l] = "[object Object]");
|
|
634
|
-
if (typeof i == "object" && D(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") {
|
|
635
|
-
if (Array.isArray(a)) for (l = 0, u = a.length; l < u; l += 1) yt(e, t, a[l], n);
|
|
636
|
-
else yt(e, t, a, n);
|
|
637
|
-
} else !e.json && !C.call(n, i) && C.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, N(e, "duplicated mapping key")), pt(t, i, a), delete n[i];
|
|
638
|
-
return t;
|
|
639
|
-
}
|
|
640
|
-
e(I, "storeMappingPair");
|
|
641
|
-
function L(e) {
|
|
642
|
-
var t = e.input.charCodeAt(e.position);
|
|
643
|
-
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : N(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
644
|
-
}
|
|
645
|
-
e(L, "readLineBreak");
|
|
646
|
-
function R(e, t, n) {
|
|
647
|
-
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0;) {
|
|
648
|
-
for (; k(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
649
|
-
if (t && i === 35) do
|
|
650
|
-
i = e.input.charCodeAt(++e.position);
|
|
651
|
-
while (i !== 10 && i !== 13 && i !== 0);
|
|
652
|
-
if (O(i)) for (L(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
653
|
-
else break;
|
|
654
|
-
}
|
|
655
|
-
return n !== -1 && r !== 0 && e.lineIndent < n && P(e, "deficient indentation"), r;
|
|
656
|
-
}
|
|
657
|
-
e(R, "skipSeparationSpace");
|
|
658
|
-
function z(e) {
|
|
659
|
-
var t = e.position, n = e.input.charCodeAt(t);
|
|
660
|
-
return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || A(n)));
|
|
661
|
-
}
|
|
662
|
-
e(z, "testDocumentSeparator");
|
|
663
|
-
function B(e, t) {
|
|
664
|
-
t === 1 ? e.result += " " : t > 1 && (e.result += s.repeat("\n", t - 1));
|
|
665
|
-
}
|
|
666
|
-
e(B, "writeFoldedLines");
|
|
667
|
-
function bt(e, t, n) {
|
|
668
|
-
var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
|
|
669
|
-
if (A(p) || j(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), A(i) || n && j(i))) return !1;
|
|
670
|
-
for (e.kind = "scalar", e.result = "", a = o = e.position, s = !1; p !== 0;) {
|
|
671
|
-
if (p === 58) {
|
|
672
|
-
if (i = e.input.charCodeAt(e.position + 1), A(i) || n && j(i)) break;
|
|
673
|
-
} else if (p === 35) {
|
|
674
|
-
if (r = e.input.charCodeAt(e.position - 1), A(r)) break;
|
|
675
|
-
} else if (e.position === e.lineStart && z(e) || n && j(p)) break;
|
|
676
|
-
else if (O(p)) {
|
|
677
|
-
if (c = e.line, l = e.lineStart, u = e.lineIndent, R(e, !1, -1), e.lineIndent >= t) {
|
|
678
|
-
s = !0, p = e.input.charCodeAt(e.position);
|
|
679
|
-
continue;
|
|
680
|
-
}
|
|
681
|
-
e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
|
|
682
|
-
break;
|
|
683
|
-
}
|
|
684
|
-
s &&= (F(e, a, o, !1), B(e, e.line - c), a = o = e.position, !1), k(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
|
|
685
|
-
}
|
|
686
|
-
return F(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
|
|
687
|
-
}
|
|
688
|
-
e(bt, "readPlainScalar");
|
|
689
|
-
function xt(e, t) {
|
|
690
|
-
var n = e.input.charCodeAt(e.position), r, i;
|
|
691
|
-
if (n !== 39) return !1;
|
|
692
|
-
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) {
|
|
693
|
-
if (F(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
|
|
694
|
-
else return !0;
|
|
695
|
-
} else O(n) ? (F(e, r, i, !0), B(e, R(e, !1, t)), r = i = e.position) : e.position === e.lineStart && z(e) ? N(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
696
|
-
N(e, "unexpected end of the stream within a single quoted scalar");
|
|
697
|
-
}
|
|
698
|
-
e(xt, "readSingleQuotedScalar");
|
|
699
|
-
function St(e, t) {
|
|
700
|
-
var n, r, i, a, o, s = e.input.charCodeAt(e.position);
|
|
701
|
-
if (s !== 34) return !1;
|
|
702
|
-
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return F(e, n, e.position, !0), e.position++, !0;
|
|
703
|
-
else if (s === 92) {
|
|
704
|
-
if (F(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), O(s)) R(e, !1, t);
|
|
705
|
-
else if (s < 256 && mt[s]) e.result += ht[s], e.position++;
|
|
706
|
-
else if ((o = lt(s)) > 0) {
|
|
707
|
-
for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = ct(s)) >= 0 ? a = (a << 4) + o : N(e, "expected hexadecimal character");
|
|
708
|
-
e.result += ft(a), e.position++;
|
|
709
|
-
} else N(e, "unknown escape sequence");
|
|
710
|
-
n = r = e.position;
|
|
711
|
-
} else O(s) ? (F(e, n, r, !0), B(e, R(e, !1, t)), n = r = e.position) : e.position === e.lineStart && z(e) ? N(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
712
|
-
N(e, "unexpected end of the stream within a double quoted scalar");
|
|
713
|
-
}
|
|
714
|
-
e(St, "readDoubleQuotedScalar");
|
|
715
|
-
function Ct(e, t) {
|
|
716
|
-
var n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p, m = /* @__PURE__ */ Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
|
|
717
|
-
if (v === 91) u = 93, p = !1, s = [];
|
|
718
|
-
else if (v === 123) u = 125, p = !0, s = {};
|
|
719
|
-
else return !1;
|
|
720
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
|
|
721
|
-
if (R(e, !0, t), v = e.input.charCodeAt(e.position), v === u) return e.position++, e.tag = o, e.anchor = c, e.kind = p ? "mapping" : "sequence", e.result = s, !0;
|
|
722
|
-
n ? v === 44 && N(e, "expected the node content, but found ','") : N(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), A(l) && (d = f = !0, e.position++, R(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, V(e, t, w, !1, !0), g = e.tag, h = e.result, R(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), R(e, !0, t), V(e, t, w, !1, !0), _ = e.result), p ? I(e, s, m, g, h, _, r, i, a) : d ? s.push(I(e, null, m, g, h, _, r, i, a)) : s.push(h), R(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
|
|
723
|
-
}
|
|
724
|
-
N(e, "unexpected end of the stream within a flow collection");
|
|
725
|
-
}
|
|
726
|
-
e(Ct, "readFlowCollection");
|
|
727
|
-
function wt(e, t) {
|
|
728
|
-
var n, r, i = E, a = !1, o = !1, c = t, l = 0, u = !1, d, f = e.input.charCodeAt(e.position);
|
|
729
|
-
if (f === 124) r = !1;
|
|
730
|
-
else if (f === 62) r = !0;
|
|
731
|
-
else return !1;
|
|
732
|
-
for (e.kind = "scalar", e.result = ""; f !== 0;) if (f = e.input.charCodeAt(++e.position), f === 43 || f === 45) E === i ? i = f === 43 ? nt : tt : N(e, "repeat of a chomping mode identifier");
|
|
733
|
-
else if ((d = ut(f)) >= 0) d === 0 ? N(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? N(e, "repeat of an indentation width identifier") : (c = t + d - 1, o = !0);
|
|
734
|
-
else break;
|
|
735
|
-
if (k(f)) {
|
|
736
|
-
do
|
|
737
|
-
f = e.input.charCodeAt(++e.position);
|
|
738
|
-
while (k(f));
|
|
739
|
-
if (f === 35) do
|
|
740
|
-
f = e.input.charCodeAt(++e.position);
|
|
741
|
-
while (!O(f) && f !== 0);
|
|
742
|
-
}
|
|
743
|
-
for (; f !== 0;) {
|
|
744
|
-
for (L(e), e.lineIndent = 0, f = e.input.charCodeAt(e.position); (!o || e.lineIndent < c) && f === 32;) e.lineIndent++, f = e.input.charCodeAt(++e.position);
|
|
745
|
-
if (!o && e.lineIndent > c && (c = e.lineIndent), O(f)) {
|
|
746
|
-
l++;
|
|
747
|
-
continue;
|
|
748
|
-
}
|
|
749
|
-
if (e.lineIndent < c) {
|
|
750
|
-
i === nt ? e.result += s.repeat("\n", a ? 1 + l : l) : i === E && a && (e.result += "\n");
|
|
751
|
-
break;
|
|
752
|
-
}
|
|
753
|
-
for (r ? k(f) ? (u = !0, e.result += s.repeat("\n", a ? 1 + l : l)) : u ? (u = !1, e.result += s.repeat("\n", l + 1)) : l === 0 ? a && (e.result += " ") : e.result += s.repeat("\n", l) : e.result += s.repeat("\n", a ? 1 + l : l), a = !0, o = !0, l = 0, n = e.position; !O(f) && f !== 0;) f = e.input.charCodeAt(++e.position);
|
|
754
|
-
F(e, n, e.position, !1);
|
|
755
|
-
}
|
|
756
|
-
return !0;
|
|
757
|
-
}
|
|
758
|
-
e(wt, "readBlockScalar");
|
|
759
|
-
function Tt(e, t) {
|
|
760
|
-
var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
|
|
761
|
-
if (e.firstTabInLine !== -1) return !1;
|
|
762
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, N(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !A(o))));) {
|
|
763
|
-
if (s = !0, e.position++, R(e, !0, -1) && e.lineIndent <= t) {
|
|
764
|
-
a.push(null), c = e.input.charCodeAt(e.position);
|
|
765
|
-
continue;
|
|
766
|
-
}
|
|
767
|
-
if (n = e.line, V(e, t, et, !1, !0), a.push(e.result), R(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) N(e, "bad indentation of a sequence entry");
|
|
768
|
-
else if (e.lineIndent < t) break;
|
|
769
|
-
}
|
|
770
|
-
return s ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
|
|
771
|
-
}
|
|
772
|
-
e(Tt, "readBlockSequence");
|
|
773
|
-
function Et(e, t, n) {
|
|
774
|
-
var r, i, a, o, s, c, l = e.tag, u = e.anchor, d = {}, f = /* @__PURE__ */ Object.create(null), p = null, m = null, h = null, g = !1, _ = !1, v;
|
|
775
|
-
if (e.firstTabInLine !== -1) return !1;
|
|
776
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
|
|
777
|
-
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, N(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && A(r)) v === 63 ? (g && (I(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : N(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
|
|
778
|
-
else {
|
|
779
|
-
if (o = e.line, s = e.lineStart, c = e.position, !V(e, n, $e, !1, !0)) break;
|
|
780
|
-
if (e.line === a) {
|
|
781
|
-
for (v = e.input.charCodeAt(e.position); k(v);) v = e.input.charCodeAt(++e.position);
|
|
782
|
-
if (v === 58) v = e.input.charCodeAt(++e.position), A(v) || N(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (I(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
|
|
783
|
-
else if (_) N(e, "can not read an implicit mapping pair; a colon is missed");
|
|
784
|
-
else return e.tag = l, e.anchor = u, !0;
|
|
785
|
-
} else if (_) N(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
786
|
-
else return e.tag = l, e.anchor = u, !0;
|
|
787
|
-
}
|
|
788
|
-
if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), V(e, t, T, !0, i) && (g ? m = e.result : h = e.result), g || (I(e, d, f, p, m, h, o, s, c), p = m = h = null), R(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) N(e, "bad indentation of a mapping entry");
|
|
789
|
-
else if (e.lineIndent < t) break;
|
|
790
|
-
}
|
|
791
|
-
return g && I(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
|
|
792
|
-
}
|
|
793
|
-
e(Et, "readBlockMapping");
|
|
794
|
-
function Dt(e) {
|
|
795
|
-
var t, n = !1, r = !1, i, a, o = e.input.charCodeAt(e.position);
|
|
796
|
-
if (o !== 33) return !1;
|
|
797
|
-
if (e.tag !== null && N(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (r = !0, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
|
|
798
|
-
do
|
|
799
|
-
o = e.input.charCodeAt(++e.position);
|
|
800
|
-
while (o !== 0 && o !== 62);
|
|
801
|
-
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : N(e, "unexpected end of the stream within a verbatim tag");
|
|
802
|
-
} else {
|
|
803
|
-
for (; o !== 0 && !A(o);) o === 33 && (r ? N(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), ot.test(i) || N(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
804
|
-
a = e.input.slice(t, e.position), at.test(a) && N(e, "tag suffix cannot contain flow indicator characters");
|
|
805
|
-
}
|
|
806
|
-
a && !st.test(a) && N(e, "tag name cannot contain such characters: " + a);
|
|
807
|
-
try {
|
|
808
|
-
a = decodeURIComponent(a);
|
|
809
|
-
} catch {
|
|
810
|
-
N(e, "tag name is malformed: " + a);
|
|
811
|
-
}
|
|
812
|
-
return n ? e.tag = a : C.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : N(e, "undeclared tag handle \"" + i + "\""), !0;
|
|
813
|
-
}
|
|
814
|
-
e(Dt, "readTagProperty");
|
|
815
|
-
function Ot(e) {
|
|
816
|
-
var t, n = e.input.charCodeAt(e.position);
|
|
817
|
-
if (n !== 38) return !1;
|
|
818
|
-
for (e.anchor !== null && N(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !A(n) && !j(n);) n = e.input.charCodeAt(++e.position);
|
|
819
|
-
return e.position === t && N(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
820
|
-
}
|
|
821
|
-
e(Ot, "readAnchorProperty");
|
|
822
|
-
function kt(e) {
|
|
823
|
-
var t, n, r = e.input.charCodeAt(e.position);
|
|
824
|
-
if (r !== 42) return !1;
|
|
825
|
-
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !A(r) && !j(r);) r = e.input.charCodeAt(++e.position);
|
|
826
|
-
return e.position === t && N(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), C.call(e.anchorMap, n) || N(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], R(e, !0, -1), !0;
|
|
827
|
-
}
|
|
828
|
-
e(kt, "readAlias");
|
|
829
|
-
function V(e, t, n, r, i) {
|
|
830
|
-
var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
|
|
831
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = T === n || et === n, r && R(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; Dt(e) || Ot(e);) R(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
|
|
832
|
-
if (s &&= l || i, (c === 1 || T === n) && (h = w === n || $e === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (Tt(e, g) || Et(e, g, h)) || Ct(e, h) ? u = !0 : (o && wt(e, h) || xt(e, h) || St(e, h) ? u = !0 : kt(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && N(e, "alias node should not have any properties")) : bt(e, h, w === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && Tt(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
833
|
-
else if (e.tag === "?") {
|
|
834
|
-
for (e.result !== null && e.kind !== "scalar" && N(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), d = 0, f = e.implicitTypes.length; d < f; d += 1) if (m = e.implicitTypes[d], m.resolve(e.result)) {
|
|
835
|
-
e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
836
|
-
break;
|
|
837
|
-
}
|
|
838
|
-
} else if (e.tag !== "!") {
|
|
839
|
-
if (C.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
|
|
840
|
-
else for (m = null, p = e.typeMap.multi[e.kind || "fallback"], d = 0, f = p.length; d < f; d += 1) if (e.tag.slice(0, p[d].tag.length) === p[d].tag) {
|
|
841
|
-
m = p[d];
|
|
842
|
-
break;
|
|
843
|
-
}
|
|
844
|
-
m || N(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && N(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + m.kind + "\", not \"" + e.kind + "\""), m.resolve(e.result, e.tag) ? (e.result = m.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : N(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
845
|
-
}
|
|
846
|
-
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
|
|
847
|
-
}
|
|
848
|
-
e(V, "composeNode");
|
|
849
|
-
function At(e) {
|
|
850
|
-
var t = e.position, n, r, i, a = !1, o;
|
|
851
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (R(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
|
|
852
|
-
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !A(o);) o = e.input.charCodeAt(++e.position);
|
|
853
|
-
for (r = e.input.slice(n, e.position), i = [], r.length < 1 && N(e, "directive name must not be less than one character in length"); o !== 0;) {
|
|
854
|
-
for (; k(o);) o = e.input.charCodeAt(++e.position);
|
|
855
|
-
if (o === 35) {
|
|
856
|
-
do
|
|
857
|
-
o = e.input.charCodeAt(++e.position);
|
|
858
|
-
while (o !== 0 && !O(o));
|
|
859
|
-
break;
|
|
860
|
-
}
|
|
861
|
-
if (O(o)) break;
|
|
862
|
-
for (n = e.position; o !== 0 && !A(o);) o = e.input.charCodeAt(++e.position);
|
|
863
|
-
i.push(e.input.slice(n, e.position));
|
|
864
|
-
}
|
|
865
|
-
o !== 0 && L(e), C.call(vt, r) ? vt[r](e, r, i) : P(e, "unknown document directive \"" + r + "\"");
|
|
866
|
-
}
|
|
867
|
-
if (R(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, R(e, !0, -1)) : a && N(e, "directives end mark is expected"), V(e, e.lineIndent - 1, T, !1, !0), R(e, !0, -1), e.checkLineBreaks && it.test(e.input.slice(t, e.position)) && P(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && z(e)) {
|
|
868
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3, R(e, !0, -1));
|
|
869
|
-
return;
|
|
870
|
-
}
|
|
871
|
-
if (e.position < e.length - 1) N(e, "end of the stream or a document separator is expected");
|
|
872
|
-
else return;
|
|
873
|
-
}
|
|
874
|
-
e(At, "readDocument");
|
|
875
|
-
function jt(e, t) {
|
|
876
|
-
e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
877
|
-
var n = new gt(e, t), r = e.indexOf("\0");
|
|
878
|
-
for (r !== -1 && (n.position = r, N(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
|
|
879
|
-
for (; n.position < n.length - 1;) At(n);
|
|
880
|
-
return n.documents;
|
|
881
|
-
}
|
|
882
|
-
e(jt, "loadDocuments");
|
|
883
|
-
function Mt(e, t, n) {
|
|
884
|
-
typeof t == "object" && t && n === void 0 && (n = t, t = null);
|
|
885
|
-
var r = jt(e, n);
|
|
886
|
-
if (typeof t != "function") return r;
|
|
887
|
-
for (var i = 0, a = r.length; i < a; i += 1) t(r[i]);
|
|
888
|
-
}
|
|
889
|
-
e(Mt, "loadAll$1");
|
|
890
|
-
function Nt(e, t) {
|
|
891
|
-
var n = jt(e, t);
|
|
892
|
-
if (n.length !== 0) {
|
|
893
|
-
if (n.length === 1) return n[0];
|
|
894
|
-
throw new u("expected a single document in the stream, but found more");
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
e(Nt, "load$1");
|
|
898
|
-
var Pt = {
|
|
899
|
-
loadAll: Mt,
|
|
900
|
-
load: Nt
|
|
901
|
-
}, Ft = Object.prototype.toString, It = Object.prototype.hasOwnProperty, Lt = 65279, Rt = 9, H = 10, zt = 13, Bt = 32, Vt = 33, Ht = 34, Ut = 35, Wt = 37, Gt = 38, Kt = 39, qt = 42, Jt = 44, Yt = 45, U = 58, Xt = 61, Zt = 62, Qt = 63, $t = 64, en = 91, tn = 93, nn = 96, rn = 123, an = 124, on = 125, W = {};
|
|
902
|
-
W[0] = "\\0", W[7] = "\\a", W[8] = "\\b", W[9] = "\\t", W[10] = "\\n", W[11] = "\\v", W[12] = "\\f", W[13] = "\\r", W[27] = "\\e", W[34] = "\\\"", W[92] = "\\\\", W[133] = "\\N", W[160] = "\\_", W[8232] = "\\L", W[8233] = "\\P";
|
|
903
|
-
var sn = [
|
|
904
|
-
"y",
|
|
905
|
-
"Y",
|
|
906
|
-
"yes",
|
|
907
|
-
"Yes",
|
|
908
|
-
"YES",
|
|
909
|
-
"on",
|
|
910
|
-
"On",
|
|
911
|
-
"ON",
|
|
912
|
-
"n",
|
|
913
|
-
"N",
|
|
914
|
-
"no",
|
|
915
|
-
"No",
|
|
916
|
-
"NO",
|
|
917
|
-
"off",
|
|
918
|
-
"Off",
|
|
919
|
-
"OFF"
|
|
920
|
-
], cn = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
921
|
-
function ln(e, t) {
|
|
922
|
-
var n, r, i, a, o, s, c;
|
|
923
|
-
if (t === null) return {};
|
|
924
|
-
for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && It.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
|
|
925
|
-
return n;
|
|
926
|
-
}
|
|
927
|
-
e(ln, "compileStyleMap");
|
|
928
|
-
function un(e) {
|
|
929
|
-
var t = e.toString(16).toUpperCase(), n, r;
|
|
930
|
-
if (e <= 255) n = "x", r = 2;
|
|
931
|
-
else if (e <= 65535) n = "u", r = 4;
|
|
932
|
-
else if (e <= 4294967295) n = "U", r = 8;
|
|
933
|
-
else throw new u("code point within a string may not be greater than 0xFFFFFFFF");
|
|
934
|
-
return "\\" + n + s.repeat("0", r - t.length) + t;
|
|
935
|
-
}
|
|
936
|
-
e(un, "encodeHex");
|
|
937
|
-
var dn = 1, G = 2;
|
|
938
|
-
function fn(e) {
|
|
939
|
-
this.schema = e.schema || Qe, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = s.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = ln(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? G : dn, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
940
|
-
}
|
|
941
|
-
e(fn, "State");
|
|
942
|
-
function pn(e, t) {
|
|
943
|
-
for (var n = s.repeat(" ", t), r = 0, i = -1, a = "", o, c = e.length; r < c;) i = e.indexOf("\n", r), i === -1 ? (o = e.slice(r), r = c) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== "\n" && (a += n), a += o;
|
|
944
|
-
return a;
|
|
945
|
-
}
|
|
946
|
-
e(pn, "indentString");
|
|
947
|
-
function K(e, t) {
|
|
948
|
-
return "\n" + s.repeat(" ", e.indent * t);
|
|
949
|
-
}
|
|
950
|
-
e(K, "generateNextLine");
|
|
951
|
-
function mn(e, t) {
|
|
952
|
-
var n, r, i;
|
|
953
|
-
for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (i = e.implicitTypes[n], i.resolve(t)) return !0;
|
|
954
|
-
return !1;
|
|
955
|
-
}
|
|
956
|
-
e(mn, "testImplicitResolving");
|
|
957
|
-
function q(e) {
|
|
958
|
-
return e === Bt || e === Rt;
|
|
959
|
-
}
|
|
960
|
-
e(q, "isWhitespace");
|
|
961
|
-
function J(e) {
|
|
962
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Lt || 65536 <= e && e <= 1114111;
|
|
963
|
-
}
|
|
964
|
-
e(J, "isPrintable");
|
|
965
|
-
function hn(e) {
|
|
966
|
-
return J(e) && e !== Lt && e !== zt && e !== H;
|
|
967
|
-
}
|
|
968
|
-
e(hn, "isNsCharOrWhitespace");
|
|
969
|
-
function gn(e, t, n) {
|
|
970
|
-
var r = hn(e), i = r && !q(e);
|
|
971
|
-
return (n ? r : r && e !== Jt && e !== en && e !== tn && e !== rn && e !== on) && e !== Ut && !(t === U && !i) || hn(t) && !q(t) && e === Ut || t === U && i;
|
|
972
|
-
}
|
|
973
|
-
e(gn, "isPlainSafe");
|
|
974
|
-
function _n(e) {
|
|
975
|
-
return J(e) && e !== Lt && !q(e) && e !== Yt && e !== Qt && e !== U && e !== Jt && e !== en && e !== tn && e !== rn && e !== on && e !== Ut && e !== Gt && e !== qt && e !== Vt && e !== an && e !== Xt && e !== Zt && e !== Kt && e !== Ht && e !== Wt && e !== $t && e !== nn;
|
|
976
|
-
}
|
|
977
|
-
e(_n, "isPlainSafeFirst");
|
|
978
|
-
function vn(e) {
|
|
979
|
-
return !q(e) && e !== U;
|
|
980
|
-
}
|
|
981
|
-
e(vn, "isPlainSafeLast");
|
|
982
|
-
function Y(e, t) {
|
|
983
|
-
var n = e.charCodeAt(t), r;
|
|
984
|
-
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
985
|
-
}
|
|
986
|
-
e(Y, "codePointAt");
|
|
987
|
-
function yn(e) {
|
|
988
|
-
return /^\n* /.test(e);
|
|
989
|
-
}
|
|
990
|
-
e(yn, "needIndentIndicator");
|
|
991
|
-
var bn = 1, xn = 2, Sn = 3, Cn = 4, X = 5;
|
|
992
|
-
function wn(e, t, n, r, i, a, o, s) {
|
|
993
|
-
var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = _n(Y(e, 0)) && vn(Y(e, e.length - 1));
|
|
994
|
-
if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
995
|
-
if (l = Y(e, c), !J(l)) return X;
|
|
996
|
-
h &&= gn(l, u, s), u = l;
|
|
997
|
-
}
|
|
998
|
-
else {
|
|
999
|
-
for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
1000
|
-
if (l = Y(e, c), l === H) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
|
|
1001
|
-
else if (!J(l)) return X;
|
|
1002
|
-
h &&= gn(l, u, s), u = l;
|
|
1003
|
-
}
|
|
1004
|
-
f ||= p && c - m - 1 > r && e[m + 1] !== " ";
|
|
1005
|
-
}
|
|
1006
|
-
return !d && !f ? h && !o && !i(e) ? bn : a === G ? X : xn : n > 9 && yn(e) ? X : o ? a === G ? X : xn : f ? Cn : Sn;
|
|
1007
|
-
}
|
|
1008
|
-
e(wn, "chooseScalarStyle");
|
|
1009
|
-
function Tn(t, n, r, i, a) {
|
|
1010
|
-
t.dump = (function() {
|
|
1011
|
-
if (n.length === 0) return t.quotingType === G ? "\"\"" : "''";
|
|
1012
|
-
if (!t.noCompatMode && (sn.indexOf(n) !== -1 || cn.test(n))) return t.quotingType === G ? "\"" + n + "\"" : "'" + n + "'";
|
|
1013
|
-
var o = t.indent * Math.max(1, r), s = t.lineWidth === -1 ? -1 : Math.max(Math.min(t.lineWidth, 40), t.lineWidth - o), c = i || t.flowLevel > -1 && r >= t.flowLevel;
|
|
1014
|
-
function l(e) {
|
|
1015
|
-
return mn(t, e);
|
|
1016
|
-
}
|
|
1017
|
-
switch (e(l, "testAmbiguity"), wn(n, c, t.indent, s, l, t.quotingType, t.forceQuotes && !i, a)) {
|
|
1018
|
-
case bn: return n;
|
|
1019
|
-
case xn: return "'" + n.replace(/'/g, "''") + "'";
|
|
1020
|
-
case Sn: return "|" + En(n, t.indent) + Dn(pn(n, o));
|
|
1021
|
-
case Cn: return ">" + En(n, t.indent) + Dn(pn(On(n, s), o));
|
|
1022
|
-
case X: return "\"" + An(n) + "\"";
|
|
1023
|
-
default: throw new u("impossible error: invalid scalar style");
|
|
1024
|
-
}
|
|
1025
|
-
})();
|
|
1026
|
-
}
|
|
1027
|
-
e(Tn, "writeScalar");
|
|
1028
|
-
function En(e, t) {
|
|
1029
|
-
var n = yn(e) ? String(t) : "", r = e[e.length - 1] === "\n";
|
|
1030
|
-
return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
|
|
1031
|
-
}
|
|
1032
|
-
e(En, "blockHeader");
|
|
1033
|
-
function Dn(e) {
|
|
1034
|
-
return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
|
|
1035
|
-
}
|
|
1036
|
-
e(Dn, "dropEndingNewline");
|
|
1037
|
-
function On(e, t) {
|
|
1038
|
-
for (var n = /(\n+)([^\n]*)/g, r = (function() {
|
|
1039
|
-
var r = e.indexOf("\n");
|
|
1040
|
-
return r = r === -1 ? e.length : r, n.lastIndex = r, kn(e.slice(0, r), t);
|
|
1041
|
-
})(), i = e[0] === "\n" || e[0] === " ", a, o; o = n.exec(e);) {
|
|
1042
|
-
var s = o[1], c = o[2];
|
|
1043
|
-
a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + kn(c, t), i = a;
|
|
1044
|
-
}
|
|
1045
|
-
return r;
|
|
1046
|
-
}
|
|
1047
|
-
e(On, "foldString");
|
|
1048
|
-
function kn(e, t) {
|
|
1049
|
-
if (e === "" || e[0] === " ") return e;
|
|
1050
|
-
for (var n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = ""; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
|
|
1051
|
-
return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
|
|
1052
|
-
}
|
|
1053
|
-
e(kn, "foldLine");
|
|
1054
|
-
function An(e) {
|
|
1055
|
-
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = Y(e, i), r = W[n], !r && J(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || un(n);
|
|
1056
|
-
return t;
|
|
1057
|
-
}
|
|
1058
|
-
e(An, "escapeString");
|
|
1059
|
-
function jn(e, t, n) {
|
|
1060
|
-
var r = "", i = e.tag, a, o, s;
|
|
1061
|
-
for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (Q(e, t, s, !1, !1) || s === void 0 && Q(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
1062
|
-
e.tag = i, e.dump = "[" + r + "]";
|
|
1063
|
-
}
|
|
1064
|
-
e(jn, "writeFlowSequence");
|
|
1065
|
-
function Mn(e, t, n, r) {
|
|
1066
|
-
var i = "", a = e.tag, o, s, c;
|
|
1067
|
-
for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Q(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && Q(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += K(e, t)), e.dump && H === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
1068
|
-
e.tag = a, e.dump = i || "[]";
|
|
1069
|
-
}
|
|
1070
|
-
e(Mn, "writeBlockSequence");
|
|
1071
|
-
function Nn(e, t, n) {
|
|
1072
|
-
var r = "", i = e.tag, a = Object.keys(n), o, s, c, l, u;
|
|
1073
|
-
for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)), Q(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), Q(e, t, l, !1, !1) && (u += e.dump, r += u));
|
|
1074
|
-
e.tag = i, e.dump = "{" + r + "}";
|
|
1075
|
-
}
|
|
1076
|
-
e(Nn, "writeFlowMapping");
|
|
1077
|
-
function Pn(e, t, n, r) {
|
|
1078
|
-
var i = "", a = e.tag, o = Object.keys(n), s, c, l, d, f, p;
|
|
1079
|
-
if (e.sortKeys === !0) o.sort();
|
|
1080
|
-
else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
|
|
1081
|
-
else if (e.sortKeys) throw new u("sortKeys must be a boolean or a function");
|
|
1082
|
-
for (s = 0, c = o.length; s < c; s += 1) p = "", (!r || i !== "") && (p += K(e, t)), l = o[s], d = n[l], e.replacer && (d = e.replacer.call(n, l, d)), Q(e, t + 1, l, !0, !0, !0) && (f = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, f && (e.dump && H === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, f && (p += K(e, t)), Q(e, t + 1, d, !0, f) && (e.dump && H === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, i += p));
|
|
1083
|
-
e.tag = a, e.dump = i || "{}";
|
|
1084
|
-
}
|
|
1085
|
-
e(Pn, "writeBlockMapping");
|
|
1086
|
-
function Z(e, t, n) {
|
|
1087
|
-
var r, i = n ? e.explicitTypes : e.implicitTypes, a, o, s, c;
|
|
1088
|
-
for (a = 0, o = i.length; a < o; a += 1) if (s = i[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof t == "object" && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) {
|
|
1089
|
-
if (e.tag = n ? s.multi && s.representName ? s.representName(t) : s.tag : "?", s.represent) {
|
|
1090
|
-
if (c = e.styleMap[s.tag] || s.defaultStyle, Ft.call(s.represent) === "[object Function]") r = s.represent(t, c);
|
|
1091
|
-
else if (It.call(s.represent, c)) r = s.represent[c](t, c);
|
|
1092
|
-
else throw new u("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
|
|
1093
|
-
e.dump = r;
|
|
1094
|
-
}
|
|
1095
|
-
return !0;
|
|
1096
|
-
}
|
|
1097
|
-
return !1;
|
|
1098
|
-
}
|
|
1099
|
-
e(Z, "detectType");
|
|
1100
|
-
function Q(e, t, n, r, i, a, o) {
|
|
1101
|
-
e.tag = null, e.dump = n, Z(e, n, !1) || Z(e, n, !0);
|
|
1102
|
-
var s = Ft.call(e.dump), c = r, l;
|
|
1103
|
-
r &&= e.flowLevel < 0 || e.flowLevel > t;
|
|
1104
|
-
var d = s === "[object Object]" || s === "[object Array]", f, p;
|
|
1105
|
-
if (d && (f = e.duplicates.indexOf(n), p = f !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && t > 0) && (i = !1), p && e.usedDuplicates[f]) e.dump = "*ref_" + f;
|
|
1106
|
-
else {
|
|
1107
|
-
if (d && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (Pn(e, t, e.dump, i), p && (e.dump = "&ref_" + f + e.dump)) : (Nn(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
|
|
1108
|
-
else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Mn(e, t - 1, e.dump, i) : Mn(e, t, e.dump, i), p && (e.dump = "&ref_" + f + e.dump)) : (jn(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
|
|
1109
|
-
else if (s === "[object String]") e.tag !== "?" && Tn(e, e.dump, t, a, c);
|
|
1110
|
-
else if (s === "[object Undefined]") return !1;
|
|
1111
|
-
else {
|
|
1112
|
-
if (e.skipInvalid) return !1;
|
|
1113
|
-
throw new u("unacceptable kind of an object to dump " + s);
|
|
1114
|
-
}
|
|
1115
|
-
e.tag !== null && e.tag !== "?" && (l = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21"), l = e.tag[0] === "!" ? "!" + l : l.slice(0, 18) === "tag:yaml.org,2002:" ? "!!" + l.slice(18) : "!<" + l + ">", e.dump = l + " " + e.dump);
|
|
1116
|
-
}
|
|
1117
|
-
return !0;
|
|
1118
|
-
}
|
|
1119
|
-
e(Q, "writeNode");
|
|
1120
|
-
function Fn(e, t) {
|
|
1121
|
-
var n = [], r = [], i, a;
|
|
1122
|
-
for ($(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
|
|
1123
|
-
t.usedDuplicates = Array(a);
|
|
1124
|
-
}
|
|
1125
|
-
e(Fn, "getDuplicateReferences");
|
|
1126
|
-
function $(e, t, n) {
|
|
1127
|
-
var r, i, a;
|
|
1128
|
-
if (typeof e == "object" && e) {
|
|
1129
|
-
if (i = t.indexOf(e), i !== -1) n.indexOf(i) === -1 && n.push(i);
|
|
1130
|
-
else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) $(e[i], t, n);
|
|
1131
|
-
else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) $(e[r[i]], t, n);
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
e($, "inspectNode");
|
|
1135
|
-
function In(e, t) {
|
|
1136
|
-
t ||= {};
|
|
1137
|
-
var n = new fn(t);
|
|
1138
|
-
n.noRefs || Fn(e, n);
|
|
1139
|
-
var r = e;
|
|
1140
|
-
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Q(n, 0, r, !0, !0) ? n.dump + "\n" : "";
|
|
1141
|
-
}
|
|
1142
|
-
e(In, "dump$1");
|
|
1143
|
-
var Ln = { dump: In };
|
|
1144
|
-
function Rn(e, t) {
|
|
1145
|
-
return function() {
|
|
1146
|
-
throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
1147
|
-
};
|
|
1148
|
-
}
|
|
1149
|
-
e(Rn, "renamed");
|
|
1150
|
-
var zn = we, Bn = Pt.load;
|
|
1151
|
-
Pt.loadAll, Ln.dump;
|
|
1152
|
-
//#endregion
|
|
1153
|
-
export { Bn as n, zn as t };
|