@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.
Files changed (921) hide show
  1. package/api.ts +3 -3
  2. package/bundled-realms/base/command.gts +73 -0
  3. package/bundled-test-harness/assets/adapter-TgpmkD23.js +2 -0
  4. package/bundled-test-harness/assets/add-field-to-card-definition-command-test-BVVD6_Wq.js +111 -0
  5. package/bundled-test-harness/assets/add-workspace-test-BvvYJ2Fk.js +71 -0
  6. package/bundled-test-harness/assets/ai-assistant-Ba_RBqf6.js +129 -0
  7. package/bundled-test-harness/assets/ai-assistant-panel-service-test-DK87n1hh.js +95 -0
  8. package/bundled-test-harness/assets/ai-assistant-test-CZATBlJS.js +2137 -0
  9. package/bundled-test-harness/assets/ai-function-generation-test-e58MHziu.js +996 -0
  10. package/bundled-test-harness/assets/ai-module-creation-test-CEieL3Fa.js +150 -0
  11. package/bundled-test-harness/assets/aibot-message-DhTbAqNk.js +1185 -0
  12. package/bundled-test-harness/assets/amd-transpile-test-CSk5COu7.js +425 -0
  13. package/bundled-test-harness/assets/app-Btfy4HWI.js +21464 -0
  14. package/bundled-test-harness/assets/apply-boxel-formatting-test-BHTP9NBp.js +134 -0
  15. package/bundled-test-harness/assets/apply-markdown-edit-test-BETCndeK.js +230 -0
  16. package/bundled-test-harness/assets/apply-search-replace-block-test-KNolar0-.js +630 -0
  17. package/bundled-test-harness/assets/arc-CA8yZ0zo.js +199 -0
  18. package/bundled-test-harness/assets/architecture-7EHR7CIX-C5JFMGdb.js +3 -0
  19. package/bundled-test-harness/assets/architectureDiagram-3BPJPVTR-CmVPjKgm.js +7400 -0
  20. package/bundled-test-harness/assets/auth-error-guard-test-D0rKESg_.js +30 -0
  21. package/bundled-test-harness/assets/auth-service-worker-test-DGg_vbKo.js +538 -0
  22. package/bundled-test-harness/assets/authed-fetch-test-CHF3eh_H.js +75 -0
  23. package/bundled-test-harness/assets/avif-image-def-test-p9tiyh4_.js +186 -0
  24. package/bundled-test-harness/assets/base-realm-Chjzrp6m.js +2 -0
  25. package/bundled-test-harness/assets/base-realm-DpSTsZxD.js +140 -0
  26. package/bundled-test-harness/assets/basic-test-D7qEz4hw.js +128 -0
  27. package/bundled-test-harness/assets/bfm-card-references-test-D-m1YnL8.js +577 -0
  28. package/bundled-test-harness/assets/binary-upload-dedupe-test-8RKK73EG.js +308 -0
  29. package/bundled-test-harness/assets/blockDiagram-GPEHLZMM-BdVFTa2C.js +4355 -0
  30. package/bundled-test-harness/assets/bot-registration-test-9zYny2wR.js +99 -0
  31. package/bundled-test-harness/assets/box-test-0T92xi3A.js +51 -0
  32. package/bundled-test-harness/assets/brand-guide-attachments-test-5ZtPn4cC.js +87 -0
  33. package/bundled-test-harness/assets/brand-guide-custom-css-test-CKKSgKyp.js +135 -0
  34. package/bundled-test-harness/assets/brand-logo-mark-field-test-nlNNQ3rw.js +87 -0
  35. package/bundled-test-harness/assets/broken-link-template-test-BGIExVof.js +345 -0
  36. package/bundled-test-harness/assets/browser-index-BaR-gTqG.js +3 -0
  37. package/bundled-test-harness/assets/browser-index-G4NKYBAj.js +8802 -0
  38. package/bundled-test-harness/assets/c4Diagram-AAUBKEIU-DyugX7zz.js +3764 -0
  39. package/bundled-test-harness/assets/cached-fetch-test-MtqvDphJ.js +93 -0
  40. package/bundled-test-harness/assets/can-read-realm-test-BZmwIOqS.js +58 -0
  41. package/bundled-test-harness/assets/cancel-indexing-job-test-BsQtQbDu.js +71 -0
  42. package/bundled-test-harness/assets/card-api-test-BxQ8f0-c.js +196 -0
  43. package/bundled-test-harness/assets/card-basics-test-B-uBZ8o4.js +4895 -0
  44. package/bundled-test-harness/assets/card-catalog-test-YmwmyIKf.js +377 -0
  45. package/bundled-test-harness/assets/card-copy-test-LoqdH1CQ.js +777 -0
  46. package/bundled-test-harness/assets/card-def-field-def-relationships-test-DvtBA1jv.js +560 -0
  47. package/bundled-test-harness/assets/card-def-menu-items-test-DHnd0LuM.js +182 -0
  48. package/bundled-test-harness/assets/card-delete-test-vKF0Jf1X.js +412 -0
  49. package/bundled-test-harness/assets/card-directory-name-test-CbCuPwSz.js +71 -0
  50. package/bundled-test-harness/assets/card-playground-test-CRIP3b5-.js +1497 -0
  51. package/bundled-test-harness/assets/card-prerender-ClYlSOBU.js +12661 -0
  52. package/bundled-test-harness/assets/card-search-adorn-test-Mggk5ZgY.js +128 -0
  53. package/bundled-test-harness/assets/card-search-query-builder-test-Cdl12s50.js +88 -0
  54. package/bundled-test-harness/assets/card-search-selection-menu-test-CtuCCLoB.js +108 -0
  55. package/bundled-test-harness/assets/channel-BKUMepxs.js +8 -0
  56. package/bundled-test-harness/assets/check-correctness-test-DBh8DT_f.js +252 -0
  57. package/bundled-test-harness/assets/chunk-2J33WTMH-ClrRoNQU.js +31 -0
  58. package/bundled-test-harness/assets/chunk-3OPIFGDE-g_0Oh8jN.js +5548 -0
  59. package/bundled-test-harness/assets/chunk-4BX2VUAB-D2LCc7Y9.js +11 -0
  60. package/bundled-test-harness/assets/chunk-4EGX6M5U-D8vRS5IG.js +44 -0
  61. package/bundled-test-harness/assets/chunk-55IACEB6-C5j4VAmb.js +10 -0
  62. package/bundled-test-harness/assets/chunk-5DO6E6H7-CPb3jsP0.js +27 -0
  63. package/bundled-test-harness/assets/chunk-5ZQYHXKU-BlVb7vgG.js +1767 -0
  64. package/bundled-test-harness/assets/chunk-727SXJPM-C_NVCDMC.js +3877 -0
  65. package/bundled-test-harness/assets/chunk-AQP2D5EJ-CpwrMix_.js +2622 -0
  66. package/bundled-test-harness/assets/chunk-BR22UD5L-AF0NWdjT.js +85 -0
  67. package/bundled-test-harness/assets/chunk-BSJP7CBP-Dgun5vYb.js +114 -0
  68. package/bundled-test-harness/assets/chunk-CSCIHK7Q-D7nFiAZ-.js +6144 -0
  69. package/bundled-test-harness/assets/chunk-FHYWG6QK-2nuXS9PL.js +27 -0
  70. package/bundled-test-harness/assets/chunk-FMBD7UC4-O-Y8VK1S.js +20 -0
  71. package/bundled-test-harness/assets/chunk-KSCS5N6A-Du5-DprU.js +871 -0
  72. package/bundled-test-harness/assets/chunk-L5ZTLDWV-C2lDtkix.js +43 -0
  73. package/bundled-test-harness/assets/chunk-LZXEDZCA-qAMsMZkF.js +65 -0
  74. package/bundled-test-harness/assets/chunk-MPE355IW-DcT_60Oq.js +27 -0
  75. package/bundled-test-harness/assets/chunk-MZUSXYTE-BsH_YmnC.js +36 -0
  76. package/bundled-test-harness/assets/chunk-N66VUXT2-DMyMHgoS.js +70 -0
  77. package/bundled-test-harness/assets/chunk-ND2GUHAM-DO1Znn8O.js +93 -0
  78. package/bundled-test-harness/assets/chunk-NZK2D7GU-B1YWBxHm.js +89 -0
  79. package/bundled-test-harness/assets/chunk-O5CBEL6O-CZVSBsRq.js +2395 -0
  80. package/bundled-test-harness/assets/chunk-PUPMXCY4-DzOK-Vbt.js +27 -0
  81. package/bundled-test-harness/assets/chunk-QZHKN3VN-DJFnRn99.js +20 -0
  82. package/bundled-test-harness/assets/chunk-UIBZB4QT-5KIxBxjk.js +27 -0
  83. package/bundled-test-harness/assets/chunk-WCWK7LTN-BsQwhliq.js +36 -0
  84. package/bundled-test-harness/assets/chunk-WU5MYG2G-DUVb5MAo.js +12 -0
  85. package/bundled-test-harness/assets/chunk-XPW4576I-DLaJYAOU.js +2341 -0
  86. package/bundled-test-harness/assets/classDiagram-4FO5ZUOK-DjP2uozG.js +31 -0
  87. package/bundled-test-harness/assets/classDiagram-v2-Q7XG4LA2-Dt6ps5uz.js +31 -0
  88. package/bundled-test-harness/assets/code-equality-assertion-BBezFT13.js +474 -0
  89. package/bundled-test-harness/assets/code-patches-test-DzoQGARM.js +1128 -0
  90. package/bundled-test-harness/assets/code-patching-test-D8r-pJ5w.js +114 -0
  91. package/bundled-test-harness/assets/code-ref-test-DU3HChNz.js +138 -0
  92. package/bundled-test-harness/assets/code-semantics-service-test-DArUotKy.js +65 -0
  93. package/bundled-test-harness/assets/code-submode-test-h5wWKsz2.js +1762 -0
  94. package/bundled-test-harness/assets/codeblocks-test-FbuwTy5v.js +492 -0
  95. package/bundled-test-harness/assets/codemirror-context-DVlC9C78.js +2 -0
  96. package/bundled-test-harness/assets/codemirror-editor-test-JDT9uwqM.js +1176 -0
  97. package/bundled-test-harness/assets/color-field-test-BssRlQAX.js +213 -0
  98. package/bundled-test-harness/assets/command-definitions-test-J21kOxBs.js +72 -0
  99. package/bundled-test-harness/assets/commands-DAo0DgCX.js +1379 -0
  100. package/bundled-test-harness/assets/commands-calling-test-C3deVvv_.js +200 -0
  101. package/bundled-test-harness/assets/commands-test--0zViqs2.js +1041 -0
  102. package/bundled-test-harness/assets/commands-test-BwNn2npL.js +1145 -0
  103. package/bundled-test-harness/assets/computed-test-BD_KrZmc.js +882 -0
  104. package/bundled-test-harness/assets/container-C8gu0I0Q.js +14605 -0
  105. package/bundled-test-harness/assets/convert-to-class-name-test-CX21VRzM.js +17 -0
  106. package/bundled-test-harness/assets/copy-and-edit-test-BUy_o8XJ.js +291 -0
  107. package/bundled-test-harness/assets/copy-card-test-LWbugEPe.js +156 -0
  108. package/bundled-test-harness/assets/copy-file-to-realm-test-BS25EUGV.js +99 -0
  109. package/bundled-test-harness/assets/copy-source-test-Dh33cqM8.js +56 -0
  110. package/bundled-test-harness/assets/cose-bilkent-S5V4N54A-CjAFDdpS.js +4275 -0
  111. package/bundled-test-harness/assets/create-file-test-DOc3YYij.js +963 -0
  112. package/bundled-test-harness/assets/create-file-test-DgUya7-i.js +397 -0
  113. package/bundled-test-harness/assets/create-listing-modal-test-DZxZBYS7.js +194 -0
  114. package/bundled-test-harness/assets/create-listing-pr-request-Aw0ms76l.js +64 -0
  115. package/bundled-test-harness/assets/create-listing-pr-request-test-CFvqkgky.js +117 -0
  116. package/bundled-test-harness/assets/create-spec-test-BTRt8oe8.js +239 -0
  117. package/bundled-test-harness/assets/csv-file-def-test-BVffg8wL.js +101 -0
  118. package/bundled-test-harness/assets/dagre-BM42HDAG-GoRrN65x.js +606 -0
  119. package/bundled-test-harness/assets/dagre-ByxOOmYM.js +4195 -0
  120. package/bundled-test-harness/assets/date-time-fields-test-BEcfCqgB.js +322 -0
  121. package/bundled-test-harness/assets/debug-message-test-CAxbe6x2.js +119 -0
  122. package/bundled-test-harness/assets/diagram-2AECGRRQ-B6-pvp9H.js +279 -0
  123. package/bundled-test-harness/assets/diagram-5GNKFQAL-C9M7hXIc.js +142 -0
  124. package/bundled-test-harness/assets/diagram-KO2AKTUF-BNJvCLGK.js +551 -0
  125. package/bundled-test-harness/assets/diagram-LMA3HP47-hlJyTtqP.js +184 -0
  126. package/bundled-test-harness/assets/diagram-OG6HWLK6-BvPoB3IH.js +857 -0
  127. package/bundled-test-harness/assets/diffing-test-De9Ev_Fr.js +210 -0
  128. package/bundled-test-harness/assets/dist-BsEojs3T.js +232 -0
  129. package/bundled-test-harness/assets/dist-CY3T64Hs.js +105 -0
  130. package/bundled-test-harness/assets/dist-q2xz8RMj.js +2 -0
  131. package/bundled-test-harness/assets/editor-test-DOI_TvWQ.js +551 -0
  132. package/bundled-test-harness/assets/editor.main-CpuM6HrX.js +43566 -0
  133. package/bundled-test-harness/assets/editor.main-DkMgS1qm.js +3 -0
  134. package/bundled-test-harness/assets/email-field-test-t-80Z94b.js +74 -0
  135. package/bundled-test-harness/assets/enum-field-test-DVp-2pip.js +909 -0
  136. package/bundled-test-harness/assets/erDiagram-TEJ5UH35-CYniRkua.js +2041 -0
  137. package/bundled-test-harness/assets/error-display-test-IuRxKyLz.js +343 -0
  138. package/bundled-test-harness/assets/evaluate-module-test-DdnfbFp-.js +66 -0
  139. package/bundled-test-harness/assets/eventmodeling-FCH6USID-BO089-Cs.js +3 -0
  140. package/bundled-test-harness/assets/execute-atomic-operations-test-CgbvrBlu.js +75 -0
  141. package/bundled-test-harness/assets/externals-5atxeNU4.js +5533 -0
  142. package/bundled-test-harness/assets/extract-css-variables-test-Cii-CYfc.js +169 -0
  143. package/bundled-test-harness/assets/fallback-banner-test-CUUd-Wuu.js +227 -0
  144. package/bundled-test-harness/assets/fallback-banner-test-D4NWyahM.js +53 -0
  145. package/bundled-test-harness/assets/fallback-models-test-2MJ1jAs8.js +163 -0
  146. package/bundled-test-harness/assets/fetch-card-json-test-Cruqsq6S.js +63 -0
  147. package/bundled-test-harness/assets/fetcher-test-CkHlbTzz.js +85 -0
  148. package/bundled-test-harness/assets/field-configuration-test-CqwsGNib.js +535 -0
  149. package/bundled-test-harness/assets/field-markdown-domain-test-DPjz8i4Y.js +615 -0
  150. package/bundled-test-harness/assets/field-markdown-primitives-test-Dw07UtT7.js +362 -0
  151. package/bundled-test-harness/assets/field-markdown-specialized-test-C-t34PAw.js +527 -0
  152. package/bundled-test-harness/assets/field-path-parser-test-BeNjacPu.js +387 -0
  153. package/bundled-test-harness/assets/field-playground-test-BILTGxqr.js +902 -0
  154. package/bundled-test-harness/assets/field-support-predicates-test-Df24w0Wa.js +170 -0
  155. package/bundled-test-harness/assets/field-test-helpers-P22hxBNz.js +45 -0
  156. package/bundled-test-harness/assets/file-attachment-test-Cjg4NBeM.js +635 -0
  157. package/bundled-test-harness/assets/file-chooser-test-Cl0XujPT.js +439 -0
  158. package/bundled-test-harness/assets/file-def-live-reload-test-D4Obzi12.js +50 -0
  159. package/bundled-test-harness/assets/file-def-manager-DUgR-gjs.js +470 -0
  160. package/bundled-test-harness/assets/file-def-manager-canonicalize-test-D_LWVsvz.js +451 -0
  161. package/bundled-test-harness/assets/file-def-menu-items-test-xvsUTOK4.js +114 -0
  162. package/bundled-test-harness/assets/file-def-navigation-test-DxPceB7E.js +109 -0
  163. package/bundled-test-harness/assets/file-def-serialization-test-CpwbDb8p.js +87 -0
  164. package/bundled-test-harness/assets/file-def-test-CEnKcvW9.js +219 -0
  165. package/bundled-test-harness/assets/file-tree-test-DE2aH6iq.js +773 -0
  166. package/bundled-test-harness/assets/flac-audio-def-test-BCg7LnR6.js +138 -0
  167. package/bundled-test-harness/assets/flowDiagram-I6XJVG4X-Xv8-LIxQ.js +4883 -0
  168. package/bundled-test-harness/assets/formatted-aibot-message-test-CsxFn62P.js +366 -0
  169. package/bundled-test-harness/assets/formatted-user-message-test-DjZc8qnA.js +43 -0
  170. package/bundled-test-harness/assets/freestyle-test-QEZaZCNJ.js +17 -0
  171. package/bundled-test-harness/assets/full-reindex-realm-test-C_c2OTTD.js +103 -0
  172. package/bundled-test-harness/assets/ganttDiagram-6RSMTGT7-DmvkzS5w.js +4060 -0
  173. package/bundled-test-harness/assets/garbage-collection-test-BVuvfidI.js +373 -0
  174. package/bundled-test-harness/assets/general-test-Ydis4jEq.js +926 -0
  175. package/bundled-test-harness/assets/generate-css-variables-test-CZCmgTAO.js +88 -0
  176. package/bundled-test-harness/assets/generate-example-cards-one-shot-test-x_szhkSN.js +67 -0
  177. package/bundled-test-harness/assets/get-available-realm-identifiers-test-DvRnwCHR.js +49 -0
  178. package/bundled-test-harness/assets/get-catalog-realm-identifiers-test-46TE-XA0.js +49 -0
  179. package/bundled-test-harness/assets/get-default-writable-realm-test-DaAkxTNh.js +56 -0
  180. package/bundled-test-harness/assets/get-realm-of-resource-identifier-test-9XEGHVOV.js +55 -0
  181. package/bundled-test-harness/assets/get-relationship-membership-state-test-BY4gk5JZ.js +1306 -0
  182. package/bundled-test-harness/assets/get-type-refs-from-filter-test-BynlX0JE.js +136 -0
  183. package/bundled-test-harness/assets/get-user-system-card-test-D98Xxn1k.js +52 -0
  184. package/bundled-test-harness/assets/gif-image-def-test-FwKGFGWw.js +161 -0
  185. package/bundled-test-harness/assets/gitGraph-WXDBUCRP-Bmn0Z_Xi.js +3 -0
  186. package/bundled-test-harness/assets/gitGraphDiagram-PVQCEYII-BAo0G82W.js +1150 -0
  187. package/bundled-test-harness/assets/gts-file-def-test-ivEk8Muv.js +99 -0
  188. package/bundled-test-harness/assets/head-format-preview-test-CNhvk724.js +156 -0
  189. package/bundled-test-harness/assets/helpers-BH4Yfo_2.js +5 -0
  190. package/bundled-test-harness/assets/host-mode-test-BRNndb2h.js +391 -0
  191. package/bundled-test-harness/assets/host-submode-test-DHd0x-6x.js +904 -0
  192. package/bundled-test-harness/assets/index-query-engine-test-7Fzc09fG.js +2548 -0
  193. package/bundled-test-harness/assets/index-writer-test-D3cL2q2N.js +1842 -0
  194. package/bundled-test-harness/assets/indexeddb-crypto-store-C09Shau-.js +49434 -0
  195. package/bundled-test-harness/assets/info-J43DQDTF-Dz5b1Xgc.js +3 -0
  196. package/bundled-test-harness/assets/infoDiagram-5YYISTIA-Dl8XvIfi.js +23 -0
  197. package/bundled-test-harness/assets/inspector-test-CVZVQdIJ.js +1776 -0
  198. package/bundled-test-harness/assets/instance-filter-matcher-test-C-4z6qUt.js +564 -0
  199. package/bundled-test-harness/assets/instantiate-card-test-eQ22Vt_m.js +104 -0
  200. package/bundled-test-harness/assets/interact-submode-creation-and-permissions-test-hXPsRPMU.js +497 -0
  201. package/bundled-test-harness/assets/interact-submode-setup-D55IIVc5.js +558 -0
  202. package/bundled-test-harness/assets/interact-submode-test-BwrtFe2m.js +725 -0
  203. package/bundled-test-harness/assets/invalidate-realm-identifiers-test-BMk7yd-D.js +101 -0
  204. package/bundled-test-harness/assets/invite-user-to-room-test-B5B0umJQ.js +67 -0
  205. package/bundled-test-harness/assets/ishikawaDiagram-YF4QCWOH-BrO7NAng.js +1009 -0
  206. package/bundled-test-harness/assets/isolated-render-test-DX1wdHoS.js +51 -0
  207. package/bundled-test-harness/assets/item-button-QkVr-FW0.js +203 -0
  208. package/bundled-test-harness/assets/javascript-BWNQhcCY.js +75 -0
  209. package/bundled-test-harness/assets/job-priority-header-test-CuBZloLK.js +81 -0
  210. package/bundled-test-harness/assets/journeyDiagram-JHISSGLW-B7BT66v0.js +1256 -0
  211. package/bundled-test-harness/assets/jpg-image-def-test-DEx462nY.js +430 -0
  212. package/bundled-test-harness/assets/json-file-def-test-Cray6ly6.js +92 -0
  213. package/bundled-test-harness/assets/kanban-definition-UN3LZRKU-C0E5Vmr_.js +1284 -0
  214. package/bundled-test-harness/assets/last-modified-date-test-BzE25NOB.js +18 -0
  215. package/bundled-test-harness/assets/limited-set-test-NwGNoXKc.js +123 -0
  216. package/bundled-test-harness/assets/line-BbGOk93s.js +55 -0
  217. package/bundled-test-harness/assets/linear-CHTo-YQl.js +417 -0
  218. package/bundled-test-harness/assets/linksto-broken-link-placeholder-test-CZdgRM1b.js +315 -0
  219. package/bundled-test-harness/assets/linksto-error-sentinel-test-DhsHO7Xs.js +236 -0
  220. package/bundled-test-harness/assets/linksto-many-broken-link-placeholder-test-mt-RrRta.js +303 -0
  221. package/bundled-test-harness/assets/linksto-many-per-slot-access-test-CdGUXZsi.js +301 -0
  222. package/bundled-test-harness/assets/linksto-sentinel-roundtrip-test-DOJ_6Gwf.js +258 -0
  223. package/bundled-test-harness/assets/linksto-singular-js-access-contract-test-BZC-gslF.js +194 -0
  224. package/bundled-test-harness/assets/live-prerendered-search-BSkwf5AH.js +639 -0
  225. package/bundled-test-harness/assets/live-test-DTfxZnsy.js +100 -0
  226. package/bundled-test-harness/assets/live-test-WOMYpc1I.js +2 -0
  227. package/bundled-test-harness/assets/loader-icon-error-test-F_ukQytn.js +62 -0
  228. package/bundled-test-harness/assets/loader-parallel-prefetch-test-DpNaFnhc.js +257 -0
  229. package/bundled-test-harness/assets/loader-retry-test-EQ2X0bFS.js +173 -0
  230. package/bundled-test-harness/assets/loader-test-BYkWAwc4.js +245 -0
  231. package/bundled-test-harness/assets/loading-test-jfWH_OpH.js +63 -0
  232. package/bundled-test-harness/assets/login-error-text-test-Cldr1X6h.js +51 -0
  233. package/bundled-test-harness/assets/m4a-audio-def-test-BQ1WKApD.js +185 -0
  234. package/bundled-test-harness/assets/main-ByAsLO_g.js +5 -0
  235. package/bundled-test-harness/assets/markdown-fallback-test-dtTaGP1s.js +316 -0
  236. package/bundled-test-harness/assets/markdown-file-def-test-shW9Xxd1.js +286 -0
  237. package/bundled-test-harness/assets/markdown-helpers-test-B6H7p4ay.js +183 -0
  238. package/bundled-test-harness/assets/markdown-highlighting-test-ZIrFNHRe.js +244 -0
  239. package/bundled-test-harness/assets/markdown-preview-KII3nJ2M.js +69 -0
  240. package/bundled-test-harness/assets/markdown-preview-test-De-IaUbK.js +237 -0
  241. package/bundled-test-harness/assets/marked-sync-CGSehq4u.js +2 -0
  242. package/bundled-test-harness/assets/marked-sync-DenC7QgC.js +2561 -0
  243. package/bundled-test-harness/assets/marked-sync-test-jZBr20Hq.js +146 -0
  244. package/bundled-test-harness/assets/matrix-service-sliding-sync-test-Ax4kyAMt.js +33 -0
  245. package/bundled-test-harness/assets/mermaid-parser.core-B_3tzKUl.js +114 -0
  246. package/bundled-test-harness/assets/mermaid.core-D2hqA7Hq.js +1700 -0
  247. package/bundled-test-harness/assets/message-service-subscription-test-B42KnJ91.js +113 -0
  248. package/bundled-test-harness/assets/mindmap-definition-RKZ34NQL-IZz7Qpd0.js +1347 -0
  249. package/bundled-test-harness/assets/mock-matrix-BhFWlMMr.js +14292 -0
  250. package/bundled-test-harness/assets/mock-matrix-CrtMntcN.js +2 -0
  251. package/bundled-test-harness/assets/module-transpile-cache-test-BtWN4OiM.js +66 -0
  252. package/bundled-test-harness/assets/monaco.contribution-B1hOUP3w.js +2 -0
  253. package/bundled-test-harness/assets/monaco.contribution-DhNsYtZe.js +2 -0
  254. package/bundled-test-harness/assets/monaco.contribution-DvJDImx2.js +103 -0
  255. package/bundled-test-harness/assets/monaco.contribution-yXcOyzue.js +243 -0
  256. package/bundled-test-harness/assets/mp3-audio-def-test-D365TuA7.js +129 -0
  257. package/bundled-test-harness/assets/mutex-test-DY09HLvv.js +71 -0
  258. package/bundled-test-harness/assets/number-field-test-wYaQjnzA.js +153 -0
  259. package/bundled-test-harness/assets/ogg-audio-def-test-Dl01PP31.js +191 -0
  260. package/bundled-test-harness/assets/open-create-listing-modal-test-D8C2PUFv.js +117 -0
  261. package/bundled-test-harness/assets/open-workspace-test-DN2n8IkC.js +48 -0
  262. package/bundled-test-harness/assets/operator-mode-acceptance-test-B_hzJZo4.js +1044 -0
  263. package/bundled-test-harness/assets/operator-mode-card-catalog-test-Hrrnkdt9.js +989 -0
  264. package/bundled-test-harness/assets/operator-mode-links-test-DC6sc9TZ.js +797 -0
  265. package/bundled-test-harness/assets/operator-mode-state-service-test-Aqz9_v0U.js +122 -0
  266. package/bundled-test-harness/assets/operator-mode-test-CLgpZGEM.js +617 -0
  267. package/bundled-test-harness/assets/operator-mode-ui-test-CDRrORfC.js +985 -0
  268. package/bundled-test-harness/assets/ordinal-BIRuJQBH.js +85 -0
  269. package/bundled-test-harness/assets/overlay-menu-items-test-of24KuXp.js +316 -0
  270. package/bundled-test-harness/assets/packet-YPE3B663-hs92geQG.js +3 -0
  271. package/bundled-test-harness/assets/panel-rIdTMDfK.js +3371 -0
  272. package/bundled-test-harness/assets/past-sessions-test-ZKr4ACF0.js +321 -0
  273. package/bundled-test-harness/assets/patch-code-test-BZa-Itrt.js +203 -0
  274. package/bundled-test-harness/assets/patch-fields-test-BkaHs-zo.js +992 -0
  275. package/bundled-test-harness/assets/patch-instance-test-CRMgg52p.js +287 -0
  276. package/bundled-test-harness/assets/persist-module-inspector-view-test-CqNy2RXR.js +62 -0
  277. package/bundled-test-harness/assets/phone-number-field-test-CV6gntON.js +72 -0
  278. package/bundled-test-harness/assets/pie-LRSECV5Y-DcM5pWE3.js +3 -0
  279. package/bundled-test-harness/assets/pieDiagram-4H26LBE5-CtO8RHpU.js +253 -0
  280. package/bundled-test-harness/assets/plan-install-test-lfBTuWXU.js +417 -0
  281. package/bundled-test-harness/assets/playground-VscW9KdT.js +57 -0
  282. package/bundled-test-harness/assets/png-image-def-test-CRspcIHP.js +222 -0
  283. package/bundled-test-harness/assets/prerender-file-extract-test-D3SpxfMI.js +176 -0
  284. package/bundled-test-harness/assets/prerender-html-test-WWptGXJ0.js +615 -0
  285. package/bundled-test-harness/assets/prerender-meta-test-DwQEGN6j.js +388 -0
  286. package/bundled-test-harness/assets/prerender-module-test-BM1AOwRF.js +195 -0
  287. package/bundled-test-harness/assets/prerendered-card-search-test-BVJ8IHLe.js +708 -0
  288. package/bundled-test-harness/assets/preview-format-test-DDpiXDN_.js +103 -0
  289. package/bundled-test-harness/assets/preview-test-D2UV1C5D.js +455 -0
  290. package/bundled-test-harness/assets/published-realm-url-DUIZzAJ5.js +52 -0
  291. package/bundled-test-harness/assets/published-realm-url-test-CIgSf4Ub.js +137 -0
  292. package/bundled-test-harness/assets/qs-test-Bi679H5w.js +36 -0
  293. package/bundled-test-harness/assets/quadrantDiagram-W4KKPZXB-GOTAKsCo.js +2324 -0
  294. package/bundled-test-harness/assets/query-field-barrier-test-BlOuVxdS.js +118 -0
  295. package/bundled-test-harness/assets/query-field-error-sentinel-test-BsB76iUQ.js +202 -0
  296. package/bundled-test-harness/assets/query-field-normalization-test-B2YodJCr.js +271 -0
  297. package/bundled-test-harness/assets/query-field-schema-test-CQhJASFx.js +231 -0
  298. package/bundled-test-harness/assets/query-fields-test-CaZ19leM.js +535 -0
  299. package/bundled-test-harness/assets/queue-test-DrSip6mJ.js +216 -0
  300. package/bundled-test-harness/assets/radar-GUYGQ44K-BkAe1nkp.js +3 -0
  301. package/bundled-test-harness/assets/read-card-for-ai-assistant-test-D8yB-OL9.js +91 -0
  302. package/bundled-test-harness/assets/read-file-for-ai-assistant-test-K3M0-lBD.js +45 -0
  303. package/bundled-test-harness/assets/read-source-test-CKlb0ORb.js +67 -0
  304. package/bundled-test-harness/assets/read-text-file-test-CJdasDDU.js +124 -0
  305. package/bundled-test-harness/assets/realm-DhUCLR5r.js +884 -0
  306. package/bundled-test-harness/assets/realm-field-test-kFgxphDI.js +101 -0
  307. package/bundled-test-harness/assets/realm-index-card-id-test-DAnMAqw4.js +18 -0
  308. package/bundled-test-harness/assets/realm-indexing-test-BQkX-Dat.js +4018 -0
  309. package/bundled-test-harness/assets/realm-paths-test-CmEi9rzu.js +33 -0
  310. package/bundled-test-harness/assets/realm-querying-test-eq3qSXLu.js +1062 -0
  311. package/bundled-test-harness/assets/realm-test-DLQAtdMt.js +2409 -0
  312. package/bundled-test-harness/assets/reasoning-test-CwTfyDlj.js +234 -0
  313. package/bundled-test-harness/assets/recent-files-test-MVIGLp8S.js +449 -0
  314. package/bundled-test-harness/assets/reindex-realm-test-BwLgJeB3.js +119 -0
  315. package/bundled-test-harness/assets/relationship-loading-state-test-B4Ca43yD.js +289 -0
  316. package/bundled-test-harness/assets/render-component-BKEihV4U.js +2 -0
  317. package/bundled-test-harness/assets/render-error-test-DWD6tfNe.js +22 -0
  318. package/bundled-test-harness/assets/render-service-test-BjuoVrUK.js +87 -0
  319. package/bundled-test-harness/assets/render-timer-stub-test-BgUY5u3X.js +84 -0
  320. package/bundled-test-harness/assets/rendered-markdown-DOP-s6fW.js +211 -0
  321. package/bundled-test-harness/assets/rendered-markdown-test-CD02UYwA.js +360 -0
  322. package/bundled-test-harness/assets/requirementDiagram-4Y6WPE33-DJIy7eR9.js +2550 -0
  323. package/bundled-test-harness/assets/rich-markdown-field-test-BJeQx1tL.js +806 -0
  324. package/bundled-test-harness/assets/room-message-test-CjD7FlPD.js +171 -0
  325. package/bundled-test-harness/assets/rust-crypto-GS0FFZ7H.js +16141 -0
  326. package/bundled-test-harness/assets/sanitize-module-list-test-gi0pcqSy.js +68 -0
  327. package/bundled-test-harness/assets/sankeyDiagram-5OEKKPKP-wBsbt1Mr.js +1357 -0
  328. package/bundled-test-harness/assets/schema-editor-test-BSqu8W3e.js +784 -0
  329. package/bundled-test-harness/assets/schema-generation-test-DVFuSsLl.js +28 -0
  330. package/bundled-test-harness/assets/scrolling-test-CpzkRiBS.js +292 -0
  331. package/bundled-test-harness/assets/search-and-choose-test-DVWX4XRb.js +156 -0
  332. package/bundled-test-harness/assets/search-cache-key-test-BMnYM4a5.js +79 -0
  333. package/bundled-test-harness/assets/search-command-test-kEfT0AO7.js +135 -0
  334. package/bundled-test-harness/assets/search-correlation-id-test-D08FtVUZ.js +101 -0
  335. package/bundled-test-harness/assets/search-data-test-CTrBEc1m.js +243 -0
  336. package/bundled-test-harness/assets/search-google-images-test-UnKG8qCp.js +168 -0
  337. package/bundled-test-harness/assets/search-in-flight-key-test-9Va-JXFz.js +79 -0
  338. package/bundled-test-harness/assets/search-test-COlO2lZi.js +847 -0
  339. package/bundled-test-harness/assets/send-ai-assistant-message-test-BPjOjt2R.js +52 -0
  340. package/bundled-test-harness/assets/send-bot-trigger-event-test-BB4lHbB_.js +56 -0
  341. package/bundled-test-harness/assets/send-request-via-proxy-test-U8frmHZA.js +333 -0
  342. package/bundled-test-harness/assets/sending-test-DjEzksEX.js +317 -0
  343. package/bundled-test-harness/assets/sequenceDiagram-3UESZ5HK-QAEjhoay.js +5551 -0
  344. package/bundled-test-harness/assets/serialization-test-DHdLriC8.js +8283 -0
  345. package/bundled-test-harness/assets/set-user-system-card-test-C8I1lDBh.js +59 -0
  346. package/bundled-test-harness/assets/setup-BkuybBki.js +769 -0
  347. package/bundled-test-harness/assets/setup-gxkWJKID.js +2 -0
  348. package/bundled-test-harness/assets/show-card-test-DHKQ6AI4.js +362 -0
  349. package/bundled-test-harness/assets/skills-test-DlMgZrPV.js +568 -0
  350. package/bundled-test-harness/assets/spec-test-s9Zj7x2E.js +1012 -0
  351. package/bundled-test-harness/assets/stateDiagram-AJRCARHV-nEhf3efZ.js +363 -0
  352. package/bundled-test-harness/assets/stateDiagram-v2-BHNVJYJU-tZz_3w-7.js +29 -0
  353. package/bundled-test-harness/assets/store-add-test-D44FWRl3.js +52 -0
  354. package/bundled-test-harness/assets/store-test-TTmNBs5v.js +1562 -0
  355. package/bundled-test-harness/assets/summarize-session-test-DHAuNb5K.js +169 -0
  356. package/bundled-test-harness/assets/svg-image-def-test-C2_GGzR6.js +164 -0
  357. package/bundled-test-harness/assets/switch-submode-test-CfGaoxVe.js +168 -0
  358. package/bundled-test-harness/assets/test-realm-service-worker-C21o7yvW.js +73 -0
  359. package/bundled-test-harness/assets/tests-BSt6h9iC.js +2771 -0
  360. package/bundled-test-harness/assets/text-file-def-test-CR4QO7e_.js +93 -0
  361. package/bundled-test-harness/assets/text-input-validator-test-DYS3mFj9.js +155 -0
  362. package/bundled-test-harness/assets/text-suggestion-test-GUxJ7WtF.js +339 -0
  363. package/bundled-test-harness/assets/theme-card-test-Ba2KqFB8.js +573 -0
  364. package/bundled-test-harness/assets/timeline-definition-PNZ67QCA-BQYyTIei.js +1545 -0
  365. package/bundled-test-harness/assets/transform-cards-test-DyA8eCom.js +341 -0
  366. package/bundled-test-harness/assets/treeView-BLDUP644-Z4ezSvef.js +3 -0
  367. package/bundled-test-harness/assets/treemap-LRROVOQU-Bf5rk_He.js +3 -0
  368. package/bundled-test-harness/assets/ts-file-def-test-Cxnc6H74.js +90 -0
  369. package/bundled-test-harness/assets/tsMode-oJEHe-CR.js +968 -0
  370. package/bundled-test-harness/assets/typescript-DLbb7q56.js +2 -0
  371. package/bundled-test-harness/assets/update-room-skills-test-B7VLHU3-.js +197 -0
  372. package/bundled-test-harness/assets/url-test-w-69Zycf.js +103 -0
  373. package/bundled-test-harness/assets/use-ai-assistant-test-DJkFz7_b.js +330 -0
  374. package/bundled-test-harness/assets/validate-realm-test-BioLutB8.js +53 -0
  375. package/bundled-test-harness/assets/vennDiagram-CIIHVFJN-9eLwsQET.js +2833 -0
  376. package/bundled-test-harness/assets/wardley-L42UT6IY-qNP5_917.js +3 -0
  377. package/bundled-test-harness/assets/wardleyDiagram-YWT4CUSO-DZhEm4N4.js +872 -0
  378. package/bundled-test-harness/assets/wav-audio-def-test-DqsTEBw8.js +155 -0
  379. package/bundled-test-harness/assets/webp-image-def-test-23wOLPMu.js +225 -0
  380. package/bundled-test-harness/assets/workspace-chooser-delete-test-Q6S_nGDT.js +189 -0
  381. package/bundled-test-harness/assets/workspace-chooser-test-CzsvY1v_.js +235 -0
  382. package/bundled-test-harness/assets/workspace-delete-multiple-test-BNFHkJpQ.js +213 -0
  383. package/bundled-test-harness/assets/workspace-delete-summary-test-DLzNdjvC.js +63 -0
  384. package/bundled-test-harness/assets/write-binary-file-test-PHHt9fVI.js +100 -0
  385. package/bundled-test-harness/assets/write-text-file-test-DuHe6tR5.js +172 -0
  386. package/bundled-test-harness/assets/xychartDiagram-2RQKCTM6-bflHQbEv.js +2551 -0
  387. package/bundled-test-harness/index.html +24 -23
  388. package/bundled-test-harness/tests/index.html +31 -30
  389. package/bundled-types/base/command.d.ts +48 -0
  390. package/bundled-types/host-app/components/operator-mode/publish-realm-modal.gts +17 -26
  391. package/bundled-types/host-app/lib/published-realm-url.ts +135 -0
  392. package/package.json +3 -3
  393. package/src/build-program.ts +12 -12
  394. package/src/commands/consolidate-workspaces.ts +1 -1
  395. package/src/commands/file/delete.ts +4 -4
  396. package/src/commands/file/index.ts +6 -6
  397. package/src/commands/file/lint.ts +4 -4
  398. package/src/commands/file/list.ts +3 -3
  399. package/src/commands/file/read.ts +3 -3
  400. package/src/commands/file/touch.ts +6 -6
  401. package/src/commands/file/write.ts +3 -3
  402. package/src/commands/lint.ts +6 -6
  403. package/src/commands/parse.ts +6 -6
  404. package/src/commands/profile.ts +4 -4
  405. package/src/commands/read-transpiled.ts +6 -3
  406. package/src/commands/realm/cancel-indexing.ts +3 -3
  407. package/src/commands/realm/create.ts +2 -2
  408. package/src/commands/realm/history.ts +4 -4
  409. package/src/commands/realm/index.ts +15 -15
  410. package/src/commands/realm/indexing-errors.ts +3 -3
  411. package/src/commands/realm/list.ts +2 -2
  412. package/src/commands/realm/milestone.ts +4 -4
  413. package/src/commands/realm/publish.ts +4 -4
  414. package/src/commands/realm/pull.ts +6 -6
  415. package/src/commands/realm/push.ts +7 -7
  416. package/src/commands/realm/remove.ts +3 -3
  417. package/src/commands/realm/status.ts +8 -8
  418. package/src/commands/realm/sync.ts +9 -9
  419. package/src/commands/realm/unpublish.ts +3 -3
  420. package/src/commands/realm/wait-for-ready.ts +2 -2
  421. package/src/commands/realm/watch/index.ts +2 -2
  422. package/src/commands/realm/watch/start.ts +13 -10
  423. package/src/commands/realm/watch/stop.ts +2 -2
  424. package/src/commands/run-command.ts +6 -3
  425. package/src/commands/search.ts +3 -3
  426. package/src/commands/test.ts +5 -5
  427. package/src/index.ts +2 -2
  428. package/src/lib/auth-resolver.ts +3 -3
  429. package/src/lib/boxel-cli-client.ts +18 -15
  430. package/src/lib/checkpoint-manager.ts +1 -1
  431. package/src/lib/find-checkpoint.ts +1 -1
  432. package/src/lib/profile-manager.ts +4 -4
  433. package/src/lib/realm-local-paths.ts +1 -1
  434. package/src/lib/realm-sync-base.ts +1 -1
  435. package/src/lib/seed-auth.ts +1 -1
  436. package/src/lib/sync-logic.ts +1 -1
  437. package/src/lib/watch-process-registry.ts +1 -1
  438. package/bundled-test-harness/assets/adapter-C8oDflNN.js +0 -2
  439. package/bundled-test-harness/assets/add-field-to-card-definition-command-test-Cs670972.js +0 -111
  440. package/bundled-test-harness/assets/add-workspace-test-BviDAUBK.js +0 -71
  441. package/bundled-test-harness/assets/ai-assistant-B5fp2iOz.js +0 -129
  442. package/bundled-test-harness/assets/ai-assistant-panel-service-test-NpHZzZAz.js +0 -95
  443. package/bundled-test-harness/assets/ai-assistant-test-jPV29jEw.js +0 -2137
  444. package/bundled-test-harness/assets/ai-function-generation-test-QRPcE9tQ.js +0 -996
  445. package/bundled-test-harness/assets/ai-module-creation-test-DyuyfnkY.js +0 -150
  446. package/bundled-test-harness/assets/aibot-message-Dwxp5hTW.js +0 -1185
  447. package/bundled-test-harness/assets/amd-transpile-test-CF7Lkbif.js +0 -425
  448. package/bundled-test-harness/assets/app-CgP2IpNG.js +0 -21464
  449. package/bundled-test-harness/assets/apply-boxel-formatting-test-BXyZ3z0I.js +0 -134
  450. package/bundled-test-harness/assets/apply-markdown-edit-test-C6bcaj3a.js +0 -230
  451. package/bundled-test-harness/assets/apply-search-replace-block-test-BSwC4J9g.js +0 -630
  452. package/bundled-test-harness/assets/arc-DNRb_8LA.js +0 -199
  453. package/bundled-test-harness/assets/architecture-7EHR7CIX-BtVh_LBJ.js +0 -3
  454. package/bundled-test-harness/assets/architectureDiagram-3BPJPVTR-D9UYbaKj.js +0 -7400
  455. package/bundled-test-harness/assets/auth-error-guard-test-Bvu8E7Wy.js +0 -30
  456. package/bundled-test-harness/assets/auth-service-worker-test-CC6DzdfK.js +0 -538
  457. package/bundled-test-harness/assets/authed-fetch-test-CfF-IBHI.js +0 -75
  458. package/bundled-test-harness/assets/avif-image-def-test-B9L2z0nR.js +0 -186
  459. package/bundled-test-harness/assets/base-realm-43wjttN2.js +0 -140
  460. package/bundled-test-harness/assets/base-realm-CJ5x9iyX.js +0 -2
  461. package/bundled-test-harness/assets/basic-test-B64a5zCK.js +0 -128
  462. package/bundled-test-harness/assets/bfm-card-references-test-cLQVLpth.js +0 -577
  463. package/bundled-test-harness/assets/binary-upload-dedupe-test-By7Y1iQ3.js +0 -308
  464. package/bundled-test-harness/assets/blockDiagram-GPEHLZMM-LgOorG2O.js +0 -4355
  465. package/bundled-test-harness/assets/bot-registration-test-DOjf0P1R.js +0 -99
  466. package/bundled-test-harness/assets/box-test-Cd1-RcXg.js +0 -51
  467. package/bundled-test-harness/assets/brand-guide-attachments-test-DxRqP8fo.js +0 -87
  468. package/bundled-test-harness/assets/brand-guide-custom-css-test-DBpZiHzJ.js +0 -135
  469. package/bundled-test-harness/assets/brand-logo-mark-field-test-61k4e5Om.js +0 -87
  470. package/bundled-test-harness/assets/broken-link-template-test-A1P4flQ5.js +0 -345
  471. package/bundled-test-harness/assets/browser-index-Bzhpucwe.js +0 -3
  472. package/bundled-test-harness/assets/browser-index-D0mzSWYV.js +0 -8802
  473. package/bundled-test-harness/assets/c4Diagram-AAUBKEIU-1iq94vGa.js +0 -3764
  474. package/bundled-test-harness/assets/cached-fetch-test-ByQ-5OQI.js +0 -93
  475. package/bundled-test-harness/assets/can-read-realm-test-VFLHJdEv.js +0 -58
  476. package/bundled-test-harness/assets/cancel-indexing-job-test-n3Os4ZaX.js +0 -71
  477. package/bundled-test-harness/assets/card-api-test-DvNfLv3V.js +0 -196
  478. package/bundled-test-harness/assets/card-basics-test-CKzZuFdw.js +0 -4895
  479. package/bundled-test-harness/assets/card-catalog-test-JFvkVHED.js +0 -377
  480. package/bundled-test-harness/assets/card-copy-test-iwrFA72s.js +0 -777
  481. package/bundled-test-harness/assets/card-def-field-def-relationships-test-D5s2RH5t.js +0 -560
  482. package/bundled-test-harness/assets/card-def-menu-items-test-XcmkT4NF.js +0 -182
  483. package/bundled-test-harness/assets/card-delete-test-jtAOHk1Y.js +0 -412
  484. package/bundled-test-harness/assets/card-directory-name-test-veQEp5FJ.js +0 -71
  485. package/bundled-test-harness/assets/card-playground-test-P7Ed0tO4.js +0 -1497
  486. package/bundled-test-harness/assets/card-prerender-DXG8cQEv.js +0 -12661
  487. package/bundled-test-harness/assets/card-search-adorn-test-BX0-IJHB.js +0 -128
  488. package/bundled-test-harness/assets/card-search-query-builder-test-D01uixke.js +0 -88
  489. package/bundled-test-harness/assets/card-search-selection-menu-test-DMTeZFmW.js +0 -108
  490. package/bundled-test-harness/assets/channel-BvoW_rbI.js +0 -8
  491. package/bundled-test-harness/assets/check-correctness-test-D7QB1GTo.js +0 -252
  492. package/bundled-test-harness/assets/chunk-2J33WTMH-BbxCvOlt.js +0 -31
  493. package/bundled-test-harness/assets/chunk-3OPIFGDE-DHY3s0oT.js +0 -5548
  494. package/bundled-test-harness/assets/chunk-4BX2VUAB-CRivrLQ6.js +0 -11
  495. package/bundled-test-harness/assets/chunk-4EGX6M5U-qWzlMeqd.js +0 -44
  496. package/bundled-test-harness/assets/chunk-55IACEB6-DOl6NECJ.js +0 -10
  497. package/bundled-test-harness/assets/chunk-5DO6E6H7-scwNnzDb.js +0 -27
  498. package/bundled-test-harness/assets/chunk-5ZQYHXKU-BeETnugr.js +0 -1767
  499. package/bundled-test-harness/assets/chunk-727SXJPM-BlycTxFE.js +0 -3877
  500. package/bundled-test-harness/assets/chunk-AQP2D5EJ-BE3Clw-g.js +0 -2622
  501. package/bundled-test-harness/assets/chunk-BR22UD5L-BTPKlhWA.js +0 -85
  502. package/bundled-test-harness/assets/chunk-BSJP7CBP-BIhtUfvc.js +0 -114
  503. package/bundled-test-harness/assets/chunk-CSCIHK7Q-DnRAp6Bv.js +0 -6144
  504. package/bundled-test-harness/assets/chunk-FHYWG6QK-DpIXIGDC.js +0 -27
  505. package/bundled-test-harness/assets/chunk-FMBD7UC4-B36w3LIg.js +0 -20
  506. package/bundled-test-harness/assets/chunk-KSCS5N6A-gbz9p9BU.js +0 -871
  507. package/bundled-test-harness/assets/chunk-L5ZTLDWV-HNfH9U8K.js +0 -43
  508. package/bundled-test-harness/assets/chunk-LZXEDZCA-CbKHJfzx.js +0 -65
  509. package/bundled-test-harness/assets/chunk-MPE355IW-BGVbCTZH.js +0 -27
  510. package/bundled-test-harness/assets/chunk-MZUSXYTE-DoCjuxcJ.js +0 -36
  511. package/bundled-test-harness/assets/chunk-N66VUXT2-BX17MI-i.js +0 -70
  512. package/bundled-test-harness/assets/chunk-ND2GUHAM-IpeiJZYz.js +0 -93
  513. package/bundled-test-harness/assets/chunk-NZK2D7GU-CH-Gg7qc.js +0 -89
  514. package/bundled-test-harness/assets/chunk-O5CBEL6O-D2JbLgI8.js +0 -2395
  515. package/bundled-test-harness/assets/chunk-PUPMXCY4-DS4ZxM2V.js +0 -27
  516. package/bundled-test-harness/assets/chunk-QZHKN3VN-WLHeRUJ3.js +0 -20
  517. package/bundled-test-harness/assets/chunk-UIBZB4QT-DNIJBpkq.js +0 -27
  518. package/bundled-test-harness/assets/chunk-WCWK7LTN-CqRJ3WOy.js +0 -36
  519. package/bundled-test-harness/assets/chunk-WU5MYG2G-CtItCLbE.js +0 -12
  520. package/bundled-test-harness/assets/chunk-XPW4576I-D2Q7Qo8n.js +0 -2341
  521. package/bundled-test-harness/assets/classDiagram-4FO5ZUOK-CnNFReKQ.js +0 -31
  522. package/bundled-test-harness/assets/classDiagram-v2-Q7XG4LA2-BlhpbohY.js +0 -31
  523. package/bundled-test-harness/assets/code-equality-assertion-C-2g5YGf.js +0 -474
  524. package/bundled-test-harness/assets/code-patches-test-DaV4Mon_.js +0 -1128
  525. package/bundled-test-harness/assets/code-patching-test-CcbWlImN.js +0 -114
  526. package/bundled-test-harness/assets/code-ref-test-8Yj8gbww.js +0 -138
  527. package/bundled-test-harness/assets/code-semantics-service-test-C3srTfDz.js +0 -65
  528. package/bundled-test-harness/assets/code-submode-test-BUhjvWtB.js +0 -1762
  529. package/bundled-test-harness/assets/codeblocks-test-3zAp0_GA.js +0 -492
  530. package/bundled-test-harness/assets/codemirror-context-C7KmSAyy.js +0 -2
  531. package/bundled-test-harness/assets/codemirror-editor-test-WojU4k2h.js +0 -1176
  532. package/bundled-test-harness/assets/color-field-test-yESUakoE.js +0 -213
  533. package/bundled-test-harness/assets/command-definitions-test-UsXsAhn7.js +0 -72
  534. package/bundled-test-harness/assets/commands-CBDBujm_.js +0 -1379
  535. package/bundled-test-harness/assets/commands-calling-test-DJTl0EbL.js +0 -200
  536. package/bundled-test-harness/assets/commands-test-DW2gupNS.js +0 -1041
  537. package/bundled-test-harness/assets/commands-test-DjLnuojW.js +0 -1145
  538. package/bundled-test-harness/assets/computed-test-0n5g8Ez5.js +0 -882
  539. package/bundled-test-harness/assets/container-D8y7fmir.js +0 -14602
  540. package/bundled-test-harness/assets/convert-to-class-name-test-DSIflIV2.js +0 -17
  541. package/bundled-test-harness/assets/copy-and-edit-test-BuK1ZHr-.js +0 -291
  542. package/bundled-test-harness/assets/copy-card-test-DnDC4_7J.js +0 -156
  543. package/bundled-test-harness/assets/copy-file-to-realm-test-CFd_3Iff.js +0 -99
  544. package/bundled-test-harness/assets/copy-source-test-38yUGJor.js +0 -56
  545. package/bundled-test-harness/assets/cose-bilkent-S5V4N54A-DXA1S87S.js +0 -4275
  546. package/bundled-test-harness/assets/create-file-test-B2oem0-V.js +0 -963
  547. package/bundled-test-harness/assets/create-file-test-BHk00RtD.js +0 -397
  548. package/bundled-test-harness/assets/create-listing-modal-test-L-71-Uo2.js +0 -194
  549. package/bundled-test-harness/assets/create-listing-pr-request-CZaLsHhE.js +0 -64
  550. package/bundled-test-harness/assets/create-listing-pr-request-test-OGzk4Q2E.js +0 -117
  551. package/bundled-test-harness/assets/create-spec-test-BsM7VKuH.js +0 -239
  552. package/bundled-test-harness/assets/csv-file-def-test-BhJalhE-.js +0 -101
  553. package/bundled-test-harness/assets/dagre-BIk_r1iU.js +0 -4195
  554. package/bundled-test-harness/assets/dagre-BM42HDAG-FaUWeGOj.js +0 -606
  555. package/bundled-test-harness/assets/date-time-fields-test-Cs5T6Xk1.js +0 -322
  556. package/bundled-test-harness/assets/debug-message-test-WlHe7pJF.js +0 -119
  557. package/bundled-test-harness/assets/diagram-2AECGRRQ-DLve-IVM.js +0 -279
  558. package/bundled-test-harness/assets/diagram-5GNKFQAL-CJG1RTLk.js +0 -142
  559. package/bundled-test-harness/assets/diagram-KO2AKTUF-DYGDq3dD.js +0 -551
  560. package/bundled-test-harness/assets/diagram-LMA3HP47-BNRYdpMl.js +0 -184
  561. package/bundled-test-harness/assets/diagram-OG6HWLK6-BlJH5g83.js +0 -857
  562. package/bundled-test-harness/assets/diffing-test-DO54USSm.js +0 -210
  563. package/bundled-test-harness/assets/dist-BDRmXkWl.js +0 -232
  564. package/bundled-test-harness/assets/dist-BfNSLd0O.js +0 -105
  565. package/bundled-test-harness/assets/dist-BoireClP.js +0 -2
  566. package/bundled-test-harness/assets/editor-test-DChC9LuR.js +0 -551
  567. package/bundled-test-harness/assets/editor.main-BiohyrHK.js +0 -3
  568. package/bundled-test-harness/assets/editor.main-CMU_0pR1.js +0 -43566
  569. package/bundled-test-harness/assets/email-field-test-DWIFSfZ-.js +0 -74
  570. package/bundled-test-harness/assets/enum-field-test-BUc6l4us.js +0 -909
  571. package/bundled-test-harness/assets/erDiagram-TEJ5UH35-pOJ2novh.js +0 -2041
  572. package/bundled-test-harness/assets/error-display-test-CHSE6h6Z.js +0 -343
  573. package/bundled-test-harness/assets/evaluate-module-test-Caa5n0B9.js +0 -66
  574. package/bundled-test-harness/assets/eventmodeling-FCH6USID-B6XXU7R3.js +0 -3
  575. package/bundled-test-harness/assets/execute-atomic-operations-test-CT060oDk.js +0 -75
  576. package/bundled-test-harness/assets/externals-Do1fVZ4j.js +0 -5533
  577. package/bundled-test-harness/assets/extract-css-variables-test-DzjAsMgg.js +0 -169
  578. package/bundled-test-harness/assets/fallback-banner-test-CmxysrDn.js +0 -227
  579. package/bundled-test-harness/assets/fallback-banner-test-DJ4cO8PB.js +0 -53
  580. package/bundled-test-harness/assets/fallback-models-test-r5upJFeA.js +0 -163
  581. package/bundled-test-harness/assets/fetch-card-json-test-Di1wmvy5.js +0 -63
  582. package/bundled-test-harness/assets/fetcher-test-DjzNl_7F.js +0 -85
  583. package/bundled-test-harness/assets/field-configuration-test-C3vr-HhG.js +0 -535
  584. package/bundled-test-harness/assets/field-markdown-domain-test-DG2U4qIm.js +0 -615
  585. package/bundled-test-harness/assets/field-markdown-primitives-test-Bay2v8nT.js +0 -362
  586. package/bundled-test-harness/assets/field-markdown-specialized-test-Bl0Sl4sc.js +0 -527
  587. package/bundled-test-harness/assets/field-path-parser-test-bxxwUjcm.js +0 -387
  588. package/bundled-test-harness/assets/field-playground-test-Bcjfws4m.js +0 -902
  589. package/bundled-test-harness/assets/field-support-predicates-test-DYTqOGvv.js +0 -170
  590. package/bundled-test-harness/assets/field-test-helpers-DYSfSGdh.js +0 -45
  591. package/bundled-test-harness/assets/file-attachment-test-6ypDRDS7.js +0 -635
  592. package/bundled-test-harness/assets/file-chooser-test-mtmcHTFP.js +0 -439
  593. package/bundled-test-harness/assets/file-def-live-reload-test-CX1-lOv6.js +0 -50
  594. package/bundled-test-harness/assets/file-def-manager-DNHII2oj.js +0 -470
  595. package/bundled-test-harness/assets/file-def-manager-canonicalize-test-i_7UVakF.js +0 -451
  596. package/bundled-test-harness/assets/file-def-menu-items-test-Dw458iku.js +0 -114
  597. package/bundled-test-harness/assets/file-def-navigation-test-B3Ztr1Rd.js +0 -109
  598. package/bundled-test-harness/assets/file-def-serialization-test-C_gV8AkU.js +0 -87
  599. package/bundled-test-harness/assets/file-def-test-vXXJmtxX.js +0 -219
  600. package/bundled-test-harness/assets/file-tree-test-BJCiw9jm.js +0 -773
  601. package/bundled-test-harness/assets/flac-audio-def-test-BX3SE1vW.js +0 -138
  602. package/bundled-test-harness/assets/flowDiagram-I6XJVG4X-7Q5ROn4X.js +0 -4883
  603. package/bundled-test-harness/assets/formatted-aibot-message-test-DyqUz2nt.js +0 -366
  604. package/bundled-test-harness/assets/formatted-user-message-test-aqAzqvBP.js +0 -43
  605. package/bundled-test-harness/assets/freestyle-test-CLRrZkAE.js +0 -17
  606. package/bundled-test-harness/assets/full-reindex-realm-test-ClqPVQ0c.js +0 -103
  607. package/bundled-test-harness/assets/ganttDiagram-6RSMTGT7-BkDoIAAE.js +0 -4060
  608. package/bundled-test-harness/assets/garbage-collection-test-Ba2dD3qS.js +0 -373
  609. package/bundled-test-harness/assets/general-test-D0zhs14K.js +0 -926
  610. package/bundled-test-harness/assets/generate-css-variables-test-CKrXSlHs.js +0 -88
  611. package/bundled-test-harness/assets/generate-example-cards-one-shot-test-fSAdGJeT.js +0 -67
  612. package/bundled-test-harness/assets/get-available-realm-identifiers-test-BXMUW65I.js +0 -49
  613. package/bundled-test-harness/assets/get-catalog-realm-identifiers-test-DKEq6Zcq.js +0 -49
  614. package/bundled-test-harness/assets/get-default-writable-realm-test-Dp4nBIRP.js +0 -56
  615. package/bundled-test-harness/assets/get-realm-of-resource-identifier-test-DYNnMgD-.js +0 -55
  616. package/bundled-test-harness/assets/get-relationship-membership-state-test-k9EUNWeq.js +0 -1306
  617. package/bundled-test-harness/assets/get-type-refs-from-filter-test-BPuivF-v.js +0 -136
  618. package/bundled-test-harness/assets/get-user-system-card-test-DSHv00O7.js +0 -52
  619. package/bundled-test-harness/assets/gif-image-def-test-LuDSr5Kz.js +0 -161
  620. package/bundled-test-harness/assets/gitGraph-WXDBUCRP-BrG_LYEh.js +0 -3
  621. package/bundled-test-harness/assets/gitGraphDiagram-PVQCEYII-QJjQcX4J.js +0 -1150
  622. package/bundled-test-harness/assets/gts-file-def-test-bS3ML062.js +0 -99
  623. package/bundled-test-harness/assets/head-format-preview-test-B8IPh71E.js +0 -156
  624. package/bundled-test-harness/assets/helpers-wSIq-bau.js +0 -5
  625. package/bundled-test-harness/assets/host-mode-test-D44nXoQZ.js +0 -391
  626. package/bundled-test-harness/assets/host-submode-test-CefkXg9F.js +0 -904
  627. package/bundled-test-harness/assets/index-query-engine-test-DJnDqmfK.js +0 -2548
  628. package/bundled-test-harness/assets/index-writer-test-BcrCMj37.js +0 -1842
  629. package/bundled-test-harness/assets/indexeddb-crypto-store-RTTNdynf.js +0 -49434
  630. package/bundled-test-harness/assets/info-J43DQDTF-DhDzvz9k.js +0 -3
  631. package/bundled-test-harness/assets/infoDiagram-5YYISTIA-8TmRFIRz.js +0 -23
  632. package/bundled-test-harness/assets/inspector-test-D4iMBlbL.js +0 -1776
  633. package/bundled-test-harness/assets/instance-filter-matcher-test-CYT6N3hN.js +0 -564
  634. package/bundled-test-harness/assets/instantiate-card-test-j1JS5lDe.js +0 -104
  635. package/bundled-test-harness/assets/interact-submode-creation-and-permissions-test-B-aXzOh6.js +0 -497
  636. package/bundled-test-harness/assets/interact-submode-setup-VMwOUl3u.js +0 -558
  637. package/bundled-test-harness/assets/interact-submode-test-D5lNNXdq.js +0 -725
  638. package/bundled-test-harness/assets/invalidate-realm-identifiers-test-71Ze8eGV.js +0 -101
  639. package/bundled-test-harness/assets/invite-user-to-room-test-UfjsvwVp.js +0 -67
  640. package/bundled-test-harness/assets/ishikawaDiagram-YF4QCWOH-7UALIGwM.js +0 -1009
  641. package/bundled-test-harness/assets/isolated-render-test-C2IL-Fz3.js +0 -51
  642. package/bundled-test-harness/assets/item-button-6g7XYj56.js +0 -203
  643. package/bundled-test-harness/assets/javascript-BwLQ7_Nc.js +0 -75
  644. package/bundled-test-harness/assets/job-priority-header-test-C3FfKLPP.js +0 -81
  645. package/bundled-test-harness/assets/journeyDiagram-JHISSGLW-t4gEZYup.js +0 -1256
  646. package/bundled-test-harness/assets/jpg-image-def-test-BTBk9lk5.js +0 -430
  647. package/bundled-test-harness/assets/json-file-def-test-BpU_Eidn.js +0 -92
  648. package/bundled-test-harness/assets/kanban-definition-UN3LZRKU-C_KHB3_r.js +0 -1284
  649. package/bundled-test-harness/assets/last-modified-date-test-fE7IP0q0.js +0 -18
  650. package/bundled-test-harness/assets/limited-set-test-uu2vX1Sv.js +0 -123
  651. package/bundled-test-harness/assets/line-BiZHXOjs.js +0 -55
  652. package/bundled-test-harness/assets/linear-DUaMMmmA.js +0 -417
  653. package/bundled-test-harness/assets/linksto-broken-link-placeholder-test-qZeqQ1gt.js +0 -315
  654. package/bundled-test-harness/assets/linksto-error-sentinel-test-BaV3I8Xx.js +0 -236
  655. package/bundled-test-harness/assets/linksto-many-broken-link-placeholder-test-BvJi1vCb.js +0 -303
  656. package/bundled-test-harness/assets/linksto-many-per-slot-access-test-CK60Cugk.js +0 -301
  657. package/bundled-test-harness/assets/linksto-sentinel-roundtrip-test-BWxdEO9D.js +0 -258
  658. package/bundled-test-harness/assets/linksto-singular-js-access-contract-test-CIsLhqR2.js +0 -194
  659. package/bundled-test-harness/assets/live-prerendered-search-jZe3I16p.js +0 -639
  660. package/bundled-test-harness/assets/live-test-CF_R5WGr.js +0 -2
  661. package/bundled-test-harness/assets/live-test-jO7lXuyB.js +0 -100
  662. package/bundled-test-harness/assets/loader-icon-error-test-N4JYZuTx.js +0 -62
  663. package/bundled-test-harness/assets/loader-parallel-prefetch-test-DteeG7mU.js +0 -257
  664. package/bundled-test-harness/assets/loader-retry-test-DYVgpS_I.js +0 -173
  665. package/bundled-test-harness/assets/loader-test-DLI8JIx-.js +0 -245
  666. package/bundled-test-harness/assets/loading-test-D4ZBtRYf.js +0 -63
  667. package/bundled-test-harness/assets/login-error-text-test-Dcq7q3EY.js +0 -51
  668. package/bundled-test-harness/assets/m4a-audio-def-test-BKqGO-CW.js +0 -185
  669. package/bundled-test-harness/assets/main-BjBdsiQT.js +0 -5
  670. package/bundled-test-harness/assets/markdown-fallback-test-BBj80dZZ.js +0 -316
  671. package/bundled-test-harness/assets/markdown-file-def-test-BnMF5rQF.js +0 -286
  672. package/bundled-test-harness/assets/markdown-helpers-test-DnuuSLfS.js +0 -183
  673. package/bundled-test-harness/assets/markdown-highlighting-test-CWRp2Rce.js +0 -244
  674. package/bundled-test-harness/assets/markdown-preview-test-Bf5OqKGf.js +0 -237
  675. package/bundled-test-harness/assets/markdown-preview-yYHtwNeI.js +0 -69
  676. package/bundled-test-harness/assets/marked-sync-2EfimW4i.js +0 -2
  677. package/bundled-test-harness/assets/marked-sync-DZOVFLjK.js +0 -2561
  678. package/bundled-test-harness/assets/marked-sync-test-BaaYbZNF.js +0 -146
  679. package/bundled-test-harness/assets/matrix-service-sliding-sync-test-CdEy3ASW.js +0 -33
  680. package/bundled-test-harness/assets/mermaid-parser.core-CKNAdXJW.js +0 -114
  681. package/bundled-test-harness/assets/mermaid.core-C0mfwy8A.js +0 -1700
  682. package/bundled-test-harness/assets/message-service-subscription-test-pGz_7rz3.js +0 -113
  683. package/bundled-test-harness/assets/mindmap-definition-RKZ34NQL-ClcHxkdY.js +0 -1347
  684. package/bundled-test-harness/assets/mock-matrix-D7JHfFtT.js +0 -2
  685. package/bundled-test-harness/assets/mock-matrix-DqDbNhEj.js +0 -14292
  686. package/bundled-test-harness/assets/module-transpile-cache-test-D0M-fPxs.js +0 -66
  687. package/bundled-test-harness/assets/monaco.contribution-BEs3qwfd.js +0 -103
  688. package/bundled-test-harness/assets/monaco.contribution-Dpx8UiPl.js +0 -2
  689. package/bundled-test-harness/assets/monaco.contribution-RF_qxJYG.js +0 -2
  690. package/bundled-test-harness/assets/monaco.contribution-jPVrF29f.js +0 -243
  691. package/bundled-test-harness/assets/mp3-audio-def-test-CxeRk1bl.js +0 -129
  692. package/bundled-test-harness/assets/mutex-test-D1xyxTj2.js +0 -71
  693. package/bundled-test-harness/assets/number-field-test-gjAGDy6P.js +0 -153
  694. package/bundled-test-harness/assets/ogg-audio-def-test-B6Ww3Ixr.js +0 -191
  695. package/bundled-test-harness/assets/open-create-listing-modal-test-uN58T3rI.js +0 -117
  696. package/bundled-test-harness/assets/open-workspace-test-DXVsvBFJ.js +0 -48
  697. package/bundled-test-harness/assets/operator-mode-acceptance-test-BxIq2xSS.js +0 -1044
  698. package/bundled-test-harness/assets/operator-mode-card-catalog-test-xFYx9_ng.js +0 -989
  699. package/bundled-test-harness/assets/operator-mode-links-test-qhXWmz-S.js +0 -797
  700. package/bundled-test-harness/assets/operator-mode-state-service-test-BdA_uvaY.js +0 -122
  701. package/bundled-test-harness/assets/operator-mode-test-D3EyTwq3.js +0 -617
  702. package/bundled-test-harness/assets/operator-mode-ui-test-CSrk6Q0A.js +0 -985
  703. package/bundled-test-harness/assets/ordinal-DO1mUmjg.js +0 -85
  704. package/bundled-test-harness/assets/overlay-menu-items-test-CuqqLsQT.js +0 -316
  705. package/bundled-test-harness/assets/packet-YPE3B663--JkMNy78.js +0 -3
  706. package/bundled-test-harness/assets/panel-C2rtbx32.js +0 -3371
  707. package/bundled-test-harness/assets/past-sessions-test-B9SCbbXz.js +0 -316
  708. package/bundled-test-harness/assets/patch-code-test-CcFr9pDb.js +0 -203
  709. package/bundled-test-harness/assets/patch-fields-test-BW1gzcJM.js +0 -992
  710. package/bundled-test-harness/assets/patch-instance-test-DKqA9gQ6.js +0 -287
  711. package/bundled-test-harness/assets/persist-module-inspector-view-test-D1eKBUkt.js +0 -62
  712. package/bundled-test-harness/assets/phone-number-field-test-D1is5RWv.js +0 -72
  713. package/bundled-test-harness/assets/pie-LRSECV5Y-BDVv8Wdy.js +0 -3
  714. package/bundled-test-harness/assets/pieDiagram-4H26LBE5-CSYI-nMz.js +0 -253
  715. package/bundled-test-harness/assets/plan-install-test-DB-PrjPR.js +0 -417
  716. package/bundled-test-harness/assets/playground-B0iQV7dU.js +0 -57
  717. package/bundled-test-harness/assets/png-image-def-test-DnOsJGs6.js +0 -222
  718. package/bundled-test-harness/assets/prerender-file-extract-test-DhOLozj2.js +0 -176
  719. package/bundled-test-harness/assets/prerender-html-test-DKVhQZA9.js +0 -615
  720. package/bundled-test-harness/assets/prerender-meta-test-CnRNyqSz.js +0 -388
  721. package/bundled-test-harness/assets/prerender-module-test-D163QcrZ.js +0 -195
  722. package/bundled-test-harness/assets/prerendered-card-search-test-DX-8yabJ.js +0 -708
  723. package/bundled-test-harness/assets/preview-format-test-H7bnpdlC.js +0 -103
  724. package/bundled-test-harness/assets/preview-test-B7u6uWJR.js +0 -455
  725. package/bundled-test-harness/assets/qs-test-COb0mre6.js +0 -36
  726. package/bundled-test-harness/assets/quadrantDiagram-W4KKPZXB-2Y2ben29.js +0 -2324
  727. package/bundled-test-harness/assets/query-field-barrier-test-Cypj-MhK.js +0 -118
  728. package/bundled-test-harness/assets/query-field-error-sentinel-test-Dnqn8TdN.js +0 -202
  729. package/bundled-test-harness/assets/query-field-normalization-test-B7D8SHBP.js +0 -271
  730. package/bundled-test-harness/assets/query-field-schema-test-DIYY3-c8.js +0 -231
  731. package/bundled-test-harness/assets/query-fields-test-k-VBF9PE.js +0 -535
  732. package/bundled-test-harness/assets/queue-test-B_74vXZE.js +0 -216
  733. package/bundled-test-harness/assets/radar-GUYGQ44K-Cn2A0VBR.js +0 -3
  734. package/bundled-test-harness/assets/read-card-for-ai-assistant-test-SyL9F_La.js +0 -91
  735. package/bundled-test-harness/assets/read-file-for-ai-assistant-test-nLPp49U2.js +0 -45
  736. package/bundled-test-harness/assets/read-source-test-DBELJkhN.js +0 -67
  737. package/bundled-test-harness/assets/read-text-file-test-CP1JuWlX.js +0 -124
  738. package/bundled-test-harness/assets/realm-Dr4iygv_.js +0 -884
  739. package/bundled-test-harness/assets/realm-field-test-Cice2mYk.js +0 -101
  740. package/bundled-test-harness/assets/realm-index-card-id-test-BzpozdWc.js +0 -18
  741. package/bundled-test-harness/assets/realm-indexing-test-C0YSXziR.js +0 -4018
  742. package/bundled-test-harness/assets/realm-paths-test-DV_g07rF.js +0 -33
  743. package/bundled-test-harness/assets/realm-querying-test-B526abM0.js +0 -1062
  744. package/bundled-test-harness/assets/realm-test-D8UN5X-w.js +0 -2409
  745. package/bundled-test-harness/assets/reasoning-test-ClIOvdkX.js +0 -234
  746. package/bundled-test-harness/assets/recent-files-test-C2J_dJUD.js +0 -449
  747. package/bundled-test-harness/assets/reindex-realm-test-DMphy1g6.js +0 -119
  748. package/bundled-test-harness/assets/relationship-loading-state-test-BWrZdLlZ.js +0 -289
  749. package/bundled-test-harness/assets/render-component-BII_KnyK.js +0 -2
  750. package/bundled-test-harness/assets/render-error-test-BUAJJlUi.js +0 -22
  751. package/bundled-test-harness/assets/render-service-test-BKkCjErY.js +0 -87
  752. package/bundled-test-harness/assets/render-timer-stub-test-TUDMWJ8v.js +0 -84
  753. package/bundled-test-harness/assets/rendered-markdown-ColekGTF.js +0 -211
  754. package/bundled-test-harness/assets/rendered-markdown-test-B4CWIo02.js +0 -360
  755. package/bundled-test-harness/assets/requirementDiagram-4Y6WPE33-CTICatxk.js +0 -2550
  756. package/bundled-test-harness/assets/rich-markdown-field-test-B5u6D3Nk.js +0 -806
  757. package/bundled-test-harness/assets/room-message-test-0eJSqQfu.js +0 -171
  758. package/bundled-test-harness/assets/rust-crypto-B0m3j_yZ.js +0 -16141
  759. package/bundled-test-harness/assets/sanitize-module-list-test-rH6OqjKh.js +0 -68
  760. package/bundled-test-harness/assets/sankeyDiagram-5OEKKPKP-hBIg6-LP.js +0 -1357
  761. package/bundled-test-harness/assets/schema-editor-test-DH4MLFCD.js +0 -784
  762. package/bundled-test-harness/assets/schema-generation-test-BZMkX7VA.js +0 -28
  763. package/bundled-test-harness/assets/scrolling-test-CFTyLG8X.js +0 -292
  764. package/bundled-test-harness/assets/search-and-choose-test-CcbVyp4c.js +0 -156
  765. package/bundled-test-harness/assets/search-cache-key-test-BYt46iNT.js +0 -79
  766. package/bundled-test-harness/assets/search-command-test-BRIJPr54.js +0 -135
  767. package/bundled-test-harness/assets/search-correlation-id-test-B298Tfux.js +0 -101
  768. package/bundled-test-harness/assets/search-data-test-DHV2Fd4S.js +0 -243
  769. package/bundled-test-harness/assets/search-google-images-test-CNrazllP.js +0 -168
  770. package/bundled-test-harness/assets/search-in-flight-key-test-Dy3bU2c1.js +0 -79
  771. package/bundled-test-harness/assets/search-test-DL1-gD-G.js +0 -847
  772. package/bundled-test-harness/assets/send-ai-assistant-message-test-CyEkQ5pD.js +0 -52
  773. package/bundled-test-harness/assets/send-bot-trigger-event-test-CAsK28m-.js +0 -56
  774. package/bundled-test-harness/assets/send-request-via-proxy-test-DpMlRvPv.js +0 -333
  775. package/bundled-test-harness/assets/sending-test-BOeGYcTU.js +0 -317
  776. package/bundled-test-harness/assets/sequenceDiagram-3UESZ5HK-DQMiI040.js +0 -5551
  777. package/bundled-test-harness/assets/serialization-test-gY2QQVxS.js +0 -8283
  778. package/bundled-test-harness/assets/set-user-system-card-test-BE3y5GNK.js +0 -59
  779. package/bundled-test-harness/assets/setup-B8O9JQKq.js +0 -769
  780. package/bundled-test-harness/assets/setup-BMqGUBDK.js +0 -2
  781. package/bundled-test-harness/assets/show-card-test-BfJNnWMy.js +0 -362
  782. package/bundled-test-harness/assets/skills-test-CqhnZxBi.js +0 -568
  783. package/bundled-test-harness/assets/spec-test-BUKNn_1q.js +0 -1012
  784. package/bundled-test-harness/assets/stateDiagram-AJRCARHV-BoOij2yt.js +0 -363
  785. package/bundled-test-harness/assets/stateDiagram-v2-BHNVJYJU-Dosil5p2.js +0 -29
  786. package/bundled-test-harness/assets/store-add-test-BR1M-IDR.js +0 -52
  787. package/bundled-test-harness/assets/store-test-DaqI-HRh.js +0 -1562
  788. package/bundled-test-harness/assets/summarize-session-test-BMg54JGF.js +0 -169
  789. package/bundled-test-harness/assets/svg-image-def-test-xNyIKRPV.js +0 -164
  790. package/bundled-test-harness/assets/switch-submode-test-BKvpODUD.js +0 -168
  791. package/bundled-test-harness/assets/test-realm-service-worker-DK4SmTM5.js +0 -73
  792. package/bundled-test-harness/assets/tests-x4_eRjiT.js +0 -2770
  793. package/bundled-test-harness/assets/text-file-def-test-CsXiyVfI.js +0 -93
  794. package/bundled-test-harness/assets/text-input-validator-test-D4s_laO7.js +0 -155
  795. package/bundled-test-harness/assets/text-suggestion-test-CkLf1xuS.js +0 -339
  796. package/bundled-test-harness/assets/theme-card-test-D-6L6OfD.js +0 -573
  797. package/bundled-test-harness/assets/timeline-definition-PNZ67QCA-DD2d81uJ.js +0 -1545
  798. package/bundled-test-harness/assets/transform-cards-test-CRZF2gqZ.js +0 -341
  799. package/bundled-test-harness/assets/treeView-BLDUP644-CUm8wuM-.js +0 -3
  800. package/bundled-test-harness/assets/treemap-LRROVOQU-lbLrY2PE.js +0 -3
  801. package/bundled-test-harness/assets/ts-file-def-test-CDo6ojCf.js +0 -90
  802. package/bundled-test-harness/assets/tsMode-BPQoRibc.js +0 -968
  803. package/bundled-test-harness/assets/typescript-BaU6yDhK.js +0 -2
  804. package/bundled-test-harness/assets/update-room-skills-test-BnSgVFwT.js +0 -197
  805. package/bundled-test-harness/assets/url-test-CK-HB0qu.js +0 -103
  806. package/bundled-test-harness/assets/use-ai-assistant-test-BuJXEP8H.js +0 -330
  807. package/bundled-test-harness/assets/validate-realm-test-Cx7MOtS8.js +0 -53
  808. package/bundled-test-harness/assets/vennDiagram-CIIHVFJN-DtXtzGwZ.js +0 -2833
  809. package/bundled-test-harness/assets/wardley-L42UT6IY-D8aCp_Ox.js +0 -3
  810. package/bundled-test-harness/assets/wardleyDiagram-YWT4CUSO-D-73g3bB.js +0 -872
  811. package/bundled-test-harness/assets/wav-audio-def-test-DIo2GzQL.js +0 -155
  812. package/bundled-test-harness/assets/webp-image-def-test-BQsV0_De.js +0 -225
  813. package/bundled-test-harness/assets/workspace-chooser-delete-test-peDXmnQf.js +0 -189
  814. package/bundled-test-harness/assets/workspace-chooser-test-DS2RtTEF.js +0 -235
  815. package/bundled-test-harness/assets/workspace-delete-multiple-test-DTbjRSzN.js +0 -213
  816. package/bundled-test-harness/assets/workspace-delete-summary-test-B--ink4m.js +0 -63
  817. package/bundled-test-harness/assets/write-binary-file-test-A3TQ5lFn.js +0 -100
  818. package/bundled-test-harness/assets/write-text-file-test-D_rjNDsT.js +0 -172
  819. package/bundled-test-harness/assets/xychartDiagram-2RQKCTM6-D1aoqDp-.js +0 -2551
  820. /package/bundled-test-harness/assets/{abap-CLdVBGqB.js → abap-FZAuBTMl.js} +0 -0
  821. /package/bundled-test-harness/assets/{apex-DV8eHjgQ.js → apex-CAO3qFTc.js} +0 -0
  822. /package/bundled-test-harness/assets/{array-DsDWWqmW.js → array-CRfHnEm4.js} +0 -0
  823. /package/bundled-test-harness/assets/{azcli-C4pZYsiJ.js → azcli-Bnu7jG0Y.js} +0 -0
  824. /package/bundled-test-harness/assets/{bat-DBoaeFpB.js → bat-DdE54Pqq.js} +0 -0
  825. /package/bundled-test-harness/assets/{bicep-VlrJhbeK.js → bicep-Dp4vFp3K.js} +0 -0
  826. /package/bundled-test-harness/assets/{cameligo-jyzrvLUm.js → cameligo-Cym4x98m.js} +0 -0
  827. /package/bundled-test-harness/assets/{chunk-NNHCCRGN-Be15HUz2.js → chunk-NNHCCRGN-PWOfDYpb.js} +0 -0
  828. /package/bundled-test-harness/assets/{clojure-bzahmEtz.js → clojure-B47IJ25u.js} +0 -0
  829. /package/bundled-test-harness/assets/{codemirror-context-BauLYUNt.js → codemirror-context-oJy03XqC.js} +0 -0
  830. /package/bundled-test-harness/assets/{coffee-CMADdzOH.js → coffee-CZlkBXT8.js} +0 -0
  831. /package/bundled-test-harness/assets/{cpp-CEJwzcLE.js → cpp-mX4KaA7p.js} +0 -0
  832. /package/bundled-test-harness/assets/{csharp-XYqm0UE0.js → csharp-C-OeDGwk.js} +0 -0
  833. /package/bundled-test-harness/assets/{csp-82fNWQc2.js → csp-AS2OEE8R.js} +0 -0
  834. /package/bundled-test-harness/assets/{css-B5b0ooFS.js → css-C-TQxhWe.js} +0 -0
  835. /package/bundled-test-harness/assets/{cssMode-DTKuqAkO.js → cssMode-C87GnEsk.js} +0 -0
  836. /package/bundled-test-harness/assets/{cypher-Df9GkdDY.js → cypher-T6F_0eIM.js} +0 -0
  837. /package/bundled-test-harness/assets/{cytoscape.esm-D0iwZ9Jj.js → cytoscape.esm-Bc2V-MhP.js} +0 -0
  838. /package/bundled-test-harness/assets/{dart-C4JY9dMc.js → dart-DzVesk0n.js} +0 -0
  839. /package/bundled-test-harness/assets/{defaultLocale-BtLxQtxy.js → defaultLocale-CAoL4lzt.js} +0 -0
  840. /package/bundled-test-harness/assets/{dist-D-PuK2H3.js → dist-BZ5MfZEJ.js} +0 -0
  841. /package/bundled-test-harness/assets/{dockerfile-Ck0tNttO.js → dockerfile-BH0_bQxC.js} +0 -0
  842. /package/bundled-test-harness/assets/{ecl-BpeXqJR_.js → ecl-KIxjxrJo.js} +0 -0
  843. /package/bundled-test-harness/assets/{elixir-HmBzrXaX.js → elixir-CPPdtCW1.js} +0 -0
  844. /package/bundled-test-harness/assets/{flow9-DhsfsDhH.js → flow9-Dxho7Ldf.js} +0 -0
  845. /package/bundled-test-harness/assets/{freemarker2-D3Yd6nGl.js → freemarker2-DP1aOr3_.js} +0 -0
  846. /package/bundled-test-harness/assets/{fsharp-D56OprHc.js → fsharp-ozN53Joe.js} +0 -0
  847. /package/bundled-test-harness/assets/{go-BITsFLfX.js → go-DPj6Rbqe.js} +0 -0
  848. /package/bundled-test-harness/assets/{graphlib-qkaQhadO.js → graphlib-DOITgaas.js} +0 -0
  849. /package/bundled-test-harness/assets/{graphql-CJJVsEX1.js → graphql-C8_-AnBG.js} +0 -0
  850. /package/bundled-test-harness/assets/{handlebars-Dvw6QbL7.js → handlebars-B2gYBZpU.js} +0 -0
  851. /package/bundled-test-harness/assets/{hcl-DSTZcJuq.js → hcl-r3d7BhXB.js} +0 -0
  852. /package/bundled-test-harness/assets/{helpers-D_JZYUOQ.js → helpers-CItTycq2.js} +0 -0
  853. /package/bundled-test-harness/assets/{html-Bik3qLmc.js → html-DhN1Nxr0.js} +0 -0
  854. /package/bundled-test-harness/assets/{htmlMode-DPCaR3Ab.js → htmlMode-BnBg5hCh.js} +0 -0
  855. /package/bundled-test-harness/assets/{ini-li-kC8ZU.js → ini-CzzRigmS.js} +0 -0
  856. /package/bundled-test-harness/assets/{init-Bq7IGMcH.js → init-Bd2YUhsG.js} +0 -0
  857. /package/bundled-test-harness/assets/{java-CETpuNN7.js → java-BgeDsIoV.js} +0 -0
  858. /package/bundled-test-harness/assets/{jsonMode-CZ3hOG-W.js → jsonMode-sRb0gsB8.js} +0 -0
  859. /package/bundled-test-harness/assets/{julia-hgihs1aN.js → julia-u3K1H5Ts.js} +0 -0
  860. /package/bundled-test-harness/assets/{katex-DqhsSYO4.js → katex-CHY7BUZt.js} +0 -0
  861. /package/bundled-test-harness/assets/{kotlin-CKfyb82K.js → kotlin-DfqmlJ10.js} +0 -0
  862. /package/bundled-test-harness/assets/{less-xB5yXbw8.js → less-CSzH7DPY.js} +0 -0
  863. /package/bundled-test-harness/assets/{lexon-BLwrXVrI.js → lexon-DwPTpxXt.js} +0 -0
  864. /package/bundled-test-harness/assets/{liquid-Bf2lpknJ.js → liquid-95J9g5Vk.js} +0 -0
  865. /package/bundled-test-harness/assets/{lua-Ch5i3IrF.js → lua-CGw6zbeh.js} +0 -0
  866. /package/bundled-test-harness/assets/{m3-D5tNlhaF.js → m3-BfgwloGF.js} +0 -0
  867. /package/bundled-test-harness/assets/{markdown-Dzc9uMky.js → markdown-RZRK7Mc9.js} +0 -0
  868. /package/bundled-test-harness/assets/{mdx-xsI4TJrf.js → mdx-BYD-W2sn.js} +0 -0
  869. /package/bundled-test-harness/assets/{mips-CmdzHkQm.js → mips-DAySN5Lp.js} +0 -0
  870. /package/bundled-test-harness/assets/{msdax-CAZvxB9E.js → msdax-Cy0COjTJ.js} +0 -0
  871. /package/bundled-test-harness/assets/{mysql-CyVS-z5H.js → mysql-CfGw9jyw.js} +0 -0
  872. /package/bundled-test-harness/assets/{objective-c-CCG8cTc_.js → objective-c-B4uU-8T-.js} +0 -0
  873. /package/bundled-test-harness/assets/{pascal-c8B45FOC.js → pascal-CGDuZzXi.js} +0 -0
  874. /package/bundled-test-harness/assets/{pascaligo-CCqwSqBv.js → pascaligo-eg02k4VJ.js} +0 -0
  875. /package/bundled-test-harness/assets/{path-CsS38UoK.js → path-Dxiz9G2t.js} +0 -0
  876. /package/bundled-test-harness/assets/{perl-JUICYbO2.js → perl-BiT-JJJw.js} +0 -0
  877. /package/bundled-test-harness/assets/{pgsql-aNRiL0Cg.js → pgsql-DAMjrVBF.js} +0 -0
  878. /package/bundled-test-harness/assets/{php-B0YZj_Vw.js → php-kOSUYQyc.js} +0 -0
  879. /package/bundled-test-harness/assets/{pla-D3Zb3KCn.js → pla-BShYV-HC.js} +0 -0
  880. /package/bundled-test-harness/assets/{postiats-ks1KABlA.js → postiats-9Xamd4W2.js} +0 -0
  881. /package/bundled-test-harness/assets/{powerquery-D35K_osc.js → powerquery-l2Nw525Q.js} +0 -0
  882. /package/bundled-test-harness/assets/{powershell-DXQo6KTk.js → powershell-B5rdEn86.js} +0 -0
  883. /package/bundled-test-harness/assets/{protobuf-CFDvn49_.js → protobuf-DjFcruCV.js} +0 -0
  884. /package/bundled-test-harness/assets/{pug-CGdWzJm1.js → pug-d79Nz4-Z.js} +0 -0
  885. /package/bundled-test-harness/assets/{python-BHLYjYlP.js → python-d8oxFZIM.js} +0 -0
  886. /package/bundled-test-harness/assets/{qsharp-BIq3i63T.js → qsharp-CeTlfxZW.js} +0 -0
  887. /package/bundled-test-harness/assets/{qunit-2hoQyeAZ.js → qunit-Cqwmt9Vl.js} +0 -0
  888. /package/bundled-test-harness/assets/{r-CBvzvDSA.js → r-BOu7JTro.js} +0 -0
  889. /package/bundled-test-harness/assets/{razor-JQ0RiIvo.js → razor-ZatoG_Is.js} +0 -0
  890. /package/bundled-test-harness/assets/{recent-files-cards-BQMviQb1.js → recent-files-cards-C3vIjaKb.js} +0 -0
  891. /package/bundled-test-harness/assets/{redis-BmSHTqTU.js → redis-DdXYPyQE.js} +0 -0
  892. /package/bundled-test-harness/assets/{redshift-B1NmQEH7.js → redshift-DswnW-YX.js} +0 -0
  893. /package/bundled-test-harness/assets/{render-component-g_fhz2dX.js → render-component-Bs21y6iv.js} +0 -0
  894. /package/bundled-test-harness/assets/{restructuredtext-Br9BtTbk.js → restructuredtext-C75vUmvX.js} +0 -0
  895. /package/bundled-test-harness/assets/{rough.esm-D8VnzNsL.js → rough.esm-B83ARgx6.js} +0 -0
  896. /package/bundled-test-harness/assets/{ruby-D9_-y1I3.js → ruby-D77950a-.js} +0 -0
  897. /package/bundled-test-harness/assets/{rust-1Jjr1EOs.js → rust-C_G4PKsG.js} +0 -0
  898. /package/bundled-test-harness/assets/{sb-X2JE4zEr.js → sb-Cz3P8_Gp.js} +0 -0
  899. /package/bundled-test-harness/assets/{scala-qFJERKkR.js → scala-DYqUg04P.js} +0 -0
  900. /package/bundled-test-harness/assets/{scheme-D-WJPStO.js → scheme-B31XEGu5.js} +0 -0
  901. /package/bundled-test-harness/assets/{scss-DysfZiXA.js → scss-CtvB8On5.js} +0 -0
  902. /package/bundled-test-harness/assets/{shell-C0Iu3NNJ.js → shell-C2QqpcPN.js} +0 -0
  903. /package/bundled-test-harness/assets/{solidity-Bato3Qrk.js → solidity-FHrhZFd-.js} +0 -0
  904. /package/bundled-test-harness/assets/{sophia-DI0cKdK8.js → sophia-Cxv5FOXb.js} +0 -0
  905. /package/bundled-test-harness/assets/{sparql-BTJMtwoD.js → sparql-CgGkGeQB.js} +0 -0
  906. /package/bundled-test-harness/assets/{sql-R6uHqFYU.js → sql-S6Dos2P0.js} +0 -0
  907. /package/bundled-test-harness/assets/{src-CdPyB7gY.js → src-CvuaVSsl.js} +0 -0
  908. /package/bundled-test-harness/assets/{st-CoyBvq37.js → st-Bfa7LAWp.js} +0 -0
  909. /package/bundled-test-harness/assets/{swift-Bj-haAlF.js → swift-BQD5Ef-A.js} +0 -0
  910. /package/bundled-test-harness/assets/{systemverilog-B-x1NEFI.js → systemverilog-DaNkPux4.js} +0 -0
  911. /package/bundled-test-harness/assets/{tcl-DAUdSQgz.js → tcl-gOPgCDyb.js} +0 -0
  912. /package/bundled-test-harness/assets/{test-support-BHjxBpDK.js → test-support-BEQX5x9U.js} +0 -0
  913. /package/bundled-test-harness/assets/{test-support-yKvYEh-u.js → test-support-BL4XKobD.js} +0 -0
  914. /package/bundled-test-harness/assets/{twig-B0sJ-GzS.js → twig-Bk4gPn5b.js} +0 -0
  915. /package/bundled-test-harness/assets/{typescript-DTMIM5Gl.js → typescript-pPYlxWzr.js} +0 -0
  916. /package/bundled-test-harness/assets/{typespec-6yo9VQxY.js → typespec-D9Zz743B.js} +0 -0
  917. /package/bundled-test-harness/assets/{vb-Bh2IfdtJ.js → vb-ziqHIsJV.js} +0 -0
  918. /package/bundled-test-harness/assets/{view-card-demo-U_AOj-RK.js → view-card-demo-CSIVYD3T.js} +0 -0
  919. /package/bundled-test-harness/assets/{wgsl-DsvJnCCt.js → wgsl-BXiwkiJL.js} +0 -0
  920. /package/bundled-test-harness/assets/{xml-CisPXcjD.js → xml-a_tUOik-.js} +0 -0
  921. /package/bundled-test-harness/assets/{yaml-DkHUoYI5.js → yaml-B3H8LDzK.js} +0 -0
@@ -1,2341 +0,0 @@
1
- import "./chunk-CGdGNDIi.js";
2
- import { h as __name$1 } from "./src-CdPyB7gY.js";
3
- //#region ../../node_modules/.pnpm/mermaid@11.15.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.mjs
4
- function isNothing(subject) {
5
- return typeof subject === "undefined" || subject === null;
6
- }
7
- __name$1(isNothing, "isNothing");
8
- function isObject(subject) {
9
- return typeof subject === "object" && subject !== null;
10
- }
11
- __name$1(isObject, "isObject");
12
- function toArray(sequence) {
13
- if (Array.isArray(sequence)) return sequence;
14
- else if (isNothing(sequence)) return [];
15
- return [sequence];
16
- }
17
- __name$1(toArray, "toArray");
18
- function extend(target, source) {
19
- var index;
20
- var length;
21
- var key;
22
- var sourceKeys;
23
- if (source) {
24
- sourceKeys = Object.keys(source);
25
- for (index = 0, length = sourceKeys.length; index < length; index += 1) {
26
- key = sourceKeys[index];
27
- target[key] = source[key];
28
- }
29
- }
30
- return target;
31
- }
32
- __name$1(extend, "extend");
33
- function repeat(string, count) {
34
- var result = "";
35
- var cycle;
36
- for (cycle = 0; cycle < count; cycle += 1) result += string;
37
- return result;
38
- }
39
- __name$1(repeat, "repeat");
40
- function isNegativeZero(number) {
41
- return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
42
- }
43
- __name$1(isNegativeZero, "isNegativeZero");
44
- var common = {
45
- isNothing,
46
- isObject,
47
- toArray,
48
- repeat,
49
- isNegativeZero,
50
- extend
51
- };
52
- function formatError(exception2, compact) {
53
- var where = "";
54
- var message = exception2.reason || "(unknown reason)";
55
- if (!exception2.mark) return message;
56
- if (exception2.mark.name) where += "in \"" + exception2.mark.name + "\" ";
57
- where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
58
- if (!compact && exception2.mark.snippet) where += "\n\n" + exception2.mark.snippet;
59
- return message + " " + where;
60
- }
61
- __name$1(formatError, "formatError");
62
- function YAMLException$1(reason, mark) {
63
- Error.call(this);
64
- this.name = "YAMLException";
65
- this.reason = reason;
66
- this.mark = mark;
67
- this.message = formatError(this, false);
68
- if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
69
- else this.stack = (/* @__PURE__ */ new Error()).stack || "";
70
- }
71
- __name$1(YAMLException$1, "YAMLException$1");
72
- YAMLException$1.prototype = Object.create(Error.prototype);
73
- YAMLException$1.prototype.constructor = YAMLException$1;
74
- YAMLException$1.prototype.toString = /* @__PURE__ */ __name$1(function toString(compact) {
75
- return this.name + ": " + formatError(this, compact);
76
- }, "toString");
77
- var exception = YAMLException$1;
78
- function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
79
- var head = "";
80
- var tail = "";
81
- var maxHalfLength = Math.floor(maxLineLength / 2) - 1;
82
- if (position - lineStart > maxHalfLength) {
83
- head = " ... ";
84
- lineStart = position - maxHalfLength + head.length;
85
- }
86
- if (lineEnd - position > maxHalfLength) {
87
- tail = " ...";
88
- lineEnd = position + maxHalfLength - tail.length;
89
- }
90
- return {
91
- str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, "→") + tail,
92
- pos: position - lineStart + head.length
93
- };
94
- }
95
- __name$1(getLine, "getLine");
96
- function padStart(string, max) {
97
- return common.repeat(" ", max - string.length) + string;
98
- }
99
- __name$1(padStart, "padStart");
100
- function makeSnippet(mark, options) {
101
- options = Object.create(options || null);
102
- if (!mark.buffer) return null;
103
- if (!options.maxLength) options.maxLength = 79;
104
- if (typeof options.indent !== "number") options.indent = 1;
105
- if (typeof options.linesBefore !== "number") options.linesBefore = 3;
106
- if (typeof options.linesAfter !== "number") options.linesAfter = 2;
107
- var re = /\r?\n|\r|\0/g;
108
- var lineStarts = [0];
109
- var lineEnds = [];
110
- var match;
111
- var foundLineNo = -1;
112
- while (match = re.exec(mark.buffer)) {
113
- lineEnds.push(match.index);
114
- lineStarts.push(match.index + match[0].length);
115
- if (mark.position <= match.index && foundLineNo < 0) foundLineNo = lineStarts.length - 2;
116
- }
117
- if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
118
- var result = "";
119
- var i;
120
- var line;
121
- var lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
122
- var maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
123
- for (i = 1; i <= options.linesBefore; i++) {
124
- if (foundLineNo - i < 0) break;
125
- line = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
126
- result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line.str + "\n" + result;
127
- }
128
- line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
129
- result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n";
130
- result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + "^\n";
131
- for (i = 1; i <= options.linesAfter; i++) {
132
- if (foundLineNo + i >= lineEnds.length) break;
133
- line = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
134
- result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line.str + "\n";
135
- }
136
- return result.replace(/\n$/, "");
137
- }
138
- __name$1(makeSnippet, "makeSnippet");
139
- var snippet = makeSnippet;
140
- var TYPE_CONSTRUCTOR_OPTIONS = [
141
- "kind",
142
- "multi",
143
- "resolve",
144
- "construct",
145
- "instanceOf",
146
- "predicate",
147
- "represent",
148
- "representName",
149
- "defaultStyle",
150
- "styleAliases"
151
- ];
152
- var YAML_NODE_KINDS = [
153
- "scalar",
154
- "sequence",
155
- "mapping"
156
- ];
157
- function compileStyleAliases(map2) {
158
- var result = {};
159
- if (map2 !== null) Object.keys(map2).forEach(function(style) {
160
- map2[style].forEach(function(alias) {
161
- result[String(alias)] = style;
162
- });
163
- });
164
- return result;
165
- }
166
- __name$1(compileStyleAliases, "compileStyleAliases");
167
- function Type$1(tag, options) {
168
- options = options || {};
169
- Object.keys(options).forEach(function(name) {
170
- if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) throw new exception("Unknown option \"" + name + "\" is met in definition of \"" + tag + "\" YAML type.");
171
- });
172
- this.options = options;
173
- this.tag = tag;
174
- this.kind = options["kind"] || null;
175
- this.resolve = options["resolve"] || function() {
176
- return true;
177
- };
178
- this.construct = options["construct"] || function(data) {
179
- return data;
180
- };
181
- this.instanceOf = options["instanceOf"] || null;
182
- this.predicate = options["predicate"] || null;
183
- this.represent = options["represent"] || null;
184
- this.representName = options["representName"] || null;
185
- this.defaultStyle = options["defaultStyle"] || null;
186
- this.multi = options["multi"] || false;
187
- this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
188
- if (YAML_NODE_KINDS.indexOf(this.kind) === -1) throw new exception("Unknown kind \"" + this.kind + "\" is specified for \"" + tag + "\" YAML type.");
189
- }
190
- __name$1(Type$1, "Type$1");
191
- var type = Type$1;
192
- function compileList(schema2, name) {
193
- var result = [];
194
- schema2[name].forEach(function(currentType) {
195
- var newIndex = result.length;
196
- result.forEach(function(previousType, previousIndex) {
197
- if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) newIndex = previousIndex;
198
- });
199
- result[newIndex] = currentType;
200
- });
201
- return result;
202
- }
203
- __name$1(compileList, "compileList");
204
- function compileMap() {
205
- var result = {
206
- scalar: {},
207
- sequence: {},
208
- mapping: {},
209
- fallback: {},
210
- multi: {
211
- scalar: [],
212
- sequence: [],
213
- mapping: [],
214
- fallback: []
215
- }
216
- };
217
- var index;
218
- var length;
219
- function collectType(type2) {
220
- if (type2.multi) {
221
- result.multi[type2.kind].push(type2);
222
- result.multi["fallback"].push(type2);
223
- } else result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
224
- }
225
- __name$1(collectType, "collectType");
226
- for (index = 0, length = arguments.length; index < length; index += 1) arguments[index].forEach(collectType);
227
- return result;
228
- }
229
- __name$1(compileMap, "compileMap");
230
- function Schema$1(definition) {
231
- return this.extend(definition);
232
- }
233
- __name$1(Schema$1, "Schema$1");
234
- Schema$1.prototype.extend = /* @__PURE__ */ __name$1(function extend2(definition) {
235
- var implicit = [];
236
- var explicit = [];
237
- if (definition instanceof type) explicit.push(definition);
238
- else if (Array.isArray(definition)) explicit = explicit.concat(definition);
239
- else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
240
- if (definition.implicit) implicit = implicit.concat(definition.implicit);
241
- if (definition.explicit) explicit = explicit.concat(definition.explicit);
242
- } else throw new exception("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
243
- implicit.forEach(function(type$1) {
244
- if (!(type$1 instanceof type)) throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");
245
- if (type$1.loadKind && type$1.loadKind !== "scalar") throw new exception("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
246
- if (type$1.multi) throw new exception("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
247
- });
248
- explicit.forEach(function(type$1) {
249
- if (!(type$1 instanceof type)) throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");
250
- });
251
- var result = Object.create(Schema$1.prototype);
252
- result.implicit = (this.implicit || []).concat(implicit);
253
- result.explicit = (this.explicit || []).concat(explicit);
254
- result.compiledImplicit = compileList(result, "implicit");
255
- result.compiledExplicit = compileList(result, "explicit");
256
- result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
257
- return result;
258
- }, "extend");
259
- var failsafe = new Schema$1({ explicit: [
260
- new type("tag:yaml.org,2002:str", {
261
- kind: "scalar",
262
- construct: /* @__PURE__ */ __name$1(function(data) {
263
- return data !== null ? data : "";
264
- }, "construct")
265
- }),
266
- new type("tag:yaml.org,2002:seq", {
267
- kind: "sequence",
268
- construct: /* @__PURE__ */ __name$1(function(data) {
269
- return data !== null ? data : [];
270
- }, "construct")
271
- }),
272
- new type("tag:yaml.org,2002:map", {
273
- kind: "mapping",
274
- construct: /* @__PURE__ */ __name$1(function(data) {
275
- return data !== null ? data : {};
276
- }, "construct")
277
- })
278
- ] });
279
- function resolveYamlNull(data) {
280
- if (data === null) return true;
281
- var max = data.length;
282
- return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
283
- }
284
- __name$1(resolveYamlNull, "resolveYamlNull");
285
- function constructYamlNull() {
286
- return null;
287
- }
288
- __name$1(constructYamlNull, "constructYamlNull");
289
- function isNull(object) {
290
- return object === null;
291
- }
292
- __name$1(isNull, "isNull");
293
- var _null = new type("tag:yaml.org,2002:null", {
294
- kind: "scalar",
295
- resolve: resolveYamlNull,
296
- construct: constructYamlNull,
297
- predicate: isNull,
298
- represent: {
299
- canonical: /* @__PURE__ */ __name$1(function() {
300
- return "~";
301
- }, "canonical"),
302
- lowercase: /* @__PURE__ */ __name$1(function() {
303
- return "null";
304
- }, "lowercase"),
305
- uppercase: /* @__PURE__ */ __name$1(function() {
306
- return "NULL";
307
- }, "uppercase"),
308
- camelcase: /* @__PURE__ */ __name$1(function() {
309
- return "Null";
310
- }, "camelcase"),
311
- empty: /* @__PURE__ */ __name$1(function() {
312
- return "";
313
- }, "empty")
314
- },
315
- defaultStyle: "lowercase"
316
- });
317
- function resolveYamlBoolean(data) {
318
- if (data === null) return false;
319
- var max = data.length;
320
- return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
321
- }
322
- __name$1(resolveYamlBoolean, "resolveYamlBoolean");
323
- function constructYamlBoolean(data) {
324
- return data === "true" || data === "True" || data === "TRUE";
325
- }
326
- __name$1(constructYamlBoolean, "constructYamlBoolean");
327
- function isBoolean(object) {
328
- return Object.prototype.toString.call(object) === "[object Boolean]";
329
- }
330
- __name$1(isBoolean, "isBoolean");
331
- var bool = new type("tag:yaml.org,2002:bool", {
332
- kind: "scalar",
333
- resolve: resolveYamlBoolean,
334
- construct: constructYamlBoolean,
335
- predicate: isBoolean,
336
- represent: {
337
- lowercase: /* @__PURE__ */ __name$1(function(object) {
338
- return object ? "true" : "false";
339
- }, "lowercase"),
340
- uppercase: /* @__PURE__ */ __name$1(function(object) {
341
- return object ? "TRUE" : "FALSE";
342
- }, "uppercase"),
343
- camelcase: /* @__PURE__ */ __name$1(function(object) {
344
- return object ? "True" : "False";
345
- }, "camelcase")
346
- },
347
- defaultStyle: "lowercase"
348
- });
349
- function isHexCode(c) {
350
- return 48 <= c && c <= 57 || 65 <= c && c <= 70 || 97 <= c && c <= 102;
351
- }
352
- __name$1(isHexCode, "isHexCode");
353
- function isOctCode(c) {
354
- return 48 <= c && c <= 55;
355
- }
356
- __name$1(isOctCode, "isOctCode");
357
- function isDecCode(c) {
358
- return 48 <= c && c <= 57;
359
- }
360
- __name$1(isDecCode, "isDecCode");
361
- function resolveYamlInteger(data) {
362
- if (data === null) return false;
363
- var max = data.length;
364
- var index = 0;
365
- var hasDigits = false;
366
- var ch;
367
- if (!max) return false;
368
- ch = data[index];
369
- if (ch === "-" || ch === "+") ch = data[++index];
370
- if (ch === "0") {
371
- if (index + 1 === max) return true;
372
- ch = data[++index];
373
- if (ch === "b") {
374
- index++;
375
- for (; index < max; index++) {
376
- ch = data[index];
377
- if (ch === "_") continue;
378
- if (ch !== "0" && ch !== "1") return false;
379
- hasDigits = true;
380
- }
381
- return hasDigits && ch !== "_";
382
- }
383
- if (ch === "x") {
384
- index++;
385
- for (; index < max; index++) {
386
- ch = data[index];
387
- if (ch === "_") continue;
388
- if (!isHexCode(data.charCodeAt(index))) return false;
389
- hasDigits = true;
390
- }
391
- return hasDigits && ch !== "_";
392
- }
393
- if (ch === "o") {
394
- index++;
395
- for (; index < max; index++) {
396
- ch = data[index];
397
- if (ch === "_") continue;
398
- if (!isOctCode(data.charCodeAt(index))) return false;
399
- hasDigits = true;
400
- }
401
- return hasDigits && ch !== "_";
402
- }
403
- }
404
- if (ch === "_") return false;
405
- for (; index < max; index++) {
406
- ch = data[index];
407
- if (ch === "_") continue;
408
- if (!isDecCode(data.charCodeAt(index))) return false;
409
- hasDigits = true;
410
- }
411
- if (!hasDigits || ch === "_") return false;
412
- return true;
413
- }
414
- __name$1(resolveYamlInteger, "resolveYamlInteger");
415
- function constructYamlInteger(data) {
416
- var value = data;
417
- var sign = 1;
418
- var ch;
419
- if (value.indexOf("_") !== -1) value = value.replace(/_/g, "");
420
- ch = value[0];
421
- if (ch === "-" || ch === "+") {
422
- if (ch === "-") sign = -1;
423
- value = value.slice(1);
424
- ch = value[0];
425
- }
426
- if (value === "0") return 0;
427
- if (ch === "0") {
428
- if (value[1] === "b") return sign * parseInt(value.slice(2), 2);
429
- if (value[1] === "x") return sign * parseInt(value.slice(2), 16);
430
- if (value[1] === "o") return sign * parseInt(value.slice(2), 8);
431
- }
432
- return sign * parseInt(value, 10);
433
- }
434
- __name$1(constructYamlInteger, "constructYamlInteger");
435
- function isInteger(object) {
436
- return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
437
- }
438
- __name$1(isInteger, "isInteger");
439
- var int = new type("tag:yaml.org,2002:int", {
440
- kind: "scalar",
441
- resolve: resolveYamlInteger,
442
- construct: constructYamlInteger,
443
- predicate: isInteger,
444
- represent: {
445
- binary: /* @__PURE__ */ __name$1(function(obj) {
446
- return obj >= 0 ? "0b" + obj.toString(2) : "-0b" + obj.toString(2).slice(1);
447
- }, "binary"),
448
- octal: /* @__PURE__ */ __name$1(function(obj) {
449
- return obj >= 0 ? "0o" + obj.toString(8) : "-0o" + obj.toString(8).slice(1);
450
- }, "octal"),
451
- decimal: /* @__PURE__ */ __name$1(function(obj) {
452
- return obj.toString(10);
453
- }, "decimal"),
454
- hexadecimal: /* @__PURE__ */ __name$1(function(obj) {
455
- return obj >= 0 ? "0x" + obj.toString(16).toUpperCase() : "-0x" + obj.toString(16).toUpperCase().slice(1);
456
- }, "hexadecimal")
457
- },
458
- defaultStyle: "decimal",
459
- styleAliases: {
460
- binary: [2, "bin"],
461
- octal: [8, "oct"],
462
- decimal: [10, "dec"],
463
- hexadecimal: [16, "hex"]
464
- }
465
- });
466
- var YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
467
- function resolveYamlFloat(data) {
468
- if (data === null) return false;
469
- if (!YAML_FLOAT_PATTERN.test(data) || data[data.length - 1] === "_") return false;
470
- return true;
471
- }
472
- __name$1(resolveYamlFloat, "resolveYamlFloat");
473
- function constructYamlFloat(data) {
474
- var value = data.replace(/_/g, "").toLowerCase();
475
- var sign = value[0] === "-" ? -1 : 1;
476
- if ("+-".indexOf(value[0]) >= 0) value = value.slice(1);
477
- if (value === ".inf") return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
478
- else if (value === ".nan") return NaN;
479
- return sign * parseFloat(value, 10);
480
- }
481
- __name$1(constructYamlFloat, "constructYamlFloat");
482
- var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
483
- function representYamlFloat(object, style) {
484
- var res;
485
- if (isNaN(object)) switch (style) {
486
- case "lowercase": return ".nan";
487
- case "uppercase": return ".NAN";
488
- case "camelcase": return ".NaN";
489
- }
490
- else if (Number.POSITIVE_INFINITY === object) switch (style) {
491
- case "lowercase": return ".inf";
492
- case "uppercase": return ".INF";
493
- case "camelcase": return ".Inf";
494
- }
495
- else if (Number.NEGATIVE_INFINITY === object) switch (style) {
496
- case "lowercase": return "-.inf";
497
- case "uppercase": return "-.INF";
498
- case "camelcase": return "-.Inf";
499
- }
500
- else if (common.isNegativeZero(object)) return "-0.0";
501
- res = object.toString(10);
502
- return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
503
- }
504
- __name$1(representYamlFloat, "representYamlFloat");
505
- function isFloat(object) {
506
- return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
507
- }
508
- __name$1(isFloat, "isFloat");
509
- var float = new type("tag:yaml.org,2002:float", {
510
- kind: "scalar",
511
- resolve: resolveYamlFloat,
512
- construct: constructYamlFloat,
513
- predicate: isFloat,
514
- represent: representYamlFloat,
515
- defaultStyle: "lowercase"
516
- });
517
- var json = failsafe.extend({ implicit: [
518
- _null,
519
- bool,
520
- int,
521
- float
522
- ] });
523
- var core = json;
524
- var YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
525
- var YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
526
- function resolveYamlTimestamp(data) {
527
- if (data === null) return false;
528
- if (YAML_DATE_REGEXP.exec(data) !== null) return true;
529
- if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
530
- return false;
531
- }
532
- __name$1(resolveYamlTimestamp, "resolveYamlTimestamp");
533
- function constructYamlTimestamp(data) {
534
- var match;
535
- var year;
536
- var month;
537
- var day;
538
- var hour;
539
- var minute;
540
- var second;
541
- var fraction = 0;
542
- var delta = null;
543
- var tz_hour;
544
- var tz_minute;
545
- var date;
546
- match = YAML_DATE_REGEXP.exec(data);
547
- if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
548
- if (match === null) throw new Error("Date resolve error");
549
- year = +match[1];
550
- month = +match[2] - 1;
551
- day = +match[3];
552
- if (!match[4]) return new Date(Date.UTC(year, month, day));
553
- hour = +match[4];
554
- minute = +match[5];
555
- second = +match[6];
556
- if (match[7]) {
557
- fraction = match[7].slice(0, 3);
558
- while (fraction.length < 3) fraction += "0";
559
- fraction = +fraction;
560
- }
561
- if (match[9]) {
562
- tz_hour = +match[10];
563
- tz_minute = +(match[11] || 0);
564
- delta = (tz_hour * 60 + tz_minute) * 6e4;
565
- if (match[9] === "-") delta = -delta;
566
- }
567
- date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
568
- if (delta) date.setTime(date.getTime() - delta);
569
- return date;
570
- }
571
- __name$1(constructYamlTimestamp, "constructYamlTimestamp");
572
- function representYamlTimestamp(object) {
573
- return object.toISOString();
574
- }
575
- __name$1(representYamlTimestamp, "representYamlTimestamp");
576
- var timestamp = new type("tag:yaml.org,2002:timestamp", {
577
- kind: "scalar",
578
- resolve: resolveYamlTimestamp,
579
- construct: constructYamlTimestamp,
580
- instanceOf: Date,
581
- represent: representYamlTimestamp
582
- });
583
- function resolveYamlMerge(data) {
584
- return data === "<<" || data === null;
585
- }
586
- __name$1(resolveYamlMerge, "resolveYamlMerge");
587
- var merge = new type("tag:yaml.org,2002:merge", {
588
- kind: "scalar",
589
- resolve: resolveYamlMerge
590
- });
591
- var BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
592
- function resolveYamlBinary(data) {
593
- if (data === null) return false;
594
- var code;
595
- var idx;
596
- var bitlen = 0;
597
- var max = data.length;
598
- var map2 = BASE64_MAP;
599
- for (idx = 0; idx < max; idx++) {
600
- code = map2.indexOf(data.charAt(idx));
601
- if (code > 64) continue;
602
- if (code < 0) return false;
603
- bitlen += 6;
604
- }
605
- return bitlen % 8 === 0;
606
- }
607
- __name$1(resolveYamlBinary, "resolveYamlBinary");
608
- function constructYamlBinary(data) {
609
- var idx;
610
- var tailbits;
611
- var input = data.replace(/[\r\n=]/g, "");
612
- var max = input.length;
613
- var map2 = BASE64_MAP;
614
- var bits = 0;
615
- var result = [];
616
- for (idx = 0; idx < max; idx++) {
617
- if (idx % 4 === 0 && idx) {
618
- result.push(bits >> 16 & 255);
619
- result.push(bits >> 8 & 255);
620
- result.push(bits & 255);
621
- }
622
- bits = bits << 6 | map2.indexOf(input.charAt(idx));
623
- }
624
- tailbits = max % 4 * 6;
625
- if (tailbits === 0) {
626
- result.push(bits >> 16 & 255);
627
- result.push(bits >> 8 & 255);
628
- result.push(bits & 255);
629
- } else if (tailbits === 18) {
630
- result.push(bits >> 10 & 255);
631
- result.push(bits >> 2 & 255);
632
- } else if (tailbits === 12) result.push(bits >> 4 & 255);
633
- return new Uint8Array(result);
634
- }
635
- __name$1(constructYamlBinary, "constructYamlBinary");
636
- function representYamlBinary(object) {
637
- var result = "";
638
- var bits = 0;
639
- var idx;
640
- var tail;
641
- var max = object.length;
642
- var map2 = BASE64_MAP;
643
- for (idx = 0; idx < max; idx++) {
644
- if (idx % 3 === 0 && idx) {
645
- result += map2[bits >> 18 & 63];
646
- result += map2[bits >> 12 & 63];
647
- result += map2[bits >> 6 & 63];
648
- result += map2[bits & 63];
649
- }
650
- bits = (bits << 8) + object[idx];
651
- }
652
- tail = max % 3;
653
- if (tail === 0) {
654
- result += map2[bits >> 18 & 63];
655
- result += map2[bits >> 12 & 63];
656
- result += map2[bits >> 6 & 63];
657
- result += map2[bits & 63];
658
- } else if (tail === 2) {
659
- result += map2[bits >> 10 & 63];
660
- result += map2[bits >> 4 & 63];
661
- result += map2[bits << 2 & 63];
662
- result += map2[64];
663
- } else if (tail === 1) {
664
- result += map2[bits >> 2 & 63];
665
- result += map2[bits << 4 & 63];
666
- result += map2[64];
667
- result += map2[64];
668
- }
669
- return result;
670
- }
671
- __name$1(representYamlBinary, "representYamlBinary");
672
- function isBinary(obj) {
673
- return Object.prototype.toString.call(obj) === "[object Uint8Array]";
674
- }
675
- __name$1(isBinary, "isBinary");
676
- var binary = new type("tag:yaml.org,2002:binary", {
677
- kind: "scalar",
678
- resolve: resolveYamlBinary,
679
- construct: constructYamlBinary,
680
- predicate: isBinary,
681
- represent: representYamlBinary
682
- });
683
- var _hasOwnProperty$3 = Object.prototype.hasOwnProperty;
684
- var _toString$2 = Object.prototype.toString;
685
- function resolveYamlOmap(data) {
686
- if (data === null) return true;
687
- var objectKeys = [];
688
- var index;
689
- var length;
690
- var pair;
691
- var pairKey;
692
- var pairHasKey;
693
- var object = data;
694
- for (index = 0, length = object.length; index < length; index += 1) {
695
- pair = object[index];
696
- pairHasKey = false;
697
- if (_toString$2.call(pair) !== "[object Object]") return false;
698
- for (pairKey in pair) if (_hasOwnProperty$3.call(pair, pairKey)) if (!pairHasKey) pairHasKey = true;
699
- else return false;
700
- if (!pairHasKey) return false;
701
- if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
702
- else return false;
703
- }
704
- return true;
705
- }
706
- __name$1(resolveYamlOmap, "resolveYamlOmap");
707
- function constructYamlOmap(data) {
708
- return data !== null ? data : [];
709
- }
710
- __name$1(constructYamlOmap, "constructYamlOmap");
711
- var omap = new type("tag:yaml.org,2002:omap", {
712
- kind: "sequence",
713
- resolve: resolveYamlOmap,
714
- construct: constructYamlOmap
715
- });
716
- var _toString$1 = Object.prototype.toString;
717
- function resolveYamlPairs(data) {
718
- if (data === null) return true;
719
- var index;
720
- var length;
721
- var pair;
722
- var keys;
723
- var result;
724
- var object = data;
725
- result = new Array(object.length);
726
- for (index = 0, length = object.length; index < length; index += 1) {
727
- pair = object[index];
728
- if (_toString$1.call(pair) !== "[object Object]") return false;
729
- keys = Object.keys(pair);
730
- if (keys.length !== 1) return false;
731
- result[index] = [keys[0], pair[keys[0]]];
732
- }
733
- return true;
734
- }
735
- __name$1(resolveYamlPairs, "resolveYamlPairs");
736
- function constructYamlPairs(data) {
737
- if (data === null) return [];
738
- var index;
739
- var length;
740
- var pair;
741
- var keys;
742
- var result;
743
- var object = data;
744
- result = new Array(object.length);
745
- for (index = 0, length = object.length; index < length; index += 1) {
746
- pair = object[index];
747
- keys = Object.keys(pair);
748
- result[index] = [keys[0], pair[keys[0]]];
749
- }
750
- return result;
751
- }
752
- __name$1(constructYamlPairs, "constructYamlPairs");
753
- var pairs = new type("tag:yaml.org,2002:pairs", {
754
- kind: "sequence",
755
- resolve: resolveYamlPairs,
756
- construct: constructYamlPairs
757
- });
758
- var _hasOwnProperty$2 = Object.prototype.hasOwnProperty;
759
- function resolveYamlSet(data) {
760
- if (data === null) return true;
761
- var key;
762
- var object = data;
763
- for (key in object) if (_hasOwnProperty$2.call(object, key)) {
764
- if (object[key] !== null) return false;
765
- }
766
- return true;
767
- }
768
- __name$1(resolveYamlSet, "resolveYamlSet");
769
- function constructYamlSet(data) {
770
- return data !== null ? data : {};
771
- }
772
- __name$1(constructYamlSet, "constructYamlSet");
773
- var set = new type("tag:yaml.org,2002:set", {
774
- kind: "mapping",
775
- resolve: resolveYamlSet,
776
- construct: constructYamlSet
777
- });
778
- var _default = core.extend({
779
- implicit: [timestamp, merge],
780
- explicit: [
781
- binary,
782
- omap,
783
- pairs,
784
- set
785
- ]
786
- });
787
- var _hasOwnProperty$1 = Object.prototype.hasOwnProperty;
788
- var CONTEXT_FLOW_IN = 1;
789
- var CONTEXT_FLOW_OUT = 2;
790
- var CONTEXT_BLOCK_IN = 3;
791
- var CONTEXT_BLOCK_OUT = 4;
792
- var CHOMPING_CLIP = 1;
793
- var CHOMPING_STRIP = 2;
794
- var CHOMPING_KEEP = 3;
795
- var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
796
- var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
797
- var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
798
- var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
799
- var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
800
- function _class(obj) {
801
- return Object.prototype.toString.call(obj);
802
- }
803
- __name$1(_class, "_class");
804
- function is_EOL(c) {
805
- return c === 10 || c === 13;
806
- }
807
- __name$1(is_EOL, "is_EOL");
808
- function is_WHITE_SPACE(c) {
809
- return c === 9 || c === 32;
810
- }
811
- __name$1(is_WHITE_SPACE, "is_WHITE_SPACE");
812
- function is_WS_OR_EOL(c) {
813
- return c === 9 || c === 32 || c === 10 || c === 13;
814
- }
815
- __name$1(is_WS_OR_EOL, "is_WS_OR_EOL");
816
- function is_FLOW_INDICATOR(c) {
817
- return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
818
- }
819
- __name$1(is_FLOW_INDICATOR, "is_FLOW_INDICATOR");
820
- function fromHexCode(c) {
821
- var lc;
822
- if (48 <= c && c <= 57) return c - 48;
823
- lc = c | 32;
824
- if (97 <= lc && lc <= 102) return lc - 97 + 10;
825
- return -1;
826
- }
827
- __name$1(fromHexCode, "fromHexCode");
828
- function escapedHexLen(c) {
829
- if (c === 120) return 2;
830
- if (c === 117) return 4;
831
- if (c === 85) return 8;
832
- return 0;
833
- }
834
- __name$1(escapedHexLen, "escapedHexLen");
835
- function fromDecimalCode(c) {
836
- if (48 <= c && c <= 57) return c - 48;
837
- return -1;
838
- }
839
- __name$1(fromDecimalCode, "fromDecimalCode");
840
- function simpleEscapeSequence(c) {
841
- return c === 48 ? "\0" : c === 97 ? "\x07" : c === 98 ? "\b" : c === 116 ? " " : c === 9 ? " " : c === 110 ? "\n" : c === 118 ? "\v" : c === 102 ? "\f" : c === 114 ? "\r" : c === 101 ? "\x1B" : c === 32 ? " " : c === 34 ? "\"" : c === 47 ? "/" : c === 92 ? "\\" : c === 78 ? "…" : c === 95 ? "\xA0" : c === 76 ? "\u2028" : c === 80 ? "\u2029" : "";
842
- }
843
- __name$1(simpleEscapeSequence, "simpleEscapeSequence");
844
- function charFromCodepoint(c) {
845
- if (c <= 65535) return String.fromCharCode(c);
846
- return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
847
- }
848
- __name$1(charFromCodepoint, "charFromCodepoint");
849
- function setProperty(object, key, value) {
850
- if (key === "__proto__") Object.defineProperty(object, key, {
851
- configurable: true,
852
- enumerable: true,
853
- writable: true,
854
- value
855
- });
856
- else object[key] = value;
857
- }
858
- __name$1(setProperty, "setProperty");
859
- var simpleEscapeCheck = new Array(256);
860
- var simpleEscapeMap = new Array(256);
861
- for (i = 0; i < 256; i++) {
862
- simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
863
- simpleEscapeMap[i] = simpleEscapeSequence(i);
864
- }
865
- var i;
866
- function State$1(input, options) {
867
- this.input = input;
868
- this.filename = options["filename"] || null;
869
- this.schema = options["schema"] || _default;
870
- this.onWarning = options["onWarning"] || null;
871
- this.legacy = options["legacy"] || false;
872
- this.json = options["json"] || false;
873
- this.listener = options["listener"] || null;
874
- this.implicitTypes = this.schema.compiledImplicit;
875
- this.typeMap = this.schema.compiledTypeMap;
876
- this.length = input.length;
877
- this.position = 0;
878
- this.line = 0;
879
- this.lineStart = 0;
880
- this.lineIndent = 0;
881
- this.firstTabInLine = -1;
882
- this.documents = [];
883
- }
884
- __name$1(State$1, "State$1");
885
- function generateError(state, message) {
886
- var mark = {
887
- name: state.filename,
888
- buffer: state.input.slice(0, -1),
889
- position: state.position,
890
- line: state.line,
891
- column: state.position - state.lineStart
892
- };
893
- mark.snippet = snippet(mark);
894
- return new exception(message, mark);
895
- }
896
- __name$1(generateError, "generateError");
897
- function throwError(state, message) {
898
- throw generateError(state, message);
899
- }
900
- __name$1(throwError, "throwError");
901
- function throwWarning(state, message) {
902
- if (state.onWarning) state.onWarning.call(null, generateError(state, message));
903
- }
904
- __name$1(throwWarning, "throwWarning");
905
- var directiveHandlers = {
906
- YAML: /* @__PURE__ */ __name$1(function handleYamlDirective(state, name, args) {
907
- var match;
908
- var major;
909
- var minor;
910
- if (state.version !== null) throwError(state, "duplication of %YAML directive");
911
- if (args.length !== 1) throwError(state, "YAML directive accepts exactly one argument");
912
- match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
913
- if (match === null) throwError(state, "ill-formed argument of the YAML directive");
914
- major = parseInt(match[1], 10);
915
- minor = parseInt(match[2], 10);
916
- if (major !== 1) throwError(state, "unacceptable YAML version of the document");
917
- state.version = args[0];
918
- state.checkLineBreaks = minor < 2;
919
- if (minor !== 1 && minor !== 2) throwWarning(state, "unsupported YAML version of the document");
920
- }, "handleYamlDirective"),
921
- TAG: /* @__PURE__ */ __name$1(function handleTagDirective(state, name, args) {
922
- var handle;
923
- var prefix;
924
- if (args.length !== 2) throwError(state, "TAG directive accepts exactly two arguments");
925
- handle = args[0];
926
- prefix = args[1];
927
- if (!PATTERN_TAG_HANDLE.test(handle)) throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
928
- if (_hasOwnProperty$1.call(state.tagMap, handle)) throwError(state, "there is a previously declared suffix for \"" + handle + "\" tag handle");
929
- if (!PATTERN_TAG_URI.test(prefix)) throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
930
- try {
931
- prefix = decodeURIComponent(prefix);
932
- } catch (err) {
933
- throwError(state, "tag prefix is malformed: " + prefix);
934
- }
935
- state.tagMap[handle] = prefix;
936
- }, "handleTagDirective")
937
- };
938
- function captureSegment(state, start, end, checkJson) {
939
- var _position;
940
- var _length;
941
- var _character;
942
- var _result;
943
- if (start < end) {
944
- _result = state.input.slice(start, end);
945
- if (checkJson) for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
946
- _character = _result.charCodeAt(_position);
947
- if (!(_character === 9 || 32 <= _character && _character <= 1114111)) throwError(state, "expected valid JSON character");
948
- }
949
- else if (PATTERN_NON_PRINTABLE.test(_result)) throwError(state, "the stream contains non-printable characters");
950
- state.result += _result;
951
- }
952
- }
953
- __name$1(captureSegment, "captureSegment");
954
- function mergeMappings(state, destination, source, overridableKeys) {
955
- var sourceKeys;
956
- var key;
957
- var index;
958
- var quantity;
959
- if (!common.isObject(source)) throwError(state, "cannot merge mappings; the provided source object is unacceptable");
960
- sourceKeys = Object.keys(source);
961
- for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
962
- key = sourceKeys[index];
963
- if (!_hasOwnProperty$1.call(destination, key)) {
964
- setProperty(destination, key, source[key]);
965
- overridableKeys[key] = true;
966
- }
967
- }
968
- }
969
- __name$1(mergeMappings, "mergeMappings");
970
- function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) {
971
- var index;
972
- var quantity;
973
- if (Array.isArray(keyNode)) {
974
- keyNode = Array.prototype.slice.call(keyNode);
975
- for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
976
- if (Array.isArray(keyNode[index])) throwError(state, "nested arrays are not supported inside keys");
977
- if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") keyNode[index] = "[object Object]";
978
- }
979
- }
980
- if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
981
- keyNode = String(keyNode);
982
- if (_result === null) _result = {};
983
- if (keyTag === "tag:yaml.org,2002:merge") if (Array.isArray(valueNode)) for (index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
984
- else mergeMappings(state, _result, valueNode, overridableKeys);
985
- else {
986
- if (!state.json && !_hasOwnProperty$1.call(overridableKeys, keyNode) && _hasOwnProperty$1.call(_result, keyNode)) {
987
- state.line = startLine || state.line;
988
- state.lineStart = startLineStart || state.lineStart;
989
- state.position = startPos || state.position;
990
- throwError(state, "duplicated mapping key");
991
- }
992
- setProperty(_result, keyNode, valueNode);
993
- delete overridableKeys[keyNode];
994
- }
995
- return _result;
996
- }
997
- __name$1(storeMappingPair, "storeMappingPair");
998
- function readLineBreak(state) {
999
- var ch = state.input.charCodeAt(state.position);
1000
- if (ch === 10) state.position++;
1001
- else if (ch === 13) {
1002
- state.position++;
1003
- if (state.input.charCodeAt(state.position) === 10) state.position++;
1004
- } else throwError(state, "a line break is expected");
1005
- state.line += 1;
1006
- state.lineStart = state.position;
1007
- state.firstTabInLine = -1;
1008
- }
1009
- __name$1(readLineBreak, "readLineBreak");
1010
- function skipSeparationSpace(state, allowComments, checkIndent) {
1011
- var lineBreaks = 0;
1012
- var ch = state.input.charCodeAt(state.position);
1013
- while (ch !== 0) {
1014
- while (is_WHITE_SPACE(ch)) {
1015
- if (ch === 9 && state.firstTabInLine === -1) state.firstTabInLine = state.position;
1016
- ch = state.input.charCodeAt(++state.position);
1017
- }
1018
- if (allowComments && ch === 35) do
1019
- ch = state.input.charCodeAt(++state.position);
1020
- while (ch !== 10 && ch !== 13 && ch !== 0);
1021
- if (is_EOL(ch)) {
1022
- readLineBreak(state);
1023
- ch = state.input.charCodeAt(state.position);
1024
- lineBreaks++;
1025
- state.lineIndent = 0;
1026
- while (ch === 32) {
1027
- state.lineIndent++;
1028
- ch = state.input.charCodeAt(++state.position);
1029
- }
1030
- } else break;
1031
- }
1032
- if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) throwWarning(state, "deficient indentation");
1033
- return lineBreaks;
1034
- }
1035
- __name$1(skipSeparationSpace, "skipSeparationSpace");
1036
- function testDocumentSeparator(state) {
1037
- var _position = state.position;
1038
- var ch = state.input.charCodeAt(_position);
1039
- if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
1040
- _position += 3;
1041
- ch = state.input.charCodeAt(_position);
1042
- if (ch === 0 || is_WS_OR_EOL(ch)) return true;
1043
- }
1044
- return false;
1045
- }
1046
- __name$1(testDocumentSeparator, "testDocumentSeparator");
1047
- function writeFoldedLines(state, count) {
1048
- if (count === 1) state.result += " ";
1049
- else if (count > 1) state.result += common.repeat("\n", count - 1);
1050
- }
1051
- __name$1(writeFoldedLines, "writeFoldedLines");
1052
- function readPlainScalar(state, nodeIndent, withinFlowCollection) {
1053
- var preceding;
1054
- var following;
1055
- var captureStart;
1056
- var captureEnd;
1057
- var hasPendingContent;
1058
- var _line;
1059
- var _lineStart;
1060
- var _lineIndent;
1061
- var _kind = state.kind;
1062
- var _result = state.result;
1063
- var ch = state.input.charCodeAt(state.position);
1064
- if (is_WS_OR_EOL(ch) || is_FLOW_INDICATOR(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96) return false;
1065
- if (ch === 63 || ch === 45) {
1066
- following = state.input.charCodeAt(state.position + 1);
1067
- if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) return false;
1068
- }
1069
- state.kind = "scalar";
1070
- state.result = "";
1071
- captureStart = captureEnd = state.position;
1072
- hasPendingContent = false;
1073
- while (ch !== 0) {
1074
- if (ch === 58) {
1075
- following = state.input.charCodeAt(state.position + 1);
1076
- if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) break;
1077
- } else if (ch === 35) {
1078
- preceding = state.input.charCodeAt(state.position - 1);
1079
- if (is_WS_OR_EOL(preceding)) break;
1080
- } else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && is_FLOW_INDICATOR(ch)) break;
1081
- else if (is_EOL(ch)) {
1082
- _line = state.line;
1083
- _lineStart = state.lineStart;
1084
- _lineIndent = state.lineIndent;
1085
- skipSeparationSpace(state, false, -1);
1086
- if (state.lineIndent >= nodeIndent) {
1087
- hasPendingContent = true;
1088
- ch = state.input.charCodeAt(state.position);
1089
- continue;
1090
- } else {
1091
- state.position = captureEnd;
1092
- state.line = _line;
1093
- state.lineStart = _lineStart;
1094
- state.lineIndent = _lineIndent;
1095
- break;
1096
- }
1097
- }
1098
- if (hasPendingContent) {
1099
- captureSegment(state, captureStart, captureEnd, false);
1100
- writeFoldedLines(state, state.line - _line);
1101
- captureStart = captureEnd = state.position;
1102
- hasPendingContent = false;
1103
- }
1104
- if (!is_WHITE_SPACE(ch)) captureEnd = state.position + 1;
1105
- ch = state.input.charCodeAt(++state.position);
1106
- }
1107
- captureSegment(state, captureStart, captureEnd, false);
1108
- if (state.result) return true;
1109
- state.kind = _kind;
1110
- state.result = _result;
1111
- return false;
1112
- }
1113
- __name$1(readPlainScalar, "readPlainScalar");
1114
- function readSingleQuotedScalar(state, nodeIndent) {
1115
- var ch = state.input.charCodeAt(state.position);
1116
- var captureStart;
1117
- var captureEnd;
1118
- if (ch !== 39) return false;
1119
- state.kind = "scalar";
1120
- state.result = "";
1121
- state.position++;
1122
- captureStart = captureEnd = state.position;
1123
- while ((ch = state.input.charCodeAt(state.position)) !== 0) if (ch === 39) {
1124
- captureSegment(state, captureStart, state.position, true);
1125
- ch = state.input.charCodeAt(++state.position);
1126
- if (ch === 39) {
1127
- captureStart = state.position;
1128
- state.position++;
1129
- captureEnd = state.position;
1130
- } else return true;
1131
- } else if (is_EOL(ch)) {
1132
- captureSegment(state, captureStart, captureEnd, true);
1133
- writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1134
- captureStart = captureEnd = state.position;
1135
- } else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, "unexpected end of the document within a single quoted scalar");
1136
- else {
1137
- state.position++;
1138
- captureEnd = state.position;
1139
- }
1140
- throwError(state, "unexpected end of the stream within a single quoted scalar");
1141
- }
1142
- __name$1(readSingleQuotedScalar, "readSingleQuotedScalar");
1143
- function readDoubleQuotedScalar(state, nodeIndent) {
1144
- var captureStart;
1145
- var captureEnd;
1146
- var hexLength;
1147
- var hexResult;
1148
- var tmp;
1149
- var ch = state.input.charCodeAt(state.position);
1150
- if (ch !== 34) return false;
1151
- state.kind = "scalar";
1152
- state.result = "";
1153
- state.position++;
1154
- captureStart = captureEnd = state.position;
1155
- while ((ch = state.input.charCodeAt(state.position)) !== 0) if (ch === 34) {
1156
- captureSegment(state, captureStart, state.position, true);
1157
- state.position++;
1158
- return true;
1159
- } else if (ch === 92) {
1160
- captureSegment(state, captureStart, state.position, true);
1161
- ch = state.input.charCodeAt(++state.position);
1162
- if (is_EOL(ch)) skipSeparationSpace(state, false, nodeIndent);
1163
- else if (ch < 256 && simpleEscapeCheck[ch]) {
1164
- state.result += simpleEscapeMap[ch];
1165
- state.position++;
1166
- } else if ((tmp = escapedHexLen(ch)) > 0) {
1167
- hexLength = tmp;
1168
- hexResult = 0;
1169
- for (; hexLength > 0; hexLength--) {
1170
- ch = state.input.charCodeAt(++state.position);
1171
- if ((tmp = fromHexCode(ch)) >= 0) hexResult = (hexResult << 4) + tmp;
1172
- else throwError(state, "expected hexadecimal character");
1173
- }
1174
- state.result += charFromCodepoint(hexResult);
1175
- state.position++;
1176
- } else throwError(state, "unknown escape sequence");
1177
- captureStart = captureEnd = state.position;
1178
- } else if (is_EOL(ch)) {
1179
- captureSegment(state, captureStart, captureEnd, true);
1180
- writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
1181
- captureStart = captureEnd = state.position;
1182
- } else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, "unexpected end of the document within a double quoted scalar");
1183
- else {
1184
- state.position++;
1185
- captureEnd = state.position;
1186
- }
1187
- throwError(state, "unexpected end of the stream within a double quoted scalar");
1188
- }
1189
- __name$1(readDoubleQuotedScalar, "readDoubleQuotedScalar");
1190
- function readFlowCollection(state, nodeIndent) {
1191
- var readNext = true;
1192
- var _line;
1193
- var _lineStart;
1194
- var _pos;
1195
- var _tag = state.tag;
1196
- var _result;
1197
- var _anchor = state.anchor;
1198
- var following;
1199
- var terminator;
1200
- var isPair;
1201
- var isExplicitPair;
1202
- var isMapping;
1203
- var overridableKeys = /* @__PURE__ */ Object.create(null);
1204
- var keyNode;
1205
- var keyTag;
1206
- var valueNode;
1207
- var ch = state.input.charCodeAt(state.position);
1208
- if (ch === 91) {
1209
- terminator = 93;
1210
- isMapping = false;
1211
- _result = [];
1212
- } else if (ch === 123) {
1213
- terminator = 125;
1214
- isMapping = true;
1215
- _result = {};
1216
- } else return false;
1217
- if (state.anchor !== null) state.anchorMap[state.anchor] = _result;
1218
- ch = state.input.charCodeAt(++state.position);
1219
- while (ch !== 0) {
1220
- skipSeparationSpace(state, true, nodeIndent);
1221
- ch = state.input.charCodeAt(state.position);
1222
- if (ch === terminator) {
1223
- state.position++;
1224
- state.tag = _tag;
1225
- state.anchor = _anchor;
1226
- state.kind = isMapping ? "mapping" : "sequence";
1227
- state.result = _result;
1228
- return true;
1229
- } else if (!readNext) throwError(state, "missed comma between flow collection entries");
1230
- else if (ch === 44) throwError(state, "expected the node content, but found ','");
1231
- keyTag = keyNode = valueNode = null;
1232
- isPair = isExplicitPair = false;
1233
- if (ch === 63) {
1234
- following = state.input.charCodeAt(state.position + 1);
1235
- if (is_WS_OR_EOL(following)) {
1236
- isPair = isExplicitPair = true;
1237
- state.position++;
1238
- skipSeparationSpace(state, true, nodeIndent);
1239
- }
1240
- }
1241
- _line = state.line;
1242
- _lineStart = state.lineStart;
1243
- _pos = state.position;
1244
- composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1245
- keyTag = state.tag;
1246
- keyNode = state.result;
1247
- skipSeparationSpace(state, true, nodeIndent);
1248
- ch = state.input.charCodeAt(state.position);
1249
- if ((isExplicitPair || state.line === _line) && ch === 58) {
1250
- isPair = true;
1251
- ch = state.input.charCodeAt(++state.position);
1252
- skipSeparationSpace(state, true, nodeIndent);
1253
- composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
1254
- valueNode = state.result;
1255
- }
1256
- if (isMapping) storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
1257
- else if (isPair) _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
1258
- else _result.push(keyNode);
1259
- skipSeparationSpace(state, true, nodeIndent);
1260
- ch = state.input.charCodeAt(state.position);
1261
- if (ch === 44) {
1262
- readNext = true;
1263
- ch = state.input.charCodeAt(++state.position);
1264
- } else readNext = false;
1265
- }
1266
- throwError(state, "unexpected end of the stream within a flow collection");
1267
- }
1268
- __name$1(readFlowCollection, "readFlowCollection");
1269
- function readBlockScalar(state, nodeIndent) {
1270
- var captureStart;
1271
- var folding;
1272
- var chomping = CHOMPING_CLIP;
1273
- var didReadContent = false;
1274
- var detectedIndent = false;
1275
- var textIndent = nodeIndent;
1276
- var emptyLines = 0;
1277
- var atMoreIndented = false;
1278
- var tmp;
1279
- var ch = state.input.charCodeAt(state.position);
1280
- if (ch === 124) folding = false;
1281
- else if (ch === 62) folding = true;
1282
- else return false;
1283
- state.kind = "scalar";
1284
- state.result = "";
1285
- while (ch !== 0) {
1286
- ch = state.input.charCodeAt(++state.position);
1287
- if (ch === 43 || ch === 45) if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
1288
- else throwError(state, "repeat of a chomping mode identifier");
1289
- else if ((tmp = fromDecimalCode(ch)) >= 0) if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
1290
- else if (!detectedIndent) {
1291
- textIndent = nodeIndent + tmp - 1;
1292
- detectedIndent = true;
1293
- } else throwError(state, "repeat of an indentation width identifier");
1294
- else break;
1295
- }
1296
- if (is_WHITE_SPACE(ch)) {
1297
- do
1298
- ch = state.input.charCodeAt(++state.position);
1299
- while (is_WHITE_SPACE(ch));
1300
- if (ch === 35) do
1301
- ch = state.input.charCodeAt(++state.position);
1302
- while (!is_EOL(ch) && ch !== 0);
1303
- }
1304
- while (ch !== 0) {
1305
- readLineBreak(state);
1306
- state.lineIndent = 0;
1307
- ch = state.input.charCodeAt(state.position);
1308
- while ((!detectedIndent || state.lineIndent < textIndent) && ch === 32) {
1309
- state.lineIndent++;
1310
- ch = state.input.charCodeAt(++state.position);
1311
- }
1312
- if (!detectedIndent && state.lineIndent > textIndent) textIndent = state.lineIndent;
1313
- if (is_EOL(ch)) {
1314
- emptyLines++;
1315
- continue;
1316
- }
1317
- if (state.lineIndent < textIndent) {
1318
- if (chomping === CHOMPING_KEEP) state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
1319
- else if (chomping === CHOMPING_CLIP) {
1320
- if (didReadContent) state.result += "\n";
1321
- }
1322
- break;
1323
- }
1324
- if (folding) if (is_WHITE_SPACE(ch)) {
1325
- atMoreIndented = true;
1326
- state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
1327
- } else if (atMoreIndented) {
1328
- atMoreIndented = false;
1329
- state.result += common.repeat("\n", emptyLines + 1);
1330
- } else if (emptyLines === 0) {
1331
- if (didReadContent) state.result += " ";
1332
- } else state.result += common.repeat("\n", emptyLines);
1333
- else state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
1334
- didReadContent = true;
1335
- detectedIndent = true;
1336
- emptyLines = 0;
1337
- captureStart = state.position;
1338
- while (!is_EOL(ch) && ch !== 0) ch = state.input.charCodeAt(++state.position);
1339
- captureSegment(state, captureStart, state.position, false);
1340
- }
1341
- return true;
1342
- }
1343
- __name$1(readBlockScalar, "readBlockScalar");
1344
- function readBlockSequence(state, nodeIndent) {
1345
- var _line;
1346
- var _tag = state.tag;
1347
- var _anchor = state.anchor;
1348
- var _result = [];
1349
- var following;
1350
- var detected = false;
1351
- var ch;
1352
- if (state.firstTabInLine !== -1) return false;
1353
- if (state.anchor !== null) state.anchorMap[state.anchor] = _result;
1354
- ch = state.input.charCodeAt(state.position);
1355
- while (ch !== 0) {
1356
- if (state.firstTabInLine !== -1) {
1357
- state.position = state.firstTabInLine;
1358
- throwError(state, "tab characters must not be used in indentation");
1359
- }
1360
- if (ch !== 45) break;
1361
- following = state.input.charCodeAt(state.position + 1);
1362
- if (!is_WS_OR_EOL(following)) break;
1363
- detected = true;
1364
- state.position++;
1365
- if (skipSeparationSpace(state, true, -1)) {
1366
- if (state.lineIndent <= nodeIndent) {
1367
- _result.push(null);
1368
- ch = state.input.charCodeAt(state.position);
1369
- continue;
1370
- }
1371
- }
1372
- _line = state.line;
1373
- composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
1374
- _result.push(state.result);
1375
- skipSeparationSpace(state, true, -1);
1376
- ch = state.input.charCodeAt(state.position);
1377
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) throwError(state, "bad indentation of a sequence entry");
1378
- else if (state.lineIndent < nodeIndent) break;
1379
- }
1380
- if (detected) {
1381
- state.tag = _tag;
1382
- state.anchor = _anchor;
1383
- state.kind = "sequence";
1384
- state.result = _result;
1385
- return true;
1386
- }
1387
- return false;
1388
- }
1389
- __name$1(readBlockSequence, "readBlockSequence");
1390
- function readBlockMapping(state, nodeIndent, flowIndent) {
1391
- var following;
1392
- var allowCompact;
1393
- var _line;
1394
- var _keyLine;
1395
- var _keyLineStart;
1396
- var _keyPos;
1397
- var _tag = state.tag;
1398
- var _anchor = state.anchor;
1399
- var _result = {};
1400
- var overridableKeys = /* @__PURE__ */ Object.create(null);
1401
- var keyTag = null;
1402
- var keyNode = null;
1403
- var valueNode = null;
1404
- var atExplicitKey = false;
1405
- var detected = false;
1406
- var ch;
1407
- if (state.firstTabInLine !== -1) return false;
1408
- if (state.anchor !== null) state.anchorMap[state.anchor] = _result;
1409
- ch = state.input.charCodeAt(state.position);
1410
- while (ch !== 0) {
1411
- if (!atExplicitKey && state.firstTabInLine !== -1) {
1412
- state.position = state.firstTabInLine;
1413
- throwError(state, "tab characters must not be used in indentation");
1414
- }
1415
- following = state.input.charCodeAt(state.position + 1);
1416
- _line = state.line;
1417
- if ((ch === 63 || ch === 58) && is_WS_OR_EOL(following)) {
1418
- if (ch === 63) {
1419
- if (atExplicitKey) {
1420
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
1421
- keyTag = keyNode = valueNode = null;
1422
- }
1423
- detected = true;
1424
- atExplicitKey = true;
1425
- allowCompact = true;
1426
- } else if (atExplicitKey) {
1427
- atExplicitKey = false;
1428
- allowCompact = true;
1429
- } else throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
1430
- state.position += 1;
1431
- ch = following;
1432
- } else {
1433
- _keyLine = state.line;
1434
- _keyLineStart = state.lineStart;
1435
- _keyPos = state.position;
1436
- if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) break;
1437
- if (state.line === _line) {
1438
- ch = state.input.charCodeAt(state.position);
1439
- while (is_WHITE_SPACE(ch)) ch = state.input.charCodeAt(++state.position);
1440
- if (ch === 58) {
1441
- ch = state.input.charCodeAt(++state.position);
1442
- if (!is_WS_OR_EOL(ch)) throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
1443
- if (atExplicitKey) {
1444
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
1445
- keyTag = keyNode = valueNode = null;
1446
- }
1447
- detected = true;
1448
- atExplicitKey = false;
1449
- allowCompact = false;
1450
- keyTag = state.tag;
1451
- keyNode = state.result;
1452
- } else if (detected) throwError(state, "can not read an implicit mapping pair; a colon is missed");
1453
- else {
1454
- state.tag = _tag;
1455
- state.anchor = _anchor;
1456
- return true;
1457
- }
1458
- } else if (detected) throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
1459
- else {
1460
- state.tag = _tag;
1461
- state.anchor = _anchor;
1462
- return true;
1463
- }
1464
- }
1465
- if (state.line === _line || state.lineIndent > nodeIndent) {
1466
- if (atExplicitKey) {
1467
- _keyLine = state.line;
1468
- _keyLineStart = state.lineStart;
1469
- _keyPos = state.position;
1470
- }
1471
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) if (atExplicitKey) keyNode = state.result;
1472
- else valueNode = state.result;
1473
- if (!atExplicitKey) {
1474
- storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
1475
- keyTag = keyNode = valueNode = null;
1476
- }
1477
- skipSeparationSpace(state, true, -1);
1478
- ch = state.input.charCodeAt(state.position);
1479
- }
1480
- if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) throwError(state, "bad indentation of a mapping entry");
1481
- else if (state.lineIndent < nodeIndent) break;
1482
- }
1483
- if (atExplicitKey) storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
1484
- if (detected) {
1485
- state.tag = _tag;
1486
- state.anchor = _anchor;
1487
- state.kind = "mapping";
1488
- state.result = _result;
1489
- }
1490
- return detected;
1491
- }
1492
- __name$1(readBlockMapping, "readBlockMapping");
1493
- function readTagProperty(state) {
1494
- var _position;
1495
- var isVerbatim = false;
1496
- var isNamed = false;
1497
- var tagHandle;
1498
- var tagName;
1499
- var ch = state.input.charCodeAt(state.position);
1500
- if (ch !== 33) return false;
1501
- if (state.tag !== null) throwError(state, "duplication of a tag property");
1502
- ch = state.input.charCodeAt(++state.position);
1503
- if (ch === 60) {
1504
- isVerbatim = true;
1505
- ch = state.input.charCodeAt(++state.position);
1506
- } else if (ch === 33) {
1507
- isNamed = true;
1508
- tagHandle = "!!";
1509
- ch = state.input.charCodeAt(++state.position);
1510
- } else tagHandle = "!";
1511
- _position = state.position;
1512
- if (isVerbatim) {
1513
- do
1514
- ch = state.input.charCodeAt(++state.position);
1515
- while (ch !== 0 && ch !== 62);
1516
- if (state.position < state.length) {
1517
- tagName = state.input.slice(_position, state.position);
1518
- ch = state.input.charCodeAt(++state.position);
1519
- } else throwError(state, "unexpected end of the stream within a verbatim tag");
1520
- } else {
1521
- while (ch !== 0 && !is_WS_OR_EOL(ch)) {
1522
- if (ch === 33) if (!isNamed) {
1523
- tagHandle = state.input.slice(_position - 1, state.position + 1);
1524
- if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
1525
- isNamed = true;
1526
- _position = state.position + 1;
1527
- } else throwError(state, "tag suffix cannot contain exclamation marks");
1528
- ch = state.input.charCodeAt(++state.position);
1529
- }
1530
- tagName = state.input.slice(_position, state.position);
1531
- if (PATTERN_FLOW_INDICATORS.test(tagName)) throwError(state, "tag suffix cannot contain flow indicator characters");
1532
- }
1533
- if (tagName && !PATTERN_TAG_URI.test(tagName)) throwError(state, "tag name cannot contain such characters: " + tagName);
1534
- try {
1535
- tagName = decodeURIComponent(tagName);
1536
- } catch (err) {
1537
- throwError(state, "tag name is malformed: " + tagName);
1538
- }
1539
- if (isVerbatim) state.tag = tagName;
1540
- else if (_hasOwnProperty$1.call(state.tagMap, tagHandle)) state.tag = state.tagMap[tagHandle] + tagName;
1541
- else if (tagHandle === "!") state.tag = "!" + tagName;
1542
- else if (tagHandle === "!!") state.tag = "tag:yaml.org,2002:" + tagName;
1543
- else throwError(state, "undeclared tag handle \"" + tagHandle + "\"");
1544
- return true;
1545
- }
1546
- __name$1(readTagProperty, "readTagProperty");
1547
- function readAnchorProperty(state) {
1548
- var _position;
1549
- var ch = state.input.charCodeAt(state.position);
1550
- if (ch !== 38) return false;
1551
- if (state.anchor !== null) throwError(state, "duplication of an anchor property");
1552
- ch = state.input.charCodeAt(++state.position);
1553
- _position = state.position;
1554
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) ch = state.input.charCodeAt(++state.position);
1555
- if (state.position === _position) throwError(state, "name of an anchor node must contain at least one character");
1556
- state.anchor = state.input.slice(_position, state.position);
1557
- return true;
1558
- }
1559
- __name$1(readAnchorProperty, "readAnchorProperty");
1560
- function readAlias(state) {
1561
- var _position;
1562
- var alias;
1563
- var ch = state.input.charCodeAt(state.position);
1564
- if (ch !== 42) return false;
1565
- ch = state.input.charCodeAt(++state.position);
1566
- _position = state.position;
1567
- while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) ch = state.input.charCodeAt(++state.position);
1568
- if (state.position === _position) throwError(state, "name of an alias node must contain at least one character");
1569
- alias = state.input.slice(_position, state.position);
1570
- if (!_hasOwnProperty$1.call(state.anchorMap, alias)) throwError(state, "unidentified alias \"" + alias + "\"");
1571
- state.result = state.anchorMap[alias];
1572
- skipSeparationSpace(state, true, -1);
1573
- return true;
1574
- }
1575
- __name$1(readAlias, "readAlias");
1576
- function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
1577
- var allowBlockStyles;
1578
- var allowBlockScalars;
1579
- var allowBlockCollections;
1580
- var indentStatus = 1;
1581
- var atNewLine = false;
1582
- var hasContent = false;
1583
- var typeIndex;
1584
- var typeQuantity;
1585
- var typeList;
1586
- var type2;
1587
- var flowIndent;
1588
- var blockIndent;
1589
- if (state.listener !== null) state.listener("open", state);
1590
- state.tag = null;
1591
- state.anchor = null;
1592
- state.kind = null;
1593
- state.result = null;
1594
- allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
1595
- if (allowToSeek) {
1596
- if (skipSeparationSpace(state, true, -1)) {
1597
- atNewLine = true;
1598
- if (state.lineIndent > parentIndent) indentStatus = 1;
1599
- else if (state.lineIndent === parentIndent) indentStatus = 0;
1600
- else if (state.lineIndent < parentIndent) indentStatus = -1;
1601
- }
1602
- }
1603
- if (indentStatus === 1) while (readTagProperty(state) || readAnchorProperty(state)) if (skipSeparationSpace(state, true, -1)) {
1604
- atNewLine = true;
1605
- allowBlockCollections = allowBlockStyles;
1606
- if (state.lineIndent > parentIndent) indentStatus = 1;
1607
- else if (state.lineIndent === parentIndent) indentStatus = 0;
1608
- else if (state.lineIndent < parentIndent) indentStatus = -1;
1609
- } else allowBlockCollections = false;
1610
- if (allowBlockCollections) allowBlockCollections = atNewLine || allowCompact;
1611
- if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
1612
- if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
1613
- else flowIndent = parentIndent + 1;
1614
- blockIndent = state.position - state.lineStart;
1615
- if (indentStatus === 1) if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
1616
- else {
1617
- if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
1618
- else if (readAlias(state)) {
1619
- hasContent = true;
1620
- if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
1621
- } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
1622
- hasContent = true;
1623
- if (state.tag === null) state.tag = "?";
1624
- }
1625
- if (state.anchor !== null) state.anchorMap[state.anchor] = state.result;
1626
- }
1627
- else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
1628
- }
1629
- if (state.tag === null) {
1630
- if (state.anchor !== null) state.anchorMap[state.anchor] = state.result;
1631
- } else if (state.tag === "?") {
1632
- if (state.result !== null && state.kind !== "scalar") throwError(state, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + state.kind + "\"");
1633
- for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
1634
- type2 = state.implicitTypes[typeIndex];
1635
- if (type2.resolve(state.result)) {
1636
- state.result = type2.construct(state.result);
1637
- state.tag = type2.tag;
1638
- if (state.anchor !== null) state.anchorMap[state.anchor] = state.result;
1639
- break;
1640
- }
1641
- }
1642
- } else if (state.tag !== "!") {
1643
- if (_hasOwnProperty$1.call(state.typeMap[state.kind || "fallback"], state.tag)) type2 = state.typeMap[state.kind || "fallback"][state.tag];
1644
- else {
1645
- type2 = null;
1646
- typeList = state.typeMap.multi[state.kind || "fallback"];
1647
- for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
1648
- type2 = typeList[typeIndex];
1649
- break;
1650
- }
1651
- }
1652
- if (!type2) throwError(state, "unknown tag !<" + state.tag + ">");
1653
- if (state.result !== null && type2.kind !== state.kind) throwError(state, "unacceptable node kind for !<" + state.tag + "> tag; it should be \"" + type2.kind + "\", not \"" + state.kind + "\"");
1654
- if (!type2.resolve(state.result, state.tag)) throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
1655
- else {
1656
- state.result = type2.construct(state.result, state.tag);
1657
- if (state.anchor !== null) state.anchorMap[state.anchor] = state.result;
1658
- }
1659
- }
1660
- if (state.listener !== null) state.listener("close", state);
1661
- return state.tag !== null || state.anchor !== null || hasContent;
1662
- }
1663
- __name$1(composeNode, "composeNode");
1664
- function readDocument(state) {
1665
- var documentStart = state.position;
1666
- var _position;
1667
- var directiveName;
1668
- var directiveArgs;
1669
- var hasDirectives = false;
1670
- var ch;
1671
- state.version = null;
1672
- state.checkLineBreaks = state.legacy;
1673
- state.tagMap = /* @__PURE__ */ Object.create(null);
1674
- state.anchorMap = /* @__PURE__ */ Object.create(null);
1675
- while ((ch = state.input.charCodeAt(state.position)) !== 0) {
1676
- skipSeparationSpace(state, true, -1);
1677
- ch = state.input.charCodeAt(state.position);
1678
- if (state.lineIndent > 0 || ch !== 37) break;
1679
- hasDirectives = true;
1680
- ch = state.input.charCodeAt(++state.position);
1681
- _position = state.position;
1682
- while (ch !== 0 && !is_WS_OR_EOL(ch)) ch = state.input.charCodeAt(++state.position);
1683
- directiveName = state.input.slice(_position, state.position);
1684
- directiveArgs = [];
1685
- if (directiveName.length < 1) throwError(state, "directive name must not be less than one character in length");
1686
- while (ch !== 0) {
1687
- while (is_WHITE_SPACE(ch)) ch = state.input.charCodeAt(++state.position);
1688
- if (ch === 35) {
1689
- do
1690
- ch = state.input.charCodeAt(++state.position);
1691
- while (ch !== 0 && !is_EOL(ch));
1692
- break;
1693
- }
1694
- if (is_EOL(ch)) break;
1695
- _position = state.position;
1696
- while (ch !== 0 && !is_WS_OR_EOL(ch)) ch = state.input.charCodeAt(++state.position);
1697
- directiveArgs.push(state.input.slice(_position, state.position));
1698
- }
1699
- if (ch !== 0) readLineBreak(state);
1700
- if (_hasOwnProperty$1.call(directiveHandlers, directiveName)) directiveHandlers[directiveName](state, directiveName, directiveArgs);
1701
- else throwWarning(state, "unknown document directive \"" + directiveName + "\"");
1702
- }
1703
- skipSeparationSpace(state, true, -1);
1704
- if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
1705
- state.position += 3;
1706
- skipSeparationSpace(state, true, -1);
1707
- } else if (hasDirectives) throwError(state, "directives end mark is expected");
1708
- composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
1709
- skipSeparationSpace(state, true, -1);
1710
- if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) throwWarning(state, "non-ASCII line breaks are interpreted as content");
1711
- state.documents.push(state.result);
1712
- if (state.position === state.lineStart && testDocumentSeparator(state)) {
1713
- if (state.input.charCodeAt(state.position) === 46) {
1714
- state.position += 3;
1715
- skipSeparationSpace(state, true, -1);
1716
- }
1717
- return;
1718
- }
1719
- if (state.position < state.length - 1) throwError(state, "end of the stream or a document separator is expected");
1720
- else return;
1721
- }
1722
- __name$1(readDocument, "readDocument");
1723
- function loadDocuments(input, options) {
1724
- input = String(input);
1725
- options = options || {};
1726
- if (input.length !== 0) {
1727
- if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) input += "\n";
1728
- if (input.charCodeAt(0) === 65279) input = input.slice(1);
1729
- }
1730
- var state = new State$1(input, options);
1731
- var nullpos = input.indexOf("\0");
1732
- if (nullpos !== -1) {
1733
- state.position = nullpos;
1734
- throwError(state, "null byte is not allowed in input");
1735
- }
1736
- state.input += "\0";
1737
- while (state.input.charCodeAt(state.position) === 32) {
1738
- state.lineIndent += 1;
1739
- state.position += 1;
1740
- }
1741
- while (state.position < state.length - 1) readDocument(state);
1742
- return state.documents;
1743
- }
1744
- __name$1(loadDocuments, "loadDocuments");
1745
- function loadAll$1(input, iterator, options) {
1746
- if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
1747
- options = iterator;
1748
- iterator = null;
1749
- }
1750
- var documents = loadDocuments(input, options);
1751
- if (typeof iterator !== "function") return documents;
1752
- for (var index = 0, length = documents.length; index < length; index += 1) iterator(documents[index]);
1753
- }
1754
- __name$1(loadAll$1, "loadAll$1");
1755
- function load$1(input, options) {
1756
- var documents = loadDocuments(input, options);
1757
- if (documents.length === 0) return;
1758
- else if (documents.length === 1) return documents[0];
1759
- throw new exception("expected a single document in the stream, but found more");
1760
- }
1761
- __name$1(load$1, "load$1");
1762
- var loader = {
1763
- loadAll: loadAll$1,
1764
- load: load$1
1765
- };
1766
- var _toString = Object.prototype.toString;
1767
- var _hasOwnProperty = Object.prototype.hasOwnProperty;
1768
- var CHAR_BOM = 65279;
1769
- var CHAR_TAB = 9;
1770
- var CHAR_LINE_FEED = 10;
1771
- var CHAR_CARRIAGE_RETURN = 13;
1772
- var CHAR_SPACE = 32;
1773
- var CHAR_EXCLAMATION = 33;
1774
- var CHAR_DOUBLE_QUOTE = 34;
1775
- var CHAR_SHARP = 35;
1776
- var CHAR_PERCENT = 37;
1777
- var CHAR_AMPERSAND = 38;
1778
- var CHAR_SINGLE_QUOTE = 39;
1779
- var CHAR_ASTERISK = 42;
1780
- var CHAR_COMMA = 44;
1781
- var CHAR_MINUS = 45;
1782
- var CHAR_COLON = 58;
1783
- var CHAR_EQUALS = 61;
1784
- var CHAR_GREATER_THAN = 62;
1785
- var CHAR_QUESTION = 63;
1786
- var CHAR_COMMERCIAL_AT = 64;
1787
- var CHAR_LEFT_SQUARE_BRACKET = 91;
1788
- var CHAR_RIGHT_SQUARE_BRACKET = 93;
1789
- var CHAR_GRAVE_ACCENT = 96;
1790
- var CHAR_LEFT_CURLY_BRACKET = 123;
1791
- var CHAR_VERTICAL_LINE = 124;
1792
- var CHAR_RIGHT_CURLY_BRACKET = 125;
1793
- var ESCAPE_SEQUENCES = {};
1794
- ESCAPE_SEQUENCES[0] = "\\0";
1795
- ESCAPE_SEQUENCES[7] = "\\a";
1796
- ESCAPE_SEQUENCES[8] = "\\b";
1797
- ESCAPE_SEQUENCES[9] = "\\t";
1798
- ESCAPE_SEQUENCES[10] = "\\n";
1799
- ESCAPE_SEQUENCES[11] = "\\v";
1800
- ESCAPE_SEQUENCES[12] = "\\f";
1801
- ESCAPE_SEQUENCES[13] = "\\r";
1802
- ESCAPE_SEQUENCES[27] = "\\e";
1803
- ESCAPE_SEQUENCES[34] = "\\\"";
1804
- ESCAPE_SEQUENCES[92] = "\\\\";
1805
- ESCAPE_SEQUENCES[133] = "\\N";
1806
- ESCAPE_SEQUENCES[160] = "\\_";
1807
- ESCAPE_SEQUENCES[8232] = "\\L";
1808
- ESCAPE_SEQUENCES[8233] = "\\P";
1809
- var DEPRECATED_BOOLEANS_SYNTAX = [
1810
- "y",
1811
- "Y",
1812
- "yes",
1813
- "Yes",
1814
- "YES",
1815
- "on",
1816
- "On",
1817
- "ON",
1818
- "n",
1819
- "N",
1820
- "no",
1821
- "No",
1822
- "NO",
1823
- "off",
1824
- "Off",
1825
- "OFF"
1826
- ];
1827
- var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
1828
- function compileStyleMap(schema2, map2) {
1829
- var result;
1830
- var keys;
1831
- var index;
1832
- var length;
1833
- var tag;
1834
- var style;
1835
- var type2;
1836
- if (map2 === null) return {};
1837
- result = {};
1838
- keys = Object.keys(map2);
1839
- for (index = 0, length = keys.length; index < length; index += 1) {
1840
- tag = keys[index];
1841
- style = String(map2[tag]);
1842
- if (tag.slice(0, 2) === "!!") tag = "tag:yaml.org,2002:" + tag.slice(2);
1843
- type2 = schema2.compiledTypeMap["fallback"][tag];
1844
- if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) style = type2.styleAliases[style];
1845
- result[tag] = style;
1846
- }
1847
- return result;
1848
- }
1849
- __name$1(compileStyleMap, "compileStyleMap");
1850
- function encodeHex(character) {
1851
- var string = character.toString(16).toUpperCase();
1852
- var handle;
1853
- var length;
1854
- if (character <= 255) {
1855
- handle = "x";
1856
- length = 2;
1857
- } else if (character <= 65535) {
1858
- handle = "u";
1859
- length = 4;
1860
- } else if (character <= 4294967295) {
1861
- handle = "U";
1862
- length = 8;
1863
- } else throw new exception("code point within a string may not be greater than 0xFFFFFFFF");
1864
- return "\\" + handle + common.repeat("0", length - string.length) + string;
1865
- }
1866
- __name$1(encodeHex, "encodeHex");
1867
- var QUOTING_TYPE_SINGLE = 1;
1868
- var QUOTING_TYPE_DOUBLE = 2;
1869
- function State(options) {
1870
- this.schema = options["schema"] || _default;
1871
- this.indent = Math.max(1, options["indent"] || 2);
1872
- this.noArrayIndent = options["noArrayIndent"] || false;
1873
- this.skipInvalid = options["skipInvalid"] || false;
1874
- this.flowLevel = common.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
1875
- this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
1876
- this.sortKeys = options["sortKeys"] || false;
1877
- this.lineWidth = options["lineWidth"] || 80;
1878
- this.noRefs = options["noRefs"] || false;
1879
- this.noCompatMode = options["noCompatMode"] || false;
1880
- this.condenseFlow = options["condenseFlow"] || false;
1881
- this.quotingType = options["quotingType"] === "\"" ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE;
1882
- this.forceQuotes = options["forceQuotes"] || false;
1883
- this.replacer = typeof options["replacer"] === "function" ? options["replacer"] : null;
1884
- this.implicitTypes = this.schema.compiledImplicit;
1885
- this.explicitTypes = this.schema.compiledExplicit;
1886
- this.tag = null;
1887
- this.result = "";
1888
- this.duplicates = [];
1889
- this.usedDuplicates = null;
1890
- }
1891
- __name$1(State, "State");
1892
- function indentString(string, spaces) {
1893
- var ind = common.repeat(" ", spaces);
1894
- var position = 0;
1895
- var next = -1;
1896
- var result = "";
1897
- var line;
1898
- var length = string.length;
1899
- while (position < length) {
1900
- next = string.indexOf("\n", position);
1901
- if (next === -1) {
1902
- line = string.slice(position);
1903
- position = length;
1904
- } else {
1905
- line = string.slice(position, next + 1);
1906
- position = next + 1;
1907
- }
1908
- if (line.length && line !== "\n") result += ind;
1909
- result += line;
1910
- }
1911
- return result;
1912
- }
1913
- __name$1(indentString, "indentString");
1914
- function generateNextLine(state, level) {
1915
- return "\n" + common.repeat(" ", state.indent * level);
1916
- }
1917
- __name$1(generateNextLine, "generateNextLine");
1918
- function testImplicitResolving(state, str2) {
1919
- var index;
1920
- var length;
1921
- var type2;
1922
- for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
1923
- type2 = state.implicitTypes[index];
1924
- if (type2.resolve(str2)) return true;
1925
- }
1926
- return false;
1927
- }
1928
- __name$1(testImplicitResolving, "testImplicitResolving");
1929
- function isWhitespace(c) {
1930
- return c === CHAR_SPACE || c === CHAR_TAB;
1931
- }
1932
- __name$1(isWhitespace, "isWhitespace");
1933
- function isPrintable(c) {
1934
- return 32 <= c && c <= 126 || 161 <= c && c <= 55295 && c !== 8232 && c !== 8233 || 57344 <= c && c <= 65533 && c !== CHAR_BOM || 65536 <= c && c <= 1114111;
1935
- }
1936
- __name$1(isPrintable, "isPrintable");
1937
- function isNsCharOrWhitespace(c) {
1938
- return isPrintable(c) && c !== CHAR_BOM && c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
1939
- }
1940
- __name$1(isNsCharOrWhitespace, "isNsCharOrWhitespace");
1941
- function isPlainSafe(c, prev, inblock) {
1942
- var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
1943
- var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
1944
- return (inblock ? cIsNsCharOrWhitespace : cIsNsCharOrWhitespace && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET) && c !== CHAR_SHARP && !(prev === CHAR_COLON && !cIsNsChar) || isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP || prev === CHAR_COLON && cIsNsChar;
1945
- }
1946
- __name$1(isPlainSafe, "isPlainSafe");
1947
- function isPlainSafeFirst(c) {
1948
- return isPrintable(c) && c !== CHAR_BOM && !isWhitespace(c) && c !== CHAR_MINUS && c !== CHAR_QUESTION && c !== CHAR_COLON && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && c !== CHAR_SHARP && c !== CHAR_AMPERSAND && c !== CHAR_ASTERISK && c !== CHAR_EXCLAMATION && c !== CHAR_VERTICAL_LINE && c !== CHAR_EQUALS && c !== CHAR_GREATER_THAN && c !== CHAR_SINGLE_QUOTE && c !== CHAR_DOUBLE_QUOTE && c !== CHAR_PERCENT && c !== CHAR_COMMERCIAL_AT && c !== CHAR_GRAVE_ACCENT;
1949
- }
1950
- __name$1(isPlainSafeFirst, "isPlainSafeFirst");
1951
- function isPlainSafeLast(c) {
1952
- return !isWhitespace(c) && c !== CHAR_COLON;
1953
- }
1954
- __name$1(isPlainSafeLast, "isPlainSafeLast");
1955
- function codePointAt(string, pos) {
1956
- var first = string.charCodeAt(pos);
1957
- var second;
1958
- if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
1959
- second = string.charCodeAt(pos + 1);
1960
- if (second >= 56320 && second <= 57343) return (first - 55296) * 1024 + second - 56320 + 65536;
1961
- }
1962
- return first;
1963
- }
1964
- __name$1(codePointAt, "codePointAt");
1965
- function needIndentIndicator(string) {
1966
- return /^\n* /.test(string);
1967
- }
1968
- __name$1(needIndentIndicator, "needIndentIndicator");
1969
- var STYLE_PLAIN = 1;
1970
- var STYLE_SINGLE = 2;
1971
- var STYLE_LITERAL = 3;
1972
- var STYLE_FOLDED = 4;
1973
- var STYLE_DOUBLE = 5;
1974
- function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
1975
- var i;
1976
- var char = 0;
1977
- var prevChar = null;
1978
- var hasLineBreak = false;
1979
- var hasFoldableLine = false;
1980
- var shouldTrackWidth = lineWidth !== -1;
1981
- var previousLineBreak = -1;
1982
- var plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
1983
- if (singleLineOnly || forceQuotes) for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
1984
- char = codePointAt(string, i);
1985
- if (!isPrintable(char)) return STYLE_DOUBLE;
1986
- plain = plain && isPlainSafe(char, prevChar, inblock);
1987
- prevChar = char;
1988
- }
1989
- else {
1990
- for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
1991
- char = codePointAt(string, i);
1992
- if (char === CHAR_LINE_FEED) {
1993
- hasLineBreak = true;
1994
- if (shouldTrackWidth) {
1995
- hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
1996
- previousLineBreak = i;
1997
- }
1998
- } else if (!isPrintable(char)) return STYLE_DOUBLE;
1999
- plain = plain && isPlainSafe(char, prevChar, inblock);
2000
- prevChar = char;
2001
- }
2002
- hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
2003
- }
2004
- if (!hasLineBreak && !hasFoldableLine) {
2005
- if (plain && !forceQuotes && !testAmbiguousType(string)) return STYLE_PLAIN;
2006
- return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
2007
- }
2008
- if (indentPerLevel > 9 && needIndentIndicator(string)) return STYLE_DOUBLE;
2009
- if (!forceQuotes) return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
2010
- return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
2011
- }
2012
- __name$1(chooseScalarStyle, "chooseScalarStyle");
2013
- function writeScalar(state, string, level, iskey, inblock) {
2014
- state.dump = function() {
2015
- if (string.length === 0) return state.quotingType === QUOTING_TYPE_DOUBLE ? "\"\"" : "''";
2016
- if (!state.noCompatMode) {
2017
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) return state.quotingType === QUOTING_TYPE_DOUBLE ? "\"" + string + "\"" : "'" + string + "'";
2018
- }
2019
- var indent = state.indent * Math.max(1, level);
2020
- var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
2021
- var singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
2022
- function testAmbiguity(string2) {
2023
- return testImplicitResolving(state, string2);
2024
- }
2025
- __name$1(testAmbiguity, "testAmbiguity");
2026
- switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) {
2027
- case STYLE_PLAIN: return string;
2028
- case STYLE_SINGLE: return "'" + string.replace(/'/g, "''") + "'";
2029
- case STYLE_LITERAL: return "|" + blockHeader(string, state.indent) + dropEndingNewline(indentString(string, indent));
2030
- case STYLE_FOLDED: return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
2031
- case STYLE_DOUBLE: return "\"" + escapeString(string) + "\"";
2032
- default: throw new exception("impossible error: invalid scalar style");
2033
- }
2034
- }();
2035
- }
2036
- __name$1(writeScalar, "writeScalar");
2037
- function blockHeader(string, indentPerLevel) {
2038
- var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
2039
- var clip = string[string.length - 1] === "\n";
2040
- return indentIndicator + (clip && (string[string.length - 2] === "\n" || string === "\n") ? "+" : clip ? "" : "-") + "\n";
2041
- }
2042
- __name$1(blockHeader, "blockHeader");
2043
- function dropEndingNewline(string) {
2044
- return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
2045
- }
2046
- __name$1(dropEndingNewline, "dropEndingNewline");
2047
- function foldString(string, width) {
2048
- var lineRe = /(\n+)([^\n]*)/g;
2049
- var result = function() {
2050
- var nextLF = string.indexOf("\n");
2051
- nextLF = nextLF !== -1 ? nextLF : string.length;
2052
- lineRe.lastIndex = nextLF;
2053
- return foldLine(string.slice(0, nextLF), width);
2054
- }();
2055
- var prevMoreIndented = string[0] === "\n" || string[0] === " ";
2056
- var moreIndented;
2057
- var match;
2058
- while (match = lineRe.exec(string)) {
2059
- var prefix = match[1];
2060
- var line = match[2];
2061
- moreIndented = line[0] === " ";
2062
- result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
2063
- prevMoreIndented = moreIndented;
2064
- }
2065
- return result;
2066
- }
2067
- __name$1(foldString, "foldString");
2068
- function foldLine(line, width) {
2069
- if (line === "" || line[0] === " ") return line;
2070
- var breakRe = / [^ ]/g;
2071
- var match;
2072
- var start = 0;
2073
- var end;
2074
- var curr = 0;
2075
- var next = 0;
2076
- var result = "";
2077
- while (match = breakRe.exec(line)) {
2078
- next = match.index;
2079
- if (next - start > width) {
2080
- end = curr > start ? curr : next;
2081
- result += "\n" + line.slice(start, end);
2082
- start = end + 1;
2083
- }
2084
- curr = next;
2085
- }
2086
- result += "\n";
2087
- if (line.length - start > width && curr > start) result += line.slice(start, curr) + "\n" + line.slice(curr + 1);
2088
- else result += line.slice(start);
2089
- return result.slice(1);
2090
- }
2091
- __name$1(foldLine, "foldLine");
2092
- function escapeString(string) {
2093
- var result = "";
2094
- var char = 0;
2095
- var escapeSeq;
2096
- for (var i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
2097
- char = codePointAt(string, i);
2098
- escapeSeq = ESCAPE_SEQUENCES[char];
2099
- if (!escapeSeq && isPrintable(char)) {
2100
- result += string[i];
2101
- if (char >= 65536) result += string[i + 1];
2102
- } else result += escapeSeq || encodeHex(char);
2103
- }
2104
- return result;
2105
- }
2106
- __name$1(escapeString, "escapeString");
2107
- function writeFlowSequence(state, level, object) {
2108
- var _result = "";
2109
- var _tag = state.tag;
2110
- var index;
2111
- var length;
2112
- var value;
2113
- for (index = 0, length = object.length; index < length; index += 1) {
2114
- value = object[index];
2115
- if (state.replacer) value = state.replacer.call(object, String(index), value);
2116
- if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
2117
- if (_result !== "") _result += "," + (!state.condenseFlow ? " " : "");
2118
- _result += state.dump;
2119
- }
2120
- }
2121
- state.tag = _tag;
2122
- state.dump = "[" + _result + "]";
2123
- }
2124
- __name$1(writeFlowSequence, "writeFlowSequence");
2125
- function writeBlockSequence(state, level, object, compact) {
2126
- var _result = "";
2127
- var _tag = state.tag;
2128
- var index;
2129
- var length;
2130
- var value;
2131
- for (index = 0, length = object.length; index < length; index += 1) {
2132
- value = object[index];
2133
- if (state.replacer) value = state.replacer.call(object, String(index), value);
2134
- if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
2135
- if (!compact || _result !== "") _result += generateNextLine(state, level);
2136
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) _result += "-";
2137
- else _result += "- ";
2138
- _result += state.dump;
2139
- }
2140
- }
2141
- state.tag = _tag;
2142
- state.dump = _result || "[]";
2143
- }
2144
- __name$1(writeBlockSequence, "writeBlockSequence");
2145
- function writeFlowMapping(state, level, object) {
2146
- var _result = "";
2147
- var _tag = state.tag;
2148
- var objectKeyList = Object.keys(object);
2149
- var index;
2150
- var length;
2151
- var objectKey;
2152
- var objectValue;
2153
- var pairBuffer;
2154
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
2155
- pairBuffer = "";
2156
- if (_result !== "") pairBuffer += ", ";
2157
- if (state.condenseFlow) pairBuffer += "\"";
2158
- objectKey = objectKeyList[index];
2159
- objectValue = object[objectKey];
2160
- if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
2161
- if (!writeNode(state, level, objectKey, false, false)) continue;
2162
- if (state.dump.length > 1024) pairBuffer += "? ";
2163
- pairBuffer += state.dump + (state.condenseFlow ? "\"" : "") + ":" + (state.condenseFlow ? "" : " ");
2164
- if (!writeNode(state, level, objectValue, false, false)) continue;
2165
- pairBuffer += state.dump;
2166
- _result += pairBuffer;
2167
- }
2168
- state.tag = _tag;
2169
- state.dump = "{" + _result + "}";
2170
- }
2171
- __name$1(writeFlowMapping, "writeFlowMapping");
2172
- function writeBlockMapping(state, level, object, compact) {
2173
- var _result = "";
2174
- var _tag = state.tag;
2175
- var objectKeyList = Object.keys(object);
2176
- var index;
2177
- var length;
2178
- var objectKey;
2179
- var objectValue;
2180
- var explicitPair;
2181
- var pairBuffer;
2182
- if (state.sortKeys === true) objectKeyList.sort();
2183
- else if (typeof state.sortKeys === "function") objectKeyList.sort(state.sortKeys);
2184
- else if (state.sortKeys) throw new exception("sortKeys must be a boolean or a function");
2185
- for (index = 0, length = objectKeyList.length; index < length; index += 1) {
2186
- pairBuffer = "";
2187
- if (!compact || _result !== "") pairBuffer += generateNextLine(state, level);
2188
- objectKey = objectKeyList[index];
2189
- objectValue = object[objectKey];
2190
- if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
2191
- if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
2192
- explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
2193
- if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
2194
- else pairBuffer += "? ";
2195
- pairBuffer += state.dump;
2196
- if (explicitPair) pairBuffer += generateNextLine(state, level);
2197
- if (!writeNode(state, level + 1, objectValue, true, explicitPair)) continue;
2198
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += ":";
2199
- else pairBuffer += ": ";
2200
- pairBuffer += state.dump;
2201
- _result += pairBuffer;
2202
- }
2203
- state.tag = _tag;
2204
- state.dump = _result || "{}";
2205
- }
2206
- __name$1(writeBlockMapping, "writeBlockMapping");
2207
- function detectType(state, object, explicit) {
2208
- var _result;
2209
- var typeList = explicit ? state.explicitTypes : state.implicitTypes;
2210
- var index;
2211
- var length;
2212
- var type2;
2213
- var style;
2214
- for (index = 0, length = typeList.length; index < length; index += 1) {
2215
- type2 = typeList[index];
2216
- if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
2217
- if (explicit) if (type2.multi && type2.representName) state.tag = type2.representName(object);
2218
- else state.tag = type2.tag;
2219
- else state.tag = "?";
2220
- if (type2.represent) {
2221
- style = state.styleMap[type2.tag] || type2.defaultStyle;
2222
- if (_toString.call(type2.represent) === "[object Function]") _result = type2.represent(object, style);
2223
- else if (_hasOwnProperty.call(type2.represent, style)) _result = type2.represent[style](object, style);
2224
- else throw new exception("!<" + type2.tag + "> tag resolver accepts not \"" + style + "\" style");
2225
- state.dump = _result;
2226
- }
2227
- return true;
2228
- }
2229
- }
2230
- return false;
2231
- }
2232
- __name$1(detectType, "detectType");
2233
- function writeNode(state, level, object, block, compact, iskey, isblockseq) {
2234
- state.tag = null;
2235
- state.dump = object;
2236
- if (!detectType(state, object, false)) detectType(state, object, true);
2237
- var type2 = _toString.call(state.dump);
2238
- var inblock = block;
2239
- var tagStr;
2240
- if (block) block = state.flowLevel < 0 || state.flowLevel > level;
2241
- var objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
2242
- var duplicateIndex;
2243
- var duplicate;
2244
- if (objectOrArray) {
2245
- duplicateIndex = state.duplicates.indexOf(object);
2246
- duplicate = duplicateIndex !== -1;
2247
- }
2248
- if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) compact = false;
2249
- if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = "*ref_" + duplicateIndex;
2250
- else {
2251
- if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
2252
- if (type2 === "[object Object]") if (block && Object.keys(state.dump).length !== 0) {
2253
- writeBlockMapping(state, level, state.dump, compact);
2254
- if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
2255
- } else {
2256
- writeFlowMapping(state, level, state.dump);
2257
- if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
2258
- }
2259
- else if (type2 === "[object Array]") if (block && state.dump.length !== 0) {
2260
- if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact);
2261
- else writeBlockSequence(state, level, state.dump, compact);
2262
- if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
2263
- } else {
2264
- writeFlowSequence(state, level, state.dump);
2265
- if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
2266
- }
2267
- else if (type2 === "[object String]") {
2268
- if (state.tag !== "?") writeScalar(state, state.dump, level, iskey, inblock);
2269
- } else if (type2 === "[object Undefined]") return false;
2270
- else {
2271
- if (state.skipInvalid) return false;
2272
- throw new exception("unacceptable kind of an object to dump " + type2);
2273
- }
2274
- if (state.tag !== null && state.tag !== "?") {
2275
- tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
2276
- if (state.tag[0] === "!") tagStr = "!" + tagStr;
2277
- else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") tagStr = "!!" + tagStr.slice(18);
2278
- else tagStr = "!<" + tagStr + ">";
2279
- state.dump = tagStr + " " + state.dump;
2280
- }
2281
- }
2282
- return true;
2283
- }
2284
- __name$1(writeNode, "writeNode");
2285
- function getDuplicateReferences(object, state) {
2286
- var objects = [];
2287
- var duplicatesIndexes = [];
2288
- var index;
2289
- var length;
2290
- inspectNode(object, objects, duplicatesIndexes);
2291
- for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) state.duplicates.push(objects[duplicatesIndexes[index]]);
2292
- state.usedDuplicates = new Array(length);
2293
- }
2294
- __name$1(getDuplicateReferences, "getDuplicateReferences");
2295
- function inspectNode(object, objects, duplicatesIndexes) {
2296
- var objectKeyList;
2297
- var index;
2298
- var length;
2299
- if (object !== null && typeof object === "object") {
2300
- index = objects.indexOf(object);
2301
- if (index !== -1) {
2302
- if (duplicatesIndexes.indexOf(index) === -1) duplicatesIndexes.push(index);
2303
- } else {
2304
- objects.push(object);
2305
- if (Array.isArray(object)) for (index = 0, length = object.length; index < length; index += 1) inspectNode(object[index], objects, duplicatesIndexes);
2306
- else {
2307
- objectKeyList = Object.keys(object);
2308
- for (index = 0, length = objectKeyList.length; index < length; index += 1) inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
2309
- }
2310
- }
2311
- }
2312
- }
2313
- __name$1(inspectNode, "inspectNode");
2314
- function dump$1(input, options) {
2315
- options = options || {};
2316
- var state = new State(options);
2317
- if (!state.noRefs) getDuplicateReferences(input, state);
2318
- var value = input;
2319
- if (state.replacer) value = state.replacer.call({ "": value }, "", value);
2320
- if (writeNode(state, 0, value, true, true)) return state.dump + "\n";
2321
- return "";
2322
- }
2323
- __name$1(dump$1, "dump$1");
2324
- var dumper = { dump: dump$1 };
2325
- function renamed(from, to) {
2326
- return function() {
2327
- throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
2328
- };
2329
- }
2330
- __name$1(renamed, "renamed");
2331
- var JSON_SCHEMA = json;
2332
- var load = loader.load;
2333
- loader.loadAll;
2334
- dumper.dump;
2335
- /*! Bundled license information:
2336
-
2337
- js-yaml/dist/js-yaml.mjs:
2338
- (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
2339
- */
2340
- //#endregion
2341
- export { load as n, JSON_SCHEMA as t };