@cardstack/boxel-cli 0.3.2-unstable.58 → 0.3.2-unstable.60
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/api.ts +3 -3
- package/bundled-realms/base/command.gts +73 -0
- package/bundled-test-harness/assets/adapter-TgpmkD23.js +2 -0
- package/bundled-test-harness/assets/add-field-to-card-definition-command-test-BVVD6_Wq.js +111 -0
- package/bundled-test-harness/assets/add-workspace-test-BvvYJ2Fk.js +71 -0
- package/bundled-test-harness/assets/ai-assistant-Ba_RBqf6.js +129 -0
- package/bundled-test-harness/assets/ai-assistant-panel-service-test-DK87n1hh.js +95 -0
- package/bundled-test-harness/assets/ai-assistant-test-CZATBlJS.js +2137 -0
- package/bundled-test-harness/assets/ai-function-generation-test-e58MHziu.js +996 -0
- package/bundled-test-harness/assets/ai-module-creation-test-CEieL3Fa.js +150 -0
- package/bundled-test-harness/assets/aibot-message-DhTbAqNk.js +1185 -0
- package/bundled-test-harness/assets/amd-transpile-test-CSk5COu7.js +425 -0
- package/bundled-test-harness/assets/app-Btfy4HWI.js +21464 -0
- package/bundled-test-harness/assets/apply-boxel-formatting-test-BHTP9NBp.js +134 -0
- package/bundled-test-harness/assets/apply-markdown-edit-test-BETCndeK.js +230 -0
- package/bundled-test-harness/assets/apply-search-replace-block-test-KNolar0-.js +630 -0
- package/bundled-test-harness/assets/arc-CA8yZ0zo.js +199 -0
- package/bundled-test-harness/assets/architecture-7EHR7CIX-C5JFMGdb.js +3 -0
- package/bundled-test-harness/assets/architectureDiagram-3BPJPVTR-CmVPjKgm.js +7400 -0
- package/bundled-test-harness/assets/auth-error-guard-test-D0rKESg_.js +30 -0
- package/bundled-test-harness/assets/auth-service-worker-test-DGg_vbKo.js +538 -0
- package/bundled-test-harness/assets/authed-fetch-test-CHF3eh_H.js +75 -0
- package/bundled-test-harness/assets/avif-image-def-test-p9tiyh4_.js +186 -0
- package/bundled-test-harness/assets/base-realm-Chjzrp6m.js +2 -0
- package/bundled-test-harness/assets/base-realm-DpSTsZxD.js +140 -0
- package/bundled-test-harness/assets/basic-test-D7qEz4hw.js +128 -0
- package/bundled-test-harness/assets/bfm-card-references-test-D-m1YnL8.js +577 -0
- package/bundled-test-harness/assets/binary-upload-dedupe-test-8RKK73EG.js +308 -0
- package/bundled-test-harness/assets/blockDiagram-GPEHLZMM-BdVFTa2C.js +4355 -0
- package/bundled-test-harness/assets/bot-registration-test-9zYny2wR.js +99 -0
- package/bundled-test-harness/assets/box-test-0T92xi3A.js +51 -0
- package/bundled-test-harness/assets/brand-guide-attachments-test-5ZtPn4cC.js +87 -0
- package/bundled-test-harness/assets/brand-guide-custom-css-test-CKKSgKyp.js +135 -0
- package/bundled-test-harness/assets/brand-logo-mark-field-test-nlNNQ3rw.js +87 -0
- package/bundled-test-harness/assets/broken-link-template-test-BGIExVof.js +345 -0
- package/bundled-test-harness/assets/browser-index-BaR-gTqG.js +3 -0
- package/bundled-test-harness/assets/browser-index-G4NKYBAj.js +8802 -0
- package/bundled-test-harness/assets/c4Diagram-AAUBKEIU-DyugX7zz.js +3764 -0
- package/bundled-test-harness/assets/cached-fetch-test-MtqvDphJ.js +93 -0
- package/bundled-test-harness/assets/can-read-realm-test-BZmwIOqS.js +58 -0
- package/bundled-test-harness/assets/cancel-indexing-job-test-BsQtQbDu.js +71 -0
- package/bundled-test-harness/assets/card-api-test-BxQ8f0-c.js +196 -0
- package/bundled-test-harness/assets/card-basics-test-B-uBZ8o4.js +4895 -0
- package/bundled-test-harness/assets/card-catalog-test-YmwmyIKf.js +377 -0
- package/bundled-test-harness/assets/card-copy-test-LoqdH1CQ.js +777 -0
- package/bundled-test-harness/assets/card-def-field-def-relationships-test-DvtBA1jv.js +560 -0
- package/bundled-test-harness/assets/card-def-menu-items-test-DHnd0LuM.js +182 -0
- package/bundled-test-harness/assets/card-delete-test-vKF0Jf1X.js +412 -0
- package/bundled-test-harness/assets/card-directory-name-test-CbCuPwSz.js +71 -0
- package/bundled-test-harness/assets/card-playground-test-CRIP3b5-.js +1497 -0
- package/bundled-test-harness/assets/card-prerender-ClYlSOBU.js +12661 -0
- package/bundled-test-harness/assets/card-search-adorn-test-Mggk5ZgY.js +128 -0
- package/bundled-test-harness/assets/card-search-query-builder-test-Cdl12s50.js +88 -0
- package/bundled-test-harness/assets/card-search-selection-menu-test-CtuCCLoB.js +108 -0
- package/bundled-test-harness/assets/channel-BKUMepxs.js +8 -0
- package/bundled-test-harness/assets/check-correctness-test-DBh8DT_f.js +252 -0
- package/bundled-test-harness/assets/chunk-2J33WTMH-ClrRoNQU.js +31 -0
- package/bundled-test-harness/assets/chunk-3OPIFGDE-g_0Oh8jN.js +5548 -0
- package/bundled-test-harness/assets/chunk-4BX2VUAB-D2LCc7Y9.js +11 -0
- package/bundled-test-harness/assets/chunk-4EGX6M5U-D8vRS5IG.js +44 -0
- package/bundled-test-harness/assets/chunk-55IACEB6-C5j4VAmb.js +10 -0
- package/bundled-test-harness/assets/chunk-5DO6E6H7-CPb3jsP0.js +27 -0
- package/bundled-test-harness/assets/chunk-5ZQYHXKU-BlVb7vgG.js +1767 -0
- package/bundled-test-harness/assets/chunk-727SXJPM-C_NVCDMC.js +3877 -0
- package/bundled-test-harness/assets/chunk-AQP2D5EJ-CpwrMix_.js +2622 -0
- package/bundled-test-harness/assets/chunk-BR22UD5L-AF0NWdjT.js +85 -0
- package/bundled-test-harness/assets/chunk-BSJP7CBP-Dgun5vYb.js +114 -0
- package/bundled-test-harness/assets/chunk-CSCIHK7Q-D7nFiAZ-.js +6144 -0
- package/bundled-test-harness/assets/chunk-FHYWG6QK-2nuXS9PL.js +27 -0
- package/bundled-test-harness/assets/chunk-FMBD7UC4-O-Y8VK1S.js +20 -0
- package/bundled-test-harness/assets/chunk-KSCS5N6A-Du5-DprU.js +871 -0
- package/bundled-test-harness/assets/chunk-L5ZTLDWV-C2lDtkix.js +43 -0
- package/bundled-test-harness/assets/chunk-LZXEDZCA-qAMsMZkF.js +65 -0
- package/bundled-test-harness/assets/chunk-MPE355IW-DcT_60Oq.js +27 -0
- package/bundled-test-harness/assets/chunk-MZUSXYTE-BsH_YmnC.js +36 -0
- package/bundled-test-harness/assets/chunk-N66VUXT2-DMyMHgoS.js +70 -0
- package/bundled-test-harness/assets/chunk-ND2GUHAM-DO1Znn8O.js +93 -0
- package/bundled-test-harness/assets/chunk-NZK2D7GU-B1YWBxHm.js +89 -0
- package/bundled-test-harness/assets/chunk-O5CBEL6O-CZVSBsRq.js +2395 -0
- package/bundled-test-harness/assets/chunk-PUPMXCY4-DzOK-Vbt.js +27 -0
- package/bundled-test-harness/assets/chunk-QZHKN3VN-DJFnRn99.js +20 -0
- package/bundled-test-harness/assets/chunk-UIBZB4QT-5KIxBxjk.js +27 -0
- package/bundled-test-harness/assets/chunk-WCWK7LTN-BsQwhliq.js +36 -0
- package/bundled-test-harness/assets/chunk-WU5MYG2G-DUVb5MAo.js +12 -0
- package/bundled-test-harness/assets/chunk-XPW4576I-DLaJYAOU.js +2341 -0
- package/bundled-test-harness/assets/classDiagram-4FO5ZUOK-DjP2uozG.js +31 -0
- package/bundled-test-harness/assets/classDiagram-v2-Q7XG4LA2-Dt6ps5uz.js +31 -0
- package/bundled-test-harness/assets/code-equality-assertion-BBezFT13.js +474 -0
- package/bundled-test-harness/assets/code-patches-test-DzoQGARM.js +1128 -0
- package/bundled-test-harness/assets/code-patching-test-D8r-pJ5w.js +114 -0
- package/bundled-test-harness/assets/code-ref-test-DU3HChNz.js +138 -0
- package/bundled-test-harness/assets/code-semantics-service-test-DArUotKy.js +65 -0
- package/bundled-test-harness/assets/code-submode-test-h5wWKsz2.js +1762 -0
- package/bundled-test-harness/assets/codeblocks-test-FbuwTy5v.js +492 -0
- package/bundled-test-harness/assets/codemirror-context-DVlC9C78.js +2 -0
- package/bundled-test-harness/assets/codemirror-editor-test-JDT9uwqM.js +1176 -0
- package/bundled-test-harness/assets/color-field-test-BssRlQAX.js +213 -0
- package/bundled-test-harness/assets/command-definitions-test-J21kOxBs.js +72 -0
- package/bundled-test-harness/assets/commands-DAo0DgCX.js +1379 -0
- package/bundled-test-harness/assets/commands-calling-test-C3deVvv_.js +200 -0
- package/bundled-test-harness/assets/commands-test--0zViqs2.js +1041 -0
- package/bundled-test-harness/assets/commands-test-BwNn2npL.js +1145 -0
- package/bundled-test-harness/assets/computed-test-BD_KrZmc.js +882 -0
- package/bundled-test-harness/assets/container-C8gu0I0Q.js +14605 -0
- package/bundled-test-harness/assets/convert-to-class-name-test-CX21VRzM.js +17 -0
- package/bundled-test-harness/assets/copy-and-edit-test-BUy_o8XJ.js +291 -0
- package/bundled-test-harness/assets/copy-card-test-LWbugEPe.js +156 -0
- package/bundled-test-harness/assets/copy-file-to-realm-test-BS25EUGV.js +99 -0
- package/bundled-test-harness/assets/copy-source-test-Dh33cqM8.js +56 -0
- package/bundled-test-harness/assets/cose-bilkent-S5V4N54A-CjAFDdpS.js +4275 -0
- package/bundled-test-harness/assets/create-file-test-DOc3YYij.js +963 -0
- package/bundled-test-harness/assets/create-file-test-DgUya7-i.js +397 -0
- package/bundled-test-harness/assets/create-listing-modal-test-DZxZBYS7.js +194 -0
- package/bundled-test-harness/assets/create-listing-pr-request-Aw0ms76l.js +64 -0
- package/bundled-test-harness/assets/create-listing-pr-request-test-CFvqkgky.js +117 -0
- package/bundled-test-harness/assets/create-spec-test-BTRt8oe8.js +239 -0
- package/bundled-test-harness/assets/csv-file-def-test-BVffg8wL.js +101 -0
- package/bundled-test-harness/assets/dagre-BM42HDAG-GoRrN65x.js +606 -0
- package/bundled-test-harness/assets/dagre-ByxOOmYM.js +4195 -0
- package/bundled-test-harness/assets/date-time-fields-test-BEcfCqgB.js +322 -0
- package/bundled-test-harness/assets/debug-message-test-CAxbe6x2.js +119 -0
- package/bundled-test-harness/assets/diagram-2AECGRRQ-B6-pvp9H.js +279 -0
- package/bundled-test-harness/assets/diagram-5GNKFQAL-C9M7hXIc.js +142 -0
- package/bundled-test-harness/assets/diagram-KO2AKTUF-BNJvCLGK.js +551 -0
- package/bundled-test-harness/assets/diagram-LMA3HP47-hlJyTtqP.js +184 -0
- package/bundled-test-harness/assets/diagram-OG6HWLK6-BvPoB3IH.js +857 -0
- package/bundled-test-harness/assets/diffing-test-De9Ev_Fr.js +210 -0
- package/bundled-test-harness/assets/dist-BsEojs3T.js +232 -0
- package/bundled-test-harness/assets/dist-CY3T64Hs.js +105 -0
- package/bundled-test-harness/assets/dist-q2xz8RMj.js +2 -0
- package/bundled-test-harness/assets/editor-test-DOI_TvWQ.js +551 -0
- package/bundled-test-harness/assets/editor.main-CpuM6HrX.js +43566 -0
- package/bundled-test-harness/assets/editor.main-DkMgS1qm.js +3 -0
- package/bundled-test-harness/assets/email-field-test-t-80Z94b.js +74 -0
- package/bundled-test-harness/assets/enum-field-test-DVp-2pip.js +909 -0
- package/bundled-test-harness/assets/erDiagram-TEJ5UH35-CYniRkua.js +2041 -0
- package/bundled-test-harness/assets/error-display-test-IuRxKyLz.js +343 -0
- package/bundled-test-harness/assets/evaluate-module-test-DdnfbFp-.js +66 -0
- package/bundled-test-harness/assets/eventmodeling-FCH6USID-BO089-Cs.js +3 -0
- package/bundled-test-harness/assets/execute-atomic-operations-test-CgbvrBlu.js +75 -0
- package/bundled-test-harness/assets/externals-5atxeNU4.js +5533 -0
- package/bundled-test-harness/assets/extract-css-variables-test-Cii-CYfc.js +169 -0
- package/bundled-test-harness/assets/fallback-banner-test-CUUd-Wuu.js +227 -0
- package/bundled-test-harness/assets/fallback-banner-test-D4NWyahM.js +53 -0
- package/bundled-test-harness/assets/fallback-models-test-2MJ1jAs8.js +163 -0
- package/bundled-test-harness/assets/fetch-card-json-test-Cruqsq6S.js +63 -0
- package/bundled-test-harness/assets/fetcher-test-CkHlbTzz.js +85 -0
- package/bundled-test-harness/assets/field-configuration-test-CqwsGNib.js +535 -0
- package/bundled-test-harness/assets/field-markdown-domain-test-DPjz8i4Y.js +615 -0
- package/bundled-test-harness/assets/field-markdown-primitives-test-Dw07UtT7.js +362 -0
- package/bundled-test-harness/assets/field-markdown-specialized-test-C-t34PAw.js +527 -0
- package/bundled-test-harness/assets/field-path-parser-test-BeNjacPu.js +387 -0
- package/bundled-test-harness/assets/field-playground-test-BILTGxqr.js +902 -0
- package/bundled-test-harness/assets/field-support-predicates-test-Df24w0Wa.js +170 -0
- package/bundled-test-harness/assets/field-test-helpers-P22hxBNz.js +45 -0
- package/bundled-test-harness/assets/file-attachment-test-Cjg4NBeM.js +635 -0
- package/bundled-test-harness/assets/file-chooser-test-Cl0XujPT.js +439 -0
- package/bundled-test-harness/assets/file-def-live-reload-test-D4Obzi12.js +50 -0
- package/bundled-test-harness/assets/file-def-manager-DUgR-gjs.js +470 -0
- package/bundled-test-harness/assets/file-def-manager-canonicalize-test-D_LWVsvz.js +451 -0
- package/bundled-test-harness/assets/file-def-menu-items-test-xvsUTOK4.js +114 -0
- package/bundled-test-harness/assets/file-def-navigation-test-DxPceB7E.js +109 -0
- package/bundled-test-harness/assets/file-def-serialization-test-CpwbDb8p.js +87 -0
- package/bundled-test-harness/assets/file-def-test-CEnKcvW9.js +219 -0
- package/bundled-test-harness/assets/file-tree-test-DE2aH6iq.js +773 -0
- package/bundled-test-harness/assets/flac-audio-def-test-BCg7LnR6.js +138 -0
- package/bundled-test-harness/assets/flowDiagram-I6XJVG4X-Xv8-LIxQ.js +4883 -0
- package/bundled-test-harness/assets/formatted-aibot-message-test-CsxFn62P.js +366 -0
- package/bundled-test-harness/assets/formatted-user-message-test-DjZc8qnA.js +43 -0
- package/bundled-test-harness/assets/freestyle-test-QEZaZCNJ.js +17 -0
- package/bundled-test-harness/assets/full-reindex-realm-test-C_c2OTTD.js +103 -0
- package/bundled-test-harness/assets/ganttDiagram-6RSMTGT7-DmvkzS5w.js +4060 -0
- package/bundled-test-harness/assets/garbage-collection-test-BVuvfidI.js +373 -0
- package/bundled-test-harness/assets/general-test-Ydis4jEq.js +926 -0
- package/bundled-test-harness/assets/generate-css-variables-test-CZCmgTAO.js +88 -0
- package/bundled-test-harness/assets/generate-example-cards-one-shot-test-x_szhkSN.js +67 -0
- package/bundled-test-harness/assets/get-available-realm-identifiers-test-DvRnwCHR.js +49 -0
- package/bundled-test-harness/assets/get-catalog-realm-identifiers-test-46TE-XA0.js +49 -0
- package/bundled-test-harness/assets/get-default-writable-realm-test-DaAkxTNh.js +56 -0
- package/bundled-test-harness/assets/get-realm-of-resource-identifier-test-9XEGHVOV.js +55 -0
- package/bundled-test-harness/assets/get-relationship-membership-state-test-BY4gk5JZ.js +1306 -0
- package/bundled-test-harness/assets/get-type-refs-from-filter-test-BynlX0JE.js +136 -0
- package/bundled-test-harness/assets/get-user-system-card-test-D98Xxn1k.js +52 -0
- package/bundled-test-harness/assets/gif-image-def-test-FwKGFGWw.js +161 -0
- package/bundled-test-harness/assets/gitGraph-WXDBUCRP-Bmn0Z_Xi.js +3 -0
- package/bundled-test-harness/assets/gitGraphDiagram-PVQCEYII-BAo0G82W.js +1150 -0
- package/bundled-test-harness/assets/gts-file-def-test-ivEk8Muv.js +99 -0
- package/bundled-test-harness/assets/head-format-preview-test-CNhvk724.js +156 -0
- package/bundled-test-harness/assets/helpers-BH4Yfo_2.js +5 -0
- package/bundled-test-harness/assets/host-mode-test-BRNndb2h.js +391 -0
- package/bundled-test-harness/assets/host-submode-test-DHd0x-6x.js +904 -0
- package/bundled-test-harness/assets/index-query-engine-test-7Fzc09fG.js +2548 -0
- package/bundled-test-harness/assets/index-writer-test-D3cL2q2N.js +1842 -0
- package/bundled-test-harness/assets/indexeddb-crypto-store-C09Shau-.js +49434 -0
- package/bundled-test-harness/assets/info-J43DQDTF-Dz5b1Xgc.js +3 -0
- package/bundled-test-harness/assets/infoDiagram-5YYISTIA-Dl8XvIfi.js +23 -0
- package/bundled-test-harness/assets/inspector-test-CVZVQdIJ.js +1776 -0
- package/bundled-test-harness/assets/instance-filter-matcher-test-C-4z6qUt.js +564 -0
- package/bundled-test-harness/assets/instantiate-card-test-eQ22Vt_m.js +104 -0
- package/bundled-test-harness/assets/interact-submode-creation-and-permissions-test-hXPsRPMU.js +497 -0
- package/bundled-test-harness/assets/interact-submode-setup-D55IIVc5.js +558 -0
- package/bundled-test-harness/assets/interact-submode-test-BwrtFe2m.js +725 -0
- package/bundled-test-harness/assets/invalidate-realm-identifiers-test-BMk7yd-D.js +101 -0
- package/bundled-test-harness/assets/invite-user-to-room-test-B5B0umJQ.js +67 -0
- package/bundled-test-harness/assets/ishikawaDiagram-YF4QCWOH-BrO7NAng.js +1009 -0
- package/bundled-test-harness/assets/isolated-render-test-DX1wdHoS.js +51 -0
- package/bundled-test-harness/assets/item-button-QkVr-FW0.js +203 -0
- package/bundled-test-harness/assets/javascript-BWNQhcCY.js +75 -0
- package/bundled-test-harness/assets/job-priority-header-test-CuBZloLK.js +81 -0
- package/bundled-test-harness/assets/journeyDiagram-JHISSGLW-B7BT66v0.js +1256 -0
- package/bundled-test-harness/assets/jpg-image-def-test-DEx462nY.js +430 -0
- package/bundled-test-harness/assets/json-file-def-test-Cray6ly6.js +92 -0
- package/bundled-test-harness/assets/kanban-definition-UN3LZRKU-C0E5Vmr_.js +1284 -0
- package/bundled-test-harness/assets/last-modified-date-test-BzE25NOB.js +18 -0
- package/bundled-test-harness/assets/limited-set-test-NwGNoXKc.js +123 -0
- package/bundled-test-harness/assets/line-BbGOk93s.js +55 -0
- package/bundled-test-harness/assets/linear-CHTo-YQl.js +417 -0
- package/bundled-test-harness/assets/linksto-broken-link-placeholder-test-CZdgRM1b.js +315 -0
- package/bundled-test-harness/assets/linksto-error-sentinel-test-DhsHO7Xs.js +236 -0
- package/bundled-test-harness/assets/linksto-many-broken-link-placeholder-test-mt-RrRta.js +303 -0
- package/bundled-test-harness/assets/linksto-many-per-slot-access-test-CdGUXZsi.js +301 -0
- package/bundled-test-harness/assets/linksto-sentinel-roundtrip-test-DOJ_6Gwf.js +258 -0
- package/bundled-test-harness/assets/linksto-singular-js-access-contract-test-BZC-gslF.js +194 -0
- package/bundled-test-harness/assets/live-prerendered-search-BSkwf5AH.js +639 -0
- package/bundled-test-harness/assets/live-test-DTfxZnsy.js +100 -0
- package/bundled-test-harness/assets/live-test-WOMYpc1I.js +2 -0
- package/bundled-test-harness/assets/loader-icon-error-test-F_ukQytn.js +62 -0
- package/bundled-test-harness/assets/loader-parallel-prefetch-test-DpNaFnhc.js +257 -0
- package/bundled-test-harness/assets/loader-retry-test-EQ2X0bFS.js +173 -0
- package/bundled-test-harness/assets/loader-test-BYkWAwc4.js +245 -0
- package/bundled-test-harness/assets/loading-test-jfWH_OpH.js +63 -0
- package/bundled-test-harness/assets/login-error-text-test-Cldr1X6h.js +51 -0
- package/bundled-test-harness/assets/m4a-audio-def-test-BQ1WKApD.js +185 -0
- package/bundled-test-harness/assets/main-ByAsLO_g.js +5 -0
- package/bundled-test-harness/assets/markdown-fallback-test-dtTaGP1s.js +316 -0
- package/bundled-test-harness/assets/markdown-file-def-test-shW9Xxd1.js +286 -0
- package/bundled-test-harness/assets/markdown-helpers-test-B6H7p4ay.js +183 -0
- package/bundled-test-harness/assets/markdown-highlighting-test-ZIrFNHRe.js +244 -0
- package/bundled-test-harness/assets/markdown-preview-KII3nJ2M.js +69 -0
- package/bundled-test-harness/assets/markdown-preview-test-De-IaUbK.js +237 -0
- package/bundled-test-harness/assets/marked-sync-CGSehq4u.js +2 -0
- package/bundled-test-harness/assets/marked-sync-DenC7QgC.js +2561 -0
- package/bundled-test-harness/assets/marked-sync-test-jZBr20Hq.js +146 -0
- package/bundled-test-harness/assets/matrix-service-sliding-sync-test-Ax4kyAMt.js +33 -0
- package/bundled-test-harness/assets/mermaid-parser.core-B_3tzKUl.js +114 -0
- package/bundled-test-harness/assets/mermaid.core-D2hqA7Hq.js +1700 -0
- package/bundled-test-harness/assets/message-service-subscription-test-B42KnJ91.js +113 -0
- package/bundled-test-harness/assets/mindmap-definition-RKZ34NQL-IZz7Qpd0.js +1347 -0
- package/bundled-test-harness/assets/mock-matrix-BhFWlMMr.js +14292 -0
- package/bundled-test-harness/assets/mock-matrix-CrtMntcN.js +2 -0
- package/bundled-test-harness/assets/module-transpile-cache-test-BtWN4OiM.js +66 -0
- package/bundled-test-harness/assets/monaco.contribution-B1hOUP3w.js +2 -0
- package/bundled-test-harness/assets/monaco.contribution-DhNsYtZe.js +2 -0
- package/bundled-test-harness/assets/monaco.contribution-DvJDImx2.js +103 -0
- package/bundled-test-harness/assets/monaco.contribution-yXcOyzue.js +243 -0
- package/bundled-test-harness/assets/mp3-audio-def-test-D365TuA7.js +129 -0
- package/bundled-test-harness/assets/mutex-test-DY09HLvv.js +71 -0
- package/bundled-test-harness/assets/number-field-test-wYaQjnzA.js +153 -0
- package/bundled-test-harness/assets/ogg-audio-def-test-Dl01PP31.js +191 -0
- package/bundled-test-harness/assets/open-create-listing-modal-test-D8C2PUFv.js +117 -0
- package/bundled-test-harness/assets/open-workspace-test-DN2n8IkC.js +48 -0
- package/bundled-test-harness/assets/operator-mode-acceptance-test-B_hzJZo4.js +1044 -0
- package/bundled-test-harness/assets/operator-mode-card-catalog-test-Hrrnkdt9.js +989 -0
- package/bundled-test-harness/assets/operator-mode-links-test-DC6sc9TZ.js +797 -0
- package/bundled-test-harness/assets/operator-mode-state-service-test-Aqz9_v0U.js +122 -0
- package/bundled-test-harness/assets/operator-mode-test-CLgpZGEM.js +617 -0
- package/bundled-test-harness/assets/operator-mode-ui-test-CDRrORfC.js +985 -0
- package/bundled-test-harness/assets/ordinal-BIRuJQBH.js +85 -0
- package/bundled-test-harness/assets/overlay-menu-items-test-of24KuXp.js +316 -0
- package/bundled-test-harness/assets/packet-YPE3B663-hs92geQG.js +3 -0
- package/bundled-test-harness/assets/panel-rIdTMDfK.js +3371 -0
- package/bundled-test-harness/assets/past-sessions-test-ZKr4ACF0.js +321 -0
- package/bundled-test-harness/assets/patch-code-test-BZa-Itrt.js +203 -0
- package/bundled-test-harness/assets/patch-fields-test-BkaHs-zo.js +992 -0
- package/bundled-test-harness/assets/patch-instance-test-CRMgg52p.js +287 -0
- package/bundled-test-harness/assets/persist-module-inspector-view-test-CqNy2RXR.js +62 -0
- package/bundled-test-harness/assets/phone-number-field-test-CV6gntON.js +72 -0
- package/bundled-test-harness/assets/pie-LRSECV5Y-DcM5pWE3.js +3 -0
- package/bundled-test-harness/assets/pieDiagram-4H26LBE5-CtO8RHpU.js +253 -0
- package/bundled-test-harness/assets/plan-install-test-lfBTuWXU.js +417 -0
- package/bundled-test-harness/assets/playground-VscW9KdT.js +57 -0
- package/bundled-test-harness/assets/png-image-def-test-CRspcIHP.js +222 -0
- package/bundled-test-harness/assets/prerender-file-extract-test-D3SpxfMI.js +176 -0
- package/bundled-test-harness/assets/prerender-html-test-WWptGXJ0.js +615 -0
- package/bundled-test-harness/assets/prerender-meta-test-DwQEGN6j.js +388 -0
- package/bundled-test-harness/assets/prerender-module-test-BM1AOwRF.js +195 -0
- package/bundled-test-harness/assets/prerendered-card-search-test-BVJ8IHLe.js +708 -0
- package/bundled-test-harness/assets/preview-format-test-DDpiXDN_.js +103 -0
- package/bundled-test-harness/assets/preview-test-D2UV1C5D.js +455 -0
- package/bundled-test-harness/assets/published-realm-url-DUIZzAJ5.js +52 -0
- package/bundled-test-harness/assets/published-realm-url-test-CIgSf4Ub.js +137 -0
- package/bundled-test-harness/assets/qs-test-Bi679H5w.js +36 -0
- package/bundled-test-harness/assets/quadrantDiagram-W4KKPZXB-GOTAKsCo.js +2324 -0
- package/bundled-test-harness/assets/query-field-barrier-test-BlOuVxdS.js +118 -0
- package/bundled-test-harness/assets/query-field-error-sentinel-test-BsB76iUQ.js +202 -0
- package/bundled-test-harness/assets/query-field-normalization-test-B2YodJCr.js +271 -0
- package/bundled-test-harness/assets/query-field-schema-test-CQhJASFx.js +231 -0
- package/bundled-test-harness/assets/query-fields-test-CaZ19leM.js +535 -0
- package/bundled-test-harness/assets/queue-test-DrSip6mJ.js +216 -0
- package/bundled-test-harness/assets/radar-GUYGQ44K-BkAe1nkp.js +3 -0
- package/bundled-test-harness/assets/read-card-for-ai-assistant-test-D8yB-OL9.js +91 -0
- package/bundled-test-harness/assets/read-file-for-ai-assistant-test-K3M0-lBD.js +45 -0
- package/bundled-test-harness/assets/read-source-test-CKlb0ORb.js +67 -0
- package/bundled-test-harness/assets/read-text-file-test-CJdasDDU.js +124 -0
- package/bundled-test-harness/assets/realm-DhUCLR5r.js +884 -0
- package/bundled-test-harness/assets/realm-field-test-kFgxphDI.js +101 -0
- package/bundled-test-harness/assets/realm-index-card-id-test-DAnMAqw4.js +18 -0
- package/bundled-test-harness/assets/realm-indexing-test-BQkX-Dat.js +4018 -0
- package/bundled-test-harness/assets/realm-paths-test-CmEi9rzu.js +33 -0
- package/bundled-test-harness/assets/realm-querying-test-eq3qSXLu.js +1062 -0
- package/bundled-test-harness/assets/realm-test-DLQAtdMt.js +2409 -0
- package/bundled-test-harness/assets/reasoning-test-CwTfyDlj.js +234 -0
- package/bundled-test-harness/assets/recent-files-test-MVIGLp8S.js +449 -0
- package/bundled-test-harness/assets/reindex-realm-test-BwLgJeB3.js +119 -0
- package/bundled-test-harness/assets/relationship-loading-state-test-B4Ca43yD.js +289 -0
- package/bundled-test-harness/assets/render-component-BKEihV4U.js +2 -0
- package/bundled-test-harness/assets/render-error-test-DWD6tfNe.js +22 -0
- package/bundled-test-harness/assets/render-service-test-BjuoVrUK.js +87 -0
- package/bundled-test-harness/assets/render-timer-stub-test-BgUY5u3X.js +84 -0
- package/bundled-test-harness/assets/rendered-markdown-DOP-s6fW.js +211 -0
- package/bundled-test-harness/assets/rendered-markdown-test-CD02UYwA.js +360 -0
- package/bundled-test-harness/assets/requirementDiagram-4Y6WPE33-DJIy7eR9.js +2550 -0
- package/bundled-test-harness/assets/rich-markdown-field-test-BJeQx1tL.js +806 -0
- package/bundled-test-harness/assets/room-message-test-CjD7FlPD.js +171 -0
- package/bundled-test-harness/assets/rust-crypto-GS0FFZ7H.js +16141 -0
- package/bundled-test-harness/assets/sanitize-module-list-test-gi0pcqSy.js +68 -0
- package/bundled-test-harness/assets/sankeyDiagram-5OEKKPKP-wBsbt1Mr.js +1357 -0
- package/bundled-test-harness/assets/schema-editor-test-BSqu8W3e.js +784 -0
- package/bundled-test-harness/assets/schema-generation-test-DVFuSsLl.js +28 -0
- package/bundled-test-harness/assets/scrolling-test-CpzkRiBS.js +292 -0
- package/bundled-test-harness/assets/search-and-choose-test-DVWX4XRb.js +156 -0
- package/bundled-test-harness/assets/search-cache-key-test-BMnYM4a5.js +79 -0
- package/bundled-test-harness/assets/search-command-test-kEfT0AO7.js +135 -0
- package/bundled-test-harness/assets/search-correlation-id-test-D08FtVUZ.js +101 -0
- package/bundled-test-harness/assets/search-data-test-CTrBEc1m.js +243 -0
- package/bundled-test-harness/assets/search-google-images-test-UnKG8qCp.js +168 -0
- package/bundled-test-harness/assets/search-in-flight-key-test-9Va-JXFz.js +79 -0
- package/bundled-test-harness/assets/search-test-COlO2lZi.js +847 -0
- package/bundled-test-harness/assets/send-ai-assistant-message-test-BPjOjt2R.js +52 -0
- package/bundled-test-harness/assets/send-bot-trigger-event-test-BB4lHbB_.js +56 -0
- package/bundled-test-harness/assets/send-request-via-proxy-test-U8frmHZA.js +333 -0
- package/bundled-test-harness/assets/sending-test-DjEzksEX.js +317 -0
- package/bundled-test-harness/assets/sequenceDiagram-3UESZ5HK-QAEjhoay.js +5551 -0
- package/bundled-test-harness/assets/serialization-test-DHdLriC8.js +8283 -0
- package/bundled-test-harness/assets/set-user-system-card-test-C8I1lDBh.js +59 -0
- package/bundled-test-harness/assets/setup-BkuybBki.js +769 -0
- package/bundled-test-harness/assets/setup-gxkWJKID.js +2 -0
- package/bundled-test-harness/assets/show-card-test-DHKQ6AI4.js +362 -0
- package/bundled-test-harness/assets/skills-test-DlMgZrPV.js +568 -0
- package/bundled-test-harness/assets/spec-test-s9Zj7x2E.js +1012 -0
- package/bundled-test-harness/assets/stateDiagram-AJRCARHV-nEhf3efZ.js +363 -0
- package/bundled-test-harness/assets/stateDiagram-v2-BHNVJYJU-tZz_3w-7.js +29 -0
- package/bundled-test-harness/assets/store-add-test-D44FWRl3.js +52 -0
- package/bundled-test-harness/assets/store-test-TTmNBs5v.js +1562 -0
- package/bundled-test-harness/assets/summarize-session-test-DHAuNb5K.js +169 -0
- package/bundled-test-harness/assets/svg-image-def-test-C2_GGzR6.js +164 -0
- package/bundled-test-harness/assets/switch-submode-test-CfGaoxVe.js +168 -0
- package/bundled-test-harness/assets/test-realm-service-worker-C21o7yvW.js +73 -0
- package/bundled-test-harness/assets/tests-BSt6h9iC.js +2771 -0
- package/bundled-test-harness/assets/text-file-def-test-CR4QO7e_.js +93 -0
- package/bundled-test-harness/assets/text-input-validator-test-DYS3mFj9.js +155 -0
- package/bundled-test-harness/assets/text-suggestion-test-GUxJ7WtF.js +339 -0
- package/bundled-test-harness/assets/theme-card-test-Ba2KqFB8.js +573 -0
- package/bundled-test-harness/assets/timeline-definition-PNZ67QCA-BQYyTIei.js +1545 -0
- package/bundled-test-harness/assets/transform-cards-test-DyA8eCom.js +341 -0
- package/bundled-test-harness/assets/treeView-BLDUP644-Z4ezSvef.js +3 -0
- package/bundled-test-harness/assets/treemap-LRROVOQU-Bf5rk_He.js +3 -0
- package/bundled-test-harness/assets/ts-file-def-test-Cxnc6H74.js +90 -0
- package/bundled-test-harness/assets/tsMode-oJEHe-CR.js +968 -0
- package/bundled-test-harness/assets/typescript-DLbb7q56.js +2 -0
- package/bundled-test-harness/assets/update-room-skills-test-B7VLHU3-.js +197 -0
- package/bundled-test-harness/assets/url-test-w-69Zycf.js +103 -0
- package/bundled-test-harness/assets/use-ai-assistant-test-DJkFz7_b.js +330 -0
- package/bundled-test-harness/assets/validate-realm-test-BioLutB8.js +53 -0
- package/bundled-test-harness/assets/vennDiagram-CIIHVFJN-9eLwsQET.js +2833 -0
- package/bundled-test-harness/assets/wardley-L42UT6IY-qNP5_917.js +3 -0
- package/bundled-test-harness/assets/wardleyDiagram-YWT4CUSO-DZhEm4N4.js +872 -0
- package/bundled-test-harness/assets/wav-audio-def-test-DqsTEBw8.js +155 -0
- package/bundled-test-harness/assets/webp-image-def-test-23wOLPMu.js +225 -0
- package/bundled-test-harness/assets/workspace-chooser-delete-test-Q6S_nGDT.js +189 -0
- package/bundled-test-harness/assets/workspace-chooser-test-CzsvY1v_.js +235 -0
- package/bundled-test-harness/assets/workspace-delete-multiple-test-BNFHkJpQ.js +213 -0
- package/bundled-test-harness/assets/workspace-delete-summary-test-DLzNdjvC.js +63 -0
- package/bundled-test-harness/assets/write-binary-file-test-PHHt9fVI.js +100 -0
- package/bundled-test-harness/assets/write-text-file-test-DuHe6tR5.js +172 -0
- package/bundled-test-harness/assets/xychartDiagram-2RQKCTM6-bflHQbEv.js +2551 -0
- package/bundled-test-harness/index.html +24 -23
- package/bundled-test-harness/tests/index.html +31 -30
- package/bundled-types/base/command.d.ts +48 -0
- package/bundled-types/host-app/components/operator-mode/publish-realm-modal.gts +17 -26
- package/bundled-types/host-app/lib/published-realm-url.ts +135 -0
- package/package.json +3 -3
- package/src/build-program.ts +12 -12
- package/src/commands/consolidate-workspaces.ts +1 -1
- package/src/commands/file/delete.ts +4 -4
- package/src/commands/file/index.ts +6 -6
- package/src/commands/file/lint.ts +4 -4
- package/src/commands/file/list.ts +3 -3
- package/src/commands/file/read.ts +3 -3
- package/src/commands/file/touch.ts +6 -6
- package/src/commands/file/write.ts +3 -3
- package/src/commands/lint.ts +6 -6
- package/src/commands/parse.ts +6 -6
- package/src/commands/profile.ts +4 -4
- package/src/commands/read-transpiled.ts +6 -3
- package/src/commands/realm/cancel-indexing.ts +3 -3
- package/src/commands/realm/create.ts +2 -2
- package/src/commands/realm/history.ts +4 -4
- package/src/commands/realm/index.ts +15 -15
- package/src/commands/realm/indexing-errors.ts +3 -3
- package/src/commands/realm/list.ts +2 -2
- package/src/commands/realm/milestone.ts +4 -4
- package/src/commands/realm/publish.ts +4 -4
- package/src/commands/realm/pull.ts +6 -6
- package/src/commands/realm/push.ts +7 -7
- package/src/commands/realm/remove.ts +3 -3
- package/src/commands/realm/status.ts +8 -8
- package/src/commands/realm/sync.ts +9 -9
- package/src/commands/realm/unpublish.ts +3 -3
- package/src/commands/realm/wait-for-ready.ts +2 -2
- package/src/commands/realm/watch/index.ts +2 -2
- package/src/commands/realm/watch/start.ts +13 -10
- package/src/commands/realm/watch/stop.ts +2 -2
- package/src/commands/run-command.ts +6 -3
- package/src/commands/search.ts +3 -3
- package/src/commands/test.ts +5 -5
- package/src/index.ts +2 -2
- package/src/lib/auth-resolver.ts +3 -3
- package/src/lib/boxel-cli-client.ts +18 -15
- package/src/lib/checkpoint-manager.ts +1 -1
- package/src/lib/find-checkpoint.ts +1 -1
- package/src/lib/profile-manager.ts +4 -4
- package/src/lib/realm-local-paths.ts +1 -1
- package/src/lib/realm-sync-base.ts +1 -1
- package/src/lib/seed-auth.ts +1 -1
- package/src/lib/sync-logic.ts +1 -1
- package/src/lib/watch-process-registry.ts +1 -1
- package/bundled-test-harness/assets/adapter-C8oDflNN.js +0 -2
- package/bundled-test-harness/assets/add-field-to-card-definition-command-test-Cs670972.js +0 -111
- package/bundled-test-harness/assets/add-workspace-test-BviDAUBK.js +0 -71
- package/bundled-test-harness/assets/ai-assistant-B5fp2iOz.js +0 -129
- package/bundled-test-harness/assets/ai-assistant-panel-service-test-NpHZzZAz.js +0 -95
- package/bundled-test-harness/assets/ai-assistant-test-jPV29jEw.js +0 -2137
- package/bundled-test-harness/assets/ai-function-generation-test-QRPcE9tQ.js +0 -996
- package/bundled-test-harness/assets/ai-module-creation-test-DyuyfnkY.js +0 -150
- package/bundled-test-harness/assets/aibot-message-Dwxp5hTW.js +0 -1185
- package/bundled-test-harness/assets/amd-transpile-test-CF7Lkbif.js +0 -425
- package/bundled-test-harness/assets/app-CgP2IpNG.js +0 -21464
- package/bundled-test-harness/assets/apply-boxel-formatting-test-BXyZ3z0I.js +0 -134
- package/bundled-test-harness/assets/apply-markdown-edit-test-C6bcaj3a.js +0 -230
- package/bundled-test-harness/assets/apply-search-replace-block-test-BSwC4J9g.js +0 -630
- package/bundled-test-harness/assets/arc-DNRb_8LA.js +0 -199
- package/bundled-test-harness/assets/architecture-7EHR7CIX-BtVh_LBJ.js +0 -3
- package/bundled-test-harness/assets/architectureDiagram-3BPJPVTR-D9UYbaKj.js +0 -7400
- package/bundled-test-harness/assets/auth-error-guard-test-Bvu8E7Wy.js +0 -30
- package/bundled-test-harness/assets/auth-service-worker-test-CC6DzdfK.js +0 -538
- package/bundled-test-harness/assets/authed-fetch-test-CfF-IBHI.js +0 -75
- package/bundled-test-harness/assets/avif-image-def-test-B9L2z0nR.js +0 -186
- package/bundled-test-harness/assets/base-realm-43wjttN2.js +0 -140
- package/bundled-test-harness/assets/base-realm-CJ5x9iyX.js +0 -2
- package/bundled-test-harness/assets/basic-test-B64a5zCK.js +0 -128
- package/bundled-test-harness/assets/bfm-card-references-test-cLQVLpth.js +0 -577
- package/bundled-test-harness/assets/binary-upload-dedupe-test-By7Y1iQ3.js +0 -308
- package/bundled-test-harness/assets/blockDiagram-GPEHLZMM-LgOorG2O.js +0 -4355
- package/bundled-test-harness/assets/bot-registration-test-DOjf0P1R.js +0 -99
- package/bundled-test-harness/assets/box-test-Cd1-RcXg.js +0 -51
- package/bundled-test-harness/assets/brand-guide-attachments-test-DxRqP8fo.js +0 -87
- package/bundled-test-harness/assets/brand-guide-custom-css-test-DBpZiHzJ.js +0 -135
- package/bundled-test-harness/assets/brand-logo-mark-field-test-61k4e5Om.js +0 -87
- package/bundled-test-harness/assets/broken-link-template-test-A1P4flQ5.js +0 -345
- package/bundled-test-harness/assets/browser-index-Bzhpucwe.js +0 -3
- package/bundled-test-harness/assets/browser-index-D0mzSWYV.js +0 -8802
- package/bundled-test-harness/assets/c4Diagram-AAUBKEIU-1iq94vGa.js +0 -3764
- package/bundled-test-harness/assets/cached-fetch-test-ByQ-5OQI.js +0 -93
- package/bundled-test-harness/assets/can-read-realm-test-VFLHJdEv.js +0 -58
- package/bundled-test-harness/assets/cancel-indexing-job-test-n3Os4ZaX.js +0 -71
- package/bundled-test-harness/assets/card-api-test-DvNfLv3V.js +0 -196
- package/bundled-test-harness/assets/card-basics-test-CKzZuFdw.js +0 -4895
- package/bundled-test-harness/assets/card-catalog-test-JFvkVHED.js +0 -377
- package/bundled-test-harness/assets/card-copy-test-iwrFA72s.js +0 -777
- package/bundled-test-harness/assets/card-def-field-def-relationships-test-D5s2RH5t.js +0 -560
- package/bundled-test-harness/assets/card-def-menu-items-test-XcmkT4NF.js +0 -182
- package/bundled-test-harness/assets/card-delete-test-jtAOHk1Y.js +0 -412
- package/bundled-test-harness/assets/card-directory-name-test-veQEp5FJ.js +0 -71
- package/bundled-test-harness/assets/card-playground-test-P7Ed0tO4.js +0 -1497
- package/bundled-test-harness/assets/card-prerender-DXG8cQEv.js +0 -12661
- package/bundled-test-harness/assets/card-search-adorn-test-BX0-IJHB.js +0 -128
- package/bundled-test-harness/assets/card-search-query-builder-test-D01uixke.js +0 -88
- package/bundled-test-harness/assets/card-search-selection-menu-test-DMTeZFmW.js +0 -108
- package/bundled-test-harness/assets/channel-BvoW_rbI.js +0 -8
- package/bundled-test-harness/assets/check-correctness-test-D7QB1GTo.js +0 -252
- package/bundled-test-harness/assets/chunk-2J33WTMH-BbxCvOlt.js +0 -31
- package/bundled-test-harness/assets/chunk-3OPIFGDE-DHY3s0oT.js +0 -5548
- package/bundled-test-harness/assets/chunk-4BX2VUAB-CRivrLQ6.js +0 -11
- package/bundled-test-harness/assets/chunk-4EGX6M5U-qWzlMeqd.js +0 -44
- package/bundled-test-harness/assets/chunk-55IACEB6-DOl6NECJ.js +0 -10
- package/bundled-test-harness/assets/chunk-5DO6E6H7-scwNnzDb.js +0 -27
- package/bundled-test-harness/assets/chunk-5ZQYHXKU-BeETnugr.js +0 -1767
- package/bundled-test-harness/assets/chunk-727SXJPM-BlycTxFE.js +0 -3877
- package/bundled-test-harness/assets/chunk-AQP2D5EJ-BE3Clw-g.js +0 -2622
- package/bundled-test-harness/assets/chunk-BR22UD5L-BTPKlhWA.js +0 -85
- package/bundled-test-harness/assets/chunk-BSJP7CBP-BIhtUfvc.js +0 -114
- package/bundled-test-harness/assets/chunk-CSCIHK7Q-DnRAp6Bv.js +0 -6144
- package/bundled-test-harness/assets/chunk-FHYWG6QK-DpIXIGDC.js +0 -27
- package/bundled-test-harness/assets/chunk-FMBD7UC4-B36w3LIg.js +0 -20
- package/bundled-test-harness/assets/chunk-KSCS5N6A-gbz9p9BU.js +0 -871
- package/bundled-test-harness/assets/chunk-L5ZTLDWV-HNfH9U8K.js +0 -43
- package/bundled-test-harness/assets/chunk-LZXEDZCA-CbKHJfzx.js +0 -65
- package/bundled-test-harness/assets/chunk-MPE355IW-BGVbCTZH.js +0 -27
- package/bundled-test-harness/assets/chunk-MZUSXYTE-DoCjuxcJ.js +0 -36
- package/bundled-test-harness/assets/chunk-N66VUXT2-BX17MI-i.js +0 -70
- package/bundled-test-harness/assets/chunk-ND2GUHAM-IpeiJZYz.js +0 -93
- package/bundled-test-harness/assets/chunk-NZK2D7GU-CH-Gg7qc.js +0 -89
- package/bundled-test-harness/assets/chunk-O5CBEL6O-D2JbLgI8.js +0 -2395
- package/bundled-test-harness/assets/chunk-PUPMXCY4-DS4ZxM2V.js +0 -27
- package/bundled-test-harness/assets/chunk-QZHKN3VN-WLHeRUJ3.js +0 -20
- package/bundled-test-harness/assets/chunk-UIBZB4QT-DNIJBpkq.js +0 -27
- package/bundled-test-harness/assets/chunk-WCWK7LTN-CqRJ3WOy.js +0 -36
- package/bundled-test-harness/assets/chunk-WU5MYG2G-CtItCLbE.js +0 -12
- package/bundled-test-harness/assets/chunk-XPW4576I-D2Q7Qo8n.js +0 -2341
- package/bundled-test-harness/assets/classDiagram-4FO5ZUOK-CnNFReKQ.js +0 -31
- package/bundled-test-harness/assets/classDiagram-v2-Q7XG4LA2-BlhpbohY.js +0 -31
- package/bundled-test-harness/assets/code-equality-assertion-C-2g5YGf.js +0 -474
- package/bundled-test-harness/assets/code-patches-test-DaV4Mon_.js +0 -1128
- package/bundled-test-harness/assets/code-patching-test-CcbWlImN.js +0 -114
- package/bundled-test-harness/assets/code-ref-test-8Yj8gbww.js +0 -138
- package/bundled-test-harness/assets/code-semantics-service-test-C3srTfDz.js +0 -65
- package/bundled-test-harness/assets/code-submode-test-BUhjvWtB.js +0 -1762
- package/bundled-test-harness/assets/codeblocks-test-3zAp0_GA.js +0 -492
- package/bundled-test-harness/assets/codemirror-context-C7KmSAyy.js +0 -2
- package/bundled-test-harness/assets/codemirror-editor-test-WojU4k2h.js +0 -1176
- package/bundled-test-harness/assets/color-field-test-yESUakoE.js +0 -213
- package/bundled-test-harness/assets/command-definitions-test-UsXsAhn7.js +0 -72
- package/bundled-test-harness/assets/commands-CBDBujm_.js +0 -1379
- package/bundled-test-harness/assets/commands-calling-test-DJTl0EbL.js +0 -200
- package/bundled-test-harness/assets/commands-test-DW2gupNS.js +0 -1041
- package/bundled-test-harness/assets/commands-test-DjLnuojW.js +0 -1145
- package/bundled-test-harness/assets/computed-test-0n5g8Ez5.js +0 -882
- package/bundled-test-harness/assets/container-D8y7fmir.js +0 -14602
- package/bundled-test-harness/assets/convert-to-class-name-test-DSIflIV2.js +0 -17
- package/bundled-test-harness/assets/copy-and-edit-test-BuK1ZHr-.js +0 -291
- package/bundled-test-harness/assets/copy-card-test-DnDC4_7J.js +0 -156
- package/bundled-test-harness/assets/copy-file-to-realm-test-CFd_3Iff.js +0 -99
- package/bundled-test-harness/assets/copy-source-test-38yUGJor.js +0 -56
- package/bundled-test-harness/assets/cose-bilkent-S5V4N54A-DXA1S87S.js +0 -4275
- package/bundled-test-harness/assets/create-file-test-B2oem0-V.js +0 -963
- package/bundled-test-harness/assets/create-file-test-BHk00RtD.js +0 -397
- package/bundled-test-harness/assets/create-listing-modal-test-L-71-Uo2.js +0 -194
- package/bundled-test-harness/assets/create-listing-pr-request-CZaLsHhE.js +0 -64
- package/bundled-test-harness/assets/create-listing-pr-request-test-OGzk4Q2E.js +0 -117
- package/bundled-test-harness/assets/create-spec-test-BsM7VKuH.js +0 -239
- package/bundled-test-harness/assets/csv-file-def-test-BhJalhE-.js +0 -101
- package/bundled-test-harness/assets/dagre-BIk_r1iU.js +0 -4195
- package/bundled-test-harness/assets/dagre-BM42HDAG-FaUWeGOj.js +0 -606
- package/bundled-test-harness/assets/date-time-fields-test-Cs5T6Xk1.js +0 -322
- package/bundled-test-harness/assets/debug-message-test-WlHe7pJF.js +0 -119
- package/bundled-test-harness/assets/diagram-2AECGRRQ-DLve-IVM.js +0 -279
- package/bundled-test-harness/assets/diagram-5GNKFQAL-CJG1RTLk.js +0 -142
- package/bundled-test-harness/assets/diagram-KO2AKTUF-DYGDq3dD.js +0 -551
- package/bundled-test-harness/assets/diagram-LMA3HP47-BNRYdpMl.js +0 -184
- package/bundled-test-harness/assets/diagram-OG6HWLK6-BlJH5g83.js +0 -857
- package/bundled-test-harness/assets/diffing-test-DO54USSm.js +0 -210
- package/bundled-test-harness/assets/dist-BDRmXkWl.js +0 -232
- package/bundled-test-harness/assets/dist-BfNSLd0O.js +0 -105
- package/bundled-test-harness/assets/dist-BoireClP.js +0 -2
- package/bundled-test-harness/assets/editor-test-DChC9LuR.js +0 -551
- package/bundled-test-harness/assets/editor.main-BiohyrHK.js +0 -3
- package/bundled-test-harness/assets/editor.main-CMU_0pR1.js +0 -43566
- package/bundled-test-harness/assets/email-field-test-DWIFSfZ-.js +0 -74
- package/bundled-test-harness/assets/enum-field-test-BUc6l4us.js +0 -909
- package/bundled-test-harness/assets/erDiagram-TEJ5UH35-pOJ2novh.js +0 -2041
- package/bundled-test-harness/assets/error-display-test-CHSE6h6Z.js +0 -343
- package/bundled-test-harness/assets/evaluate-module-test-Caa5n0B9.js +0 -66
- package/bundled-test-harness/assets/eventmodeling-FCH6USID-B6XXU7R3.js +0 -3
- package/bundled-test-harness/assets/execute-atomic-operations-test-CT060oDk.js +0 -75
- package/bundled-test-harness/assets/externals-Do1fVZ4j.js +0 -5533
- package/bundled-test-harness/assets/extract-css-variables-test-DzjAsMgg.js +0 -169
- package/bundled-test-harness/assets/fallback-banner-test-CmxysrDn.js +0 -227
- package/bundled-test-harness/assets/fallback-banner-test-DJ4cO8PB.js +0 -53
- package/bundled-test-harness/assets/fallback-models-test-r5upJFeA.js +0 -163
- package/bundled-test-harness/assets/fetch-card-json-test-Di1wmvy5.js +0 -63
- package/bundled-test-harness/assets/fetcher-test-DjzNl_7F.js +0 -85
- package/bundled-test-harness/assets/field-configuration-test-C3vr-HhG.js +0 -535
- package/bundled-test-harness/assets/field-markdown-domain-test-DG2U4qIm.js +0 -615
- package/bundled-test-harness/assets/field-markdown-primitives-test-Bay2v8nT.js +0 -362
- package/bundled-test-harness/assets/field-markdown-specialized-test-Bl0Sl4sc.js +0 -527
- package/bundled-test-harness/assets/field-path-parser-test-bxxwUjcm.js +0 -387
- package/bundled-test-harness/assets/field-playground-test-Bcjfws4m.js +0 -902
- package/bundled-test-harness/assets/field-support-predicates-test-DYTqOGvv.js +0 -170
- package/bundled-test-harness/assets/field-test-helpers-DYSfSGdh.js +0 -45
- package/bundled-test-harness/assets/file-attachment-test-6ypDRDS7.js +0 -635
- package/bundled-test-harness/assets/file-chooser-test-mtmcHTFP.js +0 -439
- package/bundled-test-harness/assets/file-def-live-reload-test-CX1-lOv6.js +0 -50
- package/bundled-test-harness/assets/file-def-manager-DNHII2oj.js +0 -470
- package/bundled-test-harness/assets/file-def-manager-canonicalize-test-i_7UVakF.js +0 -451
- package/bundled-test-harness/assets/file-def-menu-items-test-Dw458iku.js +0 -114
- package/bundled-test-harness/assets/file-def-navigation-test-B3Ztr1Rd.js +0 -109
- package/bundled-test-harness/assets/file-def-serialization-test-C_gV8AkU.js +0 -87
- package/bundled-test-harness/assets/file-def-test-vXXJmtxX.js +0 -219
- package/bundled-test-harness/assets/file-tree-test-BJCiw9jm.js +0 -773
- package/bundled-test-harness/assets/flac-audio-def-test-BX3SE1vW.js +0 -138
- package/bundled-test-harness/assets/flowDiagram-I6XJVG4X-7Q5ROn4X.js +0 -4883
- package/bundled-test-harness/assets/formatted-aibot-message-test-DyqUz2nt.js +0 -366
- package/bundled-test-harness/assets/formatted-user-message-test-aqAzqvBP.js +0 -43
- package/bundled-test-harness/assets/freestyle-test-CLRrZkAE.js +0 -17
- package/bundled-test-harness/assets/full-reindex-realm-test-ClqPVQ0c.js +0 -103
- package/bundled-test-harness/assets/ganttDiagram-6RSMTGT7-BkDoIAAE.js +0 -4060
- package/bundled-test-harness/assets/garbage-collection-test-Ba2dD3qS.js +0 -373
- package/bundled-test-harness/assets/general-test-D0zhs14K.js +0 -926
- package/bundled-test-harness/assets/generate-css-variables-test-CKrXSlHs.js +0 -88
- package/bundled-test-harness/assets/generate-example-cards-one-shot-test-fSAdGJeT.js +0 -67
- package/bundled-test-harness/assets/get-available-realm-identifiers-test-BXMUW65I.js +0 -49
- package/bundled-test-harness/assets/get-catalog-realm-identifiers-test-DKEq6Zcq.js +0 -49
- package/bundled-test-harness/assets/get-default-writable-realm-test-Dp4nBIRP.js +0 -56
- package/bundled-test-harness/assets/get-realm-of-resource-identifier-test-DYNnMgD-.js +0 -55
- package/bundled-test-harness/assets/get-relationship-membership-state-test-k9EUNWeq.js +0 -1306
- package/bundled-test-harness/assets/get-type-refs-from-filter-test-BPuivF-v.js +0 -136
- package/bundled-test-harness/assets/get-user-system-card-test-DSHv00O7.js +0 -52
- package/bundled-test-harness/assets/gif-image-def-test-LuDSr5Kz.js +0 -161
- package/bundled-test-harness/assets/gitGraph-WXDBUCRP-BrG_LYEh.js +0 -3
- package/bundled-test-harness/assets/gitGraphDiagram-PVQCEYII-QJjQcX4J.js +0 -1150
- package/bundled-test-harness/assets/gts-file-def-test-bS3ML062.js +0 -99
- package/bundled-test-harness/assets/head-format-preview-test-B8IPh71E.js +0 -156
- package/bundled-test-harness/assets/helpers-wSIq-bau.js +0 -5
- package/bundled-test-harness/assets/host-mode-test-D44nXoQZ.js +0 -391
- package/bundled-test-harness/assets/host-submode-test-CefkXg9F.js +0 -904
- package/bundled-test-harness/assets/index-query-engine-test-DJnDqmfK.js +0 -2548
- package/bundled-test-harness/assets/index-writer-test-BcrCMj37.js +0 -1842
- package/bundled-test-harness/assets/indexeddb-crypto-store-RTTNdynf.js +0 -49434
- package/bundled-test-harness/assets/info-J43DQDTF-DhDzvz9k.js +0 -3
- package/bundled-test-harness/assets/infoDiagram-5YYISTIA-8TmRFIRz.js +0 -23
- package/bundled-test-harness/assets/inspector-test-D4iMBlbL.js +0 -1776
- package/bundled-test-harness/assets/instance-filter-matcher-test-CYT6N3hN.js +0 -564
- package/bundled-test-harness/assets/instantiate-card-test-j1JS5lDe.js +0 -104
- package/bundled-test-harness/assets/interact-submode-creation-and-permissions-test-B-aXzOh6.js +0 -497
- package/bundled-test-harness/assets/interact-submode-setup-VMwOUl3u.js +0 -558
- package/bundled-test-harness/assets/interact-submode-test-D5lNNXdq.js +0 -725
- package/bundled-test-harness/assets/invalidate-realm-identifiers-test-71Ze8eGV.js +0 -101
- package/bundled-test-harness/assets/invite-user-to-room-test-UfjsvwVp.js +0 -67
- package/bundled-test-harness/assets/ishikawaDiagram-YF4QCWOH-7UALIGwM.js +0 -1009
- package/bundled-test-harness/assets/isolated-render-test-C2IL-Fz3.js +0 -51
- package/bundled-test-harness/assets/item-button-6g7XYj56.js +0 -203
- package/bundled-test-harness/assets/javascript-BwLQ7_Nc.js +0 -75
- package/bundled-test-harness/assets/job-priority-header-test-C3FfKLPP.js +0 -81
- package/bundled-test-harness/assets/journeyDiagram-JHISSGLW-t4gEZYup.js +0 -1256
- package/bundled-test-harness/assets/jpg-image-def-test-BTBk9lk5.js +0 -430
- package/bundled-test-harness/assets/json-file-def-test-BpU_Eidn.js +0 -92
- package/bundled-test-harness/assets/kanban-definition-UN3LZRKU-C_KHB3_r.js +0 -1284
- package/bundled-test-harness/assets/last-modified-date-test-fE7IP0q0.js +0 -18
- package/bundled-test-harness/assets/limited-set-test-uu2vX1Sv.js +0 -123
- package/bundled-test-harness/assets/line-BiZHXOjs.js +0 -55
- package/bundled-test-harness/assets/linear-DUaMMmmA.js +0 -417
- package/bundled-test-harness/assets/linksto-broken-link-placeholder-test-qZeqQ1gt.js +0 -315
- package/bundled-test-harness/assets/linksto-error-sentinel-test-BaV3I8Xx.js +0 -236
- package/bundled-test-harness/assets/linksto-many-broken-link-placeholder-test-BvJi1vCb.js +0 -303
- package/bundled-test-harness/assets/linksto-many-per-slot-access-test-CK60Cugk.js +0 -301
- package/bundled-test-harness/assets/linksto-sentinel-roundtrip-test-BWxdEO9D.js +0 -258
- package/bundled-test-harness/assets/linksto-singular-js-access-contract-test-CIsLhqR2.js +0 -194
- package/bundled-test-harness/assets/live-prerendered-search-jZe3I16p.js +0 -639
- package/bundled-test-harness/assets/live-test-CF_R5WGr.js +0 -2
- package/bundled-test-harness/assets/live-test-jO7lXuyB.js +0 -100
- package/bundled-test-harness/assets/loader-icon-error-test-N4JYZuTx.js +0 -62
- package/bundled-test-harness/assets/loader-parallel-prefetch-test-DteeG7mU.js +0 -257
- package/bundled-test-harness/assets/loader-retry-test-DYVgpS_I.js +0 -173
- package/bundled-test-harness/assets/loader-test-DLI8JIx-.js +0 -245
- package/bundled-test-harness/assets/loading-test-D4ZBtRYf.js +0 -63
- package/bundled-test-harness/assets/login-error-text-test-Dcq7q3EY.js +0 -51
- package/bundled-test-harness/assets/m4a-audio-def-test-BKqGO-CW.js +0 -185
- package/bundled-test-harness/assets/main-BjBdsiQT.js +0 -5
- package/bundled-test-harness/assets/markdown-fallback-test-BBj80dZZ.js +0 -316
- package/bundled-test-harness/assets/markdown-file-def-test-BnMF5rQF.js +0 -286
- package/bundled-test-harness/assets/markdown-helpers-test-DnuuSLfS.js +0 -183
- package/bundled-test-harness/assets/markdown-highlighting-test-CWRp2Rce.js +0 -244
- package/bundled-test-harness/assets/markdown-preview-test-Bf5OqKGf.js +0 -237
- package/bundled-test-harness/assets/markdown-preview-yYHtwNeI.js +0 -69
- package/bundled-test-harness/assets/marked-sync-2EfimW4i.js +0 -2
- package/bundled-test-harness/assets/marked-sync-DZOVFLjK.js +0 -2561
- package/bundled-test-harness/assets/marked-sync-test-BaaYbZNF.js +0 -146
- package/bundled-test-harness/assets/matrix-service-sliding-sync-test-CdEy3ASW.js +0 -33
- package/bundled-test-harness/assets/mermaid-parser.core-CKNAdXJW.js +0 -114
- package/bundled-test-harness/assets/mermaid.core-C0mfwy8A.js +0 -1700
- package/bundled-test-harness/assets/message-service-subscription-test-pGz_7rz3.js +0 -113
- package/bundled-test-harness/assets/mindmap-definition-RKZ34NQL-ClcHxkdY.js +0 -1347
- package/bundled-test-harness/assets/mock-matrix-D7JHfFtT.js +0 -2
- package/bundled-test-harness/assets/mock-matrix-DqDbNhEj.js +0 -14292
- package/bundled-test-harness/assets/module-transpile-cache-test-D0M-fPxs.js +0 -66
- package/bundled-test-harness/assets/monaco.contribution-BEs3qwfd.js +0 -103
- package/bundled-test-harness/assets/monaco.contribution-Dpx8UiPl.js +0 -2
- package/bundled-test-harness/assets/monaco.contribution-RF_qxJYG.js +0 -2
- package/bundled-test-harness/assets/monaco.contribution-jPVrF29f.js +0 -243
- package/bundled-test-harness/assets/mp3-audio-def-test-CxeRk1bl.js +0 -129
- package/bundled-test-harness/assets/mutex-test-D1xyxTj2.js +0 -71
- package/bundled-test-harness/assets/number-field-test-gjAGDy6P.js +0 -153
- package/bundled-test-harness/assets/ogg-audio-def-test-B6Ww3Ixr.js +0 -191
- package/bundled-test-harness/assets/open-create-listing-modal-test-uN58T3rI.js +0 -117
- package/bundled-test-harness/assets/open-workspace-test-DXVsvBFJ.js +0 -48
- package/bundled-test-harness/assets/operator-mode-acceptance-test-BxIq2xSS.js +0 -1044
- package/bundled-test-harness/assets/operator-mode-card-catalog-test-xFYx9_ng.js +0 -989
- package/bundled-test-harness/assets/operator-mode-links-test-qhXWmz-S.js +0 -797
- package/bundled-test-harness/assets/operator-mode-state-service-test-BdA_uvaY.js +0 -122
- package/bundled-test-harness/assets/operator-mode-test-D3EyTwq3.js +0 -617
- package/bundled-test-harness/assets/operator-mode-ui-test-CSrk6Q0A.js +0 -985
- package/bundled-test-harness/assets/ordinal-DO1mUmjg.js +0 -85
- package/bundled-test-harness/assets/overlay-menu-items-test-CuqqLsQT.js +0 -316
- package/bundled-test-harness/assets/packet-YPE3B663--JkMNy78.js +0 -3
- package/bundled-test-harness/assets/panel-C2rtbx32.js +0 -3371
- package/bundled-test-harness/assets/past-sessions-test-B9SCbbXz.js +0 -316
- package/bundled-test-harness/assets/patch-code-test-CcFr9pDb.js +0 -203
- package/bundled-test-harness/assets/patch-fields-test-BW1gzcJM.js +0 -992
- package/bundled-test-harness/assets/patch-instance-test-DKqA9gQ6.js +0 -287
- package/bundled-test-harness/assets/persist-module-inspector-view-test-D1eKBUkt.js +0 -62
- package/bundled-test-harness/assets/phone-number-field-test-D1is5RWv.js +0 -72
- package/bundled-test-harness/assets/pie-LRSECV5Y-BDVv8Wdy.js +0 -3
- package/bundled-test-harness/assets/pieDiagram-4H26LBE5-CSYI-nMz.js +0 -253
- package/bundled-test-harness/assets/plan-install-test-DB-PrjPR.js +0 -417
- package/bundled-test-harness/assets/playground-B0iQV7dU.js +0 -57
- package/bundled-test-harness/assets/png-image-def-test-DnOsJGs6.js +0 -222
- package/bundled-test-harness/assets/prerender-file-extract-test-DhOLozj2.js +0 -176
- package/bundled-test-harness/assets/prerender-html-test-DKVhQZA9.js +0 -615
- package/bundled-test-harness/assets/prerender-meta-test-CnRNyqSz.js +0 -388
- package/bundled-test-harness/assets/prerender-module-test-D163QcrZ.js +0 -195
- package/bundled-test-harness/assets/prerendered-card-search-test-DX-8yabJ.js +0 -708
- package/bundled-test-harness/assets/preview-format-test-H7bnpdlC.js +0 -103
- package/bundled-test-harness/assets/preview-test-B7u6uWJR.js +0 -455
- package/bundled-test-harness/assets/qs-test-COb0mre6.js +0 -36
- package/bundled-test-harness/assets/quadrantDiagram-W4KKPZXB-2Y2ben29.js +0 -2324
- package/bundled-test-harness/assets/query-field-barrier-test-Cypj-MhK.js +0 -118
- package/bundled-test-harness/assets/query-field-error-sentinel-test-Dnqn8TdN.js +0 -202
- package/bundled-test-harness/assets/query-field-normalization-test-B7D8SHBP.js +0 -271
- package/bundled-test-harness/assets/query-field-schema-test-DIYY3-c8.js +0 -231
- package/bundled-test-harness/assets/query-fields-test-k-VBF9PE.js +0 -535
- package/bundled-test-harness/assets/queue-test-B_74vXZE.js +0 -216
- package/bundled-test-harness/assets/radar-GUYGQ44K-Cn2A0VBR.js +0 -3
- package/bundled-test-harness/assets/read-card-for-ai-assistant-test-SyL9F_La.js +0 -91
- package/bundled-test-harness/assets/read-file-for-ai-assistant-test-nLPp49U2.js +0 -45
- package/bundled-test-harness/assets/read-source-test-DBELJkhN.js +0 -67
- package/bundled-test-harness/assets/read-text-file-test-CP1JuWlX.js +0 -124
- package/bundled-test-harness/assets/realm-Dr4iygv_.js +0 -884
- package/bundled-test-harness/assets/realm-field-test-Cice2mYk.js +0 -101
- package/bundled-test-harness/assets/realm-index-card-id-test-BzpozdWc.js +0 -18
- package/bundled-test-harness/assets/realm-indexing-test-C0YSXziR.js +0 -4018
- package/bundled-test-harness/assets/realm-paths-test-DV_g07rF.js +0 -33
- package/bundled-test-harness/assets/realm-querying-test-B526abM0.js +0 -1062
- package/bundled-test-harness/assets/realm-test-D8UN5X-w.js +0 -2409
- package/bundled-test-harness/assets/reasoning-test-ClIOvdkX.js +0 -234
- package/bundled-test-harness/assets/recent-files-test-C2J_dJUD.js +0 -449
- package/bundled-test-harness/assets/reindex-realm-test-DMphy1g6.js +0 -119
- package/bundled-test-harness/assets/relationship-loading-state-test-BWrZdLlZ.js +0 -289
- package/bundled-test-harness/assets/render-component-BII_KnyK.js +0 -2
- package/bundled-test-harness/assets/render-error-test-BUAJJlUi.js +0 -22
- package/bundled-test-harness/assets/render-service-test-BKkCjErY.js +0 -87
- package/bundled-test-harness/assets/render-timer-stub-test-TUDMWJ8v.js +0 -84
- package/bundled-test-harness/assets/rendered-markdown-ColekGTF.js +0 -211
- package/bundled-test-harness/assets/rendered-markdown-test-B4CWIo02.js +0 -360
- package/bundled-test-harness/assets/requirementDiagram-4Y6WPE33-CTICatxk.js +0 -2550
- package/bundled-test-harness/assets/rich-markdown-field-test-B5u6D3Nk.js +0 -806
- package/bundled-test-harness/assets/room-message-test-0eJSqQfu.js +0 -171
- package/bundled-test-harness/assets/rust-crypto-B0m3j_yZ.js +0 -16141
- package/bundled-test-harness/assets/sanitize-module-list-test-rH6OqjKh.js +0 -68
- package/bundled-test-harness/assets/sankeyDiagram-5OEKKPKP-hBIg6-LP.js +0 -1357
- package/bundled-test-harness/assets/schema-editor-test-DH4MLFCD.js +0 -784
- package/bundled-test-harness/assets/schema-generation-test-BZMkX7VA.js +0 -28
- package/bundled-test-harness/assets/scrolling-test-CFTyLG8X.js +0 -292
- package/bundled-test-harness/assets/search-and-choose-test-CcbVyp4c.js +0 -156
- package/bundled-test-harness/assets/search-cache-key-test-BYt46iNT.js +0 -79
- package/bundled-test-harness/assets/search-command-test-BRIJPr54.js +0 -135
- package/bundled-test-harness/assets/search-correlation-id-test-B298Tfux.js +0 -101
- package/bundled-test-harness/assets/search-data-test-DHV2Fd4S.js +0 -243
- package/bundled-test-harness/assets/search-google-images-test-CNrazllP.js +0 -168
- package/bundled-test-harness/assets/search-in-flight-key-test-Dy3bU2c1.js +0 -79
- package/bundled-test-harness/assets/search-test-DL1-gD-G.js +0 -847
- package/bundled-test-harness/assets/send-ai-assistant-message-test-CyEkQ5pD.js +0 -52
- package/bundled-test-harness/assets/send-bot-trigger-event-test-CAsK28m-.js +0 -56
- package/bundled-test-harness/assets/send-request-via-proxy-test-DpMlRvPv.js +0 -333
- package/bundled-test-harness/assets/sending-test-BOeGYcTU.js +0 -317
- package/bundled-test-harness/assets/sequenceDiagram-3UESZ5HK-DQMiI040.js +0 -5551
- package/bundled-test-harness/assets/serialization-test-gY2QQVxS.js +0 -8283
- package/bundled-test-harness/assets/set-user-system-card-test-BE3y5GNK.js +0 -59
- package/bundled-test-harness/assets/setup-B8O9JQKq.js +0 -769
- package/bundled-test-harness/assets/setup-BMqGUBDK.js +0 -2
- package/bundled-test-harness/assets/show-card-test-BfJNnWMy.js +0 -362
- package/bundled-test-harness/assets/skills-test-CqhnZxBi.js +0 -568
- package/bundled-test-harness/assets/spec-test-BUKNn_1q.js +0 -1012
- package/bundled-test-harness/assets/stateDiagram-AJRCARHV-BoOij2yt.js +0 -363
- package/bundled-test-harness/assets/stateDiagram-v2-BHNVJYJU-Dosil5p2.js +0 -29
- package/bundled-test-harness/assets/store-add-test-BR1M-IDR.js +0 -52
- package/bundled-test-harness/assets/store-test-DaqI-HRh.js +0 -1562
- package/bundled-test-harness/assets/summarize-session-test-BMg54JGF.js +0 -169
- package/bundled-test-harness/assets/svg-image-def-test-xNyIKRPV.js +0 -164
- package/bundled-test-harness/assets/switch-submode-test-BKvpODUD.js +0 -168
- package/bundled-test-harness/assets/test-realm-service-worker-DK4SmTM5.js +0 -73
- package/bundled-test-harness/assets/tests-x4_eRjiT.js +0 -2770
- package/bundled-test-harness/assets/text-file-def-test-CsXiyVfI.js +0 -93
- package/bundled-test-harness/assets/text-input-validator-test-D4s_laO7.js +0 -155
- package/bundled-test-harness/assets/text-suggestion-test-CkLf1xuS.js +0 -339
- package/bundled-test-harness/assets/theme-card-test-D-6L6OfD.js +0 -573
- package/bundled-test-harness/assets/timeline-definition-PNZ67QCA-DD2d81uJ.js +0 -1545
- package/bundled-test-harness/assets/transform-cards-test-CRZF2gqZ.js +0 -341
- package/bundled-test-harness/assets/treeView-BLDUP644-CUm8wuM-.js +0 -3
- package/bundled-test-harness/assets/treemap-LRROVOQU-lbLrY2PE.js +0 -3
- package/bundled-test-harness/assets/ts-file-def-test-CDo6ojCf.js +0 -90
- package/bundled-test-harness/assets/tsMode-BPQoRibc.js +0 -968
- package/bundled-test-harness/assets/typescript-BaU6yDhK.js +0 -2
- package/bundled-test-harness/assets/update-room-skills-test-BnSgVFwT.js +0 -197
- package/bundled-test-harness/assets/url-test-CK-HB0qu.js +0 -103
- package/bundled-test-harness/assets/use-ai-assistant-test-BuJXEP8H.js +0 -330
- package/bundled-test-harness/assets/validate-realm-test-Cx7MOtS8.js +0 -53
- package/bundled-test-harness/assets/vennDiagram-CIIHVFJN-DtXtzGwZ.js +0 -2833
- package/bundled-test-harness/assets/wardley-L42UT6IY-D8aCp_Ox.js +0 -3
- package/bundled-test-harness/assets/wardleyDiagram-YWT4CUSO-D-73g3bB.js +0 -872
- package/bundled-test-harness/assets/wav-audio-def-test-DIo2GzQL.js +0 -155
- package/bundled-test-harness/assets/webp-image-def-test-BQsV0_De.js +0 -225
- package/bundled-test-harness/assets/workspace-chooser-delete-test-peDXmnQf.js +0 -189
- package/bundled-test-harness/assets/workspace-chooser-test-DS2RtTEF.js +0 -235
- package/bundled-test-harness/assets/workspace-delete-multiple-test-DTbjRSzN.js +0 -213
- package/bundled-test-harness/assets/workspace-delete-summary-test-B--ink4m.js +0 -63
- package/bundled-test-harness/assets/write-binary-file-test-A3TQ5lFn.js +0 -100
- package/bundled-test-harness/assets/write-text-file-test-D_rjNDsT.js +0 -172
- package/bundled-test-harness/assets/xychartDiagram-2RQKCTM6-D1aoqDp-.js +0 -2551
- /package/bundled-test-harness/assets/{abap-CLdVBGqB.js → abap-FZAuBTMl.js} +0 -0
- /package/bundled-test-harness/assets/{apex-DV8eHjgQ.js → apex-CAO3qFTc.js} +0 -0
- /package/bundled-test-harness/assets/{array-DsDWWqmW.js → array-CRfHnEm4.js} +0 -0
- /package/bundled-test-harness/assets/{azcli-C4pZYsiJ.js → azcli-Bnu7jG0Y.js} +0 -0
- /package/bundled-test-harness/assets/{bat-DBoaeFpB.js → bat-DdE54Pqq.js} +0 -0
- /package/bundled-test-harness/assets/{bicep-VlrJhbeK.js → bicep-Dp4vFp3K.js} +0 -0
- /package/bundled-test-harness/assets/{cameligo-jyzrvLUm.js → cameligo-Cym4x98m.js} +0 -0
- /package/bundled-test-harness/assets/{chunk-NNHCCRGN-Be15HUz2.js → chunk-NNHCCRGN-PWOfDYpb.js} +0 -0
- /package/bundled-test-harness/assets/{clojure-bzahmEtz.js → clojure-B47IJ25u.js} +0 -0
- /package/bundled-test-harness/assets/{codemirror-context-BauLYUNt.js → codemirror-context-oJy03XqC.js} +0 -0
- /package/bundled-test-harness/assets/{coffee-CMADdzOH.js → coffee-CZlkBXT8.js} +0 -0
- /package/bundled-test-harness/assets/{cpp-CEJwzcLE.js → cpp-mX4KaA7p.js} +0 -0
- /package/bundled-test-harness/assets/{csharp-XYqm0UE0.js → csharp-C-OeDGwk.js} +0 -0
- /package/bundled-test-harness/assets/{csp-82fNWQc2.js → csp-AS2OEE8R.js} +0 -0
- /package/bundled-test-harness/assets/{css-B5b0ooFS.js → css-C-TQxhWe.js} +0 -0
- /package/bundled-test-harness/assets/{cssMode-DTKuqAkO.js → cssMode-C87GnEsk.js} +0 -0
- /package/bundled-test-harness/assets/{cypher-Df9GkdDY.js → cypher-T6F_0eIM.js} +0 -0
- /package/bundled-test-harness/assets/{cytoscape.esm-D0iwZ9Jj.js → cytoscape.esm-Bc2V-MhP.js} +0 -0
- /package/bundled-test-harness/assets/{dart-C4JY9dMc.js → dart-DzVesk0n.js} +0 -0
- /package/bundled-test-harness/assets/{defaultLocale-BtLxQtxy.js → defaultLocale-CAoL4lzt.js} +0 -0
- /package/bundled-test-harness/assets/{dist-D-PuK2H3.js → dist-BZ5MfZEJ.js} +0 -0
- /package/bundled-test-harness/assets/{dockerfile-Ck0tNttO.js → dockerfile-BH0_bQxC.js} +0 -0
- /package/bundled-test-harness/assets/{ecl-BpeXqJR_.js → ecl-KIxjxrJo.js} +0 -0
- /package/bundled-test-harness/assets/{elixir-HmBzrXaX.js → elixir-CPPdtCW1.js} +0 -0
- /package/bundled-test-harness/assets/{flow9-DhsfsDhH.js → flow9-Dxho7Ldf.js} +0 -0
- /package/bundled-test-harness/assets/{freemarker2-D3Yd6nGl.js → freemarker2-DP1aOr3_.js} +0 -0
- /package/bundled-test-harness/assets/{fsharp-D56OprHc.js → fsharp-ozN53Joe.js} +0 -0
- /package/bundled-test-harness/assets/{go-BITsFLfX.js → go-DPj6Rbqe.js} +0 -0
- /package/bundled-test-harness/assets/{graphlib-qkaQhadO.js → graphlib-DOITgaas.js} +0 -0
- /package/bundled-test-harness/assets/{graphql-CJJVsEX1.js → graphql-C8_-AnBG.js} +0 -0
- /package/bundled-test-harness/assets/{handlebars-Dvw6QbL7.js → handlebars-B2gYBZpU.js} +0 -0
- /package/bundled-test-harness/assets/{hcl-DSTZcJuq.js → hcl-r3d7BhXB.js} +0 -0
- /package/bundled-test-harness/assets/{helpers-D_JZYUOQ.js → helpers-CItTycq2.js} +0 -0
- /package/bundled-test-harness/assets/{html-Bik3qLmc.js → html-DhN1Nxr0.js} +0 -0
- /package/bundled-test-harness/assets/{htmlMode-DPCaR3Ab.js → htmlMode-BnBg5hCh.js} +0 -0
- /package/bundled-test-harness/assets/{ini-li-kC8ZU.js → ini-CzzRigmS.js} +0 -0
- /package/bundled-test-harness/assets/{init-Bq7IGMcH.js → init-Bd2YUhsG.js} +0 -0
- /package/bundled-test-harness/assets/{java-CETpuNN7.js → java-BgeDsIoV.js} +0 -0
- /package/bundled-test-harness/assets/{jsonMode-CZ3hOG-W.js → jsonMode-sRb0gsB8.js} +0 -0
- /package/bundled-test-harness/assets/{julia-hgihs1aN.js → julia-u3K1H5Ts.js} +0 -0
- /package/bundled-test-harness/assets/{katex-DqhsSYO4.js → katex-CHY7BUZt.js} +0 -0
- /package/bundled-test-harness/assets/{kotlin-CKfyb82K.js → kotlin-DfqmlJ10.js} +0 -0
- /package/bundled-test-harness/assets/{less-xB5yXbw8.js → less-CSzH7DPY.js} +0 -0
- /package/bundled-test-harness/assets/{lexon-BLwrXVrI.js → lexon-DwPTpxXt.js} +0 -0
- /package/bundled-test-harness/assets/{liquid-Bf2lpknJ.js → liquid-95J9g5Vk.js} +0 -0
- /package/bundled-test-harness/assets/{lua-Ch5i3IrF.js → lua-CGw6zbeh.js} +0 -0
- /package/bundled-test-harness/assets/{m3-D5tNlhaF.js → m3-BfgwloGF.js} +0 -0
- /package/bundled-test-harness/assets/{markdown-Dzc9uMky.js → markdown-RZRK7Mc9.js} +0 -0
- /package/bundled-test-harness/assets/{mdx-xsI4TJrf.js → mdx-BYD-W2sn.js} +0 -0
- /package/bundled-test-harness/assets/{mips-CmdzHkQm.js → mips-DAySN5Lp.js} +0 -0
- /package/bundled-test-harness/assets/{msdax-CAZvxB9E.js → msdax-Cy0COjTJ.js} +0 -0
- /package/bundled-test-harness/assets/{mysql-CyVS-z5H.js → mysql-CfGw9jyw.js} +0 -0
- /package/bundled-test-harness/assets/{objective-c-CCG8cTc_.js → objective-c-B4uU-8T-.js} +0 -0
- /package/bundled-test-harness/assets/{pascal-c8B45FOC.js → pascal-CGDuZzXi.js} +0 -0
- /package/bundled-test-harness/assets/{pascaligo-CCqwSqBv.js → pascaligo-eg02k4VJ.js} +0 -0
- /package/bundled-test-harness/assets/{path-CsS38UoK.js → path-Dxiz9G2t.js} +0 -0
- /package/bundled-test-harness/assets/{perl-JUICYbO2.js → perl-BiT-JJJw.js} +0 -0
- /package/bundled-test-harness/assets/{pgsql-aNRiL0Cg.js → pgsql-DAMjrVBF.js} +0 -0
- /package/bundled-test-harness/assets/{php-B0YZj_Vw.js → php-kOSUYQyc.js} +0 -0
- /package/bundled-test-harness/assets/{pla-D3Zb3KCn.js → pla-BShYV-HC.js} +0 -0
- /package/bundled-test-harness/assets/{postiats-ks1KABlA.js → postiats-9Xamd4W2.js} +0 -0
- /package/bundled-test-harness/assets/{powerquery-D35K_osc.js → powerquery-l2Nw525Q.js} +0 -0
- /package/bundled-test-harness/assets/{powershell-DXQo6KTk.js → powershell-B5rdEn86.js} +0 -0
- /package/bundled-test-harness/assets/{protobuf-CFDvn49_.js → protobuf-DjFcruCV.js} +0 -0
- /package/bundled-test-harness/assets/{pug-CGdWzJm1.js → pug-d79Nz4-Z.js} +0 -0
- /package/bundled-test-harness/assets/{python-BHLYjYlP.js → python-d8oxFZIM.js} +0 -0
- /package/bundled-test-harness/assets/{qsharp-BIq3i63T.js → qsharp-CeTlfxZW.js} +0 -0
- /package/bundled-test-harness/assets/{qunit-2hoQyeAZ.js → qunit-Cqwmt9Vl.js} +0 -0
- /package/bundled-test-harness/assets/{r-CBvzvDSA.js → r-BOu7JTro.js} +0 -0
- /package/bundled-test-harness/assets/{razor-JQ0RiIvo.js → razor-ZatoG_Is.js} +0 -0
- /package/bundled-test-harness/assets/{recent-files-cards-BQMviQb1.js → recent-files-cards-C3vIjaKb.js} +0 -0
- /package/bundled-test-harness/assets/{redis-BmSHTqTU.js → redis-DdXYPyQE.js} +0 -0
- /package/bundled-test-harness/assets/{redshift-B1NmQEH7.js → redshift-DswnW-YX.js} +0 -0
- /package/bundled-test-harness/assets/{render-component-g_fhz2dX.js → render-component-Bs21y6iv.js} +0 -0
- /package/bundled-test-harness/assets/{restructuredtext-Br9BtTbk.js → restructuredtext-C75vUmvX.js} +0 -0
- /package/bundled-test-harness/assets/{rough.esm-D8VnzNsL.js → rough.esm-B83ARgx6.js} +0 -0
- /package/bundled-test-harness/assets/{ruby-D9_-y1I3.js → ruby-D77950a-.js} +0 -0
- /package/bundled-test-harness/assets/{rust-1Jjr1EOs.js → rust-C_G4PKsG.js} +0 -0
- /package/bundled-test-harness/assets/{sb-X2JE4zEr.js → sb-Cz3P8_Gp.js} +0 -0
- /package/bundled-test-harness/assets/{scala-qFJERKkR.js → scala-DYqUg04P.js} +0 -0
- /package/bundled-test-harness/assets/{scheme-D-WJPStO.js → scheme-B31XEGu5.js} +0 -0
- /package/bundled-test-harness/assets/{scss-DysfZiXA.js → scss-CtvB8On5.js} +0 -0
- /package/bundled-test-harness/assets/{shell-C0Iu3NNJ.js → shell-C2QqpcPN.js} +0 -0
- /package/bundled-test-harness/assets/{solidity-Bato3Qrk.js → solidity-FHrhZFd-.js} +0 -0
- /package/bundled-test-harness/assets/{sophia-DI0cKdK8.js → sophia-Cxv5FOXb.js} +0 -0
- /package/bundled-test-harness/assets/{sparql-BTJMtwoD.js → sparql-CgGkGeQB.js} +0 -0
- /package/bundled-test-harness/assets/{sql-R6uHqFYU.js → sql-S6Dos2P0.js} +0 -0
- /package/bundled-test-harness/assets/{src-CdPyB7gY.js → src-CvuaVSsl.js} +0 -0
- /package/bundled-test-harness/assets/{st-CoyBvq37.js → st-Bfa7LAWp.js} +0 -0
- /package/bundled-test-harness/assets/{swift-Bj-haAlF.js → swift-BQD5Ef-A.js} +0 -0
- /package/bundled-test-harness/assets/{systemverilog-B-x1NEFI.js → systemverilog-DaNkPux4.js} +0 -0
- /package/bundled-test-harness/assets/{tcl-DAUdSQgz.js → tcl-gOPgCDyb.js} +0 -0
- /package/bundled-test-harness/assets/{test-support-BHjxBpDK.js → test-support-BEQX5x9U.js} +0 -0
- /package/bundled-test-harness/assets/{test-support-yKvYEh-u.js → test-support-BL4XKobD.js} +0 -0
- /package/bundled-test-harness/assets/{twig-B0sJ-GzS.js → twig-Bk4gPn5b.js} +0 -0
- /package/bundled-test-harness/assets/{typescript-DTMIM5Gl.js → typescript-pPYlxWzr.js} +0 -0
- /package/bundled-test-harness/assets/{typespec-6yo9VQxY.js → typespec-D9Zz743B.js} +0 -0
- /package/bundled-test-harness/assets/{vb-Bh2IfdtJ.js → vb-ziqHIsJV.js} +0 -0
- /package/bundled-test-harness/assets/{view-card-demo-U_AOj-RK.js → view-card-demo-CSIVYD3T.js} +0 -0
- /package/bundled-test-harness/assets/{wgsl-DsvJnCCt.js → wgsl-BXiwkiJL.js} +0 -0
- /package/bundled-test-harness/assets/{xml-CisPXcjD.js → xml-a_tUOik-.js} +0 -0
- /package/bundled-test-harness/assets/{yaml-DkHUoYI5.js → yaml-B3H8LDzK.js} +0 -0
|
@@ -1,2395 +0,0 @@
|
|
|
1
|
-
import "./chunk-CGdGNDIi.js";
|
|
2
|
-
import { g as log, h as __name$1, p as select_default } from "./src-CdPyB7gY.js";
|
|
3
|
-
import { A as hasKatex, F as renderKatexSanitized, b as getConfig, s as common_default, z as sanitizeText } from "./chunk-CSCIHK7Q-DnRAp6Bv.js";
|
|
4
|
-
import { a as decodeEntities } from "./chunk-5ZQYHXKU-BeETnugr.js";
|
|
5
|
-
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.3/node_modules/@iconify/utils/lib/icon/defaults.js
|
|
6
|
-
/** Default values for dimensions */
|
|
7
|
-
var defaultIconDimensions = Object.freeze({
|
|
8
|
-
left: 0,
|
|
9
|
-
top: 0,
|
|
10
|
-
width: 16,
|
|
11
|
-
height: 16
|
|
12
|
-
});
|
|
13
|
-
/** Default values for transformations */
|
|
14
|
-
var defaultIconTransformations = Object.freeze({
|
|
15
|
-
rotate: 0,
|
|
16
|
-
vFlip: false,
|
|
17
|
-
hFlip: false
|
|
18
|
-
});
|
|
19
|
-
/** Default values for all optional IconifyIcon properties */
|
|
20
|
-
var defaultIconProps = Object.freeze({
|
|
21
|
-
...defaultIconDimensions,
|
|
22
|
-
...defaultIconTransformations
|
|
23
|
-
});
|
|
24
|
-
/** Default values for all properties used in ExtendedIconifyIcon */
|
|
25
|
-
var defaultExtendedIconProps = Object.freeze({
|
|
26
|
-
...defaultIconProps,
|
|
27
|
-
body: "",
|
|
28
|
-
hidden: false
|
|
29
|
-
});
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.3/node_modules/@iconify/utils/lib/customisations/defaults.js
|
|
32
|
-
/**
|
|
33
|
-
* Default icon customisations values
|
|
34
|
-
*/
|
|
35
|
-
var defaultIconSizeCustomisations = Object.freeze({
|
|
36
|
-
width: null,
|
|
37
|
-
height: null
|
|
38
|
-
});
|
|
39
|
-
var defaultIconCustomisations = Object.freeze({
|
|
40
|
-
...defaultIconSizeCustomisations,
|
|
41
|
-
...defaultIconTransformations
|
|
42
|
-
});
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.3/node_modules/@iconify/utils/lib/icon/name.js
|
|
45
|
-
/**
|
|
46
|
-
* Convert string icon name to IconifyIconName object.
|
|
47
|
-
*/
|
|
48
|
-
var stringToIcon = (value, validate, allowSimpleName, provider = "") => {
|
|
49
|
-
const colonSeparated = value.split(":");
|
|
50
|
-
if (value.slice(0, 1) === "@") {
|
|
51
|
-
if (colonSeparated.length < 2 || colonSeparated.length > 3) return null;
|
|
52
|
-
provider = colonSeparated.shift().slice(1);
|
|
53
|
-
}
|
|
54
|
-
if (colonSeparated.length > 3 || !colonSeparated.length) return null;
|
|
55
|
-
if (colonSeparated.length > 1) {
|
|
56
|
-
const name = colonSeparated.pop();
|
|
57
|
-
const prefix = colonSeparated.pop();
|
|
58
|
-
const result = {
|
|
59
|
-
provider: colonSeparated.length > 0 ? colonSeparated[0] : provider,
|
|
60
|
-
prefix,
|
|
61
|
-
name
|
|
62
|
-
};
|
|
63
|
-
return validate && !validateIconName(result) ? null : result;
|
|
64
|
-
}
|
|
65
|
-
const name = colonSeparated[0];
|
|
66
|
-
const dashSeparated = name.split("-");
|
|
67
|
-
if (dashSeparated.length > 1) {
|
|
68
|
-
const result = {
|
|
69
|
-
provider,
|
|
70
|
-
prefix: dashSeparated.shift(),
|
|
71
|
-
name: dashSeparated.join("-")
|
|
72
|
-
};
|
|
73
|
-
return validate && !validateIconName(result) ? null : result;
|
|
74
|
-
}
|
|
75
|
-
if (allowSimpleName && provider === "") {
|
|
76
|
-
const result = {
|
|
77
|
-
provider,
|
|
78
|
-
prefix: "",
|
|
79
|
-
name
|
|
80
|
-
};
|
|
81
|
-
return validate && !validateIconName(result, allowSimpleName) ? null : result;
|
|
82
|
-
}
|
|
83
|
-
return null;
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Check if icon is valid.
|
|
87
|
-
*
|
|
88
|
-
* This function is not part of stringToIcon because validation is not needed for most code.
|
|
89
|
-
*/
|
|
90
|
-
var validateIconName = (icon, allowSimpleName) => {
|
|
91
|
-
if (!icon) return false;
|
|
92
|
-
return !!((allowSimpleName && icon.prefix === "" || !!icon.prefix) && !!icon.name);
|
|
93
|
-
};
|
|
94
|
-
//#endregion
|
|
95
|
-
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.3/node_modules/@iconify/utils/lib/icon/transformations.js
|
|
96
|
-
/**
|
|
97
|
-
* Merge transformations
|
|
98
|
-
*/
|
|
99
|
-
function mergeIconTransformations(obj1, obj2) {
|
|
100
|
-
const result = {};
|
|
101
|
-
if (!obj1.hFlip !== !obj2.hFlip) result.hFlip = true;
|
|
102
|
-
if (!obj1.vFlip !== !obj2.vFlip) result.vFlip = true;
|
|
103
|
-
const rotate = ((obj1.rotate || 0) + (obj2.rotate || 0)) % 4;
|
|
104
|
-
if (rotate) result.rotate = rotate;
|
|
105
|
-
return result;
|
|
106
|
-
}
|
|
107
|
-
//#endregion
|
|
108
|
-
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.3/node_modules/@iconify/utils/lib/icon/merge.js
|
|
109
|
-
/**
|
|
110
|
-
* Merge icon and alias
|
|
111
|
-
*
|
|
112
|
-
* Can also be used to merge default values and icon
|
|
113
|
-
*/
|
|
114
|
-
function mergeIconData(parent, child) {
|
|
115
|
-
const result = mergeIconTransformations(parent, child);
|
|
116
|
-
for (const key in defaultExtendedIconProps) if (key in defaultIconTransformations) {
|
|
117
|
-
if (key in parent && !(key in result)) result[key] = defaultIconTransformations[key];
|
|
118
|
-
} else if (key in child) result[key] = child[key];
|
|
119
|
-
else if (key in parent) result[key] = parent[key];
|
|
120
|
-
return result;
|
|
121
|
-
}
|
|
122
|
-
//#endregion
|
|
123
|
-
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.3/node_modules/@iconify/utils/lib/icon-set/tree.js
|
|
124
|
-
/**
|
|
125
|
-
* Resolve icon set icons
|
|
126
|
-
*
|
|
127
|
-
* Returns parent icon for each icon
|
|
128
|
-
*/
|
|
129
|
-
function getIconsTree(data, names) {
|
|
130
|
-
const icons = data.icons;
|
|
131
|
-
const aliases = data.aliases || Object.create(null);
|
|
132
|
-
const resolved = Object.create(null);
|
|
133
|
-
function resolve(name) {
|
|
134
|
-
if (icons[name]) return resolved[name] = [];
|
|
135
|
-
if (!(name in resolved)) {
|
|
136
|
-
resolved[name] = null;
|
|
137
|
-
const parent = aliases[name] && aliases[name].parent;
|
|
138
|
-
const value = parent && resolve(parent);
|
|
139
|
-
if (value) resolved[name] = [parent].concat(value);
|
|
140
|
-
}
|
|
141
|
-
return resolved[name];
|
|
142
|
-
}
|
|
143
|
-
(names || Object.keys(icons).concat(Object.keys(aliases))).forEach(resolve);
|
|
144
|
-
return resolved;
|
|
145
|
-
}
|
|
146
|
-
//#endregion
|
|
147
|
-
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.3/node_modules/@iconify/utils/lib/icon-set/get-icon.js
|
|
148
|
-
/**
|
|
149
|
-
* Get icon data, using prepared aliases tree
|
|
150
|
-
*/
|
|
151
|
-
function internalGetIconData(data, name, tree) {
|
|
152
|
-
const icons = data.icons;
|
|
153
|
-
const aliases = data.aliases || Object.create(null);
|
|
154
|
-
let currentProps = {};
|
|
155
|
-
function parse(name) {
|
|
156
|
-
currentProps = mergeIconData(icons[name] || aliases[name], currentProps);
|
|
157
|
-
}
|
|
158
|
-
parse(name);
|
|
159
|
-
tree.forEach(parse);
|
|
160
|
-
return mergeIconData(data, currentProps);
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Get data for icon
|
|
164
|
-
*/
|
|
165
|
-
function getIconData(data, name) {
|
|
166
|
-
if (data.icons[name]) return internalGetIconData(data, name, []);
|
|
167
|
-
const tree = getIconsTree(data, [name])[name];
|
|
168
|
-
return tree ? internalGetIconData(data, name, tree) : null;
|
|
169
|
-
}
|
|
170
|
-
//#endregion
|
|
171
|
-
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.3/node_modules/@iconify/utils/lib/svg/size.js
|
|
172
|
-
/**
|
|
173
|
-
* Regular expressions for calculating dimensions
|
|
174
|
-
*/
|
|
175
|
-
var unitsSplit = /(-?[0-9.]*[0-9]+[0-9.]*)/g;
|
|
176
|
-
var unitsTest = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
177
|
-
function calculateSize(size, ratio, precision) {
|
|
178
|
-
if (ratio === 1) return size;
|
|
179
|
-
precision = precision || 100;
|
|
180
|
-
if (typeof size === "number") return Math.ceil(size * ratio * precision) / precision;
|
|
181
|
-
if (typeof size !== "string") return size;
|
|
182
|
-
const oldParts = size.split(unitsSplit);
|
|
183
|
-
if (oldParts === null || !oldParts.length) return size;
|
|
184
|
-
const newParts = [];
|
|
185
|
-
let code = oldParts.shift();
|
|
186
|
-
let isNumber = unitsTest.test(code);
|
|
187
|
-
while (true) {
|
|
188
|
-
if (isNumber) {
|
|
189
|
-
const num = parseFloat(code);
|
|
190
|
-
if (isNaN(num)) newParts.push(code);
|
|
191
|
-
else newParts.push(Math.ceil(num * ratio * precision) / precision);
|
|
192
|
-
} else newParts.push(code);
|
|
193
|
-
code = oldParts.shift();
|
|
194
|
-
if (code === void 0) return newParts.join("");
|
|
195
|
-
isNumber = !isNumber;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
//#endregion
|
|
199
|
-
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.3/node_modules/@iconify/utils/lib/svg/defs.js
|
|
200
|
-
function splitSVGDefs(content, tag = "defs") {
|
|
201
|
-
let defs = "";
|
|
202
|
-
const index = content.indexOf("<" + tag);
|
|
203
|
-
while (index >= 0) {
|
|
204
|
-
const start = content.indexOf(">", index);
|
|
205
|
-
const end = content.indexOf("</" + tag);
|
|
206
|
-
if (start === -1 || end === -1) break;
|
|
207
|
-
const endEnd = content.indexOf(">", end);
|
|
208
|
-
if (endEnd === -1) break;
|
|
209
|
-
defs += content.slice(start + 1, end).trim();
|
|
210
|
-
content = content.slice(0, index).trim() + content.slice(endEnd + 1);
|
|
211
|
-
}
|
|
212
|
-
return {
|
|
213
|
-
defs,
|
|
214
|
-
content
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Merge defs and content
|
|
219
|
-
*/
|
|
220
|
-
function mergeDefsAndContent(defs, content) {
|
|
221
|
-
return defs ? "<defs>" + defs + "</defs>" + content : content;
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Wrap SVG content, without wrapping definitions
|
|
225
|
-
*/
|
|
226
|
-
function wrapSVGContent(body, start, end) {
|
|
227
|
-
const split = splitSVGDefs(body);
|
|
228
|
-
return mergeDefsAndContent(split.defs, start + split.content + end);
|
|
229
|
-
}
|
|
230
|
-
//#endregion
|
|
231
|
-
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.3/node_modules/@iconify/utils/lib/svg/build.js
|
|
232
|
-
/**
|
|
233
|
-
* Check if value should be unset. Allows multiple keywords
|
|
234
|
-
*/
|
|
235
|
-
var isUnsetKeyword = (value) => value === "unset" || value === "undefined" || value === "none";
|
|
236
|
-
/**
|
|
237
|
-
* Get SVG attributes and content from icon + customisations
|
|
238
|
-
*
|
|
239
|
-
* Does not generate style to make it compatible with frameworks that use objects for style, such as React.
|
|
240
|
-
* Instead, it generates 'inline' value. If true, rendering engine should add verticalAlign: -0.125em to icon.
|
|
241
|
-
*
|
|
242
|
-
* Customisations should be normalised by platform specific parser.
|
|
243
|
-
* Result should be converted to <svg> by platform specific parser.
|
|
244
|
-
* Use replaceIDs to generate unique IDs for body.
|
|
245
|
-
*/
|
|
246
|
-
function iconToSVG(icon, customisations) {
|
|
247
|
-
const fullIcon = {
|
|
248
|
-
...defaultIconProps,
|
|
249
|
-
...icon
|
|
250
|
-
};
|
|
251
|
-
const fullCustomisations = {
|
|
252
|
-
...defaultIconCustomisations,
|
|
253
|
-
...customisations
|
|
254
|
-
};
|
|
255
|
-
const box = {
|
|
256
|
-
left: fullIcon.left,
|
|
257
|
-
top: fullIcon.top,
|
|
258
|
-
width: fullIcon.width,
|
|
259
|
-
height: fullIcon.height
|
|
260
|
-
};
|
|
261
|
-
let body = fullIcon.body;
|
|
262
|
-
[fullIcon, fullCustomisations].forEach((props) => {
|
|
263
|
-
const transformations = [];
|
|
264
|
-
const hFlip = props.hFlip;
|
|
265
|
-
const vFlip = props.vFlip;
|
|
266
|
-
let rotation = props.rotate;
|
|
267
|
-
if (hFlip) if (vFlip) rotation += 2;
|
|
268
|
-
else {
|
|
269
|
-
transformations.push("translate(" + (box.width + box.left).toString() + " " + (0 - box.top).toString() + ")");
|
|
270
|
-
transformations.push("scale(-1 1)");
|
|
271
|
-
box.top = box.left = 0;
|
|
272
|
-
}
|
|
273
|
-
else if (vFlip) {
|
|
274
|
-
transformations.push("translate(" + (0 - box.left).toString() + " " + (box.height + box.top).toString() + ")");
|
|
275
|
-
transformations.push("scale(1 -1)");
|
|
276
|
-
box.top = box.left = 0;
|
|
277
|
-
}
|
|
278
|
-
let tempValue;
|
|
279
|
-
if (rotation < 0) rotation -= Math.floor(rotation / 4) * 4;
|
|
280
|
-
rotation = rotation % 4;
|
|
281
|
-
switch (rotation) {
|
|
282
|
-
case 1:
|
|
283
|
-
tempValue = box.height / 2 + box.top;
|
|
284
|
-
transformations.unshift("rotate(90 " + tempValue.toString() + " " + tempValue.toString() + ")");
|
|
285
|
-
break;
|
|
286
|
-
case 2:
|
|
287
|
-
transformations.unshift("rotate(180 " + (box.width / 2 + box.left).toString() + " " + (box.height / 2 + box.top).toString() + ")");
|
|
288
|
-
break;
|
|
289
|
-
case 3:
|
|
290
|
-
tempValue = box.width / 2 + box.left;
|
|
291
|
-
transformations.unshift("rotate(-90 " + tempValue.toString() + " " + tempValue.toString() + ")");
|
|
292
|
-
break;
|
|
293
|
-
}
|
|
294
|
-
if (rotation % 2 === 1) {
|
|
295
|
-
if (box.left !== box.top) {
|
|
296
|
-
tempValue = box.left;
|
|
297
|
-
box.left = box.top;
|
|
298
|
-
box.top = tempValue;
|
|
299
|
-
}
|
|
300
|
-
if (box.width !== box.height) {
|
|
301
|
-
tempValue = box.width;
|
|
302
|
-
box.width = box.height;
|
|
303
|
-
box.height = tempValue;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
if (transformations.length) body = wrapSVGContent(body, "<g transform=\"" + transformations.join(" ") + "\">", "</g>");
|
|
307
|
-
});
|
|
308
|
-
const customisationsWidth = fullCustomisations.width;
|
|
309
|
-
const customisationsHeight = fullCustomisations.height;
|
|
310
|
-
const boxWidth = box.width;
|
|
311
|
-
const boxHeight = box.height;
|
|
312
|
-
let width;
|
|
313
|
-
let height;
|
|
314
|
-
if (customisationsWidth === null) {
|
|
315
|
-
height = customisationsHeight === null ? "1em" : customisationsHeight === "auto" ? boxHeight : customisationsHeight;
|
|
316
|
-
width = calculateSize(height, boxWidth / boxHeight);
|
|
317
|
-
} else {
|
|
318
|
-
width = customisationsWidth === "auto" ? boxWidth : customisationsWidth;
|
|
319
|
-
height = customisationsHeight === null ? calculateSize(width, boxHeight / boxWidth) : customisationsHeight === "auto" ? boxHeight : customisationsHeight;
|
|
320
|
-
}
|
|
321
|
-
const attributes = {};
|
|
322
|
-
const setAttr = (prop, value) => {
|
|
323
|
-
if (!isUnsetKeyword(value)) attributes[prop] = value.toString();
|
|
324
|
-
};
|
|
325
|
-
setAttr("width", width);
|
|
326
|
-
setAttr("height", height);
|
|
327
|
-
const viewBox = [
|
|
328
|
-
box.left,
|
|
329
|
-
box.top,
|
|
330
|
-
boxWidth,
|
|
331
|
-
boxHeight
|
|
332
|
-
];
|
|
333
|
-
attributes.viewBox = viewBox.join(" ");
|
|
334
|
-
return {
|
|
335
|
-
attributes,
|
|
336
|
-
viewBox,
|
|
337
|
-
body
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
//#endregion
|
|
341
|
-
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.3/node_modules/@iconify/utils/lib/svg/id.js
|
|
342
|
-
/**
|
|
343
|
-
* Regular expression for finding ids
|
|
344
|
-
*/
|
|
345
|
-
var regex = /\sid="(\S+)"/g;
|
|
346
|
-
/**
|
|
347
|
-
* Counters
|
|
348
|
-
*/
|
|
349
|
-
var counters = /* @__PURE__ */ new Map();
|
|
350
|
-
/**
|
|
351
|
-
* Get unique new ID
|
|
352
|
-
*/
|
|
353
|
-
function nextID(id) {
|
|
354
|
-
id = id.replace(/[0-9]+$/, "") || "a";
|
|
355
|
-
const count = counters.get(id) || 0;
|
|
356
|
-
counters.set(id, count + 1);
|
|
357
|
-
return count ? `${id}${count}` : id;
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* Replace IDs in SVG output with unique IDs
|
|
361
|
-
*/
|
|
362
|
-
function replaceIDs(body) {
|
|
363
|
-
const ids = [];
|
|
364
|
-
let match;
|
|
365
|
-
while (match = regex.exec(body)) ids.push(match[1]);
|
|
366
|
-
if (!ids.length) return body;
|
|
367
|
-
const suffix = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
368
|
-
ids.forEach((id) => {
|
|
369
|
-
const newID = nextID(id);
|
|
370
|
-
const escapedID = id.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
371
|
-
body = body.replace(new RegExp("([#;\"])(" + escapedID + ")([\")]|\\.[a-z])", "g"), "$1" + newID + suffix + "$3");
|
|
372
|
-
});
|
|
373
|
-
body = body.replace(new RegExp(suffix, "g"), "");
|
|
374
|
-
return body;
|
|
375
|
-
}
|
|
376
|
-
//#endregion
|
|
377
|
-
//#region ../../node_modules/.pnpm/@iconify+utils@3.1.3/node_modules/@iconify/utils/lib/svg/html.js
|
|
378
|
-
/**
|
|
379
|
-
* Generate <svg>
|
|
380
|
-
*/
|
|
381
|
-
function iconToHTML(body, attributes) {
|
|
382
|
-
let renderAttribsHTML = body.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
|
|
383
|
-
for (const attr in attributes) renderAttribsHTML += " " + attr + "=\"" + attributes[attr] + "\"";
|
|
384
|
-
return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + renderAttribsHTML + ">" + body + "</svg>";
|
|
385
|
-
}
|
|
386
|
-
//#endregion
|
|
387
|
-
//#region ../../node_modules/.pnpm/marked@16.4.2/node_modules/marked/lib/marked.esm.js
|
|
388
|
-
/**
|
|
389
|
-
* marked v16.4.2 - a markdown parser
|
|
390
|
-
* Copyright (c) 2018-2025, MarkedJS. (MIT License)
|
|
391
|
-
* Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)
|
|
392
|
-
* https://github.com/markedjs/marked
|
|
393
|
-
*/
|
|
394
|
-
/**
|
|
395
|
-
* DO NOT EDIT THIS FILE
|
|
396
|
-
* The code in this file is generated from files in ./src/
|
|
397
|
-
*/
|
|
398
|
-
function L() {
|
|
399
|
-
return {
|
|
400
|
-
async: !1,
|
|
401
|
-
breaks: !1,
|
|
402
|
-
extensions: null,
|
|
403
|
-
gfm: !0,
|
|
404
|
-
hooks: null,
|
|
405
|
-
pedantic: !1,
|
|
406
|
-
renderer: null,
|
|
407
|
-
silent: !1,
|
|
408
|
-
tokenizer: null,
|
|
409
|
-
walkTokens: null
|
|
410
|
-
};
|
|
411
|
-
}
|
|
412
|
-
var T = L();
|
|
413
|
-
function G(l) {
|
|
414
|
-
T = l;
|
|
415
|
-
}
|
|
416
|
-
var E = { exec: () => null };
|
|
417
|
-
function d(l, e = "") {
|
|
418
|
-
let t = typeof l == "string" ? l : l.source;
|
|
419
|
-
let n = {
|
|
420
|
-
replace: (r, i) => {
|
|
421
|
-
let s = typeof i == "string" ? i : i.source;
|
|
422
|
-
return s = s.replace(m.caret, "$1"), t = t.replace(r, s), n;
|
|
423
|
-
},
|
|
424
|
-
getRegex: () => new RegExp(t, e)
|
|
425
|
-
};
|
|
426
|
-
return n;
|
|
427
|
-
}
|
|
428
|
-
var be = (() => {
|
|
429
|
-
try {
|
|
430
|
-
return true;
|
|
431
|
-
} catch {
|
|
432
|
-
return !1;
|
|
433
|
-
}
|
|
434
|
-
})();
|
|
435
|
-
var m = {
|
|
436
|
-
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
437
|
-
outputLinkReplace: /\\([\[\]])/g,
|
|
438
|
-
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
439
|
-
beginningSpace: /^\s+/,
|
|
440
|
-
endingHash: /#$/,
|
|
441
|
-
startingSpaceChar: /^ /,
|
|
442
|
-
endingSpaceChar: / $/,
|
|
443
|
-
nonSpaceChar: /[^ ]/,
|
|
444
|
-
newLineCharGlobal: /\n/g,
|
|
445
|
-
tabCharGlobal: /\t/g,
|
|
446
|
-
multipleSpaceGlobal: /\s+/g,
|
|
447
|
-
blankLine: /^[ \t]*$/,
|
|
448
|
-
doubleBlankLine: /\n[ \t]*\n[ \t]*$/,
|
|
449
|
-
blockquoteStart: /^ {0,3}>/,
|
|
450
|
-
blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g,
|
|
451
|
-
blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
|
|
452
|
-
listReplaceTabs: /^\t+/,
|
|
453
|
-
listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
|
|
454
|
-
listIsTask: /^\[[ xX]\] /,
|
|
455
|
-
listReplaceTask: /^\[[ xX]\] +/,
|
|
456
|
-
anyLine: /\n.*\n/,
|
|
457
|
-
hrefBrackets: /^<(.*)>$/,
|
|
458
|
-
tableDelimiter: /[:|]/,
|
|
459
|
-
tableAlignChars: /^\||\| *$/g,
|
|
460
|
-
tableRowBlankLine: /\n[ \t]*$/,
|
|
461
|
-
tableAlignRight: /^ *-+: *$/,
|
|
462
|
-
tableAlignCenter: /^ *:-+: *$/,
|
|
463
|
-
tableAlignLeft: /^ *:-+ *$/,
|
|
464
|
-
startATag: /^<a /i,
|
|
465
|
-
endATag: /^<\/a>/i,
|
|
466
|
-
startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i,
|
|
467
|
-
endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i,
|
|
468
|
-
startAngleBracket: /^</,
|
|
469
|
-
endAngleBracket: />$/,
|
|
470
|
-
pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/,
|
|
471
|
-
unicodeAlphaNumeric: /[\p{L}\p{N}]/u,
|
|
472
|
-
escapeTest: /[&<>"']/,
|
|
473
|
-
escapeReplace: /[&<>"']/g,
|
|
474
|
-
escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,
|
|
475
|
-
escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,
|
|
476
|
-
unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,
|
|
477
|
-
caret: /(^|[^\[])\^/g,
|
|
478
|
-
percentDecode: /%25/g,
|
|
479
|
-
findPipe: /\|/g,
|
|
480
|
-
splitPipe: / \|/,
|
|
481
|
-
slashPipe: /\\\|/g,
|
|
482
|
-
carriageReturn: /\r\n|\r/g,
|
|
483
|
-
spaceLine: /^ +$/gm,
|
|
484
|
-
notSpaceStart: /^\S*/,
|
|
485
|
-
endingNewline: /\n$/,
|
|
486
|
-
listItemRegex: (l) => new RegExp(`^( {0,3}${l})((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
487
|
-
nextBulletRegex: (l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
488
|
-
hrRegex: (l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
|
|
489
|
-
fencesBeginRegex: (l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}(?:\`\`\`|~~~)`),
|
|
490
|
-
headingBeginRegex: (l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}#`),
|
|
491
|
-
htmlBeginRegex: (l) => new RegExp(`^ {0,${Math.min(3, l - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
492
|
-
};
|
|
493
|
-
var Re = /^(?:[ \t]*(?:\n|$))+/;
|
|
494
|
-
var Te = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/;
|
|
495
|
-
var Oe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/;
|
|
496
|
-
var I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/;
|
|
497
|
-
var we = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/;
|
|
498
|
-
var F = /(?:[*+-]|\d{1,9}[.)])/;
|
|
499
|
-
var ie = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/;
|
|
500
|
-
var oe = d(ie).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex();
|
|
501
|
-
var ye = d(ie).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex();
|
|
502
|
-
var j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/;
|
|
503
|
-
var Pe = /^[^\n]+/;
|
|
504
|
-
var Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/;
|
|
505
|
-
var Se = d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex();
|
|
506
|
-
var $e = d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, F).getRegex();
|
|
507
|
-
var v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";
|
|
508
|
-
var U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/;
|
|
509
|
-
var _e = d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
|
|
510
|
-
var ae = d(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex();
|
|
511
|
-
var K = {
|
|
512
|
-
blockquote: d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(),
|
|
513
|
-
code: Te,
|
|
514
|
-
def: Se,
|
|
515
|
-
fences: Oe,
|
|
516
|
-
heading: we,
|
|
517
|
-
hr: I,
|
|
518
|
-
html: _e,
|
|
519
|
-
lheading: oe,
|
|
520
|
-
list: $e,
|
|
521
|
-
newline: Re,
|
|
522
|
-
paragraph: ae,
|
|
523
|
-
table: E,
|
|
524
|
-
text: Pe
|
|
525
|
-
};
|
|
526
|
-
var re = d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex();
|
|
527
|
-
var Me = {
|
|
528
|
-
...K,
|
|
529
|
-
lheading: ye,
|
|
530
|
-
table: re,
|
|
531
|
-
paragraph: d(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex()
|
|
532
|
-
};
|
|
533
|
-
var ze = {
|
|
534
|
-
...K,
|
|
535
|
-
html: d(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
536
|
-
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
537
|
-
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
538
|
-
fences: E,
|
|
539
|
-
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
540
|
-
paragraph: d(j).replace("hr", I).replace("heading", ` *#{1,6} *[^
|
|
541
|
-
]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
542
|
-
};
|
|
543
|
-
var Ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/;
|
|
544
|
-
var Ee = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/;
|
|
545
|
-
var le = /^( {2,}|\\)\n(?!\s*$)/;
|
|
546
|
-
var Ie = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/;
|
|
547
|
-
var D = /[\p{P}\p{S}]/u;
|
|
548
|
-
var W = /[\s\p{P}\p{S}]/u;
|
|
549
|
-
var ue = /[^\s\p{P}\p{S}]/u;
|
|
550
|
-
var Ce = d(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex();
|
|
551
|
-
var pe = /(?!~)[\p{P}\p{S}]/u;
|
|
552
|
-
var Be = /(?!~)[\s\p{P}\p{S}]/u;
|
|
553
|
-
var qe = /(?:[^\s\p{P}\p{S}]|~)/u;
|
|
554
|
-
var ve = d(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", be ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex();
|
|
555
|
-
var ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/;
|
|
556
|
-
var De = d(ce, "u").replace(/punct/g, D).getRegex();
|
|
557
|
-
var He = d(ce, "u").replace(/punct/g, pe).getRegex();
|
|
558
|
-
var he = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)";
|
|
559
|
-
var Ze = d(he, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex();
|
|
560
|
-
var Ge = d(he, "gu").replace(/notPunctSpace/g, qe).replace(/punctSpace/g, Be).replace(/punct/g, pe).getRegex();
|
|
561
|
-
var Ne = d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex();
|
|
562
|
-
var Fe = d(/\\(punct)/, "gu").replace(/punct/g, D).getRegex();
|
|
563
|
-
var je = d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex();
|
|
564
|
-
var Qe = d(U).replace("(?:-->|$)", "-->").getRegex();
|
|
565
|
-
var Ue = d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Qe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex();
|
|
566
|
-
var q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/;
|
|
567
|
-
var Ke = d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex();
|
|
568
|
-
var de = d(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex();
|
|
569
|
-
var ke = d(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex();
|
|
570
|
-
var We = d("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex();
|
|
571
|
-
var se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/;
|
|
572
|
-
var X = {
|
|
573
|
-
_backpedal: E,
|
|
574
|
-
anyPunctuation: Fe,
|
|
575
|
-
autolink: je,
|
|
576
|
-
blockSkip: ve,
|
|
577
|
-
br: le,
|
|
578
|
-
code: Ee,
|
|
579
|
-
del: E,
|
|
580
|
-
emStrongLDelim: De,
|
|
581
|
-
emStrongRDelimAst: Ze,
|
|
582
|
-
emStrongRDelimUnd: Ne,
|
|
583
|
-
escape: Ae,
|
|
584
|
-
link: Ke,
|
|
585
|
-
nolink: ke,
|
|
586
|
-
punctuation: Ce,
|
|
587
|
-
reflink: de,
|
|
588
|
-
reflinkSearch: We,
|
|
589
|
-
tag: Ue,
|
|
590
|
-
text: Ie,
|
|
591
|
-
url: E
|
|
592
|
-
};
|
|
593
|
-
var Xe = {
|
|
594
|
-
...X,
|
|
595
|
-
link: d(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(),
|
|
596
|
-
reflink: d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex()
|
|
597
|
-
};
|
|
598
|
-
var N = {
|
|
599
|
-
...X,
|
|
600
|
-
emStrongRDelimAst: Ge,
|
|
601
|
-
emStrongLDelim: He,
|
|
602
|
-
url: d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", se).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
603
|
-
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
604
|
-
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
605
|
-
text: d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", se).getRegex()
|
|
606
|
-
};
|
|
607
|
-
var Je = {
|
|
608
|
-
...N,
|
|
609
|
-
br: d(le).replace("{2,}", "*").getRegex(),
|
|
610
|
-
text: d(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
611
|
-
};
|
|
612
|
-
var C = {
|
|
613
|
-
normal: K,
|
|
614
|
-
gfm: Me,
|
|
615
|
-
pedantic: ze
|
|
616
|
-
};
|
|
617
|
-
var M = {
|
|
618
|
-
normal: X,
|
|
619
|
-
gfm: N,
|
|
620
|
-
breaks: Je,
|
|
621
|
-
pedantic: Xe
|
|
622
|
-
};
|
|
623
|
-
var Ve = {
|
|
624
|
-
"&": "&",
|
|
625
|
-
"<": "<",
|
|
626
|
-
">": ">",
|
|
627
|
-
"\"": """,
|
|
628
|
-
"'": "'"
|
|
629
|
-
};
|
|
630
|
-
var ge = (l) => Ve[l];
|
|
631
|
-
function w(l, e) {
|
|
632
|
-
if (e) {
|
|
633
|
-
if (m.escapeTest.test(l)) return l.replace(m.escapeReplace, ge);
|
|
634
|
-
} else if (m.escapeTestNoEncode.test(l)) return l.replace(m.escapeReplaceNoEncode, ge);
|
|
635
|
-
return l;
|
|
636
|
-
}
|
|
637
|
-
function J(l) {
|
|
638
|
-
try {
|
|
639
|
-
l = encodeURI(l).replace(m.percentDecode, "%");
|
|
640
|
-
} catch {
|
|
641
|
-
return null;
|
|
642
|
-
}
|
|
643
|
-
return l;
|
|
644
|
-
}
|
|
645
|
-
function V(l, e) {
|
|
646
|
-
let n = l.replace(m.findPipe, (i, s, a) => {
|
|
647
|
-
let o = !1, p = s;
|
|
648
|
-
for (; --p >= 0 && a[p] === "\\";) o = !o;
|
|
649
|
-
return o ? "|" : " |";
|
|
650
|
-
}).split(m.splitPipe);
|
|
651
|
-
let r = 0;
|
|
652
|
-
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
|
|
653
|
-
else for (; n.length < e;) n.push("");
|
|
654
|
-
for (; r < n.length; r++) n[r] = n[r].trim().replace(m.slashPipe, "|");
|
|
655
|
-
return n;
|
|
656
|
-
}
|
|
657
|
-
function z(l, e, t) {
|
|
658
|
-
let n = l.length;
|
|
659
|
-
if (n === 0) return "";
|
|
660
|
-
let r = 0;
|
|
661
|
-
for (; r < n;) {
|
|
662
|
-
let i = l.charAt(n - r - 1);
|
|
663
|
-
if (i === e && !t) r++;
|
|
664
|
-
else if (i !== e && t) r++;
|
|
665
|
-
else break;
|
|
666
|
-
}
|
|
667
|
-
return l.slice(0, n - r);
|
|
668
|
-
}
|
|
669
|
-
function fe(l, e) {
|
|
670
|
-
if (l.indexOf(e[1]) === -1) return -1;
|
|
671
|
-
let t = 0;
|
|
672
|
-
for (let n = 0; n < l.length; n++) if (l[n] === "\\") n++;
|
|
673
|
-
else if (l[n] === e[0]) t++;
|
|
674
|
-
else if (l[n] === e[1] && (t--, t < 0)) return n;
|
|
675
|
-
return t > 0 ? -2 : -1;
|
|
676
|
-
}
|
|
677
|
-
function me(l, e, t, n, r) {
|
|
678
|
-
let i = e.href;
|
|
679
|
-
let s = e.title || null;
|
|
680
|
-
let a = l[1].replace(r.other.outputLinkReplace, "$1");
|
|
681
|
-
n.state.inLink = !0;
|
|
682
|
-
let o = {
|
|
683
|
-
type: l[0].charAt(0) === "!" ? "image" : "link",
|
|
684
|
-
raw: t,
|
|
685
|
-
href: i,
|
|
686
|
-
title: s,
|
|
687
|
-
text: a,
|
|
688
|
-
tokens: n.inlineTokens(a)
|
|
689
|
-
};
|
|
690
|
-
return n.state.inLink = !1, o;
|
|
691
|
-
}
|
|
692
|
-
function Ye(l, e, t) {
|
|
693
|
-
let n = l.match(t.other.indentCodeCompensation);
|
|
694
|
-
if (n === null) return e;
|
|
695
|
-
let r = n[1];
|
|
696
|
-
return e.split(`
|
|
697
|
-
`).map((i) => {
|
|
698
|
-
let s = i.match(t.other.beginningSpace);
|
|
699
|
-
if (s === null) return i;
|
|
700
|
-
let [a] = s;
|
|
701
|
-
return a.length >= r.length ? i.slice(r.length) : i;
|
|
702
|
-
}).join(`
|
|
703
|
-
`);
|
|
704
|
-
}
|
|
705
|
-
var y = class {
|
|
706
|
-
options;
|
|
707
|
-
rules;
|
|
708
|
-
lexer;
|
|
709
|
-
constructor(e) {
|
|
710
|
-
this.options = e || T;
|
|
711
|
-
}
|
|
712
|
-
space(e) {
|
|
713
|
-
let t = this.rules.block.newline.exec(e);
|
|
714
|
-
if (t && t[0].length > 0) return {
|
|
715
|
-
type: "space",
|
|
716
|
-
raw: t[0]
|
|
717
|
-
};
|
|
718
|
-
}
|
|
719
|
-
code(e) {
|
|
720
|
-
let t = this.rules.block.code.exec(e);
|
|
721
|
-
if (t) {
|
|
722
|
-
let n = t[0].replace(this.rules.other.codeRemoveIndent, "");
|
|
723
|
-
return {
|
|
724
|
-
type: "code",
|
|
725
|
-
raw: t[0],
|
|
726
|
-
codeBlockStyle: "indented",
|
|
727
|
-
text: this.options.pedantic ? n : z(n, `
|
|
728
|
-
`)
|
|
729
|
-
};
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
fences(e) {
|
|
733
|
-
let t = this.rules.block.fences.exec(e);
|
|
734
|
-
if (t) {
|
|
735
|
-
let n = t[0];
|
|
736
|
-
let r = Ye(n, t[3] || "", this.rules);
|
|
737
|
-
return {
|
|
738
|
-
type: "code",
|
|
739
|
-
raw: n,
|
|
740
|
-
lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2],
|
|
741
|
-
text: r
|
|
742
|
-
};
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
heading(e) {
|
|
746
|
-
let t = this.rules.block.heading.exec(e);
|
|
747
|
-
if (t) {
|
|
748
|
-
let n = t[2].trim();
|
|
749
|
-
if (this.rules.other.endingHash.test(n)) {
|
|
750
|
-
let r = z(n, "#");
|
|
751
|
-
(this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
|
|
752
|
-
}
|
|
753
|
-
return {
|
|
754
|
-
type: "heading",
|
|
755
|
-
raw: t[0],
|
|
756
|
-
depth: t[1].length,
|
|
757
|
-
text: n,
|
|
758
|
-
tokens: this.lexer.inline(n)
|
|
759
|
-
};
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
hr(e) {
|
|
763
|
-
let t = this.rules.block.hr.exec(e);
|
|
764
|
-
if (t) return {
|
|
765
|
-
type: "hr",
|
|
766
|
-
raw: z(t[0], `
|
|
767
|
-
`)
|
|
768
|
-
};
|
|
769
|
-
}
|
|
770
|
-
blockquote(e) {
|
|
771
|
-
let t = this.rules.block.blockquote.exec(e);
|
|
772
|
-
if (t) {
|
|
773
|
-
let n = z(t[0], `
|
|
774
|
-
`).split(`
|
|
775
|
-
`);
|
|
776
|
-
let r = "";
|
|
777
|
-
let i = "";
|
|
778
|
-
let s = [];
|
|
779
|
-
for (; n.length > 0;) {
|
|
780
|
-
let a = !1;
|
|
781
|
-
let o = [];
|
|
782
|
-
let p;
|
|
783
|
-
for (p = 0; p < n.length; p++) if (this.rules.other.blockquoteStart.test(n[p])) o.push(n[p]), a = !0;
|
|
784
|
-
else if (!a) o.push(n[p]);
|
|
785
|
-
else break;
|
|
786
|
-
n = n.slice(p);
|
|
787
|
-
let u = o.join(`
|
|
788
|
-
`);
|
|
789
|
-
let c = u.replace(this.rules.other.blockquoteSetextReplace, `
|
|
790
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
791
|
-
r = r ? `${r}
|
|
792
|
-
${u}` : u, i = i ? `${i}
|
|
793
|
-
${c}` : c;
|
|
794
|
-
let g = this.lexer.state.top;
|
|
795
|
-
if (this.lexer.state.top = !0, this.lexer.blockTokens(c, s, !0), this.lexer.state.top = g, n.length === 0) break;
|
|
796
|
-
let h = s.at(-1);
|
|
797
|
-
if (h?.type === "code") break;
|
|
798
|
-
if (h?.type === "blockquote") {
|
|
799
|
-
let R = h;
|
|
800
|
-
let f = R.raw + `
|
|
801
|
-
` + n.join(`
|
|
802
|
-
`);
|
|
803
|
-
let O = this.blockquote(f);
|
|
804
|
-
s[s.length - 1] = O, r = r.substring(0, r.length - R.raw.length) + O.raw, i = i.substring(0, i.length - R.text.length) + O.text;
|
|
805
|
-
break;
|
|
806
|
-
} else if (h?.type === "list") {
|
|
807
|
-
let R = h;
|
|
808
|
-
let f = R.raw + `
|
|
809
|
-
` + n.join(`
|
|
810
|
-
`);
|
|
811
|
-
let O = this.list(f);
|
|
812
|
-
s[s.length - 1] = O, r = r.substring(0, r.length - h.raw.length) + O.raw, i = i.substring(0, i.length - R.raw.length) + O.raw, n = f.substring(s.at(-1).raw.length).split(`
|
|
813
|
-
`);
|
|
814
|
-
continue;
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
return {
|
|
818
|
-
type: "blockquote",
|
|
819
|
-
raw: r,
|
|
820
|
-
tokens: s,
|
|
821
|
-
text: i
|
|
822
|
-
};
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
list(e) {
|
|
826
|
-
let t = this.rules.block.list.exec(e);
|
|
827
|
-
if (t) {
|
|
828
|
-
let n = t[1].trim();
|
|
829
|
-
let r = n.length > 1;
|
|
830
|
-
let i = {
|
|
831
|
-
type: "list",
|
|
832
|
-
raw: "",
|
|
833
|
-
ordered: r,
|
|
834
|
-
start: r ? +n.slice(0, -1) : "",
|
|
835
|
-
loose: !1,
|
|
836
|
-
items: []
|
|
837
|
-
};
|
|
838
|
-
n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
|
|
839
|
-
let s = this.rules.other.listItemRegex(n);
|
|
840
|
-
let a = !1;
|
|
841
|
-
for (; e;) {
|
|
842
|
-
let p = !1;
|
|
843
|
-
let u = "";
|
|
844
|
-
let c = "";
|
|
845
|
-
if (!(t = s.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
846
|
-
u = t[0], e = e.substring(u.length);
|
|
847
|
-
let g = t[2].split(`
|
|
848
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length));
|
|
849
|
-
let h = e.split(`
|
|
850
|
-
`, 1)[0];
|
|
851
|
-
let R = !g.trim();
|
|
852
|
-
let f = 0;
|
|
853
|
-
if (this.options.pedantic ? (f = 2, c = g.trimStart()) : R ? f = t[1].length + 1 : (f = t[2].search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, c = g.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(h) && (u += h + `
|
|
854
|
-
`, e = e.substring(h.length + 1), p = !0), !p) {
|
|
855
|
-
let H = this.rules.other.nextBulletRegex(f);
|
|
856
|
-
let ee = this.rules.other.hrRegex(f);
|
|
857
|
-
let te = this.rules.other.fencesBeginRegex(f);
|
|
858
|
-
let ne = this.rules.other.headingBeginRegex(f);
|
|
859
|
-
let xe = this.rules.other.htmlBeginRegex(f);
|
|
860
|
-
for (; e;) {
|
|
861
|
-
let Z = e.split(`
|
|
862
|
-
`, 1)[0];
|
|
863
|
-
let A;
|
|
864
|
-
if (h = Z, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), A = h) : A = h.replace(this.rules.other.tabCharGlobal, " "), te.test(h) || ne.test(h) || xe.test(h) || H.test(h) || ee.test(h)) break;
|
|
865
|
-
if (A.search(this.rules.other.nonSpaceChar) >= f || !h.trim()) c += `
|
|
866
|
-
` + A.slice(f);
|
|
867
|
-
else {
|
|
868
|
-
if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(g) || ne.test(g) || ee.test(g)) break;
|
|
869
|
-
c += `
|
|
870
|
-
` + h;
|
|
871
|
-
}
|
|
872
|
-
!R && !h.trim() && (R = !0), u += Z + `
|
|
873
|
-
`, e = e.substring(Z.length + 1), g = A.slice(f);
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
i.loose || (a ? i.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (a = !0));
|
|
877
|
-
let O = null;
|
|
878
|
-
let Y;
|
|
879
|
-
this.options.gfm && (O = this.rules.other.listIsTask.exec(c), O && (Y = O[0] !== "[ ] ", c = c.replace(this.rules.other.listReplaceTask, ""))), i.items.push({
|
|
880
|
-
type: "list_item",
|
|
881
|
-
raw: u,
|
|
882
|
-
task: !!O,
|
|
883
|
-
checked: Y,
|
|
884
|
-
loose: !1,
|
|
885
|
-
text: c,
|
|
886
|
-
tokens: []
|
|
887
|
-
}), i.raw += u;
|
|
888
|
-
}
|
|
889
|
-
let o = i.items.at(-1);
|
|
890
|
-
if (o) o.raw = o.raw.trimEnd(), o.text = o.text.trimEnd();
|
|
891
|
-
else return;
|
|
892
|
-
i.raw = i.raw.trimEnd();
|
|
893
|
-
for (let p = 0; p < i.items.length; p++) if (this.lexer.state.top = !1, i.items[p].tokens = this.lexer.blockTokens(i.items[p].text, []), !i.loose) {
|
|
894
|
-
let u = i.items[p].tokens.filter((g) => g.type === "space");
|
|
895
|
-
i.loose = u.length > 0 && u.some((g) => this.rules.other.anyLine.test(g.raw));
|
|
896
|
-
}
|
|
897
|
-
if (i.loose) for (let p = 0; p < i.items.length; p++) i.items[p].loose = !0;
|
|
898
|
-
return i;
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
html(e) {
|
|
902
|
-
let t = this.rules.block.html.exec(e);
|
|
903
|
-
if (t) return {
|
|
904
|
-
type: "html",
|
|
905
|
-
block: !0,
|
|
906
|
-
raw: t[0],
|
|
907
|
-
pre: t[1] === "pre" || t[1] === "script" || t[1] === "style",
|
|
908
|
-
text: t[0]
|
|
909
|
-
};
|
|
910
|
-
}
|
|
911
|
-
def(e) {
|
|
912
|
-
let t = this.rules.block.def.exec(e);
|
|
913
|
-
if (t) {
|
|
914
|
-
let n = t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " ");
|
|
915
|
-
let r = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "";
|
|
916
|
-
let i = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
|
|
917
|
-
return {
|
|
918
|
-
type: "def",
|
|
919
|
-
tag: n,
|
|
920
|
-
raw: t[0],
|
|
921
|
-
href: r,
|
|
922
|
-
title: i
|
|
923
|
-
};
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
table(e) {
|
|
927
|
-
let t = this.rules.block.table.exec(e);
|
|
928
|
-
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
929
|
-
let n = V(t[1]);
|
|
930
|
-
let r = t[2].replace(this.rules.other.tableAlignChars, "").split("|");
|
|
931
|
-
let i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
932
|
-
`) : [];
|
|
933
|
-
let s = {
|
|
934
|
-
type: "table",
|
|
935
|
-
raw: t[0],
|
|
936
|
-
header: [],
|
|
937
|
-
align: [],
|
|
938
|
-
rows: []
|
|
939
|
-
};
|
|
940
|
-
if (n.length === r.length) {
|
|
941
|
-
for (let a of r) this.rules.other.tableAlignRight.test(a) ? s.align.push("right") : this.rules.other.tableAlignCenter.test(a) ? s.align.push("center") : this.rules.other.tableAlignLeft.test(a) ? s.align.push("left") : s.align.push(null);
|
|
942
|
-
for (let a = 0; a < n.length; a++) s.header.push({
|
|
943
|
-
text: n[a],
|
|
944
|
-
tokens: this.lexer.inline(n[a]),
|
|
945
|
-
header: !0,
|
|
946
|
-
align: s.align[a]
|
|
947
|
-
});
|
|
948
|
-
for (let a of i) s.rows.push(V(a, s.header.length).map((o, p) => ({
|
|
949
|
-
text: o,
|
|
950
|
-
tokens: this.lexer.inline(o),
|
|
951
|
-
header: !1,
|
|
952
|
-
align: s.align[p]
|
|
953
|
-
})));
|
|
954
|
-
return s;
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
lheading(e) {
|
|
958
|
-
let t = this.rules.block.lheading.exec(e);
|
|
959
|
-
if (t) return {
|
|
960
|
-
type: "heading",
|
|
961
|
-
raw: t[0],
|
|
962
|
-
depth: t[2].charAt(0) === "=" ? 1 : 2,
|
|
963
|
-
text: t[1],
|
|
964
|
-
tokens: this.lexer.inline(t[1])
|
|
965
|
-
};
|
|
966
|
-
}
|
|
967
|
-
paragraph(e) {
|
|
968
|
-
let t = this.rules.block.paragraph.exec(e);
|
|
969
|
-
if (t) {
|
|
970
|
-
let n = t[1].charAt(t[1].length - 1) === `
|
|
971
|
-
` ? t[1].slice(0, -1) : t[1];
|
|
972
|
-
return {
|
|
973
|
-
type: "paragraph",
|
|
974
|
-
raw: t[0],
|
|
975
|
-
text: n,
|
|
976
|
-
tokens: this.lexer.inline(n)
|
|
977
|
-
};
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
text(e) {
|
|
981
|
-
let t = this.rules.block.text.exec(e);
|
|
982
|
-
if (t) return {
|
|
983
|
-
type: "text",
|
|
984
|
-
raw: t[0],
|
|
985
|
-
text: t[0],
|
|
986
|
-
tokens: this.lexer.inline(t[0])
|
|
987
|
-
};
|
|
988
|
-
}
|
|
989
|
-
escape(e) {
|
|
990
|
-
let t = this.rules.inline.escape.exec(e);
|
|
991
|
-
if (t) return {
|
|
992
|
-
type: "escape",
|
|
993
|
-
raw: t[0],
|
|
994
|
-
text: t[1]
|
|
995
|
-
};
|
|
996
|
-
}
|
|
997
|
-
tag(e) {
|
|
998
|
-
let t = this.rules.inline.tag.exec(e);
|
|
999
|
-
if (t) return !this.lexer.state.inLink && this.rules.other.startATag.test(t[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(t[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(t[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(t[0]) && (this.lexer.state.inRawBlock = !1), {
|
|
1000
|
-
type: "html",
|
|
1001
|
-
raw: t[0],
|
|
1002
|
-
inLink: this.lexer.state.inLink,
|
|
1003
|
-
inRawBlock: this.lexer.state.inRawBlock,
|
|
1004
|
-
block: !1,
|
|
1005
|
-
text: t[0]
|
|
1006
|
-
};
|
|
1007
|
-
}
|
|
1008
|
-
link(e) {
|
|
1009
|
-
let t = this.rules.inline.link.exec(e);
|
|
1010
|
-
if (t) {
|
|
1011
|
-
let n = t[2].trim();
|
|
1012
|
-
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
|
|
1013
|
-
if (!this.rules.other.endAngleBracket.test(n)) return;
|
|
1014
|
-
let s = z(n.slice(0, -1), "\\");
|
|
1015
|
-
if ((n.length - s.length) % 2 === 0) return;
|
|
1016
|
-
} else {
|
|
1017
|
-
let s = fe(t[2], "()");
|
|
1018
|
-
if (s === -2) return;
|
|
1019
|
-
if (s > -1) {
|
|
1020
|
-
let o = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s;
|
|
1021
|
-
t[2] = t[2].substring(0, s), t[0] = t[0].substring(0, o).trim(), t[3] = "";
|
|
1022
|
-
}
|
|
1023
|
-
}
|
|
1024
|
-
let r = t[2];
|
|
1025
|
-
let i = "";
|
|
1026
|
-
if (this.options.pedantic) {
|
|
1027
|
-
let s = this.rules.other.pedanticHrefTitle.exec(r);
|
|
1028
|
-
s && (r = s[1], i = s[3]);
|
|
1029
|
-
} else i = t[3] ? t[3].slice(1, -1) : "";
|
|
1030
|
-
return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), me(t, {
|
|
1031
|
-
href: r && r.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
1032
|
-
title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
|
|
1033
|
-
}, t[0], this.lexer, this.rules);
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
reflink(e, t) {
|
|
1037
|
-
let n;
|
|
1038
|
-
if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
|
|
1039
|
-
let i = t[(n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " ").toLowerCase()];
|
|
1040
|
-
if (!i) {
|
|
1041
|
-
let s = n[0].charAt(0);
|
|
1042
|
-
return {
|
|
1043
|
-
type: "text",
|
|
1044
|
-
raw: s,
|
|
1045
|
-
text: s
|
|
1046
|
-
};
|
|
1047
|
-
}
|
|
1048
|
-
return me(n, i, n[0], this.lexer, this.rules);
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
emStrong(e, t, n = "") {
|
|
1052
|
-
let r = this.rules.inline.emStrongLDelim.exec(e);
|
|
1053
|
-
if (!r || r[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
|
|
1054
|
-
if (!(r[1] || r[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
|
1055
|
-
let s = [...r[0]].length - 1;
|
|
1056
|
-
let a;
|
|
1057
|
-
let o;
|
|
1058
|
-
let p = s;
|
|
1059
|
-
let u = 0;
|
|
1060
|
-
let c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
1061
|
-
for (c.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = c.exec(t)) != null;) {
|
|
1062
|
-
if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a) continue;
|
|
1063
|
-
if (o = [...a].length, r[3] || r[4]) {
|
|
1064
|
-
p += o;
|
|
1065
|
-
continue;
|
|
1066
|
-
} else if ((r[5] || r[6]) && s % 3 && !((s + o) % 3)) {
|
|
1067
|
-
u += o;
|
|
1068
|
-
continue;
|
|
1069
|
-
}
|
|
1070
|
-
if (p -= o, p > 0) continue;
|
|
1071
|
-
o = Math.min(o, o + p + u);
|
|
1072
|
-
let g = [...r[0]][0].length;
|
|
1073
|
-
let h = e.slice(0, s + r.index + g + o);
|
|
1074
|
-
if (Math.min(s, o) % 2) {
|
|
1075
|
-
let f = h.slice(1, -1);
|
|
1076
|
-
return {
|
|
1077
|
-
type: "em",
|
|
1078
|
-
raw: h,
|
|
1079
|
-
text: f,
|
|
1080
|
-
tokens: this.lexer.inlineTokens(f)
|
|
1081
|
-
};
|
|
1082
|
-
}
|
|
1083
|
-
let R = h.slice(2, -2);
|
|
1084
|
-
return {
|
|
1085
|
-
type: "strong",
|
|
1086
|
-
raw: h,
|
|
1087
|
-
text: R,
|
|
1088
|
-
tokens: this.lexer.inlineTokens(R)
|
|
1089
|
-
};
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
codespan(e) {
|
|
1094
|
-
let t = this.rules.inline.code.exec(e);
|
|
1095
|
-
if (t) {
|
|
1096
|
-
let n = t[2].replace(this.rules.other.newLineCharGlobal, " ");
|
|
1097
|
-
let r = this.rules.other.nonSpaceChar.test(n);
|
|
1098
|
-
let i = this.rules.other.startingSpaceChar.test(n) && this.rules.other.endingSpaceChar.test(n);
|
|
1099
|
-
return r && i && (n = n.substring(1, n.length - 1)), {
|
|
1100
|
-
type: "codespan",
|
|
1101
|
-
raw: t[0],
|
|
1102
|
-
text: n
|
|
1103
|
-
};
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
br(e) {
|
|
1107
|
-
let t = this.rules.inline.br.exec(e);
|
|
1108
|
-
if (t) return {
|
|
1109
|
-
type: "br",
|
|
1110
|
-
raw: t[0]
|
|
1111
|
-
};
|
|
1112
|
-
}
|
|
1113
|
-
del(e) {
|
|
1114
|
-
let t = this.rules.inline.del.exec(e);
|
|
1115
|
-
if (t) return {
|
|
1116
|
-
type: "del",
|
|
1117
|
-
raw: t[0],
|
|
1118
|
-
text: t[2],
|
|
1119
|
-
tokens: this.lexer.inlineTokens(t[2])
|
|
1120
|
-
};
|
|
1121
|
-
}
|
|
1122
|
-
autolink(e) {
|
|
1123
|
-
let t = this.rules.inline.autolink.exec(e);
|
|
1124
|
-
if (t) {
|
|
1125
|
-
let n;
|
|
1126
|
-
let r;
|
|
1127
|
-
return t[2] === "@" ? (n = t[1], r = "mailto:" + n) : (n = t[1], r = n), {
|
|
1128
|
-
type: "link",
|
|
1129
|
-
raw: t[0],
|
|
1130
|
-
text: n,
|
|
1131
|
-
href: r,
|
|
1132
|
-
tokens: [{
|
|
1133
|
-
type: "text",
|
|
1134
|
-
raw: n,
|
|
1135
|
-
text: n
|
|
1136
|
-
}]
|
|
1137
|
-
};
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
url(e) {
|
|
1141
|
-
let t;
|
|
1142
|
-
if (t = this.rules.inline.url.exec(e)) {
|
|
1143
|
-
let n;
|
|
1144
|
-
let r;
|
|
1145
|
-
if (t[2] === "@") n = t[0], r = "mailto:" + n;
|
|
1146
|
-
else {
|
|
1147
|
-
let i;
|
|
1148
|
-
do
|
|
1149
|
-
i = t[0], t[0] = this.rules.inline._backpedal.exec(t[0])?.[0] ?? "";
|
|
1150
|
-
while (i !== t[0]);
|
|
1151
|
-
n = t[0], t[1] === "www." ? r = "http://" + t[0] : r = t[0];
|
|
1152
|
-
}
|
|
1153
|
-
return {
|
|
1154
|
-
type: "link",
|
|
1155
|
-
raw: t[0],
|
|
1156
|
-
text: n,
|
|
1157
|
-
href: r,
|
|
1158
|
-
tokens: [{
|
|
1159
|
-
type: "text",
|
|
1160
|
-
raw: n,
|
|
1161
|
-
text: n
|
|
1162
|
-
}]
|
|
1163
|
-
};
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
inlineText(e) {
|
|
1167
|
-
let t = this.rules.inline.text.exec(e);
|
|
1168
|
-
if (t) {
|
|
1169
|
-
let n = this.lexer.state.inRawBlock;
|
|
1170
|
-
return {
|
|
1171
|
-
type: "text",
|
|
1172
|
-
raw: t[0],
|
|
1173
|
-
text: t[0],
|
|
1174
|
-
escaped: n
|
|
1175
|
-
};
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
};
|
|
1179
|
-
var x = class l {
|
|
1180
|
-
tokens;
|
|
1181
|
-
options;
|
|
1182
|
-
state;
|
|
1183
|
-
tokenizer;
|
|
1184
|
-
inlineQueue;
|
|
1185
|
-
constructor(e) {
|
|
1186
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
1187
|
-
inLink: !1,
|
|
1188
|
-
inRawBlock: !1,
|
|
1189
|
-
top: !0
|
|
1190
|
-
};
|
|
1191
|
-
let t = {
|
|
1192
|
-
other: m,
|
|
1193
|
-
block: C.normal,
|
|
1194
|
-
inline: M.normal
|
|
1195
|
-
};
|
|
1196
|
-
this.options.pedantic ? (t.block = C.pedantic, t.inline = M.pedantic) : this.options.gfm && (t.block = C.gfm, this.options.breaks ? t.inline = M.breaks : t.inline = M.gfm), this.tokenizer.rules = t;
|
|
1197
|
-
}
|
|
1198
|
-
static get rules() {
|
|
1199
|
-
return {
|
|
1200
|
-
block: C,
|
|
1201
|
-
inline: M
|
|
1202
|
-
};
|
|
1203
|
-
}
|
|
1204
|
-
static lex(e, t) {
|
|
1205
|
-
return new l(t).lex(e);
|
|
1206
|
-
}
|
|
1207
|
-
static lexInline(e, t) {
|
|
1208
|
-
return new l(t).inlineTokens(e);
|
|
1209
|
-
}
|
|
1210
|
-
lex(e) {
|
|
1211
|
-
e = e.replace(m.carriageReturn, `
|
|
1212
|
-
`), this.blockTokens(e, this.tokens);
|
|
1213
|
-
for (let t = 0; t < this.inlineQueue.length; t++) {
|
|
1214
|
-
let n = this.inlineQueue[t];
|
|
1215
|
-
this.inlineTokens(n.src, n.tokens);
|
|
1216
|
-
}
|
|
1217
|
-
return this.inlineQueue = [], this.tokens;
|
|
1218
|
-
}
|
|
1219
|
-
blockTokens(e, t = [], n = !1) {
|
|
1220
|
-
for (this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, "")); e;) {
|
|
1221
|
-
let r;
|
|
1222
|
-
if (this.options.extensions?.block?.some((s) => (r = s.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
|
|
1223
|
-
if (r = this.tokenizer.space(e)) {
|
|
1224
|
-
e = e.substring(r.raw.length);
|
|
1225
|
-
let s = t.at(-1);
|
|
1226
|
-
r.raw.length === 1 && s !== void 0 ? s.raw += `
|
|
1227
|
-
` : t.push(r);
|
|
1228
|
-
continue;
|
|
1229
|
-
}
|
|
1230
|
-
if (r = this.tokenizer.code(e)) {
|
|
1231
|
-
e = e.substring(r.raw.length);
|
|
1232
|
-
let s = t.at(-1);
|
|
1233
|
-
s?.type === "paragraph" || s?.type === "text" ? (s.raw += (s.raw.endsWith(`
|
|
1234
|
-
`) ? "" : `
|
|
1235
|
-
`) + r.raw, s.text += `
|
|
1236
|
-
` + r.text, this.inlineQueue.at(-1).src = s.text) : t.push(r);
|
|
1237
|
-
continue;
|
|
1238
|
-
}
|
|
1239
|
-
if (r = this.tokenizer.fences(e)) {
|
|
1240
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
1241
|
-
continue;
|
|
1242
|
-
}
|
|
1243
|
-
if (r = this.tokenizer.heading(e)) {
|
|
1244
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
1245
|
-
continue;
|
|
1246
|
-
}
|
|
1247
|
-
if (r = this.tokenizer.hr(e)) {
|
|
1248
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
1249
|
-
continue;
|
|
1250
|
-
}
|
|
1251
|
-
if (r = this.tokenizer.blockquote(e)) {
|
|
1252
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
1253
|
-
continue;
|
|
1254
|
-
}
|
|
1255
|
-
if (r = this.tokenizer.list(e)) {
|
|
1256
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
1257
|
-
continue;
|
|
1258
|
-
}
|
|
1259
|
-
if (r = this.tokenizer.html(e)) {
|
|
1260
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
1261
|
-
continue;
|
|
1262
|
-
}
|
|
1263
|
-
if (r = this.tokenizer.def(e)) {
|
|
1264
|
-
e = e.substring(r.raw.length);
|
|
1265
|
-
let s = t.at(-1);
|
|
1266
|
-
s?.type === "paragraph" || s?.type === "text" ? (s.raw += (s.raw.endsWith(`
|
|
1267
|
-
`) ? "" : `
|
|
1268
|
-
`) + r.raw, s.text += `
|
|
1269
|
-
` + r.raw, this.inlineQueue.at(-1).src = s.text) : this.tokens.links[r.tag] || (this.tokens.links[r.tag] = {
|
|
1270
|
-
href: r.href,
|
|
1271
|
-
title: r.title
|
|
1272
|
-
}, t.push(r));
|
|
1273
|
-
continue;
|
|
1274
|
-
}
|
|
1275
|
-
if (r = this.tokenizer.table(e)) {
|
|
1276
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
1277
|
-
continue;
|
|
1278
|
-
}
|
|
1279
|
-
if (r = this.tokenizer.lheading(e)) {
|
|
1280
|
-
e = e.substring(r.raw.length), t.push(r);
|
|
1281
|
-
continue;
|
|
1282
|
-
}
|
|
1283
|
-
let i = e;
|
|
1284
|
-
if (this.options.extensions?.startBlock) {
|
|
1285
|
-
let s = Infinity;
|
|
1286
|
-
let a = e.slice(1);
|
|
1287
|
-
let o;
|
|
1288
|
-
this.options.extensions.startBlock.forEach((p) => {
|
|
1289
|
-
o = p.call({ lexer: this }, a), typeof o == "number" && o >= 0 && (s = Math.min(s, o));
|
|
1290
|
-
}), s < Infinity && s >= 0 && (i = e.substring(0, s + 1));
|
|
1291
|
-
}
|
|
1292
|
-
if (this.state.top && (r = this.tokenizer.paragraph(i))) {
|
|
1293
|
-
let s = t.at(-1);
|
|
1294
|
-
n && s?.type === "paragraph" ? (s.raw += (s.raw.endsWith(`
|
|
1295
|
-
`) ? "" : `
|
|
1296
|
-
`) + r.raw, s.text += `
|
|
1297
|
-
` + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = s.text) : t.push(r), n = i.length !== e.length, e = e.substring(r.raw.length);
|
|
1298
|
-
continue;
|
|
1299
|
-
}
|
|
1300
|
-
if (r = this.tokenizer.text(e)) {
|
|
1301
|
-
e = e.substring(r.raw.length);
|
|
1302
|
-
let s = t.at(-1);
|
|
1303
|
-
s?.type === "text" ? (s.raw += (s.raw.endsWith(`
|
|
1304
|
-
`) ? "" : `
|
|
1305
|
-
`) + r.raw, s.text += `
|
|
1306
|
-
` + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = s.text) : t.push(r);
|
|
1307
|
-
continue;
|
|
1308
|
-
}
|
|
1309
|
-
if (e) {
|
|
1310
|
-
let s = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
1311
|
-
if (this.options.silent) {
|
|
1312
|
-
console.error(s);
|
|
1313
|
-
break;
|
|
1314
|
-
} else throw new Error(s);
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
return this.state.top = !0, t;
|
|
1318
|
-
}
|
|
1319
|
-
inline(e, t = []) {
|
|
1320
|
-
return this.inlineQueue.push({
|
|
1321
|
-
src: e,
|
|
1322
|
-
tokens: t
|
|
1323
|
-
}), t;
|
|
1324
|
-
}
|
|
1325
|
-
inlineTokens(e, t = []) {
|
|
1326
|
-
let n = e;
|
|
1327
|
-
let r = null;
|
|
1328
|
-
if (this.tokens.links) {
|
|
1329
|
-
let o = Object.keys(this.tokens.links);
|
|
1330
|
-
if (o.length > 0) for (; (r = this.tokenizer.rules.inline.reflinkSearch.exec(n)) != null;) o.includes(r[0].slice(r[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
|
1331
|
-
}
|
|
1332
|
-
for (; (r = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null;) n = n.slice(0, r.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
1333
|
-
let i;
|
|
1334
|
-
for (; (r = this.tokenizer.rules.inline.blockSkip.exec(n)) != null;) i = r[2] ? r[2].length : 0, n = n.slice(0, r.index + i) + "[" + "a".repeat(r[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
1335
|
-
n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
|
|
1336
|
-
let s = !1;
|
|
1337
|
-
let a = "";
|
|
1338
|
-
for (; e;) {
|
|
1339
|
-
s || (a = ""), s = !1;
|
|
1340
|
-
let o;
|
|
1341
|
-
if (this.options.extensions?.inline?.some((u) => (o = u.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), !0) : !1)) continue;
|
|
1342
|
-
if (o = this.tokenizer.escape(e)) {
|
|
1343
|
-
e = e.substring(o.raw.length), t.push(o);
|
|
1344
|
-
continue;
|
|
1345
|
-
}
|
|
1346
|
-
if (o = this.tokenizer.tag(e)) {
|
|
1347
|
-
e = e.substring(o.raw.length), t.push(o);
|
|
1348
|
-
continue;
|
|
1349
|
-
}
|
|
1350
|
-
if (o = this.tokenizer.link(e)) {
|
|
1351
|
-
e = e.substring(o.raw.length), t.push(o);
|
|
1352
|
-
continue;
|
|
1353
|
-
}
|
|
1354
|
-
if (o = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
1355
|
-
e = e.substring(o.raw.length);
|
|
1356
|
-
let u = t.at(-1);
|
|
1357
|
-
o.type === "text" && u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
|
|
1358
|
-
continue;
|
|
1359
|
-
}
|
|
1360
|
-
if (o = this.tokenizer.emStrong(e, n, a)) {
|
|
1361
|
-
e = e.substring(o.raw.length), t.push(o);
|
|
1362
|
-
continue;
|
|
1363
|
-
}
|
|
1364
|
-
if (o = this.tokenizer.codespan(e)) {
|
|
1365
|
-
e = e.substring(o.raw.length), t.push(o);
|
|
1366
|
-
continue;
|
|
1367
|
-
}
|
|
1368
|
-
if (o = this.tokenizer.br(e)) {
|
|
1369
|
-
e = e.substring(o.raw.length), t.push(o);
|
|
1370
|
-
continue;
|
|
1371
|
-
}
|
|
1372
|
-
if (o = this.tokenizer.del(e)) {
|
|
1373
|
-
e = e.substring(o.raw.length), t.push(o);
|
|
1374
|
-
continue;
|
|
1375
|
-
}
|
|
1376
|
-
if (o = this.tokenizer.autolink(e)) {
|
|
1377
|
-
e = e.substring(o.raw.length), t.push(o);
|
|
1378
|
-
continue;
|
|
1379
|
-
}
|
|
1380
|
-
if (!this.state.inLink && (o = this.tokenizer.url(e))) {
|
|
1381
|
-
e = e.substring(o.raw.length), t.push(o);
|
|
1382
|
-
continue;
|
|
1383
|
-
}
|
|
1384
|
-
let p = e;
|
|
1385
|
-
if (this.options.extensions?.startInline) {
|
|
1386
|
-
let u = Infinity;
|
|
1387
|
-
let c = e.slice(1);
|
|
1388
|
-
let g;
|
|
1389
|
-
this.options.extensions.startInline.forEach((h) => {
|
|
1390
|
-
g = h.call({ lexer: this }, c), typeof g == "number" && g >= 0 && (u = Math.min(u, g));
|
|
1391
|
-
}), u < Infinity && u >= 0 && (p = e.substring(0, u + 1));
|
|
1392
|
-
}
|
|
1393
|
-
if (o = this.tokenizer.inlineText(p)) {
|
|
1394
|
-
e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (a = o.raw.slice(-1)), s = !0;
|
|
1395
|
-
let u = t.at(-1);
|
|
1396
|
-
u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
|
|
1397
|
-
continue;
|
|
1398
|
-
}
|
|
1399
|
-
if (e) {
|
|
1400
|
-
let u = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
1401
|
-
if (this.options.silent) {
|
|
1402
|
-
console.error(u);
|
|
1403
|
-
break;
|
|
1404
|
-
} else throw new Error(u);
|
|
1405
|
-
}
|
|
1406
|
-
}
|
|
1407
|
-
return t;
|
|
1408
|
-
}
|
|
1409
|
-
};
|
|
1410
|
-
var P = class {
|
|
1411
|
-
options;
|
|
1412
|
-
parser;
|
|
1413
|
-
constructor(e) {
|
|
1414
|
-
this.options = e || T;
|
|
1415
|
-
}
|
|
1416
|
-
space(e) {
|
|
1417
|
-
return "";
|
|
1418
|
-
}
|
|
1419
|
-
code({ text: e, lang: t, escaped: n }) {
|
|
1420
|
-
let r = (t || "").match(m.notSpaceStart)?.[0];
|
|
1421
|
-
let i = e.replace(m.endingNewline, "") + `
|
|
1422
|
-
`;
|
|
1423
|
-
return r ? "<pre><code class=\"language-" + w(r) + "\">" + (n ? i : w(i, !0)) + `</code></pre>
|
|
1424
|
-
` : "<pre><code>" + (n ? i : w(i, !0)) + `</code></pre>
|
|
1425
|
-
`;
|
|
1426
|
-
}
|
|
1427
|
-
blockquote({ tokens: e }) {
|
|
1428
|
-
return `<blockquote>
|
|
1429
|
-
${this.parser.parse(e)}</blockquote>
|
|
1430
|
-
`;
|
|
1431
|
-
}
|
|
1432
|
-
html({ text: e }) {
|
|
1433
|
-
return e;
|
|
1434
|
-
}
|
|
1435
|
-
def(e) {
|
|
1436
|
-
return "";
|
|
1437
|
-
}
|
|
1438
|
-
heading({ tokens: e, depth: t }) {
|
|
1439
|
-
return `<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
1440
|
-
`;
|
|
1441
|
-
}
|
|
1442
|
-
hr(e) {
|
|
1443
|
-
return `<hr>
|
|
1444
|
-
`;
|
|
1445
|
-
}
|
|
1446
|
-
list(e) {
|
|
1447
|
-
let t = e.ordered;
|
|
1448
|
-
let n = e.start;
|
|
1449
|
-
let r = "";
|
|
1450
|
-
for (let a = 0; a < e.items.length; a++) {
|
|
1451
|
-
let o = e.items[a];
|
|
1452
|
-
r += this.listitem(o);
|
|
1453
|
-
}
|
|
1454
|
-
let i = t ? "ol" : "ul";
|
|
1455
|
-
let s = t && n !== 1 ? " start=\"" + n + "\"" : "";
|
|
1456
|
-
return "<" + i + s + `>
|
|
1457
|
-
` + r + "</" + i + `>
|
|
1458
|
-
`;
|
|
1459
|
-
}
|
|
1460
|
-
listitem(e) {
|
|
1461
|
-
let t = "";
|
|
1462
|
-
if (e.task) {
|
|
1463
|
-
let n = this.checkbox({ checked: !!e.checked });
|
|
1464
|
-
e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = n + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = n + " " + w(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
|
|
1465
|
-
type: "text",
|
|
1466
|
-
raw: n + " ",
|
|
1467
|
-
text: n + " ",
|
|
1468
|
-
escaped: !0
|
|
1469
|
-
}) : t += n + " ";
|
|
1470
|
-
}
|
|
1471
|
-
return t += this.parser.parse(e.tokens, !!e.loose), `<li>${t}</li>
|
|
1472
|
-
`;
|
|
1473
|
-
}
|
|
1474
|
-
checkbox({ checked: e }) {
|
|
1475
|
-
return "<input " + (e ? "checked=\"\" " : "") + "disabled=\"\" type=\"checkbox\">";
|
|
1476
|
-
}
|
|
1477
|
-
paragraph({ tokens: e }) {
|
|
1478
|
-
return `<p>${this.parser.parseInline(e)}</p>
|
|
1479
|
-
`;
|
|
1480
|
-
}
|
|
1481
|
-
table(e) {
|
|
1482
|
-
let t = "";
|
|
1483
|
-
let n = "";
|
|
1484
|
-
for (let i = 0; i < e.header.length; i++) n += this.tablecell(e.header[i]);
|
|
1485
|
-
t += this.tablerow({ text: n });
|
|
1486
|
-
let r = "";
|
|
1487
|
-
for (let i = 0; i < e.rows.length; i++) {
|
|
1488
|
-
let s = e.rows[i];
|
|
1489
|
-
n = "";
|
|
1490
|
-
for (let a = 0; a < s.length; a++) n += this.tablecell(s[a]);
|
|
1491
|
-
r += this.tablerow({ text: n });
|
|
1492
|
-
}
|
|
1493
|
-
return r && (r = `<tbody>${r}</tbody>`), `<table>
|
|
1494
|
-
<thead>
|
|
1495
|
-
` + t + `</thead>
|
|
1496
|
-
` + r + `</table>
|
|
1497
|
-
`;
|
|
1498
|
-
}
|
|
1499
|
-
tablerow({ text: e }) {
|
|
1500
|
-
return `<tr>
|
|
1501
|
-
${e}</tr>
|
|
1502
|
-
`;
|
|
1503
|
-
}
|
|
1504
|
-
tablecell(e) {
|
|
1505
|
-
let t = this.parser.parseInline(e.tokens);
|
|
1506
|
-
let n = e.header ? "th" : "td";
|
|
1507
|
-
return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
|
|
1508
|
-
`;
|
|
1509
|
-
}
|
|
1510
|
-
strong({ tokens: e }) {
|
|
1511
|
-
return `<strong>${this.parser.parseInline(e)}</strong>`;
|
|
1512
|
-
}
|
|
1513
|
-
em({ tokens: e }) {
|
|
1514
|
-
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
1515
|
-
}
|
|
1516
|
-
codespan({ text: e }) {
|
|
1517
|
-
return `<code>${w(e, !0)}</code>`;
|
|
1518
|
-
}
|
|
1519
|
-
br(e) {
|
|
1520
|
-
return "<br>";
|
|
1521
|
-
}
|
|
1522
|
-
del({ tokens: e }) {
|
|
1523
|
-
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
1524
|
-
}
|
|
1525
|
-
link({ href: e, title: t, tokens: n }) {
|
|
1526
|
-
let r = this.parser.parseInline(n);
|
|
1527
|
-
let i = J(e);
|
|
1528
|
-
if (i === null) return r;
|
|
1529
|
-
e = i;
|
|
1530
|
-
let s = "<a href=\"" + e + "\"";
|
|
1531
|
-
return t && (s += " title=\"" + w(t) + "\""), s += ">" + r + "</a>", s;
|
|
1532
|
-
}
|
|
1533
|
-
image({ href: e, title: t, text: n, tokens: r }) {
|
|
1534
|
-
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
1535
|
-
let i = J(e);
|
|
1536
|
-
if (i === null) return w(n);
|
|
1537
|
-
e = i;
|
|
1538
|
-
let s = `<img src="${e}" alt="${n}"`;
|
|
1539
|
-
return t && (s += ` title="${w(t)}"`), s += ">", s;
|
|
1540
|
-
}
|
|
1541
|
-
text(e) {
|
|
1542
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : w(e.text);
|
|
1543
|
-
}
|
|
1544
|
-
};
|
|
1545
|
-
var $ = class {
|
|
1546
|
-
strong({ text: e }) {
|
|
1547
|
-
return e;
|
|
1548
|
-
}
|
|
1549
|
-
em({ text: e }) {
|
|
1550
|
-
return e;
|
|
1551
|
-
}
|
|
1552
|
-
codespan({ text: e }) {
|
|
1553
|
-
return e;
|
|
1554
|
-
}
|
|
1555
|
-
del({ text: e }) {
|
|
1556
|
-
return e;
|
|
1557
|
-
}
|
|
1558
|
-
html({ text: e }) {
|
|
1559
|
-
return e;
|
|
1560
|
-
}
|
|
1561
|
-
text({ text: e }) {
|
|
1562
|
-
return e;
|
|
1563
|
-
}
|
|
1564
|
-
link({ text: e }) {
|
|
1565
|
-
return "" + e;
|
|
1566
|
-
}
|
|
1567
|
-
image({ text: e }) {
|
|
1568
|
-
return "" + e;
|
|
1569
|
-
}
|
|
1570
|
-
br() {
|
|
1571
|
-
return "";
|
|
1572
|
-
}
|
|
1573
|
-
};
|
|
1574
|
-
var b = class l {
|
|
1575
|
-
options;
|
|
1576
|
-
renderer;
|
|
1577
|
-
textRenderer;
|
|
1578
|
-
constructor(e) {
|
|
1579
|
-
this.options = e || T, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
|
|
1580
|
-
}
|
|
1581
|
-
static parse(e, t) {
|
|
1582
|
-
return new l(t).parse(e);
|
|
1583
|
-
}
|
|
1584
|
-
static parseInline(e, t) {
|
|
1585
|
-
return new l(t).parseInline(e);
|
|
1586
|
-
}
|
|
1587
|
-
parse(e, t = !0) {
|
|
1588
|
-
let n = "";
|
|
1589
|
-
for (let r = 0; r < e.length; r++) {
|
|
1590
|
-
let i = e[r];
|
|
1591
|
-
if (this.options.extensions?.renderers?.[i.type]) {
|
|
1592
|
-
let a = i;
|
|
1593
|
-
let o = this.options.extensions.renderers[a.type].call({ parser: this }, a);
|
|
1594
|
-
if (o !== !1 || ![
|
|
1595
|
-
"space",
|
|
1596
|
-
"hr",
|
|
1597
|
-
"heading",
|
|
1598
|
-
"code",
|
|
1599
|
-
"table",
|
|
1600
|
-
"blockquote",
|
|
1601
|
-
"list",
|
|
1602
|
-
"html",
|
|
1603
|
-
"def",
|
|
1604
|
-
"paragraph",
|
|
1605
|
-
"text"
|
|
1606
|
-
].includes(a.type)) {
|
|
1607
|
-
n += o || "";
|
|
1608
|
-
continue;
|
|
1609
|
-
}
|
|
1610
|
-
}
|
|
1611
|
-
let s = i;
|
|
1612
|
-
switch (s.type) {
|
|
1613
|
-
case "space":
|
|
1614
|
-
n += this.renderer.space(s);
|
|
1615
|
-
continue;
|
|
1616
|
-
case "hr":
|
|
1617
|
-
n += this.renderer.hr(s);
|
|
1618
|
-
continue;
|
|
1619
|
-
case "heading":
|
|
1620
|
-
n += this.renderer.heading(s);
|
|
1621
|
-
continue;
|
|
1622
|
-
case "code":
|
|
1623
|
-
n += this.renderer.code(s);
|
|
1624
|
-
continue;
|
|
1625
|
-
case "table":
|
|
1626
|
-
n += this.renderer.table(s);
|
|
1627
|
-
continue;
|
|
1628
|
-
case "blockquote":
|
|
1629
|
-
n += this.renderer.blockquote(s);
|
|
1630
|
-
continue;
|
|
1631
|
-
case "list":
|
|
1632
|
-
n += this.renderer.list(s);
|
|
1633
|
-
continue;
|
|
1634
|
-
case "html":
|
|
1635
|
-
n += this.renderer.html(s);
|
|
1636
|
-
continue;
|
|
1637
|
-
case "def":
|
|
1638
|
-
n += this.renderer.def(s);
|
|
1639
|
-
continue;
|
|
1640
|
-
case "paragraph":
|
|
1641
|
-
n += this.renderer.paragraph(s);
|
|
1642
|
-
continue;
|
|
1643
|
-
case "text": {
|
|
1644
|
-
let a = s;
|
|
1645
|
-
let o = this.renderer.text(a);
|
|
1646
|
-
for (; r + 1 < e.length && e[r + 1].type === "text";) a = e[++r], o += `
|
|
1647
|
-
` + this.renderer.text(a);
|
|
1648
|
-
t ? n += this.renderer.paragraph({
|
|
1649
|
-
type: "paragraph",
|
|
1650
|
-
raw: o,
|
|
1651
|
-
text: o,
|
|
1652
|
-
tokens: [{
|
|
1653
|
-
type: "text",
|
|
1654
|
-
raw: o,
|
|
1655
|
-
text: o,
|
|
1656
|
-
escaped: !0
|
|
1657
|
-
}]
|
|
1658
|
-
}) : n += o;
|
|
1659
|
-
continue;
|
|
1660
|
-
}
|
|
1661
|
-
default: {
|
|
1662
|
-
let a = "Token with \"" + s.type + "\" type was not found.";
|
|
1663
|
-
if (this.options.silent) return console.error(a), "";
|
|
1664
|
-
throw new Error(a);
|
|
1665
|
-
}
|
|
1666
|
-
}
|
|
1667
|
-
}
|
|
1668
|
-
return n;
|
|
1669
|
-
}
|
|
1670
|
-
parseInline(e, t = this.renderer) {
|
|
1671
|
-
let n = "";
|
|
1672
|
-
for (let r = 0; r < e.length; r++) {
|
|
1673
|
-
let i = e[r];
|
|
1674
|
-
if (this.options.extensions?.renderers?.[i.type]) {
|
|
1675
|
-
let a = this.options.extensions.renderers[i.type].call({ parser: this }, i);
|
|
1676
|
-
if (a !== !1 || ![
|
|
1677
|
-
"escape",
|
|
1678
|
-
"html",
|
|
1679
|
-
"link",
|
|
1680
|
-
"image",
|
|
1681
|
-
"strong",
|
|
1682
|
-
"em",
|
|
1683
|
-
"codespan",
|
|
1684
|
-
"br",
|
|
1685
|
-
"del",
|
|
1686
|
-
"text"
|
|
1687
|
-
].includes(i.type)) {
|
|
1688
|
-
n += a || "";
|
|
1689
|
-
continue;
|
|
1690
|
-
}
|
|
1691
|
-
}
|
|
1692
|
-
let s = i;
|
|
1693
|
-
switch (s.type) {
|
|
1694
|
-
case "escape":
|
|
1695
|
-
n += t.text(s);
|
|
1696
|
-
break;
|
|
1697
|
-
case "html":
|
|
1698
|
-
n += t.html(s);
|
|
1699
|
-
break;
|
|
1700
|
-
case "link":
|
|
1701
|
-
n += t.link(s);
|
|
1702
|
-
break;
|
|
1703
|
-
case "image":
|
|
1704
|
-
n += t.image(s);
|
|
1705
|
-
break;
|
|
1706
|
-
case "strong":
|
|
1707
|
-
n += t.strong(s);
|
|
1708
|
-
break;
|
|
1709
|
-
case "em":
|
|
1710
|
-
n += t.em(s);
|
|
1711
|
-
break;
|
|
1712
|
-
case "codespan":
|
|
1713
|
-
n += t.codespan(s);
|
|
1714
|
-
break;
|
|
1715
|
-
case "br":
|
|
1716
|
-
n += t.br(s);
|
|
1717
|
-
break;
|
|
1718
|
-
case "del":
|
|
1719
|
-
n += t.del(s);
|
|
1720
|
-
break;
|
|
1721
|
-
case "text":
|
|
1722
|
-
n += t.text(s);
|
|
1723
|
-
break;
|
|
1724
|
-
default: {
|
|
1725
|
-
let a = "Token with \"" + s.type + "\" type was not found.";
|
|
1726
|
-
if (this.options.silent) return console.error(a), "";
|
|
1727
|
-
throw new Error(a);
|
|
1728
|
-
}
|
|
1729
|
-
}
|
|
1730
|
-
}
|
|
1731
|
-
return n;
|
|
1732
|
-
}
|
|
1733
|
-
};
|
|
1734
|
-
var S = class {
|
|
1735
|
-
options;
|
|
1736
|
-
block;
|
|
1737
|
-
constructor(e) {
|
|
1738
|
-
this.options = e || T;
|
|
1739
|
-
}
|
|
1740
|
-
static passThroughHooks = new Set([
|
|
1741
|
-
"preprocess",
|
|
1742
|
-
"postprocess",
|
|
1743
|
-
"processAllTokens",
|
|
1744
|
-
"emStrongMask"
|
|
1745
|
-
]);
|
|
1746
|
-
static passThroughHooksRespectAsync = new Set([
|
|
1747
|
-
"preprocess",
|
|
1748
|
-
"postprocess",
|
|
1749
|
-
"processAllTokens"
|
|
1750
|
-
]);
|
|
1751
|
-
preprocess(e) {
|
|
1752
|
-
return e;
|
|
1753
|
-
}
|
|
1754
|
-
postprocess(e) {
|
|
1755
|
-
return e;
|
|
1756
|
-
}
|
|
1757
|
-
processAllTokens(e) {
|
|
1758
|
-
return e;
|
|
1759
|
-
}
|
|
1760
|
-
emStrongMask(e) {
|
|
1761
|
-
return e;
|
|
1762
|
-
}
|
|
1763
|
-
provideLexer() {
|
|
1764
|
-
return this.block ? x.lex : x.lexInline;
|
|
1765
|
-
}
|
|
1766
|
-
provideParser() {
|
|
1767
|
-
return this.block ? b.parse : b.parseInline;
|
|
1768
|
-
}
|
|
1769
|
-
};
|
|
1770
|
-
var B = class {
|
|
1771
|
-
defaults = L();
|
|
1772
|
-
options = this.setOptions;
|
|
1773
|
-
parse = this.parseMarkdown(!0);
|
|
1774
|
-
parseInline = this.parseMarkdown(!1);
|
|
1775
|
-
Parser = b;
|
|
1776
|
-
Renderer = P;
|
|
1777
|
-
TextRenderer = $;
|
|
1778
|
-
Lexer = x;
|
|
1779
|
-
Tokenizer = y;
|
|
1780
|
-
Hooks = S;
|
|
1781
|
-
constructor(...e) {
|
|
1782
|
-
this.use(...e);
|
|
1783
|
-
}
|
|
1784
|
-
walkTokens(e, t) {
|
|
1785
|
-
let n = [];
|
|
1786
|
-
for (let r of e) switch (n = n.concat(t.call(this, r)), r.type) {
|
|
1787
|
-
case "table": {
|
|
1788
|
-
let i = r;
|
|
1789
|
-
for (let s of i.header) n = n.concat(this.walkTokens(s.tokens, t));
|
|
1790
|
-
for (let s of i.rows) for (let a of s) n = n.concat(this.walkTokens(a.tokens, t));
|
|
1791
|
-
break;
|
|
1792
|
-
}
|
|
1793
|
-
case "list": {
|
|
1794
|
-
let i = r;
|
|
1795
|
-
n = n.concat(this.walkTokens(i.items, t));
|
|
1796
|
-
break;
|
|
1797
|
-
}
|
|
1798
|
-
default: {
|
|
1799
|
-
let i = r;
|
|
1800
|
-
this.defaults.extensions?.childTokens?.[i.type] ? this.defaults.extensions.childTokens[i.type].forEach((s) => {
|
|
1801
|
-
let a = i[s].flat(Infinity);
|
|
1802
|
-
n = n.concat(this.walkTokens(a, t));
|
|
1803
|
-
}) : i.tokens && (n = n.concat(this.walkTokens(i.tokens, t)));
|
|
1804
|
-
}
|
|
1805
|
-
}
|
|
1806
|
-
return n;
|
|
1807
|
-
}
|
|
1808
|
-
use(...e) {
|
|
1809
|
-
let t = this.defaults.extensions || {
|
|
1810
|
-
renderers: {},
|
|
1811
|
-
childTokens: {}
|
|
1812
|
-
};
|
|
1813
|
-
return e.forEach((n) => {
|
|
1814
|
-
let r = { ...n };
|
|
1815
|
-
if (r.async = this.defaults.async || r.async || !1, n.extensions && (n.extensions.forEach((i) => {
|
|
1816
|
-
if (!i.name) throw new Error("extension name required");
|
|
1817
|
-
if ("renderer" in i) {
|
|
1818
|
-
let s = t.renderers[i.name];
|
|
1819
|
-
s ? t.renderers[i.name] = function(...a) {
|
|
1820
|
-
let o = i.renderer.apply(this, a);
|
|
1821
|
-
return o === !1 && (o = s.apply(this, a)), o;
|
|
1822
|
-
} : t.renderers[i.name] = i.renderer;
|
|
1823
|
-
}
|
|
1824
|
-
if ("tokenizer" in i) {
|
|
1825
|
-
if (!i.level || i.level !== "block" && i.level !== "inline") throw new Error("extension level must be 'block' or 'inline'");
|
|
1826
|
-
let s = t[i.level];
|
|
1827
|
-
s ? s.unshift(i.tokenizer) : t[i.level] = [i.tokenizer], i.start && (i.level === "block" ? t.startBlock ? t.startBlock.push(i.start) : t.startBlock = [i.start] : i.level === "inline" && (t.startInline ? t.startInline.push(i.start) : t.startInline = [i.start]));
|
|
1828
|
-
}
|
|
1829
|
-
"childTokens" in i && i.childTokens && (t.childTokens[i.name] = i.childTokens);
|
|
1830
|
-
}), r.extensions = t), n.renderer) {
|
|
1831
|
-
let i = this.defaults.renderer || new P(this.defaults);
|
|
1832
|
-
for (let s in n.renderer) {
|
|
1833
|
-
if (!(s in i)) throw new Error(`renderer '${s}' does not exist`);
|
|
1834
|
-
if (["options", "parser"].includes(s)) continue;
|
|
1835
|
-
let a = s;
|
|
1836
|
-
let o = n.renderer[a];
|
|
1837
|
-
let p = i[a];
|
|
1838
|
-
i[a] = (...u) => {
|
|
1839
|
-
let c = o.apply(i, u);
|
|
1840
|
-
return c === !1 && (c = p.apply(i, u)), c || "";
|
|
1841
|
-
};
|
|
1842
|
-
}
|
|
1843
|
-
r.renderer = i;
|
|
1844
|
-
}
|
|
1845
|
-
if (n.tokenizer) {
|
|
1846
|
-
let i = this.defaults.tokenizer || new y(this.defaults);
|
|
1847
|
-
for (let s in n.tokenizer) {
|
|
1848
|
-
if (!(s in i)) throw new Error(`tokenizer '${s}' does not exist`);
|
|
1849
|
-
if ([
|
|
1850
|
-
"options",
|
|
1851
|
-
"rules",
|
|
1852
|
-
"lexer"
|
|
1853
|
-
].includes(s)) continue;
|
|
1854
|
-
let a = s;
|
|
1855
|
-
let o = n.tokenizer[a];
|
|
1856
|
-
let p = i[a];
|
|
1857
|
-
i[a] = (...u) => {
|
|
1858
|
-
let c = o.apply(i, u);
|
|
1859
|
-
return c === !1 && (c = p.apply(i, u)), c;
|
|
1860
|
-
};
|
|
1861
|
-
}
|
|
1862
|
-
r.tokenizer = i;
|
|
1863
|
-
}
|
|
1864
|
-
if (n.hooks) {
|
|
1865
|
-
let i = this.defaults.hooks || new S();
|
|
1866
|
-
for (let s in n.hooks) {
|
|
1867
|
-
if (!(s in i)) throw new Error(`hook '${s}' does not exist`);
|
|
1868
|
-
if (["options", "block"].includes(s)) continue;
|
|
1869
|
-
let a = s;
|
|
1870
|
-
let o = n.hooks[a];
|
|
1871
|
-
let p = i[a];
|
|
1872
|
-
S.passThroughHooks.has(s) ? i[a] = (u) => {
|
|
1873
|
-
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s)) return (async () => {
|
|
1874
|
-
let g = await o.call(i, u);
|
|
1875
|
-
return p.call(i, g);
|
|
1876
|
-
})();
|
|
1877
|
-
let c = o.call(i, u);
|
|
1878
|
-
return p.call(i, c);
|
|
1879
|
-
} : i[a] = (...u) => {
|
|
1880
|
-
if (this.defaults.async) return (async () => {
|
|
1881
|
-
let g = await o.apply(i, u);
|
|
1882
|
-
return g === !1 && (g = await p.apply(i, u)), g;
|
|
1883
|
-
})();
|
|
1884
|
-
let c = o.apply(i, u);
|
|
1885
|
-
return c === !1 && (c = p.apply(i, u)), c;
|
|
1886
|
-
};
|
|
1887
|
-
}
|
|
1888
|
-
r.hooks = i;
|
|
1889
|
-
}
|
|
1890
|
-
if (n.walkTokens) {
|
|
1891
|
-
let i = this.defaults.walkTokens;
|
|
1892
|
-
let s = n.walkTokens;
|
|
1893
|
-
r.walkTokens = function(a) {
|
|
1894
|
-
let o = [];
|
|
1895
|
-
return o.push(s.call(this, a)), i && (o = o.concat(i.call(this, a))), o;
|
|
1896
|
-
};
|
|
1897
|
-
}
|
|
1898
|
-
this.defaults = {
|
|
1899
|
-
...this.defaults,
|
|
1900
|
-
...r
|
|
1901
|
-
};
|
|
1902
|
-
}), this;
|
|
1903
|
-
}
|
|
1904
|
-
setOptions(e) {
|
|
1905
|
-
return this.defaults = {
|
|
1906
|
-
...this.defaults,
|
|
1907
|
-
...e
|
|
1908
|
-
}, this;
|
|
1909
|
-
}
|
|
1910
|
-
lexer(e, t) {
|
|
1911
|
-
return x.lex(e, t ?? this.defaults);
|
|
1912
|
-
}
|
|
1913
|
-
parser(e, t) {
|
|
1914
|
-
return b.parse(e, t ?? this.defaults);
|
|
1915
|
-
}
|
|
1916
|
-
parseMarkdown(e) {
|
|
1917
|
-
return (n, r) => {
|
|
1918
|
-
let i = { ...r };
|
|
1919
|
-
let s = {
|
|
1920
|
-
...this.defaults,
|
|
1921
|
-
...i
|
|
1922
|
-
};
|
|
1923
|
-
let a = this.onError(!!s.silent, !!s.async);
|
|
1924
|
-
if (this.defaults.async === !0 && i.async === !1) return a(/* @__PURE__ */ new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
1925
|
-
if (typeof n > "u" || n === null) return a(/* @__PURE__ */ new Error("marked(): input parameter is undefined or null"));
|
|
1926
|
-
if (typeof n != "string") return a(/* @__PURE__ */ new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
1927
|
-
if (s.hooks && (s.hooks.options = s, s.hooks.block = e), s.async) return (async () => {
|
|
1928
|
-
let o = s.hooks ? await s.hooks.preprocess(n) : n;
|
|
1929
|
-
let u = await (s.hooks ? await s.hooks.provideLexer() : e ? x.lex : x.lexInline)(o, s);
|
|
1930
|
-
let c = s.hooks ? await s.hooks.processAllTokens(u) : u;
|
|
1931
|
-
s.walkTokens && await Promise.all(this.walkTokens(c, s.walkTokens));
|
|
1932
|
-
let h = await (s.hooks ? await s.hooks.provideParser() : e ? b.parse : b.parseInline)(c, s);
|
|
1933
|
-
return s.hooks ? await s.hooks.postprocess(h) : h;
|
|
1934
|
-
})().catch(a);
|
|
1935
|
-
try {
|
|
1936
|
-
s.hooks && (n = s.hooks.preprocess(n));
|
|
1937
|
-
let p = (s.hooks ? s.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s);
|
|
1938
|
-
s.hooks && (p = s.hooks.processAllTokens(p)), s.walkTokens && this.walkTokens(p, s.walkTokens);
|
|
1939
|
-
let c = (s.hooks ? s.hooks.provideParser() : e ? b.parse : b.parseInline)(p, s);
|
|
1940
|
-
return s.hooks && (c = s.hooks.postprocess(c)), c;
|
|
1941
|
-
} catch (o) {
|
|
1942
|
-
return a(o);
|
|
1943
|
-
}
|
|
1944
|
-
};
|
|
1945
|
-
}
|
|
1946
|
-
onError(e, t) {
|
|
1947
|
-
return (n) => {
|
|
1948
|
-
if (n.message += `
|
|
1949
|
-
Please report this to https://github.com/markedjs/marked.`, e) {
|
|
1950
|
-
let r = "<p>An error occurred:</p><pre>" + w(n.message + "", !0) + "</pre>";
|
|
1951
|
-
return t ? Promise.resolve(r) : r;
|
|
1952
|
-
}
|
|
1953
|
-
if (t) return Promise.reject(n);
|
|
1954
|
-
throw n;
|
|
1955
|
-
};
|
|
1956
|
-
}
|
|
1957
|
-
};
|
|
1958
|
-
var _ = new B();
|
|
1959
|
-
function k(l, e) {
|
|
1960
|
-
return _.parse(l, e);
|
|
1961
|
-
}
|
|
1962
|
-
k.options = k.setOptions = function(l) {
|
|
1963
|
-
return _.setOptions(l), k.defaults = _.defaults, G(k.defaults), k;
|
|
1964
|
-
};
|
|
1965
|
-
k.getDefaults = L;
|
|
1966
|
-
k.defaults = T;
|
|
1967
|
-
k.use = function(...l) {
|
|
1968
|
-
return _.use(...l), k.defaults = _.defaults, G(k.defaults), k;
|
|
1969
|
-
};
|
|
1970
|
-
k.walkTokens = function(l, e) {
|
|
1971
|
-
return _.walkTokens(l, e);
|
|
1972
|
-
};
|
|
1973
|
-
k.parseInline = _.parseInline;
|
|
1974
|
-
k.Parser = b;
|
|
1975
|
-
k.parser = b.parse;
|
|
1976
|
-
k.Renderer = P;
|
|
1977
|
-
k.TextRenderer = $;
|
|
1978
|
-
k.Lexer = x;
|
|
1979
|
-
k.lexer = x.lex;
|
|
1980
|
-
k.Tokenizer = y;
|
|
1981
|
-
k.Hooks = S;
|
|
1982
|
-
k.parse = k;
|
|
1983
|
-
k.options;
|
|
1984
|
-
k.setOptions;
|
|
1985
|
-
k.use;
|
|
1986
|
-
k.walkTokens;
|
|
1987
|
-
k.parseInline;
|
|
1988
|
-
b.parse;
|
|
1989
|
-
x.lex;
|
|
1990
|
-
//#endregion
|
|
1991
|
-
//#region ../../node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js
|
|
1992
|
-
function dedent(templ) {
|
|
1993
|
-
var values = [];
|
|
1994
|
-
for (var _i = 1; _i < arguments.length; _i++) values[_i - 1] = arguments[_i];
|
|
1995
|
-
var strings = Array.from(typeof templ === "string" ? [templ] : templ);
|
|
1996
|
-
strings[strings.length - 1] = strings[strings.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
1997
|
-
var indentLengths = strings.reduce(function(arr, str) {
|
|
1998
|
-
var matches = str.match(/\n([\t ]+|(?!\s).)/g);
|
|
1999
|
-
if (matches) return arr.concat(matches.map(function(match) {
|
|
2000
|
-
var _a;
|
|
2001
|
-
var _b;
|
|
2002
|
-
return (_b = (_a = match.match(/[\t ]/g)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
2003
|
-
}));
|
|
2004
|
-
return arr;
|
|
2005
|
-
}, []);
|
|
2006
|
-
if (indentLengths.length) {
|
|
2007
|
-
var pattern_1 = new RegExp("\n[ ]{" + Math.min.apply(Math, indentLengths) + "}", "g");
|
|
2008
|
-
strings = strings.map(function(str) {
|
|
2009
|
-
return str.replace(pattern_1, "\n");
|
|
2010
|
-
});
|
|
2011
|
-
}
|
|
2012
|
-
strings[0] = strings[0].replace(/^\r?\n/, "");
|
|
2013
|
-
var string = strings[0];
|
|
2014
|
-
values.forEach(function(value, i) {
|
|
2015
|
-
var endentations = string.match(/(?:^|\n)( *)$/);
|
|
2016
|
-
var endentation = endentations ? endentations[1] : "";
|
|
2017
|
-
var indentedValue = value;
|
|
2018
|
-
if (typeof value === "string" && value.includes("\n")) indentedValue = String(value).split("\n").map(function(str, i) {
|
|
2019
|
-
return i === 0 ? str : "" + endentation + str;
|
|
2020
|
-
}).join("\n");
|
|
2021
|
-
string += indentedValue + strings[i + 1];
|
|
2022
|
-
});
|
|
2023
|
-
return string;
|
|
2024
|
-
}
|
|
2025
|
-
//#endregion
|
|
2026
|
-
//#region ../../node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O5CBEL6O.mjs
|
|
2027
|
-
var unknownIcon = {
|
|
2028
|
-
body: "<g><rect width=\"80\" height=\"80\" style=\"fill: #087ebf; stroke-width: 0px;\"/><text transform=\"translate(21.16 64.67)\" style=\"fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;\"><tspan x=\"0\" y=\"0\">?</tspan></text></g>",
|
|
2029
|
-
height: 80,
|
|
2030
|
-
width: 80
|
|
2031
|
-
};
|
|
2032
|
-
var iconsStore = /* @__PURE__ */ new Map();
|
|
2033
|
-
var loaderStore = /* @__PURE__ */ new Map();
|
|
2034
|
-
var registerIconPacks = /* @__PURE__ */ __name$1((iconLoaders) => {
|
|
2035
|
-
for (const iconLoader of iconLoaders) {
|
|
2036
|
-
if (!iconLoader.name) throw new Error("Invalid icon loader. Must have a \"name\" property with non-empty string value.");
|
|
2037
|
-
log.debug("Registering icon pack:", iconLoader.name);
|
|
2038
|
-
if ("loader" in iconLoader) loaderStore.set(iconLoader.name, iconLoader.loader);
|
|
2039
|
-
else if ("icons" in iconLoader) iconsStore.set(iconLoader.name, iconLoader.icons);
|
|
2040
|
-
else {
|
|
2041
|
-
log.error("Invalid icon loader:", iconLoader);
|
|
2042
|
-
throw new Error("Invalid icon loader. Must have either \"icons\" or \"loader\" property.");
|
|
2043
|
-
}
|
|
2044
|
-
}
|
|
2045
|
-
}, "registerIconPacks");
|
|
2046
|
-
var getRegisteredIconData = /* @__PURE__ */ __name$1(async (iconName, fallbackPrefix) => {
|
|
2047
|
-
const data = stringToIcon(iconName, true, fallbackPrefix !== void 0);
|
|
2048
|
-
if (!data) throw new Error(`Invalid icon name: ${iconName}`);
|
|
2049
|
-
const prefix = data.prefix || fallbackPrefix;
|
|
2050
|
-
if (!prefix) throw new Error(`Icon name must contain a prefix: ${iconName}`);
|
|
2051
|
-
let icons = iconsStore.get(prefix);
|
|
2052
|
-
if (!icons) {
|
|
2053
|
-
const loader = loaderStore.get(prefix);
|
|
2054
|
-
if (!loader) throw new Error(`Icon set not found: ${data.prefix}`);
|
|
2055
|
-
try {
|
|
2056
|
-
icons = {
|
|
2057
|
-
...await loader(),
|
|
2058
|
-
prefix
|
|
2059
|
-
};
|
|
2060
|
-
iconsStore.set(prefix, icons);
|
|
2061
|
-
} catch (e) {
|
|
2062
|
-
log.error(e);
|
|
2063
|
-
throw new Error(`Failed to load icon set: ${data.prefix}`);
|
|
2064
|
-
}
|
|
2065
|
-
}
|
|
2066
|
-
const iconData = getIconData(icons, data.name);
|
|
2067
|
-
if (!iconData) throw new Error(`Icon not found: ${iconName}`);
|
|
2068
|
-
return iconData;
|
|
2069
|
-
}, "getRegisteredIconData");
|
|
2070
|
-
var isIconAvailable = /* @__PURE__ */ __name$1(async (iconName) => {
|
|
2071
|
-
try {
|
|
2072
|
-
await getRegisteredIconData(iconName);
|
|
2073
|
-
return true;
|
|
2074
|
-
} catch {
|
|
2075
|
-
return false;
|
|
2076
|
-
}
|
|
2077
|
-
}, "isIconAvailable");
|
|
2078
|
-
var getIconSVG = /* @__PURE__ */ __name$1(async (iconName, customisations, extraAttributes) => {
|
|
2079
|
-
let iconData;
|
|
2080
|
-
try {
|
|
2081
|
-
iconData = await getRegisteredIconData(iconName, customisations?.fallbackPrefix);
|
|
2082
|
-
} catch (e) {
|
|
2083
|
-
log.error(e);
|
|
2084
|
-
iconData = unknownIcon;
|
|
2085
|
-
}
|
|
2086
|
-
const renderData = iconToSVG(iconData, customisations);
|
|
2087
|
-
return sanitizeText(iconToHTML(replaceIDs(renderData.body), {
|
|
2088
|
-
...renderData.attributes,
|
|
2089
|
-
...extraAttributes
|
|
2090
|
-
}), getConfig());
|
|
2091
|
-
}, "getIconSVG");
|
|
2092
|
-
function preprocessMarkdown(markdown, { markdownAutoWrap }) {
|
|
2093
|
-
const withoutExtraSpaces = dedent(markdown.replace(/<br\/>/g, "\n").replace(/\n{2,}/g, "\n"));
|
|
2094
|
-
if (markdownAutoWrap === false) {}
|
|
2095
|
-
return withoutExtraSpaces;
|
|
2096
|
-
}
|
|
2097
|
-
__name$1(preprocessMarkdown, "preprocessMarkdown");
|
|
2098
|
-
function nonMarkdownToLines(nonMarkdownText) {
|
|
2099
|
-
return nonMarkdownText.split(/\\n|\n|<br\s*\/?>/gi).map((line) => line.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((word) => ({
|
|
2100
|
-
content: word,
|
|
2101
|
-
type: "normal"
|
|
2102
|
-
})) ?? []);
|
|
2103
|
-
}
|
|
2104
|
-
__name$1(nonMarkdownToLines, "nonMarkdownToLines");
|
|
2105
|
-
function markdownToLines(markdown, config = {}) {
|
|
2106
|
-
const preprocessedMarkdown = preprocessMarkdown(markdown, config);
|
|
2107
|
-
const nodes = k.lexer(preprocessedMarkdown);
|
|
2108
|
-
const lines = [[]];
|
|
2109
|
-
let currentLine = 0;
|
|
2110
|
-
function processNode(node, parentType = "normal") {
|
|
2111
|
-
if (node.type === "text") node.text.split("\n").forEach((textLine, index) => {
|
|
2112
|
-
if (index !== 0) {
|
|
2113
|
-
currentLine++;
|
|
2114
|
-
lines.push([]);
|
|
2115
|
-
}
|
|
2116
|
-
textLine.split(" ").forEach((word) => {
|
|
2117
|
-
word = word.replace(/'/g, `'`);
|
|
2118
|
-
if (word) lines[currentLine].push({
|
|
2119
|
-
content: word,
|
|
2120
|
-
type: parentType
|
|
2121
|
-
});
|
|
2122
|
-
});
|
|
2123
|
-
});
|
|
2124
|
-
else if (node.type === "strong" || node.type === "em") node.tokens.forEach((contentNode) => {
|
|
2125
|
-
processNode(contentNode, node.type);
|
|
2126
|
-
});
|
|
2127
|
-
else if (node.type === "html") lines[currentLine].push({
|
|
2128
|
-
content: node.text,
|
|
2129
|
-
type: "normal"
|
|
2130
|
-
});
|
|
2131
|
-
}
|
|
2132
|
-
__name$1(processNode, "processNode");
|
|
2133
|
-
nodes.forEach((treeNode) => {
|
|
2134
|
-
if (treeNode.type === "paragraph") treeNode.tokens?.forEach((contentNode) => {
|
|
2135
|
-
processNode(contentNode);
|
|
2136
|
-
});
|
|
2137
|
-
else if (treeNode.type === "html") lines[currentLine].push({
|
|
2138
|
-
content: treeNode.text,
|
|
2139
|
-
type: "normal"
|
|
2140
|
-
});
|
|
2141
|
-
else lines[currentLine].push({
|
|
2142
|
-
content: treeNode.raw,
|
|
2143
|
-
type: "normal"
|
|
2144
|
-
});
|
|
2145
|
-
});
|
|
2146
|
-
return lines;
|
|
2147
|
-
}
|
|
2148
|
-
__name$1(markdownToLines, "markdownToLines");
|
|
2149
|
-
function nonMarkdownToHTML(text) {
|
|
2150
|
-
if (!text) return "";
|
|
2151
|
-
return `<p>${text.replace(/\\n|\n/g, "<br />")}</p>`;
|
|
2152
|
-
}
|
|
2153
|
-
__name$1(nonMarkdownToHTML, "nonMarkdownToHTML");
|
|
2154
|
-
function markdownToHTML(markdown, { markdownAutoWrap } = {}) {
|
|
2155
|
-
const nodes = k.lexer(markdown);
|
|
2156
|
-
function output(node) {
|
|
2157
|
-
if (node.type === "text") {
|
|
2158
|
-
if (markdownAutoWrap === false) return node.text.replace(/\n */g, "<br/>").replace(/ /g, " ");
|
|
2159
|
-
return node.text.replace(/\n */g, "<br/>");
|
|
2160
|
-
} else if (node.type === "strong") return `<strong>${node.tokens?.map(output).join("")}</strong>`;
|
|
2161
|
-
else if (node.type === "em") return `<em>${node.tokens?.map(output).join("")}</em>`;
|
|
2162
|
-
else if (node.type === "paragraph") return `<p>${node.tokens?.map(output).join("")}</p>`;
|
|
2163
|
-
else if (node.type === "space") return "";
|
|
2164
|
-
else if (node.type === "html") return `${node.text}`;
|
|
2165
|
-
else if (node.type === "escape") return node.text;
|
|
2166
|
-
log.warn(`Unsupported markdown: ${node.type}`);
|
|
2167
|
-
return node.raw;
|
|
2168
|
-
}
|
|
2169
|
-
__name$1(output, "output");
|
|
2170
|
-
return nodes.map(output).join("");
|
|
2171
|
-
}
|
|
2172
|
-
__name$1(markdownToHTML, "markdownToHTML");
|
|
2173
|
-
function splitTextToChars(text) {
|
|
2174
|
-
if (Intl.Segmenter) return [...new Intl.Segmenter().segment(text)].map((s) => s.segment);
|
|
2175
|
-
return [...text];
|
|
2176
|
-
}
|
|
2177
|
-
__name$1(splitTextToChars, "splitTextToChars");
|
|
2178
|
-
function splitWordToFitWidth(checkFit, word) {
|
|
2179
|
-
return splitWordToFitWidthRecursion(checkFit, [], splitTextToChars(word.content), word.type);
|
|
2180
|
-
}
|
|
2181
|
-
__name$1(splitWordToFitWidth, "splitWordToFitWidth");
|
|
2182
|
-
function splitWordToFitWidthRecursion(checkFit, usedChars, remainingChars, type) {
|
|
2183
|
-
if (remainingChars.length === 0) return [{
|
|
2184
|
-
content: usedChars.join(""),
|
|
2185
|
-
type
|
|
2186
|
-
}, {
|
|
2187
|
-
content: "",
|
|
2188
|
-
type
|
|
2189
|
-
}];
|
|
2190
|
-
const [nextChar, ...rest] = remainingChars;
|
|
2191
|
-
const newWord = [...usedChars, nextChar];
|
|
2192
|
-
if (checkFit([{
|
|
2193
|
-
content: newWord.join(""),
|
|
2194
|
-
type
|
|
2195
|
-
}])) return splitWordToFitWidthRecursion(checkFit, newWord, rest, type);
|
|
2196
|
-
if (usedChars.length === 0 && nextChar) {
|
|
2197
|
-
usedChars.push(nextChar);
|
|
2198
|
-
remainingChars.shift();
|
|
2199
|
-
}
|
|
2200
|
-
return [{
|
|
2201
|
-
content: usedChars.join(""),
|
|
2202
|
-
type
|
|
2203
|
-
}, {
|
|
2204
|
-
content: remainingChars.join(""),
|
|
2205
|
-
type
|
|
2206
|
-
}];
|
|
2207
|
-
}
|
|
2208
|
-
__name$1(splitWordToFitWidthRecursion, "splitWordToFitWidthRecursion");
|
|
2209
|
-
function splitLineToFitWidth(line, checkFit) {
|
|
2210
|
-
if (line.some(({ content }) => content.includes("\n"))) throw new Error("splitLineToFitWidth does not support newlines in the line");
|
|
2211
|
-
return splitLineToFitWidthRecursion(line, checkFit);
|
|
2212
|
-
}
|
|
2213
|
-
__name$1(splitLineToFitWidth, "splitLineToFitWidth");
|
|
2214
|
-
function splitLineToFitWidthRecursion(words, checkFit, lines = [], newLine = []) {
|
|
2215
|
-
if (words.length === 0) {
|
|
2216
|
-
if (newLine.length > 0) lines.push(newLine);
|
|
2217
|
-
return lines.length > 0 ? lines : [];
|
|
2218
|
-
}
|
|
2219
|
-
let joiner = "";
|
|
2220
|
-
if (words[0].content === " ") {
|
|
2221
|
-
joiner = " ";
|
|
2222
|
-
words.shift();
|
|
2223
|
-
}
|
|
2224
|
-
const nextWord = words.shift() ?? {
|
|
2225
|
-
content: " ",
|
|
2226
|
-
type: "normal"
|
|
2227
|
-
};
|
|
2228
|
-
const lineWithNextWord = [...newLine];
|
|
2229
|
-
if (joiner !== "") lineWithNextWord.push({
|
|
2230
|
-
content: joiner,
|
|
2231
|
-
type: "normal"
|
|
2232
|
-
});
|
|
2233
|
-
lineWithNextWord.push(nextWord);
|
|
2234
|
-
if (checkFit(lineWithNextWord)) return splitLineToFitWidthRecursion(words, checkFit, lines, lineWithNextWord);
|
|
2235
|
-
if (newLine.length > 0) {
|
|
2236
|
-
lines.push(newLine);
|
|
2237
|
-
words.unshift(nextWord);
|
|
2238
|
-
} else if (nextWord.content) {
|
|
2239
|
-
const [line, rest] = splitWordToFitWidth(checkFit, nextWord);
|
|
2240
|
-
lines.push([line]);
|
|
2241
|
-
if (rest.content) words.unshift(rest);
|
|
2242
|
-
}
|
|
2243
|
-
return splitLineToFitWidthRecursion(words, checkFit, lines);
|
|
2244
|
-
}
|
|
2245
|
-
__name$1(splitLineToFitWidthRecursion, "splitLineToFitWidthRecursion");
|
|
2246
|
-
function applyStyle(dom, styleFn) {
|
|
2247
|
-
if (styleFn) dom.attr("style", styleFn);
|
|
2248
|
-
}
|
|
2249
|
-
__name$1(applyStyle, "applyStyle");
|
|
2250
|
-
var maxSafeSizeForWidth = 16384;
|
|
2251
|
-
async function addHtmlSpan(element, node, width, classes, addBackground = false, config = getConfig()) {
|
|
2252
|
-
const fo = element.append("foreignObject");
|
|
2253
|
-
fo.attr("width", `${Math.min(10 * width, maxSafeSizeForWidth)}px`);
|
|
2254
|
-
fo.attr("height", `${Math.min(10 * width, maxSafeSizeForWidth)}px`);
|
|
2255
|
-
const div = fo.append("xhtml:div");
|
|
2256
|
-
const sanitizedLabel = hasKatex(node.label) ? await renderKatexSanitized(node.label.replace(common_default.lineBreakRegex, "\n"), config) : sanitizeText(node.label, config);
|
|
2257
|
-
const labelClass = node.isNode ? "nodeLabel" : "edgeLabel";
|
|
2258
|
-
const span = div.append("span");
|
|
2259
|
-
span.html(sanitizedLabel);
|
|
2260
|
-
applyStyle(span, node.labelStyle);
|
|
2261
|
-
span.attr("class", `${labelClass} ${classes}`);
|
|
2262
|
-
applyStyle(div, node.labelStyle);
|
|
2263
|
-
div.style("display", "table-cell");
|
|
2264
|
-
div.style("white-space", "nowrap");
|
|
2265
|
-
div.style("line-height", "1.5");
|
|
2266
|
-
if (width !== Number.POSITIVE_INFINITY) {
|
|
2267
|
-
div.style("max-width", width + "px");
|
|
2268
|
-
div.style("text-align", "center");
|
|
2269
|
-
}
|
|
2270
|
-
div.attr("xmlns", "http://www.w3.org/1999/xhtml");
|
|
2271
|
-
if (addBackground) div.attr("class", "labelBkg");
|
|
2272
|
-
let bbox = div.node().getBoundingClientRect();
|
|
2273
|
-
if (bbox.width === width) {
|
|
2274
|
-
div.style("display", "table");
|
|
2275
|
-
div.style("white-space", "break-spaces");
|
|
2276
|
-
div.style("width", width + "px");
|
|
2277
|
-
bbox = div.node().getBoundingClientRect();
|
|
2278
|
-
}
|
|
2279
|
-
return fo.node();
|
|
2280
|
-
}
|
|
2281
|
-
__name$1(addHtmlSpan, "addHtmlSpan");
|
|
2282
|
-
function createTspan(textElement, lineIndex, lineHeight, centerText = false) {
|
|
2283
|
-
const tspan = textElement.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", lineIndex * lineHeight - .1 + "em").attr("dy", lineHeight + "em");
|
|
2284
|
-
if (centerText) tspan.attr("text-anchor", "middle");
|
|
2285
|
-
return tspan;
|
|
2286
|
-
}
|
|
2287
|
-
__name$1(createTspan, "createTspan");
|
|
2288
|
-
function computeWidthOfText(parentNode, lineHeight, line) {
|
|
2289
|
-
const testElement = parentNode.append("text");
|
|
2290
|
-
const testSpan = createTspan(testElement, 1, lineHeight);
|
|
2291
|
-
updateTextContentAndStyles(testSpan, line);
|
|
2292
|
-
const textLength = testSpan.node().getComputedTextLength();
|
|
2293
|
-
testElement.remove();
|
|
2294
|
-
return textLength;
|
|
2295
|
-
}
|
|
2296
|
-
__name$1(computeWidthOfText, "computeWidthOfText");
|
|
2297
|
-
function computeDimensionOfText(parentNode, lineHeight, text) {
|
|
2298
|
-
const testElement = parentNode.append("text");
|
|
2299
|
-
const testSpan = createTspan(testElement, 1, lineHeight);
|
|
2300
|
-
updateTextContentAndStyles(testSpan, [{
|
|
2301
|
-
content: text,
|
|
2302
|
-
type: "normal"
|
|
2303
|
-
}]);
|
|
2304
|
-
const textDimension = testSpan.node()?.getBoundingClientRect();
|
|
2305
|
-
if (textDimension) testElement.remove();
|
|
2306
|
-
return textDimension;
|
|
2307
|
-
}
|
|
2308
|
-
__name$1(computeDimensionOfText, "computeDimensionOfText");
|
|
2309
|
-
function createFormattedText(width, g, structuredText, addBackground = false, centerText = false) {
|
|
2310
|
-
const lineHeight = 1.1;
|
|
2311
|
-
const labelGroup = g.append("g");
|
|
2312
|
-
const bkg = labelGroup.insert("rect").attr("class", "background").attr("style", "stroke: none");
|
|
2313
|
-
const textElement = labelGroup.append("text").attr("y", "-10.1");
|
|
2314
|
-
if (centerText) textElement.attr("text-anchor", "middle");
|
|
2315
|
-
let lineIndex = 0;
|
|
2316
|
-
for (const line of structuredText) {
|
|
2317
|
-
const checkWidth = /* @__PURE__ */ __name$1((line2) => computeWidthOfText(labelGroup, lineHeight, line2) <= width, "checkWidth");
|
|
2318
|
-
const linesUnderWidth = checkWidth(line) ? [line] : splitLineToFitWidth(line, checkWidth);
|
|
2319
|
-
for (const preparedLine of linesUnderWidth) {
|
|
2320
|
-
updateTextContentAndStyles(createTspan(textElement, lineIndex, lineHeight, centerText), preparedLine);
|
|
2321
|
-
lineIndex++;
|
|
2322
|
-
}
|
|
2323
|
-
}
|
|
2324
|
-
if (addBackground) {
|
|
2325
|
-
const bbox = textElement.node().getBBox();
|
|
2326
|
-
const padding = 2;
|
|
2327
|
-
bkg.attr("x", bbox.x - padding).attr("y", bbox.y - padding).attr("width", bbox.width + 2 * padding).attr("height", bbox.height + 2 * padding);
|
|
2328
|
-
return labelGroup.node();
|
|
2329
|
-
} else return textElement.node();
|
|
2330
|
-
}
|
|
2331
|
-
__name$1(createFormattedText, "createFormattedText");
|
|
2332
|
-
function decodeHTMLEntities(text) {
|
|
2333
|
-
return text.replace(/&(amp|lt|gt);/g, (match, entity) => {
|
|
2334
|
-
switch (entity) {
|
|
2335
|
-
case "amp": return "&";
|
|
2336
|
-
case "lt": return "<";
|
|
2337
|
-
case "gt": return ">";
|
|
2338
|
-
default: return match;
|
|
2339
|
-
}
|
|
2340
|
-
});
|
|
2341
|
-
}
|
|
2342
|
-
__name$1(decodeHTMLEntities, "decodeHTMLEntities");
|
|
2343
|
-
function updateTextContentAndStyles(tspan, wrappedLine) {
|
|
2344
|
-
tspan.text("");
|
|
2345
|
-
wrappedLine.forEach((word, index) => {
|
|
2346
|
-
const innerTspan = tspan.append("tspan").attr("font-style", word.type === "em" ? "italic" : "normal").attr("class", "text-inner-tspan").attr("font-weight", word.type === "strong" ? "bold" : "normal");
|
|
2347
|
-
if (index === 0) innerTspan.text(decodeHTMLEntities(word.content));
|
|
2348
|
-
else innerTspan.text(" " + decodeHTMLEntities(word.content));
|
|
2349
|
-
});
|
|
2350
|
-
}
|
|
2351
|
-
__name$1(updateTextContentAndStyles, "updateTextContentAndStyles");
|
|
2352
|
-
async function replaceIconSubstring(text, config = {}) {
|
|
2353
|
-
const pendingReplacements = [];
|
|
2354
|
-
text.replace(/(fa[bklrs]?):fa-([\w-]+)/g, (fullMatch, prefix, iconName) => {
|
|
2355
|
-
pendingReplacements.push((async () => {
|
|
2356
|
-
const registeredIconName = `${prefix}:${iconName}`;
|
|
2357
|
-
if (await isIconAvailable(registeredIconName)) return await getIconSVG(registeredIconName, void 0, { class: "label-icon" });
|
|
2358
|
-
else return `<i class='${sanitizeText(fullMatch, config).replace(":", " ")}'></i>`;
|
|
2359
|
-
})());
|
|
2360
|
-
return fullMatch;
|
|
2361
|
-
});
|
|
2362
|
-
const replacements = await Promise.all(pendingReplacements);
|
|
2363
|
-
return text.replace(/(fa[bklrs]?):fa-([\w-]+)/g, () => replacements.shift() ?? "");
|
|
2364
|
-
}
|
|
2365
|
-
__name$1(replaceIconSubstring, "replaceIconSubstring");
|
|
2366
|
-
var createText = /* @__PURE__ */ __name$1(async (el, text = "", { style = "", isTitle = false, classes = "", useHtmlLabels = true, markdown = true, isNode = true, width = 200, addSvgBackground = false } = {}, config) => {
|
|
2367
|
-
log.debug("XYZ createText", text, style, isTitle, classes, useHtmlLabels, isNode, "addSvgBackground: ", addSvgBackground);
|
|
2368
|
-
if (useHtmlLabels) {
|
|
2369
|
-
const decodedReplacedText = await replaceIconSubstring(decodeEntities(markdown ? markdownToHTML(text, config) : nonMarkdownToHTML(text)), config);
|
|
2370
|
-
const inputForKatex = text.replace(/\\\\/g, "\\");
|
|
2371
|
-
return await addHtmlSpan(el, {
|
|
2372
|
-
isNode,
|
|
2373
|
-
label: hasKatex(text) ? inputForKatex : decodedReplacedText,
|
|
2374
|
-
labelStyle: style.replace("fill:", "color:")
|
|
2375
|
-
}, width, classes, addSvgBackground, config);
|
|
2376
|
-
} else {
|
|
2377
|
-
const sanitizeBR = decodeEntities(text.replace(/<br\s*\/?>/g, "<br/>"));
|
|
2378
|
-
const svgLabel = createFormattedText(width, el, markdown ? markdownToLines(sanitizeBR.replace("<br>", "<br/>"), config) : nonMarkdownToLines(sanitizeBR), text ? addSvgBackground : false, !isNode);
|
|
2379
|
-
if (isNode) {
|
|
2380
|
-
if (/stroke:/.exec(style)) style = style.replace("stroke:", "lineColor:");
|
|
2381
|
-
const nodeLabelTextStyle = style.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
|
|
2382
|
-
select_default(svgLabel).attr("style", nodeLabelTextStyle);
|
|
2383
|
-
} else {
|
|
2384
|
-
const edgeLabelRectStyle = style.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/background:/g, "fill:");
|
|
2385
|
-
select_default(svgLabel).select("rect").attr("style", edgeLabelRectStyle.replace(/background:/g, "fill:"));
|
|
2386
|
-
const edgeLabelTextStyle = style.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
|
|
2387
|
-
select_default(svgLabel).select("text").attr("style", edgeLabelTextStyle);
|
|
2388
|
-
}
|
|
2389
|
-
if (isTitle) select_default(svgLabel).selectAll("tspan.text-outer-tspan").classed("title-row", true);
|
|
2390
|
-
else select_default(svgLabel).selectAll("tspan.text-outer-tspan").classed("row", true);
|
|
2391
|
-
return svgLabel;
|
|
2392
|
-
}
|
|
2393
|
-
}, "createText");
|
|
2394
|
-
//#endregion
|
|
2395
|
-
export { unknownIcon as a, registerIconPacks as i, createText as n, dedent as o, getIconSVG as r, computeDimensionOfText as t };
|